@tamagui/tooltip 1.7.6 → 1.7.8

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.
@@ -21,23 +21,29 @@ import {
21
21
  __PopoverProviderInternal,
22
22
  usePopoverScope
23
23
  } from "@tamagui/popover";
24
- import { Popper, usePopperContext } from "@tamagui/popper";
24
+ import {
25
+ Popper,
26
+ PopperContentFrame,
27
+ usePopperContext
28
+ } from "@tamagui/popper";
25
29
  import * as React from "react";
26
- const TooltipContent = React.forwardRef(
27
- ({ __scopePopover, ...props }, ref) => {
28
- const popperScope = usePopoverScope(__scopePopover);
29
- const popper = usePopperContext("PopperContent", popperScope["__scopePopper"]);
30
- const padding = props.size || popper.size || stepTokenUpOrDown("size", "$true", -2);
31
- return <PopoverContent
32
- componentName="Tooltip"
33
- disableRemoveScroll
34
- trapFocus={false}
35
- padding={padding}
36
- pointerEvents="none"
37
- ref={ref}
38
- {...props}
39
- />;
40
- }
30
+ const TooltipContent = PopperContentFrame.extractable(
31
+ React.forwardRef(
32
+ ({ __scopePopover, ...props }, ref) => {
33
+ const popperScope = usePopoverScope(__scopePopover);
34
+ const popper = usePopperContext("PopperContent", popperScope["__scopePopper"]);
35
+ const padding = props.size || popper.size || stepTokenUpOrDown("size", "$true", -2);
36
+ return <PopoverContent
37
+ componentName="Tooltip"
38
+ disableRemoveScroll
39
+ trapFocus={false}
40
+ padding={padding}
41
+ pointerEvents="none"
42
+ ref={ref}
43
+ {...props}
44
+ />;
45
+ }
46
+ )
41
47
  );
42
48
  const TooltipArrow = React.forwardRef((props, ref) => {
43
49
  return <PopoverArrow componentName="Tooltip" ref={ref} {...props} />;
@@ -45,83 +51,80 @@ const TooltipArrow = React.forwardRef((props, ref) => {
45
51
  const TooltipGroup = ({ children, delay }) => {
46
52
  return <FloatingDelayGroup delay={React.useMemo(() => delay, [JSON.stringify(delay)])}>{children}</FloatingDelayGroup>;
47
53
  };
48
- const Tooltip = withStaticProperties(
49
- (props) => {
50
- const {
51
- __scopePopover,
52
- children,
53
- delay: delayProp,
54
- restMs = typeof delayProp === "undefined" ? 500 : typeof delayProp === "number" ? delayProp : 0,
55
- onOpenChange: onOpenChangeProp,
56
- focus,
57
- ...restProps
58
- } = props;
59
- const popperScope = usePopoverScope(__scopePopover);
60
- const triggerRef = React.useRef(null);
61
- const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
62
- const { delay: delayGroup, setCurrentId } = useDelayGroupContext();
63
- const delay = delayProp ?? delayGroup;
64
- const [open, setOpen] = React.useState(false);
65
- const id = props.groupId;
66
- const onOpenChange = useEvent((open2) => {
67
- setOpen(open2);
68
- if (open2) {
69
- setCurrentId(id);
70
- }
71
- onOpenChangeProp?.(open2);
54
+ const TooltipComponent = React.forwardRef(function Tooltip(props, ref) {
55
+ const {
56
+ __scopePopover,
57
+ children,
58
+ delay: delayProp,
59
+ restMs = typeof delayProp === "undefined" ? 500 : typeof delayProp === "number" ? delayProp : 0,
60
+ onOpenChange: onOpenChangeProp,
61
+ focus,
62
+ ...restProps
63
+ } = props;
64
+ const popperScope = usePopoverScope(__scopePopover);
65
+ const triggerRef = React.useRef(null);
66
+ const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
67
+ const { delay: delayGroup, setCurrentId } = useDelayGroupContext();
68
+ const delay = delayProp ?? delayGroup;
69
+ const [open, setOpen] = React.useState(false);
70
+ const id = props.groupId;
71
+ const onOpenChange = useEvent((open2) => {
72
+ setOpen(open2);
73
+ if (open2) {
74
+ setCurrentId(id);
75
+ }
76
+ onOpenChangeProp?.(open2);
77
+ });
78
+ const useFloatingFn = (props2) => {
79
+ const floating = useFloating({
80
+ ...props2,
81
+ open,
82
+ onOpenChange
72
83
  });
73
- const useFloatingFn = (props2) => {
74
- const floating = useFloating({
75
- ...props2,
76
- open,
77
- onOpenChange
78
- });
79
- const { getReferenceProps, getFloatingProps } = useInteractions([
80
- useHover(floating.context, { delay, restMs }),
81
- useFocus(floating.context, focus),
82
- useRole(floating.context, { role: "tooltip" }),
83
- useDismiss(floating.context),
84
- useDelayGroup(floating.context, { id })
85
- ]);
86
- return {
87
- ...floating,
88
- getReferenceProps,
89
- getFloatingProps
90
- };
84
+ const { getReferenceProps, getFloatingProps } = useInteractions([
85
+ useHover(floating.context, { delay, restMs }),
86
+ useFocus(floating.context, focus),
87
+ useRole(floating.context, { role: "tooltip" }),
88
+ useDismiss(floating.context),
89
+ useDelayGroup(floating.context, { id })
90
+ ]);
91
+ return {
92
+ ...floating,
93
+ getReferenceProps,
94
+ getFloatingProps
91
95
  };
92
- const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open]);
93
- const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), []);
94
- const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), []);
95
- const contentId = useId();
96
- const twoSmallerKey = stepTokenUpOrDown("size", "$true", -2).key;
97
- const size = `$${twoSmallerKey}`;
98
- return <FloatingOverrideContext.Provider value={useFloatingContext}><Popper size={size} {...popperScope} {...restProps}><__PopoverProviderInternal
99
- scope={__scopePopover}
100
- popperScope={popperScope.__scopePopper}
101
- contentId={contentId}
102
- triggerRef={triggerRef}
103
- sheetBreakpoint={false}
104
- scopeKey=""
105
- open={open}
106
- onOpenChange={setOpen}
107
- onOpenToggle={voidFn}
108
- hasCustomAnchor={hasCustomAnchor}
109
- onCustomAnchorAdd={onCustomAnchorAdd}
110
- onCustomAnchorRemove={onCustomAnchorRemove}
111
- >{children}</__PopoverProviderInternal></Popper></FloatingOverrideContext.Provider>;
112
- },
113
- {
114
- Anchor: PopoverAnchor,
115
- Arrow: TooltipArrow,
116
- Content: TooltipContent,
117
- Trigger: PopoverTrigger
118
- }
119
- );
120
- Tooltip.displayName = "Tooltip";
96
+ };
97
+ const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open]);
98
+ const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), []);
99
+ const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), []);
100
+ const contentId = useId();
101
+ const twoSmallerKey = stepTokenUpOrDown("size", "$true", -2).key;
102
+ const size = `$${twoSmallerKey}`;
103
+ return <FloatingOverrideContext.Provider value={useFloatingContext}><Popper size={size} {...popperScope} {...restProps}><__PopoverProviderInternal
104
+ scope={__scopePopover}
105
+ popperScope={popperScope.__scopePopper}
106
+ contentId={contentId}
107
+ triggerRef={triggerRef}
108
+ sheetBreakpoint={false}
109
+ scopeKey=""
110
+ open={open}
111
+ onOpenChange={setOpen}
112
+ onOpenToggle={voidFn}
113
+ hasCustomAnchor={hasCustomAnchor}
114
+ onCustomAnchorAdd={onCustomAnchorAdd}
115
+ onCustomAnchorRemove={onCustomAnchorRemove}
116
+ >{children}</__PopoverProviderInternal></Popper></FloatingOverrideContext.Provider>;
117
+ });
118
+ const Tooltip2 = withStaticProperties(TooltipComponent, {
119
+ Anchor: PopoverAnchor,
120
+ Arrow: TooltipArrow,
121
+ Content: TooltipContent,
122
+ Trigger: PopoverTrigger
123
+ });
121
124
  const voidFn = () => {
122
125
  };
123
126
  export {
124
- Tooltip,
127
+ Tooltip2 as Tooltip,
125
128
  TooltipGroup
126
129
  };
127
130
  //# sourceMappingURL=Tooltip.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Tooltip.tsx"],
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'\nimport { SizeTokens, useEvent, useId, withStaticProperties } from '@tamagui/core'\nimport { ScopedProps } from '@tamagui/create-context'\nimport { FloatingOverrideContext, UseFloatingFn } from '@tamagui/floating'\nimport { stepTokenUpOrDown } from '@tamagui/get-size'\nimport {\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverContent,\n PopoverContentProps,\n PopoverTrigger,\n __PopoverProviderInternal,\n usePopoverScope,\n} from '@tamagui/popover'\nimport { Popper, PopperProps, usePopperContext } from '@tamagui/popper'\nimport * as React from 'react'\n\nconst TooltipContent = React.forwardRef(\n (\n { __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>,\n ref: any\n ) => {\n const popperScope = usePopoverScope(__scopePopover)\n const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])\n const padding = props.size || popper.size || stepTokenUpOrDown('size', '$true', -2)\n return (\n <PopoverContent\n componentName=\"Tooltip\"\n disableRemoveScroll\n trapFocus={false}\n padding={padding}\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=\"Tooltip\" ref={ref} {...props} />\n})\n\nexport type TooltipProps = PopperProps & {\n children?: React.ReactNode\n onOpenChange?: (open: boolean) => void\n focus?: {\n enabled?: boolean\n keyboardOnly?: boolean\n }\n groupId?: string\n restMs?: number\n delay?:\n | number\n | {\n open?: number\n close?: number\n }\n}\n\ntype Delay =\n | number\n | Partial<{\n open: number\n close: number\n }>\n\nexport const TooltipGroup = ({ children, delay }: { children?: any; delay: Delay }) => {\n return (\n <FloatingDelayGroup delay={React.useMemo(() => delay, [JSON.stringify(delay)])}>\n {children}\n </FloatingDelayGroup>\n )\n}\n\nexport const Tooltip = withStaticProperties(\n ((props: ScopedProps<TooltipProps, 'Popover'>) => {\n const {\n __scopePopover,\n children,\n delay: delayProp,\n restMs = typeof delayProp === 'undefined'\n ? 500\n : typeof delayProp === 'number'\n ? delayProp\n : 0,\n onOpenChange: onOpenChangeProp,\n focus,\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 // @ts-ignore\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, focus),\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 const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), [])\n const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), [])\n const contentId = useId()\n const twoSmallerKey = stepTokenUpOrDown('size', '$true', -2).key\n const size = `$${twoSmallerKey}`\n\n return (\n <FloatingOverrideContext.Provider value={useFloatingContext}>\n {/* default tooltip to a smaller size */}\n <Popper size={size as SizeTokens} {...popperScope} {...restProps}>\n <__PopoverProviderInternal\n scope={__scopePopover}\n popperScope={popperScope.__scopePopper}\n contentId={contentId}\n triggerRef={triggerRef}\n sheetBreakpoint={false}\n scopeKey=\"\"\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={voidFn}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={onCustomAnchorAdd}\n onCustomAnchorRemove={onCustomAnchorRemove}\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\nconst voidFn = () => {}\n"],
5
- "mappings": "AAAA,OAAO;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,E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AC;AAAA,MACC,OAAO;AAAA,MACP,aAAa,YAAY;AAAA,MACzB,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,MAAM;AAAA,MACN,cAAc;AAAA,MACd,cAAc;AAAA,MACd,iBAAiB;AAAA,MACjB,mBAAmB;AAAA,MACnB,sBAAsB;AAAA,MAErB,SACH,EAfC,0BAgBH,EAjBC,OAkBH,EApBC,wBAAwB;AAAA,EAsB7B;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AACF;AAEA,QAAQ,cAAc;AAEtB,MAAM,SAAS,MAAM;AAAC;",
6
- "names": ["open", "props"]
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'\nimport { SizeTokens, useEvent, useId, withStaticProperties } from '@tamagui/core'\nimport { ScopedProps } from '@tamagui/create-context'\nimport { FloatingOverrideContext, UseFloatingFn } from '@tamagui/floating'\nimport { stepTokenUpOrDown } from '@tamagui/get-size'\nimport {\n PopoverAnchor,\n PopoverArrow,\n PopoverArrowProps,\n PopoverContent,\n PopoverContentProps,\n PopoverTrigger,\n __PopoverProviderInternal,\n usePopoverScope,\n} from '@tamagui/popover'\nimport {\n Popper,\n PopperContentFrame,\n PopperProps,\n usePopperContext,\n} from '@tamagui/popper'\nimport * as React from 'react'\n\nconst TooltipContent = PopperContentFrame.extractable(\n React.forwardRef(\n (\n { __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>,\n ref: any\n ) => {\n const popperScope = usePopoverScope(__scopePopover)\n const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])\n const padding = props.size || popper.size || stepTokenUpOrDown('size', '$true', -2)\n return (\n <PopoverContent\n componentName=\"Tooltip\"\n disableRemoveScroll\n trapFocus={false}\n padding={padding}\n pointerEvents=\"none\"\n ref={ref}\n {...props}\n />\n )\n }\n )\n)\n\nconst TooltipArrow = React.forwardRef((props: PopoverArrowProps, ref: any) => {\n return <PopoverArrow componentName=\"Tooltip\" ref={ref} {...props} />\n})\n\nexport type TooltipProps = PopperProps & {\n children?: React.ReactNode\n onOpenChange?: (open: boolean) => void\n focus?: {\n enabled?: boolean\n keyboardOnly?: boolean\n }\n groupId?: string\n restMs?: number\n delay?:\n | number\n | {\n open?: number\n close?: number\n }\n}\n\ntype Delay =\n | number\n | Partial<{\n open: number\n close: number\n }>\n\nexport const TooltipGroup = ({ children, delay }: { children?: any; delay: Delay }) => {\n return (\n <FloatingDelayGroup delay={React.useMemo(() => delay, [JSON.stringify(delay)])}>\n {children}\n </FloatingDelayGroup>\n )\n}\n\nconst TooltipComponent = React.forwardRef(function Tooltip(\n props: ScopedProps<TooltipProps, 'Popover'>,\n // theres no real ref here but React complaining need to see why see SandboxCustomStyledAnimatedTooltip.ts\n ref\n) {\n const {\n __scopePopover,\n children,\n delay: delayProp,\n restMs = typeof delayProp === 'undefined'\n ? 500\n : typeof delayProp === 'number'\n ? delayProp\n : 0,\n onOpenChange: onOpenChangeProp,\n focus,\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 // @ts-ignore\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, focus),\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 const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), [])\n const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), [])\n const contentId = useId()\n const twoSmallerKey = stepTokenUpOrDown('size', '$true', -2).key\n const size = `$${twoSmallerKey}`\n\n return (\n <FloatingOverrideContext.Provider value={useFloatingContext}>\n {/* default tooltip to a smaller size */}\n <Popper size={size as SizeTokens} {...popperScope} {...restProps}>\n <__PopoverProviderInternal\n scope={__scopePopover}\n popperScope={popperScope.__scopePopper}\n contentId={contentId}\n triggerRef={triggerRef}\n sheetBreakpoint={false}\n scopeKey=\"\"\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={voidFn}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={onCustomAnchorAdd}\n onCustomAnchorRemove={onCustomAnchorRemove}\n >\n {children}\n </__PopoverProviderInternal>\n </Popper>\n </FloatingOverrideContext.Provider>\n )\n})\n\nexport const Tooltip = withStaticProperties(TooltipComponent, {\n Anchor: PopoverAnchor,\n Arrow: TooltipArrow,\n Content: TooltipContent,\n Trigger: PopoverTrigger,\n})\n\nconst voidFn = () => {}\n"],
5
+ "mappings": "AAAA,OAAO;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAqB,UAAU,OAAO,4BAA4B;AAElE,SAAS,+BAA8C;AACvD,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AACP,YAAY,WAAW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AAAA,IACnB,sBAAsB;AAAA,IAErB,SACH,EAfC,0BAgBH,EAjBC,OAkBH,EApBC,wBAAwB;AAsB7B,CAAC;AAEM,MAAMC,WAAU,qBAAqB,kBAAkB;AAAA,EAC5D,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AACX,CAAC;AAED,MAAM,SAAS,MAAM;AAAC;",
6
+ "names": ["open", "props", "Tooltip"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/tooltip",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -32,24 +32,24 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@floating-ui/react": "^0.19.1",
35
- "@tamagui/compose-refs": "1.7.6",
36
- "@tamagui/core": "1.7.6",
37
- "@tamagui/create-context": "1.7.6",
38
- "@tamagui/floating": "1.7.6",
39
- "@tamagui/get-size": "1.7.6",
40
- "@tamagui/polyfill-dev": "1.7.6",
41
- "@tamagui/popover": "1.7.6",
42
- "@tamagui/popper": "1.7.6",
43
- "@tamagui/stacks": "1.7.6",
44
- "@tamagui/text": "1.7.6",
45
- "@tamagui/use-controllable-state": "1.7.6"
35
+ "@tamagui/compose-refs": "1.7.8",
36
+ "@tamagui/core": "1.7.8",
37
+ "@tamagui/create-context": "1.7.8",
38
+ "@tamagui/floating": "1.7.8",
39
+ "@tamagui/get-size": "1.7.8",
40
+ "@tamagui/polyfill-dev": "1.7.8",
41
+ "@tamagui/popover": "1.7.8",
42
+ "@tamagui/popper": "1.7.8",
43
+ "@tamagui/stacks": "1.7.8",
44
+ "@tamagui/text": "1.7.8",
45
+ "@tamagui/use-controllable-state": "1.7.8"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": "*",
49
49
  "react-native": "*"
50
50
  },
51
51
  "devDependencies": {
52
- "@tamagui/build": "1.7.6",
52
+ "@tamagui/build": "1.7.8",
53
53
  "react": "^18.2.0",
54
54
  "react-native": "*"
55
55
  },
package/src/Tooltip.tsx CHANGED
@@ -25,29 +25,36 @@ import {
25
25
  __PopoverProviderInternal,
26
26
  usePopoverScope,
27
27
  } from '@tamagui/popover'
28
- import { Popper, PopperProps, usePopperContext } from '@tamagui/popper'
28
+ import {
29
+ Popper,
30
+ PopperContentFrame,
31
+ PopperProps,
32
+ usePopperContext,
33
+ } from '@tamagui/popper'
29
34
  import * as React from 'react'
30
35
 
31
- const TooltipContent = React.forwardRef(
32
- (
33
- { __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>,
34
- ref: any
35
- ) => {
36
- const popperScope = usePopoverScope(__scopePopover)
37
- const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])
38
- const padding = props.size || popper.size || stepTokenUpOrDown('size', '$true', -2)
39
- return (
40
- <PopoverContent
41
- componentName="Tooltip"
42
- disableRemoveScroll
43
- trapFocus={false}
44
- padding={padding}
45
- pointerEvents="none"
46
- ref={ref}
47
- {...props}
48
- />
49
- )
50
- }
36
+ const TooltipContent = PopperContentFrame.extractable(
37
+ React.forwardRef(
38
+ (
39
+ { __scopePopover, ...props }: ScopedProps<PopoverContentProps, 'Popover'>,
40
+ ref: any
41
+ ) => {
42
+ const popperScope = usePopoverScope(__scopePopover)
43
+ const popper = usePopperContext('PopperContent', popperScope['__scopePopper'])
44
+ const padding = props.size || popper.size || stepTokenUpOrDown('size', '$true', -2)
45
+ return (
46
+ <PopoverContent
47
+ componentName="Tooltip"
48
+ disableRemoveScroll
49
+ trapFocus={false}
50
+ padding={padding}
51
+ pointerEvents="none"
52
+ ref={ref}
53
+ {...props}
54
+ />
55
+ )
56
+ }
57
+ )
51
58
  )
52
59
 
53
60
  const TooltipArrow = React.forwardRef((props: PopoverArrowProps, ref: any) => {
@@ -86,97 +93,98 @@ export const TooltipGroup = ({ children, delay }: { children?: any; delay: Delay
86
93
  )
87
94
  }
88
95
 
89
- export const Tooltip = withStaticProperties(
90
- ((props: ScopedProps<TooltipProps, 'Popover'>) => {
91
- const {
92
- __scopePopover,
93
- children,
94
- delay: delayProp,
95
- restMs = typeof delayProp === 'undefined'
96
- ? 500
97
- : typeof delayProp === 'number'
98
- ? delayProp
99
- : 0,
100
- onOpenChange: onOpenChangeProp,
101
- focus,
102
- ...restProps
103
- } = props
104
- const popperScope = usePopoverScope(__scopePopover)
105
- const triggerRef = React.useRef<HTMLButtonElement>(null)
106
- const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false)
107
- const { delay: delayGroup, setCurrentId } = useDelayGroupContext()
108
- const delay = delayProp ?? delayGroup
109
- const [open, setOpen] = React.useState(false)
110
- const id = props.groupId
96
+ const TooltipComponent = React.forwardRef(function Tooltip(
97
+ props: ScopedProps<TooltipProps, 'Popover'>,
98
+ // theres no real ref here but React complaining need to see why see SandboxCustomStyledAnimatedTooltip.ts
99
+ ref
100
+ ) {
101
+ const {
102
+ __scopePopover,
103
+ children,
104
+ delay: delayProp,
105
+ restMs = typeof delayProp === 'undefined'
106
+ ? 500
107
+ : typeof delayProp === 'number'
108
+ ? delayProp
109
+ : 0,
110
+ onOpenChange: onOpenChangeProp,
111
+ focus,
112
+ ...restProps
113
+ } = props
114
+ const popperScope = usePopoverScope(__scopePopover)
115
+ const triggerRef = React.useRef<HTMLButtonElement>(null)
116
+ const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false)
117
+ const { delay: delayGroup, setCurrentId } = useDelayGroupContext()
118
+ const delay = delayProp ?? delayGroup
119
+ const [open, setOpen] = React.useState(false)
120
+ const id = props.groupId
111
121
 
112
- const onOpenChange = useEvent((open) => {
113
- setOpen(open)
114
- if (open) {
115
- setCurrentId(id)
116
- }
117
- onOpenChangeProp?.(open)
118
- })
119
-
120
- const useFloatingFn: UseFloatingFn = (props) => {
121
- // @ts-ignore
122
- const floating = useFloating({
123
- ...props,
124
- open,
125
- onOpenChange,
126
- })
127
- const { getReferenceProps, getFloatingProps } = useInteractions([
128
- useHover(floating.context, { delay, restMs }),
129
- useFocus(floating.context, focus),
130
- useRole(floating.context, { role: 'tooltip' }),
131
- useDismiss(floating.context),
132
- useDelayGroup(floating.context, { id }),
133
- ])
134
- return {
135
- ...floating,
136
- getReferenceProps,
137
- getFloatingProps,
138
- } as any
122
+ const onOpenChange = useEvent((open) => {
123
+ setOpen(open)
124
+ if (open) {
125
+ setCurrentId(id)
139
126
  }
127
+ onOpenChangeProp?.(open)
128
+ })
140
129
 
141
- const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open])
142
- const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), [])
143
- const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), [])
144
- const contentId = useId()
145
- const twoSmallerKey = stepTokenUpOrDown('size', '$true', -2).key
146
- const size = `$${twoSmallerKey}`
147
-
148
- return (
149
- <FloatingOverrideContext.Provider value={useFloatingContext}>
150
- {/* default tooltip to a smaller size */}
151
- <Popper size={size as SizeTokens} {...popperScope} {...restProps}>
152
- <__PopoverProviderInternal
153
- scope={__scopePopover}
154
- popperScope={popperScope.__scopePopper}
155
- contentId={contentId}
156
- triggerRef={triggerRef}
157
- sheetBreakpoint={false}
158
- scopeKey=""
159
- open={open}
160
- onOpenChange={setOpen}
161
- onOpenToggle={voidFn}
162
- hasCustomAnchor={hasCustomAnchor}
163
- onCustomAnchorAdd={onCustomAnchorAdd}
164
- onCustomAnchorRemove={onCustomAnchorRemove}
165
- >
166
- {children}
167
- </__PopoverProviderInternal>
168
- </Popper>
169
- </FloatingOverrideContext.Provider>
170
- )
171
- }) as React.FC<TooltipProps>,
172
- {
173
- Anchor: PopoverAnchor,
174
- Arrow: TooltipArrow,
175
- Content: TooltipContent,
176
- Trigger: PopoverTrigger,
130
+ const useFloatingFn: UseFloatingFn = (props) => {
131
+ // @ts-ignore
132
+ const floating = useFloating({
133
+ ...props,
134
+ open,
135
+ onOpenChange,
136
+ })
137
+ const { getReferenceProps, getFloatingProps } = useInteractions([
138
+ useHover(floating.context, { delay, restMs }),
139
+ useFocus(floating.context, focus),
140
+ useRole(floating.context, { role: 'tooltip' }),
141
+ useDismiss(floating.context),
142
+ useDelayGroup(floating.context, { id }),
143
+ ])
144
+ return {
145
+ ...floating,
146
+ getReferenceProps,
147
+ getFloatingProps,
148
+ } as any
177
149
  }
178
- )
179
150
 
180
- Tooltip.displayName = 'Tooltip'
151
+ const useFloatingContext = React.useCallback(useFloatingFn, [id, delay, open])
152
+ const onCustomAnchorAdd = React.useCallback(() => setHasCustomAnchor(true), [])
153
+ const onCustomAnchorRemove = React.useCallback(() => setHasCustomAnchor(false), [])
154
+ const contentId = useId()
155
+ const twoSmallerKey = stepTokenUpOrDown('size', '$true', -2).key
156
+ const size = `$${twoSmallerKey}`
157
+
158
+ return (
159
+ <FloatingOverrideContext.Provider value={useFloatingContext}>
160
+ {/* default tooltip to a smaller size */}
161
+ <Popper size={size as SizeTokens} {...popperScope} {...restProps}>
162
+ <__PopoverProviderInternal
163
+ scope={__scopePopover}
164
+ popperScope={popperScope.__scopePopper}
165
+ contentId={contentId}
166
+ triggerRef={triggerRef}
167
+ sheetBreakpoint={false}
168
+ scopeKey=""
169
+ open={open}
170
+ onOpenChange={setOpen}
171
+ onOpenToggle={voidFn}
172
+ hasCustomAnchor={hasCustomAnchor}
173
+ onCustomAnchorAdd={onCustomAnchorAdd}
174
+ onCustomAnchorRemove={onCustomAnchorRemove}
175
+ >
176
+ {children}
177
+ </__PopoverProviderInternal>
178
+ </Popper>
179
+ </FloatingOverrideContext.Provider>
180
+ )
181
+ })
182
+
183
+ export const Tooltip = withStaticProperties(TooltipComponent, {
184
+ Anchor: PopoverAnchor,
185
+ Arrow: TooltipArrow,
186
+ Content: TooltipContent,
187
+ Trigger: PopoverTrigger,
188
+ })
181
189
 
182
190
  const voidFn = () => {}
@@ -24,24 +24,39 @@ export declare const TooltipGroup: ({ children, delay }: {
24
24
  children?: any;
25
25
  delay: Delay;
26
26
  }) => JSX.Element;
27
- export declare const Tooltip: React.FC<TooltipProps> & {
28
- Anchor: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
27
+ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
28
+ children?: React.ReactNode;
29
+ onOpenChange?: ((open: boolean) => void) | undefined;
30
+ focus?: {
31
+ enabled?: boolean | undefined;
32
+ keyboardOnly?: boolean | undefined;
33
+ } | undefined;
34
+ groupId?: string | undefined;
35
+ restMs?: number | undefined;
36
+ delay?: number | {
37
+ open?: number | undefined;
38
+ close?: number | undefined;
39
+ } | undefined;
40
+ } & {
41
+ __scopePopover?: import("@tamagui/create-context").Scope<any>;
42
+ } & React.RefAttributes<unknown>> & {
43
+ Anchor: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
29
44
  readonly fullscreen?: boolean | undefined;
30
45
  readonly elevation?: SizeTokens | undefined;
31
- } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
46
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
32
47
  readonly fullscreen?: boolean | undefined;
33
48
  readonly elevation?: SizeTokens | undefined;
34
- }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
49
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
35
50
  readonly fullscreen?: boolean | undefined;
36
51
  readonly elevation?: SizeTokens | undefined;
37
52
  }>> & React.RefAttributes<HTMLElement | import("react-native").View>>;
38
- Arrow: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
53
+ Arrow: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
39
54
  readonly fullscreen?: boolean | undefined;
40
55
  readonly elevation?: SizeTokens | undefined;
41
- } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
56
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
42
57
  readonly fullscreen?: boolean | undefined;
43
58
  readonly elevation?: SizeTokens | undefined;
44
- }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
59
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
45
60
  readonly fullscreen?: boolean | undefined;
46
61
  readonly elevation?: SizeTokens | undefined;
47
62
  }>> & {
@@ -51,13 +66,13 @@ export declare const Tooltip: React.FC<TooltipProps> & {
51
66
  Content: React.ForwardRefExoticComponent<import("@tamagui/popover").PopoverContentTypeProps & {
52
67
  __scopePopover?: import("@tamagui/create-context").Scope<any>;
53
68
  } & React.RefAttributes<unknown>>;
54
- Trigger: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
69
+ Trigger: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
55
70
  readonly fullscreen?: boolean | undefined;
56
71
  readonly elevation?: SizeTokens | undefined;
57
- } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
72
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
58
73
  readonly fullscreen?: boolean | undefined;
59
74
  readonly elevation?: SizeTokens | undefined;
60
- }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
75
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{}, "elevation" | "fullscreen"> & {
61
76
  readonly fullscreen?: boolean | undefined;
62
77
  readonly elevation?: SizeTokens | undefined;
63
78
  }>> & React.RefAttributes<HTMLElement | import("react-native").View>>;