@cloudscape-design/components 3.0.1121 → 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/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +50 -50
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +32 -32
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -27
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -27
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +22 -22
- package/button/styles.scoped.css +256 -256
- package/button/styles.selectors.js +22 -22
- package/button-dropdown/item-element/styles.css.js +16 -16
- package/button-dropdown/item-element/styles.scoped.css +27 -27
- package/button-dropdown/item-element/styles.selectors.js +16 -16
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +11 -11
- package/checkbox/styles.selectors.js +3 -3
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +187 -187
- package/flashbar/styles.selectors.js +50 -50
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +73 -73
- package/help-panel/styles.selectors.js +6 -6
- package/input/index.d.ts.map +1 -1
- package/input/index.js +1 -1
- package/input/interfaces.d.ts +47 -0
- package/input/interfaces.d.ts.map +1 -1
- package/input/interfaces.js.map +1 -1
- package/input/internal-do-not-use-core.js +3 -2
- package/input/internal-do-not-use-core.js.map +1 -1
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +3 -2
- package/input/internal.js.map +1 -1
- package/input/styles.css.js +13 -13
- package/input/styles.d.ts +2 -0
- package/input/styles.d.ts.map +1 -0
- package/input/styles.js +42 -0
- package/input/styles.js.map +1 -0
- package/input/styles.scoped.css +66 -49
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +20 -20
- package/internal/components/drag-handle-wrapper/styles.scoped.css +48 -48
- package/internal/components/drag-handle-wrapper/styles.selectors.js +20 -20
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +38 -38
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/custom-css-properties/index.d.ts +12 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +98 -86
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +103 -103
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/radio-group/styles.css.js +10 -10
- package/radio-group/styles.scoped.css +22 -22
- package/radio-group/styles.selectors.js +10 -10
- package/select/parts/filter.d.ts +1 -1
- package/select/parts/filter.d.ts.map +1 -1
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +86 -86
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +23 -23
- package/toggle/styles.selectors.js +10 -10
|
@@ -2,55 +2,55 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"notification-bar": "awsui_notification-
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"collapsible": "
|
|
28
|
-
"short-list": "awsui_short-
|
|
29
|
-
"visual-refresh": "awsui_visual-
|
|
30
|
-
"status": "
|
|
31
|
-
"header": "
|
|
32
|
-
"item-count": "awsui_item-
|
|
33
|
-
"button": "
|
|
34
|
-
"type-count": "awsui_type-
|
|
35
|
-
"count-number": "awsui_count-
|
|
36
|
-
"icon": "
|
|
37
|
-
"floating": "
|
|
38
|
-
"flashbar": "
|
|
39
|
-
"initial-hidden": "awsui_initial-
|
|
40
|
-
"flash-list": "awsui_flash-
|
|
41
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
42
|
-
"flash-text": "awsui_flash-
|
|
43
|
-
"hidden": "
|
|
44
|
-
"header-replacement": "awsui_header-
|
|
45
|
-
"content-replacement": "awsui_content-
|
|
46
|
-
"dismiss-button": "awsui_dismiss-
|
|
47
|
-
"action-wrapped": "awsui_action-
|
|
48
|
-
"action-button": "awsui_action-
|
|
49
|
-
"action-slot": "awsui_action-
|
|
50
|
-
"flash-type-success": "awsui_flash-type-
|
|
51
|
-
"flash-type-error": "awsui_flash-type-
|
|
52
|
-
"flash-type-info": "awsui_flash-type-
|
|
53
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
54
|
-
"flash-type-warning": "awsui_flash-type-
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1sv18_157",
|
|
6
|
+
"enter": "awsui_enter_1q84n_1sv18_157",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_1sv18_171",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_1sv18_171",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_1sv18_171",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_1sv18_172",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1sv18_173",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1sv18_174",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_1sv18_197",
|
|
14
|
+
"entering": "awsui_entering_1q84n_1sv18_210",
|
|
15
|
+
"entered": "awsui_entered_1q84n_1sv18_231",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_1sv18_336",
|
|
17
|
+
"stack": "awsui_stack_1q84n_1sv18_370",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_1sv18_370",
|
|
19
|
+
"item": "awsui_item_1q84n_1sv18_370",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1sv18_371",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_1sv18_372",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_1sv18_392",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_1sv18_392",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_1sv18_392",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_1sv18_392",
|
|
26
|
+
"flash": "awsui_flash_1q84n_1sv18_157",
|
|
27
|
+
"collapsible": "awsui_collapsible_1q84n_1sv18_448",
|
|
28
|
+
"short-list": "awsui_short-list_1q84n_1sv18_454",
|
|
29
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1sv18_454",
|
|
30
|
+
"status": "awsui_status_1q84n_1sv18_601",
|
|
31
|
+
"header": "awsui_header_1q84n_1sv18_601",
|
|
32
|
+
"item-count": "awsui_item-count_1q84n_1sv18_602",
|
|
33
|
+
"button": "awsui_button_1q84n_1sv18_603",
|
|
34
|
+
"type-count": "awsui_type-count_1q84n_1sv18_636",
|
|
35
|
+
"count-number": "awsui_count-number_1q84n_1sv18_636",
|
|
36
|
+
"icon": "awsui_icon_1q84n_1sv18_674",
|
|
37
|
+
"floating": "awsui_floating_1q84n_1sv18_715",
|
|
38
|
+
"flashbar": "awsui_flashbar_1q84n_1sv18_719",
|
|
39
|
+
"initial-hidden": "awsui_initial-hidden_1q84n_1sv18_778",
|
|
40
|
+
"flash-list": "awsui_flash-list_1q84n_1sv18_371",
|
|
41
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1sv18_802",
|
|
42
|
+
"flash-text": "awsui_flash-text_1q84n_1sv18_832",
|
|
43
|
+
"hidden": "awsui_hidden_1q84n_1sv18_851",
|
|
44
|
+
"header-replacement": "awsui_header-replacement_1q84n_1sv18_856",
|
|
45
|
+
"content-replacement": "awsui_content-replacement_1q84n_1sv18_861",
|
|
46
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1sv18_174",
|
|
47
|
+
"action-wrapped": "awsui_action-wrapped_1q84n_1sv18_879",
|
|
48
|
+
"action-button": "awsui_action-button_1q84n_1sv18_173",
|
|
49
|
+
"action-slot": "awsui_action-slot_1q84n_1sv18_886",
|
|
50
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1sv18_890",
|
|
51
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1sv18_894",
|
|
52
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1sv18_898",
|
|
53
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1sv18_899",
|
|
54
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1sv18_903"
|
|
55
55
|
};
|
|
56
56
|
|
package/help-panel/styles.css.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"help-panel": "awsui_help-
|
|
5
|
-
"loading": "
|
|
6
|
-
"header": "
|
|
7
|
-
"with-toolbar": "awsui_with-
|
|
8
|
-
"content": "
|
|
9
|
-
"footer": "
|
|
4
|
+
"help-panel": "awsui_help-panel_1d237_1leny_181",
|
|
5
|
+
"loading": "awsui_loading_1d237_1leny_348",
|
|
6
|
+
"header": "awsui_header_1d237_1leny_353",
|
|
7
|
+
"with-toolbar": "awsui_with-toolbar_1d237_1leny_371",
|
|
8
|
+
"content": "awsui_content_1d237_1leny_390",
|
|
9
|
+
"footer": "awsui_footer_1d237_1leny_441"
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
*/
|
|
179
179
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
180
180
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
181
|
-
.awsui_help-
|
|
181
|
+
.awsui_help-panel_1d237_1leny_181:not(#\9) {
|
|
182
182
|
border-collapse: separate;
|
|
183
183
|
border-spacing: 0;
|
|
184
184
|
box-sizing: border-box;
|
|
@@ -214,36 +214,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
214
214
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
215
215
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
216
216
|
}
|
|
217
|
-
.awsui_help-
|
|
217
|
+
.awsui_help-panel_1d237_1leny_181 hr:not(#\9) {
|
|
218
218
|
border-block: none;
|
|
219
219
|
border-inline: none;
|
|
220
220
|
border-block-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
221
221
|
margin-block: var(--space-scaled-xl-dunxp5, 24px);
|
|
222
222
|
margin-inline: calc(-1 * var(--space-panel-divider-margin-horizontal-yw31p0, 8px));
|
|
223
223
|
}
|
|
224
|
-
.awsui_help-
|
|
225
|
-
.awsui_help-
|
|
224
|
+
.awsui_help-panel_1d237_1leny_181 ol:not(#\9),
|
|
225
|
+
.awsui_help-panel_1d237_1leny_181 ul:not(#\9) {
|
|
226
226
|
padding-inline-start: var(--space-l-2ud1p3, 20px);
|
|
227
227
|
list-style-position: outside;
|
|
228
228
|
margin-block: var(--space-s-tvghoh, 12px);
|
|
229
229
|
margin-inline: 0;
|
|
230
230
|
}
|
|
231
|
-
.awsui_help-
|
|
231
|
+
.awsui_help-panel_1d237_1leny_181 li:not(#\9) {
|
|
232
232
|
margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
233
233
|
margin-inline: 0;
|
|
234
234
|
}
|
|
235
|
-
.awsui_help-
|
|
236
|
-
.awsui_help-
|
|
237
|
-
.awsui_help-
|
|
238
|
-
.awsui_help-
|
|
239
|
-
.awsui_help-
|
|
240
|
-
.awsui_help-
|
|
241
|
-
.awsui_help-
|
|
235
|
+
.awsui_help-panel_1d237_1leny_181 a:not(#\9),
|
|
236
|
+
.awsui_help-panel_1d237_1leny_181 h2:not(#\9),
|
|
237
|
+
.awsui_help-panel_1d237_1leny_181 h3:not(#\9),
|
|
238
|
+
.awsui_help-panel_1d237_1leny_181 h4:not(#\9),
|
|
239
|
+
.awsui_help-panel_1d237_1leny_181 h5:not(#\9),
|
|
240
|
+
.awsui_help-panel_1d237_1leny_181 pre:not(#\9),
|
|
241
|
+
.awsui_help-panel_1d237_1leny_181 code:not(#\9) {
|
|
242
242
|
margin-block: var(--space-xs-ymlm0b, 8px);
|
|
243
243
|
margin-inline: 0;
|
|
244
244
|
padding-block: 0;
|
|
245
245
|
}
|
|
246
|
-
.awsui_help-
|
|
246
|
+
.awsui_help-panel_1d237_1leny_181 code:not(#\9) {
|
|
247
247
|
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
248
248
|
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
249
249
|
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
@@ -254,7 +254,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
254
254
|
word-wrap: break-word;
|
|
255
255
|
white-space: pre-wrap;
|
|
256
256
|
}
|
|
257
|
-
.awsui_help-
|
|
257
|
+
.awsui_help-panel_1d237_1leny_181 pre:not(#\9) {
|
|
258
258
|
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
259
259
|
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
260
260
|
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
@@ -267,41 +267,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
267
267
|
padding-block: var(--space-xxs-hwfkai, 4px);
|
|
268
268
|
padding-inline: var(--space-xxs-hwfkai, 4px);
|
|
269
269
|
}
|
|
270
|
-
.awsui_help-
|
|
270
|
+
.awsui_help-panel_1d237_1leny_181 dl:not(#\9) {
|
|
271
271
|
margin-block: var(--space-s-tvghoh, 12px);
|
|
272
272
|
margin-inline: 0;
|
|
273
273
|
/* stylelint-disable-next-line selector-max-universal */
|
|
274
274
|
}
|
|
275
|
-
.awsui_help-
|
|
275
|
+
.awsui_help-panel_1d237_1leny_181 dl *:not(#\9) {
|
|
276
276
|
margin-block: 0;
|
|
277
277
|
}
|
|
278
|
-
.awsui_help-
|
|
278
|
+
.awsui_help-panel_1d237_1leny_181 dt:not(#\9) {
|
|
279
279
|
margin-block-start: var(--space-xs-ymlm0b, 8px);
|
|
280
280
|
font-weight: 700;
|
|
281
281
|
}
|
|
282
|
-
.awsui_help-
|
|
282
|
+
.awsui_help-panel_1d237_1leny_181 dd:not(#\9) {
|
|
283
283
|
margin-block-start: 0;
|
|
284
284
|
margin-block-end: var(--space-xs-ymlm0b, 8px);
|
|
285
285
|
margin-inline: 0;
|
|
286
286
|
}
|
|
287
|
-
.awsui_help-
|
|
288
|
-
.awsui_help-
|
|
289
|
-
.awsui_help-
|
|
290
|
-
.awsui_help-
|
|
291
|
-
.awsui_help-
|
|
287
|
+
.awsui_help-panel_1d237_1leny_181 h2:not(#\9),
|
|
288
|
+
.awsui_help-panel_1d237_1leny_181 h3:not(#\9),
|
|
289
|
+
.awsui_help-panel_1d237_1leny_181 h4:not(#\9),
|
|
290
|
+
.awsui_help-panel_1d237_1leny_181 h5:not(#\9),
|
|
291
|
+
.awsui_help-panel_1d237_1leny_181 h6:not(#\9) {
|
|
292
292
|
margin-block-start: var(--space-xl-jfy3x4, 24px);
|
|
293
293
|
color: var(--color-text-heading-default-izpp46, #0f141a);
|
|
294
294
|
}
|
|
295
|
-
.awsui_help-
|
|
295
|
+
.awsui_help-panel_1d237_1leny_181 > :not(#\9):last-child {
|
|
296
296
|
margin-block-end: var(--space-panel-content-bottom-24c6lu, 40px);
|
|
297
297
|
}
|
|
298
|
-
.awsui_help-
|
|
298
|
+
.awsui_help-panel_1d237_1leny_181 p:not(#\9) {
|
|
299
299
|
color: inherit;
|
|
300
300
|
text-decoration: none;
|
|
301
301
|
margin-block: var(--space-s-tvghoh, 12px);
|
|
302
302
|
margin-inline: 0;
|
|
303
303
|
}
|
|
304
|
-
.awsui_help-
|
|
304
|
+
.awsui_help-panel_1d237_1leny_181 h1:not(#\9) {
|
|
305
305
|
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
306
306
|
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
307
307
|
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
@@ -309,7 +309,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
309
309
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
310
310
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
311
311
|
}
|
|
312
|
-
.awsui_help-
|
|
312
|
+
.awsui_help-panel_1d237_1leny_181 h2:not(#\9) {
|
|
313
313
|
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
314
314
|
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
315
315
|
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
@@ -317,7 +317,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
317
317
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
318
318
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
319
319
|
}
|
|
320
|
-
.awsui_help-
|
|
320
|
+
.awsui_help-panel_1d237_1leny_181 h3:not(#\9) {
|
|
321
321
|
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
322
322
|
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
323
323
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
@@ -325,7 +325,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
325
325
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
326
326
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
327
327
|
}
|
|
328
|
-
.awsui_help-
|
|
328
|
+
.awsui_help-panel_1d237_1leny_181 h4:not(#\9) {
|
|
329
329
|
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
330
330
|
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
331
331
|
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
@@ -333,24 +333,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
333
333
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
334
334
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
335
335
|
}
|
|
336
|
-
.awsui_help-
|
|
336
|
+
.awsui_help-panel_1d237_1leny_181 h5:not(#\9) {
|
|
337
337
|
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
338
338
|
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
339
339
|
font-weight: var(--font-weight-heading-xs-wqqpne, 700);
|
|
340
340
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
341
341
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
342
342
|
}
|
|
343
|
-
.awsui_help-
|
|
344
|
-
.awsui_help-
|
|
343
|
+
.awsui_help-panel_1d237_1leny_181 b:not(#\9),
|
|
344
|
+
.awsui_help-panel_1d237_1leny_181 strong:not(#\9) {
|
|
345
345
|
font-weight: 700;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.
|
|
348
|
+
.awsui_loading_1d237_1leny_348:not(#\9) {
|
|
349
349
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
350
350
|
padding-inline-end: var(--space-panel-side-right-8wwirc, 24px);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
.
|
|
353
|
+
.awsui_header_1d237_1leny_353:not(#\9) {
|
|
354
354
|
font-size: var(--font-panel-header-size-33h9j8, 18px);
|
|
355
355
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
356
356
|
line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
|
|
@@ -368,15 +368,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
368
368
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
369
369
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
370
370
|
}
|
|
371
|
-
.awsui_with-
|
|
371
|
+
.awsui_with-toolbar_1d237_1leny_371 > .awsui_header_1d237_1leny_353:not(#\9) {
|
|
372
372
|
border-color: transparent;
|
|
373
373
|
margin-block-end: 0px;
|
|
374
374
|
}
|
|
375
|
-
.
|
|
376
|
-
.
|
|
377
|
-
.
|
|
378
|
-
.
|
|
379
|
-
.
|
|
375
|
+
.awsui_header_1d237_1leny_353 h2:not(#\9),
|
|
376
|
+
.awsui_header_1d237_1leny_353 h3:not(#\9),
|
|
377
|
+
.awsui_header_1d237_1leny_353 h4:not(#\9),
|
|
378
|
+
.awsui_header_1d237_1leny_353 h5:not(#\9),
|
|
379
|
+
.awsui_header_1d237_1leny_353 h6:not(#\9) {
|
|
380
380
|
font-size: var(--font-panel-header-size-33h9j8, 18px);
|
|
381
381
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
382
382
|
line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
|
|
@@ -387,25 +387,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
387
387
|
margin-block: 0;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
.
|
|
390
|
+
.awsui_content_1d237_1leny_390:not(#\9) {
|
|
391
391
|
color: var(--color-text-body-secondary-bcbgoi, #424650);
|
|
392
392
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
393
393
|
padding-inline-end: var(--space-panel-side-right-8wwirc, 24px);
|
|
394
394
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
395
395
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
396
396
|
}
|
|
397
|
-
.
|
|
398
|
-
.
|
|
399
|
-
.
|
|
400
|
-
.
|
|
401
|
-
.
|
|
402
|
-
.
|
|
397
|
+
.awsui_content_1d237_1leny_390 h2:not(#\9):first-child,
|
|
398
|
+
.awsui_content_1d237_1leny_390 h3:not(#\9):first-child,
|
|
399
|
+
.awsui_content_1d237_1leny_390 h4:not(#\9):first-child,
|
|
400
|
+
.awsui_content_1d237_1leny_390 h5:not(#\9):first-child,
|
|
401
|
+
.awsui_content_1d237_1leny_390 h6:not(#\9):first-child,
|
|
402
|
+
.awsui_content_1d237_1leny_390 p:not(#\9):first-child {
|
|
403
403
|
margin-block-start: 0;
|
|
404
404
|
}
|
|
405
|
-
.
|
|
405
|
+
.awsui_content_1d237_1leny_390 a:not(#\9) {
|
|
406
406
|
text-underline-offset: 0.25em;
|
|
407
407
|
text-decoration-thickness: 1px;
|
|
408
|
-
color: var(--awsui-style-color-default-
|
|
408
|
+
color: var(--awsui-style-color-default-b75yp7, var(--color-text-link-default-1dmm7z, #006ce0));
|
|
409
409
|
font-weight: inherit;
|
|
410
410
|
letter-spacing: normal;
|
|
411
411
|
text-decoration-line: underline;
|
|
@@ -416,31 +416,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
416
416
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
417
417
|
}
|
|
418
418
|
@media (prefers-reduced-motion: reduce) {
|
|
419
|
-
.
|
|
419
|
+
.awsui_content_1d237_1leny_390 a:not(#\9) {
|
|
420
420
|
animation: none;
|
|
421
421
|
transition: none;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
.awsui-motion-disabled .
|
|
424
|
+
.awsui-motion-disabled .awsui_content_1d237_1leny_390 a:not(#\9), .awsui-mode-entering .awsui_content_1d237_1leny_390 a:not(#\9) {
|
|
425
425
|
animation: none;
|
|
426
426
|
transition: none;
|
|
427
427
|
}
|
|
428
|
-
.
|
|
428
|
+
.awsui_content_1d237_1leny_390 a:not(#\9):hover {
|
|
429
429
|
cursor: pointer;
|
|
430
|
-
color: var(--awsui-style-color-hover-
|
|
430
|
+
color: var(--awsui-style-color-hover-b75yp7, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
431
431
|
}
|
|
432
|
-
.
|
|
432
|
+
.awsui_content_1d237_1leny_390 a:not(#\9):focus {
|
|
433
433
|
outline: none;
|
|
434
434
|
}
|
|
435
|
-
.
|
|
436
|
-
color: var(--awsui-style-color-active-
|
|
435
|
+
.awsui_content_1d237_1leny_390 a:not(#\9):active {
|
|
436
|
+
color: var(--awsui-style-color-active-b75yp7, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
437
437
|
}
|
|
438
|
-
.
|
|
438
|
+
.awsui_content_1d237_1leny_390 a:not(#\9):active, .awsui_content_1d237_1leny_390 a:not(#\9):focus, .awsui_content_1d237_1leny_390 a:not(#\9):hover {
|
|
439
439
|
text-decoration-line: underline;
|
|
440
440
|
text-decoration-color: currentColor;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
.
|
|
443
|
+
.awsui_footer_1d237_1leny_441:not(#\9) {
|
|
444
444
|
color: var(--color-text-body-secondary-bcbgoi, #424650);
|
|
445
445
|
padding-block: 0;
|
|
446
446
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
@@ -448,14 +448,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
448
448
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
449
449
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
450
450
|
}
|
|
451
|
-
.
|
|
451
|
+
.awsui_footer_1d237_1leny_441 ul:not(#\9) {
|
|
452
452
|
list-style: none;
|
|
453
453
|
padding-inline-start: 0;
|
|
454
454
|
}
|
|
455
|
-
.
|
|
455
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9) {
|
|
456
456
|
text-underline-offset: 0.25em;
|
|
457
457
|
text-decoration-thickness: 1px;
|
|
458
|
-
color: var(--awsui-style-color-default-
|
|
458
|
+
color: var(--awsui-style-color-default-b75yp7, var(--color-text-link-default-1dmm7z, #006ce0));
|
|
459
459
|
font-weight: inherit;
|
|
460
460
|
letter-spacing: normal;
|
|
461
461
|
text-decoration-line: none;
|
|
@@ -466,37 +466,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
466
466
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
467
467
|
}
|
|
468
468
|
@media (prefers-reduced-motion: reduce) {
|
|
469
|
-
.
|
|
469
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9) {
|
|
470
470
|
animation: none;
|
|
471
471
|
transition: none;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
.awsui-motion-disabled .
|
|
474
|
+
.awsui-motion-disabled .awsui_footer_1d237_1leny_441 a:not(#\9), .awsui-mode-entering .awsui_footer_1d237_1leny_441 a:not(#\9) {
|
|
475
475
|
animation: none;
|
|
476
476
|
transition: none;
|
|
477
477
|
}
|
|
478
|
-
.
|
|
478
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9):hover {
|
|
479
479
|
cursor: pointer;
|
|
480
|
-
color: var(--awsui-style-color-hover-
|
|
480
|
+
color: var(--awsui-style-color-hover-b75yp7, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
481
481
|
}
|
|
482
|
-
.
|
|
482
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9):focus {
|
|
483
483
|
outline: none;
|
|
484
484
|
}
|
|
485
|
-
.
|
|
486
|
-
color: var(--awsui-style-color-active-
|
|
485
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9):active {
|
|
486
|
+
color: var(--awsui-style-color-active-b75yp7, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
487
487
|
}
|
|
488
|
-
.
|
|
488
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9):active, .awsui_footer_1d237_1leny_441 a:not(#\9):focus, .awsui_footer_1d237_1leny_441 a:not(#\9):hover {
|
|
489
489
|
text-decoration-line: underline;
|
|
490
490
|
text-decoration-color: currentColor;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
.
|
|
494
|
-
.
|
|
493
|
+
.awsui_content_1d237_1leny_390:not(#\9),
|
|
494
|
+
.awsui_footer_1d237_1leny_441:not(#\9) {
|
|
495
495
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
496
496
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
497
497
|
}
|
|
498
|
-
.
|
|
499
|
-
.
|
|
498
|
+
.awsui_content_1d237_1leny_390 a:not(#\9):focus,
|
|
499
|
+
.awsui_footer_1d237_1leny_441 a:not(#\9):focus {
|
|
500
500
|
outline: thin dotted;
|
|
501
501
|
outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
|
|
502
502
|
outline-offset: 2px;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"help-panel": "awsui_help-
|
|
6
|
-
"loading": "
|
|
7
|
-
"header": "
|
|
8
|
-
"with-toolbar": "awsui_with-
|
|
9
|
-
"content": "
|
|
10
|
-
"footer": "
|
|
5
|
+
"help-panel": "awsui_help-panel_1d237_1leny_181",
|
|
6
|
+
"loading": "awsui_loading_1d237_1leny_348",
|
|
7
|
+
"header": "awsui_header_1d237_1leny_353",
|
|
8
|
+
"with-toolbar": "awsui_with-toolbar_1d237_1leny_371",
|
|
9
|
+
"content": "awsui_content_1d237_1leny_390",
|
|
10
|
+
"footer": "awsui_footer_1d237_1leny_441"
|
|
11
11
|
};
|
|
12
12
|
|
package/input/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,mFA8FV,CAAC;AAGF,eAAe,KAAK,CAAC"}
|
package/input/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { validateProps } from '@cloudscape-design/component-toolkit/internal';
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
const Input = React.forwardRef((props, ref) => {
|
|
12
|
-
validateProps('Input', props, ["nativeInputAttributes"], {}, 'console');
|
|
12
|
+
validateProps('Input', props, ["nativeInputAttributes","style"], {}, 'console');
|
|
13
13
|
return React.createElement(CoreComponent, {ref,...props});
|
|
14
14
|
});
|
|
15
15
|
|
package/input/interfaces.d.ts
CHANGED
|
@@ -150,6 +150,9 @@ export interface InputProps extends BaseComponentProps, BaseInputProps, InputKey
|
|
|
150
150
|
* including the date, month, week, time, datetime-local, number and range types.
|
|
151
151
|
*/
|
|
152
152
|
step?: InputProps.Step;
|
|
153
|
+
/**
|
|
154
|
+
* @awsuiSystem core
|
|
155
|
+
*/
|
|
153
156
|
}
|
|
154
157
|
export declare namespace InputProps {
|
|
155
158
|
type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';
|
|
@@ -167,6 +170,50 @@ export declare namespace InputProps {
|
|
|
167
170
|
*/
|
|
168
171
|
select(): void;
|
|
169
172
|
}
|
|
173
|
+
interface Style {
|
|
174
|
+
root?: {
|
|
175
|
+
backgroundColor?: {
|
|
176
|
+
default?: string;
|
|
177
|
+
disabled?: string;
|
|
178
|
+
focus?: string;
|
|
179
|
+
hover?: string;
|
|
180
|
+
readonly?: string;
|
|
181
|
+
};
|
|
182
|
+
borderColor?: {
|
|
183
|
+
default?: string;
|
|
184
|
+
disabled?: string;
|
|
185
|
+
focus?: string;
|
|
186
|
+
hover?: string;
|
|
187
|
+
readonly?: string;
|
|
188
|
+
};
|
|
189
|
+
borderRadius?: string;
|
|
190
|
+
borderWidth?: string;
|
|
191
|
+
boxShadow?: {
|
|
192
|
+
default?: string;
|
|
193
|
+
disabled?: string;
|
|
194
|
+
focus?: string;
|
|
195
|
+
hover?: string;
|
|
196
|
+
readonly?: string;
|
|
197
|
+
};
|
|
198
|
+
color?: {
|
|
199
|
+
default?: string;
|
|
200
|
+
disabled?: string;
|
|
201
|
+
focus?: string;
|
|
202
|
+
hover?: string;
|
|
203
|
+
readonly?: string;
|
|
204
|
+
};
|
|
205
|
+
fontSize?: string;
|
|
206
|
+
fontWeight?: string;
|
|
207
|
+
paddingBlock?: string;
|
|
208
|
+
paddingInline?: string;
|
|
209
|
+
};
|
|
210
|
+
placeholder?: {
|
|
211
|
+
color?: string;
|
|
212
|
+
fontSize?: string;
|
|
213
|
+
fontStyle?: string;
|
|
214
|
+
fontWeight?: string;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
170
217
|
}
|
|
171
218
|
export interface BaseChangeDetail {
|
|
172
219
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/input/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACtG;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAEzC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,UA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;CACf"}
|
package/input/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/input/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 { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface BaseInputProps {\n /**\n * Specifies the text entered into the form element.\n */\n value: string;\n\n /**\n * Specifies the name of the control used in HTML forms.\n */\n name?: string;\n\n /**\n * Specifies the placeholder text rendered when the value is an empty string.\n */\n placeholder?: string;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value but includes it in a form\n * submission. A read-only control can receive focus.\n *\n * Don't use read-only inputs outside a form.\n */\n readOnly?: boolean;\n\n /**\n * Indicates whether the control should be focused as\n * soon as the page loads, which enables the user to\n * start typing without having to manually focus the control. Don't\n * use this option on pages where the control may be\n * scrolled out of the viewport.\n */\n autoFocus?: boolean;\n\n /**\n * Adds an `aria-label` to the native control.\n *\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n\n /**\n * Specifies whether to add `aria-required` to the native control.\n */\n ariaRequired?: boolean;\n\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * Called when input focus is moved to the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Called whenever a user changes the input value (by typing or pasting).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<InputProps.ChangeDetail>;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n}\n\nexport interface InputAutoCorrect {\n /**\n * Specifies whether to disable browser autocorrect and related features.\n * If you set this to `true`, it disables any native browser capabilities\n * that automatically correct user input, such as `autocorrect` and\n * `autocapitalize`. If you don't set it, the behavior follows the default behavior\n * of the user's browser.\n */\n disableBrowserAutocorrect?: boolean;\n}\n\nexport interface InputAutoComplete {\n /**\n * Specifies whether to enable a browser's autocomplete functionality for this input.\n * In some cases it might be appropriate to disable autocomplete (for example, for security-sensitive fields).\n * To use it correctly, set the `name` property.\n *\n * You can either provide a boolean value to set the property to \"on\" or \"off\", or specify a string value\n * for the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute.\n */\n autoComplete?: boolean | string;\n}\n\nexport interface InputSpellcheck {\n /**\n * Specifies the value of the `spellcheck` attribute on the native control.\n * This value controls the native browser capability to check for spelling/grammar errors.\n * If not set, the browser default behavior is to perform spellchecking.\n * For more details, check the [spellcheck MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).\n *\n * Enhanced spellchecking features of your browser and/or operating system may send input values to external parties.\n * Make sure it’s deactivated for fields with sensitive information to prevent\n * inadvertently sending data (such as user passwords) to third parties.\n */\n spellcheck?: boolean;\n}\n\nexport interface InputKeyEvents {\n /**\n * Called when the underlying native textarea emits a `keydown` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyDown?: CancelableEventHandler<InputProps.KeyDetail>;\n\n /**\n * Called when the underlying native textarea emits a `keyup` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyUp?: CancelableEventHandler<InputProps.KeyDetail>;\n}\n\nexport interface InputClearLabel {\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n clearAriaLabel?: string;\n}\n\nexport interface InputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputKeyEvents,\n InputAutoCorrect,\n InputAutoComplete,\n InputSpellcheck,\n InputClearLabel,\n FormFieldValidationControlProps {\n /**\n * Specifies the type of control to render.\n * Inputs with a `number` type use the native element behavior, which might\n * be slightly different across browsers.\n */\n type?: InputProps.Type;\n\n /**\n * Adds a hint to the browser about the type of data a user may enter into this field.\n * Some devices may render a different virtual keyboard depending on this value.\n * This value may not be supported by all browsers or devices.\n */\n inputMode?: InputProps.InputMode;\n\n /**\n * The step attribute is a number that specifies the granularity that the value\n * must adhere to or the keyword \"any\". It is valid for the numeric input types,\n * including the date, month, week, time, datetime-local, number and range types.\n */\n step?: InputProps.Step;\n}\n\nexport namespace InputProps {\n export type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';\n export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n export type Step = number | 'any';\n\n export type ChangeDetail = BaseChangeDetail;\n export type KeyDetail = BaseKeyDetail;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n}\nexport interface BaseChangeDetail {\n value: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/input/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 { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface BaseInputProps {\n /**\n * Specifies the text entered into the form element.\n */\n value: string;\n\n /**\n * Specifies the name of the control used in HTML forms.\n */\n name?: string;\n\n /**\n * Specifies the placeholder text rendered when the value is an empty string.\n */\n placeholder?: string;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value but includes it in a form\n * submission. A read-only control can receive focus.\n *\n * Don't use read-only inputs outside a form.\n */\n readOnly?: boolean;\n\n /**\n * Indicates whether the control should be focused as\n * soon as the page loads, which enables the user to\n * start typing without having to manually focus the control. Don't\n * use this option on pages where the control may be\n * scrolled out of the viewport.\n */\n autoFocus?: boolean;\n\n /**\n * Adds an `aria-label` to the native control.\n *\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n\n /**\n * Specifies whether to add `aria-required` to the native control.\n */\n ariaRequired?: boolean;\n\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * Called when input focus is moved to the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Called whenever a user changes the input value (by typing or pasting).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<InputProps.ChangeDetail>;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n}\n\nexport interface InputAutoCorrect {\n /**\n * Specifies whether to disable browser autocorrect and related features.\n * If you set this to `true`, it disables any native browser capabilities\n * that automatically correct user input, such as `autocorrect` and\n * `autocapitalize`. If you don't set it, the behavior follows the default behavior\n * of the user's browser.\n */\n disableBrowserAutocorrect?: boolean;\n}\n\nexport interface InputAutoComplete {\n /**\n * Specifies whether to enable a browser's autocomplete functionality for this input.\n * In some cases it might be appropriate to disable autocomplete (for example, for security-sensitive fields).\n * To use it correctly, set the `name` property.\n *\n * You can either provide a boolean value to set the property to \"on\" or \"off\", or specify a string value\n * for the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute.\n */\n autoComplete?: boolean | string;\n}\n\nexport interface InputSpellcheck {\n /**\n * Specifies the value of the `spellcheck` attribute on the native control.\n * This value controls the native browser capability to check for spelling/grammar errors.\n * If not set, the browser default behavior is to perform spellchecking.\n * For more details, check the [spellcheck MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).\n *\n * Enhanced spellchecking features of your browser and/or operating system may send input values to external parties.\n * Make sure it’s deactivated for fields with sensitive information to prevent\n * inadvertently sending data (such as user passwords) to third parties.\n */\n spellcheck?: boolean;\n}\n\nexport interface InputKeyEvents {\n /**\n * Called when the underlying native textarea emits a `keydown` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyDown?: CancelableEventHandler<InputProps.KeyDetail>;\n\n /**\n * Called when the underlying native textarea emits a `keyup` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyUp?: CancelableEventHandler<InputProps.KeyDetail>;\n}\n\nexport interface InputClearLabel {\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n clearAriaLabel?: string;\n}\n\nexport interface InputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputKeyEvents,\n InputAutoCorrect,\n InputAutoComplete,\n InputSpellcheck,\n InputClearLabel,\n FormFieldValidationControlProps {\n /**\n * Specifies the type of control to render.\n * Inputs with a `number` type use the native element behavior, which might\n * be slightly different across browsers.\n */\n type?: InputProps.Type;\n\n /**\n * Adds a hint to the browser about the type of data a user may enter into this field.\n * Some devices may render a different virtual keyboard depending on this value.\n * This value may not be supported by all browsers or devices.\n */\n inputMode?: InputProps.InputMode;\n\n /**\n * The step attribute is a number that specifies the granularity that the value\n * must adhere to or the keyword \"any\". It is valid for the numeric input types,\n * including the date, month, week, time, datetime-local, number and range types.\n */\n step?: InputProps.Step;\n\n /**\n * @awsuiSystem core\n */\n style?: InputProps.Style;\n}\n\nexport namespace InputProps {\n export type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';\n export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n export type Step = number | 'any';\n\n export type ChangeDetail = BaseChangeDetail;\n export type KeyDetail = BaseKeyDetail;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n\n export interface Style {\n root?: {\n backgroundColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n color?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n fontSize?: string;\n fontWeight?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n placeholder?: {\n color?: string;\n fontSize?: string;\n fontStyle?: string;\n fontWeight?: string;\n };\n }\n}\n\nexport interface BaseChangeDetail {\n value: string;\n}\n"]}
|