@transferwise/neptune-css 0.0.0-experimental-1887cd9 → 0.0.0-experimental-0ab9313

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 (91) hide show
  1. package/dist/css/accordion.css +53 -11
  2. package/dist/css/badge.css +2 -2
  3. package/dist/css/button-groups.css +29 -6
  4. package/dist/css/buttons.css +35 -11
  5. package/dist/css/decision.css +53 -11
  6. package/dist/css/dropdowns.css +65 -18
  7. package/dist/css/droppable.css +28 -6
  8. package/dist/css/footer.css +41 -10
  9. package/dist/css/input-groups.css +249 -117
  10. package/dist/css/list-group.css +28 -8
  11. package/dist/css/modals.css +1 -1
  12. package/dist/css/navbar.css +92 -45
  13. package/dist/css/navs.css +8 -8
  14. package/dist/css/neptune-addons.css +15 -0
  15. package/dist/css/neptune-core.css +6241 -534
  16. package/dist/css/neptune.css +8789 -1765
  17. package/dist/css/panels.css +2 -2
  18. package/dist/css/popovers.css +64 -20
  19. package/dist/css/progress-bars.css +2 -2
  20. package/dist/css/sequences.css +14 -9
  21. package/dist/css/table.css +7 -7
  22. package/dist/css/tooltip.css +28 -6
  23. package/dist/less/legacy-variables.less +3 -3
  24. package/dist/less/neptune-tokens.less +0 -48
  25. package/dist/props/neptune-tokens.css +805 -3
  26. package/package.json +2 -2
  27. package/src/less/addons/_background-utilities.less +5 -0
  28. package/src/less/badge.less +2 -2
  29. package/src/less/button-groups.less +3 -2
  30. package/src/less/buttons.less +7 -7
  31. package/src/less/core/_fonts.less +7 -75
  32. package/src/less/core/_scaffolding.less +4 -4
  33. package/src/less/core/_typography-utilities.less +3 -3
  34. package/src/less/core/_typography.less +93 -238
  35. package/src/less/core/fonts/_fonts-ar.less +86 -0
  36. package/src/less/core/fonts/_fonts-base.less +99 -0
  37. package/src/less/core/fonts/_fonts-he.less +8 -0
  38. package/src/less/core/fonts/_fonts-ja.less +4247 -0
  39. package/src/less/core/fonts/_fonts-ko.less +1079 -0
  40. package/src/less/core/fonts/_fonts-th.less +8 -0
  41. package/src/less/core/fonts/_fonts-zh.less +872 -0
  42. package/src/less/decision.less +2 -2
  43. package/src/less/dropdowns.less +8 -7
  44. package/src/less/droppable.less +4 -4
  45. package/src/less/footer.less +4 -3
  46. package/src/less/forms/bootstrap-forms.less +85 -72
  47. package/src/less/forms/checkbox-radio.less +3 -3
  48. package/src/less/input-groups.less +23 -9
  49. package/src/less/list-group.less +8 -5
  50. package/src/less/mixins/_reset-text.less +1 -1
  51. package/src/less/mixins/_text-emphasis.less +7 -1
  52. package/src/less/modals.less +1 -1
  53. package/src/less/navbar.less +19 -19
  54. package/src/less/navs.less +8 -8
  55. package/src/less/neptune.bundle.less +4 -0
  56. package/src/less/panels.less +2 -2
  57. package/src/less/popovers.less +7 -7
  58. package/src/less/progress-bars.less +2 -2
  59. package/src/less/sequences.less +15 -10
  60. package/src/less/table.less +7 -7
  61. package/src/less/tooltip.less +1 -1
  62. package/src/variables/legacy-variables.less +3 -3
  63. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  64. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  65. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  66. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  67. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  68. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  69. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  70. package/dist/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  71. package/dist/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  72. package/dist/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  73. package/dist/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  74. package/dist/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  75. package/dist/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
  76. package/dist/less/legacy-variables.css +0 -0
  77. package/dist/less/neptune-tokens.css +0 -0
  78. package/dist/less/zindex.css +0 -0
  79. package/src/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  80. package/src/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  81. package/src/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  82. package/src/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  83. package/src/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  84. package/src/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  85. package/src/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  86. package/src/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  87. package/src/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  88. package/src/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  89. package/src/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  90. package/src/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  91. package/src/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
@@ -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;
@@ -1,4 +1,62 @@
1
- .close {
1
+ .popover-title {
2
+ margin: 0;color: var(--color-content-primary);word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .popover-title {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .popover-title {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .popover-title {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .popover-title {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .popover-title {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.popover,
28
+ .popover-content {
29
+ word-wrap: break-word;
30
+ }
31
+ @supports (hyphenate-limit-chars: 1) {
32
+ .popover,
33
+ .popover-content {
34
+ hyphens: auto;hyphenate-limit-chars: 7 3;
35
+ }
36
+ @media (min-width: 840px) {
37
+ .popover,
38
+ .popover-content {
39
+ hyphenate-limit-chars: 8 3;
40
+ }
41
+ }
42
+ @media (min-width: 1160px) {
43
+ .popover,
44
+ .popover-content {
45
+ hyphenate-limit-chars: 10 4 3;
46
+ }
47
+ }
48
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
49
+ .popover,
50
+ .popover-content {
51
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
52
+ }
53
+ @media (min-width: 1160px) {
54
+ .popover,
55
+ .popover-content {
56
+ -webkit-hyphenate-limit-before: 4;
57
+ }
58
+ }
59
+ }.close {
2
60
  float: inline-end;
3
61
  color: var(--color-content-accent);
4
62
  -webkit-text-decoration: none;
@@ -46,7 +104,7 @@ button.close {
46
104
  inline-size: 276px;
47
105
  padding-block: 18px;
48
106
  padding-inline: 24px;
49
- font-family: var(--font-family-regular);
107
+ font-family: var(--wds-font-family-regular);
50
108
  font-style: normal;
51
109
  font-weight: normal;
52
110
  letter-spacing: normal;
@@ -61,10 +119,6 @@ button.close {
61
119
  word-break: normal;
62
120
  word-spacing: normal;
63
121
  word-wrap: normal;
64
- font-size: var(--font-size-14);
65
- line-height: 155%;
66
- letter-spacing: -0.006em;
67
- font-weight: var(--font-weight-regular);
68
122
  word-wrap: break-word;
69
123
  background-color: var(--color-background-screen);
70
124
  background-clip: padding-box;
@@ -253,13 +307,7 @@ button.close {
253
307
  padding: 0;
254
308
  margin: 0;
255
309
  color: var(--color-content-primary);
256
- line-height: var(--line-height-title);
257
- letter-spacing: 0;
258
310
  word-wrap: break-word;
259
- font-size: var(--font-size-18);
260
- font-weight: var(--font-weight-semi-bold);
261
- letter-spacing: -0.014em;
262
- line-height: 135%;
263
311
  background-color: var(--color-background-screen);
264
312
  border-block-end: 0;
265
313
  border-start-start-radius: 2px;
@@ -303,10 +351,6 @@ button.close {
303
351
  }
304
352
  .popover-content {
305
353
  padding: 0;
306
- font-size: var(--font-size-14);
307
- line-height: 155%;
308
- letter-spacing: -0.006em;
309
- font-weight: var(--font-weight-regular);
310
354
  word-wrap: break-word;
311
355
  color: var(--color-content-secondary);
312
356
  }
@@ -475,13 +519,13 @@ button.popover-close {
475
519
  }
476
520
  }
477
521
  .popover-promotion .popover-title {
478
- font-size: var(--font-size-16);
479
- line-height: var(--line-height-title);
522
+ font-size: var(--wds-font-size-body-large);
523
+ line-height: var(--wds-font-size-body-large);
480
524
  }
481
525
  @media (min-width: 840px) {
482
526
  .popover-promotion .popover-title {
483
- font-size: var(--font-size-20);
484
- line-height: var(--line-height-title);
527
+ font-size: var(--wds-font-size-title-body);
528
+ line-height: var(--wds-font-size-title-body);
485
529
  }
486
530
  }
487
531
  @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;
@@ -1,8 +1,34 @@
1
- .tooltip {
1
+ .tooltip-inner {
2
+ word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .tooltip-inner {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .tooltip-inner {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .tooltip-inner {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .tooltip-inner {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .tooltip-inner {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.tooltip {
2
28
  position: absolute;
3
29
  z-index: 1070;
4
30
  display: block;
5
- font-family: var(--font-family-regular);
31
+ font-family: var(--wds-font-family-regular);
6
32
  font-style: normal;
7
33
  font-weight: normal;
8
34
  letter-spacing: normal;
@@ -43,10 +69,6 @@
43
69
  padding-inline: 5px;
44
70
  }
45
71
  .tooltip-inner {
46
- font-size: var(--font-size-14);
47
- line-height: 155%;
48
- letter-spacing: -0.006em;
49
- font-weight: var(--font-weight-regular);
50
72
  word-wrap: break-word;
51
73
  max-inline-size: 200px;
52
74
  min-inline-size: 120px;
@@ -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;
@@ -171,54 +171,6 @@
171
171
  @space-medium: 32px;
172
172
  @space-large: 40px;
173
173
  @space-x-large: 56px;
174
- @font-size-12: 0.75rem;
175
- @font-size-14: 0.875rem;
176
- @font-size-16: 1rem;
177
- @font-size-18: 1.125rem;
178
- @font-size-20: 1.25rem;
179
- @font-size-22: 1.375rem;
180
- @font-size-24: 1.5rem;
181
- @font-size-26: 1.625rem;
182
- @font-size-28: 1.75rem;
183
- @font-size-30: 1.875rem;
184
- @font-size-32: 2rem;
185
- @letter-spacing-xxs: 0.005em;
186
- @letter-spacing-xs: 0.01em;
187
- @letter-spacing-sm: 0.0125em;
188
- @letter-spacing-md: 0.015em;
189
- @letter-spacing-lg: 0.02em;
190
- @letter-spacing-xl: 0.025em;
191
- @letter-spacing-negative-xxs: -0.005em;
192
- @letter-spacing-negative-xs: -0.01em;
193
- @letter-spacing-negative-sm: -0.0125em;
194
- @letter-spacing-negative-md: -0.015em;
195
- @letter-spacing-negative-lg: -0.02em;
196
- @letter-spacing-negative-xl: -0.025em;
197
- @letter-spacing-negative-xxl: -0.03em;
198
- @letter-spacing-negative-xxxl: -0.04em;
199
- @letter-spacing-negative-xxxxl: -0.05em;
200
- @line-height-18: 1.125rem;
201
- @line-height-20: 1.25rem;
202
- @line-height-22: 1.375rem;
203
- @line-height-24: 1.5rem;
204
- @line-height-28: 1.75rem;
205
- @line-height-30: 1.875rem;
206
- @line-height-32: 2rem;
207
- @line-height-34: 2.125rem;
208
- @line-height-36: 2.25rem;
209
- @line-height-42: 2.625rem;
210
- @line-height-48: 3rem;
211
- @line-height-title: 1.2;
212
- @line-height-body: 1.5;
213
- @line-height-control: 1.2;
214
- @font-weight-light: 300;
215
- @font-weight-regular: 400;
216
- @font-weight-medium: 500;
217
- @font-weight-semi-bold: 600;
218
- @font-weight-bold: 700;
219
- @font-weight-black: 900;
220
- @font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
221
- @font-family-display: 'Wise Sans', 'Inter', sans-serif;
222
174
 
223
175
  // Do not edit directly, this file was auto-generated.
224
176