@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,75 +1,46 @@
1
- .decision {
2
- cursor: pointer;
3
- margin-block-end: 0 !important;
4
- border: 0;
5
- align-items: center;
6
- transition: background-color ease 350ms;
7
- background-color: transparent;
8
- display: block;
9
- }
10
- .decision:not(.np-option):focus-visible,
11
- .decision:not(.np-option):has(:focus-visible) {
12
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
13
- outline-offset: 0;
14
- outline-offset: var(--ring-outline-offset);
15
- --ring-outline-offset: 0;
16
- }
17
- .decision__title {
18
- margin: 0;
19
- color: #37517e;
20
- color: var(--color-content-primary);
21
- line-height: 1.2;
22
- line-height: var(--line-height-title);
23
- letter-spacing: 0;
1
+ .decision__content {
24
2
  word-wrap: break-word;
25
- font-size: 1.125rem;
26
- font-size: var(--font-size-18);
27
- font-weight: 600;
28
- font-weight: var(--font-weight-semi-bold);
29
- letter-spacing: -0.014em;
30
- line-height: 135%;
31
3
  }
32
4
  @supports (hyphenate-limit-chars: 1) {
33
- .decision__title {
34
- hyphens: auto;
35
- hyphenate-limit-chars: 7 3;
5
+ .decision__content {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
36
7
  }
37
8
  @media (min-width: 840px) {
38
- .decision__title {
9
+ .decision__content {
39
10
  hyphenate-limit-chars: 8 3;
40
11
  }
41
12
  }
42
13
  @media (min-width: 1160px) {
43
- .decision__title {
14
+ .decision__content {
44
15
  hyphenate-limit-chars: 10 4 3;
45
16
  }
46
17
  }
47
- }
48
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
49
- .decision__title {
50
- hyphens: auto;
51
- -webkit-hyphenate-limit-before: 3;
52
- -webkit-hyphenate-limit-after: 3;
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .decision__content {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
53
21
  }
54
22
  @media (min-width: 1160px) {
55
- .decision__title {
23
+ .decision__content {
56
24
  -webkit-hyphenate-limit-before: 4;
57
25
  }
58
26
  }
27
+ }.decision {
28
+ cursor: pointer;
29
+ margin-block-end: 0 !important;
30
+ border: 0;
31
+ align-items: center;
32
+ transition: background-color ease 350ms;
33
+ background-color: transparent;
34
+ display: block;
59
35
  }
60
- .decision__title + p,
61
- .decision__title + ul:not(.list-unstyled),
62
- .decision__title + ol:not(.list-unstyled) {
63
- margin-block-start: 8px;
64
- margin-block-start: var(--size-8);
36
+ .decision:not(.np-option):focus-visible,
37
+ .decision:not(.np-option):has(:focus-visible) {
38
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
39
+ outline-offset: 0;
40
+ outline-offset: var(--ring-outline-offset);
41
+ --ring-outline-offset: 0;
65
42
  }
66
43
  .decision__content {
67
- font-size: 0.875rem;
68
- font-size: var(--font-size-14);
69
- line-height: 155%;
70
- letter-spacing: -0.006em;
71
- font-weight: 400;
72
- font-weight: var(--font-weight-regular);
73
44
  word-wrap: break-word;
74
45
  margin-block-start: 4px;
75
46
  margin-block-start: var(--size-4);
@@ -18,11 +18,11 @@
18
18
  }
19
19
 
20
20
  &__title {
21
- .np-text-title-body();
21
+ .wds-text-title-body();
22
22
  }
23
23
 
24
24
  &__content {
25
- .np-text-body-default;
25
+ .wds-text-body-default;
26
26
 
27
27
  margin-top: var(--size-4);
28
28
  }
@@ -1,4 +1,36 @@
1
- .dropup,
1
+ .dropdown-menu,
2
+ .dropdown-menu > li > a {
3
+ word-wrap: break-word;
4
+ }
5
+ @supports (hyphenate-limit-chars: 1) {
6
+ .dropdown-menu,
7
+ .dropdown-menu > li > a {
8
+ hyphens: auto;hyphenate-limit-chars: 7 3;
9
+ }
10
+ @media (min-width: 840px) {
11
+ .dropdown-menu,
12
+ .dropdown-menu > li > a {
13
+ hyphenate-limit-chars: 8 3;
14
+ }
15
+ }
16
+ @media (min-width: 1160px) {
17
+ .dropdown-menu,
18
+ .dropdown-menu > li > a {
19
+ hyphenate-limit-chars: 10 4 3;
20
+ }
21
+ }
22
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
23
+ .dropdown-menu,
24
+ .dropdown-menu > li > a {
25
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
26
+ }
27
+ @media (min-width: 1160px) {
28
+ .dropdown-menu,
29
+ .dropdown-menu > li > a {
30
+ -webkit-hyphenate-limit-before: 4;
31
+ }
32
+ }
33
+ }.dropup,
2
34
  .dropdown {
3
35
  position: relative;
4
36
  }
@@ -11,12 +43,6 @@
11
43
  padding: 8px;
12
44
  margin: 0;
13
45
  list-style: none;
14
- font-size: 0.875rem;
15
- font-size: var(--font-size-14);
16
- line-height: 155%;
17
- letter-spacing: -0.006em;
18
- font-weight: 400;
19
- font-weight: var(--font-weight-regular);
20
46
  word-wrap: break-word;
21
47
  text-align: start;
22
48
  background-color: #ffffff;
@@ -95,12 +121,6 @@
95
121
  padding: var(--dropdown-link-padding);
96
122
  clear: both;
97
123
  border-radius: 3px;
98
- font-size: 0.875rem;
99
- font-size: var(--font-size-14);
100
- line-height: 155%;
101
- letter-spacing: -0.006em;
102
- font-weight: 400;
103
- font-weight: var(--font-weight-regular);
104
124
  word-wrap: break-word;
105
125
  color: #37517e;
106
126
  color: var(--color-content-primary);
@@ -199,10 +219,12 @@
199
219
  .dropdown-menu > .selected > a strong {
200
220
  color: inherit;
201
221
  }
202
- .dropdown-menu > .active > a .np-text-body-default,
203
- .dropdown-menu > .selected > a .np-text-body-default,
204
222
  .dropdown-menu > .active > a .small,
205
223
  .dropdown-menu > .selected > a .small,
224
+ .dropdown-menu > .active > a .np-text-body-default,
225
+ .dropdown-menu > .selected > a .np-text-body-default,
226
+ .dropdown-menu > .active > a .wds-text-body-default,
227
+ .dropdown-menu > .selected > a .wds-text-body-default,
206
228
  .dropdown-menu > .active > a .secondary,
207
229
  .dropdown-menu > .selected > a .secondary {
208
230
  color: #c9cbce;
@@ -297,58 +319,13 @@
297
319
  display: block;
298
320
  padding-block: 8px;
299
321
  padding-inline: 16px;
322
+ font-size: 0.875rem;
323
+ font-size: var(--font-size-14);
300
324
  line-height: 1.5;
301
325
  line-height: var(--line-height-body);
302
326
  color: #5d7079;
303
327
  color: var(--color-content-secondary);
304
328
  white-space: nowrap;
305
- margin: 0;
306
- color: #37517e;
307
- color: var(--color-content-primary);
308
- line-height: 1.2;
309
- line-height: var(--line-height-title);
310
- letter-spacing: 0;
311
- word-wrap: break-word;
312
- font-weight: 500;
313
- font-weight: var(--font-weight-medium);
314
- font-size: 0.875rem;
315
- font-size: var(--font-size-14);
316
- letter-spacing: -0.006em;
317
- line-height: 140%;
318
- }
319
- @supports (hyphenate-limit-chars: 1) {
320
- .dropdown-header {
321
- hyphens: auto;
322
- hyphenate-limit-chars: 7 3;
323
- }
324
- @media (min-width: 840px) {
325
- .dropdown-header {
326
- hyphenate-limit-chars: 8 3;
327
- }
328
- }
329
- @media (min-width: 1160px) {
330
- .dropdown-header {
331
- hyphenate-limit-chars: 10 4 3;
332
- }
333
- }
334
- }
335
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
336
- .dropdown-header {
337
- hyphens: auto;
338
- -webkit-hyphenate-limit-before: 3;
339
- -webkit-hyphenate-limit-after: 3;
340
- }
341
- @media (min-width: 1160px) {
342
- .dropdown-header {
343
- -webkit-hyphenate-limit-before: 4;
344
- }
345
- }
346
- }
347
- .dropdown-header + p,
348
- .dropdown-header + ul:not(.list-unstyled),
349
- .dropdown-header + ol:not(.list-unstyled) {
350
- margin-block-start: 8px;
351
- margin-block-start: var(--size-8);
352
329
  }
353
330
  .dropdown-backdrop {
354
331
  position: fixed;
@@ -1,4 +1,4 @@
1
- @import (reference) "../variables/neptune-tokens.less";
1
+ @import (reference) "../variables/neptune-tokens.less";
2
2
  @import (reference) "../variables/legacy-variables.less";
3
3
  @import (reference) "../less/core/_typography.less";
4
4
  @import (reference) "./mixins/_border-radius.less";
@@ -30,7 +30,7 @@
30
30
 
31
31
  margin: 0; // override default ul
32
32
  list-style: none;
33
- .np-text-body-default;
33
+ .wds-text-body-default;
34
34
  .text-align(left); // Ensures proper alignment if parent has it changed (e.g., modal footer)
35
35
 
36
36
  background-color: var(--color-background-screen);
@@ -74,7 +74,7 @@
74
74
  padding: var(--dropdown-link-padding);
75
75
  clear: both;
76
76
  border-radius: @border-radius-base;
77
- .np-text-body-default;
77
+ .wds-text-body-default;
78
78
 
79
79
  color: var(--color-content-primary);
80
80
  white-space: nowrap; // prevent links from randomly breaking onto new lines
@@ -174,8 +174,9 @@
174
174
  color: inherit;
175
175
  }
176
176
 
177
- .np-text-body-default,
178
177
  .small,
178
+ .np-text-body-default,
179
+ .wds-text-body-default,
179
180
  .secondary {
180
181
  color: @color-navy-content-secondary;
181
182
  }
@@ -313,7 +314,7 @@
313
314
  color: var(--color-content-secondary);
314
315
  white-space: nowrap; // as with > li > a
315
316
 
316
- .np-text-title-group();
317
+ .wds-text-title-group();
317
318
  }
318
319
 
319
320
  // Backdrop to catch body clicks on mobile, etc.
@@ -1,11 +1,31 @@
1
1
  .droppable {
2
+ word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .droppable {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .droppable {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .droppable {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .droppable {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .droppable {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.droppable {
2
28
  position: relative;
3
- font-weight: 400;
4
- font-weight: var(--font-weight-regular);
5
- font-size: 1rem;
6
- font-size: var(--font-size-16);
7
- line-height: 150%;
8
- letter-spacing: -0.011em;
9
29
  word-wrap: break-word;
10
30
  text-align: center;
11
31
  border: 1px solid #c9cbce;
@@ -167,7 +187,7 @@
167
187
  z-index: 1;
168
188
  }
169
189
  .np-theme-personal .droppable-dropping-card {
170
- background-color: #E1E4DF;
190
+ background-color: #e1e4df;
171
191
  color: #37517e;
172
192
  color: var(--color-content-primary);
173
193
  }
@@ -175,7 +195,7 @@
175
195
  background-color: #404440;
176
196
  }
177
197
  .np-theme-personal--forest-green .droppable-dropping-card {
178
- background-color: #455C35;
198
+ background-color: #455c35;
179
199
  }
180
200
  .droppable-dropping .droppable-dropping-card {
181
201
  display: flex;
@@ -4,7 +4,7 @@
4
4
 
5
5
  .droppable {
6
6
  position: relative;
7
- .np-text-body-large;
7
+ .wds-text-body-large;
8
8
 
9
9
  text-align: center;
10
10
  border: 1px solid var(--color-interactive-secondary);
@@ -74,7 +74,7 @@
74
74
  }
75
75
  .circle {
76
76
  background-color: var(--color-contrast);
77
- color: var(--color-content-primary)!important;
77
+ color: var(--color-content-primary) !important;
78
78
  }
79
79
  }
80
80
  }
@@ -136,7 +136,7 @@
136
136
 
137
137
  .np-theme-personal & {
138
138
  // is a hex code because can't have transparency
139
- background-color: #E1E4DF;
139
+ background-color: #e1e4df;
140
140
  color: var(--color-content-primary);
141
141
  }
142
142
 
@@ -147,7 +147,7 @@
147
147
 
148
148
  .np-theme-personal--forest-green & {
149
149
  // is a hex code because can't have transparency
150
- background-color: #455C35;
150
+ background-color: #455c35;
151
151
  }
152
152
  }
153
153
 
@@ -1,12 +1,44 @@
1
- .footer {
1
+ .footer,
2
+ .footer .footer-link,
3
+ .footer .link-icon {
4
+ word-wrap: break-word;
5
+ }
6
+ @supports (hyphenate-limit-chars: 1) {
7
+ .footer,
8
+ .footer .footer-link,
9
+ .footer .link-icon {
10
+ hyphens: auto;hyphenate-limit-chars: 7 3;
11
+ }
12
+ @media (min-width: 840px) {
13
+ .footer,
14
+ .footer .footer-link,
15
+ .footer .link-icon {
16
+ hyphenate-limit-chars: 8 3;
17
+ }
18
+ }
19
+ @media (min-width: 1160px) {
20
+ .footer,
21
+ .footer .footer-link,
22
+ .footer .link-icon {
23
+ hyphenate-limit-chars: 10 4 3;
24
+ }
25
+ }
26
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
27
+ .footer,
28
+ .footer .footer-link,
29
+ .footer .link-icon {
30
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
31
+ }
32
+ @media (min-width: 1160px) {
33
+ .footer,
34
+ .footer .footer-link,
35
+ .footer .link-icon {
36
+ -webkit-hyphenate-limit-before: 4;
37
+ }
38
+ }
39
+ }.footer {
2
40
  background-color: rgba(134,167,189,0.10196);
3
41
  background-color: var(--color-background-neutral);
4
- font-size: 0.875rem;
5
- font-size: var(--font-size-14);
6
- line-height: 155%;
7
- letter-spacing: -0.006em;
8
- font-weight: 400;
9
- font-weight: var(--font-weight-regular);
10
42
  word-wrap: break-word;
11
43
  padding-block-start: calc(8px * 10);
12
44
  padding-block-start: calc(var(--size-8) * 10);
@@ -61,12 +93,6 @@
61
93
  .footer .link-icon {
62
94
  color: #5d7079;
63
95
  color: var(--color-content-secondary);
64
- font-size: 0.875rem;
65
- font-size: var(--font-size-14);
66
- line-height: 155%;
67
- letter-spacing: -0.006em;
68
- font-weight: 400;
69
- font-weight: var(--font-weight-regular);
70
96
  word-wrap: break-word;
71
97
  }
72
98
  @supports (hyphenate-limit-chars: 1) {
@@ -183,7 +209,8 @@
183
209
  }
184
210
  .footer.footer-inverse .tiny,
185
211
  .footer.footer-inverse .body-3,
186
- .footer.footer-inverse .np-text-body-default {
212
+ .footer.footer-inverse .np-text-body-default,
213
+ .footer.footer-inverse .wds-text-body-default {
187
214
  color: #ffffff;
188
215
  }
189
216
  @media (max-width: 599.98px) {
@@ -3,7 +3,7 @@
3
3
 
4
4
  .footer {
5
5
  background-color: var(--color-background-neutral);
6
- .np-text-body-default;
6
+ .wds-text-body-default;
7
7
 
8
8
  padding-top: calc(var(--size-8) * 10);
9
9
  padding-bottom: calc(var(--size-8) * 10);
@@ -21,7 +21,7 @@
21
21
  .footer-link,
22
22
  .link-icon {
23
23
  color: var(--color-content-secondary);
24
- .np-text-body-default;
24
+ .wds-text-body-default;
25
25
 
26
26
  &:hover,
27
27
  &:active,
@@ -102,7 +102,8 @@
102
102
 
103
103
  .tiny,
104
104
  .body-3,
105
- .np-text-body-default {
105
+ .np-text-body-default,
106
+ .wds-text-body-default {
106
107
  color: @color-navy-content-primary;
107
108
  }
108
109
  }