@eui/eds-styles 22.0.0-alpha.7 → 22.0.0-alpha.70
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/base/01-base/mixins.scss +98 -20
- package/dist/base/02-tokens/colors-primitive.scss +72 -767
- package/dist/base/02-tokens/colors-semantic-dark-theme.scss +101 -322
- package/dist/base/02-tokens/colors-semantic.scss +111 -322
- package/dist/base/02-tokens/dimensions-primitive.scss +10 -23
- package/dist/base/02-tokens/dimensions-semantic.scss +1 -0
- 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 +187 -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 +187 -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-dark.scss +43 -0
- package/dist/base/02-tokens/ecl/semantic/_shadow.scss +41 -0
- package/dist/base/02-tokens/ecl/semantic/_spacing.scss +60 -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 +29 -59
- package/dist/base/02-tokens/typography-semantic.scss +3 -122
- package/dist/base/03-vars/typography.scss +5 -3
- package/dist/base/04-elements/table.scss +2 -1
- package/dist/base/99-utilities/typography.scss +3 -0
- package/dist/eds-grid.css +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-utilities.css.map +1 -1
- package/dist/eds-vars.css +1 -1
- package/dist/eds-vars.css.map +1 -1
- package/dist/eds.css +1 -2
- package/dist/eds.css.map +1 -1
- package/package.json +1 -1
|
@@ -41,36 +41,40 @@ $default-feature: "min-width";
|
|
|
41
41
|
transition: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
@mixin eds-focus-
|
|
44
|
+
@mixin eds-focus-visible-critical($offset: -2px, $size: 2px) {
|
|
45
|
+
&:focus-visible:not([readonly]) {
|
|
46
|
+
outline: $size solid var(--eds-c-border-critical) !important;
|
|
47
|
+
outline-offset: $offset !important;
|
|
48
|
+
transition: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin eds-focus-ring($offset: 2px) {
|
|
45
53
|
&:focus:not([readonly]) {
|
|
46
54
|
outline: var(--eds-bw-s) solid var(--eds-c-border-primary) !important;
|
|
47
55
|
outline-offset: $offset !important;
|
|
48
|
-
border-radius: var(--eds-br-xs) !important;
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
|
-
@mixin eds-focus-ring-
|
|
58
|
+
@mixin eds-focus-ring-critical($offset: 2px) {
|
|
52
59
|
&:focus:not([readonly]) {
|
|
53
|
-
outline: var(--eds-bw-s) solid var(--eds-c-
|
|
60
|
+
outline: var(--eds-bw-s) solid var(--eds-c-focus-critical) !important; //EDS aligned
|
|
54
61
|
outline-offset: $offset !important;
|
|
55
|
-
border-radius: var(--eds-br-full) !important;
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
|
-
|
|
64
|
+
|
|
65
|
+
@mixin eds-focus-visible-ring($offset: 2px) {
|
|
59
66
|
&:focus-visible:not([readonly]) {
|
|
60
67
|
outline: var(--eds-bw-s) solid var(--eds-c-border-primary) !important;
|
|
61
68
|
outline-offset: $offset !important;
|
|
62
|
-
border-radius: var(--eds-br-xs) !important;
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
|
-
@mixin eds-focus-visible-ring-
|
|
71
|
+
@mixin eds-focus-visible-ring-critical($offset: 2px) {
|
|
66
72
|
&:focus-visible:not([readonly]) {
|
|
67
|
-
outline: var(--eds-bw-s) solid var(--eds-c-
|
|
73
|
+
outline: var(--eds-bw-s) solid var(--eds-c-focus-critical) !important; //EDS aligned
|
|
68
74
|
outline-offset: $offset !important;
|
|
69
|
-
border-radius: var(--eds-br-full) !important;
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
|
|
73
|
-
|
|
74
78
|
@mixin loading-indicator() {
|
|
75
79
|
align-items: center;
|
|
76
80
|
display: flex;
|
|
@@ -110,26 +114,42 @@ $default-feature: "min-width";
|
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
// EDS Input mixin — common styles for text inputs, textareas, selects
|
|
117
|
+
// EDS Input mixin — common styles for text inputs, textareas, selects.
|
|
118
|
+
//
|
|
119
|
+
// Size is parametrized through private custom properties that default to the
|
|
120
|
+
// `m` size. Components reflect a `size` host attribute and override these
|
|
121
|
+
// privates per `:host([size="s"])` / `:host([size="l"])` (see eds-input-size()).
|
|
114
122
|
@mixin eds-input() {
|
|
115
|
-
|
|
123
|
+
// Size-driven privates (defaults = `m`)
|
|
124
|
+
--_eds-input-height: var(--eds-si-4xl);
|
|
125
|
+
--_eds-input-pad-v: var(--eds-sp-xs);
|
|
126
|
+
--_eds-input-pad-h: var(--eds-sp-s);
|
|
127
|
+
--_eds-input-font: var(--eds-f-paragraph-m);
|
|
128
|
+
--_eds-input-font-weight: var(--eds-f-w-regular);
|
|
129
|
+
--_eds-input-placeholder-font: var(--eds-f-placeholder-m);
|
|
130
|
+
--_eds-input-placeholder-font-weight: var(--eds-f-w-light);
|
|
131
|
+
|
|
132
|
+
font: var(--_eds-input-font);
|
|
133
|
+
font-weight: var(--_eds-input-font-weight);
|
|
116
134
|
appearance: none;
|
|
117
135
|
background-color: var(--eds-c-surface-elevation);
|
|
118
136
|
border: var(--eds-bw-xs) solid var(--eds-c-border-neutral);
|
|
119
137
|
border-radius: var(--eds-br-s);
|
|
120
138
|
box-shadow: none;
|
|
121
139
|
color: var(--eds-c-foreground-default);
|
|
122
|
-
|
|
123
|
-
padding: var(--
|
|
140
|
+
height: var(--_eds-input-height);
|
|
141
|
+
padding: var(--_eds-input-pad-v) var(--_eds-input-pad-h);
|
|
124
142
|
width: 100%;
|
|
125
|
-
@include eds-focus-visible();
|
|
143
|
+
@include eds-focus-visible-ring();
|
|
126
144
|
|
|
127
145
|
&:not([hidden]) {
|
|
128
146
|
display: block;
|
|
129
147
|
}
|
|
130
148
|
|
|
131
149
|
&::placeholder {
|
|
132
|
-
color: var(--eds-c-foreground-
|
|
150
|
+
color: var(--eds-c-foreground-placeholder);
|
|
151
|
+
font: var(--_eds-input-placeholder-font);
|
|
152
|
+
font-weight: var(--_eds-input-placeholder-font-weight);
|
|
133
153
|
opacity: 1;
|
|
134
154
|
}
|
|
135
155
|
|
|
@@ -146,15 +166,20 @@ $default-feature: "min-width";
|
|
|
146
166
|
// Disabled
|
|
147
167
|
&:disabled:not([readonly]),
|
|
148
168
|
&--disabled:not([readonly]) {
|
|
149
|
-
background-color: var(--eds-c-
|
|
169
|
+
background-color: var(--eds-c-surface-disabled-subtle);
|
|
150
170
|
border-color: var(--eds-c-border-disabled);
|
|
151
|
-
color: var(--eds-c-foreground-
|
|
171
|
+
color: var(--eds-c-foreground-disabled);
|
|
152
172
|
pointer-events: none;
|
|
173
|
+
|
|
174
|
+
&::placeholder {
|
|
175
|
+
color: var(--eds-c-foreground-disabled); //EDS aligned
|
|
176
|
+
}
|
|
153
177
|
}
|
|
154
178
|
|
|
155
179
|
// Invalid
|
|
156
|
-
|
|
180
|
+
&[invalid] {
|
|
157
181
|
border-color: var(--eds-c-border-critical);
|
|
182
|
+
@include eds-focus-visible-ring-critical();
|
|
158
183
|
}
|
|
159
184
|
|
|
160
185
|
&--loading {
|
|
@@ -165,3 +190,56 @@ $default-feature: "min-width";
|
|
|
165
190
|
}
|
|
166
191
|
}
|
|
167
192
|
}
|
|
193
|
+
|
|
194
|
+
// EDS Input size overrides — applies the `s` / `l` size privates.
|
|
195
|
+
// Call inside a component's `:host` scope (after `eds-input()`); it emits the
|
|
196
|
+
// `[input-size="s"]` / `[input-size="l"]` branches. The size variant is
|
|
197
|
+
// reflected as the `input-size` host attribute (NOT `size`, which is reserved
|
|
198
|
+
// for the native `<select size>` / `<input size>` DOM attribute). The `m` size
|
|
199
|
+
// is the default already set by `eds-input()`, so no `[input-size="m"]` branch
|
|
200
|
+
// is needed.
|
|
201
|
+
@mixin eds-input-size() {
|
|
202
|
+
&[input-size="s"] {
|
|
203
|
+
--_eds-input-height: calc(var(--eds-si-3xl) + var(--eds-si-2xs)); // 36px
|
|
204
|
+
--_eds-input-pad-v: var(--eds-sp-2xs);
|
|
205
|
+
--_eds-input-pad-h: var(--eds-sp-s);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&[input-size="l"] {
|
|
209
|
+
--_eds-input-height: var(--eds-si-6xl); // 48px
|
|
210
|
+
--_eds-input-pad-v: var(--eds-sp-s);
|
|
211
|
+
--_eds-input-pad-h: var(--eds-sp-m);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@mixin eds-input-hover() {
|
|
216
|
+
&:hover:not([aria-disabled="true"]):not(:disabled) {
|
|
217
|
+
// box-shadow: var(--eds-sh-1);
|
|
218
|
+
|
|
219
|
+
&:not([aria-disabled="true"]):not(:checked):not(:disabled):not([readonly]):not([indeterminate="true"]):not([invalid="true"]):not([invalid]) {
|
|
220
|
+
border-color: var(--eds-c-border); //EDS aligned
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// checkbox
|
|
224
|
+
&.eds-checkbox {
|
|
225
|
+
&:checked:not([readonly]):not([invalid="true"]),
|
|
226
|
+
&[checked="true"]:not([readonly]):not([invalid="true"]),
|
|
227
|
+
&[indeterminate="true"]:not([readonly]) {
|
|
228
|
+
background-color: var(--eds-c-surface-primary--hover);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
//radio
|
|
233
|
+
&.eds-radio {
|
|
234
|
+
&:checked:not([readonly]):not([data-readonly]):not([invalid="true"]):not([invalid]) {
|
|
235
|
+
background-color: var(--eds-c-surface-elevation);
|
|
236
|
+
border-color: var(--eds-c-border-primary--hover);
|
|
237
|
+
|
|
238
|
+
// Darken the inner dot on hover (Figma #0035bf).
|
|
239
|
+
&::before {
|
|
240
|
+
background-color: var(--eds-c-surface-primary--hover);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|