@hanzogui/tooltip 7.0.0 → 7.3.1
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/LICENSE +40 -19
- package/dist/cjs/Tooltip.cjs +241 -0
- package/dist/cjs/Tooltip.native.js +50 -0
- package/dist/cjs/Tooltip.native.js.map +1 -0
- package/dist/cjs/TooltipSimple.cjs +112 -0
- package/dist/cjs/TooltipSimple.native.js +34 -0
- package/dist/cjs/TooltipSimple.native.js.map +1 -0
- package/dist/cjs/index.cjs +21 -0
- package/dist/cjs/index.native.js +24 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/Tooltip.mjs +202 -0
- package/dist/esm/Tooltip.mjs.map +1 -0
- package/dist/esm/Tooltip.native.js +20 -0
- package/dist/esm/Tooltip.native.js.map +1 -0
- package/dist/esm/TooltipSimple.mjs +76 -0
- package/dist/esm/TooltipSimple.mjs.map +1 -0
- package/dist/esm/TooltipSimple.native.js +6 -0
- package/dist/esm/TooltipSimple.native.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +3 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/jsx/Tooltip.mjs +202 -0
- package/dist/jsx/Tooltip.mjs.map +1 -0
- package/dist/jsx/Tooltip.native.js +50 -0
- package/dist/jsx/Tooltip.native.js.map +1 -0
- package/dist/jsx/TooltipSimple.mjs +76 -0
- package/dist/jsx/TooltipSimple.mjs.map +1 -0
- package/dist/jsx/TooltipSimple.native.js +34 -0
- package/dist/jsx/TooltipSimple.native.js.map +1 -0
- package/dist/jsx/index.js +3 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +3 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +24 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +27 -20
- package/src/Tooltip.tsx +2 -2
- package/types/Tooltip.d.ts +6 -6
- package/types/Tooltip.d.ts.map +1 -0
- package/types/Tooltip.native.d.ts.map +1 -0
- package/types/TooltipSimple.d.ts.map +1 -0
- package/types/TooltipSimple.native.d.ts.map +1 -0
- package/types/index.d.ts.map +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { getSpace } from "@hanzogui/get-token";
|
|
2
|
+
import { Paragraph } from "@hanzogui/text";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Tooltip } from "./Tooltip.mjs";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
const TooltipSimple = React.forwardRef(({
|
|
7
|
+
label,
|
|
8
|
+
children,
|
|
9
|
+
contentProps,
|
|
10
|
+
disabled,
|
|
11
|
+
...tooltipProps
|
|
12
|
+
}, ref) => {
|
|
13
|
+
"use no memo";
|
|
14
|
+
|
|
15
|
+
const child = React.Children.only(children);
|
|
16
|
+
if (!label) {
|
|
17
|
+
return children;
|
|
18
|
+
}
|
|
19
|
+
return /* @__PURE__ */jsxs(Tooltip, {
|
|
20
|
+
disableRTL: true,
|
|
21
|
+
offset: 15,
|
|
22
|
+
restMs: 40,
|
|
23
|
+
delay: 40,
|
|
24
|
+
zIndex: 1e6,
|
|
25
|
+
...tooltipProps,
|
|
26
|
+
...(disabled ? {
|
|
27
|
+
open: false
|
|
28
|
+
} : null),
|
|
29
|
+
children: [/* @__PURE__ */jsx(Tooltip.Trigger, {
|
|
30
|
+
...(typeof label === "string" && {
|
|
31
|
+
"aria-label": label
|
|
32
|
+
}),
|
|
33
|
+
asChild: "except-style",
|
|
34
|
+
children: ref && React.isValidElement(child) ? React.cloneElement(child, {
|
|
35
|
+
ref
|
|
36
|
+
}) : child
|
|
37
|
+
}), /* @__PURE__ */jsxs(Tooltip.Content, {
|
|
38
|
+
enterStyle: {
|
|
39
|
+
y: -4,
|
|
40
|
+
opacity: 0,
|
|
41
|
+
scale: 0.96
|
|
42
|
+
},
|
|
43
|
+
exitStyle: {
|
|
44
|
+
y: -4,
|
|
45
|
+
opacity: 0,
|
|
46
|
+
scale: 0.96
|
|
47
|
+
},
|
|
48
|
+
scale: 1,
|
|
49
|
+
elevation: "$0.5",
|
|
50
|
+
opacity: 1,
|
|
51
|
+
pointerEvents: "none",
|
|
52
|
+
paddingVertical: getSpace(tooltipProps.size || "$true", {
|
|
53
|
+
shift: -4
|
|
54
|
+
}),
|
|
55
|
+
animateOnly: ["transform", "opacity"],
|
|
56
|
+
transition: ["quicker", {
|
|
57
|
+
opacity: {
|
|
58
|
+
overshootClamping: true
|
|
59
|
+
}
|
|
60
|
+
}],
|
|
61
|
+
...contentProps,
|
|
62
|
+
children: [/* @__PURE__ */jsx(Tooltip.Arrow, {}), /* @__PURE__ */jsx(Paragraph, {
|
|
63
|
+
maxWidth: 350,
|
|
64
|
+
overflow: "hidden",
|
|
65
|
+
size: "$3",
|
|
66
|
+
textAlign: "center",
|
|
67
|
+
"$platform-web": {
|
|
68
|
+
textWrap: "balance"
|
|
69
|
+
},
|
|
70
|
+
children: label
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
export { TooltipSimple };
|
|
76
|
+
//# sourceMappingURL=TooltipSimple.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getSpace","Paragraph","React","Tooltip","jsx","jsxs","TooltipSimple","forwardRef","label","children","contentProps","disabled","tooltipProps","ref","child","Children","only","disableRTL","offset","restMs","delay","zIndex","open","Trigger","asChild","isValidElement","cloneElement","Content","enterStyle","y","opacity","scale","exitStyle","elevation","pointerEvents","paddingVertical","size","shift","animateOnly","transition","overshootClamping","Arrow","maxWidth","overflow","textAlign","textWrap"],"sources":["../../src/TooltipSimple.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AAEzB,SAASC,SAAA,QAAiB;AAC1B,YAAYC,KAAA,MAAW;AAGvB,S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ACDC,WAAA,EAAa,CAAC,aAAa,SAAS;MACpCC,UAAA,EAAY,CACV,WACA;QACET,OAAA,EAAS;UACPU,iBAAA,EAAmB;QACrB;MACF,EACF;MACC,GAAG9B,YAAA;MAEJD,QAAA,kBAAAL,GAAA,CAACD,OAAA,CAAQsC,KAAA,EAAR,EAAc,GACf,eAAArC,GAAA,CAACH,SAAA;QACCyC,QAAA,EAAU;QACVC,QAAA,EAAS;QACTP,IAAA,EAAK;QACLQ,SAAA,EAAU;QACV,iBAAe;UACbC,QAAA,EAAU;QACZ;QAECpC,QAAA,EAAAD;MAAA,CACH;IAAA,CACF;EAAA,CACF;AAEJ,CACF","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var TooltipSimple_native_exports = {};
|
|
26
|
+
__export(TooltipSimple_native_exports, {
|
|
27
|
+
TooltipSimple: () => TooltipSimple
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(TooltipSimple_native_exports);
|
|
30
|
+
var RenderChildren = function (props) {
|
|
31
|
+
return props.children;
|
|
32
|
+
};
|
|
33
|
+
var TooltipSimple = RenderChildren;
|
|
34
|
+
//# sourceMappingURL=TooltipSimple.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TooltipSimple_native_exports","__export","TooltipSimple","module","exports","__toCommonJS","RenderChildren","props","children"],"sources":["../../src/TooltipSimple.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,4BAAA;AAAA,IAAIM,cAAA,GAAiB,SAAAA,CAASC,KAAA,EAAO;EACjC,OAAOA,KAAA,CAAMC,QAAA;AACjB;AACO,IAAIN,aAAA,GAAgBI,cAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
+
value: true
|
|
19
|
+
}), mod);
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
module.exports = __toCommonJS(index_exports);
|
|
22
|
+
__reExport(index_exports, require("./Tooltip.native.js"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./TooltipSimple.native.js"), module.exports);
|
|
24
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA;;AACA,IAAAA,SAAA,GAAcC,MAAA,CAAAC,cAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/tooltip",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "
|
|
34
|
-
"watch": "
|
|
35
|
-
"clean": "
|
|
36
|
-
"clean:build": "
|
|
33
|
+
"build": "gui-build",
|
|
34
|
+
"watch": "gui-build --watch",
|
|
35
|
+
"clean": "gui-build clean",
|
|
36
|
+
"clean:build": "gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/compose-refs": "
|
|
40
|
-
"@hanzogui/core": "
|
|
41
|
-
"@hanzogui/create-context": "
|
|
42
|
-
"@hanzogui/floating": "
|
|
43
|
-
"@hanzogui/get-token": "
|
|
44
|
-
"@hanzogui/helpers": "
|
|
45
|
-
"@hanzogui/polyfill-dev": "
|
|
46
|
-
"@hanzogui/popover": "
|
|
47
|
-
"@hanzogui/popper": "
|
|
48
|
-
"@hanzogui/stacks": "
|
|
49
|
-
"@hanzogui/text": "
|
|
50
|
-
"@hanzogui/use-controllable-state": "
|
|
39
|
+
"@hanzogui/compose-refs": "7.3.1",
|
|
40
|
+
"@hanzogui/core": "7.3.1",
|
|
41
|
+
"@hanzogui/create-context": "7.3.1",
|
|
42
|
+
"@hanzogui/floating": "7.3.1",
|
|
43
|
+
"@hanzogui/get-token": "7.3.1",
|
|
44
|
+
"@hanzogui/helpers": "7.3.1",
|
|
45
|
+
"@hanzogui/polyfill-dev": "7.3.1",
|
|
46
|
+
"@hanzogui/popover": "7.3.1",
|
|
47
|
+
"@hanzogui/popper": "7.3.1",
|
|
48
|
+
"@hanzogui/stacks": "7.3.1",
|
|
49
|
+
"@hanzogui/text": "7.3.1",
|
|
50
|
+
"@hanzogui/use-controllable-state": "7.3.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@hanzogui/build": "
|
|
53
|
+
"@hanzogui/build": "7.3.1",
|
|
54
54
|
"react": ">=19",
|
|
55
55
|
"react-native": "0.83.2"
|
|
56
56
|
},
|
|
@@ -58,5 +58,12 @@
|
|
|
58
58
|
"react": ">=19",
|
|
59
59
|
"react-native": "*"
|
|
60
60
|
},
|
|
61
|
-
"module:jsx": "dist/jsx"
|
|
62
|
-
|
|
61
|
+
"module:jsx": "dist/jsx",
|
|
62
|
+
"license": "BSD-3-Clause",
|
|
63
|
+
"author": "Hanzo AI <dev@hanzo.ai>",
|
|
64
|
+
"peerDependenciesMeta": {
|
|
65
|
+
"react-native": {
|
|
66
|
+
"optional": true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
package/src/Tooltip.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@hanzogui/polyfill-dev'
|
|
2
2
|
|
|
3
3
|
import { FloatingDelayGroup, useDelayGroupContext, type Delay } from '@hanzogui/floating'
|
|
4
|
-
import type { SizeTokens,
|
|
4
|
+
import type { SizeTokens, GuiElement } from '@hanzogui/core'
|
|
5
5
|
import { useEvent } from '@hanzogui/core'
|
|
6
6
|
import { FloatingOverrideContext } from '@hanzogui/floating'
|
|
7
7
|
import { getSize } from '@hanzogui/get-token'
|
|
@@ -74,7 +74,7 @@ const TooltipContent = PopperContentFrame.styleable<TooltipContentProps>(
|
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
|
|
77
|
-
const TooltipArrow = React.forwardRef<
|
|
77
|
+
const TooltipArrow = React.forwardRef<GuiElement, PopperArrowProps>((props, ref) => {
|
|
78
78
|
return (
|
|
79
79
|
<PopoverArrow
|
|
80
80
|
scope={props.scope || TOOLTIP_SCOPE}
|
package/types/Tooltip.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@hanzogui/polyfill-dev';
|
|
2
2
|
import { type Delay } from '@hanzogui/floating';
|
|
3
|
-
import type { SizeTokens,
|
|
3
|
+
import type { SizeTokens, GuiElement } from '@hanzogui/core';
|
|
4
4
|
import type { PopoverAnchorProps, PopoverContentProps, PopoverTriggerProps } from '@hanzogui/popover';
|
|
5
5
|
import type { PopperProps } from '@hanzogui/popper';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -36,7 +36,7 @@ export declare const TooltipGroup: ({ children, delay, preventAnimation, timeout
|
|
|
36
36
|
delay: Delay;
|
|
37
37
|
preventAnimation?: boolean;
|
|
38
38
|
timeoutMs?: number;
|
|
39
|
-
}) =>
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
40
|
export declare const closeOpenTooltips: () => void;
|
|
41
41
|
export declare const Tooltip: React.ForwardRefExoticComponent<Omit<PopperProps & {
|
|
42
42
|
open?: boolean;
|
|
@@ -65,18 +65,18 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<PopperProps &
|
|
|
65
65
|
Anchor: React.ForwardRefExoticComponent<Omit<PopoverAnchorProps, "scope"> & {
|
|
66
66
|
scope?: TooltipScopes;
|
|
67
67
|
} & React.RefAttributes<unknown>>;
|
|
68
|
-
Arrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").
|
|
68
|
+
Arrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
69
69
|
elevation?: number | SizeTokens | undefined;
|
|
70
70
|
fullscreen?: boolean | undefined;
|
|
71
|
-
}>, keyof import("@hanzogui/stacks").StackVariants> & import("@hanzogui/stacks").StackVariants & import("@hanzogui/popper").PopperArrowExtraProps & React.RefAttributes<
|
|
72
|
-
Content: import("@hanzogui/core").
|
|
71
|
+
}>, keyof import("@hanzogui/stacks").StackVariants> & import("@hanzogui/stacks").StackVariants & import("@hanzogui/popper").PopperArrowExtraProps & React.RefAttributes<GuiElement>>;
|
|
72
|
+
Content: import("@hanzogui/core").GuiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
73
73
|
size?: SizeTokens | undefined;
|
|
74
74
|
unstyled?: boolean | undefined;
|
|
75
75
|
elevation?: number | SizeTokens | undefined;
|
|
76
76
|
fullscreen?: boolean | undefined;
|
|
77
77
|
}>, "theme" | "debug" | "scope" | "hitSlop" | "pointerEvents" | "display" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "position" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "borderCurve" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "outline" | "userSelect" | "backdropFilter" | "background" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "boxShadow" | "border" | "overflowX" | "overflowY" | "transformOrigin" | "filter" | "backgroundClip" | "backgroundBlendMode" | "backgroundAttachment" | "clipPath" | "caretColor" | "transformStyle" | "mask" | "maskImage" | "textEmphasis" | "borderImage" | "float" | "content" | "overflowBlock" | "overflowInline" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridTemplateColumns" | "gridTemplateAreas" | "containerType" | "blockSize" | "inlineSize" | "minBlockSize" | "maxBlockSize" | "objectFit" | "verticalAlign" | "minInlineSize" | "maxInlineSize" | "borderInlineColor" | "borderInlineStartColor" | "borderInlineEndColor" | "borderBlockWidth" | "borderBlockStartWidth" | "borderBlockEndWidth" | "borderInlineWidth" | "borderInlineStartWidth" | "borderInlineEndWidth" | "borderBlockStyle" | "borderBlockStartStyle" | "borderBlockEndStyle" | "borderInlineStyle" | "borderInlineStartStyle" | "borderInlineEndStyle" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "inset" | "insetBlock" | "insetBlockStart" | "insetBlockEnd" | "insetInline" | "insetInlineStart" | "insetInlineEnd" | "transition" | "animateOnly" | "animatePresence" | "passThrough" | "elevation" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "isolation" | "mixBlendMode" | "experimental_backgroundImage" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "boxSizing" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "size" | "transparent" | "fullscreen" | "circular" | "elevate" | "bordered" | "chromeless" | `$${string}` | `$${number}` | `$group-${string}` | `$group-${number}` | `$group-${string}-hover` | `$group-${string}-press` | `$group-${string}-focus` | `$group-${string}-focusVisible` | `$group-${string}-focusWithin` | `$group-${number}-hover` | `$group-${number}-press` | `$group-${number}-focus` | `$group-${number}-focusVisible` | `$group-${number}-focusWithin` | `$theme-${string}` | `$theme-${number}` | "branches" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "forceUnmount" | "onBlurCapture" | "onFocusCapture" | "hoverStyle" | "pressStyle" | "focusStyle" | "focusWithinStyle" | "focusVisibleStyle" | "disabledStyle" | "exitStyle" | "enterStyle" | "animatePosition" | "enableAnimationForPositionChange" | "lazyMount" | "trapFocus" | "disableFocusScope" | "onOpenAutoFocus" | "onCloseAutoFocus" | "enableRemoveScroll" | "freezeContentsWhenHidden" | "alwaysDisable"> & Omit<import("@hanzogui/popover").PopoverContentTypeProps, "scope"> & {
|
|
78
78
|
scope?: TooltipScopes;
|
|
79
|
-
},
|
|
79
|
+
}, GuiElement, import("@hanzogui/core").RNViewNonStyleProps & Omit<import("@hanzogui/popover").PopoverContentTypeProps, "scope"> & {
|
|
80
80
|
scope?: TooltipScopes;
|
|
81
81
|
}, import("@hanzogui/core").StackStyleBase, {
|
|
82
82
|
size?: SizeTokens | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAA4C,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAA;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;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MAAM,CAAA;CACnB,sBAWA,CAAA;AAID,eAAO,MAAM,iBAAiB,YAE7B,CAAA;AA2ID,eAAO,MAAM,OAAO;WAlMT,OAAO;eACH,OAAO;eACP,KAAK,CAAC,SAAS;mBACX,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;YAC9B;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,WAAW,CAAC,EAAE,OAAO,CAAA;KACtB;cACS,MAAM;aACP,MAAM;YAEX,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;+BACsB,OAAO;IAClC;;;OAGG;aACM,MAAM;;YAhFgC,aAAa;;;gBAAb,aAAa;;;;;;;;;;;;gBAAb,aAAa;;gBAAb,aAAa;;;;;;;;gBAAb,aAAa;;CAkQ9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.native.d.ts","sourceRoot":"","sources":["../src/Tooltip.native.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,YAAa,CAAA;AAEtC,eAAO,MAAM,iBAAiB,YAE7B,CAAA;AAED,eAAO,MAAM,OAAO,WAdW,GAAG;oBAAH,GAAG;mBAIP,GAAG;mBAAH,GAAG;qBAAH,GAAG;qBAJC,GAAG;CAoBhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipSimple.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqEtD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipSimple.native.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.native.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,UAJK,GAAG,QAIS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA"}
|