@cloudscape-design/components 3.0.685 → 3.0.686
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +31 -31
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +82 -82
- package/app-layout/visual-refresh/styles.scoped.css +255 -255
- package/app-layout/visual-refresh/styles.selectors.js +82 -82
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +16 -16
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +37 -37
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +16 -16
- package/button/interfaces.d.ts +1 -1
- package/button/interfaces.js.map +1 -1
- package/button-dropdown/item-element/index.js +1 -1
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +12 -11
- package/button-dropdown/item-element/styles.scoped.css +14 -14
- package/button-dropdown/item-element/styles.selectors.js +12 -11
- package/button-dropdown/tooltip.d.ts +2 -1
- package/button-dropdown/tooltip.d.ts.map +1 -1
- package/button-dropdown/tooltip.js +2 -2
- package/button-dropdown/tooltip.js.map +1 -1
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -171
- package/flashbar/styles.selectors.js +47 -47
- package/icon/styles.css.js +38 -37
- package/icon/styles.scoped.css +82 -80
- package/icon/styles.selectors.js +38 -37
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +40 -40
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/custom-css-properties/index.d.ts +2 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +57 -55
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/key-value-pairs/index.d.ts +1 -1
- package/key-value-pairs/index.d.ts.map +1 -1
- package/key-value-pairs/index.js +2 -2
- package/key-value-pairs/index.js.map +1 -1
- package/key-value-pairs/interfaces.d.ts +11 -0
- package/key-value-pairs/interfaces.d.ts.map +1 -1
- package/key-value-pairs/interfaces.js.map +1 -1
- package/key-value-pairs/internal.d.ts.map +1 -1
- package/key-value-pairs/internal.js +2 -2
- package/key-value-pairs/internal.js.map +1 -1
- package/package.json +2 -1
- package/prompt-input/index.d.ts +6 -0
- package/prompt-input/index.d.ts.map +1 -0
- package/prompt-input/index.js +27 -0
- package/prompt-input/index.js.map +1 -0
- package/prompt-input/interfaces.d.ts +82 -0
- package/prompt-input/interfaces.d.ts.map +1 -0
- package/prompt-input/interfaces.js +2 -0
- package/prompt-input/interfaces.js.map +1 -0
- package/prompt-input/internal.d.ts +8 -0
- package/prompt-input/internal.d.ts.map +1 -0
- package/prompt-input/internal.js +109 -0
- package/prompt-input/internal.js.map +1 -0
- package/prompt-input/styles.css.js +13 -0
- package/prompt-input/styles.scoped.css +248 -0
- package/prompt-input/styles.selectors.js +14 -0
- package/prompt-input/test-classes/styles.css.js +8 -0
- package/prompt-input/test-classes/styles.scoped.css +15 -0
- package/prompt-input/test-classes/styles.selectors.js +9 -0
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +86 -86
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/test-utils/dom/index.d.ts +3 -0
- package/test-utils/dom/index.js +10 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/prompt-input/index.d.ts +18 -0
- package/test-utils/dom/prompt-input/index.js +49 -0
- package/test-utils/dom/prompt-input/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +3 -0
- package/test-utils/selectors/index.js +10 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/prompt-input/index.d.ts +6 -0
- package/test-utils/selectors/prompt-input/index.js +15 -0
- package/test-utils/selectors/prompt-input/index.js.map +1 -0
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -2,87 +2,87 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"background": "
|
|
6
|
-
"scrolling-background": "awsui_scrolling-
|
|
7
|
-
"breadcrumbs": "
|
|
8
|
-
"drawers-container": "awsui_drawers-
|
|
9
|
-
"has-open-drawer": "awsui_has-open-
|
|
10
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
11
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
12
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
13
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
14
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
15
|
-
"drawers-trigger-overflow": "awsui_drawers-trigger-
|
|
16
|
-
"drawers-trigger": "awsui_drawers-
|
|
17
|
-
"drawer": "
|
|
18
|
-
"drawer-content-container": "awsui_drawer-content-
|
|
19
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
20
|
-
"drawer-content": "awsui_drawer-
|
|
21
|
-
"drawer-content-hidden": "awsui_drawer-content-
|
|
22
|
-
"drawer-slider": "awsui_drawer-
|
|
23
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
24
|
-
"content": "
|
|
25
|
-
"layout": "
|
|
26
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
27
|
-
"content-type-dashboard": "awsui_content-type-
|
|
28
|
-
"content-type-table": "awsui_content-type-
|
|
29
|
-
"content-type-cards": "awsui_content-type-
|
|
30
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
31
|
-
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-
|
|
32
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
33
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
34
|
-
"has-breadcrumbs": "awsui_has-
|
|
35
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
36
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
37
|
-
"has-header": "awsui_has-
|
|
38
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
39
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
40
|
-
"has-left-toggles-gutter": "awsui_has-left-toggles-
|
|
41
|
-
"has-right-toggles-gutter": "awsui_has-right-toggles-
|
|
42
|
-
"has-split-panel": "awsui_has-split-
|
|
43
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
44
|
-
"block-body-scroll": "awsui_block-body-
|
|
45
|
-
"unfocusable": "
|
|
46
|
-
"container": "
|
|
47
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
48
|
-
"is-tools-open": "awsui_is-tools-
|
|
49
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
50
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
51
|
-
"has-active-drawer": "awsui_has-active-
|
|
52
|
-
"mobile-toolbar": "awsui_mobile-
|
|
53
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
54
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
55
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
56
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
57
|
-
"navigation-container": "awsui_navigation-
|
|
58
|
-
"show-navigation": "awsui_show-
|
|
59
|
-
"animating": "
|
|
60
|
-
"showButtons": "
|
|
61
|
-
"navigation": "
|
|
62
|
-
"openNavigation": "
|
|
63
|
-
"animated-content": "awsui_animated-
|
|
64
|
-
"hide-navigation": "awsui_hide-
|
|
65
|
-
"notifications": "
|
|
66
|
-
"has-notification-content": "awsui_has-notification-
|
|
67
|
-
"sticky-notifications": "awsui_sticky-
|
|
68
|
-
"high-contrast": "awsui_high-
|
|
69
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
70
|
-
"position-bottom": "awsui_position-
|
|
71
|
-
"openSplitPanelBottom": "
|
|
72
|
-
"split-panel-side": "awsui_split-panel-
|
|
73
|
-
"position-side": "awsui_position-
|
|
74
|
-
"tools-container": "awsui_tools-
|
|
75
|
-
"tools": "
|
|
76
|
-
"openTools": "
|
|
77
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
78
|
-
"hide-tools": "awsui_hide-
|
|
79
|
-
"show-tools": "awsui_show-
|
|
80
|
-
"has-tools-form": "awsui_has-tools-
|
|
81
|
-
"trigger-badge-wrapper": "awsui_trigger-badge-
|
|
82
|
-
"trigger": "
|
|
83
|
-
"selected": "
|
|
84
|
-
"badge": "
|
|
85
|
-
"trigger-wrapper": "awsui_trigger-
|
|
86
|
-
"dot": "
|
|
5
|
+
"background": "awsui_background_hyvsj_fae1z_97",
|
|
6
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_fae1z_100",
|
|
7
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_fae1z_111",
|
|
8
|
+
"drawers-container": "awsui_drawers-container_hyvsj_fae1z_124",
|
|
9
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_fae1z_135",
|
|
10
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_fae1z_156",
|
|
11
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_fae1z_161",
|
|
12
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_fae1z_202",
|
|
13
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_fae1z_212",
|
|
14
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_fae1z_217",
|
|
15
|
+
"drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_fae1z_231",
|
|
16
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_fae1z_217",
|
|
17
|
+
"drawer": "awsui_drawer_hyvsj_fae1z_124",
|
|
18
|
+
"drawer-content-container": "awsui_drawer-content-container_hyvsj_fae1z_262",
|
|
19
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_fae1z_271",
|
|
20
|
+
"drawer-content": "awsui_drawer-content_hyvsj_fae1z_262",
|
|
21
|
+
"drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_fae1z_279",
|
|
22
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_fae1z_282",
|
|
23
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_fae1z_289",
|
|
24
|
+
"content": "awsui_content_hyvsj_fae1z_315",
|
|
25
|
+
"layout": "awsui_layout_hyvsj_fae1z_336",
|
|
26
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_fae1z_408",
|
|
27
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_fae1z_423",
|
|
28
|
+
"content-type-table": "awsui_content-type-table_hyvsj_fae1z_437",
|
|
29
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_fae1z_437",
|
|
30
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_fae1z_443",
|
|
31
|
+
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_fae1z_446",
|
|
32
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_fae1z_460",
|
|
33
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_fae1z_463",
|
|
34
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_fae1z_473",
|
|
35
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_fae1z_476",
|
|
36
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_fae1z_476",
|
|
37
|
+
"has-header": "awsui_has-header_hyvsj_fae1z_476",
|
|
38
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_fae1z_491",
|
|
39
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_fae1z_491",
|
|
40
|
+
"has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_fae1z_511",
|
|
41
|
+
"has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_fae1z_514",
|
|
42
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_fae1z_534",
|
|
43
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_fae1z_534",
|
|
44
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_fae1z_542",
|
|
45
|
+
"unfocusable": "awsui_unfocusable_hyvsj_fae1z_547",
|
|
46
|
+
"container": "awsui_container_hyvsj_fae1z_557",
|
|
47
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_fae1z_583",
|
|
48
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_fae1z_586",
|
|
49
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_fae1z_586",
|
|
50
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_fae1z_586",
|
|
51
|
+
"has-active-drawer": "awsui_has-active-drawer_hyvsj_fae1z_586",
|
|
52
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_fae1z_595",
|
|
53
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_fae1z_612",
|
|
54
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_fae1z_616",
|
|
55
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_fae1z_620",
|
|
56
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_fae1z_624",
|
|
57
|
+
"navigation-container": "awsui_navigation-container_hyvsj_fae1z_633",
|
|
58
|
+
"show-navigation": "awsui_show-navigation_hyvsj_fae1z_671",
|
|
59
|
+
"animating": "awsui_animating_hyvsj_fae1z_694",
|
|
60
|
+
"showButtons": "awsui_showButtons_hyvsj_fae1z_1",
|
|
61
|
+
"navigation": "awsui_navigation_hyvsj_fae1z_633",
|
|
62
|
+
"openNavigation": "awsui_openNavigation_hyvsj_fae1z_1",
|
|
63
|
+
"animated-content": "awsui_animated-content_hyvsj_fae1z_756",
|
|
64
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_fae1z_765",
|
|
65
|
+
"notifications": "awsui_notifications_hyvsj_fae1z_775",
|
|
66
|
+
"has-notification-content": "awsui_has-notification-content_hyvsj_fae1z_780",
|
|
67
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_fae1z_784",
|
|
68
|
+
"high-contrast": "awsui_high-contrast_hyvsj_fae1z_789",
|
|
69
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_fae1z_807",
|
|
70
|
+
"position-bottom": "awsui_position-bottom_hyvsj_fae1z_854",
|
|
71
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_fae1z_1",
|
|
72
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_fae1z_883",
|
|
73
|
+
"position-side": "awsui_position-side_hyvsj_fae1z_896",
|
|
74
|
+
"tools-container": "awsui_tools-container_hyvsj_fae1z_918",
|
|
75
|
+
"tools": "awsui_tools_hyvsj_fae1z_918",
|
|
76
|
+
"openTools": "awsui_openTools_hyvsj_fae1z_1",
|
|
77
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_fae1z_1007",
|
|
78
|
+
"hide-tools": "awsui_hide-tools_hyvsj_fae1z_1017",
|
|
79
|
+
"show-tools": "awsui_show-tools_hyvsj_fae1z_1029",
|
|
80
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_fae1z_1007",
|
|
81
|
+
"trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_fae1z_1112",
|
|
82
|
+
"trigger": "awsui_trigger_hyvsj_fae1z_1112",
|
|
83
|
+
"selected": "awsui_selected_hyvsj_fae1z_1190",
|
|
84
|
+
"badge": "awsui_badge_hyvsj_fae1z_1210",
|
|
85
|
+
"trigger-wrapper": "awsui_trigger-wrapper_hyvsj_fae1z_1214",
|
|
86
|
+
"dot": "awsui_dot_hyvsj_fae1z_1225"
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"navigation": "
|
|
5
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
6
|
-
"animating": "
|
|
7
|
-
"openNavigation": "
|
|
8
|
-
"animated-content": "awsui_animated-
|
|
9
|
-
"hide-navigation": "awsui_hide-
|
|
4
|
+
"navigation": "awsui_navigation_2p2ab_23w7n_97",
|
|
5
|
+
"is-navigation-open": "awsui_is-navigation-open_2p2ab_23w7n_125",
|
|
6
|
+
"animating": "awsui_animating_2p2ab_23w7n_129",
|
|
7
|
+
"openNavigation": "awsui_openNavigation_2p2ab_23w7n_1",
|
|
8
|
+
"animated-content": "awsui_animated-content_2p2ab_23w7n_142",
|
|
9
|
+
"hide-navigation": "awsui_hide-navigation_2p2ab_23w7n_151"
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.
|
|
97
|
+
.awsui_navigation_2p2ab_23w7n_97:not(#\9) {
|
|
98
98
|
position: sticky;
|
|
99
99
|
background-color: var(--color-background-container-content-4un1ap, #ffffff);
|
|
100
100
|
inset-block-end: 0;
|
|
@@ -112,43 +112,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
112
112
|
prevent unwanted text wrapping.
|
|
113
113
|
*/
|
|
114
114
|
}
|
|
115
|
-
@keyframes
|
|
115
|
+
@keyframes awsui_openNavigation_2p2ab_23w7n_1 {
|
|
116
116
|
from {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
inline-size: calc(var(--space-layout-toggle-padding-lcu6qi, 12px) * 2 + var(--space-layout-toggle-diameter-hb85rk, 36px));
|
|
119
119
|
}
|
|
120
120
|
to {
|
|
121
121
|
opacity: 1;
|
|
122
|
-
inline-size: var(--awsui-navigation-width-
|
|
122
|
+
inline-size: var(--awsui-navigation-width-g964ok);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.awsui_navigation_2p2ab_23w7n_97:not(#\9):not(.awsui_is-navigation-open_2p2ab_23w7n_125) {
|
|
126
126
|
inline-size: 0;
|
|
127
127
|
display: none;
|
|
128
128
|
}
|
|
129
|
-
.
|
|
130
|
-
animation:
|
|
129
|
+
.awsui_navigation_2p2ab_23w7n_97.awsui_is-navigation-open_2p2ab_23w7n_125.awsui_animating_2p2ab_23w7n_129:not(#\9) {
|
|
130
|
+
animation: awsui_openNavigation_2p2ab_23w7n_1 var(--motion-duration-refresh-only-fast-4jn2d7, 115ms);
|
|
131
131
|
}
|
|
132
132
|
@media (prefers-reduced-motion: reduce) {
|
|
133
|
-
.
|
|
133
|
+
.awsui_navigation_2p2ab_23w7n_97.awsui_is-navigation-open_2p2ab_23w7n_125.awsui_animating_2p2ab_23w7n_129:not(#\9) {
|
|
134
134
|
animation: none;
|
|
135
135
|
transition: none;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
.awsui-motion-disabled .
|
|
138
|
+
.awsui-motion-disabled .awsui_navigation_2p2ab_23w7n_97.awsui_is-navigation-open_2p2ab_23w7n_125.awsui_animating_2p2ab_23w7n_129:not(#\9), .awsui-mode-entering .awsui_navigation_2p2ab_23w7n_97.awsui_is-navigation-open_2p2ab_23w7n_125.awsui_animating_2p2ab_23w7n_129:not(#\9) {
|
|
139
139
|
animation: none;
|
|
140
140
|
transition: none;
|
|
141
141
|
}
|
|
142
|
-
.
|
|
143
|
-
inline-size: var(--awsui-navigation-width-
|
|
142
|
+
.awsui_navigation_2p2ab_23w7n_97 > .awsui_animated-content_2p2ab_23w7n_142:not(#\9) {
|
|
143
|
+
inline-size: var(--awsui-navigation-width-g964ok);
|
|
144
144
|
}
|
|
145
145
|
@media (max-width: 688px) {
|
|
146
|
-
.
|
|
147
|
-
--awsui-navigation-width-
|
|
146
|
+
.awsui_navigation_2p2ab_23w7n_97:not(#\9) {
|
|
147
|
+
--awsui-navigation-width-g964ok: 100vw;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.awsui_hide-
|
|
151
|
+
.awsui_hide-navigation_2p2ab_23w7n_151:not(#\9) {
|
|
152
152
|
position: absolute;
|
|
153
153
|
inset-inline-end: var(--space-m-udix3p, 16px);
|
|
154
154
|
inset-block-start: var(--size-vertical-panel-icon-offset-wy8j08, 15px);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"navigation": "
|
|
6
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
7
|
-
"animating": "
|
|
8
|
-
"openNavigation": "
|
|
9
|
-
"animated-content": "awsui_animated-
|
|
10
|
-
"hide-navigation": "awsui_hide-
|
|
5
|
+
"navigation": "awsui_navigation_2p2ab_23w7n_97",
|
|
6
|
+
"is-navigation-open": "awsui_is-navigation-open_2p2ab_23w7n_125",
|
|
7
|
+
"animating": "awsui_animating_2p2ab_23w7n_129",
|
|
8
|
+
"openNavigation": "awsui_openNavigation_2p2ab_23w7n_1",
|
|
9
|
+
"animated-content": "awsui_animated-content_2p2ab_23w7n_142",
|
|
10
|
+
"hide-navigation": "awsui_hide-navigation_2p2ab_23w7n_151"
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-
|
|
6
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-
|
|
7
|
-
"navigation": "
|
|
8
|
-
"tools": "
|
|
9
|
-
"split-panel-side": "awsui_split-panel-
|
|
10
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
11
|
-
"panel-hidden": "awsui_panel-
|
|
12
|
-
"toolbar-container": "awsui_toolbar-
|
|
13
|
-
"notifications-container": "awsui_notifications-
|
|
14
|
-
"main-landmark": "awsui_main-
|
|
15
|
-
"main": "
|
|
16
|
-
"main-disable-paddings": "awsui_main-disable-
|
|
17
|
-
"content-header": "awsui_content-
|
|
18
|
-
"content": "
|
|
19
|
-
"unfocusable-mobile": "awsui_unfocusable-
|
|
4
|
+
"root": "awsui_root_7nfqu_1qo46_101",
|
|
5
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_7nfqu_1qo46_150",
|
|
6
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_7nfqu_1qo46_165",
|
|
7
|
+
"navigation": "awsui_navigation_7nfqu_1qo46_180",
|
|
8
|
+
"tools": "awsui_tools_7nfqu_1qo46_181",
|
|
9
|
+
"split-panel-side": "awsui_split-panel-side_7nfqu_1qo46_205",
|
|
10
|
+
"split-panel-bottom": "awsui_split-panel-bottom_7nfqu_1qo46_211",
|
|
11
|
+
"panel-hidden": "awsui_panel-hidden_7nfqu_1qo46_224",
|
|
12
|
+
"toolbar-container": "awsui_toolbar-container_7nfqu_1qo46_228",
|
|
13
|
+
"notifications-container": "awsui_notifications-container_7nfqu_1qo46_234",
|
|
14
|
+
"main-landmark": "awsui_main-landmark_7nfqu_1qo46_241",
|
|
15
|
+
"main": "awsui_main_7nfqu_1qo46_241",
|
|
16
|
+
"main-disable-paddings": "awsui_main-disable-paddings_7nfqu_1qo46_250",
|
|
17
|
+
"content-header": "awsui_content-header_7nfqu_1qo46_260",
|
|
18
|
+
"content": "awsui_content_7nfqu_1qo46_260",
|
|
19
|
+
"unfocusable-mobile": "awsui_unfocusable-mobile_7nfqu_1qo46_269"
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -98,7 +98,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
98
98
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
99
99
|
SPDX-License-Identifier: Apache-2.0
|
|
100
100
|
*/
|
|
101
|
-
.
|
|
101
|
+
.awsui_root_7nfqu_1qo46_101:not(#\9) {
|
|
102
102
|
border-collapse: separate;
|
|
103
103
|
border-spacing: 0;
|
|
104
104
|
box-sizing: border-box;
|
|
@@ -134,52 +134,52 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
134
134
|
-moz-osx-font-smoothing: auto;
|
|
135
135
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
136
136
|
background-color: var(--color-background-layout-main-nx09lr, #ffffff);
|
|
137
|
-
--awsui-max-content-width-
|
|
137
|
+
--awsui-max-content-width-g964ok: 100%;
|
|
138
138
|
display: grid;
|
|
139
139
|
grid-template-areas: "topBar topBar topBar" ". notifications ." ". main .";
|
|
140
140
|
grid-template-columns: var(--space-layout-content-horizontal-7l52k3, 24px) 1fr var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
141
141
|
grid-template-rows: min-content min-content 1fr;
|
|
142
142
|
}
|
|
143
143
|
@media (min-width: 689px) {
|
|
144
|
-
.
|
|
144
|
+
.awsui_root_7nfqu_1qo46_101:not(#\9) {
|
|
145
145
|
grid-template-areas: "navigation toolbar toolbar toolbar toolbar tools" "navigation . notifications . sideSplitPanel tools" "navigation . main . sideSplitPanel tools";
|
|
146
|
-
grid-template-columns: min-content minmax(var(--space-layout-content-horizontal-7l52k3, 24px), 1fr) minmax(0, var(--awsui-max-content-width-
|
|
146
|
+
grid-template-columns: min-content minmax(var(--space-layout-content-horizontal-7l52k3, 24px), 1fr) minmax(0, var(--awsui-max-content-width-g964ok)) minmax(var(--space-layout-content-horizontal-7l52k3, 24px), 1fr) min-content min-content;
|
|
147
147
|
grid-template-rows: min-content min-content 1fr min-content;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
@media (min-width: 689px) and (min-width: 1401px) {
|
|
151
|
-
.
|
|
152
|
-
--awsui-max-content-width-
|
|
151
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-default_7nfqu_1qo46_150:not(#\9) {
|
|
152
|
+
--awsui-max-content-width-g964ok: 1280px;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
@media (min-width: 689px) and (min-width: 1921px) {
|
|
156
|
-
.
|
|
157
|
-
--awsui-max-content-width-
|
|
156
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-default_7nfqu_1qo46_150:not(#\9) {
|
|
157
|
+
--awsui-max-content-width-g964ok: 1440px;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
@media (min-width: 689px) and (min-width: 2541px) {
|
|
161
|
-
.
|
|
162
|
-
--awsui-max-content-width-
|
|
161
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-default_7nfqu_1qo46_150:not(#\9) {
|
|
162
|
+
--awsui-max-content-width-g964ok: 1620px;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
@media (min-width: 689px) and (min-width: 1401px) {
|
|
166
|
-
.
|
|
167
|
-
--awsui-max-content-width-
|
|
166
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-dashboard_7nfqu_1qo46_165:not(#\9) {
|
|
167
|
+
--awsui-max-content-width-g964ok: 1280px;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
@media (min-width: 689px) and (min-width: 1921px) {
|
|
171
|
-
.
|
|
172
|
-
--awsui-max-content-width-
|
|
171
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-dashboard_7nfqu_1qo46_165:not(#\9) {
|
|
172
|
+
--awsui-max-content-width-g964ok: 1620px;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
@media (min-width: 689px) and (min-width: 2541px) {
|
|
176
|
-
.
|
|
177
|
-
--awsui-max-content-width-
|
|
176
|
+
.awsui_root_7nfqu_1qo46_101.awsui_has-adaptive-widths-dashboard_7nfqu_1qo46_165:not(#\9) {
|
|
177
|
+
--awsui-max-content-width-g964ok: 2160px;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
.
|
|
182
|
-
.
|
|
181
|
+
.awsui_navigation_7nfqu_1qo46_180:not(#\9),
|
|
182
|
+
.awsui_tools_7nfqu_1qo46_181:not(#\9) {
|
|
183
183
|
grid-row: 1/-1;
|
|
184
184
|
grid-column: 1/-1;
|
|
185
185
|
background: var(--color-background-container-content-4un1ap, #ffffff);
|
|
@@ -187,29 +187,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
@media (min-width: 689px) {
|
|
190
|
-
.
|
|
190
|
+
.awsui_navigation_7nfqu_1qo46_180:not(#\9) {
|
|
191
191
|
grid-area: navigation;
|
|
192
|
-
inline-size: var(--awsui-navigation-width-
|
|
192
|
+
inline-size: var(--awsui-navigation-width-g964ok);
|
|
193
193
|
border-inline-end: 1px solid var(--color-border-divider-panel-side-93n0qu, #b6bec9);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
@media (min-width: 689px) {
|
|
198
|
-
.
|
|
198
|
+
.awsui_tools_7nfqu_1qo46_181:not(#\9) {
|
|
199
199
|
grid-area: tools;
|
|
200
|
-
inline-size: var(--awsui-tools-width-
|
|
200
|
+
inline-size: var(--awsui-tools-width-g964ok);
|
|
201
201
|
border-inline-start: 1px solid var(--color-border-divider-panel-side-93n0qu, #b6bec9);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
@media (min-width: 689px) {
|
|
206
|
-
.awsui_split-panel-
|
|
206
|
+
.awsui_split-panel-side_7nfqu_1qo46_205:not(#\9) {
|
|
207
207
|
grid-area: sideSplitPanel;
|
|
208
208
|
border-inline-start: 1px solid var(--color-border-divider-panel-side-93n0qu, #b6bec9);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.awsui_split-panel-
|
|
212
|
+
.awsui_split-panel-bottom_7nfqu_1qo46_211:not(#\9) {
|
|
213
213
|
position: sticky;
|
|
214
214
|
z-index: 840;
|
|
215
215
|
align-self: end;
|
|
@@ -217,61 +217,61 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
217
|
grid-column: 1/-1;
|
|
218
218
|
}
|
|
219
219
|
@media (min-width: 689px) {
|
|
220
|
-
.awsui_split-panel-
|
|
220
|
+
.awsui_split-panel-bottom_7nfqu_1qo46_211:not(#\9) {
|
|
221
221
|
grid-column: 2/span 3;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
.awsui_panel-
|
|
225
|
+
.awsui_panel-hidden_7nfqu_1qo46_224:not(#\9) {
|
|
226
226
|
display: none;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
.awsui_toolbar-
|
|
229
|
+
.awsui_toolbar-container_7nfqu_1qo46_228:not(#\9) {
|
|
230
230
|
grid-area: toolbar;
|
|
231
231
|
block-size: 48px;
|
|
232
232
|
border-block-end: 1px solid var(--color-border-divider-panel-bottom-dwyqvg, #b6bec9);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
.awsui_notifications-
|
|
235
|
+
.awsui_notifications-container_7nfqu_1qo46_234:not(#\9) {
|
|
236
236
|
grid-area: notifications;
|
|
237
237
|
}
|
|
238
|
-
.awsui_notifications-
|
|
238
|
+
.awsui_notifications-container_7nfqu_1qo46_234:not(#\9):not(:empty) {
|
|
239
239
|
padding-block-start: var(--space-scaled-xs-26e2du, 8px);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
.awsui_main-
|
|
242
|
+
.awsui_main-landmark_7nfqu_1qo46_241:not(#\9) {
|
|
243
243
|
display: contents;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
.
|
|
246
|
+
.awsui_main_7nfqu_1qo46_241:not(#\9) {
|
|
247
247
|
grid-area: main;
|
|
248
248
|
margin-block-start: var(--space-scaled-s-aqzyko, 12px);
|
|
249
249
|
margin-block-end: var(--space-layout-content-bottom-noqzmw, 40px);
|
|
250
250
|
}
|
|
251
|
-
.awsui_main-disable-
|
|
251
|
+
.awsui_main-disable-paddings_7nfqu_1qo46_250:not(#\9) {
|
|
252
252
|
grid-column: 1/-1;
|
|
253
253
|
margin-block: 0;
|
|
254
254
|
}
|
|
255
255
|
@media (min-width: 689px) {
|
|
256
|
-
.awsui_main-disable-
|
|
256
|
+
.awsui_main-disable-paddings_7nfqu_1qo46_250:not(#\9) {
|
|
257
257
|
grid-column: 2/span 3;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.awsui_content-
|
|
261
|
+
.awsui_content-header_7nfqu_1qo46_260:not(#\9) {
|
|
262
262
|
margin-block-end: var(--space-content-header-padding-bottom-y2enua, 16px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.
|
|
265
|
+
.awsui_content_7nfqu_1qo46_260:not(#\9) {
|
|
266
266
|
display: contents;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
/* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
|
|
270
|
-
.awsui_unfocusable-
|
|
270
|
+
.awsui_unfocusable-mobile_7nfqu_1qo46_269 *:not(#\9) {
|
|
271
271
|
visibility: hidden;
|
|
272
272
|
}
|
|
273
273
|
@media (min-width: 689px) {
|
|
274
|
-
.awsui_unfocusable-
|
|
274
|
+
.awsui_unfocusable-mobile_7nfqu_1qo46_269 *:not(#\9) {
|
|
275
275
|
visibility: visible;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
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
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-
|
|
7
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-
|
|
8
|
-
"navigation": "
|
|
9
|
-
"tools": "
|
|
10
|
-
"split-panel-side": "awsui_split-panel-
|
|
11
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
12
|
-
"panel-hidden": "awsui_panel-
|
|
13
|
-
"toolbar-container": "awsui_toolbar-
|
|
14
|
-
"notifications-container": "awsui_notifications-
|
|
15
|
-
"main-landmark": "awsui_main-
|
|
16
|
-
"main": "
|
|
17
|
-
"main-disable-paddings": "awsui_main-disable-
|
|
18
|
-
"content-header": "awsui_content-
|
|
19
|
-
"content": "
|
|
20
|
-
"unfocusable-mobile": "awsui_unfocusable-
|
|
5
|
+
"root": "awsui_root_7nfqu_1qo46_101",
|
|
6
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_7nfqu_1qo46_150",
|
|
7
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_7nfqu_1qo46_165",
|
|
8
|
+
"navigation": "awsui_navigation_7nfqu_1qo46_180",
|
|
9
|
+
"tools": "awsui_tools_7nfqu_1qo46_181",
|
|
10
|
+
"split-panel-side": "awsui_split-panel-side_7nfqu_1qo46_205",
|
|
11
|
+
"split-panel-bottom": "awsui_split-panel-bottom_7nfqu_1qo46_211",
|
|
12
|
+
"panel-hidden": "awsui_panel-hidden_7nfqu_1qo46_224",
|
|
13
|
+
"toolbar-container": "awsui_toolbar-container_7nfqu_1qo46_228",
|
|
14
|
+
"notifications-container": "awsui_notifications-container_7nfqu_1qo46_234",
|
|
15
|
+
"main-landmark": "awsui_main-landmark_7nfqu_1qo46_241",
|
|
16
|
+
"main": "awsui_main_7nfqu_1qo46_241",
|
|
17
|
+
"main-disable-paddings": "awsui_main-disable-paddings_7nfqu_1qo46_250",
|
|
18
|
+
"content-header": "awsui_content-header_7nfqu_1qo46_260",
|
|
19
|
+
"content": "awsui_content_7nfqu_1qo46_260",
|
|
20
|
+
"unfocusable-mobile": "awsui_unfocusable-mobile_7nfqu_1qo46_269"
|
|
21
21
|
};
|
|
22
22
|
|
package/button/interfaces.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Provides a reason why the button is disabled (only when `disabled` is `true`).
|
|
12
12
|
* If provided, the button becomes focusable.
|
|
13
|
-
* Applicable for all button variants, except link.
|
|
13
|
+
* Applicable for all button variants, except link and icon.
|
|
14
14
|
*/
|
|
15
15
|
disabledReason?: string;
|
|
16
16
|
/**
|
package/button/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n * Applicable for all button variants, except link.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n\n /**\n * Adds `aria-label` to the button element. Use this to provide an accessible name for buttons\n * that don't have visible text, and to distinguish between multiple buttons with identical visible text.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n * * `inline-link` to display a tertiary button with no outer padding.\n */\n variant?: ButtonProps.Variant;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the ancestor of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n ariaExpanded?: boolean;\n\n /**\n * Adds `aria-controls` to the button. Use when the button controls the contents or presence of an element.\n */\n ariaControls?: string;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon' | 'inline-link';\n export type ClickDetail = _ClickDetail;\n export type FollowDetail = BaseNavigationDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n * Applicable for all button variants, except link and icon.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n\n /**\n * Adds `aria-label` to the button element. Use this to provide an accessible name for buttons\n * that don't have visible text, and to distinguish between multiple buttons with identical visible text.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n * * `inline-link` to display a tertiary button with no outer padding.\n */\n variant?: ButtonProps.Variant;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the ancestor of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n ariaExpanded?: boolean;\n\n /**\n * Adds `aria-controls` to the button. Use when the button controls the contents or presence of an element.\n */\n ariaControls?: string;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon' | 'inline-link';\n export type ClickDetail = _ClickDetail;\n export type FollowDetail = BaseNavigationDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n}\n"]}
|
|
@@ -57,7 +57,7 @@ function MenuItem({ item, disabled, highlighted }) {
|
|
|
57
57
|
React.createElement(MenuItemContent, { item: item, disabled: disabled })));
|
|
58
58
|
const { position } = useDropdownContext();
|
|
59
59
|
const tooltipPosition = position === 'bottom-left' || position === 'top-left' ? 'left' : 'right';
|
|
60
|
-
return isDisabledWithReason ? (React.createElement(Tooltip, { content: item.disabledReason, position: tooltipPosition },
|
|
60
|
+
return isDisabledWithReason ? (React.createElement(Tooltip, { content: item.disabledReason, position: tooltipPosition, className: styles['item-tooltip-wrapper'] },
|
|
61
61
|
menuItem,
|
|
62
62
|
descriptionEl)) : (menuItem);
|
|
63
63
|
}
|