@cloudscape-design/components 3.0.1155 → 3.0.1157
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/index.js +1 -1
- package/alert/interfaces.d.ts +1 -2
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +21 -21
- package/anchor-navigation/styles.selectors.js +8 -8
- package/app-layout/runtime-drawer/index.d.ts.map +1 -1
- package/app-layout/runtime-drawer/index.js +20 -18
- package/app-layout/runtime-drawer/index.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +164 -163
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +86 -83
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +30 -30
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js.map +1 -1
- 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/autosuggest/index.js +28 -11
- package/autosuggest/interfaces.d.ts +2 -1
- package/autosuggest/interfaces.js.map +1 -1
- package/badge/index.d.ts +2 -0
- package/badge/index.js +14 -13
- package/badge/interfaces.d.ts +3 -2
- package/box/index.js +18 -13
- package/box/interfaces.d.ts +2 -1
- package/box/styles.css.js +192 -192
- package/box/styles.scoped.css +241 -241
- package/box/styles.selectors.js +192 -192
- 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/index.js +12 -11
- package/button/interfaces.d.ts +4 -2
- package/button/styles.css.js +22 -22
- package/button/styles.scoped.css +78 -78
- package/button/styles.selectors.js +22 -22
- package/button-dropdown/index.js +27 -11
- package/button-dropdown/interfaces.d.ts +6 -2
- package/button-dropdown/item-element/styles.css.js +20 -20
- package/button-dropdown/item-element/styles.scoped.css +35 -35
- package/button-dropdown/item-element/styles.selectors.js +20 -20
- package/button-group/index.js +42 -11
- package/button-group/interfaces.d.ts +10 -0
- package/button-group/interfaces.d.ts.map +1 -1
- package/button-group/interfaces.js.map +1 -1
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +51 -51
- package/cards/styles.selectors.js +39 -39
- package/checkbox/index.js +9 -11
- package/checkbox/interfaces.d.ts +3 -2
- package/code-editor/styles.css.js +33 -33
- package/code-editor/styles.scoped.css +139 -139
- package/code-editor/styles.selectors.js +33 -33
- package/container/index.js +29 -13
- package/container/interfaces.d.ts +2 -1
- package/date-input/index.js +8 -10
- package/drawer/implementation.d.ts +1 -0
- package/drawer/implementation.d.ts.map +1 -1
- package/drawer/implementation.js +13 -4
- package/drawer/implementation.js.map +1 -1
- package/drawer/interfaces.d.ts +7 -0
- package/drawer/interfaces.d.ts.map +1 -1
- package/drawer/interfaces.js.map +1 -1
- package/drawer/styles.css.js +12 -8
- package/drawer/styles.scoped.css +35 -13
- package/drawer/styles.selectors.js +12 -8
- package/drawer/use-sticky-footer.d.ts +11 -0
- package/drawer/use-sticky-footer.d.ts.map +1 -0
- package/drawer/use-sticky-footer.js +35 -0
- package/drawer/use-sticky-footer.js.map +1 -0
- package/flashbar/index.js +10 -13
- package/flashbar/interfaces.d.ts +1 -0
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +75 -75
- package/help-panel/styles.selectors.js +6 -6
- package/icon/index.js +8 -13
- package/icon/interfaces.d.ts +2 -1
- package/icon/styles.css.js +39 -39
- package/icon/styles.scoped.css +87 -87
- package/icon/styles.selectors.js +39 -39
- package/icon-provider/index.js +12 -2
- package/index.d.ts +4 -1
- package/index.js +4 -0
- package/input/index.js +53 -12
- package/input/interfaces.d.ts +3 -1
- package/internal/base-component/styles.scoped.css +62 -50
- package/internal/components/button-trigger/styles.css.js +13 -13
- package/internal/components/button-trigger/styles.scoped.css +29 -29
- package/internal/components/button-trigger/styles.selectors.js +13 -13
- package/internal/components/cartesian-chart/styles.css.js +28 -28
- package/internal/components/cartesian-chart/styles.scoped.css +33 -33
- package/internal/components/cartesian-chart/styles.selectors.js +28 -28
- package/internal/components/radio-button/interfaces.d.ts +3 -3
- 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 +3 -3
- package/internal/environment.json +3 -3
- package/internal/generated/styles/tokens.js +8 -8
- package/internal/generated/theming/index.cjs +24 -24
- package/internal/generated/theming/index.js +24 -24
- package/internal/hooks/use-portal-mode-classes/index.d.ts +3 -1
- package/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
- package/internal/hooks/use-portal-mode-classes/index.js +2 -2
- package/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/controllers/drawers.d.ts +2 -2
- package/internal/plugins/controllers/drawers.d.ts.map +1 -1
- package/internal/plugins/controllers/drawers.js.map +1 -1
- package/internal/plugins/widget/interfaces.d.ts +2 -2
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/key-value-pairs/styles.css.js +8 -8
- package/key-value-pairs/styles.scoped.css +10 -10
- package/key-value-pairs/styles.selectors.js +8 -8
- package/link/index.js +25 -11
- package/link/interfaces.d.ts +3 -2
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +91 -91
- package/link/styles.selectors.js +20 -20
- package/navigable-group/index.js +19 -4
- package/package.json +4 -1
- package/popover/internal.js +1 -1
- package/popover/internal.js.map +1 -1
- package/popover/styles.css.js +57 -57
- package/popover/styles.scoped.css +87 -87
- package/popover/styles.selectors.js +57 -57
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.js +52 -14
- package/progress-bar/interfaces.d.ts +1 -0
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +31 -31
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/index.js +19 -11
- package/prompt-input/interfaces.d.ts +4 -3
- package/radio-button/index.js +19 -4
- package/radio-group/index.js +20 -11
- package/radio-group/interfaces.d.ts +1 -1
- package/segmented-control/index.js +14 -13
- package/segmented-control/interfaces.d.ts +1 -0
- package/select/interfaces.d.ts +1 -1
- package/select/interfaces.js.map +1 -1
- package/side-navigation/styles.css.js +30 -30
- package/side-navigation/styles.scoped.css +47 -47
- package/side-navigation/styles.selectors.js +30 -30
- package/space-between/index.js +10 -13
- package/space-between/interfaces.d.ts +2 -1
- package/spinner/index.js +10 -13
- package/spinner/interfaces.d.ts +2 -1
- package/split-panel/icons/styles.css.js +22 -22
- package/split-panel/icons/styles.scoped.css +25 -25
- package/split-panel/icons/styles.selectors.js +22 -22
- package/status-indicator/index.js +10 -13
- package/status-indicator/interfaces.d.ts +2 -1
- package/steps/index.js +11 -11
- package/steps/interfaces.d.ts +6 -2
- package/table/header-cell/index.d.ts +1 -1
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +1 -1
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/th-element.d.ts +1 -1
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js.map +1 -1
- package/table/resizer/index.d.ts +3 -1
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +8 -5
- package/table/resizer/index.js.map +1 -1
- package/table/resizer/styles.css.js +13 -12
- package/table/resizer/styles.scoped.css +22 -22
- package/table/resizer/styles.selectors.js +13 -12
- package/table/thead.d.ts +1 -1
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js.map +1 -1
- 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/test-utils/dom/drawer/index.d.ts +1 -0
- package/test-utils/dom/drawer/index.js +3 -0
- package/test-utils/dom/drawer/index.js.map +1 -1
- package/test-utils/selectors/drawer/index.d.ts +1 -0
- package/test-utils/selectors/drawer/index.js +3 -0
- package/test-utils/selectors/drawer/index.js.map +1 -1
- 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/text-filter/index.js +17 -10
- package/text-filter/interfaces.d.ts +1 -0
- package/textarea/index.js +65 -12
- package/textarea/interfaces.d.ts +3 -2
- package/time-input/index.js +15 -11
- package/toggle/index.js +6 -10
- package/toggle/interfaces.d.ts +3 -2
- package/toggle-button/index.js +14 -11
- package/token/styles.css.js +14 -14
- package/token/styles.scoped.css +29 -29
- package/token/styles.selectors.js +14 -14
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/wizard/index.js +35 -13
- package/wizard/interfaces.d.ts +1 -1
- package/autosuggest/internal-do-not-use-core.js +0 -35
- package/badge/internal-do-not-use-core.js +0 -19
- package/box/internal-do-not-use-core.js +0 -23
- package/button/internal-do-not-use-core.js +0 -19
- package/button-dropdown/internal-do-not-use-core.js +0 -34
- package/button-group/internal-do-not-use-core.js +0 -49
- package/checkbox/internal-do-not-use-core.js +0 -16
- package/container/internal-do-not-use-core.js +0 -34
- package/date-input/internal-do-not-use-core.js +0 -16
- package/flashbar/internal-do-not-use-core.js +0 -15
- package/icon/internal-do-not-use-core.js +0 -13
- package/input/internal-do-not-use-core.js +0 -59
- package/link/internal-do-not-use-core.js +0 -32
- package/progress-bar/internal-do-not-use-core.js +0 -56
- package/prompt-input/internal-do-not-use-core.js +0 -26
- package/radio-group/internal-do-not-use-core.js +0 -27
- package/segmented-control/internal-do-not-use-core.js +0 -19
- package/space-between/internal-do-not-use-core.js +0 -15
- package/spinner/internal-do-not-use-core.js +0 -15
- package/status-indicator/internal-do-not-use-core.js +0 -15
- package/steps/internal-do-not-use-core.js +0 -18
- package/text-filter/internal-do-not-use-core.js +0 -25
- package/textarea/internal-do-not-use-core.js +0 -71
- package/time-input/internal-do-not-use-core.js +0 -22
- package/toggle/internal-do-not-use-core.js +0 -14
- package/toggle-button/internal-do-not-use-core.js +0 -21
- package/wizard/internal-do-not-use-core.js +0 -40
- /package/autosuggest/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/badge/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/box/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button-dropdown/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button-group/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/checkbox/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/container/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/date-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/flashbar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/icon/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/link/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/progress-bar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/prompt-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/radio-group/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/segmented-control/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/space-between/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/spinner/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/status-indicator/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/steps/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/text-filter/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/textarea/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/time-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/toggle/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/toggle-button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/wizard/{internal-do-not-use-core.js.map → index.js.map} +0 -0
package/icon/styles.scoped.css
CHANGED
|
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
186
186
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
187
|
SPDX-License-Identifier: Apache-2.0
|
|
188
188
|
*/
|
|
189
|
-
.
|
|
189
|
+
.awsui_icon_h11ix_y1ugs_189:not(#\9) {
|
|
190
190
|
position: relative;
|
|
191
191
|
display: inline-block;
|
|
192
192
|
vertical-align: top;
|
|
@@ -194,195 +194,195 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
194
|
/* stylelint-disable selector-max-type, selector-max-universal */
|
|
195
195
|
/* stylelint-enable selector-max-type, selector-max-universal */
|
|
196
196
|
}
|
|
197
|
-
.awsui_icon-flex-
|
|
197
|
+
.awsui_icon-flex-height_h11ix_y1ugs_197:not(#\9) {
|
|
198
198
|
display: inline-flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.awsui_icon_h11ix_y1ugs_189 > svg:not(#\9) {
|
|
202
202
|
pointer-events: none;
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_icon_h11ix_y1ugs_189 > svg:not(#\9) {
|
|
205
205
|
fill: none;
|
|
206
206
|
}
|
|
207
|
-
.
|
|
207
|
+
.awsui_icon_h11ix_y1ugs_189 > svg *:not(#\9) {
|
|
208
208
|
stroke: currentColor;
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_icon_h11ix_y1ugs_189 > svg .stroke-linejoin-round:not(#\9) {
|
|
211
211
|
stroke-linejoin: round;
|
|
212
212
|
}
|
|
213
|
-
.
|
|
213
|
+
.awsui_icon_h11ix_y1ugs_189 > svg .stroke-linecap-square:not(#\9) {
|
|
214
214
|
stroke-linecap: square;
|
|
215
215
|
}
|
|
216
|
-
.
|
|
216
|
+
.awsui_icon_h11ix_y1ugs_189 > svg .stroke-linecap-round:not(#\9) {
|
|
217
217
|
stroke-linecap: round;
|
|
218
218
|
}
|
|
219
|
-
.
|
|
219
|
+
.awsui_icon_h11ix_y1ugs_189 > svg .filled:not(#\9) {
|
|
220
220
|
fill: currentColor;
|
|
221
221
|
}
|
|
222
|
-
.
|
|
222
|
+
.awsui_icon_h11ix_y1ugs_189 > svg .no-stroke:not(#\9) {
|
|
223
223
|
stroke: none;
|
|
224
224
|
}
|
|
225
|
-
.
|
|
225
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small_h11ix_y1ugs_225:not(#\9) {
|
|
226
226
|
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
227
227
|
box-sizing: border-box;
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small-mapped-height_h11ix_y1ugs_229:not(#\9) {
|
|
230
230
|
block-size: var(--line-height-body-s-nu5hx1, 16px);
|
|
231
231
|
padding-block: calc((var(--line-height-body-s-nu5hx1, 16px) - var(--size-icon-normal-levt08, 16px)) / 2);
|
|
232
232
|
padding-inline: 0;
|
|
233
233
|
}
|
|
234
|
-
.
|
|
235
|
-
.
|
|
234
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small_h11ix_y1ugs_225 > svg:not(#\9),
|
|
235
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small_h11ix_y1ugs_225 > img:not(#\9) {
|
|
236
236
|
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
237
237
|
block-size: var(--size-icon-normal-levt08, 16px);
|
|
238
238
|
vertical-align: top;
|
|
239
239
|
}
|
|
240
|
-
.
|
|
241
|
-
.
|
|
240
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small_h11ix_y1ugs_225 > svg:not(#\9),
|
|
241
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-small_h11ix_y1ugs_225 > svg *:not(#\9) {
|
|
242
242
|
stroke-width: calc(var(--border-width-icon-small-z55i5t, 2px) / 1);
|
|
243
243
|
}
|
|
244
|
-
.
|
|
244
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal_h11ix_y1ugs_244:not(#\9) {
|
|
245
245
|
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
246
246
|
box-sizing: border-box;
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal-mapped-height_h11ix_y1ugs_248:not(#\9) {
|
|
249
249
|
block-size: var(--line-height-body-m-2mh3ke, 20px);
|
|
250
250
|
padding-block: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-icon-normal-levt08, 16px)) / 2);
|
|
251
251
|
padding-inline: 0;
|
|
252
252
|
}
|
|
253
|
-
.
|
|
254
|
-
.
|
|
253
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal_h11ix_y1ugs_244 > svg:not(#\9),
|
|
254
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal_h11ix_y1ugs_244 > img:not(#\9) {
|
|
255
255
|
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
256
256
|
block-size: var(--size-icon-normal-levt08, 16px);
|
|
257
257
|
vertical-align: top;
|
|
258
258
|
}
|
|
259
|
-
.
|
|
260
|
-
.
|
|
259
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal_h11ix_y1ugs_244 > svg:not(#\9),
|
|
260
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-normal_h11ix_y1ugs_244 > svg *:not(#\9) {
|
|
261
261
|
stroke-width: calc(var(--border-width-icon-normal-9h7vj7, 2px) / 1);
|
|
262
262
|
}
|
|
263
|
-
.
|
|
263
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium_h11ix_y1ugs_263:not(#\9) {
|
|
264
264
|
inline-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
265
265
|
box-sizing: border-box;
|
|
266
266
|
}
|
|
267
|
-
.
|
|
267
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium-mapped-height_h11ix_y1ugs_267:not(#\9) {
|
|
268
268
|
block-size: var(--line-height-heading-l-mg5bx6, 24px);
|
|
269
269
|
padding-block: calc((var(--line-height-heading-l-mg5bx6, 24px) - var(--size-icon-medium-uv8xcz, 20px)) / 2);
|
|
270
270
|
padding-inline: 0;
|
|
271
271
|
}
|
|
272
|
-
.
|
|
273
|
-
.
|
|
272
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium_h11ix_y1ugs_263 > svg:not(#\9),
|
|
273
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium_h11ix_y1ugs_263 > img:not(#\9) {
|
|
274
274
|
inline-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
275
275
|
block-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
276
276
|
vertical-align: top;
|
|
277
277
|
}
|
|
278
|
-
.
|
|
279
|
-
.
|
|
278
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium_h11ix_y1ugs_263 > svg:not(#\9),
|
|
279
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-medium_h11ix_y1ugs_263 > svg *:not(#\9) {
|
|
280
280
|
stroke-width: calc(var(--border-width-icon-medium-b7icqv, 2px) / 1.25);
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big_h11ix_y1ugs_282:not(#\9) {
|
|
283
283
|
inline-size: var(--size-icon-big-7pq9l3, 32px);
|
|
284
284
|
box-sizing: border-box;
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big-mapped-height_h11ix_y1ugs_286:not(#\9) {
|
|
287
287
|
block-size: var(--line-height-heading-xl-hko6p0, 30px);
|
|
288
288
|
padding-block: calc((var(--line-height-heading-xl-hko6p0, 30px) - var(--size-icon-big-7pq9l3, 32px)) / 2);
|
|
289
289
|
padding-inline: 0;
|
|
290
290
|
}
|
|
291
|
-
.
|
|
292
|
-
.
|
|
291
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big_h11ix_y1ugs_282 > svg:not(#\9),
|
|
292
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big_h11ix_y1ugs_282 > img:not(#\9) {
|
|
293
293
|
inline-size: var(--size-icon-big-7pq9l3, 32px);
|
|
294
294
|
block-size: var(--size-icon-big-7pq9l3, 32px);
|
|
295
295
|
vertical-align: top;
|
|
296
296
|
}
|
|
297
|
-
.
|
|
298
|
-
.
|
|
297
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big_h11ix_y1ugs_282 > svg:not(#\9),
|
|
298
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-big_h11ix_y1ugs_282 > svg *:not(#\9) {
|
|
299
299
|
stroke-width: calc(var(--border-width-icon-big-ymgy42, 3px) / 2);
|
|
300
300
|
}
|
|
301
|
-
.
|
|
301
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large_h11ix_y1ugs_301:not(#\9) {
|
|
302
302
|
inline-size: var(--size-icon-large-mb6y6y, 48px);
|
|
303
303
|
box-sizing: border-box;
|
|
304
304
|
}
|
|
305
|
-
.
|
|
305
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large-mapped-height_h11ix_y1ugs_305:not(#\9) {
|
|
306
306
|
block-size: var(--line-height-display-l-vwanzp, 48px);
|
|
307
307
|
padding-block: calc((var(--line-height-display-l-vwanzp, 48px) - var(--size-icon-large-mb6y6y, 48px)) / 2);
|
|
308
308
|
padding-inline: 0;
|
|
309
309
|
}
|
|
310
|
-
.
|
|
311
|
-
.
|
|
310
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large_h11ix_y1ugs_301 > svg:not(#\9),
|
|
311
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large_h11ix_y1ugs_301 > img:not(#\9) {
|
|
312
312
|
inline-size: var(--size-icon-large-mb6y6y, 48px);
|
|
313
313
|
block-size: var(--size-icon-large-mb6y6y, 48px);
|
|
314
314
|
vertical-align: top;
|
|
315
315
|
}
|
|
316
|
-
.
|
|
317
|
-
.
|
|
316
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large_h11ix_y1ugs_301 > svg:not(#\9),
|
|
317
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_size-large_h11ix_y1ugs_301 > svg *:not(#\9) {
|
|
318
318
|
stroke-width: calc(var(--border-width-icon-large-u645rg, 4px) / 3);
|
|
319
319
|
}
|
|
320
|
-
.
|
|
320
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-normal_h11ix_y1ugs_320:not(#\9) {
|
|
321
321
|
color: currentColor;
|
|
322
322
|
}
|
|
323
|
-
.
|
|
323
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-disabled_h11ix_y1ugs_323:not(#\9) {
|
|
324
324
|
color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
|
|
325
325
|
}
|
|
326
|
-
.
|
|
326
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-inverted_h11ix_y1ugs_326:not(#\9) {
|
|
327
327
|
color: var(--color-text-inverted-4v4dmq, #ffffff);
|
|
328
328
|
}
|
|
329
|
-
.
|
|
329
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-subtle_h11ix_y1ugs_329:not(#\9) {
|
|
330
330
|
color: var(--color-text-icon-subtle-3sgxlr, #656871);
|
|
331
331
|
}
|
|
332
|
-
.
|
|
332
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-warning_h11ix_y1ugs_332:not(#\9) {
|
|
333
333
|
color: var(--color-text-status-warning-6meo06, #855900);
|
|
334
334
|
}
|
|
335
|
-
.
|
|
335
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-error_h11ix_y1ugs_335:not(#\9) {
|
|
336
336
|
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
337
337
|
}
|
|
338
|
-
.
|
|
338
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-success_h11ix_y1ugs_338:not(#\9) {
|
|
339
339
|
color: var(--color-text-status-success-ybmii8, #00802f);
|
|
340
340
|
}
|
|
341
|
-
.
|
|
342
|
-
color: var(--color-text-link-default-
|
|
343
|
-
}
|
|
344
|
-
.
|
|
345
|
-
.awsui_name-angle-
|
|
346
|
-
.awsui_name-angle-right-
|
|
347
|
-
.awsui_name-angle-
|
|
348
|
-
.awsui_name-arrow-
|
|
349
|
-
.awsui_name-arrow-
|
|
350
|
-
.awsui_name-caret-left-
|
|
351
|
-
.awsui_name-caret-right-
|
|
352
|
-
.awsui_name-audio-
|
|
353
|
-
.awsui_name-audio-
|
|
354
|
-
.awsui_name-audio-
|
|
355
|
-
.awsui_name-
|
|
356
|
-
.awsui_name-
|
|
357
|
-
.awsui_name-resize-
|
|
358
|
-
.awsui_name-
|
|
359
|
-
.awsui_name-
|
|
360
|
-
.awsui_name-
|
|
361
|
-
.awsui_name-view-
|
|
341
|
+
.awsui_icon_h11ix_y1ugs_189.awsui_variant-link_h11ix_y1ugs_341:not(#\9) {
|
|
342
|
+
color: var(--color-text-link-default-hude44, #006ce0);
|
|
343
|
+
}
|
|
344
|
+
.awsui_icon_h11ix_y1ugs_189:not(#\9):is(.awsui_name-angle-left-double_h11ix_y1ugs_344,
|
|
345
|
+
.awsui_name-angle-left_h11ix_y1ugs_344,
|
|
346
|
+
.awsui_name-angle-right-double_h11ix_y1ugs_346,
|
|
347
|
+
.awsui_name-angle-right_h11ix_y1ugs_346,
|
|
348
|
+
.awsui_name-arrow-left_h11ix_y1ugs_348,
|
|
349
|
+
.awsui_name-arrow-right_h11ix_y1ugs_349,
|
|
350
|
+
.awsui_name-caret-left-filled_h11ix_y1ugs_350,
|
|
351
|
+
.awsui_name-caret-right-filled_h11ix_y1ugs_351,
|
|
352
|
+
.awsui_name-audio-full_h11ix_y1ugs_352,
|
|
353
|
+
.awsui_name-audio-half_h11ix_y1ugs_353,
|
|
354
|
+
.awsui_name-audio-off_h11ix_y1ugs_354,
|
|
355
|
+
.awsui_name-external_h11ix_y1ugs_355,
|
|
356
|
+
.awsui_name-redo_h11ix_y1ugs_356,
|
|
357
|
+
.awsui_name-resize-area_h11ix_y1ugs_357,
|
|
358
|
+
.awsui_name-send_h11ix_y1ugs_358,
|
|
359
|
+
.awsui_name-shrink_h11ix_y1ugs_359,
|
|
360
|
+
.awsui_name-undo_h11ix_y1ugs_360,
|
|
361
|
+
.awsui_name-view-vertical_h11ix_y1ugs_361) {
|
|
362
362
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
363
363
|
}
|
|
364
|
-
.
|
|
365
|
-
.awsui_name-angle-
|
|
366
|
-
.awsui_name-angle-right-
|
|
367
|
-
.awsui_name-angle-
|
|
368
|
-
.awsui_name-arrow-
|
|
369
|
-
.awsui_name-arrow-
|
|
370
|
-
.awsui_name-caret-left-
|
|
371
|
-
.awsui_name-caret-right-
|
|
372
|
-
.awsui_name-audio-
|
|
373
|
-
.awsui_name-audio-
|
|
374
|
-
.awsui_name-audio-
|
|
375
|
-
.awsui_name-
|
|
376
|
-
.awsui_name-
|
|
377
|
-
.awsui_name-resize-
|
|
378
|
-
.awsui_name-
|
|
379
|
-
.awsui_name-
|
|
380
|
-
.awsui_name-
|
|
381
|
-
.awsui_name-view-
|
|
364
|
+
.awsui_icon_h11ix_y1ugs_189:not(#\9):is(.awsui_name-angle-left-double_h11ix_y1ugs_344,
|
|
365
|
+
.awsui_name-angle-left_h11ix_y1ugs_344,
|
|
366
|
+
.awsui_name-angle-right-double_h11ix_y1ugs_346,
|
|
367
|
+
.awsui_name-angle-right_h11ix_y1ugs_346,
|
|
368
|
+
.awsui_name-arrow-left_h11ix_y1ugs_348,
|
|
369
|
+
.awsui_name-arrow-right_h11ix_y1ugs_349,
|
|
370
|
+
.awsui_name-caret-left-filled_h11ix_y1ugs_350,
|
|
371
|
+
.awsui_name-caret-right-filled_h11ix_y1ugs_351,
|
|
372
|
+
.awsui_name-audio-full_h11ix_y1ugs_352,
|
|
373
|
+
.awsui_name-audio-half_h11ix_y1ugs_353,
|
|
374
|
+
.awsui_name-audio-off_h11ix_y1ugs_354,
|
|
375
|
+
.awsui_name-external_h11ix_y1ugs_355,
|
|
376
|
+
.awsui_name-redo_h11ix_y1ugs_356,
|
|
377
|
+
.awsui_name-resize-area_h11ix_y1ugs_357,
|
|
378
|
+
.awsui_name-send_h11ix_y1ugs_358,
|
|
379
|
+
.awsui_name-shrink_h11ix_y1ugs_359,
|
|
380
|
+
.awsui_name-undo_h11ix_y1ugs_360,
|
|
381
|
+
.awsui_name-view-vertical_h11ix_y1ugs_361):dir(rtl) {
|
|
382
382
|
transform: scaleX(-1);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.
|
|
385
|
+
.awsui_badge_h11ix_y1ugs_385:not(#\9)::after {
|
|
386
386
|
content: "";
|
|
387
387
|
position: absolute;
|
|
388
388
|
inline-size: 6px;
|
package/icon/styles.selectors.js
CHANGED
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"icon": "
|
|
6
|
-
"icon-flex-height": "awsui_icon-flex-
|
|
7
|
-
"size-small": "awsui_size-
|
|
8
|
-
"size-small-mapped-height": "awsui_size-small-mapped-
|
|
9
|
-
"size-normal": "awsui_size-
|
|
10
|
-
"size-normal-mapped-height": "awsui_size-normal-mapped-
|
|
11
|
-
"size-medium": "awsui_size-
|
|
12
|
-
"size-medium-mapped-height": "awsui_size-medium-mapped-
|
|
13
|
-
"size-big": "awsui_size-
|
|
14
|
-
"size-big-mapped-height": "awsui_size-big-mapped-
|
|
15
|
-
"size-large": "awsui_size-
|
|
16
|
-
"size-large-mapped-height": "awsui_size-large-mapped-
|
|
17
|
-
"variant-normal": "awsui_variant-
|
|
18
|
-
"variant-disabled": "awsui_variant-
|
|
19
|
-
"variant-inverted": "awsui_variant-
|
|
20
|
-
"variant-subtle": "awsui_variant-
|
|
21
|
-
"variant-warning": "awsui_variant-
|
|
22
|
-
"variant-error": "awsui_variant-
|
|
23
|
-
"variant-success": "awsui_variant-
|
|
24
|
-
"variant-link": "awsui_variant-
|
|
25
|
-
"name-angle-left-double": "awsui_name-angle-left-
|
|
26
|
-
"name-angle-left": "awsui_name-angle-
|
|
27
|
-
"name-angle-right-double": "awsui_name-angle-right-
|
|
28
|
-
"name-angle-right": "awsui_name-angle-
|
|
29
|
-
"name-arrow-left": "awsui_name-arrow-
|
|
30
|
-
"name-arrow-right": "awsui_name-arrow-
|
|
31
|
-
"name-caret-left-filled": "awsui_name-caret-left-
|
|
32
|
-
"name-caret-right-filled": "awsui_name-caret-right-
|
|
33
|
-
"name-audio-full": "awsui_name-audio-
|
|
34
|
-
"name-audio-half": "awsui_name-audio-
|
|
35
|
-
"name-audio-off": "awsui_name-audio-
|
|
36
|
-
"name-external": "awsui_name-
|
|
37
|
-
"name-redo": "awsui_name-
|
|
38
|
-
"name-resize-area": "awsui_name-resize-
|
|
39
|
-
"name-send": "awsui_name-
|
|
40
|
-
"name-shrink": "awsui_name-
|
|
41
|
-
"name-undo": "awsui_name-
|
|
42
|
-
"name-view-vertical": "awsui_name-view-
|
|
43
|
-
"badge": "
|
|
5
|
+
"icon": "awsui_icon_h11ix_y1ugs_189",
|
|
6
|
+
"icon-flex-height": "awsui_icon-flex-height_h11ix_y1ugs_197",
|
|
7
|
+
"size-small": "awsui_size-small_h11ix_y1ugs_225",
|
|
8
|
+
"size-small-mapped-height": "awsui_size-small-mapped-height_h11ix_y1ugs_229",
|
|
9
|
+
"size-normal": "awsui_size-normal_h11ix_y1ugs_244",
|
|
10
|
+
"size-normal-mapped-height": "awsui_size-normal-mapped-height_h11ix_y1ugs_248",
|
|
11
|
+
"size-medium": "awsui_size-medium_h11ix_y1ugs_263",
|
|
12
|
+
"size-medium-mapped-height": "awsui_size-medium-mapped-height_h11ix_y1ugs_267",
|
|
13
|
+
"size-big": "awsui_size-big_h11ix_y1ugs_282",
|
|
14
|
+
"size-big-mapped-height": "awsui_size-big-mapped-height_h11ix_y1ugs_286",
|
|
15
|
+
"size-large": "awsui_size-large_h11ix_y1ugs_301",
|
|
16
|
+
"size-large-mapped-height": "awsui_size-large-mapped-height_h11ix_y1ugs_305",
|
|
17
|
+
"variant-normal": "awsui_variant-normal_h11ix_y1ugs_320",
|
|
18
|
+
"variant-disabled": "awsui_variant-disabled_h11ix_y1ugs_323",
|
|
19
|
+
"variant-inverted": "awsui_variant-inverted_h11ix_y1ugs_326",
|
|
20
|
+
"variant-subtle": "awsui_variant-subtle_h11ix_y1ugs_329",
|
|
21
|
+
"variant-warning": "awsui_variant-warning_h11ix_y1ugs_332",
|
|
22
|
+
"variant-error": "awsui_variant-error_h11ix_y1ugs_335",
|
|
23
|
+
"variant-success": "awsui_variant-success_h11ix_y1ugs_338",
|
|
24
|
+
"variant-link": "awsui_variant-link_h11ix_y1ugs_341",
|
|
25
|
+
"name-angle-left-double": "awsui_name-angle-left-double_h11ix_y1ugs_344",
|
|
26
|
+
"name-angle-left": "awsui_name-angle-left_h11ix_y1ugs_344",
|
|
27
|
+
"name-angle-right-double": "awsui_name-angle-right-double_h11ix_y1ugs_346",
|
|
28
|
+
"name-angle-right": "awsui_name-angle-right_h11ix_y1ugs_346",
|
|
29
|
+
"name-arrow-left": "awsui_name-arrow-left_h11ix_y1ugs_348",
|
|
30
|
+
"name-arrow-right": "awsui_name-arrow-right_h11ix_y1ugs_349",
|
|
31
|
+
"name-caret-left-filled": "awsui_name-caret-left-filled_h11ix_y1ugs_350",
|
|
32
|
+
"name-caret-right-filled": "awsui_name-caret-right-filled_h11ix_y1ugs_351",
|
|
33
|
+
"name-audio-full": "awsui_name-audio-full_h11ix_y1ugs_352",
|
|
34
|
+
"name-audio-half": "awsui_name-audio-half_h11ix_y1ugs_353",
|
|
35
|
+
"name-audio-off": "awsui_name-audio-off_h11ix_y1ugs_354",
|
|
36
|
+
"name-external": "awsui_name-external_h11ix_y1ugs_355",
|
|
37
|
+
"name-redo": "awsui_name-redo_h11ix_y1ugs_356",
|
|
38
|
+
"name-resize-area": "awsui_name-resize-area_h11ix_y1ugs_357",
|
|
39
|
+
"name-send": "awsui_name-send_h11ix_y1ugs_358",
|
|
40
|
+
"name-shrink": "awsui_name-shrink_h11ix_y1ugs_359",
|
|
41
|
+
"name-undo": "awsui_name-undo_h11ix_y1ugs_360",
|
|
42
|
+
"name-view-vertical": "awsui_name-view-vertical_h11ix_y1ugs_361",
|
|
43
|
+
"badge": "awsui_badge_h11ix_y1ugs_385"
|
|
44
44
|
};
|
|
45
45
|
|
package/icon-provider/index.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
'use client';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
6
|
+
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
7
|
+
import InternalIconProvider from './internal';
|
|
8
|
+
/**
|
|
9
|
+
* @awsuiSystem core
|
|
10
|
+
*/
|
|
4
11
|
export default function IconProvider(props) {
|
|
5
|
-
|
|
12
|
+
useBaseComponent('IconProvider');
|
|
13
|
+
return React.createElement(InternalIconProvider, { ...props });
|
|
6
14
|
}
|
|
15
|
+
applyDisplayName(IconProvider, 'IconProvider');
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { default as Header, HeaderProps } from './header';
|
|
|
39
39
|
export { default as HelpPanel, HelpPanelProps } from './help-panel';
|
|
40
40
|
export { default as Hotspot, HotspotProps } from './hotspot';
|
|
41
41
|
export { default as Icon, IconProps } from './icon';
|
|
42
|
+
export { default as IconProvider, IconProviderProps } from './icon-provider';
|
|
42
43
|
export { default as Input, InputProps } from './input';
|
|
43
44
|
export { default as KeyValuePairs, KeyValuePairsProps } from './key-value-pairs';
|
|
44
45
|
export { default as LineChart, LineChartProps } from './line-chart';
|
|
@@ -48,12 +49,14 @@ export { default as LiveRegion, LiveRegionProps } from './live-region';
|
|
|
48
49
|
export { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';
|
|
49
50
|
export { default as Modal, ModalProps } from './modal';
|
|
50
51
|
export { default as Multiselect, MultiselectProps } from './multiselect';
|
|
52
|
+
export { default as NavigableGroup, NavigableGroupProps } from './navigable-group';
|
|
51
53
|
export { default as Pagination, PaginationProps } from './pagination';
|
|
52
54
|
export { default as PieChart, PieChartProps } from './pie-chart';
|
|
53
55
|
export { default as Popover, PopoverProps } from './popover';
|
|
54
56
|
export { default as ProgressBar, ProgressBarProps } from './progress-bar';
|
|
55
57
|
export { default as PromptInput, PromptInputProps } from './prompt-input';
|
|
56
58
|
export { default as PropertyFilter, PropertyFilterProps } from './property-filter';
|
|
59
|
+
export { default as RadioButton, RadioButtonProps } from './radio-button';
|
|
57
60
|
export { default as RadioGroup, RadioGroupProps } from './radio-group';
|
|
58
61
|
export { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector';
|
|
59
62
|
export { default as SegmentedControl, SegmentedControlProps } from './segmented-control';
|
|
@@ -81,4 +84,4 @@ export { default as TopNavigation, TopNavigationProps } from './top-navigation';
|
|
|
81
84
|
export { default as TreeView, TreeViewProps } from './tree-view';
|
|
82
85
|
export { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';
|
|
83
86
|
export { default as Wizard, WizardProps } from './wizard';
|
|
84
|
-
export * from './interfaces';
|
|
87
|
+
export * from './interfaces';
|
package/index.js
CHANGED
|
@@ -39,6 +39,7 @@ export { default as Header } from './header';
|
|
|
39
39
|
export { default as HelpPanel } from './help-panel';
|
|
40
40
|
export { default as Hotspot } from './hotspot';
|
|
41
41
|
export { default as Icon } from './icon';
|
|
42
|
+
export { default as IconProvider } from './icon-provider';
|
|
42
43
|
export { default as Input } from './input';
|
|
43
44
|
export { default as KeyValuePairs } from './key-value-pairs';
|
|
44
45
|
export { default as LineChart } from './line-chart';
|
|
@@ -48,12 +49,14 @@ export { default as LiveRegion } from './live-region';
|
|
|
48
49
|
export { default as MixedLineBarChart } from './mixed-line-bar-chart';
|
|
49
50
|
export { default as Modal } from './modal';
|
|
50
51
|
export { default as Multiselect } from './multiselect';
|
|
52
|
+
export { default as NavigableGroup } from './navigable-group';
|
|
51
53
|
export { default as Pagination } from './pagination';
|
|
52
54
|
export { default as PieChart } from './pie-chart';
|
|
53
55
|
export { default as Popover } from './popover';
|
|
54
56
|
export { default as ProgressBar } from './progress-bar';
|
|
55
57
|
export { default as PromptInput } from './prompt-input';
|
|
56
58
|
export { default as PropertyFilter } from './property-filter';
|
|
59
|
+
export { default as RadioButton } from './radio-button';
|
|
57
60
|
export { default as RadioGroup } from './radio-group';
|
|
58
61
|
export { default as S3ResourceSelector } from './s3-resource-selector';
|
|
59
62
|
export { default as SegmentedControl } from './segmented-control';
|
|
@@ -82,3 +85,4 @@ export { default as TreeView } from './tree-view';
|
|
|
82
85
|
export { default as TutorialPanel } from './tutorial-panel';
|
|
83
86
|
export { default as Wizard } from './wizard';
|
|
84
87
|
export * from './interfaces';
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
package/input/index.js
CHANGED
|
@@ -1,18 +1,59 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
3
|
+
'use client';
|
|
4
|
+
import React, { useImperativeHandle, useRef } from 'react';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { getBaseProps } from '../internal/base-component';
|
|
7
|
+
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
6
8
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import InternalInput from './internal';
|
|
10
|
+
import styles from './styles.css.js';
|
|
11
|
+
const Input = React.forwardRef(({ value, type = 'text', step, inputMode, autoComplete = true, spellcheck, disabled, readOnly, disableBrowserAutocorrect, onKeyDown, onKeyUp, onChange, onBlur, onFocus, ariaRequired, name, placeholder, autoFocus, ariaLabel, ariaLabelledby, ariaDescribedby, invalid, warning, controlId, clearAriaLabel, nativeInputAttributes, style, ...rest }, ref) => {
|
|
12
|
+
const baseComponentProps = useBaseComponent('Input', {
|
|
13
|
+
props: { autoComplete, autoFocus, disableBrowserAutocorrect, inputMode, readOnly, spellcheck, type },
|
|
14
|
+
});
|
|
15
|
+
const baseProps = getBaseProps(rest);
|
|
16
|
+
const inputRef = useRef(null);
|
|
17
|
+
useImperativeHandle(ref, () => ({
|
|
18
|
+
focus(...args) {
|
|
19
|
+
var _a;
|
|
20
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(...args);
|
|
21
|
+
},
|
|
22
|
+
select() {
|
|
23
|
+
var _a;
|
|
24
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.select();
|
|
25
|
+
},
|
|
26
|
+
}), [inputRef]);
|
|
27
|
+
return (React.createElement(InternalInput, { ref: inputRef, ...baseProps,
|
|
28
|
+
...baseComponentProps,
|
|
29
|
+
autoComplete,
|
|
30
|
+
ariaLabel,
|
|
31
|
+
ariaRequired,
|
|
32
|
+
autoFocus,
|
|
33
|
+
disabled,
|
|
34
|
+
disableBrowserAutocorrect,
|
|
35
|
+
name,
|
|
36
|
+
onKeyDown,
|
|
37
|
+
onKeyUp,
|
|
38
|
+
onChange,
|
|
39
|
+
onBlur,
|
|
40
|
+
onFocus,
|
|
41
|
+
placeholder,
|
|
42
|
+
readOnly,
|
|
43
|
+
type,
|
|
44
|
+
step,
|
|
45
|
+
inputMode,
|
|
46
|
+
spellcheck,
|
|
47
|
+
value,
|
|
48
|
+
ariaDescribedby,
|
|
49
|
+
ariaLabelledby,
|
|
50
|
+
invalid,
|
|
51
|
+
warning,
|
|
52
|
+
controlId,
|
|
53
|
+
clearAriaLabel,
|
|
54
|
+
nativeInputAttributes,
|
|
55
|
+
style, className: clsx(styles.root, baseProps.className), __inheritFormFieldProps: true, __injectAnalyticsComponentMetadata: true }));
|
|
14
56
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
57
|
applyDisplayName(Input, 'Input');
|
|
18
58
|
export default Input;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
package/input/interfaces.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from
|
|
|
4
4
|
/**
|
|
5
5
|
* @awsuiSystem core
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { NativeAttributes } from '../internal/utils/with-native-attributes';
|
|
8
8
|
export interface BaseInputProps {
|
|
9
9
|
/**
|
|
10
10
|
* Specifies the text entered into the form element.
|
|
@@ -74,6 +74,7 @@ export interface BaseInputProps {
|
|
|
74
74
|
*
|
|
75
75
|
* @awsuiSystem core
|
|
76
76
|
*/
|
|
77
|
+
nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;
|
|
77
78
|
}
|
|
78
79
|
export interface InputAutoCorrect {
|
|
79
80
|
/**
|
|
@@ -152,6 +153,7 @@ export interface InputProps extends BaseComponentProps, BaseInputProps, InputKey
|
|
|
152
153
|
/**
|
|
153
154
|
* @awsuiSystem core
|
|
154
155
|
*/
|
|
156
|
+
style?: InputProps.Style;
|
|
155
157
|
}
|
|
156
158
|
export declare namespace InputProps {
|
|
157
159
|
type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';
|