@tamagui/popover 2.7.7 → 3.0.0-beta.1091.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.
Files changed (50) hide show
  1. package/dist/cjs/Popover.cjs +522 -665
  2. package/dist/cjs/Popover.native.cjs +615 -0
  3. package/dist/cjs/Popover.native.js +549 -692
  4. package/dist/cjs/Popover.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +9 -11
  6. package/dist/cjs/index.native.cjs +21 -0
  7. package/dist/cjs/index.native.js +9 -10
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/cjs/useFloatingContext.cjs +213 -234
  10. package/dist/cjs/useFloatingContext.native.cjs +35 -0
  11. package/dist/cjs/useFloatingContext.native.js +19 -27
  12. package/dist/cjs/useFloatingContext.native.js.map +1 -1
  13. package/dist/esm/Popover.mjs +487 -618
  14. package/dist/esm/Popover.mjs.map +1 -1
  15. package/dist/esm/Popover.native.js +513 -645
  16. package/dist/esm/Popover.native.js.map +1 -1
  17. package/dist/esm/index.js +3 -3
  18. package/dist/esm/index.mjs +3 -3
  19. package/dist/esm/index.native.js +3 -3
  20. package/dist/esm/useFloatingContext.mjs +198 -208
  21. package/dist/esm/useFloatingContext.mjs.map +1 -1
  22. package/dist/esm/useFloatingContext.native.js +4 -2
  23. package/dist/esm/useFloatingContext.native.js.map +1 -1
  24. package/dist/jsx/Popover.mjs +487 -618
  25. package/dist/jsx/Popover.mjs.map +1 -1
  26. package/dist/jsx/Popover.native.cjs +615 -0
  27. package/dist/jsx/Popover.native.js +549 -692
  28. package/dist/jsx/Popover.native.js.map +1 -1
  29. package/dist/jsx/index.js +3 -3
  30. package/dist/jsx/index.mjs +3 -3
  31. package/dist/jsx/index.native.cjs +21 -0
  32. package/dist/jsx/index.native.js +9 -10
  33. package/dist/jsx/index.native.js.map +1 -1
  34. package/dist/jsx/useFloatingContext.mjs +198 -208
  35. package/dist/jsx/useFloatingContext.mjs.map +1 -1
  36. package/dist/jsx/useFloatingContext.native.cjs +35 -0
  37. package/dist/jsx/useFloatingContext.native.js +19 -27
  38. package/dist/jsx/useFloatingContext.native.js.map +1 -1
  39. package/package.json +24 -23
  40. package/src/Popover.tsx +157 -154
  41. package/src/useFloatingContext.tsx +15 -7
  42. package/types/Popover.d.ts +40 -112
  43. package/types/Popover.d.ts.map +1 -1
  44. package/types/useFloatingContext.d.ts +5 -2
  45. package/types/useFloatingContext.d.ts.map +1 -1
  46. package/dist/esm/index.js.map +0 -1
  47. package/dist/esm/index.mjs.map +0 -1
  48. package/dist/esm/index.native.js.map +0 -1
  49. package/dist/jsx/index.js.map +0 -1
  50. package/dist/jsx/index.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Delay, UseFloatingOptions } from '@tamagui/floating'
2
+ import type { Delay, OpenChangeReason, UseFloatingOptions } from '@tamagui/floating'
3
3
  import {
4
4
  createFloatingEvents,
5
5
  safePolygon,
@@ -45,6 +45,7 @@ export type UseFloatingContextOptions = {
45
45
  delay?: Delay
46
46
  // explicit restMs override
47
47
  restMs?: number
48
+ closeReasonRef?: { current?: OpenChangeReason }
48
49
  }
49
50
 
50
51
  export const useFloatingContext = ({
@@ -58,6 +59,7 @@ export const useFloatingContext = ({
58
59
  groupId,
59
60
  delay: delayProp,
60
61
  restMs: restMsProp,
62
+ closeReasonRef,
61
63
  }: UseFloatingContextOptions) => {
62
64
  'use no memo'
63
65
 
@@ -84,8 +86,13 @@ export const useFloatingContext = ({
84
86
  const triggerElements = React.useMemo(() => new PopupTriggerMap(), [])
85
87
 
86
88
  React.useEffect(() => {
87
- events.emit('openchange', { open })
88
- }, [open, events])
89
+ // prevent focus restoration from reopening a deliberately dismissed popup.
90
+ const reason = closeReasonRef?.current
91
+ if (closeReasonRef) {
92
+ closeReasonRef.current = undefined
93
+ }
94
+ events.emit('openchange', { open, reason: open ? undefined : reason })
95
+ }, [open, events, closeReasonRef])
89
96
 
90
97
  return React.useCallback(
91
98
  (props?: UseFloatingOptions) => {
@@ -103,7 +110,7 @@ export const useFloatingContext = ({
103
110
  }
104
111
  }, [])
105
112
 
106
- const onOpenChange = (val: boolean, event?: Event) => {
113
+ const onOpenChange = (val: boolean, event?: Event, reason?: OpenChangeReason) => {
107
114
  // block useHover's mouseenter opens — we handle open timing via onHoverReference
108
115
  if (val && event?.type === 'mouseenter') {
109
116
  return
@@ -123,6 +130,7 @@ export const useFloatingContext = ({
123
130
  event?.type === 'mouseleave'
124
131
  ? 'hover'
125
132
  : 'press'
133
+ if (closeReasonRef) closeReasonRef.current = reason
126
134
  setOpen(val, type)
127
135
  }
128
136
 
@@ -244,8 +252,8 @@ export const useFloatingContext = ({
244
252
  //
245
253
  // no memoization concern: this entire block runs inside the
246
254
  // useCallback factory which already produces fresh closures each
247
- // call ('use no memo'), and getFloatingPropsInner from
248
- // useInteractions is already a new reference each render.
255
+ // call ('use no memo'); getFloatingPropsInner is memoized on the
256
+ // interaction hooks' props, and wrapping it here keeps that.
249
257
  const getFloatingProps = currentHoverable
250
258
  ? (userProps?: Record<string, any>) => {
251
259
  const merged = getFloatingPropsInner(userProps)
@@ -341,6 +349,6 @@ export const useFloatingContext = ({
341
349
  : undefined,
342
350
  }
343
351
  },
344
- [setOpen]
352
+ [setOpen, closeReasonRef]
345
353
  )
346
354
  }
@@ -1,5 +1,5 @@
1
1
  import '@tamagui/polyfill-dev';
2
- import type { UseHoverProps } from '@tamagui/floating';
2
+ import type { OpenChangeReason, UseHoverProps } from '@tamagui/floating';
3
3
  import type { SizeTokens, TamaguiElement, ViewProps } from '@tamagui/core';
4
4
  import { type DismissableProps } from '@tamagui/dismissable';
5
5
  import type { FocusScopeProps } from '@tamagui/focus-scope';
@@ -30,7 +30,8 @@ export type PopoverProps = ScopedPopoverProps<PopperProps> & {
30
30
  */
31
31
  hoverable?: boolean | UseHoverProps;
32
32
  /**
33
- * Disable focusing behavior on open
33
+ * disable opening when the trigger receives keyboard focus.
34
+ * defaults to true unless hoverable is enabled.
34
35
  */
35
36
  disableFocus?: boolean;
36
37
  /**
@@ -70,6 +71,7 @@ type PopoverContextValue = {
70
71
  hoverable?: boolean | object;
71
72
  anchorTo?: Rect;
72
73
  branches: Set<HTMLElement>;
74
+ closeReasonRef?: React.RefObject<OpenChangeReason | undefined>;
73
75
  };
74
76
  type PopoverTriggerStateSetter = React.Dispatch<React.SetStateAction<boolean>>;
75
77
  type PopoverTriggerContextValue = {
@@ -82,9 +84,9 @@ type PopoverTriggerContextValue = {
82
84
  registerTrigger(id: string, setOpen: PopoverTriggerStateSetter): void;
83
85
  unregisterTrigger(id: string): void;
84
86
  };
85
- export declare const PopoverContext: import("@tamagui/core").StyledContext<PopoverContextValue>;
87
+ export declare const PopoverContext: import("@tamagui/core").StyledContext<PopoverContextValue, never>;
86
88
  export declare const PopoverZIndexContext: React.Context<number | undefined>;
87
- export declare const PopoverTriggerContext: import("@tamagui/core").StyledContext<PopoverTriggerContextValue>;
89
+ export declare const PopoverTriggerContext: import("@tamagui/core").StyledContext<PopoverTriggerContextValue, never>;
88
90
  export declare const usePopoverContext: (scope?: string) => PopoverContextValue;
89
91
  export declare const usePopoverTriggerContext: (scope?: string) => PopoverTriggerContextValue;
90
92
  /**
@@ -118,16 +120,17 @@ export type PopoverContextProviderProps = {
118
120
  keepChildrenMounted?: boolean | 'lazy';
119
121
  disableDismissable?: boolean;
120
122
  hoverable?: boolean | object;
123
+ closeReasonRef?: React.RefObject<OpenChangeReason | undefined>;
121
124
  };
122
125
  /**
123
126
  * Provider that sets up both PopoverContext and PopoverTriggerContext.
124
127
  * Use this in Tooltip or other components that need popover trigger behavior.
125
128
  */
126
- export declare const PopoverContextProvider: React.MemoExoticComponent<({ scope, children, open, onOpenChange, onOpenToggle, triggerRef, id, contentId, hasCustomAnchor, onCustomAnchorAdd, onCustomAnchorRemove, anchorTo, adaptScope, breakpointActive, keepChildrenMounted, disableDismissable, hoverable, }: PopoverContextProviderProps) => import("react/jsx-runtime").JSX.Element>;
129
+ export declare const PopoverContextProvider: React.MemoExoticComponent<({ scope, children, open, onOpenChange, onOpenToggle, triggerRef, id, contentId, hasCustomAnchor, onCustomAnchorAdd, onCustomAnchorRemove, anchorTo, adaptScope, breakpointActive, keepChildrenMounted, disableDismissable, hoverable, closeReasonRef, }: PopoverContextProviderProps) => React.JSX.Element>;
127
130
  export type PopoverAnchorProps = ScopedPopoverProps<YStackProps>;
128
131
  export declare const PopoverAnchor: React.NamedExoticComponent<Omit<YStackProps, "scope"> & {
129
132
  scope?: PopoverScopes;
130
- } & React.RefAttributes<TamaguiElement>>;
133
+ } & import("@tamagui/compose-refs").RefProp<TamaguiElement>>;
131
134
  export type PopoverTriggerProps = ScopedPopoverProps<ViewProps & {
132
135
  /**
133
136
  * When true, disables the built-in click-to-toggle behavior on the trigger.
@@ -136,7 +139,7 @@ export type PopoverTriggerProps = ScopedPopoverProps<ViewProps & {
136
139
  */
137
140
  disablePressTrigger?: boolean;
138
141
  }>;
139
- export declare const PopoverTrigger: React.NamedExoticComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
142
+ export declare const PopoverTrigger: React.NamedExoticComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
140
143
  /**
141
144
  * When true, disables the built-in click-to-toggle behavior on the trigger.
142
145
  * Useful for hoverable popovers where you want to control open/close
@@ -145,33 +148,27 @@ export declare const PopoverTrigger: React.NamedExoticComponent<Omit<import("@ta
145
148
  disablePressTrigger?: boolean;
146
149
  }, "scope"> & {
147
150
  scope?: PopoverScopes;
148
- } & React.RefAttributes<TamaguiElement>>;
151
+ } & import("@tamagui/compose-refs").RefProp<TamaguiElement>>;
149
152
  export interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'disableOutsidePointerEvents'> {
150
153
  /**
151
154
  * Enable smooth animation when the content position changes (e.g., when flipping sides)
152
155
  */
153
156
  animatePosition?: boolean | 'even-when-repositioning';
154
- /** @deprecated Use `animatePosition` instead */
155
- enableAnimationForPositionChange?: boolean;
156
157
  }
157
158
  export type PopoverContentProps = PopoverContentTypeProps;
158
- export declare const PopoverContent: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
159
- size?: SizeTokens | undefined;
160
- unstyled?: boolean | undefined;
161
- elevation?: number | SizeTokens | undefined;
162
- fullscreen?: boolean | undefined;
163
- }>, keyof PopoverContentTypeProps> & PopoverContentTypeProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopoverContentTypeProps, import("@tamagui/core").StackStyleBase, {
164
- size?: SizeTokens | undefined;
165
- unstyled?: boolean | undefined;
166
- elevation?: number | SizeTokens | undefined;
167
- fullscreen?: boolean | undefined;
168
- }, import("@tamagui/core").StaticConfigPublic>;
159
+ export declare const PopoverContent: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopoverContentTypeProps> & PopoverContentTypeProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopoverContentTypeProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
169
160
  export type PopoverContentImplProps = PopperContentProps & Omit<DismissableProps, 'onDismiss' | 'children' | 'onPointerDownCapture'> & {
170
161
  /**
171
162
  * Rather than mount the content immediately, mounts it in a useEffect
172
163
  * inside a startTransition to clear the main thread
173
164
  */
174
165
  lazyMount?: boolean;
166
+ /**
167
+ * Used to force mounting when more control is needed. Useful when
168
+ * controlling animation with React animation libraries. Matches Dialog:
169
+ * disables part presence gating so the content is always mounted.
170
+ */
171
+ forceMount?: boolean;
175
172
  /**
176
173
  * Whether focus should be trapped within the `Popover`
177
174
  * @default false
@@ -183,11 +180,11 @@ export type PopoverContentImplProps = PopperContentProps & Omit<DismissableProps
183
180
  */
184
181
  disableFocusScope?: boolean;
185
182
  /**
186
- * Event handler called when auto-focusing on open. Can be prevented.
183
+ * Event handler called when auto-focusing on open. Can be canceled.
187
184
  */
188
185
  onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
189
186
  /**
190
- * Event handler called when auto-focusing on close. Can be prevented.
187
+ * Event handler called when auto-focusing on close. Can be canceled.
191
188
  */
192
189
  onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'] | false;
193
190
  enableRemoveScroll?: boolean;
@@ -202,19 +199,9 @@ export type PopoverContentImplProps = PopperContentProps & Omit<DismissableProps
202
199
  };
203
200
  };
204
201
  export type PopoverCloseProps = ScopedPopoverProps<YStackProps>;
205
- export declare const PopoverClose: React.ForwardRefExoticComponent<Omit<YStackProps, "scope"> & {
206
- scope?: PopoverScopes;
207
- } & React.RefAttributes<TamaguiElement>>;
202
+ export declare const PopoverClose: import("@tamagui/compose-refs").RefComponent<TamaguiElement, PopoverCloseProps>;
208
203
  export type PopoverArrowProps = PopperArrowProps;
209
- export declare const PopoverArrow: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
210
- unstyled?: boolean | undefined;
211
- elevation?: number | SizeTokens | undefined;
212
- fullscreen?: boolean | undefined;
213
- }>, keyof PopperArrowExtraProps> & PopperArrowExtraProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopperArrowExtraProps, import("@tamagui/core").StackStyleBase, {
214
- unstyled?: boolean | undefined;
215
- elevation?: number | SizeTokens | undefined;
216
- fullscreen?: boolean | undefined;
217
- }, import("@tamagui/core").StaticConfigPublic>;
204
+ export declare const PopoverArrow: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopperArrowExtraProps> & PopperArrowExtraProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopperArrowExtraProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
218
205
  type Rect = {
219
206
  x: number;
220
207
  y: number;
@@ -231,7 +218,7 @@ export type Popover = {
231
218
  export type PopoverScrollViewProps = ScrollViewProps & {
232
219
  scope?: string;
233
220
  };
234
- export declare const Popover: React.ForwardRefExoticComponent<Omit<PopperProps, "scope"> & {
221
+ export declare const Popover: ((props: Omit<PopperProps, "scope"> & {
235
222
  scope?: PopoverScopes;
236
223
  } & {
237
224
  open?: boolean;
@@ -243,13 +230,14 @@ export declare const Popover: React.ForwardRefExoticComponent<Omit<PopperProps,
243
230
  *
244
231
  * @default false
245
232
  */
246
- keepChildrenMounted?: boolean | "lazy";
233
+ keepChildrenMounted?: boolean | 'lazy';
247
234
  /**
248
235
  * Enable staying open while mouseover
249
236
  */
250
237
  hoverable?: boolean | UseHoverProps;
251
238
  /**
252
- * Disable focusing behavior on open
239
+ * disable opening when the trigger receives keyboard focus.
240
+ * defaults to true unless hoverable is enabled.
253
241
  */
254
242
  disableFocus?: boolean;
255
243
  /**
@@ -268,20 +256,15 @@ export declare const Popover: React.ForwardRefExoticComponent<Omit<PopperProps,
268
256
  * @see https://tamagui.dev/ui/z-index
269
257
  */
270
258
  zIndex?: number;
271
- } & React.RefAttributes<Popover>> & {
259
+ } & import("@tamagui/compose-refs").RefProp<Popover>) => React.ReactNode) & {
260
+ displayName?: string;
261
+ propTypes?: any;
262
+ } & {
272
263
  Anchor: React.NamedExoticComponent<Omit<YStackProps, "scope"> & {
273
264
  scope?: PopoverScopes;
274
- } & React.RefAttributes<TamaguiElement>>;
275
- Arrow: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
276
- unstyled?: boolean | undefined;
277
- elevation?: number | SizeTokens | undefined;
278
- fullscreen?: boolean | undefined;
279
- }>, keyof PopperArrowExtraProps> & PopperArrowExtraProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopperArrowExtraProps, import("@tamagui/core").StackStyleBase, {
280
- unstyled?: boolean | undefined;
281
- elevation?: number | SizeTokens | undefined;
282
- fullscreen?: boolean | undefined;
283
- }, import("@tamagui/core").StaticConfigPublic>;
284
- Trigger: React.NamedExoticComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
265
+ } & import("@tamagui/compose-refs").RefProp<TamaguiElement>>;
266
+ Arrow: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopperArrowExtraProps> & PopperArrowExtraProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopperArrowExtraProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
267
+ Trigger: React.NamedExoticComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
285
268
  /**
286
269
  * When true, disables the built-in click-to-toggle behavior on the trigger.
287
270
  * Useful for hoverable popovers where you want to control open/close
@@ -290,69 +273,14 @@ export declare const Popover: React.ForwardRefExoticComponent<Omit<PopperProps,
290
273
  disablePressTrigger?: boolean;
291
274
  }, "scope"> & {
292
275
  scope?: PopoverScopes;
293
- } & React.RefAttributes<TamaguiElement>>;
294
- Content: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
295
- size?: SizeTokens | undefined;
296
- unstyled?: boolean | undefined;
297
- elevation?: number | SizeTokens | undefined;
298
- fullscreen?: boolean | undefined;
299
- }>, keyof PopoverContentTypeProps> & PopoverContentTypeProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopoverContentTypeProps, import("@tamagui/core").StackStyleBase, {
300
- size?: SizeTokens | undefined;
301
- unstyled?: boolean | undefined;
302
- elevation?: number | SizeTokens | undefined;
303
- fullscreen?: boolean | undefined;
304
- }, import("@tamagui/core").StaticConfigPublic>;
305
- Close: React.ForwardRefExoticComponent<Omit<YStackProps, "scope"> & {
306
- scope?: PopoverScopes;
307
- } & React.RefAttributes<TamaguiElement>>;
308
- Adapt: ((props: import("@tamagui/adapt").AdaptProps) => import("react/jsx-runtime").JSX.Element) & {
309
- Contents: {
310
- ({ scope, ...rest }: {
311
- scope?: string;
312
- }): React.FunctionComponentElement<any>;
313
- shouldForwardSpace: boolean;
314
- };
276
+ } & import("@tamagui/compose-refs").RefProp<TamaguiElement>>;
277
+ Content: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopoverContentTypeProps> & PopoverContentTypeProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopoverContentTypeProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
278
+ Close: import("@tamagui/compose-refs").RefComponent<TamaguiElement, PopoverCloseProps>;
279
+ Adapt: ((props: import("@tamagui/adapt").AdaptProps) => React.JSX.Element) & {
280
+ Contents: typeof import("@tamagui/adapt").AdaptContents;
315
281
  };
316
- ScrollView: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
317
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
318
- accept: {
319
- readonly contentContainerStyle: "style";
320
- };
321
- }>> | undefined;
322
- }> & {
323
- fullscreen?: boolean | undefined;
324
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
325
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
326
- accept: {
327
- readonly contentContainerStyle: "style";
328
- };
329
- }>> | undefined;
330
- }>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
331
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
332
- accept: {
333
- readonly contentContainerStyle: "style";
334
- };
335
- }>> | undefined;
336
- }> & {
337
- fullscreen?: boolean | undefined;
338
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
339
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
340
- accept: {
341
- readonly contentContainerStyle: "style";
342
- };
343
- }>> | undefined;
344
- }>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase & {
345
- readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
346
- accept: {
347
- readonly contentContainerStyle: "style";
348
- };
349
- }>> | undefined;
350
- }, {
351
- fullscreen?: boolean | undefined;
352
- }>> & {
353
- scope?: string;
354
- } & React.RefAttributes<import("react-native").ScrollView>>;
355
- FocusScope: (props: import("@tamagui/focus-scope/types/types").ScopedProps<import("@tamagui/focus-scope").FocusScopeControllerProps>) => import("react/jsx-runtime").JSX.Element;
282
+ ScrollView: import("@tamagui/compose-refs").RefComponent<import("@tamagui/scroll-view").ScrollViewRef, PopoverScrollViewProps>;
283
+ FocusScope: (props: import("@tamagui/focus-scope/types/types").ScopedProps<import("@tamagui/focus-scope").FocusScopeControllerProps>) => React.JSX.Element;
356
284
  };
357
285
  export {};
358
286
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAatD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAQ1E,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3D,OAAO,EAIL,KAAK,qBAAqB,EAE1B,KAAK,gBAAgB,EAGrB,KAAK,kBAAkB,EACvB,KAA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,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG;IACrD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAsBD,eAAO,MAAM,OAAO;YAx6BV,aAAa;;WA8Bd,OAAO;kBACA,OAAO;mBACN,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,UAAU,KAAK,IAAI;IAExD;;;;;OAKG;0BACmB,OAAO,GAAG,MAAM;IAEtC;;OAEG;gBACS,OAAO,GAAG,aAAa;IAEnC;;;OAGG;mBACY,OAAO;IAEtB;;;OAGG;yBACkB,OAAO;IAE5B;;;;;;;;;OASG;aACM,MAAM;;;;;;gBArEP,aAAa;;;;QAqTnB;;;;WAIG;8BACmB,OAAO;;;;;;;;;;;CAgrBhC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Delay, UseFloatingOptions } from '@tamagui/floating';
1
+ import type { Delay, OpenChangeReason, UseFloatingOptions } from '@tamagui/floating';
2
2
  export type UseFloatingContextOptions = {
3
3
  open: boolean;
4
4
  setOpen: (val: boolean, type?: string) => void;
@@ -10,6 +10,9 @@ export type UseFloatingContextOptions = {
10
10
  groupId?: string;
11
11
  delay?: Delay;
12
12
  restMs?: number;
13
+ closeReasonRef?: {
14
+ current?: OpenChangeReason;
15
+ };
13
16
  };
14
- export declare const useFloatingContext: ({ open, setOpen, disable, disableFocus, hoverable, role: roleProp, focus: focusProp, groupId, delay: delayProp, restMs: restMsProp, }: UseFloatingContextOptions) => (props?: UseFloatingOptions) => any;
17
+ export declare const useFloatingContext: ({ open, setOpen, disable, disableFocus, hoverable, role: roleProp, focus: focusProp, groupId, delay: delayProp, restMs: restMsProp, closeReasonRef, }: UseFloatingContextOptions) => (props?: UseFloatingOptions) => any;
15
18
  //# sourceMappingURL=useFloatingContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFloatingContext.d.ts","sourceRoot":"","sources":["../src/useFloatingContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AA8BlE,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAEzC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAE3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,KAAK,CAAC,EAAE,KAAK,CAAA;IAEb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,uIAWhC,yBAAyB,cA8Bf,kBAAkB,QA+P9B,CAAA"}
1
+ {"version":3,"file":"useFloatingContext.d.ts","sourceRoot":"","sources":["../src/useFloatingContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AA8BpF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAEzC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAE3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,KAAK,CAAC,EAAE,KAAK,CAAA;IAEb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAA;CAChD,CAAA;AAED,eAAO,MAAM,kBAAkB,0JAY5B,yBAAyB,cAmCf,kBAAkB,QAgQ9B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}