@transferwise/neptune-css 0.0.0-experimental-42fdae1 → 0.0.0-experimental-512cf13

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 +23 -52
  2. package/dist/css/button-groups.css +29 -8
  3. package/dist/css/buttons.css +26 -2
  4. package/dist/css/decision.css +23 -52
  5. package/dist/css/dropdowns.css +39 -62
  6. package/dist/css/droppable.css +28 -8
  7. package/dist/css/footer.css +41 -14
  8. package/dist/css/input-groups.css +172 -165
  9. package/dist/css/list-group.css +0 -45
  10. package/dist/css/navbar.css +39 -62
  11. package/dist/css/neptune-addons.css +15 -0
  12. package/dist/css/neptune-core.css +5908 -552
  13. package/dist/css/neptune.css +8424 -1436
  14. package/dist/css/popovers.css +36 -61
  15. package/dist/css/sequences.css +6 -1
  16. package/dist/css/tooltip.css +28 -8
  17. package/dist/fonts/noto-sans-hebrew-normal.woff2 +0 -0
  18. package/dist/fonts/noto-sans-thai-normal.woff2 +0 -0
  19. package/dist/less/neptune-tokens.less +0 -48
  20. package/dist/props/neptune-tokens.css +804 -3
  21. package/package.json +1 -1
  22. package/src/less/addons/_background-utilities.less +5 -0
  23. package/src/less/button-groups.less +3 -2
  24. package/src/less/buttons.less +1 -1
  25. package/src/less/core/_typography.less +67 -221
  26. package/src/less/decision.less +2 -2
  27. package/src/less/dropdowns.less +6 -5
  28. package/src/less/droppable.less +4 -4
  29. package/src/less/footer.less +4 -3
  30. package/src/less/forms/bootstrap-forms.less +70 -57
  31. package/src/less/input-groups.less +5 -5
  32. package/src/less/list-group.less +7 -4
  33. package/src/less/mixins/_text-emphasis.less +7 -1
  34. package/src/less/neptune.bundle.less +4 -0
  35. package/src/less/popovers.less +3 -3
  36. package/src/less/sequences.less +7 -2
  37. package/src/less/tooltip.less +1 -1
  38. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  39. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  40. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  41. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  42. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  43. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  44. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  45. package/dist/less/legacy-variables.css +0 -0
  46. package/dist/less/neptune-tokens.css +0 -0
  47. package/dist/less/zindex.css +0 -0
@@ -1,11 +1,11 @@
1
- @import (reference) '../../variables/legacy-variables.less';
2
- @import (reference) '../../variables/neptune-tokens.less';
3
- @import (reference) '../mixins/_arrows.less';
4
- @import (reference) '../mixins/_grid.less';
5
- @import (reference) '../mixins/_forms.less';
6
- @import (reference) '../mixins/_tab-focus.less';
7
- @import (reference) '../mixins/_logical-properties.less';
8
- @import (reference) '../core/_typography.less';
1
+ @import (reference) "../../variables/legacy-variables.less";
2
+ @import (reference) "../../variables/neptune-tokens.less";
3
+ @import (reference) "../mixins/_arrows.less";
4
+ @import (reference) "../mixins/_grid.less";
5
+ @import (reference) "../mixins/_forms.less";
6
+ @import (reference) "../mixins/_tab-focus.less";
7
+ @import (reference) "../mixins/_logical-properties.less";
8
+ @import (reference) "../core/_typography.less";
9
9
 
10
10
  //
11
11
  // Forms
@@ -54,34 +54,34 @@ label,
54
54
  // address browser inconsistencies.
55
55
 
56
56
  // Override content-box in Normalize (* isn't specific enough)
57
- input[type='search'] {
57
+ input[type="search"] {
58
58
  box-sizing: border-box;
59
59
  }
60
60
 
61
- input[type='number'] {
61
+ input[type="number"] {
62
62
  appearance: textfield;
63
63
  }
64
64
 
65
- input[type='number']::-webkit-outer-spin-button,
66
- input[type='number']::-webkit-inner-spin-button {
65
+ input[type="number"]::-webkit-outer-spin-button,
66
+ input[type="number"]::-webkit-inner-spin-button {
67
67
  appearance: none;
68
68
  margin: 0;
69
69
  }
70
70
 
71
71
  // Position radios and checkboxes better
72
- input[type='radio'],
73
- input[type='checkbox'] {
72
+ input[type="radio"],
73
+ input[type="checkbox"] {
74
74
  margin: 4px 0 0;
75
75
  margin-top: 1px;
76
76
  line-height: normal;
77
77
  }
78
78
 
79
- input[type='file'] {
79
+ input[type="file"] {
80
80
  display: block;
81
81
  }
82
82
 
83
83
  // Make range inputs behave like textual form controls
84
- input[type='range'] {
84
+ input[type="range"] {
85
85
  display: block;
86
86
  width: 100%;
87
87
  }
@@ -93,9 +93,9 @@ select[size] {
93
93
  }
94
94
 
95
95
  // Focus for file, radio, and checkbox
96
- input[type='file']:focus,
97
- input[type='radio']:focus,
98
- input[type='checkbox']:focus {
96
+ input[type="file"]:focus,
97
+ input[type="radio"]:focus,
98
+ input[type="checkbox"]:focus {
99
99
  .tab-focus();
100
100
  }
101
101
 
@@ -145,7 +145,7 @@ output {
145
145
  var(--input-padding),
146
146
  @input-border-radius
147
147
  );
148
- .np-text-body-large;
148
+ .wds-text-body-large;
149
149
 
150
150
  // Remove iOS drop shadow
151
151
  background-clip: padding-box;
@@ -197,7 +197,7 @@ output {
197
197
  // be added to `.form-control` as it's not specific enough. For details, see
198
198
  // https://github.com/twbs/bootstrap/issues/11586.
199
199
 
200
- input[type='search'] {
200
+ input[type="search"] {
201
201
  appearance: none;
202
202
  }
203
203
 
@@ -209,10 +209,10 @@ input[type='search'] {
209
209
  // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
210
210
 
211
211
  @media screen and (min-device-pixel-ratio: 0) {
212
- input[type='date'],
213
- input[type='time'],
214
- input[type='datetime-local'],
215
- input[type='month'] {
212
+ input[type="date"],
213
+ input[type="time"],
214
+ input[type="datetime-local"],
215
+ input[type="month"] {
216
216
  line-height: var(--input-height-base);
217
217
 
218
218
  &.input-sm,
@@ -248,7 +248,7 @@ input[type='search'] {
248
248
  }
249
249
  }
250
250
 
251
- .row-equal-height > [class*='col-'] > .form-group {
251
+ .row-equal-height > [class*="col-"] > .form-group {
252
252
  width: 100%;
253
253
  }
254
254
 
@@ -275,10 +275,10 @@ input[type='search'] {
275
275
  margin-top: (@padding-base-vertical * 1.5);
276
276
  }
277
277
 
278
- .radio input[type='radio'],
279
- .radio-inline input[type='radio'],
280
- .checkbox input[type='checkbox'],
281
- .checkbox-inline input[type='checkbox'] {
278
+ .radio input[type="radio"],
279
+ .radio-inline input[type="radio"],
280
+ .checkbox input[type="checkbox"],
281
+ .checkbox-inline input[type="checkbox"] {
282
282
  position: absolute;
283
283
  .margin(left, -20px);
284
284
 
@@ -313,8 +313,8 @@ input[type='search'] {
313
313
  // Some special care is needed because <label>s don't inherit their parent's `cursor`.
314
314
  //
315
315
  // Note: Neither radios nor checkboxes can be readonly.
316
- input[type='radio'],
317
- input[type='checkbox'] {
316
+ input[type="radio"],
317
+ input[type="checkbox"] {
318
318
  &[disabled],
319
319
  &.disabled,
320
320
  fieldset[disabled] & {
@@ -380,7 +380,7 @@ input[type="password"] {
380
380
  );
381
381
  font-size: 14px;
382
382
  line-height: 24px;
383
- .np-text-body-default();
383
+ .wds-text-body-default();
384
384
  }
385
385
 
386
386
  .form-group-sm,
@@ -418,7 +418,7 @@ input[type="password"] {
418
418
  var(--input-padding-large);
419
419
  @input-border-radius-large
420
420
  );
421
- .np-text-body-large;
421
+ .wds-text-body-large;
422
422
  }
423
423
 
424
424
  .form-group-lg {
@@ -533,7 +533,9 @@ input[type="password"] {
533
533
  border-style: solid;
534
534
  border-radius: var(--radius-small);
535
535
  padding: 4px 16px 3px;
536
- transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
536
+ transition:
537
+ border-color 0.15s ease-in-out,
538
+ background-color 0.15s ease-in-out;
537
539
 
538
540
  a {
539
541
  color: inherit;
@@ -701,8 +703,8 @@ input[type="password"] {
701
703
  }
702
704
  }
703
705
 
704
- .radio input[type='radio'],
705
- .checkbox input[type='checkbox'] {
706
+ .radio input[type="radio"],
707
+ .checkbox input[type="checkbox"] {
706
708
  position: relative;
707
709
  .margin(left, 0);
708
710
  }
@@ -788,7 +790,7 @@ input[type="password"] {
788
790
  }
789
791
  }
790
792
 
791
- @import 'checkbox-radio.less';
793
+ @import "checkbox-radio.less";
792
794
 
793
795
  .input-group .input-group-btn + input {
794
796
  .border(left, 0, solid, transparent);
@@ -826,7 +828,7 @@ input[type="password"] {
826
828
 
827
829
  .margin(right, -6px);
828
830
 
829
- [class*='col-'] {
831
+ [class*="col-"] {
830
832
  .padding(left, 6px);
831
833
 
832
834
  .padding(right, 6px);
@@ -834,7 +836,7 @@ input[type="password"] {
834
836
  }
835
837
 
836
838
  @media (max-width: @screen-xs-max) {
837
- .form-group .row [class*='col-sm-'] {
839
+ .form-group .row [class*="col-sm-"] {
838
840
  margin-bottom: 0;
839
841
 
840
842
  .btn-input {
@@ -844,7 +846,7 @@ input[type="password"] {
844
846
  }
845
847
 
846
848
  @media (max-width: @screen-sm-max) {
847
- .form-group .row [class*='col-md-'] {
849
+ .form-group .row [class*="col-md-"] {
848
850
  margin-bottom: 0;
849
851
 
850
852
  .form-control,
@@ -855,7 +857,7 @@ input[type="password"] {
855
857
  }
856
858
 
857
859
  @media (max-width: @screen-md-max) {
858
- .form-group .row [class*='col-lg-'] {
860
+ .form-group .row [class*="col-lg-"] {
859
861
  margin-bottom: 0;
860
862
 
861
863
  .form-control,
@@ -866,7 +868,7 @@ input[type="password"] {
866
868
  }
867
869
 
868
870
  @media (max-width: @screen-lg-max) {
869
- .form-group .row [class*='col-xl-'] {
871
+ .form-group .row [class*="col-xl-"] {
870
872
  margin-bottom: 0;
871
873
 
872
874
  .form-control,
@@ -895,7 +897,9 @@ input[type="password"] {
895
897
  background-color: var(--color-background-screen);
896
898
  border: 1px solid var(--color-interactive-secondary);
897
899
  border-radius: @border-radius-base;
898
- transition: border 0.15s ease-in-out, background-color 0.15s ease-in-out;
900
+ transition:
901
+ border 0.15s ease-in-out,
902
+ background-color 0.15s ease-in-out;
899
903
 
900
904
  .np-theme-personal & {
901
905
  border-radius: var(--radius-small);
@@ -926,7 +930,8 @@ input[type="password"] {
926
930
  small,
927
931
  .small,
928
932
  .body-2,
929
- .np-text-body-default {
933
+ .np-text-body-default,
934
+ .wds-text-body-default {
930
935
  display: block;
931
936
  color: var(--color-content-secondary);
932
937
  }
@@ -1021,7 +1026,7 @@ input[type="password"] {
1021
1026
  .form-control-placeholder {
1022
1027
  text-overflow: ellipsis;
1023
1028
  overflow: hidden;
1024
- .np-text-body-large;
1029
+ .wds-text-body-large;
1025
1030
  display: block;
1026
1031
  width: 100%;
1027
1032
  color: var(--color-content-tertiary);
@@ -1125,26 +1130,32 @@ input[type="password"] {
1125
1130
 
1126
1131
  .checkbox:hover .tw-checkbox-button,
1127
1132
  .radio:not(.disabled):hover .tw-radio-button,
1128
- .tw-checkbox-button:not(.disabled,:disabled):hover,
1129
- input[type=checkbox]:hover+.tw-checkbox-button,
1130
- input[type=radio]:not(.disabled,:disabled):hover+.tw-radio-button,
1131
- input[type=checkbox]:not(.disabled,:disabled):hover+.tw-checkbox-button {
1133
+ .tw-checkbox-button:not(.disabled, :disabled):hover,
1134
+ input[type="checkbox"]:hover + .tw-checkbox-button,
1135
+ input[type="radio"]:not(.disabled, :disabled):hover + .tw-radio-button,
1136
+ input[type="checkbox"]:not(.disabled, :disabled):hover + .tw-checkbox-button {
1132
1137
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-hover);
1133
1138
  }
1134
1139
 
1135
1140
  .tw-checkbox-button.checked,
1136
1141
  .tw-checkbox-button:checked,
1137
- input[type=checkbox]:checked+.tw-checkbox-button,
1142
+ input[type="checkbox"]:checked + .tw-checkbox-button,
1138
1143
  .tw-checkbox-button.checked:hover,
1139
1144
  .tw-checkbox-button:checked:hover,
1140
- input[type=checkbox]:not(.disabled,:disabled):checked:hover+.tw-checkbox-button {
1145
+ input[type="checkbox"]:not(.disabled, :disabled):checked:hover + .tw-checkbox-button {
1141
1146
  box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
1142
1147
  background: var(--color-sentiment-negative);
1143
1148
  }
1144
1149
 
1145
- .checkbox>label:not(.disabled,:disabled):active input[type=checkbox]+.tw-checkbox-button,
1146
- .checkbox>label:not(.disabled,:disabled):focus-visible input[type=checkbox]+.tw-checkbox-button,
1147
- .checkbox>label:not(.disabled,:disabled):has(:focus-visible) input[type=checkbox]+.tw-checkbox-button {
1150
+ .checkbox > label:not(.disabled, :disabled):active input[type="checkbox"] + .tw-checkbox-button,
1151
+ .checkbox
1152
+ > label:not(.disabled, :disabled):focus-visible
1153
+ input[type="checkbox"]
1154
+ + .tw-checkbox-button,
1155
+ .checkbox
1156
+ > label:not(.disabled, :disabled):has(:focus-visible)
1157
+ input[type="checkbox"]
1158
+ + .tw-checkbox-button {
1148
1159
  box-shadow: inset 0 0 0 2px var(--color-sentiment-negative-active);
1149
1160
  }
1150
1161
  }
@@ -1153,7 +1164,9 @@ input[type="password"] {
1153
1164
  .tw-checkbox-button {
1154
1165
  background-color: unset;
1155
1166
  color: unset;
1156
- transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
1167
+ transition:
1168
+ background-color 0.3s ease-in-out,
1169
+ box-shadow 0.3s ease-in-out;
1157
1170
  }
1158
1171
 
1159
1172
  .btn-input:hover,
@@ -1170,7 +1183,7 @@ input[type="password"] {
1170
1183
  }
1171
1184
 
1172
1185
  .form-group .np-upload-input label {
1173
- margin-bottom: 0;
1186
+ margin-bottom: 0;
1174
1187
  }
1175
1188
 
1176
1189
  .form-group .alert:before,
@@ -64,7 +64,7 @@
64
64
  > .input-group-btn .btn {
65
65
  .input-lg();
66
66
 
67
- .np-text-title-subsection();
67
+ .wds-text-title-subsection();
68
68
 
69
69
  margin-bottom: 0;
70
70
  }
@@ -246,7 +246,7 @@
246
246
  }
247
247
 
248
248
  // inputs focus and hover states (not disabled)
249
- .input-group:hover:not(.disabled,:disabled) {
249
+ .input-group:hover:not(.disabled, :disabled) {
250
250
  .form-control,
251
251
  .input-group-addon,
252
252
  .btn-input,
@@ -255,11 +255,11 @@
255
255
  }
256
256
  }
257
257
 
258
- .form-control:hover:not(.disabled,:disabled) {
258
+ .form-control:hover:not(.disabled, :disabled) {
259
259
  border-color: var(--color-interactive-secondary-hover);
260
260
  }
261
261
 
262
- .input-group:focus-within:not(.disabled,:disabled) {
262
+ .input-group:focus-within:not(.disabled, :disabled) {
263
263
  .form-control,
264
264
  .input-group-addon,
265
265
  .btn-input,
@@ -272,7 +272,7 @@
272
272
  }
273
273
  }
274
274
 
275
- .form-control:focus-within:not(.disabled,:disabled) {
275
+ .form-control:focus-within:not(.disabled, :disabled) {
276
276
  border-color: var(--color-interactive-accent);
277
277
 
278
278
  .np-theme-personal & {
@@ -61,7 +61,7 @@
61
61
 
62
62
  .list-group-item-heading {
63
63
  margin-bottom: 0;
64
- .np-text-title-group;
64
+ .wds-text-title-group;
65
65
 
66
66
  color: var(--color-content-primary);
67
67
  }
@@ -200,8 +200,12 @@ a.list-group-item {
200
200
  }
201
201
 
202
202
  @keyframes listSlideOver {
203
- 0% { transform: translateX(100vw); }
204
- 100% { transform: translateX(0); }
203
+ 0% {
204
+ transform: translateX(100vw);
205
+ }
206
+ 100% {
207
+ transform: translateX(0);
208
+ }
205
209
  }
206
210
 
207
211
  @media (max-width: @screen-sm-max) {
@@ -250,7 +254,6 @@ a.list-group-item {
250
254
  }
251
255
 
252
256
  .list-group-item.active .collapse .well {
253
-
254
257
  // Annoying but makes sure the last content is visible in iOS safari
255
258
 
256
259
  padding-bottom: 72px;
@@ -22,6 +22,9 @@
22
22
  &.np-text-title-screen,
23
23
  &.np-text-title-section,
24
24
  &.np-text-title-subsection,
25
+ &.wds-text-title-screen,
26
+ &.wds-text-title-section,
27
+ &.wds-text-title-subsection,
25
28
  h1,
26
29
  h2,
27
30
  h3,
@@ -33,7 +36,10 @@
33
36
  .title-3,
34
37
  .np-text-title-screen,
35
38
  .np-text-title-section,
36
- .np-text-title-subsection {
39
+ .np-text-title-subsection,
40
+ .wds-text-title-screen,
41
+ .wds-text-title-section,
42
+ .wds-text-title-subsection {
37
43
  color: @large-color !important;
38
44
  }
39
45
  }
@@ -10,6 +10,10 @@
10
10
  @import "@transferwise/neptune-tokens/themes/business--dark/tokens.css";
11
11
  @import "@transferwise/neptune-tokens/themes/business--forest-green/tokens.css";
12
12
  @import "@transferwise/neptune-tokens/themes/business--bright-green/tokens.css";
13
+ @import "@transferwise/neptune-tokens/text/tokens.css";
14
+
15
+ // Utilities
16
+ @import (less) "@transferwise/neptune-tokens/text/utilities.css";
13
17
  @import "./core/_fonts.less";
14
18
  @import "./core/_scaffolding.less";
15
19
  @import "./core/_typography.less";
@@ -24,7 +24,7 @@
24
24
  // So reset our font and text properties to avoid inheriting weird values.
25
25
  .reset-text();
26
26
 
27
- .np-text-body-default;
27
+ .wds-text-body-default;
28
28
 
29
29
  background-color: var(--color-background-screen);
30
30
  background-clip: padding-box;
@@ -221,7 +221,7 @@
221
221
  margin: 0; // reset heading margin
222
222
  padding: 0;
223
223
 
224
- .np-text-title-body();
224
+ .wds-text-title-body();
225
225
 
226
226
  background-color: var(--color-background-screen);
227
227
  border-bottom: 0;
@@ -232,7 +232,7 @@
232
232
  .popover-content {
233
233
  padding: 0;
234
234
 
235
- .np-text-body-default;
235
+ .wds-text-body-default;
236
236
 
237
237
  color: var(--color-content-secondary);
238
238
  }
@@ -85,6 +85,10 @@
85
85
  .h2,
86
86
  .h3,
87
87
  .h4,
88
+ .wds-text-title-screen,
89
+ .wds-text-title-section,
90
+ .wds-text-title-subsection,
91
+ .wds-text-title-body,
88
92
  .btn-toolbar {
89
93
  margin-bottom: 16px;
90
94
  }
@@ -186,7 +190,8 @@
186
190
 
187
191
  .small,
188
192
  .body-2,
189
- .np-text-body-default {
193
+ .np-text-body-default,
194
+ .wds-text-body-default {
190
195
  color: var(--color-content-secondary);
191
196
  }
192
197
 
@@ -216,7 +221,7 @@
216
221
 
217
222
  > .active {
218
223
  &::before {
219
- border-width: (@sequence-pip-size / 2); // TODO sequence-line-width?
224
+ border-width: (@sequence-pip-size / 2); // TODO sequence-line-width?
220
225
  }
221
226
 
222
227
  ~ li::before {
@@ -50,7 +50,7 @@
50
50
 
51
51
  // Wrapper for the tooltip content
52
52
  .tooltip-inner {
53
- .np-text-body-default;
53
+ .wds-text-body-default;
54
54
 
55
55
  max-width: @tooltip-max-width;
56
56
  min-width: 120px;
File without changes
File without changes
File without changes