@eui/eds-styles 22.0.0-alpha.16 → 22.0.0-alpha.18
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/assets/eds-components.d.ts +70 -0
- package/dist/assets/eds-components.json +134 -0
- package/dist/base/02-tokens/colors-primitive.scss +72 -767
- package/dist/base/02-tokens/dimensions-primitive.scss +10 -23
- package/dist/base/02-tokens/ecl/primitives/_breakpoint.scss +16 -0
- package/dist/base/02-tokens/ecl/primitives/_color-domain.scss +189 -0
- package/dist/base/02-tokens/ecl/primitives/_color.scss +190 -0
- package/dist/base/02-tokens/ecl/primitives/_dimension.scss +31 -0
- package/dist/base/02-tokens/ecl/primitives/_grid.scss +25 -0
- package/dist/base/02-tokens/ecl/primitives/_index.scss +14 -0
- package/dist/base/02-tokens/ecl/primitives/_typography.scss +58 -0
- package/dist/base/02-tokens/ecl/semantic/_border.scss +22 -0
- package/dist/base/02-tokens/ecl/semantic/_color-dark.scss +221 -0
- package/dist/base/02-tokens/ecl/semantic/_color-domain-dark.scss +172 -0
- package/dist/base/02-tokens/ecl/semantic/_color-domain.scss +172 -0
- package/dist/base/02-tokens/ecl/semantic/_color.scss +227 -0
- package/dist/base/02-tokens/ecl/semantic/_index.scss +17 -0
- package/dist/base/02-tokens/ecl/semantic/_opacity.scss +21 -0
- package/dist/base/02-tokens/ecl/semantic/_shadow.scss +41 -0
- package/dist/base/02-tokens/ecl/semantic/_spacing.scss +62 -0
- package/dist/base/02-tokens/ecl/semantic/_typography.scss +288 -0
- package/dist/base/02-tokens/maps.scss +29 -71
- package/dist/base/02-tokens/typography-primitive.scss +15 -46
- package/dist/base/02-tokens/typography-semantic.scss +33 -33
- package/dist/base/04-elements/table.scss +1 -1
- package/dist/eds-showcase-exports.css +1 -1
- package/dist/eds-showcase-exports.css.map +1 -1
- package/dist/eds-utilities.css +1 -1
- package/dist/eds-vars.css +1 -1
- package/dist/eds.css +1 -1
- package/dist/eds.css.map +1 -1
- package/package.json +1 -1
|
@@ -1,87 +1,45 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../01-base' as base;
|
|
3
|
-
@use './
|
|
3
|
+
@use './ecl/primitives/breakpoint' as ecl-breakpoint;
|
|
4
|
+
@use './ecl/semantic/border' as ecl-border;
|
|
5
|
+
@use './ecl/semantic/opacity' as ecl-opacity;
|
|
6
|
+
@use './ecl/semantic/shadow' as ecl-shadow;
|
|
4
7
|
|
|
5
|
-
// BORDER RADIUS
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
l: 12px,
|
|
13
|
-
full: 999px
|
|
14
|
-
);
|
|
8
|
+
// BORDER RADIUS / BORDER WIDTH
|
|
9
|
+
//
|
|
10
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
11
|
+
// The `$border-radius-map` / `$border-width-map` names are retained as the
|
|
12
|
+
// consumer-facing aliases; their values come verbatim from
|
|
13
|
+
// `ecl/semantic/_border.scss` ($border-radius / $border-width).
|
|
14
|
+
// To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
15
15
|
|
|
16
|
+
$border-radius-map: ecl-border.$border-radius;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
$border-width-map: (
|
|
20
|
-
none: 0,
|
|
21
|
-
xs: 1px,
|
|
22
|
-
s: 2px,
|
|
23
|
-
m: 4px
|
|
24
|
-
);
|
|
18
|
+
$border-width-map: ecl-border.$border-width;
|
|
25
19
|
|
|
26
20
|
// OPACITY
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
40: 0.4,
|
|
34
|
-
50: 0.5,
|
|
35
|
-
60: 0.6,
|
|
36
|
-
70: 0.7,
|
|
37
|
-
80: 0.8,
|
|
38
|
-
90: 0.9,
|
|
39
|
-
100: 1
|
|
40
|
-
);
|
|
22
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
23
|
+
// The `$opacity-map` name is retained as the consumer-facing alias; its values
|
|
24
|
+
// come verbatim from `ecl/semantic/_opacity.scss` ($opacity).
|
|
25
|
+
// To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
26
|
+
$opacity-map: ecl-opacity.$opacity;
|
|
41
27
|
|
|
42
28
|
// SHADOWS
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
spread: 0px,
|
|
50
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-8'),
|
|
51
|
-
),
|
|
52
|
-
2: (
|
|
53
|
-
offset-x: 0px,
|
|
54
|
-
offset-y: 10px,
|
|
55
|
-
blur: 22px,
|
|
56
|
-
spread: 0px,
|
|
57
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-10'),
|
|
58
|
-
),
|
|
59
|
-
3: (
|
|
60
|
-
offset-x: 0px,
|
|
61
|
-
offset-y: 12px,
|
|
62
|
-
blur: 32px,
|
|
63
|
-
spread: 0px,
|
|
64
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-12'),
|
|
65
|
-
),
|
|
66
|
-
4: (
|
|
67
|
-
offset-x: 0px,
|
|
68
|
-
offset-y: 14px,
|
|
69
|
-
blur: 42px,
|
|
70
|
-
spread: 0px,
|
|
71
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-14'),
|
|
72
|
-
)
|
|
73
|
-
);
|
|
29
|
+
//
|
|
30
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
31
|
+
// The `$shadow-map` name is retained as the consumer-facing alias; its values
|
|
32
|
+
// (offset/blur/spread + alpha color) come verbatim from `ecl/semantic/_shadow.scss`
|
|
33
|
+
// ($shadow). To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
34
|
+
$shadow-map: ecl-shadow.$shadow;
|
|
74
35
|
|
|
75
36
|
// BREAKPOINTS
|
|
76
37
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
xl: 1440px,
|
|
83
|
-
2xl: 1600px,
|
|
84
|
-
);
|
|
38
|
+
// Sourced from the ecl-eds foundations primitives (single source of truth).
|
|
39
|
+
// The `$breakpoint-size-map` name is retained as the consumer-facing alias; its
|
|
40
|
+
// values come verbatim from `ecl/primitives/_breakpoint.scss` ($breakpoint).
|
|
41
|
+
// To change a value, edit the upstream primitive and re-run tools/ecl-import.mjs.
|
|
42
|
+
$breakpoint-size-map: ecl-breakpoint.$breakpoint;
|
|
85
43
|
|
|
86
44
|
$breakpoint-map: (
|
|
87
45
|
mobile-s: base.new-breakpoint(max-width map.get($breakpoint-size-map, 'xs') - 1),
|
|
@@ -1,52 +1,21 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../02-tokens/dimensions-primitive' as dimensions-primitive;
|
|
1
|
+
@use './ecl/primitives/typography' as ecl-typography;
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'6xl': 2.75rem, // 44px
|
|
11
|
-
'5xl': 2.25rem, // 36px
|
|
12
|
-
'4xl': 1.75rem, // 28px
|
|
13
|
-
'3xl': 1.5rem, // 24px
|
|
14
|
-
'2xl': 1.375rem, // 22px
|
|
15
|
-
'xl': 1.25rem, // 20px
|
|
16
|
-
'l': 1.125rem, // 18px
|
|
17
|
-
'm': 1rem, // 16px
|
|
18
|
-
's': 0.875rem, // 14px
|
|
19
|
-
'xs': 0.75rem, // 12px
|
|
20
|
-
'2xs': 0.625rem // 10px
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
// font weight map
|
|
3
|
+
// PRIMITIVE TYPOGRAPHY MAPS
|
|
4
|
+
//
|
|
5
|
+
// Sourced from the ecl-eds foundations primitives (single source of truth):
|
|
6
|
+
// ecl/primitives/_typography.scss ($font-size, $font-line-height, $font-weight).
|
|
7
|
+
// Consumer-facing names are retained as aliases. To change a value, edit the
|
|
8
|
+
// upstream primitive and re-run tools/ecl-import.mjs.
|
|
24
9
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'regular': 400,
|
|
28
|
-
'medium': 500,
|
|
29
|
-
'semi-bold': 600,
|
|
30
|
-
'bold': 700
|
|
31
|
-
);
|
|
10
|
+
// Not present upstream — kept local (used by the showcase typography exports).
|
|
11
|
+
$font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl');
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'5xl': map.get(dimensions-primitive.$dimension-map, 48),
|
|
40
|
-
'4xl': map.get(dimensions-primitive.$dimension-map, 44),
|
|
41
|
-
'3xl': map.get(dimensions-primitive.$dimension-map, 40),
|
|
42
|
-
'2xl': map.get(dimensions-primitive.$dimension-map, 36),
|
|
43
|
-
'xl': map.get(dimensions-primitive.$dimension-map, 32),
|
|
44
|
-
'l': map.get(dimensions-primitive.$dimension-map, 28),
|
|
45
|
-
'm': map.get(dimensions-primitive.$dimension-map, 24),
|
|
46
|
-
's': map.get(dimensions-primitive.$dimension-map, 20),
|
|
47
|
-
'xs': map.get(dimensions-primitive.$dimension-map, 16),
|
|
48
|
-
'2xs': map.get(dimensions-primitive.$dimension-map, 12)
|
|
49
|
-
);
|
|
13
|
+
// Direct aliases — values and keys are identical to the upstream maps.
|
|
14
|
+
// EDS uses the CSS-spec weight keyword `semibold` (matching the upstream), so the
|
|
15
|
+
// weight map passes through with no re-keying.
|
|
16
|
+
$font-size-map: ecl-typography.$font-size;
|
|
17
|
+
$font-line-height-map: ecl-typography.$font-line-height;
|
|
18
|
+
$font-weight-map: ecl-typography.$font-weight;
|
|
50
19
|
|
|
51
20
|
// semantic font-size link to letter-spacing map
|
|
52
21
|
$font-size-letter-spacing-map: (
|
|
@@ -2,36 +2,36 @@ $typography-semantic-map: (
|
|
|
2
2
|
desktop: (
|
|
3
3
|
display: (
|
|
4
4
|
xl: ( size: 9xl, line-height: 10xl, weight: regular ),
|
|
5
|
-
l: ( size: 8xl, line-height: 9xl, weight:
|
|
5
|
+
l: ( size: 8xl, line-height: 9xl, weight: semibold ),
|
|
6
6
|
),
|
|
7
7
|
heading: (
|
|
8
|
-
2xl: ( size: 6xl, line-height: 6xl, weight:
|
|
9
|
-
xl: ( size: 5xl, line-height: 4xl, weight:
|
|
10
|
-
l: ( size: 4xl, line-height: 2xl, weight:
|
|
11
|
-
m: ( size: 3xl, line-height: xl, weight:
|
|
12
|
-
s: ( size: xl, line-height: l, weight:
|
|
8
|
+
2xl: ( size: 6xl, line-height: 6xl, weight: semibold ),
|
|
9
|
+
xl: ( size: 5xl, line-height: 4xl, weight: semibold ),
|
|
10
|
+
l: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
11
|
+
m: ( size: 3xl, line-height: xl, weight: semibold ),
|
|
12
|
+
s: ( size: xl, line-height: l, weight: semibold ),
|
|
13
13
|
s-medium: ( size: xl, line-height: l, weight: medium ),
|
|
14
14
|
xs: ( size: l, line-height: l, weight: bold ),
|
|
15
15
|
),
|
|
16
16
|
paragraph: (
|
|
17
17
|
xl: ( size: 3xl, line-height: 2xl, weight: regular ),
|
|
18
18
|
l: ( size: l, line-height: l, weight: regular ),
|
|
19
|
-
l-
|
|
19
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
20
20
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
21
21
|
m: ( size: m, line-height: m, weight: regular ),
|
|
22
|
-
m-
|
|
22
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
23
23
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
24
24
|
s: ( size: s, line-height: s, weight: regular ),
|
|
25
|
-
s-
|
|
25
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
26
26
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
27
27
|
),
|
|
28
28
|
label: (
|
|
29
29
|
l: ( size: l, line-height: l, weight: regular ),
|
|
30
30
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
31
|
-
l-
|
|
31
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
32
32
|
m: ( size: m, line-height: m, weight: regular ),
|
|
33
33
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
34
|
-
m-
|
|
34
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
35
35
|
s: ( size: s, line-height: s, weight: regular ),
|
|
36
36
|
),
|
|
37
37
|
microcopy: (
|
|
@@ -42,36 +42,36 @@ $typography-semantic-map: (
|
|
|
42
42
|
tablet: (
|
|
43
43
|
display: (
|
|
44
44
|
xl: ( size: 8xl, line-height: 9xl, weight: regular ),
|
|
45
|
-
l: ( size: 7xl, line-height: 6xl, weight:
|
|
45
|
+
l: ( size: 7xl, line-height: 6xl, weight: semibold ),
|
|
46
46
|
),
|
|
47
47
|
heading: (
|
|
48
|
-
2xl: ( size: 5xl, line-height: 4xl, weight:
|
|
49
|
-
xl: ( size: 4xl, line-height: 2xl, weight:
|
|
50
|
-
l: ( size: 2xl, line-height: l, weight:
|
|
51
|
-
m: ( size: xl, line-height: l, weight:
|
|
52
|
-
s: ( size: l, line-height: m, weight:
|
|
48
|
+
2xl: ( size: 5xl, line-height: 4xl, weight: semibold ),
|
|
49
|
+
xl: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
50
|
+
l: ( size: 2xl, line-height: l, weight: semibold ),
|
|
51
|
+
m: ( size: xl, line-height: l, weight: semibold ),
|
|
52
|
+
s: ( size: l, line-height: m, weight: semibold ),
|
|
53
53
|
s-medium: ( size: l, line-height: m, weight: medium ),
|
|
54
54
|
xs: ( size: m, line-height: m, weight: bold ),
|
|
55
55
|
),
|
|
56
56
|
paragraph: (
|
|
57
57
|
xl: ( size: 2xl, line-height: xl, weight: regular ),
|
|
58
58
|
l: ( size: l, line-height: l, weight: regular ),
|
|
59
|
-
l-
|
|
59
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
60
60
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
61
61
|
m: ( size: m, line-height: m, weight: regular ),
|
|
62
|
-
m-
|
|
62
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
63
63
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
64
64
|
s: ( size: s, line-height: s, weight: regular ),
|
|
65
|
-
s-
|
|
65
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
66
66
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
67
67
|
),
|
|
68
68
|
label: (
|
|
69
69
|
l: ( size: l, line-height: l, weight: regular ),
|
|
70
70
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
71
|
-
l-
|
|
71
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
72
72
|
m: ( size: m, line-height: m, weight: regular ),
|
|
73
73
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
74
|
-
m-
|
|
74
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
75
75
|
s: ( size: s, line-height: s, weight: regular ),
|
|
76
76
|
),
|
|
77
77
|
microcopy: (
|
|
@@ -82,36 +82,36 @@ $typography-semantic-map: (
|
|
|
82
82
|
mobile: (
|
|
83
83
|
display: (
|
|
84
84
|
xl: ( size: 6xl, line-height: 4xl, weight: regular ),
|
|
85
|
-
l: ( size: 5xl, line-height: 2xl, weight:
|
|
85
|
+
l: ( size: 5xl, line-height: 2xl, weight: semibold ),
|
|
86
86
|
),
|
|
87
87
|
heading: (
|
|
88
|
-
2xl: ( size: 4xl, line-height: 2xl, weight:
|
|
89
|
-
xl: ( size: 2xl, line-height: l, weight:
|
|
90
|
-
l: ( size: xl, line-height: m, weight:
|
|
91
|
-
m: ( size: l, line-height: m, weight:
|
|
92
|
-
s: ( size: m, line-height: m, weight:
|
|
88
|
+
2xl: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
89
|
+
xl: ( size: 2xl, line-height: l, weight: semibold ),
|
|
90
|
+
l: ( size: xl, line-height: m, weight: semibold ),
|
|
91
|
+
m: ( size: l, line-height: m, weight: semibold ),
|
|
92
|
+
s: ( size: m, line-height: m, weight: semibold ),
|
|
93
93
|
s-medium: ( size: m, line-height: m, weight: medium ),
|
|
94
94
|
xs: ( size: m, line-height: m, weight: bold ),
|
|
95
95
|
),
|
|
96
96
|
paragraph: (
|
|
97
97
|
xl: ( size: xl, line-height: l, weight: regular ),
|
|
98
98
|
l: ( size: l, line-height: l, weight: regular ),
|
|
99
|
-
l-
|
|
99
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
100
100
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
101
101
|
m: ( size: m, line-height: m, weight: regular ),
|
|
102
|
-
m-
|
|
102
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
103
103
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
104
104
|
s: ( size: s, line-height: s, weight: regular ),
|
|
105
|
-
s-
|
|
105
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
106
106
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
107
107
|
),
|
|
108
108
|
label: (
|
|
109
109
|
l: ( size: l, line-height: l, weight: regular ),
|
|
110
110
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
111
|
-
l-
|
|
111
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
112
112
|
m: ( size: m, line-height: m, weight: regular ),
|
|
113
113
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
114
|
-
m-
|
|
114
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
115
115
|
s: ( size: s, line-height: s, weight: regular ),
|
|
116
116
|
),
|
|
117
117
|
microcopy: (
|