@cloudscape-design/components 3.0.749 → 3.0.750
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/actions-wrapper/index.d.ts +1 -1
- package/alert/actions-wrapper/index.d.ts.map +1 -1
- package/alert/actions-wrapper/index.js +2 -2
- package/alert/actions-wrapper/index.js.map +1 -1
- package/alert/internal.d.ts.map +1 -1
- package/alert/internal.js +5 -15
- package/alert/internal.js.map +1 -1
- package/alert/styles.css.js +25 -27
- package/alert/styles.scoped.css +39 -45
- package/alert/styles.selectors.js +25 -27
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -15
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +1 -1
- package/breadcrumb-group/implementation.js.map +1 -1
- package/breadcrumb-group/interfaces.d.ts +1 -1
- package/breadcrumb-group/interfaces.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +0 -7
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +2 -2
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +4 -4
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +12 -13
- package/button-dropdown/item-element/styles.scoped.css +14 -52
- package/button-dropdown/item-element/styles.selectors.js +12 -13
- package/button-dropdown/items-list.d.ts +1 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +2 -2
- package/button-dropdown/items-list.js.map +1 -1
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +5 -13
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +7 -19
- package/flashbar/flash.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/non-collapsible-flashbar.js +2 -4
- package/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/flashbar/styles.css.js +47 -50
- package/flashbar/styles.scoped.css +146 -152
- package/flashbar/styles.selectors.js +47 -50
- package/internal/components/tooltip/index.d.ts +1 -3
- package/internal/components/tooltip/index.d.ts.map +1 -1
- package/internal/components/tooltip/index.js +2 -2
- package/internal/components/tooltip/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/api.d.ts +0 -9
- package/internal/plugins/api.d.ts.map +1 -1
- package/internal/plugins/api.js +0 -7
- package/internal/plugins/api.js.map +1 -1
- package/internal/plugins/helpers/index.d.ts +0 -1
- package/internal/plugins/helpers/index.d.ts.map +1 -1
- package/internal/plugins/helpers/index.js +0 -1
- package/internal/plugins/helpers/index.js.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.d.ts +2 -2
- package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
- package/package.json +1 -1
- package/property-filter/styles.css.js +38 -38
- package/property-filter/styles.scoped.css +44 -40
- package/property-filter/styles.selectors.js +38 -38
- package/side-navigation/implementation.d.ts +1 -1
- package/side-navigation/implementation.d.ts.map +1 -1
- package/side-navigation/implementation.js +1 -2
- package/side-navigation/implementation.js.map +1 -1
- package/side-navigation/interfaces.d.ts +0 -4
- package/side-navigation/interfaces.d.ts.map +1 -1
- package/side-navigation/interfaces.js.map +1 -1
- package/side-navigation/styles.css.js +29 -30
- package/side-navigation/styles.scoped.css +41 -46
- package/side-navigation/styles.selectors.js +29 -30
- package/test-utils/dom/side-navigation/index.d.ts +0 -1
- package/test-utils/dom/side-navigation/index.js +0 -3
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.d.ts +0 -1
- package/test-utils/selectors/side-navigation/index.js +0 -3
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/flashbar/analytics-metadata/interfaces.d.ts +0 -36
- package/flashbar/analytics-metadata/interfaces.d.ts.map +0 -1
- package/flashbar/analytics-metadata/interfaces.js +0 -4
- package/flashbar/analytics-metadata/interfaces.js.map +0 -1
- package/flashbar/analytics-metadata/styles.css.js +0 -6
- package/flashbar/analytics-metadata/styles.scoped.css +0 -7
- package/flashbar/analytics-metadata/styles.selectors.js +0 -7
- package/flashbar/analytics-metadata/utils.d.ts +0 -7
- package/flashbar/analytics-metadata/utils.d.ts.map +0 -1
- package/flashbar/analytics-metadata/utils.js +0 -33
- package/flashbar/analytics-metadata/utils.js.map +0 -1
- package/internal/components/tooltip/registry.d.ts +0 -4
- package/internal/components/tooltip/registry.d.ts.map +0 -1
- package/internal/components/tooltip/registry.js +0 -28
- package/internal/components/tooltip/registry.js.map +0 -1
- package/internal/plugins/controllers/alert-flash-content.d.ts +0 -46
- package/internal/plugins/controllers/alert-flash-content.d.ts.map +0 -1
- package/internal/plugins/controllers/alert-flash-content.js +0 -59
- package/internal/plugins/controllers/alert-flash-content.js.map +0 -1
- package/internal/plugins/helpers/use-discovered-content.d.ts +0 -15
- package/internal/plugins/helpers/use-discovered-content.d.ts.map +0 -1
- package/internal/plugins/helpers/use-discovered-content.js +0 -82
- package/internal/plugins/helpers/use-discovered-content.js.map +0 -1
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
*/
|
|
139
139
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
140
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
141
|
+
.awsui_root_1wzqe_13ua9_141:not(#\9) {
|
|
142
142
|
border-collapse: separate;
|
|
143
143
|
border-spacing: 0;
|
|
144
144
|
box-sizing: border-box;
|
|
@@ -174,90 +174,94 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
174
174
|
-moz-osx-font-smoothing: auto;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
.awsui_search-
|
|
177
|
+
.awsui_search-field_1wzqe_13ua9_176:not(#\9) {
|
|
178
178
|
display: flex;
|
|
179
179
|
align-items: flex-end;
|
|
180
180
|
max-inline-size: calc(688px - 2 * var(--space-l-t419sm, 20px));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.awsui_input-
|
|
183
|
+
.awsui_input-wrapper_1wzqe_13ua9_182:not(#\9) {
|
|
184
184
|
flex-grow: 1;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.awsui_add-
|
|
187
|
+
.awsui_add-token_1wzqe_13ua9_186:not(#\9) {
|
|
188
188
|
border-inline-start: 1px solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
189
189
|
box-sizing: border-box;
|
|
190
190
|
margin-inline-start: var(--space-m-udix3p, 16px);
|
|
191
191
|
padding-inline-start: var(--space-m-udix3p, 16px);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_tokens_1wzqe_13ua9_193:not(#\9) {
|
|
195
195
|
margin-block: var(--space-xs-zb16t3, 8px);
|
|
196
196
|
margin-inline: 0;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.awsui_token-
|
|
199
|
+
.awsui_token-operator_1wzqe_13ua9_198:not(#\9) {
|
|
200
200
|
font-weight: bold;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.awsui_property-
|
|
203
|
+
.awsui_property-editor_1wzqe_13ua9_202:not(#\9) {
|
|
204
|
+
-webkit-user-select: text;
|
|
205
|
+
user-select: text;
|
|
204
206
|
margin-block: var(--space-xxs-p8yyaw, 4px);
|
|
205
207
|
margin-inline: var(--space-xxs-p8yyaw, 4px);
|
|
206
208
|
padding-block: var(--space-m-udix3p, 16px);
|
|
207
209
|
padding-inline: var(--space-m-udix3p, 16px);
|
|
208
210
|
overflow-y: auto;
|
|
209
211
|
}
|
|
210
|
-
.awsui_property-editor-
|
|
212
|
+
.awsui_property-editor-form_1wzqe_13ua9_210:not(#\9) {
|
|
211
213
|
margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
|
|
212
214
|
}
|
|
213
|
-
.awsui_property-editor-field-
|
|
215
|
+
.awsui_property-editor-field-property_1wzqe_13ua9_213:not(#\9) {
|
|
214
216
|
/* used in test-utils */
|
|
215
217
|
}
|
|
216
|
-
.awsui_property-editor-field-
|
|
218
|
+
.awsui_property-editor-field-operator_1wzqe_13ua9_216:not(#\9) {
|
|
217
219
|
margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
|
|
218
220
|
}
|
|
219
|
-
.awsui_property-editor-field-
|
|
221
|
+
.awsui_property-editor-field-value_1wzqe_13ua9_219:not(#\9) {
|
|
220
222
|
margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
|
|
221
223
|
}
|
|
222
|
-
.awsui_property-editor-
|
|
224
|
+
.awsui_property-editor-cancel_1wzqe_13ua9_222:not(#\9) {
|
|
223
225
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
224
226
|
}
|
|
225
|
-
.awsui_property-editor-
|
|
227
|
+
.awsui_property-editor-submit_1wzqe_13ua9_225:not(#\9) {
|
|
226
228
|
/* used in test-utils */
|
|
227
229
|
}
|
|
228
|
-
.awsui_property-editor-
|
|
230
|
+
.awsui_property-editor-actions_1wzqe_13ua9_228:not(#\9) {
|
|
229
231
|
display: flex;
|
|
230
232
|
justify-content: flex-end;
|
|
231
233
|
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
232
234
|
border-block-start: 1px solid var(--color-border-dropdown-item-default-k36ra7, #b6bec9);
|
|
233
235
|
}
|
|
234
236
|
|
|
235
|
-
.awsui_token-
|
|
237
|
+
.awsui_token-editor_1wzqe_13ua9_235:not(#\9) {
|
|
236
238
|
display: flex;
|
|
237
239
|
flex-direction: column;
|
|
238
240
|
gap: var(--space-s-34lx8l, 12px);
|
|
241
|
+
-webkit-user-select: text;
|
|
242
|
+
user-select: text;
|
|
239
243
|
margin-block: var(--space-xxs-p8yyaw, 4px);
|
|
240
244
|
margin-inline: var(--space-xxs-p8yyaw, 4px);
|
|
241
245
|
}
|
|
242
|
-
.awsui_token-editor-
|
|
246
|
+
.awsui_token-editor-form_1wzqe_13ua9_243:not(#\9) {
|
|
243
247
|
/* used in test-utils */
|
|
244
248
|
}
|
|
245
|
-
.awsui_token-editor-field-
|
|
249
|
+
.awsui_token-editor-field-property_1wzqe_13ua9_246:not(#\9) {
|
|
246
250
|
flex-grow: 2;
|
|
247
251
|
}
|
|
248
|
-
.awsui_token-editor-field-
|
|
252
|
+
.awsui_token-editor-field-operator_1wzqe_13ua9_249:not(#\9) {
|
|
249
253
|
flex-grow: 1;
|
|
250
254
|
}
|
|
251
|
-
.awsui_token-editor-field-
|
|
255
|
+
.awsui_token-editor-field-value_1wzqe_13ua9_252:not(#\9) {
|
|
252
256
|
flex-grow: 2;
|
|
253
257
|
}
|
|
254
|
-
.awsui_token-editor-
|
|
258
|
+
.awsui_token-editor-cancel_1wzqe_13ua9_255:not(#\9) {
|
|
255
259
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
256
260
|
}
|
|
257
|
-
.awsui_token-editor-
|
|
261
|
+
.awsui_token-editor-submit_1wzqe_13ua9_258:not(#\9) {
|
|
258
262
|
/* used in test-utils */
|
|
259
263
|
}
|
|
260
|
-
.awsui_token-editor-
|
|
264
|
+
.awsui_token-editor-actions_1wzqe_13ua9_261:not(#\9) {
|
|
261
265
|
display: flex;
|
|
262
266
|
justify-content: flex-end;
|
|
263
267
|
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
@@ -266,7 +270,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
266
270
|
margin-inline: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
|
|
267
271
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
268
272
|
}
|
|
269
|
-
.awsui_token-editor-
|
|
273
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270:not(#\9) {
|
|
270
274
|
border-collapse: separate;
|
|
271
275
|
border-spacing: 0;
|
|
272
276
|
box-sizing: border-box;
|
|
@@ -304,70 +308,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
304
308
|
gap: var(--space-s-34lx8l, 12px);
|
|
305
309
|
grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content;
|
|
306
310
|
}
|
|
307
|
-
.awsui_token-editor-grid-
|
|
311
|
+
.awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
|
|
308
312
|
display: contents;
|
|
309
313
|
}
|
|
310
|
-
.awsui_token-editor-
|
|
314
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9) {
|
|
311
315
|
grid-template-columns: minmax(100px, 1fr);
|
|
312
316
|
gap: var(--space-m-udix3p, 16px);
|
|
313
317
|
}
|
|
314
|
-
.awsui_token-editor-
|
|
318
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
|
|
315
319
|
display: flex;
|
|
316
320
|
flex-direction: column;
|
|
317
321
|
gap: var(--space-s-34lx8l, 12px);
|
|
318
322
|
}
|
|
319
|
-
.awsui_token-editor-
|
|
323
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307.awsui_token-editor-supports-groups_1wzqe_13ua9_319:not(#\9) {
|
|
320
324
|
padding-block-end: var(--space-m-udix3p, 16px);
|
|
321
325
|
border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
322
326
|
}
|
|
323
|
-
.awsui_token-editor-grid-
|
|
327
|
+
.awsui_token-editor-grid-header_1wzqe_13ua9_323:not(#\9) {
|
|
324
328
|
color: var(--color-text-column-header-czuvwg, #414d5c);
|
|
325
329
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
326
330
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
327
331
|
text-align: start;
|
|
328
332
|
}
|
|
329
|
-
.awsui_token-editor-grid-
|
|
333
|
+
.awsui_token-editor-grid-cell_1wzqe_13ua9_329:not(#\9):not(.awsui_token-editor-narrow_1wzqe_13ua9_310) {
|
|
330
334
|
display: flex;
|
|
331
335
|
align-items: flex-end;
|
|
332
336
|
justify-content: flex-end;
|
|
333
337
|
}
|
|
334
|
-
.awsui_token-editor-grid-
|
|
338
|
+
.awsui_token-editor-grid-cell_1wzqe_13ua9_329.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9):nth-child(4) {
|
|
335
339
|
display: flex;
|
|
336
340
|
justify-content: flex-end;
|
|
337
341
|
}
|
|
338
|
-
.awsui_token-editor-add-
|
|
342
|
+
.awsui_token-editor-add-token_1wzqe_13ua9_338:not(#\9) {
|
|
339
343
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
340
344
|
}
|
|
341
345
|
|
|
342
|
-
.awsui_custom-content-
|
|
346
|
+
.awsui_custom-content-wrapper_1wzqe_13ua9_342:not(#\9) {
|
|
343
347
|
display: contents;
|
|
344
348
|
}
|
|
345
349
|
|
|
346
|
-
.awsui_custom-
|
|
350
|
+
.awsui_custom-control_1wzqe_13ua9_346:not(#\9) {
|
|
347
351
|
margin-inline-end: var(--space-s-34lx8l, 12px);
|
|
348
352
|
}
|
|
349
353
|
|
|
350
|
-
.
|
|
354
|
+
.awsui_input_1wzqe_13ua9_182:not(#\9) {
|
|
351
355
|
flex: 1;
|
|
352
356
|
}
|
|
353
357
|
|
|
354
|
-
.
|
|
358
|
+
.awsui_results_1wzqe_13ua9_354:not(#\9) {
|
|
355
359
|
padding-block: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-field-width-09w7vk, 2px));
|
|
356
360
|
padding-inline: 0;
|
|
357
361
|
}
|
|
358
362
|
|
|
359
|
-
.awsui_token-
|
|
363
|
+
.awsui_token-trigger_1wzqe_13ua9_359:not(#\9) {
|
|
360
364
|
min-inline-size: 0;
|
|
361
365
|
word-break: break-word;
|
|
362
366
|
}
|
|
363
367
|
|
|
364
|
-
.awsui_remove-
|
|
365
|
-
.awsui_join-
|
|
366
|
-
.awsui_custom-filter-
|
|
368
|
+
.awsui_remove-all_1wzqe_13ua9_364:not(#\9),
|
|
369
|
+
.awsui_join-operation_1wzqe_13ua9_365:not(#\9),
|
|
370
|
+
.awsui_custom-filter-actions_1wzqe_13ua9_366:not(#\9) {
|
|
367
371
|
/* used in test-utils */
|
|
368
372
|
}
|
|
369
373
|
|
|
370
|
-
.
|
|
374
|
+
.awsui_constraint_1wzqe_13ua9_370:not(#\9) {
|
|
371
375
|
padding-block-start: var(--space-xxs-p8yyaw, 4px);
|
|
372
376
|
color: var(--color-text-form-secondary-dxc248, #5f6b7a);
|
|
373
377
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
@@ -2,43 +2,43 @@
|
|
|
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
|
-
"search-field": "awsui_search-
|
|
7
|
-
"input-wrapper": "awsui_input-
|
|
8
|
-
"add-token": "awsui_add-
|
|
9
|
-
"tokens": "
|
|
10
|
-
"token-operator": "awsui_token-
|
|
11
|
-
"property-editor": "awsui_property-
|
|
12
|
-
"property-editor-form": "awsui_property-editor-
|
|
13
|
-
"property-editor-field-property": "awsui_property-editor-field-
|
|
14
|
-
"property-editor-field-operator": "awsui_property-editor-field-
|
|
15
|
-
"property-editor-field-value": "awsui_property-editor-field-
|
|
16
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
17
|
-
"property-editor-submit": "awsui_property-editor-
|
|
18
|
-
"property-editor-actions": "awsui_property-editor-
|
|
19
|
-
"token-editor": "awsui_token-
|
|
20
|
-
"token-editor-form": "awsui_token-editor-
|
|
21
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
22
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
23
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
24
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
25
|
-
"token-editor-submit": "awsui_token-editor-
|
|
26
|
-
"token-editor-actions": "awsui_token-editor-
|
|
27
|
-
"token-editor-grid": "awsui_token-editor-
|
|
28
|
-
"token-editor-grid-group": "awsui_token-editor-grid-
|
|
29
|
-
"token-editor-narrow": "awsui_token-editor-
|
|
30
|
-
"token-editor-supports-groups": "awsui_token-editor-supports-
|
|
31
|
-
"token-editor-grid-header": "awsui_token-editor-grid-
|
|
32
|
-
"token-editor-grid-cell": "awsui_token-editor-grid-
|
|
33
|
-
"token-editor-add-token": "awsui_token-editor-add-
|
|
34
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
35
|
-
"custom-control": "awsui_custom-
|
|
36
|
-
"input": "
|
|
37
|
-
"results": "
|
|
38
|
-
"token-trigger": "awsui_token-
|
|
39
|
-
"remove-all": "awsui_remove-
|
|
40
|
-
"join-operation": "awsui_join-
|
|
41
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
42
|
-
"constraint": "
|
|
5
|
+
"root": "awsui_root_1wzqe_13ua9_141",
|
|
6
|
+
"search-field": "awsui_search-field_1wzqe_13ua9_176",
|
|
7
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
|
|
8
|
+
"add-token": "awsui_add-token_1wzqe_13ua9_186",
|
|
9
|
+
"tokens": "awsui_tokens_1wzqe_13ua9_193",
|
|
10
|
+
"token-operator": "awsui_token-operator_1wzqe_13ua9_198",
|
|
11
|
+
"property-editor": "awsui_property-editor_1wzqe_13ua9_202",
|
|
12
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
|
|
13
|
+
"property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
|
|
14
|
+
"property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
|
|
15
|
+
"property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
|
|
16
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
|
|
17
|
+
"property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
|
|
18
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
|
|
19
|
+
"token-editor": "awsui_token-editor_1wzqe_13ua9_235",
|
|
20
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
|
|
21
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
|
|
22
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
|
|
23
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
|
|
24
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
|
|
25
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
|
|
26
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
|
|
27
|
+
"token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
|
|
28
|
+
"token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
|
|
29
|
+
"token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
|
|
30
|
+
"token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
|
|
31
|
+
"token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
|
|
32
|
+
"token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
|
|
33
|
+
"token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
|
|
34
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
|
|
35
|
+
"custom-control": "awsui_custom-control_1wzqe_13ua9_346",
|
|
36
|
+
"input": "awsui_input_1wzqe_13ua9_182",
|
|
37
|
+
"results": "awsui_results_1wzqe_13ua9_354",
|
|
38
|
+
"token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
|
|
39
|
+
"remove-all": "awsui_remove-all_1wzqe_13ua9_364",
|
|
40
|
+
"join-operation": "awsui_join-operation_1wzqe_13ua9_365",
|
|
41
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
|
|
42
|
+
"constraint": "awsui_constraint_1wzqe_13ua9_370"
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
|
|
3
3
|
import { SideNavigationProps } from './interfaces';
|
|
4
4
|
export type SideNavigationInternalProps = SideNavigationProps & InternalBaseComponentProps;
|
|
5
|
-
export declare function SideNavigationImplementation({ header,
|
|
5
|
+
export declare function SideNavigationImplementation({ header, activeHref, items, onFollow, onChange, __internalRootRef, ...props }: SideNavigationInternalProps): JSX.Element;
|
|
6
6
|
export declare const createWidgetizedSideNavigation: (Loader?: typeof SideNavigationImplementation | undefined) => typeof SideNavigationImplementation;
|
|
7
7
|
//# sourceMappingURL=implementation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAE3F,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,
|
|
1
|
+
{"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAE3F,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,UAAU,EACV,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,2BAA2B,eAwD7B;AAED,eAAO,MAAM,8BAA8B,mGAA0D,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { Header, NavigationItemsList } from './parts';
|
|
|
12
12
|
import { checkDuplicateHrefs, generateExpandableItemsMapping } from './util';
|
|
13
13
|
import styles from './styles.css.js';
|
|
14
14
|
export function SideNavigationImplementation(_a) {
|
|
15
|
-
var { header,
|
|
15
|
+
var { header, activeHref, items = [], onFollow, onChange, __internalRootRef } = _a, props = __rest(_a, ["header", "activeHref", "items", "onFollow", "onChange", "__internalRootRef"]);
|
|
16
16
|
const baseProps = getBaseProps(props);
|
|
17
17
|
const isToolbar = useAppLayoutToolbarEnabled();
|
|
18
18
|
const parentMap = useMemo(() => generateExpandableItemsMapping(items), [items]);
|
|
@@ -31,7 +31,6 @@ export function SideNavigationImplementation(_a) {
|
|
|
31
31
|
}, [onFollow]);
|
|
32
32
|
return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(styles.root, baseProps.className, isToolbar && styles['with-toolbar']), ref: __internalRootRef }),
|
|
33
33
|
header && (React.createElement(Header, { definition: header, activeHref: activeHref, fireChange: onChangeHandler, fireFollow: onFollowHandler })),
|
|
34
|
-
itemsControl && React.createElement("div", { className: styles['items-control'] }, itemsControl),
|
|
35
34
|
items && (React.createElement("div", { className: styles['list-container'] },
|
|
36
35
|
React.createElement(NavigationItemsList, { variant: "root", items: items, fireFollow: onFollowHandler, fireChange: onChangeHandler, activeHref: activeHref })))));
|
|
37
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,UAAU,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC;AAE7E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,UAAU,4BAA4B,CAAC,EAQf;QARe,EAC3C,MAAM,EACN,UAAU,EACV,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,OAEW,EADzB,KAAK,cAPmC,8EAQ5C,CADS;IAER,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhF,IAAI,aAAa,EAAE;QACjB,kDAAkD;QAClD,sDAAsD;QACtD,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;KACtD;IAED,MAAM,eAAe,GAAG,WAAW,CACjC,CAAC,IAA2E,EAAE,QAAiB,EAAE,EAAE;QACjG,wGAAwG;QACxG,oEAAoE;QACpE,sBAAsB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC;IAC1G,CAAC,EACD,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB,CAAC;IAEF,MAAM,eAAe,GAAG,WAAW,CACjC,CACE,IAI2C,EAC3C,WAAyC,EACzC,EAAE;QACF,mBAAmB,CAAC,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;IACnD,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,6CACM,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,SAAS,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,EACtF,GAAG,EAAE,iBAAiB;QAErB,MAAM,IAAI,CACT,oBAAC,MAAM,IAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,GAAI,CACjH;QACA,KAAK,IAAI,CACR,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;YACtC,oBAAC,mBAAmB,IAClB,OAAO,EAAC,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,UAAU,GACtB,CACE,CACP,CACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,4BAA4B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo } from 'react';\nimport clsx from 'clsx';\n\nimport { useAppLayoutToolbarEnabled } from '../app-layout/utils/feature-flags';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireCancelableEvent, fireNonCancelableEvent } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { isDevelopment } from '../internal/is-development';\nimport { createWidgetizedComponent } from '../internal/widgets';\nimport { SideNavigationProps } from './interfaces';\nimport { Header, NavigationItemsList } from './parts';\nimport { checkDuplicateHrefs, generateExpandableItemsMapping } from './util';\n\nimport styles from './styles.css.js';\n\nexport type SideNavigationInternalProps = SideNavigationProps & InternalBaseComponentProps;\n\nexport function SideNavigationImplementation({\n header,\n activeHref,\n items = [],\n onFollow,\n onChange,\n __internalRootRef,\n ...props\n}: SideNavigationInternalProps) {\n const baseProps = getBaseProps(props);\n const isToolbar = useAppLayoutToolbarEnabled();\n const parentMap = useMemo(() => generateExpandableItemsMapping(items), [items]);\n\n if (isDevelopment) {\n // This code should be wiped in production anyway.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => checkDuplicateHrefs(items), [items]);\n }\n\n const onChangeHandler = useCallback(\n (item: SideNavigationProps.Section | SideNavigationProps.ExpandableLinkGroup, expanded: boolean) => {\n // generateExpandableItemsMapping walks through the entire tree, so we're certain about getting a value.\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n fireNonCancelableEvent(onChange, { item, expanded: expanded, expandableParents: parentMap.get(item)! });\n },\n [onChange, parentMap]\n );\n\n const onFollowHandler = useCallback(\n (\n item:\n | SideNavigationProps.Link\n | SideNavigationProps.Header\n | SideNavigationProps.LinkGroup\n | SideNavigationProps.ExpandableLinkGroup,\n sourceEvent: React.SyntheticEvent | Event\n ) => {\n fireCancelableEvent(onFollow, item, sourceEvent);\n },\n [onFollow]\n );\n\n return (\n <div\n {...baseProps}\n className={clsx(styles.root, baseProps.className, isToolbar && styles['with-toolbar'])}\n ref={__internalRootRef}\n >\n {header && (\n <Header definition={header} activeHref={activeHref} fireChange={onChangeHandler} fireFollow={onFollowHandler} />\n )}\n {items && (\n <div className={styles['list-container']}>\n <NavigationItemsList\n variant=\"root\"\n items={items}\n fireFollow={onFollowHandler}\n fireChange={onChangeHandler}\n activeHref={activeHref}\n />\n </div>\n )}\n </div>\n );\n}\n\nexport const createWidgetizedSideNavigation = createWidgetizedComponent(SideNavigationImplementation);\n"]}
|
|
@@ -11,10 +11,6 @@ export interface SideNavigationProps extends BaseComponentProps {
|
|
|
11
11
|
* - `logo` (object) - Specifies a logo image.
|
|
12
12
|
*/
|
|
13
13
|
header?: SideNavigationProps.Header;
|
|
14
|
-
/**
|
|
15
|
-
* A slot located below the header and above the items.
|
|
16
|
-
**/
|
|
17
|
-
itemsControl?: React.ReactNode;
|
|
18
14
|
/**
|
|
19
15
|
* Specifies the `href` of the currently active link.
|
|
20
16
|
* All items within the navigation with a matching `href` are highlighted.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE7G,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC;IAEpC
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n\nexport interface SideNavigationProps extends BaseComponentProps {\n /**\n * Controls the header that appears at the top of the navigation component.\n *\n * It contains the following:\n * - `text` (string) - Specifies the header text.\n * - `href` (string) - Specifies the `href` that the header links to.\n * - `logo` (object) - Specifies a logo image.\n */\n header?: SideNavigationProps.Header;\n\n /**\n *
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n\nexport interface SideNavigationProps extends BaseComponentProps {\n /**\n * Controls the header that appears at the top of the navigation component.\n *\n * It contains the following:\n * - `text` (string) - Specifies the header text.\n * - `href` (string) - Specifies the `href` that the header links to.\n * - `logo` (object) - Specifies a logo image.\n */\n header?: SideNavigationProps.Header;\n\n /**\n * Specifies the `href` of the currently active link.\n * All items within the navigation with a matching `href` are highlighted.\n *\n * `Sections` and `Expandable Page Groups` that contain a highlighted item\n * are automatically expanded, unless their definitions have the `defaultExpanded`\n * property explicitly set to `false`.\n */\n activeHref?: string;\n\n /**\n * Specifies the items to be displayed in the navigation.\n * Allowed objects are: `Link`, `Divider`, `Section`, `LinkGroup` and `ExpandableLinkGroup`.\n *\n * You can inject extra properties (for example, an ID)\n * in order to identify the item when it's used in an event `detail`\n * (for more information, see the events section below).\n *\n * #### Link\n * Object that represents an anchor in the navigation.\n * Links are rendered as `<a>` tags.\n * - `type` - `'link'`.\n * - `text` (string) - Specifies the link text.\n * - `href` (string) - Specifies the `href` of the link.\n * - `external` (boolean) - Determines whether to display an external link icon next to the link.\n * If set to `true`, an external link icon appears next to the link.\n * The anchor also has the attributes `target=\"_blank\"` and `rel=\"noopener\"`.\n * Additionally, the `activeHref` property won't be modified when a user chooses the link.\n * - `externalIconAriaLabel` (string) - Adds an aria-label to the external icon.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n *\n * #### Divider\n * Object that represents a horizontal divider between navigation content.\n * It contains `type`: `'divider'` only.\n *\n * #### Section\n * Object that represents a section within the navigation.\n * - `type`: `'section'`.\n * - `text` (string) - Specifies the text to display as a title of the section.\n * - `defaultExpanded` (boolean) - Determines whether the section should be expanded by default. Default value is `true`.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### Section Group\n * Aggregates a set of items that are conceptually related to each other, and can be displayed under a single heading to provide further organization.\n * You can nest sections, links, link groups and expandable link groups within a section group depending on your information architecture needs.\n * - `type`: `'section-group'`.\n * - `title` (string) - Specifies the text to display as a title of the section group.\n * - `items` (array) - Specifies the content of the section header group. You can use `Section`, `Link`, `LinkGroup`, `ExpandableLinkGroup`.\n *\n * #### LinkGroup\n * Object that represents a group of links.\n * - `type`: `'link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### ExpandableLinkGroup\n *\n * Object that represents an expandable group of links.\n * - `type`: `'expandable-link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `defaultExpanded` (boolean) - Specifies whether the group should be expanded by default.\n * If not explicitly set, the group is collapsed by default, unless one of the nested links is active.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n */\n items?: ReadonlyArray<SideNavigationProps.Item>;\n\n /**\n * Fired when an anchor is clicked without any modifier (that is, CTRL, ALT, SHIFT).\n * The event `detail` contains a definition of the clicked item.\n * Use this event to prevent default browser navigation (by calling `preventDefault` method)\n * and branch your own routing.\n *\n * If the event is prevented the `activeHref` property won't be automatically set\n * to the href of the clicked item so you'll have to do it yourself.\n */\n onFollow?: CancelableEventHandler<SideNavigationProps.FollowDetail>;\n\n /**\n * Fired when the expansion state of `Section` or `ExpandablePageGroup` items changes\n * as a result of a user interaction. The event `detail` contains an object with information about the changed item.\n *\n * - `item` (object) - Specifies the item that was changed.\n * - `expanded` (boolean) - Specifies whether the item is expanded or not.\n * - `expandableParents` (array) - A list of parent items that have a type of `Section`\n * or `ExpandablePageGroup`. Use this `expandableParents` array to set their expanded\n * state to `true` if you want your data model to keep track of the current state\n * of the navigation items.\n *\n * Note: If the expansion is a result of the activation of a nested link\n * upon changing the `activeHref` property, this event isn't raised.\n */\n onChange?: NonCancelableEventHandler<SideNavigationProps.ChangeDetail>;\n}\n\nexport namespace SideNavigationProps {\n export interface Logo {\n src: string;\n alt?: string;\n }\n export interface Header {\n text?: string;\n href: string;\n logo?: Logo;\n }\n\n export interface Divider {\n type: 'divider';\n }\n\n export interface Link {\n type: 'link';\n text: string;\n href: string;\n external?: boolean;\n externalIconAriaLabel?: string;\n info?: React.ReactNode;\n }\n\n export interface Section {\n type: 'section';\n text: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export interface SectionGroup {\n type: 'section-group';\n title: string;\n items: ReadonlyArray<Section | Link | LinkGroup | ExpandableLinkGroup>;\n }\n export interface LinkGroup {\n type: 'link-group';\n text: string;\n href: string;\n info?: React.ReactNode;\n items: ReadonlyArray<Item>;\n }\n\n export interface ExpandableLinkGroup {\n type: 'expandable-link-group';\n text: string;\n href: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export type Item = Divider | Link | Section | LinkGroup | ExpandableLinkGroup | SectionGroup;\n\n export interface ChangeDetail {\n item: Section | ExpandableLinkGroup;\n expanded: boolean;\n expandableParents: ReadonlyArray<Section | ExpandableLinkGroup>;\n }\n\n export interface FollowDetail extends BaseNavigationDetail {\n text?: string;\n href: string;\n type?: 'link' | 'link-group' | 'expandable-link-group' | 'section-header';\n info?: React.ReactNode;\n }\n}\n"]}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header": "
|
|
6
|
-
"with-toolbar": "awsui_with-
|
|
7
|
-
"header-link": "awsui_header-
|
|
8
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
9
|
-
"header-link-text": "awsui_header-link-
|
|
10
|
-
"header-logo": "awsui_header-
|
|
11
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
12
|
-
"
|
|
13
|
-
"list
|
|
14
|
-
"list": "
|
|
15
|
-
"list-variant-root": "awsui_list-variant-
|
|
16
|
-
"list-variant-
|
|
17
|
-
"list-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"section-group": "awsui_section-
|
|
26
|
-
"
|
|
27
|
-
"link": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"divider": "
|
|
32
|
-
"divider-
|
|
33
|
-
"divider-header": "awsui_divider-header_l0dv0_474b6_371"
|
|
4
|
+
"root": "awsui_root_l0dv0_va2r6_141",
|
|
5
|
+
"header": "awsui_header_l0dv0_va2r6_178",
|
|
6
|
+
"with-toolbar": "awsui_with-toolbar_l0dv0_va2r6_190",
|
|
7
|
+
"header-link": "awsui_header-link_l0dv0_va2r6_194",
|
|
8
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_va2r6_204",
|
|
9
|
+
"header-link-text": "awsui_header-link-text_l0dv0_va2r6_204",
|
|
10
|
+
"header-logo": "awsui_header-logo_l0dv0_va2r6_209",
|
|
11
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_va2r6_215",
|
|
12
|
+
"list-container": "awsui_list-container_l0dv0_va2r6_220",
|
|
13
|
+
"list": "awsui_list_l0dv0_va2r6_220",
|
|
14
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_va2r6_235",
|
|
15
|
+
"list-variant-root--last": "awsui_list-variant-root--last_l0dv0_va2r6_242",
|
|
16
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_va2r6_246",
|
|
17
|
+
"list-item": "awsui_list-item_l0dv0_va2r6_250",
|
|
18
|
+
"section": "awsui_section_l0dv0_va2r6_258",
|
|
19
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_va2r6_259",
|
|
20
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_va2r6_262",
|
|
21
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_va2r6_263",
|
|
22
|
+
"refresh": "awsui_refresh_l0dv0_va2r6_271",
|
|
23
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_va2r6_279",
|
|
24
|
+
"section-group": "awsui_section-group_l0dv0_va2r6_286",
|
|
25
|
+
"section-group-title": "awsui_section-group-title_l0dv0_va2r6_297",
|
|
26
|
+
"link": "awsui_link_l0dv0_va2r6_301",
|
|
27
|
+
"link-active": "awsui_link-active_l0dv0_va2r6_310",
|
|
28
|
+
"info": "awsui_info_l0dv0_va2r6_347",
|
|
29
|
+
"external-icon": "awsui_external-icon_l0dv0_va2r6_351",
|
|
30
|
+
"divider": "awsui_divider_l0dv0_va2r6_355",
|
|
31
|
+
"divider-default": "awsui_divider-default_l0dv0_va2r6_360",
|
|
32
|
+
"divider-header": "awsui_divider-header_l0dv0_va2r6_366"
|
|
34
33
|
};
|
|
35
34
|
|