@cloudscape-design/components 3.0.750 → 3.0.752

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.
Files changed (131) hide show
  1. package/alert/actions-wrapper/index.d.ts +1 -1
  2. package/alert/actions-wrapper/index.d.ts.map +1 -1
  3. package/alert/actions-wrapper/index.js +2 -2
  4. package/alert/actions-wrapper/index.js.map +1 -1
  5. package/alert/internal.d.ts.map +1 -1
  6. package/alert/internal.js +15 -5
  7. package/alert/internal.js.map +1 -1
  8. package/alert/styles.css.js +27 -25
  9. package/alert/styles.scoped.css +45 -39
  10. package/alert/styles.selectors.js +27 -25
  11. package/app-layout/drawer/styles.css.js +13 -13
  12. package/app-layout/drawer/styles.scoped.css +22 -22
  13. package/app-layout/drawer/styles.selectors.js +13 -13
  14. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  15. package/app-layout/mobile-toolbar/styles.scoped.css +10 -10
  16. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  17. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +16 -16
  18. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +34 -34
  19. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +16 -16
  20. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
  21. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +17 -17
  22. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
  23. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +6 -6
  24. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +24 -24
  25. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +6 -6
  26. package/breadcrumb-group/implementation.d.ts.map +1 -1
  27. package/breadcrumb-group/implementation.js +1 -1
  28. package/breadcrumb-group/implementation.js.map +1 -1
  29. package/breadcrumb-group/interfaces.d.ts +1 -1
  30. package/breadcrumb-group/interfaces.js.map +1 -1
  31. package/button-dropdown/interfaces.d.ts +7 -0
  32. package/button-dropdown/interfaces.d.ts.map +1 -1
  33. package/button-dropdown/interfaces.js.map +1 -1
  34. package/button-dropdown/internal.d.ts.map +1 -1
  35. package/button-dropdown/internal.js +2 -2
  36. package/button-dropdown/internal.js.map +1 -1
  37. package/button-dropdown/item-element/index.d.ts +1 -1
  38. package/button-dropdown/item-element/index.d.ts.map +1 -1
  39. package/button-dropdown/item-element/index.js +4 -4
  40. package/button-dropdown/item-element/index.js.map +1 -1
  41. package/button-dropdown/item-element/styles.css.js +13 -12
  42. package/button-dropdown/item-element/styles.scoped.css +52 -14
  43. package/button-dropdown/item-element/styles.selectors.js +13 -12
  44. package/button-dropdown/items-list.d.ts +1 -1
  45. package/button-dropdown/items-list.d.ts.map +1 -1
  46. package/button-dropdown/items-list.js +2 -2
  47. package/button-dropdown/items-list.js.map +1 -1
  48. package/flashbar/analytics-metadata/interfaces.d.ts +36 -0
  49. package/flashbar/analytics-metadata/interfaces.d.ts.map +1 -0
  50. package/flashbar/analytics-metadata/interfaces.js +4 -0
  51. package/flashbar/analytics-metadata/interfaces.js.map +1 -0
  52. package/flashbar/analytics-metadata/styles.css.js +6 -0
  53. package/flashbar/analytics-metadata/styles.scoped.css +7 -0
  54. package/flashbar/analytics-metadata/styles.selectors.js +7 -0
  55. package/flashbar/analytics-metadata/utils.d.ts +7 -0
  56. package/flashbar/analytics-metadata/utils.d.ts.map +1 -0
  57. package/flashbar/analytics-metadata/utils.js +33 -0
  58. package/flashbar/analytics-metadata/utils.js.map +1 -0
  59. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  60. package/flashbar/collapsible-flashbar.js +13 -5
  61. package/flashbar/collapsible-flashbar.js.map +1 -1
  62. package/flashbar/flash.d.ts.map +1 -1
  63. package/flashbar/flash.js +19 -7
  64. package/flashbar/flash.js.map +1 -1
  65. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  66. package/flashbar/non-collapsible-flashbar.js +4 -2
  67. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  68. package/flashbar/styles.css.js +50 -47
  69. package/flashbar/styles.scoped.css +152 -146
  70. package/flashbar/styles.selectors.js +50 -47
  71. package/internal/base-component/styles.scoped.css +5 -10
  72. package/internal/components/tooltip/index.d.ts +3 -1
  73. package/internal/components/tooltip/index.d.ts.map +1 -1
  74. package/internal/components/tooltip/index.js +2 -2
  75. package/internal/components/tooltip/index.js.map +1 -1
  76. package/internal/components/tooltip/registry.d.ts +4 -0
  77. package/internal/components/tooltip/registry.d.ts.map +1 -0
  78. package/internal/components/tooltip/registry.js +28 -0
  79. package/internal/components/tooltip/registry.js.map +1 -0
  80. package/internal/environment.js +1 -1
  81. package/internal/environment.json +1 -1
  82. package/internal/generated/styles/tokens.js +1 -1
  83. package/internal/generated/theming/index.cjs +15 -15
  84. package/internal/generated/theming/index.js +15 -15
  85. package/internal/manifest.json +1 -1
  86. package/internal/plugins/api.d.ts +9 -0
  87. package/internal/plugins/api.d.ts.map +1 -1
  88. package/internal/plugins/api.js +7 -0
  89. package/internal/plugins/api.js.map +1 -1
  90. package/internal/plugins/controllers/alert-flash-content.d.ts +46 -0
  91. package/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -0
  92. package/internal/plugins/controllers/alert-flash-content.js +59 -0
  93. package/internal/plugins/controllers/alert-flash-content.js.map +1 -0
  94. package/internal/plugins/helpers/index.d.ts +1 -0
  95. package/internal/plugins/helpers/index.d.ts.map +1 -1
  96. package/internal/plugins/helpers/index.js +1 -0
  97. package/internal/plugins/helpers/index.js.map +1 -1
  98. package/internal/plugins/helpers/use-discovered-action.d.ts +2 -2
  99. package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
  100. package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
  101. package/internal/plugins/helpers/use-discovered-content.d.ts +15 -0
  102. package/internal/plugins/helpers/use-discovered-content.d.ts.map +1 -0
  103. package/internal/plugins/helpers/use-discovered-content.js +82 -0
  104. package/internal/plugins/helpers/use-discovered-content.js.map +1 -0
  105. package/package.json +1 -1
  106. package/popover/styles.css.js +52 -52
  107. package/popover/styles.scoped.css +72 -72
  108. package/popover/styles.selectors.js +52 -52
  109. package/property-filter/styles.css.js +38 -38
  110. package/property-filter/styles.scoped.css +40 -44
  111. package/property-filter/styles.selectors.js +38 -38
  112. package/side-navigation/implementation.d.ts +1 -1
  113. package/side-navigation/implementation.d.ts.map +1 -1
  114. package/side-navigation/implementation.js +2 -1
  115. package/side-navigation/implementation.js.map +1 -1
  116. package/side-navigation/interfaces.d.ts +4 -0
  117. package/side-navigation/interfaces.d.ts.map +1 -1
  118. package/side-navigation/interfaces.js.map +1 -1
  119. package/side-navigation/styles.css.js +30 -29
  120. package/side-navigation/styles.scoped.css +46 -41
  121. package/side-navigation/styles.selectors.js +30 -29
  122. package/test-utils/dom/side-navigation/index.d.ts +1 -0
  123. package/test-utils/dom/side-navigation/index.js +3 -0
  124. package/test-utils/dom/side-navigation/index.js.map +1 -1
  125. package/test-utils/selectors/side-navigation/index.d.ts +1 -0
  126. package/test-utils/selectors/side-navigation/index.js +3 -0
  127. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  128. package/test-utils/tsconfig.tsbuildinfo +1 -1
  129. package/wizard/styles.css.js +30 -30
  130. package/wizard/styles.scoped.css +59 -59
  131. package/wizard/styles.selectors.js +30 -30
@@ -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
- .awsui_root_1wzqe_13ua9_141:not(#\9) {
141
+ .awsui_root_1wzqe_184ob_141:not(#\9) {
142
142
  border-collapse: separate;
143
143
  border-spacing: 0;
144
144
  box-sizing: border-box;
@@ -174,94 +174,90 @@ 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-field_1wzqe_13ua9_176:not(#\9) {
177
+ .awsui_search-field_1wzqe_184ob_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-wrapper_1wzqe_13ua9_182:not(#\9) {
183
+ .awsui_input-wrapper_1wzqe_184ob_182:not(#\9) {
184
184
  flex-grow: 1;
185
185
  }
186
186
 
187
- .awsui_add-token_1wzqe_13ua9_186:not(#\9) {
187
+ .awsui_add-token_1wzqe_184ob_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
- .awsui_tokens_1wzqe_13ua9_193:not(#\9) {
194
+ .awsui_tokens_1wzqe_184ob_193:not(#\9) {
195
195
  margin-block: var(--space-xs-zb16t3, 8px);
196
196
  margin-inline: 0;
197
197
  }
198
198
 
199
- .awsui_token-operator_1wzqe_13ua9_198:not(#\9) {
199
+ .awsui_token-operator_1wzqe_184ob_198:not(#\9) {
200
200
  font-weight: bold;
201
201
  }
202
202
 
203
- .awsui_property-editor_1wzqe_13ua9_202:not(#\9) {
204
- -webkit-user-select: text;
205
- user-select: text;
203
+ .awsui_property-editor_1wzqe_184ob_202:not(#\9) {
206
204
  margin-block: var(--space-xxs-p8yyaw, 4px);
207
205
  margin-inline: var(--space-xxs-p8yyaw, 4px);
208
206
  padding-block: var(--space-m-udix3p, 16px);
209
207
  padding-inline: var(--space-m-udix3p, 16px);
210
208
  overflow-y: auto;
211
209
  }
212
- .awsui_property-editor-form_1wzqe_13ua9_210:not(#\9) {
210
+ .awsui_property-editor-form_1wzqe_184ob_209:not(#\9) {
213
211
  margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
214
212
  }
215
- .awsui_property-editor-field-property_1wzqe_13ua9_213:not(#\9) {
213
+ .awsui_property-editor-field-property_1wzqe_184ob_212:not(#\9) {
216
214
  /* used in test-utils */
217
215
  }
218
- .awsui_property-editor-field-operator_1wzqe_13ua9_216:not(#\9) {
216
+ .awsui_property-editor-field-operator_1wzqe_184ob_215:not(#\9) {
219
217
  margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
220
218
  }
221
- .awsui_property-editor-field-value_1wzqe_13ua9_219:not(#\9) {
219
+ .awsui_property-editor-field-value_1wzqe_184ob_218:not(#\9) {
222
220
  margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
223
221
  }
224
- .awsui_property-editor-cancel_1wzqe_13ua9_222:not(#\9) {
222
+ .awsui_property-editor-cancel_1wzqe_184ob_221:not(#\9) {
225
223
  margin-inline-end: var(--space-xs-zb16t3, 8px);
226
224
  }
227
- .awsui_property-editor-submit_1wzqe_13ua9_225:not(#\9) {
225
+ .awsui_property-editor-submit_1wzqe_184ob_224:not(#\9) {
228
226
  /* used in test-utils */
229
227
  }
230
- .awsui_property-editor-actions_1wzqe_13ua9_228:not(#\9) {
228
+ .awsui_property-editor-actions_1wzqe_184ob_227:not(#\9) {
231
229
  display: flex;
232
230
  justify-content: flex-end;
233
231
  padding-block-start: var(--space-s-34lx8l, 12px);
234
232
  border-block-start: 1px solid var(--color-border-dropdown-item-default-k36ra7, #b6bec9);
235
233
  }
236
234
 
237
- .awsui_token-editor_1wzqe_13ua9_235:not(#\9) {
235
+ .awsui_token-editor_1wzqe_184ob_234:not(#\9) {
238
236
  display: flex;
239
237
  flex-direction: column;
240
238
  gap: var(--space-s-34lx8l, 12px);
241
- -webkit-user-select: text;
242
- user-select: text;
243
239
  margin-block: var(--space-xxs-p8yyaw, 4px);
244
240
  margin-inline: var(--space-xxs-p8yyaw, 4px);
245
241
  }
246
- .awsui_token-editor-form_1wzqe_13ua9_243:not(#\9) {
242
+ .awsui_token-editor-form_1wzqe_184ob_241:not(#\9) {
247
243
  /* used in test-utils */
248
244
  }
249
- .awsui_token-editor-field-property_1wzqe_13ua9_246:not(#\9) {
245
+ .awsui_token-editor-field-property_1wzqe_184ob_244:not(#\9) {
250
246
  flex-grow: 2;
251
247
  }
252
- .awsui_token-editor-field-operator_1wzqe_13ua9_249:not(#\9) {
248
+ .awsui_token-editor-field-operator_1wzqe_184ob_247:not(#\9) {
253
249
  flex-grow: 1;
254
250
  }
255
- .awsui_token-editor-field-value_1wzqe_13ua9_252:not(#\9) {
251
+ .awsui_token-editor-field-value_1wzqe_184ob_250:not(#\9) {
256
252
  flex-grow: 2;
257
253
  }
258
- .awsui_token-editor-cancel_1wzqe_13ua9_255:not(#\9) {
254
+ .awsui_token-editor-cancel_1wzqe_184ob_253:not(#\9) {
259
255
  margin-inline-end: var(--space-xs-zb16t3, 8px);
260
256
  }
261
- .awsui_token-editor-submit_1wzqe_13ua9_258:not(#\9) {
257
+ .awsui_token-editor-submit_1wzqe_184ob_256:not(#\9) {
262
258
  /* used in test-utils */
263
259
  }
264
- .awsui_token-editor-actions_1wzqe_13ua9_261:not(#\9) {
260
+ .awsui_token-editor-actions_1wzqe_184ob_259:not(#\9) {
265
261
  display: flex;
266
262
  justify-content: flex-end;
267
263
  padding-block-start: var(--space-s-34lx8l, 12px);
@@ -270,7 +266,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
270
266
  margin-inline: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
271
267
  margin-block-start: var(--space-s-34lx8l, 12px);
272
268
  }
273
- .awsui_token-editor-grid_1wzqe_13ua9_270:not(#\9) {
269
+ .awsui_token-editor-grid_1wzqe_184ob_268:not(#\9) {
274
270
  border-collapse: separate;
275
271
  border-spacing: 0;
276
272
  box-sizing: border-box;
@@ -308,70 +304,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
308
304
  gap: var(--space-s-34lx8l, 12px);
309
305
  grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content;
310
306
  }
311
- .awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
307
+ .awsui_token-editor-grid-group_1wzqe_184ob_305:not(#\9) {
312
308
  display: contents;
313
309
  }
314
- .awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9) {
310
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308:not(#\9) {
315
311
  grid-template-columns: minmax(100px, 1fr);
316
312
  gap: var(--space-m-udix3p, 16px);
317
313
  }
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) {
314
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308 > .awsui_token-editor-grid-group_1wzqe_184ob_305:not(#\9) {
319
315
  display: flex;
320
316
  flex-direction: column;
321
317
  gap: var(--space-s-34lx8l, 12px);
322
318
  }
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) {
319
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308 > .awsui_token-editor-grid-group_1wzqe_184ob_305.awsui_token-editor-supports-groups_1wzqe_184ob_317:not(#\9) {
324
320
  padding-block-end: var(--space-m-udix3p, 16px);
325
321
  border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
326
322
  }
327
- .awsui_token-editor-grid-header_1wzqe_13ua9_323:not(#\9) {
323
+ .awsui_token-editor-grid-header_1wzqe_184ob_321:not(#\9) {
328
324
  color: var(--color-text-column-header-czuvwg, #414d5c);
329
325
  font-weight: var(--font-weight-heading-s-cwn6wc, 700);
330
326
  padding-block: var(--space-scaled-xxs-7597g1, 4px);
331
327
  text-align: start;
332
328
  }
333
- .awsui_token-editor-grid-cell_1wzqe_13ua9_329:not(#\9):not(.awsui_token-editor-narrow_1wzqe_13ua9_310) {
329
+ .awsui_token-editor-grid-cell_1wzqe_184ob_327:not(#\9):not(.awsui_token-editor-narrow_1wzqe_184ob_308) {
334
330
  display: flex;
335
331
  align-items: flex-end;
336
332
  justify-content: flex-end;
337
333
  }
338
- .awsui_token-editor-grid-cell_1wzqe_13ua9_329.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9):nth-child(4) {
334
+ .awsui_token-editor-grid-cell_1wzqe_184ob_327.awsui_token-editor-narrow_1wzqe_184ob_308:not(#\9):nth-child(4) {
339
335
  display: flex;
340
336
  justify-content: flex-end;
341
337
  }
342
- .awsui_token-editor-add-token_1wzqe_13ua9_338:not(#\9) {
338
+ .awsui_token-editor-add-token_1wzqe_184ob_336:not(#\9) {
343
339
  margin-block-start: var(--space-s-34lx8l, 12px);
344
340
  }
345
341
 
346
- .awsui_custom-content-wrapper_1wzqe_13ua9_342:not(#\9) {
342
+ .awsui_custom-content-wrapper_1wzqe_184ob_340:not(#\9) {
347
343
  display: contents;
348
344
  }
349
345
 
350
- .awsui_custom-control_1wzqe_13ua9_346:not(#\9) {
346
+ .awsui_custom-control_1wzqe_184ob_344:not(#\9) {
351
347
  margin-inline-end: var(--space-s-34lx8l, 12px);
352
348
  }
353
349
 
354
- .awsui_input_1wzqe_13ua9_182:not(#\9) {
350
+ .awsui_input_1wzqe_184ob_182:not(#\9) {
355
351
  flex: 1;
356
352
  }
357
353
 
358
- .awsui_results_1wzqe_13ua9_354:not(#\9) {
354
+ .awsui_results_1wzqe_184ob_352:not(#\9) {
359
355
  padding-block: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-field-width-09w7vk, 2px));
360
356
  padding-inline: 0;
361
357
  }
362
358
 
363
- .awsui_token-trigger_1wzqe_13ua9_359:not(#\9) {
359
+ .awsui_token-trigger_1wzqe_184ob_357:not(#\9) {
364
360
  min-inline-size: 0;
365
361
  word-break: break-word;
366
362
  }
367
363
 
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) {
364
+ .awsui_remove-all_1wzqe_184ob_362:not(#\9),
365
+ .awsui_join-operation_1wzqe_184ob_363:not(#\9),
366
+ .awsui_custom-filter-actions_1wzqe_184ob_364:not(#\9) {
371
367
  /* used in test-utils */
372
368
  }
373
369
 
374
- .awsui_constraint_1wzqe_13ua9_370:not(#\9) {
370
+ .awsui_constraint_1wzqe_184ob_368:not(#\9) {
375
371
  padding-block-start: var(--space-xxs-p8yyaw, 4px);
376
372
  color: var(--color-text-form-secondary-dxc248, #5f6b7a);
377
373
  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": "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"
5
+ "root": "awsui_root_1wzqe_184ob_141",
6
+ "search-field": "awsui_search-field_1wzqe_184ob_176",
7
+ "input-wrapper": "awsui_input-wrapper_1wzqe_184ob_182",
8
+ "add-token": "awsui_add-token_1wzqe_184ob_186",
9
+ "tokens": "awsui_tokens_1wzqe_184ob_193",
10
+ "token-operator": "awsui_token-operator_1wzqe_184ob_198",
11
+ "property-editor": "awsui_property-editor_1wzqe_184ob_202",
12
+ "property-editor-form": "awsui_property-editor-form_1wzqe_184ob_209",
13
+ "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_184ob_212",
14
+ "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_184ob_215",
15
+ "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_184ob_218",
16
+ "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_184ob_221",
17
+ "property-editor-submit": "awsui_property-editor-submit_1wzqe_184ob_224",
18
+ "property-editor-actions": "awsui_property-editor-actions_1wzqe_184ob_227",
19
+ "token-editor": "awsui_token-editor_1wzqe_184ob_234",
20
+ "token-editor-form": "awsui_token-editor-form_1wzqe_184ob_241",
21
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_184ob_244",
22
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_184ob_247",
23
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_184ob_250",
24
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_184ob_253",
25
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_184ob_256",
26
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_184ob_259",
27
+ "token-editor-grid": "awsui_token-editor-grid_1wzqe_184ob_268",
28
+ "token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_184ob_305",
29
+ "token-editor-narrow": "awsui_token-editor-narrow_1wzqe_184ob_308",
30
+ "token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_184ob_317",
31
+ "token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_184ob_321",
32
+ "token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_184ob_327",
33
+ "token-editor-add-token": "awsui_token-editor-add-token_1wzqe_184ob_336",
34
+ "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_184ob_340",
35
+ "custom-control": "awsui_custom-control_1wzqe_184ob_344",
36
+ "input": "awsui_input_1wzqe_184ob_182",
37
+ "results": "awsui_results_1wzqe_184ob_352",
38
+ "token-trigger": "awsui_token-trigger_1wzqe_184ob_357",
39
+ "remove-all": "awsui_remove-all_1wzqe_184ob_362",
40
+ "join-operation": "awsui_join-operation_1wzqe_184ob_363",
41
+ "custom-filter-actions": "awsui_custom-filter-actions_1wzqe_184ob_364",
42
+ "constraint": "awsui_constraint_1wzqe_184ob_368"
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, activeHref, items, onFollow, onChange, __internalRootRef, ...props }: SideNavigationInternalProps): JSX.Element;
5
+ export declare function SideNavigationImplementation({ header, itemsControl, 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,UAAU,EACV,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,2BAA2B,eAwD7B;AAED,eAAO,MAAM,8BAA8B,mGAA0D,CAAC"}
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,YAAY,EACZ,UAAU,EACV,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,2BAA2B,eAyD7B;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, activeHref, items = [], onFollow, onChange, __internalRootRef } = _a, props = __rest(_a, ["header", "activeHref", "items", "onFollow", "onChange", "__internalRootRef"]);
15
+ var { header, itemsControl, activeHref, items = [], onFollow, onChange, __internalRootRef } = _a, props = __rest(_a, ["header", "itemsControl", "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,6 +31,7 @@ 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),
34
35
  items && (React.createElement("div", { className: styles['list-container'] },
35
36
  React.createElement(NavigationItemsList, { variant: "root", items: items, fireFollow: onFollowHandler, fireChange: onChangeHandler, activeHref: activeHref })))));
36
37
  }
@@ -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,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,kD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AAyB,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"]}
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,EASf;QATe,EAC3C,MAAM,EACN,YAAY,EACZ,UAAU,EACV,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,OAEW,EADzB,KAAK,cARmC,8FAS5C,CADS;I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C,eAAe,CAAC,IAAG,YAAY,CAAO;QAC7E,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 itemsControl,\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 {itemsControl && <div className={styles['items-control']}>{itemsControl}</div>}\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,6 +11,10 @@ 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;
14
18
  /**
15
19
  * Specifies the `href` of the currently active link.
16
20
  * 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,y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C,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB;CACF"}
@@ -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 * 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
+ {"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 * A slot located below the header and above the items.\n **/\n itemsControl?: React.ReactNode;\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,34 +1,35 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
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"
4
+ "root": "awsui_root_l0dv0_474b6_141",
5
+ "header": "awsui_header_l0dv0_474b6_178",
6
+ "with-toolbar": "awsui_with-toolbar_l0dv0_474b6_190",
7
+ "header-link": "awsui_header-link_l0dv0_474b6_194",
8
+ "header-link--has-logo": "awsui_header-link--has-logo_l0dv0_474b6_204",
9
+ "header-link-text": "awsui_header-link-text_l0dv0_474b6_204",
10
+ "header-logo": "awsui_header-logo_l0dv0_474b6_209",
11
+ "header-logo--stretched": "awsui_header-logo--stretched_l0dv0_474b6_215",
12
+ "items-control": "awsui_items-control_l0dv0_474b6_220",
13
+ "list-container": "awsui_list-container_l0dv0_474b6_225",
14
+ "list": "awsui_list_l0dv0_474b6_225",
15
+ "list-variant-root": "awsui_list-variant-root_l0dv0_474b6_240",
16
+ "list-variant-root--last": "awsui_list-variant-root--last_l0dv0_474b6_247",
17
+ "list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_474b6_251",
18
+ "list-item": "awsui_list-item_l0dv0_474b6_255",
19
+ "section": "awsui_section_l0dv0_474b6_263",
20
+ "expandable-link-group": "awsui_expandable-link-group_l0dv0_474b6_264",
21
+ "section--no-ident": "awsui_section--no-ident_l0dv0_474b6_267",
22
+ "expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_474b6_268",
23
+ "refresh": "awsui_refresh_l0dv0_474b6_276",
24
+ "list-variant-section-group": "awsui_list-variant-section-group_l0dv0_474b6_284",
25
+ "section-group": "awsui_section-group_l0dv0_474b6_291",
26
+ "section-group-title": "awsui_section-group-title_l0dv0_474b6_302",
27
+ "link": "awsui_link_l0dv0_474b6_306",
28
+ "link-active": "awsui_link-active_l0dv0_474b6_315",
29
+ "info": "awsui_info_l0dv0_474b6_352",
30
+ "external-icon": "awsui_external-icon_l0dv0_474b6_356",
31
+ "divider": "awsui_divider_l0dv0_474b6_360",
32
+ "divider-default": "awsui_divider-default_l0dv0_474b6_365",
33
+ "divider-header": "awsui_divider-header_l0dv0_474b6_371"
33
34
  };
34
35