@cloudscape-design/components 3.0.176 → 3.0.178

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 (285) hide show
  1. package/alert/styles.css.js +19 -19
  2. package/alert/styles.scoped.css +35 -31
  3. package/alert/styles.selectors.js +19 -19
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +31 -29
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/area-chart/styles.css.js +13 -13
  8. package/area-chart/styles.scoped.css +18 -16
  9. package/area-chart/styles.selectors.js +13 -13
  10. package/attribute-editor/styles.css.js +14 -14
  11. package/attribute-editor/styles.scoped.css +26 -24
  12. package/attribute-editor/styles.selectors.js +14 -14
  13. package/autosuggest/internal.d.ts.map +1 -1
  14. package/autosuggest/internal.js +2 -2
  15. package/autosuggest/internal.js.map +1 -1
  16. package/badge/styles.css.js +5 -5
  17. package/badge/styles.scoped.css +7 -5
  18. package/badge/styles.selectors.js +5 -5
  19. package/box/styles.css.js +189 -189
  20. package/box/styles.scoped.css +236 -234
  21. package/box/styles.selectors.js +189 -189
  22. package/breadcrumb-group/styles.css.js +6 -6
  23. package/breadcrumb-group/styles.scoped.css +15 -11
  24. package/breadcrumb-group/styles.selectors.js +6 -6
  25. package/button/styles.css.js +18 -18
  26. package/button/styles.scoped.css +138 -136
  27. package/button/styles.selectors.js +18 -18
  28. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  29. package/button-dropdown/mobile-expandable-group/styles.scoped.css +7 -5
  30. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  31. package/calendar/styles.css.js +18 -18
  32. package/calendar/styles.scoped.css +40 -38
  33. package/calendar/styles.selectors.js +18 -18
  34. package/cards/styles.css.js +37 -37
  35. package/cards/styles.scoped.css +48 -44
  36. package/cards/styles.selectors.js +37 -37
  37. package/checkbox/styles.css.js +3 -3
  38. package/checkbox/styles.scoped.css +7 -5
  39. package/checkbox/styles.selectors.js +3 -3
  40. package/code-editor/styles.css.js +32 -32
  41. package/code-editor/styles.scoped.css +111 -109
  42. package/code-editor/styles.selectors.js +32 -32
  43. package/column-layout/styles.css.js +13 -13
  44. package/column-layout/styles.scoped.css +45 -43
  45. package/column-layout/styles.selectors.js +13 -13
  46. package/container/index.d.ts.map +1 -1
  47. package/container/index.js +1 -1
  48. package/container/index.js.map +1 -1
  49. package/container/styles.css.js +17 -17
  50. package/container/styles.scoped.css +29 -27
  51. package/container/styles.selectors.js +17 -17
  52. package/date-picker/styles.css.js +7 -7
  53. package/date-picker/styles.scoped.css +11 -9
  54. package/date-picker/styles.selectors.js +7 -7
  55. package/date-range-picker/styles.css.js +38 -38
  56. package/date-range-picker/styles.scoped.css +47 -45
  57. package/date-range-picker/styles.selectors.js +38 -38
  58. package/expandable-section/styles.css.js +21 -21
  59. package/expandable-section/styles.scoped.css +44 -42
  60. package/expandable-section/styles.selectors.js +21 -21
  61. package/flashbar/styles.css.js +33 -33
  62. package/flashbar/styles.scoped.css +117 -115
  63. package/flashbar/styles.selectors.js +33 -33
  64. package/form/styles.css.js +8 -8
  65. package/form/styles.scoped.css +10 -8
  66. package/form/styles.selectors.js +8 -8
  67. package/form-field/styles.css.js +19 -19
  68. package/form-field/styles.scoped.css +31 -29
  69. package/form-field/styles.selectors.js +19 -19
  70. package/grid/styles.css.js +53 -53
  71. package/grid/styles.scoped.css +56 -54
  72. package/grid/styles.selectors.js +53 -53
  73. package/header/styles.css.js +44 -44
  74. package/header/styles.scoped.css +49 -47
  75. package/header/styles.selectors.js +44 -44
  76. package/help-panel/styles.css.js +4 -4
  77. package/help-panel/styles.scoped.css +60 -58
  78. package/help-panel/styles.selectors.js +4 -4
  79. package/icon/icons.js +1 -1
  80. package/input/index.d.ts.map +1 -1
  81. package/input/index.js +2 -2
  82. package/input/index.js.map +1 -1
  83. package/input/interfaces.d.ts +4 -0
  84. package/input/interfaces.d.ts.map +1 -1
  85. package/input/interfaces.js.map +1 -1
  86. package/input/internal.d.ts +0 -1
  87. package/input/internal.d.ts.map +1 -1
  88. package/input/internal.js +16 -14
  89. package/input/internal.js.map +1 -1
  90. package/input/styles.css.js +12 -13
  91. package/input/styles.scoped.css +35 -41
  92. package/input/styles.selectors.js +12 -13
  93. package/internal/components/autosuggest-input/index.d.ts +1 -0
  94. package/internal/components/autosuggest-input/index.d.ts.map +1 -1
  95. package/internal/components/autosuggest-input/index.js +2 -2
  96. package/internal/components/autosuggest-input/index.js.map +1 -1
  97. package/internal/components/button-trigger/styles.css.js +9 -9
  98. package/internal/components/button-trigger/styles.scoped.css +25 -23
  99. package/internal/components/button-trigger/styles.selectors.js +9 -9
  100. package/internal/components/chart-filter/styles.css.js +3 -3
  101. package/internal/components/chart-filter/styles.scoped.css +5 -3
  102. package/internal/components/chart-filter/styles.selectors.js +3 -3
  103. package/internal/components/chart-legend/styles.css.js +6 -6
  104. package/internal/components/chart-legend/styles.scoped.css +17 -15
  105. package/internal/components/chart-legend/styles.selectors.js +6 -6
  106. package/internal/components/chart-popover/styles.css.js +3 -3
  107. package/internal/components/chart-popover/styles.scoped.css +5 -3
  108. package/internal/components/chart-popover/styles.selectors.js +3 -3
  109. package/internal/components/chart-series-details/styles.css.js +5 -5
  110. package/internal/components/chart-series-details/styles.scoped.css +12 -8
  111. package/internal/components/chart-series-details/styles.selectors.js +5 -5
  112. package/internal/components/chart-series-marker/styles.css.js +5 -5
  113. package/internal/components/chart-series-marker/styles.scoped.css +9 -7
  114. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  115. package/internal/components/dropdown/styles.css.js +20 -20
  116. package/internal/components/dropdown/styles.scoped.css +37 -35
  117. package/internal/components/dropdown/styles.selectors.js +20 -20
  118. package/internal/components/dropdown-footer/styles.css.js +3 -3
  119. package/internal/components/dropdown-footer/styles.scoped.css +5 -3
  120. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  121. package/internal/components/dropdown-status/styles.css.js +2 -2
  122. package/internal/components/dropdown-status/styles.scoped.css +4 -2
  123. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  124. package/internal/components/focus-lock/index.d.ts +2 -1
  125. package/internal/components/focus-lock/index.d.ts.map +1 -1
  126. package/internal/components/focus-lock/index.js +28 -5
  127. package/internal/components/focus-lock/index.js.map +1 -1
  128. package/internal/components/menu-dropdown/styles.css.js +7 -7
  129. package/internal/components/menu-dropdown/styles.scoped.css +15 -13
  130. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  131. package/internal/components/option/styles.css.js +15 -15
  132. package/internal/components/option/styles.scoped.css +27 -25
  133. package/internal/components/option/styles.selectors.js +15 -15
  134. package/internal/components/options-list/styles.css.js +2 -2
  135. package/internal/components/options-list/styles.scoped.css +4 -2
  136. package/internal/components/options-list/styles.selectors.js +2 -2
  137. package/internal/components/selectable-item/styles.css.js +16 -16
  138. package/internal/components/selectable-item/styles.scoped.css +29 -27
  139. package/internal/components/selectable-item/styles.selectors.js +16 -16
  140. package/internal/components/tab-trap/index.d.ts +7 -4
  141. package/internal/components/tab-trap/index.d.ts.map +1 -1
  142. package/internal/components/tab-trap/index.js +5 -3
  143. package/internal/components/tab-trap/index.js.map +1 -1
  144. package/internal/environment.js +1 -1
  145. package/internal/hooks/use-merge-refs/index.d.ts +1 -1
  146. package/internal/hooks/use-merge-refs/index.d.ts.map +1 -1
  147. package/internal/hooks/use-merge-refs/index.js.map +1 -1
  148. package/internal/manifest.json +1 -1
  149. package/link/styles.css.js +20 -20
  150. package/link/styles.scoped.css +75 -71
  151. package/link/styles.selectors.js +20 -20
  152. package/mixed-line-bar-chart/styles.css.js +19 -19
  153. package/mixed-line-bar-chart/styles.scoped.css +28 -26
  154. package/mixed-line-bar-chart/styles.selectors.js +19 -19
  155. package/modal/internal.d.ts.map +1 -1
  156. package/modal/internal.js +2 -9
  157. package/modal/internal.js.map +1 -1
  158. package/modal/styles.css.js +22 -22
  159. package/modal/styles.scoped.css +42 -38
  160. package/modal/styles.selectors.js +22 -22
  161. package/multiselect/internal.d.ts.map +1 -1
  162. package/multiselect/internal.js +2 -2
  163. package/multiselect/internal.js.map +1 -1
  164. package/multiselect/styles.css.js +1 -1
  165. package/multiselect/styles.scoped.css +3 -1
  166. package/multiselect/styles.selectors.js +1 -1
  167. package/package.json +1 -1
  168. package/pagination/styles.css.js +9 -9
  169. package/pagination/styles.scoped.css +25 -23
  170. package/pagination/styles.selectors.js +9 -9
  171. package/pie-chart/styles.css.js +27 -27
  172. package/pie-chart/styles.scoped.css +45 -43
  173. package/pie-chart/styles.selectors.js +27 -27
  174. package/popover/styles.css.js +50 -50
  175. package/popover/styles.scoped.css +69 -63
  176. package/popover/styles.selectors.js +50 -50
  177. package/progress-bar/styles.css.js +18 -18
  178. package/progress-bar/styles.scoped.css +34 -32
  179. package/progress-bar/styles.selectors.js +18 -18
  180. package/property-filter/interfaces.d.ts +1 -0
  181. package/property-filter/interfaces.d.ts.map +1 -1
  182. package/property-filter/interfaces.js.map +1 -1
  183. package/property-filter/styles.css.js +33 -33
  184. package/property-filter/styles.scoped.css +37 -35
  185. package/property-filter/styles.selectors.js +33 -33
  186. package/property-filter/token-editor.d.ts.map +1 -1
  187. package/property-filter/token-editor.js +1 -1
  188. package/property-filter/token-editor.js.map +1 -1
  189. package/radio-group/styles.css.js +9 -9
  190. package/radio-group/styles.scoped.css +17 -15
  191. package/radio-group/styles.selectors.js +9 -9
  192. package/s3-resource-selector/interfaces.d.ts +1 -0
  193. package/s3-resource-selector/interfaces.d.ts.map +1 -1
  194. package/s3-resource-selector/interfaces.js.map +1 -1
  195. package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  196. package/s3-resource-selector/s3-in-context/index.js +1 -1
  197. package/s3-resource-selector/s3-in-context/index.js.map +1 -1
  198. package/segmented-control/styles.css.js +14 -14
  199. package/segmented-control/styles.scoped.css +35 -33
  200. package/segmented-control/styles.selectors.js +14 -14
  201. package/select/interfaces.d.ts +4 -0
  202. package/select/interfaces.d.ts.map +1 -1
  203. package/select/interfaces.js.map +1 -1
  204. package/select/internal.d.ts.map +1 -1
  205. package/select/internal.js +2 -2
  206. package/select/internal.js.map +1 -1
  207. package/select/parts/filter.d.ts +1 -1
  208. package/select/parts/filter.d.ts.map +1 -1
  209. package/select/styles.css.js +1 -1
  210. package/select/styles.scoped.css +3 -1
  211. package/select/styles.selectors.js +1 -1
  212. package/side-navigation/internal.js +1 -1
  213. package/side-navigation/internal.js.map +1 -1
  214. package/side-navigation/styles.css.js +22 -22
  215. package/side-navigation/styles.scoped.css +37 -32
  216. package/side-navigation/styles.selectors.js +22 -22
  217. package/split-panel/styles.css.js +59 -59
  218. package/split-panel/styles.scoped.css +83 -81
  219. package/split-panel/styles.selectors.js +59 -59
  220. package/status-indicator/styles.css.js +20 -20
  221. package/status-indicator/styles.scoped.css +28 -26
  222. package/status-indicator/styles.selectors.js +20 -20
  223. package/table/styles.css.js +33 -33
  224. package/table/styles.scoped.css +41 -39
  225. package/table/styles.selectors.js +33 -33
  226. package/tabs/styles.css.js +21 -21
  227. package/tabs/styles.scoped.css +40 -38
  228. package/tabs/styles.selectors.js +21 -21
  229. package/tag-editor/index.d.ts.map +1 -1
  230. package/tag-editor/index.js +2 -2
  231. package/tag-editor/index.js.map +1 -1
  232. package/tag-editor/interfaces.d.ts +1 -0
  233. package/tag-editor/interfaces.d.ts.map +1 -1
  234. package/tag-editor/interfaces.js.map +1 -1
  235. package/tag-editor/internal.d.ts +1 -0
  236. package/tag-editor/internal.d.ts.map +1 -1
  237. package/tag-editor/internal.js +2 -2
  238. package/tag-editor/internal.js.map +1 -1
  239. package/test-utils/dom/input/index.js +1 -1
  240. package/test-utils/dom/input/index.js.map +1 -1
  241. package/test-utils/selectors/input/index.js +1 -1
  242. package/test-utils/selectors/input/index.js.map +1 -1
  243. package/test-utils/tsconfig.tsbuildinfo +1 -1
  244. package/text-content/styles.css.js +1 -1
  245. package/text-content/styles.scoped.css +62 -60
  246. package/text-content/styles.selectors.js +1 -1
  247. package/text-filter/interfaces.d.ts +4 -0
  248. package/text-filter/interfaces.d.ts.map +1 -1
  249. package/text-filter/interfaces.js.map +1 -1
  250. package/text-filter/internal.d.ts.map +1 -1
  251. package/text-filter/internal.js +2 -2
  252. package/text-filter/internal.js.map +1 -1
  253. package/text-filter/styles.css.js +4 -4
  254. package/text-filter/styles.scoped.css +6 -4
  255. package/text-filter/styles.selectors.js +4 -4
  256. package/textarea/styles.css.js +4 -4
  257. package/textarea/styles.scoped.css +14 -12
  258. package/textarea/styles.selectors.js +4 -4
  259. package/tiles/styles.css.js +28 -28
  260. package/tiles/styles.scoped.css +72 -68
  261. package/tiles/styles.selectors.js +28 -28
  262. package/toggle/styles.css.js +8 -8
  263. package/toggle/styles.scoped.css +15 -13
  264. package/toggle/styles.selectors.js +8 -8
  265. package/token-group/styles.css.js +7 -7
  266. package/token-group/styles.scoped.css +26 -22
  267. package/token-group/styles.selectors.js +7 -7
  268. package/top-navigation/1.0-beta/styles.css.js +25 -25
  269. package/top-navigation/1.0-beta/styles.scoped.css +44 -42
  270. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  271. package/top-navigation/styles.css.js +47 -47
  272. package/top-navigation/styles.scoped.css +72 -66
  273. package/top-navigation/styles.selectors.js +47 -47
  274. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  275. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -21
  276. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  277. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  278. package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -27
  279. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  280. package/tutorial-panel/styles.css.js +1 -1
  281. package/tutorial-panel/styles.scoped.css +3 -1
  282. package/tutorial-panel/styles.selectors.js +1 -1
  283. package/wizard/styles.css.js +32 -32
  284. package/wizard/styles.scoped.css +62 -60
  285. package/wizard/styles.selectors.js +32 -32
@@ -90,26 +90,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_series_1yz9c_1y8is_93:not(#\9),
94
- .awsui_series--bar_1yz9c_1y8is_94 > .awsui_series__rect_1yz9c_1y8is_94:not(#\9) {
93
+ .awsui_series_1yz9c_15iny_93:not(#\9),
94
+ .awsui_series--bar_1yz9c_15iny_94 > .awsui_series__rect_1yz9c_15iny_94:not(#\9) {
95
95
  transition: opacity var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
96
96
  }
97
97
  @media (prefers-reduced-motion: reduce) {
98
- .awsui_series_1yz9c_1y8is_93:not(#\9),
99
- .awsui_series--bar_1yz9c_1y8is_94 > .awsui_series__rect_1yz9c_1y8is_94:not(#\9) {
98
+ .awsui_series_1yz9c_15iny_93:not(#\9),
99
+ .awsui_series--bar_1yz9c_15iny_94 > .awsui_series__rect_1yz9c_15iny_94:not(#\9) {
100
100
  animation: none;
101
101
  transition: none;
102
102
  }
103
103
  }
104
- .awsui-motion-disabled .awsui_series_1yz9c_1y8is_93:not(#\9), .awsui-mode-entering .awsui_series_1yz9c_1y8is_93:not(#\9), .awsui-motion-disabled .awsui_series--bar_1yz9c_1y8is_94 > .awsui_series__rect_1yz9c_1y8is_94:not(#\9), .awsui-mode-entering .awsui_series--bar_1yz9c_1y8is_94 > .awsui_series__rect_1yz9c_1y8is_94:not(#\9) {
104
+ .awsui-motion-disabled .awsui_series_1yz9c_15iny_93:not(#\9), .awsui-mode-entering .awsui_series_1yz9c_15iny_93:not(#\9), .awsui-motion-disabled .awsui_series--bar_1yz9c_15iny_94 > .awsui_series__rect_1yz9c_15iny_94:not(#\9), .awsui-mode-entering .awsui_series--bar_1yz9c_15iny_94 > .awsui_series__rect_1yz9c_15iny_94:not(#\9) {
105
105
  animation: none;
106
106
  transition: none;
107
107
  }
108
108
 
109
- .awsui_exiting_1yz9c_1y8is_111:not(#\9) {
110
- animation: awsui_awsui-motion-fade-out-0_1yz9c_1y8is_1 var(--motion-duration-refresh-only-fast-addxjd, 115ms) var(--motion-easing-refresh-only-b-nspng9, cubic-bezier(1, 0, 0.83, 1));
109
+ .awsui_exiting_1yz9c_15iny_111:not(#\9) {
110
+ animation: awsui_awsui-motion-fade-out-0_1yz9c_15iny_1 var(--motion-duration-refresh-only-fast-addxjd, 115ms) var(--motion-easing-refresh-only-b-nspng9, cubic-bezier(1, 0, 0.83, 1));
111
111
  }
112
- @keyframes awsui_awsui-motion-fade-out-0_1yz9c_1y8is_1 {
112
+ @keyframes awsui_awsui-motion-fade-out-0_1yz9c_15iny_1 {
113
113
  from {
114
114
  opacity: 1;
115
115
  }
@@ -118,12 +118,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
118
118
  }
119
119
  }
120
120
  @media (prefers-reduced-motion: reduce) {
121
- .awsui_exiting_1yz9c_1y8is_111:not(#\9) {
121
+ .awsui_exiting_1yz9c_15iny_111:not(#\9) {
122
122
  animation: none;
123
123
  transition: none;
124
124
  }
125
125
  }
126
- .awsui-motion-disabled .awsui_exiting_1yz9c_1y8is_111:not(#\9), .awsui-mode-entering .awsui_exiting_1yz9c_1y8is_111:not(#\9) {
126
+ .awsui-motion-disabled .awsui_exiting_1yz9c_15iny_111:not(#\9), .awsui-mode-entering .awsui_exiting_1yz9c_15iny_111:not(#\9) {
127
127
  animation: none;
128
128
  transition: none;
129
129
  }
@@ -132,7 +132,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
132
132
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
133
133
  SPDX-License-Identifier: Apache-2.0
134
134
  */
135
- .awsui_root_1yz9c_1y8is_137:not(#\9) {
135
+ .awsui_root_1yz9c_15iny_137:not(#\9) {
136
136
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
137
137
  border-collapse: separate;
138
138
  border-spacing: 0;
@@ -167,50 +167,52 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
167
167
  color: var(--color-text-body-default-ajf1h5, #000716);
168
168
  font-weight: 400;
169
169
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
170
+ -webkit-font-smoothing: auto;
171
+ -moz-osx-font-smoothing: auto;
170
172
  position: relative;
171
173
  display: block;
172
174
  }
173
175
 
174
- .awsui_filter-container_1yz9c_1y8is_150:not(#\9) {
176
+ .awsui_filter-container_1yz9c_15iny_152:not(#\9) {
175
177
  /* used in test-utils */
176
178
  }
177
179
 
178
- .awsui_has-default-filter_1yz9c_1y8is_154 > :not(#\9):first-child {
180
+ .awsui_has-default-filter_1yz9c_15iny_156 > :not(#\9):first-child {
179
181
  flex: 280px 0 1;
180
182
  }
181
183
 
182
- .awsui_chart-container_1yz9c_1y8is_158:not(#\9) {
184
+ .awsui_chart-container_1yz9c_15iny_160:not(#\9) {
183
185
  display: flex;
184
186
  width: 100%;
185
187
  flex-direction: column;
186
188
  }
187
189
 
188
- .awsui_chart-container__vertical_1yz9c_1y8is_164:not(#\9) {
190
+ .awsui_chart-container__vertical_1yz9c_15iny_166:not(#\9) {
189
191
  display: flex;
190
192
  flex-direction: column;
191
193
  width: 100%;
192
194
  }
193
195
 
194
- .awsui_chart-container__horizontal_1yz9c_1y8is_170:not(#\9) {
196
+ .awsui_chart-container__horizontal_1yz9c_15iny_172:not(#\9) {
195
197
  display: flex;
196
198
  }
197
199
 
198
- .awsui_content_1yz9c_1y8is_174:not(#\9) {
200
+ .awsui_content_1yz9c_15iny_176:not(#\9) {
199
201
  display: flex;
200
202
  position: relative;
201
203
  justify-content: center;
202
204
  align-items: center;
203
205
  }
204
206
 
205
- .awsui_content--reserve-filter_1yz9c_1y8is_181:not(#\9) {
207
+ .awsui_content--reserve-filter_1yz9c_15iny_183:not(#\9) {
206
208
  margin-top: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
207
209
  }
208
210
 
209
- .awsui_content--reserve-legend_1yz9c_1y8is_185:not(#\9) {
211
+ .awsui_content--reserve-legend_1yz9c_15iny_187:not(#\9) {
210
212
  margin-bottom: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
211
213
  }
212
214
 
213
- .awsui_series_1yz9c_1y8is_93:not(#\9) {
215
+ .awsui_series_1yz9c_15iny_93:not(#\9) {
214
216
  display: block;
215
217
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
216
218
  fill: none;
@@ -219,25 +221,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
219
221
  pointer-events: none;
220
222
  }
221
223
 
222
- .awsui_series--highlighted_1yz9c_1y8is_198:not(#\9),
223
- .awsui_series__bar--highlighted_1yz9c_1y8is_199:not(#\9) {
224
+ .awsui_series--highlighted_1yz9c_15iny_200:not(#\9),
225
+ .awsui_series__bar--highlighted_1yz9c_15iny_201:not(#\9) {
224
226
  /* used in dom query */
225
227
  }
226
228
 
227
- .awsui_series--dimmed_1yz9c_1y8is_203:not(#\9) {
229
+ .awsui_series--dimmed_1yz9c_15iny_205:not(#\9) {
228
230
  opacity: 0.3;
229
231
  }
230
232
 
231
- .awsui_series--bar_1yz9c_1y8is_94 > .awsui_series__rect_1yz9c_1y8is_94:not(#\9) {
233
+ .awsui_series--bar_1yz9c_15iny_94 > .awsui_series__rect_1yz9c_15iny_94:not(#\9) {
232
234
  stroke: var(--color-background-container-content-i8i4a0, #ffffff);
233
235
  stroke-width: 2px;
234
236
  }
235
237
 
236
- .awsui_series--threshold_1yz9c_1y8is_212:not(#\9) {
238
+ .awsui_series--threshold_1yz9c_15iny_214:not(#\9) {
237
239
  stroke-dasharray: var(--border-line-chart-dash-array-4wa4ab, 3 5);
238
240
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
239
241
  }
240
242
 
241
- .awsui_bar-group_1yz9c_1y8is_217:not(#\9) {
243
+ .awsui_bar-group_1yz9c_15iny_219:not(#\9) {
242
244
  /* used in dom query */
243
245
  }
@@ -2,24 +2,24 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "series": "awsui_series_1yz9c_1y8is_93",
6
- "series--bar": "awsui_series--bar_1yz9c_1y8is_94",
7
- "series__rect": "awsui_series__rect_1yz9c_1y8is_94",
8
- "exiting": "awsui_exiting_1yz9c_1y8is_111",
9
- "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_1yz9c_1y8is_1",
10
- "root": "awsui_root_1yz9c_1y8is_137",
11
- "filter-container": "awsui_filter-container_1yz9c_1y8is_150",
12
- "has-default-filter": "awsui_has-default-filter_1yz9c_1y8is_154",
13
- "chart-container": "awsui_chart-container_1yz9c_1y8is_158",
14
- "chart-container__vertical": "awsui_chart-container__vertical_1yz9c_1y8is_164",
15
- "chart-container__horizontal": "awsui_chart-container__horizontal_1yz9c_1y8is_170",
16
- "content": "awsui_content_1yz9c_1y8is_174",
17
- "content--reserve-filter": "awsui_content--reserve-filter_1yz9c_1y8is_181",
18
- "content--reserve-legend": "awsui_content--reserve-legend_1yz9c_1y8is_185",
19
- "series--highlighted": "awsui_series--highlighted_1yz9c_1y8is_198",
20
- "series__bar--highlighted": "awsui_series__bar--highlighted_1yz9c_1y8is_199",
21
- "series--dimmed": "awsui_series--dimmed_1yz9c_1y8is_203",
22
- "series--threshold": "awsui_series--threshold_1yz9c_1y8is_212",
23
- "bar-group": "awsui_bar-group_1yz9c_1y8is_217"
5
+ "series": "awsui_series_1yz9c_15iny_93",
6
+ "series--bar": "awsui_series--bar_1yz9c_15iny_94",
7
+ "series__rect": "awsui_series__rect_1yz9c_15iny_94",
8
+ "exiting": "awsui_exiting_1yz9c_15iny_111",
9
+ "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_1yz9c_15iny_1",
10
+ "root": "awsui_root_1yz9c_15iny_137",
11
+ "filter-container": "awsui_filter-container_1yz9c_15iny_152",
12
+ "has-default-filter": "awsui_has-default-filter_1yz9c_15iny_156",
13
+ "chart-container": "awsui_chart-container_1yz9c_15iny_160",
14
+ "chart-container__vertical": "awsui_chart-container__vertical_1yz9c_15iny_166",
15
+ "chart-container__horizontal": "awsui_chart-container__horizontal_1yz9c_15iny_172",
16
+ "content": "awsui_content_1yz9c_15iny_176",
17
+ "content--reserve-filter": "awsui_content--reserve-filter_1yz9c_15iny_183",
18
+ "content--reserve-legend": "awsui_content--reserve-legend_1yz9c_15iny_187",
19
+ "series--highlighted": "awsui_series--highlighted_1yz9c_15iny_200",
20
+ "series__bar--highlighted": "awsui_series__bar--highlighted_1yz9c_15iny_201",
21
+ "series--dimmed": "awsui_series--dimmed_1yz9c_15iny_205",
22
+ "series--threshold": "awsui_series--threshold_1yz9c_15iny_214",
23
+ "bar-group": "awsui_bar-group_1yz9c_15iny_219"
24
24
  };
25
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/modal/internal.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAAC,GAAG,0BAA0B,CAAC;AAE3G,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,OAAO,EACP,cAAc,EACd,MAAM,EACN,QAAQ,EACR,MAAM,EACN,sBAAsB,EACtB,SAAS,EACT,SAAS,EACT,iBAAwB,EACxB,GAAG,IAAI,EACR,EAAE,kBAAkB,eA2HpB"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/modal/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAAC,GAAG,0BAA0B,CAAC;AAE3G,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,OAAO,EACP,cAAc,EACd,MAAM,EACN,QAAQ,EACR,MAAM,EACN,sBAAsB,EACtB,SAAS,EACT,SAAS,EACT,iBAAwB,EACxB,GAAG,IAAI,EACR,EAAE,kBAAkB,eA8GpB"}
package/modal/internal.js CHANGED
@@ -2,7 +2,6 @@ import { __assign, __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import React, { useEffect, useRef } from 'react';
5
- import FocusLock from 'react-focus-lock';
6
5
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
7
6
  import clsx from 'clsx';
8
7
  import { getBaseProps } from '../internal/base-component';
@@ -16,13 +15,12 @@ import { useContainerBreakpoints } from '../internal/hooks/container-queries';
16
15
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
17
16
  import { disableBodyScrolling, enableBodyScrolling } from './body-scroll';
18
17
  import styles from './styles.css.js';
19
- import { getFirstFocusable } from '../internal/components/focus-lock/utils';
18
+ import FocusLock from '../internal/components/focus-lock';
20
19
  export default function InternalModal(_a) {
21
20
  var _b, _c;
22
21
  var size = _a.size, visible = _a.visible, closeAriaLabel = _a.closeAriaLabel, header = _a.header, children = _a.children, footer = _a.footer, disableContentPaddings = _a.disableContentPaddings, onDismiss = _a.onDismiss, modalRoot = _a.modalRoot, _d = _a.__internalRootRef, __internalRootRef = _d === void 0 ? null : _d, rest = __rest(_a, ["size", "visible", "closeAriaLabel", "header", "children", "footer", "disableContentPaddings", "onDismiss", "modalRoot", "__internalRootRef"]);
23
22
  var instanceUniqueId = useUniqueId();
24
23
  var headerId = "".concat(rest.id || instanceUniqueId, "-header");
25
- var focusLockRef = useRef(null);
26
24
  var lastMouseDownElementRef = useRef(null);
27
25
  var _e = useContainerBreakpoints(['xs']), breakpoint = _e[0], breakpointsRef = _e[1];
28
26
  var refObject = useRef(null);
@@ -50,11 +48,6 @@ export default function InternalModal(_a) {
50
48
  refObject.current.scrollTop = 0;
51
49
  }
52
50
  }, [visible]);
53
- // Imitate autoFocus=true when the modal opens but not when a focused element inside modal gets removed.
54
- var onFocusActivation = function () {
55
- var _a;
56
- focusLockRef.current && ((_a = getFirstFocusable(focusLockRef.current)) === null || _a === void 0 ? void 0 : _a.focus());
57
- };
58
51
  var dismiss = function (reason) { return fireNonCancelableEvent(onDismiss, { reason: reason }); };
59
52
  var onOverlayMouseDown = function (event) {
60
53
  lastMouseDownElementRef.current = event.target;
@@ -74,7 +67,7 @@ export default function InternalModal(_a) {
74
67
  };
75
68
  return (React.createElement(Portal, { container: modalRoot },
76
69
  React.createElement("div", __assign({}, baseProps, { className: clsx(styles.root, (_b = {}, _b[styles.hidden] = !visible, _b), baseProps.className, isRefresh && styles.refresh), role: "dialog", "aria-modal": true, "aria-labelledby": headerId, onMouseDown: onOverlayMouseDown, onClick: onOverlayClick, ref: mergedRef }),
77
- React.createElement(FocusLock, { disabled: !visible, autoFocus: false, returnFocus: true, className: styles['focus-lock'], ref: focusLockRef, onActivation: onFocusActivation },
70
+ React.createElement(FocusLock, { disabled: !visible, autoFocus: true, restoreFocus: true, className: styles['focus-lock'] },
78
71
  React.createElement("div", { className: clsx(styles.dialog, styles[size], styles["breakpoint-".concat(breakpoint)], isRefresh && styles.refresh), onKeyDown: escKeyHandler, tabIndex: -1 },
79
72
  React.createElement("div", { className: styles.container },
80
73
  React.createElement("div", { className: styles.header },
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/modal/internal.tsx"],"names":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,CACb,MAAM,CAAC,MAAM,EACb,MAAM,CAAC,IAAI,CAAC,EACZ,MAAM,CAAC,qBAAc,UAAU,CAAE,CAAC,EAClC,SAAS,IAAI,MAAM,CAAC,OAAO,CAC5B,EACD,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,CAAC,CAAC;oBAEZ,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS;wBAC9B,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM;4BAC3B,oBAAC,cAAc,IACb,OAAO,EAAC,IAAI,EACZ,wBAAwB,EAAE,IAAI,EAC9B,OAAO,EACL,oBAAC,cAAc,IACb,SAAS,EAAE,cAAc,EACzB,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EACpC,OAAO,EAAC,eAAe,EACvB,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,MAAM,EACjB,OAAO,EAAE,kBAAkB,GAC3B;gCAGJ,8BAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAClD,MAAM,CACF,CACQ,CACb;wBACN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,YAAI,GAAC,MAAM,CAAC,aAAa,CAAC,IAAG,sBAAsB,MAAG,IACtF,QAAQ,CACL;wBACL,MAAM,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAAG,MAAM,CAAO,CACpD,CACF,CACI,CACR,CACC,CACV,CAAC;AACJ,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 FocusLock from 'react-focus-lock';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { InternalButton } from '../button/internal';\nimport InternalHeader from '../header/internal';\nimport Portal from '../internal/components/portal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nimport { disableBodyScrolling, enableBodyScrolling } from './body-scroll';\nimport { ModalProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { SomeRequired } from '../internal/types';\nimport { getFirstFocusable } from '../internal/components/focus-lock/utils';\n\ntype InternalModalProps = SomeRequired<ModalProps, 'size' | 'closeAriaLabel'> & InternalBaseComponentProps;\n\nexport default function InternalModal({\n size,\n visible,\n closeAriaLabel,\n header,\n children,\n footer,\n disableContentPaddings,\n onDismiss,\n modalRoot,\n __internalRootRef = null,\n ...rest\n}: InternalModalProps) {\n const instanceUniqueId = useUniqueId();\n const headerId = `${rest.id || instanceUniqueId}-header`;\n const focusLockRef = useRef<HTMLDivElement>(null);\n const lastMouseDownElementRef = useRef<HTMLElement | null>(null);\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n\n const refObject = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(breakpointsRef, refObject, __internalRootRef);\n\n const isRefresh = useVisualRefresh();\n\n const baseProps = getBaseProps(rest);\n\n // enable body scroll and restore focus if unmounting while visible\n useEffect(() => {\n return () => {\n enableBodyScrolling();\n };\n }, []);\n\n // enable / disable body scroll\n useEffect(() => {\n if (visible) {\n disableBodyScrolling();\n } else {\n enableBodyScrolling();\n }\n }, [visible]);\n\n // Because we hide the element with styles (and not actually detach it from DOM), we need to scroll to top\n useEffect(() => {\n if (visible && refObject.current) {\n refObject.current.scrollTop = 0;\n }\n }, [visible]);\n\n // Imitate autoFocus=true when the modal opens but not when a focused element inside modal gets removed.\n const onFocusActivation = () => {\n focusLockRef.current && getFirstFocusable(focusLockRef.current)?.focus();\n };\n\n const dismiss = (reason: string) => fireNonCancelableEvent(onDismiss, { reason });\n\n const onOverlayMouseDown = (event: React.MouseEvent) => {\n lastMouseDownElementRef.current = event.target as HTMLElement;\n };\n const onOverlayClick = (event: React.MouseEvent) => {\n const overlay = refObject.current;\n const lastClicked = lastMouseDownElementRef.current;\n\n if (event.target === overlay && lastClicked === overlay) {\n dismiss('overlay');\n }\n };\n const onCloseButtonClick = () => dismiss('closeButton');\n const escKeyHandler = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.escape) {\n dismiss('keyboard');\n }\n };\n\n return (\n <Portal container={modalRoot}>\n <div\n {...baseProps}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className, isRefresh && styles.refresh)}\n role=\"dialog\"\n aria-modal={true}\n aria-labelledby={headerId}\n onMouseDown={onOverlayMouseDown}\n onClick={onOverlayClick}\n ref={mergedRef}\n >\n <FocusLock\n disabled={!visible}\n autoFocus={false}\n returnFocus={true}\n className={styles['focus-lock']}\n ref={focusLockRef}\n onActivation={onFocusActivation}\n >\n <div\n className={clsx(\n styles.dialog,\n styles[size],\n styles[`breakpoint-${breakpoint}`],\n isRefresh && styles.refresh\n )}\n onKeyDown={escKeyHandler}\n tabIndex={-1}\n >\n <div className={styles.container}>\n <div className={styles.header}>\n <InternalHeader\n variant=\"h2\"\n __disableActionsWrapping={true}\n actions={\n <InternalButton\n ariaLabel={closeAriaLabel}\n className={styles['dismiss-control']}\n variant=\"modal-dismiss\"\n iconName=\"close\"\n formAction=\"none\"\n onClick={onCloseButtonClick}\n />\n }\n >\n <span id={headerId} className={styles['header--text']}>\n {header}\n </span>\n </InternalHeader>\n </div>\n <div className={clsx(styles.content, { [styles['no-paddings']]: disableContentPaddings })}>\n {children}\n </div>\n {footer && <div className={styles.footer}>{footer}</div>}\n </div>\n </div>\n </FocusLock>\n </div>\n </Portal>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/modal/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,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S,EAAE,cAAc,EACzB,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EACpC,OAAO,EAAC,eAAe,EACvB,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,MAAM,EACjB,OAAO,EAAE,kBAAkB,GAC3B;gCAGJ,8BAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAClD,MAAM,CACF,CACQ,CACb;wBACN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,YAAI,GAAC,MAAM,CAAC,aAAa,CAAC,IAAG,sBAAsB,MAAG,IACtF,QAAQ,CACL;wBACL,MAAM,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAAG,MAAM,CAAO,CACpD,CACF,CACI,CACR,CACC,CACV,CAAC;AACJ,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 { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { InternalButton } from '../button/internal';\nimport InternalHeader from '../header/internal';\nimport Portal from '../internal/components/portal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nimport { disableBodyScrolling, enableBodyScrolling } from './body-scroll';\nimport { ModalProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { SomeRequired } from '../internal/types';\nimport FocusLock from '../internal/components/focus-lock';\n\ntype InternalModalProps = SomeRequired<ModalProps, 'size' | 'closeAriaLabel'> & InternalBaseComponentProps;\n\nexport default function InternalModal({\n size,\n visible,\n closeAriaLabel,\n header,\n children,\n footer,\n disableContentPaddings,\n onDismiss,\n modalRoot,\n __internalRootRef = null,\n ...rest\n}: InternalModalProps) {\n const instanceUniqueId = useUniqueId();\n const headerId = `${rest.id || instanceUniqueId}-header`;\n const lastMouseDownElementRef = useRef<HTMLElement | null>(null);\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n\n const refObject = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(breakpointsRef, refObject, __internalRootRef);\n\n const isRefresh = useVisualRefresh();\n\n const baseProps = getBaseProps(rest);\n\n // enable body scroll and restore focus if unmounting while visible\n useEffect(() => {\n return () => {\n enableBodyScrolling();\n };\n }, []);\n\n // enable / disable body scroll\n useEffect(() => {\n if (visible) {\n disableBodyScrolling();\n } else {\n enableBodyScrolling();\n }\n }, [visible]);\n\n // Because we hide the element with styles (and not actually detach it from DOM), we need to scroll to top\n useEffect(() => {\n if (visible && refObject.current) {\n refObject.current.scrollTop = 0;\n }\n }, [visible]);\n\n const dismiss = (reason: string) => fireNonCancelableEvent(onDismiss, { reason });\n\n const onOverlayMouseDown = (event: React.MouseEvent) => {\n lastMouseDownElementRef.current = event.target as HTMLElement;\n };\n const onOverlayClick = (event: React.MouseEvent) => {\n const overlay = refObject.current;\n const lastClicked = lastMouseDownElementRef.current;\n\n if (event.target === overlay && lastClicked === overlay) {\n dismiss('overlay');\n }\n };\n const onCloseButtonClick = () => dismiss('closeButton');\n const escKeyHandler = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.escape) {\n dismiss('keyboard');\n }\n };\n\n return (\n <Portal container={modalRoot}>\n <div\n {...baseProps}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className, isRefresh && styles.refresh)}\n role=\"dialog\"\n aria-modal={true}\n aria-labelledby={headerId}\n onMouseDown={onOverlayMouseDown}\n onClick={onOverlayClick}\n ref={mergedRef}\n >\n <FocusLock disabled={!visible} autoFocus={true} restoreFocus={true} className={styles['focus-lock']}>\n <div\n className={clsx(\n styles.dialog,\n styles[size],\n styles[`breakpoint-${breakpoint}`],\n isRefresh && styles.refresh\n )}\n onKeyDown={escKeyHandler}\n tabIndex={-1}\n >\n <div className={styles.container}>\n <div className={styles.header}>\n <InternalHeader\n variant=\"h2\"\n __disableActionsWrapping={true}\n actions={\n <InternalButton\n ariaLabel={closeAriaLabel}\n className={styles['dismiss-control']}\n variant=\"modal-dismiss\"\n iconName=\"close\"\n formAction=\"none\"\n onClick={onCloseButtonClick}\n />\n }\n >\n <span id={headerId} className={styles['header--text']}>\n {header}\n </span>\n </InternalHeader>\n </div>\n <div className={clsx(styles.content, { [styles['no-paddings']]: disableContentPaddings })}>\n {children}\n </div>\n {footer && <div className={styles.footer}>{footer}</div>}\n </div>\n </div>\n </FocusLock>\n </div>\n </Portal>\n );\n}\n"]}
@@ -1,27 +1,27 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "dialog": "awsui_dialog_1d2i7_nzsqa_105",
5
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_nzsqa_1",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_nzsqa_1",
7
- "refresh": "awsui_refresh_1d2i7_nzsqa_128",
8
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_nzsqa_1",
9
- "root": "awsui_root_1d2i7_nzsqa_161",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_nzsqa_1",
11
- "hidden": "awsui_hidden_1d2i7_nzsqa_224",
12
- "focus-lock": "awsui_focus-lock_1d2i7_nzsqa_228",
13
- "small": "awsui_small_1d2i7_nzsqa_246",
14
- "medium": "awsui_medium_1d2i7_nzsqa_249",
15
- "large": "awsui_large_1d2i7_nzsqa_252",
16
- "max": "awsui_max_1d2i7_nzsqa_255",
17
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_nzsqa_255",
18
- "container": "awsui_container_1d2i7_nzsqa_260",
19
- "content": "awsui_content_1d2i7_nzsqa_284",
20
- "no-paddings": "awsui_no-paddings_1d2i7_nzsqa_287",
21
- "header": "awsui_header_1d2i7_nzsqa_291",
22
- "header--text": "awsui_header--text_1d2i7_nzsqa_298",
23
- "footer": "awsui_footer_1d2i7_nzsqa_302",
24
- "dismiss-control": "awsui_dismiss-control_1d2i7_nzsqa_312",
25
- "modal-open": "awsui_modal-open_1d2i7_nzsqa_316"
4
+ "dialog": "awsui_dialog_1d2i7_1fymu_105",
5
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_1fymu_1",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1fymu_1",
7
+ "refresh": "awsui_refresh_1d2i7_1fymu_128",
8
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1fymu_1",
9
+ "root": "awsui_root_1d2i7_1fymu_161",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1fymu_1",
11
+ "hidden": "awsui_hidden_1d2i7_1fymu_226",
12
+ "focus-lock": "awsui_focus-lock_1d2i7_1fymu_230",
13
+ "small": "awsui_small_1d2i7_1fymu_248",
14
+ "medium": "awsui_medium_1d2i7_1fymu_251",
15
+ "large": "awsui_large_1d2i7_1fymu_254",
16
+ "max": "awsui_max_1d2i7_1fymu_257",
17
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1fymu_257",
18
+ "container": "awsui_container_1d2i7_1fymu_262",
19
+ "content": "awsui_content_1d2i7_1fymu_288",
20
+ "no-paddings": "awsui_no-paddings_1d2i7_1fymu_291",
21
+ "header": "awsui_header_1d2i7_1fymu_295",
22
+ "header--text": "awsui_header--text_1d2i7_1fymu_302",
23
+ "footer": "awsui_footer_1d2i7_1fymu_306",
24
+ "dismiss-control": "awsui_dismiss-control_1d2i7_1fymu_316",
25
+ "modal-open": "awsui_modal-open_1d2i7_1fymu_320"
26
26
  };
27
27
 
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- @keyframes awsui_modal-slide-up_1d2i7_nzsqa_1 {
97
+ @keyframes awsui_modal-slide-up_1d2i7_1fymu_1 {
98
98
  0% {
99
99
  transform: translate(0, 10px);
100
100
  }
@@ -102,12 +102,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  transform: translate(0, 0);
103
103
  }
104
104
  }
105
- .awsui_dialog_1d2i7_nzsqa_105:not(#\9) {
106
- animation: awsui_modal-slide-up_1d2i7_nzsqa_1 var(--motion-duration-slow-0273ow, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_nzsqa_1 var(--motion-duration-slow-0273ow, 180ms) ease-out;
105
+ .awsui_dialog_1d2i7_1fymu_105:not(#\9) {
106
+ animation: awsui_modal-slide-up_1d2i7_1fymu_1 var(--motion-duration-slow-0273ow, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_1fymu_1 var(--motion-duration-slow-0273ow, 180ms) ease-out;
107
107
  animation-delay: var(--motion-duration-fast-nk2ap0, 90ms);
108
108
  animation-fill-mode: both;
109
109
  }
110
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_nzsqa_1 {
110
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_1fymu_1 {
111
111
  from {
112
112
  opacity: 0;
113
113
  }
@@ -116,22 +116,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
116
116
  }
117
117
  }
118
118
  @media (prefers-reduced-motion: reduce) {
119
- .awsui_dialog_1d2i7_nzsqa_105:not(#\9) {
119
+ .awsui_dialog_1d2i7_1fymu_105:not(#\9) {
120
120
  animation: none;
121
121
  transition: none;
122
122
  }
123
123
  }
124
- .awsui-motion-disabled .awsui_dialog_1d2i7_nzsqa_105:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_nzsqa_105:not(#\9) {
124
+ .awsui-motion-disabled .awsui_dialog_1d2i7_1fymu_105:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_1fymu_105:not(#\9) {
125
125
  animation: none;
126
126
  transition: none;
127
127
  }
128
- .awsui_dialog_1d2i7_nzsqa_105.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
129
- animation: awsui_awsui-motion-scale-popup_1d2i7_nzsqa_1, awsui_awsui-motion-fade-in-0_1d2i7_nzsqa_1;
128
+ .awsui_dialog_1d2i7_1fymu_105.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
129
+ animation: awsui_awsui-motion-scale-popup_1d2i7_1fymu_1, awsui_awsui-motion-fade-in-0_1d2i7_1fymu_1;
130
130
  animation-duration: var(--motion-duration-refresh-only-fast-addxjd, 115ms);
131
131
  animation-timing-function: var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
132
132
  animation-fill-mode: both;
133
133
  }
134
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_nzsqa_1 {
134
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_1fymu_1 {
135
135
  from {
136
136
  opacity: 0;
137
137
  }
@@ -139,7 +139,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
139
139
  opacity: 1;
140
140
  }
141
141
  }
142
- @keyframes awsui_awsui-motion-scale-popup_1d2i7_nzsqa_1 {
142
+ @keyframes awsui_awsui-motion-scale-popup_1d2i7_1fymu_1 {
143
143
  0% {
144
144
  transform: scale(0.95);
145
145
  }
@@ -148,21 +148,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  }
149
149
  }
150
150
  @media (prefers-reduced-motion: reduce) {
151
- .awsui_dialog_1d2i7_nzsqa_105.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
151
+ .awsui_dialog_1d2i7_1fymu_105.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
152
152
  animation: none;
153
153
  transition: none;
154
154
  }
155
155
  }
156
- .awsui-motion-disabled .awsui_dialog_1d2i7_nzsqa_105.awsui_refresh_1d2i7_nzsqa_128:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_nzsqa_105.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
156
+ .awsui-motion-disabled .awsui_dialog_1d2i7_1fymu_105.awsui_refresh_1d2i7_1fymu_128:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_1fymu_105.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
157
157
  animation: none;
158
158
  transition: none;
159
159
  }
160
160
 
161
- .awsui_root_1d2i7_nzsqa_161:not(#\9) {
162
- animation: awsui_awsui-motion-fade-in_1d2i7_nzsqa_1 var(--motion-duration-extra-slow-8ks5rs, 270ms) ease-out;
161
+ .awsui_root_1d2i7_1fymu_161:not(#\9) {
162
+ animation: awsui_awsui-motion-fade-in_1d2i7_1fymu_1 var(--motion-duration-extra-slow-8ks5rs, 270ms) ease-out;
163
163
  animation-fill-mode: both;
164
164
  }
165
- @keyframes awsui_awsui-motion-fade-in_1d2i7_nzsqa_1 {
165
+ @keyframes awsui_awsui-motion-fade-in_1d2i7_1fymu_1 {
166
166
  from {
167
167
  opacity: 0.2;
168
168
  }
@@ -171,25 +171,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
171
171
  }
172
172
  }
173
173
  @media (prefers-reduced-motion: reduce) {
174
- .awsui_root_1d2i7_nzsqa_161:not(#\9) {
174
+ .awsui_root_1d2i7_1fymu_161:not(#\9) {
175
175
  animation: none;
176
176
  transition: none;
177
177
  }
178
178
  }
179
- .awsui-motion-disabled .awsui_root_1d2i7_nzsqa_161:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_nzsqa_161:not(#\9) {
179
+ .awsui-motion-disabled .awsui_root_1d2i7_1fymu_161:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_1fymu_161:not(#\9) {
180
180
  animation: none;
181
181
  transition: none;
182
182
  }
183
- .awsui_root_1d2i7_nzsqa_161.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
183
+ .awsui_root_1d2i7_1fymu_161.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
184
184
  animation-duration: var(--motion-duration-refresh-only-fast-addxjd, 115ms);
185
185
  }
186
186
  @media (prefers-reduced-motion: reduce) {
187
- .awsui_root_1d2i7_nzsqa_161.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
187
+ .awsui_root_1d2i7_1fymu_161.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
188
188
  animation: none;
189
189
  transition: none;
190
190
  }
191
191
  }
192
- .awsui-motion-disabled .awsui_root_1d2i7_nzsqa_161.awsui_refresh_1d2i7_nzsqa_128:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_nzsqa_161.awsui_refresh_1d2i7_nzsqa_128:not(#\9) {
192
+ .awsui-motion-disabled .awsui_root_1d2i7_1fymu_161.awsui_refresh_1d2i7_1fymu_128:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_1fymu_161.awsui_refresh_1d2i7_1fymu_128:not(#\9) {
193
193
  animation: none;
194
194
  transition: none;
195
195
  }
@@ -198,7 +198,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
199
199
  SPDX-License-Identifier: Apache-2.0
200
200
  */
201
- .awsui_root_1d2i7_nzsqa_161:not(#\9) {
201
+ .awsui_root_1d2i7_1fymu_161:not(#\9) {
202
202
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
203
203
  border-collapse: separate;
204
204
  border-spacing: 0;
@@ -233,6 +233,8 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
233
233
  color: var(--color-text-body-default-ajf1h5, #000716);
234
234
  font-weight: 400;
235
235
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
236
+ -webkit-font-smoothing: auto;
237
+ -moz-osx-font-smoothing: auto;
236
238
  background-color: var(--color-background-modal-overlay-17dapf, rgba(35, 47, 62, 0.7));
237
239
  display: flex;
238
240
  align-items: center;
@@ -247,11 +249,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
247
249
  overflow: auto;
248
250
  cursor: pointer;
249
251
  }
250
- .awsui_root_1d2i7_nzsqa_161.awsui_hidden_1d2i7_nzsqa_224:not(#\9) {
252
+ .awsui_root_1d2i7_1fymu_161.awsui_hidden_1d2i7_1fymu_226:not(#\9) {
251
253
  display: none;
252
254
  }
253
255
 
254
- .awsui_focus-lock_1d2i7_nzsqa_228:not(#\9) {
256
+ .awsui_focus-lock_1d2i7_1fymu_230:not(#\9) {
255
257
  align-self: flex-start;
256
258
  margin: auto;
257
259
  padding: var(--space-s-hv8c1d, 12px) 0;
@@ -259,7 +261,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
259
261
  pointer-events: none;
260
262
  }
261
263
 
262
- .awsui_dialog_1d2i7_nzsqa_105:not(#\9) {
264
+ .awsui_dialog_1d2i7_1fymu_105:not(#\9) {
263
265
  position: static;
264
266
  top: 0;
265
267
  transform: translate(0, 0);
@@ -269,21 +271,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
269
271
  z-index: 5000;
270
272
  pointer-events: all;
271
273
  }
272
- .awsui_dialog_1d2i7_nzsqa_105.awsui_small_1d2i7_nzsqa_246:not(#\9) {
274
+ .awsui_dialog_1d2i7_1fymu_105.awsui_small_1d2i7_1fymu_248:not(#\9) {
273
275
  max-width: 320px;
274
276
  }
275
- .awsui_dialog_1d2i7_nzsqa_105.awsui_medium_1d2i7_nzsqa_249:not(#\9) {
277
+ .awsui_dialog_1d2i7_1fymu_105.awsui_medium_1d2i7_1fymu_251:not(#\9) {
276
278
  max-width: 600px;
277
279
  }
278
- .awsui_dialog_1d2i7_nzsqa_105.awsui_large_1d2i7_nzsqa_252:not(#\9) {
280
+ .awsui_dialog_1d2i7_1fymu_105.awsui_large_1d2i7_1fymu_254:not(#\9) {
279
281
  max-width: 820px;
280
282
  }
281
- .awsui_dialog_1d2i7_nzsqa_105.awsui_max_1d2i7_nzsqa_255.awsui_breakpoint-xs_1d2i7_nzsqa_255:not(#\9) {
283
+ .awsui_dialog_1d2i7_1fymu_105.awsui_max_1d2i7_1fymu_257.awsui_breakpoint-xs_1d2i7_1fymu_257:not(#\9) {
282
284
  max-width: calc(100vw - (2 * 4 * 10px + var(--space-xxxl-bo9z7f, 40px)));
283
285
  margin: auto;
284
286
  }
285
287
 
286
- .awsui_container_1d2i7_nzsqa_260:not(#\9) {
288
+ .awsui_container_1d2i7_1fymu_262:not(#\9) {
287
289
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
288
290
  border-collapse: separate;
289
291
  border-spacing: 0;
@@ -318,6 +320,8 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
318
320
  color: var(--color-text-body-default-ajf1h5, #000716);
319
321
  font-weight: 400;
320
322
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
323
+ -webkit-font-smoothing: auto;
324
+ -moz-osx-font-smoothing: auto;
321
325
  display: block;
322
326
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
323
327
  box-shadow: var(--shadow-container-7nblnj, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
@@ -328,44 +332,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
328
332
  word-wrap: break-word;
329
333
  }
330
334
  @media screen and (-ms-high-contrast: active) {
331
- .awsui_container_1d2i7_nzsqa_260:not(#\9) {
335
+ .awsui_container_1d2i7_1fymu_262:not(#\9) {
332
336
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
333
337
  }
334
338
  }
335
339
 
336
- .awsui_content_1d2i7_nzsqa_284:not(#\9) {
340
+ .awsui_content_1d2i7_1fymu_288:not(#\9) {
337
341
  padding: var(--space-container-content-top-fsd8nr, 0px) var(--space-modal-horizontal-ah0xld, 20px) var(--space-modal-content-bottom-cecclv, 16px);
338
342
  }
339
- .awsui_content_1d2i7_nzsqa_284.awsui_no-paddings_1d2i7_nzsqa_287:not(#\9) {
343
+ .awsui_content_1d2i7_1fymu_288.awsui_no-paddings_1d2i7_1fymu_291:not(#\9) {
340
344
  padding: 0;
341
345
  }
342
346
 
343
- .awsui_header_1d2i7_nzsqa_291:not(#\9) {
347
+ .awsui_header_1d2i7_1fymu_295:not(#\9) {
344
348
  padding: var(--space-s-hv8c1d, 12px) var(--space-modal-horizontal-ah0xld, 20px);
345
349
  background-color: var(--color-background-container-header-4flbq5, #ffffff);
346
350
  border-bottom: 1px solid var(--color-border-container-divider-4ade7z, transparent);
347
351
  border-radius: var(--border-radius-container-gh9ysk, 16px) var(--border-radius-container-gh9ysk, 16px) 0 0;
348
352
  }
349
353
 
350
- .awsui_header--text_1d2i7_nzsqa_298:not(#\9) {
354
+ .awsui_header--text_1d2i7_1fymu_302:not(#\9) {
351
355
  /* used in test-utils */
352
356
  }
353
357
 
354
- .awsui_footer_1d2i7_nzsqa_302:not(#\9) {
358
+ .awsui_footer_1d2i7_1fymu_306:not(#\9) {
355
359
  border-top: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
356
360
  padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-container-horizontal-tlw03i, 20px);
357
361
  }
358
- .awsui_footer_1d2i7_nzsqa_302:not(#\9):after {
362
+ .awsui_footer_1d2i7_1fymu_306:not(#\9):after {
359
363
  content: "";
360
364
  display: table;
361
365
  clear: both;
362
366
  }
363
367
 
364
- .awsui_dismiss-control_1d2i7_nzsqa_312:not(#\9) {
368
+ .awsui_dismiss-control_1d2i7_1fymu_316:not(#\9) {
365
369
  /* used in test-utils */
366
370
  }
367
371
 
368
- .awsui_modal-open_1d2i7_nzsqa_316:not(#\9) {
372
+ .awsui_modal-open_1d2i7_1fymu_320:not(#\9) {
369
373
  overflow: hidden;
370
374
  /*
371
375
  * When padding-right is added to account for scrollbar being turned