@semcore/typography 5.54.0-prerelease.5 → 5.54.0-prerelease.6
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/lib/cjs/Blockquote.js +38 -0
- package/lib/cjs/Blockquote.js.map +1 -0
- package/lib/cjs/Hint.js +89 -0
- package/lib/cjs/Hint.js.map +1 -0
- package/lib/cjs/{components/List/List.js → List.js} +36 -26
- package/lib/cjs/List.js.map +1 -0
- package/lib/cjs/Text.js +80 -0
- package/lib/cjs/Text.js.map +1 -0
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/cjs/index.js +11 -45
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/hint.shadow.css +51 -0
- package/lib/cjs/style/text.shadow.css +1 -367
- package/lib/es6/Blockquote.js +31 -0
- package/lib/es6/Blockquote.js.map +1 -0
- package/lib/es6/Hint.js +83 -0
- package/lib/es6/Hint.js.map +1 -0
- package/lib/es6/{components/List/List.js → List.js} +29 -22
- package/lib/es6/List.js.map +1 -0
- package/lib/es6/Text.js +73 -0
- package/lib/es6/Text.js.map +1 -0
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/lib/es6/index.js +4 -6
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/hint.shadow.css +51 -0
- package/lib/es6/style/text.shadow.css +1 -367
- package/lib/esm/Blockquote.mjs +37 -0
- package/lib/esm/Hint.mjs +81 -0
- package/lib/esm/{components/List/List.mjs → List.mjs} +37 -30
- package/lib/esm/Text.mjs +78 -0
- package/lib/esm/index.mjs +5 -6
- package/lib/esm/style/hint.shadow.css +51 -0
- package/lib/esm/style/text.shadow.css +1 -367
- package/lib/types/index.d.ts +117 -6
- package/package.json +5 -5
- package/lib/cjs/components/Blockquote/Blockquote.js +0 -37
- package/lib/cjs/components/Blockquote/Blockquote.js.map +0 -1
- package/lib/cjs/components/Blockquote/Blockquote.type.js +0 -2
- package/lib/cjs/components/Blockquote/Blockquote.type.js.map +0 -1
- package/lib/cjs/components/List/List.js.map +0 -1
- package/lib/cjs/components/List/List.type.js +0 -2
- package/lib/cjs/components/List/List.type.js.map +0 -1
- package/lib/cjs/components/Text/Text.js +0 -185
- package/lib/cjs/components/Text/Text.js.map +0 -1
- package/lib/cjs/components/Text/Text.type.js +0 -2
- package/lib/cjs/components/Text/Text.type.js.map +0 -1
- package/lib/es6/components/Blockquote/Blockquote.js +0 -32
- package/lib/es6/components/Blockquote/Blockquote.js.map +0 -1
- package/lib/es6/components/Blockquote/Blockquote.type.js +0 -2
- package/lib/es6/components/Blockquote/Blockquote.type.js.map +0 -1
- package/lib/es6/components/List/List.js.map +0 -1
- package/lib/es6/components/List/List.type.js +0 -2
- package/lib/es6/components/List/List.type.js.map +0 -1
- package/lib/es6/components/Text/Text.js +0 -180
- package/lib/es6/components/Text/Text.js.map +0 -1
- package/lib/es6/components/Text/Text.type.js +0 -2
- package/lib/es6/components/Text/Text.type.js.map +0 -1
- package/lib/esm/components/Blockquote/Blockquote.mjs +0 -36
- package/lib/esm/components/Blockquote/Blockquote.type.mjs +0 -1
- package/lib/esm/components/List/List.type.mjs +0 -1
- package/lib/esm/components/Text/Text.mjs +0 -172
- package/lib/esm/components/Text/Text.type.mjs +0 -1
- package/lib/types/components/Blockquote/Blockquote.d.ts +0 -3
- package/lib/types/components/Blockquote/Blockquote.type.d.ts +0 -12
- package/lib/types/components/List/List.d.ts +0 -3
- package/lib/types/components/List/List.type.d.ts +0 -34
- package/lib/types/components/Text/Text.d.ts +0 -3
- package/lib/types/components/Text/Text.type.d.ts +0 -82
|
@@ -1,379 +1,21 @@
|
|
|
1
1
|
SText {
|
|
2
2
|
padding: 0;
|
|
3
3
|
margin: 0;
|
|
4
|
-
|
|
5
|
-
&[formatTags] {
|
|
6
|
-
|
|
7
|
-
& abbr {
|
|
8
|
-
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
9
|
-
text-decoration: underline dashed var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
10
|
-
|
|
11
|
-
&:active,
|
|
12
|
-
&:hover,
|
|
13
|
-
&:focus {
|
|
14
|
-
outline: none;
|
|
15
|
-
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
16
|
-
text-decoration: underline dashed var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
& a {
|
|
21
|
-
display: inline;
|
|
22
|
-
background: none;
|
|
23
|
-
outline: none;
|
|
24
|
-
text-decoration: none;
|
|
25
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
26
|
-
border-bottom-width: 1px;
|
|
27
|
-
border-bottom-style: solid;
|
|
28
|
-
border-color: transparent;
|
|
29
|
-
|
|
30
|
-
&:active,
|
|
31
|
-
&:hover {
|
|
32
|
-
outline: none;
|
|
33
|
-
text-decoration: none;
|
|
34
|
-
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
35
|
-
border-color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:focus {
|
|
39
|
-
@mixin focus-outline-mixin;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
& code,
|
|
44
|
-
& pre {
|
|
45
|
-
font-family: Consolas, 'Roboto Mono', Menlo, Courier, monospace;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
& blockquote {
|
|
49
|
-
position: relative;
|
|
50
|
-
/* disable-tokens-validator */
|
|
51
|
-
padding-left: 51px;
|
|
52
|
-
font-size: var(--intergalactic-fs-400, 20px);
|
|
53
|
-
line-height: var(--intergalactic-lh-400, 120%);
|
|
54
|
-
font-style: italic;
|
|
55
|
-
|
|
56
|
-
&:before {
|
|
57
|
-
content: url(data:image/svg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
|
-
color: var(--intergalactic-icon-secondary-neutral, oklch(0.104 0.023 162.3 / 0.385));
|
|
62
|
-
font-family: Georgia, Times, 'Times New Roman', serif;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
& cite {
|
|
66
|
-
display: block;
|
|
67
|
-
font-style: normal;
|
|
68
|
-
margin-top: var(--intergalactic-spacing-4x, 16px);
|
|
69
|
-
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
70
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
71
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
& ol:not(ol[start], ol[reversed], ol[type]),
|
|
76
|
-
& ul:not(ul[start], ul[reversed], ul[type]) {
|
|
77
|
-
margin: var(--intergalactic-spacing-2x, 8px) 0;
|
|
78
|
-
padding: 0;
|
|
79
|
-
list-style: none;
|
|
80
|
-
position: relative;
|
|
81
|
-
|
|
82
|
-
& li:not(SText) {
|
|
83
|
-
&:before {
|
|
84
|
-
position: absolute;
|
|
85
|
-
left: 0;
|
|
86
|
-
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
& li:not(SText) + li:not(SText) {
|
|
91
|
-
margin: var(--intergalactic-spacing-2x, 8px) 0 0 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
& ol:not(ol[start], ol[reversed], ol[type]) {
|
|
96
|
-
counter-reset: item 0;
|
|
97
|
-
|
|
98
|
-
& li:not(SText):before {
|
|
99
|
-
counter-increment: item;
|
|
100
|
-
content: counters(item, '.');
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
& ul:not(ul[start], ul[reversed], ul[type]) li:not(SText):before {
|
|
105
|
-
content: '';
|
|
106
|
-
background-color: var(--intergalactic-icon-primary-neutral, oklch(0.092 0.024 152.2 / 0.526));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
& ol:not(ol[start], ol[reversed], ol[type]):has(+ p),
|
|
110
|
-
& ul:not(ul[start], ul[reversed], ul[type]):has(+ p) {
|
|
111
|
-
margin-bottom: var(--intergalactic-spacing-4x, 16px);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
& h1 {
|
|
115
|
-
font-size: var(--intergalactic-fs-800, 48px);
|
|
116
|
-
line-height: var(--intergalactic-lh-800, 117%);
|
|
117
|
-
font-weight: var(--intergalactic-semi-bold, 600);
|
|
118
|
-
margin: 0 0 var(--intergalactic-spacing-6x, 24px) 0;
|
|
119
|
-
|
|
120
|
-
&:only-child {
|
|
121
|
-
margin-bottom: 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
& h2 {
|
|
126
|
-
font-size: var(--intergalactic-fs-700, 36px);
|
|
127
|
-
line-height: var(--intergalactic-lh-700, 110%);
|
|
128
|
-
font-weight: var(--intergalactic-semi-bold, 600);
|
|
129
|
-
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
130
|
-
|
|
131
|
-
&:only-child {
|
|
132
|
-
margin-bottom: 0;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
& h3 {
|
|
137
|
-
font-size: var(--intergalactic-fs-600, 32px);
|
|
138
|
-
line-height: var(--intergalactic-lh-600, 125%);
|
|
139
|
-
font-weight: var(--intergalactic-semi-bold, 600);
|
|
140
|
-
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
141
|
-
|
|
142
|
-
&:only-child {
|
|
143
|
-
margin-bottom: 0;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
& h4 {
|
|
148
|
-
font-size: var(--intergalactic-fs-500, 24px);
|
|
149
|
-
line-height: var(--intergalactic-lh-500, 117%);
|
|
150
|
-
font-weight: var(--intergalactic-semi-bold, 600);
|
|
151
|
-
margin: 0 0 var(--intergalactic-spacing-3x, 12px) 0;
|
|
152
|
-
|
|
153
|
-
&:only-child {
|
|
154
|
-
margin-bottom: 0;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
& h5 {
|
|
159
|
-
font-size: var(--intergalactic-fs-400, 20px);
|
|
160
|
-
line-height: var(--intergalactic-lh-400, 120%);
|
|
161
|
-
font-weight: var(--intergalactic-semi-bold, 600);
|
|
162
|
-
margin: 0 0 var(--intergalactic-spacing-2x, 8px) 0;
|
|
163
|
-
|
|
164
|
-
&:only-child {
|
|
165
|
-
margin-bottom: 0;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
& h6 {
|
|
170
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
171
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
172
|
-
font-weight: var(--intergalactic-bold, 700);
|
|
173
|
-
margin: 0 0 var(--intergalactic-spacing-1x, 4px) 0;
|
|
174
|
-
|
|
175
|
-
&:only-child {
|
|
176
|
-
margin-bottom: 0;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
& h1,
|
|
181
|
-
& h2,
|
|
182
|
-
& h3,
|
|
183
|
-
& h4,
|
|
184
|
-
& h5,
|
|
185
|
-
& h6 {
|
|
186
|
-
& small {
|
|
187
|
-
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
188
|
-
font-weight: 300;
|
|
189
|
-
font-size: 100%;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
& p,
|
|
194
|
-
& li {
|
|
195
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
196
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
& p {
|
|
200
|
-
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
201
|
-
|
|
202
|
-
&:last-child {
|
|
203
|
-
margin-bottom: 0;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
& li {
|
|
208
|
-
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
& ol ol li {
|
|
212
|
-
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
& ol ol ol li {
|
|
216
|
-
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
& ul li:before {
|
|
220
|
-
width: 4px;
|
|
221
|
-
height: 4px;
|
|
222
|
-
border-radius: 50%;
|
|
223
|
-
/* disable-tokens-validator */
|
|
224
|
-
margin-top: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
225
|
-
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
SText[ellipsis] {
|
|
231
|
-
overflow: hidden;
|
|
232
|
-
text-overflow: ellipsis;
|
|
233
|
-
white-space: pre;
|
|
234
|
-
display: inline-block;
|
|
235
|
-
line-height: unset;
|
|
236
|
-
vertical-align: top;
|
|
237
|
-
|
|
238
|
-
&[trim='end'][isEllipsized]::after {
|
|
239
|
-
content: '';
|
|
240
|
-
display: block;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&[maxLine] {
|
|
244
|
-
-webkit-line-clamp: var(--maxLine);
|
|
245
|
-
display: -webkit-box;
|
|
246
|
-
-webkit-box-orient: vertical;
|
|
247
|
-
white-space: normal;
|
|
248
|
-
overflow-wrap: break-word;
|
|
249
|
-
}
|
|
250
|
-
&[trim='middle'] {
|
|
251
|
-
text-overflow: unset;
|
|
252
|
-
}
|
|
253
4
|
}
|
|
254
5
|
|
|
255
6
|
SText[size='100'] {
|
|
256
7
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
257
8
|
line-height: var(--intergalactic-lh-100, 133%);
|
|
258
|
-
|
|
259
|
-
&[formatTags] {
|
|
260
|
-
& p,
|
|
261
|
-
& li {
|
|
262
|
-
font-size: var(--intergalactic-fs-100, 12px);
|
|
263
|
-
line-height: var(--intergalactic-lh-100, 133%);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
& p {
|
|
267
|
-
margin: 0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px)) 0;
|
|
268
|
-
|
|
269
|
-
&:last-child {
|
|
270
|
-
margin-bottom: 0;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
& li {
|
|
275
|
-
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
& ol ol li {
|
|
279
|
-
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
& ol ol ol li {
|
|
283
|
-
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
& ul li:before {
|
|
287
|
-
width: 3px;
|
|
288
|
-
height: 3px;
|
|
289
|
-
border-radius: 50%;
|
|
290
|
-
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
291
|
-
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
9
|
}
|
|
295
10
|
|
|
296
11
|
SText[size='200'] {
|
|
297
12
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
298
13
|
line-height: var(--intergalactic-lh-200, 142%);
|
|
299
|
-
|
|
300
|
-
&[formatTags] {
|
|
301
|
-
& p,
|
|
302
|
-
& li {
|
|
303
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
304
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
& p {
|
|
308
|
-
margin: 0 0 var(--intergalactic-spacing-3x, 12px) 0;
|
|
309
|
-
|
|
310
|
-
&:last-child {
|
|
311
|
-
margin-bottom: 0;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
& li {
|
|
316
|
-
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
& ol ol li {
|
|
320
|
-
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
& ol ol ol li {
|
|
324
|
-
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
& ul li:before {
|
|
328
|
-
width: 4px;
|
|
329
|
-
height: 4px;
|
|
330
|
-
border-radius: 50%;
|
|
331
|
-
/* disable-tokens-validator */
|
|
332
|
-
margin-top: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
333
|
-
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
14
|
}
|
|
337
15
|
|
|
338
16
|
SText[size='300'] {
|
|
339
17
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
340
18
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
341
|
-
|
|
342
|
-
&[formatTags] {
|
|
343
|
-
& p,
|
|
344
|
-
& li {
|
|
345
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
346
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
& p {
|
|
350
|
-
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
351
|
-
|
|
352
|
-
&:last-child {
|
|
353
|
-
margin-bottom: 0;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
& li {
|
|
358
|
-
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
& ol ol li {
|
|
362
|
-
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
& ol ol ol li {
|
|
366
|
-
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
& ul li:before {
|
|
370
|
-
width: 5px;
|
|
371
|
-
height: 5px;
|
|
372
|
-
border-radius: 50%;
|
|
373
|
-
margin-top: calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));
|
|
374
|
-
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
19
|
}
|
|
378
20
|
|
|
379
21
|
SText[size='400'] {
|
|
@@ -473,12 +115,4 @@ SText[use='secondary'] {
|
|
|
473
115
|
|
|
474
116
|
SText[disabled] {
|
|
475
117
|
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
@media (prefers-reduced-motion) {
|
|
479
|
-
SText {
|
|
480
|
-
& a {
|
|
481
|
-
transition: none;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
118
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
|
|
3
|
+
|
|
4
|
+
import { Property } from 'csstype';
|
|
5
|
+
import { Box, BoxProps, Flex, FlexProps } from '@semcore/flex-box';
|
|
6
|
+
import { KeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
7
|
+
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
export interface ITextProps extends TextProps, UnknownProperties {}
|
|
10
|
+
export type TextProps = BoxProps & {
|
|
11
|
+
/** Font size and line-heights */
|
|
12
|
+
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
13
|
+
/** The text will not be wrapped on a new line and will be cut off with ellipsis */
|
|
14
|
+
noWrap?: boolean;
|
|
15
|
+
/** CSS property `font-weight: 700;` */
|
|
16
|
+
bold?: boolean;
|
|
17
|
+
/** CSS property `font-weight: 600;` */
|
|
18
|
+
semibold?: boolean;
|
|
19
|
+
/** CSS property `font-weight: 500;` */
|
|
20
|
+
medium?: boolean;
|
|
21
|
+
/** Italicized text */
|
|
22
|
+
italic?: boolean;
|
|
23
|
+
/** Underlined text */
|
|
24
|
+
underline?: boolean;
|
|
25
|
+
/** CSS property `font-family: monospace;` */
|
|
26
|
+
monospace?: boolean;
|
|
27
|
+
/** Strikethrough text */
|
|
28
|
+
lineThrough?: boolean;
|
|
29
|
+
/** Uppercase text */
|
|
30
|
+
uppercase?: boolean;
|
|
31
|
+
/** Lowercase text */
|
|
32
|
+
lowercase?: boolean;
|
|
33
|
+
/** Capitalized text */
|
|
34
|
+
capitalize?: boolean;
|
|
35
|
+
/** Text color **/
|
|
36
|
+
color?: string;
|
|
37
|
+
/** Custom `font-size` */
|
|
38
|
+
fontSize?: Property.FontSize<any>;
|
|
39
|
+
/** Custom `line-height` */
|
|
40
|
+
lineHeight?: Property.LineHeight<any>;
|
|
41
|
+
/** Custom `font-weight` */
|
|
42
|
+
fontWeight?: Property.FontWeight;
|
|
43
|
+
/** Text alignment */
|
|
44
|
+
textAlign?: Property.TextAlign;
|
|
45
|
+
/** Enforces text color */
|
|
46
|
+
use?: 'primary' | 'secondary';
|
|
47
|
+
/** Makes text semi-transparent to indicate disabled state */
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @deprecated */
|
|
52
|
+
export interface IListProps extends ListProps, UnknownProperties {}
|
|
53
|
+
export type ListProps = TextProps & {
|
|
54
|
+
/** Marker of the entire list
|
|
55
|
+
* @default • */
|
|
56
|
+
marker?: React.ReactNode;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @deprecated */
|
|
60
|
+
export interface IListItemProps extends ListItemProps, UnknownProperties {}
|
|
61
|
+
export type ListItemProps = TextProps & {
|
|
62
|
+
/** Individual marker of a list item */
|
|
63
|
+
marker?: React.ReactNode;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type ListItemContentProps = FlexProps;
|
|
67
|
+
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
export interface IListContext extends ListContext, UnknownProperties {}
|
|
70
|
+
export type ListContext = {
|
|
71
|
+
getItemProps: PropGetterFn;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @deprecated */
|
|
75
|
+
export interface IHintProps extends HintProps, UnknownProperties {}
|
|
76
|
+
export type TypographyHintProps = TextProps &
|
|
77
|
+
KeyboardFocusProps & {
|
|
78
|
+
/** The value responsible for the activity of the element
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
/** Enable `active` state */
|
|
83
|
+
active?: boolean;
|
|
84
|
+
/** Left addon hint */
|
|
85
|
+
addonLeft?: React.ElementType;
|
|
86
|
+
/** Right addon hint */
|
|
87
|
+
addonRight?: React.ElementType;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** @deprecated use `TypographyHintProps` instead */
|
|
91
|
+
export type HintProps = TypographyHintProps;
|
|
92
|
+
|
|
93
|
+
/** @deprecated */
|
|
94
|
+
export interface IBlockquoteProps extends BlockquoteProps, UnknownProperties {}
|
|
95
|
+
export type BlockquoteProps = BoxProps & {
|
|
96
|
+
/** Source of the quote */
|
|
97
|
+
author?: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
declare const Hint: Intergalactic.Component<'abbr', HintProps> & {
|
|
101
|
+
Addon: typeof Box;
|
|
102
|
+
Text: typeof Box;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
declare const Item: Intergalactic.Component<'li', ListItemProps> & {
|
|
106
|
+
Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
declare const List: Intergalactic.Component<'ul', ListProps> & {
|
|
110
|
+
Item: typeof Item;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare const Text: Intergalactic.Component<'span', TextProps>;
|
|
114
|
+
|
|
115
|
+
declare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;
|
|
116
|
+
|
|
117
|
+
export { Text, List, Hint, Blockquote };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/typography",
|
|
3
3
|
"description": "Semrush Typography Component",
|
|
4
|
-
"version": "5.54.0-prerelease.
|
|
4
|
+
"version": "5.54.0-prerelease.6",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
18
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
19
|
-
"@semcore/icon": "4.63.0-prerelease.
|
|
17
|
+
"@semcore/utils": "4.49.0-prerelease.6",
|
|
18
|
+
"@semcore/flex-box": "5.42.0-prerelease.6",
|
|
19
|
+
"@semcore/icon": "4.63.0-prerelease.6",
|
|
20
20
|
"csstype": "3.0.8"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
23
|
+
"@semcore/core": "^2.40.0-prerelease.6",
|
|
24
24
|
"react": "16.8 - 18",
|
|
25
25
|
"react-dom": "16.8 - 18"
|
|
26
26
|
},
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
var _core = require("@semcore/core");
|
|
10
|
-
var _baseComponents = require("@semcore/base-components");
|
|
11
|
-
var _isNode = _interopRequireDefault(require("@semcore/core/lib/utils/isNode"));
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
/*!__reshadow-styles__:"../../style/blockquote.shadow.css"*/
|
|
14
|
-
var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SBlockquote_18p09_gg_{position:relative;display:flex;font-style:italic;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SDoubleQuotation_18p09_gg_{position:relative;margin-right:var(--intergalactic-spacing-5x, 20px);font-family:\"Times New Roman\",serif;font-style:normal;font-size:68px;line-height:52px;color:var(--intergalactic-text-large-secondary, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SDoubleQuotation_18p09_gg_{color:var(--intergalactic-text-large-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDoubleQuotation_18p09_gg_{color:var(--intergalactic-text-large-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SAuthor_18p09_gg_{display:block;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-style:normal;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}@supports (color:color(display-p3 0 0 0%)){.___SAuthor_18p09_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SAuthor_18p09_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}", /*__inner_css_end__*/"18p09_gg_"),
|
|
15
|
-
/*__reshadow_css_end__*/
|
|
16
|
-
{
|
|
17
|
-
"__SBlockquote": "___SBlockquote_18p09_gg_",
|
|
18
|
-
"__SDoubleQuotation": "___SDoubleQuotation_18p09_gg_",
|
|
19
|
-
"__SAuthor": "___SAuthor_18p09_gg_"
|
|
20
|
-
});
|
|
21
|
-
function BlockquoteRoot(props, ref) {
|
|
22
|
-
var _ref = arguments[0],
|
|
23
|
-
_ref2;
|
|
24
|
-
var SBlockquote = _baseComponents.Box;
|
|
25
|
-
var SDoubleQuotation = 'span';
|
|
26
|
-
var SAuthor = 'cite';
|
|
27
|
-
var author = props.author,
|
|
28
|
-
children = props.children;
|
|
29
|
-
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SBlockquote, _ref2.cn("SBlockquote", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
30
|
-
"tag": 'blockquote',
|
|
31
|
-
"ref": ref
|
|
32
|
-
}, _ref))), /*#__PURE__*/_react["default"].createElement(SDoubleQuotation, _ref2.cn("SDoubleQuotation", {}), "\u201C"), /*#__PURE__*/_react["default"].createElement("span", _ref2.cn("span", {}), children, (0, _isNode["default"])(author) && /*#__PURE__*/_react["default"].createElement(SAuthor, _ref2.cn("SAuthor", {}), author)));
|
|
33
|
-
}
|
|
34
|
-
BlockquoteRoot.displayName = 'Blockquote';
|
|
35
|
-
var Blockquote = (0, _core.createBaseComponent)(BlockquoteRoot);
|
|
36
|
-
var _default = exports["default"] = Blockquote;
|
|
37
|
-
//# sourceMappingURL=Blockquote.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Blockquote.js","names":["_core","require","_baseComponents","_isNode","_interopRequireDefault","_react","styles","sstyled","insert","BlockquoteRoot","props","ref","_ref","arguments[0]","_ref2","SBlockquote","Box","SDoubleQuotation","SAuthor","author","children","createElement","cn","_objectSpread2","assignProps","isNode","displayName","Blockquote","createBaseComponent","_default","exports"],"sources":["../../../../src/components/Blockquote/Blockquote.tsx"],"sourcesContent":["import { Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createBaseComponent, Root, sstyled } from '@semcore/core';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport React from 'react';\n\nimport type { NSBlockquote } from './Blockquote.type';\nimport styles from '../../style/blockquote.shadow.css';\n\nfunction BlockquoteRoot(\n props: Intergalactic.InternalTypings.InferComponentProps<NSBlockquote.Component>,\n ref: React.ForwardedRef<HTMLQuoteElement>,\n) {\n const SBlockquote = Root;\n const SDoubleQuotation = 'span';\n const SAuthor = 'cite';\n const { author, children } = props;\n\n return sstyled(styles)(\n <SBlockquote render={Box} tag='blockquote' ref={ref}>\n <SDoubleQuotation>“</SDoubleQuotation>\n <span>\n {children as React.ReactNode}\n {isNode(author) && <SAuthor>{author}</SAuthor>}\n </span>\n </SBlockquote>,\n );\n}\n\nBlockquoteRoot.displayName = 'Blockquote';\n\nconst Blockquote = createBaseComponent(BlockquoteRoot) as NSBlockquote.Component;\n\nexport default Blockquote;\n"],"mappings":";;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,OAAA,GAAAC,sBA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Blockquote.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\n\ndeclare namespace NSBlockquote {\n type Props = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n };\n\n type Component = Intergalactic.Component<'blockquote', Props>;\n}\n\n/** @deprecated It will be removed in v18. */\nexport type BlockquoteProps = NSBlockquote.Props;\n\nexport type { NSBlockquote };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","names":["_core","require","_baseComponents","_findComponent","_isNode","_interopRequireDefault","_react","_Text","style","sstyled","insert","ListRoot","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","getItemProps","marker","asProps","render","_ref","_ref4","SList","Text","styles","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","ItemRoot","_Component2","_ref2","_ref5","SItem","_this$asProps","markerNode","Children","SMarker","SContent","isAdvancedMode","isAdvanceMode","List","Item","Content","displayName","isNode","props","_ref3","arguments[0]","_ref6","children","Flex","createComponent","_default","exports"],"sources":["../../../../src/components/List/List.tsx"],"sourcesContent":["import { Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { createComponent, Component, Root, sstyled } from '@semcore/core';\nimport { isAdvanceMode } from '@semcore/core/lib/utils/findComponent';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport React from 'react';\n\nimport type { NSList } from './List.type';\nimport style from '../../style/list.shadow.css';\nimport Text from '../Text/Text';\n\nclass ListRoot extends Component<Intergalactic.InternalTypings.InferComponentProps<NSList.Component>> {\n static displayName = 'List';\n static style = style;\n static defaultProps = {\n marker: '•',\n };\n\n getItemProps() {\n const { marker } = this.asProps;\n return {\n marker,\n };\n }\n\n render() {\n const SList = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SList render={Text} tag='ul' />);\n }\n}\n\nclass ItemRoot extends Component<\n Intergalactic.InternalTypings.InferChildComponentProps<NSList.Item.Component, typeof ListRoot, 'Item'>\n> {\n static style = style;\n static displayName = 'Item';\n\n render() {\n const SItem = Root;\n const { styles, marker: markerNode, Children } = this.asProps;\n const SMarker = 'span';\n const SContent = 'div';\n\n const isAdvancedMode = isAdvanceMode(Children, [List.Item.Content.displayName]);\n\n return sstyled(styles)(\n <SItem render={Text} tag='li'>\n {isNode(markerNode) && <SMarker aria-hidden='true'>{markerNode}</SMarker>}\n {isAdvancedMode ? <Children /> : <SContent><Children /></SContent>}\n </SItem>,\n );\n }\n}\n\nfunction Content(props: Intergalactic.InternalTypings.InferComponentProps<NSList.Item.Content.Component>) {\n const { styles, children } = props;\n const SContent = Root;\n\n return sstyled(styles)(<SContent render={Flex}>{children}</SContent>);\n}\n\nContent.displayName = 'Content';\n\nconst Item = createComponent(ItemRoot, { Content }) as NSList.Item.Component;\n\nconst List = createComponent(ListRoot, { Item }) as NSList.Component;\n\nexport default List;\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,eAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAIA,IAAAM,KAAA,GAAAF,sBAAA,CAAAJ,OAAA;AAAgC;AAAA,IAAAO,KAAA,8BAAAR,KAAA,CAAAS,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAE1BC,QAAQ,0BAAAC,UAAA;EAAA,SAAAD,SAAA;IAAA,IAAAE,gBAAA,mBAAAF,QAAA;IAAA,WAAAG,WAAA,mBAAAH,QAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,QAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,QAAA;IAAAO,GAAA;IAAAC,KAAA,EAOZ,SAAAC,YAAYA,CAAA,EAAG;MACb,IA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AAM,CAAC,eAACtB,MAAA,YAAAuB,aAAA,CAACe,QAAQ,EAAAW,KAAA,CAAAzB,EAAA,iBAAAC,cAAA,qBAAA/B,KAAA,CAAAgC,WAAA,MAAAqB,KAAA,KAAgBG,QAAmB,CAAC;AACtE;AAEAP,OAAO,CAACC,WAAW,GAAG,SAAS;AAE/B,IAAMF,IAAI,GAAG,IAAAU,qBAAe,EAACvB,QAAQ,EAAE;EAAEc,OAAO,EAAPA;AAAQ,CAAC,CAA0B;AAE5E,IAAMF,IAAI,GAAG,IAAAW,qBAAe,EAAC/C,QAAQ,EAAE;EAAEqC,IAAI,EAAJA;AAAK,CAAC,CAAqB;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEtDb,IAAI","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.type.js","names":[],"sources":["../../../../src/components/List/List.type.ts"],"sourcesContent":["import type { Flex, FlexProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { NSText } from '../Text/Text.type';\n\ndeclare namespace NSList {\n type Props = NSText.Props & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n };\n\n namespace Item {\n type Props = NSText.Props & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n };\n\n namespace Content {\n type Props = FlexProps;\n type Component = Intergalactic.Component<typeof Flex, Props>;\n }\n\n type Component = Intergalactic.Component<'li', Props> & {\n Content: Content.Component;\n };\n }\n\n type Component = Intergalactic.Component<'ul', Props> & {\n Item: Item.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type ListItemProps = NSList.Item.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListItemContentProps = NSList.Item.Content.Props;\n/** @deprecated It will be removed in v18. */\nexport type ListProps = NSList.Props;\n\nexport type { NSList };\n"],"mappings":"","ignoreList":[]}
|