@tamagui/popover 1.74.2 → 1.74.4
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 +315 -0
- package/dist/esm/Popover.native.js.map +6 -0
- package/dist/esm/index.native.js +3 -0
- package/dist/esm/index.native.js.map +6 -0
- package/dist/esm/useFloatingContext.native.js +7 -0
- package/dist/esm/useFloatingContext.native.js.map +6 -0
- package/package.json +18 -18
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import "@tamagui/polyfill-dev";
|
|
2
|
+
import { Adapt, useAdaptParent } from "@tamagui/adapt";
|
|
3
|
+
import { Animate } from "@tamagui/animate";
|
|
4
|
+
import { hideOthers } from "@tamagui/aria-hidden";
|
|
5
|
+
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
6
|
+
import {
|
|
7
|
+
Stack,
|
|
8
|
+
Theme,
|
|
9
|
+
View,
|
|
10
|
+
composeEventHandlers,
|
|
11
|
+
createStyledContext,
|
|
12
|
+
isWeb,
|
|
13
|
+
useEvent,
|
|
14
|
+
useGet,
|
|
15
|
+
useMedia,
|
|
16
|
+
useThemeName,
|
|
17
|
+
withStaticProperties
|
|
18
|
+
} from "@tamagui/core";
|
|
19
|
+
import { FloatingOverrideContext } from "@tamagui/floating";
|
|
20
|
+
import { FocusScope } from "@tamagui/focus-scope";
|
|
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 { Freeze } from "react-freeze";
|
|
37
|
+
import { Platform, ScrollView } from "react-native";
|
|
38
|
+
import { useFloatingContext } from "./useFloatingContext";
|
|
39
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
+
const POPOVER_SCOPE = "PopoverScope", PopoverContext = createStyledContext({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React.forwardRef(function(props, forwardedRef) {
|
|
41
|
+
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
42
|
+
return React.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsx(
|
|
43
|
+
PopperAnchor,
|
|
44
|
+
{
|
|
45
|
+
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
46
|
+
...rest,
|
|
47
|
+
ref: forwardedRef
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}), PopoverTrigger = React.forwardRef(function(props, forwardedRef) {
|
|
51
|
+
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef), trigger = /* @__PURE__ */ jsx(
|
|
52
|
+
View,
|
|
53
|
+
{
|
|
54
|
+
"aria-haspopup": "dialog",
|
|
55
|
+
"aria-expanded": context.open,
|
|
56
|
+
"data-state": getState(context.open),
|
|
57
|
+
...rest,
|
|
58
|
+
ref: composedTriggerRef,
|
|
59
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperAnchor, { __scopePopper: __scopePopover || POPOVER_SCOPE, asChild: !0, children: trigger });
|
|
63
|
+
}), PopoverContent = PopperContentFrame.extractable(
|
|
64
|
+
React.forwardRef(function(props, forwardedRef) {
|
|
65
|
+
const {
|
|
66
|
+
allowPinchZoom,
|
|
67
|
+
trapFocus,
|
|
68
|
+
disableRemoveScroll = !0,
|
|
69
|
+
zIndex,
|
|
70
|
+
__scopePopover,
|
|
71
|
+
...contentImplProps
|
|
72
|
+
} = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), isRightClickOutsideRef = React.useRef(!1);
|
|
73
|
+
return React.useEffect(() => {
|
|
74
|
+
if (!context.open)
|
|
75
|
+
return;
|
|
76
|
+
const content = contentRef.current;
|
|
77
|
+
if (content)
|
|
78
|
+
return hideOthers(content);
|
|
79
|
+
}, [context.open]), /* @__PURE__ */ jsx(PopoverContentPortal, { __scopePopover, zIndex: props.zIndex, children: /* @__PURE__ */ jsx(Stack, { pointerEvents: context.open ? "auto" : "none", children: /* @__PURE__ */ jsx(
|
|
80
|
+
PopoverContentImpl,
|
|
81
|
+
{
|
|
82
|
+
...contentImplProps,
|
|
83
|
+
disableRemoveScroll,
|
|
84
|
+
ref: composedRefs,
|
|
85
|
+
__scopePopover,
|
|
86
|
+
trapFocus: trapFocus ?? context.open,
|
|
87
|
+
disableOutsidePointerEvents: !0,
|
|
88
|
+
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
89
|
+
event.preventDefault(), isRightClickOutsideRef.current || context.triggerRef.current?.focus();
|
|
90
|
+
}),
|
|
91
|
+
onPointerDownOutside: composeEventHandlers(
|
|
92
|
+
props.onPointerDownOutside,
|
|
93
|
+
(event) => {
|
|
94
|
+
const originalEvent = event.detail.originalEvent, ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === !0, isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
95
|
+
isRightClickOutsideRef.current = isRightClick;
|
|
96
|
+
},
|
|
97
|
+
{ checkDefaultPrevented: !1 }
|
|
98
|
+
),
|
|
99
|
+
onFocusOutside: composeEventHandlers(
|
|
100
|
+
props.onFocusOutside,
|
|
101
|
+
(event) => event.preventDefault(),
|
|
102
|
+
{ checkDefaultPrevented: !1 }
|
|
103
|
+
)
|
|
104
|
+
}
|
|
105
|
+
) }) });
|
|
106
|
+
})
|
|
107
|
+
);
|
|
108
|
+
function PopoverRepropagateContext(props) {
|
|
109
|
+
return /* @__PURE__ */ jsx(PopperContext.Provider, { ...props.popperContext, children: /* @__PURE__ */ jsx(PopoverContext.Provider, { ...props.context, children: props.children }) });
|
|
110
|
+
}
|
|
111
|
+
function PopoverContentPortal(props) {
|
|
112
|
+
const { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = usePopperContext(__scopePopover || POPOVER_SCOPE), themeName = useThemeName();
|
|
113
|
+
let contents = props.children;
|
|
114
|
+
return (Platform.OS === "android" || Platform.OS === "ios") && (contents = /* @__PURE__ */ jsx(PopoverRepropagateContext, { popperContext, context, children: props.children })), /* @__PURE__ */ jsx(Portal, { zIndex, children: /* @__PURE__ */ jsxs(Theme, { forceClassName: !0, name: themeName, children: [
|
|
115
|
+
!!context.open && !context.breakpointActive && /* @__PURE__ */ jsx(
|
|
116
|
+
YStack,
|
|
117
|
+
{
|
|
118
|
+
fullscreen: !0,
|
|
119
|
+
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
contents
|
|
123
|
+
] }) });
|
|
124
|
+
}
|
|
125
|
+
const PopoverContentImpl = React.forwardRef(function(props, forwardedRef) {
|
|
126
|
+
const {
|
|
127
|
+
trapFocus,
|
|
128
|
+
__scopePopover,
|
|
129
|
+
onOpenAutoFocus,
|
|
130
|
+
onCloseAutoFocus,
|
|
131
|
+
disableOutsidePointerEvents,
|
|
132
|
+
disableFocusScope,
|
|
133
|
+
onEscapeKeyDown,
|
|
134
|
+
onPointerDownOutside,
|
|
135
|
+
onFocusOutside,
|
|
136
|
+
onInteractOutside,
|
|
137
|
+
children,
|
|
138
|
+
disableRemoveScroll,
|
|
139
|
+
freezeContentsWhenHidden,
|
|
140
|
+
...contentProps
|
|
141
|
+
} = 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]);
|
|
142
|
+
if (open && isFullyHidden && setIsFullyHidden(!1), !keepChildrenMounted && isFullyHidden)
|
|
143
|
+
return null;
|
|
144
|
+
if (context.breakpointActive) {
|
|
145
|
+
const childrenWithoutScrollView = React.Children.toArray(children).map((child) => React.isValidElement(child) && child.type === ScrollView ? child.props.children : child);
|
|
146
|
+
let content = childrenWithoutScrollView;
|
|
147
|
+
return (Platform.OS === "android" || Platform.OS === "ios") && (content = /* @__PURE__ */ jsx(
|
|
148
|
+
PopperContext.Provider,
|
|
149
|
+
{
|
|
150
|
+
scope: __scopePopover || POPOVER_SCOPE,
|
|
151
|
+
...popperContext,
|
|
152
|
+
children: childrenWithoutScrollView
|
|
153
|
+
}
|
|
154
|
+
)), /* @__PURE__ */ jsx(PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
155
|
+
}
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
157
|
+
Animate,
|
|
158
|
+
{
|
|
159
|
+
type: "presence",
|
|
160
|
+
present: !!open,
|
|
161
|
+
keepChildrenMounted,
|
|
162
|
+
onExitComplete: () => {
|
|
163
|
+
setIsFullyHidden(!0);
|
|
164
|
+
},
|
|
165
|
+
children: /* @__PURE__ */ jsx(
|
|
166
|
+
FreezeToLastContents,
|
|
167
|
+
{
|
|
168
|
+
freeze: !!(isFullyHidden && freezeContentsWhenHidden),
|
|
169
|
+
children: /* @__PURE__ */ jsx(
|
|
170
|
+
PopperContent,
|
|
171
|
+
{
|
|
172
|
+
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
173
|
+
"data-state": getState(open),
|
|
174
|
+
id: context.contentId,
|
|
175
|
+
ref: forwardedRef,
|
|
176
|
+
...contentProps,
|
|
177
|
+
children: /* @__PURE__ */ jsx(
|
|
178
|
+
RemoveScroll,
|
|
179
|
+
{
|
|
180
|
+
enabled: disableRemoveScroll ? !1 : open,
|
|
181
|
+
allowPinchZoom: !0,
|
|
182
|
+
removeScrollBar: !1,
|
|
183
|
+
style: {
|
|
184
|
+
display: "contents"
|
|
185
|
+
},
|
|
186
|
+
children: /* @__PURE__ */ jsx(
|
|
187
|
+
FocusScope,
|
|
188
|
+
{
|
|
189
|
+
loop: !0,
|
|
190
|
+
enabled: disableFocusScope ? !1 : open,
|
|
191
|
+
trapped: trapFocus,
|
|
192
|
+
onMountAutoFocus: onOpenAutoFocus,
|
|
193
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
194
|
+
children: contents
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
},
|
|
200
|
+
context.contentId
|
|
201
|
+
)
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
}
|
|
205
|
+
);
|
|
206
|
+
}), FreezeToLastContents = (props) => {
|
|
207
|
+
const last = React.useRef();
|
|
208
|
+
return props.freeze || (last.current = props.children), /* @__PURE__ */ jsx(Freeze, { placeholder: last.current, ...props });
|
|
209
|
+
}, PopoverClose = React.forwardRef(function(props, forwardedRef) {
|
|
210
|
+
const { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
211
|
+
return /* @__PURE__ */ jsx(
|
|
212
|
+
YStack,
|
|
213
|
+
{
|
|
214
|
+
...rest,
|
|
215
|
+
ref: forwardedRef,
|
|
216
|
+
componentName: "PopoverClose",
|
|
217
|
+
onPress: composeEventHandlers(
|
|
218
|
+
props.onPress,
|
|
219
|
+
() => context.onOpenChange(!1)
|
|
220
|
+
)
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
}), PopoverArrow = React.forwardRef(function(props, forwardedRef) {
|
|
224
|
+
const { __scopePopover, ...rest } = props;
|
|
225
|
+
return /* @__PURE__ */ jsx(
|
|
226
|
+
PopperArrow,
|
|
227
|
+
{
|
|
228
|
+
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
229
|
+
componentName: "PopoverArrow",
|
|
230
|
+
...rest,
|
|
231
|
+
ref: forwardedRef
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}), Popover = withStaticProperties(
|
|
235
|
+
function(props) {
|
|
236
|
+
const {
|
|
237
|
+
children,
|
|
238
|
+
open: openProp,
|
|
239
|
+
defaultOpen,
|
|
240
|
+
onOpenChange,
|
|
241
|
+
__scopePopover,
|
|
242
|
+
keepChildrenMounted,
|
|
243
|
+
...restProps
|
|
244
|
+
} = props, id = React.useId(), { when, AdaptProvider } = useAdaptParent({
|
|
245
|
+
Contents: React.useCallback(() => /* @__PURE__ */ jsx(PortalHost, { name: `${id}PopoverContents` }), [])
|
|
246
|
+
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), [open, setOpen] = useControllableState({
|
|
247
|
+
prop: openProp,
|
|
248
|
+
defaultProp: defaultOpen || !1,
|
|
249
|
+
onChange: onOpenChange
|
|
250
|
+
}), breakpointActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = useFloatingContext({ open, setOpen, breakpointActive }), popoverContext = {
|
|
251
|
+
id,
|
|
252
|
+
sheetBreakpoint,
|
|
253
|
+
contentId: React.useId(),
|
|
254
|
+
triggerRef,
|
|
255
|
+
open,
|
|
256
|
+
breakpointActive,
|
|
257
|
+
onOpenChange: setOpen,
|
|
258
|
+
onOpenToggle: useEvent(() => {
|
|
259
|
+
open && breakpointActive || setOpen(!open);
|
|
260
|
+
}),
|
|
261
|
+
hasCustomAnchor,
|
|
262
|
+
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(!0), []),
|
|
263
|
+
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(!1), []),
|
|
264
|
+
keepChildrenMounted
|
|
265
|
+
}, contents = /* @__PURE__ */ jsx(Popper, { __scopePopper: __scopePopover || POPOVER_SCOPE, stayInFrame: !0, ...restProps, children: /* @__PURE__ */ jsx(PopoverContext.Provider, { scope: __scopePopover, ...popoverContext, children: /* @__PURE__ */ jsx(PopoverSheetController, { onOpenChange: setOpen, children }) }) });
|
|
266
|
+
return /* @__PURE__ */ jsx(AdaptProvider, { children: isWeb ? /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, { value: floatingContext, children: contents }) : contents });
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
Anchor: PopoverAnchor,
|
|
270
|
+
Arrow: PopoverArrow,
|
|
271
|
+
Trigger: PopoverTrigger,
|
|
272
|
+
Content: PopoverContent,
|
|
273
|
+
Close: PopoverClose,
|
|
274
|
+
Adapt,
|
|
275
|
+
ScrollView,
|
|
276
|
+
Sheet: Sheet.Controlled
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
function getState(open) {
|
|
280
|
+
return open ? "open" : "closed";
|
|
281
|
+
}
|
|
282
|
+
const PopoverSheetController = ({
|
|
283
|
+
__scopePopover,
|
|
284
|
+
...props
|
|
285
|
+
}) => {
|
|
286
|
+
const context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = useGet(showSheet);
|
|
287
|
+
return /* @__PURE__ */ jsx(
|
|
288
|
+
SheetController,
|
|
289
|
+
{
|
|
290
|
+
onOpenChange: (val) => {
|
|
291
|
+
getShowSheet() && props.onOpenChange(val);
|
|
292
|
+
},
|
|
293
|
+
open: context.open,
|
|
294
|
+
hidden: breakpointActive === !1,
|
|
295
|
+
children: props.children
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
}, useSheetBreakpointActive = (breakpoint) => {
|
|
299
|
+
const media = useMedia();
|
|
300
|
+
return typeof breakpoint == "boolean" || !breakpoint ? !!breakpoint : media[breakpoint];
|
|
301
|
+
}, useShowPopoverSheet = (context) => {
|
|
302
|
+
const breakpointActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
303
|
+
return context.open === !1 ? !1 : breakpointActive;
|
|
304
|
+
};
|
|
305
|
+
export {
|
|
306
|
+
Popover,
|
|
307
|
+
PopoverAnchor,
|
|
308
|
+
PopoverArrow,
|
|
309
|
+
PopoverClose,
|
|
310
|
+
PopoverContent,
|
|
311
|
+
PopoverContext,
|
|
312
|
+
PopoverTrigger,
|
|
313
|
+
usePopoverContext
|
|
314
|
+
};
|
|
315
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Popover.tsx"],
|
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,SAAS,OAAO,sBAAsB;AACtC,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,+BAA+B;AACxC,SAAS,kBAAmC;AAC5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AACP,SAAS,QAAQ,YAAY,kBAAkB;AAC/C,SAAS,oBAAuC;AAChD,SAAS,OAAO,uBAAuB;AACvC,SAAS,cAA2B;AACpC,SAAS,4BAA4B;AACrC,YAAY,WAAW;AACvB,SAAS,cAAc;AACvB,SAAS,UAAU,kBAAkB;AAErC,SAAS,0BAA0B;AAuD/B,cAqKE,YArKF;AA1BJ,MAAM,gBAAgB,gBAET,iBAAiB,oBAAyC,CAAC,CAAQ,GAEnE,oBAAoB,eAAe,kBAQnC,gBAAgB,MAAM,WAGjC,SAAuB,OAA+C,cAAc;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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/popover",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.4",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@floating-ui/react": "^0.24.7",
|
|
35
|
-
"@tamagui/adapt": "1.74.
|
|
36
|
-
"@tamagui/animate": "1.74.
|
|
37
|
-
"@tamagui/aria-hidden": "1.74.
|
|
38
|
-
"@tamagui/compose-refs": "1.74.
|
|
39
|
-
"@tamagui/core": "1.74.
|
|
40
|
-
"@tamagui/dismissable": "1.74.
|
|
41
|
-
"@tamagui/floating": "1.74.
|
|
42
|
-
"@tamagui/focus-scope": "1.74.
|
|
43
|
-
"@tamagui/polyfill-dev": "1.74.
|
|
44
|
-
"@tamagui/popper": "1.74.
|
|
45
|
-
"@tamagui/portal": "1.74.
|
|
46
|
-
"@tamagui/remove-scroll": "1.74.
|
|
47
|
-
"@tamagui/scroll-view": "1.74.
|
|
48
|
-
"@tamagui/sheet": "1.74.
|
|
49
|
-
"@tamagui/stacks": "1.74.
|
|
50
|
-
"@tamagui/use-controllable-state": "1.74.
|
|
35
|
+
"@tamagui/adapt": "1.74.4",
|
|
36
|
+
"@tamagui/animate": "1.74.4",
|
|
37
|
+
"@tamagui/aria-hidden": "1.74.4",
|
|
38
|
+
"@tamagui/compose-refs": "1.74.4",
|
|
39
|
+
"@tamagui/core": "1.74.4",
|
|
40
|
+
"@tamagui/dismissable": "1.74.4",
|
|
41
|
+
"@tamagui/floating": "1.74.4",
|
|
42
|
+
"@tamagui/focus-scope": "1.74.4",
|
|
43
|
+
"@tamagui/polyfill-dev": "1.74.4",
|
|
44
|
+
"@tamagui/popper": "1.74.4",
|
|
45
|
+
"@tamagui/portal": "1.74.4",
|
|
46
|
+
"@tamagui/remove-scroll": "1.74.4",
|
|
47
|
+
"@tamagui/scroll-view": "1.74.4",
|
|
48
|
+
"@tamagui/sheet": "1.74.4",
|
|
49
|
+
"@tamagui/stacks": "1.74.4",
|
|
50
|
+
"@tamagui/use-controllable-state": "1.74.4",
|
|
51
51
|
"react-freeze": "^1.0.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react-native": "*"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@tamagui/build": "1.74.
|
|
58
|
+
"@tamagui/build": "1.74.4",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-native": "^0.72.1"
|
|
61
61
|
},
|