pn-design-assets 4.0.1 → 4.0.2
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/README.md +47 -11
- package/flags/index.d.ts +22 -22
- package/flags/index.d.ts.map +1 -1
- package/flags/index.js +22 -22
- package/flags/index.ts +22 -22
- package/illustrations/circle/{PEX-truck.d.ts → pex-truck.d.ts} +1 -1
- package/illustrations/circle/pex-truck.d.ts.map +1 -0
- package/illustrations/circle/truck-and-plane-eu-landmarks.d.ts +2 -0
- package/illustrations/circle/truck-and-plane-eu-landmarks.d.ts.map +1 -0
- package/illustrations/circle/truck-eu-landmarks.d.ts +2 -0
- package/illustrations/circle/truck-eu-landmarks.d.ts.map +1 -0
- package/illustrations/index.d.ts +23 -23
- package/illustrations/index.d.ts.map +1 -1
- package/illustrations/index.js +23 -23
- package/illustrations/index.ts +23 -23
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/_pn-resets.scss +0 -12
- package/styles/_pn-typography.scss +55 -30
- package/illustrations/circle/PEX-truck.d.ts.map +0 -1
- package/illustrations/circle/truck-EU-landmarks.d.ts +0 -2
- package/illustrations/circle/truck-EU-landmarks.d.ts.map +0 -1
- package/illustrations/circle/truck-and-plane-EU-landmarks.d.ts +0 -2
- package/illustrations/circle/truck-and-plane-EU-landmarks.d.ts.map +0 -1
- /package/illustrations/circle/{PEX-truck.js → pex-truck.js} +0 -0
- /package/illustrations/circle/{PEX-truck.ts → pex-truck.ts} +0 -0
- /package/illustrations/circle/{truck-and-plane-EU-landmarks.js → truck-and-plane-eu-landmarks.js} +0 -0
- /package/illustrations/circle/{truck-and-plane-EU-landmarks.ts → truck-and-plane-eu-landmarks.ts} +0 -0
- /package/illustrations/circle/{truck-EU-landmarks.js → truck-eu-landmarks.js} +0 -0
- /package/illustrations/circle/{truck-EU-landmarks.ts → truck-eu-landmarks.ts} +0 -0
|
@@ -1,50 +1,75 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
1
3
|
@use './postnord/light/theme.scss' as theme;
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
$pn-typography-types: display, heading, label, paragraph;
|
|
6
|
+
$pn-typography-variants: '', 'subtle', 'prominent';
|
|
7
|
+
$pn-typography-sizes: xs, sm, md, lg, xl;
|
|
8
|
+
|
|
9
|
+
// Sass can't resolve a $variable from a dynamically built name, so pull theme's
|
|
10
|
+
// variables into a map (via sass:meta) and look up each token by its string name instead.
|
|
11
|
+
// Not every type has a subtle/prominent variant, so combinations missing from theme are skipped.
|
|
12
|
+
@mixin pn-typography-classes {
|
|
13
|
+
$theme-vars: meta.module-variables('theme');
|
|
14
|
+
|
|
15
|
+
@each $type in $pn-typography-types {
|
|
16
|
+
@each $variant in $pn-typography-variants {
|
|
17
|
+
$segment: $type;
|
|
18
|
+
@if $variant != '' {
|
|
19
|
+
$segment: '#{$type}-#{$variant}';
|
|
20
|
+
}
|
|
10
21
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
22
|
+
@each $size in $pn-typography-sizes {
|
|
23
|
+
$key-prefix: 'pn-typography-#{$segment}-#{$size}';
|
|
14
24
|
|
|
15
|
-
|
|
16
|
-
.pn
|
|
17
|
-
|
|
25
|
+
@if map.has-key($theme-vars, '#{$key-prefix}-font-size') {
|
|
26
|
+
.pn-#{$segment}-#{$size} {
|
|
27
|
+
font-size: map.get($theme-vars, '#{$key-prefix}-font-size');
|
|
28
|
+
font-weight: map.get($theme-vars, '#{$key-prefix}-font-weight');
|
|
29
|
+
line-height: map.get($theme-vars, '#{$key-prefix}-line-height');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
18
35
|
}
|
|
19
36
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
@include pn-typography-classes;
|
|
38
|
+
|
|
39
|
+
h1 {
|
|
40
|
+
font-size: theme.$pn-typography-heading-xl-font-size;
|
|
41
|
+
font-weight: theme.$pn-typography-heading-xl-font-weight;
|
|
42
|
+
line-height: theme.$pn-typography-heading-xl-line-height;
|
|
23
43
|
}
|
|
24
44
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
font-
|
|
45
|
+
h2 {
|
|
46
|
+
font-size: theme.$pn-typography-heading-md-font-size;
|
|
47
|
+
font-weight: theme.$pn-typography-heading-md-font-weight;
|
|
48
|
+
line-height: theme.$pn-typography-heading-md-line-height;
|
|
28
49
|
}
|
|
29
50
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
h3 {
|
|
52
|
+
font-size: theme.$pn-typography-heading-sm-font-size;
|
|
53
|
+
font-weight: theme.$pn-typography-heading-sm-font-weight;
|
|
54
|
+
line-height: theme.$pn-typography-heading-sm-line-height;
|
|
34
55
|
}
|
|
35
56
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
57
|
+
h4 {
|
|
58
|
+
font-size: theme.$pn-typography-heading-xs-font-size;
|
|
59
|
+
font-weight: theme.$pn-typography-heading-xs-font-weight;
|
|
60
|
+
line-height: theme.$pn-typography-heading-xs-line-height;
|
|
39
61
|
}
|
|
40
62
|
|
|
41
|
-
|
|
42
|
-
font-size: theme.$pn-font-size
|
|
63
|
+
p {
|
|
64
|
+
font-size: theme.$pn-typography-paragraph-md-font-size;
|
|
65
|
+
font-weight: theme.$pn-typography-paragraph-md-font-weight;
|
|
66
|
+
line-height: theme.$pn-typography-paragraph-md-line-height;
|
|
43
67
|
}
|
|
44
68
|
|
|
45
|
-
.pn-2xs,
|
|
46
69
|
small {
|
|
47
|
-
font-size: theme.$pn-
|
|
70
|
+
font-size: theme.$pn-typography-paragraph-xs-font-size;
|
|
71
|
+
font-weight: theme.$pn-typography-paragraph-xs-font-weight;
|
|
72
|
+
line-height: theme.$pn-typography-paragraph-xs-line-height;
|
|
48
73
|
}
|
|
49
74
|
|
|
50
75
|
a.pn-a {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PEX-truck.d.ts","sourceRoot":"","sources":["PEX-truck.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,QAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"truck-EU-landmarks.d.ts","sourceRoot":"","sources":["truck-EU-landmarks.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,QAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"truck-and-plane-EU-landmarks.d.ts","sourceRoot":"","sources":["truck-and-plane-EU-landmarks.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,wBAAwB,QAAe,CAAC"}
|
|
File without changes
|
|
File without changes
|
/package/illustrations/circle/{truck-and-plane-EU-landmarks.js → truck-and-plane-eu-landmarks.js}
RENAMED
|
File without changes
|
/package/illustrations/circle/{truck-and-plane-EU-landmarks.ts → truck-and-plane-eu-landmarks.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|