@entur/typography 2.1.0 → 2.1.1-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/styles.css CHANGED
@@ -1,3 +1,184 @@
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
+ }
1
182
  [data-color-mode=light],
2
183
  :root{
3
184
  --basecolors-frame-contrast:#181c56;
@@ -245,179 +426,6 @@
245
426
  font-style:italic;
246
427
  font-display:swap;
247
428
  }
248
- @layer core.reset{
249
- /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
250
- /*
251
- Document
252
- ========
253
- */
254
- /**
255
- Use a better box model (opinionated).
256
- */
257
- *,
258
- ::before,
259
- ::after{
260
- -webkit-box-sizing:border-box;
261
- -moz-box-sizing:border-box;
262
- box-sizing:border-box;
263
- }
264
- html{
265
- /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
266
- 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";
267
- line-height:1.15; /* 1. Correct the line height in all browsers. */
268
- -webkit-text-size-adjust:100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
269
- -moz-tab-size:4;
270
- -o-tab-size:4;
271
- tab-size:4; /* 3. Use a more readable tab size (opinionated). */
272
- }
273
- /*
274
- Sections
275
- ========
276
- */
277
- body{
278
- margin:0; /* Remove the margin in all browsers. */
279
- }
280
- /*
281
- Text-level semantics
282
- ====================
283
- */
284
- /**
285
- Add the correct font weight in Chrome and Safari.
286
- */
287
- b,
288
- strong{
289
- font-weight:bolder;
290
- }
291
- /**
292
- 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
293
- 2. Correct the odd 'em' font sizing in all browsers.
294
- */
295
- code,
296
- kbd,
297
- samp,
298
- pre{
299
- font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
300
- font-size:1em; /* 2 */
301
- }
302
- /**
303
- Add the correct font size in all browsers.
304
- */
305
- small{
306
- font-size:80%;
307
- }
308
- /**
309
- Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
310
- */
311
- sub,
312
- sup{
313
- font-size:75%;
314
- line-height:0;
315
- position:relative;
316
- vertical-align:baseline;
317
- }
318
- sub{
319
- bottom:-0.25em;
320
- }
321
- sup{
322
- top:-0.5em;
323
- }
324
- /*
325
- Tabular data
326
- ============
327
- */
328
- /**
329
- Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
330
- */
331
- table{
332
- border-color:currentcolor;
333
- }
334
- /*
335
- Forms
336
- =====
337
- */
338
- /**
339
- 1. Change the font styles in all browsers.
340
- 2. Remove the margin in Firefox and Safari.
341
- */
342
- button,
343
- input,
344
- optgroup,
345
- select,
346
- textarea{
347
- font-family:inherit; /* 1 */
348
- font-size:100%; /* 1 */
349
- line-height:1.15; /* 1 */
350
- margin:0; /* 2 */
351
- }
352
- /**
353
- Correct the inability to style clickable types in iOS and Safari.
354
- */
355
- button,
356
- [type=button],
357
- [type=reset],
358
- [type=submit]{
359
- -webkit-appearance:button;
360
- }
361
- /**
362
- Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
363
- */
364
- legend{
365
- padding:0;
366
- }
367
- /**
368
- Add the correct vertical alignment in Chrome and Firefox.
369
- */
370
- progress{
371
- vertical-align:baseline;
372
- }
373
- /**
374
- Correct the cursor style of increment and decrement buttons in Safari.
375
- */
376
- ::-webkit-inner-spin-button,
377
- ::-webkit-outer-spin-button{
378
- height:auto;
379
- }
380
- /**
381
- 1. Correct the odd appearance in Chrome and Safari.
382
- 2. Correct the outline style in Safari.
383
- */
384
- [type=search]{
385
- -webkit-appearance:textfield; /* 1 */
386
- outline-offset:-2px; /* 2 */
387
- }
388
- /**
389
- Remove the inner padding in Chrome and Safari on macOS.
390
- */
391
- ::-webkit-search-decoration{
392
- -webkit-appearance:none;
393
- }
394
- /**
395
- 1. Correct the inability to style clickable types in iOS and Safari.
396
- 2. Change font properties to 'inherit' in Safari.
397
- */
398
- ::-webkit-file-upload-button{
399
- -webkit-appearance:button; /* 1 */
400
- font:inherit; /* 2 */
401
- }
402
- /*
403
- Interactive
404
- ===========
405
- */
406
- /*
407
- Add the correct display in Chrome and Safari.
408
- */
409
- summary{
410
- display:list-item;
411
- }
412
- *,
413
- *::before,
414
- *::after{
415
- -webkit-box-sizing:inherit;
416
- -moz-box-sizing:inherit;
417
- box-sizing:inherit;
418
- font-weight:inherit;
419
- }
420
- }
421
429
  [data-color-mode=light],
422
430
  [data-color-mode=dark],
423
431
  :root{
@@ -458,6 +466,15 @@
458
466
  }
459
467
  }
460
468
 
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
+
461
478
  .eds-h1,
462
479
  .eds-h2,
463
480
  .eds-h3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/typography",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-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/styles/index.css",
22
+ "./beta/styles": "./dist/beta/typography.css",
23
23
  "./fonts/*": "./fonts/*",
24
24
  "./scripts/*": "./scripts/*",
25
25
  "./package.json": "./package.json",
@@ -49,7 +49,6 @@
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",
53
52
  "start": "vite build --watch",
54
53
  "start:beta": "vite build --config vite.config.beta.ts --watch",
55
54
  "migrate": "./scripts/migrate-typography.mjs"
@@ -59,9 +58,9 @@
59
58
  "react-dom": ">=16.8.0"
60
59
  },
61
60
  "dependencies": {
62
- "@entur/icons": "^8.3.1",
63
- "@entur/tokens": "^3.21.0",
64
- "@entur/utils": "^0.13.0",
61
+ "@entur/icons": "^8.3.2-beta-automat.0",
62
+ "@entur/tokens": "^3.21.1-beta-automat.0",
63
+ "@entur/utils": "^0.12.6-beta-automat.0",
65
64
  "classnames": "^2.5.1",
66
65
  "modern-normalize": "^3.0.1"
67
66
  },
@@ -81,5 +80,5 @@
81
80
  "vite": "^7.1.3",
82
81
  "vite-plugin-dts": "^4.5.4"
83
82
  },
84
- "gitHead": "3239ff1bcfdabbfef65f5d84577a626918ee2410"
83
+ "gitHead": "1297095691a8ddb2ff2de8889a83a6d80a17322f"
85
84
  }