@transferwise/components 0.0.0-experimental-536d239 → 0.0.0-experimental-6e04f56

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 (95) hide show
  1. package/build/Snackbar/Snackbar.js +98 -101
  2. package/build/Snackbar/Snackbar.js.map +1 -1
  3. package/build/Snackbar/Snackbar.mjs +99 -102
  4. package/build/Snackbar/Snackbar.mjs.map +1 -1
  5. package/build/main.css +1530 -2883
  6. package/build/styles/Inputs/Input/Input.css +28 -62
  7. package/build/styles/Inputs/TextArea/TextArea.css +28 -62
  8. package/build/styles/Popover/Popover.css +9 -3
  9. package/build/styles/_deprecated/Select/Select.css +7 -27
  10. package/build/styles/css/accordion.css +52 -23
  11. package/build/styles/css/button-groups.css +8 -29
  12. package/build/styles/css/buttons.css +2 -26
  13. package/build/styles/css/decision.css +52 -23
  14. package/build/styles/css/dropdowns.css +62 -39
  15. package/build/styles/css/droppable.css +8 -28
  16. package/build/styles/css/footer.css +14 -41
  17. package/build/styles/css/input-groups.css +165 -172
  18. package/build/styles/css/list-group.css +45 -0
  19. package/build/styles/css/navbar.css +62 -39
  20. package/build/styles/css/neptune-addons.css +0 -15
  21. package/build/styles/css/neptune-core.css +526 -250
  22. package/build/styles/css/neptune.css +1486 -2823
  23. package/build/styles/css/popovers.css +60 -35
  24. package/build/styles/css/sequences.css +1 -6
  25. package/build/styles/css/tooltip.css +7 -27
  26. package/build/styles/less/neptune-tokens.less +48 -0
  27. package/build/styles/main.css +1530 -2883
  28. package/build/styles/props/neptune-tokens.css +1 -793
  29. package/build/styles/styles/less/accordion.css +52 -23
  30. package/build/styles/styles/less/button-groups.css +8 -29
  31. package/build/styles/styles/less/buttons.css +2 -26
  32. package/build/styles/styles/less/decision.css +52 -23
  33. package/build/styles/styles/less/dropdowns.css +62 -39
  34. package/build/styles/styles/less/droppable.css +8 -28
  35. package/build/styles/styles/less/footer.css +14 -41
  36. package/build/styles/styles/less/forms/bootstrap-forms.css +91 -137
  37. package/build/styles/styles/less/input-groups.css +165 -172
  38. package/build/styles/styles/less/list-group.css +45 -0
  39. package/build/styles/styles/less/navbar.css +62 -39
  40. package/build/styles/styles/less/neptune-addons.css +0 -15
  41. package/build/styles/styles/less/neptune-core.css +526 -250
  42. package/build/styles/styles/less/neptune.css +1486 -2823
  43. package/build/styles/styles/less/popovers.css +60 -35
  44. package/build/styles/styles/less/sequences.css +1 -6
  45. package/build/styles/styles/less/tooltip.css +7 -27
  46. package/build/types/Body/Body.d.ts +2 -2
  47. package/build/types/IconButton/IconButton.d.ts +1 -1
  48. package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
  49. package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
  50. package/build/types/Snackbar/Snackbar.d.ts +1 -15
  51. package/build/types/Snackbar/Snackbar.d.ts.map +1 -1
  52. package/build/types/Title/Title.d.ts +2 -2
  53. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
  54. package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
  55. package/package.json +1 -1
  56. package/src/Inputs/Input/Input.css +28 -62
  57. package/src/Inputs/TextArea/TextArea.css +28 -62
  58. package/src/Popover/Popover.css +9 -3
  59. package/src/Snackbar/Snackbar.test.tsx +190 -0
  60. package/src/Snackbar/Snackbar.tsx +90 -88
  61. package/src/_deprecated/Select/Select.css +7 -27
  62. package/src/main.css +1530 -2883
  63. package/src/styles/less/accordion.css +52 -23
  64. package/src/styles/less/addons/_background-utilities.less +0 -5
  65. package/src/styles/less/button-groups.css +8 -29
  66. package/src/styles/less/button-groups.less +2 -3
  67. package/src/styles/less/buttons.css +2 -26
  68. package/src/styles/less/buttons.less +1 -1
  69. package/src/styles/less/core/_typography.less +221 -67
  70. package/src/styles/less/decision.css +52 -23
  71. package/src/styles/less/decision.less +2 -2
  72. package/src/styles/less/dropdowns.css +62 -39
  73. package/src/styles/less/dropdowns.less +5 -6
  74. package/src/styles/less/droppable.css +8 -28
  75. package/src/styles/less/droppable.less +4 -4
  76. package/src/styles/less/footer.css +14 -41
  77. package/src/styles/less/footer.less +3 -4
  78. package/src/styles/less/forms/bootstrap-forms.css +91 -137
  79. package/src/styles/less/forms/bootstrap-forms.less +57 -70
  80. package/src/styles/less/input-groups.css +165 -172
  81. package/src/styles/less/input-groups.less +5 -5
  82. package/src/styles/less/list-group.css +45 -0
  83. package/src/styles/less/list-group.less +4 -7
  84. package/src/styles/less/mixins/_text-emphasis.less +1 -7
  85. package/src/styles/less/navbar.css +62 -39
  86. package/src/styles/less/neptune-addons.css +0 -15
  87. package/src/styles/less/neptune-core.css +526 -250
  88. package/src/styles/less/neptune.bundle.less +0 -4
  89. package/src/styles/less/neptune.css +1486 -2823
  90. package/src/styles/less/popovers.css +60 -35
  91. package/src/styles/less/popovers.less +3 -3
  92. package/src/styles/less/sequences.css +1 -6
  93. package/src/styles/less/sequences.less +2 -7
  94. package/src/styles/less/tooltip.css +7 -27
  95. package/src/styles/less/tooltip.less +1 -1
@@ -1,11 +1,11 @@
1
- @import (reference) "../../variables/legacy-variables.less";
2
- @import (reference) "../../variables/neptune-tokens.less";
3
- @import (reference) "../mixins/_arrows.less";
4
- @import (reference) "../mixins/_grid.less";
5
- @import (reference) "../mixins/_forms.less";
6
- @import (reference) "../mixins/_tab-focus.less";
7
- @import (reference) "../mixins/_logical-properties.less";
8
- @import (reference) "../core/_typography.less";
1
+ @import (reference) '../../variables/legacy-variables.less';
2
+ @import (reference) '../../variables/neptune-tokens.less';
3
+ @import (reference) '../mixins/_arrows.less';
4
+ @import (reference) '../mixins/_grid.less';
5
+ @import (reference) '../mixins/_forms.less';
6
+ @import (reference) '../mixins/_tab-focus.less';
7
+ @import (reference) '../mixins/_logical-properties.less';
8
+ @import (reference) '../core/_typography.less';
9
9
 
10
10
  //
11
11
  // Forms
@@ -54,34 +54,34 @@ label,
54
54
  // address browser inconsistencies.
55
55
 
56
56
  // Override content-box in Normalize (* isn't specific enough)
57
- input[type="search"] {
57
+ input[type='search'] {
58
58
  box-sizing: border-box;
59
59
  }
60
60
 
61
- input[type="number"] {
61
+ input[type='number'] {
62
62
  appearance: textfield;
63
63
  }
64
64
 
65
- input[type="number"]::-webkit-outer-spin-button,
66
- input[type="number"]::-webkit-inner-spin-button {
65
+ input[type='number']::-webkit-outer-spin-button,
66
+ input[type='number']::-webkit-inner-spin-button {
67
67
  appearance: none;
68
68
  margin: 0;
69
69
  }
70
70
 
71
71
  // Position radios and checkboxes better
72
- input[type="radio"],
73
- input[type="checkbox"] {
72
+ input[type='radio'],
73
+ input[type='checkbox'] {
74
74
  margin: 4px 0 0;
75
75
  margin-top: 1px;
76
76
  line-height: normal;
77
77
  }
78
78
 
79
- input[type="file"] {
79
+ input[type='file'] {
80
80
  display: block;
81
81
  }
82
82
 
83
83
  // Make range inputs behave like textual form controls
84
- input[type="range"] {
84
+ input[type='range'] {
85
85
  display: block;
86
86
  width: 100%;
87
87
  }
@@ -93,9 +93,9 @@ select[size] {
93
93
  }
94
94
 
95
95
  // Focus for file, radio, and checkbox
96
- input[type="file"]:focus,
97
- input[type="radio"]:focus,
98
- input[type="checkbox"]:focus {
96
+ input[type='file']:focus,
97
+ input[type='radio']:focus,
98
+ input[type='checkbox']:focus {
99
99
  .tab-focus();
100
100
  }
101
101
 
@@ -145,7 +145,7 @@ output {
145
145
  var(--input-padding),
146
146
  @input-border-radius
147
147
  );
148
- .wds-text-body-large;
148
+ .np-text-body-large;
149
149
 
150
150
  // Remove iOS drop shadow
151
151
  background-clip: padding-box;
@@ -197,7 +197,7 @@ output {
197
197
  // be added to `.form-control` as it's not specific enough. For details, see
198
198
  // https://github.com/twbs/bootstrap/issues/11586.
199
199
 
200
- input[type="search"] {
200
+ input[type='search'] {
201
201
  appearance: none;
202
202
  }
203
203
 
@@ -209,10 +209,10 @@ input[type="search"] {
209
209
  // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
210
210
 
211
211
  @media screen and (min-device-pixel-ratio: 0) {
212
- input[type="date"],
213
- input[type="time"],
214
- input[type="datetime-local"],
215
- input[type="month"] {
212
+ input[type='date'],
213
+ input[type='time'],
214
+ input[type='datetime-local'],
215
+ input[type='month'] {
216
216
  line-height: var(--input-height-base);
217
217
 
218
218
  &.input-sm,
@@ -248,7 +248,7 @@ input[type="search"] {
248
248
  }
249
249
  }
250
250
 
251
- .row-equal-height > [class*="col-"] > .form-group {
251
+ .row-equal-height > [class*='col-'] > .form-group {
252
252
  width: 100%;
253
253
  }
254
254
 
@@ -275,10 +275,10 @@ input[type="search"] {
275
275
  margin-top: (@padding-base-vertical * 1.5);
276
276
  }
277
277
 
278
- .radio input[type="radio"],
279
- .radio-inline input[type="radio"],
280
- .checkbox input[type="checkbox"],
281
- .checkbox-inline input[type="checkbox"] {
278
+ .radio input[type='radio'],
279
+ .radio-inline input[type='radio'],
280
+ .checkbox input[type='checkbox'],
281
+ .checkbox-inline input[type='checkbox'] {
282
282
  position: absolute;
283
283
  .margin(left, -20px);
284
284
 
@@ -313,8 +313,8 @@ input[type="search"] {
313
313
  // Some special care is needed because <label>s don't inherit their parent's `cursor`.
314
314
  //
315
315
  // Note: Neither radios nor checkboxes can be readonly.
316
- input[type="radio"],
317
- input[type="checkbox"] {
316
+ input[type='radio'],
317
+ input[type='checkbox'] {
318
318
  &[disabled],
319
319
  &.disabled,
320
320
  fieldset[disabled] & {
@@ -380,7 +380,7 @@ input[type="password"] {
380
380
  );
381
381
  font-size: 14px;
382
382
  line-height: 24px;
383
- .wds-text-body-default();
383
+ .np-text-body-default();
384
384
  }
385
385
 
386
386
  .form-group-sm,
@@ -418,7 +418,7 @@ input[type="password"] {
418
418
  var(--input-padding-large);
419
419
  @input-border-radius-large
420
420
  );
421
- .wds-text-body-large;
421
+ .np-text-body-large;
422
422
  }
423
423
 
424
424
  .form-group-lg {
@@ -533,9 +533,7 @@ input[type="password"] {
533
533
  border-style: solid;
534
534
  border-radius: var(--radius-small);
535
535
  padding: 4px 16px 3px;
536
- transition:
537
- border-color 0.15s ease-in-out,
538
- background-color 0.15s ease-in-out;
536
+ transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
539
537
 
540
538
  a {
541
539
  color: inherit;
@@ -703,8 +701,8 @@ input[type="password"] {
703
701
  }
704
702
  }
705
703
 
706
- .radio input[type="radio"],
707
- .checkbox input[type="checkbox"] {
704
+ .radio input[type='radio'],
705
+ .checkbox input[type='checkbox'] {
708
706
  position: relative;
709
707
  .margin(left, 0);
710
708
  }
@@ -790,7 +788,7 @@ input[type="password"] {
790
788
  }
791
789
  }
792
790
 
793
- @import "checkbox-radio.less";
791
+ @import 'checkbox-radio.less';
794
792
 
795
793
  .input-group .input-group-btn + input {
796
794
  .border(left, 0, solid, transparent);
@@ -828,7 +826,7 @@ input[type="password"] {
828
826
 
829
827
  .margin(right, -6px);
830
828
 
831
- [class*="col-"] {
829
+ [class*='col-'] {
832
830
  .padding(left, 6px);
833
831
 
834
832
  .padding(right, 6px);
@@ -836,7 +834,7 @@ input[type="password"] {
836
834
  }
837
835
 
838
836
  @media (max-width: @screen-xs-max) {
839
- .form-group .row [class*="col-sm-"] {
837
+ .form-group .row [class*='col-sm-'] {
840
838
  margin-bottom: 0;
841
839
 
842
840
  .btn-input {
@@ -846,7 +844,7 @@ input[type="password"] {
846
844
  }
847
845
 
848
846
  @media (max-width: @screen-sm-max) {
849
- .form-group .row [class*="col-md-"] {
847
+ .form-group .row [class*='col-md-'] {
850
848
  margin-bottom: 0;
851
849
 
852
850
  .form-control,
@@ -857,7 +855,7 @@ input[type="password"] {
857
855
  }
858
856
 
859
857
  @media (max-width: @screen-md-max) {
860
- .form-group .row [class*="col-lg-"] {
858
+ .form-group .row [class*='col-lg-'] {
861
859
  margin-bottom: 0;
862
860
 
863
861
  .form-control,
@@ -868,7 +866,7 @@ input[type="password"] {
868
866
  }
869
867
 
870
868
  @media (max-width: @screen-lg-max) {
871
- .form-group .row [class*="col-xl-"] {
869
+ .form-group .row [class*='col-xl-'] {
872
870
  margin-bottom: 0;
873
871
 
874
872
  .form-control,
@@ -897,9 +895,7 @@ input[type="password"] {
897
895
  background-color: var(--color-background-screen);
898
896
  border: 1px solid var(--color-interactive-secondary);
899
897
  border-radius: @border-radius-base;
900
- transition:
901
- border 0.15s ease-in-out,
902
- background-color 0.15s ease-in-out;
898
+ transition: border 0.15s ease-in-out, background-color 0.15s ease-in-out;
903
899
 
904
900
  .np-theme-personal & {
905
901
  border-radius: var(--radius-small);
@@ -930,8 +926,7 @@ input[type="password"] {
930
926
  small,
931
927
  .small,
932
928
  .body-2,
933
- .np-text-body-default,
934
- .wds-text-body-default {
929
+ .np-text-body-default {
935
930
  display: block;
936
931
  color: var(--color-content-secondary);
937
932
  }
@@ -1026,7 +1021,7 @@ input[type="password"] {
1026
1021
  .form-control-placeholder {
1027
1022
  text-overflow: ellipsis;
1028
1023
  overflow: hidden;
1029
- .wds-text-body-large;
1024
+ .np-text-body-large;
1030
1025
  display: block;
1031
1026
  width: 100%;
1032
1027
  color: var(--color-content-tertiary);
@@ -1130,32 +1125,26 @@ input[type="password"] {
1130
1125
 
1131
1126
  .checkbox:hover .tw-checkbox-button,
1132
1127
  .radio:not(.disabled):hover .tw-radio-button,
1133
- .tw-checkbox-button:not(.disabled, :disabled):hover,
1134
- input[type="checkbox"]:hover + .tw-checkbox-button,
1135
- input[type="radio"]:not(.disabled, :disabled):hover + .tw-radio-button,
1136
- input[type="checkbox"]:not(.disabled, :disabled):hover + .tw-checkbox-button {
1128
+ .tw-checkbox-button:not(.disabled,:disabled):hover,
1129
+ input[type=checkbox]:hover+.tw-checkbox-button,
1130
+ input[type=radio]:not(.disabled,:disabled):hover+.tw-radio-button,
1131
+ input[type=checkbox]:not(.disabled,:disabled):hover+.tw-checkbox-button {
1137
1132
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-hover);
1138
1133
  }
1139
1134
 
1140
1135
  .tw-checkbox-button.checked,
1141
1136
  .tw-checkbox-button:checked,
1142
- input[type="checkbox"]:checked + .tw-checkbox-button,
1137
+ input[type=checkbox]:checked+.tw-checkbox-button,
1143
1138
  .tw-checkbox-button.checked:hover,
1144
1139
  .tw-checkbox-button:checked:hover,
1145
- input[type="checkbox"]:not(.disabled, :disabled):checked:hover + .tw-checkbox-button {
1140
+ input[type=checkbox]:not(.disabled,:disabled):checked:hover+.tw-checkbox-button {
1146
1141
  box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
1147
1142
  background: var(--color-sentiment-negative);
1148
1143
  }
1149
1144
 
1150
- .checkbox > label:not(.disabled, :disabled):active input[type="checkbox"] + .tw-checkbox-button,
1151
- .checkbox
1152
- > label:not(.disabled, :disabled):focus-visible
1153
- input[type="checkbox"]
1154
- + .tw-checkbox-button,
1155
- .checkbox
1156
- > label:not(.disabled, :disabled):has(:focus-visible)
1157
- input[type="checkbox"]
1158
- + .tw-checkbox-button {
1145
+ .checkbox>label:not(.disabled,:disabled):active input[type=checkbox]+.tw-checkbox-button,
1146
+ .checkbox>label:not(.disabled,:disabled):focus-visible input[type=checkbox]+.tw-checkbox-button,
1147
+ .checkbox>label:not(.disabled,:disabled):has(:focus-visible) input[type=checkbox]+.tw-checkbox-button {
1159
1148
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-active);
1160
1149
  }
1161
1150
  }
@@ -1164,9 +1153,7 @@ input[type="password"] {
1164
1153
  .tw-checkbox-button {
1165
1154
  background-color: unset;
1166
1155
  color: unset;
1167
- transition:
1168
- background-color 0.3s ease-in-out,
1169
- box-shadow 0.3s ease-in-out;
1156
+ transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
1170
1157
  }
1171
1158
 
1172
1159
  .btn-input:hover,
@@ -1183,7 +1170,7 @@ input[type="password"] {
1183
1170
  }
1184
1171
 
1185
1172
  .form-group .np-upload-input label {
1186
- margin-bottom: 0;
1173
+ margin-bottom: 0;
1187
1174
  }
1188
1175
 
1189
1176
  .form-group .alert:before,