@loomhq/lens 10.47.1 → 10.48.0

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.
@@ -19,14 +19,15 @@ const sizeStyles = {
19
19
  textSize: 'small',
20
20
  iconSize: 2.25,
21
21
  height: u(3),
22
+ xSpace: u(1),
22
23
  },
23
24
  medium: {
24
25
  textSize: 'medium',
25
26
  iconSize: 3,
26
27
  height: u(4),
28
+ xSpace: u(1.5),
27
29
  },
28
30
  };
29
- const xSpace = 1.5;
30
31
  const TextButtonWrapper = styled.button `
31
32
  background-color: transparent;
32
33
  display: inline-flex;
@@ -43,8 +44,9 @@ const TextButtonWrapper = styled.button `
43
44
  ${getFontWeight('medium')};
44
45
  ${getRadius('thdMediumToFull')};
45
46
  ${props => getTextSize(sizeStyles[props.size].textSize)};
46
- padding: 0 ${u(xSpace)};
47
- ${props => props.offsetSide && `margin-${props.offsetSide}: ${u(-xSpace)}`};
47
+ padding: 0 ${props => sizeStyles[props.size].xSpace};
48
+ ${props => props.offsetSide &&
49
+ `margin-${props.offsetSide}: -${sizeStyles[props.size].xSpace}`};
48
50
 
49
51
  &:focus {
50
52
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.47.1",
3
+ "version": "10.48.0",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",
@@ -13,7 +13,8 @@
13
13
  "lint:ts": "tsc -p tsconfig.build.json --noEmit",
14
14
  "lint:all": "yarn lint && yarn lint:ts",
15
15
  "test": "echo \"no tests\"",
16
- "semantic-release": "semantic-release"
16
+ "semantic-release": "semantic-release",
17
+ "prepare": "husky install"
17
18
  },
18
19
  "release": {
19
20
  "branches": [
@@ -58,6 +59,8 @@
58
59
  "babel-loader": "8.0.6",
59
60
  "babel-plugin-react-docgen": "^4.2.1",
60
61
  "babel-plugin-transform-remove-console": "^6.9.4",
62
+ "commitlint": "^17.1.2",
63
+ "conventional-changelog-conventionalcommits": "^5.0.0",
61
64
  "eslint": "^6.8.0",
62
65
  "eslint-config-prettier": "^6.10.0",
63
66
  "eslint-import-resolver-alias": "^1.1.2",
@@ -66,7 +69,7 @@
66
69
  "eslint-plugin-prettier": "^3.1.2",
67
70
  "eslint-plugin-react": "^7.18.0",
68
71
  "eslint-plugin-react-hooks": "^2.3.0",
69
- "husky": "^4.2.1",
72
+ "husky": "^8.0.0",
70
73
  "lint-staged": "^10.0.6",
71
74
  "mousetrap": "^1.6.5",
72
75
  "next": "12",
@@ -102,14 +105,9 @@
102
105
  },
103
106
  "homepage": "https://github.com/loomhq/lens#readme",
104
107
  "lint-staged": {
105
- "src/*.js": [
108
+ "src/**/*.{js,jsx,mdx,ts,tsx}": [
106
109
  "eslint src --fix",
107
110
  "git add"
108
111
  ]
109
- },
110
- "husky": {
111
- "hooks": {
112
- "pre-commit": "lint-staged"
113
- }
114
112
  }
115
113
  }