@cloudscape-design/components 3.0.360 → 3.0.362

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 (194) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +30 -30
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/index.d.ts.map +1 -1
  5. package/app-layout/index.js +4 -5
  6. package/app-layout/index.js.map +1 -1
  7. package/app-layout/utils/use-content-width.js +1 -1
  8. package/app-layout/utils/use-content-width.js.map +1 -1
  9. package/app-layout/utils/use-observed-element.js +1 -1
  10. package/app-layout/utils/use-observed-element.js.map +1 -1
  11. package/app-layout/visual-refresh/styles.css.js +69 -69
  12. package/app-layout/visual-refresh/styles.scoped.css +169 -169
  13. package/app-layout/visual-refresh/styles.selectors.js +69 -69
  14. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  15. package/area-chart/model/use-chart-model.js +2 -2
  16. package/area-chart/model/use-chart-model.js.map +1 -1
  17. package/area-chart/styles.css.js +6 -6
  18. package/area-chart/styles.scoped.css +10 -10
  19. package/area-chart/styles.selectors.js +6 -6
  20. package/attribute-editor/styles.css.js +14 -14
  21. package/attribute-editor/styles.scoped.css +25 -25
  22. package/attribute-editor/styles.selectors.js +14 -14
  23. package/button-dropdown/category-elements/styles.css.js +13 -13
  24. package/button-dropdown/category-elements/styles.scoped.css +27 -27
  25. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  26. package/button-dropdown/item-element/styles.css.js +15 -15
  27. package/button-dropdown/item-element/styles.scoped.css +19 -19
  28. package/button-dropdown/item-element/styles.selectors.js +15 -15
  29. package/button-dropdown/styles.css.js +14 -14
  30. package/button-dropdown/styles.scoped.css +22 -22
  31. package/button-dropdown/styles.selectors.js +14 -14
  32. package/code-editor/listeners.js +2 -2
  33. package/code-editor/listeners.js.map +1 -1
  34. package/code-editor/resizable-box/index.js +2 -2
  35. package/code-editor/resizable-box/index.js.map +1 -1
  36. package/code-editor/styles.css.js +32 -32
  37. package/code-editor/styles.scoped.css +130 -130
  38. package/code-editor/styles.selectors.js +32 -32
  39. package/collection-preferences/content-display/styles.css.js +11 -11
  40. package/collection-preferences/content-display/styles.scoped.css +18 -18
  41. package/collection-preferences/content-display/styles.selectors.js +11 -11
  42. package/collection-preferences/styles.css.js +37 -37
  43. package/collection-preferences/styles.scoped.css +47 -47
  44. package/collection-preferences/styles.selectors.js +37 -37
  45. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  46. package/column-layout/flexible-column-layout/styles.scoped.css +5 -5
  47. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  48. package/column-layout/styles.css.js +13 -13
  49. package/column-layout/styles.scoped.css +46 -46
  50. package/column-layout/styles.selectors.js +13 -13
  51. package/container/styles.css.js +28 -28
  52. package/container/styles.scoped.css +55 -55
  53. package/container/styles.selectors.js +28 -28
  54. package/date-range-picker/styles.css.js +38 -38
  55. package/date-range-picker/styles.scoped.css +47 -47
  56. package/date-range-picker/styles.selectors.js +38 -38
  57. package/expandable-section/styles.css.js +29 -29
  58. package/expandable-section/styles.scoped.css +66 -66
  59. package/expandable-section/styles.selectors.js +29 -29
  60. package/form-field/styles.css.js +19 -19
  61. package/form-field/styles.scoped.css +30 -30
  62. package/form-field/styles.selectors.js +19 -19
  63. package/help-panel/styles.css.js +4 -4
  64. package/help-panel/styles.scoped.css +66 -66
  65. package/help-panel/styles.selectors.js +4 -4
  66. package/internal/base-component/styles.scoped.css +81 -57
  67. package/internal/components/dark-ribbon/index.js +2 -2
  68. package/internal/components/dark-ribbon/index.js.map +1 -1
  69. package/internal/components/dropdown-footer/styles.css.js +3 -3
  70. package/internal/components/dropdown-footer/styles.scoped.css +4 -4
  71. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  72. package/internal/components/options-list/index.d.ts.map +1 -1
  73. package/internal/components/options-list/index.js +2 -2
  74. package/internal/components/options-list/index.js.map +1 -1
  75. package/internal/components/selectable-item/styles.css.js +16 -16
  76. package/internal/components/selectable-item/styles.scoped.css +31 -31
  77. package/internal/components/selectable-item/styles.selectors.js +16 -16
  78. package/internal/components/token-list/styles.css.js +9 -9
  79. package/internal/components/token-list/styles.scoped.css +22 -22
  80. package/internal/components/token-list/styles.selectors.js +9 -9
  81. package/internal/environment.js +1 -1
  82. package/internal/environment.json +1 -1
  83. package/internal/generated/styles/tokens.js +1 -1
  84. package/internal/generated/theming/index.cjs +25 -23
  85. package/internal/generated/theming/index.js +25 -23
  86. package/internal/hooks/container-queries/index.d.ts +0 -1
  87. package/internal/hooks/container-queries/index.d.ts.map +1 -1
  88. package/internal/hooks/container-queries/index.js +0 -1
  89. package/internal/hooks/container-queries/index.js.map +1 -1
  90. package/internal/hooks/container-queries/use-height-measure.js +1 -1
  91. package/internal/hooks/container-queries/use-height-measure.js.map +1 -1
  92. package/internal/hooks/use-dynamic-overlap/index.js +1 -1
  93. package/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  94. package/internal/hooks/use-mobile/index.js +1 -1
  95. package/internal/hooks/use-mobile/index.js.map +1 -1
  96. package/internal/hooks/use-mouse-down-target.js +1 -1
  97. package/internal/hooks/use-mouse-down-target.js.map +1 -1
  98. package/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  99. package/internal/hooks/use-mutation-observer/index.js +2 -3
  100. package/internal/hooks/use-mutation-observer/index.js.map +1 -1
  101. package/internal/manifest.json +1 -1
  102. package/modal/styles.css.js +23 -23
  103. package/modal/styles.scoped.css +39 -39
  104. package/modal/styles.selectors.js +23 -23
  105. package/package.json +1 -1
  106. package/pie-chart/labels.js +1 -1
  107. package/pie-chart/labels.js.map +1 -1
  108. package/pie-chart/styles.css.js +27 -27
  109. package/pie-chart/styles.scoped.css +43 -43
  110. package/pie-chart/styles.selectors.js +27 -27
  111. package/popover/container.d.ts.map +1 -1
  112. package/popover/container.js +1 -1
  113. package/popover/container.js.map +1 -1
  114. package/property-filter/styles.css.js +29 -29
  115. package/property-filter/styles.scoped.css +33 -33
  116. package/property-filter/styles.selectors.js +29 -29
  117. package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
  118. package/s3-resource-selector/s3-in-context/styles.scoped.css +10 -10
  119. package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
  120. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  121. package/s3-resource-selector/s3-in-context/use-versions-fetch.js +2 -2
  122. package/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  123. package/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  124. package/s3-resource-selector/s3-modal/basic-table.js +2 -2
  125. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  126. package/side-navigation/styles.css.js +28 -28
  127. package/side-navigation/styles.scoped.css +43 -43
  128. package/side-navigation/styles.selectors.js +28 -28
  129. package/split-panel/bottom.js +1 -1
  130. package/split-panel/bottom.js.map +1 -1
  131. package/split-panel/styles.css.js +56 -56
  132. package/split-panel/styles.scoped.css +85 -85
  133. package/split-panel/styles.selectors.js +56 -56
  134. package/table/body-cell/click-away.js +2 -2
  135. package/table/body-cell/click-away.js.map +1 -1
  136. package/table/body-cell/styles.css.js +28 -28
  137. package/table/body-cell/styles.scoped.css +76 -76
  138. package/table/body-cell/styles.selectors.js +28 -28
  139. package/table/header-cell/styles.css.js +24 -24
  140. package/table/header-cell/styles.scoped.css +43 -43
  141. package/table/header-cell/styles.selectors.js +24 -24
  142. package/table/resizer/index.js +3 -3
  143. package/table/resizer/index.js.map +1 -1
  144. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  145. package/table/sticky-columns/use-sticky-columns.js +2 -3
  146. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  147. package/table/sticky-scrollbar/styles.css.js +6 -6
  148. package/table/sticky-scrollbar/styles.scoped.css +9 -9
  149. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  150. package/table/styles.css.js +34 -34
  151. package/table/styles.scoped.css +42 -42
  152. package/table/styles.selectors.js +34 -34
  153. package/table/use-sticky-header.js +1 -1
  154. package/table/use-sticky-header.js.map +1 -1
  155. package/tabs/styles.css.js +21 -21
  156. package/tabs/styles.scoped.css +46 -46
  157. package/tabs/styles.selectors.js +21 -21
  158. package/tag-editor/index.d.ts.map +1 -1
  159. package/tag-editor/index.js +6 -6
  160. package/tag-editor/index.js.map +1 -1
  161. package/tiles/styles.css.js +29 -29
  162. package/tiles/styles.scoped.css +73 -73
  163. package/tiles/styles.selectors.js +29 -29
  164. package/top-navigation/1.0-beta/styles.css.js +25 -25
  165. package/top-navigation/1.0-beta/styles.scoped.css +43 -43
  166. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  167. package/top-navigation/styles.css.js +47 -47
  168. package/top-navigation/styles.scoped.css +73 -73
  169. package/top-navigation/styles.selectors.js +47 -47
  170. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  171. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
  172. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  173. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  174. package/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
  175. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  176. package/wizard/styles.css.js +31 -31
  177. package/wizard/styles.scoped.css +63 -63
  178. package/wizard/styles.selectors.js +31 -31
  179. package/internal/hooks/container-queries/use-resize-observer.d.ts +0 -21
  180. package/internal/hooks/container-queries/use-resize-observer.d.ts.map +0 -1
  181. package/internal/hooks/container-queries/use-resize-observer.js +0 -54
  182. package/internal/hooks/container-queries/use-resize-observer.js.map +0 -1
  183. package/internal/hooks/container-queries/utils.d.ts +0 -4
  184. package/internal/hooks/container-queries/utils.d.ts.map +0 -1
  185. package/internal/hooks/container-queries/utils.js +0 -10
  186. package/internal/hooks/container-queries/utils.js.map +0 -1
  187. package/internal/hooks/use-singleton-handler/index.d.ts +0 -11
  188. package/internal/hooks/use-singleton-handler/index.d.ts.map +0 -1
  189. package/internal/hooks/use-singleton-handler/index.js +0 -45
  190. package/internal/hooks/use-singleton-handler/index.js.map +0 -1
  191. package/internal/hooks/use-stable-event-handler/index.d.ts +0 -10
  192. package/internal/hooks/use-stable-event-handler/index.d.ts.map +0 -1
  193. package/internal/hooks/use-stable-event-handler/index.js +0 -19
  194. package/internal/hooks/use-stable-event-handler/index.js.map +0 -1
@@ -94,57 +94,57 @@ 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
- .awsui_segment__path_1edmh_1pq09_97:not(#\9) {
97
+ .awsui_segment__path_1edmh_1iq5s_97:not(#\9) {
98
98
  transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
99
99
  }
100
100
  @media (prefers-reduced-motion: reduce) {
101
- .awsui_segment__path_1edmh_1pq09_97:not(#\9) {
101
+ .awsui_segment__path_1edmh_1iq5s_97:not(#\9) {
102
102
  animation: none;
103
103
  transition: none;
104
104
  }
105
105
  }
106
- .awsui-motion-disabled .awsui_segment__path_1edmh_1pq09_97:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_1pq09_97:not(#\9) {
106
+ .awsui-motion-disabled .awsui_segment__path_1edmh_1iq5s_97:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_1iq5s_97:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
110
110
 
111
- .awsui_segment_1edmh_1pq09_97:not(#\9) {
111
+ .awsui_segment_1edmh_1iq5s_97:not(#\9) {
112
112
  transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
113
113
  }
114
114
  @media (prefers-reduced-motion: reduce) {
115
- .awsui_segment_1edmh_1pq09_97:not(#\9) {
115
+ .awsui_segment_1edmh_1iq5s_97:not(#\9) {
116
116
  animation: none;
117
117
  transition: none;
118
118
  }
119
119
  }
120
- .awsui-motion-disabled .awsui_segment_1edmh_1pq09_97:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1pq09_97:not(#\9) {
120
+ .awsui-motion-disabled .awsui_segment_1edmh_1iq5s_97:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1iq5s_97:not(#\9) {
121
121
  animation: none;
122
122
  transition: none;
123
123
  }
124
- .awsui_segment_1edmh_1pq09_97 > .awsui_segment__hover_1edmh_1pq09_124:not(#\9) {
124
+ .awsui_segment_1edmh_1iq5s_97 > .awsui_segment__hover_1edmh_1iq5s_124:not(#\9) {
125
125
  transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
126
126
  }
127
127
  @media (prefers-reduced-motion: reduce) {
128
- .awsui_segment_1edmh_1pq09_97 > .awsui_segment__hover_1edmh_1pq09_124:not(#\9) {
128
+ .awsui_segment_1edmh_1iq5s_97 > .awsui_segment__hover_1edmh_1iq5s_124:not(#\9) {
129
129
  animation: none;
130
130
  transition: none;
131
131
  }
132
132
  }
133
- .awsui-motion-disabled .awsui_segment_1edmh_1pq09_97 > .awsui_segment__hover_1edmh_1pq09_124:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1pq09_97 > .awsui_segment__hover_1edmh_1pq09_124:not(#\9) {
133
+ .awsui-motion-disabled .awsui_segment_1edmh_1iq5s_97 > .awsui_segment__hover_1edmh_1iq5s_124:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1iq5s_97 > .awsui_segment__hover_1edmh_1iq5s_124:not(#\9) {
134
134
  animation: none;
135
135
  transition: none;
136
136
  }
137
137
 
138
- .awsui_label_1edmh_1pq09_138:not(#\9) {
138
+ .awsui_label_1edmh_1iq5s_138:not(#\9) {
139
139
  transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
140
140
  }
141
141
  @media (prefers-reduced-motion: reduce) {
142
- .awsui_label_1edmh_1pq09_138:not(#\9) {
142
+ .awsui_label_1edmh_1iq5s_138:not(#\9) {
143
143
  animation: none;
144
144
  transition: none;
145
145
  }
146
146
  }
147
- .awsui-motion-disabled .awsui_label_1edmh_1pq09_138:not(#\9), .awsui-mode-entering .awsui_label_1edmh_1pq09_138:not(#\9) {
147
+ .awsui-motion-disabled .awsui_label_1edmh_1iq5s_138:not(#\9), .awsui-mode-entering .awsui_label_1edmh_1iq5s_138:not(#\9) {
148
148
  animation: none;
149
149
  transition: none;
150
150
  }
@@ -153,50 +153,50 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
153
153
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
154
154
  SPDX-License-Identifier: Apache-2.0
155
155
  */
156
- .awsui_root_1edmh_1pq09_156:not(#\9) {
156
+ .awsui_root_1edmh_1iq5s_156:not(#\9) {
157
157
  /* used in test-utils */
158
158
  }
159
159
 
160
- .awsui_content_1edmh_1pq09_160.awsui_content--small_1edmh_1pq09_160:not(#\9) {
160
+ .awsui_content_1edmh_1iq5s_160.awsui_content--small_1edmh_1iq5s_160:not(#\9) {
161
161
  min-height: calc(2 * (50px + var(--space-xs-zb16t3, 8px) + calc(2 * var(--font-body-m-line-height-5wv9x1, 20px))));
162
162
  }
163
- .awsui_content_1edmh_1pq09_160.awsui_content--small_1edmh_1pq09_160.awsui_content--without-labels_1edmh_1pq09_163:not(#\9) {
163
+ .awsui_content_1edmh_1iq5s_160.awsui_content--small_1edmh_1iq5s_160.awsui_content--without-labels_1edmh_1iq5s_163:not(#\9) {
164
164
  min-height: calc(2 * (50px + var(--space-xs-zb16t3, 8px)));
165
165
  }
166
- .awsui_content_1edmh_1pq09_160.awsui_content--medium_1edmh_1pq09_166:not(#\9) {
166
+ .awsui_content_1edmh_1iq5s_160.awsui_content--medium_1edmh_1iq5s_166:not(#\9) {
167
167
  min-height: calc(2 * (100px + var(--space-s-34lx8l, 12px) + calc(2 * var(--font-body-m-line-height-5wv9x1, 20px))));
168
168
  }
169
- .awsui_content_1edmh_1pq09_160.awsui_content--medium_1edmh_1pq09_166.awsui_content--without-labels_1edmh_1pq09_163:not(#\9) {
169
+ .awsui_content_1edmh_1iq5s_160.awsui_content--medium_1edmh_1iq5s_166.awsui_content--without-labels_1edmh_1iq5s_163:not(#\9) {
170
170
  min-height: calc(2 * (100px + var(--space-s-34lx8l, 12px)));
171
171
  }
172
- .awsui_content_1edmh_1pq09_160.awsui_content--large_1edmh_1pq09_172:not(#\9) {
172
+ .awsui_content_1edmh_1iq5s_160.awsui_content--large_1edmh_1iq5s_172:not(#\9) {
173
173
  min-height: calc(2 * (140px + var(--space-s-34lx8l, 12px) + calc(2 * var(--font-body-m-line-height-5wv9x1, 20px))));
174
174
  }
175
- .awsui_content_1edmh_1pq09_160.awsui_content--large_1edmh_1pq09_172.awsui_content--without-labels_1edmh_1pq09_163:not(#\9) {
175
+ .awsui_content_1edmh_1iq5s_160.awsui_content--large_1edmh_1iq5s_172.awsui_content--without-labels_1edmh_1iq5s_163:not(#\9) {
176
176
  min-height: calc(2 * (140px + var(--space-s-34lx8l, 12px)));
177
177
  }
178
178
 
179
- .awsui_content--fit-height_1edmh_1pq09_179:not(#\9) {
179
+ .awsui_content--fit-height_1edmh_1iq5s_179:not(#\9) {
180
180
  flex: 1;
181
181
  }
182
182
 
183
- .awsui_status-container_1edmh_1pq09_183:not(#\9) {
183
+ .awsui_status-container_1edmh_1iq5s_183:not(#\9) {
184
184
  /* used in test utils */
185
185
  }
186
186
 
187
- .awsui_chart-container_1edmh_1pq09_187:not(#\9) {
187
+ .awsui_chart-container_1edmh_1iq5s_187:not(#\9) {
188
188
  display: flex;
189
189
  flex: 1;
190
190
  }
191
- .awsui_chart-container--fit-height_1edmh_1pq09_191:not(#\9) {
191
+ .awsui_chart-container--fit-height_1edmh_1iq5s_191:not(#\9) {
192
192
  height: 100%;
193
193
  min-height: inherit;
194
194
  }
195
195
 
196
- .awsui_chart-container-chart-plot_1edmh_1pq09_196:not(#\9) {
196
+ .awsui_chart-container-chart-plot_1edmh_1iq5s_196:not(#\9) {
197
197
  display: contents;
198
198
  }
199
- .awsui_chart-container-chart-plot--fit-height_1edmh_1pq09_199:not(#\9) {
199
+ .awsui_chart-container-chart-plot--fit-height_1edmh_1iq5s_199:not(#\9) {
200
200
  display: block;
201
201
  position: absolute;
202
202
  top: 0;
@@ -205,7 +205,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
205
205
  left: 0;
206
206
  }
207
207
 
208
- .awsui_inner-content_1edmh_1pq09_208:not(#\9) {
208
+ .awsui_inner-content_1edmh_1iq5s_208:not(#\9) {
209
209
  display: flex;
210
210
  position: absolute;
211
211
  flex-direction: column;
@@ -219,53 +219,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
219
219
  pointer-events: none;
220
220
  }
221
221
 
222
- .awsui_segment__highlight_1edmh_1pq09_222:not(#\9) {
222
+ .awsui_segment__highlight_1edmh_1iq5s_222:not(#\9) {
223
223
  stroke: none;
224
224
  opacity: 0;
225
225
  }
226
226
 
227
- .awsui_segment_1edmh_1pq09_97:not(#\9) {
227
+ .awsui_segment_1edmh_1iq5s_97:not(#\9) {
228
228
  stroke: var(--color-background-container-content-4un1ap, #ffffff);
229
229
  stroke-width: 2px;
230
230
  stroke-linejoin: round;
231
231
  opacity: 1;
232
232
  cursor: pointer;
233
233
  }
234
- .awsui_segment_1edmh_1pq09_97:not(#\9):focus {
234
+ .awsui_segment_1edmh_1iq5s_97:not(#\9):focus {
235
235
  outline: none;
236
236
  }
237
- .awsui_segment_1edmh_1pq09_97.awsui_segment--dimmed_1edmh_1pq09_237:not(#\9) {
237
+ .awsui_segment_1edmh_1iq5s_97.awsui_segment--dimmed_1edmh_1iq5s_237:not(#\9) {
238
238
  opacity: 0.35;
239
239
  }
240
- .awsui_segment_1edmh_1pq09_97.awsui_segment--highlighted_1edmh_1pq09_240 > .awsui_segment__highlight_1edmh_1pq09_222:not(#\9), .awsui_segment_1edmh_1pq09_97:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_1pq09_237) > .awsui_segment__highlight_1edmh_1pq09_222 {
240
+ .awsui_segment_1edmh_1iq5s_97.awsui_segment--highlighted_1edmh_1iq5s_240 > .awsui_segment__highlight_1edmh_1iq5s_222:not(#\9), .awsui_segment_1edmh_1iq5s_97:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_1iq5s_237) > .awsui_segment__highlight_1edmh_1iq5s_222 {
241
241
  opacity: 1;
242
242
  }
243
243
 
244
- .awsui_label_1edmh_1pq09_138:not(#\9) {
244
+ .awsui_label_1edmh_1iq5s_138:not(#\9) {
245
245
  color: var(--color-text-heading-default-rtslvy, #000716);
246
246
  opacity: 1;
247
247
  /* stylelint-disable-next-line selector-max-type */
248
248
  /* stylelint-disable-next-line selector-max-type */
249
249
  }
250
- .awsui_label_1edmh_1pq09_138 > line:not(#\9) {
250
+ .awsui_label_1edmh_1iq5s_138 > line:not(#\9) {
251
251
  stroke: var(--color-stroke-chart-line-ppq5nh, #7d8998);
252
- stroke-width: var(--border-divider-section-width-4ax5o2, 2px);
252
+ stroke-width: var(--border-divider-section-width-8a5uu9, 2px);
253
253
  }
254
- .awsui_label_1edmh_1pq09_138 > div:not(#\9) {
254
+ .awsui_label_1edmh_1iq5s_138 > div:not(#\9) {
255
255
  margin-top: -0.75em;
256
256
  }
257
- .awsui_label_1edmh_1pq09_138.awsui_label--dimmed_1edmh_1pq09_257:not(#\9) {
257
+ .awsui_label_1edmh_1iq5s_138.awsui_label--dimmed_1edmh_1iq5s_257:not(#\9) {
258
258
  opacity: 0.35;
259
259
  }
260
- .awsui_label_1edmh_1pq09_138.awsui_label--align-right_1edmh_1pq09_260:not(#\9) {
260
+ .awsui_label_1edmh_1iq5s_138.awsui_label--align-right_1edmh_1iq5s_260:not(#\9) {
261
261
  /* stylelint-disable-next-line selector-max-type */
262
262
  }
263
- .awsui_label_1edmh_1pq09_138.awsui_label--align-right_1edmh_1pq09_260 > div:not(#\9) {
263
+ .awsui_label_1edmh_1iq5s_138.awsui_label--align-right_1edmh_1iq5s_260 > div:not(#\9) {
264
264
  text-align: right;
265
265
  }
266
266
 
267
267
  /* stylelint-disable-next-line selector-max-type */
268
- .awsui_label-text_1edmh_1pq09_268 > text:not(#\9) {
268
+ .awsui_label-text_1edmh_1iq5s_268 > text:not(#\9) {
269
269
  font-size: var(--font-body-m-size-dhtyxm, 14px);
270
270
  line-height: var(--font-body-m-line-height-5wv9x1, 20px);
271
271
  font-weight: var(--font-display-label-weight-815ja9, 700);
@@ -273,22 +273,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
273
273
  dominant-baseline: middle;
274
274
  }
275
275
 
276
- text.awsui_label__description_1edmh_1pq09_276:not(#\9) {
276
+ text.awsui_label__description_1edmh_1iq5s_276:not(#\9) {
277
277
  font-size: var(--font-chart-detail-size-1n389u, 12px);
278
278
  font-weight: 400;
279
279
  color: var(--color-text-group-label-zuh0h0, #414d5c);
280
280
  fill: var(--color-text-group-label-zuh0h0, #414d5c);
281
281
  }
282
282
 
283
- .awsui_label-line_1edmh_1pq09_283:not(#\9) {
283
+ .awsui_label-line_1edmh_1iq5s_283:not(#\9) {
284
284
  /* used in component code */
285
285
  }
286
286
 
287
- .awsui_label--highlighted_1edmh_1pq09_287:not(#\9) {
287
+ .awsui_label--highlighted_1edmh_1iq5s_287:not(#\9) {
288
288
  /* used in test-utils */
289
289
  }
290
290
 
291
- .awsui_popover-header_1edmh_1pq09_291:not(#\9) {
291
+ .awsui_popover-header_1edmh_1iq5s_291:not(#\9) {
292
292
  display: inline-flex;
293
293
  align-items: flex-start;
294
294
  }
@@ -2,32 +2,32 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "segment__path": "awsui_segment__path_1edmh_1pq09_97",
6
- "segment": "awsui_segment_1edmh_1pq09_97",
7
- "segment__hover": "awsui_segment__hover_1edmh_1pq09_124",
8
- "label": "awsui_label_1edmh_1pq09_138",
9
- "root": "awsui_root_1edmh_1pq09_156",
10
- "content": "awsui_content_1edmh_1pq09_160",
11
- "content--small": "awsui_content--small_1edmh_1pq09_160",
12
- "content--without-labels": "awsui_content--without-labels_1edmh_1pq09_163",
13
- "content--medium": "awsui_content--medium_1edmh_1pq09_166",
14
- "content--large": "awsui_content--large_1edmh_1pq09_172",
15
- "content--fit-height": "awsui_content--fit-height_1edmh_1pq09_179",
16
- "status-container": "awsui_status-container_1edmh_1pq09_183",
17
- "chart-container": "awsui_chart-container_1edmh_1pq09_187",
18
- "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1pq09_191",
19
- "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1pq09_196",
20
- "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1pq09_199",
21
- "inner-content": "awsui_inner-content_1edmh_1pq09_208",
22
- "segment__highlight": "awsui_segment__highlight_1edmh_1pq09_222",
23
- "segment--dimmed": "awsui_segment--dimmed_1edmh_1pq09_237",
24
- "segment--highlighted": "awsui_segment--highlighted_1edmh_1pq09_240",
25
- "label--dimmed": "awsui_label--dimmed_1edmh_1pq09_257",
26
- "label--align-right": "awsui_label--align-right_1edmh_1pq09_260",
27
- "label-text": "awsui_label-text_1edmh_1pq09_268",
28
- "label__description": "awsui_label__description_1edmh_1pq09_276",
29
- "label-line": "awsui_label-line_1edmh_1pq09_283",
30
- "label--highlighted": "awsui_label--highlighted_1edmh_1pq09_287",
31
- "popover-header": "awsui_popover-header_1edmh_1pq09_291"
5
+ "segment__path": "awsui_segment__path_1edmh_1iq5s_97",
6
+ "segment": "awsui_segment_1edmh_1iq5s_97",
7
+ "segment__hover": "awsui_segment__hover_1edmh_1iq5s_124",
8
+ "label": "awsui_label_1edmh_1iq5s_138",
9
+ "root": "awsui_root_1edmh_1iq5s_156",
10
+ "content": "awsui_content_1edmh_1iq5s_160",
11
+ "content--small": "awsui_content--small_1edmh_1iq5s_160",
12
+ "content--without-labels": "awsui_content--without-labels_1edmh_1iq5s_163",
13
+ "content--medium": "awsui_content--medium_1edmh_1iq5s_166",
14
+ "content--large": "awsui_content--large_1edmh_1iq5s_172",
15
+ "content--fit-height": "awsui_content--fit-height_1edmh_1iq5s_179",
16
+ "status-container": "awsui_status-container_1edmh_1iq5s_183",
17
+ "chart-container": "awsui_chart-container_1edmh_1iq5s_187",
18
+ "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1iq5s_191",
19
+ "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1iq5s_196",
20
+ "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1iq5s_199",
21
+ "inner-content": "awsui_inner-content_1edmh_1iq5s_208",
22
+ "segment__highlight": "awsui_segment__highlight_1edmh_1iq5s_222",
23
+ "segment--dimmed": "awsui_segment--dimmed_1edmh_1iq5s_237",
24
+ "segment--highlighted": "awsui_segment--highlighted_1edmh_1iq5s_240",
25
+ "label--dimmed": "awsui_label--dimmed_1edmh_1iq5s_257",
26
+ "label--align-right": "awsui_label--align-right_1edmh_1iq5s_260",
27
+ "label-text": "awsui_label-text_1edmh_1iq5s_268",
28
+ "label__description": "awsui_label__description_1edmh_1iq5s_276",
29
+ "label-line": "awsui_label-line_1edmh_1iq5s_283",
30
+ "label--highlighted": "awsui_label--highlighted_1edmh_1iq5s_287",
31
+ "popover-header": "awsui_popover-header_1edmh_1iq5s_291"
32
32
  };
33
33
 
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"lib/default/","sources":["popover/container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAK7F,OAAO,EAAkB,gBAAgB,EAAU,YAAY,EAAE,MAAM,cAAc,CAAC;AAKtF,MAAM,WAAW,qBAAqB;IACpC,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AgB,GAAG,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAID,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,OAAO,GACR,EAAE,qBAAqB,eAqKvB"}
@@ -3,10 +3,10 @@
3
3
  import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { getContainingBlock, nodeContains } from '../internal/utils/dom';
6
- import { useResizeObserver } from '../internal/hooks/container-queries';
7
6
  import { calculatePosition } from './utils/positions';
8
7
  import styles from './styles.css.js';
9
8
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
9
+ import { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';
10
10
  const INITIAL_STYLES = { position: 'absolute', top: -9999, left: -9999 };
11
11
  export default function PopoverContainer({ position, trackRef, trackKey, arrow, children, zIndex, renderWithPortal, size, fixedWidth, variant, }) {
12
12
  const bodyRef = useRef(null);
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"lib/default/","sources":["popover/container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAiB,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,q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QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,OAAe,EAAE,MAAc;IACzD,OAAO;QACL,GAAG,EAAE,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG;QAC7B,IAAI,EAAE,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI;KACjC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CAAC,MAAc;IACrC,OAAO;QACL,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM,CAAC,UAAU;QACxB,MAAM,EAAE,MAAM,CAAC,WAAW;KAC3B,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,QAAkB;IACzC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,qBAAqB,EAAE,CAAC;IACvE,OAAO;QACL,GAAG;QACH,IAAI;QACJ,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,WAAW;QAC3C,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,YAAY;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { CSSProperties, useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { getContainingBlock, nodeContains } from '../internal/utils/dom';\nimport { useResizeObserver } from '../internal/hooks/container-queries';\nimport { BoundingOffset, InternalPosition, Offset, PopoverProps } from './interfaces';\nimport { calculatePosition } from './utils/positions';\nimport styles from './styles.css.js';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nexport interface PopoverContainerProps {\n /** References the element the container is positioned against. */\n trackRef: React.RefObject<Element>;\n /**\n Used to update the container position in case track or track position changes:\n \n const trackRef = useRef<Element>(null)\n return (<>\n <Track style={getPosition(selectedItemId)} ref={trackRef} />\n <PopoverContainer trackRef={trackRef} trackKey={selectedItemId} .../>\n </>)\n */\n trackKey?: string | number;\n position: PopoverProps.Position;\n zIndex?: React.CSSProperties['zIndex'];\n arrow: (position: InternalPosition | null) => React.ReactNode;\n children: React.ReactNode;\n renderWithPortal?: boolean;\n size: PopoverProps.Size;\n fixedWidth: boolean;\n variant?: 'annotation';\n}\n\nconst INITIAL_STYLES: CSSProperties = { position: 'absolute', top: -9999, left: -9999 };\n\nexport default function PopoverContainer({\n position,\n trackRef,\n trackKey,\n arrow,\n children,\n zIndex,\n renderWithPortal,\n size,\n fixedWidth,\n variant,\n}: PopoverContainerProps) {\n const bodyRef = useRef<HTMLDivElement | null>(null);\n const contentRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n\n const [popoverStyle, setPopoverStyle] = useState<CSSProperties>(INITIAL_STYLES);\n const [internalPosition, setInternalPosition] = useState<InternalPosition | null>(null);\n const isRefresh = useVisualRefresh();\n\n // Store the handler in a ref so that it can still be replaced from outside of the listener closure.\n const positionHandlerRef = useRef<() => void>(() => {});\n\n // Updates the position handler.\n const updatePositionHandler = useCallback(() => {\n if (!trackRef.current || !popoverRef.current || !bodyRef.current || !contentRef.current || !arrowRef.current) {\n return;\n }\n\n // Get important elements\n const popover = popoverRef.current;\n const body = bodyRef.current;\n const arrow = arrowRef.current;\n const document = popover.ownerDocument;\n const track = trackRef.current;\n\n // If the popover body isn't being rendered for whatever reason (e.g. \"display: none\" or JSDOM),\n // or track does not belong to the document - bail on calculating dimensions.\n if (popover.offsetWidth === 0 || popover.offsetHeight === 0 || !nodeContains(document.body, track)) {\n return;\n }\n\n // Imperatively move body off-screen to give it room to expand.\n // Not doing this in React because this recalculation should happen\n // in the span of a single frame without rerendering anything.\n const prevTop = popover.style.top;\n const prevLeft = popover.style.left;\n popover.style.top = '0';\n popover.style.left = '0';\n // Imperatively remove body styles that can remain from the previous computation.\n body.style.maxHeight = '';\n body.style.overflowX = '';\n body.style.overflowY = '';\n\n // Get rects representing key elements\n // Use getComputedStyle for arrowRect to avoid modifications made by transform\n const viewportRect = getViewportRect(document.defaultView!);\n const trackRect = track.getBoundingClientRect();\n const arrowRect = {\n width: parseFloat(getComputedStyle(arrow).width),\n height: parseFloat(getComputedStyle(arrow).height),\n };\n const containingBlock = getContainingBlock(popover);\n const containingBlockRect = containingBlock ? containingBlock.getBoundingClientRect() : viewportRect;\n\n const bodyBorderWidth = getBorderWidth(body);\n const contentRect = contentRef.current.getBoundingClientRect();\n const contentBoundingBox = {\n width: contentRect.width + 2 * bodyBorderWidth,\n height: contentRect.height + 2 * bodyBorderWidth,\n };\n\n // Calculate the arrow direction and viewport-relative position of the popover.\n const {\n scrollable,\n internalPosition: newInternalPosition,\n boundingOffset,\n } = calculatePosition(\n position,\n trackRect,\n arrowRect,\n contentBoundingBox,\n containingBlock ? containingBlockRect : getDocumentRect(document),\n viewportRect,\n renderWithPortal\n );\n\n // Get the position of the popover relative to the offset parent.\n const popoverOffset = toRelativePosition(boundingOffset, containingBlockRect);\n\n // Cache the distance between the trigger and the popover (which stays the same as you scroll),\n // and use that to recalculate the new popover position.\n const trackRelativeOffset = toRelativePosition(popoverOffset, toRelativePosition(trackRect, containingBlockRect));\n\n // Bring back the container to its original position to prevent any flashing.\n popover.style.top = prevTop;\n popover.style.left = prevLeft;\n\n // Allow popover body to scroll if can't fit the popover into the container/viewport otherwise.\n if (scrollable) {\n body.style.maxHeight = boundingOffset.height + 'px';\n body.style.overflowX = 'hidden';\n body.style.overflowY = 'auto';\n }\n\n // Position the popover\n setInternalPosition(newInternalPosition);\n setPopoverStyle({ top: popoverOffset.top, left: popoverOffset.left });\n\n positionHandlerRef.current = () => {\n const newTrackOffset = toRelativePosition(\n track.getBoundingClientRect(),\n containingBlock ? containingBlock.getBoundingClientRect() : viewportRect\n );\n setPopoverStyle({\n top: newTrackOffset.top + trackRelativeOffset.top,\n left: newTrackOffset.left + trackRelativeOffset.left,\n });\n };\n }, [position, trackRef, renderWithPortal]);\n\n // Recalculate position when properties change.\n useLayoutEffect(() => {\n updatePositionHandler();\n }, [updatePositionHandler, trackKey]);\n\n // Recalculate position when content size changes.\n useResizeObserver(contentRef, () => updatePositionHandler());\n\n // Recalculate position on DOM events.\n useLayoutEffect(() => {\n /*\n This is a heuristic. Some layout changes are caused by user clicks (e.g. toggling the tools panel, submitting a form),\n and by tracking the click event we can adapt the popover's position to the new layout.\n\n TODO: extend this to Enter and Spacebar?\n */\n const updatePosition = () => requestAnimationFrame(() => updatePositionHandler());\n const refreshPosition = () => requestAnimationFrame(() => positionHandlerRef.current());\n\n window.addEventListener('click', updatePosition);\n window.addEventListener('resize', updatePosition);\n window.addEventListener('scroll', refreshPosition, true);\n return () => {\n window.removeEventListener('click', updatePosition);\n window.removeEventListener('resize', updatePosition);\n window.removeEventListener('scroll', refreshPosition, true);\n };\n }, [updatePositionHandler]);\n\n return (\n <div\n ref={popoverRef}\n style={{ ...popoverStyle, zIndex }}\n className={clsx(styles.container, isRefresh && styles.refresh)}\n >\n <div\n ref={arrowRef}\n className={clsx(styles[`container-arrow`], styles[`container-arrow-position-${internalPosition}`])}\n aria-hidden={true}\n >\n {arrow(internalPosition)}\n </div>\n\n <div\n ref={bodyRef}\n className={clsx(styles['container-body'], styles[`container-body-size-${size}`], {\n [styles['fixed-width']]: fixedWidth,\n [styles[`container-body-variant-${variant}`]]: variant,\n })}\n >\n <div ref={contentRef}>{children}</div>\n </div>\n </div>\n );\n}\n\nfunction getBorderWidth(element: HTMLElement) {\n return parseInt(getComputedStyle(element).borderWidth) || 0;\n}\n\n/**\n * Convert a viewport-relative offset to an element-relative offset.\n */\nfunction toRelativePosition(element: Offset, parent: Offset): Offset {\n return {\n top: element.top - parent.top,\n left: element.left - parent.left,\n };\n}\n\n/**\n * Get a BoundingOffset that represents the visible viewport.\n */\nfunction getViewportRect(window: Window): BoundingOffset {\n return {\n top: 0,\n left: 0,\n width: window.innerWidth,\n height: window.innerHeight,\n };\n}\n\nfunction getDocumentRect(document: Document): BoundingOffset {\n const { top, left } = document.documentElement.getBoundingClientRect();\n return {\n top,\n left,\n width: document.documentElement.scrollWidth,\n height: document.documentElement.scrollHeight,\n };\n}\n"]}
1
+ {"version":3,"file":"container.js","sourceRoot":"lib/default/","sources":["popover/container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAiB,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAyBlF,MAAM,cAAc,GAAkB,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;AAExF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,OAAO,GACe;IACtB,MAAM,OAAO,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAErD,MAAM,CAA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,CAAC,WAAW;QAC3C,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,YAAY;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { CSSProperties, useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { getContainingBlock, nodeContains } from '../internal/utils/dom';\nimport { BoundingOffset, InternalPosition, Offset, PopoverProps } from './interfaces';\nimport { calculatePosition } from './utils/positions';\nimport styles from './styles.css.js';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nexport interface PopoverContainerProps {\n /** References the element the container is positioned against. */\n trackRef: React.RefObject<Element>;\n /**\n Used to update the container position in case track or track position changes:\n \n const trackRef = useRef<Element>(null)\n return (<>\n <Track style={getPosition(selectedItemId)} ref={trackRef} />\n <PopoverContainer trackRef={trackRef} trackKey={selectedItemId} .../>\n </>)\n */\n trackKey?: string | number;\n position: PopoverProps.Position;\n zIndex?: React.CSSProperties['zIndex'];\n arrow: (position: InternalPosition | null) => React.ReactNode;\n children: React.ReactNode;\n renderWithPortal?: boolean;\n size: PopoverProps.Size;\n fixedWidth: boolean;\n variant?: 'annotation';\n}\n\nconst INITIAL_STYLES: CSSProperties = { position: 'absolute', top: -9999, left: -9999 };\n\nexport default function PopoverContainer({\n position,\n trackRef,\n trackKey,\n arrow,\n children,\n zIndex,\n renderWithPortal,\n size,\n fixedWidth,\n variant,\n}: PopoverContainerProps) {\n const bodyRef = useRef<HTMLDivElement | null>(null);\n const contentRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n\n const [popoverStyle, setPopoverStyle] = useState<CSSProperties>(INITIAL_STYLES);\n const [internalPosition, setInternalPosition] = useState<InternalPosition | null>(null);\n const isRefresh = useVisualRefresh();\n\n // Store the handler in a ref so that it can still be replaced from outside of the listener closure.\n const positionHandlerRef = useRef<() => void>(() => {});\n\n // Updates the position handler.\n const updatePositionHandler = useCallback(() => {\n if (!trackRef.current || !popoverRef.current || !bodyRef.current || !contentRef.current || !arrowRef.current) {\n return;\n }\n\n // Get important elements\n const popover = popoverRef.current;\n const body = bodyRef.current;\n const arrow = arrowRef.current;\n const document = popover.ownerDocument;\n const track = trackRef.current;\n\n // If the popover body isn't being rendered for whatever reason (e.g. \"display: none\" or JSDOM),\n // or track does not belong to the document - bail on calculating dimensions.\n if (popover.offsetWidth === 0 || popover.offsetHeight === 0 || !nodeContains(document.body, track)) {\n return;\n }\n\n // Imperatively move body off-screen to give it room to expand.\n // Not doing this in React because this recalculation should happen\n // in the span of a single frame without rerendering anything.\n const prevTop = popover.style.top;\n const prevLeft = popover.style.left;\n popover.style.top = '0';\n popover.style.left = '0';\n // Imperatively remove body styles that can remain from the previous computation.\n body.style.maxHeight = '';\n body.style.overflowX = '';\n body.style.overflowY = '';\n\n // Get rects representing key elements\n // Use getComputedStyle for arrowRect to avoid modifications made by transform\n const viewportRect = getViewportRect(document.defaultView!);\n const trackRect = track.getBoundingClientRect();\n const arrowRect = {\n width: parseFloat(getComputedStyle(arrow).width),\n height: parseFloat(getComputedStyle(arrow).height),\n };\n const containingBlock = getContainingBlock(popover);\n const containingBlockRect = containingBlock ? containingBlock.getBoundingClientRect() : viewportRect;\n\n const bodyBorderWidth = getBorderWidth(body);\n const contentRect = contentRef.current.getBoundingClientRect();\n const contentBoundingBox = {\n width: contentRect.width + 2 * bodyBorderWidth,\n height: contentRect.height + 2 * bodyBorderWidth,\n };\n\n // Calculate the arrow direction and viewport-relative position of the popover.\n const {\n scrollable,\n internalPosition: newInternalPosition,\n boundingOffset,\n } = calculatePosition(\n position,\n trackRect,\n arrowRect,\n contentBoundingBox,\n containingBlock ? containingBlockRect : getDocumentRect(document),\n viewportRect,\n renderWithPortal\n );\n\n // Get the position of the popover relative to the offset parent.\n const popoverOffset = toRelativePosition(boundingOffset, containingBlockRect);\n\n // Cache the distance between the trigger and the popover (which stays the same as you scroll),\n // and use that to recalculate the new popover position.\n const trackRelativeOffset = toRelativePosition(popoverOffset, toRelativePosition(trackRect, containingBlockRect));\n\n // Bring back the container to its original position to prevent any flashing.\n popover.style.top = prevTop;\n popover.style.left = prevLeft;\n\n // Allow popover body to scroll if can't fit the popover into the container/viewport otherwise.\n if (scrollable) {\n body.style.maxHeight = boundingOffset.height + 'px';\n body.style.overflowX = 'hidden';\n body.style.overflowY = 'auto';\n }\n\n // Position the popover\n setInternalPosition(newInternalPosition);\n setPopoverStyle({ top: popoverOffset.top, left: popoverOffset.left });\n\n positionHandlerRef.current = () => {\n const newTrackOffset = toRelativePosition(\n track.getBoundingClientRect(),\n containingBlock ? containingBlock.getBoundingClientRect() : viewportRect\n );\n setPopoverStyle({\n top: newTrackOffset.top + trackRelativeOffset.top,\n left: newTrackOffset.left + trackRelativeOffset.left,\n });\n };\n }, [position, trackRef, renderWithPortal]);\n\n // Recalculate position when properties change.\n useLayoutEffect(() => {\n updatePositionHandler();\n }, [updatePositionHandler, trackKey]);\n\n // Recalculate position when content size changes.\n useResizeObserver(contentRef, () => updatePositionHandler());\n\n // Recalculate position on DOM events.\n useLayoutEffect(() => {\n /*\n This is a heuristic. Some layout changes are caused by user clicks (e.g. toggling the tools panel, submitting a form),\n and by tracking the click event we can adapt the popover's position to the new layout.\n\n TODO: extend this to Enter and Spacebar?\n */\n const updatePosition = () => requestAnimationFrame(() => updatePositionHandler());\n const refreshPosition = () => requestAnimationFrame(() => positionHandlerRef.current());\n\n window.addEventListener('click', updatePosition);\n window.addEventListener('resize', updatePosition);\n window.addEventListener('scroll', refreshPosition, true);\n return () => {\n window.removeEventListener('click', updatePosition);\n window.removeEventListener('resize', updatePosition);\n window.removeEventListener('scroll', refreshPosition, true);\n };\n }, [updatePositionHandler]);\n\n return (\n <div\n ref={popoverRef}\n style={{ ...popoverStyle, zIndex }}\n className={clsx(styles.container, isRefresh && styles.refresh)}\n >\n <div\n ref={arrowRef}\n className={clsx(styles[`container-arrow`], styles[`container-arrow-position-${internalPosition}`])}\n aria-hidden={true}\n >\n {arrow(internalPosition)}\n </div>\n\n <div\n ref={bodyRef}\n className={clsx(styles['container-body'], styles[`container-body-size-${size}`], {\n [styles['fixed-width']]: fixedWidth,\n [styles[`container-body-variant-${variant}`]]: variant,\n })}\n >\n <div ref={contentRef}>{children}</div>\n </div>\n </div>\n );\n}\n\nfunction getBorderWidth(element: HTMLElement) {\n return parseInt(getComputedStyle(element).borderWidth) || 0;\n}\n\n/**\n * Convert a viewport-relative offset to an element-relative offset.\n */\nfunction toRelativePosition(element: Offset, parent: Offset): Offset {\n return {\n top: element.top - parent.top,\n left: element.left - parent.left,\n };\n}\n\n/**\n * Get a BoundingOffset that represents the visible viewport.\n */\nfunction getViewportRect(window: Window): BoundingOffset {\n return {\n top: 0,\n left: 0,\n width: window.innerWidth,\n height: window.innerHeight,\n };\n}\n\nfunction getDocumentRect(document: Document): BoundingOffset {\n const { top, left } = document.documentElement.getBoundingClientRect();\n return {\n top,\n left,\n width: document.documentElement.scrollWidth,\n height: document.documentElement.scrollHeight,\n };\n}\n"]}
@@ -1,34 +1,34 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1wzqe_rth0w_93",
5
- "search-field": "awsui_search-field_1wzqe_rth0w_106",
6
- "input-wrapper": "awsui_input-wrapper_1wzqe_rth0w_112",
7
- "add-token": "awsui_add-token_1wzqe_rth0w_116",
8
- "tokens": "awsui_tokens_1wzqe_rth0w_123",
9
- "token-operator": "awsui_token-operator_1wzqe_rth0w_127",
10
- "property-editor": "awsui_property-editor_1wzqe_rth0w_131",
11
- "token-editor": "awsui_token-editor_1wzqe_rth0w_132",
12
- "property-editor-form": "awsui_property-editor-form_1wzqe_rth0w_136",
13
- "token-editor-form": "awsui_token-editor-form_1wzqe_rth0w_137",
14
- "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_rth0w_140",
15
- "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_rth0w_141",
16
- "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_rth0w_144",
17
- "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_rth0w_145",
18
- "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_rth0w_148",
19
- "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_rth0w_149",
20
- "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_rth0w_152",
21
- "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_rth0w_153",
22
- "property-editor-submit": "awsui_property-editor-submit_1wzqe_rth0w_156",
23
- "token-editor-submit": "awsui_token-editor-submit_1wzqe_rth0w_157",
24
- "property-editor-actions": "awsui_property-editor-actions_1wzqe_rth0w_160",
25
- "token-editor-actions": "awsui_token-editor-actions_1wzqe_rth0w_161",
26
- "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_rth0w_179",
27
- "custom-control": "awsui_custom-control_1wzqe_rth0w_183",
28
- "input": "awsui_input_1wzqe_rth0w_112",
29
- "token-trigger": "awsui_token-trigger_1wzqe_rth0w_191",
30
- "remove-all": "awsui_remove-all_1wzqe_rth0w_197",
31
- "token-label": "awsui_token-label_1wzqe_rth0w_198",
32
- "join-operation": "awsui_join-operation_1wzqe_rth0w_199"
4
+ "root": "awsui_root_1wzqe_1im8m_93",
5
+ "search-field": "awsui_search-field_1wzqe_1im8m_106",
6
+ "input-wrapper": "awsui_input-wrapper_1wzqe_1im8m_112",
7
+ "add-token": "awsui_add-token_1wzqe_1im8m_116",
8
+ "tokens": "awsui_tokens_1wzqe_1im8m_123",
9
+ "token-operator": "awsui_token-operator_1wzqe_1im8m_127",
10
+ "property-editor": "awsui_property-editor_1wzqe_1im8m_131",
11
+ "token-editor": "awsui_token-editor_1wzqe_1im8m_132",
12
+ "property-editor-form": "awsui_property-editor-form_1wzqe_1im8m_136",
13
+ "token-editor-form": "awsui_token-editor-form_1wzqe_1im8m_137",
14
+ "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_1im8m_140",
15
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1im8m_141",
16
+ "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_1im8m_144",
17
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1im8m_145",
18
+ "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_1im8m_148",
19
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1im8m_149",
20
+ "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_1im8m_152",
21
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1im8m_153",
22
+ "property-editor-submit": "awsui_property-editor-submit_1wzqe_1im8m_156",
23
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_1im8m_157",
24
+ "property-editor-actions": "awsui_property-editor-actions_1wzqe_1im8m_160",
25
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_1im8m_161",
26
+ "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_1im8m_179",
27
+ "custom-control": "awsui_custom-control_1wzqe_1im8m_183",
28
+ "input": "awsui_input_1wzqe_1im8m_112",
29
+ "token-trigger": "awsui_token-trigger_1wzqe_1im8m_191",
30
+ "remove-all": "awsui_remove-all_1wzqe_1im8m_197",
31
+ "token-label": "awsui_token-label_1wzqe_1im8m_198",
32
+ "join-operation": "awsui_join-operation_1wzqe_1im8m_199"
33
33
  };
34
34
 
@@ -90,7 +90,7 @@ 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_root_1wzqe_rth0w_93:not(#\9) {
93
+ .awsui_root_1wzqe_1im8m_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -129,100 +129,100 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
129
129
  -moz-osx-font-smoothing: auto;
130
130
  }
131
131
 
132
- .awsui_search-field_1wzqe_rth0w_106:not(#\9) {
132
+ .awsui_search-field_1wzqe_1im8m_106:not(#\9) {
133
133
  display: flex;
134
134
  align-items: center;
135
135
  max-width: calc(688px - 2 * var(--space-l-t419sm, 20px));
136
136
  }
137
137
 
138
- .awsui_input-wrapper_1wzqe_rth0w_112:not(#\9) {
138
+ .awsui_input-wrapper_1wzqe_1im8m_112:not(#\9) {
139
139
  flex-grow: 1;
140
140
  }
141
141
 
142
- .awsui_add-token_1wzqe_rth0w_116:not(#\9) {
143
- border-left: 1px solid var(--color-border-divider-default-d3adp9, #e9ebed);
142
+ .awsui_add-token_1wzqe_1im8m_116:not(#\9) {
143
+ border-left: 1px solid var(--color-border-divider-default-et9j7s, #e9ebed);
144
144
  box-sizing: border-box;
145
145
  margin-left: var(--space-m-udix3p, 16px);
146
146
  padding-left: var(--space-m-udix3p, 16px);
147
147
  }
148
148
 
149
- .awsui_tokens_1wzqe_rth0w_123:not(#\9) {
149
+ .awsui_tokens_1wzqe_1im8m_123:not(#\9) {
150
150
  margin: var(--space-xs-zb16t3, 8px) 0;
151
151
  }
152
152
 
153
- .awsui_token-operator_1wzqe_rth0w_127:not(#\9) {
153
+ .awsui_token-operator_1wzqe_1im8m_127:not(#\9) {
154
154
  font-weight: bold;
155
155
  }
156
156
 
157
- .awsui_property-editor_1wzqe_rth0w_131:not(#\9),
158
- .awsui_token-editor_1wzqe_rth0w_132:not(#\9) {
157
+ .awsui_property-editor_1wzqe_1im8m_131:not(#\9),
158
+ .awsui_token-editor_1wzqe_1im8m_132:not(#\9) {
159
159
  -webkit-user-select: text;
160
160
  user-select: text;
161
161
  margin: var(--space-xxs-p8yyaw, 4px);
162
162
  }
163
- .awsui_property-editor-form_1wzqe_rth0w_136:not(#\9),
164
- .awsui_token-editor-form_1wzqe_rth0w_137:not(#\9) {
163
+ .awsui_property-editor-form_1wzqe_1im8m_136:not(#\9),
164
+ .awsui_token-editor-form_1wzqe_1im8m_137:not(#\9) {
165
165
  margin-bottom: var(--space-scaled-l-0hpmd7, 20px);
166
166
  }
167
- .awsui_property-editor-field-property_1wzqe_rth0w_140:not(#\9),
168
- .awsui_token-editor-field-property_1wzqe_rth0w_141:not(#\9) {
167
+ .awsui_property-editor-field-property_1wzqe_1im8m_140:not(#\9),
168
+ .awsui_token-editor-field-property_1wzqe_1im8m_141:not(#\9) {
169
169
  /* used in test-utils */
170
170
  }
171
- .awsui_property-editor-field-operator_1wzqe_rth0w_144:not(#\9),
172
- .awsui_token-editor-field-operator_1wzqe_rth0w_145:not(#\9) {
171
+ .awsui_property-editor-field-operator_1wzqe_1im8m_144:not(#\9),
172
+ .awsui_token-editor-field-operator_1wzqe_1im8m_145:not(#\9) {
173
173
  margin-top: var(--space-scaled-l-0hpmd7, 20px);
174
174
  }
175
- .awsui_property-editor-field-value_1wzqe_rth0w_148:not(#\9),
176
- .awsui_token-editor-field-value_1wzqe_rth0w_149:not(#\9) {
175
+ .awsui_property-editor-field-value_1wzqe_1im8m_148:not(#\9),
176
+ .awsui_token-editor-field-value_1wzqe_1im8m_149:not(#\9) {
177
177
  margin-top: var(--space-scaled-l-0hpmd7, 20px);
178
178
  }
179
- .awsui_property-editor-cancel_1wzqe_rth0w_152:not(#\9),
180
- .awsui_token-editor-cancel_1wzqe_rth0w_153:not(#\9) {
179
+ .awsui_property-editor-cancel_1wzqe_1im8m_152:not(#\9),
180
+ .awsui_token-editor-cancel_1wzqe_1im8m_153:not(#\9) {
181
181
  margin-right: var(--space-xs-zb16t3, 8px);
182
182
  }
183
- .awsui_property-editor-submit_1wzqe_rth0w_156:not(#\9),
184
- .awsui_token-editor-submit_1wzqe_rth0w_157:not(#\9) {
183
+ .awsui_property-editor-submit_1wzqe_1im8m_156:not(#\9),
184
+ .awsui_token-editor-submit_1wzqe_1im8m_157:not(#\9) {
185
185
  /* used in test-utils */
186
186
  }
187
- .awsui_property-editor-actions_1wzqe_rth0w_160:not(#\9),
188
- .awsui_token-editor-actions_1wzqe_rth0w_161:not(#\9) {
187
+ .awsui_property-editor-actions_1wzqe_1im8m_160:not(#\9),
188
+ .awsui_token-editor-actions_1wzqe_1im8m_161:not(#\9) {
189
189
  display: flex;
190
190
  justify-content: flex-end;
191
191
  padding-top: var(--space-s-34lx8l, 12px);
192
- border-top: 1px solid var(--color-border-dropdown-item-default-rgr5b2, #e9ebed);
192
+ border-top: 1px solid var(--color-border-dropdown-item-default-dofu99, #e9ebed);
193
193
  }
194
194
 
195
- .awsui_token-editor-actions_1wzqe_rth0w_161:not(#\9) {
195
+ .awsui_token-editor-actions_1wzqe_1im8m_161:not(#\9) {
196
196
  padding-right: calc(var(--space-m-udix3p, 16px) + var(--space-xxs-p8yyaw, 4px));
197
197
  margin-left: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
198
198
  margin-right: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
199
199
  }
200
200
 
201
- .awsui_property-editor_1wzqe_rth0w_131:not(#\9) {
201
+ .awsui_property-editor_1wzqe_1im8m_131:not(#\9) {
202
202
  padding: var(--space-m-udix3p, 16px);
203
203
  overflow-y: auto;
204
204
  }
205
205
 
206
- .awsui_custom-content-wrapper_1wzqe_rth0w_179:not(#\9) {
206
+ .awsui_custom-content-wrapper_1wzqe_1im8m_179:not(#\9) {
207
207
  display: contents;
208
208
  }
209
209
 
210
- .awsui_custom-control_1wzqe_rth0w_183:not(#\9) {
210
+ .awsui_custom-control_1wzqe_1im8m_183:not(#\9) {
211
211
  margin-right: var(--space-s-34lx8l, 12px);
212
212
  }
213
213
 
214
- .awsui_input_1wzqe_rth0w_112:not(#\9) {
214
+ .awsui_input_1wzqe_1im8m_112:not(#\9) {
215
215
  flex: 1;
216
216
  }
217
217
 
218
- .awsui_token-trigger_1wzqe_rth0w_191:not(#\9) {
218
+ .awsui_token-trigger_1wzqe_1im8m_191:not(#\9) {
219
219
  min-width: 0;
220
220
  -ms-word-break: break-all;
221
221
  word-break: break-word;
222
222
  }
223
223
 
224
- .awsui_remove-all_1wzqe_rth0w_197:not(#\9),
225
- .awsui_token-label_1wzqe_rth0w_198:not(#\9),
226
- .awsui_join-operation_1wzqe_rth0w_199:not(#\9) {
224
+ .awsui_remove-all_1wzqe_1im8m_197:not(#\9),
225
+ .awsui_token-label_1wzqe_1im8m_198:not(#\9),
226
+ .awsui_join-operation_1wzqe_1im8m_199:not(#\9) {
227
227
  /* used in test-utils */
228
228
  }