@transferwise/components 0.0.0-experimental-f9a65ef → 0.0.0-experimental-7a793eb

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 (85) hide show
  1. package/build/main.css +193 -272
  2. package/build/styles/css/accordion.css +0 -38
  3. package/build/styles/css/badge.css +2 -2
  4. package/build/styles/css/button-groups.css +2 -1
  5. package/build/styles/css/buttons.css +9 -9
  6. package/build/styles/css/decision.css +0 -38
  7. package/build/styles/css/dropdowns.css +6 -40
  8. package/build/styles/css/droppable.css +2 -2
  9. package/build/styles/css/footer.css +2 -1
  10. package/build/styles/css/input-groups.css +15 -53
  11. package/build/styles/css/list-group.css +1 -36
  12. package/build/styles/css/modals.css +1 -1
  13. package/build/styles/css/navbar.css +33 -67
  14. package/build/styles/css/navs.css +8 -8
  15. package/build/styles/css/neptune-addons.css +15 -0
  16. package/build/styles/css/neptune.css +193 -272
  17. package/build/styles/css/panels.css +2 -2
  18. package/build/styles/css/popovers.css +5 -40
  19. package/build/styles/css/progress-bars.css +2 -2
  20. package/build/styles/css/sequences.css +14 -9
  21. package/build/styles/css/table.css +7 -7
  22. package/build/styles/less/legacy-variables.less +3 -3
  23. package/build/styles/main.css +193 -272
  24. package/build/styles/styles/less/accordion.css +0 -38
  25. package/build/styles/styles/less/badge.css +2 -2
  26. package/build/styles/styles/less/button-groups.css +2 -1
  27. package/build/styles/styles/less/buttons.css +9 -9
  28. package/build/styles/styles/less/decision.css +0 -38
  29. package/build/styles/styles/less/dropdowns.css +6 -40
  30. package/build/styles/styles/less/droppable.css +2 -2
  31. package/build/styles/styles/less/footer.css +2 -1
  32. package/build/styles/styles/less/input-groups.css +15 -53
  33. package/build/styles/styles/less/list-group.css +1 -36
  34. package/build/styles/styles/less/modals.css +1 -1
  35. package/build/styles/styles/less/navbar.css +33 -67
  36. package/build/styles/styles/less/navs.css +8 -8
  37. package/build/styles/styles/less/neptune-addons.css +15 -0
  38. package/build/styles/styles/less/neptune.css +193 -272
  39. package/build/styles/styles/less/panels.css +2 -2
  40. package/build/styles/styles/less/popovers.css +5 -40
  41. package/build/styles/styles/less/progress-bars.css +2 -2
  42. package/build/styles/styles/less/sequences.css +14 -9
  43. package/build/styles/styles/less/table.css +7 -7
  44. package/package.json +1 -1
  45. package/src/main.css +193 -272
  46. package/src/styles/less/accordion.css +0 -38
  47. package/src/styles/less/addons/_background-utilities.less +5 -0
  48. package/src/styles/less/badge.css +2 -2
  49. package/src/styles/less/badge.less +2 -2
  50. package/src/styles/less/button-groups.css +2 -1
  51. package/src/styles/less/button-groups.less +3 -2
  52. package/src/styles/less/buttons.css +9 -9
  53. package/src/styles/less/buttons.less +7 -7
  54. package/src/styles/less/decision.css +0 -38
  55. package/src/styles/less/decision.less +2 -2
  56. package/src/styles/less/dropdowns.css +6 -40
  57. package/src/styles/less/dropdowns.less +8 -7
  58. package/src/styles/less/droppable.css +2 -2
  59. package/src/styles/less/droppable.less +4 -4
  60. package/src/styles/less/footer.css +2 -1
  61. package/src/styles/less/footer.less +4 -3
  62. package/src/styles/less/input-groups.css +15 -53
  63. package/src/styles/less/input-groups.less +20 -10
  64. package/src/styles/less/list-group.css +1 -36
  65. package/src/styles/less/list-group.less +8 -5
  66. package/src/styles/less/modals.css +1 -1
  67. package/src/styles/less/modals.less +1 -1
  68. package/src/styles/less/navbar.css +33 -67
  69. package/src/styles/less/navbar.less +19 -19
  70. package/src/styles/less/navs.css +8 -8
  71. package/src/styles/less/navs.less +8 -8
  72. package/src/styles/less/neptune-addons.css +15 -0
  73. package/src/styles/less/neptune.css +193 -272
  74. package/src/styles/less/panels.css +2 -2
  75. package/src/styles/less/panels.less +2 -2
  76. package/src/styles/less/popovers.css +5 -40
  77. package/src/styles/less/popovers.less +7 -7
  78. package/src/styles/less/progress-bars.css +2 -2
  79. package/src/styles/less/progress-bars.less +2 -2
  80. package/src/styles/less/sequences.css +14 -9
  81. package/src/styles/less/sequences.less +15 -10
  82. package/src/styles/less/table.css +7 -7
  83. package/src/styles/less/table.less +7 -7
  84. package/src/styles/less/tooltip.less +1 -1
  85. package/src/styles/variables/legacy-variables.less +3 -3
@@ -19,7 +19,7 @@
19
19
  .panel-title {
20
20
  margin-block-start: 0;
21
21
  margin-block-end: 0;
22
- line-height: calc(var(--line-height-title) + 8px);
22
+ line-height: calc(var(--wds-line-height-title-section) + 8px);
23
23
  }
24
24
  .panel-title > a {
25
25
  -webkit-text-decoration: none;
@@ -69,7 +69,7 @@
69
69
  }
70
70
  @media (min-width: 840px) {
71
71
  .panel-title {
72
- line-height: calc(var(--line-height-title) * 2);
72
+ line-height: calc(var(--wds-line-height-title-section) * 2);
73
73
  }
74
74
  .panel-heading > .btn-sm {
75
75
  margin-block-start: 8px;
@@ -278,10 +278,8 @@ button.close {
278
278
  margin-inline: 0;
279
279
  }
280
280
  .popover-title {
281
- padding: 0;
282
281
  margin: 0;
283
- color: var(--color-content-primary);
284
- word-wrap: break-word;
282
+ padding: 0;
285
283
  background-color: var(--color-background-screen);
286
284
  border-block-end: 0;
287
285
  border-start-start-radius: 2px;
@@ -290,39 +288,6 @@ button.close {
290
288
  border-end-start-radius: 0;
291
289
  color: var(--color-content-primary) !important;
292
290
  }
293
- @supports (hyphenate-limit-chars: 1) {
294
- .popover-title {
295
- hyphens: auto;
296
- hyphenate-limit-chars: 7 3;
297
- }
298
- @media (min-width: 840px) {
299
- .popover-title {
300
- hyphenate-limit-chars: 8 3;
301
- }
302
- }
303
- @media (min-width: 1160px) {
304
- .popover-title {
305
- hyphenate-limit-chars: 10 4 3;
306
- }
307
- }
308
- }
309
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
310
- .popover-title {
311
- hyphens: auto;
312
- -webkit-hyphenate-limit-before: 3;
313
- -webkit-hyphenate-limit-after: 3;
314
- }
315
- @media (min-width: 1160px) {
316
- .popover-title {
317
- -webkit-hyphenate-limit-before: 4;
318
- }
319
- }
320
- }
321
- .popover-title + p,
322
- .popover-title + ul:not(.list-unstyled),
323
- .popover-title + ol:not(.list-unstyled) {
324
- margin-block-start: var(--size-8);
325
- }
326
291
  .popover-content {
327
292
  padding: 0;
328
293
  word-wrap: break-word;
@@ -493,13 +458,13 @@ button.popover-close {
493
458
  }
494
459
  }
495
460
  .popover-promotion .popover-title {
496
- font-size: var(--font-size-16);
497
- line-height: var(--line-height-title);
461
+ font-size: var(--wds-font-size-body-large);
462
+ line-height: var(--wds-font-size-body-large);
498
463
  }
499
464
  @media (min-width: 840px) {
500
465
  .popover-promotion .popover-title {
501
- font-size: var(--font-size-20);
502
- line-height: var(--line-height-title);
466
+ font-size: var(--wds-font-size-title-body);
467
+ line-height: var(--wds-font-size-title-body);
503
468
  }
504
469
  }
505
470
  @media (max-width: 320px) {
@@ -15,8 +15,8 @@
15
15
  inset-block-start: calc(-1 * var(--progress-bar-border-width));
16
16
  inset-inline-start: calc(-1 * var(--progress-bar-start-shift));
17
17
  block-size: calc(var(--progress-bar-height) + var(--progress-bar-border-width) * 2);
18
- font-size: var(--font-size-16);
19
- font-weight: var(--font-weight-bold);
18
+ font-size: var(--wds-font-size-body-large);
19
+ font-weight: var(--wds-font-weight-body-bold);
20
20
  color: #fff;
21
21
  text-align: end;
22
22
  background-color: var(--color-content-accent);
@@ -4,7 +4,7 @@
4
4
  margin-inline-start: 25px;
5
5
  margin-block-start: 0;
6
6
  margin-block-end: 0;
7
- font-size: var(--font-size-14);
7
+ font-size: var(--wds-font-size-body);
8
8
  border-color: var(--color-border-neutral);
9
9
  }
10
10
  .sequence > li {
@@ -81,7 +81,7 @@
81
81
  @media (min-width: 840px) {
82
82
  .sequence {
83
83
  padding-inline-end: 24px;
84
- font-size: var(--font-size-16);
84
+ font-size: var(--wds-font-size-body-large);
85
85
  }
86
86
  }
87
87
  .sequence > li {
@@ -94,7 +94,7 @@
94
94
  display: block;
95
95
  -webkit-text-decoration: none;
96
96
  text-decoration: none;
97
- font-weight: var(--font-weight-regular);
97
+ font-weight: var(--wds-font-weight-body-regular);
98
98
  color: var(--color-content-accent);
99
99
  outline-offset: -1px;
100
100
  }
@@ -123,6 +123,10 @@
123
123
  .sequence > li .h2,
124
124
  .sequence > li .h3,
125
125
  .sequence > li .h4,
126
+ .sequence > li .wds-text-title-screen,
127
+ .sequence > li .wds-text-title-section,
128
+ .sequence > li .wds-text-title-subsection,
129
+ .sequence > li .wds-text-title-body,
126
130
  .sequence > li .btn-toolbar {
127
131
  margin-block-end: 16px;
128
132
  }
@@ -159,7 +163,7 @@
159
163
  -webkit-text-decoration: none;
160
164
  text-decoration: none;
161
165
  color: var(--color-content-primary);
162
- font-weight: var(--font-weight-semi-bold);
166
+ font-weight: var(--wds-font-weight-title-body);
163
167
  }
164
168
  .sequence > .active > a:hover,
165
169
  .sequence > .active > a:focus {
@@ -184,7 +188,7 @@
184
188
  .sequence a {
185
189
  -webkit-text-decoration: none;
186
190
  text-decoration: none;
187
- font-weight: var(--font-weight-regular);
191
+ font-weight: var(--wds-font-weight-body-regular);
188
192
  }
189
193
  .sequence-top > li:first-child::after {
190
194
  inset-block-start: 0;
@@ -203,7 +207,8 @@
203
207
  }
204
208
  .sequence-inverse > .active .small,
205
209
  .sequence-inverse > .active .body-2,
206
- .sequence-inverse > .active .np-text-body-default {
210
+ .sequence-inverse > .active .np-text-body-default,
211
+ .sequence-inverse > .active .wds-text-body-default {
207
212
  color: var(--color-content-secondary);
208
213
  }
209
214
  .sequence-inverse > .active::after,
@@ -351,7 +356,7 @@
351
356
  font-size: var(--font-size-12);
352
357
  }
353
358
  .sequence-icon .icon {
354
- font-size: var(--font-size-16);
359
+ font-size: var(--wds-font-size-body-large);
355
360
  line-height: 23px;
356
361
  }
357
362
  .sequence-inverse .sequence-icon {
@@ -442,14 +447,14 @@
442
447
  block-size: 32px;
443
448
  line-height: 30px;
444
449
  margin-block-start: -6px;
445
- font-size: var(--font-size-14);
450
+ font-size: var(--wds-font-size-body);
446
451
  }
447
452
  .sequence-icon-lg {
448
453
  inline-size: 40px;
449
454
  block-size: 40px;
450
455
  line-height: 38px;
451
456
  margin-block-start: -6px;
452
- font-size: var(--font-size-16);
457
+ font-size: var(--wds-font-size-body-large);
453
458
  }
454
459
  .sequence-icon-lg .icon {
455
460
  font-size: 22px;
@@ -30,7 +30,7 @@ th {
30
30
  .table > tfoot > tr > td {
31
31
  padding-block: var(--size-24);
32
32
  padding-inline: var(--size-16);
33
- line-height: var(--line-height-body);
33
+ line-height: var(--wds-line-height-body-large);
34
34
  vertical-align: top;
35
35
  border-block-start: 1px solid var(--color-border-neutral);
36
36
  border-block-end: 0;
@@ -41,7 +41,7 @@ th {
41
41
  .table > .tfoot > ol > li {
42
42
  padding-block: var(--size-24);
43
43
  padding-inline: var(--size-16);
44
- line-height: var(--line-height-body);
44
+ line-height: var(--wds-line-height-body-large);
45
45
  vertical-align: top;
46
46
  border-block-start: 1px solid var(--color-border-neutral);
47
47
  border-block-end: 0;
@@ -81,12 +81,12 @@ th {
81
81
  .table > tfoot,
82
82
  .table > .thead,
83
83
  .table > .tfoot {
84
- font-size: var(--font-size-14);
84
+ font-size: var(--wds-font-size-body);
85
85
  color: var(--color-content-primary);
86
86
  }
87
87
  .table > tbody,
88
88
  .table > .tbody {
89
- font-size: var(--font-size-14);
89
+ font-size: var(--wds-font-size-body);
90
90
  }
91
91
  .table > tbody > tr > th,
92
92
  .table > .tbody > dl > .th {
@@ -328,7 +328,7 @@ table col[class*="col-"] {
328
328
  }
329
329
  .table > .thead > ol > li {
330
330
  display: table-cell;
331
- font-weight: var(--font-weight-bold);
331
+ font-weight: var(--wds-font-weight-title-body);
332
332
  color: var(--color-content-primary);
333
333
  }
334
334
  .table > .tbody {
@@ -342,7 +342,7 @@ table col[class*="col-"] {
342
342
  }
343
343
  .table > .tbody > dl > dd {
344
344
  display: table-cell;
345
- font-size: var(--font-size-14);
345
+ font-size: var(--wds-font-size-body);
346
346
  color: var(--color-content-secondary);
347
347
  }
348
348
  .table > .tfoot {
@@ -358,7 +358,7 @@ table col[class*="col-"] {
358
358
  border-radius: 3px;
359
359
  margin-block-end: var(--size-24);
360
360
  padding-block: var(--size-24) 0;
361
- padding-inline: var(--line-height-body);
361
+ padding-inline: var(--wds-line-height-body-large);
362
362
  }
363
363
  .table > .tbody > dl > dd {
364
364
  padding: 0;
@@ -157,7 +157,7 @@
157
157
  //
158
158
  //## Font, line-height, and color for body text, headings, and more.
159
159
 
160
- @font-family-sans-serif: var(--font-family-regular);
160
+ @font-family-sans-serif: var(--wds-font-family-regular);
161
161
  @font-family-serif: Georgia, "Times New Roman", Times, serif;
162
162
  //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
163
163
  @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
@@ -196,7 +196,7 @@
196
196
  @line-height-computed: 24px; // ~24px
197
197
 
198
198
  //** By default, this inherits from the `<body>`.
199
- @headings-font-family: var(--font-family-regular);
199
+ @headings-font-family: var(--wds-font-family-regular);
200
200
  @headings-font-weight: @font-weight-semi-bold;
201
201
  @headings-line-height: 1.2; //1.1;
202
202
  @headings-color: @brand-navy-minus-10;
@@ -221,7 +221,7 @@
221
221
  @display3-line-height: 88px;
222
222
  @display4-line-height: 72px;
223
223
 
224
- @buttons-font-family: var(--font-family-regular);
224
+ @buttons-font-family: var(--wds-font-family-regular);
225
225
 
226
226
  //** Global textual link color.
227
227
  @link-color: @brand-light-blue;