@transferwise/components 0.0.0-experimental-7f15621 → 0.0.0-experimental-c70eb7d

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 (80) hide show
  1. package/build/main.css +2872 -1501
  2. package/build/styles/Inputs/Input/Input.css +62 -28
  3. package/build/styles/Inputs/TextArea/TextArea.css +62 -28
  4. package/build/styles/Popover/Popover.css +3 -9
  5. package/build/styles/_deprecated/Select/Select.css +27 -7
  6. package/build/styles/css/accordion.css +23 -52
  7. package/build/styles/css/button-groups.css +29 -8
  8. package/build/styles/css/buttons.css +26 -2
  9. package/build/styles/css/decision.css +23 -52
  10. package/build/styles/css/dropdowns.css +39 -62
  11. package/build/styles/css/droppable.css +28 -8
  12. package/build/styles/css/footer.css +41 -14
  13. package/build/styles/css/input-groups.css +172 -165
  14. package/build/styles/css/list-group.css +0 -45
  15. package/build/styles/css/navbar.css +39 -62
  16. package/build/styles/css/neptune-addons.css +15 -0
  17. package/build/styles/css/neptune-core.css +250 -526
  18. package/build/styles/css/neptune.css +2777 -1422
  19. package/build/styles/css/popovers.css +35 -60
  20. package/build/styles/css/sequences.css +6 -1
  21. package/build/styles/css/tooltip.css +27 -7
  22. package/build/styles/less/neptune-tokens.less +0 -48
  23. package/build/styles/main.css +2872 -1501
  24. package/build/styles/props/neptune-tokens.css +802 -1
  25. package/build/styles/styles/less/accordion.css +23 -52
  26. package/build/styles/styles/less/button-groups.css +29 -8
  27. package/build/styles/styles/less/buttons.css +26 -2
  28. package/build/styles/styles/less/decision.css +23 -52
  29. package/build/styles/styles/less/dropdowns.css +39 -62
  30. package/build/styles/styles/less/droppable.css +28 -8
  31. package/build/styles/styles/less/footer.css +41 -14
  32. package/build/styles/styles/less/forms/bootstrap-forms.css +137 -91
  33. package/build/styles/styles/less/input-groups.css +172 -165
  34. package/build/styles/styles/less/list-group.css +0 -45
  35. package/build/styles/styles/less/navbar.css +39 -62
  36. package/build/styles/styles/less/neptune-addons.css +15 -0
  37. package/build/styles/styles/less/neptune-core.css +250 -526
  38. package/build/styles/styles/less/neptune.css +2777 -1422
  39. package/build/styles/styles/less/popovers.css +35 -60
  40. package/build/styles/styles/less/sequences.css +6 -1
  41. package/build/styles/styles/less/tooltip.css +27 -7
  42. package/package.json +1 -1
  43. package/src/Inputs/Input/Input.css +62 -28
  44. package/src/Inputs/TextArea/TextArea.css +62 -28
  45. package/src/Popover/Popover.css +3 -9
  46. package/src/_deprecated/Select/Select.css +27 -7
  47. package/src/main.css +2872 -1501
  48. package/src/styles/less/accordion.css +23 -52
  49. package/src/styles/less/addons/_background-utilities.less +5 -0
  50. package/src/styles/less/button-groups.css +29 -8
  51. package/src/styles/less/button-groups.less +3 -2
  52. package/src/styles/less/buttons.css +26 -2
  53. package/src/styles/less/buttons.less +1 -1
  54. package/src/styles/less/core/_typography.less +67 -221
  55. package/src/styles/less/decision.css +23 -52
  56. package/src/styles/less/decision.less +2 -2
  57. package/src/styles/less/dropdowns.css +39 -62
  58. package/src/styles/less/dropdowns.less +6 -5
  59. package/src/styles/less/droppable.css +28 -8
  60. package/src/styles/less/droppable.less +4 -4
  61. package/src/styles/less/footer.css +41 -14
  62. package/src/styles/less/footer.less +4 -3
  63. package/src/styles/less/forms/bootstrap-forms.css +137 -91
  64. package/src/styles/less/forms/bootstrap-forms.less +70 -57
  65. package/src/styles/less/input-groups.css +172 -165
  66. package/src/styles/less/input-groups.less +5 -5
  67. package/src/styles/less/list-group.css +0 -45
  68. package/src/styles/less/list-group.less +7 -4
  69. package/src/styles/less/mixins/_text-emphasis.less +7 -1
  70. package/src/styles/less/navbar.css +39 -62
  71. package/src/styles/less/neptune-addons.css +15 -0
  72. package/src/styles/less/neptune-core.css +250 -526
  73. package/src/styles/less/neptune.bundle.less +4 -0
  74. package/src/styles/less/neptune.css +2777 -1422
  75. package/src/styles/less/popovers.css +35 -60
  76. package/src/styles/less/popovers.less +3 -3
  77. package/src/styles/less/sequences.css +6 -1
  78. package/src/styles/less/sequences.less +7 -2
  79. package/src/styles/less/tooltip.css +27 -7
  80. package/src/styles/less/tooltip.less +1 -1
@@ -1,4 +1,68 @@
1
- form {
1
+ .input-sm {
2
+ word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .input-sm {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .input-sm {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .input-sm {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .input-sm {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .input-sm {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.form-control,
28
+ .input-lg,
29
+ .form-control-placeholder {
30
+ word-wrap: break-word;
31
+ }
32
+ @supports (hyphenate-limit-chars: 1) {
33
+ .form-control,
34
+ .input-lg,
35
+ .form-control-placeholder {
36
+ hyphens: auto;hyphenate-limit-chars: 7 3;
37
+ }
38
+ @media (min-width: 840px) {
39
+ .form-control,
40
+ .input-lg,
41
+ .form-control-placeholder {
42
+ hyphenate-limit-chars: 8 3;
43
+ }
44
+ }
45
+ @media (min-width: 1160px) {
46
+ .form-control,
47
+ .input-lg,
48
+ .form-control-placeholder {
49
+ hyphenate-limit-chars: 10 4 3;
50
+ }
51
+ }
52
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
53
+ .form-control,
54
+ .input-lg,
55
+ .form-control-placeholder {
56
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
57
+ }
58
+ @media (min-width: 1160px) {
59
+ .form-control,
60
+ .input-lg,
61
+ .form-control-placeholder {
62
+ -webkit-hyphenate-limit-before: 4;
63
+ }
64
+ }
65
+ }form {
2
66
  margin-block-end: 0;
3
67
  }
4
68
  fieldset {
@@ -26,31 +90,31 @@ label,
26
90
  font-size: var(--font-size-14);
27
91
  line-height: 20px;
28
92
  }
29
- input[type='search'] {
93
+ input[type="search"] {
30
94
  box-sizing: border-box;
31
95
  }
32
- input[type='number'] {
96
+ input[type="number"] {
33
97
  -webkit-appearance: textfield;
34
98
  -moz-appearance: textfield;
35
99
  appearance: textfield;
36
100
  }
37
- input[type='number']::-webkit-outer-spin-button,
38
- input[type='number']::-webkit-inner-spin-button {
101
+ input[type="number"]::-webkit-outer-spin-button,
102
+ input[type="number"]::-webkit-inner-spin-button {
39
103
  -webkit-appearance: none;
40
104
  appearance: none;
41
105
  margin: 0;
42
106
  }
43
- input[type='radio'],
44
- input[type='checkbox'] {
107
+ input[type="radio"],
108
+ input[type="checkbox"] {
45
109
  margin-block: 4px 0;
46
110
  margin-inline: 0;
47
111
  margin-block-start: 1px;
48
112
  line-height: normal;
49
113
  }
50
- input[type='file'] {
114
+ input[type="file"] {
51
115
  display: block;
52
116
  }
53
- input[type='range'] {
117
+ input[type="range"] {
54
118
  display: block;
55
119
  inline-size: 100%;
56
120
  }
@@ -58,9 +122,9 @@ select[multiple],
58
122
  select[size] {
59
123
  block-size: auto;
60
124
  }
61
- input[type='file']:focus,
62
- input[type='radio']:focus,
63
- input[type='checkbox']:focus {
125
+ input[type="file"]:focus,
126
+ input[type="radio"]:focus,
127
+ input[type="checkbox"]:focus {
64
128
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
65
129
  outline-offset: var(--ring-outline-offset);
66
130
  }
@@ -85,15 +149,11 @@ output {
85
149
  border: 1px solid #c9cbce;
86
150
  border: 1px solid var(--color-interactive-secondary);
87
151
  transition: border-color ease-in-out 0.15s;
152
+ font-size: 1rem;
153
+ font-size: var(--font-size-16);
88
154
  min-block-size: var(--input-height-base);
89
155
  padding: var(--input-padding);
90
156
  border-radius: 3px;
91
- font-weight: 400;
92
- font-weight: var(--font-weight-regular);
93
- font-size: 1rem;
94
- font-size: var(--font-size-16);
95
- line-height: 150%;
96
- letter-spacing: -0.011em;
97
157
  word-wrap: break-word;
98
158
  background-clip: padding-box;
99
159
  }
@@ -173,36 +233,36 @@ textarea.form-control {
173
233
  .np-theme-personal .form-control:focus {
174
234
  border-color: var(--color-interactive-primary);
175
235
  }
176
- input[type='search'] {
236
+ input[type="search"] {
177
237
  -webkit-appearance: none;
178
238
  -moz-appearance: none;
179
239
  appearance: none;
180
240
  }
181
241
  @media screen and (min-device-pixel-ratio: 0) {
182
- input[type='date'],
183
- input[type='time'],
184
- input[type='datetime-local'],
185
- input[type='month'] {
242
+ input[type="date"],
243
+ input[type="time"],
244
+ input[type="datetime-local"],
245
+ input[type="month"] {
186
246
  line-height: var(--input-height-base);
187
247
  }
188
- input[type='date'].input-sm,
189
- input[type='time'].input-sm,
190
- input[type='datetime-local'].input-sm,
191
- input[type='month'].input-sm,
192
- .input-group-sm input[type='date'],
193
- .input-group-sm input[type='time'],
194
- .input-group-sm input[type='datetime-local'],
195
- .input-group-sm input[type='month'] {
248
+ input[type="date"].input-sm,
249
+ input[type="time"].input-sm,
250
+ input[type="datetime-local"].input-sm,
251
+ input[type="month"].input-sm,
252
+ .input-group-sm input[type="date"],
253
+ .input-group-sm input[type="time"],
254
+ .input-group-sm input[type="datetime-local"],
255
+ .input-group-sm input[type="month"] {
196
256
  line-height: var(--input-height-small);
197
257
  }
198
- input[type='date'].input-lg,
199
- input[type='time'].input-lg,
200
- input[type='datetime-local'].input-lg,
201
- input[type='month'].input-lg,
202
- .input-group-lg input[type='date'],
203
- .input-group-lg input[type='time'],
204
- .input-group-lg input[type='datetime-local'],
205
- .input-group-lg input[type='month'] {
258
+ input[type="date"].input-lg,
259
+ input[type="time"].input-lg,
260
+ input[type="datetime-local"].input-lg,
261
+ input[type="month"].input-lg,
262
+ .input-group-lg input[type="date"],
263
+ .input-group-lg input[type="time"],
264
+ .input-group-lg input[type="datetime-local"],
265
+ .input-group-lg input[type="month"] {
206
266
  line-height: calc(var(--input-height-large) - 1.5);
207
267
  line-height: calc(var(--input-height-large) - var(--line-height-body));
208
268
  }
@@ -218,7 +278,7 @@ input[type='search'] {
218
278
  color: #37517e;
219
279
  color: var(--color-content-primary);
220
280
  }
221
- .row-equal-height > [class*='col-'] > .form-group {
281
+ .row-equal-height > [class*="col-"] > .form-group {
222
282
  inline-size: 100%;
223
283
  }
224
284
  .radio,
@@ -237,10 +297,10 @@ input[type='search'] {
237
297
  .checkbox + .checkbox {
238
298
  margin-block-start: 12px;
239
299
  }
240
- .radio input[type='radio'],
241
- .radio-inline input[type='radio'],
242
- .checkbox input[type='checkbox'],
243
- .checkbox-inline input[type='checkbox'] {
300
+ .radio input[type="radio"],
301
+ .radio-inline input[type="radio"],
302
+ .checkbox input[type="checkbox"],
303
+ .checkbox-inline input[type="checkbox"] {
244
304
  position: absolute;
245
305
  margin-inline-start: -20px;
246
306
  margin-block-start: 4px \9;
@@ -266,12 +326,12 @@ fieldset[disabled] .checkbox-inline {
266
326
  margin-block-start: 0;
267
327
  margin-inline-start: 10px;
268
328
  }
269
- input[type='radio'][disabled],
270
- input[type='checkbox'][disabled],
271
- input[type='radio'].disabled,
272
- input[type='checkbox'].disabled,
273
- fieldset[disabled] input[type='radio'],
274
- fieldset[disabled] input[type='checkbox'] {
329
+ input[type="radio"][disabled],
330
+ input[type="checkbox"][disabled],
331
+ input[type="radio"].disabled,
332
+ input[type="checkbox"].disabled,
333
+ fieldset[disabled] input[type="radio"],
334
+ fieldset[disabled] input[type="checkbox"] {
275
335
  cursor: not-allowed;
276
336
  }
277
337
  input[type="password"]::-ms-reveal {
@@ -307,12 +367,6 @@ fieldset[disabled] .checkbox label {
307
367
  border-radius: 3px;
308
368
  font-size: 14px;
309
369
  line-height: 24px;
310
- font-size: 0.875rem;
311
- font-size: var(--font-size-14);
312
- line-height: 155%;
313
- letter-spacing: -0.006em;
314
- font-weight: 400;
315
- font-weight: var(--font-weight-regular);
316
370
  word-wrap: break-word;
317
371
  }
318
372
  select.input-sm {
@@ -384,12 +438,6 @@ select[multiple].input-sm {
384
438
  min-block-size: var(--input-height-large);
385
439
  padding: var(--input-padding-large);
386
440
  border-radius: 3px;
387
- font-weight: 400;
388
- font-weight: var(--font-weight-regular);
389
- font-size: 1rem;
390
- font-size: var(--font-size-16);
391
- line-height: 150%;
392
- letter-spacing: -0.011em;
393
441
  word-wrap: break-word;
394
442
  }
395
443
  select.input-lg {
@@ -1372,8 +1420,8 @@ select[multiple].input-lg {
1372
1420
  .form-inline .checkbox label {
1373
1421
  padding-inline-start: 0;
1374
1422
  }
1375
- .form-inline .radio input[type='radio'],
1376
- .form-inline .checkbox input[type='checkbox'] {
1423
+ .form-inline .radio input[type="radio"],
1424
+ .form-inline .checkbox input[type="checkbox"] {
1377
1425
  position: relative;
1378
1426
  margin-inline-start: 0;
1379
1427
  }
@@ -1801,42 +1849,42 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
1801
1849
  margin-inline-start: -6px;
1802
1850
  margin-inline-end: -6px;
1803
1851
  }
1804
- .form-group .row [class*='col-'] {
1852
+ .form-group .row [class*="col-"] {
1805
1853
  padding-inline-start: 6px;
1806
1854
  padding-inline-end: 6px;
1807
1855
  }
1808
1856
  @media (max-width: 599.98px) {
1809
- .form-group .row [class*='col-sm-'] {
1857
+ .form-group .row [class*="col-sm-"] {
1810
1858
  margin-block-end: 0;
1811
1859
  }
1812
- .form-group .row [class*='col-sm-'] .btn-input {
1860
+ .form-group .row [class*="col-sm-"] .btn-input {
1813
1861
  margin-block-end: 12px;
1814
1862
  }
1815
1863
  }
1816
1864
  @media (max-width: 839.98px) {
1817
- .form-group .row [class*='col-md-'] {
1865
+ .form-group .row [class*="col-md-"] {
1818
1866
  margin-block-end: 0;
1819
1867
  }
1820
- .form-group .row [class*='col-md-'] .form-control,
1821
- .form-group .row [class*='col-md-'] .btn-input {
1868
+ .form-group .row [class*="col-md-"] .form-control,
1869
+ .form-group .row [class*="col-md-"] .btn-input {
1822
1870
  margin-block-end: 12px;
1823
1871
  }
1824
1872
  }
1825
1873
  @media (max-width: 1159.98px) {
1826
- .form-group .row [class*='col-lg-'] {
1874
+ .form-group .row [class*="col-lg-"] {
1827
1875
  margin-block-end: 0;
1828
1876
  }
1829
- .form-group .row [class*='col-lg-'] .form-control,
1830
- .form-group .row [class*='col-lg-'] .btn-input {
1877
+ .form-group .row [class*="col-lg-"] .form-control,
1878
+ .form-group .row [class*="col-lg-"] .btn-input {
1831
1879
  margin-block-end: 12px;
1832
1880
  }
1833
1881
  }
1834
1882
  @media (max-width: 1159.98px) {
1835
- .form-group .row [class*='col-xl-'] {
1883
+ .form-group .row [class*="col-xl-"] {
1836
1884
  margin-block-end: 0;
1837
1885
  }
1838
- .form-group .row [class*='col-xl-'] .form-control,
1839
- .form-group .row [class*='col-xl-'] .btn-input {
1886
+ .form-group .row [class*="col-xl-"] .form-control,
1887
+ .form-group .row [class*="col-xl-"] .btn-input {
1840
1888
  margin-block-end: 12px;
1841
1889
  }
1842
1890
  }
@@ -1919,7 +1967,11 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
1919
1967
  .checkbox.checkbox-lg > label .np-text-body-default,
1920
1968
  .radio.checkbox-lg > label .np-text-body-default,
1921
1969
  .checkbox.radio-lg > label .np-text-body-default,
1922
- .radio.radio-lg > label .np-text-body-default {
1970
+ .radio.radio-lg > label .np-text-body-default,
1971
+ .checkbox.checkbox-lg > label .wds-text-body-default,
1972
+ .radio.checkbox-lg > label .wds-text-body-default,
1973
+ .checkbox.radio-lg > label .wds-text-body-default,
1974
+ .radio.radio-lg > label .wds-text-body-default {
1923
1975
  display: block;
1924
1976
  color: #5d7079;
1925
1977
  color: var(--color-content-secondary);
@@ -2016,12 +2068,6 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2016
2068
  .form-control-placeholder {
2017
2069
  text-overflow: ellipsis;
2018
2070
  overflow: hidden;
2019
- font-weight: 400;
2020
- font-weight: var(--font-weight-regular);
2021
- font-size: 1rem;
2022
- font-size: var(--font-size-16);
2023
- line-height: 150%;
2024
- letter-spacing: -0.011em;
2025
2071
  word-wrap: break-word;
2026
2072
  display: block;
2027
2073
  inline-size: 100%;
@@ -2148,23 +2194,23 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2148
2194
  .np-theme-personal .has-error .checkbox:hover .tw-checkbox-button,
2149
2195
  .np-theme-personal .has-error .radio:not(.disabled):hover .tw-radio-button,
2150
2196
  .np-theme-personal .has-error .tw-checkbox-button:not(.disabled):not(:disabled):hover,
2151
- .np-theme-personal .has-error input[type=checkbox]:hover + .tw-checkbox-button,
2152
- .np-theme-personal .has-error input[type=radio]:not(.disabled):not(:disabled):hover + .tw-radio-button,
2153
- .np-theme-personal .has-error input[type=checkbox]:not(.disabled):not(:disabled):hover + .tw-checkbox-button {
2197
+ .np-theme-personal .has-error input[type="checkbox"]:hover + .tw-checkbox-button,
2198
+ .np-theme-personal .has-error input[type="radio"]:not(.disabled):not(:disabled):hover + .tw-radio-button,
2199
+ .np-theme-personal .has-error input[type="checkbox"]:not(.disabled):not(:disabled):hover + .tw-checkbox-button {
2154
2200
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-hover);
2155
2201
  }
2156
2202
  .np-theme-personal .has-error .tw-checkbox-button.checked,
2157
2203
  .np-theme-personal .has-error .tw-checkbox-button:checked,
2158
- .np-theme-personal .has-error input[type=checkbox]:checked + .tw-checkbox-button,
2204
+ .np-theme-personal .has-error input[type="checkbox"]:checked + .tw-checkbox-button,
2159
2205
  .np-theme-personal .has-error .tw-checkbox-button.checked:hover,
2160
2206
  .np-theme-personal .has-error .tw-checkbox-button:checked:hover,
2161
- .np-theme-personal .has-error input[type=checkbox]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
2207
+ .np-theme-personal .has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
2162
2208
  box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
2163
2209
  background: var(--color-sentiment-negative);
2164
2210
  }
2165
- .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):active input[type=checkbox] + .tw-checkbox-button,
2166
- .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):focus-visible input[type=checkbox] + .tw-checkbox-button,
2167
- .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):has(:focus-visible) input[type=checkbox] + .tw-checkbox-button {
2211
+ .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):active input[type="checkbox"] + .tw-checkbox-button,
2212
+ .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):focus-visible input[type="checkbox"] + .tw-checkbox-button,
2213
+ .np-theme-personal .has-error .checkbox > label:not(.disabled):not(:disabled):has(:focus-visible) input[type="checkbox"] + .tw-checkbox-button {
2168
2214
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-active);
2169
2215
  }
2170
2216
  .np-theme-personal .tw-radio-button,