@transferwise/neptune-css 0.0.0-experimental-577f939 → 0.0.0-experimental-f1873ae

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 (47) hide show
  1. package/dist/css/accordion.css +52 -23
  2. package/dist/css/button-groups.css +8 -29
  3. package/dist/css/buttons.css +2 -26
  4. package/dist/css/decision.css +52 -23
  5. package/dist/css/dropdowns.css +62 -39
  6. package/dist/css/droppable.css +8 -28
  7. package/dist/css/footer.css +14 -41
  8. package/dist/css/input-groups.css +165 -172
  9. package/dist/css/list-group.css +45 -0
  10. package/dist/css/navbar.css +62 -39
  11. package/dist/css/neptune-addons.css +0 -15
  12. package/dist/css/neptune-core.css +552 -5908
  13. package/dist/css/neptune.css +1550 -8538
  14. package/dist/css/popovers.css +61 -36
  15. package/dist/css/sequences.css +1 -6
  16. package/dist/css/tooltip.css +8 -28
  17. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  18. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  19. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  20. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  21. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  22. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  23. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  24. package/dist/less/legacy-variables.css +0 -0
  25. package/dist/less/neptune-tokens.css +0 -0
  26. package/dist/less/neptune-tokens.less +48 -0
  27. package/dist/less/zindex.css +0 -0
  28. package/dist/props/neptune-tokens.css +3 -804
  29. package/package.json +1 -1
  30. package/src/less/addons/_background-utilities.less +0 -5
  31. package/src/less/button-groups.less +2 -3
  32. package/src/less/buttons.less +1 -1
  33. package/src/less/core/_typography.less +221 -67
  34. package/src/less/decision.less +2 -2
  35. package/src/less/dropdowns.less +5 -6
  36. package/src/less/droppable.less +4 -4
  37. package/src/less/footer.less +3 -4
  38. package/src/less/forms/bootstrap-forms.less +57 -70
  39. package/src/less/input-groups.less +5 -5
  40. package/src/less/list-group.less +4 -7
  41. package/src/less/mixins/_text-emphasis.less +1 -7
  42. package/src/less/neptune.bundle.less +0 -4
  43. package/src/less/popovers.less +3 -3
  44. package/src/less/sequences.less +2 -7
  45. package/src/less/tooltip.less +1 -1
  46. package/dist/fonts/noto-sans-hebrew-normal.woff2 +0 -0
  47. package/dist/fonts/noto-sans-thai-normal.woff2 +0 -0
@@ -36,49 +36,78 @@
36
36
  .np-theme-personal .chevron-color {
37
37
  color: var(--color-interactive-primary);
38
38
  }
39
- .decision__content {
39
+ .decision {
40
+ cursor: pointer;
41
+ margin-block-end: 0 !important;
42
+ border: 0;
43
+ align-items: center;
44
+ transition: background-color ease 350ms;
45
+ background-color: transparent;
46
+ display: block;
47
+ }
48
+ .decision:not(.np-option):focus-visible,
49
+ .decision:not(.np-option):has(:focus-visible) {
50
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
51
+ outline-offset: 0;
52
+ outline-offset: var(--ring-outline-offset);
53
+ --ring-outline-offset: 0;
54
+ }
55
+ .decision__title {
56
+ margin: 0;
57
+ color: #37517e;
58
+ color: var(--color-content-primary);
59
+ line-height: 1.2;
60
+ line-height: var(--line-height-title);
61
+ letter-spacing: 0;
40
62
  word-wrap: break-word;
63
+ font-size: 1.125rem;
64
+ font-size: var(--font-size-18);
65
+ font-weight: 600;
66
+ font-weight: var(--font-weight-semi-bold);
67
+ letter-spacing: -0.014em;
68
+ line-height: 135%;
41
69
  }
42
70
  @supports (hyphenate-limit-chars: 1) {
43
- .decision__content {
44
- hyphens: auto;hyphenate-limit-chars: 7 3;
71
+ .decision__title {
72
+ hyphens: auto;
73
+ hyphenate-limit-chars: 7 3;
45
74
  }
46
75
  @media (min-width: 840px) {
47
- .decision__content {
76
+ .decision__title {
48
77
  hyphenate-limit-chars: 8 3;
49
78
  }
50
79
  }
51
80
  @media (min-width: 1160px) {
52
- .decision__content {
81
+ .decision__title {
53
82
  hyphenate-limit-chars: 10 4 3;
54
83
  }
55
84
  }
56
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
57
- .decision__content {
58
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
85
+ }
86
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
87
+ .decision__title {
88
+ hyphens: auto;
89
+ -webkit-hyphenate-limit-before: 3;
90
+ -webkit-hyphenate-limit-after: 3;
59
91
  }
60
92
  @media (min-width: 1160px) {
61
- .decision__content {
93
+ .decision__title {
62
94
  -webkit-hyphenate-limit-before: 4;
63
95
  }
64
96
  }
65
- }.decision {
66
- cursor: pointer;
67
- margin-block-end: 0 !important;
68
- border: 0;
69
- align-items: center;
70
- transition: background-color ease 350ms;
71
- background-color: transparent;
72
- display: block;
73
97
  }
74
- .decision:not(.np-option):focus-visible,
75
- .decision:not(.np-option):has(:focus-visible) {
76
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
77
- outline-offset: 0;
78
- outline-offset: var(--ring-outline-offset);
79
- --ring-outline-offset: 0;
98
+ .decision__title + p,
99
+ .decision__title + ul:not(.list-unstyled),
100
+ .decision__title + ol:not(.list-unstyled) {
101
+ margin-block-start: 8px;
102
+ margin-block-start: var(--size-8);
80
103
  }
81
104
  .decision__content {
105
+ font-size: 0.875rem;
106
+ font-size: var(--font-size-14);
107
+ line-height: 155%;
108
+ letter-spacing: -0.006em;
109
+ font-weight: 400;
110
+ font-weight: var(--font-weight-regular);
82
111
  word-wrap: break-word;
83
112
  margin-block-start: 4px;
84
113
  margin-block-start: var(--size-4);
@@ -1,30 +1,4 @@
1
- .btn-group .secondary {
2
- word-wrap: break-word;
3
- }
4
- @supports (hyphenate-limit-chars: 1) {
5
- .btn-group .secondary {
6
- hyphens: auto;hyphenate-limit-chars: 7 3;
7
- }
8
- @media (min-width: 840px) {
9
- .btn-group .secondary {
10
- hyphenate-limit-chars: 8 3;
11
- }
12
- }
13
- @media (min-width: 1160px) {
14
- .btn-group .secondary {
15
- hyphenate-limit-chars: 10 4 3;
16
- }
17
- }
18
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
- .btn-group .secondary {
20
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
- }
22
- @media (min-width: 1160px) {
23
- .btn-group .secondary {
24
- -webkit-hyphenate-limit-before: 4;
25
- }
26
- }
27
- }.btn-group,
1
+ .btn-group,
28
2
  .btn-group-vertical {
29
3
  position: relative;
30
4
  display: inline-block;
@@ -360,9 +334,8 @@
360
334
  .btn-group .btn-input + .dropdown-menu > li > a {
361
335
  white-space: normal;
362
336
  }
363
- .btn-group .body-2,
364
337
  .btn-group .np-text-body-default,
365
- .btn-group .wds-text-body-default,
338
+ .btn-group .body-2,
366
339
  .btn-group .small {
367
340
  color: #5d7079;
368
341
  color: var(--color-content-secondary);
@@ -373,6 +346,12 @@
373
346
  }
374
347
  }
375
348
  .btn-group .secondary {
349
+ font-size: 0.875rem;
350
+ font-size: var(--font-size-14);
351
+ line-height: 155%;
352
+ letter-spacing: -0.006em;
353
+ font-weight: 400;
354
+ font-weight: var(--font-weight-regular);
376
355
  word-wrap: break-word;
377
356
  color: #5d7079;
378
357
  color: var(--color-content-secondary);
@@ -2,32 +2,8 @@
2
2
  block-size: 32px;
3
3
  }
4
4
  .btn {
5
- word-wrap: break-word;
6
- }
7
- @supports (hyphenate-limit-chars: 1) {
8
- .btn {
9
- hyphens: auto;hyphenate-limit-chars: 7 3;
10
- }
11
- @media (min-width: 840px) {
12
- .btn {
13
- hyphenate-limit-chars: 8 3;
14
- }
15
- }
16
- @media (min-width: 1160px) {
17
- .btn {
18
- hyphenate-limit-chars: 10 4 3;
19
- }
20
- }
21
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
22
- .btn {
23
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
24
- }
25
- @media (min-width: 1160px) {
26
- .btn {
27
- -webkit-hyphenate-limit-before: 4;
28
- }
29
- }
30
- }.btn {
5
+ line-height: 150%;
6
+ letter-spacing: -0.011em;
31
7
  word-wrap: break-word;
32
8
  display: inline-block;
33
9
  margin-block-end: 0;
@@ -1,46 +1,75 @@
1
- .decision__content {
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;
2
24
  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%;
3
31
  }
4
32
  @supports (hyphenate-limit-chars: 1) {
5
- .decision__content {
6
- hyphens: auto;hyphenate-limit-chars: 7 3;
33
+ .decision__title {
34
+ hyphens: auto;
35
+ hyphenate-limit-chars: 7 3;
7
36
  }
8
37
  @media (min-width: 840px) {
9
- .decision__content {
38
+ .decision__title {
10
39
  hyphenate-limit-chars: 8 3;
11
40
  }
12
41
  }
13
42
  @media (min-width: 1160px) {
14
- .decision__content {
43
+ .decision__title {
15
44
  hyphenate-limit-chars: 10 4 3;
16
45
  }
17
46
  }
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;
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;
21
53
  }
22
54
  @media (min-width: 1160px) {
23
- .decision__content {
55
+ .decision__title {
24
56
  -webkit-hyphenate-limit-before: 4;
25
57
  }
26
58
  }
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;
35
59
  }
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;
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);
42
65
  }
43
66
  .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);
44
73
  word-wrap: break-word;
45
74
  margin-block-start: 4px;
46
75
  margin-block-start: var(--size-4);
@@ -1,36 +1,4 @@
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,
1
+ .dropup,
34
2
  .dropdown {
35
3
  position: relative;
36
4
  }
@@ -43,6 +11,12 @@
43
11
  padding: 8px;
44
12
  margin: 0;
45
13
  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);
46
20
  word-wrap: break-word;
47
21
  text-align: start;
48
22
  background-color: #ffffff;
@@ -121,6 +95,12 @@
121
95
  padding: var(--dropdown-link-padding);
122
96
  clear: both;
123
97
  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);
124
104
  word-wrap: break-word;
125
105
  color: #37517e;
126
106
  color: var(--color-content-primary);
@@ -219,12 +199,10 @@
219
199
  .dropdown-menu > .selected > a strong {
220
200
  color: inherit;
221
201
  }
222
- .dropdown-menu > .active > a .small,
223
- .dropdown-menu > .selected > a .small,
224
202
  .dropdown-menu > .active > a .np-text-body-default,
225
203
  .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,
204
+ .dropdown-menu > .active > a .small,
205
+ .dropdown-menu > .selected > a .small,
228
206
  .dropdown-menu > .active > a .secondary,
229
207
  .dropdown-menu > .selected > a .secondary {
230
208
  color: #c9cbce;
@@ -319,13 +297,58 @@
319
297
  display: block;
320
298
  padding-block: 8px;
321
299
  padding-inline: 16px;
322
- font-size: 0.875rem;
323
- font-size: var(--font-size-14);
324
300
  line-height: 1.5;
325
301
  line-height: var(--line-height-body);
326
302
  color: #5d7079;
327
303
  color: var(--color-content-secondary);
328
304
  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);
329
352
  }
330
353
  .dropdown-backdrop {
331
354
  position: fixed;
@@ -1,31 +1,11 @@
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 {
28
2
  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;
29
9
  word-wrap: break-word;
30
10
  text-align: center;
31
11
  border: 1px solid #c9cbce;
@@ -187,7 +167,7 @@
187
167
  z-index: 1;
188
168
  }
189
169
  .np-theme-personal .droppable-dropping-card {
190
- background-color: #e1e4df;
170
+ background-color: #E1E4DF;
191
171
  color: #37517e;
192
172
  color: var(--color-content-primary);
193
173
  }
@@ -195,7 +175,7 @@
195
175
  background-color: #404440;
196
176
  }
197
177
  .np-theme-personal--forest-green .droppable-dropping-card {
198
- background-color: #455c35;
178
+ background-color: #455C35;
199
179
  }
200
180
  .droppable-dropping .droppable-dropping-card {
201
181
  display: flex;
@@ -1,44 +1,12 @@
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 {
1
+ .footer {
40
2
  background-color: rgba(134,167,189,0.10196);
41
3
  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);
42
10
  word-wrap: break-word;
43
11
  padding-block-start: calc(8px * 10);
44
12
  padding-block-start: calc(var(--size-8) * 10);
@@ -93,6 +61,12 @@
93
61
  .footer .link-icon {
94
62
  color: #5d7079;
95
63
  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);
96
70
  word-wrap: break-word;
97
71
  }
98
72
  @supports (hyphenate-limit-chars: 1) {
@@ -209,8 +183,7 @@
209
183
  }
210
184
  .footer.footer-inverse .tiny,
211
185
  .footer.footer-inverse .body-3,
212
- .footer.footer-inverse .np-text-body-default,
213
- .footer.footer-inverse .wds-text-body-default {
186
+ .footer.footer-inverse .np-text-body-default {
214
187
  color: #ffffff;
215
188
  }
216
189
  @media (max-width: 599.98px) {