@eui/eds-styles 23.0.0-alpha.10 → 23.0.0-alpha.12

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 (40) hide show
  1. package/dist/assets/icons/sprites/core.json +53 -0
  2. package/dist/assets/icons/sprites/core.svg +1 -0
  3. package/dist/assets/icons/sprites/file.json +29 -0
  4. package/dist/assets/icons/sprites/file.svg +1 -0
  5. package/dist/assets/icons/sprites/fill.json +1428 -1512
  6. package/dist/assets/icons/sprites/fill.svg +1 -1
  7. package/dist/assets/icons/sprites/flags-1x1.json +14 -0
  8. package/dist/assets/icons/sprites/flags-1x1.svg +1 -83
  9. package/dist/assets/icons/sprites/flags-4x3.json +14 -0
  10. package/dist/assets/icons/sprites/flags-4x3.svg +1 -83
  11. package/dist/assets/icons/sprites/regular.json +1 -85
  12. package/dist/assets/icons/sprites/regular.svg +1 -1
  13. package/dist/base/00-reset/index.scss +5 -275
  14. package/dist/base/01-base/animations.scss +8 -0
  15. package/dist/base/01-base/index.scss +2 -1
  16. package/dist/base/01-base/mixins.scss +97 -1
  17. package/dist/base/02-tokens/typography-semantic.scss +6 -0
  18. package/dist/base/03-vars/typography.scss +13 -3
  19. package/dist/base/04-elements/html-body.scss +26 -0
  20. package/dist/base/04-elements/index.scss +2 -26
  21. package/dist/base/04-elements/table.scss +142 -0
  22. package/dist/base/99-utilities/colors.scss +27 -8
  23. package/dist/base/99-utilities/flex.scss +0 -1
  24. package/dist/base/99-utilities/typography.scss +145 -0
  25. package/dist/eds-grid.css +1 -1
  26. package/dist/eds-grid.css.map +1 -1
  27. package/dist/eds-showcase-exports.css +1 -1
  28. package/dist/eds-showcase-exports.css.map +1 -1
  29. package/dist/eds-utilities.css +1 -1
  30. package/dist/eds-utilities.css.map +1 -1
  31. package/dist/eds-vars.css +1 -1
  32. package/dist/eds-vars.css.map +1 -1
  33. package/dist/eds.css +1 -1
  34. package/dist/eds.css.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/assets/icons/internals/check.svg +0 -24
  37. package/dist/assets/icons/internals/chevron-down.svg +0 -1
  38. package/dist/assets/icons/internals/ellipse.svg +0 -1
  39. package/dist/assets/icons/internals/external.svg +0 -1
  40. package/dist/assets/icons/internals/remove.svg +0 -1
@@ -1,285 +1,15 @@
1
- /*! EDS Reset — based on normalize.css, modernized for evergreen browsers */
1
+ /*! EDS Reset — minimal reset for evergreen browsers with encapsulated components */
2
2
 
3
- /* Document
4
- ========================================================================== */
5
-
6
- /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in iOS.
9
- */
10
-
11
- html {
12
- line-height: var(--eds-base-line-height); /* 1 */
13
- -webkit-text-size-adjust: 100%; /* 2 */
3
+ *,
4
+ *::before,
5
+ *::after {
6
+ box-sizing: border-box;
14
7
  }
15
8
 
16
- /* Sections
17
- ========================================================================== */
18
-
19
- /**
20
- * Remove the margin in all browsers.
21
- */
22
-
23
9
  body {
24
10
  margin: 0;
25
11
  }
26
12
 
27
- /**
28
- * Correct the font size and margin on `h1` elements within `section` and
29
- * `article` contexts in Chrome, Firefox, and Safari.
30
- */
31
-
32
- h1 {
33
- font-size: 2em;
34
- margin: 0.67em 0;
35
- }
36
-
37
- /* Grouping content
38
- ========================================================================== */
39
-
40
- /**
41
- * 1. Add the correct box sizing in Firefox.
42
- * 2. Show the overflow in Edge.
43
- */
44
-
45
- hr {
46
- box-sizing: content-box; /* 1 */
47
- height: 0; /* 1 */
48
- overflow: visible; /* 2 */
49
- }
50
-
51
- /**
52
- * 1. Correct the inheritance and scaling of font size in all browsers.
53
- * 2. Correct the odd `em` font sizing in all browsers.
54
- */
55
-
56
- pre {
57
- font-family: monospace, monospace; /* 1 */
58
- font-size: 1em; /* 2 */
59
- }
60
-
61
- /* Text-level semantics
62
- ========================================================================== */
63
-
64
- /**
65
- * Remove the gray background on active links in IE 10.
66
- */
67
-
68
- a {
69
- background-color: transparent;
70
- }
71
-
72
- /**
73
- * Add the correct text decoration in Chrome, Edge, Opera, and Safari.
74
- */
75
-
76
- abbr[title] {
77
- text-decoration: underline;
78
- text-decoration: underline dotted;
79
- }
80
-
81
- /**
82
- * Add the correct font weight in Chrome, Edge, and Safari.
83
- */
84
-
85
- b,
86
- strong {
87
- font-weight: bolder;
88
- }
89
-
90
- /**
91
- * 1. Correct the inheritance and scaling of font size in all browsers.
92
- * 2. Correct the odd `em` font sizing in all browsers.
93
- */
94
-
95
- code,
96
- kbd,
97
- samp {
98
- font-family: monospace, monospace; /* 1 */
99
- font-size: 1em; /* 2 */
100
- }
101
-
102
- /**
103
- * Add the correct font size in all browsers.
104
- */
105
-
106
- small {
107
- font-size: 80%;
108
- }
109
-
110
- /**
111
- * Prevent `sub` and `sup` elements from affecting the line height in
112
- * all browsers.
113
- */
114
-
115
- sub,
116
- sup {
117
- font-size: 75%;
118
- line-height: 0;
119
- position: relative;
120
- vertical-align: baseline;
121
- }
122
-
123
- sub {
124
- bottom: -0.25em;
125
- }
126
-
127
- sup {
128
- top: -0.5em;
129
- }
130
-
131
- /* Embedded content
132
- ========================================================================== */
133
-
134
- /**
135
- * Remove the border on images inside links.
136
- */
137
-
138
- img {
139
- border-style: none;
140
- }
141
-
142
- /* Forms
143
- ========================================================================== */
144
-
145
- /**
146
- * 1. Change the font styles in all browsers.
147
- * 2. Remove the margin in Firefox and Safari.
148
- */
149
-
150
- button,
151
- input,
152
- optgroup,
153
- select,
154
- textarea {
155
- font-family: inherit; /* 1 */
156
- font-size: 100%; /* 1 */
157
- line-height: 1; /* 1 */
158
- margin: 0; /* 2 */
159
- }
160
-
161
- /**
162
- * Show the overflow in Edge.
163
- */
164
-
165
- button,
166
- input {
167
- overflow: visible;
168
- }
169
-
170
- /**
171
- * Remove the inheritance of text transform in Edge and Firefox.
172
- */
173
-
174
- button,
175
- select {
176
- text-transform: none;
177
- }
178
-
179
- /**
180
- * Remove the inner border and padding in Firefox.
181
- */
182
-
183
- button::-moz-focus-inner,
184
- [type="button"]::-moz-focus-inner,
185
- [type="reset"]::-moz-focus-inner,
186
- [type="submit"]::-moz-focus-inner {
187
- border-style: none;
188
- padding: 0;
189
- }
190
-
191
- /**
192
- * Correct the padding in Firefox.
193
- */
194
-
195
- fieldset {
196
- padding: 0.35em 0.75em 0.625em;
197
- }
198
-
199
- /**
200
- * Correct the text wrapping in Edge.
201
- */
202
-
203
- legend {
204
- box-sizing: border-box;
205
- color: inherit;
206
- display: table;
207
- max-width: 100%;
208
- padding: 0;
209
- white-space: normal;
210
- }
211
-
212
- /**
213
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
214
- */
215
-
216
- progress {
217
- vertical-align: baseline;
218
- }
219
-
220
- /**
221
- * Remove the default vertical scrollbar.
222
- */
223
-
224
- textarea {
225
- overflow: auto;
226
- }
227
-
228
- /**
229
- * Correct the cursor style of increment and decrement buttons in Chrome.
230
- */
231
-
232
- [type="number"]::-webkit-inner-spin-button,
233
- [type="number"]::-webkit-outer-spin-button {
234
- height: auto;
235
- }
236
-
237
- /**
238
- * 1. Correct the odd appearance in Chrome and Safari.
239
- * 2. Correct the outline style in Safari.
240
- */
241
-
242
- [type="search"] {
243
- -webkit-appearance: textfield; /* 1 */
244
- outline-offset: -2px; /* 2 */
245
- }
246
-
247
- /**
248
- * Remove the inner padding in Chrome and Safari on macOS.
249
- */
250
-
251
- [type="search"]::-webkit-search-decoration {
252
- -webkit-appearance: none;
253
- }
254
-
255
- /**
256
- * Change font properties to `inherit` in Safari.
257
- */
258
-
259
- ::-webkit-file-upload-button {
260
- -webkit-appearance: button;
261
- font: inherit;
262
- }
263
-
264
- /* Interactive
265
- ========================================================================== */
266
-
267
- /*
268
- * Add the correct display in all browsers.
269
- */
270
-
271
- summary {
272
- display: list-item;
273
- }
274
-
275
- /* Misc
276
- ========================================================================== */
277
-
278
- /**
279
- * Hide the template element and elements with [hidden] attribute.
280
- */
281
-
282
- template,
283
13
  [hidden] {
284
14
  display: none;
285
15
  }
@@ -0,0 +1,8 @@
1
+ @keyframes eds-spin {
2
+ from {
3
+ transform: translateY(-50%) rotate(0deg);
4
+ }
5
+ to {
6
+ transform: translateY(-50%) rotate(360deg);
7
+ }
8
+ }
@@ -2,4 +2,5 @@
2
2
  $eds-assets-base-path: '@eui/eds-styles/dist/assets' !default;
3
3
 
4
4
  @forward 'functions';
5
- @forward 'mixins';
5
+ @forward 'mixins';
6
+ @forward 'animations';
@@ -68,4 +68,100 @@ $default-feature: "min-width";
68
68
  outline-offset: $offset !important;
69
69
  border-radius: var(--eds-br-full) !important;
70
70
  }
71
- }
71
+ }
72
+
73
+
74
+ @mixin loading-indicator() {
75
+ align-items: center;
76
+ display: flex;
77
+
78
+ &::after,
79
+ &::before {
80
+ content: '';
81
+ height: var(--eds-sp-l);
82
+ position: absolute;
83
+ right: var(--eds-sp-s);
84
+ width: var(--eds-sp-l);
85
+ }
86
+
87
+ &::before {
88
+ border: var(--eds-sp-3xs) solid rgba(0, 0, 0, 0.35);
89
+ border-radius: 100%;
90
+ }
91
+
92
+ &::after {
93
+ animation: loading 0.6s linear;
94
+ animation-iteration-count: infinite;
95
+ border-color: var(--eui-c-white) transparent transparent;
96
+ border-radius: 100%;
97
+ border-style: solid;
98
+ border-width: var(--eds-sp-3xs);
99
+ box-shadow: 0 0 0 1px transparent;
100
+ }
101
+
102
+ &--sm::after,
103
+ &--sm::before {
104
+ height: var(--eds-sp-m);
105
+ width: var(--eds-sp-m);
106
+ }
107
+
108
+ @keyframes loading {
109
+ to { transform: rotate(360deg); }
110
+ }
111
+ }
112
+
113
+ // EDS Input mixin — common styles for text inputs, textareas, selects
114
+ @mixin eds-input() {
115
+ font: var(--eds-f-paragraph-m);
116
+ appearance: none;
117
+ background-color: var(--eds-c-surface-elevation);
118
+ border: var(--eds-bw-xs) solid var(--eds-c-border-neutral);
119
+ border-radius: var(--eds-br-s);
120
+ box-shadow: none;
121
+ color: var(--eds-c-foreground-default);
122
+ min-height: var(--eds-si-3xl);
123
+ padding: var(--eds-sp-xs) var(--eds-sp-s);
124
+ width: 100%;
125
+ @include eds-focus-visible();
126
+
127
+ &:not([hidden]) {
128
+ display: block;
129
+ }
130
+
131
+ &::placeholder {
132
+ color: var(--eds-c-foreground-subtler);
133
+ opacity: 1;
134
+ }
135
+
136
+ // Readonly
137
+ &[readonly] {
138
+ background-color: transparent;
139
+ border-color: transparent;
140
+ box-shadow: none;
141
+ padding-left: 0;
142
+ padding-right: 0;
143
+ pointer-events: none;
144
+ }
145
+
146
+ // Disabled
147
+ &:disabled:not([readonly]),
148
+ &--disabled:not([readonly]) {
149
+ background-color: var(--eds-c-suface-disabled);
150
+ border-color: var(--eds-c-border-disabled);
151
+ color: var(--eds-c-foreground-subtler);
152
+ pointer-events: none;
153
+ }
154
+
155
+ // Invalid
156
+ &--invalid {
157
+ border-color: var(--eds-c-border-critical);
158
+ }
159
+
160
+ &--loading {
161
+ padding-right: var(--eds-sp-7xl);
162
+
163
+ &-icon {
164
+ @include loading-indicator();
165
+ }
166
+ }
167
+ }
@@ -27,6 +27,8 @@ $typography-semantic-map: (
27
27
  ),
28
28
  label: (
29
29
  l: ( size: l, line-height: l, weight: regular ),
30
+ l-medium: ( size: l, line-height: l, weight: medium ),
31
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
30
32
  m: ( size: m, line-height: m, weight: regular ),
31
33
  m-medium: ( size: m, line-height: m, weight: medium ),
32
34
  m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
@@ -65,6 +67,8 @@ $typography-semantic-map: (
65
67
  ),
66
68
  label: (
67
69
  l: ( size: l, line-height: l, weight: regular ),
70
+ l-medium: ( size: l, line-height: l, weight: medium ),
71
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
68
72
  m: ( size: m, line-height: m, weight: regular ),
69
73
  m-medium: ( size: m, line-height: m, weight: medium ),
70
74
  m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
@@ -103,6 +107,8 @@ $typography-semantic-map: (
103
107
  ),
104
108
  label: (
105
109
  l: ( size: l, line-height: l, weight: regular ),
110
+ l-medium: ( size: l, line-height: l, weight: medium ),
111
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
106
112
  m: ( size: m, line-height: m, weight: regular ),
107
113
  m-medium: ( size: m, line-height: m, weight: medium ),
108
114
  m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
@@ -53,17 +53,27 @@
53
53
 
54
54
  @include base.media(maps.$eds-bkp-tablet) {
55
55
  @each $type, $typeDef in map.get(typography-semantic.$typography-semantic-map, 'tablet') {
56
+ $desktopTypeDef: map.get(map.get(typography-semantic.$typography-semantic-map, 'desktop'), $type);
56
57
  @each $size, $sizeDef in $typeDef {
57
- --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eds-f-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
58
+ $desktopSizeDef: map.get($desktopTypeDef, $size);
59
+ // Only emit override if size or line-height differs from desktop
60
+ @if map.get($sizeDef, 'size') != map.get($desktopSizeDef, 'size') or map.get($sizeDef, 'line-height') != map.get($desktopSizeDef, 'line-height') {
61
+ --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eds-f-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
62
+ }
58
63
  }
59
64
  }
60
65
  }
61
66
 
62
67
  @include base.media(maps.$eds-bkp-mobile) {
63
68
  @each $type, $typeDef in map.get(typography-semantic.$typography-semantic-map, 'mobile') {
69
+ $tabletTypeDef: map.get(map.get(typography-semantic.$typography-semantic-map, 'tablet'), $type);
64
70
  @each $size, $sizeDef in $typeDef {
65
- --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eds-f-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
71
+ $tabletSizeDef: map.get($tabletTypeDef, $size);
72
+ // Only emit override if size or line-height differs from tablet
73
+ @if map.get($sizeDef, 'size') != map.get($tabletSizeDef, 'size') or map.get($sizeDef, 'line-height') != map.get($tabletSizeDef, 'line-height') {
74
+ --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eds-f-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
75
+ }
66
76
  }
67
77
  }
68
78
  }
69
- }
79
+ }
@@ -0,0 +1,26 @@
1
+ @use '../01-base' as base;
2
+
3
+ html {
4
+ display: block;
5
+ height: 100%;
6
+ font-size: var(--eds-f-s-base);
7
+ line-height: var(--eds-base-line-height);
8
+ // @include base.eui-scrollbars();
9
+ }
10
+
11
+ body {
12
+ background-color: var(--eds-c-surface-elevation);
13
+ color: var(--eds-c-foreground);
14
+ font-family: var(--eds-f-family);
15
+ font-feature-settings: 'liga';
16
+ font-size: var(--eds-f-s-base);
17
+ -moz-font-smoothing: antialiased;
18
+ -webkit-font-smoothing: antialiased;
19
+ font-style: normal;
20
+ font-weight: normal;
21
+ height: 100%;
22
+ line-height: var(--eds-base-line-height);
23
+ margin: 0;
24
+ text-align: start;
25
+ text-rendering: optimizeLegibility;
26
+ }
@@ -1,26 +1,2 @@
1
- @use '../01-base' as base;
2
-
3
- html {
4
- display: block;
5
- height: 100%;
6
- font-size: var(--eds-f-s-base);
7
- line-height: var(--eds-base-line-height);
8
- // @include base.eui-scrollbars();
9
- }
10
-
11
- body {
12
- background-color: var(--eds-c-surface-elevation);
13
- color: var(--eds-c-foreground);
14
- font-family: var(--eds-f-family);
15
- font-feature-settings: 'liga';
16
- font-size: var(--eds-f-s-base);
17
- -moz-font-smoothing: antialiased;
18
- -webkit-font-smoothing: antialiased;
19
- font-style: normal;
20
- font-weight: normal;
21
- height: 100%;
22
- line-height: var(--eds-base-line-height);
23
- margin: 0;
24
- text-align: start;
25
- text-rendering: optimizeLegibility;
26
- }
1
+ @forward 'html-body';
2
+ @forward 'table';
@@ -0,0 +1,142 @@
1
+ .eui-21 {
2
+ table.eds-table-default {
3
+ background-color: transparent;
4
+ border-collapse: collapse;
5
+ border-spacing: 0;
6
+ color: var(--eds-c-foreground);
7
+ max-width: 100%;
8
+ overflow: auto;
9
+ position: relative;
10
+
11
+ th,
12
+ td {
13
+ &:first-child {
14
+ border-left: 0;
15
+ }
16
+
17
+ &:last-child {
18
+ border-right: 0;
19
+ }
20
+ }
21
+
22
+ // Overall settings (default)
23
+ thead > tr > th,
24
+ tbody > tr > td,
25
+ tfoot > tr > td {
26
+ vertical-align: middle;
27
+ }
28
+
29
+ tr > th,
30
+ tr > td {
31
+ padding: var(--eds-sp-s);
32
+ text-align: left;
33
+ }
34
+
35
+ thead {
36
+ th {
37
+ color: var(--eds-c-foreground-default);
38
+ padding: var(--eds-sp-m) var(--eds-sp-s);
39
+ vertical-align: middle;
40
+ font: var(--eds-f-label-m-semi-bold);
41
+ }
42
+
43
+ tr {
44
+ border-bottom: var(--eds-bw-s) solid var(--eds-c-border-divider);
45
+ border-top: 0;
46
+ background: var(--eds-c-surface-elevation);
47
+ }
48
+ }
49
+
50
+ // Striped & hovered tables by default
51
+ tbody {
52
+ tr:nth-of-type(odd) {
53
+ background-color: transparent;
54
+
55
+ &:hover {
56
+ background-color: var(--eds-c-surface-hover);
57
+ }
58
+ }
59
+
60
+ tr:nth-of-type(even) {
61
+ background-color: var(--eds-c-surface-elevation);
62
+
63
+ &:hover {
64
+ background-color: var(--eds-c-surface-hover);
65
+ }
66
+ }
67
+ }
68
+
69
+ tfoot {
70
+ tr {
71
+ background: var(--eds-c-surface-elevation);
72
+ }
73
+ }
74
+
75
+ tr {
76
+ border-bottom: var(--eds-bw-s) solid var(--eds-c-border-divider);
77
+ display: table-row;
78
+ }
79
+
80
+ &--no-zebra {
81
+ tbody {
82
+ tr:nth-of-type(odd) {
83
+ background-color: transparent;
84
+ }
85
+
86
+ tr:nth-of-type(even) {
87
+ background-color: transparent;
88
+ }
89
+ }
90
+ }
91
+
92
+ // Compact table
93
+ &--compact {
94
+ thead {
95
+ th {
96
+ padding: var(--eds-sp-xs) var(--eds-sp-s);
97
+ }
98
+ }
99
+
100
+ tr > td {
101
+ padding: var(--eds-sp-3xs) var(--eds-sp-s);
102
+ }
103
+ }
104
+
105
+ // Responsive table
106
+ &--responsive {
107
+ display: table;
108
+ width: 100%;
109
+
110
+ &--bordered {
111
+ border: 0;
112
+ }
113
+ }
114
+
115
+ // NoWrap table content
116
+ &--nowrap {
117
+ white-space: nowrap;
118
+
119
+ thead > tr > th,
120
+ tbody > tr > td,
121
+ tfoot > tr > td {
122
+ white-space: nowrap;
123
+ }
124
+ }
125
+
126
+ // Centered table
127
+ &--centered {
128
+ display: table;
129
+ margin: 0 auto;
130
+ width: auto;
131
+ }
132
+
133
+ // Middle aligned cells content
134
+ &--align-middle {
135
+ thead > tr > th,
136
+ tbody > tr > td,
137
+ tfoot > tr > td {
138
+ vertical-align: middle;
139
+ }
140
+ }
141
+ }
142
+ }