@smart-react-components/ui 2.0.0-alpha-137 → 2.0.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.
@@ -25,6 +25,7 @@ const TableContainer = react_1.default.forwardRef((props, forwardRef) => {
25
25
  `;
26
26
  let left = 0;
27
27
  let leftZIndex = x + 1;
28
+ let containerZIndex = leftZIndex;
28
29
  const el = getRef();
29
30
  const xEls = el.current.querySelectorAll('table:first-child > * > tr > *');
30
31
  const yEls = el.current.querySelectorAll('table:first-child > thead > tr');
@@ -74,7 +75,12 @@ const TableContainer = react_1.default.forwardRef((props, forwardRef) => {
74
75
  }
75
76
  `;
76
77
  }
78
+ containerZIndex = zIndex;
77
79
  }
80
+ styled = `
81
+ z-index: ${containerZIndex + 1};
82
+ ${styled}
83
+ `;
78
84
  setStyled(styled);
79
85
  };
80
86
  react_1.default.useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.0.0-alpha-137",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
@@ -55,12 +55,13 @@
55
55
  "access": "public"
56
56
  },
57
57
  "scripts": {
58
- "build": "yarn clear && tsc --outDir lib && yarn copy",
58
+ "build": "npm run clear && tsc --outDir lib && npm run copy",
59
59
  "clear": "rm -rf lib",
60
60
  "copy": "cp package.json lib/package.json && cp README.md lib/README.md && cp ../LICENSE lib/LICENSE",
61
61
  "dev": "tsc -w --outDir lib",
62
62
  "lint": "eslint src",
63
- "release": "../scripts/release.sh ui",
63
+ "release": "../scripts/release.sh ui true",
64
+ "release-no-version": "../scripts/release.sh ui false",
64
65
  "test": "jest"
65
66
  },
66
67
  "devDependencies": {