@cloudscape-design/components 3.0.1270 → 3.0.1271
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/toolbar/index.js +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +1 -2
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +6 -7
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +20 -26
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +6 -7
- package/button/styles.css.js +22 -22
- package/button/styles.scoped.css +78 -78
- package/button/styles.selectors.js +22 -22
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +70 -70
- package/help-panel/styles.selectors.js +6 -6
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.js +1 -1
- package/i18n/messages/all.ar.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +18 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/internal/base-component/styles.scoped.css +63 -4
- 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/styles/tokens.d.ts +17 -3
- package/internal/generated/styles/tokens.js +17 -3
- package/internal/generated/theming/index.cjs +417 -9
- package/internal/generated/theming/index.cjs.d.ts +189 -0
- package/internal/generated/theming/index.d.ts +189 -0
- package/internal/generated/theming/index.js +417 -9
- package/internal/keycode.d.ts +3 -1
- package/internal/keycode.d.ts.map +1 -1
- package/internal/keycode.js +5 -0
- package/internal/keycode.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/handle-key.d.ts +22 -1
- package/internal/utils/handle-key.d.ts.map +1 -1
- package/internal/utils/handle-key.js +62 -4
- package/internal/utils/handle-key.js.map +1 -1
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +81 -81
- package/link/styles.selectors.js +21 -21
- package/package.json +1 -1
- package/prompt-input/components/menu-dropdown.d.ts +33 -0
- package/prompt-input/components/menu-dropdown.d.ts.map +1 -0
- package/prompt-input/components/menu-dropdown.js +48 -0
- package/prompt-input/components/menu-dropdown.js.map +1 -0
- package/prompt-input/components/textarea-mode.d.ts +15 -0
- package/prompt-input/components/textarea-mode.d.ts.map +1 -0
- package/prompt-input/components/textarea-mode.js +8 -0
- package/prompt-input/components/textarea-mode.js.map +1 -0
- package/prompt-input/components/token-mode.d.ts +61 -0
- package/prompt-input/components/token-mode.d.ts.map +1 -0
- package/prompt-input/components/token-mode.js +37 -0
- package/prompt-input/components/token-mode.js.map +1 -0
- package/prompt-input/core/caret-controller.d.ts +73 -0
- package/prompt-input/core/caret-controller.d.ts.map +1 -0
- package/prompt-input/core/caret-controller.js +396 -0
- package/prompt-input/core/caret-controller.js.map +1 -0
- package/prompt-input/core/caret-spot-utils.d.ts +6 -0
- package/prompt-input/core/caret-spot-utils.d.ts.map +1 -0
- package/prompt-input/core/caret-spot-utils.js +52 -0
- package/prompt-input/core/caret-spot-utils.js.map +1 -0
- package/prompt-input/core/caret-utils.d.ts +25 -0
- package/prompt-input/core/caret-utils.d.ts.map +1 -0
- package/prompt-input/core/caret-utils.js +183 -0
- package/prompt-input/core/caret-utils.js.map +1 -0
- package/prompt-input/core/constants.d.ts +14 -0
- package/prompt-input/core/constants.d.ts.map +1 -0
- package/prompt-input/core/constants.js +18 -0
- package/prompt-input/core/constants.js.map +1 -0
- package/prompt-input/core/dom-utils.d.ts +60 -0
- package/prompt-input/core/dom-utils.d.ts.map +1 -0
- package/prompt-input/core/dom-utils.js +252 -0
- package/prompt-input/core/dom-utils.js.map +1 -0
- package/prompt-input/core/event-handlers.d.ts +68 -0
- package/prompt-input/core/event-handlers.d.ts.map +1 -0
- package/prompt-input/core/event-handlers.js +678 -0
- package/prompt-input/core/event-handlers.js.map +1 -0
- package/prompt-input/core/menu-state.d.ts +62 -0
- package/prompt-input/core/menu-state.d.ts.map +1 -0
- package/prompt-input/core/menu-state.js +168 -0
- package/prompt-input/core/menu-state.js.map +1 -0
- package/prompt-input/core/token-operations.d.ts +21 -0
- package/prompt-input/core/token-operations.d.ts.map +1 -0
- package/prompt-input/core/token-operations.js +273 -0
- package/prompt-input/core/token-operations.js.map +1 -0
- package/prompt-input/core/token-renderer.d.ts +26 -0
- package/prompt-input/core/token-renderer.d.ts.map +1 -0
- package/prompt-input/core/token-renderer.js +230 -0
- package/prompt-input/core/token-renderer.js.map +1 -0
- package/prompt-input/core/token-utils.d.ts +22 -0
- package/prompt-input/core/token-utils.d.ts.map +1 -0
- package/prompt-input/core/token-utils.js +262 -0
- package/prompt-input/core/token-utils.js.map +1 -0
- package/prompt-input/core/trigger-utils.d.ts +18 -0
- package/prompt-input/core/trigger-utils.d.ts.map +1 -0
- package/prompt-input/core/trigger-utils.js +174 -0
- package/prompt-input/core/trigger-utils.js.map +1 -0
- package/prompt-input/core/type-guards.d.ts +13 -0
- package/prompt-input/core/type-guards.d.ts.map +1 -0
- package/prompt-input/core/type-guards.js +36 -0
- package/prompt-input/core/type-guards.js.map +1 -0
- package/prompt-input/index.d.ts +1 -1
- package/prompt-input/index.d.ts.map +1 -1
- package/prompt-input/index.js.map +1 -1
- package/prompt-input/interfaces.d.ts +356 -7
- package/prompt-input/interfaces.d.ts.map +1 -1
- package/prompt-input/interfaces.js.map +1 -1
- package/prompt-input/internal.d.ts +1 -1
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +195 -61
- package/prompt-input/internal.js.map +1 -1
- package/prompt-input/styles.css.js +26 -17
- package/prompt-input/styles.scoped.css +152 -39
- package/prompt-input/styles.selectors.js +26 -17
- package/prompt-input/test-classes/styles.css.js +7 -6
- package/prompt-input/test-classes/styles.scoped.css +10 -6
- package/prompt-input/test-classes/styles.selectors.js +7 -6
- package/prompt-input/tokens/use-shortcuts.d.ts +37 -0
- package/prompt-input/tokens/use-shortcuts.d.ts.map +1 -0
- package/prompt-input/tokens/use-shortcuts.js +89 -0
- package/prompt-input/tokens/use-shortcuts.js.map +1 -0
- package/prompt-input/tokens/use-token-mode.d.ts +78 -0
- package/prompt-input/tokens/use-token-mode.d.ts.map +1 -0
- package/prompt-input/tokens/use-token-mode.js +817 -0
- package/prompt-input/tokens/use-token-mode.js.map +1 -0
- package/prompt-input/utils/insert-text-content-editable.d.ts +10 -0
- package/prompt-input/utils/insert-text-content-editable.d.ts.map +1 -0
- package/prompt-input/utils/insert-text-content-editable.js +133 -0
- package/prompt-input/utils/insert-text-content-editable.js.map +1 -0
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +55 -55
- package/tabs/styles.selectors.js +30 -30
- package/test-utils/dom/hotspot/index.js +1 -2
- package/test-utils/dom/hotspot/index.js.map +1 -1
- package/test-utils/dom/prompt-input/index.d.ts +53 -1
- package/test-utils/dom/prompt-input/index.js +121 -13
- package/test-utils/dom/prompt-input/index.js.map +1 -1
- package/test-utils/dom/s3-resource-selector/index.js +2 -3
- package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
- package/test-utils/selectors/hotspot/index.js +1 -2
- package/test-utils/selectors/hotspot/index.js.map +1 -1
- package/test-utils/selectors/prompt-input/index.d.ts +30 -0
- package/test-utils/selectors/prompt-input/index.js +53 -7
- package/test-utils/selectors/prompt-input/index.js.map +1 -1
- package/test-utils/selectors/s3-resource-selector/index.js +2 -3
- package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
package/link/styles.scoped.css
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
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_link_4c84z_82ubk_145:not(#\9) {
|
|
146
146
|
border-collapse: separate;
|
|
147
147
|
border-spacing: 0;
|
|
148
148
|
box-sizing: border-box;
|
|
@@ -177,7 +177,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
177
177
|
--awsui-style-focus-ring-box-shadow-6b9ypa: 0 0 0 var(--awsui-style-focus-ring-border-width-6b9ypa, var(--border-link-focus-ring-shadow-spread-39uvxr, 2px)) var(--awsui-style-focus-ring-border-color-6b9ypa, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
178
178
|
text-underline-offset: 0.25em;
|
|
179
179
|
text-decoration-thickness: 1px;
|
|
180
|
-
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-
|
|
180
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-secondary-default-4p0gj8, #006ce0));
|
|
181
181
|
font-weight: inherit;
|
|
182
182
|
letter-spacing: normal;
|
|
183
183
|
text-decoration-line: none;
|
|
@@ -188,33 +188,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
188
188
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
189
189
|
}
|
|
190
190
|
@media (prefers-reduced-motion: reduce) {
|
|
191
|
-
.
|
|
191
|
+
.awsui_link_4c84z_82ubk_145:not(#\9) {
|
|
192
192
|
animation: none;
|
|
193
193
|
transition: none;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
.awsui-motion-disabled .
|
|
196
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145:not(#\9) {
|
|
197
197
|
animation: none;
|
|
198
198
|
transition: none;
|
|
199
199
|
}
|
|
200
|
-
.
|
|
200
|
+
.awsui_link_4c84z_82ubk_145:not(#\9):hover {
|
|
201
201
|
cursor: pointer;
|
|
202
|
-
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-
|
|
202
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-secondary-hover-0kzmc4, #002b66));
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_link_4c84z_82ubk_145:not(#\9):focus {
|
|
205
205
|
outline: none;
|
|
206
206
|
}
|
|
207
|
-
.
|
|
208
|
-
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-
|
|
207
|
+
.awsui_link_4c84z_82ubk_145:not(#\9):active {
|
|
208
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-secondary-hover-0kzmc4, #002b66));
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_link_4c84z_82ubk_145:not(#\9):active, .awsui_link_4c84z_82ubk_145:not(#\9):focus, .awsui_link_4c84z_82ubk_145:not(#\9):hover {
|
|
211
211
|
text-decoration-line: underline;
|
|
212
212
|
text-decoration-color: currentColor;
|
|
213
213
|
}
|
|
214
|
-
.
|
|
214
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9) {
|
|
215
215
|
-webkit-font-smoothing: inherit;
|
|
216
216
|
-moz-osx-font-smoothing: inherit;
|
|
217
|
-
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-
|
|
217
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-secondary-default-4p0gj8, #006ce0));
|
|
218
218
|
font-weight: inherit;
|
|
219
219
|
letter-spacing: normal;
|
|
220
220
|
text-decoration-line: none;
|
|
@@ -225,30 +225,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
225
225
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
226
226
|
}
|
|
227
227
|
@media (prefers-reduced-motion: reduce) {
|
|
228
|
-
.
|
|
228
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9) {
|
|
229
229
|
animation: none;
|
|
230
230
|
transition: none;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
.awsui-motion-disabled .
|
|
233
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9) {
|
|
234
234
|
animation: none;
|
|
235
235
|
transition: none;
|
|
236
236
|
}
|
|
237
|
-
.
|
|
237
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):hover {
|
|
238
238
|
cursor: pointer;
|
|
239
|
-
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-
|
|
239
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-secondary-hover-0kzmc4, #002b66));
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):focus {
|
|
242
242
|
outline: none;
|
|
243
243
|
}
|
|
244
|
-
.
|
|
245
|
-
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-
|
|
244
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):active {
|
|
245
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-secondary-hover-0kzmc4, #002b66));
|
|
246
246
|
}
|
|
247
|
-
.
|
|
247
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-secondary_4c84z_82ubk_212:not(#\9):hover {
|
|
248
248
|
text-decoration-line: underline;
|
|
249
249
|
text-decoration-color: currentColor;
|
|
250
250
|
}
|
|
251
|
-
.
|
|
251
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9) {
|
|
252
252
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-hude44, #006ce0));
|
|
253
253
|
font-weight: inherit;
|
|
254
254
|
letter-spacing: normal;
|
|
@@ -260,33 +260,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
260
260
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
261
261
|
}
|
|
262
262
|
@media (prefers-reduced-motion: reduce) {
|
|
263
|
-
.
|
|
263
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9) {
|
|
264
264
|
animation: none;
|
|
265
265
|
transition: none;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
.awsui-motion-disabled .
|
|
268
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9) {
|
|
269
269
|
animation: none;
|
|
270
270
|
transition: none;
|
|
271
271
|
}
|
|
272
|
-
.
|
|
272
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):hover {
|
|
273
273
|
cursor: pointer;
|
|
274
274
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
275
275
|
}
|
|
276
|
-
.
|
|
276
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):focus {
|
|
277
277
|
outline: none;
|
|
278
278
|
}
|
|
279
|
-
.
|
|
279
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):active {
|
|
280
280
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-primary_4c84z_82ubk_247:not(#\9):hover {
|
|
283
283
|
text-decoration-line: underline;
|
|
284
284
|
text-decoration-color: currentColor;
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9) {
|
|
287
287
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
288
288
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
289
|
-
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-
|
|
289
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-info-default-mrmt1i, #006ce0));
|
|
290
290
|
font-weight: 700;
|
|
291
291
|
letter-spacing: 0.005em;
|
|
292
292
|
text-decoration-line: none;
|
|
@@ -297,30 +297,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
297
297
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
298
298
|
}
|
|
299
299
|
@media (prefers-reduced-motion: reduce) {
|
|
300
|
-
.
|
|
300
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9) {
|
|
301
301
|
animation: none;
|
|
302
302
|
transition: none;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
.awsui-motion-disabled .
|
|
305
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9) {
|
|
306
306
|
animation: none;
|
|
307
307
|
transition: none;
|
|
308
308
|
}
|
|
309
|
-
.
|
|
309
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):hover {
|
|
310
310
|
cursor: pointer;
|
|
311
|
-
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-
|
|
311
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-info-hover-mu3ega, #002b66));
|
|
312
312
|
}
|
|
313
|
-
.
|
|
313
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):focus {
|
|
314
314
|
outline: none;
|
|
315
315
|
}
|
|
316
|
-
.
|
|
317
|
-
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-
|
|
316
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):active {
|
|
317
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-info-hover-mu3ega, #002b66));
|
|
318
318
|
}
|
|
319
|
-
.
|
|
319
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-info_4c84z_82ubk_280:not(#\9):hover {
|
|
320
320
|
text-decoration-line: underline;
|
|
321
321
|
text-decoration-color: var(--color-text-link-button-underline-hover-cn3mqh, transparent);
|
|
322
322
|
}
|
|
323
|
-
.
|
|
323
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9) {
|
|
324
324
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-hude44, #006ce0));
|
|
325
325
|
font-weight: var(--font-box-value-large-weight-wr00sw, 700);
|
|
326
326
|
text-decoration-line: underline;
|
|
@@ -331,30 +331,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
331
331
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
332
332
|
}
|
|
333
333
|
@media (prefers-reduced-motion: reduce) {
|
|
334
|
-
.
|
|
334
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9) {
|
|
335
335
|
animation: none;
|
|
336
336
|
transition: none;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
.awsui-motion-disabled .
|
|
339
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9) {
|
|
340
340
|
animation: none;
|
|
341
341
|
transition: none;
|
|
342
342
|
}
|
|
343
|
-
.
|
|
343
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):hover {
|
|
344
344
|
cursor: pointer;
|
|
345
345
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
346
346
|
}
|
|
347
|
-
.
|
|
347
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):focus {
|
|
348
348
|
outline: none;
|
|
349
349
|
}
|
|
350
|
-
.
|
|
350
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):active {
|
|
351
351
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
352
352
|
}
|
|
353
|
-
.
|
|
353
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-value-large_4c84z_82ubk_315:not(#\9):hover {
|
|
354
354
|
text-decoration-line: underline;
|
|
355
355
|
text-decoration-color: currentColor;
|
|
356
356
|
}
|
|
357
|
-
.
|
|
357
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9) {
|
|
358
358
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
359
359
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
360
360
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-interactive-default-ugh9wp, #424650));
|
|
@@ -368,30 +368,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
368
368
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
369
369
|
}
|
|
370
370
|
@media (prefers-reduced-motion: reduce) {
|
|
371
|
-
.
|
|
371
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9) {
|
|
372
372
|
animation: none;
|
|
373
373
|
transition: none;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
.awsui-motion-disabled .
|
|
376
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9) {
|
|
377
377
|
animation: none;
|
|
378
378
|
transition: none;
|
|
379
379
|
}
|
|
380
|
-
.
|
|
380
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):hover {
|
|
381
381
|
cursor: pointer;
|
|
382
382
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-interactive-hover-6naf7i, #0f141a));
|
|
383
383
|
}
|
|
384
|
-
.
|
|
384
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):focus {
|
|
385
385
|
outline: none;
|
|
386
386
|
}
|
|
387
|
-
.
|
|
387
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):active {
|
|
388
388
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-interactive-active-uoe6zi, #0f141a));
|
|
389
389
|
}
|
|
390
|
-
.
|
|
390
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-top-navigation_4c84z_82ubk_347:not(#\9):hover {
|
|
391
391
|
text-decoration-line: underline;
|
|
392
392
|
text-decoration-color: transparent;
|
|
393
393
|
}
|
|
394
|
-
.
|
|
394
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9) {
|
|
395
395
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-hude44, #006ce0));
|
|
396
396
|
font-weight: var(--font-link-button-weight-vslyg9, 700);
|
|
397
397
|
letter-spacing: var(--font-link-button-letter-spacing-imtxwq, 0.005em);
|
|
@@ -403,30 +403,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
403
403
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
404
404
|
}
|
|
405
405
|
@media (prefers-reduced-motion: reduce) {
|
|
406
|
-
.
|
|
406
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9) {
|
|
407
407
|
animation: none;
|
|
408
408
|
transition: none;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
.awsui-motion-disabled .
|
|
411
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9) {
|
|
412
412
|
animation: none;
|
|
413
413
|
transition: none;
|
|
414
414
|
}
|
|
415
|
-
.
|
|
415
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):hover {
|
|
416
416
|
cursor: pointer;
|
|
417
417
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
418
418
|
}
|
|
419
|
-
.
|
|
419
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):focus {
|
|
420
420
|
outline: none;
|
|
421
421
|
}
|
|
422
|
-
.
|
|
422
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):active {
|
|
423
423
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
424
424
|
}
|
|
425
|
-
.
|
|
425
|
+
.awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_variant-recovery_4c84z_82ubk_382:not(#\9):hover {
|
|
426
426
|
text-decoration-line: underline;
|
|
427
427
|
text-decoration-color: var(--color-text-link-button-underline-hover-cn3mqh, transparent);
|
|
428
428
|
}
|
|
429
|
-
.
|
|
429
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9) {
|
|
430
430
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
431
431
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
432
432
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-button-normal-default-srprth, #006ce0));
|
|
@@ -440,40 +440,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
440
440
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
441
441
|
}
|
|
442
442
|
@media (prefers-reduced-motion: reduce) {
|
|
443
|
-
.
|
|
443
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9) {
|
|
444
444
|
animation: none;
|
|
445
445
|
transition: none;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
.awsui-motion-disabled .
|
|
448
|
+
.awsui-motion-disabled .awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9), .awsui-mode-entering .awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9) {
|
|
449
449
|
animation: none;
|
|
450
450
|
transition: none;
|
|
451
451
|
}
|
|
452
|
-
.
|
|
452
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):hover {
|
|
453
453
|
cursor: pointer;
|
|
454
454
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-button-normal-hover-jrnyw3, #002b66));
|
|
455
455
|
}
|
|
456
|
-
.
|
|
456
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):focus {
|
|
457
457
|
outline: none;
|
|
458
458
|
}
|
|
459
|
-
.
|
|
459
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):active {
|
|
460
460
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-button-normal-active-js9ryu, #002b66));
|
|
461
461
|
}
|
|
462
|
-
.
|
|
462
|
+
.awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):active, .awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):focus, .awsui_link_4c84z_82ubk_145.awsui_button_4c84z_82ubk_415:not(#\9):hover {
|
|
463
463
|
text-decoration-line: underline;
|
|
464
464
|
text-decoration-color: transparent;
|
|
465
465
|
}
|
|
466
|
-
.
|
|
466
|
+
.awsui_link_4c84z_82ubk_145.awsui_color-inverted_4c84z_82ubk_450:not(#\9) {
|
|
467
467
|
color: var(--color-text-notification-default-1iey72, #f9f9fa);
|
|
468
468
|
}
|
|
469
|
-
.
|
|
469
|
+
.awsui_link_4c84z_82ubk_145.awsui_color-inverted_4c84z_82ubk_450:not(#\9):not(.awsui_button_4c84z_82ubk_415) {
|
|
470
470
|
text-decoration-line: underline;
|
|
471
471
|
text-decoration-color: currentColor;
|
|
472
472
|
}
|
|
473
|
-
.
|
|
473
|
+
.awsui_link_4c84z_82ubk_145.awsui_color-inverted_4c84z_82ubk_450:not(#\9):hover {
|
|
474
474
|
color: var(--color-text-link-inverted-hover-ocd3u3, #ffffff);
|
|
475
475
|
}
|
|
476
|
-
body[data-awsui-focus-visible=true] .
|
|
476
|
+
body[data-awsui-focus-visible=true] .awsui_link_4c84z_82ubk_145:not(#\9):focus {
|
|
477
477
|
outline: thin dotted;
|
|
478
478
|
outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
|
|
479
479
|
outline-offset: 2px;
|
|
@@ -484,76 +484,76 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_19rql_145:not(#\9):focus {
|
|
|
484
484
|
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
485
485
|
box-shadow: var(--awsui-style-focus-ring-box-shadow-6b9ypa);
|
|
486
486
|
}
|
|
487
|
-
.
|
|
487
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-body-s_4c84z_82ubk_471:not(#\9) {
|
|
488
488
|
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
489
489
|
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
490
490
|
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
491
491
|
text-underline-offset: 0.3em;
|
|
492
492
|
text-decoration-thickness: 1px;
|
|
493
493
|
}
|
|
494
|
-
.
|
|
494
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-body-m_4c84z_82ubk_478:not(#\9) {
|
|
495
495
|
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
496
496
|
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
497
497
|
text-underline-offset: 0.25em;
|
|
498
498
|
text-decoration-thickness: 1px;
|
|
499
499
|
}
|
|
500
|
-
.
|
|
500
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-heading-xs_4c84z_82ubk_484:not(#\9) {
|
|
501
501
|
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
502
502
|
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
503
503
|
letter-spacing: var(--letter-spacing-heading-xs-fgog7a, normal);
|
|
504
504
|
text-underline-offset: 0.25em;
|
|
505
505
|
text-decoration-thickness: 1px;
|
|
506
506
|
}
|
|
507
|
-
.
|
|
507
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-heading-s_4c84z_82ubk_491:not(#\9) {
|
|
508
508
|
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
509
509
|
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
510
510
|
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
511
511
|
text-underline-offset: 0.3em;
|
|
512
512
|
text-decoration-thickness: 1px;
|
|
513
513
|
}
|
|
514
|
-
.
|
|
514
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-heading-m_4c84z_82ubk_498:not(#\9) {
|
|
515
515
|
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
516
516
|
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
517
517
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
518
518
|
text-underline-offset: 0.25em;
|
|
519
519
|
text-decoration-thickness: 1px;
|
|
520
520
|
}
|
|
521
|
-
.
|
|
521
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-heading-l_4c84z_82ubk_505:not(#\9) {
|
|
522
522
|
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
523
523
|
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
524
524
|
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
525
525
|
text-underline-offset: 0.25em;
|
|
526
526
|
text-decoration-thickness: 1px;
|
|
527
527
|
}
|
|
528
|
-
.
|
|
528
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-heading-xl_4c84z_82ubk_512:not(#\9) {
|
|
529
529
|
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
530
530
|
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
531
531
|
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
532
532
|
text-underline-offset: 0.25em;
|
|
533
533
|
text-decoration-thickness: 1px;
|
|
534
534
|
}
|
|
535
|
-
.
|
|
535
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-display-l_4c84z_82ubk_519:not(#\9) {
|
|
536
536
|
font-size: var(--font-size-display-l-wa6woo, 42px);
|
|
537
537
|
line-height: var(--line-height-display-l-vwanzp, 48px);
|
|
538
538
|
letter-spacing: var(--letter-spacing-display-l-elyyxk, -0.03em);
|
|
539
539
|
text-underline-offset: 0.25em;
|
|
540
540
|
text-decoration-thickness: 2px;
|
|
541
541
|
}
|
|
542
|
-
.
|
|
542
|
+
.awsui_link_4c84z_82ubk_145.awsui_font-size-inherit_4c84z_82ubk_526:not(#\9) {
|
|
543
543
|
font-size: inherit;
|
|
544
544
|
line-height: inherit;
|
|
545
545
|
letter-spacing: inherit;
|
|
546
546
|
text-underline-offset: 0.25em;
|
|
547
547
|
text-decoration-thickness: 1px;
|
|
548
548
|
}
|
|
549
|
-
.
|
|
549
|
+
.awsui_link_4c84z_82ubk_145.awsui_in-inline-token_4c84z_82ubk_533:not(#\9) {
|
|
550
550
|
text-underline-offset: 0.15em;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
.awsui_icon-
|
|
553
|
+
.awsui_icon-wrapper_4c84z_82ubk_537:not(#\9) {
|
|
554
554
|
white-space: nowrap;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
.
|
|
557
|
+
.awsui_icon_4c84z_82ubk_537:not(#\9) {
|
|
558
558
|
display: inline-block;
|
|
559
559
|
}
|
package/link/styles.selectors.js
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"link": "
|
|
6
|
-
"variant-secondary": "awsui_variant-
|
|
7
|
-
"variant-primary": "awsui_variant-
|
|
8
|
-
"variant-info": "awsui_variant-
|
|
9
|
-
"variant-value-large": "awsui_variant-value-
|
|
10
|
-
"variant-top-navigation": "awsui_variant-top-
|
|
11
|
-
"variant-recovery": "awsui_variant-
|
|
12
|
-
"button": "
|
|
13
|
-
"color-inverted": "awsui_color-
|
|
14
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
15
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
16
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
17
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
18
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
19
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
20
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
21
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
22
|
-
"font-size-inherit": "awsui_font-size-
|
|
23
|
-
"in-inline-token": "awsui_in-inline-
|
|
24
|
-
"icon-wrapper": "awsui_icon-
|
|
25
|
-
"icon": "
|
|
5
|
+
"link": "awsui_link_4c84z_82ubk_145",
|
|
6
|
+
"variant-secondary": "awsui_variant-secondary_4c84z_82ubk_212",
|
|
7
|
+
"variant-primary": "awsui_variant-primary_4c84z_82ubk_247",
|
|
8
|
+
"variant-info": "awsui_variant-info_4c84z_82ubk_280",
|
|
9
|
+
"variant-value-large": "awsui_variant-value-large_4c84z_82ubk_315",
|
|
10
|
+
"variant-top-navigation": "awsui_variant-top-navigation_4c84z_82ubk_347",
|
|
11
|
+
"variant-recovery": "awsui_variant-recovery_4c84z_82ubk_382",
|
|
12
|
+
"button": "awsui_button_4c84z_82ubk_415",
|
|
13
|
+
"color-inverted": "awsui_color-inverted_4c84z_82ubk_450",
|
|
14
|
+
"font-size-body-s": "awsui_font-size-body-s_4c84z_82ubk_471",
|
|
15
|
+
"font-size-body-m": "awsui_font-size-body-m_4c84z_82ubk_478",
|
|
16
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_82ubk_484",
|
|
17
|
+
"font-size-heading-s": "awsui_font-size-heading-s_4c84z_82ubk_491",
|
|
18
|
+
"font-size-heading-m": "awsui_font-size-heading-m_4c84z_82ubk_498",
|
|
19
|
+
"font-size-heading-l": "awsui_font-size-heading-l_4c84z_82ubk_505",
|
|
20
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_82ubk_512",
|
|
21
|
+
"font-size-display-l": "awsui_font-size-display-l_4c84z_82ubk_519",
|
|
22
|
+
"font-size-inherit": "awsui_font-size-inherit_4c84z_82ubk_526",
|
|
23
|
+
"in-inline-token": "awsui_in-inline-token_4c84z_82ubk_533",
|
|
24
|
+
"icon-wrapper": "awsui_icon-wrapper_4c84z_82ubk_537",
|
|
25
|
+
"icon": "awsui_icon_4c84z_82ubk_537"
|
|
26
26
|
};
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"./internal/base-component/index.js",
|
|
164
164
|
"./internal/base-component/styles.css.js"
|
|
165
165
|
],
|
|
166
|
-
"version": "3.0.
|
|
166
|
+
"version": "3.0.1271",
|
|
167
167
|
"repository": {
|
|
168
168
|
"type": "git",
|
|
169
169
|
"url": "https://github.com/cloudscape-design/components.git"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuItemsHandlers, MenuItemsState } from '../core/menu-state';
|
|
3
|
+
import { PromptInputProps } from '../interfaces';
|
|
4
|
+
/** Props for the menu options list rendered inside the trigger dropdown. */
|
|
5
|
+
interface MenuDropdownProps {
|
|
6
|
+
menu: PromptInputProps.MenuDefinition;
|
|
7
|
+
statusType: PromptInputProps.MenuDefinition['statusType'];
|
|
8
|
+
menuItemsState: MenuItemsState;
|
|
9
|
+
menuItemsHandlers: MenuItemsHandlers;
|
|
10
|
+
highlightedOptionId?: string;
|
|
11
|
+
highlightText: string;
|
|
12
|
+
listId: string;
|
|
13
|
+
controlId: string;
|
|
14
|
+
handleLoadMore: () => void;
|
|
15
|
+
hasDropdownStatus?: boolean;
|
|
16
|
+
listBottom?: React.ReactNode;
|
|
17
|
+
ariaDescribedby?: string;
|
|
18
|
+
}
|
|
19
|
+
export default function MenuDropdown({
|
|
20
|
+
menu,
|
|
21
|
+
statusType,
|
|
22
|
+
menuItemsState,
|
|
23
|
+
menuItemsHandlers,
|
|
24
|
+
highlightedOptionId,
|
|
25
|
+
highlightText,
|
|
26
|
+
listId,
|
|
27
|
+
controlId,
|
|
28
|
+
handleLoadMore,
|
|
29
|
+
hasDropdownStatus,
|
|
30
|
+
listBottom,
|
|
31
|
+
ariaDescribedby
|
|
32
|
+
}: MenuDropdownProps): JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/prompt-input/components/menu-dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,4EAA4E;AAC5E,UAAU,iBAAiB;IACzB,IAAI,EAAE,gBAAgB,CAAC,cAAc,CAAC;IACtC,UAAU,EAAE,gBAAgB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1D,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAQD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,MAAM,EACN,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,eAAe,GAChB,EAAE,iBAAiB,eAmDnB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
4
|
+
import PlainList from '../../autosuggest/plain-list';
|
|
5
|
+
import VirtualList from '../../autosuggest/virtual-list';
|
|
6
|
+
import InternalLiveRegion from '../../live-region/internal';
|
|
7
|
+
import { useAnnouncement } from '../../select/utils/use-announcement';
|
|
8
|
+
const createMouseEventHandler = (handler) => (itemIndex) => {
|
|
9
|
+
if (itemIndex > -1) {
|
|
10
|
+
handler(itemIndex);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export default function MenuDropdown({ menu, statusType, menuItemsState, menuItemsHandlers, highlightedOptionId, highlightText, listId, controlId, handleLoadMore, hasDropdownStatus, listBottom, ariaDescribedby, }) {
|
|
14
|
+
const handleMouseUp = createMouseEventHandler(menuItemsHandlers.selectVisibleOptionWithMouse);
|
|
15
|
+
const handleMouseMove = createMouseEventHandler(menuItemsHandlers.highlightVisibleOptionWithMouse);
|
|
16
|
+
const ListComponent = menu.virtualScroll ? VirtualList : PlainList;
|
|
17
|
+
const announcement = useAnnouncement({
|
|
18
|
+
highlightText,
|
|
19
|
+
announceSelected: false,
|
|
20
|
+
highlightedOption: menuItemsState.highlightedOption,
|
|
21
|
+
getParent: option => menuItemsState.getItemGroup(option),
|
|
22
|
+
});
|
|
23
|
+
// Force re-announcement when the filtered items list changes.
|
|
24
|
+
// The screenReaderContent on SelectableItem only works for keyboard
|
|
25
|
+
// navigation (highlight moving between existing items). When filtering
|
|
26
|
+
// replaces the entire list, new items mount already highlighted and
|
|
27
|
+
// the SR doesn't pick up the initial textContent set.
|
|
28
|
+
const liveRegionRef = useRef(null);
|
|
29
|
+
const prevItemsLengthRef = useRef(menuItemsState.items.length);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (menuItemsState.items.length !== prevItemsLengthRef.current && announcement) {
|
|
33
|
+
(_a = liveRegionRef.current) === null || _a === void 0 ? void 0 : _a.reannounce();
|
|
34
|
+
}
|
|
35
|
+
prevItemsLengthRef.current = menuItemsState.items.length;
|
|
36
|
+
}, [menuItemsState.items.length, announcement]);
|
|
37
|
+
return (React.createElement(React.Fragment, null,
|
|
38
|
+
React.createElement(InternalLiveRegion, { ref: liveRegionRef, tagName: "span", hidden: true }, announcement),
|
|
39
|
+
React.createElement(ListComponent, { listBottom: listBottom, handleLoadMore: handleLoadMore, autosuggestItemsState: menuItemsState, highlightText: highlightText, highlightedA11yProps: highlightedOptionId ? { id: highlightedOptionId } : {}, hasDropdownStatus: hasDropdownStatus, menuProps: {
|
|
40
|
+
id: listId,
|
|
41
|
+
ariaLabelledby: controlId,
|
|
42
|
+
onMouseUp: handleMouseUp,
|
|
43
|
+
onMouseMove: handleMouseMove,
|
|
44
|
+
ariaDescribedby,
|
|
45
|
+
statusType: statusType !== null && statusType !== void 0 ? statusType : 'finished',
|
|
46
|
+
}, screenReaderContent: announcement })));
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=menu-dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-dropdown.js","sourceRoot":"","sources":["../../../../src/prompt-input/components/menu-dropdown.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,kBAA6C,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAoBtE,MAAM,uBAAuB,GAAG,CAAC,OAAgC,EAAE,EAAE,CAAC,CAAC,SAAiB,EAAE,EAAE;IAC1F,IAAI,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,MAAM,EACN,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,eAAe,GACG;IAClB,MAAM,aAAa,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;IAC9F,MAAM,eAAe,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,CAAC;IAEnG,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAEnE,MAAM,YAAY,GAAG,eAAe,CAAC;QACnC,aAAa;QACb,gBAAgB,EAAE,KAAK;QACvB,iBAAiB,EAAE,cAAc,CAAC,iBAAiB;QACnD,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC;KACzD,CAAC,CAAC;IAEH,8DAA8D;IAC9D,oEAAoE;IACpE,uEAAuE;IACvE,oEAAoE;IACpE,sDAAsD;IACtD,MAAM,aAAa,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAC1D,MAAM,kBAAkB,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/D,SAAS,CAAC,GAAG,EAAE;;QACb,IAAI,cAAc,CAAC,KAAK,CAAC,MAAM,KAAK,kBAAkB,CAAC,OAAO,IAAI,YAAY,EAAE,CAAC;YAC/E,MAAA,aAAa,CAAC,OAAO,0CAAE,UAAU,EAAE,CAAC;QACtC,CAAC;QACD,kBAAkB,CAAC,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3D,CAAC,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAEhD,OAAO,CACL;QACE,oBAAC,kBAAkB,IAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,EAAC,MAAM,EAAE,IAAI,IAChE,YAAY,CACM;QACrB,oBAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,qBAAqB,EAAE,cAAc,EACrC,aAAa,EAAE,aAAa,EAC5B,oBAAoB,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,EAC5E,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE;gBACT,EAAE,EAAE,MAAM;gBACV,cAAc,EAAE,SAAS;gBACzB,SAAS,EAAE,aAAa;gBACxB,WAAW,EAAE,eAAe;gBAC5B,eAAe;gBACf,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,UAAU;aACrC,EACD,mBAAmB,EAAE,YAAY,GACjC,CACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useRef } from 'react';\n\nimport PlainList from '../../autosuggest/plain-list';\nimport VirtualList from '../../autosuggest/virtual-list';\nimport InternalLiveRegion, { InternalLiveRegionRef } from '../../live-region/internal';\nimport { useAnnouncement } from '../../select/utils/use-announcement';\nimport { MenuItemsHandlers, MenuItemsState } from '../core/menu-state';\nimport { PromptInputProps } from '../interfaces';\n\n/** Props for the menu options list rendered inside the trigger dropdown. */\ninterface MenuDropdownProps {\n menu: PromptInputProps.MenuDefinition;\n statusType: PromptInputProps.MenuDefinition['statusType'];\n menuItemsState: MenuItemsState;\n menuItemsHandlers: MenuItemsHandlers;\n highlightedOptionId?: string;\n highlightText: string;\n listId: string;\n controlId: string;\n handleLoadMore: () => void;\n hasDropdownStatus?: boolean;\n listBottom?: React.ReactNode;\n ariaDescribedby?: string;\n}\n\nconst createMouseEventHandler = (handler: (index: number) => void) => (itemIndex: number) => {\n if (itemIndex > -1) {\n handler(itemIndex);\n }\n};\n\nexport default function MenuDropdown({\n menu,\n statusType,\n menuItemsState,\n menuItemsHandlers,\n highlightedOptionId,\n highlightText,\n listId,\n controlId,\n handleLoadMore,\n hasDropdownStatus,\n listBottom,\n ariaDescribedby,\n}: MenuDropdownProps) {\n const handleMouseUp = createMouseEventHandler(menuItemsHandlers.selectVisibleOptionWithMouse);\n const handleMouseMove = createMouseEventHandler(menuItemsHandlers.highlightVisibleOptionWithMouse);\n\n const ListComponent = menu.virtualScroll ? VirtualList : PlainList;\n\n const announcement = useAnnouncement({\n highlightText,\n announceSelected: false,\n highlightedOption: menuItemsState.highlightedOption,\n getParent: option => menuItemsState.getItemGroup(option),\n });\n\n // Force re-announcement when the filtered items list changes.\n // The screenReaderContent on SelectableItem only works for keyboard\n // navigation (highlight moving between existing items). When filtering\n // replaces the entire list, new items mount already highlighted and\n // the SR doesn't pick up the initial textContent set.\n const liveRegionRef = useRef<InternalLiveRegionRef>(null);\n const prevItemsLengthRef = useRef(menuItemsState.items.length);\n useEffect(() => {\n if (menuItemsState.items.length !== prevItemsLengthRef.current && announcement) {\n liveRegionRef.current?.reannounce();\n }\n prevItemsLengthRef.current = menuItemsState.items.length;\n }, [menuItemsState.items.length, announcement]);\n\n return (\n <>\n <InternalLiveRegion ref={liveRegionRef} tagName=\"span\" hidden={true}>\n {announcement}\n </InternalLiveRegion>\n <ListComponent\n listBottom={listBottom}\n handleLoadMore={handleLoadMore}\n autosuggestItemsState={menuItemsState}\n highlightText={highlightText}\n highlightedA11yProps={highlightedOptionId ? { id: highlightedOptionId } : {}}\n hasDropdownStatus={hasDropdownStatus}\n menuProps={{\n id: listId,\n ariaLabelledby: controlId,\n onMouseUp: handleMouseUp,\n onMouseMove: handleMouseMove,\n ariaDescribedby,\n statusType: statusType ?? 'finished',\n }}\n screenReaderContent={announcement}\n />\n </>\n );\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** Props for when using standard PromptInput. */
|
|
3
|
+
interface TextareaModeProps {
|
|
4
|
+
textareaRef: React.RefObject<HTMLTextAreaElement>;
|
|
5
|
+
controlId?: string;
|
|
6
|
+
textareaAttributes: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
7
|
+
nativeTextareaAttributes?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export default function TextareaMode({
|
|
10
|
+
textareaRef,
|
|
11
|
+
controlId,
|
|
12
|
+
textareaAttributes,
|
|
13
|
+
nativeTextareaAttributes
|
|
14
|
+
}: TextareaModeProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea-mode.d.ts","sourceRoot":"","sources":["../../../../src/prompt-input/components/textarea-mode.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,iDAAiD;AACjD,UAAU,iBAAiB;IACzB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;IACtE,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,EAAE,iBAAiB,eAWnB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import WithNativeAttributes from '../../internal/utils/with-native-attributes';
|
|
5
|
+
export default function TextareaMode({ textareaRef, controlId, textareaAttributes, nativeTextareaAttributes, }) {
|
|
6
|
+
return (React.createElement(WithNativeAttributes, { ...textareaAttributes, tag: "textarea", componentName: "PromptInput", nativeAttributes: nativeTextareaAttributes, ref: textareaRef, id: controlId }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=textarea-mode.js.map
|