@tamagui/tooltip 1.88.0 → 1.88.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.
|
@@ -37,8 +37,8 @@ const TooltipSimple = React.forwardRef(
|
|
|
37
37
|
import_Tooltip.Tooltip,
|
|
38
38
|
{
|
|
39
39
|
offset: 15,
|
|
40
|
-
restMs:
|
|
41
|
-
delay:
|
|
40
|
+
restMs: 40,
|
|
41
|
+
delay: 40,
|
|
42
42
|
...tooltipProps,
|
|
43
43
|
...disabled ? { open: !1 } : null,
|
|
44
44
|
children: [
|
|
@@ -64,11 +64,11 @@ const TooltipSimple = React.forwardRef(
|
|
|
64
64
|
elevation: "$1",
|
|
65
65
|
opacity: 1,
|
|
66
66
|
paddingVertical: (0, import_get_token.getSpace)(tooltipProps.size || "$true", {
|
|
67
|
-
shift: -
|
|
67
|
+
shift: -4
|
|
68
68
|
}),
|
|
69
69
|
animateOnly: ["transform", "opacity"],
|
|
70
70
|
animation: [
|
|
71
|
-
"
|
|
71
|
+
"quicker",
|
|
72
72
|
{
|
|
73
73
|
opacity: {
|
|
74
74
|
overshootClamping: !0
|
|
@@ -78,7 +78,7 @@ const TooltipSimple = React.forwardRef(
|
|
|
78
78
|
...contentProps,
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tooltip.Tooltip.Arrow, {}),
|
|
81
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Paragraph, { size: "$
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Paragraph, { size: "$3", children: label })
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
)
|
|
@@ -15,8 +15,8 @@ const TooltipSimple = React.forwardRef(
|
|
|
15
15
|
Tooltip,
|
|
16
16
|
{
|
|
17
17
|
offset: 15,
|
|
18
|
-
restMs:
|
|
19
|
-
delay:
|
|
18
|
+
restMs: 40,
|
|
19
|
+
delay: 40,
|
|
20
20
|
...tooltipProps,
|
|
21
21
|
...disabled ? { open: !1 } : null,
|
|
22
22
|
children: [
|
|
@@ -42,11 +42,11 @@ const TooltipSimple = React.forwardRef(
|
|
|
42
42
|
elevation: "$1",
|
|
43
43
|
opacity: 1,
|
|
44
44
|
paddingVertical: getSpace(tooltipProps.size || "$true", {
|
|
45
|
-
shift: -
|
|
45
|
+
shift: -4
|
|
46
46
|
}),
|
|
47
47
|
animateOnly: ["transform", "opacity"],
|
|
48
48
|
animation: [
|
|
49
|
-
"
|
|
49
|
+
"quicker",
|
|
50
50
|
{
|
|
51
51
|
opacity: {
|
|
52
52
|
overshootClamping: !0
|
|
@@ -56,7 +56,7 @@ const TooltipSimple = React.forwardRef(
|
|
|
56
56
|
...contentProps,
|
|
57
57
|
children: [
|
|
58
58
|
/* @__PURE__ */ jsx(Tooltip.Arrow, {}),
|
|
59
|
-
/* @__PURE__ */ jsx(Paragraph, { size: "$
|
|
59
|
+
/* @__PURE__ */ jsx(Paragraph, { size: "$3", children: label })
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
)
|
|
@@ -12,8 +12,8 @@ const TooltipSimple = React.forwardRef(
|
|
|
12
12
|
}
|
|
13
13
|
const child = React.Children.only(children), contents = <Tooltip
|
|
14
14
|
offset={15}
|
|
15
|
-
restMs={
|
|
16
|
-
delay={
|
|
15
|
+
restMs={40}
|
|
16
|
+
delay={40}
|
|
17
17
|
{...tooltipProps}
|
|
18
18
|
{...disabled ? { open: !1 } : null}
|
|
19
19
|
>
|
|
@@ -33,11 +33,11 @@ const TooltipSimple = React.forwardRef(
|
|
|
33
33
|
elevation="$1"
|
|
34
34
|
opacity={1}
|
|
35
35
|
paddingVertical={getSpace(tooltipProps.size || "$true", {
|
|
36
|
-
shift: -
|
|
36
|
+
shift: -4
|
|
37
37
|
})}
|
|
38
38
|
animateOnly={["transform", "opacity"]}
|
|
39
39
|
animation={[
|
|
40
|
-
"
|
|
40
|
+
"quicker",
|
|
41
41
|
{
|
|
42
42
|
opacity: {
|
|
43
43
|
overshootClamping: !0
|
|
@@ -47,7 +47,7 @@ const TooltipSimple = React.forwardRef(
|
|
|
47
47
|
{...contentProps}
|
|
48
48
|
>
|
|
49
49
|
<Tooltip.Arrow />
|
|
50
|
-
<Paragraph size="$
|
|
50
|
+
<Paragraph size="$3">{label}</Paragraph>
|
|
51
51
|
</Tooltip.Content>
|
|
52
52
|
</Tooltip>;
|
|
53
53
|
return context ? contents : <TooltipGroup delay={defaultTooltipDelay}>{contents}</TooltipGroup>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/tooltip",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.1",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -33,25 +33,25 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@floating-ui/react": "^0.24.7",
|
|
36
|
-
"@tamagui/compose-refs": "1.88.
|
|
37
|
-
"@tamagui/core": "1.88.
|
|
38
|
-
"@tamagui/create-context": "1.88.
|
|
39
|
-
"@tamagui/floating": "1.88.
|
|
40
|
-
"@tamagui/get-token": "1.88.
|
|
41
|
-
"@tamagui/helpers": "1.88.
|
|
42
|
-
"@tamagui/polyfill-dev": "1.88.
|
|
43
|
-
"@tamagui/popover": "1.88.
|
|
44
|
-
"@tamagui/popper": "1.88.
|
|
45
|
-
"@tamagui/stacks": "1.88.
|
|
46
|
-
"@tamagui/text": "1.88.
|
|
47
|
-
"@tamagui/use-controllable-state": "1.88.
|
|
36
|
+
"@tamagui/compose-refs": "1.88.1",
|
|
37
|
+
"@tamagui/core": "1.88.1",
|
|
38
|
+
"@tamagui/create-context": "1.88.1",
|
|
39
|
+
"@tamagui/floating": "1.88.1",
|
|
40
|
+
"@tamagui/get-token": "1.88.1",
|
|
41
|
+
"@tamagui/helpers": "1.88.1",
|
|
42
|
+
"@tamagui/polyfill-dev": "1.88.1",
|
|
43
|
+
"@tamagui/popover": "1.88.1",
|
|
44
|
+
"@tamagui/popper": "1.88.1",
|
|
45
|
+
"@tamagui/stacks": "1.88.1",
|
|
46
|
+
"@tamagui/text": "1.88.1",
|
|
47
|
+
"@tamagui/use-controllable-state": "1.88.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "*",
|
|
51
51
|
"react-native": "*"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@tamagui/build": "1.88.
|
|
54
|
+
"@tamagui/build": "1.88.1",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-native": "^0.72.6"
|
|
57
57
|
},
|
package/src/TooltipSimple.tsx
CHANGED
|
@@ -28,8 +28,8 @@ export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
|
|
|
28
28
|
const contents = (
|
|
29
29
|
<Tooltip
|
|
30
30
|
offset={15}
|
|
31
|
-
restMs={
|
|
32
|
-
delay={
|
|
31
|
+
restMs={40}
|
|
32
|
+
delay={40}
|
|
33
33
|
{...tooltipProps}
|
|
34
34
|
{...(disabled ? { open: false } : null)}
|
|
35
35
|
>
|
|
@@ -54,11 +54,11 @@ export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
|
|
|
54
54
|
elevation="$1"
|
|
55
55
|
opacity={1}
|
|
56
56
|
paddingVertical={getSpace(tooltipProps.size || '$true', {
|
|
57
|
-
shift: -
|
|
57
|
+
shift: -4,
|
|
58
58
|
})}
|
|
59
59
|
animateOnly={['transform', 'opacity']}
|
|
60
60
|
animation={[
|
|
61
|
-
'
|
|
61
|
+
'quicker',
|
|
62
62
|
{
|
|
63
63
|
opacity: {
|
|
64
64
|
overshootClamping: true,
|
|
@@ -68,7 +68,7 @@ export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
|
|
|
68
68
|
{...contentProps}
|
|
69
69
|
>
|
|
70
70
|
<Tooltip.Arrow />
|
|
71
|
-
<Paragraph size="$
|
|
71
|
+
<Paragraph size="$3">{label}</Paragraph>
|
|
72
72
|
</Tooltip.Content>
|
|
73
73
|
</Tooltip>
|
|
74
74
|
)
|