@transferwise/components 46.116.0 → 46.117.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/alert/Alert.js +2 -1
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +2 -1
- package/build/alert/Alert.mjs.map +1 -1
- package/build/main.css +60 -139
- package/build/prompt/InlinePrompt/InlinePrompt.js +14 -8
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs +15 -9
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/sentimentSurface/SentimentSurface.js +6 -5
- package/build/sentimentSurface/SentimentSurface.js.map +1 -1
- package/build/sentimentSurface/SentimentSurface.mjs +6 -5
- package/build/sentimentSurface/SentimentSurface.mjs.map +1 -1
- package/build/styles/button/Button.css +17 -17
- package/build/styles/button/Button.vars.css +16 -16
- package/build/styles/iconButton/IconButton.css +8 -8
- package/build/styles/inputs/Input.css +2 -4
- package/build/styles/inputs/TextArea.css +2 -4
- package/build/styles/link/Link.css +1 -0
- package/build/styles/main.css +60 -139
- package/build/styles/popover/Popover.css +2 -4
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +26 -105
- package/build/styles/sentimentSurface/SentimentSurface.css +4 -1
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +19 -3
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
- package/build/types/sentimentSurface/SentimentSurface.d.ts +5 -4
- package/build/types/sentimentSurface/SentimentSurface.d.ts.map +1 -1
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts +4 -16
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +24 -0
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/package.json +13 -12
- package/src/alert/Alert.tsx +3 -1
- package/src/button/Button.css +17 -17
- package/src/button/Button.less +1 -1
- package/src/button/Button.story.tsx +75 -110
- package/src/button/Button.tests.story.tsx +189 -0
- package/src/button/Button.vars.css +16 -16
- package/src/button/Button.vars.less +58 -18
- package/src/iconButton/IconButton.css +8 -8
- package/src/iconButton/IconButton.less +35 -4
- package/src/iconButton/IconButton.story.tsx +72 -3
- package/src/inputs/Input.css +2 -4
- package/src/inputs/TextArea.css +2 -4
- package/src/link/Link.css +1 -0
- package/src/link/Link.less +1 -0
- package/src/link/Link.story.tsx +28 -0
- package/src/main.css +60 -139
- package/src/popover/Popover.css +2 -4
- package/src/prompt/InlinePrompt/InlinePrompt.css +26 -105
- package/src/prompt/InlinePrompt/InlinePrompt.less +31 -119
- package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +87 -29
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +223 -31
- package/src/prompt/InlinePrompt/InlinePrompt.tsx +42 -11
- package/src/sentimentSurface/SentimentSurface.css +4 -1
- package/src/sentimentSurface/SentimentSurface.docs.mdx +37 -478
- package/src/sentimentSurface/SentimentSurface.less +118 -114
- package/src/sentimentSurface/SentimentSurface.spec.tsx +31 -11
- package/src/sentimentSurface/SentimentSurface.story.tsx +325 -147
- package/src/sentimentSurface/SentimentSurface.tests.story.tsx +85 -86
- package/src/sentimentSurface/SentimentSurface.tsx +16 -9
- package/src/sentimentSurface/SentimentSurface.types.ts +5 -20
- package/src/test-utils/story-config.ts +0 -1
- package/build/sentimentSurface/classMap.js +0 -17
- package/build/sentimentSurface/classMap.js.map +0 -1
- package/build/sentimentSurface/classMap.mjs +0 -14
- package/build/sentimentSurface/classMap.mjs.map +0 -1
- package/build/types/sentimentSurface/classMap.d.ts +0 -4
- package/build/types/sentimentSurface/classMap.d.ts.map +0 -1
- package/src/sentimentSurface/classMap.ts +0 -15
package/src/main.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
.wds-sentiment-surface {
|
|
2
|
+
--ring-outline-color: var(--color-sentiment-content-primary, var(--color-content-primary));
|
|
3
|
+
}
|
|
4
|
+
.wds-sentiment-surface--hasBaseStyles {
|
|
2
5
|
background-color: var(--color-sentiment-background-surface);
|
|
3
6
|
color: var(--color-sentiment-content-primary);
|
|
4
7
|
}
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
--color-sentiment-interactive-secondary-active: #A72027;
|
|
37
40
|
--color-sentiment-interactive-secondary-neutral: #9B141B;
|
|
38
41
|
--color-sentiment-interactive-secondary-neutral-hover: #831116;
|
|
39
|
-
--color-sentiment-interactive-secondary-neutral-active: #
|
|
42
|
+
--color-sentiment-interactive-secondary-neutral-active: #6D0e13;
|
|
40
43
|
--color-sentiment-interactive-control: #CB272F;
|
|
41
44
|
--color-sentiment-interactive-control-hover: #B8232B;
|
|
42
45
|
--color-sentiment-interactive-control-active: #A72027;
|
|
@@ -878,18 +881,35 @@
|
|
|
878
881
|
position: relative;
|
|
879
882
|
z-index: 1;
|
|
880
883
|
}
|
|
884
|
+
.wds-inline-prompt:has(a):hover,
|
|
885
|
+
.wds-inline-prompt:has(button):hover {
|
|
886
|
+
background-color: var(--color-sentiment-background-surface-hover);
|
|
887
|
+
}
|
|
888
|
+
.wds-inline-prompt:has(a):active,
|
|
889
|
+
.wds-inline-prompt:has(button):active {
|
|
890
|
+
background-color: var(--color-sentiment-background-surface-active);
|
|
891
|
+
}
|
|
881
892
|
.wds-inline-prompt--muted {
|
|
882
893
|
opacity: 0.93;
|
|
883
894
|
filter: grayscale(1);
|
|
884
895
|
}
|
|
885
896
|
.wds-inline-prompt a,
|
|
886
897
|
.wds-inline-prompt button {
|
|
898
|
+
color: var(--color-sentiment-content-primary);
|
|
887
899
|
text-underline-offset: calc(4px / 2);
|
|
888
900
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
889
901
|
}
|
|
902
|
+
.wds-inline-prompt a:hover,
|
|
903
|
+
.wds-inline-prompt button:hover {
|
|
904
|
+
color: var(--color-sentiment-content-primary-hover);
|
|
905
|
+
}
|
|
906
|
+
.wds-inline-prompt a:active,
|
|
907
|
+
.wds-inline-prompt button:active {
|
|
908
|
+
color: var(--color-sentiment-content-primary-active);
|
|
909
|
+
}
|
|
890
910
|
.wds-inline-prompt a:first-of-type:before,
|
|
891
911
|
.wds-inline-prompt button:first-of-type:before {
|
|
892
|
-
content:
|
|
912
|
+
content: "";
|
|
893
913
|
position: absolute;
|
|
894
914
|
inset: 0;
|
|
895
915
|
}
|
|
@@ -903,112 +923,16 @@
|
|
|
903
923
|
}
|
|
904
924
|
.wds-inline-prompt__media-wrapper .tw-icon-tags,
|
|
905
925
|
.wds-inline-prompt__media-wrapper .tw-icon-confetti {
|
|
906
|
-
color: var(--color-sentiment-
|
|
907
|
-
}
|
|
908
|
-
.wds-inline-prompt--negative {
|
|
909
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
910
|
-
color: var(--color-sentiment-negative-primary);
|
|
911
|
-
}
|
|
912
|
-
.wds-inline-prompt--negative a,
|
|
913
|
-
.wds-inline-prompt--negative button {
|
|
914
|
-
color: var(--color-sentiment-negative-primary);
|
|
915
|
-
}
|
|
916
|
-
.wds-inline-prompt--negative a:hover,
|
|
917
|
-
.wds-inline-prompt--negative button:hover {
|
|
918
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
919
|
-
}
|
|
920
|
-
.wds-inline-prompt--negative a:active,
|
|
921
|
-
.wds-inline-prompt--negative button:active {
|
|
922
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
923
|
-
}
|
|
924
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
|
|
925
|
-
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
926
|
-
}
|
|
927
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
|
|
928
|
-
background-color: var(--color-sentiment-negative-secondary-active);
|
|
929
|
-
}
|
|
930
|
-
.wds-inline-prompt--positive {
|
|
931
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
932
|
-
color: var(--color-sentiment-positive-primary);
|
|
933
|
-
}
|
|
934
|
-
.wds-inline-prompt--positive a,
|
|
935
|
-
.wds-inline-prompt--positive button {
|
|
936
|
-
color: var(--color-sentiment-positive-primary);
|
|
937
|
-
}
|
|
938
|
-
.wds-inline-prompt--positive a:hover,
|
|
939
|
-
.wds-inline-prompt--positive button:hover {
|
|
940
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
941
|
-
}
|
|
942
|
-
.wds-inline-prompt--positive a:active,
|
|
943
|
-
.wds-inline-prompt--positive button:active {
|
|
944
|
-
color: var(--color-sentiment-positive-primary-active);
|
|
945
|
-
}
|
|
946
|
-
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):hover {
|
|
947
|
-
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
948
|
-
}
|
|
949
|
-
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
|
|
950
|
-
background-color: var(--color-sentiment-positive-secondary-active);
|
|
951
|
-
}
|
|
952
|
-
.wds-inline-prompt--proposition {
|
|
953
|
-
background-color: #D2F9F7;
|
|
954
|
-
color: var(--color-interactive-primary);
|
|
955
|
-
}
|
|
956
|
-
.wds-inline-prompt--proposition a,
|
|
957
|
-
.wds-inline-prompt--proposition button {
|
|
958
|
-
color: var(--color-interactive-primary);
|
|
959
|
-
}
|
|
960
|
-
.wds-inline-prompt--proposition a:hover,
|
|
961
|
-
.wds-inline-prompt--proposition button:hover {
|
|
962
|
-
color: var(--color-interactive-primary-hover);
|
|
963
|
-
}
|
|
964
|
-
.wds-inline-prompt--proposition a:active,
|
|
965
|
-
.wds-inline-prompt--proposition button:active {
|
|
966
|
-
color: var(--color-interactive-primary-active);
|
|
967
|
-
}
|
|
968
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
|
|
969
|
-
background-color: #B2F4F3;
|
|
970
|
-
}
|
|
971
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):active {
|
|
972
|
-
background-color: #91F0EE;
|
|
973
|
-
}
|
|
974
|
-
.wds-inline-prompt--neutral {
|
|
975
|
-
background-color: rgba(134,167,189,0.10196);
|
|
976
|
-
background-color: var(--color-background-neutral);
|
|
977
|
-
color: #37517e;
|
|
978
|
-
color: var(--color-content-primary);
|
|
979
|
-
}
|
|
980
|
-
.wds-inline-prompt--neutral a,
|
|
981
|
-
.wds-inline-prompt--neutral button {
|
|
982
|
-
color: #37517e;
|
|
983
|
-
color: var(--color-content-primary);
|
|
984
|
-
}
|
|
985
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
|
|
986
|
-
background-color: var(--color-background-neutral-hover);
|
|
987
|
-
}
|
|
988
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
|
|
989
|
-
background-color: var(--color-background-neutral-active);
|
|
990
|
-
}
|
|
991
|
-
.wds-inline-prompt--warning {
|
|
992
|
-
background-color: var(--color-sentiment-warning-secondary);
|
|
993
|
-
color: var(--color-sentiment-warning-content);
|
|
994
|
-
}
|
|
995
|
-
.wds-inline-prompt--warning a,
|
|
996
|
-
.wds-inline-prompt--warning button {
|
|
997
|
-
color: var(--color-sentiment-warning-content);
|
|
998
|
-
}
|
|
999
|
-
.wds-inline-prompt--warning a:hover,
|
|
1000
|
-
.wds-inline-prompt--warning button:hover {
|
|
1001
|
-
color: var(--color-sentiment-warning-content-hover);
|
|
1002
|
-
}
|
|
1003
|
-
.wds-inline-prompt--warning a:active,
|
|
1004
|
-
.wds-inline-prompt--warning button:active {
|
|
1005
|
-
color: var(--color-sentiment-warning-content-active);
|
|
926
|
+
color: var(--color-sentiment-content-primary);
|
|
1006
927
|
}
|
|
1007
|
-
.wds-inline-prompt.wds-inline-prompt
|
|
1008
|
-
|
|
928
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
929
|
+
width: 16px;
|
|
930
|
+
width: var(--size-16);
|
|
931
|
+
height: 16px;
|
|
932
|
+
height: var(--size-16);
|
|
1009
933
|
}
|
|
1010
|
-
.wds-inline-prompt.wds-inline-prompt
|
|
1011
|
-
|
|
934
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
935
|
+
stroke: currentColor;
|
|
1012
936
|
}
|
|
1013
937
|
.np-dot {
|
|
1014
938
|
--np-dot-size: 14px;
|
|
@@ -1111,17 +1035,17 @@
|
|
|
1111
1035
|
background-color: var(--color-background-neutral-active);
|
|
1112
1036
|
}
|
|
1113
1037
|
.np-icon-button-primary-default {
|
|
1114
|
-
color: var(--color-interactive-control);
|
|
1038
|
+
color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
1115
1039
|
background-color: #00a2dd;
|
|
1116
|
-
background-color: var(--color-interactive-accent);
|
|
1040
|
+
background-color: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
1117
1041
|
}
|
|
1118
1042
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
1119
1043
|
background-color: #008fc9;
|
|
1120
|
-
background-color: var(--color-interactive-accent-hover);
|
|
1044
|
+
background-color: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
1121
1045
|
}
|
|
1122
1046
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
1123
1047
|
background-color: #0081ba;
|
|
1124
|
-
background-color: var(--color-interactive-accent-active);
|
|
1048
|
+
background-color: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
1125
1049
|
}
|
|
1126
1050
|
.np-icon-button-primary-negative {
|
|
1127
1051
|
color: var(--color-contrast-overlay);
|
|
@@ -1149,14 +1073,14 @@
|
|
|
1149
1073
|
background-color: var(--color-background-screen-active);
|
|
1150
1074
|
}
|
|
1151
1075
|
.np-icon-button-secondary-default {
|
|
1152
|
-
color: var(--color-interactive-primary);
|
|
1153
|
-
background-color: var(--color-interactive-neutral);
|
|
1076
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
1077
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
1154
1078
|
}
|
|
1155
1079
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
1156
|
-
background-color: var(--color-interactive-neutral-hover);
|
|
1080
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
1157
1081
|
}
|
|
1158
1082
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
1159
|
-
background-color: var(--color-interactive-neutral-active);
|
|
1083
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
1160
1084
|
}
|
|
1161
1085
|
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
1162
1086
|
.np-theme-personal--forest-green .np-icon-button-secondary-default {
|
|
@@ -1270,12 +1194,12 @@
|
|
|
1270
1194
|
pointer-events: auto;
|
|
1271
1195
|
}
|
|
1272
1196
|
.wds-Button {
|
|
1273
|
-
--Button-background: var(--color-interactive-accent);
|
|
1274
|
-
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
1275
|
-
--Button-background-active: var(--color-interactive-accent-active);
|
|
1276
|
-
--Button-color: var(--color-interactive-control);
|
|
1277
|
-
--Button-color-hover: var(--color-interactive-control-hover);
|
|
1278
|
-
--Button-color-active: var(--color-interactive-control-active);
|
|
1197
|
+
--Button-background: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
1198
|
+
--Button-background-hover: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
1199
|
+
--Button-background-active: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
1200
|
+
--Button-color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
1201
|
+
--Button-color-hover: var(--color-sentiment-interactive-control-hover, var(--color-interactive-control-hover));
|
|
1202
|
+
--Button-color-active: var(--color-sentiment-interactive-control-active, var(--color-interactive-control-active));
|
|
1279
1203
|
--Button-border-radius: var(--radius-full);
|
|
1280
1204
|
--Button-label-gap: var(--size-4);
|
|
1281
1205
|
--Button-large-padding: var(--size-12) var(--size-16);
|
|
@@ -1284,16 +1208,16 @@
|
|
|
1284
1208
|
--Button-avatar-border-color: var(--color-border-neutral);
|
|
1285
1209
|
--Button-transition-duration: 150ms;
|
|
1286
1210
|
--Button-transition-easing: ease-in-out;
|
|
1287
|
-
--Button-secondary-background: var(--color-interactive-neutral);
|
|
1288
|
-
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
1289
|
-
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
1290
|
-
--Button-secondary-color: var(--color-interactive-primary);
|
|
1291
|
-
--Button-secondary-color-hover: var(--color-interactive-primary-hover);
|
|
1292
|
-
--Button-secondary-color-active: var(--color-interactive-primary-active);
|
|
1293
|
-
--Button-secondary-neutral-background: var(--color-background-neutral);
|
|
1294
|
-
--Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
|
|
1295
|
-
--Button-secondary-neutral-background-active: var(--color-background-neutral-active);
|
|
1296
|
-
--Button-secondary-neutral-color: var(--color-content-primary);
|
|
1211
|
+
--Button-secondary-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
1212
|
+
--Button-secondary-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
1213
|
+
--Button-secondary-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
1214
|
+
--Button-secondary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
1215
|
+
--Button-secondary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
|
|
1216
|
+
--Button-secondary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
|
|
1217
|
+
--Button-secondary-neutral-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-neutral));
|
|
1218
|
+
--Button-secondary-neutral-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-neutral-hover));
|
|
1219
|
+
--Button-secondary-neutral-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-neutral-active));
|
|
1220
|
+
--Button-secondary-neutral-color: var(--color-sentiment-content-primary, var(--color-content-primary));
|
|
1297
1221
|
--Button-tertiary-background: transparent;
|
|
1298
1222
|
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
1299
1223
|
--Button-tertiary-background-active: var(--color-background-screen-active);
|
|
@@ -1384,7 +1308,7 @@
|
|
|
1384
1308
|
--Button-color-active: var(--Button-secondary-neutral-color);
|
|
1385
1309
|
}
|
|
1386
1310
|
.wds-Button--secondary-neutral .wds-Button-icon--end {
|
|
1387
|
-
color: var(--
|
|
1311
|
+
color: var(--Button-secondary-color);
|
|
1388
1312
|
}
|
|
1389
1313
|
.wds-Button--tertiary {
|
|
1390
1314
|
--Button-background: var(--Button-tertiary-background);
|
|
@@ -3133,8 +3057,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3133
3057
|
}
|
|
3134
3058
|
@supports (hyphenate-limit-chars: 1) {
|
|
3135
3059
|
.np-form-control--size-lg {
|
|
3136
|
-
|
|
3137
|
-
hyphens: auto;
|
|
3060
|
+
hyphens: auto;
|
|
3138
3061
|
hyphenate-limit-chars: 7 3;
|
|
3139
3062
|
}
|
|
3140
3063
|
@media (min-width: 768px) {
|
|
@@ -3150,8 +3073,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
3150
3073
|
}
|
|
3151
3074
|
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
3152
3075
|
.np-form-control--size-lg {
|
|
3153
|
-
|
|
3154
|
-
hyphens: auto;
|
|
3076
|
+
hyphens: auto;
|
|
3155
3077
|
-webkit-hyphenate-limit-before: 3;
|
|
3156
3078
|
-webkit-hyphenate-limit-after: 3;
|
|
3157
3079
|
}
|
|
@@ -4327,6 +4249,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
4327
4249
|
a,
|
|
4328
4250
|
button.np-link {
|
|
4329
4251
|
border-radius: 2px;
|
|
4252
|
+
color: var(--color-sentiment-content-primary, var(--color-content-link));
|
|
4330
4253
|
}
|
|
4331
4254
|
.np-link .tw-icon {
|
|
4332
4255
|
display: flex;
|
|
@@ -5189,8 +5112,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
5189
5112
|
}
|
|
5190
5113
|
@supports (hyphenate-limit-chars: 1) {
|
|
5191
5114
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
5192
|
-
|
|
5193
|
-
hyphens: auto;
|
|
5115
|
+
hyphens: auto;
|
|
5194
5116
|
hyphenate-limit-chars: 7 3;
|
|
5195
5117
|
}
|
|
5196
5118
|
@media (min-width: 768px) {
|
|
@@ -5206,8 +5128,7 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
5206
5128
|
}
|
|
5207
5129
|
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
5208
5130
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
5209
|
-
|
|
5210
|
-
hyphens: auto;
|
|
5131
|
+
hyphens: auto;
|
|
5211
5132
|
-webkit-hyphenate-limit-before: 3;
|
|
5212
5133
|
-webkit-hyphenate-limit-after: 3;
|
|
5213
5134
|
}
|
package/src/popover/Popover.css
CHANGED
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
@supports (hyphenate-limit-chars: 1) {
|
|
40
40
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
41
|
-
|
|
42
|
-
hyphens: auto;
|
|
41
|
+
hyphens: auto;
|
|
43
42
|
hyphenate-limit-chars: 7 3;
|
|
44
43
|
}
|
|
45
44
|
@media (min-width: 768px) {
|
|
@@ -55,8 +54,7 @@
|
|
|
55
54
|
}
|
|
56
55
|
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
57
56
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
58
|
-
|
|
59
|
-
hyphens: auto;
|
|
57
|
+
hyphens: auto;
|
|
60
58
|
-webkit-hyphenate-limit-before: 3;
|
|
61
59
|
-webkit-hyphenate-limit-after: 3;
|
|
62
60
|
}
|
|
@@ -19,18 +19,35 @@
|
|
|
19
19
|
position: relative;
|
|
20
20
|
z-index: 1;
|
|
21
21
|
}
|
|
22
|
+
.wds-inline-prompt:has(a):hover,
|
|
23
|
+
.wds-inline-prompt:has(button):hover {
|
|
24
|
+
background-color: var(--color-sentiment-background-surface-hover);
|
|
25
|
+
}
|
|
26
|
+
.wds-inline-prompt:has(a):active,
|
|
27
|
+
.wds-inline-prompt:has(button):active {
|
|
28
|
+
background-color: var(--color-sentiment-background-surface-active);
|
|
29
|
+
}
|
|
22
30
|
.wds-inline-prompt--muted {
|
|
23
31
|
opacity: 0.93;
|
|
24
32
|
filter: grayscale(1);
|
|
25
33
|
}
|
|
26
34
|
.wds-inline-prompt a,
|
|
27
35
|
.wds-inline-prompt button {
|
|
36
|
+
color: var(--color-sentiment-content-primary);
|
|
28
37
|
text-underline-offset: calc(4px / 2);
|
|
29
38
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
30
39
|
}
|
|
40
|
+
.wds-inline-prompt a:hover,
|
|
41
|
+
.wds-inline-prompt button:hover {
|
|
42
|
+
color: var(--color-sentiment-content-primary-hover);
|
|
43
|
+
}
|
|
44
|
+
.wds-inline-prompt a:active,
|
|
45
|
+
.wds-inline-prompt button:active {
|
|
46
|
+
color: var(--color-sentiment-content-primary-active);
|
|
47
|
+
}
|
|
31
48
|
.wds-inline-prompt a:first-of-type:before,
|
|
32
49
|
.wds-inline-prompt button:first-of-type:before {
|
|
33
|
-
content:
|
|
50
|
+
content: "";
|
|
34
51
|
position: absolute;
|
|
35
52
|
inset: 0;
|
|
36
53
|
}
|
|
@@ -44,110 +61,14 @@
|
|
|
44
61
|
}
|
|
45
62
|
.wds-inline-prompt__media-wrapper .tw-icon-tags,
|
|
46
63
|
.wds-inline-prompt__media-wrapper .tw-icon-confetti {
|
|
47
|
-
color: var(--color-sentiment-
|
|
48
|
-
}
|
|
49
|
-
.wds-inline-prompt--negative {
|
|
50
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
51
|
-
color: var(--color-sentiment-negative-primary);
|
|
52
|
-
}
|
|
53
|
-
.wds-inline-prompt--negative a,
|
|
54
|
-
.wds-inline-prompt--negative button {
|
|
55
|
-
color: var(--color-sentiment-negative-primary);
|
|
56
|
-
}
|
|
57
|
-
.wds-inline-prompt--negative a:hover,
|
|
58
|
-
.wds-inline-prompt--negative button:hover {
|
|
59
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
60
|
-
}
|
|
61
|
-
.wds-inline-prompt--negative a:active,
|
|
62
|
-
.wds-inline-prompt--negative button:active {
|
|
63
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
64
|
-
}
|
|
65
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
|
|
66
|
-
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
67
|
-
}
|
|
68
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
|
|
69
|
-
background-color: var(--color-sentiment-negative-secondary-active);
|
|
70
|
-
}
|
|
71
|
-
.wds-inline-prompt--positive {
|
|
72
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
73
|
-
color: var(--color-sentiment-positive-primary);
|
|
74
|
-
}
|
|
75
|
-
.wds-inline-prompt--positive a,
|
|
76
|
-
.wds-inline-prompt--positive button {
|
|
77
|
-
color: var(--color-sentiment-positive-primary);
|
|
78
|
-
}
|
|
79
|
-
.wds-inline-prompt--positive a:hover,
|
|
80
|
-
.wds-inline-prompt--positive button:hover {
|
|
81
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
82
|
-
}
|
|
83
|
-
.wds-inline-prompt--positive a:active,
|
|
84
|
-
.wds-inline-prompt--positive button:active {
|
|
85
|
-
color: var(--color-sentiment-positive-primary-active);
|
|
86
|
-
}
|
|
87
|
-
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):hover {
|
|
88
|
-
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
89
|
-
}
|
|
90
|
-
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
|
|
91
|
-
background-color: var(--color-sentiment-positive-secondary-active);
|
|
92
|
-
}
|
|
93
|
-
.wds-inline-prompt--proposition {
|
|
94
|
-
background-color: #D2F9F7;
|
|
95
|
-
color: var(--color-interactive-primary);
|
|
96
|
-
}
|
|
97
|
-
.wds-inline-prompt--proposition a,
|
|
98
|
-
.wds-inline-prompt--proposition button {
|
|
99
|
-
color: var(--color-interactive-primary);
|
|
100
|
-
}
|
|
101
|
-
.wds-inline-prompt--proposition a:hover,
|
|
102
|
-
.wds-inline-prompt--proposition button:hover {
|
|
103
|
-
color: var(--color-interactive-primary-hover);
|
|
104
|
-
}
|
|
105
|
-
.wds-inline-prompt--proposition a:active,
|
|
106
|
-
.wds-inline-prompt--proposition button:active {
|
|
107
|
-
color: var(--color-interactive-primary-active);
|
|
108
|
-
}
|
|
109
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
|
|
110
|
-
background-color: #B2F4F3;
|
|
111
|
-
}
|
|
112
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):active {
|
|
113
|
-
background-color: #91F0EE;
|
|
114
|
-
}
|
|
115
|
-
.wds-inline-prompt--neutral {
|
|
116
|
-
background-color: rgba(134,167,189,0.10196);
|
|
117
|
-
background-color: var(--color-background-neutral);
|
|
118
|
-
color: #37517e;
|
|
119
|
-
color: var(--color-content-primary);
|
|
120
|
-
}
|
|
121
|
-
.wds-inline-prompt--neutral a,
|
|
122
|
-
.wds-inline-prompt--neutral button {
|
|
123
|
-
color: #37517e;
|
|
124
|
-
color: var(--color-content-primary);
|
|
125
|
-
}
|
|
126
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
|
|
127
|
-
background-color: var(--color-background-neutral-hover);
|
|
128
|
-
}
|
|
129
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
|
|
130
|
-
background-color: var(--color-background-neutral-active);
|
|
131
|
-
}
|
|
132
|
-
.wds-inline-prompt--warning {
|
|
133
|
-
background-color: var(--color-sentiment-warning-secondary);
|
|
134
|
-
color: var(--color-sentiment-warning-content);
|
|
135
|
-
}
|
|
136
|
-
.wds-inline-prompt--warning a,
|
|
137
|
-
.wds-inline-prompt--warning button {
|
|
138
|
-
color: var(--color-sentiment-warning-content);
|
|
139
|
-
}
|
|
140
|
-
.wds-inline-prompt--warning a:hover,
|
|
141
|
-
.wds-inline-prompt--warning button:hover {
|
|
142
|
-
color: var(--color-sentiment-warning-content-hover);
|
|
143
|
-
}
|
|
144
|
-
.wds-inline-prompt--warning a:active,
|
|
145
|
-
.wds-inline-prompt--warning button:active {
|
|
146
|
-
color: var(--color-sentiment-warning-content-active);
|
|
64
|
+
color: var(--color-sentiment-content-primary);
|
|
147
65
|
}
|
|
148
|
-
.wds-inline-prompt.wds-inline-prompt
|
|
149
|
-
|
|
66
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
67
|
+
width: 16px;
|
|
68
|
+
width: var(--size-16);
|
|
69
|
+
height: 16px;
|
|
70
|
+
height: var(--size-16);
|
|
150
71
|
}
|
|
151
|
-
.wds-inline-prompt.wds-inline-prompt
|
|
152
|
-
|
|
72
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
73
|
+
stroke: currentColor;
|
|
153
74
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// @FIXME all tokens here need to be adjusted after
|
|
2
|
-
/// the new sentiment tokens land
|
|
3
|
-
|
|
4
1
|
.wds-inline-prompt {
|
|
5
2
|
display: inline-flex;
|
|
6
3
|
text-align: left;
|
|
@@ -16,18 +13,37 @@
|
|
|
16
13
|
&:has(button) {
|
|
17
14
|
position: relative;
|
|
18
15
|
z-index: 1;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
background-color: var(--color-sentiment-background-surface-hover);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:active {
|
|
22
|
+
background-color: var(--color-sentiment-background-surface-active);
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
&--muted {
|
|
22
|
-
opacity: .93;
|
|
27
|
+
opacity: 0.93;
|
|
23
28
|
filter: grayscale(1);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
|
-
a,
|
|
31
|
+
a,
|
|
32
|
+
button {
|
|
33
|
+
color: var(--color-sentiment-content-primary);
|
|
27
34
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
color: var(--color-sentiment-content-primary-hover);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active {
|
|
41
|
+
color: var(--color-sentiment-content-primary-active);
|
|
42
|
+
}
|
|
43
|
+
|
|
28
44
|
&:first-of-type {
|
|
29
45
|
&:before {
|
|
30
|
-
content:
|
|
46
|
+
content: "";
|
|
31
47
|
position: absolute;
|
|
32
48
|
inset: 0;
|
|
33
49
|
}
|
|
@@ -41,122 +57,18 @@
|
|
|
41
57
|
|
|
42
58
|
.tw-icon-tags,
|
|
43
59
|
.tw-icon-confetti {
|
|
44
|
-
color: var(--color-sentiment-
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--negative {
|
|
49
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
50
|
-
color: var(--color-sentiment-negative-primary);
|
|
51
|
-
|
|
52
|
-
a, button {
|
|
53
|
-
color: var(--color-sentiment-negative-primary);
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&:active {
|
|
60
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.wds-inline-prompt&:has(a, button) {
|
|
65
|
-
&:hover {
|
|
66
|
-
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
67
|
-
}
|
|
68
|
-
&:active {
|
|
69
|
-
background-color: var(--color-sentiment-negative-secondary-active);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&--positive {
|
|
75
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
76
|
-
color: var(--color-sentiment-positive-primary);
|
|
77
|
-
a, button {
|
|
78
|
-
color: var(--color-sentiment-positive-primary);
|
|
79
|
-
&:hover {
|
|
80
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
81
|
-
}
|
|
82
|
-
&:active {
|
|
83
|
-
color: var(--color-sentiment-positive-primary-active);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.wds-inline-prompt&:has(a, button) {
|
|
87
|
-
&:hover {
|
|
88
|
-
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
89
|
-
}
|
|
90
|
-
&:active {
|
|
91
|
-
background-color: var(--color-sentiment-positive-secondary-active);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&--proposition {
|
|
97
|
-
background-color: #D2F9F7;
|
|
98
|
-
|
|
99
|
-
color: var(--color-interactive-primary);
|
|
100
|
-
|
|
101
|
-
a, button {
|
|
102
|
-
color: var(--color-interactive-primary);
|
|
103
|
-
&:hover {
|
|
104
|
-
color: var(--color-interactive-primary-hover);
|
|
105
|
-
}
|
|
106
|
-
&:active {
|
|
107
|
-
color: var(--color-interactive-primary-active);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.wds-inline-prompt&:has(a, button) {
|
|
112
|
-
&:hover {
|
|
113
|
-
background-color: #B2F4F3;
|
|
114
|
-
}
|
|
115
|
-
&:active {
|
|
116
|
-
background-color: #91F0EE;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&--neutral {
|
|
122
|
-
background-color: var(--color-background-neutral);
|
|
123
|
-
color: var(--color-content-primary);
|
|
124
|
-
|
|
125
|
-
a, button {
|
|
126
|
-
color: var(--color-content-primary);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.wds-inline-prompt&:has(a, button) {
|
|
130
|
-
&:hover {
|
|
131
|
-
background-color: var(--color-background-neutral-hover);
|
|
132
|
-
}
|
|
133
|
-
&:active {
|
|
134
|
-
background-color: var(--color-background-neutral-active);
|
|
135
|
-
}
|
|
60
|
+
color: var(--color-sentiment-content-primary);
|
|
136
61
|
}
|
|
137
62
|
}
|
|
138
63
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
64
|
+
.wds-inline-prompt-process-indicator {
|
|
65
|
+
width: var(--size-16);
|
|
66
|
+
height: var(--size-16);
|
|
142
67
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
&:active {
|
|
149
|
-
color: var(--color-sentiment-warning-content-active);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.wds-inline-prompt&:has(a, button) {
|
|
154
|
-
&:hover {
|
|
155
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
|
|
156
|
-
}
|
|
157
|
-
&:active {
|
|
158
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
|
|
159
|
-
}
|
|
160
|
-
}
|
|
68
|
+
// This belongs in ProcessIndicator but there are many conflicting
|
|
69
|
+
// styles in the CSS package, so keeping it colocated for now.
|
|
70
|
+
.process-circle {
|
|
71
|
+
stroke: currentColor;
|
|
72
|
+
};
|
|
161
73
|
}
|
|
162
74
|
}
|