@cloudscape-design/components 3.0.1000 → 3.0.1002

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 (105) hide show
  1. package/alert/styles.scoped.css +2 -4
  2. package/anchor-navigation/styles.scoped.css +1 -2
  3. package/annotation-context/annotation/styles.scoped.css +1 -2
  4. package/app-layout/visual-refresh/styles.scoped.css +2 -4
  5. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +17 -17
  6. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +35 -36
  7. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +17 -17
  8. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +1 -2
  9. package/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
  10. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  11. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +1 -2
  12. package/attribute-editor/styles.scoped.css +1 -2
  13. package/badge/styles.scoped.css +1 -2
  14. package/breadcrumb-group/styles.scoped.css +2 -4
  15. package/button/styles.scoped.css +1 -2
  16. package/button-dropdown/mobile-expandable-group/styles.scoped.css +1 -2
  17. package/button-group/styles.scoped.css +1 -2
  18. package/calendar/styles.scoped.css +1 -2
  19. package/cards/styles.scoped.css +1 -2
  20. package/checkbox/styles.scoped.css +1 -2
  21. package/code-editor/styles.scoped.css +1 -2
  22. package/collection-preferences/content-display/styles.scoped.css +1 -2
  23. package/collection-preferences/styles.scoped.css +1 -2
  24. package/column-layout/styles.scoped.css +1 -2
  25. package/container/styles.scoped.css +1 -2
  26. package/date-picker/styles.scoped.css +1 -2
  27. package/date-range-picker/styles.scoped.css +1 -2
  28. package/drawer/styles.scoped.css +1 -2
  29. package/expandable-section/styles.scoped.css +1 -2
  30. package/file-token-group/styles.scoped.css +1 -2
  31. package/flashbar/styles.scoped.css +1 -2
  32. package/form/styles.scoped.css +1 -2
  33. package/form-field/styles.scoped.css +1 -2
  34. package/grid/styles.scoped.css +1 -2
  35. package/header/styles.scoped.css +1 -2
  36. package/help-panel/styles.scoped.css +1 -2
  37. package/input/styles.scoped.css +1 -2
  38. package/internal/base-component/styles.scoped.css +3 -0
  39. package/internal/components/button-trigger/styles.scoped.css +1 -2
  40. package/internal/components/chart-filter/styles.scoped.css +1 -2
  41. package/internal/components/chart-legend/styles.scoped.css +1 -2
  42. package/internal/components/chart-popover/styles.scoped.css +1 -2
  43. package/internal/components/chart-series-details/styles.scoped.css +3 -6
  44. package/internal/components/chart-series-marker/styles.scoped.css +1 -2
  45. package/internal/components/chart-wrapper/styles.scoped.css +1 -2
  46. package/internal/components/dropdown/styles.scoped.css +1 -2
  47. package/internal/components/dropdown-footer/styles.scoped.css +1 -2
  48. package/internal/components/dropdown-status/styles.scoped.css +1 -2
  49. package/internal/components/menu-dropdown/styles.scoped.css +1 -2
  50. package/internal/components/option/styles.scoped.css +1 -2
  51. package/internal/components/options-list/styles.scoped.css +1 -2
  52. package/internal/components/token-list/styles.scoped.css +1 -2
  53. package/internal/environment.d.ts +1 -0
  54. package/internal/environment.js +2 -1
  55. package/internal/environment.json +2 -1
  56. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  57. package/internal/hooks/use-base-component/index.js +2 -0
  58. package/internal/hooks/use-base-component/index.js.map +1 -1
  59. package/internal/hooks/use-base-component/styles-check.d.ts +3 -0
  60. package/internal/hooks/use-base-component/styles-check.d.ts.map +1 -0
  61. package/internal/hooks/use-base-component/styles-check.js +46 -0
  62. package/internal/hooks/use-base-component/styles-check.js.map +1 -0
  63. package/internal/manifest.json +1 -1
  64. package/internal/metrics.d.ts.map +1 -1
  65. package/internal/metrics.js +2 -2
  66. package/internal/metrics.js.map +1 -1
  67. package/key-value-pairs/styles.scoped.css +2 -4
  68. package/link/styles.scoped.css +1 -2
  69. package/modal/styles.scoped.css +2 -4
  70. package/multiselect/styles.scoped.css +2 -4
  71. package/package.json +1 -1
  72. package/pagination/styles.scoped.css +1 -2
  73. package/popover/styles.scoped.css +3 -6
  74. package/progress-bar/styles.scoped.css +1 -2
  75. package/prompt-input/internal.d.ts.map +1 -1
  76. package/prompt-input/internal.js +3 -3
  77. package/prompt-input/internal.js.map +1 -1
  78. package/prompt-input/styles.scoped.css +4 -8
  79. package/property-filter/filtering-token/styles.scoped.css +1 -2
  80. package/property-filter/styles.scoped.css +2 -4
  81. package/radio-group/styles.scoped.css +1 -2
  82. package/segmented-control/interfaces.d.ts +2 -1
  83. package/segmented-control/interfaces.d.ts.map +1 -1
  84. package/segmented-control/interfaces.js.map +1 -1
  85. package/segmented-control/styles.scoped.css +1 -2
  86. package/select/styles.scoped.css +1 -2
  87. package/side-navigation/styles.scoped.css +1 -2
  88. package/slider/styles.scoped.css +1 -2
  89. package/split-panel/styles.scoped.css +1 -2
  90. package/steps/styles.scoped.css +1 -2
  91. package/table/expandable-rows/styles.scoped.css +1 -2
  92. package/table/resizer/styles.scoped.css +1 -2
  93. package/tabs/styles.scoped.css +1 -2
  94. package/text-content/styles.scoped.css +1 -2
  95. package/text-filter/styles.scoped.css +1 -2
  96. package/textarea/styles.scoped.css +1 -2
  97. package/tiles/styles.scoped.css +2 -4
  98. package/toggle/styles.scoped.css +1 -2
  99. package/token-group/styles.scoped.css +1 -2
  100. package/top-navigation/1.0-beta/styles.scoped.css +1 -2
  101. package/top-navigation/styles.scoped.css +3 -6
  102. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +1 -2
  103. package/tutorial-panel/components/tutorial-list/styles.scoped.css +3 -6
  104. package/tutorial-panel/styles.scoped.css +1 -2
  105. package/wizard/styles.scoped.css +1 -2
@@ -224,8 +224,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
224
224
  font-style: normal;
225
225
  font-variant: normal;
226
226
  font-stretch: normal;
227
- -webkit-hyphens: none;
228
- hyphens: none;
227
+ hyphens: none;
229
228
  letter-spacing: normal;
230
229
  list-style: disc outside none;
231
230
  tab-size: 8;
@@ -264,8 +263,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
264
263
  font-style: normal;
265
264
  font-variant: normal;
266
265
  font-stretch: normal;
267
- -webkit-hyphens: none;
268
- hyphens: none;
266
+ hyphens: none;
269
267
  letter-spacing: normal;
270
268
  list-style: disc outside none;
271
269
  tab-size: 8;
@@ -198,8 +198,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  font-style: normal;
199
199
  font-variant: normal;
200
200
  font-stretch: normal;
201
- -webkit-hyphens: none;
202
- hyphens: none;
201
+ hyphens: none;
203
202
  letter-spacing: normal;
204
203
  list-style: disc outside none;
205
204
  tab-size: 8;
@@ -291,8 +291,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
291
291
  font-style: normal;
292
292
  font-variant: normal;
293
293
  font-stretch: normal;
294
- -webkit-hyphens: none;
295
- hyphens: none;
294
+ hyphens: none;
296
295
  letter-spacing: normal;
297
296
  list-style: disc outside none;
298
297
  tab-size: 8;
@@ -222,8 +222,7 @@ div.awsui_background_hyvsj_xt8mb_149 > .awsui_scrolling-background_hyvsj_xt8mb_1
222
222
  font-style: normal;
223
223
  font-variant: normal;
224
224
  font-stretch: normal;
225
- -webkit-hyphens: none;
226
- hyphens: none;
225
+ hyphens: none;
227
226
  letter-spacing: normal;
228
227
  list-style: disc outside none;
229
228
  tab-size: 8;
@@ -1102,8 +1101,7 @@ handleSplitPanelMaxWidth function in the context.
1102
1101
  font-style: normal;
1103
1102
  font-variant: normal;
1104
1103
  font-stretch: normal;
1105
- -webkit-hyphens: none;
1106
- hyphens: none;
1104
+ hyphens: none;
1107
1105
  letter-spacing: normal;
1108
1106
  list-style: disc outside none;
1109
1107
  tab-size: 8;
@@ -1,22 +1,22 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "drawer": "awsui_drawer_12i0j_csme4_189",
5
- "with-expanded-motion": "awsui_with-expanded-motion_12i0j_csme4_203",
6
- "legacy": "awsui_legacy_12i0j_csme4_217",
7
- "last-opened": "awsui_last-opened_12i0j_csme4_225",
8
- "drawer-global": "awsui_drawer-global_12i0j_csme4_229",
9
- "drawer-expanded": "awsui_drawer-expanded_12i0j_csme4_238",
10
- "drawer-hidden": "awsui_drawer-hidden_12i0j_csme4_242",
11
- "has-next-siblings": "awsui_has-next-siblings_12i0j_csme4_252",
12
- "global-drawer-wrapper": "awsui_global-drawer-wrapper_12i0j_csme4_252",
13
- "drawer-content-container": "awsui_drawer-content-container_12i0j_csme4_266",
14
- "drawer-gap": "awsui_drawer-gap_12i0j_csme4_269",
15
- "drawer-close-button": "awsui_drawer-close-button_12i0j_csme4_287",
16
- "drawer-expanded-mode-button": "awsui_drawer-expanded-mode-button_12i0j_csme4_293",
17
- "drawer-content": "awsui_drawer-content_12i0j_csme4_266",
18
- "drawer-content-hidden": "awsui_drawer-content-hidden_12i0j_csme4_305",
19
- "drawer-slider": "awsui_drawer-slider_12i0j_csme4_308",
20
- "drawer-actions": "awsui_drawer-actions_12i0j_csme4_359"
4
+ "drawer": "awsui_drawer_12i0j_12u2z_189",
5
+ "with-expanded-motion": "awsui_with-expanded-motion_12i0j_12u2z_203",
6
+ "legacy": "awsui_legacy_12i0j_12u2z_217",
7
+ "last-opened": "awsui_last-opened_12i0j_12u2z_225",
8
+ "drawer-global": "awsui_drawer-global_12i0j_12u2z_229",
9
+ "drawer-expanded": "awsui_drawer-expanded_12i0j_12u2z_238",
10
+ "drawer-hidden": "awsui_drawer-hidden_12i0j_12u2z_242",
11
+ "has-next-siblings": "awsui_has-next-siblings_12i0j_12u2z_252",
12
+ "global-drawer-wrapper": "awsui_global-drawer-wrapper_12i0j_12u2z_252",
13
+ "drawer-content-container": "awsui_drawer-content-container_12i0j_12u2z_266",
14
+ "drawer-gap": "awsui_drawer-gap_12i0j_12u2z_269",
15
+ "drawer-close-button": "awsui_drawer-close-button_12i0j_12u2z_287",
16
+ "drawer-expanded-mode-button": "awsui_drawer-expanded-mode-button_12i0j_12u2z_293",
17
+ "drawer-content": "awsui_drawer-content_12i0j_12u2z_266",
18
+ "drawer-content-hidden": "awsui_drawer-content-hidden_12i0j_12u2z_305",
19
+ "drawer-slider": "awsui_drawer-slider_12i0j_12u2z_308",
20
+ "drawer-actions": "awsui_drawer-actions_12i0j_12u2z_358"
21
21
  };
22
22
 
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
187
187
  SPDX-License-Identifier: Apache-2.0
188
188
  */
189
- .awsui_drawer_12i0j_csme4_189:not(#\9) {
189
+ .awsui_drawer_12i0j_12u2z_189:not(#\9) {
190
190
  position: sticky;
191
191
  z-index: 830;
192
192
  background-color: var(--color-background-container-content-6u8rvp, #ffffff);
@@ -200,56 +200,56 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
200
200
  pointer-events: auto;
201
201
  word-wrap: break-word;
202
202
  }
203
- .awsui_drawer_12i0j_csme4_189.awsui_with-expanded-motion_12i0j_csme4_203:not(#\9) {
203
+ .awsui_drawer_12i0j_12u2z_189.awsui_with-expanded-motion_12i0j_12u2z_203:not(#\9) {
204
204
  transition: inline-size var(--motion-duration-refresh-only-slow-ugjy90, 250ms) var(--motion-easing-refresh-only-a-ccyqaz, cubic-bezier(0, 0, 0, 1)), min-inline-size var(--motion-duration-refresh-only-slow-ugjy90, 250ms) var(--motion-easing-refresh-only-a-ccyqaz, cubic-bezier(0, 0, 0, 1));
205
205
  }
206
206
  @media (prefers-reduced-motion: reduce) {
207
- .awsui_drawer_12i0j_csme4_189.awsui_with-expanded-motion_12i0j_csme4_203:not(#\9) {
207
+ .awsui_drawer_12i0j_12u2z_189.awsui_with-expanded-motion_12i0j_12u2z_203:not(#\9) {
208
208
  animation: none;
209
209
  transition: none;
210
210
  }
211
211
  }
212
- .awsui-motion-disabled .awsui_drawer_12i0j_csme4_189.awsui_with-expanded-motion_12i0j_csme4_203:not(#\9), .awsui-mode-entering .awsui_drawer_12i0j_csme4_189.awsui_with-expanded-motion_12i0j_csme4_203:not(#\9) {
212
+ .awsui-motion-disabled .awsui_drawer_12i0j_12u2z_189.awsui_with-expanded-motion_12i0j_12u2z_203:not(#\9), .awsui-mode-entering .awsui_drawer_12i0j_12u2z_189.awsui_with-expanded-motion_12i0j_12u2z_203:not(#\9) {
213
213
  animation: none;
214
214
  transition: none;
215
215
  }
216
216
  @media (min-width: 689px) {
217
- .awsui_drawer_12i0j_csme4_189:not(#\9):not(.awsui_legacy_12i0j_csme4_217) {
217
+ .awsui_drawer_12i0j_12u2z_189:not(#\9):not(.awsui_legacy_12i0j_12u2z_217) {
218
218
  border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-layout-ayg8vb, #c6c6cd);
219
219
  }
220
220
  }
221
221
  @media (max-width: 688px) {
222
- .awsui_drawer_12i0j_csme4_189:not(#\9) {
222
+ .awsui_drawer_12i0j_12u2z_189:not(#\9) {
223
223
  inline-size: 100%;
224
224
  }
225
- .awsui_drawer_12i0j_csme4_189.awsui_last-opened_12i0j_csme4_225:not(#\9) {
225
+ .awsui_drawer_12i0j_12u2z_189.awsui_last-opened_12i0j_12u2z_225:not(#\9) {
226
226
  z-index: 1001;
227
227
  }
228
228
  }
229
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-global_12i0j_csme4_229:not(#\9) {
229
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-global_12i0j_12u2z_229:not(#\9) {
230
230
  display: block;
231
231
  }
232
232
  @media (min-width: 689px) {
233
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-global_12i0j_csme4_229:not(#\9) {
233
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-global_12i0j_12u2z_229:not(#\9) {
234
234
  inline-size: var(--awsui-drawer-size-kcc2gu);
235
235
  }
236
236
  }
237
237
  @media (max-width: 688px) {
238
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-global_12i0j_csme4_229:not(#\9):not(.awsui_last-opened_12i0j_csme4_225):not(.awsui_drawer-expanded_12i0j_csme4_238) {
238
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-global_12i0j_12u2z_229:not(#\9):not(.awsui_last-opened_12i0j_12u2z_225):not(.awsui_drawer-expanded_12i0j_12u2z_238) {
239
239
  display: none;
240
240
  }
241
241
  }
242
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-hidden_12i0j_csme4_242:not(#\9) {
242
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-hidden_12i0j_12u2z_242:not(#\9) {
243
243
  display: none;
244
244
  }
245
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238:not(#\9) {
245
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238:not(#\9) {
246
246
  inline-size: 100%;
247
247
  }
248
248
  @media (min-width: 689px) {
249
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238:not(#\9) {
249
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238:not(#\9) {
250
250
  border-inline-start: none;
251
251
  }
252
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238.awsui_has-next-siblings_12i0j_csme4_252 > .awsui_global-drawer-wrapper_12i0j_csme4_252:not(#\9):after {
252
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238.awsui_has-next-siblings_12i0j_12u2z_252 > .awsui_global-drawer-wrapper_12i0j_12u2z_252:not(#\9):after {
253
253
  content: "";
254
254
  position: absolute;
255
255
  block-size: 100%;
@@ -259,14 +259,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
259
259
  border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-layout-ayg8vb, #c6c6cd);
260
260
  box-sizing: border-box;
261
261
  }
262
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238 > .awsui_global-drawer-wrapper_12i0j_csme4_252:not(#\9) {
262
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238 > .awsui_global-drawer-wrapper_12i0j_12u2z_252:not(#\9) {
263
263
  inline-size: 100%;
264
264
  grid-template-columns: 8px 1fr;
265
265
  }
266
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266:not(#\9) {
266
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266:not(#\9) {
267
267
  grid-column: 2;
268
268
  }
269
- .awsui_drawer_12i0j_csme4_189.awsui_drawer-expanded_12i0j_csme4_238 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-gap_12i0j_csme4_269:not(#\9) {
269
+ .awsui_drawer_12i0j_12u2z_189.awsui_drawer-expanded_12i0j_12u2z_238 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-gap_12i0j_12u2z_269:not(#\9) {
270
270
  grid-column: 1;
271
271
  grid-row: 1;
272
272
  block-size: 100%;
@@ -275,7 +275,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
275
275
  border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-layout-ayg8vb, #c6c6cd);
276
276
  }
277
277
  }
278
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-content-container_12i0j_csme4_266:not(#\9) {
278
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-content-container_12i0j_12u2z_266:not(#\9) {
279
279
  grid-column: 1/span 2;
280
280
  grid-row: 1;
281
281
  display: grid;
@@ -284,13 +284,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
284
284
  overflow-y: auto;
285
285
  min-inline-size: var(--awsui-drawer-size-kcc2gu);
286
286
  }
287
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-close-button_12i0j_csme4_287:not(#\9) {
287
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-close-button_12i0j_12u2z_287:not(#\9) {
288
288
  grid-column: 3;
289
289
  grid-row: 2;
290
290
  z-index: 1;
291
291
  align-self: start;
292
292
  }
293
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-expanded-mode-button_12i0j_csme4_293:not(#\9) {
293
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-expanded-mode-button_12i0j_12u2z_293:not(#\9) {
294
294
  grid-column: 2;
295
295
  grid-row: 2;
296
296
  z-index: 1;
@@ -298,33 +298,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
298
298
  display: flex;
299
299
  justify-content: flex-end;
300
300
  }
301
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-content_12i0j_csme4_266:not(#\9) {
301
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-content_12i0j_12u2z_266:not(#\9) {
302
302
  grid-column: 1/span 4;
303
303
  grid-row: 1/span 2;
304
304
  }
305
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-content_12i0j_csme4_266.awsui_drawer-content-hidden_12i0j_csme4_305:not(#\9) {
305
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-content_12i0j_12u2z_266.awsui_drawer-content-hidden_12i0j_12u2z_305:not(#\9) {
306
306
  display: none;
307
307
  }
308
- .awsui_drawer_12i0j_csme4_189 > .awsui_drawer-slider_12i0j_csme4_308:not(#\9) {
308
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_drawer-slider_12i0j_12u2z_308:not(#\9) {
309
309
  grid-column: 1;
310
310
  grid-row: 1;
311
311
  block-size: 100%;
312
312
  display: flex;
313
313
  align-items: center;
314
314
  }
315
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252:not(#\9) {
315
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252:not(#\9) {
316
316
  display: grid;
317
317
  min-inline-size: var(--awsui-drawer-size-kcc2gu);
318
318
  grid-template-columns: 8px var(--space-m-dsumyt, 16px) 1fr;
319
319
  overflow: hidden;
320
320
  }
321
321
  @media (max-width: 688px) {
322
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252:not(#\9) {
322
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252:not(#\9) {
323
323
  grid-template-columns: 1fr;
324
- grid-column: 1/span 2;
325
324
  }
326
325
  }
327
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-gap_12i0j_csme4_269:not(#\9) {
326
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-gap_12i0j_12u2z_269:not(#\9) {
328
327
  grid-column: 1;
329
328
  grid-row: 1;
330
329
  block-size: 100%;
@@ -333,13 +332,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
333
332
  border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-layout-ayg8vb, #c6c6cd);
334
333
  box-sizing: border-box;
335
334
  }
336
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-slider_12i0j_csme4_308:not(#\9) {
335
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-slider_12i0j_12u2z_308:not(#\9) {
337
336
  grid-column: 2;
338
337
  grid-row: 1;
339
338
  display: flex;
340
339
  align-items: center;
341
340
  }
342
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266:not(#\9) {
341
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266:not(#\9) {
343
342
  grid-row: 1;
344
343
  display: grid;
345
344
  grid-template-columns: var(--space-m-dsumyt, 16px) 1fr auto var(--space-m-dsumyt, 16px);
@@ -347,16 +346,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
347
346
  overflow-y: auto;
348
347
  }
349
348
  @media (min-width: 689px) {
350
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266:not(#\9) {
349
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266:not(#\9) {
351
350
  grid-column: 2/span 2;
352
351
  }
353
352
  }
354
353
  @media (max-width: 688px) {
355
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266:not(#\9) {
354
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266:not(#\9) {
356
355
  grid-column: 1/span 2;
357
356
  }
358
357
  }
359
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-actions_12i0j_csme4_359:not(#\9) {
358
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-actions_12i0j_12u2z_358:not(#\9) {
360
359
  position: absolute;
361
360
  display: flex;
362
361
  inset-block-start: 0;
@@ -364,13 +363,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
364
363
  padding-inline-end: var(--space-m-dsumyt, 16px);
365
364
  padding-block-start: 14px;
366
365
  }
367
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-close-button_12i0j_csme4_287:not(#\9) {
366
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-close-button_12i0j_12u2z_287:not(#\9) {
368
367
  grid-column: 3;
369
368
  grid-row: 2;
370
369
  z-index: 1;
371
370
  align-self: start;
372
371
  }
373
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-expanded-mode-button_12i0j_csme4_293:not(#\9) {
372
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-expanded-mode-button_12i0j_12u2z_293:not(#\9) {
374
373
  grid-column: 2;
375
374
  grid-row: 2;
376
375
  z-index: 1;
@@ -378,10 +377,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
378
377
  display: flex;
379
378
  justify-content: flex-end;
380
379
  }
381
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-content_12i0j_csme4_266:not(#\9) {
380
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-content_12i0j_12u2z_266:not(#\9) {
382
381
  grid-column: 1/span 4;
383
382
  grid-row: 1/span 2;
384
383
  }
385
- .awsui_drawer_12i0j_csme4_189 > .awsui_global-drawer-wrapper_12i0j_csme4_252 > .awsui_drawer-content-container_12i0j_csme4_266 > .awsui_drawer-content_12i0j_csme4_266.awsui_drawer-content-hidden_12i0j_csme4_305:not(#\9) {
384
+ .awsui_drawer_12i0j_12u2z_189 > .awsui_global-drawer-wrapper_12i0j_12u2z_252 > .awsui_drawer-content-container_12i0j_12u2z_266 > .awsui_drawer-content_12i0j_12u2z_266.awsui_drawer-content-hidden_12i0j_12u2z_305:not(#\9) {
386
385
  display: none;
387
386
  }
@@ -2,22 +2,22 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "drawer": "awsui_drawer_12i0j_csme4_189",
6
- "with-expanded-motion": "awsui_with-expanded-motion_12i0j_csme4_203",
7
- "legacy": "awsui_legacy_12i0j_csme4_217",
8
- "last-opened": "awsui_last-opened_12i0j_csme4_225",
9
- "drawer-global": "awsui_drawer-global_12i0j_csme4_229",
10
- "drawer-expanded": "awsui_drawer-expanded_12i0j_csme4_238",
11
- "drawer-hidden": "awsui_drawer-hidden_12i0j_csme4_242",
12
- "has-next-siblings": "awsui_has-next-siblings_12i0j_csme4_252",
13
- "global-drawer-wrapper": "awsui_global-drawer-wrapper_12i0j_csme4_252",
14
- "drawer-content-container": "awsui_drawer-content-container_12i0j_csme4_266",
15
- "drawer-gap": "awsui_drawer-gap_12i0j_csme4_269",
16
- "drawer-close-button": "awsui_drawer-close-button_12i0j_csme4_287",
17
- "drawer-expanded-mode-button": "awsui_drawer-expanded-mode-button_12i0j_csme4_293",
18
- "drawer-content": "awsui_drawer-content_12i0j_csme4_266",
19
- "drawer-content-hidden": "awsui_drawer-content-hidden_12i0j_csme4_305",
20
- "drawer-slider": "awsui_drawer-slider_12i0j_csme4_308",
21
- "drawer-actions": "awsui_drawer-actions_12i0j_csme4_359"
5
+ "drawer": "awsui_drawer_12i0j_12u2z_189",
6
+ "with-expanded-motion": "awsui_with-expanded-motion_12i0j_12u2z_203",
7
+ "legacy": "awsui_legacy_12i0j_12u2z_217",
8
+ "last-opened": "awsui_last-opened_12i0j_12u2z_225",
9
+ "drawer-global": "awsui_drawer-global_12i0j_12u2z_229",
10
+ "drawer-expanded": "awsui_drawer-expanded_12i0j_12u2z_238",
11
+ "drawer-hidden": "awsui_drawer-hidden_12i0j_12u2z_242",
12
+ "has-next-siblings": "awsui_has-next-siblings_12i0j_12u2z_252",
13
+ "global-drawer-wrapper": "awsui_global-drawer-wrapper_12i0j_12u2z_252",
14
+ "drawer-content-container": "awsui_drawer-content-container_12i0j_12u2z_266",
15
+ "drawer-gap": "awsui_drawer-gap_12i0j_12u2z_269",
16
+ "drawer-close-button": "awsui_drawer-close-button_12i0j_12u2z_287",
17
+ "drawer-expanded-mode-button": "awsui_drawer-expanded-mode-button_12i0j_12u2z_293",
18
+ "drawer-content": "awsui_drawer-content_12i0j_12u2z_266",
19
+ "drawer-content-hidden": "awsui_drawer-content-hidden_12i0j_12u2z_305",
20
+ "drawer-slider": "awsui_drawer-slider_12i0j_12u2z_308",
21
+ "drawer-actions": "awsui_drawer-actions_12i0j_12u2z_358"
22
22
  };
23
23
 
@@ -162,8 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
162
162
  font-style: normal;
163
163
  font-variant: normal;
164
164
  font-stretch: normal;
165
- -webkit-hyphens: none;
166
- hyphens: none;
165
+ hyphens: none;
167
166
  letter-spacing: normal;
168
167
  list-style: disc outside none;
169
168
  tab-size: 8;
@@ -76,7 +76,7 @@ toolbarProps = {}, }) {
76
76
  } },
77
77
  React.createElement("div", { className: styles['toolbar-container'] },
78
78
  hasNavigation && (React.createElement("nav", Object.assign({}, navLandmarkAttributes, { className: clsx(styles['universal-toolbar-nav']) }),
79
- React.createElement(TriggerButton, { ariaLabel: (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.navigationToggle) !== null && _a !== void 0 ? _a : undefined, ariaExpanded: false, iconName: "menu", className: testutilStyles['navigation-toggle'], onClick: () => {
79
+ React.createElement(TriggerButton, { ariaLabel: (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.navigationToggle) !== null && _a !== void 0 ? _a : undefined, ariaExpanded: !drawerExpandedMode && navigationOpen, iconName: "menu", className: testutilStyles['navigation-toggle'], onClick: () => {
80
80
  if (setExpandedDrawerId) {
81
81
  setExpandedDrawerId(null);
82
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAyB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MA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AoB,EAC9B,yBAAyB,EAAE,yBAAyB,EACpD,aAAa,EAAE,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EAClE,sBAAsB,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,EAAE,EACpD,2BAA2B,EAAE,2BAA2B,EACxD,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAoB,GACzC,CACE,CACP,CACG,CACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,yBAAyB,CACvE,8BAA8B,EAC9B,eAAe,CAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutProps } from '../../interfaces';\nimport { OnChangeParams } from '../../utils/use-drawers';\nimport { Focusable, FocusControlMultipleStates } from '../../utils/use-focus-control';\nimport { AppLayoutInternals } from '../interfaces';\nimport { BreadcrumbsSlot } from '../skeleton/breadcrumbs';\nimport { ToolbarSkeleton } from '../skeleton/slot-skeletons';\nimport { ToolbarSlot } from '../skeleton/slot-wrappers';\nimport { DrawerTriggers, SplitPanelToggleProps } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\n\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SplitPanelToggleProps };\n\nexport interface ToolbarProps {\n ariaLabels?: AppLayoutProps.Labels;\n // navigation\n hasNavigation?: boolean;\n navigationOpen?: boolean;\n onNavigationToggle?: (open: boolean) => void;\n navigationFocusRef?: React.Ref<Focusable>;\n\n // breadcrumbs\n hasBreadcrumbsPortal?: boolean;\n\n // split panel\n hasSplitPanel?: boolean;\n splitPanelToggleProps?: SplitPanelToggleProps;\n splitPanelFocusRef?: React.Ref<Focusable>;\n onSplitPanelToggle?: () => void;\n\n // drawers\n activeDrawerId?: string | null;\n drawers?: ReadonlyArray<AppLayoutProps.Drawer>;\n drawersFocusRef?: React.Ref<Focusable>;\n globalDrawersFocusControl?: FocusControlMultipleStates;\n onActiveDrawerChange?: (drawerId: string | null, params: OnChangeParams) => void;\n globalDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalDrawersIds?: ReadonlyArray<string>;\n onActiveGlobalDrawersChange?: ((drawerId: string, params: OnChangeParams) => void) | undefined;\n\n expandedDrawerId?: string | null;\n setExpandedDrawerId?: (value: string | null) => void;\n}\n\nexport interface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n toolbarProps: ToolbarProps;\n}\n\nexport function AppLayoutToolbarImplementation({\n appLayoutInternals,\n // the value could be undefined if this component is loaded as a widget by a different app layout version\n // not testable in a single-version setup\n toolbarProps = {},\n}: AppLayoutToolbarImplementationProps) {\n const {\n breadcrumbs,\n discoveredBreadcrumbs,\n verticalOffsets,\n isMobile,\n toolbarState,\n setToolbarState,\n setToolbarHeight,\n } = appLayoutInternals;\n const {\n ariaLabels,\n activeDrawerId,\n drawers,\n drawersFocusRef,\n onActiveDrawerChange,\n globalDrawersFocusControl,\n globalDrawers,\n activeGlobalDrawersIds,\n onActiveGlobalDrawersChange,\n hasNavigation,\n navigationOpen,\n navigationFocusRef,\n onNavigationToggle,\n hasSplitPanel,\n splitPanelFocusRef,\n splitPanelToggleProps,\n onSplitPanelToggle,\n expandedDrawerId,\n setExpandedDrawerId,\n } = toolbarProps;\n // TODO: expose configuration property\n const pinnedToolbar = true;\n const drawerExpandedMode = !!expandedDrawerId;\n const ref = useRef<HTMLElement>(null);\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n let lastScrollY = window.scrollY;\n\n /* istanbul ignore next not testable in JSDOM */\n const updateScrollDirection = () => {\n if (pinnedToolbar) {\n setToolbarState('show');\n return;\n }\n const scrollY = window.scrollY;\n // 80 is an arbitrary number to have a pause before the toolbar scrolls out of view at the top of the page\n const direction = scrollY > lastScrollY && scrollY > 80 ? 'hide' : 'show';\n // 2 as a buffer to avoid mistaking minor accidental mouse moves as scroll\n if (direction !== toolbarState && (scrollY - lastScrollY > 2 || scrollY - lastScrollY < -2)) {\n setToolbarState(direction);\n }\n lastScrollY = scrollY > 0 ? scrollY : 0;\n };\n\n window.addEventListener('scroll', updateScrollDirection);\n return () => {\n window.removeEventListener('scroll', updateScrollDirection);\n };\n }, [pinnedToolbar, setToolbarState, toolbarState]);\n\n const anyPanelOpenInMobile = !!isMobile && (!!activeDrawerId || (!!navigationOpen && !!hasNavigation));\n useEffect(() => {\n if (anyPanelOpenInMobile) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n return () => {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n }, [anyPanelOpenInMobile]);\n\n const toolbarHidden = toolbarState === 'hide' && !pinnedToolbar;\n const navLandmarkAttributes = navigationOpen\n ? { role: 'presentation' }\n : { role: 'navigation', 'aria-label': ariaLabels?.navigation };\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx(styles['universal-toolbar'], testutilStyles.toolbar, {\n [testutilStyles['mobile-bar']]: isMobile,\n [styles['toolbar-hidden']]: toolbarHidden,\n })}\n style={{\n insetBlockStart: toolbarHidden ? '-60px' : verticalOffsets.toolbar,\n }}\n >\n <div className={styles['toolbar-container']}>\n {hasNavigation && (\n <nav {...navLandmarkAttributes} className={clsx(styles['universal-toolbar-nav'])}>\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={false}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n if (navigationOpen && expandedDrawerId) {\n return;\n }\n onNavigationToggle?.(!navigationOpen);\n }}\n ref={navigationFocusRef}\n selected={!drawerExpandedMode && navigationOpen}\n disabled={anyPanelOpenInMobile}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <div className={clsx(styles['universal-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>\n <BreadcrumbsSlot\n ownBreadcrumbs={appLayoutInternals.breadcrumbs}\n discoveredBreadcrumbs={appLayoutInternals.discoveredBreadcrumbs}\n />\n </div>\n )}\n {(drawers?.length || globalDrawers?.length || (hasSplitPanel && splitPanelToggleProps?.displayed)) && (\n <div className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawerId ?? null}\n drawers={drawers?.filter(item => !!item.trigger) ?? []}\n drawersFocusRef={drawersFocusRef}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={splitPanelToggleProps?.displayed ? splitPanelToggleProps : undefined}\n splitPanelFocusRef={splitPanelFocusRef}\n onSplitPanelToggle={onSplitPanelToggle}\n disabled={anyPanelOpenInMobile}\n globalDrawersFocusControl={globalDrawersFocusControl}\n globalDrawers={globalDrawers?.filter(item => !!item.trigger) ?? []}\n activeGlobalDrawersIds={activeGlobalDrawersIds ?? []}\n onActiveGlobalDrawersChange={onActiveGlobalDrawersChange}\n expandedDrawerId={expandedDrawerId}\n setExpandedDrawerId={setExpandedDrawerId!}\n />\n </div>\n )}\n </div>\n </ToolbarSlot>\n );\n}\n\nexport const createWidgetizedAppLayoutToolbar = createWidgetizedComponent(\n AppLayoutToolbarImplementation,\n ToolbarSkeleton\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[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AK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;gBACvD,oBAAC,cAAc,IACb,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,IAAI,EACtC,OAAO,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EACtD,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,CAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,SAAS,EAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,EAC3F,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,oBAAoB,EAC9B,yBAAyB,EAAE,yBAAyB,EACpD,aAAa,EAAE,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EAClE,sBAAsB,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,EAAE,EACpD,2BAA2B,EAAE,2BAA2B,EACxD,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAoB,GACzC,CACE,CACP,CACG,CACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,yBAAyB,CACvE,8BAA8B,EAC9B,eAAe,CAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutProps } from '../../interfaces';\nimport { OnChangeParams } from '../../utils/use-drawers';\nimport { Focusable, FocusControlMultipleStates } from '../../utils/use-focus-control';\nimport { AppLayoutInternals } from '../interfaces';\nimport { BreadcrumbsSlot } from '../skeleton/breadcrumbs';\nimport { ToolbarSkeleton } from '../skeleton/slot-skeletons';\nimport { ToolbarSlot } from '../skeleton/slot-wrappers';\nimport { DrawerTriggers, SplitPanelToggleProps } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\n\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SplitPanelToggleProps };\n\nexport interface ToolbarProps {\n ariaLabels?: AppLayoutProps.Labels;\n // navigation\n hasNavigation?: boolean;\n navigationOpen?: boolean;\n onNavigationToggle?: (open: boolean) => void;\n navigationFocusRef?: React.Ref<Focusable>;\n\n // breadcrumbs\n hasBreadcrumbsPortal?: boolean;\n\n // split panel\n hasSplitPanel?: boolean;\n splitPanelToggleProps?: SplitPanelToggleProps;\n splitPanelFocusRef?: React.Ref<Focusable>;\n onSplitPanelToggle?: () => void;\n\n // drawers\n activeDrawerId?: string | null;\n drawers?: ReadonlyArray<AppLayoutProps.Drawer>;\n drawersFocusRef?: React.Ref<Focusable>;\n globalDrawersFocusControl?: FocusControlMultipleStates;\n onActiveDrawerChange?: (drawerId: string | null, params: OnChangeParams) => void;\n globalDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalDrawersIds?: ReadonlyArray<string>;\n onActiveGlobalDrawersChange?: ((drawerId: string, params: OnChangeParams) => void) | undefined;\n\n expandedDrawerId?: string | null;\n setExpandedDrawerId?: (value: string | null) => void;\n}\n\nexport interface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n toolbarProps: ToolbarProps;\n}\n\nexport function AppLayoutToolbarImplementation({\n appLayoutInternals,\n // the value could be undefined if this component is loaded as a widget by a different app layout version\n // not testable in a single-version setup\n toolbarProps = {},\n}: AppLayoutToolbarImplementationProps) {\n const {\n breadcrumbs,\n discoveredBreadcrumbs,\n verticalOffsets,\n isMobile,\n toolbarState,\n setToolbarState,\n setToolbarHeight,\n } = appLayoutInternals;\n const {\n ariaLabels,\n activeDrawerId,\n drawers,\n drawersFocusRef,\n onActiveDrawerChange,\n globalDrawersFocusControl,\n globalDrawers,\n activeGlobalDrawersIds,\n onActiveGlobalDrawersChange,\n hasNavigation,\n navigationOpen,\n navigationFocusRef,\n onNavigationToggle,\n hasSplitPanel,\n splitPanelFocusRef,\n splitPanelToggleProps,\n onSplitPanelToggle,\n expandedDrawerId,\n setExpandedDrawerId,\n } = toolbarProps;\n // TODO: expose configuration property\n const pinnedToolbar = true;\n const drawerExpandedMode = !!expandedDrawerId;\n const ref = useRef<HTMLElement>(null);\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n let lastScrollY = window.scrollY;\n\n /* istanbul ignore next not testable in JSDOM */\n const updateScrollDirection = () => {\n if (pinnedToolbar) {\n setToolbarState('show');\n return;\n }\n const scrollY = window.scrollY;\n // 80 is an arbitrary number to have a pause before the toolbar scrolls out of view at the top of the page\n const direction = scrollY > lastScrollY && scrollY > 80 ? 'hide' : 'show';\n // 2 as a buffer to avoid mistaking minor accidental mouse moves as scroll\n if (direction !== toolbarState && (scrollY - lastScrollY > 2 || scrollY - lastScrollY < -2)) {\n setToolbarState(direction);\n }\n lastScrollY = scrollY > 0 ? scrollY : 0;\n };\n\n window.addEventListener('scroll', updateScrollDirection);\n return () => {\n window.removeEventListener('scroll', updateScrollDirection);\n };\n }, [pinnedToolbar, setToolbarState, toolbarState]);\n\n const anyPanelOpenInMobile = !!isMobile && (!!activeDrawerId || (!!navigationOpen && !!hasNavigation));\n useEffect(() => {\n if (anyPanelOpenInMobile) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n return () => {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n }, [anyPanelOpenInMobile]);\n\n const toolbarHidden = toolbarState === 'hide' && !pinnedToolbar;\n const navLandmarkAttributes = navigationOpen\n ? { role: 'presentation' }\n : { role: 'navigation', 'aria-label': ariaLabels?.navigation };\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx(styles['universal-toolbar'], testutilStyles.toolbar, {\n [testutilStyles['mobile-bar']]: isMobile,\n [styles['toolbar-hidden']]: toolbarHidden,\n })}\n style={{\n insetBlockStart: toolbarHidden ? '-60px' : verticalOffsets.toolbar,\n }}\n >\n <div className={styles['toolbar-container']}>\n {hasNavigation && (\n <nav {...navLandmarkAttributes} className={clsx(styles['universal-toolbar-nav'])}>\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={!drawerExpandedMode && navigationOpen}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n if (navigationOpen && expandedDrawerId) {\n return;\n }\n onNavigationToggle?.(!navigationOpen);\n }}\n ref={navigationFocusRef}\n selected={!drawerExpandedMode && navigationOpen}\n disabled={anyPanelOpenInMobile}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <div className={clsx(styles['universal-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>\n <BreadcrumbsSlot\n ownBreadcrumbs={appLayoutInternals.breadcrumbs}\n discoveredBreadcrumbs={appLayoutInternals.discoveredBreadcrumbs}\n />\n </div>\n )}\n {(drawers?.length || globalDrawers?.length || (hasSplitPanel && splitPanelToggleProps?.displayed)) && (\n <div className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawerId ?? null}\n drawers={drawers?.filter(item => !!item.trigger) ?? []}\n drawersFocusRef={drawersFocusRef}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={splitPanelToggleProps?.displayed ? splitPanelToggleProps : undefined}\n splitPanelFocusRef={splitPanelFocusRef}\n onSplitPanelToggle={onSplitPanelToggle}\n disabled={anyPanelOpenInMobile}\n globalDrawersFocusControl={globalDrawersFocusControl}\n globalDrawers={globalDrawers?.filter(item => !!item.trigger) ?? []}\n activeGlobalDrawersIds={activeGlobalDrawersIds ?? []}\n onActiveGlobalDrawersChange={onActiveGlobalDrawersChange}\n expandedDrawerId={expandedDrawerId}\n setExpandedDrawerId={setExpandedDrawerId!}\n />\n </div>\n )}\n </div>\n </ToolbarSlot>\n );\n}\n\nexport const createWidgetizedAppLayoutToolbar = createWidgetizedComponent(\n AppLayoutToolbarImplementation,\n ToolbarSkeleton\n);\n"]}
@@ -216,8 +216,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
216
216
  font-style: normal;
217
217
  font-variant: normal;
218
218
  font-stretch: normal;
219
- -webkit-hyphens: none;
220
- hyphens: none;
219
+ hyphens: none;
221
220
  letter-spacing: normal;
222
221
  list-style: disc outside none;
223
222
  tab-size: 8;
@@ -184,8 +184,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
184
184
  font-style: normal;
185
185
  font-variant: normal;
186
186
  font-stretch: normal;
187
- -webkit-hyphens: none;
188
- hyphens: none;
187
+ hyphens: none;
189
188
  letter-spacing: normal;
190
189
  list-style: disc outside none;
191
190
  tab-size: 8;
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  font-style: normal;
155
155
  font-variant: normal;
156
156
  font-stretch: normal;
157
- -webkit-hyphens: none;
158
- hyphens: none;
157
+ hyphens: none;
159
158
  letter-spacing: normal;
160
159
  list-style: disc outside none;
161
160
  tab-size: 8;
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  font-style: normal;
155
155
  font-variant: normal;
156
156
  font-stretch: normal;
157
- -webkit-hyphens: none;
158
- hyphens: none;
157
+ hyphens: none;
159
158
  letter-spacing: normal;
160
159
  list-style: disc outside none;
161
160
  tab-size: 8;
@@ -239,8 +238,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
239
238
  font-style: normal;
240
239
  font-variant: normal;
241
240
  font-stretch: normal;
242
- -webkit-hyphens: none;
243
- hyphens: none;
241
+ hyphens: none;
244
242
  letter-spacing: normal;
245
243
  list-style: disc outside none;
246
244
  tab-size: 8;
@@ -166,8 +166,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
166
166
  font-style: normal;
167
167
  font-variant: normal;
168
168
  font-stretch: normal;
169
- -webkit-hyphens: none;
170
- hyphens: none;
169
+ hyphens: none;
171
170
  letter-spacing: normal;
172
171
  list-style: disc outside none;
173
172
  tab-size: 8;
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  font-style: normal;
155
155
  font-variant: normal;
156
156
  font-stretch: normal;
157
- -webkit-hyphens: none;
158
- hyphens: none;
157
+ hyphens: none;
159
158
  letter-spacing: normal;
160
159
  list-style: disc outside none;
161
160
  tab-size: 8;
@@ -190,8 +190,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
190
190
  font-style: normal;
191
191
  font-variant: normal;
192
192
  font-stretch: normal;
193
- -webkit-hyphens: none;
194
- hyphens: none;
193
+ hyphens: none;
195
194
  letter-spacing: normal;
196
195
  list-style: disc outside none;
197
196
  tab-size: 8;
@@ -193,8 +193,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
193
193
  font-style: normal;
194
194
  font-variant: normal;
195
195
  font-stretch: normal;
196
- -webkit-hyphens: none;
197
- hyphens: none;
196
+ hyphens: none;
198
197
  letter-spacing: normal;
199
198
  list-style: disc outside none;
200
199
  tab-size: 8;
@@ -202,8 +202,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
202
202
  font-style: normal;
203
203
  font-variant: normal;
204
204
  font-stretch: normal;
205
- -webkit-hyphens: none;
206
- hyphens: none;
205
+ hyphens: none;
207
206
  letter-spacing: normal;
208
207
  list-style: disc outside none;
209
208
  tab-size: 8;
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  font-style: normal;
155
155
  font-variant: normal;
156
156
  font-stretch: normal;
157
- -webkit-hyphens: none;
158
- hyphens: none;
157
+ hyphens: none;
159
158
  letter-spacing: normal;
160
159
  list-style: disc outside none;
161
160
  tab-size: 8;
@@ -584,8 +584,7 @@ body[data-awsui-focus-visible=true] .awsui_code-editor_1gl9c_wxtw7_158 .ace_edit
584
584
  font-style: normal;
585
585
  font-variant: normal;
586
586
  font-stretch: normal;
587
- -webkit-hyphens: none;
588
- hyphens: none;
587
+ hyphens: none;
589
588
  letter-spacing: normal;
590
589
  list-style: disc outside none;
591
590
  tab-size: 8;
@@ -302,8 +302,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
302
302
  font-style: normal;
303
303
  font-variant: normal;
304
304
  font-stretch: normal;
305
- -webkit-hyphens: none;
306
- hyphens: none;
305
+ hyphens: none;
307
306
  letter-spacing: normal;
308
307
  list-style: disc outside none;
309
308
  tab-size: 8;
@@ -633,8 +633,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
633
633
  font-style: normal;
634
634
  font-variant: normal;
635
635
  font-stretch: normal;
636
- -webkit-hyphens: none;
637
- hyphens: none;
636
+ hyphens: none;
638
637
  letter-spacing: normal;
639
638
  list-style: disc outside none;
640
639
  tab-size: 8;
@@ -190,8 +190,7 @@ div.awsui_column-layout_vvxn7_u5w81_181:not(#\9) {
190
190
  font-style: normal;
191
191
  font-variant: normal;
192
192
  font-stretch: normal;
193
- -webkit-hyphens: none;
194
- hyphens: none;
193
+ hyphens: none;
195
194
  letter-spacing: normal;
196
195
  list-style: disc outside none;
197
196
  tab-size: 8;