@cloudscape-design/components-themeable 3.0.1005 → 3.0.1007

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 (74) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/button/styles.scss +26 -17
  3. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +75 -59
  4. package/lib/internal/scss/internal/styles/foundation/shadows.scss +3 -1
  5. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  6. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +32 -32
  7. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  8. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  9. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  10. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  11. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  12. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  13. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  14. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +17 -17
  15. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +39 -39
  16. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +17 -17
  17. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  18. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +21 -21
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +45 -45
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +21 -21
  23. package/lib/internal/template/button/index.d.ts.map +1 -1
  24. package/lib/internal/template/button/index.js +2 -2
  25. package/lib/internal/template/button/index.js.map +1 -1
  26. package/lib/internal/template/button/interfaces.d.ts +35 -0
  27. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  28. package/lib/internal/template/button/interfaces.js.map +1 -1
  29. package/lib/internal/template/button/internal.d.ts.map +1 -1
  30. package/lib/internal/template/button/internal.js +27 -3
  31. package/lib/internal/template/button/internal.js.map +1 -1
  32. package/lib/internal/template/button/styles.css.js +22 -22
  33. package/lib/internal/template/button/styles.scoped.css +211 -210
  34. package/lib/internal/template/button/styles.selectors.js +22 -22
  35. package/lib/internal/template/content-layout/styles.css.js +14 -14
  36. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  37. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  38. package/lib/internal/template/flashbar/styles.css.js +50 -50
  39. package/lib/internal/template/flashbar/styles.scoped.css +166 -166
  40. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  41. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +21 -21
  42. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +44 -44
  43. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +21 -21
  44. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  45. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +38 -38
  46. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  47. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.d.ts +1 -0
  48. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  49. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.js +1 -0
  50. package/lib/internal/template/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  51. package/lib/internal/template/internal/environment.js +1 -1
  52. package/lib/internal/template/internal/environment.json +1 -1
  53. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +76 -61
  54. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  55. package/lib/internal/template/internal/generated/custom-css-properties/index.js +75 -59
  56. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  57. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +12 -13
  58. package/lib/internal/template/internal/generated/theming/index.d.ts +12 -13
  59. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  60. package/lib/internal/template/select/utils/use-select.js +17 -4
  61. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  62. package/lib/internal/template/slider/styles.css.js +26 -26
  63. package/lib/internal/template/slider/styles.scoped.css +86 -86
  64. package/lib/internal/template/slider/styles.selectors.js +26 -26
  65. package/lib/internal/template/spinner/styles.css.js +13 -13
  66. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  67. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  68. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
  69. package/lib/internal/template/table/body-cell/inline-editor.js +15 -10
  70. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
  71. package/lib/internal/template/table/interfaces.d.ts +10 -0
  72. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  73. package/lib/internal/template/table/interfaces.js.map +1 -1
  74. package/package.json +1 -1
@@ -150,10 +150,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
151
  SPDX-License-Identifier: Apache-2.0
152
152
  */
153
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
154
- animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_lha3f_1 var(--motion-duration-show-quick-i2gulq, 135ms) var(--motion-easing-show-quick-xucy9w, ease-out);
153
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
154
+ animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_lmmh6_1 var(--motion-duration-show-quick-i2gulq, 135ms) var(--motion-easing-show-quick-xucy9w, ease-out);
155
155
  }
156
- @keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_lha3f_1 {
156
+ @keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_lmmh6_1 {
157
157
  from {
158
158
  opacity: 0.4;
159
159
  }
@@ -162,22 +162,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
162
162
  }
163
163
  }
164
164
  @media (prefers-reduced-motion: reduce) {
165
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
165
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
166
166
  animation: none;
167
167
  transition: none;
168
168
  }
169
169
  }
170
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
170
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
171
171
  animation: none;
172
172
  transition: none;
173
173
  }
174
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153.awsui_refresh_qwoo0_lha3f_174:not(#\9) {
174
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153.awsui_refresh_qwoo0_lmmh6_174:not(#\9) {
175
175
  transform-origin: top;
176
- animation-name: awsui_awsui-motion-fade-in-0_qwoo0_lha3f_1;
176
+ animation-name: awsui_awsui-motion-fade-in-0_qwoo0_lmmh6_1;
177
177
  animation-duration: var(--motion-duration-show-quick-i2gulq, 135ms);
178
178
  animation-timing-function: var(--motion-easing-show-quick-xucy9w, ease-out);
179
179
  }
180
- @keyframes awsui_awsui-motion-fade-in-0_qwoo0_lha3f_1 {
180
+ @keyframes awsui_awsui-motion-fade-in-0_qwoo0_lmmh6_1 {
181
181
  from {
182
182
  opacity: 0;
183
183
  }
@@ -186,17 +186,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  }
187
187
  }
188
188
  @media (prefers-reduced-motion: reduce) {
189
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153.awsui_refresh_qwoo0_lha3f_174:not(#\9) {
189
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153.awsui_refresh_qwoo0_lmmh6_174:not(#\9) {
190
190
  animation: none;
191
191
  transition: none;
192
192
  }
193
193
  }
194
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_lha3f_153.awsui_refresh_qwoo0_lha3f_174:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_lha3f_153.awsui_refresh_qwoo0_lha3f_174:not(#\9) {
194
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153.awsui_refresh_qwoo0_lmmh6_174:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153.awsui_refresh_qwoo0_lmmh6_174:not(#\9) {
195
195
  animation: none;
196
196
  transition: none;
197
197
  }
198
198
 
199
- .awsui_root_qwoo0_lha3f_199:not(#\9) {
199
+ .awsui_root_qwoo0_lmmh6_199:not(#\9) {
200
200
  border-collapse: separate;
201
201
  border-spacing: 0;
202
202
  box-sizing: border-box;
@@ -230,34 +230,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
230
230
  position: relative;
231
231
  white-space: inherit;
232
232
  }
233
- .awsui_root_qwoo0_lha3f_199.awsui_interior_qwoo0_lha3f_232:not(#\9) {
233
+ .awsui_root_qwoo0_lmmh6_199.awsui_interior_qwoo0_lmmh6_232:not(#\9) {
234
234
  position: static;
235
235
  }
236
236
 
237
- .awsui_dropdown_qwoo0_lha3f_153:not(#\9) {
237
+ .awsui_dropdown_qwoo0_lmmh6_153:not(#\9) {
238
238
  position: absolute;
239
239
  display: none;
240
240
  z-index: 2000;
241
241
  transform-origin: top;
242
242
  }
243
- .awsui_dropdown_qwoo0_lha3f_153.awsui_use-portal_qwoo0_lha3f_242:not(#\9) {
243
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_use-portal_qwoo0_lmmh6_242:not(#\9) {
244
244
  z-index: 7000;
245
245
  }
246
- .awsui_dropdown_qwoo0_lha3f_153:not(#\9):not(.awsui_interior_qwoo0_lha3f_232) {
246
+ .awsui_dropdown_qwoo0_lmmh6_153:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232) {
247
247
  transform: translateY(0px);
248
248
  transition: transform var(--motion-duration-show-quick-i2gulq, 135ms);
249
249
  }
250
250
  @media (prefers-reduced-motion: reduce) {
251
- .awsui_dropdown_qwoo0_lha3f_153:not(#\9):not(.awsui_interior_qwoo0_lha3f_232) {
251
+ .awsui_dropdown_qwoo0_lmmh6_153:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232) {
252
252
  animation: none;
253
253
  transition: none;
254
254
  }
255
255
  }
256
- .awsui-motion-disabled .awsui_dropdown_qwoo0_lha3f_153:not(#\9):not(.awsui_interior_qwoo0_lha3f_232), .awsui-mode-entering .awsui_dropdown_qwoo0_lha3f_153:not(#\9):not(.awsui_interior_qwoo0_lha3f_232) {
256
+ .awsui-motion-disabled .awsui_dropdown_qwoo0_lmmh6_153:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232), .awsui-mode-entering .awsui_dropdown_qwoo0_lmmh6_153:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232) {
257
257
  animation: none;
258
258
  transition: none;
259
259
  }
260
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
260
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
261
261
  position: relative;
262
262
  background-color: var(--color-background-dropdown-item-default-fhmksr, #ffffff);
263
263
  outline: none;
@@ -269,7 +269,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
269
269
  border-block: var(--border-divider-list-width-8ggz94, 1px) solid var(--color-border-container-top-svitxz, #eaeded);
270
270
  box-sizing: border-box;
271
271
  }
272
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9)::after {
272
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9)::after {
273
273
  content: "";
274
274
  position: absolute;
275
275
  z-index: 1;
@@ -286,65 +286,65 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
286
286
  border-end-end-radius: var(--border-radius-dropdown-oaxffg, 0px);
287
287
  pointer-events: none;
288
288
  }
289
- .awsui_dropdown-content-wrapper_qwoo0_lha3f_153.awsui_is-empty_qwoo0_lha3f_288:not(#\9)::after {
289
+ .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153.awsui_is-empty_qwoo0_lmmh6_288:not(#\9)::after {
290
290
  display: none;
291
291
  }
292
- .awsui_dropdown_qwoo0_lha3f_153 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
292
+ .awsui_dropdown_qwoo0_lmmh6_153 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
293
293
  border-block-start: var(--border-divider-list-width-8ggz94, 1px) solid var(--color-border-container-top-svitxz, #eaeded);
294
294
  border-block-end: var(--border-divider-list-width-8ggz94, 1px) solid var(--color-border-dropdown-group-dg9zg5, #eaeded);
295
295
  }
296
- .awsui_dropdown-drop-up_qwoo0_lha3f_295 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
296
+ .awsui_dropdown-drop-up_qwoo0_lmmh6_295 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
297
297
  transform-origin: bottom;
298
298
  box-shadow: var(--shadow-dropup-44quix, 0 -1px 1px 0 rgba(0, 28, 36, 0.3), 1px -1px 1px 0 rgba(0, 28, 36, 0.15), -1px -1px 1px 0 rgba(0, 28, 36, 0.15));
299
299
  }
300
- .awsui_dropdown-drop-up_qwoo0_lha3f_295.awsui_with-limited-width_qwoo0_lha3f_299 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
300
+ .awsui_dropdown-drop-up_qwoo0_lmmh6_295.awsui_with-limited-width_qwoo0_lmmh6_299 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
301
301
  border-block-start: none;
302
302
  }
303
- .awsui_dropdown-drop-left_qwoo0_lha3f_302:not(#\9) {
303
+ .awsui_dropdown-drop-left_qwoo0_lmmh6_302:not(#\9) {
304
304
  inset-inline-end: 0;
305
305
  }
306
- .awsui_dropdown-drop-right_qwoo0_lha3f_305:not(#\9) {
306
+ .awsui_dropdown-drop-right_qwoo0_lmmh6_305:not(#\9) {
307
307
  inset-inline-start: 0;
308
308
  }
309
- .awsui_dropdown_qwoo0_lha3f_153.awsui_occupy-entire-width_qwoo0_lha3f_308:not(#\9) {
309
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_occupy-entire-width_qwoo0_lmmh6_308:not(#\9) {
310
310
  min-inline-size: 100%;
311
311
  }
312
- .awsui_dropdown_qwoo0_lha3f_153.awsui_stretch-beyond-trigger-width_qwoo0_lha3f_311:not(#\9) {
312
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_stretch-beyond-trigger-width_qwoo0_lmmh6_311:not(#\9) {
313
313
  inline-size: max-content;
314
- max-inline-size: var(--awsui-dropdown-default-max-width-xgujsu, 100%);
314
+ max-inline-size: var(--awsui-dropdown-default-max-width-kcc2gu, 100%);
315
315
  }
316
- .awsui_dropdown_qwoo0_lha3f_153.awsui_interior_qwoo0_lha3f_232 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
316
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_interior_qwoo0_lmmh6_232 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
317
317
  margin-block-start: -1px;
318
318
  }
319
- .awsui_dropdown_qwoo0_lha3f_153.awsui_hide-block-border_qwoo0_lha3f_318 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
319
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_hide-block-border_qwoo0_lmmh6_318 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
320
320
  border-block-start: none;
321
321
  }
322
- .awsui_dropdown_qwoo0_lha3f_153.awsui_hide-block-border_qwoo0_lha3f_318:not(#\9):not(.awsui_dropdown-drop-up_qwoo0_lha3f_295) > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153 {
322
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_hide-block-border_qwoo0_lmmh6_318:not(#\9):not(.awsui_dropdown-drop-up_qwoo0_lmmh6_295) > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153 {
323
323
  border-block-end: none;
324
324
  }
325
- .awsui_dropdown_qwoo0_lha3f_153.awsui_hide-block-border_qwoo0_lha3f_318.awsui_refresh_qwoo0_lha3f_174 > .awsui_dropdown-content-wrapper_qwoo0_lha3f_153:not(#\9) {
325
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_hide-block-border_qwoo0_lmmh6_318.awsui_refresh_qwoo0_lmmh6_174 > .awsui_dropdown-content-wrapper_qwoo0_lmmh6_153:not(#\9) {
326
326
  border-block-end: none;
327
327
  }
328
- .awsui_dropdown_qwoo0_lha3f_153.awsui_open_qwoo0_lha3f_327:not(#\9) {
328
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_open_qwoo0_lmmh6_327:not(#\9) {
329
329
  display: block;
330
330
  }
331
- .awsui_dropdown_qwoo0_lha3f_153.awsui_open_qwoo0_lha3f_327:not(#\9):not(.awsui_interior_qwoo0_lha3f_232).awsui_refresh_qwoo0_lha3f_174[data-animating=true] {
331
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_open_qwoo0_lmmh6_327:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232).awsui_refresh_qwoo0_lmmh6_174[data-animating=true] {
332
332
  transform: translateY(4px);
333
333
  }
334
- .awsui_dropdown_qwoo0_lha3f_153.awsui_open_qwoo0_lha3f_327:not(#\9):not(.awsui_interior_qwoo0_lha3f_232).awsui_refresh_qwoo0_lha3f_174[data-animating=true].awsui_dropdown-drop-up_qwoo0_lha3f_295 {
334
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_open_qwoo0_lmmh6_327:not(#\9):not(.awsui_interior_qwoo0_lmmh6_232).awsui_refresh_qwoo0_lmmh6_174[data-animating=true].awsui_dropdown-drop-up_qwoo0_lmmh6_295 {
335
335
  transform: translateY(-4px);
336
336
  }
337
- .awsui_dropdown_qwoo0_lha3f_153.awsui_open_qwoo0_lha3f_327.awsui_nowrap_qwoo0_lha3f_336:not(#\9) {
337
+ .awsui_dropdown_qwoo0_lmmh6_153.awsui_open_qwoo0_lmmh6_327.awsui_nowrap_qwoo0_lmmh6_336:not(#\9) {
338
338
  white-space: nowrap;
339
339
  overflow: scroll;
340
340
  }
341
341
 
342
- .awsui_dropdown-content_qwoo0_lha3f_153:not(#\9) {
342
+ .awsui_dropdown-content_qwoo0_lmmh6_153:not(#\9) {
343
343
  display: flex;
344
344
  flex-direction: column;
345
345
  inline-size: 100%;
346
346
  }
347
347
 
348
- .awsui_stretch-trigger-height_qwoo0_lha3f_347:not(#\9) {
348
+ .awsui_stretch-trigger-height_qwoo0_lmmh6_347:not(#\9) {
349
349
  block-size: 100%;
350
350
  }
@@ -2,25 +2,25 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_lha3f_153",
6
- "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_lha3f_1",
7
- "refresh": "awsui_refresh_qwoo0_lha3f_174",
8
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_lha3f_1",
9
- "root": "awsui_root_qwoo0_lha3f_199",
10
- "interior": "awsui_interior_qwoo0_lha3f_232",
11
- "dropdown": "awsui_dropdown_qwoo0_lha3f_153",
12
- "use-portal": "awsui_use-portal_qwoo0_lha3f_242",
13
- "is-empty": "awsui_is-empty_qwoo0_lha3f_288",
14
- "dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_lha3f_295",
15
- "with-limited-width": "awsui_with-limited-width_qwoo0_lha3f_299",
16
- "dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_lha3f_302",
17
- "dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_lha3f_305",
18
- "occupy-entire-width": "awsui_occupy-entire-width_qwoo0_lha3f_308",
19
- "stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_lha3f_311",
20
- "hide-block-border": "awsui_hide-block-border_qwoo0_lha3f_318",
21
- "open": "awsui_open_qwoo0_lha3f_327",
22
- "nowrap": "awsui_nowrap_qwoo0_lha3f_336",
23
- "dropdown-content": "awsui_dropdown-content_qwoo0_lha3f_153",
24
- "stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_lha3f_347"
5
+ "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_lmmh6_153",
6
+ "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_lmmh6_1",
7
+ "refresh": "awsui_refresh_qwoo0_lmmh6_174",
8
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_lmmh6_1",
9
+ "root": "awsui_root_qwoo0_lmmh6_199",
10
+ "interior": "awsui_interior_qwoo0_lmmh6_232",
11
+ "dropdown": "awsui_dropdown_qwoo0_lmmh6_153",
12
+ "use-portal": "awsui_use-portal_qwoo0_lmmh6_242",
13
+ "is-empty": "awsui_is-empty_qwoo0_lmmh6_288",
14
+ "dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_lmmh6_295",
15
+ "with-limited-width": "awsui_with-limited-width_qwoo0_lmmh6_299",
16
+ "dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_lmmh6_302",
17
+ "dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_lmmh6_305",
18
+ "occupy-entire-width": "awsui_occupy-entire-width_qwoo0_lmmh6_308",
19
+ "stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_lmmh6_311",
20
+ "hide-block-border": "awsui_hide-block-border_qwoo0_lmmh6_318",
21
+ "open": "awsui_open_qwoo0_lmmh6_327",
22
+ "nowrap": "awsui_nowrap_qwoo0_lmmh6_336",
23
+ "dropdown-content": "awsui_dropdown-content_qwoo0_lmmh6_153",
24
+ "stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_lmmh6_347"
25
25
  };
26
26
 
@@ -14,6 +14,7 @@ export interface HighlightedOptionState<OptionType> {
14
14
  }
15
15
  export interface HighlightedOptionHandlers<OptionType> {
16
16
  setHighlightedIndexWithMouse(index: number, moveFocus?: boolean): void;
17
+ highlightFirstOptionWithMouse(): void;
17
18
  moveHighlightWithKeyboard(direction: -1 | 1): void;
18
19
  highlightOptionWithKeyboard(option: OptionType): void;
19
20
  resetHighlightWithKeyboard(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-highlight-option.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IAEf,IAAI,EAAE,UAAU,GAAG,OAAO;IAC1B,SAAS,EAAE,OAAO;gBADlB,IAAI,EAAE,UAAU,GAAG,OAAO,EAC1B,SAAS,GAAE,OAA6B;CAElD;AAED,UAAU,sBAAsB,CAAC,UAAU;IACzC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,eAAe,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB,CAAC,UAAU;IAEnD,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvE,yBAAyB,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACnD,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACtD,0BAA0B,IAAI,IAAI,CAAC;IACnC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,iBAAiB,IAAI,IAAI,CAAC;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,EAC/C,OAAO,EACP,eAAe,GAChB,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC,CA8ClH"}
1
+ {"version":3,"file":"use-highlight-option.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IAEf,IAAI,EAAE,UAAU,GAAG,OAAO;IAC1B,SAAS,EAAE,OAAO;gBADlB,IAAI,EAAE,UAAU,GAAG,OAAO,EAC1B,SAAS,GAAE,OAA6B;CAElD;AAED,UAAU,sBAAsB,CAAC,UAAU;IACzC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,eAAe,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB,CAAC,UAAU;IAEnD,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvE,6BAA6B,IAAI,IAAI,CAAC;IAEtC,yBAAyB,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACnD,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACtD,0BAA0B,IAAI,IAAI,CAAC;IACnC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,iBAAiB,IAAI,IAAI,CAAC;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,EAC/C,OAAO,EACP,eAAe,GAChB,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC,CA+ClH"}
@@ -34,6 +34,7 @@ export function useHighlightedOption({ options, isHighlightable, }) {
34
34
  { highlightType, highlightedIndex, highlightedOption },
35
35
  {
36
36
  setHighlightedIndexWithMouse: (index, moveFocus = false) => setHighlightedIndex(index, new HighlightType('mouse', moveFocus)),
37
+ highlightFirstOptionWithMouse: () => moveHighlightFrom(1, -1, new HighlightType('mouse', true)),
37
38
  moveHighlightWithKeyboard: (direction) => moveHighlight(direction, new HighlightType('keyboard')),
38
39
  highlightOptionWithKeyboard: (option) => highlightOption(option, new HighlightType('keyboard')),
39
40
  resetHighlightWithKeyboard: () => setHighlightedIndex(-1, new HighlightType('keyboard')),
@@ -1 +1 @@
1
- {"version":3,"file":"use-highlight-option.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,OAAO,aAAa;IACxB,YACS,IAA0B,EAC1B,YAAqB,IAAI,KAAK,UAAU;QADxC,SAAI,GAAJ,IAAI,CAAsB;QAC1B,cAAS,GAAT,SAAS,CAA+B;IAC9C,CAAC;CACL;AAwBD,MAAM,UAAU,oBAAoB,CAAa,EAC/C,OAAO,EACP,eAAe,GACoB;IACnC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inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useState } from 'react';\n\nexport class HighlightType {\n constructor(\n public type: 'keyboard' | 'mouse',\n public moveFocus: boolean = type === 'keyboard'\n ) {}\n}\n\ninterface HighlightedOptionProps<OptionType> {\n options: readonly OptionType[];\n isHighlightable: (option: OptionType) => boolean;\n}\n\nexport interface HighlightedOptionState<OptionType> {\n highlightType: HighlightType;\n highlightedIndex: number;\n highlightedOption?: OptionType;\n}\n\nexport interface HighlightedOptionHandlers<OptionType> {\n // Mouse handlers\n setHighlightedIndexWithMouse(index: number, moveFocus?: boolean): void;\n // Keyboard handlers\n moveHighlightWithKeyboard(direction: -1 | 1): void;\n highlightOptionWithKeyboard(option: OptionType): void;\n resetHighlightWithKeyboard(): void;\n goHomeWithKeyboard(): void;\n goEndWithKeyboard(): void;\n}\n\nexport function useHighlightedOption<OptionType>({\n options,\n isHighlightable,\n}: HighlightedOptionProps<OptionType>): [HighlightedOptionState<OptionType>, HighlightedOptionHandlers<OptionType>] {\n const [highlightedIndex, setHighlightedIndexState] = useState(-1);\n const [highlightType, setHighlightType] = useState<HighlightType>(new HighlightType('keyboard'));\n const setHighlightedIndex = useCallback((index: number, newHighlightType: HighlightType) => {\n setHighlightedIndexState(index);\n setHighlightType(oldHighlight => (oldHighlight.type !== newHighlightType.type ? newHighlightType : oldHighlight));\n }, []);\n\n const highlightedOption =\n options[highlightedIndex] && isHighlightable(options[highlightedIndex]) ? options[highlightedIndex] : undefined;\n\n const moveHighlightFrom = (direction: -1 | 1, startIndex = highlightedIndex, highlightType: HighlightType) => {\n const fromBottomEnd = startIndex === -1 && direction === -1;\n let newIndex = fromBottomEnd ? options.length : startIndex;\n do {\n newIndex += direction;\n } while (options[newIndex] && !isHighlightable(options[newIndex]));\n\n if (options[newIndex]) {\n setHighlightedIndex(newIndex, highlightType);\n }\n };\n\n const moveHighlight = (direction: -1 | 1, highlightType: HighlightType) =>\n moveHighlightFrom(direction, highlightedIndex, highlightType);\n\n const highlightOption = useCallback(\n (option: OptionType, highlightType: HighlightType) => {\n const index = options.indexOf(option);\n setHighlightedIndex(index, highlightType);\n },\n [options, setHighlightedIndex]\n );\n\n return [\n { highlightType, highlightedIndex, highlightedOption },\n {\n setHighlightedIndexWithMouse: (index: number, moveFocus = false) =>\n setHighlightedIndex(index, new HighlightType('mouse', moveFocus)),\n moveHighlightWithKeyboard: (direction: -1 | 1) => moveHighlight(direction, new HighlightType('keyboard')),\n highlightOptionWithKeyboard: (option: OptionType) => highlightOption(option, new HighlightType('keyboard')),\n resetHighlightWithKeyboard: () => setHighlightedIndex(-1, new HighlightType('keyboard')),\n goHomeWithKeyboard: () => moveHighlightFrom(1, -1, new HighlightType('keyboard')),\n goEndWithKeyboard: () => moveHighlightFrom(-1, options.length, new HighlightType('keyboard')),\n },\n ];\n}\n"]}
1
+ {"version":3,"file":"use-highlight-option.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,OAAO,aAAa;IACxB,YACS,IAA0B,EAC1B,YAAqB,IAAI,KAAK,UAAU;QADxC,SAAI,GAAJ,IAAI,CAAsB;QAC1B,cAAS,GAAT,SAAS,CAA+B;IAC9C,CAAC;CACL;AAyBD,MAAM,UAAU,oBAAoB,CAAa,EAC/C,OAAO,EACP,eAAe,GACoB;IACnC,MAAM,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAClE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAgB,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjG,MAAM,mBAAmB,GAAG,WAAW,CAAC,CAAC,KAAa,EAAE,gBAA+B,EAAE,EAAE;QACzF,wBAAw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,KAAK,EAAE,aAAa,CAAC,CAAC;IAC5C,CAAC,EACD,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAC/B,CAAC;IAEF,OAAO;QACL,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE;QACtD;YACE,4BAA4B,EAAE,CAAC,KAAa,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,CACjE,mBAAmB,CAAC,KAAK,EAAE,IAAI,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YACnE,6BAA6B,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC/F,yBAAyB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACzG,2BAA2B,EAAE,CAAC,MAAkB,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YAC3G,0BAA0B,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACxF,kBAAkB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACjF,iBAAiB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;SAC9F;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useState } from 'react';\n\nexport class HighlightType {\n constructor(\n public type: 'keyboard' | 'mouse',\n public moveFocus: boolean = type === 'keyboard'\n ) {}\n}\n\ninterface HighlightedOptionProps<OptionType> {\n options: readonly OptionType[];\n isHighlightable: (option: OptionType) => boolean;\n}\n\nexport interface HighlightedOptionState<OptionType> {\n highlightType: HighlightType;\n highlightedIndex: number;\n highlightedOption?: OptionType;\n}\n\nexport interface HighlightedOptionHandlers<OptionType> {\n // Mouse handlers\n setHighlightedIndexWithMouse(index: number, moveFocus?: boolean): void;\n highlightFirstOptionWithMouse(): void;\n // Keyboard handlers\n moveHighlightWithKeyboard(direction: -1 | 1): void;\n highlightOptionWithKeyboard(option: OptionType): void;\n resetHighlightWithKeyboard(): void;\n goHomeWithKeyboard(): void;\n goEndWithKeyboard(): void;\n}\n\nexport function useHighlightedOption<OptionType>({\n options,\n isHighlightable,\n}: HighlightedOptionProps<OptionType>): [HighlightedOptionState<OptionType>, HighlightedOptionHandlers<OptionType>] {\n const [highlightedIndex, setHighlightedIndexState] = useState(-1);\n const [highlightType, setHighlightType] = useState<HighlightType>(new HighlightType('keyboard'));\n const setHighlightedIndex = useCallback((index: number, newHighlightType: HighlightType) => {\n setHighlightedIndexState(index);\n setHighlightType(oldHighlight => (oldHighlight.type !== newHighlightType.type ? newHighlightType : oldHighlight));\n }, []);\n\n const highlightedOption =\n options[highlightedIndex] && isHighlightable(options[highlightedIndex]) ? options[highlightedIndex] : undefined;\n\n const moveHighlightFrom = (direction: -1 | 1, startIndex = highlightedIndex, highlightType: HighlightType) => {\n const fromBottomEnd = startIndex === -1 && direction === -1;\n let newIndex = fromBottomEnd ? options.length : startIndex;\n do {\n newIndex += direction;\n } while (options[newIndex] && !isHighlightable(options[newIndex]));\n\n if (options[newIndex]) {\n setHighlightedIndex(newIndex, highlightType);\n }\n };\n\n const moveHighlight = (direction: -1 | 1, highlightType: HighlightType) =>\n moveHighlightFrom(direction, highlightedIndex, highlightType);\n\n const highlightOption = useCallback(\n (option: OptionType, highlightType: HighlightType) => {\n const index = options.indexOf(option);\n setHighlightedIndex(index, highlightType);\n },\n [options, setHighlightedIndex]\n );\n\n return [\n { highlightType, highlightedIndex, highlightedOption },\n {\n setHighlightedIndexWithMouse: (index: number, moveFocus = false) =>\n setHighlightedIndex(index, new HighlightType('mouse', moveFocus)),\n highlightFirstOptionWithMouse: () => moveHighlightFrom(1, -1, new HighlightType('mouse', true)),\n moveHighlightWithKeyboard: (direction: -1 | 1) => moveHighlight(direction, new HighlightType('keyboard')),\n highlightOptionWithKeyboard: (option: OptionType) => highlightOption(option, new HighlightType('keyboard')),\n resetHighlightWithKeyboard: () => setHighlightedIndex(-1, new HighlightType('keyboard')),\n goHomeWithKeyboard: () => moveHighlightFrom(1, -1, new HighlightType('keyboard')),\n goEndWithKeyboard: () => moveHighlightFrom(-1, options.length, new HighlightType('keyboard')),\n },\n ];\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (c615666e)";
2
+ export var PACKAGE_VERSION = "3.0.0 (d6c04250)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (c615666e)",
3
+ "PACKAGE_VERSION": "3.0.0 (d6c04250)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,63 +1,78 @@
1
1
  declare const customCSSPropertiesMap: {
2
- maxContentWidth: string;
3
- minContentWidth: string;
4
- breadcrumbsGap: string;
5
- contentGapLeft: string;
6
- contentGapRight: string;
7
- contentHeight: string;
8
- contentLayoutDefaultHorizontalPadding: string;
9
- contentLayoutMaxContentWidth: string;
10
- contentLayoutMainGap: string;
11
- defaultMaxContentWidth: string;
12
- defaultMinContentWidth: string;
13
- drawerSize: string;
14
- footerHeight: string;
15
- headerGap: string;
16
- headerHeight: string;
17
- layoutWidth: string;
18
- mainGap: string;
19
- mainOffsetLeft: string;
20
- mainTemplateRows: string;
21
- mobileBarHeight: string;
22
- notificationsHeight: string;
23
- offsetTop: string;
24
- overlapHeight: string;
25
- navigationWidth: string;
26
- splitPanelReportedHeaderSize: string;
27
- splitPanelReportedSize: string;
28
- splitPanelHeight: string;
29
- splitPanelMinWidth: string;
30
- splitPanelMaxWidth: string;
31
- toolsMaxWidth: string;
32
- toolsWidth: string;
33
- toolsAnimationStartingOpacity: string;
34
- contentScrollMargin: string;
35
- flashbarStackDepth: string;
36
- flashbarStackIndex: string;
37
- flashbarStickyBottomMargin: string;
38
- stackedNotificationsBottomMargin: string;
39
- stackedNotificationsDefaultBottomMargin: string;
40
- dropdownDefaultMaxWidth: string;
41
- spinnerRotatorFrom: string;
42
- spinnerRotatorTo: string;
43
- spinnerLineLeftFrom: string;
44
- spinnerLineLeftTo: string;
45
- spinnerLineRightFrom: string;
46
- spinnerLineRightTo: string;
47
- sliderLabelCount: string;
48
- sliderTickCount: string;
49
- sliderReferenceColumn: string;
50
- sliderNextReferenceColumn: string;
51
- sliderMaxStart: string;
52
- sliderMinEnd: string;
53
- sliderRangeInlineSize: string;
54
- sliderTooltipPosition: string;
55
- togglesLeftWidth: string;
56
- togglesRightWidth: string;
57
- promptInputMaxRows: string;
58
- promptInputScrollHeight: string;
59
- dragHandleAnimationInlineOffset: string;
60
- dragHandleAnimationBlockOffset: string;
2
+ maxContentWidth: string;
3
+ minContentWidth: string;
4
+ breadcrumbsGap: string;
5
+ contentGapLeft: string;
6
+ contentGapRight: string;
7
+ contentHeight: string;
8
+ contentLayoutDefaultHorizontalPadding: string;
9
+ contentLayoutMaxContentWidth: string;
10
+ contentLayoutMainGap: string;
11
+ defaultMaxContentWidth: string;
12
+ defaultMinContentWidth: string;
13
+ drawerSize: string;
14
+ footerHeight: string;
15
+ headerGap: string;
16
+ headerHeight: string;
17
+ layoutWidth: string;
18
+ mainGap: string;
19
+ mainOffsetLeft: string;
20
+ mainTemplateRows: string;
21
+ mobileBarHeight: string;
22
+ notificationsHeight: string;
23
+ offsetTop: string;
24
+ overlapHeight: string;
25
+ navigationWidth: string;
26
+ splitPanelReportedHeaderSize: string;
27
+ splitPanelReportedSize: string;
28
+ splitPanelHeight: string;
29
+ splitPanelMinWidth: string;
30
+ splitPanelMaxWidth: string;
31
+ toolsMaxWidth: string;
32
+ toolsWidth: string;
33
+ toolsAnimationStartingOpacity: string;
34
+ contentScrollMargin: string;
35
+ flashbarStackDepth: string;
36
+ flashbarStackIndex: string;
37
+ flashbarStickyBottomMargin: string;
38
+ stackedNotificationsBottomMargin: string;
39
+ stackedNotificationsDefaultBottomMargin: string;
40
+ dropdownDefaultMaxWidth: string;
41
+ spinnerRotatorFrom: string;
42
+ spinnerRotatorTo: string;
43
+ spinnerLineLeftFrom: string;
44
+ spinnerLineLeftTo: string;
45
+ spinnerLineRightFrom: string;
46
+ spinnerLineRightTo: string;
47
+ sliderLabelCount: string;
48
+ sliderTickCount: string;
49
+ sliderReferenceColumn: string;
50
+ sliderNextReferenceColumn: string;
51
+ sliderMaxStart: string;
52
+ sliderMinEnd: string;
53
+ sliderRangeInlineSize: string;
54
+ sliderTooltipPosition: string;
55
+ togglesLeftWidth: string;
56
+ togglesRightWidth: string;
57
+ promptInputMaxRows: string;
58
+ promptInputScrollHeight: string;
59
+ dragHandleAnimationInlineOffset: string;
60
+ dragHandleAnimationBlockOffset: string;
61
+ styleBackgroundActive: string;
62
+ styleBackgroundDefault: string;
63
+ styleBackgroundDisabled: string;
64
+ styleBackgroundHover: string;
65
+ styleBorderColorActive: string;
66
+ styleBorderColorDefault: string;
67
+ styleBorderColorDisabled: string;
68
+ styleBorderColorHover: string;
69
+ styleColorActive: string;
70
+ styleColorDefault: string;
71
+ styleColorDisabled: string;
72
+ styleColorHover: string;
73
+ styleFocusRingBorderColor: string;
74
+ styleFocusRingBorderRadius: string;
75
+ styleFocusRingBorderWidth: string;
76
+ styleFocusRingBoxShadow: string;
61
77
  };
62
- export default customCSSPropertiesMap;
63
- //# sourceMappingURL=index.d.ts.map
78
+ export default customCSSPropertiesMap;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D3B,CAAC;AACF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E3B,CAAC;AACF,eAAe,sBAAsB,CAAC"}
@@ -1,63 +1,79 @@
1
1
  const customCSSPropertiesMap = {
2
- "maxContentWidth": "--awsui-max-content-width-xgujsu",
3
- "minContentWidth": "--awsui-min-content-width-xgujsu",
4
- "breadcrumbsGap": "--awsui-breadcrumbs-gap-xgujsu",
5
- "contentGapLeft": "--awsui-content-gap-left-xgujsu",
6
- "contentGapRight": "--awsui-content-gap-right-xgujsu",
7
- "contentHeight": "--awsui-content-height-xgujsu",
8
- "contentLayoutDefaultHorizontalPadding": "--awsui-content-layout-default-horizontal-padding-xgujsu",
9
- "contentLayoutMaxContentWidth": "--awsui-content-layout-max-content-width-xgujsu",
10
- "contentLayoutMainGap": "--awsui-content-layout-main-gap-xgujsu",
11
- "defaultMaxContentWidth": "--awsui-default-max-content-width-xgujsu",
12
- "defaultMinContentWidth": "--awsui-default-min-content-width-xgujsu",
13
- "drawerSize": "--awsui-drawer-size-xgujsu",
14
- "footerHeight": "--awsui-footer-height-xgujsu",
15
- "headerGap": "--awsui-header-gap-xgujsu",
16
- "headerHeight": "--awsui-header-height-xgujsu",
17
- "layoutWidth": "--awsui-layout-width-xgujsu",
18
- "mainGap": "--awsui-main-gap-xgujsu",
19
- "mainOffsetLeft": "--awsui-main-offset-left-xgujsu",
20
- "mainTemplateRows": "--awsui-main-template-rows-xgujsu",
21
- "mobileBarHeight": "--awsui-mobile-bar-height-xgujsu",
22
- "notificationsHeight": "--awsui-notifications-height-xgujsu",
23
- "offsetTop": "--awsui-offset-top-xgujsu",
24
- "overlapHeight": "--awsui-overlap-height-xgujsu",
25
- "navigationWidth": "--awsui-navigation-width-xgujsu",
26
- "splitPanelReportedHeaderSize": "--awsui-split-panel-reported-header-size-xgujsu",
27
- "splitPanelReportedSize": "--awsui-split-panel-reported-size-xgujsu",
28
- "splitPanelHeight": "--awsui-split-panel-height-xgujsu",
29
- "splitPanelMinWidth": "--awsui-split-panel-min-width-xgujsu",
30
- "splitPanelMaxWidth": "--awsui-split-panel-max-width-xgujsu",
31
- "toolsMaxWidth": "--awsui-tools-max-width-xgujsu",
32
- "toolsWidth": "--awsui-tools-width-xgujsu",
33
- "toolsAnimationStartingOpacity": "--awsui-tools-animation-starting-opacity-xgujsu",
34
- "contentScrollMargin": "--awsui-content-scroll-margin-xgujsu",
35
- "flashbarStackDepth": "--awsui-flashbar-stack-depth-xgujsu",
36
- "flashbarStackIndex": "--awsui-flashbar-stack-index-xgujsu",
37
- "flashbarStickyBottomMargin": "--awsui-flashbar-sticky-bottom-margin-xgujsu",
38
- "stackedNotificationsBottomMargin": "--awsui-stacked-notifications-bottom-margin-xgujsu",
39
- "stackedNotificationsDefaultBottomMargin": "--awsui-stacked-notifications-default-bottom-margin-xgujsu",
40
- "dropdownDefaultMaxWidth": "--awsui-dropdown-default-max-width-xgujsu",
41
- "spinnerRotatorFrom": "--awsui-spinner-rotator-from-xgujsu",
42
- "spinnerRotatorTo": "--awsui-spinner-rotator-to-xgujsu",
43
- "spinnerLineLeftFrom": "--awsui-spinner-line-left-from-xgujsu",
44
- "spinnerLineLeftTo": "--awsui-spinner-line-left-to-xgujsu",
45
- "spinnerLineRightFrom": "--awsui-spinner-line-right-from-xgujsu",
46
- "spinnerLineRightTo": "--awsui-spinner-line-right-to-xgujsu",
47
- "sliderLabelCount": "--awsui-slider-label-count-xgujsu",
48
- "sliderTickCount": "--awsui-slider-tick-count-xgujsu",
49
- "sliderReferenceColumn": "--awsui-slider-reference-column-xgujsu",
50
- "sliderNextReferenceColumn": "--awsui-slider-next-reference-column-xgujsu",
51
- "sliderMaxStart": "--awsui-slider-max-start-xgujsu",
52
- "sliderMinEnd": "--awsui-slider-min-end-xgujsu",
53
- "sliderRangeInlineSize": "--awsui-slider-range-inline-size-xgujsu",
54
- "sliderTooltipPosition": "--awsui-slider-tooltip-position-xgujsu",
55
- "togglesLeftWidth": "--awsui-toggles-left-width-xgujsu",
56
- "togglesRightWidth": "--awsui-toggles-right-width-xgujsu",
57
- "promptInputMaxRows": "--awsui-prompt-input-max-rows-xgujsu",
58
- "promptInputScrollHeight": "--awsui-prompt-input-scroll-height-xgujsu",
59
- "dragHandleAnimationInlineOffset": "--awsui-drag-handle-animation-inline-offset-xgujsu",
60
- "dragHandleAnimationBlockOffset": "--awsui-drag-handle-animation-block-offset-xgujsu",
2
+ "maxContentWidth": "--awsui-max-content-width-kcc2gu",
3
+ "minContentWidth": "--awsui-min-content-width-kcc2gu",
4
+ "breadcrumbsGap": "--awsui-breadcrumbs-gap-kcc2gu",
5
+ "contentGapLeft": "--awsui-content-gap-left-kcc2gu",
6
+ "contentGapRight": "--awsui-content-gap-right-kcc2gu",
7
+ "contentHeight": "--awsui-content-height-kcc2gu",
8
+ "contentLayoutDefaultHorizontalPadding": "--awsui-content-layout-default-horizontal-padding-kcc2gu",
9
+ "contentLayoutMaxContentWidth": "--awsui-content-layout-max-content-width-kcc2gu",
10
+ "contentLayoutMainGap": "--awsui-content-layout-main-gap-kcc2gu",
11
+ "defaultMaxContentWidth": "--awsui-default-max-content-width-kcc2gu",
12
+ "defaultMinContentWidth": "--awsui-default-min-content-width-kcc2gu",
13
+ "drawerSize": "--awsui-drawer-size-kcc2gu",
14
+ "footerHeight": "--awsui-footer-height-kcc2gu",
15
+ "headerGap": "--awsui-header-gap-kcc2gu",
16
+ "headerHeight": "--awsui-header-height-kcc2gu",
17
+ "layoutWidth": "--awsui-layout-width-kcc2gu",
18
+ "mainGap": "--awsui-main-gap-kcc2gu",
19
+ "mainOffsetLeft": "--awsui-main-offset-left-kcc2gu",
20
+ "mainTemplateRows": "--awsui-main-template-rows-kcc2gu",
21
+ "mobileBarHeight": "--awsui-mobile-bar-height-kcc2gu",
22
+ "notificationsHeight": "--awsui-notifications-height-kcc2gu",
23
+ "offsetTop": "--awsui-offset-top-kcc2gu",
24
+ "overlapHeight": "--awsui-overlap-height-kcc2gu",
25
+ "navigationWidth": "--awsui-navigation-width-kcc2gu",
26
+ "splitPanelReportedHeaderSize": "--awsui-split-panel-reported-header-size-kcc2gu",
27
+ "splitPanelReportedSize": "--awsui-split-panel-reported-size-kcc2gu",
28
+ "splitPanelHeight": "--awsui-split-panel-height-kcc2gu",
29
+ "splitPanelMinWidth": "--awsui-split-panel-min-width-kcc2gu",
30
+ "splitPanelMaxWidth": "--awsui-split-panel-max-width-kcc2gu",
31
+ "toolsMaxWidth": "--awsui-tools-max-width-kcc2gu",
32
+ "toolsWidth": "--awsui-tools-width-kcc2gu",
33
+ "toolsAnimationStartingOpacity": "--awsui-tools-animation-starting-opacity-kcc2gu",
34
+ "contentScrollMargin": "--awsui-content-scroll-margin-kcc2gu",
35
+ "flashbarStackDepth": "--awsui-flashbar-stack-depth-kcc2gu",
36
+ "flashbarStackIndex": "--awsui-flashbar-stack-index-kcc2gu",
37
+ "flashbarStickyBottomMargin": "--awsui-flashbar-sticky-bottom-margin-kcc2gu",
38
+ "stackedNotificationsBottomMargin": "--awsui-stacked-notifications-bottom-margin-kcc2gu",
39
+ "stackedNotificationsDefaultBottomMargin": "--awsui-stacked-notifications-default-bottom-margin-kcc2gu",
40
+ "dropdownDefaultMaxWidth": "--awsui-dropdown-default-max-width-kcc2gu",
41
+ "spinnerRotatorFrom": "--awsui-spinner-rotator-from-kcc2gu",
42
+ "spinnerRotatorTo": "--awsui-spinner-rotator-to-kcc2gu",
43
+ "spinnerLineLeftFrom": "--awsui-spinner-line-left-from-kcc2gu",
44
+ "spinnerLineLeftTo": "--awsui-spinner-line-left-to-kcc2gu",
45
+ "spinnerLineRightFrom": "--awsui-spinner-line-right-from-kcc2gu",
46
+ "spinnerLineRightTo": "--awsui-spinner-line-right-to-kcc2gu",
47
+ "sliderLabelCount": "--awsui-slider-label-count-kcc2gu",
48
+ "sliderTickCount": "--awsui-slider-tick-count-kcc2gu",
49
+ "sliderReferenceColumn": "--awsui-slider-reference-column-kcc2gu",
50
+ "sliderNextReferenceColumn": "--awsui-slider-next-reference-column-kcc2gu",
51
+ "sliderMaxStart": "--awsui-slider-max-start-kcc2gu",
52
+ "sliderMinEnd": "--awsui-slider-min-end-kcc2gu",
53
+ "sliderRangeInlineSize": "--awsui-slider-range-inline-size-kcc2gu",
54
+ "sliderTooltipPosition": "--awsui-slider-tooltip-position-kcc2gu",
55
+ "togglesLeftWidth": "--awsui-toggles-left-width-kcc2gu",
56
+ "togglesRightWidth": "--awsui-toggles-right-width-kcc2gu",
57
+ "promptInputMaxRows": "--awsui-prompt-input-max-rows-kcc2gu",
58
+ "promptInputScrollHeight": "--awsui-prompt-input-scroll-height-kcc2gu",
59
+ "dragHandleAnimationInlineOffset": "--awsui-drag-handle-animation-inline-offset-kcc2gu",
60
+ "dragHandleAnimationBlockOffset": "--awsui-drag-handle-animation-block-offset-kcc2gu",
61
+ "styleBackgroundActive": "--awsui-style-background-active-kcc2gu",
62
+ "styleBackgroundDefault": "--awsui-style-background-default-kcc2gu",
63
+ "styleBackgroundDisabled": "--awsui-style-background-disabled-kcc2gu",
64
+ "styleBackgroundHover": "--awsui-style-background-hover-kcc2gu",
65
+ "styleBorderColorActive": "--awsui-style-border-color-active-kcc2gu",
66
+ "styleBorderColorDefault": "--awsui-style-border-color-default-kcc2gu",
67
+ "styleBorderColorDisabled": "--awsui-style-border-color-disabled-kcc2gu",
68
+ "styleBorderColorHover": "--awsui-style-border-color-hover-kcc2gu",
69
+ "styleColorActive": "--awsui-style-color-active-kcc2gu",
70
+ "styleColorDefault": "--awsui-style-color-default-kcc2gu",
71
+ "styleColorDisabled": "--awsui-style-color-disabled-kcc2gu",
72
+ "styleColorHover": "--awsui-style-color-hover-kcc2gu",
73
+ "styleFocusRingBorderColor": "--awsui-style-focus-ring-border-color-kcc2gu",
74
+ "styleFocusRingBorderRadius": "--awsui-style-focus-ring-border-radius-kcc2gu",
75
+ "styleFocusRingBorderWidth": "--awsui-style-focus-ring-border-width-kcc2gu",
76
+ "styleFocusRingBoxShadow": "--awsui-style-focus-ring-box-shadow-kcc2gu",
61
77
  };
62
78
  export default customCSSPropertiesMap;
63
79
  //# sourceMappingURL=index.js.map