@eui/eds-styles 22.0.0-alpha.17 → 22.0.0-alpha.19

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.
Files changed (31) hide show
  1. package/dist/assets/eds-components.json +15 -14
  2. package/dist/base/02-tokens/colors-primitive.scss +72 -767
  3. package/dist/base/02-tokens/dimensions-primitive.scss +10 -23
  4. package/dist/base/02-tokens/ecl/primitives/_breakpoint.scss +16 -0
  5. package/dist/base/02-tokens/ecl/primitives/_color-domain.scss +189 -0
  6. package/dist/base/02-tokens/ecl/primitives/_color.scss +190 -0
  7. package/dist/base/02-tokens/ecl/primitives/_dimension.scss +31 -0
  8. package/dist/base/02-tokens/ecl/primitives/_grid.scss +25 -0
  9. package/dist/base/02-tokens/ecl/primitives/_index.scss +14 -0
  10. package/dist/base/02-tokens/ecl/primitives/_typography.scss +58 -0
  11. package/dist/base/02-tokens/ecl/semantic/_border.scss +22 -0
  12. package/dist/base/02-tokens/ecl/semantic/_color-dark.scss +221 -0
  13. package/dist/base/02-tokens/ecl/semantic/_color-domain-dark.scss +172 -0
  14. package/dist/base/02-tokens/ecl/semantic/_color-domain.scss +172 -0
  15. package/dist/base/02-tokens/ecl/semantic/_color.scss +227 -0
  16. package/dist/base/02-tokens/ecl/semantic/_index.scss +17 -0
  17. package/dist/base/02-tokens/ecl/semantic/_opacity.scss +21 -0
  18. package/dist/base/02-tokens/ecl/semantic/_shadow.scss +41 -0
  19. package/dist/base/02-tokens/ecl/semantic/_spacing.scss +62 -0
  20. package/dist/base/02-tokens/ecl/semantic/_typography.scss +288 -0
  21. package/dist/base/02-tokens/maps.scss +29 -71
  22. package/dist/base/02-tokens/typography-primitive.scss +15 -46
  23. package/dist/base/02-tokens/typography-semantic.scss +33 -33
  24. package/dist/base/04-elements/table.scss +1 -1
  25. package/dist/eds-showcase-exports.css +1 -1
  26. package/dist/eds-showcase-exports.css.map +1 -1
  27. package/dist/eds-utilities.css +1 -1
  28. package/dist/eds-vars.css +1 -1
  29. package/dist/eds.css +1 -1
  30. package/dist/eds.css.map +1 -1
  31. package/package.json +1 -1
@@ -1,87 +1,45 @@
1
1
  @use 'sass:map';
2
2
  @use '../01-base' as base;
3
- @use './colors-primitive' as colors-primitive;
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
- $border-radius-map: (
8
- none: 0,
9
- xs: 2px,
10
- s: 4px,
11
- m: 8px,
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
- // BORDER WIDTH
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
- $opacity-map: (
29
- none: 0,
30
- 10: 0.1,
31
- 20: 0.2,
32
- 30: 0.3,
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
- $shadow-map: (
45
- 1: (
46
- offset-x: 0px,
47
- offset-y: 6px,
48
- blur: 12px,
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
- $breakpoint-size-map: (
78
- xs: 480px,
79
- s: 768px,
80
- m: 996px,
81
- l: 1140px,
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 'sass:map';
2
- @use '../02-tokens/dimensions-primitive' as dimensions-primitive;
1
+ @use './ecl/primitives/typography' as ecl-typography;
3
2
 
4
- $font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl');
5
-
6
- $font-size-map: (
7
- '9xl': 6rem, // 96px
8
- '8xl': 4rem, // 64px
9
- '7xl': 3.25rem, // 52px
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
- $font-weight-map: (
26
- 'light': 300,
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
- $font-line-height-map: (
34
- '10xl': map.get(dimensions-primitive.$dimension-map, 96),
35
- '9xl': map.get(dimensions-primitive.$dimension-map, 64),
36
- '8xl': map.get(dimensions-primitive.$dimension-map, 60),
37
- '7xl': map.get(dimensions-primitive.$dimension-map, 56),
38
- '6xl': map.get(dimensions-primitive.$dimension-map, 52),
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: semi-bold ),
5
+ l: ( size: 8xl, line-height: 9xl, weight: semibold ),
6
6
  ),
7
7
  heading: (
8
- 2xl: ( size: 6xl, line-height: 6xl, weight: semi-bold ),
9
- xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
10
- l: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
11
- m: ( size: 3xl, line-height: xl, weight: semi-bold ),
12
- s: ( size: xl, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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: semi-bold ),
45
+ l: ( size: 7xl, line-height: 6xl, weight: semibold ),
46
46
  ),
47
47
  heading: (
48
- 2xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
49
- xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
50
- l: ( size: 2xl, line-height: l, weight: semi-bold ),
51
- m: ( size: xl, line-height: l, weight: semi-bold ),
52
- s: ( size: l, line-height: m, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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: semi-bold ),
85
+ l: ( size: 5xl, line-height: 2xl, weight: semibold ),
86
86
  ),
87
87
  heading: (
88
- 2xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
89
- xl: ( size: 2xl, line-height: l, weight: semi-bold ),
90
- l: ( size: xl, line-height: m, weight: semi-bold ),
91
- m: ( size: l, line-height: m, weight: semi-bold ),
92
- s: ( size: m, line-height: m, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
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-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
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-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
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: (
@@ -37,7 +37,7 @@
37
37
  color: var(--eds-c-foreground-default);
38
38
  padding: var(--eds-sp-m) var(--eds-sp-s);
39
39
  vertical-align: middle;
40
- font: var(--eds-f-label-m-semi-bold);
40
+ font: var(--eds-f-label-m-semibold);
41
41
  }
42
42
 
43
43
  tr {