@tamagui/popover 1.88.21 → 1.88.23
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/esm/Popover.native.js +103 -102
- package/dist/esm/Popover.native.js.map +1 -1
- package/dist/esm/index.native.js +2 -21
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/useFloatingContext.native.js +4 -25
- package/dist/esm/useFloatingContext.native.js.map +1 -1
- package/dist/jsx/Popover.native.js +103 -102
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/index.native.js +2 -21
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/useFloatingContext.native.js +4 -25
- package/dist/jsx/useFloatingContext.native.js.map +1 -1
- package/package.json +20 -20
- package/types/Popover.d.ts +12 -5
- package/types/Popover.d.ts.map +1 -1
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import "@tamagui/polyfill-dev";
|
|
2
|
+
import { Adapt, useAdaptParent } from "@tamagui/adapt";
|
|
3
|
+
import { Animate } from "@tamagui/animate";
|
|
4
|
+
import { ResetPresence } from "@tamagui/animate-presence";
|
|
5
|
+
import { hideOthers } from "@tamagui/aria-hidden";
|
|
6
|
+
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
7
|
+
import { isWeb } from "@tamagui/constants";
|
|
8
|
+
import {
|
|
9
|
+
Stack,
|
|
10
|
+
Theme,
|
|
11
|
+
View,
|
|
12
|
+
createStyledContext,
|
|
13
|
+
useEvent,
|
|
14
|
+
useGet,
|
|
15
|
+
useMedia,
|
|
16
|
+
useThemeName
|
|
17
|
+
} from "@tamagui/core";
|
|
18
|
+
import { FloatingOverrideContext } from "@tamagui/floating";
|
|
19
|
+
import { FocusScope } from "@tamagui/focus-scope";
|
|
20
|
+
import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
|
|
21
|
+
import {
|
|
22
|
+
Popper,
|
|
23
|
+
PopperAnchor,
|
|
24
|
+
PopperArrow,
|
|
25
|
+
PopperContent,
|
|
26
|
+
PopperContentFrame,
|
|
27
|
+
PopperContext,
|
|
28
|
+
usePopperContext
|
|
29
|
+
} from "@tamagui/popper";
|
|
30
|
+
import { Portal, PortalHost, PortalItem } from "@tamagui/portal";
|
|
31
|
+
import { RemoveScroll } from "@tamagui/remove-scroll";
|
|
32
|
+
import { Sheet, SheetController } from "@tamagui/sheet";
|
|
33
|
+
import { YStack } from "@tamagui/stacks";
|
|
34
|
+
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
35
|
+
import * as React from "react";
|
|
36
|
+
import { Platform, ScrollView } from "react-native";
|
|
37
|
+
import { useFloatingContext } from "./useFloatingContext";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
const POPOVER_SCOPE = "PopoverScope", PopoverContext = createStyledContext({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React.forwardRef(function(props, forwardedRef) {
|
|
38
40
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
39
|
-
return React.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */
|
|
40
|
-
|
|
41
|
+
return React.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsx(
|
|
42
|
+
PopperAnchor,
|
|
41
43
|
{
|
|
42
44
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
43
45
|
...rest,
|
|
@@ -45,19 +47,19 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
45
47
|
}
|
|
46
48
|
);
|
|
47
49
|
}), PopoverTrigger = React.forwardRef(function(props, forwardedRef) {
|
|
48
|
-
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef =
|
|
50
|
+
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
49
51
|
if (anchorTo) {
|
|
50
52
|
let virtualRef = {
|
|
51
53
|
current: {
|
|
52
|
-
getBoundingClientRect: () =>
|
|
53
|
-
...!
|
|
54
|
+
getBoundingClientRect: () => isWeb ? DOMRect.fromRect(anchorTo) : anchorTo,
|
|
55
|
+
...!isWeb && {
|
|
54
56
|
measure: (c) => c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height),
|
|
55
57
|
measureInWindow: (c) => c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height)
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
PopperAnchor,
|
|
61
63
|
{
|
|
62
64
|
virtualRef,
|
|
63
65
|
__scopePopper: __scopePopover || POPOVER_SCOPE
|
|
@@ -66,19 +68,19 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
66
68
|
}
|
|
67
69
|
if (!props.children)
|
|
68
70
|
return null;
|
|
69
|
-
const trigger = /* @__PURE__ */
|
|
70
|
-
|
|
71
|
+
const trigger = /* @__PURE__ */ jsx(
|
|
72
|
+
View,
|
|
71
73
|
{
|
|
72
74
|
"aria-haspopup": "dialog",
|
|
73
75
|
"aria-expanded": context.open,
|
|
74
76
|
"data-state": getState(context.open),
|
|
75
77
|
...rest,
|
|
76
78
|
ref: composedTriggerRef,
|
|
77
|
-
onPress:
|
|
79
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
78
80
|
}
|
|
79
81
|
);
|
|
80
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
81
|
-
}), PopoverContent =
|
|
82
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperAnchor, { __scopePopper: __scopePopover || POPOVER_SCOPE, asChild: !0, children: trigger });
|
|
83
|
+
}), PopoverContent = PopperContentFrame.extractable(
|
|
82
84
|
React.forwardRef(function(props, forwardedRef) {
|
|
83
85
|
const {
|
|
84
86
|
allowPinchZoom,
|
|
@@ -87,14 +89,14 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
87
89
|
zIndex,
|
|
88
90
|
__scopePopover,
|
|
89
91
|
...contentImplProps
|
|
90
|
-
} = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs =
|
|
92
|
+
} = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), isRightClickOutsideRef = React.useRef(!1);
|
|
91
93
|
return React.useEffect(() => {
|
|
92
94
|
if (!context.open)
|
|
93
95
|
return;
|
|
94
96
|
const content = contentRef.current;
|
|
95
97
|
if (content)
|
|
96
|
-
return
|
|
97
|
-
}, [context.open]), /* @__PURE__ */
|
|
98
|
+
return hideOthers(content);
|
|
99
|
+
}, [context.open]), /* @__PURE__ */ jsx(PopoverContentPortal, { __scopePopover, zIndex: props.zIndex, children: /* @__PURE__ */ jsx(Stack, { pointerEvents: context.open ? "auto" : "none", children: /* @__PURE__ */ jsx(
|
|
98
100
|
PopoverContentImpl,
|
|
99
101
|
{
|
|
100
102
|
...contentImplProps,
|
|
@@ -103,11 +105,11 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
103
105
|
__scopePopover,
|
|
104
106
|
trapFocus: trapFocus ?? context.open,
|
|
105
107
|
disableOutsidePointerEvents: !0,
|
|
106
|
-
onCloseAutoFocus:
|
|
108
|
+
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
107
109
|
var _a;
|
|
108
110
|
event.preventDefault(), isRightClickOutsideRef.current || (_a = context.triggerRef.current) == null || _a.focus();
|
|
109
111
|
}),
|
|
110
|
-
onPointerDownOutside:
|
|
112
|
+
onPointerDownOutside: composeEventHandlers(
|
|
111
113
|
props.onPointerDownOutside,
|
|
112
114
|
(event) => {
|
|
113
115
|
const originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
@@ -115,7 +117,7 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
115
117
|
},
|
|
116
118
|
{ checkDefaultPrevented: !1 }
|
|
117
119
|
),
|
|
118
|
-
onFocusOutside:
|
|
120
|
+
onFocusOutside: composeEventHandlers(
|
|
119
121
|
props.onFocusOutside,
|
|
120
122
|
(event) => event.preventDefault(),
|
|
121
123
|
{ checkDefaultPrevented: !1 }
|
|
@@ -125,12 +127,12 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
125
127
|
})
|
|
126
128
|
);
|
|
127
129
|
function PopoverRepropagateContext(props) {
|
|
128
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx(PopperContext.Provider, { scope: props.scope, ...props.popperContext, children: /* @__PURE__ */ jsx(PopoverContext.Provider, { ...props.context, children: props.children }) });
|
|
129
131
|
}
|
|
130
132
|
function PopoverContentPortal(props) {
|
|
131
|
-
const { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext =
|
|
133
|
+
const { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = usePopperContext(__scopePopover || POPOVER_SCOPE), themeName = useThemeName();
|
|
132
134
|
let contents = props.children;
|
|
133
|
-
return (
|
|
135
|
+
return (Platform.OS === "android" || Platform.OS === "ios") && (contents = /* @__PURE__ */ jsx(
|
|
134
136
|
PopoverRepropagateContext,
|
|
135
137
|
{
|
|
136
138
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
@@ -138,12 +140,12 @@ function PopoverContentPortal(props) {
|
|
|
138
140
|
context,
|
|
139
141
|
children: props.children
|
|
140
142
|
}
|
|
141
|
-
)), /* @__PURE__ */
|
|
142
|
-
!!context.open && !context.breakpointActive && /* @__PURE__ */
|
|
143
|
-
|
|
143
|
+
)), /* @__PURE__ */ jsx(Portal, { zIndex, children: /* @__PURE__ */ jsxs(Theme, { forceClassName: !0, name: themeName, children: [
|
|
144
|
+
!!context.open && !context.breakpointActive && /* @__PURE__ */ jsx(
|
|
145
|
+
YStack,
|
|
144
146
|
{
|
|
145
147
|
fullscreen: !0,
|
|
146
|
-
onPress:
|
|
148
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
147
149
|
}
|
|
148
150
|
),
|
|
149
151
|
contents
|
|
@@ -165,23 +167,23 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
165
167
|
disableRemoveScroll,
|
|
166
168
|
freezeContentsWhenHidden,
|
|
167
169
|
...contentProps
|
|
168
|
-
} = props, context = usePopoverContext(__scopePopover), { open, keepChildrenMounted } = context, popperContext =
|
|
170
|
+
} = props, context = usePopoverContext(__scopePopover), { open, keepChildrenMounted } = context, popperContext = usePopperContext(__scopePopover || POPOVER_SCOPE), [isFullyHidden, setIsFullyHidden] = React.useState(!context.open), contents = React.useMemo(() => isWeb ? /* @__PURE__ */ jsx("div", { style: { display: "contents" }, children }) : children, [children]);
|
|
169
171
|
if (open && isFullyHidden && setIsFullyHidden(!1), !keepChildrenMounted && isFullyHidden)
|
|
170
172
|
return null;
|
|
171
173
|
if (context.breakpointActive) {
|
|
172
|
-
const childrenWithoutScrollView = React.Children.toArray(children).map((child) => React.isValidElement(child) && child.type ===
|
|
174
|
+
const childrenWithoutScrollView = React.Children.toArray(children).map((child) => React.isValidElement(child) && child.type === ScrollView ? child.props.children : child);
|
|
173
175
|
let content = childrenWithoutScrollView;
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
+
return Platform.OS === "android" || Platform.OS === "ios" ? content = /* @__PURE__ */ jsx(
|
|
177
|
+
PopperContext.Provider,
|
|
176
178
|
{
|
|
177
179
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
178
180
|
...popperContext,
|
|
179
|
-
children: /* @__PURE__ */
|
|
181
|
+
children: /* @__PURE__ */ jsx(ResetPresence, { children: childrenWithoutScrollView })
|
|
180
182
|
}
|
|
181
|
-
) : content = /* @__PURE__ */
|
|
183
|
+
) : content = /* @__PURE__ */ jsx(ResetPresence, { children: content }), /* @__PURE__ */ jsx(PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
182
184
|
}
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
|
|
185
|
+
return /* @__PURE__ */ jsx(
|
|
186
|
+
Animate,
|
|
185
187
|
{
|
|
186
188
|
type: "presence",
|
|
187
189
|
present: !!open,
|
|
@@ -189,16 +191,16 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
189
191
|
onExitComplete: () => {
|
|
190
192
|
setIsFullyHidden(!0);
|
|
191
193
|
},
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
|
|
194
|
+
children: /* @__PURE__ */ jsx(
|
|
195
|
+
PopperContent,
|
|
194
196
|
{
|
|
195
197
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
196
198
|
"data-state": getState(open),
|
|
197
199
|
id: context.contentId,
|
|
198
200
|
ref: forwardedRef,
|
|
199
201
|
...contentProps,
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
|
|
202
|
+
children: /* @__PURE__ */ jsx(
|
|
203
|
+
RemoveScroll,
|
|
202
204
|
{
|
|
203
205
|
enabled: disableRemoveScroll ? !1 : open,
|
|
204
206
|
allowPinchZoom: !0,
|
|
@@ -206,8 +208,8 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
206
208
|
style: {
|
|
207
209
|
display: "contents"
|
|
208
210
|
},
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
|
|
211
|
+
children: /* @__PURE__ */ jsx(ResetPresence, { children: /* @__PURE__ */ jsx(
|
|
212
|
+
FocusScope,
|
|
211
213
|
{
|
|
212
214
|
loop: !0,
|
|
213
215
|
enabled: disableFocusScope ? !1 : open,
|
|
@@ -226,23 +228,23 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
226
228
|
);
|
|
227
229
|
}), PopoverClose = React.forwardRef(function(props, forwardedRef) {
|
|
228
230
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
|
|
231
|
+
return /* @__PURE__ */ jsx(
|
|
232
|
+
YStack,
|
|
231
233
|
{
|
|
232
234
|
...rest,
|
|
233
235
|
ref: forwardedRef,
|
|
234
236
|
componentName: "PopoverClose",
|
|
235
|
-
onPress:
|
|
237
|
+
onPress: composeEventHandlers(
|
|
236
238
|
props.onPress,
|
|
237
239
|
() => context.onOpenChange(!1, "press")
|
|
238
240
|
)
|
|
239
241
|
}
|
|
240
242
|
);
|
|
241
|
-
}), PopoverArrow =
|
|
243
|
+
}), PopoverArrow = PopperArrow.styleable(
|
|
242
244
|
function(props, forwardedRef) {
|
|
243
245
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
244
|
-
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */
|
|
245
|
-
|
|
246
|
+
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */ jsx(
|
|
247
|
+
PopperArrow,
|
|
246
248
|
{
|
|
247
249
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
248
250
|
componentName: "PopoverArrow",
|
|
@@ -251,7 +253,7 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
251
253
|
}
|
|
252
254
|
);
|
|
253
255
|
}
|
|
254
|
-
), Popover =
|
|
256
|
+
), Popover = withStaticProperties(
|
|
255
257
|
React.forwardRef(
|
|
256
258
|
(props, forwardedRef) => {
|
|
257
259
|
const {
|
|
@@ -264,15 +266,15 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
264
266
|
hoverable,
|
|
265
267
|
disableFocus,
|
|
266
268
|
...restProps
|
|
267
|
-
} = props, id = React.useId(), { when, AdaptProvider } =
|
|
268
|
-
Contents: React.useCallback(() => /* @__PURE__ */
|
|
269
|
-
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), viaRef = React.useRef(), [open, setOpen] =
|
|
269
|
+
} = props, id = React.useId(), { when, AdaptProvider } = useAdaptParent({
|
|
270
|
+
Contents: React.useCallback(() => /* @__PURE__ */ jsx(PortalHost, { name: `${id}PopoverContents` }), [])
|
|
271
|
+
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), viaRef = React.useRef(), [open, setOpen] = useControllableState({
|
|
270
272
|
prop: openProp,
|
|
271
273
|
defaultProp: defaultOpen || !1,
|
|
272
274
|
onChange: (val) => {
|
|
273
275
|
onOpenChange == null || onOpenChange(val, viaRef.current);
|
|
274
276
|
}
|
|
275
|
-
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext =
|
|
277
|
+
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = useFloatingContext({
|
|
276
278
|
open,
|
|
277
279
|
setOpen: (val, via) => {
|
|
278
280
|
viaRef.current = via, setOpen(val);
|
|
@@ -294,7 +296,7 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
294
296
|
onOpenChange: (val, via) => {
|
|
295
297
|
viaRef.current = via, setOpen(val);
|
|
296
298
|
},
|
|
297
|
-
onOpenToggle:
|
|
299
|
+
onOpenToggle: useEvent(() => {
|
|
298
300
|
open && sheetActive || setOpen(!open);
|
|
299
301
|
}),
|
|
300
302
|
hasCustomAnchor,
|
|
@@ -302,16 +304,16 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
302
304
|
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(!0), []),
|
|
303
305
|
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(!1), []),
|
|
304
306
|
keepChildrenMounted
|
|
305
|
-
}, contents = /* @__PURE__ */
|
|
306
|
-
|
|
307
|
+
}, contents = /* @__PURE__ */ jsx(
|
|
308
|
+
Popper,
|
|
307
309
|
{
|
|
308
310
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
309
311
|
stayInFrame: !0,
|
|
310
312
|
...restProps,
|
|
311
|
-
children: /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ jsx(PopoverContext.Provider, { scope: __scopePopover, ...popoverContext, children: /* @__PURE__ */ jsx(PopoverSheetController, { onOpenChange: setOpen, children }) })
|
|
312
314
|
}
|
|
313
315
|
);
|
|
314
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ jsx(AdaptProvider, { children: isWeb ? /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, { value: floatingContext, children: contents }) : contents });
|
|
315
317
|
}
|
|
316
318
|
),
|
|
317
319
|
{
|
|
@@ -320,9 +322,9 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
320
322
|
Trigger: PopoverTrigger,
|
|
321
323
|
Content: PopoverContent,
|
|
322
324
|
Close: PopoverClose,
|
|
323
|
-
Adapt
|
|
324
|
-
ScrollView
|
|
325
|
-
Sheet:
|
|
325
|
+
Adapt,
|
|
326
|
+
ScrollView,
|
|
327
|
+
Sheet: Sheet.Controlled
|
|
326
328
|
}
|
|
327
329
|
);
|
|
328
330
|
function getState(open) {
|
|
@@ -332,9 +334,9 @@ const PopoverSheetController = ({
|
|
|
332
334
|
__scopePopover,
|
|
333
335
|
...props
|
|
334
336
|
}) => {
|
|
335
|
-
const context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet =
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
|
|
337
|
+
const context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = useGet(showSheet);
|
|
338
|
+
return /* @__PURE__ */ jsx(
|
|
339
|
+
SheetController,
|
|
338
340
|
{
|
|
339
341
|
onOpenChange: (val) => {
|
|
340
342
|
getShowSheet() && props.onOpenChange(val);
|
|
@@ -345,14 +347,13 @@ const PopoverSheetController = ({
|
|
|
345
347
|
}
|
|
346
348
|
);
|
|
347
349
|
}, useSheetBreakpointActive = (breakpoint) => {
|
|
348
|
-
const media =
|
|
350
|
+
const media = useMedia();
|
|
349
351
|
return typeof breakpoint == "boolean" || !breakpoint ? !!breakpoint : media[breakpoint];
|
|
350
352
|
}, useShowPopoverSheet = (context) => {
|
|
351
353
|
const breakpointActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
352
354
|
return context.open === !1 ? !1 : breakpointActive;
|
|
353
355
|
};
|
|
354
|
-
|
|
355
|
-
0 && (module.exports = {
|
|
356
|
+
export {
|
|
356
357
|
Popover,
|
|
357
358
|
PopoverAnchor,
|
|
358
359
|
PopoverArrow,
|
|
@@ -361,5 +362,5 @@ const PopoverSheetController = ({
|
|
|
361
362
|
PopoverContext,
|
|
362
363
|
PopoverTrigger,
|
|
363
364
|
usePopoverContext
|
|
364
|
-
}
|
|
365
|
+
};
|
|
365
366
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Popover.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,OAAO;AAGP,SAAS,OAAO,sBAAsB;AACtC,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC,SAAS,aAAa;AAStB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,+BAA+B;AAExC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB,4BAA4B;AAO3D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,QAAQ,YAAY,kBAAkB;AAE/C,SAAS,oBAAoB;AAC7B,SAAS,OAAO,uBAAuB;AAEvC,SAAS,cAAc;AACvB,SAAS,4BAA4B;AACrC,YAAY,WAAW;AACvB,SAAS,UAAU,kBAAkB;AAErC,SAAS,0BAA0B;AAkE/B,cA2ME,YA3MF;AA1BJ,MAAM,gBAAgB,gBAET,iBAAiB,oBAAyC,CAAC,CAAQ,GAEnE,oBAAoB,eAAe,kBAQnC,gBAAgB,MAAM,WAGjC,SAAuB,OAA+C,cAAc;AACpF,QAAM,EAAE,gBAAgB,GAAG,KAAK,IAAI,OAC9B,UAAU,kBAAkB,cAAc,GAC1C,EAAE,mBAAmB,qBAA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BACtC,oBACH,IAEA,UAEJ;AAAA,IAEJ;AAAA,EACF;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,OAAO,MAAM;AAAA,EACf;AACF;AAIA,SAAS,SAAS,MAAe;AAC/B,SAAO,OAAO,SAAS;AACzB;AAEA,MAAM,yBAAyB,CAAC;AAAA,EAC9B;AAAA,EACA,GAAG;AACL,MAGO;AACL,QAAM,UAAU,kBAAkB,cAAc,GAC1C,YAAY,oBAAoB,OAAO,GACvC,mBAAmB,QAAQ,kBAC3B,eAAe,OAAO,SAAS;AAErC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAc,CAAC,QAAQ;AACrB,QAAI,aAAa,KACf,MAAM,aAAa,GAAG;AAAA,MAE1B;AAAA,MACA,MAAM,QAAQ;AAAA,MACd,QAAQ,qBAAqB;AAAA,MAE5B,gBAAM;AAAA;AAAA,EACT;AAEJ,GAEM,2BAA2B,CAAC,eAAgD;AAChF,QAAM,QAAQ,SAAS;AACvB,SAAI,OAAO,cAAe,aAAa,CAAC,aAC/B,CAAC,CAAC,aAEJ,MAAM,UAAU;AACzB,GAEM,sBAAsB,CAAC,YAAiC;AAC5D,QAAM,mBAAmB,yBAAyB,QAAQ,eAAe;AACzE,SAAO,QAAQ,SAAS,KAAQ,KAAQ;AAC1C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var src_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(src_exports);
|
|
15
|
-
__reExport(src_exports, require("./Popover"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./useFloatingContext"), module.exports);
|
|
17
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
18
|
-
0 && (module.exports = {
|
|
19
|
-
...require("./Popover"),
|
|
20
|
-
...require("./useFloatingContext")
|
|
21
|
-
});
|
|
1
|
+
export * from "./Popover";
|
|
2
|
+
export * from "./useFloatingContext";
|
|
22
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var useFloatingContext_native_exports = {};
|
|
17
|
-
__export(useFloatingContext_native_exports, {
|
|
18
|
-
useFloatingContext: () => useFloatingContext
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(useFloatingContext_native_exports);
|
|
21
|
-
var import_react = require("react");
|
|
22
|
-
const useFloatingContext = () => (0, import_react.useCallback)(() => {
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
const useFloatingContext = () => useCallback(() => {
|
|
23
3
|
}, []);
|
|
24
|
-
|
|
25
|
-
0 && (module.exports = {
|
|
4
|
+
export {
|
|
26
5
|
useFloatingContext
|
|
27
|
-
}
|
|
6
|
+
};
|
|
28
7
|
//# sourceMappingURL=useFloatingContext.native.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useFloatingContext.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAgB,mBAAmB;AAG5B,MAAM,qBAAqB,MAAM,YAAY,MAAM;AAAC,GAAG,CAAC,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import "@tamagui/polyfill-dev";
|
|
2
|
+
import { Adapt, useAdaptParent } from "@tamagui/adapt";
|
|
3
|
+
import { Animate } from "@tamagui/animate";
|
|
4
|
+
import { ResetPresence } from "@tamagui/animate-presence";
|
|
5
|
+
import { hideOthers } from "@tamagui/aria-hidden";
|
|
6
|
+
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
7
|
+
import { isWeb } from "@tamagui/constants";
|
|
8
|
+
import {
|
|
9
|
+
Stack,
|
|
10
|
+
Theme,
|
|
11
|
+
View,
|
|
12
|
+
createStyledContext,
|
|
13
|
+
useEvent,
|
|
14
|
+
useGet,
|
|
15
|
+
useMedia,
|
|
16
|
+
useThemeName
|
|
17
|
+
} from "@tamagui/core";
|
|
18
|
+
import { FloatingOverrideContext } from "@tamagui/floating";
|
|
19
|
+
import { FocusScope } from "@tamagui/focus-scope";
|
|
20
|
+
import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
|
|
21
|
+
import {
|
|
22
|
+
Popper,
|
|
23
|
+
PopperAnchor,
|
|
24
|
+
PopperArrow,
|
|
25
|
+
PopperContent,
|
|
26
|
+
PopperContentFrame,
|
|
27
|
+
PopperContext,
|
|
28
|
+
usePopperContext
|
|
29
|
+
} from "@tamagui/popper";
|
|
30
|
+
import { Portal, PortalHost, PortalItem } from "@tamagui/portal";
|
|
31
|
+
import { RemoveScroll } from "@tamagui/remove-scroll";
|
|
32
|
+
import { Sheet, SheetController } from "@tamagui/sheet";
|
|
33
|
+
import { YStack } from "@tamagui/stacks";
|
|
34
|
+
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
35
|
+
import * as React from "react";
|
|
36
|
+
import { Platform, ScrollView } from "react-native";
|
|
37
|
+
import { useFloatingContext } from "./useFloatingContext";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
const POPOVER_SCOPE = "PopoverScope", PopoverContext = createStyledContext({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React.forwardRef(function(props, forwardedRef) {
|
|
38
40
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
39
|
-
return React.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */
|
|
40
|
-
|
|
41
|
+
return React.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsx(
|
|
42
|
+
PopperAnchor,
|
|
41
43
|
{
|
|
42
44
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
43
45
|
...rest,
|
|
@@ -45,19 +47,19 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
45
47
|
}
|
|
46
48
|
);
|
|
47
49
|
}), PopoverTrigger = React.forwardRef(function(props, forwardedRef) {
|
|
48
|
-
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef =
|
|
50
|
+
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
49
51
|
if (anchorTo) {
|
|
50
52
|
let virtualRef = {
|
|
51
53
|
current: {
|
|
52
|
-
getBoundingClientRect: () =>
|
|
53
|
-
...!
|
|
54
|
+
getBoundingClientRect: () => isWeb ? DOMRect.fromRect(anchorTo) : anchorTo,
|
|
55
|
+
...!isWeb && {
|
|
54
56
|
measure: (c) => c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height),
|
|
55
57
|
measureInWindow: (c) => c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height)
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
PopperAnchor,
|
|
61
63
|
{
|
|
62
64
|
virtualRef,
|
|
63
65
|
__scopePopper: __scopePopover || POPOVER_SCOPE
|
|
@@ -66,19 +68,19 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
66
68
|
}
|
|
67
69
|
if (!props.children)
|
|
68
70
|
return null;
|
|
69
|
-
const trigger = /* @__PURE__ */
|
|
70
|
-
|
|
71
|
+
const trigger = /* @__PURE__ */ jsx(
|
|
72
|
+
View,
|
|
71
73
|
{
|
|
72
74
|
"aria-haspopup": "dialog",
|
|
73
75
|
"aria-expanded": context.open,
|
|
74
76
|
"data-state": getState(context.open),
|
|
75
77
|
...rest,
|
|
76
78
|
ref: composedTriggerRef,
|
|
77
|
-
onPress:
|
|
79
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
78
80
|
}
|
|
79
81
|
);
|
|
80
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
81
|
-
}), PopoverContent =
|
|
82
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperAnchor, { __scopePopper: __scopePopover || POPOVER_SCOPE, asChild: !0, children: trigger });
|
|
83
|
+
}), PopoverContent = PopperContentFrame.extractable(
|
|
82
84
|
React.forwardRef(function(props, forwardedRef) {
|
|
83
85
|
const {
|
|
84
86
|
allowPinchZoom,
|
|
@@ -87,14 +89,14 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
87
89
|
zIndex,
|
|
88
90
|
__scopePopover,
|
|
89
91
|
...contentImplProps
|
|
90
|
-
} = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs =
|
|
92
|
+
} = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), isRightClickOutsideRef = React.useRef(!1);
|
|
91
93
|
return React.useEffect(() => {
|
|
92
94
|
if (!context.open)
|
|
93
95
|
return;
|
|
94
96
|
const content = contentRef.current;
|
|
95
97
|
if (content)
|
|
96
|
-
return
|
|
97
|
-
}, [context.open]), /* @__PURE__ */
|
|
98
|
+
return hideOthers(content);
|
|
99
|
+
}, [context.open]), /* @__PURE__ */ jsx(PopoverContentPortal, { __scopePopover, zIndex: props.zIndex, children: /* @__PURE__ */ jsx(Stack, { pointerEvents: context.open ? "auto" : "none", children: /* @__PURE__ */ jsx(
|
|
98
100
|
PopoverContentImpl,
|
|
99
101
|
{
|
|
100
102
|
...contentImplProps,
|
|
@@ -103,11 +105,11 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
103
105
|
__scopePopover,
|
|
104
106
|
trapFocus: trapFocus ?? context.open,
|
|
105
107
|
disableOutsidePointerEvents: !0,
|
|
106
|
-
onCloseAutoFocus:
|
|
108
|
+
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
107
109
|
var _a;
|
|
108
110
|
event.preventDefault(), isRightClickOutsideRef.current || (_a = context.triggerRef.current) == null || _a.focus();
|
|
109
111
|
}),
|
|
110
|
-
onPointerDownOutside:
|
|
112
|
+
onPointerDownOutside: composeEventHandlers(
|
|
111
113
|
props.onPointerDownOutside,
|
|
112
114
|
(event) => {
|
|
113
115
|
const originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
@@ -115,7 +117,7 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
115
117
|
},
|
|
116
118
|
{ checkDefaultPrevented: !1 }
|
|
117
119
|
),
|
|
118
|
-
onFocusOutside:
|
|
120
|
+
onFocusOutside: composeEventHandlers(
|
|
119
121
|
props.onFocusOutside,
|
|
120
122
|
(event) => event.preventDefault(),
|
|
121
123
|
{ checkDefaultPrevented: !1 }
|
|
@@ -125,12 +127,12 @@ const POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createSty
|
|
|
125
127
|
})
|
|
126
128
|
);
|
|
127
129
|
function PopoverRepropagateContext(props) {
|
|
128
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx(PopperContext.Provider, { scope: props.scope, ...props.popperContext, children: /* @__PURE__ */ jsx(PopoverContext.Provider, { ...props.context, children: props.children }) });
|
|
129
131
|
}
|
|
130
132
|
function PopoverContentPortal(props) {
|
|
131
|
-
const { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext =
|
|
133
|
+
const { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = usePopperContext(__scopePopover || POPOVER_SCOPE), themeName = useThemeName();
|
|
132
134
|
let contents = props.children;
|
|
133
|
-
return (
|
|
135
|
+
return (Platform.OS === "android" || Platform.OS === "ios") && (contents = /* @__PURE__ */ jsx(
|
|
134
136
|
PopoverRepropagateContext,
|
|
135
137
|
{
|
|
136
138
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
@@ -138,12 +140,12 @@ function PopoverContentPortal(props) {
|
|
|
138
140
|
context,
|
|
139
141
|
children: props.children
|
|
140
142
|
}
|
|
141
|
-
)), /* @__PURE__ */
|
|
142
|
-
!!context.open && !context.breakpointActive && /* @__PURE__ */
|
|
143
|
-
|
|
143
|
+
)), /* @__PURE__ */ jsx(Portal, { zIndex, children: /* @__PURE__ */ jsxs(Theme, { forceClassName: !0, name: themeName, children: [
|
|
144
|
+
!!context.open && !context.breakpointActive && /* @__PURE__ */ jsx(
|
|
145
|
+
YStack,
|
|
144
146
|
{
|
|
145
147
|
fullscreen: !0,
|
|
146
|
-
onPress:
|
|
148
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
147
149
|
}
|
|
148
150
|
),
|
|
149
151
|
contents
|
|
@@ -165,23 +167,23 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
165
167
|
disableRemoveScroll,
|
|
166
168
|
freezeContentsWhenHidden,
|
|
167
169
|
...contentProps
|
|
168
|
-
} = props, context = usePopoverContext(__scopePopover), { open, keepChildrenMounted } = context, popperContext =
|
|
170
|
+
} = props, context = usePopoverContext(__scopePopover), { open, keepChildrenMounted } = context, popperContext = usePopperContext(__scopePopover || POPOVER_SCOPE), [isFullyHidden, setIsFullyHidden] = React.useState(!context.open), contents = React.useMemo(() => isWeb ? /* @__PURE__ */ jsx("div", { style: { display: "contents" }, children }) : children, [children]);
|
|
169
171
|
if (open && isFullyHidden && setIsFullyHidden(!1), !keepChildrenMounted && isFullyHidden)
|
|
170
172
|
return null;
|
|
171
173
|
if (context.breakpointActive) {
|
|
172
|
-
const childrenWithoutScrollView = React.Children.toArray(children).map((child) => React.isValidElement(child) && child.type ===
|
|
174
|
+
const childrenWithoutScrollView = React.Children.toArray(children).map((child) => React.isValidElement(child) && child.type === ScrollView ? child.props.children : child);
|
|
173
175
|
let content = childrenWithoutScrollView;
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
+
return Platform.OS === "android" || Platform.OS === "ios" ? content = /* @__PURE__ */ jsx(
|
|
177
|
+
PopperContext.Provider,
|
|
176
178
|
{
|
|
177
179
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
178
180
|
...popperContext,
|
|
179
|
-
children: /* @__PURE__ */
|
|
181
|
+
children: /* @__PURE__ */ jsx(ResetPresence, { children: childrenWithoutScrollView })
|
|
180
182
|
}
|
|
181
|
-
) : content = /* @__PURE__ */
|
|
183
|
+
) : content = /* @__PURE__ */ jsx(ResetPresence, { children: content }), /* @__PURE__ */ jsx(PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
182
184
|
}
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
|
|
185
|
+
return /* @__PURE__ */ jsx(
|
|
186
|
+
Animate,
|
|
185
187
|
{
|
|
186
188
|
type: "presence",
|
|
187
189
|
present: !!open,
|
|
@@ -189,16 +191,16 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
189
191
|
onExitComplete: () => {
|
|
190
192
|
setIsFullyHidden(!0);
|
|
191
193
|
},
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
|
|
194
|
+
children: /* @__PURE__ */ jsx(
|
|
195
|
+
PopperContent,
|
|
194
196
|
{
|
|
195
197
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
196
198
|
"data-state": getState(open),
|
|
197
199
|
id: context.contentId,
|
|
198
200
|
ref: forwardedRef,
|
|
199
201
|
...contentProps,
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
|
|
202
|
+
children: /* @__PURE__ */ jsx(
|
|
203
|
+
RemoveScroll,
|
|
202
204
|
{
|
|
203
205
|
enabled: disableRemoveScroll ? !1 : open,
|
|
204
206
|
allowPinchZoom: !0,
|
|
@@ -206,8 +208,8 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
206
208
|
style: {
|
|
207
209
|
display: "contents"
|
|
208
210
|
},
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
|
|
211
|
+
children: /* @__PURE__ */ jsx(ResetPresence, { children: /* @__PURE__ */ jsx(
|
|
212
|
+
FocusScope,
|
|
211
213
|
{
|
|
212
214
|
loop: !0,
|
|
213
215
|
enabled: disableFocusScope ? !1 : open,
|
|
@@ -226,23 +228,23 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
226
228
|
);
|
|
227
229
|
}), PopoverClose = React.forwardRef(function(props, forwardedRef) {
|
|
228
230
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
|
|
231
|
+
return /* @__PURE__ */ jsx(
|
|
232
|
+
YStack,
|
|
231
233
|
{
|
|
232
234
|
...rest,
|
|
233
235
|
ref: forwardedRef,
|
|
234
236
|
componentName: "PopoverClose",
|
|
235
|
-
onPress:
|
|
237
|
+
onPress: composeEventHandlers(
|
|
236
238
|
props.onPress,
|
|
237
239
|
() => context.onOpenChange(!1, "press")
|
|
238
240
|
)
|
|
239
241
|
}
|
|
240
242
|
);
|
|
241
|
-
}), PopoverArrow =
|
|
243
|
+
}), PopoverArrow = PopperArrow.styleable(
|
|
242
244
|
function(props, forwardedRef) {
|
|
243
245
|
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
244
|
-
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */
|
|
245
|
-
|
|
246
|
+
return useSheetBreakpointActive(context.sheetBreakpoint) ? null : /* @__PURE__ */ jsx(
|
|
247
|
+
PopperArrow,
|
|
246
248
|
{
|
|
247
249
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
248
250
|
componentName: "PopoverArrow",
|
|
@@ -251,7 +253,7 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
251
253
|
}
|
|
252
254
|
);
|
|
253
255
|
}
|
|
254
|
-
), Popover =
|
|
256
|
+
), Popover = withStaticProperties(
|
|
255
257
|
React.forwardRef(
|
|
256
258
|
(props, forwardedRef) => {
|
|
257
259
|
const {
|
|
@@ -264,15 +266,15 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
264
266
|
hoverable,
|
|
265
267
|
disableFocus,
|
|
266
268
|
...restProps
|
|
267
|
-
} = props, id = React.useId(), { when, AdaptProvider } =
|
|
268
|
-
Contents: React.useCallback(() => /* @__PURE__ */
|
|
269
|
-
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), viaRef = React.useRef(), [open, setOpen] =
|
|
269
|
+
} = props, id = React.useId(), { when, AdaptProvider } = useAdaptParent({
|
|
270
|
+
Contents: React.useCallback(() => /* @__PURE__ */ jsx(PortalHost, { name: `${id}PopoverContents` }), [])
|
|
271
|
+
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), viaRef = React.useRef(), [open, setOpen] = useControllableState({
|
|
270
272
|
prop: openProp,
|
|
271
273
|
defaultProp: defaultOpen || !1,
|
|
272
274
|
onChange: (val) => {
|
|
273
275
|
onOpenChange == null || onOpenChange(val, viaRef.current);
|
|
274
276
|
}
|
|
275
|
-
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext =
|
|
277
|
+
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = useFloatingContext({
|
|
276
278
|
open,
|
|
277
279
|
setOpen: (val, via) => {
|
|
278
280
|
viaRef.current = via, setOpen(val);
|
|
@@ -294,7 +296,7 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
294
296
|
onOpenChange: (val, via) => {
|
|
295
297
|
viaRef.current = via, setOpen(val);
|
|
296
298
|
},
|
|
297
|
-
onOpenToggle:
|
|
299
|
+
onOpenToggle: useEvent(() => {
|
|
298
300
|
open && sheetActive || setOpen(!open);
|
|
299
301
|
}),
|
|
300
302
|
hasCustomAnchor,
|
|
@@ -302,16 +304,16 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
302
304
|
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(!0), []),
|
|
303
305
|
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(!1), []),
|
|
304
306
|
keepChildrenMounted
|
|
305
|
-
}, contents = /* @__PURE__ */
|
|
306
|
-
|
|
307
|
+
}, contents = /* @__PURE__ */ jsx(
|
|
308
|
+
Popper,
|
|
307
309
|
{
|
|
308
310
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
309
311
|
stayInFrame: !0,
|
|
310
312
|
...restProps,
|
|
311
|
-
children: /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ jsx(PopoverContext.Provider, { scope: __scopePopover, ...popoverContext, children: /* @__PURE__ */ jsx(PopoverSheetController, { onOpenChange: setOpen, children }) })
|
|
312
314
|
}
|
|
313
315
|
);
|
|
314
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ jsx(AdaptProvider, { children: isWeb ? /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, { value: floatingContext, children: contents }) : contents });
|
|
315
317
|
}
|
|
316
318
|
),
|
|
317
319
|
{
|
|
@@ -320,9 +322,9 @@ const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
|
320
322
|
Trigger: PopoverTrigger,
|
|
321
323
|
Content: PopoverContent,
|
|
322
324
|
Close: PopoverClose,
|
|
323
|
-
Adapt
|
|
324
|
-
ScrollView
|
|
325
|
-
Sheet:
|
|
325
|
+
Adapt,
|
|
326
|
+
ScrollView,
|
|
327
|
+
Sheet: Sheet.Controlled
|
|
326
328
|
}
|
|
327
329
|
);
|
|
328
330
|
function getState(open) {
|
|
@@ -332,9 +334,9 @@ const PopoverSheetController = ({
|
|
|
332
334
|
__scopePopover,
|
|
333
335
|
...props
|
|
334
336
|
}) => {
|
|
335
|
-
const context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet =
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
|
|
337
|
+
const context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = useGet(showSheet);
|
|
338
|
+
return /* @__PURE__ */ jsx(
|
|
339
|
+
SheetController,
|
|
338
340
|
{
|
|
339
341
|
onOpenChange: (val) => {
|
|
340
342
|
getShowSheet() && props.onOpenChange(val);
|
|
@@ -345,14 +347,13 @@ const PopoverSheetController = ({
|
|
|
345
347
|
}
|
|
346
348
|
);
|
|
347
349
|
}, useSheetBreakpointActive = (breakpoint) => {
|
|
348
|
-
const media =
|
|
350
|
+
const media = useMedia();
|
|
349
351
|
return typeof breakpoint == "boolean" || !breakpoint ? !!breakpoint : media[breakpoint];
|
|
350
352
|
}, useShowPopoverSheet = (context) => {
|
|
351
353
|
const breakpointActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
352
354
|
return context.open === !1 ? !1 : breakpointActive;
|
|
353
355
|
};
|
|
354
|
-
|
|
355
|
-
0 && (module.exports = {
|
|
356
|
+
export {
|
|
356
357
|
Popover,
|
|
357
358
|
PopoverAnchor,
|
|
358
359
|
PopoverArrow,
|
|
@@ -361,5 +362,5 @@ const PopoverSheetController = ({
|
|
|
361
362
|
PopoverContext,
|
|
362
363
|
PopoverTrigger,
|
|
363
364
|
usePopoverContext
|
|
364
|
-
}
|
|
365
|
+
};
|
|
365
366
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Popover.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,OAAO;AAGP,SAAS,OAAO,sBAAsB;AACtC,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC,SAAS,aAAa;AAStB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,+BAA+B;AAExC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB,4BAA4B;AAO3D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,QAAQ,YAAY,kBAAkB;AAE/C,SAAS,oBAAoB;AAC7B,SAAS,OAAO,uBAAuB;AAEvC,SAAS,cAAc;AACvB,SAAS,4BAA4B;AACrC,YAAY,WAAW;AACvB,SAAS,UAAU,kBAAkB;AAErC,SAAS,0BAA0B;AAkE/B,cA2ME,YA3MF;AA1BJ,MAAM,gBAAgB,g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ropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var src_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(src_exports);
|
|
15
|
-
__reExport(src_exports, require("./Popover"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./useFloatingContext"), module.exports);
|
|
17
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
18
|
-
0 && (module.exports = {
|
|
19
|
-
...require("./Popover"),
|
|
20
|
-
...require("./useFloatingContext")
|
|
21
|
-
});
|
|
1
|
+
export * from "./Popover";
|
|
2
|
+
export * from "./useFloatingContext";
|
|
22
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var useFloatingContext_native_exports = {};
|
|
17
|
-
__export(useFloatingContext_native_exports, {
|
|
18
|
-
useFloatingContext: () => useFloatingContext
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(useFloatingContext_native_exports);
|
|
21
|
-
var import_react = require("react");
|
|
22
|
-
const useFloatingContext = () => (0, import_react.useCallback)(() => {
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
const useFloatingContext = () => useCallback(() => {
|
|
23
3
|
}, []);
|
|
24
|
-
|
|
25
|
-
0 && (module.exports = {
|
|
4
|
+
export {
|
|
26
5
|
useFloatingContext
|
|
27
|
-
}
|
|
6
|
+
};
|
|
28
7
|
//# sourceMappingURL=useFloatingContext.native.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useFloatingContext.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAgB,mBAAmB;AAG5B,MAAM,qBAAqB,MAAM,YAAY,MAAM;AAAC,GAAG,CAAC,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/popover",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.23",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@floating-ui/react": "^0.26.6",
|
|
36
|
-
"@tamagui/adapt": "1.88.
|
|
37
|
-
"@tamagui/animate": "1.88.
|
|
38
|
-
"@tamagui/aria-hidden": "1.88.
|
|
39
|
-
"@tamagui/compose-refs": "1.88.
|
|
40
|
-
"@tamagui/constants": "1.88.
|
|
41
|
-
"@tamagui/core": "1.88.
|
|
42
|
-
"@tamagui/dismissable": "1.88.
|
|
43
|
-
"@tamagui/floating": "1.88.
|
|
44
|
-
"@tamagui/focus-scope": "1.88.
|
|
45
|
-
"@tamagui/helpers": "1.88.
|
|
46
|
-
"@tamagui/polyfill-dev": "1.88.
|
|
47
|
-
"@tamagui/popper": "1.88.
|
|
48
|
-
"@tamagui/portal": "1.88.
|
|
49
|
-
"@tamagui/remove-scroll": "1.88.
|
|
50
|
-
"@tamagui/scroll-view": "1.88.
|
|
51
|
-
"@tamagui/sheet": "1.88.
|
|
52
|
-
"@tamagui/stacks": "1.88.
|
|
53
|
-
"@tamagui/use-controllable-state": "1.88.
|
|
36
|
+
"@tamagui/adapt": "1.88.23",
|
|
37
|
+
"@tamagui/animate": "1.88.23",
|
|
38
|
+
"@tamagui/aria-hidden": "1.88.23",
|
|
39
|
+
"@tamagui/compose-refs": "1.88.23",
|
|
40
|
+
"@tamagui/constants": "1.88.23",
|
|
41
|
+
"@tamagui/core": "1.88.23",
|
|
42
|
+
"@tamagui/dismissable": "1.88.23",
|
|
43
|
+
"@tamagui/floating": "1.88.23",
|
|
44
|
+
"@tamagui/focus-scope": "1.88.23",
|
|
45
|
+
"@tamagui/helpers": "1.88.23",
|
|
46
|
+
"@tamagui/polyfill-dev": "1.88.23",
|
|
47
|
+
"@tamagui/popper": "1.88.23",
|
|
48
|
+
"@tamagui/portal": "1.88.23",
|
|
49
|
+
"@tamagui/remove-scroll": "1.88.23",
|
|
50
|
+
"@tamagui/scroll-view": "1.88.23",
|
|
51
|
+
"@tamagui/sheet": "1.88.23",
|
|
52
|
+
"@tamagui/stacks": "1.88.23",
|
|
53
|
+
"@tamagui/use-controllable-state": "1.88.23",
|
|
54
54
|
"react-freeze": "^1.0.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-native": "*"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@tamagui/build": "1.88.
|
|
61
|
+
"@tamagui/build": "1.88.23",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-native": "^0.72.6"
|
|
64
64
|
},
|
package/types/Popover.d.ts
CHANGED
|
@@ -226,12 +226,19 @@ export declare const Popover: React.ForwardRefExoticComponent<PopperProps & {
|
|
|
226
226
|
*/
|
|
227
227
|
chromeless?: boolean | "all" | undefined;
|
|
228
228
|
}>>) => null>;
|
|
229
|
-
Handle: (
|
|
230
|
-
elevation?: number | SizeTokens | undefined;
|
|
231
|
-
fullscreen?: boolean | undefined;
|
|
229
|
+
Handle: React.ForwardRefExoticComponent<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, {}>> & {
|
|
232
230
|
open?: boolean | undefined;
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
} & React.RefAttributes<any>> & import("@tamagui/core").StaticComponentObject<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, {}>> & {
|
|
232
|
+
open?: boolean | undefined;
|
|
233
|
+
}, any, any, any, {
|
|
234
|
+
open?: boolean | undefined;
|
|
235
|
+
}, {}> & Omit<{}, "staticConfig" | "extractable" | "styleable"> & {
|
|
236
|
+
__tama: [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, {}>> & {
|
|
237
|
+
open?: boolean | undefined;
|
|
238
|
+
}, any, any, any, {
|
|
239
|
+
open?: boolean | undefined;
|
|
240
|
+
}, {}];
|
|
241
|
+
};
|
|
235
242
|
ScrollView: React.ForwardRefExoticComponent<Omit<import("@tamagui/web/types/interfaces/TamaguiComponentPropsBaseBase").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
236
243
|
fullscreen?: boolean | undefined;
|
|
237
244
|
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
package/types/Popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","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