@cloudscape-design/components-themeable 3.0.1199 → 3.0.1201

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 (40) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/cards/styles.scss +12 -68
  3. package/lib/internal/scss/{cards → internal/components/card}/motion.scss +4 -4
  4. package/lib/internal/scss/internal/components/card/styles.scss +112 -0
  5. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  6. package/lib/internal/template/cards/index.d.ts.map +1 -1
  7. package/lib/internal/template/cards/index.js +8 -10
  8. package/lib/internal/template/cards/index.js.map +1 -1
  9. package/lib/internal/template/cards/styles.css.js +38 -39
  10. package/lib/internal/template/cards/styles.scoped.css +43 -158
  11. package/lib/internal/template/cards/styles.selectors.js +38 -39
  12. package/lib/internal/template/error-boundary/fallback.js +3 -3
  13. package/lib/internal/template/error-boundary/fallback.js.map +1 -1
  14. package/lib/internal/template/error-boundary/utils.d.ts +1 -0
  15. package/lib/internal/template/error-boundary/utils.d.ts.map +1 -1
  16. package/lib/internal/template/error-boundary/utils.js +23 -2
  17. package/lib/internal/template/error-boundary/utils.js.map +1 -1
  18. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  19. package/lib/internal/template/internal/components/card/index.d.ts +3 -0
  20. package/lib/internal/template/internal/components/card/index.d.ts.map +1 -0
  21. package/lib/internal/template/internal/components/card/index.js +16 -0
  22. package/lib/internal/template/internal/components/card/index.js.map +1 -0
  23. package/lib/internal/template/internal/components/card/interfaces.d.ts +45 -0
  24. package/lib/internal/template/internal/components/card/interfaces.d.ts.map +1 -0
  25. package/lib/internal/template/internal/components/card/interfaces.js +2 -0
  26. package/lib/internal/template/internal/components/card/interfaces.js.map +1 -0
  27. package/lib/internal/template/internal/components/card/styles.css.js +16 -0
  28. package/lib/internal/template/internal/components/card/styles.scoped.css +316 -0
  29. package/lib/internal/template/internal/components/card/styles.selectors.js +17 -0
  30. package/lib/internal/template/internal/components/chart-popover/index.js +1 -1
  31. package/lib/internal/template/internal/components/chart-popover/index.js.map +1 -1
  32. package/lib/internal/template/internal/environment.js +2 -2
  33. package/lib/internal/template/internal/environment.json +2 -2
  34. package/lib/internal/template/test-utils/dom/cards/index.d.ts +0 -5
  35. package/lib/internal/template/test-utils/dom/cards/index.js +0 -5
  36. package/lib/internal/template/test-utils/dom/cards/index.js.map +1 -1
  37. package/lib/internal/template/test-utils/selectors/cards/index.d.ts +0 -5
  38. package/lib/internal/template/test-utils/selectors/cards/index.js +0 -5
  39. package/lib/internal/template/test-utils/selectors/cards/index.js.map +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+
2
+ import './styles.scoped.css';
3
+ export default {
4
+ "root": "awsui_root_1xxz5_1fmrq_153",
5
+ "refresh": "awsui_refresh_1xxz5_1fmrq_258",
6
+ "header": "awsui_header_1xxz5_1fmrq_266",
7
+ "no-padding": "awsui_no-padding_1xxz5_1fmrq_266",
8
+ "with-actions": "awsui_with-actions_1xxz5_1fmrq_270",
9
+ "header-inner": "awsui_header-inner_1xxz5_1fmrq_278",
10
+ "body": "awsui_body_1xxz5_1fmrq_287",
11
+ "no-header": "awsui_no-header_1xxz5_1fmrq_297",
12
+ "no-content": "awsui_no-content_1xxz5_1fmrq_298",
13
+ "selected": "awsui_selected_1xxz5_1fmrq_306",
14
+ "description": "awsui_description_1xxz5_1fmrq_314"
15
+ };
16
+
@@ -0,0 +1,316 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /*
6
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
+ SPDX-License-Identifier: Apache-2.0
8
+ */
9
+ /*
10
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
+ SPDX-License-Identifier: Apache-2.0
12
+ */
13
+ /*
14
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
15
+ SPDX-License-Identifier: Apache-2.0
16
+ */
17
+ /*
18
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
+ SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ /*
22
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
23
+ SPDX-License-Identifier: Apache-2.0
24
+ */
25
+ /*
26
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
27
+ SPDX-License-Identifier: Apache-2.0
28
+ */
29
+ /*
30
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
31
+ SPDX-License-Identifier: Apache-2.0
32
+ */
33
+ /*
34
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
35
+ SPDX-License-Identifier: Apache-2.0
36
+ */
37
+ /*
38
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
39
+ SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ /*
42
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
43
+ SPDX-License-Identifier: Apache-2.0
44
+ */
45
+ /*
46
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
47
+ SPDX-License-Identifier: Apache-2.0
48
+ */
49
+ /*
50
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
+ SPDX-License-Identifier: Apache-2.0
52
+ */
53
+ /*
54
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55
+ SPDX-License-Identifier: Apache-2.0
56
+ */
57
+ /*
58
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
59
+ SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ /*
62
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
63
+ SPDX-License-Identifier: Apache-2.0
64
+ */
65
+ /*
66
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
67
+ SPDX-License-Identifier: Apache-2.0
68
+ */
69
+ /*
70
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
71
+ SPDX-License-Identifier: Apache-2.0
72
+ */
73
+ /*
74
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
75
+ SPDX-License-Identifier: Apache-2.0
76
+ */
77
+ /*
78
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
79
+ SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ /*
82
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
83
+ SPDX-License-Identifier: Apache-2.0
84
+ */
85
+ /*
86
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
87
+ SPDX-License-Identifier: Apache-2.0
88
+ */
89
+ /*
90
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
+ SPDX-License-Identifier: Apache-2.0
92
+ */
93
+ /*
94
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
+ SPDX-License-Identifier: Apache-2.0
96
+ */
97
+ /*
98
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
99
+ SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ /*
102
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
103
+ SPDX-License-Identifier: Apache-2.0
104
+ */
105
+ /*
106
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
107
+ SPDX-License-Identifier: Apache-2.0
108
+ */
109
+ /*
110
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
111
+ SPDX-License-Identifier: Apache-2.0
112
+ */
113
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
114
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
115
+ /*
116
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
117
+ SPDX-License-Identifier: Apache-2.0
118
+ */
119
+ /*
120
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
121
+ SPDX-License-Identifier: Apache-2.0
122
+ */
123
+ /*
124
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
125
+ SPDX-License-Identifier: Apache-2.0
126
+ */
127
+ /*
128
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
129
+ SPDX-License-Identifier: Apache-2.0
130
+ */
131
+ /*
132
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
133
+ SPDX-License-Identifier: Apache-2.0
134
+ */
135
+ /*
136
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
+ SPDX-License-Identifier: Apache-2.0
138
+ */
139
+ /*
140
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
141
+ SPDX-License-Identifier: Apache-2.0
142
+ */
143
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
144
+ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
+ /*
146
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
147
+ SPDX-License-Identifier: Apache-2.0
148
+ */
149
+ /*
150
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
+ SPDX-License-Identifier: Apache-2.0
152
+ */
153
+ .awsui_root_1xxz5_1fmrq_153:not(#\9) {
154
+ transition-property: background-color;
155
+ transition-duration: var(--motion-duration-transition-show-paced-0w35xp, 180ms);
156
+ transition-timing-function: var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
157
+ }
158
+ @media (prefers-reduced-motion: reduce) {
159
+ .awsui_root_1xxz5_1fmrq_153:not(#\9) {
160
+ animation: none;
161
+ transition: none;
162
+ }
163
+ }
164
+ .awsui-motion-disabled .awsui_root_1xxz5_1fmrq_153:not(#\9), .awsui-mode-entering .awsui_root_1xxz5_1fmrq_153:not(#\9) {
165
+ animation: none;
166
+ transition: none;
167
+ }
168
+
169
+ .awsui_root_1xxz5_1fmrq_153:not(#\9)::before {
170
+ transition-property: border-top-color, border-right-color, border-bottom-color, border-left-color;
171
+ transition-duration: var(--motion-duration-transition-show-paced-0w35xp, 180ms);
172
+ transition-timing-function: var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
173
+ }
174
+ @media (prefers-reduced-motion: reduce) {
175
+ .awsui_root_1xxz5_1fmrq_153:not(#\9)::before {
176
+ animation: none;
177
+ transition: none;
178
+ }
179
+ }
180
+ .awsui-motion-disabled .awsui_root_1xxz5_1fmrq_153:not(#\9)::before, .awsui-mode-entering .awsui_root_1xxz5_1fmrq_153:not(#\9)::before {
181
+ animation: none;
182
+ transition: none;
183
+ }
184
+
185
+ .awsui_root_1xxz5_1fmrq_153:not(#\9) {
186
+ border-collapse: separate;
187
+ border-spacing: 0;
188
+ box-sizing: border-box;
189
+ caption-side: top;
190
+ cursor: auto;
191
+ direction: inherit;
192
+ empty-cells: show;
193
+ font-family: serif;
194
+ font-style: normal;
195
+ font-variant: normal;
196
+ font-stretch: normal;
197
+ hyphens: none;
198
+ letter-spacing: normal;
199
+ list-style: disc outside none;
200
+ tab-size: 8;
201
+ text-align: start;
202
+ text-indent: 0;
203
+ text-shadow: none;
204
+ text-transform: none;
205
+ visibility: visible;
206
+ white-space: normal;
207
+ word-spacing: normal;
208
+ font-size: var(--font-size-body-m-vv54cm, 14px);
209
+ line-height: var(--line-height-body-m-bedeoh, 22px);
210
+ color: var(--color-text-body-default-5qid0u, #16191f);
211
+ font-weight: 400;
212
+ font-family: var(--font-family-base-8x5ngf, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
213
+ -webkit-font-smoothing: auto;
214
+ -moz-osx-font-smoothing: auto;
215
+ box-sizing: border-box;
216
+ position: relative;
217
+ background-color: var(--color-background-container-content-aemn43, #ffffff);
218
+ min-inline-size: 0;
219
+ border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
220
+ border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
221
+ border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
222
+ border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
223
+ box-sizing: border-box;
224
+ }
225
+ .awsui_root_1xxz5_1fmrq_153:not(#\9)::before {
226
+ content: "";
227
+ position: absolute;
228
+ inset-inline-start: 0px;
229
+ inset-block-start: 0px;
230
+ inline-size: 100%;
231
+ block-size: 100%;
232
+ pointer-events: none;
233
+ background: transparent;
234
+ box-sizing: border-box;
235
+ border-color: transparent;
236
+ border-block-start: var(--border-container-top-width-w3qnoe, 1px) solid var(--color-border-container-top-svitxz, #eaeded);
237
+ border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
238
+ border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
239
+ border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
240
+ border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
241
+ z-index: 1;
242
+ }
243
+ .awsui_root_1xxz5_1fmrq_153:not(#\9)::after {
244
+ content: "";
245
+ position: absolute;
246
+ inset-inline-start: 0px;
247
+ inset-block-start: 0px;
248
+ inline-size: 100%;
249
+ block-size: 100%;
250
+ pointer-events: none;
251
+ background: transparent;
252
+ box-sizing: border-box;
253
+ border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
254
+ border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
255
+ border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
256
+ border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
257
+ }
258
+ .awsui_root_1xxz5_1fmrq_153:not(#\9):not(.awsui_refresh_1xxz5_1fmrq_258)::after {
259
+ box-shadow: var(--shadow-container-3fh0j3, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
260
+ }
261
+ .awsui_root_1xxz5_1fmrq_153.awsui_refresh_1xxz5_1fmrq_258:not(#\9)::after {
262
+ border-block: solid var(--border-divider-section-width-sznrdy, 1px) var(--color-border-divider-default-ipvpev, #eaeded);
263
+ border-inline: solid var(--border-divider-section-width-sznrdy, 1px) var(--color-border-divider-default-ipvpev, #eaeded);
264
+ }
265
+
266
+ .awsui_header_1xxz5_1fmrq_266:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266) {
267
+ padding-block-end: var(--space-xxs-jnczic, 4px);
268
+ padding-inline-start: var(--space-card-horizontal-0tbxbt, 20px);
269
+ }
270
+ .awsui_header_1xxz5_1fmrq_266:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266):not(.awsui_with-actions_1xxz5_1fmrq_270) {
271
+ padding-block-start: calc(var(--space-card-vertical-nzlc5t, 20px) - var(--space-scaled-xxs-jatbiv, 4px));
272
+ padding-inline-end: var(--space-card-horizontal-0tbxbt, 20px);
273
+ }
274
+ .awsui_header_1xxz5_1fmrq_266:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266).awsui_with-actions_1xxz5_1fmrq_270 {
275
+ padding-block-start: calc(var(--space-card-vertical-nzlc5t, 20px) - var(--space-scaled-xxs-jatbiv, 4px) - var(--space-scaled-xxs-jatbiv, 4px));
276
+ padding-inline-end: calc(var(--space-card-horizontal-0tbxbt, 20px) - var(--space-xxs-jnczic, 4px));
277
+ }
278
+ .awsui_header-inner_1xxz5_1fmrq_278:not(#\9) {
279
+ font-size: var(--font-size-heading-s-yde02v, 16px);
280
+ line-height: var(--line-height-heading-s-j2axh8, 20px);
281
+ letter-spacing: var(--letter-spacing-heading-s-696sxe, normal);
282
+ font-weight: var(--font-weight-heading-s-qxvrar, 700);
283
+ -webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
284
+ -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
285
+ }
286
+
287
+ .awsui_body_1xxz5_1fmrq_287:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266) {
288
+ padding-block-start: var(--space-xxs-jnczic, 4px);
289
+ padding-block-end: var(--space-card-vertical-nzlc5t, 20px);
290
+ padding-inline: var(--space-card-horizontal-0tbxbt, 20px);
291
+ }
292
+ .awsui_body_1xxz5_1fmrq_287.awsui_no-padding_1xxz5_1fmrq_266:not(#\9) {
293
+ border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
294
+ border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
295
+ }
296
+
297
+ .awsui_no-header_1xxz5_1fmrq_297 > .awsui_header_1xxz5_1fmrq_266:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266),
298
+ .awsui_no-content_1xxz5_1fmrq_298 > .awsui_header_1xxz5_1fmrq_266:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266) {
299
+ padding-block-end: 0;
300
+ }
301
+ .awsui_no-header_1xxz5_1fmrq_297 > .awsui_body_1xxz5_1fmrq_287:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266),
302
+ .awsui_no-content_1xxz5_1fmrq_298 > .awsui_body_1xxz5_1fmrq_287:not(#\9):not(.awsui_no-padding_1xxz5_1fmrq_266) {
303
+ padding-block-start: 0;
304
+ }
305
+
306
+ .awsui_selected_1xxz5_1fmrq_306:not(#\9) {
307
+ background-color: var(--color-background-item-selected-v20q4r, #f1faff);
308
+ }
309
+ .awsui_selected_1xxz5_1fmrq_306:not(#\9)::before {
310
+ border-block: var(--border-item-width-acvlhx, 1px) solid var(--color-border-item-selected-vq6ddf, #0073bb);
311
+ border-inline: var(--border-item-width-acvlhx, 1px) solid var(--color-border-item-selected-vq6ddf, #0073bb);
312
+ }
313
+
314
+ .awsui_description_1xxz5_1fmrq_314:not(#\9) {
315
+ color: var(--color-text-heading-secondary-26seqv, #545b64);
316
+ }
@@ -0,0 +1,17 @@
1
+
2
+ // es-module interop with Babel and Typescript
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ module.exports.default = {
5
+ "root": "awsui_root_1xxz5_1fmrq_153",
6
+ "refresh": "awsui_refresh_1xxz5_1fmrq_258",
7
+ "header": "awsui_header_1xxz5_1fmrq_266",
8
+ "no-padding": "awsui_no-padding_1xxz5_1fmrq_266",
9
+ "with-actions": "awsui_with-actions_1xxz5_1fmrq_270",
10
+ "header-inner": "awsui_header-inner_1xxz5_1fmrq_278",
11
+ "body": "awsui_body_1xxz5_1fmrq_287",
12
+ "no-header": "awsui_no-header_1xxz5_1fmrq_297",
13
+ "no-content": "awsui_no-content_1xxz5_1fmrq_298",
14
+ "selected": "awsui_selected_1xxz5_1fmrq_306",
15
+ "description": "awsui_description_1xxz5_1fmrq_314"
16
+ };
17
+
@@ -38,7 +38,7 @@ function ChartPopover({ position = 'right', size = 'medium', fixedWidth = false,
38
38
  }, [container, onDismiss]);
39
39
  // In chart popovers, dismiss button is present when they are pinned, so both values are equivalent.
40
40
  const isPinned = dismissButton;
41
- return (React.createElement("div", { ...baseProps, className: clsx(popoverStyles.root, styles.root, baseProps.className), ref: popoverRef, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseDown: onMouseDown, onBlur: onBlur,
41
+ return (React.createElement("div", { ...baseProps, role: !dismissButton ? 'tooltip' : undefined, className: clsx(popoverStyles.root, styles.root, baseProps.className), ref: popoverRef, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseDown: onMouseDown, onBlur: onBlur,
42
42
  // The tabIndex makes it so that clicking inside popover assigns this element as blur target.
43
43
  // That is necessary in charts to ensure the blur target is within the chart and no cleanup is needed.
44
44
  tabIndex: -1 },
@@ -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;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAE1D,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EAAE,IAAI,EAClB,qBAAqB,EAAE,IAAI,EAC3B,gBAAgB,EAAE,QAAQ,EAC1B,SAAS,EAAE,IAAI;YAEf,oBAAC,WAAW,IACV,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,8BAAM,SAAS,EAAE,WAAW,CAAC,MAAM,IAAG,KAAK,CAAQ,EAC3D,SAAS,EAAE,SAAS,EACpB,eAAe,EAAC,SAAS,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EACjC,OAAO,EAAC,OAAO;gBAEf,6BAAK,SAAS,EAAE,WAAW,CAAC,IAAI,IAAG,QAAQ,CAAO;gBACjD,MAAM,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAG,MAAM,CAAO,CACtE,CACG,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';\n\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { getBaseProps } from '../../base-component';\n\nimport popoverStyles from '../../../popover/styles.css.js';\nimport styles from './styles.css.js';\nimport testClasses from './test-classes/styles.css.js';\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 getTrack?: () => null | 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 minVisibleBlockSize?: 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 /** Popover footer */\n footer?: 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 footer,\n\n title,\n trackRef,\n getTrack,\n trackKey,\n onDismiss,\n container,\n minVisibleBlockSize,\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 const popoverRef = useMergeRefs(popoverObjectRef, ref);\n\n const clickFrameId = useRef<number | null>(null);\n const onMouseDown = () => {\n // Indicate there was a click inside popover recently.\n clickFrameId.current = requestAnimationFrame(() => (clickFrameId.current = null));\n };\n\n useEffect(() => {\n if (popoverObjectRef.current) {\n const document = popoverObjectRef.current.ownerDocument;\n const onDocumentClick = (event: MouseEvent) => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n // Ignore clicks inside the chart as those are handled separately.\n if (clickFrameId.current === null && !nodeContains(container, event.target as Element)) {\n onDismiss(true);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\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 onMouseDown={onMouseDown}\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 getTrack={getTrack}\n trackKey={trackKey}\n minVisibleBlockSize={minVisibleBlockSize}\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 hoverArea={true}\n >\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={<span className={testClasses.header}>{title}</span>}\n onDismiss={onDismiss}\n overflowVisible=\"content\"\n className={styles['popover-body']}\n variant=\"chart\"\n >\n <div className={testClasses.body}>{children}</div>\n {footer && <div className={clsx(testClasses.footer, styles.footer)}>{footer}</div>}\n </PopoverBody>\n </PopoverContainer>\n </div>\n );\n}\n"]}
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;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAA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AC,aAAa,CAAC,GAAI,CAC5C,CACP,EACD,YAAY,EAAE,IAAI,EAClB,qBAAqB,EAAE,IAAI,EAC3B,gBAAgB,EAAE,QAAQ,EAC1B,SAAS,EAAE,IAAI;YAEf,oBAAC,WAAW,IACV,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,8BAAM,SAAS,EAAE,WAAW,CAAC,MAAM,IAAG,KAAK,CAAQ,EAC3D,SAAS,EAAE,SAAS,EACpB,eAAe,EAAC,SAAS,EACzB,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EACjC,OAAO,EAAC,OAAO;gBAEf,6BAAK,SAAS,EAAE,WAAW,CAAC,IAAI,IAAG,QAAQ,CAAO;gBACjD,MAAM,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAG,MAAM,CAAO,CACtE,CACG,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';\n\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { getBaseProps } from '../../base-component';\n\nimport popoverStyles from '../../../popover/styles.css.js';\nimport styles from './styles.css.js';\nimport testClasses from './test-classes/styles.css.js';\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 getTrack?: () => null | 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 minVisibleBlockSize?: 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 /** Popover footer */\n footer?: 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 footer,\n\n title,\n trackRef,\n getTrack,\n trackKey,\n onDismiss,\n container,\n minVisibleBlockSize,\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 const popoverRef = useMergeRefs(popoverObjectRef, ref);\n\n const clickFrameId = useRef<number | null>(null);\n const onMouseDown = () => {\n // Indicate there was a click inside popover recently.\n clickFrameId.current = requestAnimationFrame(() => (clickFrameId.current = null));\n };\n\n useEffect(() => {\n if (popoverObjectRef.current) {\n const document = popoverObjectRef.current.ownerDocument;\n const onDocumentClick = (event: MouseEvent) => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n // Ignore clicks inside the chart as those are handled separately.\n if (clickFrameId.current === null && !nodeContains(container, event.target as Element)) {\n onDismiss(true);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\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 role={!dismissButton ? 'tooltip' : undefined}\n className={clsx(popoverStyles.root, styles.root, baseProps.className)}\n ref={popoverRef}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onMouseDown={onMouseDown}\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 getTrack={getTrack}\n trackKey={trackKey}\n minVisibleBlockSize={minVisibleBlockSize}\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 hoverArea={true}\n >\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={<span className={testClasses.header}>{title}</span>}\n onDismiss={onDismiss}\n overflowVisible=\"content\"\n className={styles['popover-body']}\n variant=\"chart\"\n >\n <div className={testClasses.body}>{children}</div>\n {footer && <div className={clsx(testClasses.footer, styles.footer)}>{footer}</div>}\n </PopoverBody>\n </PopoverContainer>\n </div>\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (ed206118)";
3
- export var GIT_SHA = "ed206118";
2
+ export var PACKAGE_VERSION = "3.0.0 (62efe831)";
3
+ export var GIT_SHA = "62efe831";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "core";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (ed206118)",
4
- "GIT_SHA": "ed206118",
3
+ "PACKAGE_VERSION": "3.0.0 (62efe831)",
4
+ "GIT_SHA": "62efe831",
5
5
  "THEME": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false
@@ -7,11 +7,6 @@ declare class CardSectionWrapper extends ComponentWrapper {
7
7
  findContent(): ElementWrapper | null;
8
8
  }
9
9
  declare class CardWrapper extends ComponentWrapper {
10
- /**
11
- * Note: for integration/selector-based tests you should add `1` to the expected section index,
12
- * for example, `.findSections().get(sectionIndex+1)`. The `get` call in this context
13
- * is '2-indexed', that is, the first section in a card has an index of `2`.
14
- */
15
10
  findSections(): Array<CardSectionWrapper>;
16
11
  findCardHeader(): ElementWrapper | null;
17
12
  findSelectionArea(): ElementWrapper | null;
@@ -18,11 +18,6 @@ class CardSectionWrapper extends dom_1.ComponentWrapper {
18
18
  }
19
19
  }
20
20
  class CardWrapper extends dom_1.ComponentWrapper {
21
- /**
22
- * Note: for integration/selector-based tests you should add `1` to the expected section index,
23
- * for example, `.findSections().get(sectionIndex+1)`. The `get` call in this context
24
- * is '2-indexed', that is, the first section in a card has an index of `2`.
25
- */
26
21
  findSections() {
27
22
  return this.findAllByClassName(styles_selectors_js_1.default.section).map(c => new CardSectionWrapper(c.getElement()));
28
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/cards/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAE/C,4EAAwD;AACxD,4EAA6D;AAE7D,MAAM,kBAAmB,SAAQ,sBAAgB;IAC/C,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,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IAC9C,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,kBAAkB,CAAC,EAAE,EAAE,oBAAiB,CAAC,CAAC;IACtF,CAAC;IAED,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,mBAAmB,CAAC,EAAE,EAAE,gCAA4B,CAAC,CAAC;IAClG,CAAC;;AAlDM,yBAAY,GAAW,6BAAM,CAAC,IAAI,AAAtB,CAAuB;kBADvB,YAAY"}
@@ -7,11 +7,6 @@ declare class CardSectionWrapper extends ComponentWrapper {
7
7
  findContent(): ElementWrapper;
8
8
  }
9
9
  declare class CardWrapper extends ComponentWrapper {
10
- /**
11
- * Note: for integration/selector-based tests you should add `1` to the expected section index,
12
- * for example, `.findSections().get(sectionIndex+1)`. The `get` call in this context
13
- * is '2-indexed', that is, the first section in a card has an index of `2`.
14
- */
15
10
  findSections(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<CardSectionWrapper>;
16
11
  findCardHeader(): ElementWrapper;
17
12
  findSelectionArea(): ElementWrapper;
@@ -18,11 +18,6 @@ class CardSectionWrapper extends selectors_1.ComponentWrapper {
18
18
  }
19
19
  }
20
20
  class CardWrapper extends selectors_1.ComponentWrapper {
21
- /**
22
- * Note: for integration/selector-based tests you should add `1` to the expected section index,
23
- * for example, `.findSections().get(sectionIndex+1)`. The `get` call in this context
24
- * is '2-indexed', that is, the first section in a card has an index of `2`.
25
- */
26
21
  findSections() {
27
22
  return this.findAllByClassName(styles_selectors_js_1.default.section).map(c => new CardSectionWrapper(c.getElement()));
28
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/cards/index.ts"],"names":[],"mapp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AC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACpG,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IACD,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,kBAAkB,CAAC,EAAE,EAAE,oBAAiB,CAAC,CAAC;IACtF,CAAC;IACD,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,mBAAmB,CAAC,EAAE,EAAE,gCAA4B,CAAC,CAAC;IAClG,CAAC;;AAzCM,yBAAY,GAAW,6BAAM,CAAC,IAAI,AAAtB,CAAuB;kBADvB,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/cards/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAC/C,4EAAwD;AACxD,4EAA6D;AAC7D,MAAM,kBAAmB,SAA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EAAE,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IACD,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,kBAAkB,CAAC,EAAE,EAAE,oBAAiB,CAAC,CAAC;IACtF,CAAC;IACD,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,mBAAmB,CAAC,EAAE,EAAE,gCAA4B,CAAC,CAAC;IAClG,CAAC;;AAzCM,yBAAY,GAAW,6BAAM,CAAC,IAAI,AAAtB,CAAuB;kBADvB,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudscape-design/components-themeable",
3
- "version": "3.0.1199",
3
+ "version": "3.0.1201",
4
4
  "files": [
5
5
  "lib"
6
6
  ],