@transferwise/neptune-css 14.3.47 → 14.3.48

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": "14.3.47",
4
+ "version": "14.3.48",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,6 +23,22 @@
23
23
  "scripts",
24
24
  "upgrades/scripts"
25
25
  ],
26
+ "dependencies": {
27
+ "@transferwise/neptune-tokens": "^8.4.0",
28
+ "inquirer": "^8.2.0",
29
+ "inquirer-file-tree-selection-prompt": "^1.0.13",
30
+ "replace-in-file": "6.3.5"
31
+ },
32
+ "devDependencies": {
33
+ "yargs": "^17.1.1",
34
+ "@transferwise/less-config": "3.0.6"
35
+ },
36
+ "bin": {
37
+ "neptune-css-upgrade-util": "scripts/neptune-css-upgrader.js"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
26
42
  "scripts": {
27
43
  "build": "npm-run-all build:*",
28
44
  "build:clean": "rm -rf dist",
@@ -34,26 +50,9 @@
34
50
  "dev:less": "gulp watchLess --src='src/less/**'",
35
51
  "dev:props": "gulp watchPropsAndVars --src='src/props'",
36
52
  "dev:vars": "gulp watchPropsAndVars --src='src/variables'",
37
- "docs": "yarn build",
53
+ "docs": "pnpm run build",
38
54
  "copy:images": "cpx 'src/img/**' dist/img",
39
55
  "copy:fonts": "cpx 'src/fonts/*' dist/fonts",
40
56
  "prettier": "prettier --write src/less/*.less"
41
- },
42
- "dependencies": {
43
- "@transferwise/neptune-tokens": "^8.4.0",
44
- "bootstrap": "github:transferwise/bootstrap#v7.0.0",
45
- "inquirer": "^8.2.0",
46
- "inquirer-file-tree-selection-prompt": "^1.0.13",
47
- "replace-in-file": "6.3.5"
48
- },
49
- "devDependencies": {
50
- "@transferwise/less-config": "^3.0.6",
51
- "yargs": "^17.1.1"
52
- },
53
- "bin": {
54
- "neptune-css-upgrade-util": "scripts/neptune-css-upgrader.js"
55
- },
56
- "publishConfig": {
57
- "access": "public"
58
57
  }
59
- }
58
+ }
@@ -1,5 +1,5 @@
1
1
  @import (reference) "../variables/legacy-variables.less";
2
- @import (reference) "@transferwise/neptune-css/src/less/addons/_spacing-utilities.less";
2
+ @import (reference) "./addons/_spacing-utilities.less";
3
3
  @import (reference) "../variables/neptune-tokens.less";
4
4
  @import (reference) "./mixins/_alerts.less";
5
5
 
@@ -4,7 +4,7 @@
4
4
  @import (reference) "./mixins/_border-radius.less";
5
5
  @import (reference) "./mixins/_logical-properties.less";
6
6
  @import (reference) "./mixins/_theming.less";
7
- @import (reference) "bootstrap/less/mixins/nav-divider.less";
7
+ @import (reference) "./mixins/_nav-divider.less";
8
8
 
9
9
  //
10
10
  // Dropdown menus
@@ -838,7 +838,6 @@ input[type="password"] {
838
838
  .form-group .row [class*='col-sm-'] {
839
839
  margin-bottom: 0;
840
840
 
841
- .form-control,
842
841
  .btn-input {
843
842
  margin-bottom: (@padding-base-vertical * 1.5);
844
843
  }
@@ -1,5 +1,5 @@
1
- @import (reference) "../mixins/_logical-properties.less";
2
- @import (reference) "../mixins/_arrows.less";
1
+ @import (reference) "./_logical-properties.less";
2
+ @import (reference) "./_arrows.less";
3
3
 
4
4
  .alert-variant(@background; @text-color; @text-hover) {
5
5
  background-color: @background;
@@ -1,5 +1,5 @@
1
1
  // Custom support for logical properties/values. Select one of the options:
2
2
 
3
3
  // @import '../mixins/_physical-properties.less';
4
- @import "../mixins/_logical-properties-IE-friendly.less";
4
+ @import "./_logical-properties-IE-friendly.less";
5
5
  // @import '../mixins/_logical-properties-modern-browsers.less';
@@ -0,0 +1,10 @@
1
+ // Horizontal dividers
2
+ //
3
+ // Dividers (basically an hr) within dropdowns and nav lists
4
+
5
+ .nav-divider(@color: #e5e5e5) {
6
+ height: 1px;
7
+ margin: 0;
8
+ overflow: hidden;
9
+ background-color: @color;
10
+ }
@@ -1,4 +1,4 @@
1
- @import (reference) "_logical-properties.less";
1
+ @import (reference) "./_logical-properties.less";
2
2
 
3
3
  .spacing(@postfix, @spacer) {
4
4
  .spacing-global(@postfix, @spacer);
@@ -0,0 +1,8 @@
1
+ // Text overflow
2
+ // Requires inline-block or block for proper styling
3
+
4
+ .text-overflow() {
5
+ overflow: hidden;
6
+ text-overflow: ellipsis;
7
+ white-space: nowrap;
8
+ }
@@ -1,4 +1,4 @@
1
- @import (reference) '@transferwise/neptune-css/src/variables/neptune-tokens.less';
1
+ @import (reference) '../variables/neptune-tokens.less';
2
2
  @import (reference) './mixins/_logical-properties.less';
3
3
  @import (reference) './mixins/_nav-vertical-align.less';
4
4
  @import (reference) 'navbar.less';
@@ -1,8 +1,6 @@
1
- // TODO: remove bootstrap dependencies
2
-
3
1
  @import (reference) "../variables/legacy-variables.less";
4
- @import (reference) "bootstrap/less/mixins/nav-vertical-align.less";
5
- @import (reference) "bootstrap/less/mixins/nav-divider.less";
2
+ @import (reference) "./mixins/_nav-vertical-align.less";
3
+ @import (reference) "./mixins/_nav-divider.less";
6
4
  @import (reference) "./mixins/_arrows.less";
7
5
  @import (reference) "./mixins/_border-radius.less";
8
6
  @import (reference) "./mixins/_clearfix.less";
@@ -1,10 +1,8 @@
1
1
  @import (reference) "../variables/neptune-tokens.less";
2
-
3
- // TODO: remove bootstrap dependencies
4
2
  @import (reference) "../variables/legacy-variables.less";
5
3
 
6
4
  // mixins
7
- @import (reference) "bootstrap/less/mixins/nav-divider.less";
5
+ @import (reference) "./mixins/_nav-divider.less";
8
6
  @import (reference) "./mixins/_border-radius.less";
9
7
  @import (reference) "./mixins/_logical-properties.less";
10
8
 
@@ -1,5 +1,3 @@
1
- // TODO: remove bootstrap dependencies
2
-
3
1
  @import (reference) "../variables/legacy-variables.less";
4
2
  @import (reference) "./mixins/_buttons.less";
5
3
  @import (reference) "./mixins/_arrows.less";
@@ -1,4 +1,4 @@
1
- @import (reference) "@transferwise/neptune-css/src/variables/neptune-tokens.less";
1
+ @import (reference) "../variables/neptune-tokens.less";
2
2
  @import (reference) "./mixins/_logical-properties.less";
3
3
 
4
4
  // Used only by Angular tw-select component
@@ -1,13 +1,9 @@
1
- // TODO: remove bootstrap dependencies
2
-
3
1
  @import (reference) "../variables/neptune-tokens.less";
4
2
  @import (reference) "../variables/legacy-variables.less";
5
3
  @import (reference) "./mixins/_logical-properties.less";
6
- @import (reference) "bootstrap/less/mixins/background-variant";
7
- @import (reference) "bootstrap/less/mixins/gradients";
8
4
  @import (reference) "./mixins/_sequence.less";
9
5
  @import (reference) "./mixins/_text-emphasis";
10
- @import (reference) "bootstrap/less/mixins/text-overflow";
6
+ @import (reference) "./mixins/_text-overflow";
11
7
  @import (reference) "./core/_typography-utilities.less";
12
8
 
13
9
  @pip-offset-sm: ((@sequence-step-height / 2) + @sequence-item-spacing-sm);
@@ -1,5 +1,3 @@
1
- // TODO: remove bootstrap dependencies
2
-
3
1
  @import (reference) "../variables/legacy-variables.less";
4
2
  @import (reference) "./mixins/_logical-properties.less";
5
3
  @import (reference) "./mixins/_reset-text.less";