@cloudscape-design/components 3.0.1383 → 3.0.1384
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/app-layout/visual-refresh-toolbar/contexts.d.ts +5 -3
- package/app-layout/visual-refresh-toolbar/contexts.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/contexts.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +3 -0
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts +4 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slots.js +8 -5
- package/app-layout/visual-refresh-toolbar/skeleton/slots.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts +5 -0
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js +3 -3
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js +27 -3
- package/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts +6 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js +16 -0
- package/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +5 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.js +2 -2
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +15 -14
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +35 -31
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +15 -14
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
- package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +30 -1
- package/breadcrumb-group/implementation.js.map +1 -1
- package/container/index.d.ts +3 -7
- package/container/index.d.ts.map +1 -1
- package/container/index.js +4 -3
- package/container/index.js.map +1 -1
- package/container/interfaces.d.ts +7 -0
- package/container/interfaces.d.ts.map +1 -1
- package/container/interfaces.js.map +1 -1
- package/container/internal.d.ts +3 -26
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +37 -8
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +34 -33
- package/container/styles.scoped.css +77 -56
- package/container/styles.selectors.js +34 -33
- package/copy-to-clipboard/internal.d.ts.map +1 -1
- package/copy-to-clipboard/internal.js +3 -1
- package/copy-to-clipboard/internal.js.map +1 -1
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +160 -200
- package/flashbar/styles.selectors.js +50 -50
- package/icon/generated/icons.d.ts +1 -0
- package/icon/generated/icons.d.ts.map +1 -1
- package/icon/generated/icons.js +3 -0
- package/icon/generated/icons.js.map +1 -1
- package/icon-provider/interfaces.d.ts +1 -1
- package/icon-provider/interfaces.d.ts.map +1 -1
- package/icon-provider/interfaces.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/base-theme/styles.scoped.css +3 -0
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +3 -0
- package/internal/generated/styles/tokens.js +3 -0
- package/internal/generated/theming/index.cjs +65 -0
- package/internal/generated/theming/index.js +65 -0
- package/internal/manifest.json +1 -1
- package/internal/plugins/widget/index.d.ts +5 -1
- package/internal/plugins/widget/index.d.ts.map +1 -1
- package/internal/plugins/widget/index.js +26 -1
- package/internal/plugins/widget/index.js.map +1 -1
- package/internal/plugins/widget/interfaces.d.ts +12 -2
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/internal/plugins/widget.d.ts +1 -1
- package/internal/plugins/widget.d.ts.map +1 -1
- package/internal/plugins/widget.js +1 -1
- package/internal/plugins/widget.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/plugins/index.d.ts +2 -1
- package/plugins/index.d.ts.map +1 -1
- package/plugins/index.js +2 -1
- package/plugins/index.js.map +1 -1
- package/table/header-cell/styles.css.js +38 -38
- package/table/header-cell/styles.scoped.css +80 -81
- package/table/header-cell/styles.selectors.js +38 -38
- package/table/sticky-columns/interfaces.d.ts +2 -0
- package/table/sticky-columns/interfaces.d.ts.map +1 -1
- package/table/sticky-columns/interfaces.js.map +1 -1
- package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/table/sticky-columns/use-sticky-columns.js +11 -5
- package/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/table/sticky-columns/utils.d.ts.map +1 -1
- package/table/sticky-columns/utils.js +2 -0
- package/table/sticky-columns/utils.js.map +1 -1
- package/table/utils.d.ts +1 -3
- package/table/utils.d.ts.map +1 -1
- package/table/utils.js +12 -5
- package/table/utils.js.map +1 -1
- package/internal/generated/theming/index.cjs.d.ts +0 -4785
|
@@ -10,7 +10,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
10
10
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
11
|
SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
*/
|
|
13
|
-
.
|
|
13
|
+
.awsui_root_14iqq_12yus_13:not(#\9) {
|
|
14
14
|
border-collapse: separate;
|
|
15
15
|
border-spacing: 0;
|
|
16
16
|
box-sizing: border-box;
|
|
@@ -43,15 +43,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
43
43
|
word-wrap: break-word;
|
|
44
44
|
position: relative;
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.awsui_root_14iqq_12yus_13.awsui_fit-height_14iqq_12yus_46:not(#\9) {
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
block-size: 100%;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.awsui_root_14iqq_12yus_13.awsui_fit-height_14iqq_12yus_46.awsui_with-side-media_14iqq_12yus_51:not(#\9) {
|
|
52
52
|
flex-direction: row;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-default_14iqq_12yus_54:not(#\9), .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9) {
|
|
55
55
|
background-color: var(--color-background-container-content-mjfil9, #ffffff);
|
|
56
56
|
--awsui-inline-label-background-color-66120l: var(--color-background-container-content-mjfil9, #ffffff);
|
|
57
57
|
border-start-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
@@ -60,11 +60,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
60
60
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
61
61
|
box-sizing: border-box;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-default_14iqq_12yus_54.awsui_refresh_14iqq_12yus_63:not(#\9), .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54.awsui_refresh_14iqq_12yus_63:not(#\9) {
|
|
64
64
|
border-block: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
65
65
|
border-inline: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-default_14iqq_12yus_54:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::before, .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::before {
|
|
68
68
|
content: "";
|
|
69
69
|
position: absolute;
|
|
70
70
|
inset-inline-start: 0px;
|
|
@@ -82,7 +82,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
82
82
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
83
83
|
z-index: 1;
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-default_14iqq_12yus_54:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::after, .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::after {
|
|
86
86
|
content: "";
|
|
87
87
|
position: absolute;
|
|
88
88
|
inset-inline-start: 0px;
|
|
@@ -98,151 +98,172 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
98
98
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
99
99
|
box-shadow: var(--shadow-container-quglkl, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(:last-child), .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(:last-child)::before, .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(:last-child)::after {
|
|
102
102
|
border-end-end-radius: 0;
|
|
103
103
|
border-end-start-radius: 0;
|
|
104
104
|
border-block-end-width: 0;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54 + .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9), .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54 + .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9)::before, .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54 + .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9)::after {
|
|
107
107
|
border-start-start-radius: 0;
|
|
108
108
|
border-start-end-radius: 0;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54 + .awsui_root_14iqq_12yus_13.awsui_variant-stacked_14iqq_12yus_54:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::before {
|
|
111
111
|
border-block-start: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
.awsui_root_14iqq_12yus_13.awsui_sticky-enabled_14iqq_12yus_113:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::before {
|
|
114
114
|
inset-block-start: calc(-1 * var(--border-container-top-width-6p1io9, 0px));
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.awsui_root_14iqq_12yus_13.awsui_sticky-enabled_14iqq_12yus_113:not(#\9):not(.awsui_refresh_14iqq_12yus_63).awsui_variant-stacked_14iqq_12yus_54::before {
|
|
117
117
|
inset-block-start: calc(-1 * var(--border-divider-section-width-dlkb8v, 1px));
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.awsui_root_14iqq_12yus_13.awsui_with-stuck-sticky-header-at-bottom_14iqq_12yus_119:not(#\9) {
|
|
120
120
|
border-end-end-radius: 0;
|
|
121
121
|
border-end-start-radius: 0;
|
|
122
122
|
}
|
|
123
|
+
.awsui_root_14iqq_12yus_13:not(#\9):focus {
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
.awsui_root_14iqq_12yus_13.awsui_focus-ring_14iqq_12yus_126:not(#\9):focus::after {
|
|
127
|
+
content: "";
|
|
128
|
+
position: absolute;
|
|
129
|
+
inset-inline-start: 0px;
|
|
130
|
+
inset-block-start: 0px;
|
|
131
|
+
inline-size: 100%;
|
|
132
|
+
block-size: 100%;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
background: transparent;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
outline: 2px dotted transparent;
|
|
137
|
+
outline-offset: 2px;
|
|
138
|
+
border-start-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
139
|
+
border-start-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
140
|
+
border-end-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
141
|
+
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
142
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-sewkzn, #006ce0);
|
|
143
|
+
}
|
|
123
144
|
|
|
124
|
-
.awsui_with-side-
|
|
145
|
+
.awsui_with-side-media_14iqq_12yus_51:not(#\9) {
|
|
125
146
|
display: flex;
|
|
126
147
|
flex-direction: row;
|
|
127
148
|
}
|
|
128
149
|
|
|
129
|
-
.awsui_with-top-
|
|
150
|
+
.awsui_with-top-media_14iqq_12yus_150:not(#\9) {
|
|
130
151
|
display: flex;
|
|
131
152
|
flex-direction: column;
|
|
132
153
|
}
|
|
133
154
|
|
|
134
|
-
.awsui_content-
|
|
155
|
+
.awsui_content-wrapper_14iqq_12yus_155:not(#\9) {
|
|
135
156
|
display: flex;
|
|
136
157
|
flex-direction: column;
|
|
137
158
|
inline-size: 100%;
|
|
138
159
|
}
|
|
139
|
-
.awsui_content-wrapper-fit-
|
|
160
|
+
.awsui_content-wrapper-fit-height_14iqq_12yus_160:not(#\9) {
|
|
140
161
|
block-size: 100%;
|
|
141
162
|
overflow: hidden;
|
|
142
163
|
border-end-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
143
164
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
144
165
|
}
|
|
145
166
|
|
|
146
|
-
.
|
|
167
|
+
.awsui_media_14iqq_12yus_167:not(#\9) {
|
|
147
168
|
overflow: hidden;
|
|
148
169
|
flex-shrink: 0;
|
|
149
170
|
}
|
|
150
|
-
.
|
|
151
|
-
.
|
|
152
|
-
.
|
|
171
|
+
.awsui_media_14iqq_12yus_167 img:not(#\9),
|
|
172
|
+
.awsui_media_14iqq_12yus_167 video:not(#\9),
|
|
173
|
+
.awsui_media_14iqq_12yus_167 picture:not(#\9) {
|
|
153
174
|
inline-size: 100%;
|
|
154
175
|
block-size: 100%;
|
|
155
176
|
object-fit: cover;
|
|
156
177
|
object-position: center;
|
|
157
178
|
}
|
|
158
|
-
.
|
|
179
|
+
.awsui_media_14iqq_12yus_167 iframe:not(#\9) {
|
|
159
180
|
inline-size: 100%;
|
|
160
181
|
block-size: 100%;
|
|
161
182
|
border-block: 0;
|
|
162
183
|
border-inline: 0;
|
|
163
184
|
}
|
|
164
|
-
.awsui_media-
|
|
185
|
+
.awsui_media-top_14iqq_12yus_185:not(#\9) {
|
|
165
186
|
max-block-size: 66%;
|
|
166
187
|
border-start-start-radius: calc(var(--border-radius-container-33hhdh, 16px) - 1px);
|
|
167
188
|
border-start-end-radius: calc(var(--border-radius-container-33hhdh, 16px) - 1px);
|
|
168
189
|
}
|
|
169
|
-
.awsui_media-
|
|
190
|
+
.awsui_media-side_14iqq_12yus_190:not(#\9) {
|
|
170
191
|
max-inline-size: 66%;
|
|
171
192
|
border-start-start-radius: calc(var(--border-radius-container-33hhdh, 16px) - 1px);
|
|
172
193
|
border-end-start-radius: calc(var(--border-radius-container-33hhdh, 16px) - 1px);
|
|
173
194
|
}
|
|
174
195
|
|
|
175
|
-
.
|
|
196
|
+
.awsui_header_14iqq_12yus_196:not(#\9) {
|
|
176
197
|
background-color: var(--color-background-container-header-irktp5, #ffffff);
|
|
177
198
|
border-start-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
178
199
|
border-start-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
179
200
|
}
|
|
180
|
-
.
|
|
201
|
+
.awsui_header_14iqq_12yus_196.awsui_header-full-page_14iqq_12yus_201:not(#\9) {
|
|
181
202
|
background-color: var(--color-background-layout-main-y4565g, #ffffff);
|
|
182
203
|
}
|
|
183
|
-
.awsui_header-variant-
|
|
204
|
+
.awsui_header-variant-embedded_14iqq_12yus_204.awsui_refresh_14iqq_12yus_63:not(#\9):not(.awsui_header-sticky-enabled_14iqq_12yus_204) {
|
|
184
205
|
background-color: transparent;
|
|
185
206
|
}
|
|
186
|
-
.
|
|
207
|
+
.awsui_header_14iqq_12yus_196.awsui_header-with-media_14iqq_12yus_207:not(#\9) {
|
|
187
208
|
background: none;
|
|
188
209
|
}
|
|
189
|
-
.
|
|
210
|
+
.awsui_header_14iqq_12yus_196.awsui_header-with-media_14iqq_12yus_207:not(#\9):not(:empty) {
|
|
190
211
|
border-block-end: none;
|
|
191
212
|
}
|
|
192
|
-
.awsui_header-sticky-
|
|
213
|
+
.awsui_header-sticky-disabled_14iqq_12yus_213:not(#\9) {
|
|
193
214
|
position: relative;
|
|
194
215
|
z-index: 1;
|
|
195
216
|
}
|
|
196
|
-
.awsui_header-sticky-
|
|
217
|
+
.awsui_header-sticky-enabled_14iqq_12yus_204:not(#\9) {
|
|
197
218
|
inset-block-start: 0;
|
|
198
219
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
199
220
|
position: sticky;
|
|
200
221
|
z-index: 800;
|
|
201
222
|
}
|
|
202
|
-
.awsui_header-
|
|
223
|
+
.awsui_header-stuck_14iqq_12yus_223:not(#\9) {
|
|
203
224
|
border-start-start-radius: 0;
|
|
204
225
|
border-start-end-radius: 0;
|
|
205
226
|
border-end-start-radius: 0;
|
|
206
227
|
border-end-end-radius: 0;
|
|
207
228
|
}
|
|
208
|
-
.awsui_header-
|
|
229
|
+
.awsui_header-stuck_14iqq_12yus_223:not(#\9)::before {
|
|
209
230
|
border-block: 0;
|
|
210
231
|
border-inline: 0;
|
|
211
232
|
}
|
|
212
|
-
.awsui_header-
|
|
233
|
+
.awsui_header-stuck_14iqq_12yus_223:not(#\9):not(.awsui_header-variant-cards_14iqq_12yus_233) {
|
|
213
234
|
box-shadow: var(--shadow-sticky-embedded-5m1s1m, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
|
|
214
235
|
}
|
|
215
|
-
.awsui_header-dynamic-
|
|
236
|
+
.awsui_header-dynamic-height_14iqq_12yus_236.awsui_header-stuck_14iqq_12yus_223:not(#\9) {
|
|
216
237
|
margin-block-end: calc(var(--line-height-heading-xl-pi61pg, 30px) - var(--line-height-heading-l-zmt48b, 24px));
|
|
217
238
|
}
|
|
218
|
-
.
|
|
239
|
+
.awsui_header_14iqq_12yus_196:not(#\9):not(:empty) {
|
|
219
240
|
border-block-end: var(--border-container-sticky-width-ns9pe4, 0px) solid var(--color-border-container-divider-rkhoab, transparent);
|
|
220
241
|
}
|
|
221
|
-
.
|
|
242
|
+
.awsui_header_14iqq_12yus_196.awsui_with-paddings_14iqq_12yus_242:not(#\9) {
|
|
222
243
|
padding-block-start: var(--space-container-header-top-3txhx4, 12px);
|
|
223
244
|
padding-block-end: var(--space-container-header-bottom-9elagw, 8px);
|
|
224
245
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
225
246
|
}
|
|
226
|
-
.
|
|
247
|
+
.awsui_header_14iqq_12yus_196.awsui_with-paddings_14iqq_12yus_242.awsui_header-variant-cards_14iqq_12yus_233:not(#\9) {
|
|
227
248
|
padding-block: var(--space-container-header-top-3txhx4, 12px);
|
|
228
249
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
229
250
|
}
|
|
230
|
-
.
|
|
251
|
+
.awsui_header_14iqq_12yus_196.awsui_with-hidden-content_14iqq_12yus_251:not(#\9) {
|
|
231
252
|
border-end-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
232
253
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
233
254
|
}
|
|
234
|
-
.awsui_header-variant-
|
|
255
|
+
.awsui_header-variant-cards_14iqq_12yus_233:not(#\9) {
|
|
235
256
|
border-start-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
236
257
|
border-start-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
237
258
|
border-end-start-radius: var(--border-radius-container-33hhdh, 16px);
|
|
238
259
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
239
260
|
box-sizing: border-box;
|
|
240
261
|
}
|
|
241
|
-
.awsui_header-variant-
|
|
262
|
+
.awsui_header-variant-cards_14iqq_12yus_233.awsui_refresh_14iqq_12yus_63:not(#\9) {
|
|
242
263
|
border-block: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
243
264
|
border-inline: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
244
265
|
}
|
|
245
|
-
.awsui_header-variant-
|
|
266
|
+
.awsui_header-variant-cards_14iqq_12yus_233:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::before {
|
|
246
267
|
content: "";
|
|
247
268
|
position: absolute;
|
|
248
269
|
inset-inline-start: 0px;
|
|
@@ -260,7 +281,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
260
281
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
261
282
|
z-index: 1;
|
|
262
283
|
}
|
|
263
|
-
.awsui_header-variant-
|
|
284
|
+
.awsui_header-variant-cards_14iqq_12yus_233:not(#\9):not(.awsui_refresh_14iqq_12yus_63)::after {
|
|
264
285
|
content: "";
|
|
265
286
|
position: absolute;
|
|
266
287
|
inset-inline-start: 0px;
|
|
@@ -276,26 +297,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
276
297
|
border-end-end-radius: var(--border-radius-container-33hhdh, 16px);
|
|
277
298
|
box-shadow: var(--shadow-container-quglkl, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
278
299
|
}
|
|
279
|
-
.awsui_header-variant-
|
|
300
|
+
.awsui_header-variant-cards_14iqq_12yus_233:not(#\9):not(.awsui_header-sticky-enabled_14iqq_12yus_204) {
|
|
280
301
|
position: relative;
|
|
281
302
|
}
|
|
282
|
-
.awsui_header-variant-
|
|
303
|
+
.awsui_header-variant-cards_14iqq_12yus_233.awsui_header-stuck_14iqq_12yus_223:not(#\9)::after, .awsui_header-variant-cards_14iqq_12yus_233.awsui_header-stuck_14iqq_12yus_223:not(#\9)::before {
|
|
283
304
|
border-block: 0;
|
|
284
305
|
border-inline: 0;
|
|
285
306
|
border-start-start-radius: 0;
|
|
286
307
|
border-start-end-radius: 0;
|
|
287
308
|
}
|
|
288
|
-
.awsui_header-variant-full-
|
|
309
|
+
.awsui_header-variant-full-page_14iqq_12yus_309.awsui_header-stuck_14iqq_12yus_223:not(#\9) {
|
|
289
310
|
box-shadow: none;
|
|
290
311
|
}
|
|
291
|
-
.awsui_header-variant-full-
|
|
312
|
+
.awsui_header-variant-full-page_14iqq_12yus_309.awsui_header-stuck_14iqq_12yus_223 > .awsui_header-cover_14iqq_12yus_312:not(#\9) {
|
|
292
313
|
background-color: var(--color-background-layout-main-y4565g, #ffffff);
|
|
293
314
|
inline-size: 100%;
|
|
294
315
|
position: absolute;
|
|
295
316
|
block-size: var(--space-scaled-s-2crg2b, 12px);
|
|
296
317
|
inset-block-start: calc(-1 * var(--space-scaled-s-2crg2b, 12px));
|
|
297
318
|
}
|
|
298
|
-
.awsui_header-variant-full-
|
|
319
|
+
.awsui_header-variant-full-page_14iqq_12yus_309.awsui_header-stuck_14iqq_12yus_223:not(#\9)::before {
|
|
299
320
|
content: "";
|
|
300
321
|
position: absolute;
|
|
301
322
|
pointer-events: none;
|
|
@@ -305,7 +326,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
305
326
|
inset-block-start: 0;
|
|
306
327
|
border-block-end: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
307
328
|
}
|
|
308
|
-
.awsui_header-variant-full-
|
|
329
|
+
.awsui_header-variant-full-page_14iqq_12yus_309.awsui_header-stuck_14iqq_12yus_223:not(#\9)::after {
|
|
309
330
|
content: "";
|
|
310
331
|
position: absolute;
|
|
311
332
|
inset: 0;
|
|
@@ -313,30 +334,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
313
334
|
clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
|
|
314
335
|
}
|
|
315
336
|
|
|
316
|
-
.
|
|
337
|
+
.awsui_content_14iqq_12yus_155:not(#\9) {
|
|
317
338
|
flex: 1;
|
|
318
339
|
}
|
|
319
|
-
.awsui_content-fit-
|
|
340
|
+
.awsui_content-fit-height_14iqq_12yus_340:not(#\9) {
|
|
320
341
|
overflow: auto;
|
|
321
342
|
display: flex;
|
|
322
343
|
flex-direction: column;
|
|
323
344
|
}
|
|
324
345
|
|
|
325
|
-
.awsui_content-
|
|
346
|
+
.awsui_content-inner_14iqq_12yus_346:not(#\9) {
|
|
326
347
|
flex: 1;
|
|
327
348
|
}
|
|
328
|
-
.awsui_content-
|
|
349
|
+
.awsui_content-inner_14iqq_12yus_346.awsui_with-paddings_14iqq_12yus_242:not(#\9) {
|
|
329
350
|
padding-block: var(--space-scaled-l-33ruz6, 20px);
|
|
330
351
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
331
352
|
}
|
|
332
|
-
.awsui_content-
|
|
353
|
+
.awsui_content-inner_14iqq_12yus_346.awsui_with-paddings_14iqq_12yus_242.awsui_with-header_14iqq_12yus_353:not(#\9) {
|
|
333
354
|
padding-block-start: var(--space-container-content-top-ryubqz, 4px);
|
|
334
355
|
}
|
|
335
356
|
|
|
336
|
-
.
|
|
357
|
+
.awsui_footer_14iqq_12yus_357.awsui_with-paddings_14iqq_12yus_242:not(#\9) {
|
|
337
358
|
padding-block: var(--space-scaled-s-2crg2b, 12px);
|
|
338
359
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
339
360
|
}
|
|
340
|
-
.
|
|
361
|
+
.awsui_footer_14iqq_12yus_357.awsui_with-divider_14iqq_12yus_361:not(#\9) {
|
|
341
362
|
border-block-start: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-divider-default-diwd4w, #c6c6cd);
|
|
342
363
|
}
|
|
@@ -2,38 +2,39 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"fit-height": "awsui_fit-
|
|
7
|
-
"with-side-media": "awsui_with-side-
|
|
8
|
-
"variant-default": "awsui_variant-
|
|
9
|
-
"variant-stacked": "awsui_variant-
|
|
10
|
-
"refresh": "
|
|
11
|
-
"sticky-enabled": "awsui_sticky-
|
|
12
|
-
"with-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"content-wrapper
|
|
16
|
-
"
|
|
17
|
-
"media
|
|
18
|
-
"media-
|
|
19
|
-
"
|
|
20
|
-
"header
|
|
21
|
-
"header-
|
|
22
|
-
"header-
|
|
23
|
-
"header-
|
|
24
|
-
"header-
|
|
25
|
-
"header-
|
|
26
|
-
"header-
|
|
27
|
-
"header-
|
|
28
|
-
"
|
|
29
|
-
"with-
|
|
30
|
-
"
|
|
31
|
-
"header-
|
|
32
|
-
"
|
|
33
|
-
"content
|
|
34
|
-
"content-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
5
|
+
"root": "awsui_root_14iqq_12yus_13",
|
|
6
|
+
"fit-height": "awsui_fit-height_14iqq_12yus_46",
|
|
7
|
+
"with-side-media": "awsui_with-side-media_14iqq_12yus_51",
|
|
8
|
+
"variant-default": "awsui_variant-default_14iqq_12yus_54",
|
|
9
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_12yus_54",
|
|
10
|
+
"refresh": "awsui_refresh_14iqq_12yus_63",
|
|
11
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_12yus_113",
|
|
12
|
+
"with-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-bottom_14iqq_12yus_119",
|
|
13
|
+
"focus-ring": "awsui_focus-ring_14iqq_12yus_126",
|
|
14
|
+
"with-top-media": "awsui_with-top-media_14iqq_12yus_150",
|
|
15
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_12yus_155",
|
|
16
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_12yus_160",
|
|
17
|
+
"media": "awsui_media_14iqq_12yus_167",
|
|
18
|
+
"media-top": "awsui_media-top_14iqq_12yus_185",
|
|
19
|
+
"media-side": "awsui_media-side_14iqq_12yus_190",
|
|
20
|
+
"header": "awsui_header_14iqq_12yus_196",
|
|
21
|
+
"header-full-page": "awsui_header-full-page_14iqq_12yus_201",
|
|
22
|
+
"header-variant-embedded": "awsui_header-variant-embedded_14iqq_12yus_204",
|
|
23
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_12yus_204",
|
|
24
|
+
"header-with-media": "awsui_header-with-media_14iqq_12yus_207",
|
|
25
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_12yus_213",
|
|
26
|
+
"header-stuck": "awsui_header-stuck_14iqq_12yus_223",
|
|
27
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_12yus_233",
|
|
28
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_12yus_236",
|
|
29
|
+
"with-paddings": "awsui_with-paddings_14iqq_12yus_242",
|
|
30
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_12yus_251",
|
|
31
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_12yus_309",
|
|
32
|
+
"header-cover": "awsui_header-cover_14iqq_12yus_312",
|
|
33
|
+
"content": "awsui_content_14iqq_12yus_155",
|
|
34
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_12yus_340",
|
|
35
|
+
"content-inner": "awsui_content-inner_14iqq_12yus_346",
|
|
36
|
+
"with-header": "awsui_with-header_14iqq_12yus_353",
|
|
37
|
+
"footer": "awsui_footer_14iqq_12yus_357",
|
|
38
|
+
"with-divider": "awsui_with-divider_14iqq_12yus_361"
|
|
38
39
|
};
|
|
39
40
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAIlF,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAKpD,UAAU,4BAA6B,SAAQ,oBAAoB,EAAE,0BAA0B;CAAG;AAElG,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,OAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,QAAe,EACf,uBAAuB,EACvB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,GAAG,SAAS,EACb,EAAE,4BAA4B,eAwG9B"}
|
|
@@ -5,6 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import InternalButton from '../button/internal';
|
|
6
6
|
import { getBaseProps } from '../internal/base-component';
|
|
7
7
|
import { fireNonCancelableEvent } from '../internal/events';
|
|
8
|
+
import { useOneTheme } from '../internal/hooks/use-visual-mode';
|
|
8
9
|
import InternalPopover from '../popover/internal';
|
|
9
10
|
import InternalStatusIndicator from '../status-indicator/internal';
|
|
10
11
|
import styles from './styles.css.js';
|
|
@@ -12,6 +13,7 @@ import testStyles from './test-classes/styles.css.js';
|
|
|
12
13
|
export default function InternalCopyToClipboard({ variant = 'button', copyButtonAriaLabel, copyButtonText, copySuccessText, copyErrorText, textToCopy, textToDisplay, wrapText = true, popoverRenderWithPortal, disabled, disabledReason, onCopySuccess, onCopyFailure, __internalRootRef, ...restProps }) {
|
|
13
14
|
const [status, setStatus] = useState('success');
|
|
14
15
|
const [statusText, setStatusText] = useState(copySuccessText);
|
|
16
|
+
const isOneTheme = useOneTheme();
|
|
15
17
|
useEffect(() => {
|
|
16
18
|
if (navigator.permissions) {
|
|
17
19
|
navigator.permissions
|
|
@@ -56,7 +58,7 @@ export default function InternalCopyToClipboard({ variant = 'button', copyButton
|
|
|
56
58
|
}[variant];
|
|
57
59
|
const isInline = variant === 'inline';
|
|
58
60
|
const button = (React.createElement(InternalButton, { ariaLabel: copyButtonAriaLabel !== null && copyButtonAriaLabel !== void 0 ? copyButtonAriaLabel : copyButtonText, iconName: "copy", variant: triggerVariant, wrapText: false, formAction: "none", disabled: disabled, disabledReason: disabledReason }, copyButtonText));
|
|
59
|
-
const trigger = disabled ? (button) : (React.createElement(InternalPopover, { isInline: isInline, size: "medium", position: "top", triggerType: "custom", dismissButton: false, renderWithPortal: popoverRenderWithPortal, content: React.createElement(InternalStatusIndicator, { type: status }, statusText), __onOpen: onClick }, button));
|
|
61
|
+
const trigger = disabled ? (button) : (React.createElement(InternalPopover, { isInline: isInline, size: "medium", position: "top", triggerType: "custom", dismissButton: false, renderWithPortal: popoverRenderWithPortal, content: React.createElement(InternalStatusIndicator, { type: status, __embedded: isOneTheme }, statusText), __onOpen: onClick }, button));
|
|
60
62
|
return (React.createElement("span", { ...baseProps, ref: __internalRootRef, className: clsx(baseProps.className, styles.root, testStyles.root) }, isInline ? (React.createElement("span", { className: clsx(styles['inline-container'], !wrapText && styles['inline-container-no-wrap']) },
|
|
61
63
|
React.createElement("span", { className: styles['inline-container-trigger'] }, trigger),
|
|
62
64
|
React.createElement("span", { className: clsx(testStyles['text-to-display'], testStyles['text-to-copy'], styles['text-to-display']) }, textToDisplay !== undefined ? textToDisplay : textToCopy))) : (trigger)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAGnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAItD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,OAAO,GAAG,QAAQ,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,UAAU,EACV,aAAa,EACb,QAAQ,GAAG,IAAI,EACf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B,CAAC,EAAE,CAAC,QAAQ,IAAI,MAAM,CAAC,0BAA0B,CAAC,CAAC;QAChG,8BAAM,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,IAAG,OAAO,CAAQ;QACrE,8BAAM,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC,IACxG,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,CACpD,CACF,CACR,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalButton from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useOneTheme } from '../internal/hooks/use-visual-mode';\nimport InternalPopover from '../popover/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { CopyToClipboardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\ninterface InternalCopyToClipboardProps extends CopyToClipboardProps, InternalBaseComponentProps {}\n\nexport default function InternalCopyToClipboard({\n variant = 'button',\n copyButtonAriaLabel,\n copyButtonText,\n copySuccessText,\n copyErrorText,\n textToCopy,\n textToDisplay,\n wrapText = true,\n popoverRenderWithPortal,\n disabled,\n disabledReason,\n onCopySuccess,\n onCopyFailure,\n __internalRootRef,\n ...restProps\n}: InternalCopyToClipboardProps) {\n const [status, setStatus] = useState<'pending' | 'success' | 'error'>('success');\n const [statusText, setStatusText] = useState(copySuccessText);\n const isOneTheme = useOneTheme();\n\n useEffect(() => {\n if (navigator.permissions) {\n navigator.permissions\n .query({ name: 'clipboard-write' as PermissionName })\n .then(result => {\n if (result.state === 'denied') {\n setStatus('error');\n setStatusText(copyErrorText);\n }\n })\n .catch(() => {\n // Permissions API not supported or failed.\n });\n }\n }, [copyErrorText]);\n\n const baseProps = getBaseProps(restProps);\n const onClick = () => {\n if (!navigator.clipboard) {\n // The clipboard API is not available in insecure contexts.\n setStatus('error');\n setStatusText(copyErrorText);\n fireNonCancelableEvent(onCopyFailure, { text: textToCopy });\n return;\n }\n\n navigator.clipboard\n .writeText(textToCopy)\n .then(() => {\n setStatus('success');\n setStatusText(copySuccessText);\n fireNonCancelableEvent(onCopySuccess, { text: textToCopy });\n })\n .catch(() => {\n setStatus('error');\n setStatusText(copyErrorText);\n fireNonCancelableEvent(onCopyFailure, { text: textToCopy });\n });\n };\n\n const triggerVariant = (\n {\n button: 'normal',\n icon: 'icon',\n inline: 'inline-icon',\n } as const\n )[variant];\n\n const isInline = variant === 'inline';\n\n const button = (\n <InternalButton\n ariaLabel={copyButtonAriaLabel ?? copyButtonText}\n iconName=\"copy\"\n variant={triggerVariant}\n wrapText={false}\n formAction=\"none\"\n disabled={disabled}\n disabledReason={disabledReason}\n >\n {copyButtonText}\n </InternalButton>\n );\n\n const trigger = disabled ? (\n button\n ) : (\n <InternalPopover\n isInline={isInline}\n size=\"medium\"\n position=\"top\"\n triggerType=\"custom\"\n dismissButton={false}\n renderWithPortal={popoverRenderWithPortal}\n content={\n <InternalStatusIndicator type={status} __embedded={isOneTheme}>\n {statusText}\n </InternalStatusIndicator>\n }\n __onOpen={onClick}\n >\n {button}\n </InternalPopover>\n );\n\n return (\n <span {...baseProps} ref={__internalRootRef} className={clsx(baseProps.className, styles.root, testStyles.root)}>\n {isInline ? (\n <span className={clsx(styles['inline-container'], !wrapText && styles['inline-container-no-wrap'])}>\n <span className={styles['inline-container-trigger']}>{trigger}</span>\n <span className={clsx(testStyles['text-to-display'], testStyles['text-to-copy'], styles['text-to-display'])}>\n {textToDisplay !== undefined ? textToDisplay : textToCopy}\n </span>\n </span>\n ) : (\n trigger\n )}\n </span>\n );\n}\n"]}
|
package/flashbar/styles.css.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"flash-with-motion": "awsui_flash-with-
|
|
5
|
-
"enter": "
|
|
6
|
-
"flash-body": "awsui_flash-
|
|
7
|
-
"flash-message": "awsui_flash-
|
|
8
|
-
"flash-header": "awsui_flash-
|
|
9
|
-
"flash-content": "awsui_flash-
|
|
10
|
-
"action-button-wrapper": "awsui_action-button-
|
|
11
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
12
|
-
"flash-icon": "awsui_flash-
|
|
13
|
-
"entering": "
|
|
14
|
-
"entered": "
|
|
15
|
-
"exiting": "
|
|
16
|
-
"stack": "
|
|
17
|
-
"animation-running": "awsui_animation-
|
|
18
|
-
"item": "
|
|
19
|
-
"flash-list-item": "awsui_flash-list-
|
|
20
|
-
"notification-bar": "awsui_notification-
|
|
21
|
-
"collapsed": "
|
|
22
|
-
"animation-ready": "awsui_animation-
|
|
23
|
-
"expanded-only": "awsui_expanded-
|
|
24
|
-
"expanded": "
|
|
25
|
-
"flash": "
|
|
26
|
-
"collapsible": "
|
|
27
|
-
"short-list": "awsui_short-
|
|
28
|
-
"visual-refresh": "awsui_visual-
|
|
29
|
-
"status": "
|
|
30
|
-
"header": "
|
|
31
|
-
"item-count": "awsui_item-
|
|
32
|
-
"button": "
|
|
33
|
-
"type-count": "awsui_type-
|
|
34
|
-
"count-number": "awsui_count-
|
|
35
|
-
"icon": "
|
|
36
|
-
"floating": "
|
|
37
|
-
"flashbar": "
|
|
38
|
-
"initial-hidden": "awsui_initial-
|
|
39
|
-
"flash-list": "awsui_flash-
|
|
40
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
41
|
-
"flash-text": "awsui_flash-
|
|
42
|
-
"hidden": "
|
|
43
|
-
"header-replacement": "awsui_header-
|
|
44
|
-
"content-replacement": "awsui_content-
|
|
45
|
-
"dismiss-button": "awsui_dismiss-
|
|
46
|
-
"action-wrapped": "awsui_action-
|
|
47
|
-
"action-button": "awsui_action-
|
|
48
|
-
"action-slot": "awsui_action-
|
|
49
|
-
"flash-type-success": "awsui_flash-type-
|
|
50
|
-
"flash-type-error": "awsui_flash-type-
|
|
51
|
-
"flash-type-info": "awsui_flash-type-
|
|
52
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
53
|
-
"flash-type-warning": "awsui_flash-type-
|
|
4
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1qb5k_13",
|
|
5
|
+
"enter": "awsui_enter_1q84n_1qb5k_13",
|
|
6
|
+
"flash-body": "awsui_flash-body_1q84n_1qb5k_27",
|
|
7
|
+
"flash-message": "awsui_flash-message_1q84n_1qb5k_27",
|
|
8
|
+
"flash-header": "awsui_flash-header_1q84n_1qb5k_27",
|
|
9
|
+
"flash-content": "awsui_flash-content_1q84n_1qb5k_28",
|
|
10
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1qb5k_29",
|
|
11
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1qb5k_30",
|
|
12
|
+
"flash-icon": "awsui_flash-icon_1q84n_1qb5k_53",
|
|
13
|
+
"entering": "awsui_entering_1q84n_1qb5k_66",
|
|
14
|
+
"entered": "awsui_entered_1q84n_1qb5k_87",
|
|
15
|
+
"exiting": "awsui_exiting_1q84n_1qb5k_192",
|
|
16
|
+
"stack": "awsui_stack_1q84n_1qb5k_218",
|
|
17
|
+
"animation-running": "awsui_animation-running_1q84n_1qb5k_218",
|
|
18
|
+
"item": "awsui_item_1q84n_1qb5k_218",
|
|
19
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1qb5k_219",
|
|
20
|
+
"notification-bar": "awsui_notification-bar_1q84n_1qb5k_220",
|
|
21
|
+
"collapsed": "awsui_collapsed_1q84n_1qb5k_240",
|
|
22
|
+
"animation-ready": "awsui_animation-ready_1q84n_1qb5k_240",
|
|
23
|
+
"expanded-only": "awsui_expanded-only_1q84n_1qb5k_240",
|
|
24
|
+
"expanded": "awsui_expanded_1q84n_1qb5k_240",
|
|
25
|
+
"flash": "awsui_flash_1q84n_1qb5k_13",
|
|
26
|
+
"collapsible": "awsui_collapsible_1q84n_1qb5k_296",
|
|
27
|
+
"short-list": "awsui_short-list_1q84n_1qb5k_302",
|
|
28
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1qb5k_340",
|
|
29
|
+
"status": "awsui_status_1q84n_1qb5k_413",
|
|
30
|
+
"header": "awsui_header_1q84n_1qb5k_413",
|
|
31
|
+
"item-count": "awsui_item-count_1q84n_1qb5k_414",
|
|
32
|
+
"button": "awsui_button_1q84n_1qb5k_415",
|
|
33
|
+
"type-count": "awsui_type-count_1q84n_1qb5k_448",
|
|
34
|
+
"count-number": "awsui_count-number_1q84n_1qb5k_448",
|
|
35
|
+
"icon": "awsui_icon_1q84n_1qb5k_482",
|
|
36
|
+
"floating": "awsui_floating_1q84n_1qb5k_523",
|
|
37
|
+
"flashbar": "awsui_flashbar_1q84n_1qb5k_527",
|
|
38
|
+
"initial-hidden": "awsui_initial-hidden_1q84n_1qb5k_587",
|
|
39
|
+
"flash-list": "awsui_flash-list_1q84n_1qb5k_219",
|
|
40
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1qb5k_611",
|
|
41
|
+
"flash-text": "awsui_flash-text_1q84n_1qb5k_641",
|
|
42
|
+
"hidden": "awsui_hidden_1q84n_1qb5k_660",
|
|
43
|
+
"header-replacement": "awsui_header-replacement_1q84n_1qb5k_665",
|
|
44
|
+
"content-replacement": "awsui_content-replacement_1q84n_1qb5k_670",
|
|
45
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1qb5k_30",
|
|
46
|
+
"action-wrapped": "awsui_action-wrapped_1q84n_1qb5k_688",
|
|
47
|
+
"action-button": "awsui_action-button_1q84n_1qb5k_29",
|
|
48
|
+
"action-slot": "awsui_action-slot_1q84n_1qb5k_695",
|
|
49
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1qb5k_699",
|
|
50
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1qb5k_707",
|
|
51
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1qb5k_715",
|
|
52
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1qb5k_716",
|
|
53
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1qb5k_725"
|
|
54
54
|
};
|
|
55
55
|
|