ag-common 0.0.796 → 0.0.797

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.
@@ -32,18 +32,10 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.useTooltip = void 0;
40
- const styled_1 = __importDefault(require("@emotion/styled"));
41
37
  const react_1 = __importStar(require("react"));
42
38
  const react_dom_1 = require("react-dom");
43
- const Base = styled_1.default.div `
44
- position: absolute;
45
- z-index: 10;
46
- `;
47
39
  const Comp = ({ pos, children, }) => {
48
40
  const ref = (0, react_1.createRef)();
49
41
  const [size, setSize] = (0, react_1.useState)();
@@ -100,7 +92,7 @@ const Comp = ({ pos, children, }) => {
100
92
  top = 0;
101
93
  }
102
94
  }
103
- const Content = (react_1.default.createElement(Base, { "data-type": "tooltip-content", ref: ref, style: Object.assign(Object.assign({ left,
95
+ const Content = (react_1.default.createElement("div", { "data-type": "tooltip-content", ref: ref, className: "absolute z-10", style: Object.assign(Object.assign({ left,
104
96
  right,
105
97
  top,
106
98
  bottom }, (!pos.hasParent && { position: 'fixed' })), (!size && { zIndex: -1 })) }, children(pos, size)));
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.796",
2
+ "version": "0.0.797",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",