@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.
Files changed (71) hide show
  1. package/build/alert/Alert.js +2 -1
  2. package/build/alert/Alert.js.map +1 -1
  3. package/build/alert/Alert.mjs +2 -1
  4. package/build/alert/Alert.mjs.map +1 -1
  5. package/build/main.css +60 -139
  6. package/build/prompt/InlinePrompt/InlinePrompt.js +14 -8
  7. package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  8. package/build/prompt/InlinePrompt/InlinePrompt.mjs +15 -9
  9. package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  10. package/build/sentimentSurface/SentimentSurface.js +6 -5
  11. package/build/sentimentSurface/SentimentSurface.js.map +1 -1
  12. package/build/sentimentSurface/SentimentSurface.mjs +6 -5
  13. package/build/sentimentSurface/SentimentSurface.mjs.map +1 -1
  14. package/build/styles/button/Button.css +17 -17
  15. package/build/styles/button/Button.vars.css +16 -16
  16. package/build/styles/iconButton/IconButton.css +8 -8
  17. package/build/styles/inputs/Input.css +2 -4
  18. package/build/styles/inputs/TextArea.css +2 -4
  19. package/build/styles/link/Link.css +1 -0
  20. package/build/styles/main.css +60 -139
  21. package/build/styles/popover/Popover.css +2 -4
  22. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +26 -105
  23. package/build/styles/sentimentSurface/SentimentSurface.css +4 -1
  24. package/build/types/alert/Alert.d.ts.map +1 -1
  25. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +19 -3
  26. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
  27. package/build/types/sentimentSurface/SentimentSurface.d.ts +5 -4
  28. package/build/types/sentimentSurface/SentimentSurface.d.ts.map +1 -1
  29. package/build/types/sentimentSurface/SentimentSurface.types.d.ts +4 -16
  30. package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +1 -1
  31. package/build/types/test-utils/story-config.d.ts +24 -0
  32. package/build/types/test-utils/story-config.d.ts.map +1 -1
  33. package/package.json +13 -12
  34. package/src/alert/Alert.tsx +3 -1
  35. package/src/button/Button.css +17 -17
  36. package/src/button/Button.less +1 -1
  37. package/src/button/Button.story.tsx +75 -110
  38. package/src/button/Button.tests.story.tsx +189 -0
  39. package/src/button/Button.vars.css +16 -16
  40. package/src/button/Button.vars.less +58 -18
  41. package/src/iconButton/IconButton.css +8 -8
  42. package/src/iconButton/IconButton.less +35 -4
  43. package/src/iconButton/IconButton.story.tsx +72 -3
  44. package/src/inputs/Input.css +2 -4
  45. package/src/inputs/TextArea.css +2 -4
  46. package/src/link/Link.css +1 -0
  47. package/src/link/Link.less +1 -0
  48. package/src/link/Link.story.tsx +28 -0
  49. package/src/main.css +60 -139
  50. package/src/popover/Popover.css +2 -4
  51. package/src/prompt/InlinePrompt/InlinePrompt.css +26 -105
  52. package/src/prompt/InlinePrompt/InlinePrompt.less +31 -119
  53. package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +87 -29
  54. package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +223 -31
  55. package/src/prompt/InlinePrompt/InlinePrompt.tsx +42 -11
  56. package/src/sentimentSurface/SentimentSurface.css +4 -1
  57. package/src/sentimentSurface/SentimentSurface.docs.mdx +37 -478
  58. package/src/sentimentSurface/SentimentSurface.less +118 -114
  59. package/src/sentimentSurface/SentimentSurface.spec.tsx +31 -11
  60. package/src/sentimentSurface/SentimentSurface.story.tsx +325 -147
  61. package/src/sentimentSurface/SentimentSurface.tests.story.tsx +85 -86
  62. package/src/sentimentSurface/SentimentSurface.tsx +16 -9
  63. package/src/sentimentSurface/SentimentSurface.types.ts +5 -20
  64. package/src/test-utils/story-config.ts +0 -1
  65. package/build/sentimentSurface/classMap.js +0 -17
  66. package/build/sentimentSurface/classMap.js.map +0 -1
  67. package/build/sentimentSurface/classMap.mjs +0 -14
  68. package/build/sentimentSurface/classMap.mjs.map +0 -1
  69. package/build/types/sentimentSurface/classMap.d.ts +0 -4
  70. package/build/types/sentimentSurface/classMap.d.ts.map +0 -1
  71. package/src/sentimentSurface/classMap.ts +0 -15
@@ -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: #6D0E13;
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-positive-primary);
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--warning:has(a, button):hover {
1008
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
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--warning:has(a, button):active {
1011
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
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(--color-interactive-primary);
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
- -webkit-hyphens: auto;
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
- -webkit-hyphens: auto;
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
- -webkit-hyphens: auto;
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
- -webkit-hyphens: auto;
5210
- hyphens: auto;
5131
+ hyphens: auto;
5211
5132
  -webkit-hyphenate-limit-before: 3;
5212
5133
  -webkit-hyphenate-limit-after: 3;
5213
5134
  }
@@ -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
- -webkit-hyphens: auto;
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
- -webkit-hyphens: auto;
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-positive-primary);
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--warning:has(a, button):hover {
149
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
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--warning:has(a, button):active {
152
- background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
72
+ .wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
73
+ stroke: currentColor;
153
74
  }
@@ -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: #6D0E13;
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;
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/alert/Alert.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,SAAS,EACT,IAAI,EACJ,MAAM,EAGP,MAAM,WAAW,CAAC;AAUnB,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,kDAAkD;AAClD,KAAK,mBAAmB,GAAG,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;AACrF,KAAK,iBAAiB,GAAG,GACrB,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,QAAQ,GAElB,SAAS,CAAC,OAAO,GACjB,MAAM,CAAC,OAAO,EAAE,CAAC;AACrB,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAEhE,oBAAY,kBAAkB;IAC5B,QAAQ,YAAY;IACpB,GAAG,cAAc;IACjB,SAAS,aAAa;IACtB,WAAW,cAAc;IACzB,MAAM,gBAAgB;IACtB,YAAY,eAAe;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,yIAAyI;IACzI,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IACxG,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;SAGK;IACL,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACvD,2DAA2D;IAC3D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,oHAAoH;IACpH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;CAClB;AAeD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,IAAI,EACJ,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EACL,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,GACZ,EAAE,UAAU,+BAoJZ"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/alert/Alert.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,SAAS,EACT,IAAI,EACJ,MAAM,EAGP,MAAM,WAAW,CAAC;AAUnB,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,kDAAkD;AAClD,KAAK,mBAAmB,GAAG,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC;AACrF,KAAK,iBAAiB,GAAG,GACrB,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,QAAQ,GAElB,SAAS,CAAC,OAAO,GACjB,MAAM,CAAC,OAAO,EAAE,CAAC;AACrB,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAEhE,oBAAY,kBAAkB;IAC5B,QAAQ,YAAY;IACpB,GAAG,cAAc;IACjB,SAAS,aAAa;IACtB,WAAW,cAAc;IACzB,MAAM,gBAAgB;IACtB,YAAY,eAAe;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,yIAAyI;IACzI,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IACxG,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;SAGK;IACL,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACvD,2DAA2D;IAC3D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,oHAAoH;IACpH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;CAClB;AAeD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,IAAI,EACJ,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EACL,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,GACZ,EAAE,UAAU,+BAsJZ"}
@@ -1,16 +1,32 @@
1
1
  import { Sentiment } from '../../common';
2
2
  export type InlinePromptProps = {
3
+ /**
4
+ * The sentiment determines the colour scheme
5
+ */
3
6
  sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}` | 'proposition';
7
+ /**
8
+ * Replaces the icon with a spinner while waiting for the short-lived action to finish.
9
+ * @default false
10
+ */
4
11
  loading?: boolean;
5
12
  /**
6
- * Use for short-lived inline prompts to avoid swap of the icon (which is bad UX for short-lived prompts, e.g. when submit form)
13
+ * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled
14
+ * they are associated with actually disabled component (e.g. a disabled list item or input).
15
+ * @default false
7
16
  */
8
17
  muted?: boolean;
18
+ /**
19
+ * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.
20
+ */
21
+ media?: React.ReactNode;
9
22
  id?: string;
10
23
  className?: string;
11
24
  'data-testid'?: string;
12
25
  children: React.ReactNode;
13
- media?: React.ReactNode;
14
26
  };
15
- export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, ...rest }: InlinePromptProps) => import("react").JSX.Element;
27
+ /**
28
+ * Inline prompts appear alongside a specific component on the screen. They help the user stay
29
+ * informed, fix something, or get more out of what they're doing.
30
+ */
31
+ export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, "data-testid": dataTestId, ...rest }: InlinePromptProps) => import("react").JSX.Element;
16
32
  //# sourceMappingURL=InlinePrompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,oEAQ1B,iBAAiB,gCAkCnB,CAAC"}
1
+ {"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,+FAS1B,iBAAiB,gCA+CnB,CAAC"}
@@ -1,17 +1,18 @@
1
1
  import { SentimentSurfaceComponent } from './SentimentSurface.types';
2
2
  /**
3
- * SentimentSurface is a polymorphic container component that applies contextual background colours
4
- * and text styling based on sentiment types (negative, warning, neutral, success, proposition).
5
- * It's designed to visually communicate the nature or importance of its content through colour.
3
+ * SentimentSurface is a polymorphic container component that exposes and, optionally, applies
4
+ * contextual colour tokens as CSS custom properties, based on sentiment types (`negative`,
5
+ * `warning`, `neutral`, `success`, `proposition`).
6
6
  *
7
7
  * @param {ElementType} [as='div'] - Optional prop to override the HTML element rendered.
8
8
  * @param {Sentiment} sentiment - Required prop to set the sentiment type (negative, warning, neutral, success, proposition).
9
9
  * @param {Emphasis} [emphasis='base'] - Optional prop to specify the emphasis level (base or elevated).
10
+ * @param {boolean} [hasBaseStyles=true] - If true, sets the `background-color` and `color` on the container. Otherwise, only exposes the tokens as CSS custom properties without rendering.
10
11
  * @param {ReactNode} [children] - Content to render inside the surface.
11
12
  * @param {string} [className] - Additional CSS classes to apply.
12
13
  * @param {CSSProperties} [style] - Inline styles to apply.
13
14
  * @param {string} [id] - Unique identifier for the component.
14
- * @param {string} [testId] - A unique string that appears as data attribute `data-testid` in the rendered code.
15
+ * @param {string} [data-testid] - A unique string that appears as data attribute `data-testid` in the rendered code.
15
16
  *
16
17
  * @component
17
18
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"SentimentSurface.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,QAAA,MAAM,gBAAgB,EAAE,yBA+BtB,CAAC;AAIH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SentimentSurface.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,gBAAgB,EAAE,yBAsCtB,CAAC;AAIH,eAAe,gBAAgB,CAAC"}
@@ -21,30 +21,18 @@ export interface CommonProps {
21
21
  */
22
22
  emphasis?: Emphasis;
23
23
  /**
24
- * Content to render inside the surface
24
+ * If true, sets the `background-color` and `color` on the container. Otherwise, only exposes the tokens as CSS custom properties without rendering.
25
+ * @default true
25
26
  */
27
+ hasBaseStyles?: boolean;
26
28
  children?: ReactNode;
27
- /**
28
- * Additional CSS classes
29
- */
30
29
  className?: string;
31
- /**
32
- * Inline styles
33
- */
34
30
  style?: CSSProperties;
35
- /**
36
- * Unique identifier for the component
37
- */
38
31
  id?: string;
39
32
  /**
40
33
  * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests
41
34
  */
42
- testId?: string;
43
- /**
44
- * `data-testid` is strictly controlled through the `testId` prop.
45
- * This lets consumers know that this data attribute will not be applied.
46
- */
47
- 'data-testid'?: never;
35
+ 'data-testid'?: string;
48
36
  }
49
37
  /**
50
38
  * Props when rendering as a div or custom element
@@ -1 +1 @@
1
- {"version":3,"file":"SentimentSurface.types.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,IAAI,CACxE,cAAc,CAAC,cAAc,CAAC,EAC9B,MAAM,WAAW,CAClB,GACC,WAAW,GAAG;IACZ;;;OAGG;IACH,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IACtE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"SentimentSurface.types.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,IAAI,CACxE,cAAc,CAAC,cAAc,CAAC,EAC9B,MAAM,WAAW,CAClB,GACC,WAAW,GAAG;IACZ;;;OAGG;IACH,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IACtE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -16,6 +16,30 @@ export declare const viewports: {
16
16
  };
17
17
  type: string;
18
18
  };
19
+ mobile1: {
20
+ readonly name: "Small mobile";
21
+ readonly styles: {
22
+ readonly height: "568px";
23
+ readonly width: "320px";
24
+ };
25
+ readonly type: "mobile";
26
+ };
27
+ mobile2: {
28
+ readonly name: "Large mobile";
29
+ readonly styles: {
30
+ readonly height: "896px";
31
+ readonly width: "414px";
32
+ };
33
+ readonly type: "mobile";
34
+ };
35
+ tablet: {
36
+ readonly name: "Tablet";
37
+ readonly styles: {
38
+ readonly height: "1112px";
39
+ readonly width: "834px";
40
+ };
41
+ readonly type: "tablet";
42
+ };
19
43
  };
20
44
  export interface StoryConfig {
21
45
  /**