@cloudscape-design/components-themeable 3.0.1348 → 3.0.1350
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/button-dropdown/styles.scss +9 -6
- package/lib/internal/scss/expandable-section/styles.scss +42 -10
- package/lib/internal/scss/header/styles.scss +1 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/utils/theming.scss +45 -2
- package/lib/internal/scss/spinner/mixins.scss +1 -1
- package/lib/internal/scss/tree-view/tree-item/styles.scss +10 -7
- package/lib/internal/template/action-card/styles.css.js +17 -17
- package/lib/internal/template/action-card/styles.scoped.css +95 -98
- package/lib/internal/template/action-card/styles.selectors.js +17 -17
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +163 -175
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +83 -98
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +14 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +31 -44
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +14 -14
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +25 -28
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +25 -29
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/breadcrumb-group/styles.css.js +14 -14
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +24 -27
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +14 -14
- package/lib/internal/template/button/icon-helper.js +1 -1
- package/lib/internal/template/button/icon-helper.js.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +18 -18
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +28 -32
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +18 -18
- package/lib/internal/template/button-dropdown/styles.css.js +23 -23
- package/lib/internal/template/button-dropdown/styles.scoped.css +32 -39
- package/lib/internal/template/button-dropdown/styles.selectors.js +23 -23
- package/lib/internal/template/expandable-section/styles.css.js +43 -43
- package/lib/internal/template/expandable-section/styles.scoped.css +99 -164
- package/lib/internal/template/expandable-section/styles.selectors.js +43 -43
- package/lib/internal/template/header/styles.css.js +35 -35
- package/lib/internal/template/header/styles.scoped.css +54 -54
- package/lib/internal/template/header/styles.selectors.js +35 -35
- package/lib/internal/template/icon/generated/icons.js +202 -176
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/input/internal.js +1 -1
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +14 -14
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +29 -35
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +14 -14
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +72 -121
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/side-navigation/styles.css.js +64 -64
- package/lib/internal/template/side-navigation/styles.scoped.css +110 -400
- package/lib/internal/template/side-navigation/styles.selectors.js +64 -64
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +20 -20
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/status-indicator/styles.css.js +25 -25
- package/lib/internal/template/status-indicator/styles.scoped.css +47 -72
- package/lib/internal/template/status-indicator/styles.selectors.js +25 -25
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +26 -30
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -10
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +14 -24
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -10
- package/package.json +1 -1
|
@@ -105,18 +105,21 @@ $dropdown-trigger-icon-offset: 2px;
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
&.has-trigger-text {
|
|
109
|
+
/* this comment keeps the class in the style sheet */
|
|
110
|
+
@include theming.one-theme-only {
|
|
111
|
+
& > .trigger-button {
|
|
112
|
+
padding-inline: calc(#{awsui.$space-xs} + #{$dropdown-trigger-icon-offset});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
108
117
|
@include theming.one-theme-only {
|
|
109
118
|
& > .trigger-button {
|
|
110
119
|
// Resets the padding-inline-end override applied by .visual-refresh above,
|
|
111
120
|
// so both sides stay at $space-xs - $dropdown-trigger-icon-offset.
|
|
112
121
|
padding-inline: calc(#{awsui.$space-xs} - #{$dropdown-trigger-icon-offset});
|
|
113
122
|
}
|
|
114
|
-
|
|
115
|
-
&.has-trigger-text {
|
|
116
|
-
& > .trigger-button {
|
|
117
|
-
padding-inline: calc(#{awsui.$space-xs} + #{$dropdown-trigger-icon-offset});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
|
|
@@ -31,6 +31,10 @@ $icon-offset-container: awsui.$space-xxs;
|
|
|
31
31
|
$icon-total-space-normal: calc(#{$icon-width-normal} + #{$icon-margin-left} + #{$icon-margin-right-normal});
|
|
32
32
|
$icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{$icon-margin-right-medium});
|
|
33
33
|
|
|
34
|
+
// Extra inline padding that widens the navigation caret pointer target to 24px (WCAG 2.5.8).
|
|
35
|
+
$nav-caret-pad-normal: calc(24px - #{$icon-width-normal});
|
|
36
|
+
$nav-caret-pad-one-theme: 12px; // 24px minus the one-theme x-small (12px) icon
|
|
37
|
+
|
|
34
38
|
.root {
|
|
35
39
|
@include styles.styles-reset;
|
|
36
40
|
@include styles.text-wrapping;
|
|
@@ -267,6 +271,27 @@ $icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{
|
|
|
267
271
|
text-decoration: none;
|
|
268
272
|
flex-direction: column;
|
|
269
273
|
|
|
274
|
+
// Widen the pointer target to 24px (WCAG 2.5.8) with inline padding and an
|
|
275
|
+
// equal negative margin: the extra width grows away from the header label
|
|
276
|
+
// into the adjacent gutter, so neither the glyph nor the label moves and
|
|
277
|
+
// the label link keeps its own clicks. Vertical size already fills the row.
|
|
278
|
+
&:not(.icon-container-end) {
|
|
279
|
+
padding-inline-start: $nav-caret-pad-normal;
|
|
280
|
+
margin-inline-start: calc(#{$icon-margin-left} - #{$nav-caret-pad-normal});
|
|
281
|
+
@include theming.one-theme-only {
|
|
282
|
+
padding-inline-start: $nav-caret-pad-one-theme;
|
|
283
|
+
margin-inline-start: calc(-1 * #{$nav-caret-pad-one-theme});
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
&.icon-container-end {
|
|
287
|
+
padding-inline-end: $nav-caret-pad-normal;
|
|
288
|
+
margin-inline-end: calc(-1 * #{$nav-caret-pad-normal});
|
|
289
|
+
@include theming.one-theme-only {
|
|
290
|
+
padding-inline-end: $nav-caret-pad-one-theme;
|
|
291
|
+
margin-inline-end: calc(-1 * #{$nav-caret-pad-one-theme});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
270
295
|
&:hover {
|
|
271
296
|
color: awsui.$color-text-expandable-section-hover;
|
|
272
297
|
}
|
|
@@ -325,6 +350,7 @@ $icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{
|
|
|
325
350
|
|
|
326
351
|
// One-theme only: inner wrapper that collapses to 0 height via the grid-row track.
|
|
327
352
|
.content-inner {
|
|
353
|
+
/* this comment keeps the class in the style sheet */
|
|
328
354
|
@include theming.one-theme-only {
|
|
329
355
|
// overflow: visible lets negative-margin backgrounds (e.g. side-navigation
|
|
330
356
|
// active/hover/focus states) bleed past the inline edges.
|
|
@@ -338,20 +364,26 @@ $icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{
|
|
|
338
364
|
@include styles.with-motion {
|
|
339
365
|
transition: opacity $reveal-exit-motion;
|
|
340
366
|
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
341
369
|
|
|
342
|
-
|
|
343
|
-
|
|
370
|
+
.content-inner-expanded {
|
|
371
|
+
/* this comment keeps the class in the style sheet */
|
|
372
|
+
@include theming.one-theme-only {
|
|
373
|
+
opacity: 1;
|
|
344
374
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
375
|
+
// SHOW (expanded state): opacity fades in AFTER height has partially
|
|
376
|
+
// opened, creating a perceptible fade in the revealed space.
|
|
377
|
+
@include styles.with-motion {
|
|
378
|
+
transition: opacity $reveal-enter-delayed-motion;
|
|
350
379
|
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
351
382
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
383
|
+
.content-inner-settled {
|
|
384
|
+
/* this comment keeps the class in the style sheet */
|
|
385
|
+
@include theming.one-theme-only {
|
|
386
|
+
overflow-y: visible;
|
|
355
387
|
}
|
|
356
388
|
}
|
|
357
389
|
|
|
@@ -170,6 +170,7 @@
|
|
|
170
170
|
// Inside an expandable section (one-theme), tighten the heading's top padding by the button's
|
|
171
171
|
// top and bottom border widths so it aligns with the button content box.
|
|
172
172
|
.title-variant-h2.title-in-expandable-section {
|
|
173
|
+
/* this comment keeps the class in the style sheet */
|
|
173
174
|
@include theming.one-theme-only {
|
|
174
175
|
padding-block-start: calc(
|
|
175
176
|
#{space-heading-button-diff(awsui.$line-height-heading-l)} - 2 * #{awsui.$border-width-button}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
|
|
6
|
+
@use 'sass:list';
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
@use 'sass:string';
|
|
9
|
+
@use 'awsui:resolved-tokens' as resolved-tokens;
|
|
10
|
+
|
|
5
11
|
@mixin dark-mode-only($selector: '') {
|
|
6
12
|
@media not print {
|
|
7
13
|
/* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */
|
|
@@ -13,7 +19,44 @@
|
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
@mixin one-theme-only($selector: '') {
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
// When One Theme is not part of the components these selectors are not emitted.
|
|
23
|
+
@each $theme in resolved-tokens.$resolved-tokens {
|
|
24
|
+
@if map.get($theme, 'selector') == '.awsui-one-theme' {
|
|
25
|
+
:global(#{$selector}.awsui-one-theme) & {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
$expressive-motion-themes: list.append((), '.awsui-one-theme') !default;
|
|
33
|
+
|
|
34
|
+
/// Two ways to gate on the opt-in above:
|
|
35
|
+
/// - a function `has-expressive-motion` used to wrap `@keyframes`
|
|
36
|
+
/// - a mixin `expressive-motion-only` is the wrapper form for everything
|
|
37
|
+
|
|
38
|
+
@function has-expressive-motion() {
|
|
39
|
+
@each $theme in resolved-tokens.$resolved-tokens {
|
|
40
|
+
@if list.index($expressive-motion-themes, '#{string.unquote(map.get($theme, 'selector'))}') {
|
|
41
|
+
@return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/// Emits `@content` once, scoped to every opted-in theme's selector.
|
|
48
|
+
@mixin expressive-motion-only($selector: '') {
|
|
49
|
+
$selectors: ();
|
|
50
|
+
@each $theme in resolved-tokens.$resolved-tokens {
|
|
51
|
+
$theme-selector: string.unquote(map.get($theme, 'selector'));
|
|
52
|
+
@if list.index($expressive-motion-themes, '#{$theme-selector}') {
|
|
53
|
+
$selectors: list.append($selectors, ':global(#{$theme-selector}#{$selector}) &', comma);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@if list.length($selectors) > 0 {
|
|
57
|
+
// stylelint-disable-next-line @cloudscape-design/no-implicit-descendant -- every entry in the list already ends with `&`
|
|
58
|
+
#{$selectors} {
|
|
59
|
+
@content;
|
|
60
|
+
}
|
|
18
61
|
}
|
|
19
62
|
}
|
|
@@ -50,19 +50,22 @@ $item-toggle-column-width: 28px;
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
&.with-icon {
|
|
54
|
+
/* this comment keeps the class in the style sheet */
|
|
55
|
+
@include theming.one-theme-only {
|
|
56
|
+
align-items: baseline;
|
|
57
|
+
> .expand-toggle-wrapper > .toggle {
|
|
58
|
+
inset-block-start: 2px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
@include theming.one-theme-only {
|
|
54
64
|
align-items: center;
|
|
55
65
|
> .expand-toggle-wrapper > .toggle {
|
|
56
66
|
inset-inline-start: 0px;
|
|
57
67
|
inset-block-start: 3px;
|
|
58
68
|
}
|
|
59
|
-
|
|
60
|
-
&.with-icon {
|
|
61
|
-
align-items: baseline;
|
|
62
|
-
> .expand-toggle-wrapper > .toggle {
|
|
63
|
-
inset-block-start: 2px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
> .structured-item-wrapper {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"icon": "
|
|
6
|
-
"header-inner": "awsui_header-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"header": "
|
|
9
|
-
"body": "
|
|
10
|
-
"header-row": "awsui_header-
|
|
11
|
-
"description": "
|
|
12
|
-
"has-header": "awsui_has-
|
|
13
|
-
"header-button": "awsui_header-
|
|
14
|
-
"overlay-button": "awsui_overlay-
|
|
15
|
-
"variant-embedded": "awsui_variant-
|
|
16
|
-
"variant-default": "awsui_variant-
|
|
17
|
-
"inner-card": "awsui_inner-
|
|
18
|
-
"no-padding": "awsui_no-
|
|
19
|
-
"icon-vertical-align-center": "awsui_icon-vertical-align-
|
|
20
|
-
"icon-align-end": "awsui_icon-align-
|
|
4
|
+
"root": "awsui_root_16248_ukyke_161",
|
|
5
|
+
"icon": "awsui_icon_16248_ukyke_193",
|
|
6
|
+
"header-inner": "awsui_header-inner_16248_ukyke_209",
|
|
7
|
+
"disabled": "awsui_disabled_16248_ukyke_218",
|
|
8
|
+
"header": "awsui_header_16248_ukyke_209",
|
|
9
|
+
"body": "awsui_body_16248_ukyke_221",
|
|
10
|
+
"header-row": "awsui_header-row_16248_ukyke_225",
|
|
11
|
+
"description": "awsui_description_16248_ukyke_238",
|
|
12
|
+
"has-header": "awsui_has-header_16248_ukyke_244",
|
|
13
|
+
"header-button": "awsui_header-button_16248_ukyke_258",
|
|
14
|
+
"overlay-button": "awsui_overlay-button_16248_ukyke_259",
|
|
15
|
+
"variant-embedded": "awsui_variant-embedded_16248_ukyke_278",
|
|
16
|
+
"variant-default": "awsui_variant-default_16248_ukyke_290",
|
|
17
|
+
"inner-card": "awsui_inner-card_16248_ukyke_391",
|
|
18
|
+
"no-padding": "awsui_no-padding_16248_ukyke_398",
|
|
19
|
+
"icon-vertical-align-center": "awsui_icon-vertical-align-center_16248_ukyke_409",
|
|
20
|
+
"icon-align-end": "awsui_icon-align-end_16248_ukyke_545"
|
|
21
21
|
};
|
|
22
22
|
|