@cloudscape-design/components-themeable 3.0.1255 → 3.0.1257
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.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +152 -142
- package/lib/internal/scss/token/mixins.scss +11 -6
- package/lib/internal/scss/token/styles.scss +28 -10
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +50 -50
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/styles.css.js +22 -22
- package/lib/internal/template/button/styles.scoped.css +256 -256
- package/lib/internal/template/button/styles.selectors.js +22 -22
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +11 -11
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +27 -27
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +187 -187
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +73 -73
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/input/styles.css.js +13 -13
- package/lib/internal/template/input/styles.scoped.css +74 -74
- package/lib/internal/template/input/styles.selectors.js +13 -13
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.d.ts +3 -2
- package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.js +5 -3
- package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
- package/lib/internal/template/internal/components/dropdown/index.d.ts +1 -1
- package/lib/internal/template/internal/components/dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown/index.js +10 -7
- package/lib/internal/template/internal/components/dropdown/index.js.map +1 -1
- package/lib/internal/template/internal/components/dropdown/interfaces.d.ts +16 -0
- package/lib/internal/template/internal/components/dropdown/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
- package/lib/internal/template/internal/components/dropdown/styles.scoped.css +39 -39
- package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +10 -0
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +151 -141
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/link/styles.css.js +20 -20
- package/lib/internal/template/link/styles.scoped.css +103 -103
- package/lib/internal/template/link/styles.selectors.js +20 -20
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts +1 -1
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js +13 -5
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
- package/lib/internal/template/modal/styles.css.js +31 -31
- package/lib/internal/template/modal/styles.scoped.css +48 -48
- package/lib/internal/template/modal/styles.selectors.js +31 -31
- package/lib/internal/template/progress-bar/styles.css.js +18 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +48 -48
- package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
- package/lib/internal/template/prompt-input/styles.css.js +17 -17
- package/lib/internal/template/prompt-input/styles.scoped.css +79 -79
- package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +165 -165
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +39 -39
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +76 -76
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +66 -66
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +5 -5
- package/lib/internal/template/textarea/styles.scoped.css +45 -45
- package/lib/internal/template/textarea/styles.selectors.js +5 -5
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +23 -23
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/interfaces.d.ts +37 -0
- package/lib/internal/template/token/interfaces.d.ts.map +1 -1
- package/lib/internal/template/token/interfaces.js.map +1 -1
- package/lib/internal/template/token/internal.d.ts.map +1 -1
- package/lib/internal/template/token/internal.js +3 -1
- package/lib/internal/template/token/internal.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.d.ts +3 -0
- package/lib/internal/template/token/styles.d.ts.map +1 -0
- package/lib/internal/template/token/styles.js +32 -0
- package/lib/internal/template/token/styles.js.map +1 -0
- package/lib/internal/template/token/styles.scoped.css +51 -45
- package/lib/internal/template/token/styles.selectors.js +14 -14
- 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
|
-
.
|
|
145
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9) {
|
|
146
146
|
border-collapse: separate;
|
|
147
147
|
border-spacing: 0;
|
|
148
148
|
box-sizing: border-box;
|
|
@@ -174,10 +174,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
174
174
|
-moz-osx-font-smoothing: auto;
|
|
175
175
|
display: inline;
|
|
176
176
|
white-space: inherit;
|
|
177
|
-
--awsui-style-focus-ring-box-shadow-
|
|
177
|
+
--awsui-style-focus-ring-box-shadow-hzjhvz: 0 0 0 var(--awsui-style-focus-ring-border-width-hzjhvz, var(--border-link-focus-ring-shadow-spread-woh62o, 0px)) var(--awsui-style-focus-ring-border-color-hzjhvz, var(--color-border-item-focused-r5f6xl, #0073bb));
|
|
178
178
|
text-underline-offset: 0.25em;
|
|
179
179
|
text-decoration-thickness: 1px;
|
|
180
|
-
color: var(--awsui-style-color-default-
|
|
180
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
181
181
|
font-weight: inherit;
|
|
182
182
|
letter-spacing: normal;
|
|
183
183
|
text-decoration-line: none;
|
|
@@ -188,33 +188,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
188
188
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
189
189
|
}
|
|
190
190
|
@media (prefers-reduced-motion: reduce) {
|
|
191
|
-
.
|
|
191
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9) {
|
|
192
192
|
animation: none;
|
|
193
193
|
transition: none;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
.awsui-motion-disabled .
|
|
196
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145:not(#\9) {
|
|
197
197
|
animation: none;
|
|
198
198
|
transition: none;
|
|
199
199
|
}
|
|
200
|
-
.
|
|
200
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9):hover {
|
|
201
201
|
cursor: pointer;
|
|
202
|
-
color: var(--awsui-style-color-hover-
|
|
202
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9):focus {
|
|
205
205
|
outline: none;
|
|
206
206
|
}
|
|
207
|
-
.
|
|
208
|
-
color: var(--awsui-style-color-active-
|
|
207
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9):active {
|
|
208
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_link_4c84z_1ecx0_145:not(#\9):active, .awsui_link_4c84z_1ecx0_145:not(#\9):focus, .awsui_link_4c84z_1ecx0_145:not(#\9):hover {
|
|
211
211
|
text-decoration-line: underline;
|
|
212
212
|
text-decoration-color: currentColor;
|
|
213
213
|
}
|
|
214
|
-
.
|
|
214
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9) {
|
|
215
215
|
-webkit-font-smoothing: inherit;
|
|
216
216
|
-moz-osx-font-smoothing: inherit;
|
|
217
|
-
color: var(--awsui-style-color-default-
|
|
217
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
218
218
|
font-weight: inherit;
|
|
219
219
|
letter-spacing: normal;
|
|
220
220
|
text-decoration-line: none;
|
|
@@ -225,31 +225,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
225
225
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
226
226
|
}
|
|
227
227
|
@media (prefers-reduced-motion: reduce) {
|
|
228
|
-
.
|
|
228
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9) {
|
|
229
229
|
animation: none;
|
|
230
230
|
transition: none;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
.awsui-motion-disabled .
|
|
233
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9) {
|
|
234
234
|
animation: none;
|
|
235
235
|
transition: none;
|
|
236
236
|
}
|
|
237
|
-
.
|
|
237
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):hover {
|
|
238
238
|
cursor: pointer;
|
|
239
|
-
color: var(--awsui-style-color-hover-
|
|
239
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):focus {
|
|
242
242
|
outline: none;
|
|
243
243
|
}
|
|
244
|
-
.
|
|
245
|
-
color: var(--awsui-style-color-active-
|
|
244
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):active {
|
|
245
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
246
246
|
}
|
|
247
|
-
.
|
|
247
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-secondary_4c84z_1ecx0_212:not(#\9):hover {
|
|
248
248
|
text-decoration-line: underline;
|
|
249
249
|
text-decoration-color: currentColor;
|
|
250
250
|
}
|
|
251
|
-
.
|
|
252
|
-
color: var(--awsui-style-color-default-
|
|
251
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9) {
|
|
252
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
253
253
|
font-weight: inherit;
|
|
254
254
|
letter-spacing: normal;
|
|
255
255
|
text-decoration-line: underline;
|
|
@@ -260,33 +260,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
260
260
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
261
261
|
}
|
|
262
262
|
@media (prefers-reduced-motion: reduce) {
|
|
263
|
-
.
|
|
263
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9) {
|
|
264
264
|
animation: none;
|
|
265
265
|
transition: none;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
.awsui-motion-disabled .
|
|
268
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9) {
|
|
269
269
|
animation: none;
|
|
270
270
|
transition: none;
|
|
271
271
|
}
|
|
272
|
-
.
|
|
272
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):hover {
|
|
273
273
|
cursor: pointer;
|
|
274
|
-
color: var(--awsui-style-color-hover-
|
|
274
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
275
275
|
}
|
|
276
|
-
.
|
|
276
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):focus {
|
|
277
277
|
outline: none;
|
|
278
278
|
}
|
|
279
|
-
.
|
|
280
|
-
color: var(--awsui-style-color-active-
|
|
279
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):active {
|
|
280
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-primary_4c84z_1ecx0_247:not(#\9):hover {
|
|
283
283
|
text-decoration-line: underline;
|
|
284
284
|
text-decoration-color: currentColor;
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9) {
|
|
287
287
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
288
288
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
289
|
-
color: var(--awsui-style-color-default-
|
|
289
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
290
290
|
font-weight: 700;
|
|
291
291
|
letter-spacing: 0.005em;
|
|
292
292
|
text-decoration-line: none;
|
|
@@ -297,31 +297,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
297
297
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
298
298
|
}
|
|
299
299
|
@media (prefers-reduced-motion: reduce) {
|
|
300
|
-
.
|
|
300
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9) {
|
|
301
301
|
animation: none;
|
|
302
302
|
transition: none;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
.awsui-motion-disabled .
|
|
305
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9) {
|
|
306
306
|
animation: none;
|
|
307
307
|
transition: none;
|
|
308
308
|
}
|
|
309
|
-
.
|
|
309
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):hover {
|
|
310
310
|
cursor: pointer;
|
|
311
|
-
color: var(--awsui-style-color-hover-
|
|
311
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
312
312
|
}
|
|
313
|
-
.
|
|
313
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):focus {
|
|
314
314
|
outline: none;
|
|
315
315
|
}
|
|
316
|
-
.
|
|
317
|
-
color: var(--awsui-style-color-active-
|
|
316
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):active {
|
|
317
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
318
318
|
}
|
|
319
|
-
.
|
|
319
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-info_4c84z_1ecx0_280:not(#\9):hover {
|
|
320
320
|
text-decoration-line: underline;
|
|
321
321
|
text-decoration-color: var(--color-text-link-button-underline-hover-s0fj6r, currentColor);
|
|
322
322
|
}
|
|
323
|
-
.
|
|
324
|
-
color: var(--awsui-style-color-default-
|
|
323
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9) {
|
|
324
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
325
325
|
font-weight: var(--font-box-value-large-weight-zc1blz, 300);
|
|
326
326
|
text-decoration-line: underline;
|
|
327
327
|
text-decoration-color: currentColor;
|
|
@@ -331,33 +331,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
331
331
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
332
332
|
}
|
|
333
333
|
@media (prefers-reduced-motion: reduce) {
|
|
334
|
-
.
|
|
334
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9) {
|
|
335
335
|
animation: none;
|
|
336
336
|
transition: none;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
.awsui-motion-disabled .
|
|
339
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9) {
|
|
340
340
|
animation: none;
|
|
341
341
|
transition: none;
|
|
342
342
|
}
|
|
343
|
-
.
|
|
343
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):hover {
|
|
344
344
|
cursor: pointer;
|
|
345
|
-
color: var(--awsui-style-color-hover-
|
|
345
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
346
346
|
}
|
|
347
|
-
.
|
|
347
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):focus {
|
|
348
348
|
outline: none;
|
|
349
349
|
}
|
|
350
|
-
.
|
|
351
|
-
color: var(--awsui-style-color-active-
|
|
350
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):active {
|
|
351
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
352
352
|
}
|
|
353
|
-
.
|
|
353
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-value-large_4c84z_1ecx0_315:not(#\9):hover {
|
|
354
354
|
text-decoration-line: underline;
|
|
355
355
|
text-decoration-color: currentColor;
|
|
356
356
|
}
|
|
357
|
-
.
|
|
357
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9) {
|
|
358
358
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
359
359
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
360
|
-
color: var(--awsui-style-color-default-
|
|
360
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-interactive-default-qwoe3g, #545b64));
|
|
361
361
|
font-weight: 700;
|
|
362
362
|
letter-spacing: 0.005em;
|
|
363
363
|
text-decoration-line: none;
|
|
@@ -368,31 +368,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
368
368
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
369
369
|
}
|
|
370
370
|
@media (prefers-reduced-motion: reduce) {
|
|
371
|
-
.
|
|
371
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9) {
|
|
372
372
|
animation: none;
|
|
373
373
|
transition: none;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
.awsui-motion-disabled .
|
|
376
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9) {
|
|
377
377
|
animation: none;
|
|
378
378
|
transition: none;
|
|
379
379
|
}
|
|
380
|
-
.
|
|
380
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):hover {
|
|
381
381
|
cursor: pointer;
|
|
382
|
-
color: var(--awsui-style-color-hover-
|
|
382
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-interactive-hover-bu4gls, #16191f));
|
|
383
383
|
}
|
|
384
|
-
.
|
|
384
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):focus {
|
|
385
385
|
outline: none;
|
|
386
386
|
}
|
|
387
|
-
.
|
|
388
|
-
color: var(--awsui-style-color-active-
|
|
387
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):active {
|
|
388
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-interactive-active-c44vdq, #16191f));
|
|
389
389
|
}
|
|
390
|
-
.
|
|
390
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-top-navigation_4c84z_1ecx0_347:not(#\9):hover {
|
|
391
391
|
text-decoration-line: underline;
|
|
392
392
|
text-decoration-color: transparent;
|
|
393
393
|
}
|
|
394
|
-
.
|
|
395
|
-
color: var(--awsui-style-color-default-
|
|
394
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9) {
|
|
395
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
396
396
|
font-weight: var(--font-link-button-weight-bnpz8h, 400);
|
|
397
397
|
letter-spacing: var(--font-link-button-letter-spacing-yobz7z, normal);
|
|
398
398
|
text-decoration-line: underline;
|
|
@@ -403,33 +403,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
403
403
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
404
404
|
}
|
|
405
405
|
@media (prefers-reduced-motion: reduce) {
|
|
406
|
-
.
|
|
406
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9) {
|
|
407
407
|
animation: none;
|
|
408
408
|
transition: none;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
.awsui-motion-disabled .
|
|
411
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9) {
|
|
412
412
|
animation: none;
|
|
413
413
|
transition: none;
|
|
414
414
|
}
|
|
415
|
-
.
|
|
415
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):hover {
|
|
416
416
|
cursor: pointer;
|
|
417
|
-
color: var(--awsui-style-color-hover-
|
|
417
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
418
418
|
}
|
|
419
|
-
.
|
|
419
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):focus {
|
|
420
420
|
outline: none;
|
|
421
421
|
}
|
|
422
|
-
.
|
|
423
|
-
color: var(--awsui-style-color-active-
|
|
422
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):active {
|
|
423
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
424
424
|
}
|
|
425
|
-
.
|
|
425
|
+
.awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_variant-recovery_4c84z_1ecx0_382:not(#\9):hover {
|
|
426
426
|
text-decoration-line: underline;
|
|
427
427
|
text-decoration-color: var(--color-text-link-button-underline-hover-s0fj6r, currentColor);
|
|
428
428
|
}
|
|
429
|
-
.
|
|
429
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9) {
|
|
430
430
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
431
431
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
432
|
-
color: var(--awsui-style-color-default-
|
|
432
|
+
color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-button-normal-default-dm02c2, #545b64));
|
|
433
433
|
font-weight: 700;
|
|
434
434
|
letter-spacing: var(--font-button-letter-spacing-9h7rbb, 0.25px);
|
|
435
435
|
text-decoration-line: none;
|
|
@@ -440,106 +440,106 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
440
440
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
441
441
|
}
|
|
442
442
|
@media (prefers-reduced-motion: reduce) {
|
|
443
|
-
.
|
|
443
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9) {
|
|
444
444
|
animation: none;
|
|
445
445
|
transition: none;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
.awsui-motion-disabled .
|
|
448
|
+
.awsui-motion-disabled .awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9) {
|
|
449
449
|
animation: none;
|
|
450
450
|
transition: none;
|
|
451
451
|
}
|
|
452
|
-
.
|
|
452
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):hover {
|
|
453
453
|
cursor: pointer;
|
|
454
|
-
color: var(--awsui-style-color-hover-
|
|
454
|
+
color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-button-normal-hover-ldeaqo, #16191f));
|
|
455
455
|
}
|
|
456
|
-
.
|
|
456
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):focus {
|
|
457
457
|
outline: none;
|
|
458
458
|
}
|
|
459
|
-
.
|
|
460
|
-
color: var(--awsui-style-color-active-
|
|
459
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):active {
|
|
460
|
+
color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-button-normal-active-q28r86, #16191f));
|
|
461
461
|
}
|
|
462
|
-
.
|
|
462
|
+
.awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):active, .awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):focus, .awsui_link_4c84z_1ecx0_145.awsui_button_4c84z_1ecx0_415:not(#\9):hover {
|
|
463
463
|
text-decoration-line: underline;
|
|
464
464
|
text-decoration-color: transparent;
|
|
465
465
|
}
|
|
466
|
-
.
|
|
466
|
+
.awsui_link_4c84z_1ecx0_145.awsui_color-inverted_4c84z_1ecx0_450:not(#\9) {
|
|
467
467
|
color: var(--color-text-notification-default-fmebm4, #fafafa);
|
|
468
468
|
}
|
|
469
|
-
.
|
|
469
|
+
.awsui_link_4c84z_1ecx0_145.awsui_color-inverted_4c84z_1ecx0_450:not(#\9):not(.awsui_button_4c84z_1ecx0_415) {
|
|
470
470
|
text-decoration-line: underline;
|
|
471
471
|
text-decoration-color: currentColor;
|
|
472
472
|
}
|
|
473
|
-
.
|
|
473
|
+
.awsui_link_4c84z_1ecx0_145.awsui_color-inverted_4c84z_1ecx0_450:not(#\9):hover {
|
|
474
474
|
color: var(--color-text-link-inverted-hover-7jk1d1, #fafafa);
|
|
475
475
|
}
|
|
476
|
-
body[data-awsui-focus-visible=true] .
|
|
476
|
+
body[data-awsui-focus-visible=true] .awsui_link_4c84z_1ecx0_145:not(#\9):focus {
|
|
477
477
|
outline: thin dotted;
|
|
478
478
|
outline: var(--border-link-focus-ring-outline-c5423y, 5px auto Highlight);
|
|
479
479
|
outline-offset: 2px;
|
|
480
|
-
outline-color: var(--awsui-style-focus-ring-border-color-
|
|
481
|
-
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-
|
|
482
|
-
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-
|
|
483
|
-
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-
|
|
484
|
-
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-
|
|
485
|
-
box-shadow: var(--awsui-style-focus-ring-box-shadow-
|
|
486
|
-
}
|
|
487
|
-
.
|
|
480
|
+
outline-color: var(--awsui-style-focus-ring-border-color-hzjhvz, var(--color-border-item-focused-r5f6xl, #0073bb));
|
|
481
|
+
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-hzjhvz, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
482
|
+
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-hzjhvz, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
483
|
+
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-hzjhvz, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
484
|
+
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-hzjhvz, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
485
|
+
box-shadow: var(--awsui-style-focus-ring-box-shadow-hzjhvz);
|
|
486
|
+
}
|
|
487
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-body-s_4c84z_1ecx0_471:not(#\9) {
|
|
488
488
|
font-size: var(--font-size-body-s-psgqn2, 12px);
|
|
489
489
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
490
490
|
letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
|
|
491
491
|
text-underline-offset: 0.3em;
|
|
492
492
|
text-decoration-thickness: 1px;
|
|
493
493
|
}
|
|
494
|
-
.
|
|
494
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-body-m_4c84z_1ecx0_478:not(#\9) {
|
|
495
495
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
496
496
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
497
497
|
text-underline-offset: 0.25em;
|
|
498
498
|
text-decoration-thickness: 1px;
|
|
499
499
|
}
|
|
500
|
-
.
|
|
500
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-heading-xs_4c84z_1ecx0_484:not(#\9) {
|
|
501
501
|
font-size: var(--font-size-heading-xs-c20ika, 16px);
|
|
502
502
|
line-height: var(--line-height-heading-xs-fuzanp, 20px);
|
|
503
503
|
letter-spacing: var(--letter-spacing-heading-xs-tefhgo, normal);
|
|
504
504
|
text-underline-offset: 0.25em;
|
|
505
505
|
text-decoration-thickness: 1px;
|
|
506
506
|
}
|
|
507
|
-
.
|
|
507
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-heading-s_4c84z_1ecx0_491:not(#\9) {
|
|
508
508
|
font-size: var(--font-size-heading-s-yde02v, 16px);
|
|
509
509
|
line-height: var(--line-height-heading-s-j2axh8, 20px);
|
|
510
510
|
letter-spacing: var(--letter-spacing-heading-s-696sxe, normal);
|
|
511
511
|
text-underline-offset: 0.3em;
|
|
512
512
|
text-decoration-thickness: 1px;
|
|
513
513
|
}
|
|
514
|
-
.
|
|
514
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-heading-m_4c84z_1ecx0_498:not(#\9) {
|
|
515
515
|
font-size: var(--font-size-heading-m-56jjln, 18px);
|
|
516
516
|
line-height: var(--line-height-heading-m-irezqt, 22px);
|
|
517
517
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
518
518
|
text-underline-offset: 0.25em;
|
|
519
519
|
text-decoration-thickness: 1px;
|
|
520
520
|
}
|
|
521
|
-
.
|
|
521
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-heading-l_4c84z_1ecx0_505:not(#\9) {
|
|
522
522
|
font-size: var(--font-size-heading-l-qgg2za, 18px);
|
|
523
523
|
line-height: var(--line-height-heading-l-vhgtnq, 22px);
|
|
524
524
|
letter-spacing: var(--letter-spacing-heading-l-spdx5v, normal);
|
|
525
525
|
text-underline-offset: 0.25em;
|
|
526
526
|
text-decoration-thickness: 1px;
|
|
527
527
|
}
|
|
528
|
-
.
|
|
528
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-heading-xl_4c84z_1ecx0_512:not(#\9) {
|
|
529
529
|
font-size: var(--font-size-heading-xl-w5di2k, 28px);
|
|
530
530
|
line-height: var(--line-height-heading-xl-vs1f23, 36px);
|
|
531
531
|
letter-spacing: var(--letter-spacing-heading-xl-33zwds, normal);
|
|
532
532
|
text-underline-offset: 0.25em;
|
|
533
533
|
text-decoration-thickness: 1px;
|
|
534
534
|
}
|
|
535
|
-
.
|
|
535
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-display-l_4c84z_1ecx0_519:not(#\9) {
|
|
536
536
|
font-size: var(--font-size-display-l-h1h1h9, 44px);
|
|
537
537
|
line-height: var(--line-height-display-l-3zghmm, 56px);
|
|
538
538
|
letter-spacing: var(--letter-spacing-display-l-dniym1, normal);
|
|
539
539
|
text-underline-offset: 0.25em;
|
|
540
540
|
text-decoration-thickness: 2px;
|
|
541
541
|
}
|
|
542
|
-
.
|
|
542
|
+
.awsui_link_4c84z_1ecx0_145.awsui_font-size-inherit_4c84z_1ecx0_526:not(#\9) {
|
|
543
543
|
font-size: inherit;
|
|
544
544
|
line-height: inherit;
|
|
545
545
|
letter-spacing: inherit;
|
|
@@ -547,10 +547,10 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1js89_145:not(#\9):focus {
|
|
|
547
547
|
text-decoration-thickness: 1px;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
.awsui_icon-
|
|
550
|
+
.awsui_icon-wrapper_4c84z_1ecx0_534:not(#\9) {
|
|
551
551
|
white-space: nowrap;
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
.
|
|
554
|
+
.awsui_icon_4c84z_1ecx0_534:not(#\9) {
|
|
555
555
|
display: inline-block;
|
|
556
556
|
}
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"link": "
|
|
6
|
-
"variant-secondary": "awsui_variant-
|
|
7
|
-
"variant-primary": "awsui_variant-
|
|
8
|
-
"variant-info": "awsui_variant-
|
|
9
|
-
"variant-value-large": "awsui_variant-value-
|
|
10
|
-
"variant-top-navigation": "awsui_variant-top-
|
|
11
|
-
"variant-recovery": "awsui_variant-
|
|
12
|
-
"button": "
|
|
13
|
-
"color-inverted": "awsui_color-
|
|
14
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
15
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
16
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
17
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
18
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
19
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
20
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
21
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
22
|
-
"font-size-inherit": "awsui_font-size-
|
|
23
|
-
"icon-wrapper": "awsui_icon-
|
|
24
|
-
"icon": "
|
|
5
|
+
"link": "awsui_link_4c84z_1ecx0_145",
|
|
6
|
+
"variant-secondary": "awsui_variant-secondary_4c84z_1ecx0_212",
|
|
7
|
+
"variant-primary": "awsui_variant-primary_4c84z_1ecx0_247",
|
|
8
|
+
"variant-info": "awsui_variant-info_4c84z_1ecx0_280",
|
|
9
|
+
"variant-value-large": "awsui_variant-value-large_4c84z_1ecx0_315",
|
|
10
|
+
"variant-top-navigation": "awsui_variant-top-navigation_4c84z_1ecx0_347",
|
|
11
|
+
"variant-recovery": "awsui_variant-recovery_4c84z_1ecx0_382",
|
|
12
|
+
"button": "awsui_button_4c84z_1ecx0_415",
|
|
13
|
+
"color-inverted": "awsui_color-inverted_4c84z_1ecx0_450",
|
|
14
|
+
"font-size-body-s": "awsui_font-size-body-s_4c84z_1ecx0_471",
|
|
15
|
+
"font-size-body-m": "awsui_font-size-body-m_4c84z_1ecx0_478",
|
|
16
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_1ecx0_484",
|
|
17
|
+
"font-size-heading-s": "awsui_font-size-heading-s_4c84z_1ecx0_491",
|
|
18
|
+
"font-size-heading-m": "awsui_font-size-heading-m_4c84z_1ecx0_498",
|
|
19
|
+
"font-size-heading-l": "awsui_font-size-heading-l_4c84z_1ecx0_505",
|
|
20
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_1ecx0_512",
|
|
21
|
+
"font-size-display-l": "awsui_font-size-display-l_4c84z_1ecx0_519",
|
|
22
|
+
"font-size-inherit": "awsui_font-size-inherit_4c84z_1ecx0_526",
|
|
23
|
+
"icon-wrapper": "awsui_icon-wrapper_4c84z_1ecx0_534",
|
|
24
|
+
"icon": "awsui_icon_4c84z_1ecx0_534"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -17,6 +17,6 @@ export interface UseMouseHoverProps<T> {
|
|
|
17
17
|
export declare function useMouseHover<T>({ plotRef, popoverRef, scaledSeries, barGroups, highlightPoint, highlightGroup, clearHighlightedSeries, isGroupNavigation, isHandlersDisabled, highlightX, }: UseMouseHoverProps<T>): {
|
|
18
18
|
onSVGMouseMove: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
19
19
|
onSVGMouseOut: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
20
|
-
onPopoverLeave: (
|
|
20
|
+
onPopoverLeave: () => void;
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=use-mouse-hover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-mouse-hover.d.ts","sourceRoot":"","sources":["../../../../src/mixed-line-bar-chart/hooks/use-mouse-hover.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAQpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACvC,UAAU,EAAE,KAAK,CAAC,SAA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AAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CACjE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,OAAO,EACP,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,GACX,EAAE,kBAAkB,CAAC,CAAC,CAAC;4BAyES,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC;2BAUzC,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC;;EA8BvE"}
|
|
@@ -76,7 +76,14 @@ export function useMouseHover({ plotRef, popoverRef, scaledSeries, barGroups, hi
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
const onSVGMouseOut = (event) => {
|
|
79
|
-
|
|
79
|
+
var _a;
|
|
80
|
+
if (isHandlersDisabled) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
// If the mouse is moving into the popover or its container (transition wrapper),
|
|
84
|
+
// let onPopoverLeave handle cleanup.
|
|
85
|
+
const popoverContainer = (_a = popoverRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
86
|
+
if (event.relatedTarget && popoverContainer && nodeContains(popoverContainer, event.relatedTarget)) {
|
|
80
87
|
return;
|
|
81
88
|
}
|
|
82
89
|
if (!nodeContains(plotRef.current.svg, event.relatedTarget) ||
|
|
@@ -85,11 +92,12 @@ export function useMouseHover({ plotRef, popoverRef, scaledSeries, barGroups, hi
|
|
|
85
92
|
clearHighlightedSeries();
|
|
86
93
|
}
|
|
87
94
|
};
|
|
88
|
-
const onPopoverLeave = (
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
clearHighlightedSeries();
|
|
95
|
+
const onPopoverLeave = () => {
|
|
96
|
+
if (isHandlersDisabled) {
|
|
97
|
+
return;
|
|
92
98
|
}
|
|
99
|
+
highlightX(null);
|
|
100
|
+
clearHighlightedSeries();
|
|
93
101
|
};
|
|
94
102
|
return { onSVGMouseMove, onSVGMouseOut, onPopoverLeave };
|
|
95
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-mouse-hover.js","sourceRoot":"","sources":["../../../../src/mixed-line-bar-chart/hooks/use-mouse-hover.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAMxE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAe5B,MAAM,UAAU,aAAa,CAAI,EAC/B,OAAO,EACP,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,GACY;IACtB,MAAM,kBAAkB,GAAG,CAAC,KAA+C,EAAE,EAAE;;QAC7E,IAAI,MAAA,UAAU,CAAC,OAAO,0CAAE,UAAU,EAAE,CAAC;YACnC,MAAM,eAAe,GAAI,UAAU,CAAC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C;QAED,IACE,CAAC,YAAY,CAAC,OAAO,CAAC,OAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,aAAa,CAAC;YACxD,CAAC,KAAK,CAAC,aAAa,IAAK,KAAK,CAAC,aAAyB,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAC3F,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,sBAAsB,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,IAAI,kBAAkB,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QACD,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC;AAC3D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\n\nimport { ChartPlotRef } from '../../internal/components/chart-plot';\nimport { VerticalMarkerX } from '../interfaces';\nimport { ScaledBarGroup } from '../make-scaled-bar-groups';\nimport { ScaledPoint } from '../make-scaled-series';\nimport { isYThreshold } from '../utils';\n\nimport styles from '../styles.css.js';\n\nconst MAX_HOVER_MARGIN = 6;\nconst POPOVER_DEADZONE = 12;\n\nexport interface UseMouseHoverProps<T> {\n plotRef: React.RefObject<ChartPlotRef>;\n popoverRef: React.RefObject<HTMLElement>;\n scaledSeries: ReadonlyArray<ScaledPoint<T>>;\n barGroups: ScaledBarGroup<T>[];\n highlightPoint: (point: ScaledPoint<T> | null) => void;\n highlightGroup: (groupIndex: number) => void;\n clearHighlightedSeries: () => void;\n isGroupNavigation: boolean;\n isHandlersDisabled: boolean;\n highlightX: (verticalMarker: VerticalMarkerX<T> | null) => void;\n}\n\nexport function useMouseHover<T>({\n plotRef,\n popoverRef,\n scaledSeries,\n barGroups,\n highlightPoint,\n highlightGroup,\n clearHighlightedSeries,\n isGroupNavigation,\n isHandlersDisabled,\n highlightX,\n}: UseMouseHoverProps<T>) {\n const isMouseOverPopover = (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n if (popoverRef.current?.firstChild) {\n const popoverPosition = (popoverRef.current.firstChild as HTMLElement).getBoundingClientRect();\n if (\n event.clientX > popoverPosition.x - POPOVER_DEADZONE &&\n event.clientX < popoverPosition.x + popoverPosition.width + POPOVER_DEADZONE &&\n event.clientY > popoverPosition.y - POPOVER_DEADZONE &&\n event.clientY < popoverPosition.y + popoverPosition.height + POPOVER_DEADZONE\n ) {\n return true;\n }\n }\n return false;\n };\n\n const onSeriesMouseMove = (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n const svgRect = (event.target as SVGElement).getBoundingClientRect();\n const offsetX = event.clientX - svgRect.left;\n\n const closestX = scaledSeries\n .map(v => v.x)\n .reduce((prev, curr) => (Math.abs(curr - offsetX) < Math.abs(prev - offsetX) ? curr : prev), -Infinity);\n\n if (isFinite(closestX)) {\n const offsetY = event.clientY - svgRect.top;\n const closestY = scaledSeries\n .filter(v => v.x === closestX || isYThreshold(v.series))\n .map(v => v.y)\n .reduce((prev, curr) => (Math.abs(curr - offsetY) < Math.abs(prev - offsetY) ? curr : prev), -Infinity);\n\n if (\n isFinite(closestY) &&\n Math.abs(offsetX - closestX) < MAX_HOVER_MARGIN &&\n Math.abs(offsetY - closestY) < MAX_HOVER_MARGIN\n ) {\n const [{ color, datum, series }] = scaledSeries.filter(\n s => (s.x === closestX || isYThreshold(s.series)) && s.y === closestY\n );\n highlightPoint({ x: closestX, y: closestY, color, datum, series });\n } else {\n let datumX = null;\n for (const point of scaledSeries) {\n if (point.x === closestX) {\n datumX = point.datum?.x ?? null;\n break;\n }\n }\n highlightX({ scaledX: closestX, label: datumX });\n }\n }\n };\n\n const onGroupMouseMove = (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n const svgRect = (event.target as SVGElement).getBoundingClientRect();\n const offsetX = event.clientX - svgRect.left;\n const offsetY = event.clientY - svgRect.top;\n\n // If hovering over some group - highlight it.\n for (let groupIndex = 0; groupIndex < barGroups.length; groupIndex++) {\n const {\n position: { x, y, width, height },\n } = barGroups[groupIndex];\n\n if (x <= offsetX && offsetX <= x + width && y <= offsetY && offsetY <= y + height) {\n highlightGroup(groupIndex);\n return;\n }\n }\n // Otherwise - clear the highlight.\n clearHighlightedSeries();\n };\n\n const onSVGMouseMove = (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n if (event.target === plotRef.current!.svg && !isHandlersDisabled && !isMouseOverPopover(event)) {\n if (isGroupNavigation) {\n onGroupMouseMove(event);\n } else if (scaledSeries.length > 0) {\n onSeriesMouseMove(event);\n }\n }\n };\n\n const onSVGMouseOut = (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n if (isHandlersDisabled) {\n return;\n }\n\n // If the mouse is moving into the popover or its container (transition wrapper),\n // let onPopoverLeave handle cleanup.\n const popoverContainer = popoverRef.current?.parentElement;\n if (event.relatedTarget && popoverContainer && nodeContains(popoverContainer, event.relatedTarget)) {\n return;\n }\n\n if (\n !nodeContains(plotRef.current!.svg, event.relatedTarget) ||\n (event.relatedTarget && (event.relatedTarget as Element).classList.contains(styles.series))\n ) {\n highlightX(null);\n clearHighlightedSeries();\n }\n };\n\n const onPopoverLeave = () => {\n if (isHandlersDisabled) {\n return;\n }\n highlightX(null);\n clearHighlightedSeries();\n };\n\n return { onSVGMouseMove, onSVGMouseOut, onPopoverLeave };\n}\n"]}
|