@cloudscape-design/components-themeable 3.0.787 → 3.0.789
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/app-layout/test-classes/styles.scss +8 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/split-panel/styles.scss +1 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scss +0 -8
- package/lib/internal/scss/internal/styles/forms/mixins.scss +7 -0
- package/lib/internal/scss/prompt-input/styles.scss +127 -34
- package/lib/internal/scss/prompt-input/test-classes/styles.scss +8 -0
- package/lib/internal/scss/split-panel/styles.scss +3 -0
- package/lib/internal/template/app-layout/test-classes/styles.css.js +22 -20
- package/lib/internal/template/app-layout/test-classes/styles.scoped.css +28 -20
- package/lib/internal/template/app-layout/test-classes/styles.selectors.js +22 -20
- package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.js +5 -5
- package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +2 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +7 -7
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +7 -9
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +19 -27
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +7 -9
- package/lib/internal/template/area-chart/internal.d.ts.map +1 -1
- package/lib/internal/template/area-chart/internal.js +1 -0
- package/lib/internal/template/area-chart/internal.js.map +1 -1
- package/lib/internal/template/area-chart/model/use-chart-model.d.ts +2 -1
- package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/lib/internal/template/area-chart/model/use-chart-model.js +2 -2
- package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
- package/lib/internal/template/internal/components/tooltip/index.d.ts +2 -1
- package/lib/internal/template/internal/components/tooltip/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/tooltip/index.js +2 -2
- package/lib/internal/template/internal/components/tooltip/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/popover/container.d.ts +2 -1
- package/lib/internal/template/popover/container.d.ts.map +1 -1
- package/lib/internal/template/popover/container.js +5 -4
- package/lib/internal/template/popover/container.js.map +1 -1
- package/lib/internal/template/popover/interfaces.d.ts +4 -0
- package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
- package/lib/internal/template/popover/interfaces.js.map +1 -1
- package/lib/internal/template/popover/use-popover-position.d.ts +3 -1
- package/lib/internal/template/popover/use-popover-position.d.ts.map +1 -1
- package/lib/internal/template/popover/use-popover-position.js +21 -5
- package/lib/internal/template/popover/use-popover-position.js.map +1 -1
- package/lib/internal/template/popover/utils/positions.d.ts +2 -1
- package/lib/internal/template/popover/utils/positions.d.ts.map +1 -1
- package/lib/internal/template/popover/utils/positions.js +6 -0
- package/lib/internal/template/popover/utils/positions.js.map +1 -1
- package/lib/internal/template/prompt-input/interfaces.d.ts +16 -0
- package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
- package/lib/internal/template/prompt-input/internal.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/internal.js +28 -11
- package/lib/internal/template/prompt-input/internal.js.map +1 -1
- package/lib/internal/template/prompt-input/styles.css.js +14 -8
- package/lib/internal/template/prompt-input/styles.scoped.css +264 -68
- package/lib/internal/template/prompt-input/styles.selectors.js +14 -8
- package/lib/internal/template/prompt-input/test-classes/styles.css.js +5 -3
- package/lib/internal/template/prompt-input/test-classes/styles.scoped.css +11 -3
- package/lib/internal/template/prompt-input/test-classes/styles.selectors.js +5 -3
- package/lib/internal/template/select/parts/item.d.ts.map +1 -1
- package/lib/internal/template/select/parts/item.js +1 -1
- package/lib/internal/template/select/parts/item.js.map +1 -1
- package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
- package/lib/internal/template/select/parts/multiselect-item.js +1 -1
- package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
- package/lib/internal/template/split-panel/implementation.js +1 -1
- package/lib/internal/template/split-panel/implementation.js.map +1 -1
- package/lib/internal/template/split-panel/side.d.ts.map +1 -1
- package/lib/internal/template/split-panel/side.js +3 -1
- package/lib/internal/template/split-panel/side.js.map +1 -1
- package/lib/internal/template/split-panel/styles.css.js +26 -26
- package/lib/internal/template/split-panel/styles.scoped.css +46 -43
- package/lib/internal/template/split-panel/styles.selectors.js +26 -26
- package/lib/internal/template/test-utils/dom/app-layout/index.d.ts +2 -0
- package/lib/internal/template/test-utils/dom/app-layout/index.js +6 -0
- package/lib/internal/template/test-utils/dom/app-layout/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/prompt-input/index.d.ts +2 -0
- package/lib/internal/template/test-utils/dom/prompt-input/index.js +6 -0
- package/lib/internal/template/test-utils/dom/prompt-input/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/app-layout/index.d.ts +2 -0
- package/lib/internal/template/test-utils/selectors/app-layout/index.js +6 -0
- package/lib/internal/template/test-utils/selectors/app-layout/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/prompt-input/index.d.ts +2 -0
- package/lib/internal/template/test-utils/selectors/prompt-input/index.js +6 -0
- package/lib/internal/template/test-utils/selectors/prompt-input/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/internal/scss/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scss
CHANGED
|
@@ -99,10 +99,6 @@
|
|
|
99
99
|
border-end-end-radius: 50%;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.trigger-wrapper-tooltip-visible {
|
|
103
|
-
/* used in test-utils*/
|
|
104
|
-
}
|
|
105
|
-
|
|
106
102
|
.dot {
|
|
107
103
|
position: absolute;
|
|
108
104
|
inline-size: 8px;
|
|
@@ -115,7 +111,3 @@
|
|
|
115
111
|
inset-block-start: 1px;
|
|
116
112
|
inset-inline-end: -1px;
|
|
117
113
|
}
|
|
118
|
-
|
|
119
|
-
.trigger-tooltip {
|
|
120
|
-
/* used in test-utils */
|
|
121
|
-
}
|
|
@@ -255,3 +255,10 @@
|
|
|
255
255
|
block-size: $height;
|
|
256
256
|
inline-size: $width;
|
|
257
257
|
}
|
|
258
|
+
|
|
259
|
+
@mixin control-border-radius-full {
|
|
260
|
+
border-start-start-radius: constants.$control-border-radius;
|
|
261
|
+
border-start-end-radius: constants.$control-border-radius;
|
|
262
|
+
border-end-start-radius: constants.$control-border-radius;
|
|
263
|
+
border-end-end-radius: constants.$control-border-radius;
|
|
264
|
+
}
|
|
@@ -6,40 +6,81 @@
|
|
|
6
6
|
|
|
7
7
|
@use '../internal/styles' as styles;
|
|
8
8
|
@use '../internal/styles/tokens' as awsui;
|
|
9
|
+
@use '../internal/styles/foundation/' as foundation;
|
|
10
|
+
@use '../internal/styles/forms/constants' as constants;
|
|
9
11
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
10
12
|
|
|
11
13
|
$send-icon-right-spacing: awsui.$space-static-xxs;
|
|
14
|
+
$invalid-border-offset: constants.$invalid-control-left-padding;
|
|
12
15
|
|
|
13
16
|
.root {
|
|
14
|
-
|
|
17
|
+
@include styles.styles-reset;
|
|
18
|
+
@include styles.control-border-radius-full();
|
|
19
|
+
cursor: text;
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
background-color: awsui.$color-background-input-default;
|
|
22
|
+
|
|
23
|
+
border-block: styles.$control-border-width solid awsui.$color-border-input-default;
|
|
24
|
+
border-inline: styles.$control-border-width solid awsui.$color-border-input-default;
|
|
25
|
+
|
|
26
|
+
&.textarea-readonly {
|
|
27
|
+
@include styles.form-readonly-element;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.disabled {
|
|
31
|
+
@include styles.form-disabled-element;
|
|
32
|
+
cursor: default;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.textarea-invalid {
|
|
36
|
+
@include styles.form-invalid-control();
|
|
37
|
+
& {
|
|
38
|
+
padding-inline-start: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus-within,
|
|
42
|
+
&:focus {
|
|
43
|
+
@include styles.form-invalid-control();
|
|
44
|
+
& {
|
|
45
|
+
padding-inline-start: 0;
|
|
46
|
+
box-shadow: foundation.$box-shadow-focused-light-invalid;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.textarea-warning {
|
|
52
|
+
@include styles.form-warning-control();
|
|
53
|
+
& {
|
|
54
|
+
padding-inline-start: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:focus-within,
|
|
58
|
+
&:focus {
|
|
59
|
+
@include styles.form-warning-control();
|
|
60
|
+
& {
|
|
61
|
+
padding-inline-start: 0;
|
|
62
|
+
box-shadow: foundation.$box-shadow-focused-light-invalid;
|
|
30
63
|
}
|
|
31
64
|
}
|
|
32
65
|
}
|
|
66
|
+
|
|
67
|
+
&:focus-within,
|
|
68
|
+
&:focus {
|
|
69
|
+
@include styles.form-focus-element;
|
|
70
|
+
}
|
|
33
71
|
}
|
|
34
72
|
|
|
35
73
|
.textarea {
|
|
36
74
|
@include styles.styles-reset;
|
|
75
|
+
@include styles.control-border-radius-full();
|
|
76
|
+
@include styles.font-body-m;
|
|
37
77
|
// Restore browsers' default resize values
|
|
38
78
|
resize: none;
|
|
39
79
|
// Restore default text cursor
|
|
40
80
|
cursor: text;
|
|
41
81
|
// Allow multi-line placeholders
|
|
42
82
|
white-space: pre-wrap;
|
|
83
|
+
background-color: inherit;
|
|
43
84
|
|
|
44
85
|
padding-block: styles.$control-padding-vertical;
|
|
45
86
|
padding-inline: styles.$control-padding-horizontal;
|
|
@@ -49,19 +90,8 @@ $send-icon-right-spacing: awsui.$space-static-xxs;
|
|
|
49
90
|
inline-size: 100%;
|
|
50
91
|
display: block;
|
|
51
92
|
box-sizing: border-box;
|
|
52
|
-
background-color: awsui.$color-background-input-default;
|
|
53
|
-
border-start-start-radius: styles.$control-border-radius;
|
|
54
|
-
border-start-end-radius: styles.$control-border-radius;
|
|
55
|
-
border-end-start-radius: styles.$control-border-radius;
|
|
56
|
-
border-end-end-radius: styles.$control-border-radius;
|
|
57
|
-
border-block: styles.$control-border-width solid awsui.$color-border-input-default;
|
|
58
|
-
border-inline: styles.$control-border-width solid awsui.$color-border-input-default;
|
|
59
93
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
&.textarea-readonly {
|
|
63
|
-
@include styles.form-readonly-element;
|
|
64
|
-
}
|
|
94
|
+
border: 0;
|
|
65
95
|
|
|
66
96
|
&::placeholder {
|
|
67
97
|
@include styles.form-placeholder;
|
|
@@ -73,7 +103,7 @@ $send-icon-right-spacing: awsui.$space-static-xxs;
|
|
|
73
103
|
}
|
|
74
104
|
|
|
75
105
|
&:focus {
|
|
76
|
-
|
|
106
|
+
outline: none;
|
|
77
107
|
}
|
|
78
108
|
|
|
79
109
|
&:invalid {
|
|
@@ -81,8 +111,14 @@ $send-icon-right-spacing: awsui.$space-static-xxs;
|
|
|
81
111
|
box-shadow: none;
|
|
82
112
|
}
|
|
83
113
|
|
|
114
|
+
&.invalid,
|
|
115
|
+
&.warning {
|
|
116
|
+
padding-inline-start: $invalid-border-offset;
|
|
117
|
+
}
|
|
118
|
+
|
|
84
119
|
&:disabled {
|
|
85
120
|
@include styles.form-disabled-element;
|
|
121
|
+
border: 0;
|
|
86
122
|
cursor: default;
|
|
87
123
|
|
|
88
124
|
&::placeholder {
|
|
@@ -95,14 +131,71 @@ $send-icon-right-spacing: awsui.$space-static-xxs;
|
|
|
95
131
|
}
|
|
96
132
|
}
|
|
97
133
|
|
|
98
|
-
|
|
99
|
-
|
|
134
|
+
&-wrapper {
|
|
135
|
+
display: flex;
|
|
100
136
|
}
|
|
137
|
+
}
|
|
101
138
|
|
|
102
|
-
|
|
103
|
-
|
|
139
|
+
.button {
|
|
140
|
+
align-self: flex-end;
|
|
141
|
+
padding-inline: calc(styles.$control-padding-horizontal / 2);
|
|
142
|
+
padding-block-end: awsui.$space-scaled-xxxs;
|
|
143
|
+
|
|
144
|
+
> .action-button {
|
|
145
|
+
padding: 0;
|
|
146
|
+
|
|
147
|
+
// offset the focus ring by 1px per side so it doesn't blend into the textarea border
|
|
148
|
+
@include focus-visible.when-visible {
|
|
149
|
+
@include styles.focus-highlight(
|
|
150
|
+
(
|
|
151
|
+
'vertical': calc((-1 * #{awsui.$space-xxxs}) - 1px),
|
|
152
|
+
'horizontal': calc((#{awsui.$space-xxxs}) - 1px),
|
|
153
|
+
)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
104
156
|
}
|
|
105
|
-
|
|
106
|
-
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.secondary-content {
|
|
160
|
+
@include styles.styles-reset;
|
|
161
|
+
@include styles.control-border-radius-full();
|
|
162
|
+
|
|
163
|
+
&.with-paddings {
|
|
164
|
+
padding-block-start: styles.$control-padding-vertical;
|
|
165
|
+
padding-block-end: awsui.$space-scaled-s;
|
|
166
|
+
padding-inline-start: styles.$control-padding-horizontal;
|
|
167
|
+
padding-inline-end: calc(styles.$control-padding-horizontal / 2);
|
|
168
|
+
|
|
169
|
+
&.invalid,
|
|
170
|
+
&.warning {
|
|
171
|
+
padding-inline-start: $invalid-border-offset;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.secondary-actions {
|
|
177
|
+
@include styles.styles-reset;
|
|
178
|
+
@include styles.control-border-radius-full();
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: space-between;
|
|
181
|
+
align-items: flex-end;
|
|
182
|
+
|
|
183
|
+
&.with-paddings {
|
|
184
|
+
padding-inline-start: styles.$control-padding-horizontal;
|
|
185
|
+
padding-block-start: awsui.$space-scaled-s;
|
|
186
|
+
padding-block-end: styles.$control-padding-vertical;
|
|
187
|
+
|
|
188
|
+
&.invalid,
|
|
189
|
+
&.warning {
|
|
190
|
+
padding-inline-start: $invalid-border-offset;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
> .button {
|
|
194
|
+
padding-block-end: 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
> .button {
|
|
199
|
+
padding-block-end: awsui.$space-scaled-xxs;
|
|
107
200
|
}
|
|
108
201
|
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"navigation": "
|
|
6
|
-
"navigation-toggle": "awsui_navigation-
|
|
7
|
-
"navigation-close": "awsui_navigation-
|
|
8
|
-
"content": "
|
|
9
|
-
"notifications": "
|
|
10
|
-
"breadcrumbs": "
|
|
11
|
-
"tools": "
|
|
12
|
-
"tools-close": "awsui_tools-
|
|
13
|
-
"tools-toggle": "awsui_tools-
|
|
14
|
-
"drawer-closed": "awsui_drawer-
|
|
15
|
-
"mobile-bar": "awsui_mobile-
|
|
16
|
-
"disable-body-scroll-root": "awsui_disable-body-scroll-
|
|
17
|
-
"drawers-trigger": "awsui_drawers-
|
|
18
|
-
"drawers-trigger-global": "awsui_drawers-trigger-
|
|
19
|
-
"active-drawer": "awsui_active-
|
|
20
|
-
"active-drawer-close-button": "awsui_active-drawer-close-
|
|
21
|
-
"overflow-menu": "awsui_overflow-
|
|
22
|
-
"drawers-slider": "awsui_drawers-
|
|
23
|
-
"toolbar": "
|
|
4
|
+
"root": "awsui_root_1fj9k_ghfh2_5",
|
|
5
|
+
"navigation": "awsui_navigation_1fj9k_ghfh2_9",
|
|
6
|
+
"navigation-toggle": "awsui_navigation-toggle_1fj9k_ghfh2_13",
|
|
7
|
+
"navigation-close": "awsui_navigation-close_1fj9k_ghfh2_17",
|
|
8
|
+
"content": "awsui_content_1fj9k_ghfh2_21",
|
|
9
|
+
"notifications": "awsui_notifications_1fj9k_ghfh2_25",
|
|
10
|
+
"breadcrumbs": "awsui_breadcrumbs_1fj9k_ghfh2_29",
|
|
11
|
+
"tools": "awsui_tools_1fj9k_ghfh2_33",
|
|
12
|
+
"tools-close": "awsui_tools-close_1fj9k_ghfh2_37",
|
|
13
|
+
"tools-toggle": "awsui_tools-toggle_1fj9k_ghfh2_41",
|
|
14
|
+
"drawer-closed": "awsui_drawer-closed_1fj9k_ghfh2_45",
|
|
15
|
+
"mobile-bar": "awsui_mobile-bar_1fj9k_ghfh2_49",
|
|
16
|
+
"disable-body-scroll-root": "awsui_disable-body-scroll-root_1fj9k_ghfh2_53",
|
|
17
|
+
"drawers-trigger": "awsui_drawers-trigger_1fj9k_ghfh2_57",
|
|
18
|
+
"drawers-trigger-global": "awsui_drawers-trigger-global_1fj9k_ghfh2_61",
|
|
19
|
+
"active-drawer": "awsui_active-drawer_1fj9k_ghfh2_65",
|
|
20
|
+
"active-drawer-close-button": "awsui_active-drawer-close-button_1fj9k_ghfh2_69",
|
|
21
|
+
"overflow-menu": "awsui_overflow-menu_1fj9k_ghfh2_73",
|
|
22
|
+
"drawers-slider": "awsui_drawers-slider_1fj9k_ghfh2_77",
|
|
23
|
+
"toolbar": "awsui_toolbar_1fj9k_ghfh2_81",
|
|
24
|
+
"trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_1fj9k_ghfh2_85",
|
|
25
|
+
"trigger-tooltip": "awsui_trigger-tooltip_1fj9k_ghfh2_89"
|
|
24
26
|
};
|
|
25
27
|
|
|
@@ -2,82 +2,90 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
.
|
|
5
|
+
.awsui_root_1fj9k_ghfh2_5:not(#\9) {
|
|
6
6
|
/* used in test-utils */
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
.awsui_navigation_1fj9k_ghfh2_9:not(#\9) {
|
|
10
10
|
/* used in test-utils */
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.awsui_navigation-
|
|
13
|
+
.awsui_navigation-toggle_1fj9k_ghfh2_13:not(#\9) {
|
|
14
14
|
/* used in test-utils */
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.awsui_navigation-
|
|
17
|
+
.awsui_navigation-close_1fj9k_ghfh2_17:not(#\9) {
|
|
18
18
|
/* used in test-utils */
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.awsui_content_1fj9k_ghfh2_21:not(#\9) {
|
|
22
22
|
/* used in test-utils */
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
.awsui_notifications_1fj9k_ghfh2_25:not(#\9) {
|
|
26
26
|
/* used in test-utils */
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
.awsui_breadcrumbs_1fj9k_ghfh2_29:not(#\9) {
|
|
30
30
|
/* used in test-utils */
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
.awsui_tools_1fj9k_ghfh2_33:not(#\9) {
|
|
34
34
|
/* used in test-utils */
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.awsui_tools-
|
|
37
|
+
.awsui_tools-close_1fj9k_ghfh2_37:not(#\9) {
|
|
38
38
|
/* used in test-utils */
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.awsui_tools-
|
|
41
|
+
.awsui_tools-toggle_1fj9k_ghfh2_41:not(#\9) {
|
|
42
42
|
/* used in test-utils */
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.awsui_drawer-
|
|
45
|
+
.awsui_drawer-closed_1fj9k_ghfh2_45:not(#\9) {
|
|
46
46
|
/* used in test-utils */
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.awsui_mobile-
|
|
49
|
+
.awsui_mobile-bar_1fj9k_ghfh2_49:not(#\9) {
|
|
50
50
|
/* used in tests */
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.awsui_disable-body-scroll-
|
|
53
|
+
.awsui_disable-body-scroll-root_1fj9k_ghfh2_53:not(#\9) {
|
|
54
54
|
/* used in tests */
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.awsui_drawers-
|
|
57
|
+
.awsui_drawers-trigger_1fj9k_ghfh2_57:not(#\9) {
|
|
58
58
|
/* used in tests */
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.awsui_drawers-trigger-
|
|
61
|
+
.awsui_drawers-trigger-global_1fj9k_ghfh2_61:not(#\9) {
|
|
62
62
|
/* used in tests */
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.awsui_active-
|
|
65
|
+
.awsui_active-drawer_1fj9k_ghfh2_65:not(#\9) {
|
|
66
66
|
/* used in tests */
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.awsui_active-drawer-close-
|
|
69
|
+
.awsui_active-drawer-close-button_1fj9k_ghfh2_69:not(#\9) {
|
|
70
70
|
/* used in tests */
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.awsui_overflow-
|
|
73
|
+
.awsui_overflow-menu_1fj9k_ghfh2_73:not(#\9) {
|
|
74
74
|
/* used in test-utils */
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.awsui_drawers-
|
|
77
|
+
.awsui_drawers-slider_1fj9k_ghfh2_77:not(#\9) {
|
|
78
78
|
/* used in tests */
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.
|
|
81
|
+
.awsui_toolbar_1fj9k_ghfh2_81:not(#\9) {
|
|
82
|
+
/* used in tests */
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.awsui_trigger-wrapper-tooltip-visible_1fj9k_ghfh2_85:not(#\9) {
|
|
86
|
+
/* used in tests */
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.awsui_trigger-tooltip_1fj9k_ghfh2_89:not(#\9) {
|
|
82
90
|
/* used in tests */
|
|
83
91
|
}
|
|
@@ -2,25 +2,27 @@
|
|
|
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
|
-
"navigation": "
|
|
7
|
-
"navigation-toggle": "awsui_navigation-
|
|
8
|
-
"navigation-close": "awsui_navigation-
|
|
9
|
-
"content": "
|
|
10
|
-
"notifications": "
|
|
11
|
-
"breadcrumbs": "
|
|
12
|
-
"tools": "
|
|
13
|
-
"tools-close": "awsui_tools-
|
|
14
|
-
"tools-toggle": "awsui_tools-
|
|
15
|
-
"drawer-closed": "awsui_drawer-
|
|
16
|
-
"mobile-bar": "awsui_mobile-
|
|
17
|
-
"disable-body-scroll-root": "awsui_disable-body-scroll-
|
|
18
|
-
"drawers-trigger": "awsui_drawers-
|
|
19
|
-
"drawers-trigger-global": "awsui_drawers-trigger-
|
|
20
|
-
"active-drawer": "awsui_active-
|
|
21
|
-
"active-drawer-close-button": "awsui_active-drawer-close-
|
|
22
|
-
"overflow-menu": "awsui_overflow-
|
|
23
|
-
"drawers-slider": "awsui_drawers-
|
|
24
|
-
"toolbar": "
|
|
5
|
+
"root": "awsui_root_1fj9k_ghfh2_5",
|
|
6
|
+
"navigation": "awsui_navigation_1fj9k_ghfh2_9",
|
|
7
|
+
"navigation-toggle": "awsui_navigation-toggle_1fj9k_ghfh2_13",
|
|
8
|
+
"navigation-close": "awsui_navigation-close_1fj9k_ghfh2_17",
|
|
9
|
+
"content": "awsui_content_1fj9k_ghfh2_21",
|
|
10
|
+
"notifications": "awsui_notifications_1fj9k_ghfh2_25",
|
|
11
|
+
"breadcrumbs": "awsui_breadcrumbs_1fj9k_ghfh2_29",
|
|
12
|
+
"tools": "awsui_tools_1fj9k_ghfh2_33",
|
|
13
|
+
"tools-close": "awsui_tools-close_1fj9k_ghfh2_37",
|
|
14
|
+
"tools-toggle": "awsui_tools-toggle_1fj9k_ghfh2_41",
|
|
15
|
+
"drawer-closed": "awsui_drawer-closed_1fj9k_ghfh2_45",
|
|
16
|
+
"mobile-bar": "awsui_mobile-bar_1fj9k_ghfh2_49",
|
|
17
|
+
"disable-body-scroll-root": "awsui_disable-body-scroll-root_1fj9k_ghfh2_53",
|
|
18
|
+
"drawers-trigger": "awsui_drawers-trigger_1fj9k_ghfh2_57",
|
|
19
|
+
"drawers-trigger-global": "awsui_drawers-trigger-global_1fj9k_ghfh2_61",
|
|
20
|
+
"active-drawer": "awsui_active-drawer_1fj9k_ghfh2_65",
|
|
21
|
+
"active-drawer-close-button": "awsui_active-drawer-close-button_1fj9k_ghfh2_69",
|
|
22
|
+
"overflow-menu": "awsui_overflow-menu_1fj9k_ghfh2_73",
|
|
23
|
+
"drawers-slider": "awsui_drawers-slider_1fj9k_ghfh2_77",
|
|
24
|
+
"toolbar": "awsui_toolbar_1fj9k_ghfh2_81",
|
|
25
|
+
"trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_1fj9k_ghfh2_85",
|
|
26
|
+
"trigger-tooltip": "awsui_trigger-tooltip_1fj9k_ghfh2_89"
|
|
25
27
|
};
|
|
26
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":";AAqBA;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,IAAI,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,uBA+B9B;
|
|
1
|
+
{"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":";AAqBA;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,IAAI,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,uBA+B9B;AAmPD;;;;;GAKG;AACH,wBAAgB,cAAc,uBAwE7B"}
|
|
@@ -122,14 +122,14 @@ function DesktopTriggers() {
|
|
|
122
122
|
[styles['has-open-drawer']]: hasOpenDrawer,
|
|
123
123
|
}), role: "toolbar", "aria-orientation": "vertical" },
|
|
124
124
|
visibleItems.map(item => {
|
|
125
|
-
var _a;
|
|
125
|
+
var _a, _b, _c;
|
|
126
126
|
const isForPreviousActiveDrawer = (previousActiveDrawerId === null || previousActiveDrawerId === void 0 ? void 0 : previousActiveDrawerId.current) === item.id;
|
|
127
|
-
return (React.createElement(TriggerButton, { ariaLabel: (_a = item.ariaLabels) === null || _a === void 0 ? void 0 : _a.triggerButton, ariaExpanded: item.id === activeDrawerId, ariaControls: activeDrawerId === item.id ? item.id : undefined, className: clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], item.id === TOOLS_DRAWER_ID && testutilStyles['tools-toggle']), iconName: item.trigger.iconName, iconSvg: item.trigger.iconSvg, key: item.id, onClick: () => handleDrawersClick(item.id), ref: isForPreviousActiveDrawer ? drawersRefs.toggle : undefined, badge: item.badge, testId: `awsui-app-layout-trigger-${item.id}`, highContrastHeader: headerVariant === 'high-contrast', selected: item.id === activeDrawerId }));
|
|
127
|
+
return (React.createElement(TriggerButton, { ariaLabel: (_a = item.ariaLabels) === null || _a === void 0 ? void 0 : _a.triggerButton, ariaExpanded: item.id === activeDrawerId, ariaControls: activeDrawerId === item.id ? item.id : undefined, className: clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], item.id === TOOLS_DRAWER_ID && testutilStyles['tools-toggle']), iconName: (_b = item === null || item === void 0 ? void 0 : item.trigger) === null || _b === void 0 ? void 0 : _b.iconName, iconSvg: (_c = item === null || item === void 0 ? void 0 : item.trigger) === null || _c === void 0 ? void 0 : _c.iconSvg, key: item.id, onClick: () => handleDrawersClick(item.id), ref: isForPreviousActiveDrawer ? drawersRefs.toggle : undefined, badge: item.badge, testId: `awsui-app-layout-trigger-${item.id}`, highContrastHeader: headerVariant === 'high-contrast', selected: item.id === activeDrawerId }));
|
|
128
128
|
}),
|
|
129
129
|
overflowItems.length > 0 && (React.createElement(OverflowMenu, { items: overflowItems, ariaLabel: overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel, customTriggerBuilder: ({ onClick, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (React.createElement(TriggerButton, { ref: triggerRef, ariaLabel: ariaLabel, ariaExpanded: ariaExpanded, badge: overflowMenuHasBadge, className: clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], testUtilsClass), iconName: "ellipsis", onClick: onClick, highContrastHeader: headerVariant === 'high-contrast' })), onItemClick: ({ detail }) => {
|
|
130
130
|
handleDrawersClick(detail.id);
|
|
131
131
|
} })),
|
|
132
|
-
hasSplitPanel && splitPanelToggle.displayed && (React.createElement(TriggerButton, { ariaLabel: splitPanelToggle.ariaLabel, ariaControls: splitPanelControlId, ariaExpanded: !!isSplitPanelOpen, className: clsx(styles['drawers-trigger'], splitPanelTestUtilStyles['open-button']), iconName: "view-vertical", onClick: () => handleSplitPanelClick(), selected: hasSplitPanel && isSplitPanelOpen, ref: splitPanelRefs.toggle, highContrastHeader: headerVariant === 'high-contrast' })))));
|
|
132
|
+
hasSplitPanel && splitPanelToggle.displayed && (React.createElement(TriggerButton, { ariaLabel: splitPanelToggle.ariaLabel, ariaControls: splitPanelControlId, ariaExpanded: !!isSplitPanelOpen, className: clsx(styles['drawers-trigger'], splitPanelTestUtilStyles['open-button']), iconName: "view-vertical", onClick: () => handleSplitPanelClick(), selected: hasSplitPanel && isSplitPanelOpen, ref: splitPanelRefs.toggle, highContrastHeader: headerVariant === 'high-contrast', testId: "awsui-app-layout-trigger-slide-panel" })))));
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
* The MobileTriggers will be mounted inside of the AppBar component and
|
|
@@ -153,9 +153,9 @@ export function MobileTriggers() {
|
|
|
153
153
|
}), "aria-label": drawersAriaLabel, role: "region" },
|
|
154
154
|
React.createElement("div", { className: styles['drawers-mobile-triggers-container'], role: "toolbar", "aria-orientation": "horizontal" },
|
|
155
155
|
visibleItems.map(item => {
|
|
156
|
-
var _a;
|
|
156
|
+
var _a, _b, _c;
|
|
157
157
|
const isForPreviousActiveDrawer = (previousActiveDrawerId === null || previousActiveDrawerId === void 0 ? void 0 : previousActiveDrawerId.current) === item.id;
|
|
158
|
-
return (React.createElement(TriggerButton, { ariaExpanded: item.id === activeDrawerId, ariaLabel: (_a = item.ariaLabels) === null || _a === void 0 ? void 0 : _a.triggerButton, ariaControls: activeDrawerId === item.id ? item.id : undefined, className: clsx(`awsui-app-layout-trigger-${item.id}`, styles['drawers-trigger'], testutilStyles['drawers-trigger'], item.id === TOOLS_DRAWER_ID && testutilStyles['tools-toggle']), disabled: hasDrawerViewportOverlay, ref: isForPreviousActiveDrawer ? drawersRefs.toggle : undefined, iconName: item.trigger.iconName, iconSvg: item.trigger.iconSvg, badge: item.badge, key: item.id, onClick: () => handleDrawersClick(item.id), testId: `awsui-app-layout-trigger-${item.id}`, highContrastHeader: headerVariant === 'high-contrast', selected: item.id === activeDrawerId }));
|
|
158
|
+
return (React.createElement(TriggerButton, { ariaExpanded: item.id === activeDrawerId, ariaLabel: (_a = item.ariaLabels) === null || _a === void 0 ? void 0 : _a.triggerButton, ariaControls: activeDrawerId === item.id ? item.id : undefined, className: clsx(`awsui-app-layout-trigger-${item.id}`, styles['drawers-trigger'], testutilStyles['drawers-trigger'], item.id === TOOLS_DRAWER_ID && testutilStyles['tools-toggle']), disabled: hasDrawerViewportOverlay, ref: isForPreviousActiveDrawer ? drawersRefs.toggle : undefined, iconName: (_b = item === null || item === void 0 ? void 0 : item.trigger) === null || _b === void 0 ? void 0 : _b.iconName, iconSvg: (_c = item === null || item === void 0 ? void 0 : item.trigger) === null || _c === void 0 ? void 0 : _c.iconSvg, badge: item.badge, key: item.id, onClick: () => handleDrawersClick(item.id), testId: `awsui-app-layout-trigger-${item.id}`, highContrastHeader: headerVariant === 'high-contrast', selected: item.id === activeDrawerId }));
|
|
159
159
|
}),
|
|
160
160
|
overflowItems.length > 0 && (React.createElement(OverflowMenu, { items: overflowItems, ariaLabel: overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel, onItemClick: ({ detail }) => handleDrawersClick(detail.id) })))));
|
|
161
161
|
}
|