@transferwise/neptune-css 12.0.1 → 12.0.4

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "12.0.1",
4
+ "version": "12.0.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@transferwise/neptune-tokens": "6.1.0",
47
- "bootstrap": "github:transferwise/bootstrap#7.0.0",
47
+ "bootstrap": "github:transferwise/bootstrap#v7.0.0",
48
48
  "inquirer": "^8.2.0",
49
49
  "inquirer-file-tree-selection-prompt": "^1.0.13",
50
50
  "replace-in-file": "6.3.2",
@@ -60,5 +60,5 @@
60
60
  "bin": {
61
61
  "neptune-css-upgrade-util": "scripts/neptune-css-upgrader.js"
62
62
  },
63
- "gitHead": "a34135ee671da68b1e81b031581d661dd4b04ea1"
63
+ "gitHead": "40cc7aa63b6cf1fc691676e23f95a4fee8fd3f6d"
64
64
  }
@@ -471,15 +471,19 @@ input[type="button"] {
471
471
 
472
472
  .tw-icon {
473
473
  position: absolute;
474
- .right(16px);
474
+ .right(var(--size-16));
475
475
 
476
- top: 16px;
476
+ &:not(.tw-chevron) {
477
+ position: initial;
478
+ }
479
+
480
+ top: var(--size-16);
477
481
  }
478
482
 
479
483
  &.btn-sm .tw-icon {
480
- .right(8px);
484
+ .right(var(--size-8));
481
485
 
482
- top: 8px;
486
+ top: var(--size-8);
483
487
  }
484
488
 
485
489
  &.btn-lg .tw-icon {
@@ -34,7 +34,7 @@ const mappings = {
34
34
  };
35
35
 
36
36
  // Special case mappings that are not exchanging variable for variable
37
- const from = [new RegExp('@color-text-control', 'g'), new RegExp('--color-text-control', 'g')];
37
+ const from = [new RegExp('@color-text-control', 'g'), /var\(--color-text-control\)/g];
38
38
  const to = ['#fff', '#fff'];
39
39
 
40
40
  Object.keys(mappings).forEach((value) => {