@transferwise/neptune-css 0.0.0-experimental-4734916 → 0.0.0-experimental-0ad6041

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 (37) hide show
  1. package/dist/css/neptune-core.css +0 -48
  2. package/dist/css/neptune.css +5 -50
  3. package/dist/props/neptune-tokens.css +2 -1
  4. package/package.json +2 -2
  5. package/src/less/addons/_background-utilities.less +0 -5
  6. package/src/less/badge.less +2 -2
  7. package/src/less/button-groups.less +2 -3
  8. package/src/less/buttons.less +7 -7
  9. package/src/less/core/_scaffolding.less +4 -4
  10. package/src/less/core/_typography-utilities.less +3 -3
  11. package/src/less/core/_typography.less +235 -81
  12. package/src/less/decision.less +2 -2
  13. package/src/less/dropdowns.less +7 -8
  14. package/src/less/droppable.less +4 -4
  15. package/src/less/footer.less +3 -4
  16. package/src/less/forms/bootstrap-forms.less +72 -85
  17. package/src/less/forms/checkbox-radio.less +3 -3
  18. package/src/less/input-groups.less +10 -20
  19. package/src/less/list-group.less +5 -8
  20. package/src/less/mixins/_reset-text.less +1 -1
  21. package/src/less/mixins/_text-emphasis.less +1 -7
  22. package/src/less/modals.less +1 -1
  23. package/src/less/navbar.less +19 -19
  24. package/src/less/navs.less +8 -8
  25. package/src/less/panels.less +2 -2
  26. package/src/less/popovers.less +7 -7
  27. package/src/less/progress-bars.less +2 -2
  28. package/src/less/sequences.less +10 -15
  29. package/src/less/table.less +7 -7
  30. package/src/less/tooltip.less +1 -1
  31. package/src/variables/legacy-variables.less +3 -3
  32. package/dist/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  33. package/dist/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  34. package/dist/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  35. package/dist/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  36. package/dist/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  37. package/dist/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
@@ -126,54 +126,6 @@
126
126
  src: url(../fonts/rubik/rubik-latin-ext-wght-normal.woff2) format("woff2");
127
127
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
128
128
  }
129
- @font-face {
130
- font-family: "Rubik";
131
- font-style: normal;
132
- font-display: swap;
133
- font-weight: 900;
134
- src: url(../fonts/rubik/rubik-cyrillic-900-normal.woff2) format("woff2");
135
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
136
- }
137
- @font-face {
138
- font-family: "Rubik";
139
- font-style: normal;
140
- font-display: swap;
141
- font-weight: 900;
142
- src: url(../fonts/rubik/rubik-cyrillic-ext-900-normal.woff2) format("woff2");
143
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
144
- }
145
- @font-face {
146
- font-family: "Rubik Body";
147
- font-style: normal;
148
- font-display: swap;
149
- font-weight: 300;
150
- src: url(../fonts/rubik/rubik-body-cyrillic-330-normal.woff2) format("woff2");
151
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
152
- }
153
- @font-face {
154
- font-family: "Rubik Body";
155
- font-style: normal;
156
- font-display: swap;
157
- font-weight: 300;
158
- src: url(../fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2) format("woff2");
159
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
160
- }
161
- @font-face {
162
- font-family: "Rubik Body";
163
- font-style: normal;
164
- font-display: swap;
165
- font-weight: 600;
166
- src: url(../fonts/rubik/rubik-body-cyrillic-600-normal.woff2) format("woff2");
167
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
168
- }
169
- @font-face {
170
- font-family: "Rubik Body";
171
- font-style: normal;
172
- font-display: swap;
173
- font-weight: 600;
174
- src: url(../fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2) format("woff2");
175
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
176
- }
177
129
  @font-face {
178
130
  font-family: "Noto Sans Hebrew";
179
131
  font-style: normal;
@@ -153,7 +153,8 @@
153
153
  --font-family-display: 'Wise Sans', Inter, sans-serif;
154
154
  }
155
155
 
156
- :root {
156
+ :root,
157
+ :lang(en) {
157
158
  --wds-font-family-display: 'Wise Sans', Inter, Rubik, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', sans-serif;
158
159
  --wds-font-family-display-number: 'Wise Sans', Inter, sans-serif;
159
160
  --wds-font-family-regular: Inter, Vazirmatn, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', Helvetica, Arial, sans-serif;
@@ -1830,7 +1831,8 @@
1830
1831
  */
1831
1832
 
1832
1833
 
1833
- :root {
1834
+ :root,
1835
+ :lang(en) {
1834
1836
  --wds-font-family-display: 'Wise Sans', Inter, Rubik, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', sans-serif;
1835
1837
  --wds-font-family-display-number: 'Wise Sans', Inter, sans-serif;
1836
1838
  --wds-font-family-regular: Inter, Vazirmatn, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', Helvetica, Arial, sans-serif;
@@ -2901,6 +2903,7 @@ small,
2901
2903
  line-height: var(--wds-line-height-nav);
2902
2904
  letter-spacing: var(--wds-letter-spacing-nav);
2903
2905
  }
2906
+ /* Deprecated: use .wds-text-display-number-small instead */
2904
2907
  .wds-text-display-number,
2905
2908
  .np-text-display-number,
2906
2909
  .wds-text-display-number,
@@ -3039,54 +3042,6 @@ small,
3039
3042
  src: url(../fonts/rubik/rubik-latin-ext-wght-normal.woff2) format("woff2");
3040
3043
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
3041
3044
  }
3042
- @font-face {
3043
- font-family: "Rubik";
3044
- font-style: normal;
3045
- font-display: swap;
3046
- font-weight: 900;
3047
- src: url(../fonts/rubik/rubik-cyrillic-900-normal.woff2) format("woff2");
3048
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
3049
- }
3050
- @font-face {
3051
- font-family: "Rubik";
3052
- font-style: normal;
3053
- font-display: swap;
3054
- font-weight: 900;
3055
- src: url(../fonts/rubik/rubik-cyrillic-ext-900-normal.woff2) format("woff2");
3056
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
3057
- }
3058
- @font-face {
3059
- font-family: "Rubik Body";
3060
- font-style: normal;
3061
- font-display: swap;
3062
- font-weight: 300;
3063
- src: url(../fonts/rubik/rubik-body-cyrillic-330-normal.woff2) format("woff2");
3064
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
3065
- }
3066
- @font-face {
3067
- font-family: "Rubik Body";
3068
- font-style: normal;
3069
- font-display: swap;
3070
- font-weight: 300;
3071
- src: url(../fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2) format("woff2");
3072
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
3073
- }
3074
- @font-face {
3075
- font-family: "Rubik Body";
3076
- font-style: normal;
3077
- font-display: swap;
3078
- font-weight: 600;
3079
- src: url(../fonts/rubik/rubik-body-cyrillic-600-normal.woff2) format("woff2");
3080
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
3081
- }
3082
- @font-face {
3083
- font-family: "Rubik Body";
3084
- font-style: normal;
3085
- font-display: swap;
3086
- font-weight: 600;
3087
- src: url(../fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2) format("woff2");
3088
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
3089
- }
3090
3045
  @font-face {
3091
3046
  font-family: "Noto Sans Hebrew";
3092
3047
  font-style: normal;
@@ -153,7 +153,8 @@
153
153
  --font-family-display: 'Wise Sans', Inter, sans-serif;
154
154
  }
155
155
 
156
- :root {
156
+ :root,
157
+ :lang(en) {
157
158
  --wds-font-family-display: 'Wise Sans', Inter, Rubik, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', sans-serif;
158
159
  --wds-font-family-display-number: 'Wise Sans', Inter, sans-serif;
159
160
  --wds-font-family-regular: Inter, Vazirmatn, 'Noto Sans SC', 'Zen Kaku Gothic Antique', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Hebrew', Helvetica, Arial, sans-serif;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "0.0.0-experimental-4734916",
4
+ "version": "0.0.0-experimental-0ad6041",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "scripts"
24
24
  ],
25
25
  "dependencies": {
26
- "@transferwise/neptune-tokens": "^8.26.0"
26
+ "@transferwise/neptune-tokens": "0.0.0-experimental-75ee14d"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@transferwise/less-config": "3.2.0",
@@ -76,11 +76,6 @@
76
76
  .np-text-title-subsection,
77
77
  .np-text-title-body,
78
78
  .np-text-title-group,
79
- .wds-text-title-screen,
80
- .wds-text-title-section,
81
- .wds-text-title-subsection,
82
- .wds-text-title-body,
83
- .wds-text-title-group,
84
79
  strong {
85
80
  color: @color-navy-content-primary;
86
81
  }
@@ -7,9 +7,9 @@
7
7
  min-width: var(--size-16);
8
8
  padding: 5px var(--size-8);
9
9
  font-size: 10px;
10
- font-weight: var(--wds-font-weight-title-body);
10
+ font-weight: var(--font-weight-semi-bold);
11
11
  color: #fff;
12
- line-height: var(--wds-line-height-title-section);
12
+ line-height: var(--line-height-control);
13
13
  vertical-align: middle;
14
14
  white-space: nowrap;
15
15
  text-align: center;
@@ -404,9 +404,8 @@
404
404
  }
405
405
  }
406
406
 
407
- .body-2,
408
407
  .np-text-body-default,
409
- .wds-text-body-default,
408
+ .body-2,
410
409
  .small {
411
410
  color: var(--color-content-secondary);
412
411
  }
@@ -419,7 +418,7 @@
419
418
  }
420
419
 
421
420
  .btn-group .secondary {
422
- .wds-text-body-default;
421
+ .np-text-body-default;
423
422
 
424
423
  color: var(--color-content-secondary);
425
424
  }
@@ -8,7 +8,7 @@
8
8
  @import (reference) "./ring.less";
9
9
 
10
10
  .btn {
11
- .wds-text-body-large-bold;
11
+ .np-text-body-large-bold;
12
12
 
13
13
  display: inline-block;
14
14
  margin-bottom: 0;
@@ -22,11 +22,11 @@
22
22
  border: 1px solid transparent;
23
23
  white-space: nowrap;
24
24
  padding-bottom: 10px;
25
- font-weight: var(--wds-font-weight-title-body);
25
+ font-weight: var(--font-weight-semi-bold);
26
26
 
27
27
  .button-size(
28
28
  var(--btn-padding);
29
- var(--wds-font-size-body-large);
29
+ var(--font-size-16);
30
30
  var(--line-height-24);
31
31
  var(--btn-radius-base);
32
32
  var(--btn-height);
@@ -475,7 +475,7 @@
475
475
  .navbar .btn {
476
476
  .button-size(
477
477
  var(--btn-sm-padding);
478
- var(--wds-font-size-body);
478
+ var(--font-size-14);
479
479
  var(--line-height-22);
480
480
  var(--btn-sm-radius-base);
481
481
  var(--btn-sm-height);
@@ -512,7 +512,7 @@
512
512
  .navbar-collapse .btn {
513
513
  .button-size(
514
514
  var(--btn-padding);
515
- var(--wds-font-size-body-large);
515
+ var(--font-size-16);
516
516
  var(--line-height-24);
517
517
  var(--border-radius-base);
518
518
  var(--btn-height);
@@ -547,7 +547,7 @@ input[type="button"] {
547
547
 
548
548
  // @TODO Deprecate / Remove
549
549
  .btn-input {
550
- font-weight: var(--wds-font-weight-body-regular);
550
+ font-weight: var(--font-weight-regular);
551
551
  .padding(left, @padding-base-horizontal);
552
552
 
553
553
  .padding(right, @padding-base-horizontal);
@@ -584,7 +584,7 @@ input[type="button"] {
584
584
 
585
585
  &.btn-addon,
586
586
  &.btn-input-inverse {
587
- font-weight: var(--wds-font-weight-title-body);
587
+ font-weight: var(--font-weight-semi-bold);
588
588
  }
589
589
  }
590
590
  }
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .np-theme-personal {
40
- font-family: var(--wds-font-family-regular);
40
+ font-family: var(--font-family-regular);
41
41
  font-feature-settings: "calt";
42
42
 
43
43
  --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal;
@@ -68,7 +68,7 @@
68
68
 
69
69
  html {
70
70
  font-size: var(--base-font-size);
71
- font-family: var(--wds-font-family-regular);
71
+ font-family: var(--font-family-regular);
72
72
  color: var(--color-content-secondary);
73
73
  background-color: var(--color-background-screen);
74
74
  -webkit-font-smoothing: antialiased;
@@ -221,11 +221,11 @@ ul {
221
221
 
222
222
  dt,
223
223
  dd {
224
- line-height: var(--wds-line-height-body-large);
224
+ line-height: var(--line-height-body);
225
225
  }
226
226
 
227
227
  dt {
228
- font-size: var(--wds-font-size-body);
228
+ font-size: var(--font-size-14);
229
229
  }
230
230
 
231
231
  dd {
@@ -145,15 +145,15 @@
145
145
  }
146
146
 
147
147
  .font-weight-bold {
148
- font-weight: var(--wds-font-weight-title-screen) !important;
148
+ font-weight: var(--font-weight-bold) !important;
149
149
  }
150
150
 
151
151
  .font-weight-semi-bold {
152
- font-weight: var(--wds-font-weight-title-group) !important;
152
+ font-weight: var(--font-weight-semi-bold) !important;
153
153
  }
154
154
 
155
155
  .font-weight-normal {
156
- font-weight: var(--wds-font-weight-body-regular) !important;
156
+ font-weight: var(--font-weight-regular) !important;
157
157
  }
158
158
 
159
159
  .font-italic {