@entur/typography 2.1.1-beta-automat.0 → 2.1.2-beta-automat.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beta/cjs/components/Blockquote.cjs +1 -1
- package/dist/beta/cjs/components/Heading.cjs +1 -1
- package/dist/beta/cjs/components/Link.cjs +1 -1
- package/dist/beta/cjs/components/ListItem.cjs +1 -1
- package/dist/beta/cjs/components/NumberedList.cjs +1 -1
- package/dist/beta/cjs/components/Text.cjs +1 -1
- package/dist/beta/cjs/components/UnorderedList.cjs +1 -1
- package/dist/beta/cjs/index.cjs +1 -0
- package/dist/beta/cjs/index.cjs.map +1 -1
- package/dist/beta/esm/components/Blockquote.mjs +1 -1
- package/dist/beta/esm/components/Heading.mjs +1 -1
- package/dist/beta/esm/components/Link.mjs +1 -1
- package/dist/beta/esm/components/ListItem.mjs +1 -1
- package/dist/beta/esm/components/NumberedList.mjs +1 -1
- package/dist/beta/esm/components/Text.mjs +1 -1
- package/dist/beta/esm/components/UnorderedList.mjs +1 -1
- package/dist/beta/esm/index.mjs +1 -0
- package/dist/beta/esm/index.mjs.map +1 -1
- package/dist/beta/styles/index.css +1055 -0
- package/dist/styles.css +175 -190
- package/package.json +7 -6
- package/dist/beta/styles/components/heading.css +0 -595
- package/dist/beta/styles/components/text.css +0 -1267
package/dist/styles.css
CHANGED
|
@@ -1,184 +1,3 @@
|
|
|
1
|
-
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
2
|
-
/*
|
|
3
|
-
Document
|
|
4
|
-
========
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
Use a better box model (opinionated).
|
|
8
|
-
*/
|
|
9
|
-
*,
|
|
10
|
-
::before,
|
|
11
|
-
::after{
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
-moz-box-sizing:border-box;
|
|
14
|
-
box-sizing:border-box;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
html{
|
|
18
|
-
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
|
|
19
|
-
font-family:system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
20
|
-
line-height:1.15; /* 1. Correct the line height in all browsers. */
|
|
21
|
-
-webkit-text-size-adjust:100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
|
|
22
|
-
-moz-tab-size:4;
|
|
23
|
-
-o-tab-size:4;
|
|
24
|
-
tab-size:4; /* 3. Use a more readable tab size (opinionated). */
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
Sections
|
|
29
|
-
========
|
|
30
|
-
*/
|
|
31
|
-
body{
|
|
32
|
-
margin:0; /* Remove the margin in all browsers. */
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/*
|
|
36
|
-
Text-level semantics
|
|
37
|
-
====================
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
Add the correct font weight in Chrome and Safari.
|
|
41
|
-
*/
|
|
42
|
-
b,
|
|
43
|
-
strong{
|
|
44
|
-
font-weight:bolder;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
49
|
-
2. Correct the odd 'em' font sizing in all browsers.
|
|
50
|
-
*/
|
|
51
|
-
code,
|
|
52
|
-
kbd,
|
|
53
|
-
samp,
|
|
54
|
-
pre{
|
|
55
|
-
font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
|
|
56
|
-
font-size:1em; /* 2 */
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
Add the correct font size in all browsers.
|
|
61
|
-
*/
|
|
62
|
-
small{
|
|
63
|
-
font-size:80%;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
68
|
-
*/
|
|
69
|
-
sub,
|
|
70
|
-
sup{
|
|
71
|
-
font-size:75%;
|
|
72
|
-
line-height:0;
|
|
73
|
-
position:relative;
|
|
74
|
-
vertical-align:baseline;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
sub{
|
|
78
|
-
bottom:-0.25em;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
sup{
|
|
82
|
-
top:-0.5em;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
Tabular data
|
|
87
|
-
============
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
91
|
-
*/
|
|
92
|
-
table{
|
|
93
|
-
border-color:currentcolor;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/*
|
|
97
|
-
Forms
|
|
98
|
-
=====
|
|
99
|
-
*/
|
|
100
|
-
/**
|
|
101
|
-
1. Change the font styles in all browsers.
|
|
102
|
-
2. Remove the margin in Firefox and Safari.
|
|
103
|
-
*/
|
|
104
|
-
button,
|
|
105
|
-
input,
|
|
106
|
-
optgroup,
|
|
107
|
-
select,
|
|
108
|
-
textarea{
|
|
109
|
-
font-family:inherit; /* 1 */
|
|
110
|
-
font-size:100%; /* 1 */
|
|
111
|
-
line-height:1.15; /* 1 */
|
|
112
|
-
margin:0; /* 2 */
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
Correct the inability to style clickable types in iOS and Safari.
|
|
117
|
-
*/
|
|
118
|
-
button,
|
|
119
|
-
[type=button],
|
|
120
|
-
[type=reset],
|
|
121
|
-
[type=submit]{
|
|
122
|
-
-webkit-appearance:button;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
127
|
-
*/
|
|
128
|
-
legend{
|
|
129
|
-
padding:0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
Add the correct vertical alignment in Chrome and Firefox.
|
|
134
|
-
*/
|
|
135
|
-
progress{
|
|
136
|
-
vertical-align:baseline;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
Correct the cursor style of increment and decrement buttons in Safari.
|
|
141
|
-
*/
|
|
142
|
-
::-webkit-inner-spin-button,
|
|
143
|
-
::-webkit-outer-spin-button{
|
|
144
|
-
height:auto;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
1. Correct the odd appearance in Chrome and Safari.
|
|
149
|
-
2. Correct the outline style in Safari.
|
|
150
|
-
*/
|
|
151
|
-
[type=search]{
|
|
152
|
-
-webkit-appearance:textfield; /* 1 */
|
|
153
|
-
outline-offset:-2px; /* 2 */
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
Remove the inner padding in Chrome and Safari on macOS.
|
|
158
|
-
*/
|
|
159
|
-
::-webkit-search-decoration{
|
|
160
|
-
-webkit-appearance:none;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
1. Correct the inability to style clickable types in iOS and Safari.
|
|
165
|
-
2. Change font properties to 'inherit' in Safari.
|
|
166
|
-
*/
|
|
167
|
-
::-webkit-file-upload-button{
|
|
168
|
-
-webkit-appearance:button; /* 1 */
|
|
169
|
-
font:inherit; /* 2 */
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/*
|
|
173
|
-
Interactive
|
|
174
|
-
===========
|
|
175
|
-
*/
|
|
176
|
-
/*
|
|
177
|
-
Add the correct display in Chrome and Safari.
|
|
178
|
-
*/
|
|
179
|
-
summary{
|
|
180
|
-
display:list-item;
|
|
181
|
-
}
|
|
182
1
|
[data-color-mode=light],
|
|
183
2
|
:root{
|
|
184
3
|
--basecolors-frame-contrast:#181c56;
|
|
@@ -241,6 +60,7 @@ summary{
|
|
|
241
60
|
--basecolors-text-disabled:#6e6f73;
|
|
242
61
|
--basecolors-text-disabledalt:#b6b8ba;
|
|
243
62
|
--basecolors-text-highlight:#ff5959;
|
|
63
|
+
--basecolors-text-highlightalt:#ffbf9e;
|
|
244
64
|
--basecolors-text-light:#ffffff;
|
|
245
65
|
--basecolors-text-subdued:#626493;
|
|
246
66
|
--basecolors-text-subduedalt:#d9dae8;
|
|
@@ -307,6 +127,7 @@ summary{
|
|
|
307
127
|
--basecolors-text-disabled:#b6b8ba;
|
|
308
128
|
--basecolors-text-disabledalt:#b6b8ba;
|
|
309
129
|
--basecolors-text-highlight:#ff9494;
|
|
130
|
+
--basecolors-text-highlightalt:#ffbf9e;
|
|
310
131
|
--basecolors-text-light:#e5e5e9;
|
|
311
132
|
--basecolors-text-subdued:#b3b4bd;
|
|
312
133
|
--basecolors-text-subduedalt:#b3b4bd;
|
|
@@ -426,6 +247,179 @@ summary{
|
|
|
426
247
|
font-style:italic;
|
|
427
248
|
font-display:swap;
|
|
428
249
|
}
|
|
250
|
+
@layer core.reset{
|
|
251
|
+
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
252
|
+
/*
|
|
253
|
+
Document
|
|
254
|
+
========
|
|
255
|
+
*/
|
|
256
|
+
/**
|
|
257
|
+
Use a better box model (opinionated).
|
|
258
|
+
*/
|
|
259
|
+
*,
|
|
260
|
+
::before,
|
|
261
|
+
::after{
|
|
262
|
+
-webkit-box-sizing:border-box;
|
|
263
|
+
-moz-box-sizing:border-box;
|
|
264
|
+
box-sizing:border-box;
|
|
265
|
+
}
|
|
266
|
+
html{
|
|
267
|
+
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
|
|
268
|
+
font-family:system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
269
|
+
line-height:1.15; /* 1. Correct the line height in all browsers. */
|
|
270
|
+
-webkit-text-size-adjust:100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
|
|
271
|
+
-moz-tab-size:4;
|
|
272
|
+
-o-tab-size:4;
|
|
273
|
+
tab-size:4; /* 3. Use a more readable tab size (opinionated). */
|
|
274
|
+
}
|
|
275
|
+
/*
|
|
276
|
+
Sections
|
|
277
|
+
========
|
|
278
|
+
*/
|
|
279
|
+
body{
|
|
280
|
+
margin:0; /* Remove the margin in all browsers. */
|
|
281
|
+
}
|
|
282
|
+
/*
|
|
283
|
+
Text-level semantics
|
|
284
|
+
====================
|
|
285
|
+
*/
|
|
286
|
+
/**
|
|
287
|
+
Add the correct font weight in Chrome and Safari.
|
|
288
|
+
*/
|
|
289
|
+
b,
|
|
290
|
+
strong{
|
|
291
|
+
font-weight:bolder;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
295
|
+
2. Correct the odd 'em' font sizing in all browsers.
|
|
296
|
+
*/
|
|
297
|
+
code,
|
|
298
|
+
kbd,
|
|
299
|
+
samp,
|
|
300
|
+
pre{
|
|
301
|
+
font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
|
|
302
|
+
font-size:1em; /* 2 */
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
Add the correct font size in all browsers.
|
|
306
|
+
*/
|
|
307
|
+
small{
|
|
308
|
+
font-size:80%;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
312
|
+
*/
|
|
313
|
+
sub,
|
|
314
|
+
sup{
|
|
315
|
+
font-size:75%;
|
|
316
|
+
line-height:0;
|
|
317
|
+
position:relative;
|
|
318
|
+
vertical-align:baseline;
|
|
319
|
+
}
|
|
320
|
+
sub{
|
|
321
|
+
bottom:-0.25em;
|
|
322
|
+
}
|
|
323
|
+
sup{
|
|
324
|
+
top:-0.5em;
|
|
325
|
+
}
|
|
326
|
+
/*
|
|
327
|
+
Tabular data
|
|
328
|
+
============
|
|
329
|
+
*/
|
|
330
|
+
/**
|
|
331
|
+
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
332
|
+
*/
|
|
333
|
+
table{
|
|
334
|
+
border-color:currentcolor;
|
|
335
|
+
}
|
|
336
|
+
/*
|
|
337
|
+
Forms
|
|
338
|
+
=====
|
|
339
|
+
*/
|
|
340
|
+
/**
|
|
341
|
+
1. Change the font styles in all browsers.
|
|
342
|
+
2. Remove the margin in Firefox and Safari.
|
|
343
|
+
*/
|
|
344
|
+
button,
|
|
345
|
+
input,
|
|
346
|
+
optgroup,
|
|
347
|
+
select,
|
|
348
|
+
textarea{
|
|
349
|
+
font-family:inherit; /* 1 */
|
|
350
|
+
font-size:100%; /* 1 */
|
|
351
|
+
line-height:1.15; /* 1 */
|
|
352
|
+
margin:0; /* 2 */
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
Correct the inability to style clickable types in iOS and Safari.
|
|
356
|
+
*/
|
|
357
|
+
button,
|
|
358
|
+
[type=button],
|
|
359
|
+
[type=reset],
|
|
360
|
+
[type=submit]{
|
|
361
|
+
-webkit-appearance:button;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
365
|
+
*/
|
|
366
|
+
legend{
|
|
367
|
+
padding:0;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
371
|
+
*/
|
|
372
|
+
progress{
|
|
373
|
+
vertical-align:baseline;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
377
|
+
*/
|
|
378
|
+
::-webkit-inner-spin-button,
|
|
379
|
+
::-webkit-outer-spin-button{
|
|
380
|
+
height:auto;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
384
|
+
2. Correct the outline style in Safari.
|
|
385
|
+
*/
|
|
386
|
+
[type=search]{
|
|
387
|
+
-webkit-appearance:textfield; /* 1 */
|
|
388
|
+
outline-offset:-2px; /* 2 */
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
392
|
+
*/
|
|
393
|
+
::-webkit-search-decoration{
|
|
394
|
+
-webkit-appearance:none;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
398
|
+
2. Change font properties to 'inherit' in Safari.
|
|
399
|
+
*/
|
|
400
|
+
::-webkit-file-upload-button{
|
|
401
|
+
-webkit-appearance:button; /* 1 */
|
|
402
|
+
font:inherit; /* 2 */
|
|
403
|
+
}
|
|
404
|
+
/*
|
|
405
|
+
Interactive
|
|
406
|
+
===========
|
|
407
|
+
*/
|
|
408
|
+
/*
|
|
409
|
+
Add the correct display in Chrome and Safari.
|
|
410
|
+
*/
|
|
411
|
+
summary{
|
|
412
|
+
display:list-item;
|
|
413
|
+
}
|
|
414
|
+
*,
|
|
415
|
+
*::before,
|
|
416
|
+
*::after{
|
|
417
|
+
-webkit-box-sizing:inherit;
|
|
418
|
+
-moz-box-sizing:inherit;
|
|
419
|
+
box-sizing:inherit;
|
|
420
|
+
font-weight:inherit;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
429
423
|
[data-color-mode=light],
|
|
430
424
|
[data-color-mode=dark],
|
|
431
425
|
:root{
|
|
@@ -466,15 +460,6 @@ summary{
|
|
|
466
460
|
}
|
|
467
461
|
}
|
|
468
462
|
|
|
469
|
-
*,
|
|
470
|
-
*::before,
|
|
471
|
-
*::after{
|
|
472
|
-
-webkit-box-sizing:inherit;
|
|
473
|
-
-moz-box-sizing:inherit;
|
|
474
|
-
box-sizing:inherit;
|
|
475
|
-
font-weight:inherit;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
463
|
.eds-h1,
|
|
479
464
|
.eds-h2,
|
|
480
465
|
.eds-h3,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/typography",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2-beta-automat.0",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"main": "./dist/typography.cjs.js",
|
|
6
6
|
"module": "./dist/typography.esm.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"default": "./dist/beta/esm/index.mjs"
|
|
20
20
|
},
|
|
21
21
|
"./styles": "./dist/styles.css",
|
|
22
|
-
"./beta/styles": "./dist/beta/
|
|
22
|
+
"./beta/styles": "./dist/beta/styles/index.css",
|
|
23
23
|
"./fonts/*": "./fonts/*",
|
|
24
24
|
"./scripts/*": "./scripts/*",
|
|
25
25
|
"./package.json": "./package.json",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"build:beta": "vite build --config vite.config.beta.ts",
|
|
50
50
|
"test": "jest",
|
|
51
51
|
"lint": "eslint src",
|
|
52
|
+
"lint:styles": "stylelint 'src/beta**/*.{css,scss}' --ignore-path ../../.gitignore",
|
|
52
53
|
"start": "vite build --watch",
|
|
53
54
|
"start:beta": "vite build --config vite.config.beta.ts --watch",
|
|
54
55
|
"migrate": "./scripts/migrate-typography.mjs"
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
"react-dom": ">=16.8.0"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@entur/icons": "^8.
|
|
62
|
-
"@entur/tokens": "^3.
|
|
63
|
-
"@entur/utils": "^0.
|
|
62
|
+
"@entur/icons": "^8.4.1-beta-automat.0",
|
|
63
|
+
"@entur/tokens": "^3.22.0-beta-automat.0",
|
|
64
|
+
"@entur/utils": "^0.13.1",
|
|
64
65
|
"classnames": "^2.5.1",
|
|
65
66
|
"modern-normalize": "^3.0.1"
|
|
66
67
|
},
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"vite": "^7.1.3",
|
|
81
82
|
"vite-plugin-dts": "^4.5.4"
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "7d0d14cd6fd5cf4b7ef3c2a3aa7e3536ac51900d"
|
|
84
85
|
}
|