@cloudscape-design/components 3.0.73 → 3.0.75
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/alert/interfaces.d.ts +5 -0
- package/alert/interfaces.d.ts.map +1 -1
- package/alert/interfaces.js.map +1 -1
- package/alert/internal.d.ts +1 -1
- package/alert/internal.d.ts.map +1 -1
- package/alert/internal.js +2 -2
- package/alert/internal.js.map +1 -1
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +59 -59
- package/app-layout/visual-refresh/styles.scoped.css +218 -218
- package/app-layout/visual-refresh/styles.selectors.js +59 -59
- package/attribute-editor/interfaces.d.ts +7 -0
- package/attribute-editor/interfaces.d.ts.map +1 -1
- package/attribute-editor/interfaces.js.map +1 -1
- package/attribute-editor/internal.d.ts.map +1 -1
- package/attribute-editor/internal.js +2 -2
- package/attribute-editor/internal.js.map +1 -1
- package/attribute-editor/row.d.ts +2 -1
- package/attribute-editor/row.d.ts.map +1 -1
- package/attribute-editor/row.js +5 -10
- package/attribute-editor/row.js.map +1 -1
- package/calendar/grid/index.d.ts +15 -3
- package/calendar/grid/index.d.ts.map +1 -1
- package/calendar/grid/index.js +19 -17
- package/calendar/grid/index.js.map +1 -1
- package/calendar/internal.d.ts.map +1 -1
- package/calendar/internal.js +5 -17
- package/calendar/internal.js.map +1 -1
- package/calendar/utils/intl.d.ts +2 -3
- package/calendar/utils/intl.d.ts.map +1 -1
- package/calendar/utils/intl.js +6 -5
- package/calendar/utils/intl.js.map +1 -1
- package/calendar/utils/navigation.d.ts +6 -0
- package/calendar/utils/navigation.d.ts.map +1 -0
- package/calendar/utils/navigation.js +38 -0
- package/calendar/utils/navigation.js.map +1 -0
- package/date-picker/index.d.ts.map +1 -1
- package/date-picker/index.js +2 -1
- package/date-picker/index.js.map +1 -1
- package/date-picker/styles.css.js +6 -7
- package/date-picker/styles.scoped.css +7 -13
- package/date-picker/styles.selectors.js +6 -7
- package/date-range-picker/calendar/grids/grid.d.ts +1 -1
- package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/grid.js +36 -35
- package/date-range-picker/calendar/grids/grid.js.map +1 -1
- package/date-range-picker/calendar/grids/index.d.ts +1 -3
- package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/index.js +10 -11
- package/date-range-picker/calendar/grids/index.js.map +1 -1
- package/date-range-picker/calendar/grids/styles.css.js +25 -21
- package/date-range-picker/calendar/grids/styles.scoped.css +60 -40
- package/date-range-picker/calendar/grids/styles.selectors.js +25 -21
- package/date-range-picker/calendar/header/index.d.ts +2 -2
- package/date-range-picker/calendar/header/index.d.ts.map +1 -1
- package/date-range-picker/calendar/header/index.js +13 -9
- package/date-range-picker/calendar/header/index.js.map +1 -1
- package/date-range-picker/calendar/index.d.ts.map +1 -1
- package/date-range-picker/calendar/index.js +4 -6
- package/date-range-picker/calendar/index.js.map +1 -1
- package/date-range-picker/dropdown.js +1 -1
- package/date-range-picker/dropdown.js.map +1 -1
- package/date-range-picker/interfaces.d.ts +4 -0
- package/date-range-picker/interfaces.d.ts.map +1 -1
- package/date-range-picker/interfaces.js.map +1 -1
- package/date-range-picker/styles.css.js +37 -41
- package/date-range-picker/styles.scoped.css +45 -72
- package/date-range-picker/styles.selectors.js +37 -41
- package/flashbar/index.d.ts.map +1 -1
- package/flashbar/index.js +105 -34
- package/flashbar/index.js.map +1 -1
- package/flashbar/styles.css.js +29 -22
- package/flashbar/styles.scoped.css +208 -86
- package/flashbar/styles.selectors.js +29 -22
- package/form/interfaces.d.ts +5 -0
- package/form/interfaces.d.ts.map +1 -1
- package/form/interfaces.js.map +1 -1
- package/form/internal.d.ts +1 -1
- package/form/internal.d.ts.map +1 -1
- package/form/internal.js +10 -5
- package/form/internal.js.map +1 -1
- package/input/internal.d.ts +2 -1
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +4 -0
- package/input/internal.js.map +1 -1
- package/input/utils.js +1 -1
- package/input/utils.js.map +1 -1
- package/internal/base-component/styles.scoped.css +4 -4
- package/internal/components/autosuggest-input/index.js +1 -1
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/live-region/index.d.ts +3 -2
- package/internal/components/live-region/index.d.ts.map +1 -1
- package/internal/components/live-region/index.js +5 -2
- package/internal/components/live-region/index.js.map +1 -1
- package/internal/components/live-region/styles.css.js +1 -1
- package/internal/components/live-region/styles.scoped.css +2 -92
- package/internal/components/live-region/styles.selectors.js +1 -1
- package/internal/components/screenreader-only/index.d.ts +22 -0
- package/internal/components/screenreader-only/index.d.ts.map +1 -0
- package/internal/components/screenreader-only/index.js +24 -0
- package/internal/components/screenreader-only/index.js.map +1 -0
- package/internal/components/screenreader-only/styles.css.js +6 -0
- package/internal/components/screenreader-only/styles.scoped.css +97 -0
- package/internal/components/screenreader-only/styles.selectors.js +7 -0
- package/internal/components/visual-context/index.d.ts +7 -0
- package/internal/components/visual-context/index.d.ts.map +1 -1
- package/internal/components/visual-context/index.js +10 -1
- package/internal/components/visual-context/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +26 -24
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/styles/tokens.js +2 -2
- package/internal/generated/theming/index.cjs +3 -3
- package/internal/generated/theming/index.js +3 -3
- package/package.json +1 -1
- package/select/parts/filter.js +1 -1
- package/select/parts/filter.js.map +1 -1
- package/tag-editor/index.d.ts.map +1 -1
- package/tag-editor/index.js +1 -1
- package/tag-editor/index.js.map +1 -1
- package/test-utils/dom/date-range-picker/index.js +1 -1
- package/test-utils/dom/date-range-picker/index.js.map +1 -1
- package/test-utils/selectors/date-range-picker/index.js +1 -1
- package/test-utils/selectors/date-range-picker/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/tutorial-panel/interfaces.d.ts +2 -1
- package/tutorial-panel/interfaces.d.ts.map +1 -1
- package/tutorial-panel/interfaces.js.map +1 -1
- package/wizard/interfaces.d.ts +3 -0
- package/wizard/interfaces.d.ts.map +1 -1
- package/wizard/interfaces.js.map +1 -1
- package/wizard/wizard-form.d.ts.map +1 -1
- package/wizard/wizard-form.js +1 -1
- package/wizard/wizard-form.js.map +1 -1
- package/wizard/wizard-navigation.d.ts.map +1 -1
- package/wizard/wizard-navigation.js +1 -1
- package/wizard/wizard-navigation.js.map +1 -1
- package/calendar/utils/move-focus-handler.d.ts +0 -7
- package/calendar/utils/move-focus-handler.d.ts.map +0 -1
- package/calendar/utils/move-focus-handler.js +0 -24
- package/calendar/utils/move-focus-handler.js.map +0 -1
- package/calendar/utils/rotate-day-indexes.d.ts +0 -3
- package/calendar/utils/rotate-day-indexes.d.ts.map +0 -1
- package/calendar/utils/rotate-day-indexes.js +0 -11
- package/calendar/utils/rotate-day-indexes.js.map +0 -1
- package/date-range-picker/calendar/get-base-date.d.ts +0 -3
- package/date-range-picker/calendar/get-base-date.d.ts.map +0 -1
- package/date-range-picker/calendar/get-base-date.js +0 -10
- package/date-range-picker/calendar/get-base-date.js.map +0 -1
|
@@ -90,15 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
SPDX-License-Identifier: Apache-2.0
|
|
96
|
-
*/
|
|
97
|
-
.awsui_calendar_mgja0_194kz_97:not(#\9) {
|
|
98
|
-
animation: awsui_awsui-motion-fade-in-0_mgja0_194kz_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
|
|
93
|
+
.awsui_calendar_mgja0_1vo3v_93:not(#\9) {
|
|
94
|
+
animation: awsui_awsui-motion-fade-in-0_mgja0_1vo3v_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
|
|
99
95
|
animation-fill-mode: both;
|
|
100
96
|
}
|
|
101
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
97
|
+
@keyframes awsui_awsui-motion-fade-in-0_mgja0_1vo3v_1 {
|
|
102
98
|
from {
|
|
103
99
|
opacity: 0;
|
|
104
100
|
}
|
|
@@ -107,12 +103,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
107
103
|
}
|
|
108
104
|
}
|
|
109
105
|
@media (prefers-reduced-motion: reduce) {
|
|
110
|
-
.
|
|
106
|
+
.awsui_calendar_mgja0_1vo3v_93:not(#\9) {
|
|
111
107
|
animation: none;
|
|
112
108
|
transition: none;
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
|
-
.awsui-motion-disabled .
|
|
111
|
+
.awsui-motion-disabled .awsui_calendar_mgja0_1vo3v_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_1vo3v_93:not(#\9) {
|
|
116
112
|
animation: none;
|
|
117
113
|
transition: none;
|
|
118
114
|
}
|
|
@@ -121,7 +117,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
121
117
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
122
118
|
SPDX-License-Identifier: Apache-2.0
|
|
123
119
|
*/
|
|
124
|
-
.
|
|
120
|
+
.awsui_root_mgja0_1vo3v_120:not(#\9) {
|
|
125
121
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
126
122
|
border-collapse: separate;
|
|
127
123
|
border-spacing: 0;
|
|
@@ -159,28 +155,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
159
155
|
max-width: 32em;
|
|
160
156
|
}
|
|
161
157
|
|
|
162
|
-
.awsui_trigger-
|
|
158
|
+
.awsui_trigger-wrapper_mgja0_1vo3v_132:not(#\9) {
|
|
163
159
|
min-width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
|
|
164
160
|
}
|
|
165
161
|
|
|
166
|
-
.awsui_trigger-
|
|
162
|
+
.awsui_trigger-flexbox_mgja0_1vo3v_136:not(#\9) {
|
|
167
163
|
display: flex;
|
|
168
164
|
}
|
|
169
165
|
|
|
170
|
-
.
|
|
166
|
+
.awsui_calendar_mgja0_1vo3v_93:not(#\9) {
|
|
171
167
|
display: block;
|
|
172
168
|
width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px));
|
|
173
169
|
}
|
|
174
|
-
.
|
|
170
|
+
.awsui_calendar_mgja0_1vo3v_93.awsui_one-grid_mgja0_1vo3v_144:not(#\9) {
|
|
175
171
|
width: var(--size-calendar-grid-width-lxsx0p, 238px);
|
|
176
172
|
}
|
|
177
|
-
.awsui_calendar-
|
|
173
|
+
.awsui_calendar-header_mgja0_1vo3v_147:not(#\9) {
|
|
178
174
|
display: flex;
|
|
179
175
|
justify-content: space-between;
|
|
180
176
|
align-items: center;
|
|
181
177
|
position: relative;
|
|
182
178
|
}
|
|
183
|
-
.awsui_calendar-header-months-
|
|
179
|
+
.awsui_calendar-header-months-wrapper_mgja0_1vo3v_153:not(#\9) {
|
|
184
180
|
position: absolute;
|
|
185
181
|
right: 0;
|
|
186
182
|
left: 0;
|
|
@@ -192,7 +188,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
192
188
|
flex: 1;
|
|
193
189
|
pointer-events: none;
|
|
194
190
|
}
|
|
195
|
-
.awsui_calendar-header-
|
|
191
|
+
.awsui_calendar-header-month_mgja0_1vo3v_153:not(#\9) {
|
|
196
192
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
197
193
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
198
194
|
font-weight: 700;
|
|
@@ -200,157 +196,134 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
200
196
|
display: flex;
|
|
201
197
|
pointer-events: auto;
|
|
202
198
|
}
|
|
203
|
-
.awsui_calendar-next-month-
|
|
199
|
+
.awsui_calendar-next-month-btn_mgja0_1vo3v_173:not(#\9) {
|
|
204
200
|
/* used for identifying element */
|
|
205
201
|
}
|
|
206
|
-
.awsui_calendar-prev-month-
|
|
202
|
+
.awsui_calendar-prev-month-btn_mgja0_1vo3v_176:not(#\9) {
|
|
207
203
|
/* used for identifying element */
|
|
208
204
|
}
|
|
209
|
-
.awsui_calendar-day-names_mgja0_194kz_183:not(#\9) {
|
|
210
|
-
display: flex;
|
|
211
|
-
justify-content: stretch;
|
|
212
|
-
}
|
|
213
|
-
.awsui_calendar-day-name_mgja0_194kz_183:not(#\9) {
|
|
214
|
-
flex: 1 1 0%;
|
|
215
|
-
width: 0;
|
|
216
|
-
word-break: break-word;
|
|
217
|
-
text-align: center;
|
|
218
|
-
padding: var(--space-s-hv8c1d, 12px) 0 var(--space-xxs-ynfts5, 4px);
|
|
219
|
-
color: var(--color-text-calendar-month-elf7e9, #5f6b7a);
|
|
220
|
-
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
221
|
-
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
222
|
-
letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
|
|
223
|
-
}
|
|
224
|
-
.awsui_calendar-week_mgja0_194kz_198:not(#\9) {
|
|
225
|
-
display: flex;
|
|
226
|
-
justify-content: stretch;
|
|
227
|
-
}
|
|
228
205
|
|
|
229
|
-
.awsui_first-
|
|
230
|
-
.awsui_second-
|
|
206
|
+
.awsui_first-grid_mgja0_1vo3v_180:not(#\9),
|
|
207
|
+
.awsui_second-grid_mgja0_1vo3v_181:not(#\9) {
|
|
231
208
|
/* used in test-utils */
|
|
232
209
|
}
|
|
233
210
|
|
|
234
|
-
.
|
|
235
|
-
width: var(--size-calendar-grid-width-lxsx0p, 238px);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.awsui_date-and-time-wrapper_mgja0_194kz_212:not(#\9) {
|
|
211
|
+
.awsui_date-and-time-wrapper_mgja0_1vo3v_185:not(#\9) {
|
|
239
212
|
width: var(--size-calendar-grid-width-lxsx0p, 238px);
|
|
240
213
|
}
|
|
241
214
|
|
|
242
|
-
.awsui_date-and-time-
|
|
215
|
+
.awsui_date-and-time-wrapper_mgja0_1vo3v_185:not(#\9):not(.awsui_date-only_mgja0_1vo3v_189) {
|
|
243
216
|
display: grid;
|
|
244
217
|
column-gap: var(--space-xs-rsr2qu, 8px);
|
|
245
218
|
grid-template-columns: 1fr 1fr;
|
|
246
219
|
}
|
|
247
220
|
|
|
248
|
-
.awsui_date-and-time-
|
|
221
|
+
.awsui_date-and-time-constrainttext_mgja0_1vo3v_195:not(#\9) {
|
|
249
222
|
color: var(--color-text-form-secondary-ih9x7l, #5f6b7a);
|
|
250
223
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
251
224
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
252
225
|
letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
|
|
253
226
|
}
|
|
254
227
|
|
|
255
|
-
.
|
|
228
|
+
.awsui_footer_mgja0_1vo3v_202:not(#\9) {
|
|
256
229
|
display: flex;
|
|
257
230
|
flex-wrap: wrap;
|
|
258
231
|
justify-content: flex-end;
|
|
259
232
|
border-top: 1px solid var(--color-border-dropdown-item-default-faosd8, #e9ebed);
|
|
260
233
|
padding: 0 var(--space-l-4vl6xu, 20px) var(--space-s-hv8c1d, 12px);
|
|
261
234
|
}
|
|
262
|
-
.
|
|
235
|
+
.awsui_footer_mgja0_1vo3v_202.awsui_has-clear-button_mgja0_1vo3v_209:not(#\9) {
|
|
263
236
|
justify-content: space-between;
|
|
264
237
|
}
|
|
265
|
-
.
|
|
238
|
+
.awsui_footer_mgja0_1vo3v_202.awsui_one-grid_mgja0_1vo3v_144:not(#\9) {
|
|
266
239
|
padding: 0 var(--space-xs-rsr2qu, 8px) var(--space-s-hv8c1d, 12px);
|
|
267
240
|
}
|
|
268
241
|
|
|
269
|
-
.awsui_footer-button-
|
|
242
|
+
.awsui_footer-button-wrapper_mgja0_1vo3v_216:not(#\9) {
|
|
270
243
|
padding-top: var(--space-s-hv8c1d, 12px);
|
|
271
244
|
}
|
|
272
245
|
|
|
273
|
-
.awsui_icon-
|
|
246
|
+
.awsui_icon-wrapper_mgja0_1vo3v_220:not(#\9) {
|
|
274
247
|
color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
275
248
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
276
249
|
}
|
|
277
250
|
|
|
278
|
-
.
|
|
251
|
+
.awsui_label_mgja0_1vo3v_225:not(#\9) {
|
|
279
252
|
-webkit-user-select: text;
|
|
280
253
|
user-select: text;
|
|
281
254
|
cursor: default;
|
|
282
255
|
}
|
|
283
256
|
|
|
284
|
-
.
|
|
257
|
+
.awsui_label_mgja0_1vo3v_225.awsui_label-enabled_mgja0_1vo3v_230:not(#\9):hover > .awsui_trigger-flexbox_mgja0_1vo3v_136 > .awsui_icon-wrapper_mgja0_1vo3v_220 {
|
|
285
258
|
color: var(--color-text-interactive-hover-v3lasm, #000716);
|
|
286
259
|
}
|
|
287
260
|
|
|
288
|
-
.awsui_label-
|
|
261
|
+
.awsui_label-text_mgja0_1vo3v_234:not(#\9) {
|
|
289
262
|
color: var(--color-text-input-placeholder-j53j3c, #5f6b7a);
|
|
290
263
|
font-style: italic;
|
|
291
264
|
}
|
|
292
265
|
|
|
293
|
-
.awsui_label-token-
|
|
266
|
+
.awsui_label-token-nowrap_mgja0_1vo3v_239:not(#\9) {
|
|
294
267
|
white-space: nowrap;
|
|
295
268
|
}
|
|
296
269
|
|
|
297
|
-
.awsui_mode-
|
|
270
|
+
.awsui_mode-switch_mgja0_1vo3v_243:not(#\9) {
|
|
298
271
|
/* used in test-utils */
|
|
299
272
|
}
|
|
300
273
|
|
|
301
|
-
.
|
|
274
|
+
.awsui_dropdown_mgja0_1vo3v_247:not(#\9) {
|
|
302
275
|
overflow: auto;
|
|
303
276
|
border-top: 1px solid var(--color-border-container-top-srcvx4, transparent);
|
|
304
277
|
border-bottom: 1px solid var(--color-border-container-top-srcvx4, transparent);
|
|
305
278
|
border-radius: var(--border-radius-dropdown-ujknaf, 8px);
|
|
306
279
|
}
|
|
307
|
-
.
|
|
280
|
+
.awsui_dropdown_mgja0_1vo3v_247:not(#\9):focus {
|
|
308
281
|
outline: none;
|
|
309
282
|
}
|
|
310
|
-
.
|
|
283
|
+
.awsui_dropdown_mgja0_1vo3v_247[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
311
284
|
outline: 2px dotted transparent;
|
|
312
285
|
outline-offset: 2px;
|
|
313
286
|
border-radius: var(--border-radius-dropdown-ujknaf, 8px);
|
|
314
287
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
315
288
|
}
|
|
316
289
|
|
|
317
|
-
.awsui_dropdown-
|
|
290
|
+
.awsui_dropdown-content_mgja0_1vo3v_263:not(#\9) {
|
|
318
291
|
-webkit-user-select: text;
|
|
319
292
|
user-select: text;
|
|
320
293
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
321
294
|
width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px) + 2 * var(--space-l-4vl6xu, 20px));
|
|
322
295
|
}
|
|
323
|
-
.awsui_dropdown-
|
|
296
|
+
.awsui_dropdown-content_mgja0_1vo3v_263.awsui_one-grid_mgja0_1vo3v_144:not(#\9) {
|
|
324
297
|
width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
|
|
325
298
|
}
|
|
326
299
|
|
|
327
|
-
.awsui_start-date-
|
|
328
|
-
.awsui_start-time-
|
|
329
|
-
.awsui_end-date-
|
|
330
|
-
.awsui_end-time-
|
|
300
|
+
.awsui_start-date-input_mgja0_1vo3v_272:not(#\9),
|
|
301
|
+
.awsui_start-time-input_mgja0_1vo3v_273:not(#\9),
|
|
302
|
+
.awsui_end-date-input_mgja0_1vo3v_274:not(#\9),
|
|
303
|
+
.awsui_end-time-input_mgja0_1vo3v_275:not(#\9) {
|
|
331
304
|
/* used in test-utils */
|
|
332
305
|
}
|
|
333
306
|
|
|
334
|
-
.awsui_validation-
|
|
307
|
+
.awsui_validation-section_mgja0_1vo3v_279:not(#\9) {
|
|
335
308
|
/* used in test-utils */
|
|
336
309
|
}
|
|
337
310
|
|
|
338
|
-
.awsui_validation-
|
|
311
|
+
.awsui_validation-error_mgja0_1vo3v_283:not(#\9) {
|
|
339
312
|
/* used in test-utils */
|
|
340
313
|
}
|
|
341
314
|
|
|
342
|
-
.awsui_clear-
|
|
315
|
+
.awsui_clear-button_mgja0_1vo3v_287:not(#\9) {
|
|
343
316
|
/* used in test-utils */
|
|
344
317
|
}
|
|
345
318
|
|
|
346
|
-
.awsui_apply-
|
|
319
|
+
.awsui_apply-button_mgja0_1vo3v_291:not(#\9) {
|
|
347
320
|
/* used in test-utils */
|
|
348
321
|
}
|
|
349
322
|
|
|
350
|
-
.awsui_cancel-
|
|
323
|
+
.awsui_cancel-button_mgja0_1vo3v_295:not(#\9) {
|
|
351
324
|
/* used in test-utils */
|
|
352
325
|
}
|
|
353
326
|
|
|
354
|
-
.awsui_calendar-aria-
|
|
327
|
+
.awsui_calendar-aria-live_mgja0_1vo3v_299:not(#\9) {
|
|
355
328
|
/* used in test-utils */
|
|
356
329
|
}
|
|
@@ -2,46 +2,42 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"calendar": "
|
|
6
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
7
|
-
"root": "
|
|
8
|
-
"trigger-wrapper": "awsui_trigger-
|
|
9
|
-
"trigger-flexbox": "awsui_trigger-
|
|
10
|
-
"one-grid": "awsui_one-
|
|
11
|
-
"calendar-header": "awsui_calendar-
|
|
12
|
-
"calendar-header-months-wrapper": "awsui_calendar-header-months-
|
|
13
|
-
"calendar-header-month": "awsui_calendar-header-
|
|
14
|
-
"calendar-next-month-btn": "awsui_calendar-next-month-
|
|
15
|
-
"calendar-prev-month-btn": "awsui_calendar-prev-month-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"clear-button": "awsui_clear-button_mgja0_194kz_314",
|
|
43
|
-
"apply-button": "awsui_apply-button_mgja0_194kz_318",
|
|
44
|
-
"cancel-button": "awsui_cancel-button_mgja0_194kz_322",
|
|
45
|
-
"calendar-aria-live": "awsui_calendar-aria-live_mgja0_194kz_326"
|
|
5
|
+
"calendar": "awsui_calendar_mgja0_1vo3v_93",
|
|
6
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_1vo3v_1",
|
|
7
|
+
"root": "awsui_root_mgja0_1vo3v_120",
|
|
8
|
+
"trigger-wrapper": "awsui_trigger-wrapper_mgja0_1vo3v_132",
|
|
9
|
+
"trigger-flexbox": "awsui_trigger-flexbox_mgja0_1vo3v_136",
|
|
10
|
+
"one-grid": "awsui_one-grid_mgja0_1vo3v_144",
|
|
11
|
+
"calendar-header": "awsui_calendar-header_mgja0_1vo3v_147",
|
|
12
|
+
"calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_1vo3v_153",
|
|
13
|
+
"calendar-header-month": "awsui_calendar-header-month_mgja0_1vo3v_153",
|
|
14
|
+
"calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_1vo3v_173",
|
|
15
|
+
"calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_1vo3v_176",
|
|
16
|
+
"first-grid": "awsui_first-grid_mgja0_1vo3v_180",
|
|
17
|
+
"second-grid": "awsui_second-grid_mgja0_1vo3v_181",
|
|
18
|
+
"date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_1vo3v_185",
|
|
19
|
+
"date-only": "awsui_date-only_mgja0_1vo3v_189",
|
|
20
|
+
"date-and-time-constrainttext": "awsui_date-and-time-constrainttext_mgja0_1vo3v_195",
|
|
21
|
+
"footer": "awsui_footer_mgja0_1vo3v_202",
|
|
22
|
+
"has-clear-button": "awsui_has-clear-button_mgja0_1vo3v_209",
|
|
23
|
+
"footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_1vo3v_216",
|
|
24
|
+
"icon-wrapper": "awsui_icon-wrapper_mgja0_1vo3v_220",
|
|
25
|
+
"label": "awsui_label_mgja0_1vo3v_225",
|
|
26
|
+
"label-enabled": "awsui_label-enabled_mgja0_1vo3v_230",
|
|
27
|
+
"label-text": "awsui_label-text_mgja0_1vo3v_234",
|
|
28
|
+
"label-token-nowrap": "awsui_label-token-nowrap_mgja0_1vo3v_239",
|
|
29
|
+
"mode-switch": "awsui_mode-switch_mgja0_1vo3v_243",
|
|
30
|
+
"dropdown": "awsui_dropdown_mgja0_1vo3v_247",
|
|
31
|
+
"dropdown-content": "awsui_dropdown-content_mgja0_1vo3v_263",
|
|
32
|
+
"start-date-input": "awsui_start-date-input_mgja0_1vo3v_272",
|
|
33
|
+
"start-time-input": "awsui_start-time-input_mgja0_1vo3v_273",
|
|
34
|
+
"end-date-input": "awsui_end-date-input_mgja0_1vo3v_274",
|
|
35
|
+
"end-time-input": "awsui_end-time-input_mgja0_1vo3v_275",
|
|
36
|
+
"validation-section": "awsui_validation-section_mgja0_1vo3v_279",
|
|
37
|
+
"validation-error": "awsui_validation-error_mgja0_1vo3v_283",
|
|
38
|
+
"clear-button": "awsui_clear-button_mgja0_1vo3v_287",
|
|
39
|
+
"apply-button": "awsui_apply-button_mgja0_1vo3v_291",
|
|
40
|
+
"cancel-button": "awsui_cancel-button_mgja0_1vo3v_295",
|
|
41
|
+
"calendar-aria-live": "awsui_calendar-aria-live_mgja0_1vo3v_299"
|
|
46
42
|
};
|
|
47
43
|
|
package/flashbar/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAc7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,eAgKtE"}
|
package/flashbar/index.js
CHANGED
|
@@ -2,52 +2,123 @@ import { __assign, __rest } from "tslib";
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
|
|
7
|
-
import { getBaseProps } from '../internal/base-component';
|
|
8
|
-
import styles from './styles.css.js';
|
|
9
|
-
import { Flash } from './flash';
|
|
10
|
-
import { useContainerBreakpoints } from '../internal/hooks/container-queries';
|
|
5
|
+
import React, { useState } from 'react';
|
|
11
6
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
7
|
+
import customCssProps from '../internal/generated/custom-css-properties';
|
|
8
|
+
import { Flash } from './flash';
|
|
9
|
+
import { getBaseProps } from '../internal/base-component';
|
|
10
|
+
import InternalIcon from '../icon/internal';
|
|
11
|
+
import { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';
|
|
15
12
|
import { TransitionGroup } from 'react-transition-group';
|
|
16
13
|
import { Transition } from '../internal/components/transition';
|
|
17
|
-
import
|
|
14
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
15
|
+
import { useContainerBreakpoints } from '../internal/hooks/container-queries';
|
|
16
|
+
import useFocusVisible from '../internal/hooks/focus-visible';
|
|
17
|
+
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
|
|
18
|
+
import { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
19
|
+
import { getVisualContextClassname } from '../internal/components/visual-context';
|
|
20
|
+
import styles from './styles.css.js';
|
|
18
21
|
export default function Flashbar(_a) {
|
|
19
22
|
var items = _a.items, restProps = __rest(_a, ["items"]);
|
|
20
23
|
var __internalRootRef = useBaseComponent('Flashbar').__internalRootRef;
|
|
21
24
|
var _b = useContainerBreakpoints(['xs']), breakpoint = _b[0], ref = _b[1];
|
|
22
|
-
var isRefresh = useVisualRefresh();
|
|
23
25
|
var baseProps = getBaseProps(restProps);
|
|
24
26
|
var mergedRef = useMergeRefs(ref, __internalRootRef);
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
var isFocusVisible = useFocusVisible();
|
|
28
|
+
var isVisualRefresh = useVisualRefresh();
|
|
29
|
+
/**
|
|
30
|
+
* All the flash items should have ids so we can identify which DOM element is being
|
|
31
|
+
* removed from the DOM to animate it. Motion will be disabled if any of the provided
|
|
32
|
+
* flash messages does not contain an `id`.
|
|
33
|
+
*/
|
|
34
|
+
var motionDisabled = useReducedMotion(ref) || !isVisualRefresh || (items && !items.every(function (item) { return 'id' in item; }));
|
|
35
|
+
/**
|
|
36
|
+
* The `stackItems` property is a hidden boolean that allows for teams
|
|
37
|
+
* to beta test the flashbar stacking feature.
|
|
38
|
+
*/
|
|
39
|
+
var stackItems = restProps.stackItems;
|
|
40
|
+
var ariaLabels = restProps.ariaLabels;
|
|
41
|
+
var isFlashbarStacked = stackItems && (items === null || items === void 0 ? void 0 : items.length) > 3;
|
|
42
|
+
var _c = useState(false), isFlashbarStackExpanded = _c[0], setIsFlashbarStackExpanded = _c[1];
|
|
43
|
+
/**
|
|
44
|
+
* Compute the appropriate aria label for the stacked notifications toggle button
|
|
45
|
+
* based on the expanded/collapsed state of the stack and the presence of
|
|
46
|
+
* corresponding aria label properties.
|
|
47
|
+
*/
|
|
48
|
+
function getStackButtonAriaLabel() {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
var stackButtonAriaLabel;
|
|
51
|
+
if (isFlashbarStackExpanded) {
|
|
52
|
+
stackButtonAriaLabel = (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.stackCollapseLabel) !== null && _a !== void 0 ? _a : 'Collapse stacked notifications';
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
stackButtonAriaLabel = (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.stackExpandLabel) !== null && _b !== void 0 ? _b : 'Expand stacked notifications';
|
|
56
|
+
}
|
|
57
|
+
return stackButtonAriaLabel;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* If the `isFlashbarStacked` is true (which is only possible if `stackItems` is true)
|
|
61
|
+
* then the first item should be rendered followed by two dummy items that visually indicate
|
|
62
|
+
* two, three, or more items exist in the stack.
|
|
63
|
+
*/
|
|
64
|
+
function renderStackedItems() {
|
|
29
65
|
var _a;
|
|
30
|
-
|
|
66
|
+
if (!isFlashbarStacked) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
var stackDepth = Math.min(3, items.length);
|
|
70
|
+
var stackedItems = items.slice(0, stackDepth);
|
|
71
|
+
return (React.createElement("div", { className: styles.stack, style: (_a = {}, _a[customCssProps.flashbarStackDepth] = stackDepth, _a) },
|
|
72
|
+
!isFlashbarStackExpanded && (React.createElement("div", { className: clsx(styles.collapsed, isVisualRefresh && styles['visual-refresh']) }, stackedItems.map(function (item, index) {
|
|
73
|
+
var _a;
|
|
74
|
+
var _b, _c;
|
|
75
|
+
return (React.createElement("div", { className: styles.item, style: (_a = {}, _a[customCssProps.flashbarStackIndex] = index, _a), key: index },
|
|
76
|
+
index === 0 && renderItem(item, (_b = item.id) !== null && _b !== void 0 ? _b : index),
|
|
77
|
+
index > 0 && React.createElement("div", { className: clsx(styles.flash, styles["flash-type-".concat((_c = item.type) !== null && _c !== void 0 ? _c : 'info')]) })));
|
|
78
|
+
}))),
|
|
79
|
+
isFlashbarStackExpanded && (React.createElement("div", { className: styles.expanded }, items.map(function (item, index) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index); }))),
|
|
80
|
+
React.createElement("button", __assign({ "aria-label": getStackButtonAriaLabel(), className: clsx(styles.toggle, isVisualRefresh && styles['visual-refresh']), onClick: function () { return setIsFlashbarStackExpanded(!isFlashbarStackExpanded); } }, isFocusVisible),
|
|
81
|
+
React.createElement(InternalIcon, { className: clsx(styles.icon, isFlashbarStackExpanded && styles.expanded), size: "small", name: "angle-down" }))));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* If the flashbar is flat and motion is `enabled` then the adding and removing of items
|
|
85
|
+
* from the flashbar will render with visual transitions.
|
|
86
|
+
*/
|
|
87
|
+
function renderFlatItemsWithTransitions() {
|
|
88
|
+
if (isFlashbarStacked || motionDisabled || !items) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
return (React.createElement(TransitionGroup, { component: null }, items &&
|
|
92
|
+
items.map(function (item, index) {
|
|
93
|
+
var _a;
|
|
94
|
+
return (React.createElement(Transition, { transitionChangeDelay: { entering: TIMEOUT_FOR_ENTERING_ANIMATION }, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, "in": true }, function (state, transitionRootElement) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index, transitionRootElement, state); }));
|
|
95
|
+
})));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* If the flashbar is flat and motion is `disabled` then the adding and removing of items
|
|
99
|
+
* from the flashbar will render without visual transitions.
|
|
100
|
+
*/
|
|
101
|
+
function renderFlatItemsWithoutTransitions() {
|
|
102
|
+
if (isFlashbarStacked || !motionDisabled || !items) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
return React.createElement(React.Fragment, null, items.map(function (item, index) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index); }));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* This is a shared render function for a single flashbar item to be used
|
|
109
|
+
* by the stacking, motion, and non-motion item group render functions.
|
|
110
|
+
*/
|
|
111
|
+
function renderItem(item, key, transitionRootElement, transitionState) {
|
|
112
|
+
return (React.createElement(Flash
|
|
113
|
+
// eslint-disable-next-line react/forbid-component-props
|
|
114
|
+
, __assign({
|
|
31
115
|
// eslint-disable-next-line react/forbid-component-props
|
|
32
|
-
className: clsx(
|
|
33
|
-
}
|
|
34
|
-
var renderFlashItemsWithTransitions = function (items) {
|
|
35
|
-
return (React.createElement(React.Fragment, null,
|
|
36
|
-
React.createElement(TransitionGroup, { component: null }, items &&
|
|
37
|
-
items.map(function (item, index) {
|
|
38
|
-
var _a;
|
|
39
|
-
return (React.createElement(Transition, { transitionChangeDelay: { entering: TIMEOUT_FOR_ENTERING_ANIMATION }, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, "in": true }, function (state, transitionRootElement) {
|
|
40
|
-
var _a;
|
|
41
|
-
return (React.createElement(Flash, __assign({ ref: transitionRootElement, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, transitionState: state,
|
|
42
|
-
// eslint-disable-next-line react/forbid-component-props
|
|
43
|
-
className: clsx(isRefresh ? styles['flash-refresh'] : '') }, item)));
|
|
44
|
-
}));
|
|
45
|
-
}))));
|
|
46
|
-
};
|
|
116
|
+
className: clsx(getVisualContextClassname('flashbar'), isVisualRefresh ? styles['flash-refresh'] : ''), key: key, ref: transitionRootElement, transitionState: transitionState }, item)));
|
|
117
|
+
}
|
|
47
118
|
return (React.createElement("div", __assign({}, baseProps, { className: clsx(baseProps.className, styles.flashbar, styles["breakpoint-".concat(breakpoint)]), ref: mergedRef }),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
119
|
+
renderStackedItems(),
|
|
120
|
+
renderFlatItemsWithTransitions(),
|
|
121
|
+
renderFlatItemsWithoutTransitions()));
|
|
51
122
|
}
|
|
52
123
|
applyDisplayName(Flashbar, 'Flashbar');
|
|
53
124
|
//# sourceMappingURL=index.js.map
|
package/flashbar/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,E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azon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { getBaseProps } from '../internal/base-component';\nimport styles from './styles.css.js';\nimport { Flash } from './flash';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport VisualContext from '../internal/components/visual-context';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { FlashbarProps } from './interfaces';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';\n\nexport { FlashbarProps };\n\nexport default function Flashbar({ items, ...restProps }: FlashbarProps) {\n const { __internalRootRef } = useBaseComponent('Flashbar');\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const isRefresh = useVisualRefresh();\n const baseProps = getBaseProps(restProps);\n\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n\n // All the flash items should have ids so we can identify which DOM element is being removed from the DOM to animate it.\n const motionDisabled = useReducedMotion(ref as any) || !isRefresh || (items && !items.every(item => 'id' in item));\n // Motion will be disabled if any of the provided flash messages does not contain an `id`\n\n const renderFlashItem = (item: FlashbarProps.MessageDefinition, index: number) => (\n <Flash\n key={item.id ?? index}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(isRefresh ? styles['flash-refresh'] : '')}\n {...item}\n />\n );\n const renderFlashItemsWithTransitions = (items: readonly FlashbarProps.MessageDefinition[]) => {\n return (\n <>\n <TransitionGroup component={null}>\n {items &&\n items.map((item, index) => (\n <Transition\n transitionChangeDelay={{ entering: TIMEOUT_FOR_ENTERING_ANIMATION }}\n key={item.id ?? index}\n in={true}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) => (\n <Flash\n ref={transitionRootElement}\n key={item.id ?? index}\n transitionState={state}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(isRefresh ? styles['flash-refresh'] : '')}\n {...item}\n />\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </>\n );\n };\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.flashbar, styles[`breakpoint-${breakpoint}`])}\n ref={mergedRef}\n >\n <VisualContext contextName=\"flashbar\">\n {items && (\n <>\n {motionDisabled\n ? items.map((item, index) => renderFlashItem(item, index))\n : renderFlashItemsWithTransitions(items)}\n </>\n )}\n </VisualContext>\n </div>\n );\n}\n\napplyDisplayName(Flashbar, 'Flashbar');\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mC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,CAAC;IAED;;;OAGG;IACH,SAAS,iCAAiC;QACxC,IAAI,iBAAiB,IAAI,CAAC,cAAc,IAAI,CAAC,KAAK,EAAE;YAClD,OAAO;SACR;QAED,OAAO,0CAAG,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,YAAK,OAAA,UAAU,CAAC,IAAI,EAAE,MAAA,IAAI,CAAC,EAAE,mCAAI,KAAK,CAAC,CAAA,EAAA,CAAC,CAAI,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,SAAS,UAAU,CACjB,IAAqC,EACrC,GAAoB,EACpB,qBAA6D,EAC7D,eAAoC;QAEpC,OAAO,CACL,oBAAC,KAAK;QACJ,wDAAwD;;YAAxD,wDAAwD;YACxD,SAAS,EAAE,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EACtG,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,qBAAqB,EAC1B,eAAe,EAAE,eAAe,IAC5B,IAAI,EACR,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,wCACM,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,qBAAc,UAAU,CAAE,CAAC,CAAC,EACzF,GAAG,EAAE,SAAS;QAEb,kBAAkB,EAAE;QACpB,8BAA8B,EAAE;QAChC,iCAAiC,EAAE,CAChC,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useState } from 'react';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { Flash } from './flash';\nimport { FlashbarProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalIcon from '../icon/internal';\nimport { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport useFocusVisible from '../internal/hooks/focus-visible';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { getVisualContextClassname } from '../internal/components/visual-context';\nimport styles from './styles.css.js';\n\nexport { FlashbarProps };\n\nexport default function Flashbar({ items, ...restProps }: FlashbarProps) {\n const { __internalRootRef } = useBaseComponent('Flashbar');\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const baseProps = getBaseProps(restProps);\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n const isFocusVisible = useFocusVisible();\n const isVisualRefresh = useVisualRefresh();\n\n /**\n * All the flash items should have ids so we can identify which DOM element is being\n * removed from the DOM to animate it. Motion will be disabled if any of the provided\n * flash messages does not contain an `id`.\n */\n const motionDisabled =\n useReducedMotion(ref as any) || !isVisualRefresh || (items && !items.every(item => 'id' in item));\n\n /**\n * The `stackItems` property is a hidden boolean that allows for teams\n * to beta test the flashbar stacking feature.\n */\n const stackItems = (restProps as any).stackItems;\n const ariaLabels = (restProps as any).ariaLabels;\n const isFlashbarStacked = stackItems && items?.length > 3;\n const [isFlashbarStackExpanded, setIsFlashbarStackExpanded] = useState(false);\n\n /**\n * Compute the appropriate aria label for the stacked notifications toggle button\n * based on the expanded/collapsed state of the stack and the presence of\n * corresponding aria label properties.\n */\n function getStackButtonAriaLabel() {\n let stackButtonAriaLabel;\n\n if (isFlashbarStackExpanded) {\n stackButtonAriaLabel = ariaLabels?.stackCollapseLabel ?? 'Collapse stacked notifications';\n } else {\n stackButtonAriaLabel = ariaLabels?.stackExpandLabel ?? 'Expand stacked notifications';\n }\n\n return stackButtonAriaLabel;\n }\n\n /**\n * If the `isFlashbarStacked` is true (which is only possible if `stackItems` is true)\n * then the first item should be rendered followed by two dummy items that visually indicate\n * two, three, or more items exist in the stack.\n */\n function renderStackedItems() {\n if (!isFlashbarStacked) {\n return;\n }\n\n const stackDepth = Math.min(3, items.length);\n const stackedItems = items.slice(0, stackDepth);\n\n return (\n <div className={styles.stack} style={{ [customCssProps.flashbarStackDepth]: stackDepth }}>\n {!isFlashbarStackExpanded && (\n <div className={clsx(styles.collapsed, isVisualRefresh && styles['visual-refresh'])}>\n {stackedItems.map((item, index) => (\n <div className={styles.item} style={{ [customCssProps.flashbarStackIndex]: index }} key={index}>\n {index === 0 && renderItem(item, item.id ?? index)}\n {index > 0 && <div className={clsx(styles.flash, styles[`flash-type-${item.type ?? 'info'}`])} />}\n </div>\n ))}\n </div>\n )}\n\n {isFlashbarStackExpanded && (\n <div className={styles.expanded}>{items.map((item, index) => renderItem(item, item.id ?? index))}</div>\n )}\n\n <button\n aria-label={getStackButtonAriaLabel()}\n className={clsx(styles.toggle, isVisualRefresh && styles['visual-refresh'])}\n onClick={() => setIsFlashbarStackExpanded(!isFlashbarStackExpanded)}\n {...isFocusVisible}\n >\n <InternalIcon\n className={clsx(styles.icon, isFlashbarStackExpanded && styles.expanded)}\n size=\"small\"\n name=\"angle-down\"\n />\n </button>\n </div>\n );\n }\n\n /**\n * If the flashbar is flat and motion is `enabled` then the adding and removing of items\n * from the flashbar will render with visual transitions.\n */\n function renderFlatItemsWithTransitions() {\n if (isFlashbarStacked || motionDisabled || !items) {\n return;\n }\n\n return (\n <TransitionGroup component={null}>\n {items &&\n items.map((item, index) => (\n <Transition\n transitionChangeDelay={{ entering: TIMEOUT_FOR_ENTERING_ANIMATION }}\n key={item.id ?? index}\n in={true}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) =>\n renderItem(item, item.id ?? index, transitionRootElement, state)\n }\n </Transition>\n ))}\n </TransitionGroup>\n );\n }\n\n /**\n * If the flashbar is flat and motion is `disabled` then the adding and removing of items\n * from the flashbar will render without visual transitions.\n */\n function renderFlatItemsWithoutTransitions() {\n if (isFlashbarStacked || !motionDisabled || !items) {\n return;\n }\n\n return <>{items.map((item, index) => renderItem(item, item.id ?? index))}</>;\n }\n\n /**\n * This is a shared render function for a single flashbar item to be used\n * by the stacking, motion, and non-motion item group render functions.\n */\n function renderItem(\n item: FlashbarProps.MessageDefinition,\n key: string | number,\n transitionRootElement?: React.Ref<HTMLDivElement> | undefined,\n transitionState?: string | undefined\n ) {\n return (\n <Flash\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(getVisualContextClassname('flashbar'), isVisualRefresh ? styles['flash-refresh'] : '')}\n key={key}\n ref={transitionRootElement}\n transitionState={transitionState}\n {...item}\n />\n );\n }\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.flashbar, styles[`breakpoint-${breakpoint}`])}\n ref={mergedRef}\n >\n {renderStackedItems()}\n {renderFlatItemsWithTransitions()}\n {renderFlatItemsWithoutTransitions()}\n </div>\n );\n}\n\napplyDisplayName(Flashbar, 'Flashbar');\n"]}
|
package/flashbar/styles.css.js
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"flash-refresh": "awsui_flash-
|
|
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
|
-
"flashbar": "
|
|
17
|
-
"flash": "
|
|
18
|
-
"flash-text": "awsui_flash-
|
|
19
|
-
"dismiss-button": "awsui_dismiss-
|
|
20
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
21
|
-
"action-button": "awsui_action-
|
|
22
|
-
"flash-type-success": "awsui_flash-type-
|
|
23
|
-
"flash-type-error": "awsui_flash-type-
|
|
24
|
-
"flash-type-warning": "awsui_flash-type-
|
|
25
|
-
"flash-type-info": "awsui_flash-type-
|
|
4
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_14a50_93",
|
|
5
|
+
"enter": "awsui_enter_1q84n_14a50_93",
|
|
6
|
+
"flash-body": "awsui_flash-body_1q84n_14a50_108",
|
|
7
|
+
"flash-message": "awsui_flash-message_1q84n_14a50_108",
|
|
8
|
+
"flash-header": "awsui_flash-header_1q84n_14a50_108",
|
|
9
|
+
"flash-content": "awsui_flash-content_1q84n_14a50_109",
|
|
10
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_14a50_110",
|
|
11
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_14a50_111",
|
|
12
|
+
"flash-icon": "awsui_flash-icon_1q84n_14a50_134",
|
|
13
|
+
"entering": "awsui_entering_1q84n_14a50_147",
|
|
14
|
+
"entered": "awsui_entered_1q84n_14a50_168",
|
|
15
|
+
"exiting": "awsui_exiting_1q84n_14a50_273",
|
|
16
|
+
"flashbar": "awsui_flashbar_1q84n_14a50_295",
|
|
17
|
+
"flash": "awsui_flash_1q84n_14a50_93",
|
|
18
|
+
"flash-text": "awsui_flash-text_1q84n_14a50_359",
|
|
19
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_14a50_111",
|
|
20
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_14a50_401",
|
|
21
|
+
"action-button": "awsui_action-button_1q84n_14a50_110",
|
|
22
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_14a50_414",
|
|
23
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_14a50_418",
|
|
24
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_14a50_422",
|
|
25
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_14a50_426",
|
|
26
|
+
"stack": "awsui_stack_1q84n_14a50_430",
|
|
27
|
+
"expanded": "awsui_expanded_1q84n_14a50_435",
|
|
28
|
+
"collapsed": "awsui_collapsed_1q84n_14a50_449",
|
|
29
|
+
"item": "awsui_item_1q84n_14a50_455",
|
|
30
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_14a50_465",
|
|
31
|
+
"toggle": "awsui_toggle_1q84n_14a50_472",
|
|
32
|
+
"icon": "awsui_icon_1q84n_14a50_535"
|
|
26
33
|
};
|
|
27
34
|
|