@eui/styles 21.0.0-next.8 → 21.0.0-rc.1

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 (76) hide show
  1. package/dist/assets/icons/sprites/eui-file.json +6 -0
  2. package/dist/assets/icons/sprites/eui-file.svg +1 -1
  3. package/dist/assets/icons/sprites/eui.json +25 -14
  4. package/dist/assets/icons/sprites/eui.svg +1 -1
  5. package/dist/base/01-base/functions/_color.functions.scss +46 -124
  6. package/dist/base/01-base/functions/_other.functions.scss +4 -0
  7. package/dist/base/01-base/mixins/_accessibility.mixins.scss +2 -2
  8. package/dist/base/01-base/mixins/_eui-input.scss +2 -2
  9. package/dist/base/01-base/mixins/_eui-resizable.scss +1 -1
  10. package/dist/base/01-base/mixins/_icon-svg.mixins.scss +3 -3
  11. package/dist/base/02-tokens/colors-dark-theme.scss +232 -0
  12. package/dist/base/02-tokens/colors-default.scss +451 -0
  13. package/dist/base/02-tokens/colors-extra-palettes.scss +512 -0
  14. package/dist/base/02-tokens/maps.scss +292 -703
  15. package/dist/base/03-vars/vars-dark-theme.scss +47 -17
  16. package/dist/base/03-vars/vars.scss +93 -129
  17. package/dist/base/99-utilities/{default/index.scss → index.scss} +1 -0
  18. package/dist/base/99-utilities/{default/others → others}/_eui-u-anim.scss +1 -1
  19. package/dist/base/99-utilities/{default/others → others}/_eui-u-display.scss +2 -2
  20. package/dist/base/99-utilities/{default/others → others}/_eui-u-flex.scss +1 -1
  21. package/dist/base/99-utilities/{default/others → others}/_misc-utilities.scss +3 -0
  22. package/dist/base/99-utilities/tokens/_border-radius.scss +7 -0
  23. package/dist/base/99-utilities/{default/tokens → tokens}/_colors.scss +4 -2
  24. package/dist/base/99-utilities/{default/tokens → tokens}/_margins.scss +1 -1
  25. package/dist/base/99-utilities/{default/tokens → tokens}/_opacity.scss +1 -1
  26. package/dist/base/99-utilities/{default/tokens → tokens}/_paddings.scss +1 -1
  27. package/dist/base/99-utilities/{default/tokens → tokens}/_shadows.scss +1 -1
  28. package/dist/base/99-utilities/{default/tokens → tokens}/_spacings.scss +1 -1
  29. package/dist/base/99-utilities/{default/tokens → tokens}/_typography.scss +17 -6
  30. package/dist/base/99-utilities/{default/tokens → tokens}/_z-indexes.scss +1 -1
  31. package/dist/base/index.scss +1 -0
  32. package/dist/eui-base.css +1 -1
  33. package/dist/eui-base.css.map +1 -1
  34. package/dist/eui-bootstrap-grid.css +1 -0
  35. package/dist/eui-bootstrap-grid.css.map +1 -0
  36. package/dist/eui-ecl-ec.css +8 -2
  37. package/dist/eui-ecl-ec.css.map +1 -1
  38. package/dist/eui-ecl-eu.css +8 -2
  39. package/dist/eui-ecl-eu.css.map +1 -1
  40. package/dist/eui-ecl-grid.css +1 -0
  41. package/dist/eui-ecl-grid.css.map +1 -0
  42. package/dist/eui-icons-flags.css +1 -1
  43. package/dist/eui-print.css +1 -1
  44. package/dist/eui-showcase-all.css +2 -1
  45. package/dist/eui-showcase-all.css.map +1 -1
  46. package/dist/eui-theme-compact.css +1 -1
  47. package/dist/eui-theme-compact.css.map +1 -1
  48. package/dist/eui-theme-dark.css +1 -1
  49. package/dist/eui-theme-dark.css.map +1 -1
  50. package/dist/eui-utilities.css +1 -1
  51. package/dist/eui-utilities.css.map +1 -1
  52. package/dist/eui.css +1 -1
  53. package/dist/eui.css.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/assets/icons/sprites/eui-social.json +0 -29
  56. package/dist/assets/icons/sprites/eui-social.svg +0 -1
  57. package/dist/base/02-tokens/maps-dark-theme.scss +0 -17
  58. package/dist/base/03-vars/vars-extras.scss +0 -34
  59. package/dist/base/99-utilities/utilities-extras.scss +0 -14
  60. package/dist/eui-ecl-ec-rtl.css +0 -1
  61. package/dist/eui-ecl-ec-rtl.css.map +0 -1
  62. package/dist/eui-ecl-eu-rtl.css +0 -1
  63. package/dist/eui-ecl-eu-rtl.css.map +0 -1
  64. package/dist/eui-extra-vars.css +0 -0
  65. package/dist/eui-extra-vars.css.map +0 -1
  66. package/dist/eui-utilities-extras.css +0 -1
  67. package/dist/eui-utilities-extras.css.map +0 -1
  68. /package/dist/base/99-utilities/{default/others → others}/_eui-u-border-states.scss +0 -0
  69. /package/dist/base/99-utilities/{default/others → others}/_eui-u-cursors.scss +0 -0
  70. /package/dist/base/99-utilities/{default/others → others}/_eui-u-height.scss +0 -0
  71. /package/dist/base/99-utilities/{default/others → others}/_eui-u-overflow.scss +0 -0
  72. /package/dist/base/99-utilities/{default/others → others}/_eui-u-position.scss +0 -0
  73. /package/dist/base/99-utilities/{default/others → others}/_eui-u-sr.scss +0 -0
  74. /package/dist/base/99-utilities/{default/others → others}/_eui-u-states.scss +0 -0
  75. /package/dist/base/99-utilities/{default/others → others}/_eui-u-visibility.scss +0 -0
  76. /package/dist/base/99-utilities/{default/others → others}/_eui-u-width.scss +0 -0
@@ -82,7 +82,7 @@ $outline-size: 2px;
82
82
  &:focus:not([readonly]) {
83
83
  outline: var(--eui-bw-s) solid var(--eui-c-primary-border-light) !important;
84
84
  outline-offset: $offset !important;
85
- border-radius: var(--eui-br-s) !important;
85
+ border-radius: var(--eui-br-xs) !important;
86
86
  }
87
87
  }
88
88
  @mixin eui-accessible-focus-ring-rounded($offset: 1px) {
@@ -96,7 +96,7 @@ $outline-size: 2px;
96
96
  &:focus-visible:not([readonly]) {
97
97
  outline: var(--eui-bw-s) solid var(--eui-c-primary-border) !important;
98
98
  outline-offset: $offset !important;
99
- border-radius: var(--eui-br-s) !important;
99
+ border-radius: var(--eui-br-xs) !important;
100
100
  }
101
101
  }
102
102
  @mixin eui-accessible-focus-visible-ring-rounded($offset: 1px) {
@@ -8,8 +8,8 @@
8
8
  font: var(--eui-f);
9
9
  appearance: none;
10
10
  background-color: var(--eui-c-surface-container);
11
- border: 1px solid var(--eui-c-secondary-border-light);
12
- border-radius: var(--eui-br-m);
11
+ border: 1px solid var(--eui-c-secondary-border);
12
+ border-radius: var(--eui-br-s);
13
13
  box-shadow: none;
14
14
  color: var(--eui-c-text);
15
15
  min-height: var(--eui-s-5xl);
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  .eui-resizable-icon__container {
11
- transform: translate(calc(-1 * var(--eui-s-m)), var(--eui-s-s));
11
+ transform: translate(calc(-1.2 * var(--eui-s-m)), var(--eui-s-s));
12
12
  }
13
13
  }
14
14
  }
@@ -41,7 +41,7 @@
41
41
  @mixin pseudoSvgIconExternalPrimary() {
42
42
  @include pseudoSvgIconCommon();
43
43
  mask-image: var(--eui-internal-icon-external-path);
44
- background-color: var(--eui-c-primary);
44
+ background-color: var(--eui-c-primary-surface);
45
45
  }
46
46
  @mixin pseudoSvgIconExternalBlack() {
47
47
  @include pseudoSvgIconCommonSize();
@@ -56,12 +56,12 @@
56
56
  @mixin pseudoSvgIconEllipsePrimary() {
57
57
  @include pseudoSvgIconCommon();
58
58
  mask-image: var(--eui-internal-icon-ellipse-path);
59
- background-color: var(--eui-c-primary);
59
+ background-color: var(--eui-c-primary-surface);
60
60
  }
61
61
  @mixin pseudoSvgIconEllipseDanger() {
62
62
  @include pseudoSvgIconCommon();
63
63
  mask-image: var(--eui-internal-icon-ellipse-path);
64
- background-color: var(--eui-c-danger);
64
+ background-color: var(--eui-c-danger-surface);
65
65
  }
66
66
  @mixin pseudoSvgIconEllipseBlack() {
67
67
  @include pseudoSvgIconCommonSize();
@@ -0,0 +1,232 @@
1
+ @use 'sass:map';
2
+ @use 'sass:color';
3
+ @use '../01-base/' as base;
4
+ @use './colors-default' as defaultColors;
5
+
6
+ $color-map: (
7
+ br: base.mapReverseValues(map.get(defaultColors.$color-map, 'br')),
8
+ pr: base.mapReverseValues(map.get(defaultColors.$color-map, 'pr')),
9
+ gr: base.mapReverseValues(map.get(defaultColors.$color-map, 'gr')),
10
+ grn: base.mapReverseValues(map.get(defaultColors.$color-map, 'grn')),
11
+ cta: base.mapReverseValues(map.get(defaultColors.$color-map, 'cta')),
12
+ in: base.mapReverseValues(map.get(defaultColors.$color-map, 'in')),
13
+ su: base.mapReverseValues(map.get(defaultColors.$color-map, 'su')),
14
+ wa: base.mapReverseValues(map.get(defaultColors.$color-map, 'wa')),
15
+ da: base.mapReverseValues(map.get(defaultColors.$color-map, 'da'))
16
+ );
17
+
18
+ $color-state-map: (
19
+ branding: (
20
+ base: map.get(map.get($color-map, br), 900),
21
+ default: map.get(map.get($color-map, br), 900),
22
+ lighter: map.get(map.get($color-map, br), 700),
23
+ light: map.get(map.get($color-map, br), 800),
24
+ dark: map.get(map.get($color-map, br), 950),
25
+ surface: map.get(map.get($color-map, br), 900),
26
+ on-surface: base.getContrast(map.get(map.get($color-map, br), 900)),
27
+ surface-light: map.get(map.get($color-map, br), 800),
28
+ on-surface-light: base.getContrast(map.get(map.get($color-map, br), 800)),
29
+ surface-dark: map.get(map.get($color-map, br), 950),
30
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, br), 950)),
31
+ ),
32
+ primary: (
33
+ base: map.get(map.get($color-map, pr), 600),
34
+ default: map.get(map.get($color-map, pr), 700),
35
+ lighter: map.get(map.get($color-map, pr), 500),
36
+ light: map.get(map.get($color-map, pr), 600),
37
+ dark: map.get(map.get($color-map, pr), 900),
38
+ darker: map.get(map.get($color-map, pr), 950),
39
+ surface-light: map.get(map.get($color-map, pr), 75),
40
+ on-surface-light: map.get(map.get($color-map, pr), 900),
41
+ surface-light-hover: map.get(map.get($color-map, pr), 100),
42
+ on-surface-light-hover: map.get(map.get($color-map, pr), 950),
43
+ surface-medium: map.get(map.get($color-map, pr), 200),
44
+ on-surface-medium: base.getContrast(map.get(map.get($color-map, pr), 200)),
45
+ surface-medium-hover: map.get(map.get($color-map, pr), 300),
46
+ on-surface-medium-hover: base.getContrast(map.get(map.get($color-map, pr), 300)),
47
+ surface: map.get(map.get($color-map, pr), 600),
48
+ on-surface: base.getContrast(map.get(map.get($color-map, pr), 600)),
49
+ surface-hover: map.get(map.get($color-map, pr), 700),
50
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, pr), 700)),
51
+ surface-dark: map.get(map.get($color-map, pr), 900),
52
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, pr), 900)),
53
+ border: map.get(map.get($color-map, pr), 500),
54
+ border-light: map.get(map.get($color-map, pr), 300),
55
+ border-lighter: map.get(map.get($color-map, pr), 200),
56
+ ),
57
+ secondary: (
58
+ base: map.get(map.get($color-map, gr), 500),
59
+ default: map.get(map.get($color-map, gr), 800),
60
+ lighter: map.get(map.get($color-map, gr), 600),
61
+ light: map.get(map.get($color-map, gr), 700),
62
+ dark: map.get(map.get($color-map, gr), 900),
63
+ darker: map.get(map.get($color-map, gr), 950),
64
+ surface-light: map.get(map.get($color-map, gr), 50),
65
+ on-surface-light: map.get(map.get($color-map, gr), 900),
66
+ surface-light-hover: map.get(map.get($color-map, gr), 75),
67
+ on-surface-light-hover: map.get(map.get($color-map, gr), 950),
68
+ surface-medium: map.get(map.get($color-map, gr), 75),
69
+ on-surface-medium: map.get(map.get($color-map, gr), 900),
70
+ surface-medium-hover: map.get(map.get($color-map, gr), 100),
71
+ on-surface-medium-hover: map.get(map.get($color-map, gr), 950),
72
+ surface: map.get(map.get($color-map, gr), 600),
73
+ on-surface: base.getContrast(map.get(map.get($color-map, gr), 600)),
74
+ surface-hover: map.get(map.get($color-map, gr), 700),
75
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, gr), 700)),
76
+ surface-dark: map.get(map.get($color-map, gr), 900),
77
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, gr), 900)),
78
+ border: map.get(map.get($color-map, gr), 500),
79
+ border-light: map.get(map.get($color-map, gr), 300),
80
+ border-lighter: map.get(map.get($color-map, gr), 200),
81
+ ),
82
+ neutral: (
83
+ base: map.get(map.get($color-map, grn), 500),
84
+ default: map.get(map.get($color-map, grn), 500),
85
+ lighter: map.get(map.get($color-map, grn), 600),
86
+ light: map.get(map.get($color-map, grn), 700),
87
+ dark: map.get(map.get($color-map, grn), 900),
88
+ darker: map.get(map.get($color-map, grn), 950),
89
+ surface-light: map.get(map.get($color-map, grn), 50),
90
+ on-surface-light: map.get(map.get($color-map, grn), 900),
91
+ surface-light-hover: map.get(map.get($color-map, grn), 75),
92
+ on-surface-light-hover: map.get(map.get($color-map, grn), 950),
93
+ surface-medium: map.get(map.get($color-map, grn), 75),
94
+ on-surface-medium: map.get(map.get($color-map, grn), 900),
95
+ surface-medium-hover: map.get(map.get($color-map, grn), 100),
96
+ on-surface-medium-hover: map.get(map.get($color-map, grn), 950),
97
+ surface: map.get(map.get($color-map, grn), 400),
98
+ on-surface: base.getContrast(map.get(map.get($color-map, grn), 400)),
99
+ surface-hover: map.get(map.get($color-map, grn), 300),
100
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, grn), 300)),
101
+ surface-dark: map.get(map.get($color-map, grn), 900),
102
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, grn), 900)),
103
+ border: map.get(map.get($color-map, grn), 500),
104
+ border-light: map.get(map.get($color-map, grn), 400),
105
+ border-lighter: map.get(map.get($color-map, grn), 300),
106
+ ),
107
+ cta: (
108
+ base: map.get(map.get($color-map, cta), 400),
109
+ default: map.get(map.get($color-map, cta), 900),
110
+ lighter: map.get(map.get($color-map, cta), 400),
111
+ light: map.get(map.get($color-map, cta), 500),
112
+ dark: map.get(map.get($color-map, cta), 800),
113
+ darker: map.get(map.get($color-map, cta), 900),
114
+ surface-light: map.get(map.get($color-map, cta), 25),
115
+ on-surface-light: map.get(map.get($color-map, cta), 800),
116
+ surface-light-hover: map.get(map.get($color-map, cta), 50),
117
+ on-surface-light-hover: map.get(map.get($color-map, cta), 950),
118
+ surface-medium: map.get(map.get($color-map, cta), 75),
119
+ on-surface-medium: map.get(map.get($color-map, cta), 900),
120
+ surface-medium-hover: map.get(map.get($color-map, cta), 100),
121
+ on-surface-medium-hover: map.get(map.get($color-map, cta), 950),
122
+ surface: map.get(map.get($color-map, cta), 400),
123
+ on-surface: base.getContrast(map.get(map.get($color-map, cta), 400)),
124
+ surface-hover: map.get(map.get($color-map, cta), 500),
125
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, cta), 500)),
126
+ surface-dark: map.get(map.get($color-map, cta), 600),
127
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, cta), 600)),
128
+ border: map.get(map.get($color-map, cta), 300),
129
+ border-light: map.get(map.get($color-map, cta), 100),
130
+ border-lighter: map.get(map.get($color-map, cta), 75),
131
+ ),
132
+ info: (
133
+ base: map.get(map.get($color-map, in), 500),
134
+ default: map.get(map.get($color-map, in), 600),
135
+ lighter: map.get(map.get($color-map, in), 400),
136
+ light: map.get(map.get($color-map, in), 500),
137
+ dark: map.get(map.get($color-map, in), 800),
138
+ darker: map.get(map.get($color-map, in), 900),
139
+ surface-light: map.get(map.get($color-map, in), 75),
140
+ on-surface-light: map.get(map.get($color-map, in), 600),
141
+ surface-light-hover: map.get(map.get($color-map, in), 100),
142
+ on-surface-light-hover: map.get(map.get($color-map, in), 800),
143
+ surface-medium: map.get(map.get($color-map, in), 200),
144
+ on-surface-medium: map.get(map.get($color-map, in), 950),
145
+ surface-medium-hover: map.get(map.get($color-map, in), 300),
146
+ on-surface-medium-hover: base.getContrast(map.get(map.get($color-map, in), 300)),
147
+ surface: map.get(map.get($color-map, in), 600),
148
+ on-surface: base.getContrast(map.get(map.get($color-map, in), 600)),
149
+ surface-hover: map.get(map.get($color-map, in), 800),
150
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, in), 800)),
151
+ surface-dark: map.get(map.get($color-map, in), 800),
152
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, in), 800)),
153
+ border: map.get(map.get($color-map, in), 400),
154
+ border-light: map.get(map.get($color-map, in), 300),
155
+ border-lighter: map.get(map.get($color-map, in), 200),
156
+ ),
157
+ success: (
158
+ base: map.get(map.get($color-map, su), 700),
159
+ default: map.get(map.get($color-map, su), 900),
160
+ lighter: map.get(map.get($color-map, su), 700),
161
+ light: map.get(map.get($color-map, su), 800),
162
+ dark: map.get(map.get($color-map, su), 900),
163
+ darker: map.get(map.get($color-map, su), 950),
164
+ surface-light: map.get(map.get($color-map, su), 100),
165
+ on-surface-light: map.get(map.get($color-map, su), 950),
166
+ surface-light-hover: map.get(map.get($color-map, su), 200),
167
+ on-surface-light-hover: map.get(map.get($color-map, su), 950),
168
+ surface-medium: map.get(map.get($color-map, su), 300),
169
+ on-surface-medium: base.getContrast(map.get(map.get($color-map, su), 300)),
170
+ surface-medium-hover: map.get(map.get($color-map, su), 400),
171
+ on-surface-medium-hover: base.getContrast(map.get(map.get($color-map, su), 400)),
172
+ surface: map.get(map.get($color-map, su), 900),
173
+ on-surface: base.getContrast(map.get(map.get($color-map, su), 900)),
174
+ surface-hover: map.get(map.get($color-map, su), 950),
175
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, su), 950)),
176
+ surface-dark: map.get(map.get($color-map, su), 950),
177
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, su), 950)),
178
+ border: map.get(map.get($color-map, su), 600),
179
+ border-light: map.get(map.get($color-map, su), 400),
180
+ border-lighter: map.get(map.get($color-map, su), 300),
181
+ ),
182
+ warning: (
183
+ base: map.get(map.get($color-map, wa), 500),
184
+ default: map.get(map.get($color-map, wa), 900),
185
+ lighter: map.get(map.get($color-map, wa), 700),
186
+ light: map.get(map.get($color-map, wa), 800),
187
+ dark: map.get(map.get($color-map, wa), 950),
188
+ darker: map.get(map.get($color-map, wa), 950),
189
+ surface-light: map.get(map.get($color-map, wa), 50),
190
+ on-surface-light: map.get(map.get($color-map, wa), 900),
191
+ surface-light-hover: map.get(map.get($color-map, wa), 75),
192
+ on-surface-light-hover: map.get(map.get($color-map, wa), 950),
193
+ surface-medium: map.get(map.get($color-map, wa), 100),
194
+ on-surface-medium: map.get(map.get($color-map, wa), 900),
195
+ surface-medium-hover: map.get(map.get($color-map, wa), 200),
196
+ on-surface-medium-hover: map.get(map.get($color-map, wa), 950),
197
+ surface: map.get(map.get($color-map, wa), 500),
198
+ on-surface: base.getContrast(map.get(map.get($color-map, wa), 500)),
199
+ surface-hover: map.get(map.get($color-map, wa), 600),
200
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, wa), 600)),
201
+ surface-dark: map.get(map.get($color-map, wa), 900),
202
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, wa), 900)),
203
+ border: map.get(map.get($color-map, wa), 400),
204
+ border-light: map.get(map.get($color-map, wa), 200),
205
+ border-lighter: map.get(map.get($color-map, wa), 100),
206
+ ),
207
+ danger: (
208
+ base: map.get(map.get($color-map, da), 500),
209
+ default: map.get(map.get($color-map, da), 600),
210
+ lighter: map.get(map.get($color-map, da), 400),
211
+ light: map.get(map.get($color-map, da), 500),
212
+ dark: map.get(map.get($color-map, da), 700),
213
+ darker: map.get(map.get($color-map, da), 800),
214
+ surface-light: map.get(map.get($color-map, da), 75),
215
+ on-surface-light: map.get(map.get($color-map, da), 700),
216
+ surface-light-hover: map.get(map.get($color-map, da), 100),
217
+ on-surface-light-hover: map.get(map.get($color-map, da), 900),
218
+ surface-medium: map.get(map.get($color-map, da), 200),
219
+ on-surface-medium: map.get(map.get($color-map, da), 900),
220
+ surface-medium-hover: map.get(map.get($color-map, da), 300),
221
+ on-surface-medium-hover: map.get(map.get($color-map, da), 950),
222
+ surface: map.get(map.get($color-map, da), 600),
223
+ on-surface: base.getContrast(map.get(map.get($color-map, da), 600)),
224
+ surface-hover: map.get(map.get($color-map, da), 600),
225
+ on-surface-hover: base.getContrast(map.get(map.get($color-map, da), 700)),
226
+ surface-dark: map.get(map.get($color-map, da), 800),
227
+ on-surface-dark: base.getContrast(map.get(map.get($color-map, da), 800)),
228
+ border: map.get(map.get($color-map, da), 500),
229
+ border-light: map.get(map.get($color-map, da), 300),
230
+ border-lighter: map.get(map.get($color-map, da), 200),
231
+ ),
232
+ );