@zag-js/tooltip 0.0.0-dev-20220709173135 → 0.0.0-dev-20220709181637
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 +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -211,18 +211,6 @@ function getEventName(evt) {
|
|
|
211
211
|
return mouseEventNames[evt];
|
|
212
212
|
return evt;
|
|
213
213
|
}
|
|
214
|
-
var visuallyHiddenStyle = {
|
|
215
|
-
border: "0",
|
|
216
|
-
clip: "rect(0 0 0 0)",
|
|
217
|
-
height: "1px",
|
|
218
|
-
margin: "-1px",
|
|
219
|
-
overflow: "hidden",
|
|
220
|
-
padding: "0",
|
|
221
|
-
position: "absolute",
|
|
222
|
-
width: "1px",
|
|
223
|
-
whiteSpace: "nowrap",
|
|
224
|
-
wordWrap: "normal"
|
|
225
|
-
};
|
|
226
214
|
function raf(fn) {
|
|
227
215
|
const id = globalThis.requestAnimationFrame(fn);
|
|
228
216
|
return function cleanup() {
|
|
@@ -255,6 +243,18 @@ function getScrollParents(el, list = []) {
|
|
|
255
243
|
return parents;
|
|
256
244
|
return parents.concat(getScrollParents(getParent(target)));
|
|
257
245
|
}
|
|
246
|
+
var visuallyHiddenStyle = {
|
|
247
|
+
border: "0",
|
|
248
|
+
clip: "rect(0 0 0 0)",
|
|
249
|
+
height: "1px",
|
|
250
|
+
margin: "-1px",
|
|
251
|
+
overflow: "hidden",
|
|
252
|
+
padding: "0",
|
|
253
|
+
position: "absolute",
|
|
254
|
+
width: "1px",
|
|
255
|
+
whiteSpace: "nowrap",
|
|
256
|
+
wordWrap: "normal"
|
|
257
|
+
};
|
|
258
258
|
|
|
259
259
|
// src/tooltip.connect.ts
|
|
260
260
|
var import_popper = require("@zag-js/popper");
|
package/dist/index.mjs
CHANGED
|
@@ -187,18 +187,6 @@ function getEventName(evt) {
|
|
|
187
187
|
return mouseEventNames[evt];
|
|
188
188
|
return evt;
|
|
189
189
|
}
|
|
190
|
-
var visuallyHiddenStyle = {
|
|
191
|
-
border: "0",
|
|
192
|
-
clip: "rect(0 0 0 0)",
|
|
193
|
-
height: "1px",
|
|
194
|
-
margin: "-1px",
|
|
195
|
-
overflow: "hidden",
|
|
196
|
-
padding: "0",
|
|
197
|
-
position: "absolute",
|
|
198
|
-
width: "1px",
|
|
199
|
-
whiteSpace: "nowrap",
|
|
200
|
-
wordWrap: "normal"
|
|
201
|
-
};
|
|
202
190
|
function raf(fn) {
|
|
203
191
|
const id = globalThis.requestAnimationFrame(fn);
|
|
204
192
|
return function cleanup() {
|
|
@@ -231,6 +219,18 @@ function getScrollParents(el, list = []) {
|
|
|
231
219
|
return parents;
|
|
232
220
|
return parents.concat(getScrollParents(getParent(target)));
|
|
233
221
|
}
|
|
222
|
+
var visuallyHiddenStyle = {
|
|
223
|
+
border: "0",
|
|
224
|
+
clip: "rect(0 0 0 0)",
|
|
225
|
+
height: "1px",
|
|
226
|
+
margin: "-1px",
|
|
227
|
+
overflow: "hidden",
|
|
228
|
+
padding: "0",
|
|
229
|
+
position: "absolute",
|
|
230
|
+
width: "1px",
|
|
231
|
+
whiteSpace: "nowrap",
|
|
232
|
+
wordWrap: "normal"
|
|
233
|
+
};
|
|
234
234
|
|
|
235
235
|
// src/tooltip.connect.ts
|
|
236
236
|
import { getPlacementStyles } from "@zag-js/popper";
|
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-20220709181637",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@zag-js/core": "0.1.7",
|
|
33
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
34
|
-
"@zag-js/popper": "0.0.0-dev-
|
|
35
|
-
"@zag-js/types": "0.0.0-dev-
|
|
33
|
+
"@zag-js/dom-utils": "0.0.0-dev-20220709181637",
|
|
34
|
+
"@zag-js/popper": "0.0.0-dev-20220709181637",
|
|
35
|
+
"@zag-js/types": "0.0.0-dev-20220709181637"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:fast": "zag build",
|