@cloudscape-design/components 3.0.182 → 3.0.184
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/collection-preferences/styles.css.js +20 -20
- package/collection-preferences/styles.scoped.css +22 -21
- package/collection-preferences/styles.selectors.js +20 -20
- package/collection-preferences/visible-content.js +1 -1
- package/collection-preferences/visible-content.js.map +1 -1
- package/flashbar/interfaces.d.ts +2 -4
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/side-navigation/interfaces.d.ts +14 -2
- package/side-navigation/interfaces.d.ts.map +1 -1
- package/side-navigation/interfaces.js.map +1 -1
- package/side-navigation/internal.d.ts +1 -1
- package/side-navigation/internal.d.ts.map +1 -1
- package/side-navigation/internal.js +14 -6
- package/side-navigation/internal.js.map +1 -1
- package/side-navigation/styles.css.js +26 -22
- package/side-navigation/styles.scoped.css +57 -34
- package/side-navigation/styles.selectors.js +26 -22
- package/test-utils/dom/side-navigation/index.d.ts +3 -0
- package/test-utils/dom/side-navigation/index.js +9 -0
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.d.ts +3 -0
- package/test-utils/selectors/side-navigation/index.js +9 -0
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/top-navigation/internal.js +2 -1
- package/top-navigation/internal.js.map +1 -1
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header": "
|
|
6
|
-
"header-link": "awsui_header-
|
|
7
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
8
|
-
"header-link-text": "awsui_header-link-
|
|
9
|
-
"header-logo": "awsui_header-
|
|
10
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
11
|
-
"list-container": "awsui_list-
|
|
12
|
-
"list": "
|
|
13
|
-
"list-variant-root": "awsui_list-variant-
|
|
14
|
-
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-
|
|
15
|
-
"list-item": "awsui_list-
|
|
16
|
-
"section": "
|
|
17
|
-
"expandable-link-group": "awsui_expandable-link-
|
|
18
|
-
"section-
|
|
19
|
-
"link": "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
4
|
+
"root": "awsui_root_l0dv0_axmnk_93",
|
|
5
|
+
"header": "awsui_header_l0dv0_axmnk_109",
|
|
6
|
+
"header-link": "awsui_header-link_l0dv0_axmnk_120",
|
|
7
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_axmnk_130",
|
|
8
|
+
"header-link-text": "awsui_header-link-text_l0dv0_axmnk_130",
|
|
9
|
+
"header-logo": "awsui_header-logo_l0dv0_axmnk_134",
|
|
10
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_axmnk_140",
|
|
11
|
+
"list-container": "awsui_list-container_l0dv0_axmnk_145",
|
|
12
|
+
"list": "awsui_list_l0dv0_axmnk_145",
|
|
13
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_axmnk_155",
|
|
14
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_axmnk_161",
|
|
15
|
+
"list-item": "awsui_list-item_l0dv0_axmnk_165",
|
|
16
|
+
"section": "awsui_section_l0dv0_axmnk_171",
|
|
17
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_axmnk_172",
|
|
18
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_axmnk_175",
|
|
19
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_axmnk_176",
|
|
20
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_axmnk_189",
|
|
21
|
+
"section-group": "awsui_section-group_l0dv0_axmnk_194",
|
|
22
|
+
"section-group-title": "awsui_section-group-title_l0dv0_axmnk_204",
|
|
23
|
+
"link": "awsui_link_l0dv0_axmnk_208",
|
|
24
|
+
"link-active": "awsui_link-active_l0dv0_axmnk_217",
|
|
25
|
+
"info": "awsui_info_l0dv0_axmnk_251",
|
|
26
|
+
"external-icon": "awsui_external-icon_l0dv0_axmnk_255",
|
|
27
|
+
"divider": "awsui_divider_l0dv0_axmnk_259",
|
|
28
|
+
"divider-default": "awsui_divider-default_l0dv0_axmnk_264",
|
|
29
|
+
"divider-header": "awsui_divider-header_l0dv0_axmnk_268"
|
|
26
30
|
};
|
|
27
31
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_root_l0dv0_axmnk_93:not(#\9) {
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
95
|
border-collapse: separate;
|
|
96
96
|
border-spacing: 0;
|
|
@@ -132,13 +132,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
132
132
|
word-break: break-word;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.awsui_header_l0dv0_axmnk_109:not(#\9) {
|
|
136
|
+
font-size: var(--font-panel-header-size-0vdgjc, 20px);
|
|
137
|
+
line-height: var(--font-panel-header-line-height-x2226j, 24px);
|
|
138
|
+
font-weight: var(--font-heading-l-weight-xm7ks9, 800);
|
|
139
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-vu3hx4, antialiased);
|
|
140
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
|
|
136
141
|
margin: 0;
|
|
137
142
|
padding: var(--space-scaled-l-t03y3z, 20px) var(--space-panel-nav-left-o5fvw3, 28px);
|
|
138
143
|
padding-right: calc(var(--space-scaled-xxl-pfgv96, 32px) + var(--space-xl-a39hup, 24px));
|
|
139
144
|
}
|
|
140
145
|
|
|
141
|
-
.awsui_header-
|
|
146
|
+
.awsui_header-link_l0dv0_axmnk_120:not(#\9) {
|
|
142
147
|
font-size: var(--font-panel-header-size-0vdgjc, 20px);
|
|
143
148
|
line-height: var(--font-panel-header-line-height-x2226j, 24px);
|
|
144
149
|
font-weight: var(--font-heading-l-weight-xm7ks9, 800);
|
|
@@ -148,67 +153,85 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
153
|
min-height: var(--font-panel-header-line-height-x2226j, 24px);
|
|
149
154
|
display: flex;
|
|
150
155
|
}
|
|
151
|
-
.awsui_header-link--has-
|
|
156
|
+
.awsui_header-link--has-logo_l0dv0_axmnk_130 > .awsui_header-link-text_l0dv0_axmnk_130:not(#\9) {
|
|
152
157
|
font-weight: 400;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
|
-
.awsui_header-
|
|
160
|
+
.awsui_header-logo_l0dv0_axmnk_134:not(#\9) {
|
|
156
161
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
157
162
|
margin-top: var(--space-xxxs-k2w98v, 2px);
|
|
158
163
|
max-width: calc(1.25 * var(--size-icon-big-cu55wt, 32px));
|
|
159
164
|
align-self: flex-start;
|
|
160
165
|
}
|
|
161
|
-
.awsui_header-logo--
|
|
166
|
+
.awsui_header-logo--stretched_l0dv0_axmnk_140:not(#\9) {
|
|
162
167
|
max-width: 100%;
|
|
163
168
|
margin-right: 0;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
|
-
.awsui_list-
|
|
171
|
+
.awsui_list-container_l0dv0_axmnk_145:not(#\9) {
|
|
167
172
|
margin-top: var(--space-scaled-l-t03y3z, 20px);
|
|
168
173
|
}
|
|
169
174
|
|
|
170
|
-
.
|
|
175
|
+
.awsui_list_l0dv0_axmnk_145:not(#\9) {
|
|
171
176
|
margin: 0;
|
|
172
177
|
padding: 0;
|
|
173
178
|
padding-left: var(--space-l-4vl6xu, 20px);
|
|
174
179
|
}
|
|
175
180
|
|
|
176
|
-
.awsui_list-variant-
|
|
181
|
+
.awsui_list-variant-root_l0dv0_axmnk_155:not(#\9) {
|
|
177
182
|
margin: 0;
|
|
178
183
|
margin-bottom: var(--space-scaled-xxxl-ffokcj, 40px);
|
|
179
184
|
padding: 0 var(--space-panel-side-right-kev4k9, 24px) 0 var(--space-panel-nav-left-o5fvw3, 28px);
|
|
180
185
|
}
|
|
181
186
|
|
|
182
|
-
.awsui_list-variant-expandable-link-
|
|
187
|
+
.awsui_list-variant-expandable-link-group_l0dv0_axmnk_161:not(#\9) {
|
|
183
188
|
padding-left: var(--space-xxxl-bo9z7f, 40px);
|
|
184
189
|
}
|
|
185
190
|
|
|
186
|
-
.awsui_list-
|
|
191
|
+
.awsui_list-item_l0dv0_axmnk_165:not(#\9) {
|
|
187
192
|
margin: var(--space-scaled-xs-6859qs, 8px) 0;
|
|
188
193
|
padding: 0;
|
|
189
194
|
list-style: none;
|
|
190
195
|
}
|
|
191
196
|
|
|
192
|
-
.
|
|
193
|
-
.awsui_expandable-link-
|
|
197
|
+
.awsui_section_l0dv0_axmnk_171:not(#\9),
|
|
198
|
+
.awsui_expandable-link-group_l0dv0_axmnk_172:not(#\9) {
|
|
194
199
|
margin-left: calc(-1 * var(--space-l-4vl6xu, 20px));
|
|
195
200
|
}
|
|
201
|
+
.awsui_section--no-ident_l0dv0_axmnk_175:not(#\9),
|
|
202
|
+
.awsui_expandable-link-group--no-ident_l0dv0_axmnk_176:not(#\9) {
|
|
203
|
+
margin-left: 0;
|
|
204
|
+
}
|
|
196
205
|
|
|
197
|
-
.
|
|
206
|
+
.awsui_section_l0dv0_axmnk_171:not(#\9) {
|
|
198
207
|
margin-top: calc(var(--space-scaled-2x-l-yejodm, 20px) - var(--border-divider-section-width-4wm2it, 2px));
|
|
199
208
|
margin-bottom: calc(var(--space-scaled-2x-l-yejodm, 20px) - var(--border-divider-section-width-4wm2it, 2px));
|
|
200
209
|
/* stylelint-disable-next-line selector-max-type */
|
|
201
210
|
}
|
|
202
|
-
.
|
|
211
|
+
.awsui_section_l0dv0_axmnk_171 > div:not(#\9) {
|
|
203
212
|
padding: 0;
|
|
204
213
|
}
|
|
205
214
|
|
|
206
|
-
.
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
.awsui_list-variant-section-group_l0dv0_axmnk_189:not(#\9) {
|
|
216
|
+
margin: 0;
|
|
217
|
+
padding: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.awsui_section-group_l0dv0_axmnk_194:not(#\9) {
|
|
221
|
+
font-size: var(--font-heading-m-size-6e3jmg, 20px);
|
|
222
|
+
line-height: var(--font-heading-m-line-height-u3t54f, 24px);
|
|
223
|
+
letter-spacing: var(--font-heading-m-letter-spacing-r00pg3, -0.01em);
|
|
224
|
+
font-weight: var(--font-heading-m-weight-hi5n0j, 800);
|
|
225
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-vu3hx4, antialiased);
|
|
226
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
|
|
227
|
+
margin: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.awsui_section-group-title_l0dv0_axmnk_204:not(#\9) {
|
|
231
|
+
/* used in test-utils */
|
|
209
232
|
}
|
|
210
233
|
|
|
211
|
-
.
|
|
234
|
+
.awsui_link_l0dv0_axmnk_208:not(#\9) {
|
|
212
235
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
213
236
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
214
237
|
color: var(--color-text-body-secondary-fdstdf, #414d5c);
|
|
@@ -217,30 +240,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
240
|
-moz-osx-font-smoothing: auto;
|
|
218
241
|
}
|
|
219
242
|
|
|
220
|
-
.awsui_link-
|
|
243
|
+
.awsui_link-active_l0dv0_axmnk_217:not(#\9) {
|
|
221
244
|
font-weight: var(--font-wayfinding-link-active-weight-l3fid7, 800);
|
|
222
245
|
-webkit-font-smoothing: var(--font-smoothing-webkit-vu3hx4, antialiased);
|
|
223
246
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
|
|
224
247
|
color: var(--color-text-accent-s1eqko, #0972d3);
|
|
225
248
|
}
|
|
226
249
|
|
|
227
|
-
.awsui_header-
|
|
228
|
-
.
|
|
250
|
+
.awsui_header-link_l0dv0_axmnk_120:not(#\9),
|
|
251
|
+
.awsui_link_l0dv0_axmnk_208:not(#\9) {
|
|
229
252
|
text-decoration: none;
|
|
230
253
|
}
|
|
231
|
-
.awsui_header-
|
|
232
|
-
.
|
|
254
|
+
.awsui_header-link_l0dv0_axmnk_120:not(#\9):hover,
|
|
255
|
+
.awsui_link_l0dv0_axmnk_208:not(#\9):hover {
|
|
233
256
|
color: var(--color-text-accent-s1eqko, #0972d3);
|
|
234
257
|
}
|
|
235
|
-
.awsui_header-
|
|
236
|
-
.
|
|
258
|
+
.awsui_header-link_l0dv0_axmnk_120:not(#\9):focus,
|
|
259
|
+
.awsui_link_l0dv0_axmnk_208:not(#\9):focus {
|
|
237
260
|
outline: none;
|
|
238
261
|
}
|
|
239
|
-
.awsui_header-
|
|
262
|
+
.awsui_header-link_l0dv0_axmnk_120:not(#\9):hover, .awsui_header-link_l0dv0_axmnk_120:not(#\9):focus, .awsui_link_l0dv0_axmnk_208:not(#\9):hover, .awsui_link_l0dv0_axmnk_208:not(#\9):focus {
|
|
240
263
|
text-decoration: none;
|
|
241
264
|
}
|
|
242
|
-
.awsui_header-
|
|
243
|
-
.
|
|
265
|
+
.awsui_header-link_l0dv0_axmnk_120[data-awsui-focus-visible=true]:not(#\9):focus,
|
|
266
|
+
.awsui_link_l0dv0_axmnk_208[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
244
267
|
outline: thin dotted;
|
|
245
268
|
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
246
269
|
outline-offset: 2px;
|
|
@@ -249,23 +272,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
249
272
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
250
273
|
}
|
|
251
274
|
|
|
252
|
-
.
|
|
275
|
+
.awsui_info_l0dv0_axmnk_251:not(#\9) {
|
|
253
276
|
margin-left: var(--space-xs-rsr2qu, 8px);
|
|
254
277
|
}
|
|
255
278
|
|
|
256
|
-
.awsui_external-
|
|
279
|
+
.awsui_external-icon_l0dv0_axmnk_255:not(#\9) {
|
|
257
280
|
margin-left: var(--space-xxs-ynfts5, 4px);
|
|
258
281
|
}
|
|
259
282
|
|
|
260
|
-
.
|
|
283
|
+
.awsui_divider_l0dv0_axmnk_259:not(#\9) {
|
|
261
284
|
border: none;
|
|
262
285
|
border-top: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
263
286
|
}
|
|
264
287
|
|
|
265
|
-
.awsui_divider-
|
|
288
|
+
.awsui_divider-default_l0dv0_axmnk_264:not(#\9) {
|
|
266
289
|
margin: var(--space-scaled-2x-xl-x30c9w, 24px) calc(-1 * var(--space-s-hv8c1d, 12px));
|
|
267
290
|
}
|
|
268
291
|
|
|
269
|
-
.awsui_divider-
|
|
292
|
+
.awsui_divider-header_l0dv0_axmnk_268:not(#\9) {
|
|
270
293
|
margin-top: 0;
|
|
271
294
|
}
|
|
@@ -2,27 +2,31 @@
|
|
|
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
|
-
"header": "
|
|
7
|
-
"header-link": "awsui_header-
|
|
8
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
9
|
-
"header-link-text": "awsui_header-link-
|
|
10
|
-
"header-logo": "awsui_header-
|
|
11
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
12
|
-
"list-container": "awsui_list-
|
|
13
|
-
"list": "
|
|
14
|
-
"list-variant-root": "awsui_list-variant-
|
|
15
|
-
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-
|
|
16
|
-
"list-item": "awsui_list-
|
|
17
|
-
"section": "
|
|
18
|
-
"expandable-link-group": "awsui_expandable-link-
|
|
19
|
-
"section-
|
|
20
|
-
"link": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
5
|
+
"root": "awsui_root_l0dv0_axmnk_93",
|
|
6
|
+
"header": "awsui_header_l0dv0_axmnk_109",
|
|
7
|
+
"header-link": "awsui_header-link_l0dv0_axmnk_120",
|
|
8
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_axmnk_130",
|
|
9
|
+
"header-link-text": "awsui_header-link-text_l0dv0_axmnk_130",
|
|
10
|
+
"header-logo": "awsui_header-logo_l0dv0_axmnk_134",
|
|
11
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_axmnk_140",
|
|
12
|
+
"list-container": "awsui_list-container_l0dv0_axmnk_145",
|
|
13
|
+
"list": "awsui_list_l0dv0_axmnk_145",
|
|
14
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_axmnk_155",
|
|
15
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_axmnk_161",
|
|
16
|
+
"list-item": "awsui_list-item_l0dv0_axmnk_165",
|
|
17
|
+
"section": "awsui_section_l0dv0_axmnk_171",
|
|
18
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_axmnk_172",
|
|
19
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_axmnk_175",
|
|
20
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_axmnk_176",
|
|
21
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_axmnk_189",
|
|
22
|
+
"section-group": "awsui_section-group_l0dv0_axmnk_194",
|
|
23
|
+
"section-group-title": "awsui_section-group-title_l0dv0_axmnk_204",
|
|
24
|
+
"link": "awsui_link_l0dv0_axmnk_208",
|
|
25
|
+
"link-active": "awsui_link-active_l0dv0_axmnk_217",
|
|
26
|
+
"info": "awsui_info_l0dv0_axmnk_251",
|
|
27
|
+
"external-icon": "awsui_external-icon_l0dv0_axmnk_255",
|
|
28
|
+
"divider": "awsui_divider_l0dv0_axmnk_259",
|
|
29
|
+
"divider-default": "awsui_divider-default_l0dv0_axmnk_264",
|
|
30
|
+
"divider-header": "awsui_divider-header_l0dv0_axmnk_268"
|
|
27
31
|
};
|
|
28
32
|
|
|
@@ -2,6 +2,7 @@ import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-
|
|
|
2
2
|
import ExpandableSectionWrapper from '../expandable-section';
|
|
3
3
|
export default class SideNavigationWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
|
+
findHeader(): ElementWrapper<HTMLAnchorElement> | null;
|
|
5
6
|
findHeaderLink(): ElementWrapper<HTMLAnchorElement> | null;
|
|
6
7
|
findLinkByHref(href: string): ElementWrapper<HTMLAnchorElement> | null;
|
|
7
8
|
findActiveLink(): ElementWrapper<HTMLAnchorElement> | null;
|
|
@@ -9,6 +10,8 @@ export default class SideNavigationWrapper extends ComponentWrapper {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class SideNavigationItemWrapper extends ElementWrapper {
|
|
11
12
|
findSection(): ExpandableSectionWrapper | null;
|
|
13
|
+
findSectionGroup(): ElementWrapper | null;
|
|
14
|
+
findSectionGroupTitle(): ElementWrapper | null;
|
|
12
15
|
findExpandableLinkGroup(): ExpandableSectionWrapper | null;
|
|
13
16
|
findDivider(): ElementWrapper | null;
|
|
14
17
|
findLink(): ElementWrapper<HTMLAnchorElement> | null;
|
|
@@ -26,6 +26,9 @@ var SideNavigationWrapper = /** @class */ (function (_super) {
|
|
|
26
26
|
function SideNavigationWrapper() {
|
|
27
27
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
28
|
}
|
|
29
|
+
SideNavigationWrapper.prototype.findHeader = function () {
|
|
30
|
+
return this.findByClassName(styles_selectors_js_1.default.header);
|
|
31
|
+
};
|
|
29
32
|
SideNavigationWrapper.prototype.findHeaderLink = function () {
|
|
30
33
|
return this.findByClassName(styles_selectors_js_1.default['header-link']);
|
|
31
34
|
};
|
|
@@ -50,6 +53,12 @@ var SideNavigationItemWrapper = /** @class */ (function (_super) {
|
|
|
50
53
|
SideNavigationItemWrapper.prototype.findSection = function () {
|
|
51
54
|
return this.findComponent(".".concat(styles_selectors_js_1.default.section), expandable_section_1.default);
|
|
52
55
|
};
|
|
56
|
+
SideNavigationItemWrapper.prototype.findSectionGroup = function () {
|
|
57
|
+
return this.findByClassName(styles_selectors_js_1.default['section-group']);
|
|
58
|
+
};
|
|
59
|
+
SideNavigationItemWrapper.prototype.findSectionGroupTitle = function () {
|
|
60
|
+
return this.findByClassName(styles_selectors_js_1.default['section-group-title']);
|
|
61
|
+
};
|
|
53
62
|
SideNavigationItemWrapper.prototype.findExpandableLinkGroup = function () {
|
|
54
63
|
return this.findComponent(".".concat(styles_selectors_js_1.default['expandable-link-group']), expandable_section_1.default);
|
|
55
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/side-navigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,4DAA6D;AAC7D,oFAAkE;AAElE;IAAmD,yCAAgB;IAAnE;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/d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qB,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,2DAAuB,GAAvB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,uBAAuB,CAAC,CAAE,EAAE,4BAAwB,CAAC,CAAC;IAC7F,CAAC;IAED,+CAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,4CAAQ,GAAR;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,oDAAgB,GAAhB;;QACE,OAAO,MAAA,MAAA,IAAI,CAAC,WAAW,EAAE,0CAAE,UAAU,EAAE,mCAAI,IAAI,CAAC;IAClD,CAAC;IAED,mDAAe,GAAf,UAAgB,KAAa;QAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,uBAAgB,KAAK,MAAG,EAAE,yBAAyB,CAAC,CAAC;IACjF,CAAC;IAED,6CAAS,GAAT;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAA,OAAO,IAAI,OAAA,IAAI,yBAAyB,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,EAAnD,CAAmD,CAAC,CAAC;IAChG,CAAC;IACH,gCAAC;AAAD,CAAC,AApCD,CAA+C,oBAAc,GAoC5D;AApCY,8DAAyB"}
|
|
@@ -2,6 +2,7 @@ import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-
|
|
|
2
2
|
import ExpandableSectionWrapper from '../expandable-section';
|
|
3
3
|
export default class SideNavigationWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
|
+
findHeader(): ElementWrapper;
|
|
5
6
|
findHeaderLink(): ElementWrapper;
|
|
6
7
|
findLinkByHref(href: string): ElementWrapper;
|
|
7
8
|
findActiveLink(): ElementWrapper;
|
|
@@ -9,6 +10,8 @@ export default class SideNavigationWrapper extends ComponentWrapper {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class SideNavigationItemWrapper extends ElementWrapper {
|
|
11
12
|
findSection(): ExpandableSectionWrapper;
|
|
13
|
+
findSectionGroup(): ElementWrapper;
|
|
14
|
+
findSectionGroupTitle(): ElementWrapper;
|
|
12
15
|
findExpandableLinkGroup(): ExpandableSectionWrapper;
|
|
13
16
|
findDivider(): ElementWrapper;
|
|
14
17
|
findLink(): ElementWrapper;
|
|
@@ -26,6 +26,9 @@ var SideNavigationWrapper = /** @class */ (function (_super) {
|
|
|
26
26
|
function SideNavigationWrapper() {
|
|
27
27
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
28
|
}
|
|
29
|
+
SideNavigationWrapper.prototype.findHeader = function () {
|
|
30
|
+
return this.findByClassName(styles_selectors_js_1.default.header);
|
|
31
|
+
};
|
|
29
32
|
SideNavigationWrapper.prototype.findHeaderLink = function () {
|
|
30
33
|
return this.findByClassName(styles_selectors_js_1.default['header-link']);
|
|
31
34
|
};
|
|
@@ -50,6 +53,12 @@ var SideNavigationItemWrapper = /** @class */ (function (_super) {
|
|
|
50
53
|
SideNavigationItemWrapper.prototype.findSection = function () {
|
|
51
54
|
return this.findComponent(".".concat(styles_selectors_js_1.default.section), expandable_section_1.default);
|
|
52
55
|
};
|
|
56
|
+
SideNavigationItemWrapper.prototype.findSectionGroup = function () {
|
|
57
|
+
return this.findByClassName(styles_selectors_js_1.default['section-group']);
|
|
58
|
+
};
|
|
59
|
+
SideNavigationItemWrapper.prototype.findSectionGroupTitle = function () {
|
|
60
|
+
return this.findByClassName(styles_selectors_js_1.default['section-group-title']);
|
|
61
|
+
};
|
|
53
62
|
SideNavigationItemWrapper.prototype.findExpandableLinkGroup = function () {
|
|
54
63
|
return this.findComponent(".".concat(styles_selectors_js_1.default['expandable-link-group']), expandable_section_1.default);
|
|
55
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/side-navigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,4DAA6D;AAC7D,oFAAkE;AAClE;IAAmD,yCAAgB;IAAnE;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/side-navigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,4DAA6D;AAC7D,oFAAkE;AAClE;IAAmD,yCAAgB;IAAnE;;IAiBA,CAAC;IAfC,0CAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,8CAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,8CAAc,GAAd,UAAe,IAAY;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,IAAI,qBAAU,IAAI,QAAI,CAAC,CAAC;IACtD,CAAC;IACD,8CAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,+CAAe,GAAf,UAAgB,KAAa;QAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,mBAAmB,CAAC,6BAAmB,KAAK,MAAG,EAAE,yBAAyB,CAAC,CAAC;IACnH,CAAC;IAfM,kCAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAgB5C,4BAAC;CAAA,AAjBD,CAAmD,4BAAgB,GAiBlE;kBAjBoB,qBAAqB;AAkB1C;IAA+C,6CAAc;IAA7D;;IA4BA,CAAC;IA3BC,+CAAW,GAAX;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,OAAO,CAAE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