@tamagui/tooltip 1.0.1-beta.108 → 1.0.1-beta.109
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/Tooltip.js +38 -67
- package/dist/cjs/Tooltip.js.map +1 -1
- package/dist/cjs/Tooltip.native.js +1 -0
- package/dist/cjs/Tooltip.native.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Tooltip.js +37 -69
- package/dist/esm/Tooltip.js.map +1 -1
- package/package.json +11 -11
package/dist/cjs/Tooltip.js
CHANGED
|
@@ -1,38 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __spreadValues = (a, b) => {
|
|
13
|
-
for (var prop in b || (b = {}))
|
|
14
|
-
if (__hasOwnProp.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
if (__getOwnPropSymbols)
|
|
17
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
-
if (__propIsEnum.call(b, prop))
|
|
19
|
-
__defNormalProp(a, prop, b[prop]);
|
|
20
|
-
}
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __objRest = (source, exclude) => {
|
|
25
|
-
var target = {};
|
|
26
|
-
for (var prop in source)
|
|
27
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
if (source != null && __getOwnPropSymbols)
|
|
30
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
32
|
-
target[prop] = source[prop];
|
|
33
|
-
}
|
|
34
|
-
return target;
|
|
35
|
-
};
|
|
36
8
|
var __export = (target, all) => {
|
|
37
9
|
for (var name in all)
|
|
38
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -61,40 +33,36 @@ var import_popover = require("@tamagui/popover");
|
|
|
61
33
|
var import_popper = require("@tamagui/popper");
|
|
62
34
|
var import_text = require("@tamagui/text");
|
|
63
35
|
var React = __toESM(require("react"));
|
|
64
|
-
const TooltipContent = React.forwardRef((
|
|
65
|
-
var _b = _a, { __scopePopover } = _b, props = __objRest(_b, ["__scopePopover"]);
|
|
36
|
+
const TooltipContent = React.forwardRef(({ __scopePopover, ...props }, ref) => {
|
|
66
37
|
const popperScope = (0, import_popover.usePopoverScope)(__scopePopover);
|
|
67
38
|
const popper = (0, import_popper.usePopperContext)("PopperContent", popperScope["__scopePopper"]);
|
|
68
|
-
return /* @__PURE__ */ React.createElement(import_popover.PopoverContent,
|
|
39
|
+
return /* @__PURE__ */ React.createElement(import_popover.PopoverContent, {
|
|
69
40
|
disableRemoveScroll: true,
|
|
70
41
|
trapFocus: false,
|
|
71
42
|
padding: props.size || popper.size || "$2",
|
|
72
43
|
componentName: "TooltipContent",
|
|
73
44
|
pointerEvents: "none",
|
|
74
|
-
ref
|
|
75
|
-
|
|
45
|
+
ref,
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
76
48
|
});
|
|
77
49
|
const TooltipArrow = React.forwardRef((props, ref) => {
|
|
78
|
-
return /* @__PURE__ */ React.createElement(import_popover.PopoverArrow,
|
|
50
|
+
return /* @__PURE__ */ React.createElement(import_popover.PopoverArrow, {
|
|
79
51
|
componentName: "TooltipArrow",
|
|
80
|
-
ref
|
|
81
|
-
|
|
52
|
+
ref,
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
82
55
|
});
|
|
83
56
|
const TooltipGroup = import_react_dom_interactions.FloatingDelayGroup;
|
|
84
57
|
const Tooltip = (0, import_core.withStaticProperties)((props) => {
|
|
85
|
-
const
|
|
58
|
+
const {
|
|
86
59
|
__scopePopover,
|
|
87
60
|
children,
|
|
88
61
|
restMs = 500,
|
|
89
62
|
delay: delayProp,
|
|
90
|
-
onOpenChange: onOpenChangeProp
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"children",
|
|
94
|
-
"restMs",
|
|
95
|
-
"delay",
|
|
96
|
-
"onOpenChange"
|
|
97
|
-
]);
|
|
63
|
+
onOpenChange: onOpenChangeProp,
|
|
64
|
+
...restProps
|
|
65
|
+
} = props;
|
|
98
66
|
const popperScope = (0, import_popover.usePopoverScope)(__scopePopover);
|
|
99
67
|
const triggerRef = React.useRef(null);
|
|
100
68
|
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
@@ -110,10 +78,11 @@ const Tooltip = (0, import_core.withStaticProperties)((props) => {
|
|
|
110
78
|
onOpenChangeProp == null ? void 0 : onOpenChangeProp(open2);
|
|
111
79
|
});
|
|
112
80
|
const useFloatingFn = (props2) => {
|
|
113
|
-
const floating = (0, import_react_dom_interactions.useFloating)(
|
|
81
|
+
const floating = (0, import_react_dom_interactions.useFloating)({
|
|
82
|
+
...props2,
|
|
114
83
|
open,
|
|
115
84
|
onOpenChange
|
|
116
|
-
})
|
|
85
|
+
});
|
|
117
86
|
const { getReferenceProps, getFloatingProps } = (0, import_react_dom_interactions.useInteractions)([
|
|
118
87
|
(0, import_react_dom_interactions.useHover)(floating.context, { delay, restMs }),
|
|
119
88
|
(0, import_react_dom_interactions.useFocus)(floating.context),
|
|
@@ -121,19 +90,22 @@ const Tooltip = (0, import_core.withStaticProperties)((props) => {
|
|
|
121
90
|
(0, import_react_dom_interactions.useDismiss)(floating.context),
|
|
122
91
|
(0, import_react_dom_interactions.useDelayGroup)(floating.context, { id })
|
|
123
92
|
]);
|
|
124
|
-
return
|
|
93
|
+
return {
|
|
94
|
+
...floating,
|
|
125
95
|
getReferenceProps,
|
|
126
96
|
getFloatingProps
|
|
127
|
-
}
|
|
97
|
+
};
|
|
128
98
|
};
|
|
129
99
|
const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open]);
|
|
130
100
|
const voidFn = React.useCallback(() => {
|
|
131
101
|
}, [setOpen]);
|
|
132
102
|
return /* @__PURE__ */ React.createElement(import_popper.FloatingOverrideContext.Provider, {
|
|
133
103
|
value: useFloatingContext
|
|
134
|
-
}, /* @__PURE__ */ React.createElement(import_popper.Popper,
|
|
135
|
-
size: "$2"
|
|
136
|
-
|
|
104
|
+
}, /* @__PURE__ */ React.createElement(import_popper.Popper, {
|
|
105
|
+
size: "$2",
|
|
106
|
+
...popperScope,
|
|
107
|
+
...restProps
|
|
108
|
+
}, /* @__PURE__ */ React.createElement(import_popover.__PopoverProviderInternal, {
|
|
137
109
|
scope: __scopePopover,
|
|
138
110
|
contentId: (0, import_core.useId)(),
|
|
139
111
|
triggerRef,
|
|
@@ -151,24 +123,22 @@ const Tooltip = (0, import_core.withStaticProperties)((props) => {
|
|
|
151
123
|
Trigger: import_popover.PopoverTrigger
|
|
152
124
|
});
|
|
153
125
|
Tooltip.displayName = "Tooltip";
|
|
154
|
-
const TooltipSimple = (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"label",
|
|
161
|
-
"children",
|
|
162
|
-
"contentProps"
|
|
163
|
-
]);
|
|
126
|
+
const TooltipSimple = ({
|
|
127
|
+
label,
|
|
128
|
+
children,
|
|
129
|
+
contentProps,
|
|
130
|
+
...tooltipProps
|
|
131
|
+
}) => {
|
|
164
132
|
let context;
|
|
165
133
|
try {
|
|
166
134
|
context = (0, import_react_dom_interactions.useDelayGroupContext)();
|
|
167
135
|
} catch {
|
|
168
136
|
}
|
|
169
|
-
const contents = /* @__PURE__ */ React.createElement(Tooltip,
|
|
137
|
+
const contents = /* @__PURE__ */ React.createElement(Tooltip, {
|
|
138
|
+
...tooltipProps
|
|
139
|
+
}, /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
170
140
|
asChild: true
|
|
171
|
-
}, children), /* @__PURE__ */ React.createElement(Tooltip.Content,
|
|
141
|
+
}, children), /* @__PURE__ */ React.createElement(Tooltip.Content, {
|
|
172
142
|
enterStyle: { x: 0, y: -10, opacity: 0, scale: 0.9 },
|
|
173
143
|
exitStyle: { x: 0, y: -10, opacity: 0, scale: 0.9 },
|
|
174
144
|
x: 0,
|
|
@@ -183,8 +153,9 @@ const TooltipSimple = (_c) => {
|
|
|
183
153
|
overshootClamping: true
|
|
184
154
|
}
|
|
185
155
|
}
|
|
186
|
-
]
|
|
187
|
-
|
|
156
|
+
],
|
|
157
|
+
...contentProps
|
|
158
|
+
}, /* @__PURE__ */ React.createElement(Tooltip.Arrow, null), /* @__PURE__ */ React.createElement(import_text.Paragraph, {
|
|
188
159
|
size: "$2",
|
|
189
160
|
lineHeight: "$1"
|
|
190
161
|
}, label)));
|
package/dist/cjs/Tooltip.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Tooltip.tsx"],
|
|
4
4
|
"sourcesContent": ["import '@tamagui/polyfill-dev'\n\nimport {\n FloatingDelayGroup,\n useDelayGroup,\n useDelayGroupContext,\n useDismiss,\n useFloating,\n useFocus,\n useHover,\n useInteractions,\n useRole,\n} from '@floating-ui/react-dom-interactions'\nimport { useEvent, useId, withStaticProperties } from '@tamagui/core'\nimport { ScopedProps } from '@tamagui/create-context'\nimport {\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverContent,\n PopoverContentProps,\n PopoverTrigger,\n __PopoverProviderInternal,\n usePopoverScope,\n} from '@tamagui/popover'\nimport {\n FloatingOverrideContext,\n Popper,\n PopperProps,\n UseFloatingFn,\n usePopperContext,\n} from '@tamagui/popper'\nimport { SizableStackProps } from '@tamagui/stacks'\nimport { Paragraph } from '@tamagui/text'\nimport * as React from 'react'\n\nconst TooltipContent = React.forwardRef(\n ({ __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>, ref: any) => {\n const popperScope = usePopoverScope(__scopePopover)\n const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])\n return (\n <PopoverContent\n disableRemoveScroll\n trapFocus={false}\n padding={props.size || popper.size || '$2'}\n componentName=\"TooltipContent\"\n pointerEvents=\"none\"\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nconst TooltipArrow = React.forwardRef((props: PopoverArrowProps, ref: any) => {\n return <PopoverArrow componentName=\"TooltipArrow\" ref={ref} {...props} />\n})\n\nexport type TooltipProps = PopperProps & {\n children?: React.ReactNode\n onOpenChange?: (open: boolean) => void\n groupId?: string\n restMs?: number\n delay?:\n | number\n | {\n open?: number\n close?: number\n }\n}\n\nexport const TooltipGroup = FloatingDelayGroup\n\nexport const Tooltip = withStaticProperties(\n ((props: ScopedProps<TooltipProps, 'Popover'>) => {\n const {\n __scopePopover,\n children,\n restMs = 500,\n delay: delayProp,\n onOpenChange: onOpenChangeProp,\n ...restProps\n } = props\n const popperScope = usePopoverScope(__scopePopover)\n const triggerRef = React.useRef<HTMLButtonElement>(null)\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false)\n const { delay: delayGroup, setCurrentId } = useDelayGroupContext()\n const delay = delayProp ?? delayGroup\n const [open, setOpen] = React.useState(false)\n const id = props.groupId\n\n const onOpenChange = useEvent((open) => {\n setOpen(open)\n if (open) {\n setCurrentId(id)\n }\n onOpenChangeProp?.(open)\n })\n\n const useFloatingFn: UseFloatingFn = (props) => {\n const floating = useFloating({\n ...props,\n open,\n onOpenChange,\n })\n const { getReferenceProps, getFloatingProps } = useInteractions([\n useHover(floating.context, { delay, restMs }),\n useFocus(floating.context),\n useRole(floating.context, { role: 'tooltip' }),\n useDismiss(floating.context),\n useDelayGroup(floating.context, { id }),\n ])\n return {\n ...floating,\n getReferenceProps,\n getFloatingProps,\n } as any\n }\n\n const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open])\n\n const voidFn = React.useCallback(() => {}, [setOpen])\n\n return (\n <FloatingOverrideContext.Provider value={useFloatingContext}>\n {/* default tooltip to a smaller size */}\n <Popper size=\"$2\" {...popperScope} {...restProps}>\n <__PopoverProviderInternal\n scope={__scopePopover}\n contentId={useId()}\n triggerRef={triggerRef}\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={voidFn}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={React.useCallback(() => setHasCustomAnchor(true), [])}\n onCustomAnchorRemove={React.useCallback(() => setHasCustomAnchor(false), [])}\n >\n {children}\n </__PopoverProviderInternal>\n </Popper>\n </FloatingOverrideContext.Provider>\n )\n }) as React.FC<TooltipProps>,\n {\n Anchor: PopoverAnchor,\n Arrow: TooltipArrow,\n Content: TooltipContent,\n Trigger: PopoverTrigger,\n }\n)\n\nTooltip.displayName = 'Tooltip'\n\nexport type TooltipSimpleProps = TooltipProps & {\n label?: React.ReactNode\n children?: React.ReactNode\n contentProps?: SizableStackProps\n}\n\nexport const TooltipSimple: React.FC<TooltipSimpleProps> = ({\n label,\n children,\n contentProps,\n ...tooltipProps\n}) => {\n let context\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n context = useDelayGroupContext()\n } catch {\n // ok\n }\n\n const contents = (\n <Tooltip {...tooltipProps}>\n <Tooltip.Trigger asChild>{children}</Tooltip.Trigger>\n <Tooltip.Content\n enterStyle={{ x: 0, y: -10, opacity: 0, scale: 0.9 }}\n exitStyle={{ x: 0, y: -10, opacity: 0, scale: 0.9 }}\n x={0}\n scale={1}\n y={0}\n elevation=\"$1\"\n opacity={1}\n animation={[\n 'bouncy',\n {\n opacity: {\n overshootClamping: true,\n },\n },\n ]}\n {...contentProps}\n >\n <Tooltip.Arrow />\n <Paragraph size=\"$2\" lineHeight=\"$1\">\n {label}\n </Paragraph>\n </Tooltip.Content>\n </Tooltip>\n )\n\n if (!context) {\n return <TooltipGroup delay={{ open: 3000, close: 100 }}>{contents}</TooltipGroup>\n }\n\n return contents\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAO;AAEP,oCAUO;AACP,kBAAsD;AAEtD,qBASO;AACP,oBAMO;AAEP,kBAA0B;AAC1B,YAAuB;AAEvB,MAAM,iBAAiB,MAAM,WAC3B,CAAC,EAAE,mBAAmB,SAAsD,QAAa;AACvF,QAAM,cAAc,oCAAgB,cAAc;AAClD,QAAM,SAAS,oCAAiB,iBAAiB,YAAY,gBAAgB;AAC7E,SACE,oCAAC;AAAA,IACC,qBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,SAAS,MAAM,QAAQ,OAAO,QAAQ;AAAA,IACtC,eAAc;AAAA,IACd,eAAc;AAAA,IACd;AAAA,IACC,GAAG;AAAA,GACN;AAEJ,CACF;AAEA,MAAM,eAAe,MAAM,WAAW,CAAC,OAA0B,QAAa;AAC5E,SAAO,oCAAC;AAAA,IAAa,eAAc;AAAA,IAAe;AAAA,IAAW,GAAG;AAAA,GAAO;AACzE,CAAC;AAeM,MAAM,eAAe;AAErB,MAAM,UAAU,sCACpB,CAAC,UAAgD;AAChD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,OAAO;AAAA,IACP,cAAc;AAAA,OACX;AAAA,MACD;AACJ,QAAM,cAAc,oCAAgB,cAAc;AAClD,QA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-2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Tooltip.native.tsx"],
|
|
4
4
|
"sourcesContent": ["import { withStaticProperties } from '@tamagui/core'\n\n// no output on native for now\n// could have an option to long-press or similar to show in a context menu/drawer\n\nconst RenderChildren = (props: any) => {\n return props.children\n}\n\nconst RenderNull = (props: any) => {\n return null\n}\n\nexport const Tooltip = withStaticProperties(RenderChildren, {\n Anchor: RenderChildren,\n Arrow: RenderNull,\n Close: RenderNull,\n Content: RenderNull,\n Trigger: RenderChildren,\n})\n\nexport const TooltipSimple = RenderChildren\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqC;AAKrC,MAAM,iBAAiB,CAAC,UAAe;AACrC,SAAO,MAAM;AACf;AAEA,MAAM,aAAa,CAAC,UAAe;AACjC,SAAO;AACT;AAEO,MAAM,UAAU,sCAAqB,gBAAgB;AAAA,EAC1D,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AACX,CAAC;AAEM,MAAM,gBAAgB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
package/dist/cjs/index.js.map
CHANGED
package/dist/esm/Tooltip.js
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
1
|
import "@tamagui/polyfill-dev";
|
|
33
2
|
import {
|
|
34
3
|
FloatingDelayGroup,
|
|
@@ -57,40 +26,36 @@ import {
|
|
|
57
26
|
} from "@tamagui/popper";
|
|
58
27
|
import { Paragraph } from "@tamagui/text";
|
|
59
28
|
import * as React from "react";
|
|
60
|
-
const TooltipContent = React.forwardRef((
|
|
61
|
-
var _b = _a, { __scopePopover } = _b, props = __objRest(_b, ["__scopePopover"]);
|
|
29
|
+
const TooltipContent = React.forwardRef(({ __scopePopover, ...props }, ref) => {
|
|
62
30
|
const popperScope = usePopoverScope(__scopePopover);
|
|
63
31
|
const popper = usePopperContext("PopperContent", popperScope["__scopePopper"]);
|
|
64
|
-
return /* @__PURE__ */ React.createElement(PopoverContent,
|
|
32
|
+
return /* @__PURE__ */ React.createElement(PopoverContent, {
|
|
65
33
|
disableRemoveScroll: true,
|
|
66
34
|
trapFocus: false,
|
|
67
35
|
padding: props.size || popper.size || "$2",
|
|
68
36
|
componentName: "TooltipContent",
|
|
69
37
|
pointerEvents: "none",
|
|
70
|
-
ref
|
|
71
|
-
|
|
38
|
+
ref,
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
72
41
|
});
|
|
73
42
|
const TooltipArrow = React.forwardRef((props, ref) => {
|
|
74
|
-
return /* @__PURE__ */ React.createElement(PopoverArrow,
|
|
43
|
+
return /* @__PURE__ */ React.createElement(PopoverArrow, {
|
|
75
44
|
componentName: "TooltipArrow",
|
|
76
|
-
ref
|
|
77
|
-
|
|
45
|
+
ref,
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
78
48
|
});
|
|
79
49
|
const TooltipGroup = FloatingDelayGroup;
|
|
80
50
|
const Tooltip = withStaticProperties((props) => {
|
|
81
|
-
const
|
|
51
|
+
const {
|
|
82
52
|
__scopePopover,
|
|
83
53
|
children,
|
|
84
54
|
restMs = 500,
|
|
85
55
|
delay: delayProp,
|
|
86
|
-
onOpenChange: onOpenChangeProp
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"children",
|
|
90
|
-
"restMs",
|
|
91
|
-
"delay",
|
|
92
|
-
"onOpenChange"
|
|
93
|
-
]);
|
|
56
|
+
onOpenChange: onOpenChangeProp,
|
|
57
|
+
...restProps
|
|
58
|
+
} = props;
|
|
94
59
|
const popperScope = usePopoverScope(__scopePopover);
|
|
95
60
|
const triggerRef = React.useRef(null);
|
|
96
61
|
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
@@ -106,10 +71,11 @@ const Tooltip = withStaticProperties((props) => {
|
|
|
106
71
|
onOpenChangeProp == null ? void 0 : onOpenChangeProp(open2);
|
|
107
72
|
});
|
|
108
73
|
const useFloatingFn = (props2) => {
|
|
109
|
-
const floating = useFloating(
|
|
74
|
+
const floating = useFloating({
|
|
75
|
+
...props2,
|
|
110
76
|
open,
|
|
111
77
|
onOpenChange
|
|
112
|
-
})
|
|
78
|
+
});
|
|
113
79
|
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
114
80
|
useHover(floating.context, { delay, restMs }),
|
|
115
81
|
useFocus(floating.context),
|
|
@@ -117,19 +83,22 @@ const Tooltip = withStaticProperties((props) => {
|
|
|
117
83
|
useDismiss(floating.context),
|
|
118
84
|
useDelayGroup(floating.context, { id })
|
|
119
85
|
]);
|
|
120
|
-
return
|
|
86
|
+
return {
|
|
87
|
+
...floating,
|
|
121
88
|
getReferenceProps,
|
|
122
89
|
getFloatingProps
|
|
123
|
-
}
|
|
90
|
+
};
|
|
124
91
|
};
|
|
125
92
|
const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open]);
|
|
126
93
|
const voidFn = React.useCallback(() => {
|
|
127
94
|
}, [setOpen]);
|
|
128
95
|
return /* @__PURE__ */ React.createElement(FloatingOverrideContext.Provider, {
|
|
129
96
|
value: useFloatingContext
|
|
130
|
-
}, /* @__PURE__ */ React.createElement(Popper,
|
|
131
|
-
size: "$2"
|
|
132
|
-
|
|
97
|
+
}, /* @__PURE__ */ React.createElement(Popper, {
|
|
98
|
+
size: "$2",
|
|
99
|
+
...popperScope,
|
|
100
|
+
...restProps
|
|
101
|
+
}, /* @__PURE__ */ React.createElement(__PopoverProviderInternal, {
|
|
133
102
|
scope: __scopePopover,
|
|
134
103
|
contentId: useId(),
|
|
135
104
|
triggerRef,
|
|
@@ -147,24 +116,22 @@ const Tooltip = withStaticProperties((props) => {
|
|
|
147
116
|
Trigger: PopoverTrigger
|
|
148
117
|
});
|
|
149
118
|
Tooltip.displayName = "Tooltip";
|
|
150
|
-
const TooltipSimple = (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"label",
|
|
157
|
-
"children",
|
|
158
|
-
"contentProps"
|
|
159
|
-
]);
|
|
119
|
+
const TooltipSimple = ({
|
|
120
|
+
label,
|
|
121
|
+
children,
|
|
122
|
+
contentProps,
|
|
123
|
+
...tooltipProps
|
|
124
|
+
}) => {
|
|
160
125
|
let context;
|
|
161
126
|
try {
|
|
162
127
|
context = useDelayGroupContext();
|
|
163
128
|
} catch {
|
|
164
129
|
}
|
|
165
|
-
const contents = /* @__PURE__ */ React.createElement(Tooltip,
|
|
130
|
+
const contents = /* @__PURE__ */ React.createElement(Tooltip, {
|
|
131
|
+
...tooltipProps
|
|
132
|
+
}, /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
166
133
|
asChild: true
|
|
167
|
-
}, children), /* @__PURE__ */ React.createElement(Tooltip.Content,
|
|
134
|
+
}, children), /* @__PURE__ */ React.createElement(Tooltip.Content, {
|
|
168
135
|
enterStyle: { x: 0, y: -10, opacity: 0, scale: 0.9 },
|
|
169
136
|
exitStyle: { x: 0, y: -10, opacity: 0, scale: 0.9 },
|
|
170
137
|
x: 0,
|
|
@@ -179,8 +146,9 @@ const TooltipSimple = (_c) => {
|
|
|
179
146
|
overshootClamping: true
|
|
180
147
|
}
|
|
181
148
|
}
|
|
182
|
-
]
|
|
183
|
-
|
|
149
|
+
],
|
|
150
|
+
...contentProps
|
|
151
|
+
}, /* @__PURE__ */ React.createElement(Tooltip.Arrow, null), /* @__PURE__ */ React.createElement(Paragraph, {
|
|
184
152
|
size: "$2",
|
|
185
153
|
lineHeight: "$1"
|
|
186
154
|
}, label)));
|
package/dist/esm/Tooltip.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Tooltip.tsx"],
|
|
4
4
|
"sourcesContent": ["import '@tamagui/polyfill-dev'\n\nimport {\n FloatingDelayGroup,\n useDelayGroup,\n useDelayGroupContext,\n useDismiss,\n useFloating,\n useFocus,\n useHover,\n useInteractions,\n useRole,\n} from '@floating-ui/react-dom-interactions'\nimport { useEvent, useId, withStaticProperties } from '@tamagui/core'\nimport { ScopedProps } from '@tamagui/create-context'\nimport {\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverContent,\n PopoverContentProps,\n PopoverTrigger,\n __PopoverProviderInternal,\n usePopoverScope,\n} from '@tamagui/popover'\nimport {\n FloatingOverrideContext,\n Popper,\n PopperProps,\n UseFloatingFn,\n usePopperContext,\n} from '@tamagui/popper'\nimport { SizableStackProps } from '@tamagui/stacks'\nimport { Paragraph } from '@tamagui/text'\nimport * as React from 'react'\n\nconst TooltipContent = React.forwardRef(\n ({ __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>, ref: any) => {\n const popperScope = usePopoverScope(__scopePopover)\n const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])\n return (\n <PopoverContent\n disableRemoveScroll\n trapFocus={false}\n padding={props.size || popper.size || '$2'}\n componentName=\"TooltipContent\"\n pointerEvents=\"none\"\n ref={ref}\n {...props}\n />\n )\n }\n)\n\nconst TooltipArrow = React.forwardRef((props: PopoverArrowProps, ref: any) => {\n return <PopoverArrow componentName=\"TooltipArrow\" ref={ref} {...props} />\n})\n\nexport type TooltipProps = PopperProps & {\n children?: React.ReactNode\n onOpenChange?: (open: boolean) => void\n groupId?: string\n restMs?: number\n delay?:\n | number\n | {\n open?: number\n close?: number\n }\n}\n\nexport const TooltipGroup = FloatingDelayGroup\n\nexport const Tooltip = withStaticProperties(\n ((props: ScopedProps<TooltipProps, 'Popover'>) => {\n const {\n __scopePopover,\n children,\n restMs = 500,\n delay: delayProp,\n onOpenChange: onOpenChangeProp,\n ...restProps\n } = props\n const popperScope = usePopoverScope(__scopePopover)\n const triggerRef = React.useRef<HTMLButtonElement>(null)\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false)\n const { delay: delayGroup, setCurrentId } = useDelayGroupContext()\n const delay = delayProp ?? delayGroup\n const [open, setOpen] = React.useState(false)\n const id = props.groupId\n\n const onOpenChange = useEvent((open) => {\n setOpen(open)\n if (open) {\n setCurrentId(id)\n }\n onOpenChangeProp?.(open)\n })\n\n const useFloatingFn: UseFloatingFn = (props) => {\n const floating = useFloating({\n ...props,\n open,\n onOpenChange,\n })\n const { getReferenceProps, getFloatingProps } = useInteractions([\n useHover(floating.context, { delay, restMs }),\n useFocus(floating.context),\n useRole(floating.context, { role: 'tooltip' }),\n useDismiss(floating.context),\n useDelayGroup(floating.context, { id }),\n ])\n return {\n ...floating,\n getReferenceProps,\n getFloatingProps,\n } as any\n }\n\n const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open])\n\n const voidFn = React.useCallback(() => {}, [setOpen])\n\n return (\n <FloatingOverrideContext.Provider value={useFloatingContext}>\n {/* default tooltip to a smaller size */}\n <Popper size=\"$2\" {...popperScope} {...restProps}>\n <__PopoverProviderInternal\n scope={__scopePopover}\n contentId={useId()}\n triggerRef={triggerRef}\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={voidFn}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={React.useCallback(() => setHasCustomAnchor(true), [])}\n onCustomAnchorRemove={React.useCallback(() => setHasCustomAnchor(false), [])}\n >\n {children}\n </__PopoverProviderInternal>\n </Popper>\n </FloatingOverrideContext.Provider>\n )\n }) as React.FC<TooltipProps>,\n {\n Anchor: PopoverAnchor,\n Arrow: TooltipArrow,\n Content: TooltipContent,\n Trigger: PopoverTrigger,\n }\n)\n\nTooltip.displayName = 'Tooltip'\n\nexport type TooltipSimpleProps = TooltipProps & {\n label?: React.ReactNode\n children?: React.ReactNode\n contentProps?: SizableStackProps\n}\n\nexport const TooltipSimple: React.FC<TooltipSimpleProps> = ({\n label,\n children,\n contentProps,\n ...tooltipProps\n}) => {\n let context\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n context = useDelayGroupContext()\n } catch {\n // ok\n }\n\n const contents = (\n <Tooltip {...tooltipProps}>\n <Tooltip.Trigger asChild>{children}</Tooltip.Trigger>\n <Tooltip.Content\n enterStyle={{ x: 0, y: -10, opacity: 0, scale: 0.9 }}\n exitStyle={{ x: 0, y: -10, opacity: 0, scale: 0.9 }}\n x={0}\n scale={1}\n y={0}\n elevation=\"$1\"\n opacity={1}\n animation={[\n 'bouncy',\n {\n opacity: {\n overshootClamping: true,\n },\n },\n ]}\n {...contentProps}\n >\n <Tooltip.Arrow />\n <Paragraph size=\"$2\" lineHeight=\"$1\">\n {label}\n </Paragraph>\n </Tooltip.Content>\n </Tooltip>\n )\n\n if (!context) {\n return <TooltipGroup delay={{ open: 3000, close: 100 }}>{contents}</TooltipGroup>\n }\n\n return contents\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AAAA;AAAA;AAAA;AAAA;AAQA;AACA;AAEA,MAAM,iBAAiB,MAAM,WAC3B,CAAC,EAAE,mBAAmB,SAAsD,QAAa;AACvF,QAAM,cAAc,gBAAgB,cAAc;AAClD,QAAM,SAAS,iBAAiB,iBAAiB,YAAY,gBAAgB;AAC7E,SACE,oCAAC;AAAA,IACC,qBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,SAAS,MAAM,QAAQ,OAAO,QAAQ;AAAA,IACtC,eAAc;AAAA,IACd,eAAc;AAAA,IACd;AAAA,IACC,GAAG;AAAA,GACN;AAEJ,CACF;AAEA,MAAM,eAAe,MAAM,WAAW,CAAC,OAA0B,QAAa;AAC5E,SAAO,oCAAC;AAAA,IAAa,eAAc;AAAA,IAAe;AAAA,IAAW,GAAG;AAAA,GAAO;AACzE,CAAC;AAeM,MAAM,eAAe;AAErB,MAAM,UAAU,qBACpB,CAAC,UAAgD;AAChD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,OAAO;AAAA,IACP,cAAc;AAAA,OACX;AAAA,MACD;AACJ,QAAM,cAAc,gBAAgB,cAAc;AAClD,QAAM,aAAa,MAAM,OAA0B,IAAI;AACvD,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{
|
|
2
2
|
"name": "@tamagui/tooltip",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.109",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@floating-ui/react-dom-interactions": "^0.5.0",
|
|
25
|
-
"@tamagui/compose-refs": "^1.0.1-beta.
|
|
26
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
27
|
-
"@tamagui/create-context": "^1.0.1-beta.
|
|
28
|
-
"@tamagui/polyfill-dev": "^1.0.1-beta.
|
|
29
|
-
"@tamagui/popover": "^1.0.1-beta.
|
|
30
|
-
"@tamagui/popper": "^1.0.1-beta.
|
|
31
|
-
"@tamagui/stacks": "^1.0.1-beta.
|
|
32
|
-
"@tamagui/text": "^1.0.1-beta.
|
|
33
|
-
"@tamagui/use-controllable-state": "^1.0.1-beta.
|
|
25
|
+
"@tamagui/compose-refs": "^1.0.1-beta.109",
|
|
26
|
+
"@tamagui/core": "^1.0.1-beta.109",
|
|
27
|
+
"@tamagui/create-context": "^1.0.1-beta.109",
|
|
28
|
+
"@tamagui/polyfill-dev": "^1.0.1-beta.109",
|
|
29
|
+
"@tamagui/popover": "^1.0.1-beta.109",
|
|
30
|
+
"@tamagui/popper": "^1.0.1-beta.109",
|
|
31
|
+
"@tamagui/stacks": "^1.0.1-beta.109",
|
|
32
|
+
"@tamagui/text": "^1.0.1-beta.109",
|
|
33
|
+
"@tamagui/use-controllable-state": "^1.0.1-beta.109"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "*",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-native": "*"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
41
|
+
"@tamagui/build": "^1.0.1-beta.109",
|
|
42
42
|
"@types/react-dom": "^18.0.3",
|
|
43
43
|
"@types/react-native": "^0.69.2",
|
|
44
44
|
"react": "*",
|