@transferwise/components 46.107.0 → 46.108.0
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/build/header/Header.js +1 -0
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +1 -0
- package/build/header/Header.mjs.map +1 -1
- package/build/link/Link.js +6 -2
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs +6 -2
- package/build/link/Link.mjs.map +1 -1
- package/build/listItem/ListItem.js +20 -8
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +20 -8
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/ListItemContext.js.map +1 -1
- package/build/listItem/ListItemContext.mjs.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.js +1 -3
- package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs +2 -4
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/listItem/Prompt/InlinePrompt/InlinePrompt.js +74 -0
- package/build/listItem/Prompt/InlinePrompt/InlinePrompt.js.map +1 -0
- package/build/listItem/Prompt/InlinePrompt/InlinePrompt.mjs +72 -0
- package/build/listItem/Prompt/InlinePrompt/InlinePrompt.mjs.map +1 -0
- package/build/listItem/Prompt/ListItemPrompt.js +10 -15
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +11 -16
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/main.css +94 -74
- package/build/styles/link/Link.css +7 -0
- package/build/styles/listItem/ListItem.css +87 -74
- package/build/styles/listItem/Prompt/InlinePrompt/InlinePrompt.css +153 -0
- package/build/styles/listItem/Prompt/ListItemPrompt.css +72 -72
- package/build/styles/main.css +94 -74
- package/build/types/header/Header.d.ts +1 -0
- package/build/types/header/Header.d.ts.map +1 -1
- package/build/types/link/Link.d.ts +1 -1
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/listItem/ListItem.d.ts +10 -1
- package/build/types/listItem/ListItem.d.ts.map +1 -1
- package/build/types/listItem/ListItemContext.d.ts +2 -1
- package/build/types/listItem/ListItemContext.d.ts.map +1 -1
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +1 -1
- package/build/types/listItem/Prompt/InlinePrompt/InlinePrompt.d.ts +15 -0
- package/build/types/listItem/Prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -0
- package/build/types/listItem/Prompt/InlinePrompt/index.d.ts +3 -0
- package/build/types/listItem/Prompt/InlinePrompt/index.d.ts.map +1 -0
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts +4 -6
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -1
- package/build/types/listItem/_stories/helpers.d.ts.map +1 -1
- package/build/types/listItem/_stories/subcomponents.d.ts +1 -0
- package/build/types/listItem/_stories/subcomponents.d.ts.map +1 -1
- package/build/types/listItem/useListItemControl.d.ts +1 -1
- package/package.json +3 -3
- package/src/header/Header.story.tsx +14 -0
- package/src/header/Header.tsx +2 -0
- package/src/link/Link.css +7 -0
- package/src/link/Link.less +8 -0
- package/src/link/Link.spec.tsx +28 -0
- package/src/link/Link.story.tsx +72 -16
- package/src/link/Link.tsx +5 -1
- package/src/listItem/ListItem.css +87 -74
- package/src/listItem/ListItem.less +19 -4
- package/src/listItem/ListItem.spec.tsx +33 -0
- package/src/listItem/ListItem.tsx +38 -12
- package/src/listItem/ListItemContext.tsx +2 -1
- package/src/listItem/Navigation/ListItemNavigation.spec.tsx +1 -10
- package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -22
- package/src/listItem/Navigation/ListItemNavigation.tsx +2 -3
- package/src/listItem/Prompt/InlinePrompt/InlinePrompt.css +153 -0
- package/src/listItem/Prompt/InlinePrompt/InlinePrompt.less +162 -0
- package/src/listItem/Prompt/InlinePrompt/InlinePrompt.spec.tsx +66 -0
- package/src/listItem/Prompt/InlinePrompt/InlinePrompt.tsx +56 -0
- package/src/listItem/Prompt/InlinePrompt/index.ts +2 -0
- package/src/listItem/Prompt/ListItemPrompt.css +72 -72
- package/src/listItem/Prompt/ListItemPrompt.less +2 -130
- package/src/listItem/Prompt/ListItemPrompt.spec.tsx +36 -0
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +4 -2
- package/src/listItem/Prompt/ListItemPrompt.tsx +14 -14
- package/src/listItem/_stories/ListItem.disabled.story.tsx +433 -0
- package/src/listItem/_stories/ListItem.story.tsx +1 -177
- package/src/listItem/_stories/helpers.tsx +1 -0
- package/src/listItem/_stories/subcomponents.tsx +5 -0
- package/src/main.css +94 -74
package/build/main.css
CHANGED
|
@@ -3026,10 +3026,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3026
3026
|
margin-top: var(--size-4);
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
|
-
.wds-
|
|
3030
|
-
grid-area: prompt;
|
|
3029
|
+
.wds-inline-prompt {
|
|
3031
3030
|
display: inline-flex;
|
|
3032
|
-
justify-self: start;
|
|
3033
3031
|
text-align: left;
|
|
3034
3032
|
padding-top: calc(8px / 2);
|
|
3035
3033
|
padding-top: calc(var(--padding-x-small) / 2);
|
|
@@ -3044,33 +3042,27 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3044
3042
|
word-break: break-word;
|
|
3045
3043
|
word-wrap: break-word;
|
|
3046
3044
|
}
|
|
3047
|
-
.wds-
|
|
3048
|
-
.wds-
|
|
3045
|
+
.wds-inline-prompt:has(a),
|
|
3046
|
+
.wds-inline-prompt:has(button) {
|
|
3049
3047
|
position: relative;
|
|
3050
3048
|
z-index: 1;
|
|
3051
3049
|
}
|
|
3052
|
-
.wds-
|
|
3053
|
-
.
|
|
3050
|
+
.wds-inline-prompt--muted {
|
|
3051
|
+
opacity: 0.93;
|
|
3052
|
+
filter: grayscale(1);
|
|
3053
|
+
}
|
|
3054
|
+
.wds-inline-prompt a,
|
|
3055
|
+
.wds-inline-prompt button {
|
|
3054
3056
|
text-underline-offset: calc(4px / 2);
|
|
3055
3057
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
3056
3058
|
}
|
|
3057
|
-
.wds-
|
|
3058
|
-
.wds-
|
|
3059
|
+
.wds-inline-prompt a:first-of-type:before,
|
|
3060
|
+
.wds-inline-prompt button:first-of-type:before {
|
|
3059
3061
|
content: '';
|
|
3060
3062
|
position: absolute;
|
|
3061
3063
|
inset: 0;
|
|
3062
3064
|
}
|
|
3063
|
-
.wds-
|
|
3064
|
-
padding-left: calc(8px - 1px);
|
|
3065
|
-
padding-left: calc(var(--padding-x-small) - 1px);
|
|
3066
|
-
padding-right: 8px;
|
|
3067
|
-
padding-right: var(--padding-x-small);
|
|
3068
|
-
display: inline-flex;
|
|
3069
|
-
align-items: center;
|
|
3070
|
-
gap: 4px;
|
|
3071
|
-
gap: var(--size-4);
|
|
3072
|
-
}
|
|
3073
|
-
.wds-list-item-prompt .np-prompt-icon {
|
|
3065
|
+
.wds-inline-prompt__media-wrapper {
|
|
3074
3066
|
padding-right: calc(12px / 2);
|
|
3075
3067
|
padding-right: calc(var(--size-12) / 2);
|
|
3076
3068
|
padding-top: calc(4px - 1px);
|
|
@@ -3078,111 +3070,119 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3078
3070
|
padding-bottom: calc(4px - 1px);
|
|
3079
3071
|
padding-bottom: calc(var(--size-4) - 1px);
|
|
3080
3072
|
}
|
|
3081
|
-
.wds-
|
|
3082
|
-
.wds-
|
|
3073
|
+
.wds-inline-prompt__media-wrapper .tw-icon-tags,
|
|
3074
|
+
.wds-inline-prompt__media-wrapper .tw-icon-confetti {
|
|
3083
3075
|
color: var(--color-sentiment-positive-primary);
|
|
3084
3076
|
}
|
|
3085
|
-
.wds-
|
|
3077
|
+
.wds-inline-prompt--negative {
|
|
3086
3078
|
background-color: var(--color-sentiment-negative-secondary);
|
|
3087
3079
|
color: var(--color-sentiment-negative-primary);
|
|
3088
3080
|
}
|
|
3089
|
-
.wds-
|
|
3090
|
-
.wds-
|
|
3081
|
+
.wds-inline-prompt--negative a,
|
|
3082
|
+
.wds-inline-prompt--negative button {
|
|
3091
3083
|
color: var(--color-sentiment-negative-primary);
|
|
3092
3084
|
}
|
|
3093
|
-
.wds-
|
|
3094
|
-
.wds-
|
|
3085
|
+
.wds-inline-prompt--negative a:hover,
|
|
3086
|
+
.wds-inline-prompt--negative button:hover {
|
|
3095
3087
|
color: var(--color-sentiment-negative-primary-hover);
|
|
3096
3088
|
}
|
|
3097
|
-
.wds-
|
|
3098
|
-
.wds-
|
|
3089
|
+
.wds-inline-prompt--negative a:active,
|
|
3090
|
+
.wds-inline-prompt--negative button:active {
|
|
3099
3091
|
color: var(--color-sentiment-negative-primary-active);
|
|
3100
3092
|
}
|
|
3101
|
-
.wds-
|
|
3093
|
+
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
|
|
3102
3094
|
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
3103
3095
|
}
|
|
3104
|
-
.wds-
|
|
3096
|
+
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
|
|
3105
3097
|
background-color: var(--color-sentiment-negative-secondary-active);
|
|
3106
3098
|
}
|
|
3107
|
-
.wds-
|
|
3108
|
-
.wds-list-item-prompt.discount,
|
|
3109
|
-
.wds-list-item-prompt.savings {
|
|
3099
|
+
.wds-inline-prompt--positive {
|
|
3110
3100
|
background-color: var(--color-sentiment-positive-secondary);
|
|
3111
3101
|
color: var(--color-sentiment-positive-primary);
|
|
3112
3102
|
}
|
|
3113
|
-
.wds-
|
|
3114
|
-
.wds-
|
|
3115
|
-
.wds-list-item-prompt.savings a,
|
|
3116
|
-
.wds-list-item-prompt.positive button,
|
|
3117
|
-
.wds-list-item-prompt.discount button,
|
|
3118
|
-
.wds-list-item-prompt.savings button {
|
|
3103
|
+
.wds-inline-prompt--positive a,
|
|
3104
|
+
.wds-inline-prompt--positive button {
|
|
3119
3105
|
color: var(--color-sentiment-positive-primary);
|
|
3120
3106
|
}
|
|
3121
|
-
.wds-
|
|
3122
|
-
.wds-
|
|
3123
|
-
.wds-list-item-prompt.savings a:hover,
|
|
3124
|
-
.wds-list-item-prompt.positive button:hover,
|
|
3125
|
-
.wds-list-item-prompt.discount button:hover,
|
|
3126
|
-
.wds-list-item-prompt.savings button:hover {
|
|
3107
|
+
.wds-inline-prompt--positive a:hover,
|
|
3108
|
+
.wds-inline-prompt--positive button:hover {
|
|
3127
3109
|
color: var(--color-sentiment-positive-primary-hover);
|
|
3128
3110
|
}
|
|
3129
|
-
.wds-
|
|
3130
|
-
.wds-
|
|
3131
|
-
.wds-list-item-prompt.savings a:active,
|
|
3132
|
-
.wds-list-item-prompt.positive button:active,
|
|
3133
|
-
.wds-list-item-prompt.discount button:active,
|
|
3134
|
-
.wds-list-item-prompt.savings button:active {
|
|
3111
|
+
.wds-inline-prompt--positive a:active,
|
|
3112
|
+
.wds-inline-prompt--positive button:active {
|
|
3135
3113
|
color: var(--color-sentiment-positive-primary-active);
|
|
3136
3114
|
}
|
|
3137
|
-
.wds-
|
|
3138
|
-
.wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
|
|
3139
|
-
.wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
|
|
3115
|
+
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):hover {
|
|
3140
3116
|
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
3141
3117
|
}
|
|
3142
|
-
.wds-
|
|
3143
|
-
.wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
|
|
3144
|
-
.wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
|
|
3118
|
+
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
|
|
3145
3119
|
background-color: var(--color-sentiment-positive-secondary-active);
|
|
3146
3120
|
}
|
|
3147
|
-
.wds-
|
|
3121
|
+
.wds-inline-prompt--proposition {
|
|
3122
|
+
background-color: var(--color-sentiment-positive-secondary);
|
|
3123
|
+
color: var(--color-sentiment-positive-primary);
|
|
3124
|
+
}
|
|
3125
|
+
.wds-inline-prompt--proposition a,
|
|
3126
|
+
.wds-inline-prompt--proposition button {
|
|
3127
|
+
color: var(--color-sentiment-positive-primary);
|
|
3128
|
+
}
|
|
3129
|
+
.wds-inline-prompt--proposition a:hover,
|
|
3130
|
+
.wds-inline-prompt--proposition button:hover {
|
|
3131
|
+
color: var(--color-sentiment-positive-primary-hover);
|
|
3132
|
+
}
|
|
3133
|
+
.wds-inline-prompt--proposition a:active,
|
|
3134
|
+
.wds-inline-prompt--proposition button:active {
|
|
3135
|
+
color: var(--color-sentiment-positive-primary-active);
|
|
3136
|
+
}
|
|
3137
|
+
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
|
|
3138
|
+
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
3139
|
+
}
|
|
3140
|
+
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):active {
|
|
3141
|
+
background-color: var(--color-sentiment-positive-secondary-active);
|
|
3142
|
+
}
|
|
3143
|
+
.wds-inline-prompt--neutral {
|
|
3148
3144
|
background-color: rgba(134,167,189,0.10196);
|
|
3149
3145
|
background-color: var(--color-background-neutral);
|
|
3150
3146
|
color: #37517e;
|
|
3151
3147
|
color: var(--color-content-primary);
|
|
3152
3148
|
}
|
|
3153
|
-
.wds-
|
|
3154
|
-
.wds-
|
|
3149
|
+
.wds-inline-prompt--neutral a,
|
|
3150
|
+
.wds-inline-prompt--neutral button {
|
|
3155
3151
|
color: #37517e;
|
|
3156
3152
|
color: var(--color-content-primary);
|
|
3157
3153
|
}
|
|
3158
|
-
.wds-
|
|
3154
|
+
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
|
|
3159
3155
|
background-color: var(--color-background-neutral-hover);
|
|
3160
3156
|
}
|
|
3161
|
-
.wds-
|
|
3157
|
+
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
|
|
3162
3158
|
background-color: var(--color-background-neutral-active);
|
|
3163
3159
|
}
|
|
3164
|
-
.wds-
|
|
3160
|
+
.wds-inline-prompt--warning {
|
|
3165
3161
|
background-color: var(--color-sentiment-warning-secondary);
|
|
3166
3162
|
color: var(--color-sentiment-warning-content);
|
|
3167
3163
|
}
|
|
3168
|
-
.wds-
|
|
3169
|
-
.wds-
|
|
3164
|
+
.wds-inline-prompt--warning a,
|
|
3165
|
+
.wds-inline-prompt--warning button {
|
|
3170
3166
|
color: var(--color-sentiment-warning-content);
|
|
3171
3167
|
}
|
|
3172
|
-
.wds-
|
|
3173
|
-
.wds-
|
|
3168
|
+
.wds-inline-prompt--warning a:hover,
|
|
3169
|
+
.wds-inline-prompt--warning button:hover {
|
|
3174
3170
|
color: var(--color-sentiment-warning-content-hover);
|
|
3175
3171
|
}
|
|
3176
|
-
.wds-
|
|
3177
|
-
.wds-
|
|
3172
|
+
.wds-inline-prompt--warning a:active,
|
|
3173
|
+
.wds-inline-prompt--warning button:active {
|
|
3178
3174
|
color: var(--color-sentiment-warning-content-active);
|
|
3179
3175
|
}
|
|
3180
|
-
.wds-
|
|
3176
|
+
.wds-inline-prompt.wds-inline-prompt--warning:has(a, button):hover {
|
|
3181
3177
|
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
|
|
3182
3178
|
}
|
|
3183
|
-
.wds-
|
|
3179
|
+
.wds-inline-prompt.wds-inline-prompt--warning:has(a, button):active {
|
|
3184
3180
|
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
|
|
3185
3181
|
}
|
|
3182
|
+
.wds-list-item-prompt {
|
|
3183
|
+
grid-area: prompt;
|
|
3184
|
+
justify-self: start;
|
|
3185
|
+
}
|
|
3186
3186
|
.wds-list-item {
|
|
3187
3187
|
list-style: none;
|
|
3188
3188
|
width: 100%;
|
|
@@ -3364,16 +3364,29 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3364
3364
|
flex: 0 0 auto;
|
|
3365
3365
|
}
|
|
3366
3366
|
.wds-list-item.disabled {
|
|
3367
|
-
filter: none;
|
|
3368
3367
|
opacity: 1;
|
|
3368
|
+
opacity: initial;
|
|
3369
3369
|
}
|
|
3370
|
+
.wds-list-item.disabled,
|
|
3370
3371
|
.wds-list-item.disabled label {
|
|
3371
3372
|
cursor: not-allowed;
|
|
3372
3373
|
}
|
|
3373
|
-
.wds-list-item.disabled .
|
|
3374
|
+
.wds-list-item.disabled .wds-list-item-title,
|
|
3375
|
+
.wds-list-item.disabled .wds-list-item-title-value,
|
|
3376
|
+
.wds-list-item.disabled .wds-list-item-subtitle,
|
|
3377
|
+
.wds-list-item.disabled .wds-list-item-subtitle-value,
|
|
3378
|
+
.wds-list-item.disabled .wds-list-item-additional-info {
|
|
3374
3379
|
color: #768e9c;
|
|
3375
3380
|
color: var(--color-content-tertiary);
|
|
3376
3381
|
}
|
|
3382
|
+
.wds-list-item.disabled .wds-list-item-media,
|
|
3383
|
+
.wds-list-item.disabled .wds-list-item-body,
|
|
3384
|
+
.wds-list-item.disabled .wds-list-item-additional-info {
|
|
3385
|
+
opacity: 0.93;
|
|
3386
|
+
}
|
|
3387
|
+
.wds-list-item.disabled--has-prompt-reason .wds-list-item-prompt {
|
|
3388
|
+
opacity: 0.93;
|
|
3389
|
+
}
|
|
3377
3390
|
.wds-list-item-spotlight {
|
|
3378
3391
|
padding-left: 12px;
|
|
3379
3392
|
padding-left: var(--size-12);
|
|
@@ -3932,6 +3945,13 @@ button.np-link {
|
|
|
3932
3945
|
margin-left: 0;
|
|
3933
3946
|
margin-left: initial;
|
|
3934
3947
|
}
|
|
3948
|
+
.np-link.np-link--disabled,
|
|
3949
|
+
.np-link:disabled {
|
|
3950
|
+
filter: none;
|
|
3951
|
+
mix-blend-mode: luminosity;
|
|
3952
|
+
opacity: 0.45;
|
|
3953
|
+
cursor: not-allowed;
|
|
3954
|
+
}
|
|
3935
3955
|
:root {
|
|
3936
3956
|
--coin-colour: #1c3108;
|
|
3937
3957
|
--coin-size: 4.5rem;
|
|
@@ -382,10 +382,8 @@
|
|
|
382
382
|
margin-top: var(--size-4);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
.wds-
|
|
386
|
-
grid-area: prompt;
|
|
385
|
+
.wds-inline-prompt {
|
|
387
386
|
display: inline-flex;
|
|
388
|
-
justify-self: start;
|
|
389
387
|
text-align: left;
|
|
390
388
|
padding-top: calc(8px / 2);
|
|
391
389
|
padding-top: calc(var(--padding-x-small) / 2);
|
|
@@ -400,33 +398,27 @@
|
|
|
400
398
|
word-break: break-word;
|
|
401
399
|
word-wrap: break-word;
|
|
402
400
|
}
|
|
403
|
-
.wds-
|
|
404
|
-
.wds-
|
|
401
|
+
.wds-inline-prompt:has(a),
|
|
402
|
+
.wds-inline-prompt:has(button) {
|
|
405
403
|
position: relative;
|
|
406
404
|
z-index: 1;
|
|
407
405
|
}
|
|
408
|
-
.wds-
|
|
409
|
-
.
|
|
406
|
+
.wds-inline-prompt--muted {
|
|
407
|
+
opacity: 0.93;
|
|
408
|
+
filter: grayscale(1);
|
|
409
|
+
}
|
|
410
|
+
.wds-inline-prompt a,
|
|
411
|
+
.wds-inline-prompt button {
|
|
410
412
|
text-underline-offset: calc(4px / 2);
|
|
411
413
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
412
414
|
}
|
|
413
|
-
.wds-
|
|
414
|
-
.wds-
|
|
415
|
+
.wds-inline-prompt a:first-of-type:before,
|
|
416
|
+
.wds-inline-prompt button:first-of-type:before {
|
|
415
417
|
content: '';
|
|
416
418
|
position: absolute;
|
|
417
419
|
inset: 0;
|
|
418
420
|
}
|
|
419
|
-
.wds-
|
|
420
|
-
padding-left: calc(8px - 1px);
|
|
421
|
-
padding-left: calc(var(--padding-x-small) - 1px);
|
|
422
|
-
padding-right: 8px;
|
|
423
|
-
padding-right: var(--padding-x-small);
|
|
424
|
-
display: inline-flex;
|
|
425
|
-
align-items: center;
|
|
426
|
-
gap: 4px;
|
|
427
|
-
gap: var(--size-4);
|
|
428
|
-
}
|
|
429
|
-
.wds-list-item-prompt .np-prompt-icon {
|
|
421
|
+
.wds-inline-prompt__media-wrapper {
|
|
430
422
|
padding-right: calc(12px / 2);
|
|
431
423
|
padding-right: calc(var(--size-12) / 2);
|
|
432
424
|
padding-top: calc(4px - 1px);
|
|
@@ -434,111 +426,119 @@
|
|
|
434
426
|
padding-bottom: calc(4px - 1px);
|
|
435
427
|
padding-bottom: calc(var(--size-4) - 1px);
|
|
436
428
|
}
|
|
437
|
-
.wds-
|
|
438
|
-
.wds-
|
|
429
|
+
.wds-inline-prompt__media-wrapper .tw-icon-tags,
|
|
430
|
+
.wds-inline-prompt__media-wrapper .tw-icon-confetti {
|
|
439
431
|
color: var(--color-sentiment-positive-primary);
|
|
440
432
|
}
|
|
441
|
-
.wds-
|
|
433
|
+
.wds-inline-prompt--negative {
|
|
442
434
|
background-color: var(--color-sentiment-negative-secondary);
|
|
443
435
|
color: var(--color-sentiment-negative-primary);
|
|
444
436
|
}
|
|
445
|
-
.wds-
|
|
446
|
-
.wds-
|
|
437
|
+
.wds-inline-prompt--negative a,
|
|
438
|
+
.wds-inline-prompt--negative button {
|
|
447
439
|
color: var(--color-sentiment-negative-primary);
|
|
448
440
|
}
|
|
449
|
-
.wds-
|
|
450
|
-
.wds-
|
|
441
|
+
.wds-inline-prompt--negative a:hover,
|
|
442
|
+
.wds-inline-prompt--negative button:hover {
|
|
451
443
|
color: var(--color-sentiment-negative-primary-hover);
|
|
452
444
|
}
|
|
453
|
-
.wds-
|
|
454
|
-
.wds-
|
|
445
|
+
.wds-inline-prompt--negative a:active,
|
|
446
|
+
.wds-inline-prompt--negative button:active {
|
|
455
447
|
color: var(--color-sentiment-negative-primary-active);
|
|
456
448
|
}
|
|
457
|
-
.wds-
|
|
449
|
+
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
|
|
458
450
|
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
459
451
|
}
|
|
460
|
-
.wds-
|
|
452
|
+
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
|
|
461
453
|
background-color: var(--color-sentiment-negative-secondary-active);
|
|
462
454
|
}
|
|
463
|
-
.wds-
|
|
464
|
-
|
|
465
|
-
|
|
455
|
+
.wds-inline-prompt--positive {
|
|
456
|
+
background-color: var(--color-sentiment-positive-secondary);
|
|
457
|
+
color: var(--color-sentiment-positive-primary);
|
|
458
|
+
}
|
|
459
|
+
.wds-inline-prompt--positive a,
|
|
460
|
+
.wds-inline-prompt--positive button {
|
|
461
|
+
color: var(--color-sentiment-positive-primary);
|
|
462
|
+
}
|
|
463
|
+
.wds-inline-prompt--positive a:hover,
|
|
464
|
+
.wds-inline-prompt--positive button:hover {
|
|
465
|
+
color: var(--color-sentiment-positive-primary-hover);
|
|
466
|
+
}
|
|
467
|
+
.wds-inline-prompt--positive a:active,
|
|
468
|
+
.wds-inline-prompt--positive button:active {
|
|
469
|
+
color: var(--color-sentiment-positive-primary-active);
|
|
470
|
+
}
|
|
471
|
+
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):hover {
|
|
472
|
+
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
473
|
+
}
|
|
474
|
+
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
|
|
475
|
+
background-color: var(--color-sentiment-positive-secondary-active);
|
|
476
|
+
}
|
|
477
|
+
.wds-inline-prompt--proposition {
|
|
466
478
|
background-color: var(--color-sentiment-positive-secondary);
|
|
467
479
|
color: var(--color-sentiment-positive-primary);
|
|
468
480
|
}
|
|
469
|
-
.wds-
|
|
470
|
-
.wds-
|
|
471
|
-
.wds-list-item-prompt.savings a,
|
|
472
|
-
.wds-list-item-prompt.positive button,
|
|
473
|
-
.wds-list-item-prompt.discount button,
|
|
474
|
-
.wds-list-item-prompt.savings button {
|
|
481
|
+
.wds-inline-prompt--proposition a,
|
|
482
|
+
.wds-inline-prompt--proposition button {
|
|
475
483
|
color: var(--color-sentiment-positive-primary);
|
|
476
484
|
}
|
|
477
|
-
.wds-
|
|
478
|
-
.wds-
|
|
479
|
-
.wds-list-item-prompt.savings a:hover,
|
|
480
|
-
.wds-list-item-prompt.positive button:hover,
|
|
481
|
-
.wds-list-item-prompt.discount button:hover,
|
|
482
|
-
.wds-list-item-prompt.savings button:hover {
|
|
485
|
+
.wds-inline-prompt--proposition a:hover,
|
|
486
|
+
.wds-inline-prompt--proposition button:hover {
|
|
483
487
|
color: var(--color-sentiment-positive-primary-hover);
|
|
484
488
|
}
|
|
485
|
-
.wds-
|
|
486
|
-
.wds-
|
|
487
|
-
.wds-list-item-prompt.savings a:active,
|
|
488
|
-
.wds-list-item-prompt.positive button:active,
|
|
489
|
-
.wds-list-item-prompt.discount button:active,
|
|
490
|
-
.wds-list-item-prompt.savings button:active {
|
|
489
|
+
.wds-inline-prompt--proposition a:active,
|
|
490
|
+
.wds-inline-prompt--proposition button:active {
|
|
491
491
|
color: var(--color-sentiment-positive-primary-active);
|
|
492
492
|
}
|
|
493
|
-
.wds-
|
|
494
|
-
.wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
|
|
495
|
-
.wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
|
|
493
|
+
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
|
|
496
494
|
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
497
495
|
}
|
|
498
|
-
.wds-
|
|
499
|
-
.wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
|
|
500
|
-
.wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
|
|
496
|
+
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):active {
|
|
501
497
|
background-color: var(--color-sentiment-positive-secondary-active);
|
|
502
498
|
}
|
|
503
|
-
.wds-
|
|
499
|
+
.wds-inline-prompt--neutral {
|
|
504
500
|
background-color: rgba(134,167,189,0.10196);
|
|
505
501
|
background-color: var(--color-background-neutral);
|
|
506
502
|
color: #37517e;
|
|
507
503
|
color: var(--color-content-primary);
|
|
508
504
|
}
|
|
509
|
-
.wds-
|
|
510
|
-
.wds-
|
|
505
|
+
.wds-inline-prompt--neutral a,
|
|
506
|
+
.wds-inline-prompt--neutral button {
|
|
511
507
|
color: #37517e;
|
|
512
508
|
color: var(--color-content-primary);
|
|
513
509
|
}
|
|
514
|
-
.wds-
|
|
510
|
+
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
|
|
515
511
|
background-color: var(--color-background-neutral-hover);
|
|
516
512
|
}
|
|
517
|
-
.wds-
|
|
513
|
+
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
|
|
518
514
|
background-color: var(--color-background-neutral-active);
|
|
519
515
|
}
|
|
520
|
-
.wds-
|
|
516
|
+
.wds-inline-prompt--warning {
|
|
521
517
|
background-color: var(--color-sentiment-warning-secondary);
|
|
522
518
|
color: var(--color-sentiment-warning-content);
|
|
523
519
|
}
|
|
524
|
-
.wds-
|
|
525
|
-
.wds-
|
|
520
|
+
.wds-inline-prompt--warning a,
|
|
521
|
+
.wds-inline-prompt--warning button {
|
|
526
522
|
color: var(--color-sentiment-warning-content);
|
|
527
523
|
}
|
|
528
|
-
.wds-
|
|
529
|
-
.wds-
|
|
524
|
+
.wds-inline-prompt--warning a:hover,
|
|
525
|
+
.wds-inline-prompt--warning button:hover {
|
|
530
526
|
color: var(--color-sentiment-warning-content-hover);
|
|
531
527
|
}
|
|
532
|
-
.wds-
|
|
533
|
-
.wds-
|
|
528
|
+
.wds-inline-prompt--warning a:active,
|
|
529
|
+
.wds-inline-prompt--warning button:active {
|
|
534
530
|
color: var(--color-sentiment-warning-content-active);
|
|
535
531
|
}
|
|
536
|
-
.wds-
|
|
532
|
+
.wds-inline-prompt.wds-inline-prompt--warning:has(a, button):hover {
|
|
537
533
|
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
|
|
538
534
|
}
|
|
539
|
-
.wds-
|
|
535
|
+
.wds-inline-prompt.wds-inline-prompt--warning:has(a, button):active {
|
|
540
536
|
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
|
|
541
537
|
}
|
|
538
|
+
.wds-list-item-prompt {
|
|
539
|
+
grid-area: prompt;
|
|
540
|
+
justify-self: start;
|
|
541
|
+
}
|
|
542
542
|
.wds-list-item {
|
|
543
543
|
list-style: none;
|
|
544
544
|
width: 100%;
|
|
@@ -720,16 +720,29 @@
|
|
|
720
720
|
flex: 0 0 auto;
|
|
721
721
|
}
|
|
722
722
|
.wds-list-item.disabled {
|
|
723
|
-
filter: none;
|
|
724
723
|
opacity: 1;
|
|
724
|
+
opacity: initial;
|
|
725
725
|
}
|
|
726
|
+
.wds-list-item.disabled,
|
|
726
727
|
.wds-list-item.disabled label {
|
|
727
728
|
cursor: not-allowed;
|
|
728
729
|
}
|
|
729
|
-
.wds-list-item.disabled .
|
|
730
|
+
.wds-list-item.disabled .wds-list-item-title,
|
|
731
|
+
.wds-list-item.disabled .wds-list-item-title-value,
|
|
732
|
+
.wds-list-item.disabled .wds-list-item-subtitle,
|
|
733
|
+
.wds-list-item.disabled .wds-list-item-subtitle-value,
|
|
734
|
+
.wds-list-item.disabled .wds-list-item-additional-info {
|
|
730
735
|
color: #768e9c;
|
|
731
736
|
color: var(--color-content-tertiary);
|
|
732
737
|
}
|
|
738
|
+
.wds-list-item.disabled .wds-list-item-media,
|
|
739
|
+
.wds-list-item.disabled .wds-list-item-body,
|
|
740
|
+
.wds-list-item.disabled .wds-list-item-additional-info {
|
|
741
|
+
opacity: 0.93;
|
|
742
|
+
}
|
|
743
|
+
.wds-list-item.disabled--has-prompt-reason .wds-list-item-prompt {
|
|
744
|
+
opacity: 0.93;
|
|
745
|
+
}
|
|
733
746
|
.wds-list-item-spotlight {
|
|
734
747
|
padding-left: 12px;
|
|
735
748
|
padding-left: var(--size-12);
|