@cloudscape-design/components 3.0.609 → 3.0.610

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 (48) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +33 -29
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/button-dropdown/category-elements/styles.css.js +14 -14
  5. package/button-dropdown/category-elements/styles.scoped.css +25 -22
  6. package/button-dropdown/category-elements/styles.selectors.js +14 -14
  7. package/internal/components/chart-popover/index.d.ts +1 -1
  8. package/internal/components/chart-popover/index.d.ts.map +1 -1
  9. package/internal/components/chart-popover/index.js.map +1 -1
  10. package/internal/components/dropdown/dropdown-fit-handler.d.ts +12 -12
  11. package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  12. package/internal/components/dropdown/dropdown-fit-handler.js +103 -83
  13. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  14. package/internal/components/dropdown/index.d.ts.map +1 -1
  15. package/internal/components/dropdown/index.js +30 -29
  16. package/internal/components/dropdown/index.js.map +1 -1
  17. package/internal/components/tooltip/index.d.ts +1 -1
  18. package/internal/components/tooltip/index.d.ts.map +1 -1
  19. package/internal/components/tooltip/index.js.map +1 -1
  20. package/internal/direction.d.ts +14 -0
  21. package/internal/direction.d.ts.map +1 -1
  22. package/internal/direction.js +25 -0
  23. package/internal/direction.js.map +1 -1
  24. package/internal/environment.js +1 -1
  25. package/internal/environment.json +1 -1
  26. package/internal/manifest.json +1 -1
  27. package/internal/utils/scrollable-containers.d.ts +5 -5
  28. package/internal/utils/scrollable-containers.d.ts.map +1 -1
  29. package/internal/utils/scrollable-containers.js +19 -19
  30. package/internal/utils/scrollable-containers.js.map +1 -1
  31. package/package.json +1 -1
  32. package/popover/container.d.ts +1 -1
  33. package/popover/container.d.ts.map +1 -1
  34. package/popover/container.js.map +1 -1
  35. package/popover/interfaces.d.ts +4 -4
  36. package/popover/interfaces.d.ts.map +1 -1
  37. package/popover/interfaces.js.map +1 -1
  38. package/popover/styles.css.js +50 -50
  39. package/popover/styles.scoped.css +76 -64
  40. package/popover/styles.selectors.js +50 -50
  41. package/popover/use-popover-position.d.ts +1 -1
  42. package/popover/use-popover-position.d.ts.map +1 -1
  43. package/popover/use-popover-position.js +32 -29
  44. package/popover/use-popover-position.js.map +1 -1
  45. package/popover/utils/positions.d.ts +2 -2
  46. package/popover/utils/positions.d.ts.map +1 -1
  47. package/popover/utils/positions.js +74 -74
  48. package/popover/utils/positions.js.map +1 -1
@@ -1,29 +1,29 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "arrow": "awsui_arrow_1hpp3_8n93s_99",
5
- "arrow-outer": "awsui_arrow-outer_1hpp3_8n93s_103",
6
- "arrow-inner": "awsui_arrow-inner_1hpp3_8n93s_103",
7
- "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_8n93s_140",
8
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_8n93s_140",
9
- "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_8n93s_143",
10
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_8n93s_143",
11
- "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_8n93s_146",
12
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_8n93s_146",
13
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_8n93s_149",
14
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_8n93s_149",
15
- "annotation": "awsui_annotation_1hpp3_8n93s_157",
16
- "next-button": "awsui_next-button_1hpp3_8n93s_158",
17
- "previous-button": "awsui_previous-button_1hpp3_8n93s_159",
18
- "finish-button": "awsui_finish-button_1hpp3_8n93s_160",
19
- "header": "awsui_header_1hpp3_8n93s_161",
20
- "step-counter-content": "awsui_step-counter-content_1hpp3_8n93s_162",
21
- "content": "awsui_content_1hpp3_8n93s_163",
22
- "description": "awsui_description_1hpp3_8n93s_167",
23
- "actionBar": "awsui_actionBar_1hpp3_8n93s_172",
24
- "stepCounter": "awsui_stepCounter_1hpp3_8n93s_179",
25
- "divider": "awsui_divider_1hpp3_8n93s_183",
26
- "hotspot": "awsui_hotspot_1hpp3_8n93s_187",
27
- "icon": "awsui_icon_1hpp3_8n93s_254"
4
+ "arrow": "awsui_arrow_1hpp3_10w1c_99",
5
+ "arrow-outer": "awsui_arrow-outer_1hpp3_10w1c_103",
6
+ "arrow-inner": "awsui_arrow-inner_1hpp3_10w1c_103",
7
+ "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_10w1c_144",
8
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_10w1c_144",
9
+ "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_10w1c_147",
10
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_10w1c_147",
11
+ "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_10w1c_150",
12
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_10w1c_150",
13
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_10w1c_153",
14
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_10w1c_153",
15
+ "annotation": "awsui_annotation_1hpp3_10w1c_161",
16
+ "next-button": "awsui_next-button_1hpp3_10w1c_162",
17
+ "previous-button": "awsui_previous-button_1hpp3_10w1c_163",
18
+ "finish-button": "awsui_finish-button_1hpp3_10w1c_164",
19
+ "header": "awsui_header_1hpp3_10w1c_165",
20
+ "step-counter-content": "awsui_step-counter-content_1hpp3_10w1c_166",
21
+ "content": "awsui_content_1hpp3_10w1c_167",
22
+ "description": "awsui_description_1hpp3_10w1c_171",
23
+ "actionBar": "awsui_actionBar_1hpp3_10w1c_176",
24
+ "stepCounter": "awsui_stepCounter_1hpp3_10w1c_183",
25
+ "divider": "awsui_divider_1hpp3_10w1c_187",
26
+ "hotspot": "awsui_hotspot_1hpp3_10w1c_191",
27
+ "icon": "awsui_icon_1hpp3_10w1c_258"
28
28
  };
29
29
 
@@ -96,11 +96,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
96
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
97
97
  SPDX-License-Identifier: Apache-2.0
98
98
  */
99
- .awsui_arrow_1hpp3_8n93s_99:not(#\9) {
99
+ .awsui_arrow_1hpp3_10w1c_99:not(#\9) {
100
100
  inline-size: 20px;
101
101
  block-size: 10px;
102
102
  }
103
- .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9), .awsui_arrow-inner_1hpp3_8n93s_103:not(#\9) {
103
+ .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9), .awsui_arrow-inner_1hpp3_10w1c_103:not(#\9) {
104
104
  position: absolute;
105
105
  overflow: hidden;
106
106
  inline-size: 20px;
@@ -108,7 +108,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
108
108
  inset-block-start: 0;
109
109
  inset-inline-start: 0;
110
110
  }
111
- .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after, .awsui_arrow-inner_1hpp3_8n93s_103:not(#\9)::after {
111
+ .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after, .awsui_arrow-inner_1hpp3_10w1c_103:not(#\9)::after {
112
112
  content: "";
113
113
  box-sizing: border-box;
114
114
  display: inline-block;
@@ -124,29 +124,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
124
124
  transform: rotate(45deg);
125
125
  transform-origin: 0 100%;
126
126
  }
127
- .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after {
127
+ .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9):dir(rtl)::after, .awsui_arrow-inner_1hpp3_10w1c_103:not(#\9):dir(rtl)::after {
128
+ transform: rotate(-45deg);
129
+ transform-origin: 100% 100%;
130
+ }
131
+ .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after {
128
132
  background-color: var(--color-border-status-info-8upc6f, #0972d3);
129
133
  }
130
- .awsui_arrow-inner_1hpp3_8n93s_103:not(#\9) {
134
+ .awsui_arrow-inner_1hpp3_10w1c_103:not(#\9) {
131
135
  inset-block-start: 2px;
132
136
  }
133
- .awsui_arrow-inner_1hpp3_8n93s_103:not(#\9)::after {
137
+ .awsui_arrow-inner_1hpp3_10w1c_103:not(#\9)::after {
134
138
  border-start-start-radius: 1px;
135
139
  border-start-end-radius: 0;
136
140
  border-end-start-radius: 0;
137
141
  border-end-end-radius: 0;
138
142
  background-color: var(--color-background-status-info-mvnbre, #f2f8fd);
139
143
  }
140
- .awsui_arrow-position-right-top_1hpp3_8n93s_140 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_8n93s_140 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after {
144
+ .awsui_arrow-position-right-top_1hpp3_10w1c_144 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_10w1c_144 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after {
141
145
  box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
142
146
  }
143
- .awsui_arrow-position-left-top_1hpp3_8n93s_143 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_8n93s_143 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after {
147
+ .awsui_arrow-position-left-top_1hpp3_10w1c_147 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_10w1c_147 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after {
144
148
  box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
145
149
  }
146
- .awsui_arrow-position-top-center_1hpp3_8n93s_146 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_8n93s_146 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after {
150
+ .awsui_arrow-position-top-center_1hpp3_10w1c_150 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_10w1c_150 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after {
147
151
  box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
148
152
  }
149
- .awsui_arrow-position-bottom-center_1hpp3_8n93s_149 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_8n93s_149 > .awsui_arrow-outer_1hpp3_8n93s_103:not(#\9)::after {
153
+ .awsui_arrow-position-bottom-center_1hpp3_10w1c_153 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_10w1c_153 > .awsui_arrow-outer_1hpp3_10w1c_103:not(#\9)::after {
150
154
  box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
151
155
  }
152
156
 
@@ -154,37 +158,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
158
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
155
159
  SPDX-License-Identifier: Apache-2.0
156
160
  */
157
- .awsui_annotation_1hpp3_8n93s_157:not(#\9),
158
- .awsui_next-button_1hpp3_8n93s_158:not(#\9),
159
- .awsui_previous-button_1hpp3_8n93s_159:not(#\9),
160
- .awsui_finish-button_1hpp3_8n93s_160:not(#\9),
161
- .awsui_header_1hpp3_8n93s_161:not(#\9),
162
- .awsui_step-counter-content_1hpp3_8n93s_162:not(#\9),
163
- .awsui_content_1hpp3_8n93s_163:not(#\9) {
161
+ .awsui_annotation_1hpp3_10w1c_161:not(#\9),
162
+ .awsui_next-button_1hpp3_10w1c_162:not(#\9),
163
+ .awsui_previous-button_1hpp3_10w1c_163:not(#\9),
164
+ .awsui_finish-button_1hpp3_10w1c_164:not(#\9),
165
+ .awsui_header_1hpp3_10w1c_165:not(#\9),
166
+ .awsui_step-counter-content_1hpp3_10w1c_166:not(#\9),
167
+ .awsui_content_1hpp3_10w1c_167:not(#\9) {
164
168
  /* used in test-utils */
165
169
  }
166
170
 
167
- .awsui_description_1hpp3_8n93s_167:not(#\9) {
171
+ .awsui_description_1hpp3_10w1c_171:not(#\9) {
168
172
  overflow: hidden;
169
173
  margin-block-start: var(--space-xxs-p8yyaw, 4px);
170
174
  }
171
175
 
172
- .awsui_actionBar_1hpp3_8n93s_172:not(#\9) {
176
+ .awsui_actionBar_1hpp3_10w1c_176:not(#\9) {
173
177
  display: flex;
174
178
  justify-content: space-between;
175
179
  align-items: center;
176
180
  position: relative;
177
181
  }
178
182
 
179
- .awsui_stepCounter_1hpp3_8n93s_179:not(#\9) {
183
+ .awsui_stepCounter_1hpp3_10w1c_183:not(#\9) {
180
184
  margin-inline-end: 20px;
181
185
  }
182
186
 
183
- .awsui_divider_1hpp3_8n93s_183:not(#\9) {
187
+ .awsui_divider_1hpp3_10w1c_187:not(#\9) {
184
188
  border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
185
189
  }
186
190
 
187
- .awsui_hotspot_1hpp3_8n93s_187:not(#\9) {
191
+ .awsui_hotspot_1hpp3_10w1c_191:not(#\9) {
188
192
  border-collapse: separate;
189
193
  border-spacing: 0;
190
194
  box-sizing: border-box;
@@ -228,17 +232,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
228
232
  inline-size: 16px;
229
233
  block-size: 16px;
230
234
  }
231
- .awsui_hotspot_1hpp3_8n93s_187:not(#\9):focus {
235
+ .awsui_hotspot_1hpp3_10w1c_191:not(#\9):focus {
232
236
  outline: none;
233
237
  }
234
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_8n93s_187:not(#\9):focus {
238
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_10w1c_191:not(#\9):focus {
235
239
  position: relative;
236
240
  }
237
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_8n93s_187:not(#\9):focus {
241
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_10w1c_191:not(#\9):focus {
238
242
  outline: 2px dotted transparent;
239
243
  outline-offset: calc(2px - 1px);
240
244
  }
241
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_8n93s_187:not(#\9):focus::before {
245
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_10w1c_191:not(#\9):focus::before {
242
246
  content: " ";
243
247
  display: block;
244
248
  position: absolute;
@@ -252,13 +256,13 @@ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_8n93s_187:not(#\9):focu
252
256
  border-end-end-radius: var(--border-radius-control-circular-focus-ring-w07mub, 4px);
253
257
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
254
258
  }
255
- .awsui_hotspot_1hpp3_8n93s_187 > .awsui_icon_1hpp3_8n93s_254:not(#\9) {
259
+ .awsui_hotspot_1hpp3_10w1c_191 > .awsui_icon_1hpp3_10w1c_258:not(#\9) {
256
260
  position: relative;
257
261
  stroke: var(--color-text-link-default-latg1a, #0972d3);
258
262
  }
259
- .awsui_hotspot_1hpp3_8n93s_187:not(#\9):hover > .awsui_icon_1hpp3_8n93s_254 {
263
+ .awsui_hotspot_1hpp3_10w1c_191:not(#\9):hover > .awsui_icon_1hpp3_10w1c_258 {
260
264
  stroke: var(--color-text-link-hover-8j6p14, #033160);
261
265
  }
262
- .awsui_hotspot_1hpp3_8n93s_187:not(#\9):active > .awsui_icon_1hpp3_8n93s_254 {
266
+ .awsui_hotspot_1hpp3_10w1c_191:not(#\9):active > .awsui_icon_1hpp3_10w1c_258 {
263
267
  stroke: var(--color-text-link-default-latg1a, #0972d3);
264
268
  }
@@ -2,29 +2,29 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "arrow": "awsui_arrow_1hpp3_8n93s_99",
6
- "arrow-outer": "awsui_arrow-outer_1hpp3_8n93s_103",
7
- "arrow-inner": "awsui_arrow-inner_1hpp3_8n93s_103",
8
- "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_8n93s_140",
9
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_8n93s_140",
10
- "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_8n93s_143",
11
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_8n93s_143",
12
- "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_8n93s_146",
13
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_8n93s_146",
14
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_8n93s_149",
15
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_8n93s_149",
16
- "annotation": "awsui_annotation_1hpp3_8n93s_157",
17
- "next-button": "awsui_next-button_1hpp3_8n93s_158",
18
- "previous-button": "awsui_previous-button_1hpp3_8n93s_159",
19
- "finish-button": "awsui_finish-button_1hpp3_8n93s_160",
20
- "header": "awsui_header_1hpp3_8n93s_161",
21
- "step-counter-content": "awsui_step-counter-content_1hpp3_8n93s_162",
22
- "content": "awsui_content_1hpp3_8n93s_163",
23
- "description": "awsui_description_1hpp3_8n93s_167",
24
- "actionBar": "awsui_actionBar_1hpp3_8n93s_172",
25
- "stepCounter": "awsui_stepCounter_1hpp3_8n93s_179",
26
- "divider": "awsui_divider_1hpp3_8n93s_183",
27
- "hotspot": "awsui_hotspot_1hpp3_8n93s_187",
28
- "icon": "awsui_icon_1hpp3_8n93s_254"
5
+ "arrow": "awsui_arrow_1hpp3_10w1c_99",
6
+ "arrow-outer": "awsui_arrow-outer_1hpp3_10w1c_103",
7
+ "arrow-inner": "awsui_arrow-inner_1hpp3_10w1c_103",
8
+ "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_10w1c_144",
9
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_10w1c_144",
10
+ "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_10w1c_147",
11
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_10w1c_147",
12
+ "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_10w1c_150",
13
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_10w1c_150",
14
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_10w1c_153",
15
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_10w1c_153",
16
+ "annotation": "awsui_annotation_1hpp3_10w1c_161",
17
+ "next-button": "awsui_next-button_1hpp3_10w1c_162",
18
+ "previous-button": "awsui_previous-button_1hpp3_10w1c_163",
19
+ "finish-button": "awsui_finish-button_1hpp3_10w1c_164",
20
+ "header": "awsui_header_1hpp3_10w1c_165",
21
+ "step-counter-content": "awsui_step-counter-content_1hpp3_10w1c_166",
22
+ "content": "awsui_content_1hpp3_10w1c_167",
23
+ "description": "awsui_description_1hpp3_10w1c_171",
24
+ "actionBar": "awsui_actionBar_1hpp3_10w1c_176",
25
+ "stepCounter": "awsui_stepCounter_1hpp3_10w1c_183",
26
+ "divider": "awsui_divider_1hpp3_10w1c_187",
27
+ "hotspot": "awsui_hotspot_1hpp3_10w1c_191",
28
+ "icon": "awsui_icon_1hpp3_10w1c_258"
29
29
  };
30
30
 
@@ -1,19 +1,19 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "header": "awsui_header_16mm3_1v2fv_99",
5
- "disabled": "awsui_disabled_16mm3_1v2fv_116",
6
- "expandable-header": "awsui_expandable-header_16mm3_1v2fv_120",
7
- "rolled-down": "awsui_rolled-down_16mm3_1v2fv_131",
8
- "highlighted": "awsui_highlighted_16mm3_1v2fv_134",
9
- "is-focused": "awsui_is-focused_16mm3_1v2fv_152",
10
- "category": "awsui_category_16mm3_1v2fv_157",
11
- "expandable": "awsui_expandable_16mm3_1v2fv_120",
12
- "variant-navigation": "awsui_variant-navigation_16mm3_1v2fv_172",
13
- "expand-icon": "awsui_expand-icon_16mm3_1v2fv_179",
14
- "expand-icon-up": "awsui_expand-icon-up_16mm3_1v2fv_186",
15
- "expand-icon-right": "awsui_expand-icon-right_16mm3_1v2fv_189",
16
- "items-list-container": "awsui_items-list-container_16mm3_1v2fv_203",
17
- "in-dropdown": "awsui_in-dropdown_16mm3_1v2fv_212"
4
+ "header": "awsui_header_16mm3_w5lmn_99",
5
+ "disabled": "awsui_disabled_16mm3_w5lmn_116",
6
+ "expandable-header": "awsui_expandable-header_16mm3_w5lmn_120",
7
+ "rolled-down": "awsui_rolled-down_16mm3_w5lmn_131",
8
+ "highlighted": "awsui_highlighted_16mm3_w5lmn_134",
9
+ "is-focused": "awsui_is-focused_16mm3_w5lmn_152",
10
+ "category": "awsui_category_16mm3_w5lmn_157",
11
+ "expandable": "awsui_expandable_16mm3_w5lmn_120",
12
+ "variant-navigation": "awsui_variant-navigation_16mm3_w5lmn_172",
13
+ "expand-icon": "awsui_expand-icon_16mm3_w5lmn_179",
14
+ "expand-icon-up": "awsui_expand-icon-up_16mm3_w5lmn_186",
15
+ "expand-icon-right": "awsui_expand-icon-right_16mm3_w5lmn_189",
16
+ "items-list-container": "awsui_items-list-container_16mm3_w5lmn_206",
17
+ "in-dropdown": "awsui_in-dropdown_16mm3_w5lmn_215"
18
18
  };
19
19
 
@@ -96,7 +96,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
96
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
97
97
  SPDX-License-Identifier: Apache-2.0
98
98
  */
99
- .awsui_header_16mm3_1v2fv_99:not(#\9) {
99
+ .awsui_header_16mm3_w5lmn_99:not(#\9) {
100
100
  position: relative;
101
101
  margin-block: 0;
102
102
  margin-inline: 0;
@@ -113,25 +113,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
113
113
  padding-inline: calc(var(--space-button-horizontal-8jxzea, 20px) + var(--border-item-width-yel47s, 2px));
114
114
  z-index: 1;
115
115
  }
116
- .awsui_header_16mm3_1v2fv_99.awsui_disabled_16mm3_1v2fv_116:not(#\9) {
116
+ .awsui_header_16mm3_w5lmn_99.awsui_disabled_16mm3_w5lmn_116:not(#\9) {
117
117
  color: var(--color-text-dropdown-item-disabled-6oq3n6, #9ba7b6);
118
118
  cursor: default;
119
119
  }
120
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120:not(#\9) {
120
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120:not(#\9) {
121
121
  border-block-start-color: var(--color-border-dropdown-group-yakmix, #b6bec9);
122
122
  border-block-end-color: var(--color-border-dropdown-group-yakmix, #b6bec9);
123
123
  cursor: pointer;
124
124
  }
125
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120.awsui_disabled_16mm3_1v2fv_116:not(#\9) {
125
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120.awsui_disabled_16mm3_w5lmn_116:not(#\9) {
126
126
  cursor: default;
127
127
  }
128
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120:not(#\9):focus {
128
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120:not(#\9):focus {
129
129
  outline: none;
130
130
  }
131
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120.awsui_rolled-down_16mm3_1v2fv_131:not(#\9) {
131
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120.awsui_rolled-down_16mm3_w5lmn_131:not(#\9) {
132
132
  border-block-end-color: transparent;
133
133
  }
134
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120.awsui_highlighted_16mm3_1v2fv_134:not(#\9) {
134
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120.awsui_highlighted_16mm3_w5lmn_134:not(#\9) {
135
135
  background-color: var(--color-background-dropdown-item-hover-swsulg, #f4f4f4);
136
136
  color: var(--color-text-dropdown-item-highlighted-a51hdb, #000716);
137
137
  padding-block: var(--space-xxs-p8yyaw, 4px);
@@ -144,63 +144,66 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
144
144
  border-end-end-radius: var(--border-radius-item-05df9h, 8px);
145
145
  z-index: 2;
146
146
  }
147
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120.awsui_highlighted_16mm3_1v2fv_134.awsui_disabled_16mm3_1v2fv_116:not(#\9) {
147
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120.awsui_highlighted_16mm3_w5lmn_134.awsui_disabled_16mm3_w5lmn_116:not(#\9) {
148
148
  background-color: var(--color-background-dropdown-item-dimmed-dlm6wk, transparent);
149
149
  border-color: var(--color-border-dropdown-item-dimmed-hover-xdu0hf, #7d8998);
150
150
  color: var(--color-text-dropdown-item-dimmed-f2joj8, #9ba7b6);
151
151
  }
152
- .awsui_header_16mm3_1v2fv_99.awsui_expandable-header_16mm3_1v2fv_120.awsui_highlighted_16mm3_1v2fv_134.awsui_is-focused_16mm3_1v2fv_152:not(#\9) {
152
+ .awsui_header_16mm3_w5lmn_99.awsui_expandable-header_16mm3_w5lmn_120.awsui_highlighted_16mm3_w5lmn_134.awsui_is-focused_16mm3_w5lmn_152:not(#\9) {
153
153
  border-color: var(--color-border-dropdown-item-focused-5hbaf3, #414d5c);
154
154
  box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
155
155
  }
156
156
 
157
- .awsui_category_16mm3_1v2fv_157:not(#\9) {
157
+ .awsui_category_16mm3_w5lmn_157:not(#\9) {
158
158
  list-style: none;
159
159
  margin-block-start: calc(-1 * var(--border-divider-list-width-27y3k5, 1px));
160
160
  padding-block: 0;
161
161
  padding-inline: 0;
162
162
  }
163
- .awsui_category_16mm3_1v2fv_157:not(#\9):first-child {
163
+ .awsui_category_16mm3_w5lmn_157:not(#\9):first-child {
164
164
  margin-block-start: 0;
165
165
  }
166
- .awsui_category_16mm3_1v2fv_157.awsui_expandable_16mm3_1v2fv_120:not(#\9) {
166
+ .awsui_category_16mm3_w5lmn_157.awsui_expandable_16mm3_w5lmn_120:not(#\9) {
167
167
  border-block-start: 0;
168
168
  }
169
- .awsui_category_16mm3_1v2fv_157:not(#\9):last-child {
169
+ .awsui_category_16mm3_w5lmn_157:not(#\9):last-child {
170
170
  border-block-end: none;
171
171
  }
172
- .awsui_category_16mm3_1v2fv_157.awsui_variant-navigation_16mm3_1v2fv_172:not(#\9) {
172
+ .awsui_category_16mm3_w5lmn_157.awsui_variant-navigation_16mm3_w5lmn_172:not(#\9) {
173
173
  padding-block-start: var(--space-xxs-p8yyaw, 4px);
174
174
  }
175
- .awsui_category_16mm3_1v2fv_157.awsui_variant-navigation_16mm3_1v2fv_172.awsui_expandable_16mm3_1v2fv_120:not(#\9) {
175
+ .awsui_category_16mm3_w5lmn_157.awsui_variant-navigation_16mm3_w5lmn_172.awsui_expandable_16mm3_w5lmn_120:not(#\9) {
176
176
  padding-block-start: 0;
177
177
  }
178
178
 
179
- .awsui_expand-icon_16mm3_1v2fv_179:not(#\9) {
179
+ .awsui_expand-icon_16mm3_w5lmn_179:not(#\9) {
180
180
  position: relative;
181
181
  inset-inline-start: var(--space-s-34lx8l, 12px);
182
182
  inline-size: var(--space-m-udix3p, 16px);
183
183
  display: inline-block;
184
184
  transition: transform var(--motion-duration-rotate-180-dpvl4m, 135ms) var(--motion-easing-rotate-180-e270ko, cubic-bezier(0.165, 0.84, 0.44, 1));
185
185
  }
186
- .awsui_expand-icon-up_16mm3_1v2fv_186:not(#\9) {
186
+ .awsui_expand-icon-up_16mm3_w5lmn_186:not(#\9) {
187
187
  transform: rotate(-180deg);
188
188
  }
189
- .awsui_expand-icon-right_16mm3_1v2fv_189:not(#\9) {
189
+ .awsui_expand-icon-right_16mm3_w5lmn_189:not(#\9) {
190
190
  transform: rotate(-90deg);
191
191
  }
192
+ .awsui_expand-icon-right_16mm3_w5lmn_189:not(#\9):dir(rtl) {
193
+ transform: rotate(90deg);
194
+ }
192
195
  @media (prefers-reduced-motion: reduce) {
193
- .awsui_expand-icon_16mm3_1v2fv_179:not(#\9) {
196
+ .awsui_expand-icon_16mm3_w5lmn_179:not(#\9) {
194
197
  animation: none;
195
198
  transition: none;
196
199
  }
197
200
  }
198
- .awsui-motion-disabled .awsui_expand-icon_16mm3_1v2fv_179:not(#\9), .awsui-mode-entering .awsui_expand-icon_16mm3_1v2fv_179:not(#\9) {
201
+ .awsui-motion-disabled .awsui_expand-icon_16mm3_w5lmn_179:not(#\9), .awsui-mode-entering .awsui_expand-icon_16mm3_w5lmn_179:not(#\9) {
199
202
  animation: none;
200
203
  transition: none;
201
204
  }
202
205
 
203
- .awsui_items-list-container_16mm3_1v2fv_203:not(#\9) {
206
+ .awsui_items-list-container_16mm3_w5lmn_206:not(#\9) {
204
207
  padding-block: 0;
205
208
  padding-inline: 0;
206
209
  margin-block-start: -1px;
@@ -209,6 +212,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
209
212
  overflow-y: auto;
210
213
  }
211
214
 
212
- .awsui_in-dropdown_16mm3_1v2fv_212:not(#\9) {
215
+ .awsui_in-dropdown_16mm3_w5lmn_215:not(#\9) {
213
216
  margin-block-end: -1px;
214
217
  }
@@ -2,19 +2,19 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "header": "awsui_header_16mm3_1v2fv_99",
6
- "disabled": "awsui_disabled_16mm3_1v2fv_116",
7
- "expandable-header": "awsui_expandable-header_16mm3_1v2fv_120",
8
- "rolled-down": "awsui_rolled-down_16mm3_1v2fv_131",
9
- "highlighted": "awsui_highlighted_16mm3_1v2fv_134",
10
- "is-focused": "awsui_is-focused_16mm3_1v2fv_152",
11
- "category": "awsui_category_16mm3_1v2fv_157",
12
- "expandable": "awsui_expandable_16mm3_1v2fv_120",
13
- "variant-navigation": "awsui_variant-navigation_16mm3_1v2fv_172",
14
- "expand-icon": "awsui_expand-icon_16mm3_1v2fv_179",
15
- "expand-icon-up": "awsui_expand-icon-up_16mm3_1v2fv_186",
16
- "expand-icon-right": "awsui_expand-icon-right_16mm3_1v2fv_189",
17
- "items-list-container": "awsui_items-list-container_16mm3_1v2fv_203",
18
- "in-dropdown": "awsui_in-dropdown_16mm3_1v2fv_212"
5
+ "header": "awsui_header_16mm3_w5lmn_99",
6
+ "disabled": "awsui_disabled_16mm3_w5lmn_116",
7
+ "expandable-header": "awsui_expandable-header_16mm3_w5lmn_120",
8
+ "rolled-down": "awsui_rolled-down_16mm3_w5lmn_131",
9
+ "highlighted": "awsui_highlighted_16mm3_w5lmn_134",
10
+ "is-focused": "awsui_is-focused_16mm3_w5lmn_152",
11
+ "category": "awsui_category_16mm3_w5lmn_157",
12
+ "expandable": "awsui_expandable_16mm3_w5lmn_120",
13
+ "variant-navigation": "awsui_variant-navigation_16mm3_w5lmn_172",
14
+ "expand-icon": "awsui_expand-icon_16mm3_w5lmn_179",
15
+ "expand-icon-up": "awsui_expand-icon-up_16mm3_w5lmn_186",
16
+ "expand-icon-right": "awsui_expand-icon-right_16mm3_w5lmn_189",
17
+ "items-list-container": "awsui_items-list-container_16mm3_w5lmn_206",
18
+ "in-dropdown": "awsui_in-dropdown_16mm3_w5lmn_215"
19
19
  };
20
20
 
@@ -4,7 +4,7 @@ export interface ChartPopoverProps extends PopoverProps {
4
4
  /** Title of the popover */
5
5
  title?: React.ReactNode;
6
6
  /** References the element the container is positioned against. */
7
- trackRef: React.RefObject<Element>;
7
+ trackRef: React.RefObject<HTMLElement | SVGElement>;
8
8
  /**
9
9
  Used to update the container position in case track or track position changes:
10
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-popover/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAS3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,2BAA2B;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACnC;;;;;;;;MAQE;IACF,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B,+FAA+F;IAC/F,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B,wDAAwD;IACxD,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5C,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAEjD,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAEjD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAE3C,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;;AAED,wBAA8C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-popover/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAS3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,2BAA2B;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,UAAU,CAAC,CAAC;IACpD;;;;;;;;MAQE;IACF,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B,+FAA+F;IAC/F,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B,wDAAwD;IACxD,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5C,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAEjD,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAEjD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAE3C,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;;AAED,wBAA8C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-popover/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,M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,EACb,SAAS,EAAE,SAAS,EACpB,eAAe,EAAC,SAAS,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAEhC,QAAQ,CACG,CACV,CACW,CACf,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\n\nimport { getBaseProps } from '../../base-component';\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport PopoverContainer from '../../../popover/container';\nimport PopoverBody from '../../../popover/body';\nimport popoverStyles from '../../../popover/styles.css.js';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\n\nimport styles from './styles.css.js';\nimport { nodeBelongs } from '../../utils/node-belongs';\n\nexport interface ChartPopoverProps extends PopoverProps {\n /** Title of the popover */\n title?: React.ReactNode;\n\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\n /** Optional container element that prevents any clicks in there from dismissing the popover */\n container: Element | null;\n\n /** Event that is fired when the popover is dismissed */\n onDismiss: (outsideClick?: boolean) => void;\n\n /** Fired when the pointer enters the hoverable area around the popover */\n onMouseEnter?: (event: React.MouseEvent) => void;\n\n /** Fired when the pointer leaves the hoverable area around the popover */\n onMouseLeave?: (event: React.MouseEvent) => void;\n\n onBlur?: (event: React.FocusEvent) => void;\n\n /** Popover content */\n children?: React.ReactNode;\n}\n\nexport default React.forwardRef(ChartPopover);\n\nfunction ChartPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n dismissButton = false,\n dismissAriaLabel,\n\n children,\n\n title,\n trackRef,\n trackKey,\n onDismiss,\n container,\n\n onMouseEnter,\n onMouseLeave,\n onBlur,\n\n ...restProps\n }: ChartPopoverProps,\n ref: React.Ref<HTMLElement>\n) {\n const baseProps = getBaseProps(restProps);\n const popoverObjectRef = useRef<HTMLDivElement | null>(null);\n\n const popoverRef = useMergeRefs(popoverObjectRef, ref);\n\n useEffect(() => {\n const onDocumentClick = (event: MouseEvent) => {\n if (\n event.target &&\n !nodeBelongs(popoverObjectRef.current, event.target as Element) && // click not in popover\n !nodeContains(container, event.target as Element) // click not in segment\n ) {\n onDismiss(true);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick, { capture: true });\n return () => {\n document.removeEventListener('mousedown', onDocumentClick, { capture: true });\n };\n }, [container, onDismiss]);\n\n // In chart popovers, dismiss button is present when they are pinned, so both values are equivalent.\n const isPinned = dismissButton;\n\n return (\n <div\n {...baseProps}\n className={clsx(popoverStyles.root, styles.root, baseProps.className)}\n ref={popoverRef}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onBlur={onBlur}\n // The tabIndex makes it so that clicking inside popover assigns this element as blur target.\n // That is necessary in charts to ensure the blur target is within the chart and no cleanup is needed.\n tabIndex={-1}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={trackRef}\n trackKey={trackKey}\n arrow={position => (\n <div className={clsx(popoverStyles.arrow, popoverStyles[`arrow-position-${position}`])}>\n <div className={popoverStyles['arrow-outer']} />\n <div className={popoverStyles['arrow-inner']} />\n </div>\n )}\n keepPosition={true}\n allowVerticalOverflow={true}\n allowScrollToFit={isPinned}\n >\n <div className={styles['hover-area']}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={title}\n onDismiss={onDismiss}\n overflowVisible=\"content\"\n className={styles['popover-body']}\n >\n {children}\n </PopoverBody>\n </div>\n </PopoverContainer>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-popover/index.t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CAC5C,CACP,EACD,YAAY,EAAE,IAAI,EAClB,qBAAqB,EAAE,IAAI,EAC3B,gBAAgB,EAAE,QAAQ;YAE1B,6BAAK,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC;gBAClC,oBAAC,WAAW,IACV,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,KAAK,EACb,SAAS,EAAE,SAAS,EACpB,eAAe,EAAC,SAAS,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAEhC,QAAQ,CACG,CACV,CACW,CACf,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\n\nimport { getBaseProps } from '../../base-component';\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport PopoverContainer from '../../../popover/container';\nimport PopoverBody from '../../../popover/body';\nimport popoverStyles from '../../../popover/styles.css.js';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\n\nimport styles from './styles.css.js';\nimport { nodeBelongs } from '../../utils/node-belongs';\n\nexport interface ChartPopoverProps extends PopoverProps {\n /** Title of the popover */\n title?: React.ReactNode;\n\n /** References the element the container is positioned against. */\n trackRef: React.RefObject<HTMLElement | SVGElement>;\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\n /** Optional container element that prevents any clicks in there from dismissing the popover */\n container: Element | null;\n\n /** Event that is fired when the popover is dismissed */\n onDismiss: (outsideClick?: boolean) => void;\n\n /** Fired when the pointer enters the hoverable area around the popover */\n onMouseEnter?: (event: React.MouseEvent) => void;\n\n /** Fired when the pointer leaves the hoverable area around the popover */\n onMouseLeave?: (event: React.MouseEvent) => void;\n\n onBlur?: (event: React.FocusEvent) => void;\n\n /** Popover content */\n children?: React.ReactNode;\n}\n\nexport default React.forwardRef(ChartPopover);\n\nfunction ChartPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n dismissButton = false,\n dismissAriaLabel,\n\n children,\n\n title,\n trackRef,\n trackKey,\n onDismiss,\n container,\n\n onMouseEnter,\n onMouseLeave,\n onBlur,\n\n ...restProps\n }: ChartPopoverProps,\n ref: React.Ref<HTMLElement>\n) {\n const baseProps = getBaseProps(restProps);\n const popoverObjectRef = useRef<HTMLDivElement | null>(null);\n\n const popoverRef = useMergeRefs(popoverObjectRef, ref);\n\n useEffect(() => {\n const onDocumentClick = (event: MouseEvent) => {\n if (\n event.target &&\n !nodeBelongs(popoverObjectRef.current, event.target as Element) && // click not in popover\n !nodeContains(container, event.target as Element) // click not in segment\n ) {\n onDismiss(true);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick, { capture: true });\n return () => {\n document.removeEventListener('mousedown', onDocumentClick, { capture: true });\n };\n }, [container, onDismiss]);\n\n // In chart popovers, dismiss button is present when they are pinned, so both values are equivalent.\n const isPinned = dismissButton;\n\n return (\n <div\n {...baseProps}\n className={clsx(popoverStyles.root, styles.root, baseProps.className)}\n ref={popoverRef}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onBlur={onBlur}\n // The tabIndex makes it so that clicking inside popover assigns this element as blur target.\n // That is necessary in charts to ensure the blur target is within the chart and no cleanup is needed.\n tabIndex={-1}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={trackRef}\n trackKey={trackKey}\n arrow={position => (\n <div className={clsx(popoverStyles.arrow, popoverStyles[`arrow-position-${position}`])}>\n <div className={popoverStyles['arrow-outer']} />\n <div className={popoverStyles['arrow-inner']} />\n </div>\n )}\n keepPosition={true}\n allowVerticalOverflow={true}\n allowScrollToFit={isPinned}\n >\n <div className={styles['hover-area']}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={title}\n onDismiss={onDismiss}\n overflowVisible=\"content\"\n className={styles['popover-body']}\n >\n {children}\n </PopoverBody>\n </div>\n </PopoverContainer>\n </div>\n );\n}\n"]}
@@ -1,20 +1,20 @@
1
1
  import { BoundingBox } from '../../utils/scrollable-containers';
2
2
  interface AvailableSpace {
3
- above: number;
4
- below: number;
5
- left: number;
6
- right: number;
3
+ blockStart: number;
4
+ blockEnd: number;
5
+ inlineStart: number;
6
+ inlineEnd: number;
7
7
  }
8
8
  export interface DropdownPosition {
9
- height: string;
10
- width: string;
11
- dropUp: boolean;
12
- dropLeft: boolean;
13
- left: string;
9
+ blockSize: string;
10
+ inlineSize: string;
11
+ dropBlockStart: boolean;
12
+ dropInlineStart: boolean;
13
+ insetInlineStart: string;
14
14
  }
15
15
  export interface InteriorDropdownPosition extends DropdownPosition {
16
- bottom: string;
17
- top: string;
16
+ insetBlockEnd: string;
17
+ insetBlockStart: string;
18
18
  }
19
19
  export declare const defaultMaxDropdownWidth: number;
20
20
  export declare const getAvailableSpace: ({ trigger, overflowParents, stretchWidth, stretchHeight, isMobile, }: {
@@ -37,7 +37,7 @@ export declare const getWidths: ({ triggerElement, dropdownElement, desiredMinWi
37
37
  }) => {
38
38
  idealWidth: number;
39
39
  minWidth: number;
40
- triggerWidth: number;
40
+ triggerInlineSize: number;
41
41
  };
42
42
  export declare const hasEnoughSpaceToStretchBeyondTriggerWidth: ({ triggerElement, dropdownElement, desiredMinWidth, expandToViewport, stretchWidth, stretchHeight, isMobile, }: {
43
43
  triggerElement: HTMLElement;
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-fit-handler.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/dropdown-fit-handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAmD,MAAM,mCAAmC,CAAC;AAOjH,UAAU,cAAc;IACtB,KAAK,EAAE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dropdown-fit-handler.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/dropdown-fit-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAmD,MAAM,mCAAmC,CAAC;AAOjH,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAkBD,eAAO,MAAM,uBAAuB,QAA4B,CAAC;AAEjE,eAAO,MAAM,iBAAiB;aAOnB,WAAW;qBACH,cAAc,WAAW,CAAC;;;;MAIzC,cA2CH,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAK3B,WAAW;qBACH,cAAc,WAAW,CAAC;;MAEzC,cA4CH,CAAC;AAEF,eAAO,MAAM,SAAS;oBAMJ,WAAW;qBACV,WAAW;;;;;;;CAe7B,CAAC;AAEF,eAAO,MAAM,yCAAyC;oBASpC,WAAW;qBACV,WAAW;;sBAEV,OAAO;kBACX,OAAO;mBACN,OAAO;cACZ,OAAO;aAsBlB,CAAC;AAEF,eAAO,MAAM,mBAAmB;oBAWd,WAAW;qBACV,WAAW;qBACX,cAAc,WAAW,CAAC;;;;;;;MAOzC,gBA0DH,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAC7B,WAAW,YACV,WAAW,mBACJ,cAAc,WAAW,CAAC,aAChC,OAAO,KACjB,wBAyCF,CAAC;AAEF,eAAO,MAAM,iBAAiB,oBACX,cAAc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