@cloudscape-design/components 3.0.1048 → 3.0.1049
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/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-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/date-input/index.d.ts +1 -1
- package/date-input/index.d.ts.map +1 -1
- package/date-input/index.js.map +1 -1
- package/date-input/interfaces.d.ts +29 -0
- package/date-input/interfaces.d.ts.map +1 -1
- package/date-input/interfaces.js.map +1 -1
- package/date-input/internal.d.ts +1 -4
- package/date-input/internal.d.ts.map +1 -1
- package/date-input/internal.js +39 -4
- package/date-input/internal.js.map +1 -1
- package/date-input/utils.d.ts +9 -1
- package/date-input/utils.d.ts.map +1 -1
- package/date-input/utils.js +32 -7
- package/date-input/utils.js.map +1 -1
- 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/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/masked-input/index.d.ts.map +1 -1
- package/internal/components/masked-input/index.js +2 -2
- package/internal/components/masked-input/index.js.map +1 -1
- package/internal/components/masked-input/interfaces.d.ts +6 -1
- package/internal/components/masked-input/interfaces.d.ts.map +1 -1
- package/internal/components/masked-input/interfaces.js.map +1 -1
- 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/manifest.json +1 -1
- package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
- package/internal/utils/date-time/format-date-iso.js.map +1 -1
- package/internal/utils/date-time/interfaces.d.ts +16 -0
- package/internal/utils/date-time/interfaces.d.ts.map +1 -0
- package/internal/utils/date-time/interfaces.js +4 -0
- package/internal/utils/date-time/interfaces.js.map +1 -0
- package/link/index.d.ts.map +1 -1
- package/link/index.js +11 -27
- package/link/interfaces.d.ts +23 -0
- package/link/interfaces.d.ts.map +1 -1
- package/link/interfaces.js.map +1 -1
- package/link/internal-do-not-use-core.js +34 -0
- package/link/internal-do-not-use-core.js.map +1 -0
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +3 -2
- package/link/internal.js.map +1 -1
- package/link/style.d.ts +2 -0
- package/link/style.d.ts.map +1 -0
- package/link/style.js +21 -0
- package/link/style.js.map +1 -0
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +103 -102
- package/link/styles.selectors.js +20 -20
- package/package.json +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/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/link/index.js.map +0 -1
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
*/
|
|
144
144
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
145
145
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
146
|
-
.awsui_text-
|
|
146
|
+
.awsui_text-content_6absk_1q3rm_146:not(#\9) {
|
|
147
147
|
border-collapse: separate;
|
|
148
148
|
border-spacing: 0;
|
|
149
149
|
box-sizing: border-box;
|
|
@@ -176,12 +176,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
176
176
|
/* stylelint-disable no-descending-specificity */
|
|
177
177
|
/* stylelint-enable no-descending-specificity */
|
|
178
178
|
}
|
|
179
|
-
.awsui_text-
|
|
180
|
-
.awsui_text-
|
|
181
|
-
.awsui_text-
|
|
182
|
-
.awsui_text-
|
|
183
|
-
.awsui_text-
|
|
184
|
-
.awsui_text-
|
|
179
|
+
.awsui_text-content_6absk_1q3rm_146 h1:not(#\9),
|
|
180
|
+
.awsui_text-content_6absk_1q3rm_146 h2:not(#\9),
|
|
181
|
+
.awsui_text-content_6absk_1q3rm_146 h3:not(#\9),
|
|
182
|
+
.awsui_text-content_6absk_1q3rm_146 h4:not(#\9),
|
|
183
|
+
.awsui_text-content_6absk_1q3rm_146 h5:not(#\9),
|
|
184
|
+
.awsui_text-content_6absk_1q3rm_146 p:not(#\9) {
|
|
185
185
|
font-family: inherit;
|
|
186
186
|
font-weight: normal;
|
|
187
187
|
text-decoration: none;
|
|
@@ -190,14 +190,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
padding-block: var(--space-xxs-hwfkai, 4px);
|
|
191
191
|
padding-inline: 0;
|
|
192
192
|
}
|
|
193
|
-
.awsui_text-
|
|
194
|
-
.awsui_text-
|
|
195
|
-
.awsui_text-
|
|
196
|
-
.awsui_text-
|
|
197
|
-
.awsui_text-
|
|
193
|
+
.awsui_text-content_6absk_1q3rm_146 h1:not(#\9),
|
|
194
|
+
.awsui_text-content_6absk_1q3rm_146 h2:not(#\9),
|
|
195
|
+
.awsui_text-content_6absk_1q3rm_146 h3:not(#\9),
|
|
196
|
+
.awsui_text-content_6absk_1q3rm_146 h4:not(#\9),
|
|
197
|
+
.awsui_text-content_6absk_1q3rm_146 h5:not(#\9) {
|
|
198
198
|
color: var(--color-text-heading-default-izpp46, #0f141a);
|
|
199
199
|
}
|
|
200
|
-
.awsui_text-
|
|
200
|
+
.awsui_text-content_6absk_1q3rm_146 h1:not(#\9) {
|
|
201
201
|
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
202
202
|
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
203
203
|
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
@@ -205,7 +205,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
205
205
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
206
206
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
207
207
|
}
|
|
208
|
-
.awsui_text-
|
|
208
|
+
.awsui_text-content_6absk_1q3rm_146 h2:not(#\9) {
|
|
209
209
|
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
210
210
|
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
211
211
|
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
@@ -213,7 +213,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
213
213
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
214
214
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
215
215
|
}
|
|
216
|
-
.awsui_text-
|
|
216
|
+
.awsui_text-content_6absk_1q3rm_146 h3:not(#\9) {
|
|
217
217
|
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
218
218
|
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
219
219
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
@@ -221,7 +221,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
221
221
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
222
222
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
223
223
|
}
|
|
224
|
-
.awsui_text-
|
|
224
|
+
.awsui_text-content_6absk_1q3rm_146 h4:not(#\9) {
|
|
225
225
|
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
226
226
|
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
227
227
|
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
@@ -229,34 +229,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
229
229
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
230
230
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
231
231
|
}
|
|
232
|
-
.awsui_text-
|
|
232
|
+
.awsui_text-content_6absk_1q3rm_146 h5:not(#\9) {
|
|
233
233
|
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
234
234
|
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
235
235
|
font-weight: var(--font-weight-heading-xs-wqqpne, 700);
|
|
236
236
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
237
237
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
238
238
|
}
|
|
239
|
-
.awsui_text-
|
|
240
|
-
.awsui_text-
|
|
239
|
+
.awsui_text-content_6absk_1q3rm_146 b:not(#\9),
|
|
240
|
+
.awsui_text-content_6absk_1q3rm_146 strong:not(#\9) {
|
|
241
241
|
font-weight: 700;
|
|
242
242
|
}
|
|
243
|
-
.awsui_text-
|
|
243
|
+
.awsui_text-content_6absk_1q3rm_146 p:not(#\9) {
|
|
244
244
|
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
245
245
|
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
246
246
|
color: inherit;
|
|
247
247
|
}
|
|
248
|
-
.awsui_text-
|
|
248
|
+
.awsui_text-content_6absk_1q3rm_146 small:not(#\9) {
|
|
249
249
|
display: inline-block;
|
|
250
250
|
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
251
251
|
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
252
252
|
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
253
253
|
color: var(--color-text-small-m1tr70, #656871);
|
|
254
254
|
}
|
|
255
|
-
.awsui_text-
|
|
255
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9) {
|
|
256
256
|
font-size: inherit;
|
|
257
257
|
text-underline-offset: 0.25em;
|
|
258
258
|
text-decoration-thickness: 1px;
|
|
259
|
-
color: var(--color-text-link-default-1dmm7z, #006ce0);
|
|
259
|
+
color: var(--awsui-style-color-default-kcc2gu, var(--color-text-link-default-1dmm7z, #006ce0));
|
|
260
260
|
font-weight: inherit;
|
|
261
261
|
letter-spacing: normal;
|
|
262
262
|
text-decoration-line: underline;
|
|
@@ -267,44 +267,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
267
267
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
268
268
|
}
|
|
269
269
|
@media (prefers-reduced-motion: reduce) {
|
|
270
|
-
.awsui_text-
|
|
270
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9) {
|
|
271
271
|
animation: none;
|
|
272
272
|
transition: none;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
.awsui-motion-disabled .awsui_text-
|
|
275
|
+
.awsui-motion-disabled .awsui_text-content_6absk_1q3rm_146 small a:not(#\9), .awsui-mode-entering .awsui_text-content_6absk_1q3rm_146 small a:not(#\9) {
|
|
276
276
|
animation: none;
|
|
277
277
|
transition: none;
|
|
278
278
|
}
|
|
279
|
-
.awsui_text-
|
|
279
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9):hover {
|
|
280
280
|
cursor: pointer;
|
|
281
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
281
|
+
color: var(--awsui-style-color-hover-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
282
282
|
}
|
|
283
|
-
.awsui_text-
|
|
283
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9):focus {
|
|
284
284
|
outline: none;
|
|
285
285
|
}
|
|
286
|
-
.awsui_text-
|
|
287
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
286
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9):active {
|
|
287
|
+
color: var(--awsui-style-color-active-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
288
288
|
}
|
|
289
|
-
.awsui_text-
|
|
289
|
+
.awsui_text-content_6absk_1q3rm_146 small a:not(#\9):active, .awsui_text-content_6absk_1q3rm_146 small a:not(#\9):focus, .awsui_text-content_6absk_1q3rm_146 small a:not(#\9):hover {
|
|
290
290
|
text-decoration-line: underline;
|
|
291
291
|
text-decoration-color: currentColor;
|
|
292
292
|
}
|
|
293
|
-
.awsui_text-
|
|
294
|
-
.awsui_text-
|
|
295
|
-
.awsui_text-
|
|
293
|
+
.awsui_text-content_6absk_1q3rm_146 code:not(#\9),
|
|
294
|
+
.awsui_text-content_6absk_1q3rm_146 pre:not(#\9),
|
|
295
|
+
.awsui_text-content_6absk_1q3rm_146 samp:not(#\9) {
|
|
296
296
|
font-family: var(--font-family-monospace-q47m7k, Monaco, Menlo, Consolas, "Courier Prime", Courier, "Courier New", monospace);
|
|
297
297
|
background: transparent;
|
|
298
298
|
}
|
|
299
|
-
.awsui_text-
|
|
299
|
+
.awsui_text-content_6absk_1q3rm_146 code:not(#\9) {
|
|
300
300
|
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
301
301
|
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
302
302
|
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
303
303
|
}
|
|
304
|
-
.awsui_text-
|
|
304
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9) {
|
|
305
305
|
text-underline-offset: 0.25em;
|
|
306
306
|
text-decoration-thickness: 1px;
|
|
307
|
-
color: var(--color-text-link-default-1dmm7z, #006ce0);
|
|
307
|
+
color: var(--awsui-style-color-default-kcc2gu, var(--color-text-link-default-1dmm7z, #006ce0));
|
|
308
308
|
font-weight: inherit;
|
|
309
309
|
letter-spacing: normal;
|
|
310
310
|
text-decoration-line: underline;
|
|
@@ -315,30 +315,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
315
315
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
316
316
|
}
|
|
317
317
|
@media (prefers-reduced-motion: reduce) {
|
|
318
|
-
.awsui_text-
|
|
318
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9) {
|
|
319
319
|
animation: none;
|
|
320
320
|
transition: none;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
.awsui-motion-disabled .awsui_text-
|
|
323
|
+
.awsui-motion-disabled .awsui_text-content_6absk_1q3rm_146 a:not(#\9), .awsui-mode-entering .awsui_text-content_6absk_1q3rm_146 a:not(#\9) {
|
|
324
324
|
animation: none;
|
|
325
325
|
transition: none;
|
|
326
326
|
}
|
|
327
|
-
.awsui_text-
|
|
327
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9):hover {
|
|
328
328
|
cursor: pointer;
|
|
329
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
329
|
+
color: var(--awsui-style-color-hover-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
330
330
|
}
|
|
331
|
-
.awsui_text-
|
|
331
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9):focus {
|
|
332
332
|
outline: none;
|
|
333
333
|
}
|
|
334
|
-
.awsui_text-
|
|
335
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
334
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9):active {
|
|
335
|
+
color: var(--awsui-style-color-active-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
336
336
|
}
|
|
337
|
-
.awsui_text-
|
|
337
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9):active, .awsui_text-content_6absk_1q3rm_146 a:not(#\9):focus, .awsui_text-content_6absk_1q3rm_146 a:not(#\9):hover {
|
|
338
338
|
text-decoration-line: underline;
|
|
339
339
|
text-decoration-color: currentColor;
|
|
340
340
|
}
|
|
341
|
-
.awsui_text-
|
|
341
|
+
.awsui_text-content_6absk_1q3rm_146 a:not(#\9):focus {
|
|
342
342
|
outline: thin dotted;
|
|
343
343
|
outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
|
|
344
344
|
outline-offset: 2px;
|
|
@@ -349,33 +349,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
349
349
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
350
350
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-39uvxr, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
351
351
|
}
|
|
352
|
-
.awsui_text-
|
|
353
|
-
.awsui_text-
|
|
352
|
+
.awsui_text-content_6absk_1q3rm_146 ul:not(#\9),
|
|
353
|
+
.awsui_text-content_6absk_1q3rm_146 ol:not(#\9) {
|
|
354
354
|
padding-inline-start: var(--space-l-2ud1p3, 20px);
|
|
355
355
|
margin-block: var(--space-scaled-xs-xwoogq, 8px);
|
|
356
356
|
margin-inline: 0;
|
|
357
357
|
list-style-position: outside;
|
|
358
358
|
}
|
|
359
|
-
.awsui_text-
|
|
360
|
-
.awsui_text-
|
|
361
|
-
.awsui_text-
|
|
362
|
-
.awsui_text-
|
|
363
|
-
.awsui_text-
|
|
364
|
-
.awsui_text-
|
|
365
|
-
.awsui_text-
|
|
366
|
-
.awsui_text-
|
|
367
|
-
.awsui_text-
|
|
368
|
-
.awsui_text-
|
|
369
|
-
.awsui_text-
|
|
370
|
-
.awsui_text-
|
|
371
|
-
.awsui_text-
|
|
372
|
-
.awsui_text-
|
|
359
|
+
.awsui_text-content_6absk_1q3rm_146 ul + ul:not(#\9),
|
|
360
|
+
.awsui_text-content_6absk_1q3rm_146 ul + ol:not(#\9),
|
|
361
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li + ul:not(#\9),
|
|
362
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li + li:not(#\9),
|
|
363
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li + ol:not(#\9),
|
|
364
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li > ul:not(#\9),
|
|
365
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li > ol:not(#\9),
|
|
366
|
+
.awsui_text-content_6absk_1q3rm_146 ol + ul:not(#\9),
|
|
367
|
+
.awsui_text-content_6absk_1q3rm_146 ol + ol:not(#\9),
|
|
368
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li + ul:not(#\9),
|
|
369
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li + li:not(#\9),
|
|
370
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li + ol:not(#\9),
|
|
371
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li > ul:not(#\9),
|
|
372
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li > ol:not(#\9) {
|
|
373
373
|
padding-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
374
374
|
}
|
|
375
|
-
.awsui_text-
|
|
376
|
-
.awsui_text-
|
|
377
|
-
.awsui_text-
|
|
378
|
-
.awsui_text-
|
|
375
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li > ul:not(#\9),
|
|
376
|
+
.awsui_text-content_6absk_1q3rm_146 ul > li > ol:not(#\9),
|
|
377
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li > ul:not(#\9),
|
|
378
|
+
.awsui_text-content_6absk_1q3rm_146 ol > li > ol:not(#\9) {
|
|
379
379
|
margin-block: 0;
|
|
380
380
|
margin-inline: 0;
|
|
381
381
|
}
|
package/link/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,YAAY,MAAM,YAAY,CAAC;AAItC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CAAC,EAAgF,EAAE,GAA6B,EAAE,EAAE;QAAnH,EAAE,QAAQ,GAAG,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,QAAQ,GAAG,KAAK,OAAuB,EAAlB,KAAK,cAAnE,iCAAqE,CAAF;IAClE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,EAAE;QAClD,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;KACnG,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAA2C;QAChE,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACvB,QAAQ,EAAE,GAAG,QAAQ,EAAE;SACxB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACvB,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,WAAW,EAAE;SACtD;KACF,CAAC;IAEF,IAAI,KAAK,CAAC,IAAI,EAAE;QACd,iBAAiB,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;KAC5C;IAED,OAAO,CACL,oBAAC,YAAY,kBACX,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,IACd,KAAK,EACL,kBAAkB,IACtB,GAAG,EAAE,GAAG,IACJ,6BAA6B,CAAC,iBAAiB,CAAC,EACpD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/B,eAAe,IAAI,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataLinkFragment } from './analytics-metadata/interfaces';\nimport { LinkProps } from './interfaces';\nimport InternalLink from './internal';\n\nexport { LinkProps };\n\nconst Link = React.forwardRef(\n ({ fontSize = 'body-m', color = 'normal', external = false, ...props }: LinkProps, ref: React.Ref<LinkProps.Ref>) => {\n const baseComponentProps = useBaseComponent('Link', {\n props: { color, external, fontSize, rel: props.rel, target: props.target, variant: props.variant },\n });\n\n const analyticsMetadata: GeneratedAnalyticsMetadataLinkFragment = {\n action: 'click',\n detail: {\n label: { root: 'self' },\n external: `${external}`,\n },\n component: {\n name: 'awsui.Link',\n label: { root: 'self' },\n properties: { variant: props.variant || 'secondary' },\n },\n };\n\n if (props.href) {\n analyticsMetadata.detail.href = props.href;\n }\n\n return (\n <InternalLink\n fontSize={fontSize}\n color={color}\n external={external}\n {...props}\n {...baseComponentProps}\n ref={ref}\n {...getAnalyticsMetadataAttribute(analyticsMetadata)}\n />\n );\n }\n);\n\napplyDisplayName(Link, 'Link');\nexport default Link;\n"]}
|