@destyler/tooltip 0.1.0 → 0.2.0-beta.5
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.
|
@@ -5,7 +5,7 @@ import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
|
5
5
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
6
6
|
|
|
7
7
|
//#region src/anatomy.d.ts
|
|
8
|
-
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "
|
|
8
|
+
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -364,8 +364,7 @@ function machine(userContext) {
|
|
|
364
364
|
if (!ctx$1.closeOnScroll) return;
|
|
365
365
|
const triggerEl = dom.getTriggerEl(ctx$1);
|
|
366
366
|
if (!triggerEl) return;
|
|
367
|
-
const
|
|
368
|
-
const cleanups = overflowParents.map((overflowParent) => {
|
|
367
|
+
const cleanups = getOverflowAncestors(triggerEl).map((overflowParent) => {
|
|
369
368
|
const onScroll = () => {
|
|
370
369
|
send({
|
|
371
370
|
type: "CLOSE",
|
package/package.json
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/tooltip",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0-beta.5",
|
|
5
5
|
"description": "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/destyler/destyler",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/destyler/destyler.git",
|
|
12
|
+
"directory": "packages/components/tooltip"
|
|
13
|
+
},
|
|
8
14
|
"exports": {
|
|
9
|
-
".": "./dist/index.
|
|
15
|
+
".": "./dist/index.mjs"
|
|
10
16
|
},
|
|
11
|
-
"main": "dist/index.
|
|
12
|
-
"module": "dist/index.
|
|
13
|
-
"types": "dist/index.d.
|
|
17
|
+
"main": "dist/index.mjs",
|
|
18
|
+
"module": "dist/index.mjs",
|
|
19
|
+
"types": "dist/index.d.mts",
|
|
14
20
|
"files": [
|
|
15
21
|
"*.d.ts",
|
|
16
22
|
"dist"
|
|
17
23
|
],
|
|
18
24
|
"dependencies": {
|
|
19
|
-
"@destyler/anatomy": "0.
|
|
20
|
-
"@destyler/
|
|
21
|
-
"@destyler/
|
|
22
|
-
"@destyler/
|
|
23
|
-
"@destyler/
|
|
24
|
-
"@destyler/
|
|
25
|
-
"@destyler/
|
|
25
|
+
"@destyler/anatomy": "0.2.0-beta.5",
|
|
26
|
+
"@destyler/dom": "0.2.0-beta.5",
|
|
27
|
+
"@destyler/focus-visible": "0.2.0-beta.5",
|
|
28
|
+
"@destyler/types": "0.2.0-beta.5",
|
|
29
|
+
"@destyler/utils": "0.2.0-beta.5",
|
|
30
|
+
"@destyler/popper": "0.2.0-beta.5",
|
|
31
|
+
"@destyler/xstate": "0.2.0-beta.5"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
26
35
|
},
|
|
27
36
|
"scripts": {
|
|
28
37
|
"clear": "rimraf ./dist",
|