@tamagui/tooltip 1.77.1 → 1.79.0
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/cjs/TooltipSimple.js +51 -41
- package/dist/cjs/TooltipSimple.js.map +1 -1
- package/dist/esm/TooltipSimple.js +51 -41
- package/dist/esm/TooltipSimple.js.map +1 -1
- package/dist/jsx/TooltipSimple.js +8 -2
- package/dist/jsx/TooltipSimple.js.map +1 -1
- package/package.json +13 -13
- package/src/TooltipSimple.tsx +9 -2
- package/types/Tooltip.d.ts +7 -7
- package/types/TooltipSimple.d.ts +1 -0
- package/types/TooltipSimple.d.ts.map +1 -1
|
@@ -27,54 +27,64 @@ __export(TooltipSimple_exports, {
|
|
|
27
27
|
module.exports = __toCommonJS(TooltipSimple_exports);
|
|
28
28
|
var import_react = require("@floating-ui/react"), import_get_token = require("@tamagui/get-token"), import_text = require("@tamagui/text"), React = __toESM(require("react")), import_Tooltip = require("./Tooltip"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
29
|
const TooltipSimple = React.forwardRef(
|
|
30
|
-
({ label, children, contentProps, ...tooltipProps }, ref) => {
|
|
30
|
+
({ label, children, contentProps, disabled, ...tooltipProps }, ref) => {
|
|
31
31
|
let context;
|
|
32
32
|
try {
|
|
33
33
|
context = (0, import_react.useDelayGroupContext)();
|
|
34
34
|
} catch {
|
|
35
35
|
}
|
|
36
|
-
const child = React.Children.only(children), contents = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
48
|
-
import_Tooltip.Tooltip.Content,
|
|
49
|
-
{
|
|
50
|
-
zIndex: 1e9,
|
|
51
|
-
enterStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
52
|
-
exitStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
53
|
-
x: 0,
|
|
54
|
-
scale: 1,
|
|
55
|
-
y: 0,
|
|
56
|
-
elevation: "$1",
|
|
57
|
-
opacity: 1,
|
|
58
|
-
paddingVertical: (0, import_get_token.getSpace)(tooltipProps.size || "$true", {
|
|
59
|
-
shift: -3
|
|
60
|
-
}),
|
|
61
|
-
animateOnly: ["transform", "opacity"],
|
|
62
|
-
animation: [
|
|
63
|
-
"quick",
|
|
36
|
+
const child = React.Children.only(children), contents = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
37
|
+
import_Tooltip.Tooltip,
|
|
38
|
+
{
|
|
39
|
+
offset: 15,
|
|
40
|
+
restMs: 220,
|
|
41
|
+
delay: 160,
|
|
42
|
+
...tooltipProps,
|
|
43
|
+
...disabled ? { open: !1 } : null,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
import_Tooltip.Tooltip.Trigger,
|
|
64
47
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
48
|
+
...typeof label == "string" && {
|
|
49
|
+
"aria-label": label
|
|
50
|
+
},
|
|
51
|
+
asChild: !0,
|
|
52
|
+
children: React.isValidElement(child) ? React.cloneElement(child, { ref }) : child
|
|
68
53
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
56
|
+
import_Tooltip.Tooltip.Content,
|
|
57
|
+
{
|
|
58
|
+
zIndex: 1e9,
|
|
59
|
+
enterStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
60
|
+
exitStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
61
|
+
x: 0,
|
|
62
|
+
scale: 1,
|
|
63
|
+
y: 0,
|
|
64
|
+
elevation: "$1",
|
|
65
|
+
opacity: 1,
|
|
66
|
+
paddingVertical: (0, import_get_token.getSpace)(tooltipProps.size || "$true", {
|
|
67
|
+
shift: -3
|
|
68
|
+
}),
|
|
69
|
+
animateOnly: ["transform", "opacity"],
|
|
70
|
+
animation: [
|
|
71
|
+
"quick",
|
|
72
|
+
{
|
|
73
|
+
opacity: {
|
|
74
|
+
overshootClamping: !0
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
...contentProps,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tooltip.Tooltip.Arrow, {}),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Paragraph, { size: "$2", children: label })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
78
88
|
return context ? contents : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tooltip.TooltipGroup, { delay: defaultTooltipDelay, children: contents });
|
|
79
89
|
}
|
|
80
90
|
), defaultTooltipDelay = { open: 3e3, close: 100 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TooltipSimple.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqC,+BACrC,mBAAyB,+BAEzB,cAA0B,0BAC1B,QAAuB,2BAEvB,iBAAoD,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqC,+BACrC,mBAAyB,+BAEzB,cAA0B,0BAC1B,QAAuB,2BAEvB,iBAAoD,sBA6B5C;AApBD,MAAM,gBAA8C,MAAM;AAAA,EAC/D,CAAC,EAAE,OAAO,UAAU,cAAc,UAAU,GAAG,aAAa,GAAG,QAAQ;AACrE,QAAI;AACJ,QAAI;AAEF,oBAAU,mCAAqB;AAAA,IACjC,QAAQ;AAAA,IAER;AAEA,UAAM,QAAQ,MAAM,SAAS,KAAK,QAAQ,GAEpC,WACJ;AAAA,MAAC;AAAA;AAAA,QACC,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,OAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAI,WAAW,EAAE,MAAM,GAAM,IAAI;AAAA,QAElC;AAAA;AAAA,YAAC,uBAAQ;AAAA,YAAR;AAAA,cACE,GAAI,OAAO,SAAU,YAAY;AAAA,gBAChC,cAAc;AAAA,cAChB;AAAA,cACA,SAAO;AAAA,cAEN,gBAAM,eAAe,KAAK,IACvB,MAAM,aAAa,OAAO,EAAE,IAAI,CAAQ,IACxC;AAAA;AAAA,UACN;AAAA,UACA;AAAA,YAAC,uBAAQ;AAAA,YAAR;AAAA,cACC,QAAQ;AAAA,cACR,YAAY,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,cACnD,WAAW,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,cAClD,GAAG;AAAA,cACH,OAAO;AAAA,cACP,GAAG;AAAA,cACH,WAAU;AAAA,cACV,SAAS;AAAA,cACT,qBAAiB,2BAAS,aAAa,QAAQ,SAAS;AAAA,gBACtD,OAAO;AAAA,cACT,CAAC;AAAA,cACD,aAAa,CAAC,aAAa,SAAS;AAAA,cACpC,WAAW;AAAA,gBACT;AAAA,gBACA;AAAA,kBACE,SAAS;AAAA,oBACP,mBAAmB;AAAA,kBACrB;AAAA,gBACF;AAAA,cACF;AAAA,cACC,GAAG;AAAA,cAEJ;AAAA,4DAAC,uBAAQ,OAAR,EAAc;AAAA,gBACf,4CAAC,yBAAU,MAAK,MAAM,iBAAM;AAAA;AAAA;AAAA,UAC9B;AAAA;AAAA;AAAA,IACF;AAGF,WAAK,UAIE,WAHE,4CAAC,+BAAa,OAAO,qBAAsB,oBAAS;AAAA,EAI/D;AACF,GAEM,sBAAsB,EAAE,MAAM,KAAM,OAAO,IAAI;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -5,54 +5,64 @@ import * as React from "react";
|
|
|
5
5
|
import { Tooltip, TooltipGroup } from "./Tooltip";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const TooltipSimple = React.forwardRef(
|
|
8
|
-
({ label, children, contentProps, ...tooltipProps }, ref) => {
|
|
8
|
+
({ label, children, contentProps, disabled, ...tooltipProps }, ref) => {
|
|
9
9
|
let context;
|
|
10
10
|
try {
|
|
11
11
|
context = useDelayGroupContext();
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
|
-
const child = React.Children.only(children), contents = /* @__PURE__ */ jsxs(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ jsxs(
|
|
26
|
-
Tooltip.Content,
|
|
27
|
-
{
|
|
28
|
-
zIndex: 1e9,
|
|
29
|
-
enterStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
30
|
-
exitStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
31
|
-
x: 0,
|
|
32
|
-
scale: 1,
|
|
33
|
-
y: 0,
|
|
34
|
-
elevation: "$1",
|
|
35
|
-
opacity: 1,
|
|
36
|
-
paddingVertical: getSpace(tooltipProps.size || "$true", {
|
|
37
|
-
shift: -3
|
|
38
|
-
}),
|
|
39
|
-
animateOnly: ["transform", "opacity"],
|
|
40
|
-
animation: [
|
|
41
|
-
"quick",
|
|
14
|
+
const child = React.Children.only(children), contents = /* @__PURE__ */ jsxs(
|
|
15
|
+
Tooltip,
|
|
16
|
+
{
|
|
17
|
+
offset: 15,
|
|
18
|
+
restMs: 220,
|
|
19
|
+
delay: 160,
|
|
20
|
+
...tooltipProps,
|
|
21
|
+
...disabled ? { open: !1 } : null,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
Tooltip.Trigger,
|
|
42
25
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
26
|
+
...typeof label == "string" && {
|
|
27
|
+
"aria-label": label
|
|
28
|
+
},
|
|
29
|
+
asChild: !0,
|
|
30
|
+
children: React.isValidElement(child) ? React.cloneElement(child, { ref }) : child
|
|
46
31
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsxs(
|
|
34
|
+
Tooltip.Content,
|
|
35
|
+
{
|
|
36
|
+
zIndex: 1e9,
|
|
37
|
+
enterStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
38
|
+
exitStyle: { x: 0, y: -8, opacity: 0, scale: 0.93 },
|
|
39
|
+
x: 0,
|
|
40
|
+
scale: 1,
|
|
41
|
+
y: 0,
|
|
42
|
+
elevation: "$1",
|
|
43
|
+
opacity: 1,
|
|
44
|
+
paddingVertical: getSpace(tooltipProps.size || "$true", {
|
|
45
|
+
shift: -3
|
|
46
|
+
}),
|
|
47
|
+
animateOnly: ["transform", "opacity"],
|
|
48
|
+
animation: [
|
|
49
|
+
"quick",
|
|
50
|
+
{
|
|
51
|
+
opacity: {
|
|
52
|
+
overshootClamping: !0
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
...contentProps,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx(Tooltip.Arrow, {}),
|
|
59
|
+
/* @__PURE__ */ jsx(Paragraph, { size: "$2", children: label })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
56
66
|
return context ? contents : /* @__PURE__ */ jsx(TooltipGroup, { delay: defaultTooltipDelay, children: contents });
|
|
57
67
|
}
|
|
58
68
|
), defaultTooltipDelay = { open: 3e3, close: 100 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TooltipSimple.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAEzB,SAAS,iBAAiB;AAC1B,YAAY,WAAW;AAEvB,SAAS,SAAS,oBAAkC;
|
|
4
|
+
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAEzB,SAAS,iBAAiB;AAC1B,YAAY,WAAW;AAEvB,SAAS,SAAS,oBAAkC;AA6B5C,cAUA,YAVA;AApBD,MAAM,gBAA8C,MAAM;AAAA,EAC/D,CAAC,EAAE,OAAO,UAAU,cAAc,UAAU,GAAG,aAAa,GAAG,QAAQ;AACrE,QAAI;AACJ,QAAI;AAEF,gBAAU,qBAAqB;AAAA,IACjC,QAAQ;AAAA,IAER;AAEA,UAAM,QAAQ,MAAM,SAAS,KAAK,QAAQ,GAEpC,WACJ;AAAA,MAAC;AAAA;AAAA,QACC,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,OAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAI,WAAW,EAAE,MAAM,GAAM,IAAI;AAAA,QAElC;AAAA;AAAA,YAAC,QAAQ;AAAA,YAAR;AAAA,cACE,GAAI,OAAO,SAAU,YAAY;AAAA,gBAChC,cAAc;AAAA,cAChB;AAAA,cACA,SAAO;AAAA,cAEN,gBAAM,eAAe,KAAK,IACvB,MAAM,aAAa,OAAO,EAAE,IAAI,CAAQ,IACxC;AAAA;AAAA,UACN;AAAA,UACA;AAAA,YAAC,QAAQ;AAAA,YAAR;AAAA,cACC,QAAQ;AAAA,cACR,YAAY,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,cACnD,WAAW,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,cAClD,GAAG;AAAA,cACH,OAAO;AAAA,cACP,GAAG;AAAA,cACH,WAAU;AAAA,cACV,SAAS;AAAA,cACT,iBAAiB,SAAS,aAAa,QAAQ,SAAS;AAAA,gBACtD,OAAO;AAAA,cACT,CAAC;AAAA,cACD,aAAa,CAAC,aAAa,SAAS;AAAA,cACpC,WAAW;AAAA,gBACT;AAAA,gBACA;AAAA,kBACE,SAAS;AAAA,oBACP,mBAAmB;AAAA,kBACrB;AAAA,gBACF;AAAA,cACF;AAAA,cACC,GAAG;AAAA,cAEJ;AAAA,oCAAC,QAAQ,OAAR,EAAc;AAAA,gBACf,oBAAC,aAAU,MAAK,MAAM,iBAAM;AAAA;AAAA;AAAA,UAC9B;AAAA;AAAA;AAAA,IACF;AAGF,WAAK,UAIE,WAHE,oBAAC,gBAAa,OAAO,qBAAsB,oBAAS;AAAA,EAI/D;AACF,GAEM,sBAAsB,EAAE,MAAM,KAAM,OAAO,IAAI;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -4,13 +4,19 @@ import { Paragraph } from "@tamagui/text";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Tooltip, TooltipGroup } from "./Tooltip";
|
|
6
6
|
const TooltipSimple = React.forwardRef(
|
|
7
|
-
({ label, children, contentProps, ...tooltipProps }, ref) => {
|
|
7
|
+
({ label, children, contentProps, disabled, ...tooltipProps }, ref) => {
|
|
8
8
|
let context;
|
|
9
9
|
try {
|
|
10
10
|
context = useDelayGroupContext();
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
const child = React.Children.only(children), contents = <Tooltip
|
|
13
|
+
const child = React.Children.only(children), contents = <Tooltip
|
|
14
|
+
offset={15}
|
|
15
|
+
restMs={220}
|
|
16
|
+
delay={160}
|
|
17
|
+
{...tooltipProps}
|
|
18
|
+
{...disabled ? { open: !1 } : null}
|
|
19
|
+
>
|
|
14
20
|
<Tooltip.Trigger
|
|
15
21
|
{...typeof label == "string" && {
|
|
16
22
|
"aria-label": label
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TooltipSimple.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAEzB,SAAS,iBAAiB;AAC1B,YAAY,WAAW;AAEvB,SAAS,SAAS,oBAAkC;
|
|
4
|
+
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAEzB,SAAS,iBAAiB;AAC1B,YAAY,WAAW;AAEvB,SAAS,SAAS,oBAAkC;AAS7C,MAAM,gBAA8C,MAAM;AAAA,EAC/D,CAAC,EAAE,OAAO,UAAU,cAAc,UAAU,GAAG,aAAa,GAAG,QAAQ;AACrE,QAAI;AACJ,QAAI;AAEF,gBAAU,qBAAqB;AAAA,IACjC,QAAQ;AAAA,IAER;AAEA,UAAM,QAAQ,MAAM,SAAS,KAAK,QAAQ,GAEpC,WACJ,CAAC;AAAA,MACC,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,OAAO;AAAA,UACH;AAAA,UACC,WAAW,EAAE,MAAM,GAAM,IAAI;AAAA;AAAA,MAElC,CAAC,QAAQ;AAAA,YACF,OAAO,SAAU,YAAY;AAAA,UAChC,cAAc;AAAA,QAChB;AAAA,QACA;AAAA,QAEC,MAAM,eAAe,KAAK,IACvB,MAAM,aAAa,OAAO,EAAE,IAAI,CAAQ,IACxC,MACN,EATC,QAAQ;AAAA,MAUT,CAAC,QAAQ;AAAA,QACP,QAAQ;AAAA,QACR,YAAY,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,QACnD,WAAW,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS,GAAG,OAAO,KAAK;AAAA,QAClD,GAAG;AAAA,QACH,OAAO;AAAA,QACP,GAAG;AAAA,QACH,UAAU;AAAA,QACV,SAAS;AAAA,QACT,iBAAiB,SAAS,aAAa,QAAQ,SAAS;AAAA,UACtD,OAAO;AAAA,QACT,CAAC;AAAA,QACD,aAAa,CAAC,aAAa,SAAS;AAAA,QACpC,WAAW;AAAA,UACT;AAAA,UACA;AAAA,YACE,SAAS;AAAA,cACP,mBAAmB;AAAA,YACrB;AAAA,UACF;AAAA,QACF;AAAA,YACI;AAAA;AAAA,QAEJ,CAAC,QAAQ,MAAM;AAAA,QACf,CAAC,UAAU,KAAK,MAAM,MAAM,EAA3B;AAAA,MACH,EAzBC,QAAQ;AAAA,IA0BX,EA3CC;AA8CH,WAAK,UAIE,WAHE,CAAC,aAAa,OAAO,sBAAsB,SAAS,EAAnD;AAAA,EAIZ;AACF,GAEM,sBAAsB,EAAE,MAAM,KAAM,OAAO,IAAI;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/tooltip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@floating-ui/react": "^0.24.7",
|
|
35
|
-
"@tamagui/compose-refs": "1.
|
|
36
|
-
"@tamagui/core": "1.
|
|
37
|
-
"@tamagui/create-context": "1.
|
|
38
|
-
"@tamagui/floating": "1.
|
|
39
|
-
"@tamagui/get-token": "1.
|
|
40
|
-
"@tamagui/polyfill-dev": "1.
|
|
41
|
-
"@tamagui/popover": "1.
|
|
42
|
-
"@tamagui/popper": "1.
|
|
43
|
-
"@tamagui/stacks": "1.
|
|
44
|
-
"@tamagui/text": "1.
|
|
45
|
-
"@tamagui/use-controllable-state": "1.
|
|
35
|
+
"@tamagui/compose-refs": "1.79.0",
|
|
36
|
+
"@tamagui/core": "1.79.0",
|
|
37
|
+
"@tamagui/create-context": "1.79.0",
|
|
38
|
+
"@tamagui/floating": "1.79.0",
|
|
39
|
+
"@tamagui/get-token": "1.79.0",
|
|
40
|
+
"@tamagui/polyfill-dev": "1.79.0",
|
|
41
|
+
"@tamagui/popover": "1.79.0",
|
|
42
|
+
"@tamagui/popper": "1.79.0",
|
|
43
|
+
"@tamagui/stacks": "1.79.0",
|
|
44
|
+
"@tamagui/text": "1.79.0",
|
|
45
|
+
"@tamagui/use-controllable-state": "1.79.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "*",
|
|
49
49
|
"react-native": "*"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tamagui/build": "1.
|
|
52
|
+
"@tamagui/build": "1.79.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-native": "^0.72.1"
|
|
55
55
|
},
|
package/src/TooltipSimple.tsx
CHANGED
|
@@ -7,13 +7,14 @@ import * as React from 'react'
|
|
|
7
7
|
import { Tooltip, TooltipGroup, TooltipProps } from './Tooltip'
|
|
8
8
|
|
|
9
9
|
export type TooltipSimpleProps = TooltipProps & {
|
|
10
|
+
disabled?: boolean
|
|
10
11
|
label?: React.ReactNode
|
|
11
12
|
children?: React.ReactNode
|
|
12
13
|
contentProps?: SizableStackProps
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
|
|
16
|
-
({ label, children, contentProps, ...tooltipProps }, ref) => {
|
|
17
|
+
({ label, children, contentProps, disabled, ...tooltipProps }, ref) => {
|
|
17
18
|
let context
|
|
18
19
|
try {
|
|
19
20
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -25,7 +26,13 @@ export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
|
|
|
25
26
|
const child = React.Children.only(children)
|
|
26
27
|
|
|
27
28
|
const contents = (
|
|
28
|
-
<Tooltip
|
|
29
|
+
<Tooltip
|
|
30
|
+
offset={15}
|
|
31
|
+
restMs={220}
|
|
32
|
+
delay={160}
|
|
33
|
+
{...tooltipProps}
|
|
34
|
+
{...(disabled ? { open: false } : null)}
|
|
35
|
+
>
|
|
29
36
|
<Tooltip.Trigger
|
|
30
37
|
{...(typeof label === 'string' && {
|
|
31
38
|
'aria-label': label,
|
package/types/Tooltip.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
|
|
|
45
45
|
} & {
|
|
46
46
|
__scopeTooltip?: string | undefined;
|
|
47
47
|
} & React.RefAttributes<unknown>> & {
|
|
48
|
-
Anchor: React.ForwardRefExoticComponent<Omit<ScopedTooltipProps<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
48
|
+
Anchor: React.ForwardRefExoticComponent<Omit<ScopedTooltipProps<Omit<import("react-native").ViewProps, "children" | "pointerEvents" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
49
49
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
50
50
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>> & import("@tamagui/core").MediaProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>>> & {
|
|
51
51
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
@@ -75,10 +75,10 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
|
|
|
75
75
|
rel?: string | undefined;
|
|
76
76
|
download?: boolean | undefined;
|
|
77
77
|
} | undefined;
|
|
78
|
-
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "
|
|
78
|
+
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "pointerEvents" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "gap" | "columnGap" | "rowGap" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "userSelect" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "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" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "scaleX" | "scaleY" | "translateX" | "translateY" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}` | "x" | "y" | "perspective" | "scale" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "theme" | "group" | "onFocus" | "key" | "elevationAndroid" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onBlur" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "tag" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onScroll" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "rel" | "download" | "dataSet" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "href" | "hrefAttrs" | "ref"> & {
|
|
79
79
|
readonly fullscreen?: boolean | undefined;
|
|
80
80
|
readonly elevation?: number | SizeTokens | undefined;
|
|
81
|
-
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
81
|
+
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "pointerEvents" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
82
82
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
83
83
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>> & import("@tamagui/core").MediaProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>>> & {
|
|
84
84
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
@@ -108,10 +108,10 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
|
|
|
108
108
|
rel?: string | undefined;
|
|
109
109
|
download?: boolean | undefined;
|
|
110
110
|
} | undefined;
|
|
111
|
-
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "
|
|
111
|
+
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "pointerEvents" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "gap" | "columnGap" | "rowGap" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "userSelect" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "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" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "scaleX" | "scaleY" | "translateX" | "translateY" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}` | "x" | "y" | "perspective" | "scale" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "theme" | "group" | "onFocus" | "key" | "elevationAndroid" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onBlur" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "tag" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onScroll" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "rel" | "download" | "dataSet" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "href" | "hrefAttrs" | "ref"> & {
|
|
112
112
|
readonly fullscreen?: boolean | undefined;
|
|
113
113
|
readonly elevation?: number | SizeTokens | undefined;
|
|
114
|
-
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
114
|
+
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "pointerEvents" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
115
115
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
116
116
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>> & import("@tamagui/core").MediaProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>>> & {
|
|
117
117
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
@@ -141,13 +141,13 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
|
|
|
141
141
|
rel?: string | undefined;
|
|
142
142
|
download?: boolean | undefined;
|
|
143
143
|
} | undefined;
|
|
144
|
-
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "
|
|
144
|
+
} & React.RefAttributes<import("@tamagui/core").TamaguiElement> & Omit<import("@tamagui/core").StackProps, "children" | "pointerEvents" | "display" | "onLayout" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "gap" | "columnGap" | "rowGap" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "userSelect" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "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" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "scaleX" | "scaleY" | "translateX" | "translateY" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}` | "x" | "y" | "perspective" | "scale" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "theme" | "group" | "onFocus" | "key" | "elevationAndroid" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onBlur" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "tag" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onScroll" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "rel" | "download" | "dataSet" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "href" | "hrefAttrs" | "ref"> & {
|
|
145
145
|
readonly fullscreen?: boolean | undefined;
|
|
146
146
|
readonly elevation?: number | SizeTokens | undefined;
|
|
147
147
|
}>>>, "ref"> & React.RefAttributes<unknown>>;
|
|
148
148
|
Arrow: React.ForwardRefExoticComponent<Omit<ScopedTooltipProps<import("@tamagui/popper").PopperArrowProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
149
149
|
Content: React.ForwardRefExoticComponent<Omit<ScopedTooltipProps<import("@tamagui/popover").PopoverContentTypeProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
150
|
-
Trigger: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
150
|
+
Trigger: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "pointerEvents" | "display" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & import("@tamagui/core").TamaguiComponentPropsBaseBase & {
|
|
151
151
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
152
152
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>> & import("@tamagui/core").MediaProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>>> & {
|
|
153
153
|
__scopeTooltip?: string | undefined;
|
package/types/TooltipSimple.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { SizableStackProps } from '@tamagui/stacks';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { TooltipProps } from './Tooltip';
|
|
4
4
|
export type TooltipSimpleProps = TooltipProps & {
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
label?: React.ReactNode;
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
contentProps?: SizableStackProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipSimple.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAyB,YAAY,EAAE,MAAM,WAAW,CAAA;AAE/D,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,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,
|
|
1
|
+
{"version":3,"file":"TooltipSimple.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAyB,YAAY,EAAE,MAAM,WAAW,CAAA;AAE/D,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,CAiEtD,CAAA"}
|