@cloudscape-design/components-themeable 3.0.1163 → 3.0.1165

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 (192) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +1 -0
  3. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +4 -1
  4. package/lib/internal/scss/drawer/styles.scss +25 -0
  5. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  6. package/lib/internal/scss/table/resizer/styles.scss +7 -6
  7. package/lib/internal/template/anchor-navigation/styles.css.js +8 -8
  8. package/lib/internal/template/anchor-navigation/styles.scoped.css +21 -21
  9. package/lib/internal/template/anchor-navigation/styles.selectors.js +8 -8
  10. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts.map +1 -1
  11. package/lib/internal/template/app-layout/runtime-drawer/index.js +20 -18
  12. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  13. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  14. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +164 -163
  15. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  16. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +30 -30
  17. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +86 -83
  18. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +30 -30
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts.map +1 -1
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js +1 -1
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js.map +1 -1
  22. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  23. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  24. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  25. package/lib/internal/template/autosuggest/interfaces.d.ts +1 -1
  26. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  27. package/lib/internal/template/box/styles.css.js +192 -192
  28. package/lib/internal/template/box/styles.scoped.css +242 -242
  29. package/lib/internal/template/box/styles.selectors.js +192 -192
  30. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  31. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  32. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  33. package/lib/internal/template/button/styles.css.js +22 -22
  34. package/lib/internal/template/button/styles.scoped.css +96 -96
  35. package/lib/internal/template/button/styles.selectors.js +22 -22
  36. package/lib/internal/template/button-dropdown/category-elements/styles.css.js +17 -17
  37. package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +27 -27
  38. package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +17 -17
  39. package/lib/internal/template/button-dropdown/item-element/styles.css.js +20 -20
  40. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +35 -35
  41. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +20 -20
  42. package/lib/internal/template/button-group/interfaces.d.ts +9 -0
  43. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  44. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  45. package/lib/internal/template/calendar/styles.css.js +21 -21
  46. package/lib/internal/template/calendar/styles.scoped.css +44 -44
  47. package/lib/internal/template/calendar/styles.selectors.js +21 -21
  48. package/lib/internal/template/cards/styles.css.js +39 -39
  49. package/lib/internal/template/cards/styles.scoped.css +51 -51
  50. package/lib/internal/template/cards/styles.selectors.js +39 -39
  51. package/lib/internal/template/code-editor/styles.css.js +33 -33
  52. package/lib/internal/template/code-editor/styles.scoped.css +187 -187
  53. package/lib/internal/template/code-editor/styles.selectors.js +33 -33
  54. package/lib/internal/template/collection-preferences/styles.css.js +36 -36
  55. package/lib/internal/template/collection-preferences/styles.scoped.css +38 -38
  56. package/lib/internal/template/collection-preferences/styles.selectors.js +36 -36
  57. package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +30 -30
  58. package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +56 -56
  59. package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +30 -30
  60. package/lib/internal/template/drawer/implementation.d.ts +1 -1
  61. package/lib/internal/template/drawer/implementation.d.ts.map +1 -1
  62. package/lib/internal/template/drawer/implementation.js +13 -4
  63. package/lib/internal/template/drawer/implementation.js.map +1 -1
  64. package/lib/internal/template/drawer/interfaces.d.ts +7 -0
  65. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  66. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  67. package/lib/internal/template/drawer/styles.css.js +12 -8
  68. package/lib/internal/template/drawer/styles.scoped.css +35 -13
  69. package/lib/internal/template/drawer/styles.selectors.js +12 -8
  70. package/lib/internal/template/drawer/use-sticky-footer.d.ts +9 -0
  71. package/lib/internal/template/drawer/use-sticky-footer.d.ts.map +1 -0
  72. package/lib/internal/template/drawer/use-sticky-footer.js +35 -0
  73. package/lib/internal/template/drawer/use-sticky-footer.js.map +1 -0
  74. package/lib/internal/template/expandable-section/styles.css.js +35 -35
  75. package/lib/internal/template/expandable-section/styles.scoped.css +68 -68
  76. package/lib/internal/template/expandable-section/styles.selectors.js +35 -35
  77. package/lib/internal/template/help-panel/styles.css.js +6 -6
  78. package/lib/internal/template/help-panel/styles.scoped.css +75 -75
  79. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  80. package/lib/internal/template/icon/styles.css.js +39 -39
  81. package/lib/internal/template/icon/styles.scoped.css +87 -87
  82. package/lib/internal/template/icon/styles.selectors.js +39 -39
  83. package/lib/internal/template/internal/base-component/styles.scoped.css +504 -437
  84. package/lib/internal/template/internal/components/button-trigger/styles.css.js +13 -13
  85. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +29 -29
  86. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +13 -13
  87. package/lib/internal/template/internal/components/cartesian-chart/styles.css.js +28 -28
  88. package/lib/internal/template/internal/components/cartesian-chart/styles.scoped.css +33 -33
  89. package/lib/internal/template/internal/components/cartesian-chart/styles.selectors.js +28 -28
  90. package/lib/internal/template/internal/components/chart-series-details/styles.css.js +19 -19
  91. package/lib/internal/template/internal/components/chart-series-details/styles.scoped.css +33 -33
  92. package/lib/internal/template/internal/components/chart-series-details/styles.selectors.js +19 -19
  93. package/lib/internal/template/internal/components/option/styles.css.js +16 -16
  94. package/lib/internal/template/internal/components/option/styles.scoped.css +29 -29
  95. package/lib/internal/template/internal/components/option/styles.selectors.js +16 -16
  96. package/lib/internal/template/internal/components/selectable-item/styles.css.js +23 -23
  97. package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +54 -54
  98. package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +23 -23
  99. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  100. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  101. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  102. package/lib/internal/template/internal/environment.js +3 -3
  103. package/lib/internal/template/internal/environment.json +2 -2
  104. package/lib/internal/template/internal/generated/styles/tokens.js +8 -8
  105. package/lib/internal/template/internal/generated/theming/index.cjs +24 -24
  106. package/lib/internal/template/internal/generated/theming/index.js +24 -24
  107. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts +3 -1
  108. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  109. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js +2 -2
  110. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  111. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +2 -2
  112. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  113. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  114. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +2 -2
  115. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  116. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  117. package/lib/internal/template/key-value-pairs/styles.css.js +8 -8
  118. package/lib/internal/template/key-value-pairs/styles.scoped.css +10 -10
  119. package/lib/internal/template/key-value-pairs/styles.selectors.js +8 -8
  120. package/lib/internal/template/link/styles.css.js +20 -20
  121. package/lib/internal/template/link/styles.scoped.css +92 -92
  122. package/lib/internal/template/link/styles.selectors.js +20 -20
  123. package/lib/internal/template/pagination/styles.css.js +9 -9
  124. package/lib/internal/template/pagination/styles.scoped.css +24 -24
  125. package/lib/internal/template/pagination/styles.selectors.js +9 -9
  126. package/lib/internal/template/pie-chart/styles.css.js +27 -27
  127. package/lib/internal/template/pie-chart/styles.scoped.css +50 -50
  128. package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
  129. package/lib/internal/template/popover/internal.js +1 -1
  130. package/lib/internal/template/popover/internal.js.map +1 -1
  131. package/lib/internal/template/popover/styles.css.js +57 -57
  132. package/lib/internal/template/popover/styles.scoped.css +87 -87
  133. package/lib/internal/template/popover/styles.selectors.js +57 -57
  134. package/lib/internal/template/progress-bar/styles.css.js +19 -19
  135. package/lib/internal/template/progress-bar/styles.scoped.css +31 -31
  136. package/lib/internal/template/progress-bar/styles.selectors.js +19 -19
  137. package/lib/internal/template/property-filter/styles.css.js +39 -39
  138. package/lib/internal/template/property-filter/styles.scoped.css +42 -42
  139. package/lib/internal/template/property-filter/styles.selectors.js +39 -39
  140. package/lib/internal/template/segmented-control/styles.css.js +16 -16
  141. package/lib/internal/template/segmented-control/styles.scoped.css +36 -36
  142. package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
  143. package/lib/internal/template/select/interfaces.d.ts +1 -1
  144. package/lib/internal/template/select/interfaces.js.map +1 -1
  145. package/lib/internal/template/side-navigation/styles.css.js +30 -30
  146. package/lib/internal/template/side-navigation/styles.scoped.css +47 -47
  147. package/lib/internal/template/side-navigation/styles.selectors.js +30 -30
  148. package/lib/internal/template/split-panel/icons/styles.css.js +22 -22
  149. package/lib/internal/template/split-panel/icons/styles.scoped.css +27 -27
  150. package/lib/internal/template/split-panel/icons/styles.selectors.js +22 -22
  151. package/lib/internal/template/table/body-cell/styles.css.js +47 -47
  152. package/lib/internal/template/table/body-cell/styles.scoped.css +377 -377
  153. package/lib/internal/template/table/body-cell/styles.selectors.js +47 -47
  154. package/lib/internal/template/table/header-cell/index.d.ts +1 -1
  155. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  156. package/lib/internal/template/table/header-cell/index.js +1 -1
  157. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  158. package/lib/internal/template/table/header-cell/th-element.d.ts +1 -1
  159. package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
  160. package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
  161. package/lib/internal/template/table/resizer/index.d.ts +2 -1
  162. package/lib/internal/template/table/resizer/index.d.ts.map +1 -1
  163. package/lib/internal/template/table/resizer/index.js +8 -5
  164. package/lib/internal/template/table/resizer/index.js.map +1 -1
  165. package/lib/internal/template/table/resizer/styles.css.js +13 -12
  166. package/lib/internal/template/table/resizer/styles.scoped.css +22 -22
  167. package/lib/internal/template/table/resizer/styles.selectors.js +13 -12
  168. package/lib/internal/template/table/thead.d.ts +1 -1
  169. package/lib/internal/template/table/thead.d.ts.map +1 -1
  170. package/lib/internal/template/table/thead.js.map +1 -1
  171. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  172. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  173. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  174. package/lib/internal/template/test-utils/dom/drawer/index.d.ts +1 -0
  175. package/lib/internal/template/test-utils/dom/drawer/index.js +3 -0
  176. package/lib/internal/template/test-utils/dom/drawer/index.js.map +1 -1
  177. package/lib/internal/template/test-utils/selectors/drawer/index.d.ts +1 -0
  178. package/lib/internal/template/test-utils/selectors/drawer/index.js +3 -0
  179. package/lib/internal/template/test-utils/selectors/drawer/index.js.map +1 -1
  180. package/lib/internal/template/text-content/styles.css.js +1 -1
  181. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  182. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  183. package/lib/internal/template/token/styles.css.js +14 -14
  184. package/lib/internal/template/token/styles.scoped.css +29 -29
  185. package/lib/internal/template/token/styles.selectors.js +14 -14
  186. package/lib/internal/template/top-navigation/styles.css.js +47 -47
  187. package/lib/internal/template/top-navigation/styles.scoped.css +66 -66
  188. package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
  189. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  190. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
  191. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  192. package/package.json +1 -1
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_root_fvjdu_aiptz_145:not(#\9) {
145
+ .awsui_root_fvjdu_wty2q_145:not(#\9) {
146
146
  border-collapse: separate;
147
147
  border-spacing: 0;
148
148
  box-sizing: border-box;
@@ -182,14 +182,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
182
182
  list-style: none;
183
183
  }
184
184
 
185
- .awsui_button_fvjdu_aiptz_185:not(#\9),
186
- .awsui_dots_fvjdu_aiptz_186:not(#\9) {
185
+ .awsui_button_fvjdu_wty2q_185:not(#\9),
186
+ .awsui_dots_fvjdu_wty2q_186:not(#\9) {
187
187
  min-inline-size: var(--space-l-3cws6j, 20px);
188
188
  border-block: var(--border-width-button-40y1n5, 1px) solid transparent;
189
189
  border-inline: var(--border-width-button-40y1n5, 1px) solid transparent;
190
190
  }
191
191
 
192
- .awsui_button_fvjdu_aiptz_185:not(#\9) {
192
+ .awsui_button_fvjdu_wty2q_185:not(#\9) {
193
193
  cursor: pointer;
194
194
  text-align: center;
195
195
  box-sizing: border-box;
@@ -198,10 +198,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  padding-block: 0;
199
199
  padding-inline: 0;
200
200
  }
201
- .awsui_button_fvjdu_aiptz_185:not(#\9):focus {
201
+ .awsui_button_fvjdu_wty2q_185:not(#\9):focus {
202
202
  outline: none;
203
203
  }
204
- body[data-awsui-focus-visible=true] .awsui_button_fvjdu_aiptz_185:not(#\9):focus {
204
+ body[data-awsui-focus-visible=true] .awsui_button_fvjdu_wty2q_185:not(#\9):focus {
205
205
  outline: 2px dotted transparent;
206
206
  border-block: var(--border-width-button-40y1n5, 1px) solid var(--color-border-item-focused-r5f6xl, #0073bb);
207
207
  border-inline: var(--border-width-button-40y1n5, 1px) solid var(--color-border-item-focused-r5f6xl, #0073bb);
@@ -211,46 +211,46 @@ body[data-awsui-focus-visible=true] .awsui_button_fvjdu_aiptz_185:not(#\9):focus
211
211
  border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
212
212
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-ql2vj7, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
213
213
  }
214
- .awsui_button-disabled_fvjdu_aiptz_214:not(#\9) {
214
+ .awsui_button-disabled_fvjdu_wty2q_214:not(#\9) {
215
215
  cursor: default;
216
216
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
217
217
  }
218
218
 
219
- .awsui_arrow_fvjdu_aiptz_219:not(#\9) {
219
+ .awsui_arrow_fvjdu_wty2q_219:not(#\9) {
220
220
  color: var(--color-text-interactive-default-qwoe3g, #545b64);
221
221
  }
222
- .awsui_arrow_fvjdu_aiptz_219:not(#\9):not(.awsui_button-disabled_fvjdu_aiptz_214):hover {
222
+ .awsui_arrow_fvjdu_wty2q_219:not(#\9):not(.awsui_button-disabled_fvjdu_wty2q_214):hover {
223
223
  color: var(--color-text-interactive-hover-bu4gls, #16191f);
224
224
  }
225
- .awsui_arrow_fvjdu_aiptz_219.awsui_button-disabled_fvjdu_aiptz_214:not(#\9) {
225
+ .awsui_arrow_fvjdu_wty2q_219.awsui_button-disabled_fvjdu_wty2q_214:not(#\9) {
226
226
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
227
227
  }
228
228
 
229
- .awsui_page-number_fvjdu_aiptz_229:not(#\9) {
229
+ .awsui_page-number_fvjdu_wty2q_229:not(#\9) {
230
230
  color: var(--color-text-pagination-page-number-default-ramada, #545b64);
231
231
  }
232
- .awsui_page-number_fvjdu_aiptz_229:not(#\9):not(.awsui_button-disabled_fvjdu_aiptz_214):hover {
232
+ .awsui_page-number_fvjdu_wty2q_229:not(#\9):not(.awsui_button-disabled_fvjdu_wty2q_214):hover {
233
233
  color: var(--color-text-interactive-hover-bu4gls, #16191f);
234
234
  }
235
- .awsui_page-number_fvjdu_aiptz_229.awsui_button-current_fvjdu_aiptz_235:not(#\9) {
235
+ .awsui_page-number_fvjdu_wty2q_229.awsui_button-current_fvjdu_wty2q_235:not(#\9) {
236
236
  font-weight: var(--font-wayfinding-link-active-weight-lhxtkr, 700);
237
237
  -webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
238
238
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
239
239
  color: var(--color-text-interactive-active-c44vdq, #16191f);
240
240
  }
241
- .awsui_page-number_fvjdu_aiptz_229.awsui_button-current_fvjdu_aiptz_235.awsui_button-disabled_fvjdu_aiptz_214:not(#\9) {
242
- color: var(--color-text-pagination-page-number-active-disabled-ucl1n5, #545b64);
241
+ .awsui_page-number_fvjdu_wty2q_229.awsui_button-current_fvjdu_wty2q_235.awsui_button-disabled_fvjdu_wty2q_214:not(#\9) {
242
+ color: var(--color-text-pagination-page-number-active-disabled-ijg63u, #545b64);
243
243
  }
244
- .awsui_page-number_fvjdu_aiptz_229.awsui_button-disabled_fvjdu_aiptz_214:not(#\9) {
244
+ .awsui_page-number_fvjdu_wty2q_229.awsui_button-disabled_fvjdu_wty2q_214:not(#\9) {
245
245
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
246
246
  }
247
247
 
248
- .awsui_dots_fvjdu_aiptz_186:not(#\9) {
248
+ .awsui_dots_fvjdu_wty2q_186:not(#\9) {
249
249
  color: var(--color-text-interactive-default-qwoe3g, #545b64);
250
250
  }
251
251
 
252
- .awsui_page-item_fvjdu_aiptz_252:not(#\9),
253
- .awsui_dots_fvjdu_aiptz_186:not(#\9) {
252
+ .awsui_page-item_fvjdu_wty2q_252:not(#\9),
253
+ .awsui_dots_fvjdu_wty2q_186:not(#\9) {
254
254
  margin-block: var(--space-scaled-xxs-jatbiv, 4px);
255
255
  margin-inline: var(--space-xxs-jnczic, 4px);
256
256
  text-align: center;
@@ -258,15 +258,15 @@ body[data-awsui-focus-visible=true] .awsui_button_fvjdu_aiptz_185:not(#\9):focus
258
258
  padding-block: 0;
259
259
  padding-inline: 0;
260
260
  }
261
- .awsui_page-item_fvjdu_aiptz_252:not(#\9):first-child,
262
- .awsui_dots_fvjdu_aiptz_186:not(#\9):first-child {
261
+ .awsui_page-item_fvjdu_wty2q_252:not(#\9):first-child,
262
+ .awsui_dots_fvjdu_wty2q_186:not(#\9):first-child {
263
263
  margin-inline-start: 0;
264
264
  }
265
- .awsui_page-item_fvjdu_aiptz_252:not(#\9):last-child,
266
- .awsui_dots_fvjdu_aiptz_186:not(#\9):last-child {
265
+ .awsui_page-item_fvjdu_wty2q_252:not(#\9):last-child,
266
+ .awsui_dots_fvjdu_wty2q_186:not(#\9):last-child {
267
267
  margin-inline-end: 0;
268
268
  }
269
269
 
270
- .awsui_root-disabled_fvjdu_aiptz_270 > .awsui_dots_fvjdu_aiptz_186:not(#\9) {
270
+ .awsui_root-disabled_fvjdu_wty2q_270 > .awsui_dots_fvjdu_wty2q_186:not(#\9) {
271
271
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
272
272
  }
@@ -2,14 +2,14 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_fvjdu_aiptz_145",
6
- "button": "awsui_button_fvjdu_aiptz_185",
7
- "dots": "awsui_dots_fvjdu_aiptz_186",
8
- "button-disabled": "awsui_button-disabled_fvjdu_aiptz_214",
9
- "arrow": "awsui_arrow_fvjdu_aiptz_219",
10
- "page-number": "awsui_page-number_fvjdu_aiptz_229",
11
- "button-current": "awsui_button-current_fvjdu_aiptz_235",
12
- "page-item": "awsui_page-item_fvjdu_aiptz_252",
13
- "root-disabled": "awsui_root-disabled_fvjdu_aiptz_270"
5
+ "root": "awsui_root_fvjdu_wty2q_145",
6
+ "button": "awsui_button_fvjdu_wty2q_185",
7
+ "dots": "awsui_dots_fvjdu_wty2q_186",
8
+ "button-disabled": "awsui_button-disabled_fvjdu_wty2q_214",
9
+ "arrow": "awsui_arrow_fvjdu_wty2q_219",
10
+ "page-number": "awsui_page-number_fvjdu_wty2q_229",
11
+ "button-current": "awsui_button-current_fvjdu_wty2q_235",
12
+ "page-item": "awsui_page-item_fvjdu_wty2q_252",
13
+ "root-disabled": "awsui_root-disabled_fvjdu_wty2q_270"
14
14
  };
15
15
 
@@ -1,32 +1,32 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "segment__path": "awsui_segment__path_1edmh_1vpcl_161",
5
- "segment": "awsui_segment_1edmh_1vpcl_161",
6
- "segment__hover": "awsui_segment__hover_1edmh_1vpcl_188",
7
- "label": "awsui_label_1edmh_1vpcl_202",
8
- "root": "awsui_root_1edmh_1vpcl_216",
9
- "content": "awsui_content_1edmh_1vpcl_220",
10
- "content--small": "awsui_content--small_1edmh_1vpcl_220",
11
- "content--fit-height": "awsui_content--fit-height_1edmh_1vpcl_223",
12
- "content--without-labels": "awsui_content--without-labels_1edmh_1vpcl_226",
13
- "content--medium": "awsui_content--medium_1edmh_1vpcl_232",
14
- "content--large": "awsui_content--large_1edmh_1vpcl_244",
15
- "status-container": "awsui_status-container_1edmh_1vpcl_261",
16
- "chart-container": "awsui_chart-container_1edmh_1vpcl_265",
17
- "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1vpcl_269",
18
- "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1vpcl_274",
19
- "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1vpcl_277",
20
- "inner-content": "awsui_inner-content_1edmh_1vpcl_283",
21
- "segment__highlight": "awsui_segment__highlight_1edmh_1vpcl_294",
22
- "segment--dimmed": "awsui_segment--dimmed_1edmh_1vpcl_309",
23
- "segment--highlighted": "awsui_segment--highlighted_1edmh_1vpcl_312",
24
- "label--dimmed": "awsui_label--dimmed_1edmh_1vpcl_329",
25
- "label--align-right": "awsui_label--align-right_1edmh_1vpcl_332",
26
- "label-text": "awsui_label-text_1edmh_1vpcl_340",
27
- "label__description": "awsui_label__description_1edmh_1vpcl_348",
28
- "label-line": "awsui_label-line_1edmh_1vpcl_355",
29
- "label--highlighted": "awsui_label--highlighted_1edmh_1vpcl_359",
30
- "popover-header": "awsui_popover-header_1edmh_1vpcl_363"
4
+ "segment__path": "awsui_segment__path_1edmh_1vo0g_161",
5
+ "segment": "awsui_segment_1edmh_1vo0g_161",
6
+ "segment__hover": "awsui_segment__hover_1edmh_1vo0g_188",
7
+ "label": "awsui_label_1edmh_1vo0g_202",
8
+ "root": "awsui_root_1edmh_1vo0g_216",
9
+ "content": "awsui_content_1edmh_1vo0g_220",
10
+ "content--small": "awsui_content--small_1edmh_1vo0g_220",
11
+ "content--fit-height": "awsui_content--fit-height_1edmh_1vo0g_223",
12
+ "content--without-labels": "awsui_content--without-labels_1edmh_1vo0g_226",
13
+ "content--medium": "awsui_content--medium_1edmh_1vo0g_232",
14
+ "content--large": "awsui_content--large_1edmh_1vo0g_244",
15
+ "status-container": "awsui_status-container_1edmh_1vo0g_261",
16
+ "chart-container": "awsui_chart-container_1edmh_1vo0g_265",
17
+ "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1vo0g_269",
18
+ "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1vo0g_274",
19
+ "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1vo0g_277",
20
+ "inner-content": "awsui_inner-content_1edmh_1vo0g_283",
21
+ "segment__highlight": "awsui_segment__highlight_1edmh_1vo0g_294",
22
+ "segment--dimmed": "awsui_segment--dimmed_1edmh_1vo0g_309",
23
+ "segment--highlighted": "awsui_segment--highlighted_1edmh_1vo0g_312",
24
+ "label--dimmed": "awsui_label--dimmed_1edmh_1vo0g_329",
25
+ "label--align-right": "awsui_label--align-right_1edmh_1vo0g_332",
26
+ "label-text": "awsui_label-text_1edmh_1vo0g_340",
27
+ "label__description": "awsui_label__description_1edmh_1vo0g_348",
28
+ "label-line": "awsui_label-line_1edmh_1vo0g_355",
29
+ "label--highlighted": "awsui_label--highlighted_1edmh_1vo0g_359",
30
+ "popover-header": "awsui_popover-header_1edmh_1vo0g_363"
31
31
  };
32
32
 
@@ -158,129 +158,129 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
158
158
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
159
159
  SPDX-License-Identifier: Apache-2.0
160
160
  */
161
- .awsui_segment__path_1edmh_1vpcl_161:not(#\9) {
161
+ .awsui_segment__path_1edmh_1vo0g_161:not(#\9) {
162
162
  transition: opacity var(--motion-duration-transition-quick-ucajl5, 90ms) var(--motion-easing-transition-quick-034duw, linear);
163
163
  }
164
164
  @media (prefers-reduced-motion: reduce) {
165
- .awsui_segment__path_1edmh_1vpcl_161:not(#\9) {
165
+ .awsui_segment__path_1edmh_1vo0g_161:not(#\9) {
166
166
  animation: none;
167
167
  transition: none;
168
168
  }
169
169
  }
170
- .awsui-motion-disabled .awsui_segment__path_1edmh_1vpcl_161:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_1vpcl_161:not(#\9) {
170
+ .awsui-motion-disabled .awsui_segment__path_1edmh_1vo0g_161:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_1vo0g_161:not(#\9) {
171
171
  animation: none;
172
172
  transition: none;
173
173
  }
174
174
 
175
- .awsui_segment_1edmh_1vpcl_161:not(#\9) {
175
+ .awsui_segment_1edmh_1vo0g_161:not(#\9) {
176
176
  transition: opacity var(--motion-duration-transition-quick-ucajl5, 90ms) var(--motion-easing-transition-quick-034duw, linear);
177
177
  }
178
178
  @media (prefers-reduced-motion: reduce) {
179
- .awsui_segment_1edmh_1vpcl_161:not(#\9) {
179
+ .awsui_segment_1edmh_1vo0g_161:not(#\9) {
180
180
  animation: none;
181
181
  transition: none;
182
182
  }
183
183
  }
184
- .awsui-motion-disabled .awsui_segment_1edmh_1vpcl_161:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1vpcl_161:not(#\9) {
184
+ .awsui-motion-disabled .awsui_segment_1edmh_1vo0g_161:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1vo0g_161:not(#\9) {
185
185
  animation: none;
186
186
  transition: none;
187
187
  }
188
- .awsui_segment_1edmh_1vpcl_161 > .awsui_segment__hover_1edmh_1vpcl_188:not(#\9) {
188
+ .awsui_segment_1edmh_1vo0g_161 > .awsui_segment__hover_1edmh_1vo0g_188:not(#\9) {
189
189
  transition: opacity var(--motion-duration-transition-quick-ucajl5, 90ms) var(--motion-easing-transition-quick-034duw, linear);
190
190
  }
191
191
  @media (prefers-reduced-motion: reduce) {
192
- .awsui_segment_1edmh_1vpcl_161 > .awsui_segment__hover_1edmh_1vpcl_188:not(#\9) {
192
+ .awsui_segment_1edmh_1vo0g_161 > .awsui_segment__hover_1edmh_1vo0g_188:not(#\9) {
193
193
  animation: none;
194
194
  transition: none;
195
195
  }
196
196
  }
197
- .awsui-motion-disabled .awsui_segment_1edmh_1vpcl_161 > .awsui_segment__hover_1edmh_1vpcl_188:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1vpcl_161 > .awsui_segment__hover_1edmh_1vpcl_188:not(#\9) {
197
+ .awsui-motion-disabled .awsui_segment_1edmh_1vo0g_161 > .awsui_segment__hover_1edmh_1vo0g_188:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1vo0g_161 > .awsui_segment__hover_1edmh_1vo0g_188:not(#\9) {
198
198
  animation: none;
199
199
  transition: none;
200
200
  }
201
201
 
202
- .awsui_label_1edmh_1vpcl_202:not(#\9) {
202
+ .awsui_label_1edmh_1vo0g_202:not(#\9) {
203
203
  transition: opacity var(--motion-duration-transition-quick-ucajl5, 90ms) var(--motion-easing-transition-quick-034duw, linear);
204
204
  }
205
205
  @media (prefers-reduced-motion: reduce) {
206
- .awsui_label_1edmh_1vpcl_202:not(#\9) {
206
+ .awsui_label_1edmh_1vo0g_202:not(#\9) {
207
207
  animation: none;
208
208
  transition: none;
209
209
  }
210
210
  }
211
- .awsui-motion-disabled .awsui_label_1edmh_1vpcl_202:not(#\9), .awsui-mode-entering .awsui_label_1edmh_1vpcl_202:not(#\9) {
211
+ .awsui-motion-disabled .awsui_label_1edmh_1vo0g_202:not(#\9), .awsui-mode-entering .awsui_label_1edmh_1vo0g_202:not(#\9) {
212
212
  animation: none;
213
213
  transition: none;
214
214
  }
215
215
 
216
- .awsui_root_1edmh_1vpcl_216:not(#\9) {
216
+ .awsui_root_1edmh_1vo0g_216:not(#\9) {
217
217
  /* used in test-utils */
218
218
  }
219
219
 
220
- .awsui_content_1edmh_1vpcl_220.awsui_content--small_1edmh_1vpcl_220:not(#\9) {
220
+ .awsui_content_1edmh_1vo0g_220.awsui_content--small_1edmh_1vo0g_220:not(#\9) {
221
221
  min-block-size: calc(2 * (50px + var(--space-xs-kw7k3v, 8px) + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
222
222
  }
223
- .awsui_content_1edmh_1vpcl_220.awsui_content--small_1edmh_1vpcl_220.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
223
+ .awsui_content_1edmh_1vo0g_220.awsui_content--small_1edmh_1vo0g_220.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
224
224
  min-block-size: calc(2 * (30px + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
225
225
  }
226
- .awsui_content_1edmh_1vpcl_220.awsui_content--small_1edmh_1vpcl_220.awsui_content--without-labels_1edmh_1vpcl_226:not(#\9) {
226
+ .awsui_content_1edmh_1vo0g_220.awsui_content--small_1edmh_1vo0g_220.awsui_content--without-labels_1edmh_1vo0g_226:not(#\9) {
227
227
  min-block-size: calc(2 * (50px + var(--space-xs-kw7k3v, 8px)));
228
228
  }
229
- .awsui_content_1edmh_1vpcl_220.awsui_content--small_1edmh_1vpcl_220.awsui_content--without-labels_1edmh_1vpcl_226.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
229
+ .awsui_content_1edmh_1vo0g_220.awsui_content--small_1edmh_1vo0g_220.awsui_content--without-labels_1edmh_1vo0g_226.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
230
230
  min-block-size: calc(2 * (30px));
231
231
  }
232
- .awsui_content_1edmh_1vpcl_220.awsui_content--medium_1edmh_1vpcl_232:not(#\9) {
232
+ .awsui_content_1edmh_1vo0g_220.awsui_content--medium_1edmh_1vo0g_232:not(#\9) {
233
233
  min-block-size: calc(2 * (100px + var(--space-s-4a5hs8, 12px) + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
234
234
  }
235
- .awsui_content_1edmh_1vpcl_220.awsui_content--medium_1edmh_1vpcl_232.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
235
+ .awsui_content_1edmh_1vo0g_220.awsui_content--medium_1edmh_1vo0g_232.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
236
236
  min-block-size: calc(2 * (100px + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
237
237
  }
238
- .awsui_content_1edmh_1vpcl_220.awsui_content--medium_1edmh_1vpcl_232.awsui_content--without-labels_1edmh_1vpcl_226:not(#\9) {
238
+ .awsui_content_1edmh_1vo0g_220.awsui_content--medium_1edmh_1vo0g_232.awsui_content--without-labels_1edmh_1vo0g_226:not(#\9) {
239
239
  min-block-size: calc(2 * (100px + var(--space-s-4a5hs8, 12px)));
240
240
  }
241
- .awsui_content_1edmh_1vpcl_220.awsui_content--medium_1edmh_1vpcl_232.awsui_content--without-labels_1edmh_1vpcl_226.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
241
+ .awsui_content_1edmh_1vo0g_220.awsui_content--medium_1edmh_1vo0g_232.awsui_content--without-labels_1edmh_1vo0g_226.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
242
242
  min-block-size: calc(2 * (100px));
243
243
  }
244
- .awsui_content_1edmh_1vpcl_220.awsui_content--large_1edmh_1vpcl_244:not(#\9) {
244
+ .awsui_content_1edmh_1vo0g_220.awsui_content--large_1edmh_1vo0g_244:not(#\9) {
245
245
  min-block-size: calc(2 * (140px + var(--space-s-4a5hs8, 12px) + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
246
246
  }
247
- .awsui_content_1edmh_1vpcl_220.awsui_content--large_1edmh_1vpcl_244.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
247
+ .awsui_content_1edmh_1vo0g_220.awsui_content--large_1edmh_1vo0g_244.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
248
248
  min-block-size: calc(2 * (140px + calc(2 * var(--line-height-body-m-bedeoh, 22px))));
249
249
  }
250
- .awsui_content_1edmh_1vpcl_220.awsui_content--large_1edmh_1vpcl_244.awsui_content--without-labels_1edmh_1vpcl_226:not(#\9) {
250
+ .awsui_content_1edmh_1vo0g_220.awsui_content--large_1edmh_1vo0g_244.awsui_content--without-labels_1edmh_1vo0g_226:not(#\9) {
251
251
  min-block-size: calc(2 * (140px + var(--space-s-4a5hs8, 12px)));
252
252
  }
253
- .awsui_content_1edmh_1vpcl_220.awsui_content--large_1edmh_1vpcl_244.awsui_content--without-labels_1edmh_1vpcl_226.awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
253
+ .awsui_content_1edmh_1vo0g_220.awsui_content--large_1edmh_1vo0g_244.awsui_content--without-labels_1edmh_1vo0g_226.awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
254
254
  min-block-size: calc(2 * (140px));
255
255
  }
256
256
 
257
- .awsui_content--fit-height_1edmh_1vpcl_223:not(#\9) {
257
+ .awsui_content--fit-height_1edmh_1vo0g_223:not(#\9) {
258
258
  flex: 1;
259
259
  }
260
260
 
261
- .awsui_status-container_1edmh_1vpcl_261:not(#\9) {
261
+ .awsui_status-container_1edmh_1vo0g_261:not(#\9) {
262
262
  /* used in test utils */
263
263
  }
264
264
 
265
- .awsui_chart-container_1edmh_1vpcl_265:not(#\9) {
265
+ .awsui_chart-container_1edmh_1vo0g_265:not(#\9) {
266
266
  display: flex;
267
267
  flex: 1;
268
268
  }
269
- .awsui_chart-container--fit-height_1edmh_1vpcl_269:not(#\9) {
269
+ .awsui_chart-container--fit-height_1edmh_1vo0g_269:not(#\9) {
270
270
  block-size: 100%;
271
271
  min-block-size: inherit;
272
272
  }
273
273
 
274
- .awsui_chart-container-chart-plot_1edmh_1vpcl_274:not(#\9) {
274
+ .awsui_chart-container-chart-plot_1edmh_1vo0g_274:not(#\9) {
275
275
  display: contents;
276
276
  }
277
- .awsui_chart-container-chart-plot--fit-height_1edmh_1vpcl_277:not(#\9) {
277
+ .awsui_chart-container-chart-plot--fit-height_1edmh_1vo0g_277:not(#\9) {
278
278
  display: block;
279
279
  position: absolute;
280
280
  inset: 0;
281
281
  }
282
282
 
283
- .awsui_inner-content_1edmh_1vpcl_283:not(#\9) {
283
+ .awsui_inner-content_1edmh_1vo0g_283:not(#\9) {
284
284
  display: flex;
285
285
  position: absolute;
286
286
  flex-direction: column;
@@ -291,53 +291,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
291
291
  pointer-events: none;
292
292
  }
293
293
 
294
- .awsui_segment__highlight_1edmh_1vpcl_294:not(#\9) {
294
+ .awsui_segment__highlight_1edmh_1vo0g_294:not(#\9) {
295
295
  stroke: none;
296
296
  opacity: 0;
297
297
  }
298
298
 
299
- .awsui_segment_1edmh_1vpcl_161:not(#\9) {
299
+ .awsui_segment_1edmh_1vo0g_161:not(#\9) {
300
300
  stroke: var(--color-background-container-content-aemn43, #ffffff);
301
301
  stroke-width: 2px;
302
302
  stroke-linejoin: round;
303
303
  opacity: 1;
304
304
  cursor: pointer;
305
305
  }
306
- .awsui_segment_1edmh_1vpcl_161:not(#\9):focus {
306
+ .awsui_segment_1edmh_1vo0g_161:not(#\9):focus {
307
307
  outline: none;
308
308
  }
309
- .awsui_segment_1edmh_1vpcl_161.awsui_segment--dimmed_1edmh_1vpcl_309:not(#\9) {
309
+ .awsui_segment_1edmh_1vo0g_161.awsui_segment--dimmed_1edmh_1vo0g_309:not(#\9) {
310
310
  opacity: 0.35;
311
311
  }
312
- .awsui_segment_1edmh_1vpcl_161.awsui_segment--highlighted_1edmh_1vpcl_312 > .awsui_segment__highlight_1edmh_1vpcl_294:not(#\9), .awsui_segment_1edmh_1vpcl_161:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_1vpcl_309) > .awsui_segment__highlight_1edmh_1vpcl_294 {
312
+ .awsui_segment_1edmh_1vo0g_161.awsui_segment--highlighted_1edmh_1vo0g_312 > .awsui_segment__highlight_1edmh_1vo0g_294:not(#\9), .awsui_segment_1edmh_1vo0g_161:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_1vo0g_309) > .awsui_segment__highlight_1edmh_1vo0g_294 {
313
313
  opacity: 1;
314
314
  }
315
315
 
316
- .awsui_label_1edmh_1vpcl_202:not(#\9) {
316
+ .awsui_label_1edmh_1vo0g_202:not(#\9) {
317
317
  color: var(--color-text-heading-default-wlau07, #16191f);
318
318
  opacity: 1;
319
319
  /* stylelint-disable-next-line selector-max-type */
320
320
  /* stylelint-disable-next-line selector-max-type */
321
321
  }
322
- .awsui_label_1edmh_1vpcl_202 > line:not(#\9) {
322
+ .awsui_label_1edmh_1vo0g_202 > line:not(#\9) {
323
323
  stroke: var(--color-stroke-chart-line-8651o9, #879596);
324
324
  stroke-width: var(--border-divider-section-width-sznrdy, 1px);
325
325
  }
326
- .awsui_label_1edmh_1vpcl_202 > div:not(#\9) {
326
+ .awsui_label_1edmh_1vo0g_202 > div:not(#\9) {
327
327
  margin-block-start: -0.75em;
328
328
  }
329
- .awsui_label_1edmh_1vpcl_202.awsui_label--dimmed_1edmh_1vpcl_329:not(#\9) {
329
+ .awsui_label_1edmh_1vo0g_202.awsui_label--dimmed_1edmh_1vo0g_329:not(#\9) {
330
330
  opacity: 0.35;
331
331
  }
332
- .awsui_label_1edmh_1vpcl_202.awsui_label--align-right_1edmh_1vpcl_332:not(#\9) {
332
+ .awsui_label_1edmh_1vo0g_202.awsui_label--align-right_1edmh_1vo0g_332:not(#\9) {
333
333
  /* stylelint-disable-next-line selector-max-type */
334
334
  }
335
- .awsui_label_1edmh_1vpcl_202.awsui_label--align-right_1edmh_1vpcl_332 > div:not(#\9) {
335
+ .awsui_label_1edmh_1vo0g_202.awsui_label--align-right_1edmh_1vo0g_332 > div:not(#\9) {
336
336
  text-align: end;
337
337
  }
338
338
 
339
339
  /* stylelint-disable-next-line selector-max-type */
340
- .awsui_label-text_1edmh_1vpcl_340 > text:not(#\9) {
340
+ .awsui_label-text_1edmh_1vo0g_340 > text:not(#\9) {
341
341
  font-size: var(--font-size-body-m-vv54cm, 14px);
342
342
  line-height: var(--line-height-body-m-bedeoh, 22px);
343
343
  font-weight: var(--font-display-label-weight-ise9n2, 400);
@@ -345,22 +345,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
345
345
  dominant-baseline: middle;
346
346
  }
347
347
 
348
- text.awsui_label__description_1edmh_1vpcl_348:not(#\9) {
348
+ text.awsui_label__description_1edmh_1vo0g_348:not(#\9) {
349
349
  font-size: var(--font-chart-detail-size-drm2a6, 14px);
350
350
  font-weight: 400;
351
- color: var(--color-text-group-label-md03vz, #545b64);
352
- fill: var(--color-text-group-label-md03vz, #545b64);
351
+ color: var(--color-text-group-label-yp8mcz, #545b64);
352
+ fill: var(--color-text-group-label-yp8mcz, #545b64);
353
353
  }
354
354
 
355
- .awsui_label-line_1edmh_1vpcl_355:not(#\9) {
355
+ .awsui_label-line_1edmh_1vo0g_355:not(#\9) {
356
356
  /* used in component code */
357
357
  }
358
358
 
359
- .awsui_label--highlighted_1edmh_1vpcl_359:not(#\9) {
359
+ .awsui_label--highlighted_1edmh_1vo0g_359:not(#\9) {
360
360
  /* used in test-utils */
361
361
  }
362
362
 
363
- .awsui_popover-header_1edmh_1vpcl_363:not(#\9) {
363
+ .awsui_popover-header_1edmh_1vo0g_363:not(#\9) {
364
364
  display: inline-flex;
365
365
  align-items: flex-start;
366
366
  }
@@ -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_1vpcl_161",
6
- "segment": "awsui_segment_1edmh_1vpcl_161",
7
- "segment__hover": "awsui_segment__hover_1edmh_1vpcl_188",
8
- "label": "awsui_label_1edmh_1vpcl_202",
9
- "root": "awsui_root_1edmh_1vpcl_216",
10
- "content": "awsui_content_1edmh_1vpcl_220",
11
- "content--small": "awsui_content--small_1edmh_1vpcl_220",
12
- "content--fit-height": "awsui_content--fit-height_1edmh_1vpcl_223",
13
- "content--without-labels": "awsui_content--without-labels_1edmh_1vpcl_226",
14
- "content--medium": "awsui_content--medium_1edmh_1vpcl_232",
15
- "content--large": "awsui_content--large_1edmh_1vpcl_244",
16
- "status-container": "awsui_status-container_1edmh_1vpcl_261",
17
- "chart-container": "awsui_chart-container_1edmh_1vpcl_265",
18
- "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1vpcl_269",
19
- "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1vpcl_274",
20
- "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1vpcl_277",
21
- "inner-content": "awsui_inner-content_1edmh_1vpcl_283",
22
- "segment__highlight": "awsui_segment__highlight_1edmh_1vpcl_294",
23
- "segment--dimmed": "awsui_segment--dimmed_1edmh_1vpcl_309",
24
- "segment--highlighted": "awsui_segment--highlighted_1edmh_1vpcl_312",
25
- "label--dimmed": "awsui_label--dimmed_1edmh_1vpcl_329",
26
- "label--align-right": "awsui_label--align-right_1edmh_1vpcl_332",
27
- "label-text": "awsui_label-text_1edmh_1vpcl_340",
28
- "label__description": "awsui_label__description_1edmh_1vpcl_348",
29
- "label-line": "awsui_label-line_1edmh_1vpcl_355",
30
- "label--highlighted": "awsui_label--highlighted_1edmh_1vpcl_359",
31
- "popover-header": "awsui_popover-header_1edmh_1vpcl_363"
5
+ "segment__path": "awsui_segment__path_1edmh_1vo0g_161",
6
+ "segment": "awsui_segment_1edmh_1vo0g_161",
7
+ "segment__hover": "awsui_segment__hover_1edmh_1vo0g_188",
8
+ "label": "awsui_label_1edmh_1vo0g_202",
9
+ "root": "awsui_root_1edmh_1vo0g_216",
10
+ "content": "awsui_content_1edmh_1vo0g_220",
11
+ "content--small": "awsui_content--small_1edmh_1vo0g_220",
12
+ "content--fit-height": "awsui_content--fit-height_1edmh_1vo0g_223",
13
+ "content--without-labels": "awsui_content--without-labels_1edmh_1vo0g_226",
14
+ "content--medium": "awsui_content--medium_1edmh_1vo0g_232",
15
+ "content--large": "awsui_content--large_1edmh_1vo0g_244",
16
+ "status-container": "awsui_status-container_1edmh_1vo0g_261",
17
+ "chart-container": "awsui_chart-container_1edmh_1vo0g_265",
18
+ "chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_1vo0g_269",
19
+ "chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_1vo0g_274",
20
+ "chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_1vo0g_277",
21
+ "inner-content": "awsui_inner-content_1edmh_1vo0g_283",
22
+ "segment__highlight": "awsui_segment__highlight_1edmh_1vo0g_294",
23
+ "segment--dimmed": "awsui_segment--dimmed_1edmh_1vo0g_309",
24
+ "segment--highlighted": "awsui_segment--highlighted_1edmh_1vo0g_312",
25
+ "label--dimmed": "awsui_label--dimmed_1edmh_1vo0g_329",
26
+ "label--align-right": "awsui_label--align-right_1edmh_1vo0g_332",
27
+ "label-text": "awsui_label-text_1edmh_1vo0g_340",
28
+ "label__description": "awsui_label__description_1edmh_1vo0g_348",
29
+ "label-line": "awsui_label-line_1edmh_1vo0g_355",
30
+ "label--highlighted": "awsui_label--highlighted_1edmh_1vo0g_359",
31
+ "popover-header": "awsui_popover-header_1edmh_1vo0g_363"
32
32
  };
33
33
 
@@ -78,7 +78,7 @@ function InternalPopover({ position = 'right', size = 'medium', fixedWidth = fal
78
78
  document.removeEventListener('mousedown', onDocumentClick);
79
79
  };
80
80
  }, []);
81
- const popoverClasses = usePortalModeClasses(triggerRef);
81
+ const popoverClasses = usePortalModeClasses(triggerRef, { resetVisualContext: true });
82
82
  const triggerProps = {
83
83
  // https://github.com/microsoft/TypeScript/issues/36659
84
84
  ref: triggerRef,
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/popover/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,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,CAAC,OAAO,GAAG,qBAAqB,CAAC,GAAG,EAAE;gBAChD,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;YAC9B,CAAC,CAAC,CAAC;QACL,CAAC;QAEA,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAC/C,mCACM,YAAY,EAChB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,eAAe,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,EACjG,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAC,QAAQ,mBACC,QAAQ,EACtB,EAAE,EAAE,UAAU,gBACF,gBAAgB,IAE3B,QAAQ,CACF,CACV,CAAC,CAAC,CAAC,CACF,iCAAU,YAAY,EAAE,EAAE,EAAE,UAAU,IACnC,QAAQ,CACJ,CACR;QACA,OAAO,IAAI,CACV,oBAAC,qBAAqB,QACnB,gBAAgB,CAAC,CAAC,CAAC,oBAAC,MAAM,QAAE,cAAc,CAAU,CAAC,CAAC,CAAC,cAAc,CAChD,CACzB,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { Portal, useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable } from '../internal/components/focus-lock/utils';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport ResetContextsForModal from '../internal/context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { KeyCode } from '../internal/keycode';\nimport Arrow from './arrow';\nimport PopoverBody from './body';\nimport ConditionalLiveRegion from './conditional-live-region';\nimport PopoverContainer from './container';\nimport { PopoverProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalPopoverProps extends Omit<PopoverProps, 'triggerType' | 'size'>, InternalBaseComponentProps {\n __onOpen?: NonCancelableEventHandler<null>;\n triggerType?: PopoverProps.TriggerType | 'filtering-token';\n size: PopoverProps.Size | 'content';\n __closeAnalyticsAction?: string;\n isInline?: boolean;\n}\n\nexport default React.forwardRef(InternalPopover);\n\nfunction InternalPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n triggerType = 'text',\n dismissButton = true,\n\n children,\n header,\n content,\n triggerAriaLabel,\n\n wrapTriggerText = true,\n isInline = false,\n renderWithPortal = false,\n\n __onOpen,\n __internalRootRef,\n __closeAnalyticsAction,\n\n ...restProps\n }: InternalPopoverProps,\n ref: React.Ref<PopoverProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const triggerRef = useRef<HTMLElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n\n const i18n = useInternalI18n('popover');\n const dismissAriaLabel = i18n('dismissAriaLabel', restProps.dismissAriaLabel);\n\n const [visible, setVisible] = useState(false);\n\n const focusTrigger = useCallback(() => {\n if (['text', 'text-inline'].includes(triggerType)) {\n triggerRef.current?.focus();\n } else if (triggerRef.current) {\n getFirstFocusable(triggerRef.current)?.focus();\n }\n }, [triggerType]);\n\n const onTriggerClick = useCallback(() => {\n fireNonCancelableEvent(__onOpen);\n setVisible(true);\n }, [__onOpen]);\n\n const onDismiss = useCallback(() => {\n setVisible(false);\n focusTrigger();\n }, [focusTrigger]);\n\n const onTriggerKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const isEscapeKey = event.keyCode === KeyCode.escape;\n const isTabKey = event.keyCode === KeyCode.tab;\n if (isEscapeKey && visible) {\n event.stopPropagation();\n }\n if (isTabKey || isEscapeKey) {\n setVisible(false);\n }\n },\n [visible]\n );\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setVisible(false);\n },\n focus: () => {\n setVisible(false);\n focusTrigger();\n },\n }));\n\n const clickFrameId = useRef<number | null>(null);\n useEffect(() => {\n if (!triggerRef.current) {\n return;\n }\n const document = triggerRef.current.ownerDocument;\n\n const onDocumentClick = () => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n if (clickFrameId.current === null) {\n setVisible(false);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\n }, []);\n\n const popoverClasses = usePortalModeClasses(triggerRef);\n\n const triggerProps = {\n // https://github.com/microsoft/TypeScript/issues/36659\n ref: triggerRef as any,\n onClick: onTriggerClick,\n onKeyDown: onTriggerKeyDown,\n className: clsx(styles.trigger, styles[`trigger-type-${triggerType}`]),\n };\n const { tabIndex: triggerTabIndex } = useSingleTabStopNavigation(triggerRef);\n\n const referrerId = useUniqueId();\n\n const popoverContent = (\n <div\n className={clsx(popoverClasses, !renderWithPortal && styles['popover-inline-content'])}\n data-awsui-referrer-id={referrerId}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={triggerRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={renderWithPortal}\n zIndex={renderWithPortal ? 7000 : undefined}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={header}\n onDismiss={onDismiss}\n overflowVisible=\"both\"\n closeAnalyticsAction={__closeAnalyticsAction}\n >\n <ConditionalLiveRegion condition={!dismissButton}>{content}</ConditionalLiveRegion>\n </PopoverBody>\n </LinkDefaultVariantContext.Provider>\n </PopoverContainer>\n </div>\n );\n\n const mergedRef = useMergeRefs(popoverRef, __internalRootRef);\n\n return (\n <span\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n triggerType === 'filtering-token' && styles['root-filtering-token'],\n isInline && styles['no-wrap']\n )}\n ref={mergedRef}\n onMouseDown={() => {\n // Indicate there was a click inside popover recently, including nested portals.\n clickFrameId.current = requestAnimationFrame(() => {\n clickFrameId.current = null;\n });\n }}\n >\n {['text', 'text-inline'].includes(triggerType) ? (\n <button\n {...triggerProps}\n className={clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis'])}\n tabIndex={triggerTabIndex}\n type=\"button\"\n aria-haspopup=\"dialog\"\n id={referrerId}\n aria-label={triggerAriaLabel}\n >\n {children}\n </button>\n ) : (\n <span {...triggerProps} id={referrerId}>\n {children}\n </span>\n )}\n {visible && (\n <ResetContextsForModal>\n {renderWithPortal ? <Portal>{popoverContent}</Portal> : popoverContent}\n </ResetContextsForModal>\n )}\n </span>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/popover/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,qBAAqB,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAA6B,MAAM,0BAA0B,C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CAAC,CAC/C,mCACM,YAAY,EAChB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,eAAe,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,EACjG,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAC,QAAQ,mBACC,QAAQ,EACtB,EAAE,EAAE,UAAU,gBACF,gBAAgB,IAE3B,QAAQ,CACF,CACV,CAAC,CAAC,CAAC,CACF,iCAAU,YAAY,EAAE,EAAE,EAAE,UAAU,IACnC,QAAQ,CACJ,CACR;QACA,OAAO,IAAI,CACV,oBAAC,qBAAqB,QACnB,gBAAgB,CAAC,CAAC,CAAC,oBAAC,MAAM,QAAE,cAAc,CAAU,CAAC,CAAC,CAAC,cAAc,CAChD,CACzB,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { Portal, useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable } from '../internal/components/focus-lock/utils';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport ResetContextsForModal from '../internal/context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { KeyCode } from '../internal/keycode';\nimport Arrow from './arrow';\nimport PopoverBody from './body';\nimport ConditionalLiveRegion from './conditional-live-region';\nimport PopoverContainer from './container';\nimport { PopoverProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalPopoverProps extends Omit<PopoverProps, 'triggerType' | 'size'>, InternalBaseComponentProps {\n __onOpen?: NonCancelableEventHandler<null>;\n triggerType?: PopoverProps.TriggerType | 'filtering-token';\n size: PopoverProps.Size | 'content';\n __closeAnalyticsAction?: string;\n isInline?: boolean;\n}\n\nexport default React.forwardRef(InternalPopover);\n\nfunction InternalPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n triggerType = 'text',\n dismissButton = true,\n\n children,\n header,\n content,\n triggerAriaLabel,\n\n wrapTriggerText = true,\n isInline = false,\n renderWithPortal = false,\n\n __onOpen,\n __internalRootRef,\n __closeAnalyticsAction,\n\n ...restProps\n }: InternalPopoverProps,\n ref: React.Ref<PopoverProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const triggerRef = useRef<HTMLElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n\n const i18n = useInternalI18n('popover');\n const dismissAriaLabel = i18n('dismissAriaLabel', restProps.dismissAriaLabel);\n\n const [visible, setVisible] = useState(false);\n\n const focusTrigger = useCallback(() => {\n if (['text', 'text-inline'].includes(triggerType)) {\n triggerRef.current?.focus();\n } else if (triggerRef.current) {\n getFirstFocusable(triggerRef.current)?.focus();\n }\n }, [triggerType]);\n\n const onTriggerClick = useCallback(() => {\n fireNonCancelableEvent(__onOpen);\n setVisible(true);\n }, [__onOpen]);\n\n const onDismiss = useCallback(() => {\n setVisible(false);\n focusTrigger();\n }, [focusTrigger]);\n\n const onTriggerKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const isEscapeKey = event.keyCode === KeyCode.escape;\n const isTabKey = event.keyCode === KeyCode.tab;\n if (isEscapeKey && visible) {\n event.stopPropagation();\n }\n if (isTabKey || isEscapeKey) {\n setVisible(false);\n }\n },\n [visible]\n );\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setVisible(false);\n },\n focus: () => {\n setVisible(false);\n focusTrigger();\n },\n }));\n\n const clickFrameId = useRef<number | null>(null);\n useEffect(() => {\n if (!triggerRef.current) {\n return;\n }\n const document = triggerRef.current.ownerDocument;\n\n const onDocumentClick = () => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n if (clickFrameId.current === null) {\n setVisible(false);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\n }, []);\n\n const popoverClasses = usePortalModeClasses(triggerRef, { resetVisualContext: true });\n\n const triggerProps = {\n // https://github.com/microsoft/TypeScript/issues/36659\n ref: triggerRef as any,\n onClick: onTriggerClick,\n onKeyDown: onTriggerKeyDown,\n className: clsx(styles.trigger, styles[`trigger-type-${triggerType}`]),\n };\n const { tabIndex: triggerTabIndex } = useSingleTabStopNavigation(triggerRef);\n\n const referrerId = useUniqueId();\n\n const popoverContent = (\n <div\n className={clsx(popoverClasses, !renderWithPortal && styles['popover-inline-content'])}\n data-awsui-referrer-id={referrerId}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={triggerRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={renderWithPortal}\n zIndex={renderWithPortal ? 7000 : undefined}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={header}\n onDismiss={onDismiss}\n overflowVisible=\"both\"\n closeAnalyticsAction={__closeAnalyticsAction}\n >\n <ConditionalLiveRegion condition={!dismissButton}>{content}</ConditionalLiveRegion>\n </PopoverBody>\n </LinkDefaultVariantContext.Provider>\n </PopoverContainer>\n </div>\n );\n\n const mergedRef = useMergeRefs(popoverRef, __internalRootRef);\n\n return (\n <span\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n triggerType === 'filtering-token' && styles['root-filtering-token'],\n isInline && styles['no-wrap']\n )}\n ref={mergedRef}\n onMouseDown={() => {\n // Indicate there was a click inside popover recently, including nested portals.\n clickFrameId.current = requestAnimationFrame(() => {\n clickFrameId.current = null;\n });\n }}\n >\n {['text', 'text-inline'].includes(triggerType) ? (\n <button\n {...triggerProps}\n className={clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis'])}\n tabIndex={triggerTabIndex}\n type=\"button\"\n aria-haspopup=\"dialog\"\n id={referrerId}\n aria-label={triggerAriaLabel}\n >\n {children}\n </button>\n ) : (\n <span {...triggerProps} id={referrerId}>\n {children}\n </span>\n )}\n {visible && (\n <ResetContextsForModal>\n {renderWithPortal ? <Portal>{popoverContent}</Portal> : popoverContent}\n </ResetContextsForModal>\n )}\n </span>\n );\n}\n"]}