@transferwise/components 0.0.0-experimental-e3978a5 → 0.0.0-experimental-e46526a

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.
@@ -3005,6 +3005,163 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3005
3005
  text-align: left;
3006
3006
  }
3007
3007
  }
3008
+ .wds-list-item-prompt {
3009
+ grid-area: prompt;
3010
+ display: inline-flex;
3011
+ justify-self: start;
3012
+ text-align: left;
3013
+ padding-top: calc(8px / 2);
3014
+ padding-top: calc(var(--padding-x-small) / 2);
3015
+ padding-bottom: calc(8px / 2);
3016
+ padding-bottom: calc(var(--padding-x-small) / 2);
3017
+ padding-left: calc(8px - 1px);
3018
+ padding-left: calc(var(--padding-x-small) - 1px);
3019
+ padding-right: 8px;
3020
+ padding-right: var(--padding-x-small);
3021
+ border-radius: 10px;
3022
+ border-radius: var(--radius-small);
3023
+ word-break: break-word;
3024
+ word-wrap: break-word;
3025
+ }
3026
+ .wds-list-item-prompt:has(a),
3027
+ .wds-list-item-prompt:has(button) {
3028
+ position: relative;
3029
+ z-index: 1;
3030
+ }
3031
+ .wds-list-item-prompt a,
3032
+ .wds-list-item-prompt button {
3033
+ text-underline-offset: calc(4px / 2);
3034
+ text-underline-offset: calc(var(--size-4) / 2);
3035
+ }
3036
+ .wds-list-item-prompt a:first-of-type:before,
3037
+ .wds-list-item-prompt button:first-of-type:before {
3038
+ content: '';
3039
+ position: absolute;
3040
+ inset: 0;
3041
+ }
3042
+ .wds-list-item-prompt.np-prompt-icon {
3043
+ padding-left: calc(8px - 1px);
3044
+ padding-left: calc(var(--padding-x-small) - 1px);
3045
+ padding-right: 8px;
3046
+ padding-right: var(--padding-x-small);
3047
+ display: inline-flex;
3048
+ align-items: center;
3049
+ gap: 4px;
3050
+ gap: var(--size-4);
3051
+ }
3052
+ .wds-list-item-prompt .np-prompt-icon {
3053
+ padding-right: calc(12px / 2);
3054
+ padding-right: calc(var(--size-12) / 2);
3055
+ padding-top: calc(4px - 1px);
3056
+ padding-top: calc(var(--size-4) - 1px);
3057
+ padding-bottom: calc(4px - 1px);
3058
+ padding-bottom: calc(var(--size-4) - 1px);
3059
+ }
3060
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
3061
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
3062
+ color: var(--color-sentiment-positive-primary);
3063
+ }
3064
+ .wds-list-item-prompt.negative {
3065
+ background-color: var(--color-sentiment-negative-secondary);
3066
+ color: var(--color-sentiment-negative-primary);
3067
+ }
3068
+ .wds-list-item-prompt.negative a,
3069
+ .wds-list-item-prompt.negative button {
3070
+ color: var(--color-sentiment-negative-primary);
3071
+ }
3072
+ .wds-list-item-prompt.negative a:hover,
3073
+ .wds-list-item-prompt.negative button:hover {
3074
+ color: var(--color-sentiment-negative-primary-hover);
3075
+ }
3076
+ .wds-list-item-prompt.negative a:active,
3077
+ .wds-list-item-prompt.negative button:active {
3078
+ color: var(--color-sentiment-negative-primary-active);
3079
+ }
3080
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
3081
+ background-color: var(--color-sentiment-negative-secondary-hover);
3082
+ }
3083
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
3084
+ background-color: var(--color-sentiment-negative-secondary-active);
3085
+ }
3086
+ .wds-list-item-prompt.positive,
3087
+ .wds-list-item-prompt.discount,
3088
+ .wds-list-item-prompt.savings {
3089
+ background-color: var(--color-sentiment-positive-secondary);
3090
+ color: var(--color-sentiment-positive-primary);
3091
+ }
3092
+ .wds-list-item-prompt.positive a,
3093
+ .wds-list-item-prompt.discount a,
3094
+ .wds-list-item-prompt.savings a,
3095
+ .wds-list-item-prompt.positive button,
3096
+ .wds-list-item-prompt.discount button,
3097
+ .wds-list-item-prompt.savings button {
3098
+ color: var(--color-sentiment-positive-primary);
3099
+ }
3100
+ .wds-list-item-prompt.positive a:hover,
3101
+ .wds-list-item-prompt.discount a:hover,
3102
+ .wds-list-item-prompt.savings a:hover,
3103
+ .wds-list-item-prompt.positive button:hover,
3104
+ .wds-list-item-prompt.discount button:hover,
3105
+ .wds-list-item-prompt.savings button:hover {
3106
+ color: var(--color-sentiment-positive-primary-hover);
3107
+ }
3108
+ .wds-list-item-prompt.positive a:active,
3109
+ .wds-list-item-prompt.discount a:active,
3110
+ .wds-list-item-prompt.savings a:active,
3111
+ .wds-list-item-prompt.positive button:active,
3112
+ .wds-list-item-prompt.discount button:active,
3113
+ .wds-list-item-prompt.savings button:active {
3114
+ color: var(--color-sentiment-positive-primary-active);
3115
+ }
3116
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
3117
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
3118
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
3119
+ background-color: var(--color-sentiment-positive-secondary-hover);
3120
+ }
3121
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
3122
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
3123
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
3124
+ background-color: var(--color-sentiment-positive-secondary-active);
3125
+ }
3126
+ .wds-list-item-prompt.neutral {
3127
+ background-color: rgba(134,167,189,0.10196);
3128
+ background-color: var(--color-background-neutral);
3129
+ color: #37517e;
3130
+ color: var(--color-content-primary);
3131
+ }
3132
+ .wds-list-item-prompt.neutral a,
3133
+ .wds-list-item-prompt.neutral button {
3134
+ color: #37517e;
3135
+ color: var(--color-content-primary);
3136
+ }
3137
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
3138
+ background-color: var(--color-background-neutral-hover);
3139
+ }
3140
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
3141
+ background-color: var(--color-background-neutral-active);
3142
+ }
3143
+ .wds-list-item-prompt.warning {
3144
+ background-color: var(--color-sentiment-warning-secondary);
3145
+ color: var(--color-sentiment-warning-content);
3146
+ }
3147
+ .wds-list-item-prompt.warning a,
3148
+ .wds-list-item-prompt.warning button {
3149
+ color: var(--color-sentiment-warning-content);
3150
+ }
3151
+ .wds-list-item-prompt.warning a:hover,
3152
+ .wds-list-item-prompt.warning button:hover {
3153
+ color: var(--color-sentiment-warning-content-hover);
3154
+ }
3155
+ .wds-list-item-prompt.warning a:active,
3156
+ .wds-list-item-prompt.warning button:active {
3157
+ color: var(--color-sentiment-warning-content-active);
3158
+ }
3159
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
3160
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
3161
+ }
3162
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
3163
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
3164
+ }
3008
3165
  .wds-list-item {
3009
3166
  list-style: none;
3010
3167
  width: 100%;
@@ -3248,163 +3405,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3248
3405
  stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
3249
3406
  stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
3250
3407
  }
3251
- .wds-list-item-prompt {
3252
- grid-area: prompt;
3253
- display: inline-flex;
3254
- justify-self: start;
3255
- text-align: left;
3256
- padding-top: calc(8px / 2);
3257
- padding-top: calc(var(--padding-x-small) / 2);
3258
- padding-bottom: calc(8px / 2);
3259
- padding-bottom: calc(var(--padding-x-small) / 2);
3260
- padding-left: calc(8px - 1px);
3261
- padding-left: calc(var(--padding-x-small) - 1px);
3262
- padding-right: 8px;
3263
- padding-right: var(--padding-x-small);
3264
- border-radius: 10px;
3265
- border-radius: var(--radius-small);
3266
- word-break: break-word;
3267
- word-wrap: break-word;
3268
- }
3269
- .wds-list-item-prompt:has(a),
3270
- .wds-list-item-prompt:has(button) {
3271
- position: relative;
3272
- z-index: 1;
3273
- }
3274
- .wds-list-item-prompt a,
3275
- .wds-list-item-prompt button {
3276
- text-underline-offset: calc(4px / 2);
3277
- text-underline-offset: calc(var(--size-4) / 2);
3278
- }
3279
- .wds-list-item-prompt a:first-of-type:before,
3280
- .wds-list-item-prompt button:first-of-type:before {
3281
- content: '';
3282
- position: absolute;
3283
- inset: 0;
3284
- }
3285
- .wds-list-item-prompt.np-prompt-icon {
3286
- padding-left: calc(8px - 1px);
3287
- padding-left: calc(var(--padding-x-small) - 1px);
3288
- padding-right: 8px;
3289
- padding-right: var(--padding-x-small);
3290
- display: inline-flex;
3291
- align-items: center;
3292
- gap: 4px;
3293
- gap: var(--size-4);
3294
- }
3295
- .wds-list-item-prompt .np-prompt-icon {
3296
- padding-right: calc(12px / 2);
3297
- padding-right: calc(var(--size-12) / 2);
3298
- padding-top: calc(4px - 1px);
3299
- padding-top: calc(var(--size-4) - 1px);
3300
- padding-bottom: calc(4px - 1px);
3301
- padding-bottom: calc(var(--size-4) - 1px);
3302
- }
3303
- .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
3304
- .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
3305
- color: var(--color-sentiment-positive-primary);
3306
- }
3307
- .wds-list-item-prompt.negative {
3308
- background-color: var(--color-sentiment-negative-secondary);
3309
- color: var(--color-sentiment-negative-primary);
3310
- }
3311
- .wds-list-item-prompt.negative a,
3312
- .wds-list-item-prompt.negative button {
3313
- color: var(--color-sentiment-negative-primary);
3314
- }
3315
- .wds-list-item-prompt.negative a:hover,
3316
- .wds-list-item-prompt.negative button:hover {
3317
- color: var(--color-sentiment-negative-primary-hover);
3318
- }
3319
- .wds-list-item-prompt.negative a:active,
3320
- .wds-list-item-prompt.negative button:active {
3321
- color: var(--color-sentiment-negative-primary-active);
3322
- }
3323
- .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
3324
- background-color: var(--color-sentiment-negative-secondary-hover);
3325
- }
3326
- .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
3327
- background-color: var(--color-sentiment-negative-secondary-active);
3328
- }
3329
- .wds-list-item-prompt.positive,
3330
- .wds-list-item-prompt.discount,
3331
- .wds-list-item-prompt.savings {
3332
- background-color: var(--color-sentiment-positive-secondary);
3333
- color: var(--color-sentiment-positive-primary);
3334
- }
3335
- .wds-list-item-prompt.positive a,
3336
- .wds-list-item-prompt.discount a,
3337
- .wds-list-item-prompt.savings a,
3338
- .wds-list-item-prompt.positive button,
3339
- .wds-list-item-prompt.discount button,
3340
- .wds-list-item-prompt.savings button {
3341
- color: var(--color-sentiment-positive-primary);
3342
- }
3343
- .wds-list-item-prompt.positive a:hover,
3344
- .wds-list-item-prompt.discount a:hover,
3345
- .wds-list-item-prompt.savings a:hover,
3346
- .wds-list-item-prompt.positive button:hover,
3347
- .wds-list-item-prompt.discount button:hover,
3348
- .wds-list-item-prompt.savings button:hover {
3349
- color: var(--color-sentiment-positive-primary-hover);
3350
- }
3351
- .wds-list-item-prompt.positive a:active,
3352
- .wds-list-item-prompt.discount a:active,
3353
- .wds-list-item-prompt.savings a:active,
3354
- .wds-list-item-prompt.positive button:active,
3355
- .wds-list-item-prompt.discount button:active,
3356
- .wds-list-item-prompt.savings button:active {
3357
- color: var(--color-sentiment-positive-primary-active);
3358
- }
3359
- .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
3360
- .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
3361
- .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
3362
- background-color: var(--color-sentiment-positive-secondary-hover);
3363
- }
3364
- .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
3365
- .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
3366
- .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
3367
- background-color: var(--color-sentiment-positive-secondary-active);
3368
- }
3369
- .wds-list-item-prompt.neutral {
3370
- background-color: rgba(134,167,189,0.10196);
3371
- background-color: var(--color-background-neutral);
3372
- color: #37517e;
3373
- color: var(--color-content-primary);
3374
- }
3375
- .wds-list-item-prompt.neutral a,
3376
- .wds-list-item-prompt.neutral button {
3377
- color: #37517e;
3378
- color: var(--color-content-primary);
3379
- }
3380
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
3381
- background-color: var(--color-background-neutral-hover);
3382
- }
3383
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
3384
- background-color: var(--color-background-neutral-active);
3385
- }
3386
- .wds-list-item-prompt.warning {
3387
- background-color: var(--color-sentiment-warning-secondary);
3388
- color: var(--color-sentiment-warning-content);
3389
- }
3390
- .wds-list-item-prompt.warning a,
3391
- .wds-list-item-prompt.warning button {
3392
- color: var(--color-sentiment-warning-content);
3393
- }
3394
- .wds-list-item-prompt.warning a:hover,
3395
- .wds-list-item-prompt.warning button:hover {
3396
- color: var(--color-sentiment-warning-content-hover);
3397
- }
3398
- .wds-list-item-prompt.warning a:active,
3399
- .wds-list-item-prompt.warning button:active {
3400
- color: var(--color-sentiment-warning-content-active);
3401
- }
3402
- .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
3403
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
3404
- }
3405
- .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
3406
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
3407
- }
3408
3408
  .np-field-control {
3409
3409
  margin-top: 4px;
3410
3410
  margin-top: var(--size-4);
@@ -55,15 +55,13 @@ export type ListItemProps = {
55
55
  */
56
56
  valueColumnWidth?: number;
57
57
  id?: string;
58
- role?: string;
59
- 'aria-labelledby'?: string;
60
58
  };
61
59
  /**
62
60
  * @see [Design documentation](https://wise.design/components/list-item)
63
61
  * @see [Storybook documentation](https://storybook.wise.design/?path=/docs/content-listitem--docs)
64
62
  */
65
63
  export declare const ListItem: {
66
- ({ as: ListItemElement, title, subtitle, additionalInfo, prompt, inverted, media, spotlight, valueTitle, valueSubtitle, control, disabled, className, valueColumnWidth, role, id, "aria-labelledby": ariaLabelledby, }: ListItemProps): import("react").JSX.Element;
64
+ ({ as: ListItemElement, title, subtitle, additionalInfo, prompt, inverted, media, spotlight, valueTitle, valueSubtitle, control, disabled, className, valueColumnWidth, id, }: ListItemProps): import("react").JSX.Element;
67
65
  Image: {
68
66
  ({ alt, size, className, ...props }: import("./Image").ListItemImageProps): import("react").JSX.Element;
69
67
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAY,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAS,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAU,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAY5D,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,YAAY,GACZ,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,GAClB,mBAAmB,CAAC;AAExB,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;I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3
+ "version": "0.0.0-experimental-e46526a",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -368,6 +368,163 @@
368
368
  text-align: left;
369
369
  }
370
370
  }
371
+ .wds-list-item-prompt {
372
+ grid-area: prompt;
373
+ display: inline-flex;
374
+ justify-self: start;
375
+ text-align: left;
376
+ padding-top: calc(8px / 2);
377
+ padding-top: calc(var(--padding-x-small) / 2);
378
+ padding-bottom: calc(8px / 2);
379
+ padding-bottom: calc(var(--padding-x-small) / 2);
380
+ padding-left: calc(8px - 1px);
381
+ padding-left: calc(var(--padding-x-small) - 1px);
382
+ padding-right: 8px;
383
+ padding-right: var(--padding-x-small);
384
+ border-radius: 10px;
385
+ border-radius: var(--radius-small);
386
+ word-break: break-word;
387
+ word-wrap: break-word;
388
+ }
389
+ .wds-list-item-prompt:has(a),
390
+ .wds-list-item-prompt:has(button) {
391
+ position: relative;
392
+ z-index: 1;
393
+ }
394
+ .wds-list-item-prompt a,
395
+ .wds-list-item-prompt button {
396
+ text-underline-offset: calc(4px / 2);
397
+ text-underline-offset: calc(var(--size-4) / 2);
398
+ }
399
+ .wds-list-item-prompt a:first-of-type:before,
400
+ .wds-list-item-prompt button:first-of-type:before {
401
+ content: '';
402
+ position: absolute;
403
+ inset: 0;
404
+ }
405
+ .wds-list-item-prompt.np-prompt-icon {
406
+ padding-left: calc(8px - 1px);
407
+ padding-left: calc(var(--padding-x-small) - 1px);
408
+ padding-right: 8px;
409
+ padding-right: var(--padding-x-small);
410
+ display: inline-flex;
411
+ align-items: center;
412
+ gap: 4px;
413
+ gap: var(--size-4);
414
+ }
415
+ .wds-list-item-prompt .np-prompt-icon {
416
+ padding-right: calc(12px / 2);
417
+ padding-right: calc(var(--size-12) / 2);
418
+ padding-top: calc(4px - 1px);
419
+ padding-top: calc(var(--size-4) - 1px);
420
+ padding-bottom: calc(4px - 1px);
421
+ padding-bottom: calc(var(--size-4) - 1px);
422
+ }
423
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
424
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
425
+ color: var(--color-sentiment-positive-primary);
426
+ }
427
+ .wds-list-item-prompt.negative {
428
+ background-color: var(--color-sentiment-negative-secondary);
429
+ color: var(--color-sentiment-negative-primary);
430
+ }
431
+ .wds-list-item-prompt.negative a,
432
+ .wds-list-item-prompt.negative button {
433
+ color: var(--color-sentiment-negative-primary);
434
+ }
435
+ .wds-list-item-prompt.negative a:hover,
436
+ .wds-list-item-prompt.negative button:hover {
437
+ color: var(--color-sentiment-negative-primary-hover);
438
+ }
439
+ .wds-list-item-prompt.negative a:active,
440
+ .wds-list-item-prompt.negative button:active {
441
+ color: var(--color-sentiment-negative-primary-active);
442
+ }
443
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
444
+ background-color: var(--color-sentiment-negative-secondary-hover);
445
+ }
446
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
447
+ background-color: var(--color-sentiment-negative-secondary-active);
448
+ }
449
+ .wds-list-item-prompt.positive,
450
+ .wds-list-item-prompt.discount,
451
+ .wds-list-item-prompt.savings {
452
+ background-color: var(--color-sentiment-positive-secondary);
453
+ color: var(--color-sentiment-positive-primary);
454
+ }
455
+ .wds-list-item-prompt.positive a,
456
+ .wds-list-item-prompt.discount a,
457
+ .wds-list-item-prompt.savings a,
458
+ .wds-list-item-prompt.positive button,
459
+ .wds-list-item-prompt.discount button,
460
+ .wds-list-item-prompt.savings button {
461
+ color: var(--color-sentiment-positive-primary);
462
+ }
463
+ .wds-list-item-prompt.positive a:hover,
464
+ .wds-list-item-prompt.discount a:hover,
465
+ .wds-list-item-prompt.savings a:hover,
466
+ .wds-list-item-prompt.positive button:hover,
467
+ .wds-list-item-prompt.discount button:hover,
468
+ .wds-list-item-prompt.savings button:hover {
469
+ color: var(--color-sentiment-positive-primary-hover);
470
+ }
471
+ .wds-list-item-prompt.positive a:active,
472
+ .wds-list-item-prompt.discount a:active,
473
+ .wds-list-item-prompt.savings a:active,
474
+ .wds-list-item-prompt.positive button:active,
475
+ .wds-list-item-prompt.discount button:active,
476
+ .wds-list-item-prompt.savings button:active {
477
+ color: var(--color-sentiment-positive-primary-active);
478
+ }
479
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
480
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
481
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
482
+ background-color: var(--color-sentiment-positive-secondary-hover);
483
+ }
484
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
485
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
486
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
487
+ background-color: var(--color-sentiment-positive-secondary-active);
488
+ }
489
+ .wds-list-item-prompt.neutral {
490
+ background-color: rgba(134,167,189,0.10196);
491
+ background-color: var(--color-background-neutral);
492
+ color: #37517e;
493
+ color: var(--color-content-primary);
494
+ }
495
+ .wds-list-item-prompt.neutral a,
496
+ .wds-list-item-prompt.neutral button {
497
+ color: #37517e;
498
+ color: var(--color-content-primary);
499
+ }
500
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
501
+ background-color: var(--color-background-neutral-hover);
502
+ }
503
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
504
+ background-color: var(--color-background-neutral-active);
505
+ }
506
+ .wds-list-item-prompt.warning {
507
+ background-color: var(--color-sentiment-warning-secondary);
508
+ color: var(--color-sentiment-warning-content);
509
+ }
510
+ .wds-list-item-prompt.warning a,
511
+ .wds-list-item-prompt.warning button {
512
+ color: var(--color-sentiment-warning-content);
513
+ }
514
+ .wds-list-item-prompt.warning a:hover,
515
+ .wds-list-item-prompt.warning button:hover {
516
+ color: var(--color-sentiment-warning-content-hover);
517
+ }
518
+ .wds-list-item-prompt.warning a:active,
519
+ .wds-list-item-prompt.warning button:active {
520
+ color: var(--color-sentiment-warning-content-active);
521
+ }
522
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
523
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
524
+ }
525
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
526
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
527
+ }
371
528
  .wds-list-item {
372
529
  list-style: none;
373
530
  width: 100%;
@@ -611,160 +768,3 @@
611
768
  stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
612
769
  stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
613
770
  }
614
- .wds-list-item-prompt {
615
- grid-area: prompt;
616
- display: inline-flex;
617
- justify-self: start;
618
- text-align: left;
619
- padding-top: calc(8px / 2);
620
- padding-top: calc(var(--padding-x-small) / 2);
621
- padding-bottom: calc(8px / 2);
622
- padding-bottom: calc(var(--padding-x-small) / 2);
623
- padding-left: calc(8px - 1px);
624
- padding-left: calc(var(--padding-x-small) - 1px);
625
- padding-right: 8px;
626
- padding-right: var(--padding-x-small);
627
- border-radius: 10px;
628
- border-radius: var(--radius-small);
629
- word-break: break-word;
630
- word-wrap: break-word;
631
- }
632
- .wds-list-item-prompt:has(a),
633
- .wds-list-item-prompt:has(button) {
634
- position: relative;
635
- z-index: 1;
636
- }
637
- .wds-list-item-prompt a,
638
- .wds-list-item-prompt button {
639
- text-underline-offset: calc(4px / 2);
640
- text-underline-offset: calc(var(--size-4) / 2);
641
- }
642
- .wds-list-item-prompt a:first-of-type:before,
643
- .wds-list-item-prompt button:first-of-type:before {
644
- content: '';
645
- position: absolute;
646
- inset: 0;
647
- }
648
- .wds-list-item-prompt.np-prompt-icon {
649
- padding-left: calc(8px - 1px);
650
- padding-left: calc(var(--padding-x-small) - 1px);
651
- padding-right: 8px;
652
- padding-right: var(--padding-x-small);
653
- display: inline-flex;
654
- align-items: center;
655
- gap: 4px;
656
- gap: var(--size-4);
657
- }
658
- .wds-list-item-prompt .np-prompt-icon {
659
- padding-right: calc(12px / 2);
660
- padding-right: calc(var(--size-12) / 2);
661
- padding-top: calc(4px - 1px);
662
- padding-top: calc(var(--size-4) - 1px);
663
- padding-bottom: calc(4px - 1px);
664
- padding-bottom: calc(var(--size-4) - 1px);
665
- }
666
- .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
667
- .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
668
- color: var(--color-sentiment-positive-primary);
669
- }
670
- .wds-list-item-prompt.negative {
671
- background-color: var(--color-sentiment-negative-secondary);
672
- color: var(--color-sentiment-negative-primary);
673
- }
674
- .wds-list-item-prompt.negative a,
675
- .wds-list-item-prompt.negative button {
676
- color: var(--color-sentiment-negative-primary);
677
- }
678
- .wds-list-item-prompt.negative a:hover,
679
- .wds-list-item-prompt.negative button:hover {
680
- color: var(--color-sentiment-negative-primary-hover);
681
- }
682
- .wds-list-item-prompt.negative a:active,
683
- .wds-list-item-prompt.negative button:active {
684
- color: var(--color-sentiment-negative-primary-active);
685
- }
686
- .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
687
- background-color: var(--color-sentiment-negative-secondary-hover);
688
- }
689
- .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
690
- background-color: var(--color-sentiment-negative-secondary-active);
691
- }
692
- .wds-list-item-prompt.positive,
693
- .wds-list-item-prompt.discount,
694
- .wds-list-item-prompt.savings {
695
- background-color: var(--color-sentiment-positive-secondary);
696
- color: var(--color-sentiment-positive-primary);
697
- }
698
- .wds-list-item-prompt.positive a,
699
- .wds-list-item-prompt.discount a,
700
- .wds-list-item-prompt.savings a,
701
- .wds-list-item-prompt.positive button,
702
- .wds-list-item-prompt.discount button,
703
- .wds-list-item-prompt.savings button {
704
- color: var(--color-sentiment-positive-primary);
705
- }
706
- .wds-list-item-prompt.positive a:hover,
707
- .wds-list-item-prompt.discount a:hover,
708
- .wds-list-item-prompt.savings a:hover,
709
- .wds-list-item-prompt.positive button:hover,
710
- .wds-list-item-prompt.discount button:hover,
711
- .wds-list-item-prompt.savings button:hover {
712
- color: var(--color-sentiment-positive-primary-hover);
713
- }
714
- .wds-list-item-prompt.positive a:active,
715
- .wds-list-item-prompt.discount a:active,
716
- .wds-list-item-prompt.savings a:active,
717
- .wds-list-item-prompt.positive button:active,
718
- .wds-list-item-prompt.discount button:active,
719
- .wds-list-item-prompt.savings button:active {
720
- color: var(--color-sentiment-positive-primary-active);
721
- }
722
- .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
723
- .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
724
- .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
725
- background-color: var(--color-sentiment-positive-secondary-hover);
726
- }
727
- .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
728
- .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
729
- .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
730
- background-color: var(--color-sentiment-positive-secondary-active);
731
- }
732
- .wds-list-item-prompt.neutral {
733
- background-color: rgba(134,167,189,0.10196);
734
- background-color: var(--color-background-neutral);
735
- color: #37517e;
736
- color: var(--color-content-primary);
737
- }
738
- .wds-list-item-prompt.neutral a,
739
- .wds-list-item-prompt.neutral button {
740
- color: #37517e;
741
- color: var(--color-content-primary);
742
- }
743
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
744
- background-color: var(--color-background-neutral-hover);
745
- }
746
- .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
747
- background-color: var(--color-background-neutral-active);
748
- }
749
- .wds-list-item-prompt.warning {
750
- background-color: var(--color-sentiment-warning-secondary);
751
- color: var(--color-sentiment-warning-content);
752
- }
753
- .wds-list-item-prompt.warning a,
754
- .wds-list-item-prompt.warning button {
755
- color: var(--color-sentiment-warning-content);
756
- }
757
- .wds-list-item-prompt.warning a:hover,
758
- .wds-list-item-prompt.warning button:hover {
759
- color: var(--color-sentiment-warning-content-hover);
760
- }
761
- .wds-list-item-prompt.warning a:active,
762
- .wds-list-item-prompt.warning button:active {
763
- color: var(--color-sentiment-warning-content-active);
764
- }
765
- .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
766
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
767
- }
768
- .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
769
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
770
- }