@cloudscape-design/components 3.0.1120 → 3.0.1122
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/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -27
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +78 -78
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -27
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +34 -34
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/status-indicator/internal.d.ts +14 -1
- package/status-indicator/internal.d.ts.map +1 -1
- package/status-indicator/internal.js +6 -3
- package/status-indicator/internal.js.map +1 -1
- package/steps/index.js +11 -13
- package/steps/interfaces.d.ts +18 -0
- package/steps/interfaces.d.ts.map +1 -1
- package/steps/interfaces.js.map +1 -1
- package/steps/internal-do-not-use-core.js +20 -0
- package/steps/internal.d.ts +2 -0
- package/steps/internal.d.ts.map +1 -1
- package/steps/internal.js +31 -7
- package/steps/internal.js.map +1 -1
- package/steps/styles.css.js +9 -6
- package/steps/styles.scoped.css +58 -7
- package/steps/styles.selectors.js +9 -6
- /package/steps/{index.js.map → internal-do-not-use-core.js.map} +0 -0
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drawer": "
|
|
6
|
-
"with-expanded-motion": "awsui_with-expanded-
|
|
7
|
-
"legacy": "
|
|
8
|
-
"ai-drawer": "awsui_ai-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"drawer-
|
|
12
|
-
"drawer-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"drawer-
|
|
16
|
-
"drawer-
|
|
17
|
-
"drawer-
|
|
18
|
-
"drawer-
|
|
19
|
-
"drawer-
|
|
20
|
-
"drawer-content
|
|
21
|
-
"drawer-
|
|
22
|
-
"drawer-
|
|
23
|
-
"
|
|
24
|
-
"drawer-
|
|
25
|
-
"drawer-content-header
|
|
26
|
-
"drawer-
|
|
27
|
-
"drawer-back-to-console-
|
|
28
|
-
"drawer-back-to-console-button": "awsui_drawer-back-to-console-
|
|
29
|
-
"drawer-back-to-console-
|
|
30
|
-
"drawer-
|
|
31
|
-
"
|
|
5
|
+
"drawer": "awsui_drawer_12i0j_f60pk_193",
|
|
6
|
+
"with-expanded-motion": "awsui_with-expanded-motion_12i0j_f60pk_207",
|
|
7
|
+
"legacy": "awsui_legacy_12i0j_f60pk_221",
|
|
8
|
+
"ai-drawer": "awsui_ai-drawer_12i0j_f60pk_221",
|
|
9
|
+
"bottom-drawer": "awsui_bottom-drawer_12i0j_f60pk_221",
|
|
10
|
+
"last-opened": "awsui_last-opened_12i0j_f60pk_229",
|
|
11
|
+
"drawer-global": "awsui_drawer-global_12i0j_f60pk_233",
|
|
12
|
+
"drawer-expanded": "awsui_drawer-expanded_12i0j_f60pk_242",
|
|
13
|
+
"drawer-hidden": "awsui_drawer-hidden_12i0j_f60pk_246",
|
|
14
|
+
"has-next-siblings": "awsui_has-next-siblings_12i0j_f60pk_256",
|
|
15
|
+
"global-drawer-wrapper": "awsui_global-drawer-wrapper_12i0j_f60pk_256",
|
|
16
|
+
"drawer-content-container": "awsui_drawer-content-container_12i0j_f60pk_270",
|
|
17
|
+
"drawer-gap": "awsui_drawer-gap_12i0j_f60pk_273",
|
|
18
|
+
"drawer-close-button": "awsui_drawer-close-button_12i0j_f60pk_291",
|
|
19
|
+
"drawer-expanded-mode-button": "awsui_drawer-expanded-mode-button_12i0j_f60pk_297",
|
|
20
|
+
"drawer-content": "awsui_drawer-content_12i0j_f60pk_270",
|
|
21
|
+
"drawer-content-hidden": "awsui_drawer-content-hidden_12i0j_f60pk_309",
|
|
22
|
+
"drawer-slider": "awsui_drawer-slider_12i0j_f60pk_312",
|
|
23
|
+
"drawer-actions": "awsui_drawer-actions_12i0j_f60pk_362",
|
|
24
|
+
"ai-drawer-slider-handle": "awsui_ai-drawer-slider-handle_12i0j_f60pk_418",
|
|
25
|
+
"drawer-content-header": "awsui_drawer-content-header_12i0j_f60pk_437",
|
|
26
|
+
"drawer-content-header-content": "awsui_drawer-content-header-content_12i0j_f60pk_450",
|
|
27
|
+
"drawer-back-to-console-slot": "awsui_drawer-back-to-console-slot_12i0j_f60pk_467",
|
|
28
|
+
"drawer-back-to-console-button-wrapper": "awsui_drawer-back-to-console-button-wrapper_12i0j_f60pk_506",
|
|
29
|
+
"drawer-back-to-console-button": "awsui_drawer-back-to-console-button_12i0j_f60pk_506",
|
|
30
|
+
"drawer-back-to-console-custom-button": "awsui_drawer-back-to-console-custom-button_12i0j_f60pk_579",
|
|
31
|
+
"drawer-content-content": "awsui_drawer-content-content_12i0j_f60pk_585"
|
|
32
32
|
};
|
|
33
33
|
|
package/input/styles.css.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"input": "
|
|
6
|
-
"input-readonly": "awsui_input-
|
|
7
|
-
"input-invalid": "awsui_input-
|
|
8
|
-
"input-has-icon-left": "awsui_input-has-icon-
|
|
9
|
-
"input-warning": "awsui_input-
|
|
10
|
-
"input-type-search": "awsui_input-type-
|
|
11
|
-
"input-has-icon-right": "awsui_input-has-icon-
|
|
12
|
-
"input-has-no-border-radius": "awsui_input-has-no-border-
|
|
13
|
-
"input-container": "awsui_input-
|
|
14
|
-
"input-icon-left": "awsui_input-icon-
|
|
15
|
-
"input-icon-right": "awsui_input-icon-
|
|
16
|
-
"input-button-right": "awsui_input-button-
|
|
4
|
+
"root": "awsui_root_2rhyz_1ok4u_145",
|
|
5
|
+
"input": "awsui_input_2rhyz_1ok4u_149",
|
|
6
|
+
"input-readonly": "awsui_input-readonly_2rhyz_1ok4u_203",
|
|
7
|
+
"input-invalid": "awsui_input-invalid_2rhyz_1ok4u_266",
|
|
8
|
+
"input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1ok4u_275",
|
|
9
|
+
"input-warning": "awsui_input-warning_2rhyz_1ok4u_278",
|
|
10
|
+
"input-type-search": "awsui_input-type-search_2rhyz_1ok4u_290",
|
|
11
|
+
"input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1ok4u_303",
|
|
12
|
+
"input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1ok4u_306",
|
|
13
|
+
"input-container": "awsui_input-container_2rhyz_1ok4u_313",
|
|
14
|
+
"input-icon-left": "awsui_input-icon-left_2rhyz_1ok4u_318",
|
|
15
|
+
"input-icon-right": "awsui_input-icon-right_2rhyz_1ok4u_325",
|
|
16
|
+
"input-button-right": "awsui_input-button-right_2rhyz_1ok4u_331"
|
|
17
17
|
};
|
|
18
18
|
|
package/input/styles.scoped.css
CHANGED
|
@@ -142,11 +142,11 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.
|
|
145
|
+
.awsui_root_2rhyz_1ok4u_145:not(#\9) {
|
|
146
146
|
/* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.
|
|
149
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -194,14 +194,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
194
|
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
195
195
|
block-size: var(--size-vertical-input-p1d7xx, 32px);
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):hover {
|
|
198
|
+
border-color: var(--awsui-style-border-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-317xk5, #8c8c94)));
|
|
199
|
+
color: var(--awsui-style-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a)));
|
|
200
|
+
background-color: var(--awsui-style-background-hover-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff)));
|
|
201
|
+
box-shadow: var(--awsui-style-box-shadow-hover-b75yp7, --awsui-style-box-shadow-default-b75yp7);
|
|
202
|
+
}
|
|
203
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-readonly_2rhyz_1ok4u_203:not(#\9) {
|
|
198
204
|
background-color: var(--awsui-style-background-readonly-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff)));
|
|
199
205
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
|
|
200
206
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
|
|
201
207
|
color: var(--awsui-style-color-readonly-b75yp7, var(--awsui-style-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a)));
|
|
202
208
|
box-shadow: var(--awsui-style-box-shadow-readonly-b75yp7);
|
|
203
209
|
}
|
|
204
|
-
.
|
|
210
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9)::-webkit-input-placeholder {
|
|
205
211
|
color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
206
212
|
font-size: var(--awsui-style-placeholder-font-size-b75yp7);
|
|
207
213
|
font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
|
|
@@ -209,21 +215,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
215
|
-webkit-user-select: none;
|
|
210
216
|
user-select: none;
|
|
211
217
|
}
|
|
212
|
-
.
|
|
218
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9)::-moz-placeholder {
|
|
213
219
|
color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
214
220
|
font-size: var(--awsui-style-placeholder-font-size-b75yp7);
|
|
215
221
|
font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
|
|
216
222
|
font-weight: var(--awsui-style-placeholder-font-weight-b75yp7);
|
|
217
223
|
opacity: 1;
|
|
218
224
|
}
|
|
219
|
-
.
|
|
225
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):-moz-placeholder {
|
|
220
226
|
color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
221
227
|
font-size: var(--awsui-style-placeholder-font-size-b75yp7);
|
|
222
228
|
font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
|
|
223
229
|
font-weight: var(--awsui-style-placeholder-font-weight-b75yp7);
|
|
224
230
|
opacity: 1;
|
|
225
231
|
}
|
|
226
|
-
.
|
|
232
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):focus {
|
|
227
233
|
outline: 2px dotted transparent;
|
|
228
234
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-4z0pgn, #006ce0));
|
|
229
235
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-4z0pgn, #006ce0));
|
|
@@ -235,7 +241,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
235
241
|
color: var(--awsui-style-color-focus-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a));
|
|
236
242
|
background-color: var(--awsui-style-background-focus-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff));
|
|
237
243
|
}
|
|
238
|
-
.
|
|
244
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):disabled {
|
|
239
245
|
background-color: var(--awsui-style-background-disabled-b75yp7, var(--color-background-input-disabled-dihaja, #ebebf0));
|
|
240
246
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0));
|
|
241
247
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0));
|
|
@@ -243,93 +249,87 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
243
249
|
cursor: default;
|
|
244
250
|
box-shadow: var(--awsui-style-box-shadow-disabled-b75yp7);
|
|
245
251
|
}
|
|
246
|
-
.
|
|
252
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):disabled::-webkit-input-placeholder {
|
|
247
253
|
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
248
254
|
-webkit-user-select: none;
|
|
249
255
|
user-select: none;
|
|
250
256
|
}
|
|
251
|
-
.
|
|
257
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):disabled::-moz-placeholder {
|
|
252
258
|
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
253
259
|
opacity: 1;
|
|
254
260
|
}
|
|
255
|
-
.
|
|
261
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):disabled:-moz-placeholder {
|
|
256
262
|
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
257
263
|
opacity: 1;
|
|
258
264
|
}
|
|
259
|
-
.
|
|
265
|
+
.awsui_input_2rhyz_1ok4u_149:not(#\9):invalid {
|
|
260
266
|
box-shadow: none;
|
|
261
267
|
}
|
|
262
|
-
.
|
|
263
|
-
border-color: var(--awsui-style-border-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-317xk5, #8c8c94)));
|
|
264
|
-
color: var(--awsui-style-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a)));
|
|
265
|
-
background-color: var(--awsui-style-background-hover-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff)));
|
|
266
|
-
box-shadow: var(--awsui-style-box-shadow-hover-b75yp7, --awsui-style-box-shadow-default-b75yp7);
|
|
267
|
-
}
|
|
268
|
-
.awsui_input_2rhyz_1jc9s_149.awsui_input-invalid_2rhyz_1jc9s_266:not(#\9) {
|
|
268
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-invalid_2rhyz_1ok4u_266:not(#\9) {
|
|
269
269
|
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
270
270
|
border-color: var(--color-text-status-error-ksqavh, #db0000);
|
|
271
271
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
272
272
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
273
273
|
}
|
|
274
|
-
.
|
|
274
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-invalid_2rhyz_1ok4u_266:not(#\9):focus {
|
|
275
275
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-invalid_2rhyz_1ok4u_266.awsui_input-has-icon-left_2rhyz_1ok4u_275:not(#\9) {
|
|
278
278
|
padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-warning_2rhyz_1ok4u_278:not(#\9) {
|
|
281
281
|
color: var(--color-text-status-warning-6meo06, #855900);
|
|
282
282
|
border-color: var(--color-text-status-warning-6meo06, #855900);
|
|
283
283
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
284
284
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-warning_2rhyz_1ok4u_278:not(#\9):focus {
|
|
287
287
|
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-warning_2rhyz_1ok4u_278.awsui_input-has-icon-left_2rhyz_1ok4u_275:not(#\9) {
|
|
290
290
|
padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
291
291
|
}
|
|
292
|
-
.
|
|
292
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-type-search_2rhyz_1ok4u_290:not(#\9) {
|
|
293
293
|
box-sizing: border-box;
|
|
294
294
|
-webkit-appearance: none;
|
|
295
295
|
}
|
|
296
|
-
.
|
|
296
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-type-search_2rhyz_1ok4u_290:not(#\9)::-webkit-search-decoration {
|
|
297
297
|
-webkit-appearance: none;
|
|
298
298
|
}
|
|
299
|
-
.
|
|
299
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-type-search_2rhyz_1ok4u_290:not(#\9)::-webkit-search-cancel-button {
|
|
300
300
|
display: none;
|
|
301
301
|
}
|
|
302
|
-
.
|
|
302
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-has-icon-left_2rhyz_1ok4u_275:not(#\9) {
|
|
303
303
|
padding-inline-start: var(--space-field-icon-offset-ikwzwx, 36px);
|
|
304
304
|
}
|
|
305
|
-
.
|
|
305
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-has-icon-right_2rhyz_1ok4u_303:not(#\9) {
|
|
306
306
|
padding-inline-end: var(--space-field-icon-offset-ikwzwx, 36px);
|
|
307
307
|
}
|
|
308
|
-
.
|
|
308
|
+
.awsui_input_2rhyz_1ok4u_149.awsui_input-has-no-border-radius_2rhyz_1ok4u_306:not(#\9) {
|
|
309
309
|
border-start-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
310
310
|
border-start-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
311
311
|
border-end-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
312
312
|
border-end-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.awsui_input-
|
|
315
|
+
.awsui_input-container_2rhyz_1ok4u_313:not(#\9) {
|
|
316
316
|
display: flex;
|
|
317
317
|
position: relative;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
.awsui_input-icon-
|
|
320
|
+
.awsui_input-icon-left_2rhyz_1ok4u_318:not(#\9) {
|
|
321
321
|
position: absolute;
|
|
322
322
|
pointer-events: none;
|
|
323
323
|
inset-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
|
|
324
324
|
inset-block-start: calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.awsui_input-icon-
|
|
327
|
+
.awsui_input-icon-right_2rhyz_1ok4u_325:not(#\9) {
|
|
328
328
|
position: absolute;
|
|
329
329
|
inset-block-start: calc(calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2) - var(--space-xxxs-pajhad, 2px));
|
|
330
330
|
inset-inline-end: calc(var(--space-field-horizontal-0aq2ch, 12px) - var(--space-xxs-hwfkai, 4px));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.awsui_input-button-
|
|
333
|
+
.awsui_input-button-right_2rhyz_1ok4u_331:not(#\9) {
|
|
334
334
|
/* used in test-utils */
|
|
335
335
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
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
|
-
"input": "
|
|
7
|
-
"input-readonly": "awsui_input-
|
|
8
|
-
"input-invalid": "awsui_input-
|
|
9
|
-
"input-has-icon-left": "awsui_input-has-icon-
|
|
10
|
-
"input-warning": "awsui_input-
|
|
11
|
-
"input-type-search": "awsui_input-type-
|
|
12
|
-
"input-has-icon-right": "awsui_input-has-icon-
|
|
13
|
-
"input-has-no-border-radius": "awsui_input-has-no-border-
|
|
14
|
-
"input-container": "awsui_input-
|
|
15
|
-
"input-icon-left": "awsui_input-icon-
|
|
16
|
-
"input-icon-right": "awsui_input-icon-
|
|
17
|
-
"input-button-right": "awsui_input-button-
|
|
5
|
+
"root": "awsui_root_2rhyz_1ok4u_145",
|
|
6
|
+
"input": "awsui_input_2rhyz_1ok4u_149",
|
|
7
|
+
"input-readonly": "awsui_input-readonly_2rhyz_1ok4u_203",
|
|
8
|
+
"input-invalid": "awsui_input-invalid_2rhyz_1ok4u_266",
|
|
9
|
+
"input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1ok4u_275",
|
|
10
|
+
"input-warning": "awsui_input-warning_2rhyz_1ok4u_278",
|
|
11
|
+
"input-type-search": "awsui_input-type-search_2rhyz_1ok4u_290",
|
|
12
|
+
"input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1ok4u_303",
|
|
13
|
+
"input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1ok4u_306",
|
|
14
|
+
"input-container": "awsui_input-container_2rhyz_1ok4u_313",
|
|
15
|
+
"input-icon-left": "awsui_input-icon-left_2rhyz_1ok4u_318",
|
|
16
|
+
"input-icon-right": "awsui_input-icon-right_2rhyz_1ok4u_325",
|
|
17
|
+
"input-button-right": "awsui_input-button-right_2rhyz_1ok4u_331"
|
|
18
18
|
};
|
|
19
19
|
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (05d1e350)";
|
|
3
|
+
export var GIT_SHA = "05d1e350";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "console";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"./internal/base-component/index.js",
|
|
155
155
|
"./internal/base-component/styles.css.js"
|
|
156
156
|
],
|
|
157
|
-
"version": "3.0.
|
|
157
|
+
"version": "3.0.1122",
|
|
158
158
|
"repository": {
|
|
159
159
|
"type": "git",
|
|
160
160
|
"url": "https://github.com/cloudscape-design/components.git"
|
|
@@ -17,6 +17,18 @@ export interface InternalStatusIndicatorProps extends SomeRequired<StatusIndicat
|
|
|
17
17
|
*/
|
|
18
18
|
__display?: 'inline' | 'inline-block';
|
|
19
19
|
}
|
|
20
|
+
interface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {
|
|
21
|
+
animate?: InternalStatusIndicatorProps['__animate'];
|
|
22
|
+
size?: InternalStatusIndicatorProps['__size'];
|
|
23
|
+
display?: InternalStatusIndicatorProps['__display'];
|
|
24
|
+
}
|
|
25
|
+
export declare function InternalStatusIcon({
|
|
26
|
+
type,
|
|
27
|
+
iconAriaLabel,
|
|
28
|
+
animate,
|
|
29
|
+
display,
|
|
30
|
+
size
|
|
31
|
+
}: InternalStatusIconProps): JSX.Element;
|
|
20
32
|
export default function StatusIndicator({
|
|
21
33
|
type,
|
|
22
34
|
children,
|
|
@@ -29,4 +41,5 @@ export default function StatusIndicator({
|
|
|
29
41
|
__size,
|
|
30
42
|
__display,
|
|
31
43
|
...rest
|
|
32
|
-
}: InternalStatusIndicatorProps): JSX.Element;
|
|
44
|
+
}: InternalStatusIndicatorProps): JSX.Element;
|
|
45
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,4BACf,SAAQ,YAAY,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAChD,0BAA0B;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;CACvC;AAaD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAe,EACf,gBAAgB,EAChB,SAAiB,EACjB,iBAAiB,EACjB,MAAiB,EACjB,SAA0B,EAC1B,GAAG,IAAI,EACR,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,4BACf,SAAQ,YAAY,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAChD,0BAA0B;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;CACvC;AAaD,UAAU,uBAAwB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,MAAM,GAAG,eAAe,CAAC;IACpG,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;CACrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,IAAe,GAChB,EAAE,uBAAuB,eAWzB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAe,EACf,gBAAgB,EAChB,SAAiB,EACjB,iBAAiB,EACjB,MAAiB,EACjB,SAA0B,EAC1B,GAAG,IAAI,EACR,EAAE,4BAA4B,eAqC9B"}
|
|
@@ -21,6 +21,11 @@ const typeToIcon = size => ({
|
|
|
21
21
|
'in-progress': React.createElement(InternalIcon, { name: "status-in-progress", size: size }),
|
|
22
22
|
loading: React.createElement(InternalSpinner, null),
|
|
23
23
|
});
|
|
24
|
+
export function InternalStatusIcon({ type, iconAriaLabel, animate, display, size = 'normal', }) {
|
|
25
|
+
return (React.createElement("span", { className: clsx(styles.icon, animate && styles['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
|
|
26
|
+
typeToIcon(size)[type],
|
|
27
|
+
display === 'inline' && React.createElement(React.Fragment, null, "\u00A0")));
|
|
28
|
+
}
|
|
24
29
|
export default function StatusIndicator(_a) {
|
|
25
30
|
var { type, children, iconAriaLabel, colorOverride, wrapText = true, nativeAttributes, __animate = false, __internalRootRef, __size = 'normal', __display = 'inline-block' } = _a, rest = __rest(_a, ["type", "children", "iconAriaLabel", "colorOverride", "wrapText", "nativeAttributes", "__animate", "__internalRootRef", "__size", "__display"]);
|
|
26
31
|
const baseProps = getBaseProps(rest);
|
|
@@ -28,9 +33,7 @@ export default function StatusIndicator(_a) {
|
|
|
28
33
|
[styles[`color-override-${colorOverride}`]]: colorOverride,
|
|
29
34
|
}, baseProps.className), ref: __internalRootRef }),
|
|
30
35
|
React.createElement("span", { className: clsx(styles.container, styles[`display-${__display}`], wrapText === false && styles['overflow-ellipsis'], __animate && styles['container-fade-in']) },
|
|
31
|
-
React.createElement(
|
|
32
|
-
typeToIcon(__size)[type],
|
|
33
|
-
__display === 'inline' && React.createElement(React.Fragment, null, "\u00A0")),
|
|
36
|
+
React.createElement(InternalStatusIcon, { type: type, iconAriaLabel: iconAriaLabel, animate: __animate, display: __display, size: __size }),
|
|
34
37
|
children)));
|
|
35
38
|
}
|
|
36
39
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC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AAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAYT;QAZS,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAQ,GAAG,IAAI,EACf,gBAAgB,EAChB,SAAS,GAAG,KAAK,EACjB,iBAAiB,EACjB,MAAM,GAAG,QAAQ,EACjB,SAAS,GAAG,cAAc,OAEG,EAD1B,IAAI,cAX+B,+IAYvC,CADQ;IAEP,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,CACL,oBAAC,oBAAoB,oBACf,SAAS,IACb,GAAG,EAAC,MAAM,EACV,aAAa,EAAC,iBAAiB,EAC/B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,EACxB;YACE,CAAC,MAAM,CAAC,kBAAkB,aAAa,EAAE,CAAC,CAAC,EAAE,aAAa;SAC3D,EACD,SAAS,CAAC,SAAS,CACpB,EACD,GAAG,EAAE,iBAAiB;QAEtB,8BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,WAAW,SAAS,EAAE,CAAC,EAC9B,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,EACjD,SAAS,IAAI,MAAM,CAAC,mBAAmB,CAAC,CACzC;YAED,oBAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,MAAM,GACZ;YACD,QAAQ,CACJ,CACc,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\n/**\n * @awsuiSystem core\n */\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport InternalSpinner from '../spinner/internal';\nimport { StatusIndicatorProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalStatusIndicatorProps\n extends SomeRequired<StatusIndicatorProps, 'type'>,\n InternalBaseComponentProps {\n /**\n * Play an animation on the error icon when first rendered\n */\n __animate?: boolean;\n\n /**\n * Size of icon.\n */\n __size?: IconProps.Size;\n\n /**\n * The CSS behavior of the status indicator container element.\n */\n __display?: 'inline' | 'inline-block';\n}\n\nconst typeToIcon: (size: IconProps.Size) => Record<StatusIndicatorProps.Type, JSX.Element> = size => ({\n error: <InternalIcon name=\"status-negative\" size={size} />,\n warning: <InternalIcon name=\"status-warning\" size={size} />,\n success: <InternalIcon name=\"status-positive\" size={size} />,\n info: <InternalIcon name=\"status-info\" size={size} />,\n stopped: <InternalIcon name=\"status-stopped\" size={size} />,\n pending: <InternalIcon name=\"status-pending\" size={size} />,\n 'in-progress': <InternalIcon name=\"status-in-progress\" size={size} />,\n loading: <InternalSpinner />,\n});\n\ninterface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {\n animate?: InternalStatusIndicatorProps['__animate'];\n size?: InternalStatusIndicatorProps['__size'];\n display?: InternalStatusIndicatorProps['__display'];\n}\n\nexport function InternalStatusIcon({\n type,\n iconAriaLabel,\n animate,\n display,\n size = 'normal',\n}: InternalStatusIconProps) {\n return (\n <span\n className={clsx(styles.icon, animate && styles['icon-shake'])}\n aria-label={iconAriaLabel}\n role={iconAriaLabel ? 'img' : undefined}\n >\n {typeToIcon(size)[type]}\n {display === 'inline' && <> </>}\n </span>\n );\n}\n\nexport default function StatusIndicator({\n type,\n children,\n iconAriaLabel,\n colorOverride,\n wrapText = true,\n nativeAttributes,\n __animate = false,\n __internalRootRef,\n __size = 'normal',\n __display = 'inline-block',\n ...rest\n}: InternalStatusIndicatorProps) {\n const baseProps = getBaseProps(rest);\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"span\"\n componentName=\"StatusIndicator\"\n nativeAttributes={nativeAttributes}\n className={clsx(\n styles.root,\n styles[`status-${type}`],\n {\n [styles[`color-override-${colorOverride}`]]: colorOverride,\n },\n baseProps.className\n )}\n ref={__internalRootRef}\n >\n <span\n className={clsx(\n styles.container,\n styles[`display-${__display}`],\n wrapText === false && styles['overflow-ellipsis'],\n __animate && styles['container-fade-in']\n )}\n >\n <InternalStatusIcon\n type={type}\n iconAriaLabel={iconAriaLabel}\n animate={__animate}\n display={__display}\n size={__size}\n />\n {children}\n </span>\n </WithNativeAttributes>\n );\n}\n"]}
|
package/steps/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
'use client';
|
|
4
|
-
import { __rest } from "tslib";
|
|
5
3
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import
|
|
4
|
+
|
|
5
|
+
import CoreComponent from './internal-do-not-use-core';
|
|
8
6
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return React.createElement(InternalSteps, Object.assign({}, baseProps, baseComponentProps, externalProps, { steps: steps }));
|
|
7
|
+
import { validateProps } from '@cloudscape-design/component-toolkit/internal';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Steps = (props) => {
|
|
12
|
+
validateProps('Steps', props, ["orientation","renderStep"], {}, 'console');
|
|
13
|
+
return React.createElement(CoreComponent, props);
|
|
17
14
|
};
|
|
15
|
+
|
|
16
|
+
|
|
18
17
|
applyDisplayName(Steps, 'Steps');
|
|
19
18
|
export default Steps;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/steps/interfaces.d.ts
CHANGED
|
@@ -12,6 +12,23 @@ export interface StepsProps extends BaseComponentProps {
|
|
|
12
12
|
* * `details` (ReactNode) - (Optional) Additional information corresponding to the step.
|
|
13
13
|
*/
|
|
14
14
|
steps: ReadonlyArray<StepsProps.Step>;
|
|
15
|
+
/**
|
|
16
|
+
* The visual orientation of the steps (vertical or horizontal).
|
|
17
|
+
* By default the orientation is vertical.
|
|
18
|
+
*
|
|
19
|
+
* @awsuiSystem core
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Render a step. This overrides the default icon, header, and details provided by the component.
|
|
24
|
+
* The function is called for each step and should return an object with the following keys:
|
|
25
|
+
* * `header` (React.ReactNode) - Summary corresponding to the step.
|
|
26
|
+
* * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.
|
|
27
|
+
* * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.
|
|
28
|
+
*
|
|
29
|
+
* @awsuiSystem core
|
|
30
|
+
*/
|
|
31
|
+
|
|
15
32
|
/**
|
|
16
33
|
* Provides an `aria-label` to the progress steps container.
|
|
17
34
|
* Don't use `ariaLabel` and `ariaLabelledby` at the same time.
|
|
@@ -36,4 +53,5 @@ export declare namespace StepsProps {
|
|
|
36
53
|
header: React.ReactNode;
|
|
37
54
|
details?: React.ReactNode;
|
|
38
55
|
}
|
|
56
|
+
type Orientation = 'vertical' | 'horizontal';
|
|
39
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/steps/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD;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C,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC;IAE/C,UAAiB,IAAI;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC3B;IAED,KAAY,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;CACrD"}
|
package/steps/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/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 { StatusIndicatorProps } from '../status-indicator/interfaces';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type;\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/steps/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 { StatusIndicatorProps } from '../status-indicator/interfaces';\n\nexport interface StepsProps extends BaseComponentProps {\n /**\n * An array of individual steps\n *\n * Each step definition has the following properties:\n * * `status` (string) - Status of the step corresponding to a status indicator.\n * * `statusIconAriaLabel` - (string) - (Optional) Alternative text for the status icon.\n * * `header` (ReactNode) - Summary corresponding to the step.\n * * `details` (ReactNode) - (Optional) Additional information corresponding to the step.\n */\n steps: ReadonlyArray<StepsProps.Step>;\n /**\n * The visual orientation of the steps (vertical or horizontal).\n * By default the orientation is vertical.\n *\n * @awsuiSystem core\n */\n orientation?: StepsProps.Orientation;\n /**\n * Render a step. This overrides the default icon, header, and details provided by the component.\n * The function is called for each step and should return an object with the following keys:\n * * `header` (React.ReactNode) - Summary corresponding to the step.\n * * `details` (React.ReactNode) - (Optional) Additional information corresponding to the step.\n * * `icon` (React.ReactNode) - (Optional) Replaces the standard step icon from the status indicator.\n *\n * @awsuiSystem core\n */\n renderStep?: (step: StepsProps.Step) => {\n header: React.ReactNode;\n details?: React.ReactNode;\n icon?: React.ReactNode;\n };\n /**\n * Provides an `aria-label` to the progress steps container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the progress steps container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n /**\n * Sets the `aria-describedby` property on the progress steps container.\n */\n ariaDescribedby?: string;\n}\n\nexport namespace StepsProps {\n export type Status = StatusIndicatorProps.Type;\n\n export interface Step {\n status: Status;\n statusIconAriaLabel?: string;\n header: React.ReactNode;\n details?: React.ReactNode;\n }\n\n export type Orientation = 'vertical' | 'horizontal';\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
'use client';
|
|
4
|
+
import { __rest } from "tslib";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { getBaseProps } from '../internal/base-component';
|
|
7
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
8
|
+
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
9
|
+
import { getExternalProps } from '../internal/utils/external-props';
|
|
10
|
+
import InternalSteps from './internal';
|
|
11
|
+
const Steps = (_a) => {
|
|
12
|
+
var { steps } = _a, props = __rest(_a, ["steps"]);
|
|
13
|
+
const baseProps = getBaseProps(props);
|
|
14
|
+
const baseComponentProps = useBaseComponent('Steps');
|
|
15
|
+
const externalProps = getExternalProps(props);
|
|
16
|
+
return React.createElement(InternalSteps, Object.assign({}, baseProps, baseComponentProps, externalProps, { steps: steps }));
|
|
17
|
+
};
|
|
18
|
+
applyDisplayName(Steps, 'Steps');
|
|
19
|
+
export default Steps;
|
|
20
|
+
//# sourceMappingURL=internal-do-not-use-core.js.map
|
package/steps/internal.d.ts
CHANGED
package/steps/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/steps/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,0BAA0B,CAAC;AA2EzF,QAAA,MAAM,aAAa,gHAShB,kBAAkB,gBA8BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|