@zag-js/tooltip 0.0.0-dev-20220712221447 → 0.0.0-dev-20220713130021
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/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -125,21 +125,21 @@ function getParent(el) {
|
|
|
125
125
|
return el;
|
|
126
126
|
return el.assignedSlot || el.parentElement || doc.documentElement;
|
|
127
127
|
}
|
|
128
|
-
function defineDomHelpers(
|
|
129
|
-
const
|
|
128
|
+
function defineDomHelpers(helpers) {
|
|
129
|
+
const dom2 = {
|
|
130
130
|
getRootNode: (ctx) => {
|
|
131
131
|
var _a, _b;
|
|
132
132
|
return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
|
|
133
133
|
},
|
|
134
|
-
getDoc: (ctx) => getDocument(
|
|
134
|
+
getDoc: (ctx) => getDocument(dom2.getRootNode(ctx)),
|
|
135
135
|
getWin: (ctx) => {
|
|
136
136
|
var _a;
|
|
137
|
-
return (_a =
|
|
137
|
+
return (_a = dom2.getDoc(ctx).defaultView) != null ? _a : window;
|
|
138
138
|
},
|
|
139
|
-
getActiveElement: (ctx) =>
|
|
140
|
-
getById: (ctx, id) =>
|
|
139
|
+
getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
|
|
140
|
+
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
|
|
141
141
|
};
|
|
142
|
-
return __spreadValues2(__spreadValues2({},
|
|
142
|
+
return __spreadValues2(__spreadValues2({}, dom2), helpers);
|
|
143
143
|
}
|
|
144
144
|
function isHTMLElement(v) {
|
|
145
145
|
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
package/dist/index.mjs
CHANGED
|
@@ -101,21 +101,21 @@ function getParent(el) {
|
|
|
101
101
|
return el;
|
|
102
102
|
return el.assignedSlot || el.parentElement || doc.documentElement;
|
|
103
103
|
}
|
|
104
|
-
function defineDomHelpers(
|
|
105
|
-
const
|
|
104
|
+
function defineDomHelpers(helpers) {
|
|
105
|
+
const dom2 = {
|
|
106
106
|
getRootNode: (ctx) => {
|
|
107
107
|
var _a, _b;
|
|
108
108
|
return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
|
|
109
109
|
},
|
|
110
|
-
getDoc: (ctx) => getDocument(
|
|
110
|
+
getDoc: (ctx) => getDocument(dom2.getRootNode(ctx)),
|
|
111
111
|
getWin: (ctx) => {
|
|
112
112
|
var _a;
|
|
113
|
-
return (_a =
|
|
113
|
+
return (_a = dom2.getDoc(ctx).defaultView) != null ? _a : window;
|
|
114
114
|
},
|
|
115
|
-
getActiveElement: (ctx) =>
|
|
116
|
-
getById: (ctx, id) =>
|
|
115
|
+
getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
|
|
116
|
+
getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
|
|
117
117
|
};
|
|
118
|
-
return __spreadValues2(__spreadValues2({},
|
|
118
|
+
return __spreadValues2(__spreadValues2({}, dom2), helpers);
|
|
119
119
|
}
|
|
120
120
|
function isHTMLElement(v) {
|
|
121
121
|
return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tooltip",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20220713130021",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.0.0-dev-
|
|
33
|
-
"@zag-js/popper": "0.0.0-dev-
|
|
34
|
-
"@zag-js/types": "0.0.0-dev-
|
|
32
|
+
"@zag-js/core": "0.0.0-dev-20220713130021",
|
|
33
|
+
"@zag-js/popper": "0.0.0-dev-20220713130021",
|
|
34
|
+
"@zag-js/types": "0.0.0-dev-20220713130021"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
37
|
+
"@zag-js/dom-utils": "0.0.0-dev-20220713130021",
|
|
38
38
|
"@zag-js/utils": "0.1.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|