@cloudscape-design/components-themeable 3.0.1328 → 3.0.1329
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/anchor-navigation/styles.scss +3 -0
- package/lib/internal/scss/expandable-section/styles.scss +1 -1
- package/lib/internal/scss/header/styles.scss +11 -0
- package/lib/internal/scss/internal/components/option/styles.scss +6 -2
- package/lib/internal/scss/internal/components/selectable-item/styles.scss +9 -8
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +173 -160
- package/lib/internal/scss/tree-view/tree-item/styles.scss +9 -4
- 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/anchor-navigation/anchor-item/index.js +1 -1
- package/lib/internal/template/anchor-navigation/anchor-item/index.js.map +1 -1
- package/lib/internal/template/anchor-navigation/styles.css.js +8 -8
- package/lib/internal/template/anchor-navigation/styles.scoped.css +20 -18
- package/lib/internal/template/anchor-navigation/styles.selectors.js +8 -8
- 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 +262 -262
- 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 +29 -29
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +66 -66
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +29 -29
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +29 -29
- 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 +30 -30
- 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/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +49 -49
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/styles.css.js +35 -35
- package/lib/internal/template/expandable-section/styles.scoped.css +70 -70
- package/lib/internal/template/expandable-section/styles.selectors.js +35 -35
- 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 +192 -192
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/header/internal.d.ts +2 -1
- package/lib/internal/template/header/internal.d.ts.map +1 -1
- package/lib/internal/template/header/internal.js +2 -2
- package/lib/internal/template/header/internal.js.map +1 -1
- package/lib/internal/template/header/styles.css.js +35 -34
- package/lib/internal/template/header/styles.scoped.css +60 -52
- package/lib/internal/template/header/styles.selectors.js +35 -34
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +72 -72
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +3 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +18 -18
- package/lib/internal/template/input/styles.scoped.css +82 -82
- package/lib/internal/template/input/styles.selectors.js +18 -18
- 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/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/options-list/index.d.ts +2 -0
- package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/options-list/index.js +2 -2
- package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
- 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/selectable-item/styles.css.js +22 -22
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +57 -57
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
- 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 +13 -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 +172 -159
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +63 -63
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +117 -117
- package/lib/internal/template/link/styles.selectors.js +21 -21
- 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/multiselect/use-multiselect.d.ts +1 -0
- package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
- 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/components/menu-dropdown.d.ts +3 -1
- package/lib/internal/template/prompt-input/components/menu-dropdown.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/components/menu-dropdown.js +2 -1
- package/lib/internal/template/prompt-input/components/menu-dropdown.js.map +1 -1
- package/lib/internal/template/prompt-input/components/token-mode.d.ts +3 -1
- package/lib/internal/template/prompt-input/components/token-mode.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/components/token-mode.js +14 -3
- package/lib/internal/template/prompt-input/components/token-mode.js.map +1 -1
- package/lib/internal/template/prompt-input/internal-interfaces.d.ts +41 -0
- package/lib/internal/template/prompt-input/internal-interfaces.d.ts.map +1 -0
- package/lib/internal/template/prompt-input/internal-interfaces.js +2 -0
- package/lib/internal/template/prompt-input/internal-interfaces.js.map +1 -0
- package/lib/internal/template/prompt-input/internal.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/internal.js +1 -1
- package/lib/internal/template/prompt-input/internal.js.map +1 -1
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.d.ts +11 -0
- package/lib/internal/template/prompt-input/styles.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/styles.js +27 -2
- package/lib/internal/template/prompt-input/styles.js.map +1 -1
- package/lib/internal/template/prompt-input/styles.scoped.css +105 -105
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
- package/lib/internal/template/property-filter/controller.js +10 -6
- package/lib/internal/template/property-filter/controller.js.map +1 -1
- package/lib/internal/template/property-filter/i18n-utils.d.ts +2 -2
- package/lib/internal/template/property-filter/i18n-utils.d.ts.map +1 -1
- package/lib/internal/template/property-filter/i18n-utils.js +11 -4
- package/lib/internal/template/property-filter/i18n-utils.js.map +1 -1
- package/lib/internal/template/property-filter/interfaces.d.ts +8 -2
- package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
- package/lib/internal/template/property-filter/interfaces.js.map +1 -1
- package/lib/internal/template/property-filter/internal-interfaces.d.ts +1 -0
- package/lib/internal/template/property-filter/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/property-filter/internal-interfaces.js.map +1 -1
- package/lib/internal/template/property-filter/internal.d.ts.map +1 -1
- package/lib/internal/template/property-filter/internal.js +1 -0
- package/lib/internal/template/property-filter/internal.js.map +1 -1
- package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -1
- package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token-editor-inputs.js +18 -8
- package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
- package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token-editor.js +1 -1
- package/lib/internal/template/property-filter/token-editor.js.map +1 -1
- package/lib/internal/template/property-filter/utils.d.ts.map +1 -1
- package/lib/internal/template/property-filter/utils.js +12 -3
- package/lib/internal/template/property-filter/utils.js.map +1 -1
- 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/internal.d.ts.map +1 -1
- package/lib/internal/template/token/internal.js +4 -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.scoped.css +47 -47
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/tree-view/tree-item/index.js +1 -1
- package/lib/internal/template/tree-view/tree-item/index.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -9
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +20 -14
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -9
- package/package.json +1 -1
|
@@ -190,10 +190,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
191
191
|
SPDX-License-Identifier: Apache-2.0
|
|
192
192
|
*/
|
|
193
|
-
.
|
|
194
|
-
animation: awsui_awsui-motion-fade-
|
|
193
|
+
.awsui_alert_mx3cw_1ffbv_193:not(#\9) {
|
|
194
|
+
animation: awsui_awsui-motion-fade-in_mx3cw_1ffbv_1 var(--motion-duration-show-paced-agho9h, 180ms) var(--motion-easing-show-paced-vcekro, ease-out);
|
|
195
195
|
}
|
|
196
|
-
@keyframes awsui_awsui-motion-fade-
|
|
196
|
+
@keyframes awsui_awsui-motion-fade-in_mx3cw_1ffbv_1 {
|
|
197
197
|
from {
|
|
198
198
|
opacity: 0.2;
|
|
199
199
|
}
|
|
@@ -202,17 +202,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
@media (prefers-reduced-motion: reduce) {
|
|
205
|
-
.
|
|
205
|
+
.awsui_alert_mx3cw_1ffbv_193:not(#\9) {
|
|
206
206
|
animation: none;
|
|
207
207
|
transition: none;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
.awsui-motion-disabled .
|
|
210
|
+
.awsui-motion-disabled .awsui_alert_mx3cw_1ffbv_193:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_1ffbv_193:not(#\9) {
|
|
211
211
|
animation: none;
|
|
212
212
|
transition: none;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.
|
|
215
|
+
.awsui_root_mx3cw_1ffbv_215:not(#\9) {
|
|
216
216
|
border-collapse: separate;
|
|
217
217
|
border-spacing: 0;
|
|
218
218
|
box-sizing: border-box;
|
|
@@ -247,11 +247,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
247
247
|
overflow: hidden;
|
|
248
248
|
display: block;
|
|
249
249
|
}
|
|
250
|
-
.
|
|
250
|
+
.awsui_root_mx3cw_1ffbv_215.awsui_hidden_mx3cw_1ffbv_250:not(#\9) {
|
|
251
251
|
display: none;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
.
|
|
254
|
+
.awsui_alert_mx3cw_1ffbv_193:not(#\9) {
|
|
255
255
|
border-collapse: separate;
|
|
256
256
|
border-spacing: 0;
|
|
257
257
|
box-sizing: border-box;
|
|
@@ -295,10 +295,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
295
295
|
padding-block: var(--space-alert-vertical-7hsinh, 12px);
|
|
296
296
|
padding-inline: var(--space-alert-horizontal-vvafy5, 20px);
|
|
297
297
|
background-color: var(--color-background-container-content-aemn43, #ffffff);
|
|
298
|
-
--awsui-alert-focus-ring-box-shadow-
|
|
298
|
+
--awsui-alert-focus-ring-box-shadow-z17rmd: 0 0 0 var(--awsui-alert-focus-ring-border-width-z17rmd, 2px) var(--awsui-alert-focus-ring-border-color-z17rmd, var(--color-border-item-focused-r5f6xl, #0073bb));
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
.awsui_alert-
|
|
301
|
+
.awsui_alert-wrapper_mx3cw_1ffbv_301:not(#\9) {
|
|
302
302
|
flex: 1;
|
|
303
303
|
display: flex;
|
|
304
304
|
flex-direction: row;
|
|
@@ -306,46 +306,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
306
306
|
column-gap: var(--space-alert-action-left-ii45xs, 20px);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
.
|
|
309
|
+
.awsui_hidden_mx3cw_1ffbv_250:not(#\9) {
|
|
310
310
|
display: none;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
.awsui_initial-
|
|
313
|
+
.awsui_initial-hidden_mx3cw_1ffbv_313:not(#\9) {
|
|
314
314
|
overflow: hidden;
|
|
315
315
|
block-size: 0;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.
|
|
319
|
-
.awsui_header-
|
|
318
|
+
.awsui_header_mx3cw_1ffbv_318:not(#\9),
|
|
319
|
+
.awsui_header-replacement_mx3cw_1ffbv_319:not(#\9) {
|
|
320
320
|
font-weight: var(--font-weight-alert-header-b68cy5, 700);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
.
|
|
323
|
+
.awsui_action_mx3cw_1ffbv_323:not(#\9) {
|
|
324
324
|
white-space: nowrap;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.awsui_action-
|
|
328
|
-
.awsui_action-
|
|
327
|
+
.awsui_action-slot_mx3cw_1ffbv_327:not(#\9),
|
|
328
|
+
.awsui_action-button_mx3cw_1ffbv_328:not(#\9) {
|
|
329
329
|
/* used in test-utils */
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.awsui_alert-focus-
|
|
332
|
+
.awsui_alert-focus-wrapper_mx3cw_1ffbv_332:not(#\9) {
|
|
333
333
|
flex: 1;
|
|
334
334
|
min-inline-size: 70%;
|
|
335
335
|
display: grid;
|
|
336
336
|
grid-template-columns: min-content auto;
|
|
337
337
|
}
|
|
338
|
-
.awsui_alert-focus-
|
|
338
|
+
.awsui_alert-focus-wrapper_mx3cw_1ffbv_332:not(#\9):focus {
|
|
339
339
|
outline: none;
|
|
340
340
|
}
|
|
341
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
341
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1ffbv_332:not(#\9):focus {
|
|
342
342
|
position: relative;
|
|
343
343
|
}
|
|
344
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
344
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1ffbv_332:not(#\9):focus {
|
|
345
345
|
outline: 2px dotted transparent;
|
|
346
346
|
outline-offset: calc(var(--space-button-focus-outline-gutter-vsdlzg, 3px) - 1px);
|
|
347
347
|
}
|
|
348
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
348
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1ffbv_332:not(#\9):focus::before {
|
|
349
349
|
content: " ";
|
|
350
350
|
display: block;
|
|
351
351
|
position: absolute;
|
|
@@ -353,85 +353,85 @@ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1a9ra_332:n
|
|
|
353
353
|
inset-block-start: calc(-1 * var(--space-button-focus-outline-gutter-vsdlzg, 3px));
|
|
354
354
|
inline-size: calc(100% + var(--space-button-focus-outline-gutter-vsdlzg, 3px) + var(--space-button-focus-outline-gutter-vsdlzg, 3px));
|
|
355
355
|
block-size: calc(100% + var(--space-button-focus-outline-gutter-vsdlzg, 3px) + var(--space-button-focus-outline-gutter-vsdlzg, 3px));
|
|
356
|
-
border-start-start-radius: var(--awsui-alert-focus-ring-border-radius-
|
|
357
|
-
border-start-end-radius: var(--awsui-alert-focus-ring-border-radius-
|
|
358
|
-
border-end-start-radius: var(--awsui-alert-focus-ring-border-radius-
|
|
359
|
-
border-end-end-radius: var(--awsui-alert-focus-ring-border-radius-
|
|
360
|
-
box-shadow: var(--awsui-alert-focus-ring-box-shadow-
|
|
356
|
+
border-start-start-radius: var(--awsui-alert-focus-ring-border-radius-z17rmd, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
357
|
+
border-start-end-radius: var(--awsui-alert-focus-ring-border-radius-z17rmd, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
358
|
+
border-end-start-radius: var(--awsui-alert-focus-ring-border-radius-z17rmd, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
359
|
+
border-end-end-radius: var(--awsui-alert-focus-ring-border-radius-z17rmd, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
360
|
+
box-shadow: var(--awsui-alert-focus-ring-box-shadow-z17rmd);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
.
|
|
363
|
+
.awsui_text_mx3cw_1ffbv_363:not(#\9) {
|
|
364
364
|
min-inline-size: 0;
|
|
365
365
|
padding-block: var(--border-width-button-40y1n5, 1px);
|
|
366
366
|
padding-inline: 0;
|
|
367
367
|
margin-block: var(--space-scaled-xxs-jatbiv, 4px);
|
|
368
368
|
margin-inline: var(--space-xxs-jnczic, 4px);
|
|
369
369
|
}
|
|
370
|
-
.
|
|
370
|
+
.awsui_text_mx3cw_1ffbv_363.awsui_icon_mx3cw_1ffbv_370:not(#\9) {
|
|
371
371
|
margin-inline-start: 0;
|
|
372
372
|
}
|
|
373
|
-
.
|
|
373
|
+
.awsui_text_mx3cw_1ffbv_363.awsui_message_mx3cw_1ffbv_373:not(#\9) {
|
|
374
374
|
margin-inline-end: var(--space-alert-message-right-ipx6aa, 0px);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
.awsui_action-
|
|
377
|
+
.awsui_action-wrapped_mx3cw_1ffbv_377:not(#\9) {
|
|
378
378
|
margin-block-end: var(--space-xxs-jnczic, 4px);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
.awsui_icon-size-
|
|
381
|
+
.awsui_icon-size-medium_mx3cw_1ffbv_381 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_action-wrapped_mx3cw_1ffbv_377:not(#\9) {
|
|
382
382
|
margin-inline-start: calc(var(--size-icon-medium-3ovt3t, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.awsui_icon-size-
|
|
385
|
+
.awsui_icon-size-big_mx3cw_1ffbv_385 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_action-wrapped_mx3cw_1ffbv_377:not(#\9) {
|
|
386
386
|
margin-inline-start: calc(var(--size-icon-big-hnqj8f, 32px) + var(--space-xs-kw7k3v, 8px));
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
.awsui_icon-size-
|
|
389
|
+
.awsui_icon-size-normal_mx3cw_1ffbv_389 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_action-wrapped_mx3cw_1ffbv_377:not(#\9) {
|
|
390
390
|
margin-inline-start: calc(var(--size-icon-normal-2f5zkr, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
.
|
|
394
|
-
.awsui_content-
|
|
393
|
+
.awsui_content_mx3cw_1ffbv_393:not(#\9),
|
|
394
|
+
.awsui_content-replacement_mx3cw_1ffbv_394:not(#\9) {
|
|
395
395
|
/* used in test-utils */
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
.
|
|
398
|
+
.awsui_dismiss_mx3cw_1ffbv_398:not(#\9) {
|
|
399
399
|
margin-inline-end: calc(-1 * var(--space-xxs-jnczic, 4px));
|
|
400
400
|
margin-inline-start: var(--space-s-4a5hs8, 12px);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
.awsui_dismiss-
|
|
403
|
+
.awsui_dismiss-button_mx3cw_1ffbv_403:not(#\9) {
|
|
404
404
|
/* used in test-utils */
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
.awsui_type-
|
|
407
|
+
.awsui_type-error_mx3cw_1ffbv_407:not(#\9) {
|
|
408
408
|
border-color: var(--color-border-status-error-jybbdz, #d13212);
|
|
409
409
|
background-color: var(--color-background-status-error-5i5ikf, #fdf3f1);
|
|
410
410
|
}
|
|
411
|
-
.awsui_type-
|
|
412
|
-
color: var(--awsui-alert-icon-color-
|
|
411
|
+
.awsui_type-error_mx3cw_1ffbv_407 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_alert-focus-wrapper_mx3cw_1ffbv_332 > .awsui_icon_mx3cw_1ffbv_370:not(#\9) {
|
|
412
|
+
color: var(--awsui-alert-icon-color-z17rmd, var(--color-text-status-error-c3at5p, #d13212));
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
.awsui_type-
|
|
415
|
+
.awsui_type-warning_mx3cw_1ffbv_415:not(#\9) {
|
|
416
416
|
border-color: var(--color-border-status-warning-qmz1c4, #906806);
|
|
417
417
|
background-color: var(--color-background-status-warning-mvw8w7, #fffef0);
|
|
418
418
|
}
|
|
419
|
-
.awsui_type-
|
|
420
|
-
color: var(--awsui-alert-icon-color-
|
|
419
|
+
.awsui_type-warning_mx3cw_1ffbv_415 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_alert-focus-wrapper_mx3cw_1ffbv_332 > .awsui_icon_mx3cw_1ffbv_370:not(#\9) {
|
|
420
|
+
color: var(--awsui-alert-icon-color-z17rmd, var(--color-text-status-warning-08d9ki, #906806));
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
.awsui_type-
|
|
423
|
+
.awsui_type-success_mx3cw_1ffbv_423:not(#\9) {
|
|
424
424
|
border-color: var(--color-border-status-success-e61wev, #1d8102);
|
|
425
425
|
background-color: var(--color-background-status-success-tkxjye, #f2f8f0);
|
|
426
426
|
}
|
|
427
|
-
.awsui_type-
|
|
428
|
-
color: var(--awsui-alert-icon-color-
|
|
427
|
+
.awsui_type-success_mx3cw_1ffbv_423 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_alert-focus-wrapper_mx3cw_1ffbv_332 > .awsui_icon_mx3cw_1ffbv_370:not(#\9) {
|
|
428
|
+
color: var(--awsui-alert-icon-color-z17rmd, var(--color-text-status-success-ya1ikb, #1d8102));
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
.awsui_type-
|
|
431
|
+
.awsui_type-info_mx3cw_1ffbv_431:not(#\9) {
|
|
432
432
|
border-color: var(--color-border-status-info-kp0iif, #0073bb);
|
|
433
433
|
background-color: var(--color-background-status-info-nzp1n3, #f1faff);
|
|
434
434
|
}
|
|
435
|
-
.awsui_type-
|
|
436
|
-
color: var(--awsui-alert-icon-color-
|
|
435
|
+
.awsui_type-info_mx3cw_1ffbv_431 > .awsui_alert-wrapper_mx3cw_1ffbv_301 > .awsui_alert-focus-wrapper_mx3cw_1ffbv_332 > .awsui_icon_mx3cw_1ffbv_370:not(#\9) {
|
|
436
|
+
color: var(--awsui-alert-icon-color-z17rmd, var(--color-text-status-info-5vpe5d, #0073bb));
|
|
437
437
|
}
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"alert": "
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"root": "
|
|
8
|
-
"hidden": "
|
|
9
|
-
"alert-wrapper": "awsui_alert-
|
|
10
|
-
"initial-hidden": "awsui_initial-
|
|
11
|
-
"header": "
|
|
12
|
-
"header-replacement": "awsui_header-
|
|
13
|
-
"action": "
|
|
14
|
-
"action-slot": "awsui_action-
|
|
15
|
-
"action-button": "awsui_action-
|
|
16
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
17
|
-
"text": "
|
|
18
|
-
"icon": "
|
|
19
|
-
"message": "
|
|
20
|
-
"action-wrapped": "awsui_action-
|
|
21
|
-
"icon-size-medium": "awsui_icon-size-
|
|
22
|
-
"icon-size-big": "awsui_icon-size-
|
|
23
|
-
"icon-size-normal": "awsui_icon-size-
|
|
24
|
-
"content": "
|
|
25
|
-
"content-replacement": "awsui_content-
|
|
26
|
-
"dismiss": "
|
|
27
|
-
"dismiss-button": "awsui_dismiss-
|
|
28
|
-
"type-error": "awsui_type-
|
|
29
|
-
"type-warning": "awsui_type-
|
|
30
|
-
"type-success": "awsui_type-
|
|
31
|
-
"type-info": "awsui_type-
|
|
5
|
+
"alert": "awsui_alert_mx3cw_1ffbv_193",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1ffbv_1",
|
|
7
|
+
"root": "awsui_root_mx3cw_1ffbv_215",
|
|
8
|
+
"hidden": "awsui_hidden_mx3cw_1ffbv_250",
|
|
9
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_1ffbv_301",
|
|
10
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_1ffbv_313",
|
|
11
|
+
"header": "awsui_header_mx3cw_1ffbv_318",
|
|
12
|
+
"header-replacement": "awsui_header-replacement_mx3cw_1ffbv_319",
|
|
13
|
+
"action": "awsui_action_mx3cw_1ffbv_323",
|
|
14
|
+
"action-slot": "awsui_action-slot_mx3cw_1ffbv_327",
|
|
15
|
+
"action-button": "awsui_action-button_mx3cw_1ffbv_328",
|
|
16
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1ffbv_332",
|
|
17
|
+
"text": "awsui_text_mx3cw_1ffbv_363",
|
|
18
|
+
"icon": "awsui_icon_mx3cw_1ffbv_370",
|
|
19
|
+
"message": "awsui_message_mx3cw_1ffbv_373",
|
|
20
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_1ffbv_377",
|
|
21
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_1ffbv_381",
|
|
22
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_1ffbv_385",
|
|
23
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_1ffbv_389",
|
|
24
|
+
"content": "awsui_content_mx3cw_1ffbv_393",
|
|
25
|
+
"content-replacement": "awsui_content-replacement_mx3cw_1ffbv_394",
|
|
26
|
+
"dismiss": "awsui_dismiss_mx3cw_1ffbv_398",
|
|
27
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_1ffbv_403",
|
|
28
|
+
"type-error": "awsui_type-error_mx3cw_1ffbv_407",
|
|
29
|
+
"type-warning": "awsui_type-warning_mx3cw_1ffbv_415",
|
|
30
|
+
"type-success": "awsui_type-success_mx3cw_1ffbv_423",
|
|
31
|
+
"type-info": "awsui_type-info_mx3cw_1ffbv_431"
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -16,7 +16,7 @@ export const AnchorItem = ({ anchor, onFollow, isActive, index, children }) => {
|
|
|
16
16
|
const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);
|
|
17
17
|
return (React.createElement("li", { "data-itemid": `anchor-item-${index + 1}`, className: clsx(styles['anchor-item'], isActive && activeItemClasses) },
|
|
18
18
|
React.createElement("a", { onClick: onClick, className: clsx(styles['anchor-link'], testUtilsStyles['anchor-link'], isActive && styles['anchor-link--active']), ...(isActive ? { 'aria-current': true } : {}), href: anchor.href },
|
|
19
|
-
React.createElement("span", { className: clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text']), style: { paddingInlineStart: `${anchor.level * 16 +
|
|
19
|
+
React.createElement("span", { className: clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text']), style: { paddingInlineStart: `${anchor.level * 16 + 4}px` } }, anchor.text),
|
|
20
20
|
anchor.info && (React.createElement("span", { className: clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info']) }, anchor.info))),
|
|
21
21
|
children));
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/anchor-navigation/anchor-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAU5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAmB,EAAE,EAAE;IAC7F,YAAY,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9C,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,KAAuB,EAAE,EAAE;QAC1B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,MAAM,CAAC,CACnB,CAAC;IAEF,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAEtG,OAAO,CACL,2CAAiB,eAAe,KAAK,GAAG,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,IAAI,iBAAiB,CAAC;QAChH,2BACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,aAAa,CAAC,EACrB,eAAe,CAAC,aAAa,CAAC,EAC9B,QAAQ,IAAI,MAAM,CAAC,qBAAqB,CAAC,CAC1C,KACG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC9C,IAAI,EAAE,MAAM,CAAC,IAAI;YAEjB,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,EAChF,KAAK,EAAE,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,IAE1D,MAAM,CAAC,IAAI,CACP;YACN,MAAM,CAAC,IAAI,IAAI,CACd,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,IAAG,MAAM,CAAC,IAAI,CAAQ,CAC7G,CACC;QACH,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\nimport clsx from 'clsx';\n\nimport { isPlainLeftClick } from '../../internal/events';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\nimport { AnchorNavigationProps } from '../interfaces';\n\nimport styles from '../styles.css.js';\nimport testUtilsStyles from '../test-classes/styles.css.js';\n\ninterface AnchorItemProps {\n anchor: AnchorNavigationProps.Anchor;\n onFollow: (anchor: AnchorNavigationProps.Anchor, event: React.SyntheticEvent | Event) => void;\n isActive: boolean;\n index: number;\n children: React.ReactNode;\n}\n\nexport const AnchorItem = ({ anchor, onFollow, isActive, index, children }: AnchorItemProps) => {\n checkSafeUrl('AnchorNavigation', anchor.href);\n\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n onFollow(anchor, event);\n }\n },\n [onFollow, anchor]\n );\n\n const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);\n\n return (\n <li data-itemid={`anchor-item-${index + 1}`} className={clsx(styles['anchor-item'], isActive && activeItemClasses)}>\n <a\n onClick={onClick}\n className={clsx(\n styles['anchor-link'],\n testUtilsStyles['anchor-link'],\n isActive && styles['anchor-link--active']\n )}\n {...(isActive ? { 'aria-current': true } : {})}\n href={anchor.href}\n >\n <span\n className={clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text'])}\n style={{ paddingInlineStart: `${anchor.level * 16 +
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/anchor-navigation/anchor-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAU5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAmB,EAAE,EAAE;IAC7F,YAAY,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAE9C,MAAM,OAAO,GAAG,WAAW,CACzB,CAAC,KAAuB,EAAE,EAAE;QAC1B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,MAAM,CAAC,CACnB,CAAC;IAEF,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAEtG,OAAO,CACL,2CAAiB,eAAe,KAAK,GAAG,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,IAAI,iBAAiB,CAAC;QAChH,2BACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,aAAa,CAAC,EACrB,eAAe,CAAC,aAAa,CAAC,EAC9B,QAAQ,IAAI,MAAM,CAAC,qBAAqB,CAAC,CAC1C,KACG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC9C,IAAI,EAAE,MAAM,CAAC,IAAI;YAEjB,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,EAChF,KAAK,EAAE,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,IAE1D,MAAM,CAAC,IAAI,CACP;YACN,MAAM,CAAC,IAAI,IAAI,CACd,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,IAAG,MAAM,CAAC,IAAI,CAAQ,CAC7G,CACC;QACH,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\nimport clsx from 'clsx';\n\nimport { isPlainLeftClick } from '../../internal/events';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\nimport { AnchorNavigationProps } from '../interfaces';\n\nimport styles from '../styles.css.js';\nimport testUtilsStyles from '../test-classes/styles.css.js';\n\ninterface AnchorItemProps {\n anchor: AnchorNavigationProps.Anchor;\n onFollow: (anchor: AnchorNavigationProps.Anchor, event: React.SyntheticEvent | Event) => void;\n isActive: boolean;\n index: number;\n children: React.ReactNode;\n}\n\nexport const AnchorItem = ({ anchor, onFollow, isActive, index, children }: AnchorItemProps) => {\n checkSafeUrl('AnchorNavigation', anchor.href);\n\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n onFollow(anchor, event);\n }\n },\n [onFollow, anchor]\n );\n\n const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);\n\n return (\n <li data-itemid={`anchor-item-${index + 1}`} className={clsx(styles['anchor-item'], isActive && activeItemClasses)}>\n <a\n onClick={onClick}\n className={clsx(\n styles['anchor-link'],\n testUtilsStyles['anchor-link'],\n isActive && styles['anchor-link--active']\n )}\n {...(isActive ? { 'aria-current': true } : {})}\n href={anchor.href}\n >\n <span\n className={clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text'])}\n style={{ paddingInlineStart: `${anchor.level * 16 + 4}px` }}\n >\n {anchor.text}\n </span>\n {anchor.info && (\n <span className={clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info'])}>{anchor.info}</span>\n )}\n </a>\n {children}\n </li>\n );\n};\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"anchor-list": "awsui_anchor-
|
|
6
|
-
"anchor-item": "awsui_anchor-
|
|
7
|
-
"anchor-item--active": "awsui_anchor-item--
|
|
8
|
-
"anchor-link": "awsui_anchor-
|
|
9
|
-
"anchor-link--active": "awsui_anchor-link--
|
|
10
|
-
"anchor-link-text": "awsui_anchor-link-
|
|
11
|
-
"anchor-link-info": "awsui_anchor-link-
|
|
4
|
+
"root": "awsui_root_swimc_1yb6p_189",
|
|
5
|
+
"anchor-list": "awsui_anchor-list_swimc_1yb6p_221",
|
|
6
|
+
"anchor-item": "awsui_anchor-item_swimc_1yb6p_245",
|
|
7
|
+
"anchor-item--active": "awsui_anchor-item--active_swimc_1yb6p_265",
|
|
8
|
+
"anchor-link": "awsui_anchor-link_swimc_1yb6p_283",
|
|
9
|
+
"anchor-link--active": "awsui_anchor-link--active_swimc_1yb6p_325",
|
|
10
|
+
"anchor-link-text": "awsui_anchor-link-text_swimc_1yb6p_332",
|
|
11
|
+
"anchor-link-info": "awsui_anchor-link-info_swimc_1yb6p_336"
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
186
186
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
187
|
SPDX-License-Identifier: Apache-2.0
|
|
188
188
|
*/
|
|
189
|
-
.
|
|
189
|
+
.awsui_root_swimc_1yb6p_189:not(#\9) {
|
|
190
190
|
border-collapse: separate;
|
|
191
191
|
border-spacing: 0;
|
|
192
192
|
box-sizing: border-box;
|
|
@@ -218,7 +218,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
218
218
|
-moz-osx-font-smoothing: auto;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.awsui_anchor-
|
|
221
|
+
.awsui_anchor-list_swimc_1yb6p_221:not(#\9) {
|
|
222
222
|
list-style: none;
|
|
223
223
|
margin-block: 0;
|
|
224
224
|
margin-inline: 0;
|
|
@@ -227,7 +227,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
227
227
|
position: relative;
|
|
228
228
|
text-indent: 0;
|
|
229
229
|
}
|
|
230
|
-
.awsui_anchor-
|
|
230
|
+
.awsui_anchor-list_swimc_1yb6p_221:not(#\9)::before {
|
|
231
231
|
content: "";
|
|
232
232
|
background-color: var(--color-border-divider-default-ipvpev, #eaeded);
|
|
233
233
|
border-start-start-radius: var(--border-radius-tabs-focus-ring-ciyqfm, 0px);
|
|
@@ -239,9 +239,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
239
239
|
position: absolute;
|
|
240
240
|
inset-block-start: -2px;
|
|
241
241
|
inline-size: 2px;
|
|
242
|
+
inset-inline-start: 6px;
|
|
242
243
|
}
|
|
243
244
|
|
|
244
|
-
.awsui_anchor-
|
|
245
|
+
.awsui_anchor-item_swimc_1yb6p_245:not(#\9) {
|
|
245
246
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
246
247
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
247
248
|
color: var(--color-text-body-secondary-gaft81, #545b64);
|
|
@@ -252,19 +253,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
252
253
|
transition-property: all;
|
|
253
254
|
}
|
|
254
255
|
@media (prefers-reduced-motion: reduce) {
|
|
255
|
-
.awsui_anchor-
|
|
256
|
+
.awsui_anchor-item_swimc_1yb6p_245:not(#\9) {
|
|
256
257
|
animation: none;
|
|
257
258
|
transition: none;
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
|
-
.awsui-motion-disabled .awsui_anchor-
|
|
261
|
+
.awsui-motion-disabled .awsui_anchor-item_swimc_1yb6p_245:not(#\9), .awsui-mode-entering .awsui_anchor-item_swimc_1yb6p_245:not(#\9) {
|
|
261
262
|
animation: none;
|
|
262
263
|
transition: none;
|
|
263
264
|
}
|
|
264
|
-
.awsui_anchor-item--
|
|
265
|
+
.awsui_anchor-item--active_swimc_1yb6p_265:not(#\9) {
|
|
265
266
|
position: relative;
|
|
266
267
|
}
|
|
267
|
-
.awsui_anchor-item--
|
|
268
|
+
.awsui_anchor-item--active_swimc_1yb6p_265:not(#\9)::before {
|
|
268
269
|
content: "";
|
|
269
270
|
background-color: var(--color-text-accent-rvq171, #0073bb);
|
|
270
271
|
border-start-start-radius: var(--border-radius-tabs-focus-ring-ciyqfm, 0px);
|
|
@@ -276,9 +277,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
276
277
|
position: absolute;
|
|
277
278
|
inset-block-start: -2px;
|
|
278
279
|
inline-size: 2px;
|
|
280
|
+
inset-inline-start: 6px;
|
|
279
281
|
}
|
|
280
282
|
|
|
281
|
-
.awsui_anchor-
|
|
283
|
+
.awsui_anchor-link_swimc_1yb6p_283:not(#\9) {
|
|
282
284
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
283
285
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
284
286
|
align-items: baseline;
|
|
@@ -291,16 +293,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
291
293
|
transition-property: all;
|
|
292
294
|
}
|
|
293
295
|
@media (prefers-reduced-motion: reduce) {
|
|
294
|
-
.awsui_anchor-
|
|
296
|
+
.awsui_anchor-link_swimc_1yb6p_283:not(#\9) {
|
|
295
297
|
animation: none;
|
|
296
298
|
transition: none;
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
|
-
.awsui-motion-disabled .awsui_anchor-
|
|
301
|
+
.awsui-motion-disabled .awsui_anchor-link_swimc_1yb6p_283:not(#\9), .awsui-mode-entering .awsui_anchor-link_swimc_1yb6p_283:not(#\9) {
|
|
300
302
|
animation: none;
|
|
301
303
|
transition: none;
|
|
302
304
|
}
|
|
303
|
-
body[data-awsui-focus-visible=true] .awsui_anchor-
|
|
305
|
+
body[data-awsui-focus-visible=true] .awsui_anchor-link_swimc_1yb6p_283:not(#\9):focus {
|
|
304
306
|
outline: thin dotted;
|
|
305
307
|
outline: var(--border-link-focus-ring-outline-c5423y, 5px auto Highlight);
|
|
306
308
|
outline-offset: 2px;
|
|
@@ -311,27 +313,27 @@ body[data-awsui-focus-visible=true] .awsui_anchor-link_swimc_1mr55_281:not(#\9):
|
|
|
311
313
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
312
314
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-woh62o, 0px) var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
313
315
|
}
|
|
314
|
-
.awsui_anchor-
|
|
316
|
+
.awsui_anchor-link_swimc_1yb6p_283:not(#\9):hover {
|
|
315
317
|
color: var(--color-text-accent-rvq171, #0073bb);
|
|
316
318
|
}
|
|
317
|
-
.awsui_anchor-
|
|
319
|
+
.awsui_anchor-link_swimc_1yb6p_283:not(#\9):focus {
|
|
318
320
|
outline: none;
|
|
319
321
|
}
|
|
320
|
-
.awsui_anchor-
|
|
322
|
+
.awsui_anchor-link_swimc_1yb6p_283:not(#\9):hover, .awsui_anchor-link_swimc_1yb6p_283:not(#\9):focus {
|
|
321
323
|
text-decoration: none;
|
|
322
324
|
}
|
|
323
|
-
.awsui_anchor-link--
|
|
325
|
+
.awsui_anchor-link--active_swimc_1yb6p_325:not(#\9) {
|
|
324
326
|
font-weight: var(--font-wayfinding-link-active-weight-lhxtkr, 700);
|
|
325
327
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
326
328
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
327
329
|
color: var(--color-text-accent-rvq171, #0073bb);
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
.awsui_anchor-link-
|
|
332
|
+
.awsui_anchor-link-text_swimc_1yb6p_332:not(#\9) {
|
|
331
333
|
display: block;
|
|
332
334
|
}
|
|
333
335
|
|
|
334
|
-
.awsui_anchor-link-
|
|
336
|
+
.awsui_anchor-link-info_swimc_1yb6p_336:not(#\9) {
|
|
335
337
|
margin-inline-start: var(--space-xs-kw7k3v, 8px);
|
|
336
338
|
font-size: var(--font-size-body-s-psgqn2, 12px);
|
|
337
339
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"anchor-list": "awsui_anchor-
|
|
7
|
-
"anchor-item": "awsui_anchor-
|
|
8
|
-
"anchor-item--active": "awsui_anchor-item--
|
|
9
|
-
"anchor-link": "awsui_anchor-
|
|
10
|
-
"anchor-link--active": "awsui_anchor-link--
|
|
11
|
-
"anchor-link-text": "awsui_anchor-link-
|
|
12
|
-
"anchor-link-info": "awsui_anchor-link-
|
|
5
|
+
"root": "awsui_root_swimc_1yb6p_189",
|
|
6
|
+
"anchor-list": "awsui_anchor-list_swimc_1yb6p_221",
|
|
7
|
+
"anchor-item": "awsui_anchor-item_swimc_1yb6p_245",
|
|
8
|
+
"anchor-item--active": "awsui_anchor-item--active_swimc_1yb6p_265",
|
|
9
|
+
"anchor-link": "awsui_anchor-link_swimc_1yb6p_283",
|
|
10
|
+
"anchor-link--active": "awsui_anchor-link--active_swimc_1yb6p_325",
|
|
11
|
+
"anchor-link-text": "awsui_anchor-link-text_swimc_1yb6p_332",
|
|
12
|
+
"anchor-link-info": "awsui_anchor-link-info_swimc_1yb6p_336"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"annotation": "
|
|
5
|
-
"next-button": "awsui_next-
|
|
6
|
-
"previous-button": "awsui_previous-
|
|
7
|
-
"finish-button": "awsui_finish-
|
|
8
|
-
"header": "
|
|
9
|
-
"step-counter-content": "awsui_step-counter-
|
|
10
|
-
"content": "
|
|
11
|
-
"description": "
|
|
12
|
-
"actionBar": "
|
|
13
|
-
"stepCounter": "
|
|
14
|
-
"divider": "
|
|
15
|
-
"hotspot": "
|
|
16
|
-
"icon": "
|
|
4
|
+
"annotation": "awsui_annotation_1hpp3_qir3o_185",
|
|
5
|
+
"next-button": "awsui_next-button_1hpp3_qir3o_186",
|
|
6
|
+
"previous-button": "awsui_previous-button_1hpp3_qir3o_187",
|
|
7
|
+
"finish-button": "awsui_finish-button_1hpp3_qir3o_188",
|
|
8
|
+
"header": "awsui_header_1hpp3_qir3o_189",
|
|
9
|
+
"step-counter-content": "awsui_step-counter-content_1hpp3_qir3o_190",
|
|
10
|
+
"content": "awsui_content_1hpp3_qir3o_191",
|
|
11
|
+
"description": "awsui_description_1hpp3_qir3o_195",
|
|
12
|
+
"actionBar": "awsui_actionBar_1hpp3_qir3o_200",
|
|
13
|
+
"stepCounter": "awsui_stepCounter_1hpp3_qir3o_207",
|
|
14
|
+
"divider": "awsui_divider_1hpp3_qir3o_211",
|
|
15
|
+
"hotspot": "awsui_hotspot_1hpp3_qir3o_215",
|
|
16
|
+
"icon": "awsui_icon_1hpp3_qir3o_286"
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -182,37 +182,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.
|
|
186
|
-
.awsui_next-
|
|
187
|
-
.awsui_previous-
|
|
188
|
-
.awsui_finish-
|
|
189
|
-
.
|
|
190
|
-
.awsui_step-counter-
|
|
191
|
-
.
|
|
185
|
+
.awsui_annotation_1hpp3_qir3o_185:not(#\9),
|
|
186
|
+
.awsui_next-button_1hpp3_qir3o_186:not(#\9),
|
|
187
|
+
.awsui_previous-button_1hpp3_qir3o_187:not(#\9),
|
|
188
|
+
.awsui_finish-button_1hpp3_qir3o_188:not(#\9),
|
|
189
|
+
.awsui_header_1hpp3_qir3o_189:not(#\9),
|
|
190
|
+
.awsui_step-counter-content_1hpp3_qir3o_190:not(#\9),
|
|
191
|
+
.awsui_content_1hpp3_qir3o_191:not(#\9) {
|
|
192
192
|
/* used in test-utils */
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.
|
|
195
|
+
.awsui_description_1hpp3_qir3o_195:not(#\9) {
|
|
196
196
|
overflow: hidden;
|
|
197
197
|
margin-block-start: var(--space-xxs-jnczic, 4px);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
.
|
|
200
|
+
.awsui_actionBar_1hpp3_qir3o_200:not(#\9) {
|
|
201
201
|
display: flex;
|
|
202
202
|
justify-content: space-between;
|
|
203
203
|
align-items: center;
|
|
204
204
|
position: relative;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.
|
|
207
|
+
.awsui_stepCounter_1hpp3_qir3o_207:not(#\9) {
|
|
208
208
|
margin-inline-end: 20px;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
.
|
|
211
|
+
.awsui_divider_1hpp3_qir3o_211:not(#\9) {
|
|
212
212
|
border-block-end: var(--border-divider-section-width-sznrdy, 1px) solid var(--color-border-divider-default-ipvpev, #eaeded);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.
|
|
215
|
+
.awsui_hotspot_1hpp3_qir3o_215:not(#\9) {
|
|
216
216
|
border-collapse: separate;
|
|
217
217
|
border-spacing: 0;
|
|
218
218
|
box-sizing: border-box;
|
|
@@ -248,28 +248,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
248
248
|
padding-block: 0;
|
|
249
249
|
padding-inline: 0;
|
|
250
250
|
cursor: pointer;
|
|
251
|
-
scroll-margin: var(--awsui-content-scroll-margin-
|
|
251
|
+
scroll-margin: var(--awsui-content-scroll-margin-z17rmd, 40px 0 0 0);
|
|
252
252
|
position: relative;
|
|
253
253
|
inline-size: 16px;
|
|
254
254
|
block-size: 16px;
|
|
255
255
|
}
|
|
256
|
-
.
|
|
256
|
+
.awsui_hotspot_1hpp3_qir3o_215:not(#\9):before {
|
|
257
257
|
content: "";
|
|
258
258
|
position: absolute;
|
|
259
259
|
inset: calc(-1 * var(--space-xxs-jnczic, 4px));
|
|
260
260
|
z-index: 1;
|
|
261
261
|
}
|
|
262
|
-
.
|
|
262
|
+
.awsui_hotspot_1hpp3_qir3o_215:not(#\9):focus {
|
|
263
263
|
outline: none;
|
|
264
264
|
}
|
|
265
|
-
body[data-awsui-focus-visible=true] .
|
|
265
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_qir3o_215:not(#\9):focus {
|
|
266
266
|
position: relative;
|
|
267
267
|
}
|
|
268
|
-
body[data-awsui-focus-visible=true] .
|
|
268
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_qir3o_215:not(#\9):focus {
|
|
269
269
|
outline: 2px dotted transparent;
|
|
270
270
|
outline-offset: calc(2px - 1px);
|
|
271
271
|
}
|
|
272
|
-
body[data-awsui-focus-visible=true] .
|
|
272
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_qir3o_215:not(#\9):focus::before {
|
|
273
273
|
content: " ";
|
|
274
274
|
display: block;
|
|
275
275
|
position: absolute;
|
|
@@ -283,13 +283,13 @@ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_7wfks_215:not(#\9):focu
|
|
|
283
283
|
border-end-end-radius: var(--border-radius-control-circular-focus-ring-0v2apg, 50%);
|
|
284
284
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_hotspot_1hpp3_qir3o_215 > .awsui_icon_1hpp3_qir3o_286:not(#\9) {
|
|
287
287
|
position: relative;
|
|
288
288
|
stroke: var(--color-text-tutorial-hotspot-default-ql4c5o, #0073bb);
|
|
289
289
|
}
|
|
290
|
-
.
|
|
290
|
+
.awsui_hotspot_1hpp3_qir3o_215:not(#\9):hover > .awsui_icon_1hpp3_qir3o_286 {
|
|
291
291
|
stroke: var(--color-text-tutorial-hotspot-hover-baiupp, #0a4a74);
|
|
292
292
|
}
|
|
293
|
-
.
|
|
293
|
+
.awsui_hotspot_1hpp3_qir3o_215:not(#\9):active > .awsui_icon_1hpp3_qir3o_286 {
|
|
294
294
|
stroke: var(--color-text-tutorial-hotspot-default-ql4c5o, #0073bb);
|
|
295
295
|
}
|