@cloudscape-design/components-themeable 3.0.187 → 3.0.189
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/collection-preferences/visible-content.scss +1 -0
- package/lib/internal/scss/flashbar/collapsible.motion.scss +23 -0
- package/lib/internal/scss/flashbar/collapsible.scss +224 -0
- package/lib/internal/scss/flashbar/motion.scss +1 -2
- package/lib/internal/scss/flashbar/styles.scss +12 -147
- package/lib/internal/template/collection-preferences/styles.css.js +20 -20
- package/lib/internal/template/collection-preferences/styles.scoped.css +22 -21
- package/lib/internal/template/collection-preferences/styles.selectors.js +20 -20
- package/lib/internal/template/collection-preferences/visible-content.js +1 -1
- package/lib/internal/template/collection-preferences/visible-content.js.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +4 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.js +209 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -0
- package/lib/internal/template/flashbar/common.d.ts +19 -0
- package/lib/internal/template/flashbar/common.d.ts.map +1 -0
- package/lib/internal/template/flashbar/common.js +63 -0
- package/lib/internal/template/flashbar/common.js.map +1 -0
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +8 -3
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/index.d.ts +2 -2
- package/lib/internal/template/flashbar/index.d.ts.map +1 -1
- package/lib/internal/template/flashbar/index.js +14 -159
- package/lib/internal/template/flashbar/index.js.map +1 -1
- package/lib/internal/template/flashbar/interfaces.d.ts +14 -7
- package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/internal/analytics.d.ts +5 -0
- package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -0
- package/lib/internal/template/flashbar/internal/analytics.js +29 -0
- package/lib/internal/template/flashbar/internal/analytics.js.map +1 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts +4 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js +70 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -0
- package/lib/internal/template/flashbar/styles.css.js +43 -33
- package/lib/internal/template/flashbar/styles.scoped.css +329 -225
- package/lib/internal/template/flashbar/styles.selectors.js +43 -33
- package/lib/internal/template/flashbar/utils.d.ts +17 -0
- package/lib/internal/template/flashbar/utils.d.ts.map +1 -0
- package/lib/internal/template/flashbar/utils.js +95 -0
- package/lib/internal/template/flashbar/utils.js.map +1 -0
- package/lib/internal/template/internal/animate.d.ts +11 -0
- package/lib/internal/template/internal/animate.d.ts.map +1 -0
- package/lib/internal/template/internal/animate.js +104 -0
- package/lib/internal/template/internal/animate.js.map +1 -0
- package/lib/internal/template/internal/base-component/styles.scoped.css +2 -0
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +11 -0
- package/lib/internal/template/internal/generated/theming/index.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
@use '../internal/styles' as styles;
|
|
6
|
+
@use '../internal/styles/tokens' as tokens;
|
|
7
|
+
|
|
8
|
+
.stack {
|
|
9
|
+
> .animation-running > .item,
|
|
10
|
+
> .animation-running > .flash-list-item,
|
|
11
|
+
> .animation-running.toggle {
|
|
12
|
+
@include styles.with-motion {
|
|
13
|
+
transition-timing-function: tokens.$motion-easing-refresh-only-a;
|
|
14
|
+
transition-duration: tokens.$motion-duration-refresh-only-fast;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
> .collapsed.animation-ready > .expanded-only,
|
|
18
|
+
> .collapsed.animation-running > .expanded-only {
|
|
19
|
+
// When collapsing, hide the exiting items right away, otherwise our animation calculations will be off
|
|
20
|
+
// because of React Transition keeping the elements in the DOM for a bit longer.
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
6
|
+
@use '../internal/hooks/focus-visible' as focus-visible;
|
|
7
|
+
@use '../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../internal/styles' as styles;
|
|
9
|
+
@use '../internal/styles/typography' as typography;
|
|
10
|
+
@use './collapsible.motion';
|
|
11
|
+
|
|
12
|
+
.stack {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: 1fr minmax(70px, auto) 1fr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.stack > .expanded {
|
|
18
|
+
grid-column: 1 / 4;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin stacked-flash-z-index {
|
|
22
|
+
// The first item should have the highest z index than the second item, and so forth...
|
|
23
|
+
z-index: calc(var(#{custom-props.$flashbarStackDepth}) - var(#{custom-props.$flashbarStackIndex}));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
The collapsed stack is a dynamic grid that creates the necessary number of
|
|
28
|
+
rows and columns based on the number of items passed to CSS via the
|
|
29
|
+
`flashbarStackDepth` custom property. Assuming there are three flashbar items,
|
|
30
|
+
the grid layout will be:
|
|
31
|
+
|
|
32
|
+
[item 1 start] [10px] [10px] [fractional unit] [10px] [10px] [item 1 end]
|
|
33
|
+
[10px] [item 2 start] [10px] [fractional unit] [10px] [item 2 end] [10px]
|
|
34
|
+
[10px] [10px] [item 3 start] [fractional unit] [item 3 end] [10px] [10px]
|
|
35
|
+
*/
|
|
36
|
+
.stack > .collapsed {
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-column: 1 / 4;
|
|
39
|
+
grid-template-columns:
|
|
40
|
+
repeat(var(#{custom-props.$flashbarStackDepth}), 10px)
|
|
41
|
+
1fr
|
|
42
|
+
repeat(var(#{custom-props.$flashbarStackDepth}), 10px);
|
|
43
|
+
row-gap: 8px;
|
|
44
|
+
z-index: 0;
|
|
45
|
+
|
|
46
|
+
> .item {
|
|
47
|
+
// Each item will have a unique custom property `flashbarStackIndex`
|
|
48
|
+
// Add +1 is because the array is indexed at zero but grid positions are indexed at 1.
|
|
49
|
+
grid-column-start: calc(var(#{custom-props.$flashbarStackIndex}) + 1);
|
|
50
|
+
|
|
51
|
+
// Add +1 to include the fractional unit in the column count
|
|
52
|
+
// Add +1 because the array indexed at zero but grid positions at indexed at 1.
|
|
53
|
+
grid-column-end: calc(
|
|
54
|
+
var(#{custom-props.$flashbarStackDepth}) * 2 + 1 - var(#{custom-props.$flashbarStackIndex}) + 1
|
|
55
|
+
);
|
|
56
|
+
grid-row-start: 1;
|
|
57
|
+
grid-row-end: calc(var(#{custom-props.$flashbarStackIndex}) + 2);
|
|
58
|
+
|
|
59
|
+
@include stacked-flash-z-index;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
> .item:not(:first-of-type) {
|
|
63
|
+
align-self: end;
|
|
64
|
+
/* Give placeholder elements in the stacked state the height of a notification
|
|
65
|
+
with one single line of text.
|
|
66
|
+
This makes them look better during the collapse animation, in which they are already empty.
|
|
67
|
+
*/
|
|
68
|
+
min-height: calc(
|
|
69
|
+
#{awsui.$font-body-m-line-height} + (
|
|
70
|
+
#{awsui.$space-scaled-xs} + #{awsui.$border-field-width} + #{awsui.$space-scaled-xxs}
|
|
71
|
+
) * 2
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
> .item:not(:last-child) > .flash,
|
|
76
|
+
> .item.flash {
|
|
77
|
+
box-shadow: awsui.$shadow-flash-collapsed;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.stack > .expanded.animation-running > .flash-list-item {
|
|
82
|
+
position: relative;
|
|
83
|
+
@include stacked-flash-z-index;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin toggle-button-layout($top-overlap-collapsed, $border-width) {
|
|
87
|
+
$margin-top-when-collapsed: -$top-overlap-collapsed;
|
|
88
|
+
$line-height: awsui.$font-body-m-line-height;
|
|
89
|
+
$padding-vertical: styles.$control-padding-vertical;
|
|
90
|
+
$margin-top-when-expanded: -12px;
|
|
91
|
+
|
|
92
|
+
padding-top: $padding-vertical;
|
|
93
|
+
padding-bottom: $padding-vertical;
|
|
94
|
+
|
|
95
|
+
&:not(.expanded) {
|
|
96
|
+
margin-top: #{$margin-top-when-collapsed};
|
|
97
|
+
margin-bottom: calc(
|
|
98
|
+
#{-$margin-top-when-collapsed} - (#{$line-height} + 2 * (#{$padding-vertical} + #{$border-width}))
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.expanded {
|
|
103
|
+
margin-top: #{$margin-top-when-expanded};
|
|
104
|
+
margin-bottom: calc(
|
|
105
|
+
#{-$margin-top-when-expanded} - (#{$line-height} + 2 * (#{$padding-vertical} + #{$border-width}))
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.stack > .toggle {
|
|
111
|
+
@include styles.text-wrapping;
|
|
112
|
+
|
|
113
|
+
background: awsui.$color-background-layout-toggle-default;
|
|
114
|
+
border-color: awsui.$color-background-layout-toggle-default;
|
|
115
|
+
border-radius: awsui.$border-radius-button;
|
|
116
|
+
border-style: solid;
|
|
117
|
+
box-shadow: awsui.$shadow-panel-toggle;
|
|
118
|
+
color: awsui.$color-text-layout-toggle;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
display: flex;
|
|
121
|
+
grid-column: 2;
|
|
122
|
+
grid-row: 2;
|
|
123
|
+
gap: awsui.$space-xs;
|
|
124
|
+
letter-spacing: awsui.$font-button-letter-spacing;
|
|
125
|
+
margin-left: auto;
|
|
126
|
+
margin-right: auto;
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
z-index: 1;
|
|
129
|
+
|
|
130
|
+
> .status > .header,
|
|
131
|
+
> .status > .item-count,
|
|
132
|
+
> .button {
|
|
133
|
+
@include typography.default-text-style;
|
|
134
|
+
color: awsui.$color-text-layout-toggle;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
margin-bottom: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
> .status {
|
|
141
|
+
> .header {
|
|
142
|
+
font-weight: awsui.$font-button-weight;
|
|
143
|
+
display: inline;
|
|
144
|
+
margin-right: awsui.$space-s;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
> .item-count {
|
|
148
|
+
margin-left: awsui.$space-xxs;
|
|
149
|
+
|
|
150
|
+
> .type-count {
|
|
151
|
+
margin-right: awsui.$space-s;
|
|
152
|
+
|
|
153
|
+
> .count-number {
|
|
154
|
+
margin-left: awsui.$space-xxs;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
background: awsui.$color-background-layout-toggle-hover;
|
|
162
|
+
border-color: awsui.$color-background-layout-toggle-hover;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:active {
|
|
166
|
+
background: awsui.$color-background-layout-toggle-active;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.visual-refresh {
|
|
170
|
+
$border-width: 2px;
|
|
171
|
+
// Amount of pixels that the element is pushed up to overlap the Flashbar (when collapsed)
|
|
172
|
+
$top-overlap-collapsed: 27px;
|
|
173
|
+
@include toggle-button-layout($top-overlap-collapsed, $border-width);
|
|
174
|
+
border-width: $border-width;
|
|
175
|
+
padding-left: awsui.$space-l;
|
|
176
|
+
padding-right: awsui.$space-l;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:not(.visual-refresh) {
|
|
180
|
+
$border-width: 1px;
|
|
181
|
+
// Amount of pixels that the element is pushed up to overlap the Flashbar (when collapsed)
|
|
182
|
+
$top-overlap-collapsed: 24px;
|
|
183
|
+
@include toggle-button-layout($top-overlap-collapsed, $border-width);
|
|
184
|
+
border-width: $border-width;
|
|
185
|
+
padding-left: awsui.$space-s;
|
|
186
|
+
padding-right: awsui.$space-s;
|
|
187
|
+
|
|
188
|
+
&:focus {
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:hover {
|
|
193
|
+
text-decoration: none;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
> .button {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
background: none;
|
|
200
|
+
border: 0 none;
|
|
201
|
+
|
|
202
|
+
> .icon {
|
|
203
|
+
@include styles.with-motion {
|
|
204
|
+
transition: transform awsui.$motion-duration-rotate-90 awsui.$motion-easing-rotate-90;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
&.expanded > .icon {
|
|
208
|
+
transform: rotate(180deg);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:focus {
|
|
212
|
+
outline: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@include focus-visible.when-visible {
|
|
216
|
+
@include styles.focus-highlight(0px);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Leave some space below the Flashbar, but only when it reaches the end of the page.
|
|
222
|
+
.stack.spaced-bottom {
|
|
223
|
+
padding-bottom: awsui.$space-xxl;
|
|
224
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@use '../internal/styles' as styles;
|
|
7
7
|
@use '../internal/styles/tokens' as tokens;
|
|
8
|
-
.flash-
|
|
8
|
+
.flash-with-motion {
|
|
9
9
|
$flashbar-translate-y-content: -8px;
|
|
10
10
|
$flashbar-translate-y: -20px;
|
|
11
11
|
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
$flash-button-wrapper-transition-delay: calc(tokens.$motion-duration-refresh-only-slow * 2 - 100ms);
|
|
16
16
|
|
|
17
17
|
&.enter {
|
|
18
|
-
position: absolute;
|
|
19
18
|
@include styles.with-motion {
|
|
20
19
|
opacity: 0;
|
|
21
20
|
transform: translateY($flashbar-translate-y);
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
@use '../internal/hooks/focus-visible' as focus-visible;
|
|
7
7
|
@use '../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '../internal/styles' as styles;
|
|
9
|
+
@use '../internal/styles/typography' as typography;
|
|
9
10
|
@use './motion';
|
|
11
|
+
@use './collapsible';
|
|
10
12
|
|
|
11
13
|
.flashbar {
|
|
12
14
|
position: relative;
|
|
@@ -53,8 +55,10 @@
|
|
|
53
55
|
padding: 0;
|
|
54
56
|
margin: 0;
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
&:not(.collapsed) {
|
|
59
|
+
> li:not(:last-child) {
|
|
60
|
+
margin-bottom: awsui.$space-xxxs;
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -62,22 +66,21 @@
|
|
|
62
66
|
display: flex;
|
|
63
67
|
flex-grow: 1;
|
|
64
68
|
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.flash-focus-container {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-width: 0;
|
|
65
75
|
|
|
66
76
|
&:focus {
|
|
67
77
|
outline: none;
|
|
68
78
|
}
|
|
69
|
-
|
|
70
79
|
@include focus-visible.when-visible {
|
|
71
80
|
@include styles.focus-highlight(awsui.$space-button-focus-outline-gutter);
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
75
|
-
.flash-focus-container {
|
|
76
|
-
display: flex;
|
|
77
|
-
flex: 1;
|
|
78
|
-
min-width: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
84
|
.flash-text {
|
|
82
85
|
margin: awsui.$border-field-width 0;
|
|
83
86
|
padding: awsui.$space-scaled-xxs awsui.$space-xxs;
|
|
@@ -145,141 +148,3 @@
|
|
|
145
148
|
.flash-type-info {
|
|
146
149
|
background-color: awsui.$color-background-notification-blue;
|
|
147
150
|
}
|
|
148
|
-
|
|
149
|
-
// `stackItems` feature beta test
|
|
150
|
-
|
|
151
|
-
.stack {
|
|
152
|
-
display: grid;
|
|
153
|
-
grid-template-columns: 1fr minmax(70px, auto) 1fr;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.stack > .expanded {
|
|
157
|
-
grid-column: 1 / 4;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/*
|
|
161
|
-
The collapsed stack is a dynamic grid that creates the necessary number of
|
|
162
|
-
rows and columns based on the number of items passed to CSS via the
|
|
163
|
-
`flashbarStackDepth` custom property. Assuming there are three flashbar items,
|
|
164
|
-
the grid layout will be:
|
|
165
|
-
|
|
166
|
-
[item 1 start] [12px] [12px] [fractional unit] [12px] [12px] [item 1 end]
|
|
167
|
-
[12px] [item 2 start] [12px] [fractional unit] [12px] [item 2 end] [12px]
|
|
168
|
-
[12px] [12px] [item 3 start] [fractional unit] [item 3 end] [12px] [12px]
|
|
169
|
-
*/
|
|
170
|
-
.stack > .collapsed {
|
|
171
|
-
display: grid;
|
|
172
|
-
grid-column: 1 / 4;
|
|
173
|
-
grid-template-columns:
|
|
174
|
-
repeat(var(#{custom-props.$flashbarStackDepth}), 12px)
|
|
175
|
-
1fr
|
|
176
|
-
repeat(var(#{custom-props.$flashbarStackDepth}), 12px);
|
|
177
|
-
row-gap: 8px;
|
|
178
|
-
|
|
179
|
-
> .item {
|
|
180
|
-
// Each item will have a unique custom property `flashbarStackIndex`
|
|
181
|
-
// Add +1 is because the array is indexed at zero but grid positions are indexed at 1.
|
|
182
|
-
grid-column-start: calc(var(#{custom-props.$flashbarStackIndex}) + 1);
|
|
183
|
-
|
|
184
|
-
// Add +1 to include the fractional unit in the column count
|
|
185
|
-
// Add +1 because the array indexed at zero but grid positions at indexed at 1.
|
|
186
|
-
grid-column-end: calc(
|
|
187
|
-
var(#{custom-props.$flashbarStackDepth}) * 2 + 1 - var(#{custom-props.$flashbarStackIndex}) + 1
|
|
188
|
-
);
|
|
189
|
-
grid-row-start: 1;
|
|
190
|
-
grid-row-end: calc(var(#{custom-props.$flashbarStackIndex}) + 2);
|
|
191
|
-
|
|
192
|
-
// The first item should have the highest z index than the second item, and so forth...
|
|
193
|
-
z-index: calc(var(#{custom-props.$flashbarStackDepth}) - var(#{custom-props.$flashbarStackIndex}));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
> .item:not(:first-of-type) {
|
|
197
|
-
align-self: end;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&.visual-refresh > .item:not(:last-of-type) > .flash {
|
|
201
|
-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&:not(.visual-refresh) > .item:not(:last-of-type) > .flash {
|
|
205
|
-
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
&.visual-refresh > .item:not(:last-of-type) > .flash-items > li:first-child > .flash {
|
|
209
|
-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&:not(.visual-refresh) > .item:not(:last-of-type) > .flash-items > li:first-child > .flash {
|
|
213
|
-
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.stack > .toggle {
|
|
218
|
-
grid-column: 2;
|
|
219
|
-
grid-row: 2;
|
|
220
|
-
|
|
221
|
-
@include focus-visible.when-visible {
|
|
222
|
-
@include styles.focus-highlight(awsui.$space-button-focus-outline-gutter);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&.visual-refresh {
|
|
226
|
-
background: awsui.$color-background-layout-toggle-default;
|
|
227
|
-
border: none;
|
|
228
|
-
border-radius: 0 0 10px 10px;
|
|
229
|
-
box-shadow: awsui.$shadow-panel-toggle;
|
|
230
|
-
color: awsui.$color-text-layout-toggle;
|
|
231
|
-
cursor: pointer;
|
|
232
|
-
padding: awsui.$space-scaled-xxs;
|
|
233
|
-
z-index: var(#{custom-props.$flashbarStackDepth});
|
|
234
|
-
|
|
235
|
-
&:focus {
|
|
236
|
-
outline: none;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&:hover {
|
|
240
|
-
background: awsui.$color-background-layout-toggle-hover;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&:active {
|
|
244
|
-
background: awsui.$color-background-layout-toggle-active;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&:not(.visual-refresh) {
|
|
249
|
-
background: awsui.$color-background-button-normal-default;
|
|
250
|
-
border: styles.$control-border-width solid awsui.$color-border-button-normal-default;
|
|
251
|
-
border-radius: awsui.$border-radius-button;
|
|
252
|
-
border-top: none;
|
|
253
|
-
cursor: pointer;
|
|
254
|
-
padding: styles.$control-padding-vertical awsui.$space-l;
|
|
255
|
-
text-decoration: none;
|
|
256
|
-
|
|
257
|
-
&:focus {
|
|
258
|
-
outline: none;
|
|
259
|
-
text-decoration: none;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
&:hover {
|
|
263
|
-
background: awsui.$color-background-button-normal-hover;
|
|
264
|
-
border-color: awsui.$color-border-button-normal-hover;
|
|
265
|
-
text-decoration: none;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
&:active {
|
|
269
|
-
background: awsui.$color-background-button-normal-active;
|
|
270
|
-
border-color: awsui.$color-border-button-normal-active;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
> .icon {
|
|
275
|
-
display: inline-block;
|
|
276
|
-
|
|
277
|
-
@include styles.with-motion {
|
|
278
|
-
transition: transform awsui.$motion-duration-rotate-90 awsui.$motion-easing-rotate-90;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&.expanded {
|
|
282
|
-
transform: rotate(180deg);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"visible-content": "awsui_visible-
|
|
5
|
-
"visible-content-toggle": "awsui_visible-content-
|
|
6
|
-
"visible-content-groups": "awsui_visible-content-
|
|
7
|
-
"visible-content-group": "awsui_visible-content-
|
|
8
|
-
"visible-content-title": "awsui_visible-content-
|
|
9
|
-
"visible-content-group-label": "awsui_visible-content-group-
|
|
10
|
-
"visible-content-option": "awsui_visible-content-
|
|
11
|
-
"visible-content-option-label": "awsui_visible-content-option-
|
|
12
|
-
"root": "
|
|
13
|
-
"modal-root": "awsui_modal-
|
|
14
|
-
"trigger-button": "awsui_trigger-
|
|
15
|
-
"cancel-button": "awsui_cancel-
|
|
16
|
-
"confirm-button": "awsui_confirm-
|
|
17
|
-
"custom": "
|
|
18
|
-
"second-column-small": "awsui_second-column-
|
|
19
|
-
"wrap-lines": "awsui_wrap-
|
|
20
|
-
"striped-rows": "awsui_striped-
|
|
21
|
-
"page-size": "awsui_page-
|
|
22
|
-
"page-size-form-field": "awsui_page-size-form-
|
|
23
|
-
"page-size-radio-group": "awsui_page-size-radio-
|
|
4
|
+
"visible-content": "awsui_visible-content_tc96w_dbhe3_185",
|
|
5
|
+
"visible-content-toggle": "awsui_visible-content-toggle_tc96w_dbhe3_186",
|
|
6
|
+
"visible-content-groups": "awsui_visible-content-groups_tc96w_dbhe3_187",
|
|
7
|
+
"visible-content-group": "awsui_visible-content-group_tc96w_dbhe3_187",
|
|
8
|
+
"visible-content-title": "awsui_visible-content-title_tc96w_dbhe3_192",
|
|
9
|
+
"visible-content-group-label": "awsui_visible-content-group-label_tc96w_dbhe3_201",
|
|
10
|
+
"visible-content-option": "awsui_visible-content-option_tc96w_dbhe3_207",
|
|
11
|
+
"visible-content-option-label": "awsui_visible-content-option-label_tc96w_dbhe3_218",
|
|
12
|
+
"root": "awsui_root_tc96w_dbhe3_225",
|
|
13
|
+
"modal-root": "awsui_modal-root_tc96w_dbhe3_226",
|
|
14
|
+
"trigger-button": "awsui_trigger-button_tc96w_dbhe3_227",
|
|
15
|
+
"cancel-button": "awsui_cancel-button_tc96w_dbhe3_228",
|
|
16
|
+
"confirm-button": "awsui_confirm-button_tc96w_dbhe3_229",
|
|
17
|
+
"custom": "awsui_custom_tc96w_dbhe3_230",
|
|
18
|
+
"second-column-small": "awsui_second-column-small_tc96w_dbhe3_234",
|
|
19
|
+
"wrap-lines": "awsui_wrap-lines_tc96w_dbhe3_238",
|
|
20
|
+
"striped-rows": "awsui_striped-rows_tc96w_dbhe3_239",
|
|
21
|
+
"page-size": "awsui_page-size_tc96w_dbhe3_240",
|
|
22
|
+
"page-size-form-field": "awsui_page-size-form-field_tc96w_dbhe3_241",
|
|
23
|
+
"page-size-radio-group": "awsui_page-size-radio-group_tc96w_dbhe3_242"
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -182,62 +182,63 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.awsui_visible-
|
|
186
|
-
.awsui_visible-content-
|
|
187
|
-
.awsui_visible-content-
|
|
188
|
-
.awsui_visible-content-
|
|
185
|
+
.awsui_visible-content_tc96w_dbhe3_185:not(#\9),
|
|
186
|
+
.awsui_visible-content-toggle_tc96w_dbhe3_186:not(#\9),
|
|
187
|
+
.awsui_visible-content-groups_tc96w_dbhe3_187:not(#\9),
|
|
188
|
+
.awsui_visible-content-group_tc96w_dbhe3_187:not(#\9) {
|
|
189
189
|
/* used in test-utils */
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
.awsui_visible-content-
|
|
192
|
+
.awsui_visible-content-title_tc96w_dbhe3_192:not(#\9) {
|
|
193
193
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
194
194
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
195
195
|
font-weight: var(--font-display-label-weight-tjy9e4, 400);
|
|
196
196
|
color: var(--color-text-form-label-i9s99a, #16191f);
|
|
197
|
+
margin: 0;
|
|
197
198
|
margin-bottom: var(--space-scaled-l-t03y3z, 20px);
|
|
198
199
|
}
|
|
199
200
|
|
|
200
|
-
.awsui_visible-content-group-
|
|
201
|
+
.awsui_visible-content-group-label_tc96w_dbhe3_201:not(#\9) {
|
|
201
202
|
color: var(--color-text-group-label-5rxtyp, #545b64);
|
|
202
203
|
padding-bottom: var(--space-xs-rsr2qu, 8px);
|
|
203
204
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
.awsui_visible-content-
|
|
207
|
+
.awsui_visible-content-option_tc96w_dbhe3_207:not(#\9) {
|
|
207
208
|
display: flex;
|
|
208
209
|
flex-wrap: nowrap;
|
|
209
210
|
justify-content: space-between;
|
|
210
211
|
padding: var(--space-xs-rsr2qu, 8px) 0px var(--space-xs-rsr2qu, 8px) var(--space-scaled-l-t03y3z, 20px);
|
|
211
212
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
212
213
|
}
|
|
213
|
-
.awsui_visible-content-
|
|
214
|
+
.awsui_visible-content-option_tc96w_dbhe3_207:not(#\9):last-child {
|
|
214
215
|
border-bottom: none;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
.awsui_visible-content-option-
|
|
218
|
+
.awsui_visible-content-option-label_tc96w_dbhe3_218:not(#\9) {
|
|
218
219
|
overflow: hidden;
|
|
219
220
|
text-overflow: ellipsis;
|
|
220
221
|
padding-right: var(--space-l-4vl6xu, 20px);
|
|
221
222
|
flex-grow: 1;
|
|
222
223
|
}
|
|
223
224
|
|
|
224
|
-
.
|
|
225
|
-
.awsui_modal-
|
|
226
|
-
.awsui_trigger-
|
|
227
|
-
.awsui_cancel-
|
|
228
|
-
.awsui_confirm-
|
|
229
|
-
.
|
|
225
|
+
.awsui_root_tc96w_dbhe3_225:not(#\9),
|
|
226
|
+
.awsui_modal-root_tc96w_dbhe3_226:not(#\9),
|
|
227
|
+
.awsui_trigger-button_tc96w_dbhe3_227:not(#\9),
|
|
228
|
+
.awsui_cancel-button_tc96w_dbhe3_228:not(#\9),
|
|
229
|
+
.awsui_confirm-button_tc96w_dbhe3_229:not(#\9),
|
|
230
|
+
.awsui_custom_tc96w_dbhe3_230:not(#\9) {
|
|
230
231
|
/* used in test-utils */
|
|
231
232
|
}
|
|
232
233
|
|
|
233
|
-
.awsui_second-column-
|
|
234
|
+
.awsui_second-column-small_tc96w_dbhe3_234:not(#\9) {
|
|
234
235
|
padding-top: calc(2 * var(--space-scaled-l-t03y3z, 20px));
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
.awsui_wrap-
|
|
238
|
-
.awsui_striped-
|
|
239
|
-
.awsui_page-
|
|
240
|
-
.awsui_page-size-form-
|
|
241
|
-
.awsui_page-size-radio-
|
|
238
|
+
.awsui_wrap-lines_tc96w_dbhe3_238:not(#\9),
|
|
239
|
+
.awsui_striped-rows_tc96w_dbhe3_239:not(#\9),
|
|
240
|
+
.awsui_page-size_tc96w_dbhe3_240:not(#\9),
|
|
241
|
+
.awsui_page-size-form-field_tc96w_dbhe3_241:not(#\9),
|
|
242
|
+
.awsui_page-size-radio-group_tc96w_dbhe3_242:not(#\9) {
|
|
242
243
|
/* used in test-utils */
|
|
243
244
|
}
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"visible-content": "awsui_visible-
|
|
6
|
-
"visible-content-toggle": "awsui_visible-content-
|
|
7
|
-
"visible-content-groups": "awsui_visible-content-
|
|
8
|
-
"visible-content-group": "awsui_visible-content-
|
|
9
|
-
"visible-content-title": "awsui_visible-content-
|
|
10
|
-
"visible-content-group-label": "awsui_visible-content-group-
|
|
11
|
-
"visible-content-option": "awsui_visible-content-
|
|
12
|
-
"visible-content-option-label": "awsui_visible-content-option-
|
|
13
|
-
"root": "
|
|
14
|
-
"modal-root": "awsui_modal-
|
|
15
|
-
"trigger-button": "awsui_trigger-
|
|
16
|
-
"cancel-button": "awsui_cancel-
|
|
17
|
-
"confirm-button": "awsui_confirm-
|
|
18
|
-
"custom": "
|
|
19
|
-
"second-column-small": "awsui_second-column-
|
|
20
|
-
"wrap-lines": "awsui_wrap-
|
|
21
|
-
"striped-rows": "awsui_striped-
|
|
22
|
-
"page-size": "awsui_page-
|
|
23
|
-
"page-size-form-field": "awsui_page-size-form-
|
|
24
|
-
"page-size-radio-group": "awsui_page-size-radio-
|
|
5
|
+
"visible-content": "awsui_visible-content_tc96w_dbhe3_185",
|
|
6
|
+
"visible-content-toggle": "awsui_visible-content-toggle_tc96w_dbhe3_186",
|
|
7
|
+
"visible-content-groups": "awsui_visible-content-groups_tc96w_dbhe3_187",
|
|
8
|
+
"visible-content-group": "awsui_visible-content-group_tc96w_dbhe3_187",
|
|
9
|
+
"visible-content-title": "awsui_visible-content-title_tc96w_dbhe3_192",
|
|
10
|
+
"visible-content-group-label": "awsui_visible-content-group-label_tc96w_dbhe3_201",
|
|
11
|
+
"visible-content-option": "awsui_visible-content-option_tc96w_dbhe3_207",
|
|
12
|
+
"visible-content-option-label": "awsui_visible-content-option-label_tc96w_dbhe3_218",
|
|
13
|
+
"root": "awsui_root_tc96w_dbhe3_225",
|
|
14
|
+
"modal-root": "awsui_modal-root_tc96w_dbhe3_226",
|
|
15
|
+
"trigger-button": "awsui_trigger-button_tc96w_dbhe3_227",
|
|
16
|
+
"cancel-button": "awsui_cancel-button_tc96w_dbhe3_228",
|
|
17
|
+
"confirm-button": "awsui_confirm-button_tc96w_dbhe3_229",
|
|
18
|
+
"custom": "awsui_custom_tc96w_dbhe3_230",
|
|
19
|
+
"second-column-small": "awsui_second-column-small_tc96w_dbhe3_234",
|
|
20
|
+
"wrap-lines": "awsui_wrap-lines_tc96w_dbhe3_238",
|
|
21
|
+
"striped-rows": "awsui_striped-rows_tc96w_dbhe3_239",
|
|
22
|
+
"page-size": "awsui_page-size_tc96w_dbhe3_240",
|
|
23
|
+
"page-size-form-field": "awsui_page-size-form-field_tc96w_dbhe3_241",
|
|
24
|
+
"page-size-radio-group": "awsui_page-size-radio-group_tc96w_dbhe3_242"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ export default function VisibleContentPreference(_a) {
|
|
|
31
31
|
};
|
|
32
32
|
var outerGroupLabelId = "".concat(idPrefix, "-outer");
|
|
33
33
|
return (React.createElement("div", { className: styles['visible-content'] },
|
|
34
|
-
React.createElement("
|
|
34
|
+
React.createElement("h3", __assign({}, className('title'), { id: outerGroupLabelId }), title),
|
|
35
35
|
React.createElement(InternalSpaceBetween, __assign({}, className('groups'), { size: "xs" }), options.map(function (optionGroup, optionGroupIndex) {
|
|
36
36
|
var groupLabelId = "".concat(idPrefix, "-").concat(optionGroupIndex);
|
|
37
37
|
return (React.createElement("div", __assign({ key: optionGroupIndex }, className('group'), { role: "group", "aria-labelledby": "".concat(outerGroupLabelId, " ").concat(groupLabelId) }),
|