@cloudscape-design/components 3.0.904 → 3.0.906
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/icon/generated/icons.d.ts +2 -0
- package/icon/generated/icons.d.ts.map +1 -1
- package/icon/generated/icons.js +4 -0
- package/icon/generated/icons.js.map +1 -1
- package/icon/interfaces.d.ts +1 -1
- package/icon/interfaces.d.ts.map +1 -1
- package/icon/interfaces.js.map +1 -1
- package/icon/styles.css.js +39 -38
- package/icon/styles.scoped.css +85 -83
- package/icon/styles.selectors.js +39 -38
- package/internal/base-component/styles.scoped.css +21 -14
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.js +3 -3
- package/internal/generated/theming/index.cjs +35 -35
- package/internal/generated/theming/index.js +35 -35
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/segmented-control/internal-segmented-control.js +5 -1
- package/segmented-control/internal-segmented-control.js.map +1 -1
- package/segmented-control/segment.d.ts.map +1 -1
- package/segmented-control/segment.js +3 -1
- package/segmented-control/segment.js.map +1 -1
- package/segmented-control/styles.css.js +16 -15
- package/segmented-control/styles.scoped.css +104 -81
- package/segmented-control/styles.selectors.js +16 -15
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -158,7 +158,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
158
158
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
159
159
|
SPDX-License-Identifier: Apache-2.0
|
|
160
160
|
*/
|
|
161
|
-
.
|
|
161
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9) {
|
|
162
162
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
163
163
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
164
164
|
word-wrap: break-word;
|
|
@@ -168,121 +168,130 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
168
168
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
169
169
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
170
170
|
letter-spacing: 0.25px;
|
|
171
|
-
border-block: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-segment-default-qegins, #424650);
|
|
172
|
-
border-inline: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-segment-default-qegins, #424650);
|
|
173
171
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
174
|
-
padding-inline: var(--space-button-horizontal-8jxzea, 20px);
|
|
175
|
-
border-inline-end-width: 0;
|
|
172
|
+
padding-inline: calc(var(--space-button-horizontal-8jxzea, 20px) - var(--space-static-xxs-82cdfi, 4px));
|
|
176
173
|
background: var(--color-background-segment-default-voaiuw, #ffffff);
|
|
177
174
|
color: var(--color-text-segment-default-iib3us, #424650);
|
|
178
175
|
overflow: visible;
|
|
176
|
+
border-start-start-radius: var(--border-radius-button-ypmfry, 20px);
|
|
177
|
+
border-start-end-radius: var(--border-radius-button-ypmfry, 20px);
|
|
178
|
+
border-end-start-radius: var(--border-radius-button-ypmfry, 20px);
|
|
179
|
+
border-end-end-radius: var(--border-radius-button-ypmfry, 20px);
|
|
180
|
+
position: relative;
|
|
181
|
+
block-size: calc(100% - var(--space-static-xxs-82cdfi, 4px));
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
border-inline: none;
|
|
185
|
+
border-block: none;
|
|
179
186
|
}
|
|
180
|
-
.
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
.awsui_segment_8cbea_m0ww2_161:not(#\9):nth-child(1) {
|
|
184
|
-
grid-column: 1;
|
|
185
|
-
-ms-grid-column: 1;
|
|
186
|
-
}
|
|
187
|
-
.awsui_segment_8cbea_m0ww2_161:not(#\9):nth-child(2) {
|
|
188
|
-
grid-column: 2;
|
|
189
|
-
-ms-grid-column: 2;
|
|
190
|
-
}
|
|
191
|
-
.awsui_segment_8cbea_m0ww2_161:not(#\9):nth-child(3) {
|
|
192
|
-
grid-column: 3;
|
|
193
|
-
-ms-grid-column: 3;
|
|
194
|
-
}
|
|
195
|
-
.awsui_segment_8cbea_m0ww2_161:not(#\9):nth-child(4) {
|
|
196
|
-
grid-column: 4;
|
|
197
|
-
-ms-grid-column: 4;
|
|
187
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):not(.awsui_refresh_8cbea_iu5r7_187) {
|
|
188
|
+
block-size: calc(100% - var(--space-static-xxs-82cdfi, 4px) - 2 * var(--border-width-field-h1g7tw, 2px));
|
|
198
189
|
}
|
|
199
|
-
.
|
|
200
|
-
|
|
201
|
-
-ms-grid-column: 5;
|
|
190
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):focus {
|
|
191
|
+
outline: none;
|
|
202
192
|
}
|
|
203
|
-
.
|
|
204
|
-
|
|
205
|
-
-
|
|
193
|
+
.awsui_segment_8cbea_iu5r7_161.awsui_disabled_8cbea_iu5r7_193:not(#\9) {
|
|
194
|
+
background: var(--color-background-segment-disabled-9tsgp1, #ffffff);
|
|
195
|
+
border-color: var(--color-border-segment-disabled-jfhyf7, #424650);
|
|
196
|
+
color: var(--color-text-interactive-disabled-f5b4z5, #b4b4bb);
|
|
206
197
|
}
|
|
207
|
-
body[data-awsui-focus-visible=true] .
|
|
198
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_iu5r7_161:not(#\9):focus {
|
|
208
199
|
position: relative;
|
|
209
200
|
}
|
|
210
|
-
body[data-awsui-focus-visible=true] .
|
|
201
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_iu5r7_161:not(#\9):focus {
|
|
211
202
|
outline: 2px dotted transparent;
|
|
212
|
-
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-
|
|
203
|
+
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px) - 1px);
|
|
213
204
|
}
|
|
214
|
-
body[data-awsui-focus-visible=true] .
|
|
205
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_iu5r7_161:not(#\9):focus::before {
|
|
215
206
|
content: " ";
|
|
216
207
|
display: block;
|
|
217
208
|
position: absolute;
|
|
218
|
-
inset-inline-start: calc(-1 * var(--space-segmented-control-focus-outline-gutter-
|
|
219
|
-
inset-block-start: calc(-1 * var(--space-segmented-control-focus-outline-gutter-
|
|
220
|
-
inline-size: calc(100% + var(--space-segmented-control-focus-outline-gutter-
|
|
221
|
-
block-size: calc(100% + var(--space-segmented-control-focus-outline-gutter-
|
|
209
|
+
inset-inline-start: calc(-1 * var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px));
|
|
210
|
+
inset-block-start: calc(-1 * var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px));
|
|
211
|
+
inline-size: calc(100% + var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px) + var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px));
|
|
212
|
+
block-size: calc(100% + var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px) + var(--space-segmented-control-focus-outline-gutter-ublqj7, 6px));
|
|
222
213
|
border-start-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
223
214
|
border-start-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
224
215
|
border-end-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
225
216
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
226
217
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
227
218
|
}
|
|
228
|
-
.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
219
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):not(:last-child)::after {
|
|
220
|
+
content: "";
|
|
221
|
+
position: absolute;
|
|
222
|
+
inset-inline-end: calc(-1 * (var(--space-static-xxs-82cdfi, 4px) + 1px));
|
|
223
|
+
block-size: calc(100% - (var(--space-static-xxs-82cdfi, 4px) + var(--space-static-xxxs-3gu9os, 2px)) * 2);
|
|
224
|
+
min-block-size: calc(var(--line-height-body-m-30ar75, 20px) - var(--space-static-xxs-82cdfi, 4px) * 2);
|
|
225
|
+
inline-size: 1px;
|
|
226
|
+
background: var(--color-border-input-default-l7v83d, #8c8c94);
|
|
227
|
+
z-index: 1;
|
|
234
228
|
}
|
|
235
|
-
.
|
|
236
|
-
|
|
237
|
-
border-start-end-radius: 0;
|
|
238
|
-
border-end-start-radius: var(--border-radius-button-ypmfry, 20px);
|
|
239
|
-
border-end-end-radius: 0;
|
|
229
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):not(.awsui_refresh_8cbea_iu5r7_187):not(:last-child)::after {
|
|
230
|
+
inset-inline-end: calc(-1 * var(--space-static-xxs-82cdfi, 4px));
|
|
240
231
|
}
|
|
241
|
-
.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
color: var(--color-text-interactive-disabled-f5b4z5, #b4b4bb);
|
|
232
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(1) {
|
|
233
|
+
grid-column: 1;
|
|
234
|
+
-ms-grid-column: 1;
|
|
245
235
|
}
|
|
246
|
-
.
|
|
247
|
-
|
|
236
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(2) {
|
|
237
|
+
grid-column: 2;
|
|
238
|
+
-ms-grid-column: 2;
|
|
248
239
|
}
|
|
249
|
-
.
|
|
240
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(3) {
|
|
241
|
+
grid-column: 3;
|
|
242
|
+
-ms-grid-column: 3;
|
|
243
|
+
}
|
|
244
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(4) {
|
|
245
|
+
grid-column: 4;
|
|
246
|
+
-ms-grid-column: 4;
|
|
247
|
+
}
|
|
248
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(5) {
|
|
249
|
+
grid-column: 5;
|
|
250
|
+
-ms-grid-column: 5;
|
|
251
|
+
}
|
|
252
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):nth-child(6) {
|
|
253
|
+
grid-column: 6;
|
|
254
|
+
-ms-grid-column: 6;
|
|
255
|
+
}
|
|
256
|
+
.awsui_segment_8cbea_iu5r7_161.awsui_selected_8cbea_iu5r7_256:not(#\9) {
|
|
250
257
|
background: var(--color-background-segment-active-bkvyiy, #006ce0);
|
|
251
|
-
border-color: var(--color-border-segment-active-0hw1oi, #424650);
|
|
252
258
|
color: var(--color-text-segment-active-fc6owc, #ffffff);
|
|
253
259
|
}
|
|
254
|
-
.
|
|
260
|
+
.awsui_segment_8cbea_iu5r7_161.awsui_selected_8cbea_iu5r7_256 + .awsui_segment_8cbea_iu5r7_161:not(#\9), .awsui_segment_8cbea_iu5r7_161.awsui_selected_8cbea_iu5r7_256 + .awsui_segment_8cbea_iu5r7_161.awsui_disabled_8cbea_iu5r7_193:not(#\9) {
|
|
255
261
|
border-inline-start-color: var(--color-border-segment-active-0hw1oi, #424650);
|
|
256
262
|
}
|
|
257
|
-
.
|
|
258
|
-
|
|
259
|
-
|
|
263
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):not(.awsui_disabled_8cbea_iu5r7_193) + .awsui_segment_8cbea_iu5r7_161.awsui_disabled_8cbea_iu5r7_193 {
|
|
264
|
+
border-inline-start-color: var(--color-border-segment-default-qegins, #424650);
|
|
265
|
+
}
|
|
266
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):hover:not(.awsui_selected_8cbea_iu5r7_256):not(.awsui_disabled_8cbea_iu5r7_193):not(:focus) {
|
|
267
|
+
background: var(--color-background-segment-hover-jancts, #f0fbff);
|
|
268
|
+
color: var(--color-text-segment-hover-yckzgd, #002b66);
|
|
260
269
|
border-color: var(--color-border-segment-hover-cs1sac, #424650);
|
|
261
270
|
cursor: pointer;
|
|
262
271
|
}
|
|
263
|
-
.
|
|
272
|
+
.awsui_segment_8cbea_iu5r7_161:not(#\9):hover:not(.awsui_selected_8cbea_iu5r7_256):not(.awsui_disabled_8cbea_iu5r7_193):not(:focus) + .awsui_segment_8cbea_iu5r7_161:not(.awsui_selected_8cbea_iu5r7_256) {
|
|
264
273
|
border-inline-start-color: var(--color-border-segment-hover-cs1sac, #424650);
|
|
265
274
|
}
|
|
266
|
-
.
|
|
275
|
+
.awsui_segment_8cbea_iu5r7_161.awsui_selected_8cbea_iu5r7_256 + .awsui_segment_8cbea_iu5r7_161:not(#\9):hover:not(.awsui_selected_8cbea_iu5r7_256):not(.awsui_disabled_8cbea_iu5r7_193):not(:focus) {
|
|
267
276
|
border-inline-start-color: var(--color-border-segment-active-0hw1oi, #424650);
|
|
268
277
|
}
|
|
269
278
|
|
|
270
|
-
.
|
|
279
|
+
.awsui_icon_8cbea_iu5r7_279:not(#\9) {
|
|
271
280
|
/* used in test-utils */
|
|
272
281
|
}
|
|
273
282
|
|
|
274
|
-
.awsui_with-
|
|
283
|
+
.awsui_with-text_8cbea_iu5r7_283:not(#\9) {
|
|
275
284
|
position: relative;
|
|
276
285
|
inset-inline-start: calc(-1 * var(--space-xxs-p8yyaw, 4px));
|
|
277
286
|
margin-inline-end: var(--space-xxs-p8yyaw, 4px);
|
|
278
287
|
}
|
|
279
288
|
|
|
280
|
-
.awsui_with-no-
|
|
289
|
+
.awsui_with-no-text_8cbea_iu5r7_289:not(#\9) {
|
|
281
290
|
margin-inline: auto;
|
|
282
291
|
inset-inline: 0;
|
|
283
292
|
}
|
|
284
293
|
|
|
285
|
-
.
|
|
294
|
+
.awsui_root_8cbea_iu5r7_294:not(#\9) {
|
|
286
295
|
border-collapse: separate;
|
|
287
296
|
border-spacing: 0;
|
|
288
297
|
box-sizing: border-box;
|
|
@@ -315,44 +324,58 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_m0ww2_161:not(#\9):focu
|
|
|
315
324
|
-moz-osx-font-smoothing: auto;
|
|
316
325
|
}
|
|
317
326
|
|
|
318
|
-
.awsui_segment-
|
|
327
|
+
.awsui_segment-part_8cbea_iu5r7_326:not(#\9) {
|
|
319
328
|
display: inline-grid;
|
|
329
|
+
border-inline: solid var(--border-width-field-h1g7tw, 2px) var(--color-border-input-default-l7v83d, #8c8c94);
|
|
330
|
+
border-block: solid var(--border-width-field-h1g7tw, 2px) var(--color-border-input-default-l7v83d, #8c8c94);
|
|
331
|
+
border-start-start-radius: var(--border-radius-button-ypmfry, 20px);
|
|
332
|
+
border-start-end-radius: var(--border-radius-button-ypmfry, 20px);
|
|
333
|
+
border-end-start-radius: var(--border-radius-button-ypmfry, 20px);
|
|
334
|
+
border-end-end-radius: var(--border-radius-button-ypmfry, 20px);
|
|
335
|
+
align-items: center;
|
|
336
|
+
min-block-size: calc(var(--line-height-body-m-30ar75, 20px) + var(--space-static-xxs-82cdfi, 4px));
|
|
337
|
+
padding-inline: var(--space-static-xxxs-3gu9os, 2px);
|
|
338
|
+
gap: calc(var(--space-static-xxs-82cdfi, 4px) * 2 + 1px);
|
|
339
|
+
}
|
|
340
|
+
.awsui_segment-part_8cbea_iu5r7_326:not(#\9):not(.awsui_refresh_8cbea_iu5r7_187) {
|
|
341
|
+
padding-inline: calc(var(--space-static-xxxs-3gu9os, 2px) + 1px);
|
|
342
|
+
gap: calc(var(--space-static-xxs-82cdfi, 4px) * 2 - 1px);
|
|
320
343
|
}
|
|
321
344
|
@media (max-width: 688px) {
|
|
322
|
-
.awsui_segment-
|
|
345
|
+
.awsui_segment-part_8cbea_iu5r7_326:not(#\9) {
|
|
323
346
|
display: none;
|
|
324
347
|
}
|
|
325
348
|
}
|
|
326
349
|
|
|
327
|
-
.
|
|
350
|
+
.awsui_select_8cbea_iu5r7_256:not(#\9) {
|
|
328
351
|
display: none;
|
|
329
352
|
}
|
|
330
353
|
@media (max-width: 688px) {
|
|
331
|
-
.
|
|
354
|
+
.awsui_select_8cbea_iu5r7_256:not(#\9) {
|
|
332
355
|
display: block;
|
|
333
356
|
}
|
|
334
357
|
}
|
|
335
358
|
|
|
336
|
-
.awsui_segment-count-
|
|
337
|
-
grid-template-columns:
|
|
359
|
+
.awsui_segment-count-2_8cbea_iu5r7_359:not(#\9) {
|
|
360
|
+
grid-template-columns: repeat(2, auto);
|
|
338
361
|
}
|
|
339
362
|
|
|
340
|
-
.awsui_segment-count-
|
|
341
|
-
grid-template-columns:
|
|
363
|
+
.awsui_segment-count-3_8cbea_iu5r7_363:not(#\9) {
|
|
364
|
+
grid-template-columns: repeat(3, auto);
|
|
342
365
|
}
|
|
343
366
|
|
|
344
|
-
.awsui_segment-count-
|
|
345
|
-
grid-template-columns:
|
|
367
|
+
.awsui_segment-count-4_8cbea_iu5r7_367:not(#\9) {
|
|
368
|
+
grid-template-columns: repeat(4, auto);
|
|
346
369
|
}
|
|
347
370
|
|
|
348
|
-
.awsui_segment-count-
|
|
349
|
-
grid-template-columns:
|
|
371
|
+
.awsui_segment-count-5_8cbea_iu5r7_371:not(#\9) {
|
|
372
|
+
grid-template-columns: repeat(5, auto);
|
|
350
373
|
}
|
|
351
374
|
|
|
352
|
-
.awsui_segment-count-
|
|
353
|
-
grid-template-columns:
|
|
375
|
+
.awsui_segment-count-6_8cbea_iu5r7_375:not(#\9) {
|
|
376
|
+
grid-template-columns: repeat(6, auto);
|
|
354
377
|
}
|
|
355
378
|
|
|
356
|
-
.awsui_disabled-reason-
|
|
379
|
+
.awsui_disabled-reason-tooltip_8cbea_iu5r7_379:not(#\9) {
|
|
357
380
|
/* used in test-utils or tests */
|
|
358
381
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"with-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"segment-count-
|
|
16
|
-
"segment-count-
|
|
17
|
-
"segment-count-
|
|
18
|
-
"segment-count-
|
|
19
|
-
"
|
|
5
|
+
"segment": "awsui_segment_8cbea_iu5r7_161",
|
|
6
|
+
"refresh": "awsui_refresh_8cbea_iu5r7_187",
|
|
7
|
+
"disabled": "awsui_disabled_8cbea_iu5r7_193",
|
|
8
|
+
"selected": "awsui_selected_8cbea_iu5r7_256",
|
|
9
|
+
"icon": "awsui_icon_8cbea_iu5r7_279",
|
|
10
|
+
"with-text": "awsui_with-text_8cbea_iu5r7_283",
|
|
11
|
+
"with-no-text": "awsui_with-no-text_8cbea_iu5r7_289",
|
|
12
|
+
"root": "awsui_root_8cbea_iu5r7_294",
|
|
13
|
+
"segment-part": "awsui_segment-part_8cbea_iu5r7_326",
|
|
14
|
+
"select": "awsui_select_8cbea_iu5r7_256",
|
|
15
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_iu5r7_359",
|
|
16
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_iu5r7_363",
|
|
17
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_iu5r7_367",
|
|
18
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_iu5r7_371",
|
|
19
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_iu5r7_375",
|
|
20
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_iu5r7_379"
|
|
20
21
|
};
|
|
21
22
|
|