@transferwise/neptune-css 0.0.0-experimental-8dc58ec → 0.0.0-experimental-5beae2a

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.
@@ -5,6 +5,9 @@
5
5
  .tw-chevron.top {
6
6
  transform: rotate(0deg);
7
7
  }
8
+ [dir="rtl"] .tw-chevron.top {
9
+ transform: rotate(360deg);
10
+ }
8
11
  .tw-chevron.right {
9
12
  transform: rotate(90deg);
10
13
  }
@@ -1277,17 +1277,11 @@ input[type="button"].btn-block {
1277
1277
  display: inline-flex;
1278
1278
  align-items: center;
1279
1279
  }
1280
- .btn-loading:not(.btn-block) .btn-loader {
1280
+ .btn-loading:not(.btn-block) .btn-loader[class] {
1281
1281
  margin-block-end: 0;
1282
- }
1283
- :not([dir="rtl"]) .btn-loading:not(.btn-block) .btn-loader {
1284
1282
  margin-inline-start: 16px;
1285
1283
  margin-inline-end: 0;
1286
1284
  }
1287
- [dir="rtl"] .btn-loading:not(.btn-block) .btn-loader {
1288
- margin-inline-start: 0 !important;
1289
- margin-inline-end: 16px !important;
1290
- }
1291
1285
  .btn-loading.btn-block .btn-loader {
1292
1286
  inset-block-start: 0;
1293
1287
  inset-block-end: 0;
@@ -5,6 +5,9 @@
5
5
  .tw-chevron.top {
6
6
  transform: rotate(0deg);
7
7
  }
8
+ [dir="rtl"] .tw-chevron.top {
9
+ transform: rotate(360deg);
10
+ }
8
11
  .tw-chevron.right {
9
12
  transform: rotate(90deg);
10
13
  }
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,6 +1974,7 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1968
1979
  @font-face {
1969
1980
  font-family: Inter;
@@ -5350,6 +5361,9 @@ tbody.collapse.in {
5350
5361
  .tw-chevron.top {
5351
5362
  transform: rotate(0deg);
5352
5363
  }
5364
+ [dir="rtl"] .tw-chevron.top {
5365
+ transform: rotate(360deg);
5366
+ }
5353
5367
  .tw-chevron.right {
5354
5368
  transform: rotate(90deg);
5355
5369
  }
@@ -7493,17 +7507,11 @@ input[type="button"].btn-block {
7493
7507
  display: inline-flex;
7494
7508
  align-items: center;
7495
7509
  }
7496
- .btn-loading:not(.btn-block) .btn-loader {
7510
+ .btn-loading:not(.btn-block) .btn-loader[class] {
7497
7511
  margin-block-end: 0;
7498
- }
7499
- :not([dir="rtl"]) .btn-loading:not(.btn-block) .btn-loader {
7500
7512
  margin-inline-start: 16px;
7501
7513
  margin-inline-end: 0;
7502
7514
  }
7503
- [dir="rtl"] .btn-loading:not(.btn-block) .btn-loader {
7504
- margin-inline-start: 0 !important;
7505
- margin-inline-end: 16px !important;
7506
- }
7507
7515
  .btn-loading.btn-block .btn-loader {
7508
7516
  inset-block-start: 0;
7509
7517
  inset-block-end: 0;
@@ -16960,6 +16968,9 @@ button.popover-close {
16960
16968
  inset-inline-start: 25%;
16961
16969
  inset-block-start: 25%;
16962
16970
  }
16971
+ [dir="rtl"] .process-icon-container {
16972
+ transform: rotate(45deg) scaleX(-1);
16973
+ }
16963
16974
  .process-icon-horizontal,
16964
16975
  .process-icon-vertical {
16965
16976
  position: absolute;
@@ -17039,37 +17050,37 @@ button.popover-close {
17039
17050
  .process-stopped .process-icon-container {
17040
17051
  display: none;
17041
17052
  }
17042
- .process-xs {
17053
+ .process-xxs {
17043
17054
  inline-size: 12px;
17044
17055
  block-size: 12px;
17045
17056
  }
17046
- .process-xs .process-circle {
17057
+ .process-xxs .process-circle {
17047
17058
  /* Hide before animation to prevent glitching */
17048
17059
  stroke-dashoffset: 31.41592654px;
17049
17060
  stroke-dasharray: 31.41592654px;
17050
17061
  stroke-width: 1.5px;
17051
17062
  }
17052
- .process-xs.process-danger .process-icon-horizontal {
17063
+ .process-xxs.process-danger .process-icon-horizontal {
17053
17064
  inset-block-start: 2.5px;
17054
17065
  block-size: 1px;
17055
17066
  }
17056
- .process-xs.process-danger .process-icon-vertical {
17067
+ .process-xxs.process-danger .process-icon-vertical {
17057
17068
  inset-inline-start: 2.5px;
17058
17069
  inline-size: 1px;
17059
17070
  }
17060
- .process-xs .process-icon-horizontal,
17061
- .process-xs .process-icon-vertical {
17071
+ .process-xxs .process-icon-horizontal,
17072
+ .process-xxs .process-icon-vertical {
17062
17073
  border-radius: 0.5px;
17063
17074
  }
17064
- .process-xs.process-success .process-icon-container {
17075
+ .process-xxs.process-success .process-icon-container {
17065
17076
  inline-size: 2.5px;
17066
17077
  block-size: 5px;
17067
17078
  inset-inline-start: 4.5px;
17068
17079
  }
17069
- .process-xs.process-success .process-icon-horizontal {
17080
+ .process-xxs.process-success .process-icon-horizontal {
17070
17081
  block-size: 1px;
17071
17082
  }
17072
- .process-xs.process-success .process-icon-vertical {
17083
+ .process-xxs.process-success .process-icon-vertical {
17073
17084
  inline-size: 1px;
17074
17085
  }
17075
17086
  .process-xs {
@@ -17171,6 +17182,9 @@ button.popover-close {
17171
17182
  .process-xl.process-success .process-icon-vertical {
17172
17183
  inline-size: 8px;
17173
17184
  }
17185
+ .process-xxs .process-icon-container {
17186
+ display: none;
17187
+ }
17174
17188
  .process-xxs .process-circle {
17175
17189
  animation-name: process-chase-circle-xxs;
17176
17190
  }
@@ -18811,10 +18825,13 @@ a[data-toggle="tooltip"] {
18811
18825
  position: absolute;
18812
18826
  background: #ffffff;
18813
18827
  background: var(--color-background-screen);
18814
- transform: translateX(0.5px) rotate(-45deg);
18828
+ transform: translateX(-1.5px) rotate(-45deg);
18815
18829
  transform-origin: left bottom;
18816
- inset-inline-start: 8px;
18817
- inset-inline-start: var(--size-8);
18830
+ }
18831
+ [dir="rtl"] .tw-checkbox-check::before,
18832
+ [dir="rtl"] .tw-checkbox-check::after {
18833
+ transform: translateX(-1.5px) rotate(-45deg) scaleX(-1);
18834
+ transform-origin: right bottom;
18818
18835
  }
18819
18836
  .tw-checkbox-check .has-error::before,
18820
18837
  .tw-checkbox-check .has-error::after {
@@ -55,6 +55,9 @@
55
55
  inset-inline-start: 25%;
56
56
  inset-block-start: 25%;
57
57
  }
58
+ [dir="rtl"] .process-icon-container {
59
+ transform: rotate(45deg) scaleX(-1);
60
+ }
58
61
  .process-icon-horizontal,
59
62
  .process-icon-vertical {
60
63
  position: absolute;
@@ -134,37 +137,37 @@
134
137
  .process-stopped .process-icon-container {
135
138
  display: none;
136
139
  }
137
- .process-xs {
140
+ .process-xxs {
138
141
  inline-size: 12px;
139
142
  block-size: 12px;
140
143
  }
141
- .process-xs .process-circle {
144
+ .process-xxs .process-circle {
142
145
  /* Hide before animation to prevent glitching */
143
146
  stroke-dashoffset: 31.41592654px;
144
147
  stroke-dasharray: 31.41592654px;
145
148
  stroke-width: 1.5px;
146
149
  }
147
- .process-xs.process-danger .process-icon-horizontal {
150
+ .process-xxs.process-danger .process-icon-horizontal {
148
151
  inset-block-start: 2.5px;
149
152
  block-size: 1px;
150
153
  }
151
- .process-xs.process-danger .process-icon-vertical {
154
+ .process-xxs.process-danger .process-icon-vertical {
152
155
  inset-inline-start: 2.5px;
153
156
  inline-size: 1px;
154
157
  }
155
- .process-xs .process-icon-horizontal,
156
- .process-xs .process-icon-vertical {
158
+ .process-xxs .process-icon-horizontal,
159
+ .process-xxs .process-icon-vertical {
157
160
  border-radius: 0.5px;
158
161
  }
159
- .process-xs.process-success .process-icon-container {
162
+ .process-xxs.process-success .process-icon-container {
160
163
  inline-size: 2.5px;
161
164
  block-size: 5px;
162
165
  inset-inline-start: 4.5px;
163
166
  }
164
- .process-xs.process-success .process-icon-horizontal {
167
+ .process-xxs.process-success .process-icon-horizontal {
165
168
  block-size: 1px;
166
169
  }
167
- .process-xs.process-success .process-icon-vertical {
170
+ .process-xxs.process-success .process-icon-vertical {
168
171
  inline-size: 1px;
169
172
  }
170
173
  .process-xs {
@@ -266,6 +269,9 @@
266
269
  .process-xl.process-success .process-icon-vertical {
267
270
  inline-size: 8px;
268
271
  }
272
+ .process-xxs .process-icon-container {
273
+ display: none;
274
+ }
269
275
  .process-xxs .process-circle {
270
276
  animation-name: process-chase-circle-xxs;
271
277
  }
package/dist/css/tick.css CHANGED
@@ -10,10 +10,13 @@
10
10
  position: absolute;
11
11
  background: #ffffff;
12
12
  background: var(--color-background-screen);
13
- transform: translateX(0.5px) rotate(-45deg);
13
+ transform: translateX(-1.5px) rotate(-45deg);
14
14
  transform-origin: left bottom;
15
- inset-inline-start: 8px;
16
- inset-inline-start: var(--size-8);
15
+ }
16
+ [dir="rtl"] .tw-checkbox-check::before,
17
+ [dir="rtl"] .tw-checkbox-check::after {
18
+ transform: translateX(-1.5px) rotate(-45deg) scaleX(-1);
19
+ transform-origin: right bottom;
17
20
  }
18
21
  .tw-checkbox-check .has-error::before,
19
22
  .tw-checkbox-check .has-error::after {
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-8dc58ec",
4
+ "version": "0.0.0-experimental-5beae2a",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -135,6 +135,7 @@ small,
135
135
  line-height: 155%;
136
136
  letter-spacing: -0.006em;
137
137
  font-weight: var(--font-weight-regular);
138
+ .np-text-hyphenated;
138
139
  }
139
140
 
140
141
  /* DEPRECATED: use .np-text-body-default-bold instead */
@@ -149,6 +150,7 @@ small,
149
150
  line-height: 155%;
150
151
  letter-spacing: -0.006em;
151
152
  font-weight: var(--font-weight-semi-bold);
153
+ .np-text-hyphenated;
152
154
  }
153
155
 
154
156
  /* DEPRECATED: use .np-text-body-large instead */
@@ -160,6 +162,7 @@ small,
160
162
  font-size: var(--font-size-16);
161
163
  line-height: 150%;
162
164
  letter-spacing: -0.011em;
165
+ .np-text-hyphenated;
163
166
  }
164
167
 
165
168
  /* DEPRECATED: use np-text-body-large-bold instead */
@@ -170,6 +173,7 @@ small,
170
173
  font-size: var(--font-size-16);
171
174
  line-height: 150%;
172
175
  letter-spacing: -0.011em;
176
+ .np-text-hyphenated;
173
177
  }
174
178
 
175
179
  // LINK
@@ -280,6 +284,17 @@ a,
280
284
  }
281
285
  }
282
286
 
287
+ /* Disable hyphenation for CJK and Thai — these languages use character-level, breaks and should never insert hyphens. */
288
+ :lang(ja),
289
+ :lang(th),
290
+ :lang(zh-CN),
291
+ :lang(zh-HK) {
292
+ &,
293
+ * {
294
+ hyphens: none;
295
+ }
296
+ }
297
+
283
298
  :lang(af),
284
299
  :lang(sq),
285
300
  :lang(eu),