@tamagui/menu 1.82.1 → 1.82.3
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/package.json +5 -5
- package/dist/cjs/createNativeMenu/createNativeMenu.android.js +0 -263
- package/dist/cjs/createNativeMenu/createNativeMenu.android.js.map +0 -6
- package/dist/cjs/createNativeMenu/createNativeMenu.ios.js +0 -336
- package/dist/cjs/createNativeMenu/createNativeMenu.ios.js.map +0 -6
- package/dist/cjs/createNativeMenu/createNativeMenu.js +0 -46
- package/dist/cjs/createNativeMenu/createNativeMenu.js.map +0 -6
- package/dist/cjs/createNativeMenu/createNativeMenu.native.js +0 -47
- package/dist/cjs/createNativeMenu/createNativeMenu.native.js.map +0 -6
- package/dist/cjs/createNativeMenu/createNativeMenuTypes.js +0 -14
- package/dist/cjs/createNativeMenu/createNativeMenuTypes.js.map +0 -6
- package/dist/cjs/createNativeMenu/createNativeMenuTypes.native.js +0 -15
- package/dist/cjs/createNativeMenu/createNativeMenuTypes.native.js.map +0 -6
- package/dist/cjs/createNativeMenu/index.js +0 -21
- package/dist/cjs/createNativeMenu/index.js.map +0 -6
- package/dist/cjs/createNativeMenu/index.native.js +0 -22
- package/dist/cjs/createNativeMenu/index.native.js.map +0 -6
- package/dist/cjs/createNativeMenu/utils.js +0 -78
- package/dist/cjs/createNativeMenu/utils.js.map +0 -6
- package/dist/cjs/createNativeMenu/utils.native.js +0 -79
- package/dist/cjs/createNativeMenu/utils.native.js.map +0 -6
- package/dist/cjs/createNativeMenu/withNativeMenu.js +0 -40
- package/dist/cjs/createNativeMenu/withNativeMenu.js.map +0 -6
- package/dist/cjs/createNativeMenu/withNativeMenu.native.js +0 -41
- package/dist/cjs/createNativeMenu/withNativeMenu.native.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenu.android.js +0 -251
- package/dist/esm/createNativeMenu/createNativeMenu.android.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenu.ios.js +0 -323
- package/dist/esm/createNativeMenu/createNativeMenu.ios.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenu.js +0 -26
- package/dist/esm/createNativeMenu/createNativeMenu.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenu.native.js +0 -26
- package/dist/esm/createNativeMenu/createNativeMenu.native.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenuTypes.js +0 -1
- package/dist/esm/createNativeMenu/createNativeMenuTypes.js.map +0 -6
- package/dist/esm/createNativeMenu/createNativeMenuTypes.native.js +0 -1
- package/dist/esm/createNativeMenu/createNativeMenuTypes.native.js.map +0 -6
- package/dist/esm/createNativeMenu/index.js +0 -3
- package/dist/esm/createNativeMenu/index.js.map +0 -6
- package/dist/esm/createNativeMenu/index.native.js +0 -3
- package/dist/esm/createNativeMenu/index.native.js.map +0 -6
- package/dist/esm/createNativeMenu/utils.js +0 -47
- package/dist/esm/createNativeMenu/utils.js.map +0 -6
- package/dist/esm/createNativeMenu/utils.native.js +0 -47
- package/dist/esm/createNativeMenu/utils.native.js.map +0 -6
- package/dist/esm/createNativeMenu/withNativeMenu.js +0 -21
- package/dist/esm/createNativeMenu/withNativeMenu.js.map +0 -6
- package/dist/esm/createNativeMenu/withNativeMenu.native.js +0 -21
- package/dist/esm/createNativeMenu/withNativeMenu.native.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenu.android.js +0 -245
- package/dist/jsx/createNativeMenu/createNativeMenu.android.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenu.ios.js +0 -322
- package/dist/jsx/createNativeMenu/createNativeMenu.ios.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenu.js +0 -26
- package/dist/jsx/createNativeMenu/createNativeMenu.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenu.native.js +0 -26
- package/dist/jsx/createNativeMenu/createNativeMenu.native.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenuTypes.js +0 -1
- package/dist/jsx/createNativeMenu/createNativeMenuTypes.js.map +0 -6
- package/dist/jsx/createNativeMenu/createNativeMenuTypes.native.js +0 -1
- package/dist/jsx/createNativeMenu/createNativeMenuTypes.native.js.map +0 -6
- package/dist/jsx/createNativeMenu/index.js +0 -3
- package/dist/jsx/createNativeMenu/index.js.map +0 -6
- package/dist/jsx/createNativeMenu/index.native.js +0 -3
- package/dist/jsx/createNativeMenu/index.native.js.map +0 -6
- package/dist/jsx/createNativeMenu/utils.js +0 -46
- package/dist/jsx/createNativeMenu/utils.js.map +0 -6
- package/dist/jsx/createNativeMenu/utils.native.js +0 -49
- package/dist/jsx/createNativeMenu/utils.native.js.map +0 -6
- package/dist/jsx/createNativeMenu/withNativeMenu.js +0 -20
- package/dist/jsx/createNativeMenu/withNativeMenu.js.map +0 -6
- package/dist/jsx/createNativeMenu/withNativeMenu.native.js +0 -20
- package/dist/jsx/createNativeMenu/withNativeMenu.native.js.map +0 -6
- package/types/createNativeMenu/createNativeMenu.android.d.ts.map +0 -1
- package/types/createNativeMenu/createNativeMenu.d.ts.map +0 -1
- package/types/createNativeMenu/createNativeMenu.ios.d.ts.map +0 -1
- package/types/createNativeMenu/createNativeMenuTypes.d.ts.map +0 -1
- package/types/createNativeMenu/index.d.ts.map +0 -1
- package/types/createNativeMenu/utils.d.ts.map +0 -1
- package/types/createNativeMenu/withNativeMenu.d.ts.map +0 -1
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { withStaticProperties } from "@tamagui/core";
|
|
2
|
-
import { Children, cloneElement, useRef } from "react";
|
|
3
|
-
import { Image } from "react-native";
|
|
4
|
-
import {
|
|
5
|
-
ContextMenuButton,
|
|
6
|
-
ContextMenuView
|
|
7
|
-
} from "react-native-ios-context-menu";
|
|
8
|
-
import { View } from "tamagui";
|
|
9
|
-
import { NativePropProvider } from "../Menu";
|
|
10
|
-
import {
|
|
11
|
-
create,
|
|
12
|
-
filterNull,
|
|
13
|
-
flattenChildren,
|
|
14
|
-
isInstanceOfComponent,
|
|
15
|
-
pickChildren
|
|
16
|
-
} from "./utils";
|
|
17
|
-
const COMPONENTS_TO_IGNORE = ["Portal", "Radio"], createIosMenu = (MenuType) => {
|
|
18
|
-
const Trigger = create(({ children, asChild, ...rest }) => asChild ? cloneElement(children, {
|
|
19
|
-
...rest
|
|
20
|
-
}) : <View {...rest}>{children}</View>, `${MenuType}Trigger`), Auxiliary = create(({ children }) => <></>, `${MenuType}Auxiliary`), Group = create(({ children }) => <>{children}</>, `${MenuType}Group`), Content = create(({ children }) => (children || console.error(`Menu <Content /> children must be written directly inline.
|
|
21
|
-
|
|
22
|
-
You cannot wrap this component into its own component. It should look like this:
|
|
23
|
-
|
|
24
|
-
<Menu>
|
|
25
|
-
<Content>
|
|
26
|
-
<Item />
|
|
27
|
-
<Item />
|
|
28
|
-
</Content>
|
|
29
|
-
</Menu>
|
|
30
|
-
|
|
31
|
-
Notice that the <Item /> are all children of the <Content /> component. That's important.
|
|
32
|
-
|
|
33
|
-
If you want to use a custom component as your <Content />, you can use the create() method. But you still need to pass all items as children of <Content />.`), <>{children}</>), `${MenuType}Content`), ItemTitle = create(({ children }) => {
|
|
34
|
-
if (typeof children != "string")
|
|
35
|
-
throw new Error("Menu <ItemTitle /> child must be a string");
|
|
36
|
-
return <>{children}</>;
|
|
37
|
-
}, `${MenuType}ItemTitle`), ItemIcon = create((_) => <>{}</>, `${MenuType}ItemIcon`), ItemImage = create((_) => <>{}</>, `${MenuType}ItemImage`), ItemSubtitle = create(({ children }) => {
|
|
38
|
-
if (children && typeof children != "string")
|
|
39
|
-
throw new Error("Menu <ItemSubtitle /> child must be a string");
|
|
40
|
-
return <>{children}</>;
|
|
41
|
-
}, `${MenuType}ItemSubtitle`), Item = create(({ children }) => {
|
|
42
|
-
const titleChild = pickChildren(children, ItemTitle).targetChildren;
|
|
43
|
-
return typeof children != "string" && !(titleChild != null && titleChild.length) && console.error(
|
|
44
|
-
`Menu Invalid <Item />. It either needs <ItemTitle /> in the children.
|
|
45
|
-
|
|
46
|
-
<Item>
|
|
47
|
-
<ItemTitle>
|
|
48
|
-
Title here
|
|
49
|
-
</ItemTitle>
|
|
50
|
-
</Item>
|
|
51
|
-
`
|
|
52
|
-
), <>{children}</>;
|
|
53
|
-
}, `${MenuType}Item`), SubTrigger = create(({ children }) => {
|
|
54
|
-
const titleChild = pickChildren(children, ItemTitle).targetChildren;
|
|
55
|
-
return typeof children != "string" && !(titleChild != null && titleChild.length) && console.error(
|
|
56
|
-
`Menu Invalid <SubTrigger />. It either needs a string as the children, or a <ItemTitle /> in the children. However, it got neither.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<SubTrigger>
|
|
60
|
-
<ItemTitle>
|
|
61
|
-
Title here
|
|
62
|
-
</ItemTitle>
|
|
63
|
-
</SubTrigger>
|
|
64
|
-
`
|
|
65
|
-
), <>{children}</>;
|
|
66
|
-
}, `${MenuType}SubTrigger`), Sub = create((_) => <></>, `${MenuType}Sub`), SubContent = create((_) => <></>, `${MenuType}SubContent`), Preview = create((_) => <></>, `${MenuType}Preview`);
|
|
67
|
-
Preview.defaultProps = {
|
|
68
|
-
isResizeAnimated: !0
|
|
69
|
-
};
|
|
70
|
-
const CheckboxItem = create(({ children }) => <></>, `${MenuType}CheckboxItem`), Label = create(({ children }) => (typeof children != "string" && console.error("Menu <Label /> children must be a string."), <></>), `${MenuType}Label`), Menu = create((props) => {
|
|
71
|
-
var _a, _b, _c, _d, _e, _f;
|
|
72
|
-
const trigger = pickChildren(props.children, Trigger), content = (_a = pickChildren(
|
|
73
|
-
props.children,
|
|
74
|
-
Content,
|
|
75
|
-
COMPONENTS_TO_IGNORE
|
|
76
|
-
).targetChildren) == null ? void 0 : _a[0], callbacks = {}, getItemFromChild = (child, index) => {
|
|
77
|
-
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
78
|
-
let title;
|
|
79
|
-
const key = child.key ? `${child.key}` : `item-${index}`;
|
|
80
|
-
let subtitle;
|
|
81
|
-
const menuAttributes = [];
|
|
82
|
-
child.props.disabled && menuAttributes.push("disabled"), child.props.destructive && menuAttributes.push("destructive"), child.props.hidden && menuAttributes.push("hidden");
|
|
83
|
-
let icon;
|
|
84
|
-
if (typeof child.props.children == "string")
|
|
85
|
-
title = child.props.children;
|
|
86
|
-
else {
|
|
87
|
-
const titleChild = pickChildren(
|
|
88
|
-
child.props.children,
|
|
89
|
-
ItemTitle
|
|
90
|
-
).targetChildren, maybeTitle = child.props.textValue ?? ((_a2 = titleChild == null ? void 0 : titleChild[0]) == null ? void 0 : _a2.props.children);
|
|
91
|
-
typeof maybeTitle == "string" ? title = maybeTitle : console.error(
|
|
92
|
-
`Menu Invalid <${Menu}.Item key="${key}" /> Missing valid title. Make sure you do one of the following:
|
|
93
|
-
|
|
94
|
-
1. pass a string as the child of <${Menu}.ItemTitle />, nested directly inside of <${Menu}.Item />.
|
|
95
|
-
2. OR, use the textValue prop on <${Menu}.Item textValue="Some value" />`
|
|
96
|
-
);
|
|
97
|
-
const subtitleChild = pickChildren(
|
|
98
|
-
child.props.children,
|
|
99
|
-
ItemSubtitle
|
|
100
|
-
).targetChildren;
|
|
101
|
-
typeof ((_b2 = subtitleChild == null ? void 0 : subtitleChild[0]) == null ? void 0 : _b2.props.children) == "string" && (subtitle = subtitleChild[0].props.children);
|
|
102
|
-
const iconChildren = pickChildren(
|
|
103
|
-
child.props.children,
|
|
104
|
-
ItemIcon
|
|
105
|
-
).targetChildren;
|
|
106
|
-
if ((_c2 = iconChildren == null ? void 0 : iconChildren[0]) != null && _c2.props.iosIconName || (_d2 = iconChildren == null ? void 0 : iconChildren[0]) != null && _d2.props.ios) {
|
|
107
|
-
const iconConfiguration = (_e2 = iconChildren == null ? void 0 : iconChildren[0]) == null ? void 0 : _e2.props.ios;
|
|
108
|
-
icon = {
|
|
109
|
-
type: "IMAGE_SYSTEM",
|
|
110
|
-
imageValue: {
|
|
111
|
-
...iconConfiguration,
|
|
112
|
-
systemName: (iconConfiguration == null ? void 0 : iconConfiguration.name) ?? iconChildren[0].props.iosIconName
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
} else {
|
|
116
|
-
const imageChild = (_f2 = pickChildren(
|
|
117
|
-
child.props.children,
|
|
118
|
-
ItemImage
|
|
119
|
-
).targetChildren) == null ? void 0 : _f2[0];
|
|
120
|
-
if (imageChild && imageChild.props.source) {
|
|
121
|
-
const { source, ios: { lazy = !0, style } = {} } = imageChild.props;
|
|
122
|
-
typeof source == "object" && "uri" in source && source.uri ? icon = {
|
|
123
|
-
type: "IMAGE_REMOTE_URL",
|
|
124
|
-
imageValue: {
|
|
125
|
-
url: source.uri
|
|
126
|
-
},
|
|
127
|
-
imageLoadingConfig: {
|
|
128
|
-
shouldLazyLoad: lazy ?? !0
|
|
129
|
-
},
|
|
130
|
-
imageOptions: style
|
|
131
|
-
} : icon = {
|
|
132
|
-
type: "IMAGE_REQUIRE",
|
|
133
|
-
imageValue: Image.resolveAssetSource(imageChild.props.source)
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (title) {
|
|
139
|
-
const maybeIndexKey = typeof child.key == "string" && child.key.startsWith(".") ? child.key.substring(1) : void 0;
|
|
140
|
-
if (
|
|
141
|
-
// if the key doesn't exist as a string
|
|
142
|
-
(typeof child.key != "string" || // or if flattenChildren assigned the key as `.${key}${index}`
|
|
143
|
-
child.key.startsWith(".") && !isNaN(Number(maybeIndexKey))) && console.warn(
|
|
144
|
-
`Menu <Item /> is missing a unique key. Pass a unique key string for each item, such as: <Item key="${title.toLowerCase().replace(/ /g, "-") || `action-${index}`}" />. Falling back to index (${key}) instead, but this may have negative consequences.`
|
|
145
|
-
), "onSelect" in child.props && child.props.onSelect
|
|
146
|
-
)
|
|
147
|
-
callbacks[key] = child.props.onSelect;
|
|
148
|
-
else if ("onValueChange" in child.props) {
|
|
149
|
-
const menuState = child.props.value, currentState = menuState === !0 ? "on" : menuState === !1 ? "off" : menuState, nextState = currentState === "mixed" || currentState === "on" ? "off" : "on", { onValueChange } = child.props;
|
|
150
|
-
callbacks[key] = () => {
|
|
151
|
-
onValueChange == null || onValueChange(nextState, currentState);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
return {
|
|
155
|
-
key,
|
|
156
|
-
title,
|
|
157
|
-
subtitle,
|
|
158
|
-
menuAttributes,
|
|
159
|
-
icon
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
}, mapItemsChildren = (children) => Children.map(flattenChildren(children), (_child, index) => {
|
|
163
|
-
var _a2, _b2;
|
|
164
|
-
if (isInstanceOfComponent(_child, Item)) {
|
|
165
|
-
const item = getItemFromChild(_child, index);
|
|
166
|
-
if (item) {
|
|
167
|
-
const { icon, title, key, menuAttributes, subtitle } = item;
|
|
168
|
-
return {
|
|
169
|
-
actionKey: key,
|
|
170
|
-
actionTitle: title,
|
|
171
|
-
icon,
|
|
172
|
-
menuAttributes,
|
|
173
|
-
discoverabilityTitle: subtitle
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
} else if (isInstanceOfComponent(_child, CheckboxItem)) {
|
|
177
|
-
const child = _child, item = getItemFromChild(child, index);
|
|
178
|
-
if (item) {
|
|
179
|
-
const { icon, title, key, menuAttributes, subtitle } = item, menuState = child.props.value;
|
|
180
|
-
return {
|
|
181
|
-
actionKey: key,
|
|
182
|
-
actionTitle: title,
|
|
183
|
-
icon,
|
|
184
|
-
menuAttributes,
|
|
185
|
-
discoverabilityTitle: subtitle,
|
|
186
|
-
menuState: menuState === !0 ? "on" : menuState === !1 ? "off" : menuState
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
} else if (isInstanceOfComponent(_child, Sub)) {
|
|
190
|
-
const child = _child, triggerItemChild = (_a2 = pickChildren(
|
|
191
|
-
child.props.children,
|
|
192
|
-
SubTrigger
|
|
193
|
-
).targetChildren) == null ? void 0 : _a2[0], triggerItem2 = triggerItemChild && getItemFromChild(triggerItemChild, index);
|
|
194
|
-
if (triggerItem2) {
|
|
195
|
-
const nestedContent = (_b2 = pickChildren(child.props.children, SubContent, COMPONENTS_TO_IGNORE).targetChildren) == null ? void 0 : _b2[0];
|
|
196
|
-
if (nestedContent) {
|
|
197
|
-
const nestedItems = mapItemsChildren(nestedContent.props.children).filter(
|
|
198
|
-
filterNull
|
|
199
|
-
);
|
|
200
|
-
if (nestedItems.length) {
|
|
201
|
-
const menuOptions = [];
|
|
202
|
-
return new Set(triggerItem2.menuAttributes || []).has("destructive") && menuOptions.push("destructive"), {
|
|
203
|
-
menuTitle: triggerItem2 == null ? void 0 : triggerItem2.title,
|
|
204
|
-
icon: triggerItem2 == null ? void 0 : triggerItem2.icon,
|
|
205
|
-
menuItems: nestedItems,
|
|
206
|
-
menuOptions,
|
|
207
|
-
menuAttributes: triggerItem2.menuAttributes
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
} else if (isInstanceOfComponent(_child, Group))
|
|
213
|
-
return {
|
|
214
|
-
menuTitle: "",
|
|
215
|
-
menuItems: mapItemsChildren(_child.props.children).filter(filterNull),
|
|
216
|
-
menuOptions: ["displayInline"]
|
|
217
|
-
};
|
|
218
|
-
return null;
|
|
219
|
-
}), menuItems = mapItemsChildren(content == null ? void 0 : content.props.children).filter(filterNull), labelComp = (_b = pickChildren(content == null ? void 0 : content.props.children, Label).targetChildren) == null ? void 0 : _b[0];
|
|
220
|
-
let menuTitle = "";
|
|
221
|
-
typeof (labelComp == null ? void 0 : labelComp.props.children) == "string" ? menuTitle = labelComp.props.children : labelComp != null && labelComp.props.textValue && (menuTitle = labelComp.props.textValue);
|
|
222
|
-
const Component = MenuType === "ContextMenu" ? ContextMenuView : ContextMenuButton, preview = (_c = pickChildren(content == null ? void 0 : content.props.children, Preview).targetChildren) == null ? void 0 : _c[0], previewProps = preview == null ? void 0 : preview.props, onMenuDidHide = props.onOpenChange && (() => {
|
|
223
|
-
var _a2;
|
|
224
|
-
(_a2 = props.onOpenChange) == null || _a2.call(props, !1);
|
|
225
|
-
}), onMenuDidShow = props.onOpenChange && (() => {
|
|
226
|
-
var _a2;
|
|
227
|
-
(_a2 = props.onOpenChange) == null || _a2.call(props, !0);
|
|
228
|
-
}), onMenuWillShow = props.onOpenWillChange && (() => {
|
|
229
|
-
var _a2;
|
|
230
|
-
(_a2 = props.onOpenWillChange) == null || _a2.call(props, !0);
|
|
231
|
-
}), onMenuWillHide = props.onOpenWillChange && (() => {
|
|
232
|
-
var _a2;
|
|
233
|
-
(_a2 = props.onOpenWillChange) == null || _a2.call(props, !1);
|
|
234
|
-
}), triggerItem = (_d = trigger.targetChildren) == null ? void 0 : _d[0];
|
|
235
|
-
let shouldOpenOnSingleTap = MenuType === "DropdownMenu";
|
|
236
|
-
triggerItem != null && triggerItem.props.action && (shouldOpenOnSingleTap = triggerItem.props.action === "press");
|
|
237
|
-
const auxiliary = MenuType === "ContextMenu" ? (_e = pickChildren(content == null ? void 0 : content.props.children, Auxiliary)) == null ? void 0 : _e.targetChildren : void 0, auxiliaryProps = (_f = auxiliary == null ? void 0 : auxiliary[0]) == null ? void 0 : _f.props, menuRef = useRef();
|
|
238
|
-
return <NativePropProvider
|
|
239
|
-
native
|
|
240
|
-
scope={MenuType === "DropdownMenu" ? "DropdownMenuContext" : "ContextMenuContext"}
|
|
241
|
-
><Component
|
|
242
|
-
ref={menuRef}
|
|
243
|
-
onPressMenuItem={({ nativeEvent }) => {
|
|
244
|
-
callbacks[nativeEvent.actionKey] && callbacks[nativeEvent.actionKey]();
|
|
245
|
-
}}
|
|
246
|
-
isMenuPrimaryAction={shouldOpenOnSingleTap}
|
|
247
|
-
style={[{ flexGrow: 0 }, props.style]}
|
|
248
|
-
menuConfig={{
|
|
249
|
-
menuTitle,
|
|
250
|
-
menuItems
|
|
251
|
-
}}
|
|
252
|
-
renderPreview={MenuType === "ContextMenu" && preview && (previewProps != null && previewProps.children) ? () => <>{typeof (previewProps == null ? void 0 : previewProps.children) == "function" ? previewProps.children() : previewProps == null ? void 0 : previewProps.children}</> : void 0}
|
|
253
|
-
lazyPreview={MenuType === "ContextMenu" ? typeof (previewProps == null ? void 0 : previewProps.children) == "function" : void 0}
|
|
254
|
-
onPressMenuPreview={MenuType === "ContextMenu" ? previewProps == null ? void 0 : previewProps.onPress : void 0}
|
|
255
|
-
auxiliaryPreviewConfig={auxiliaryProps != null && auxiliaryProps.children ? {
|
|
256
|
-
alignmentHorizontal: auxiliaryProps == null ? void 0 : auxiliaryProps.alignmentHorizontal,
|
|
257
|
-
anchorPosition: auxiliaryProps == null ? void 0 : auxiliaryProps.anchorPosition,
|
|
258
|
-
height: auxiliaryProps == null ? void 0 : auxiliaryProps.height,
|
|
259
|
-
marginAuxiliaryPreview: auxiliaryProps == null ? void 0 : auxiliaryProps.marginWithScreenEdge,
|
|
260
|
-
marginPreview: auxiliaryProps == null ? void 0 : auxiliaryProps.marginPreview,
|
|
261
|
-
transitionConfigEntrance: auxiliaryProps == null ? void 0 : auxiliaryProps.transitionConfigEntrance,
|
|
262
|
-
transitionEntranceDelay: auxiliaryProps == null ? void 0 : auxiliaryProps.transitionEntranceDelay,
|
|
263
|
-
width: auxiliaryProps == null ? void 0 : auxiliaryProps.width
|
|
264
|
-
} : void 0}
|
|
265
|
-
isAuxiliaryPreviewEnabled={!!(auxiliaryProps != null && auxiliaryProps.children)}
|
|
266
|
-
onMenuAuxiliaryPreviewDidShow={auxiliaryProps == null ? void 0 : auxiliaryProps.onDidShow}
|
|
267
|
-
onMenuAuxiliaryPreviewWillShow={auxiliaryProps == null ? void 0 : auxiliaryProps.onWillShow}
|
|
268
|
-
renderAuxiliaryPreview={auxiliaryProps != null && auxiliaryProps.children ? () => {
|
|
269
|
-
const child = typeof (auxiliaryProps == null ? void 0 : auxiliaryProps.children) == "function" ? auxiliaryProps == null ? void 0 : auxiliaryProps.children({
|
|
270
|
-
dismissMenu() {
|
|
271
|
-
var _a2;
|
|
272
|
-
(_a2 = menuRef.current) == null || _a2.dismissMenu();
|
|
273
|
-
}
|
|
274
|
-
}) : auxiliaryProps == null ? void 0 : auxiliaryProps.children;
|
|
275
|
-
return <>{child}</>;
|
|
276
|
-
} : void 0}
|
|
277
|
-
previewConfig={preview ? {
|
|
278
|
-
// ...previewProps,
|
|
279
|
-
previewType: "CUSTOM",
|
|
280
|
-
previewSize: previewProps == null ? void 0 : previewProps.size,
|
|
281
|
-
backgroundColor: previewProps == null ? void 0 : previewProps.backgroundColor,
|
|
282
|
-
borderRadius: previewProps == null ? void 0 : previewProps.borderRadius,
|
|
283
|
-
isResizeAnimated: previewProps == null ? void 0 : previewProps.isResizeAnimated,
|
|
284
|
-
preferredCommitStyle: previewProps == null ? void 0 : previewProps.preferredCommitStyle
|
|
285
|
-
} : void 0}
|
|
286
|
-
onMenuDidHide={onMenuDidHide}
|
|
287
|
-
onMenuDidShow={onMenuDidShow}
|
|
288
|
-
onMenuWillHide={onMenuWillHide}
|
|
289
|
-
onMenuWillShow={onMenuWillShow}
|
|
290
|
-
{...props.__unsafeIosProps}
|
|
291
|
-
>{triggerItem}</Component></NativePropProvider>;
|
|
292
|
-
}, `${MenuType}`), Separator = create((_) => <></>, `${MenuType}Separator`), ItemIndicator = create(
|
|
293
|
-
(_) => <></>,
|
|
294
|
-
`${MenuType}ItemIndicator`
|
|
295
|
-
), Arrow = create((_) => <></>, `${MenuType}Arrow`);
|
|
296
|
-
return {
|
|
297
|
-
Menu: withStaticProperties(Menu, {
|
|
298
|
-
Trigger,
|
|
299
|
-
Content,
|
|
300
|
-
Item,
|
|
301
|
-
ItemTitle,
|
|
302
|
-
ItemSubtitle,
|
|
303
|
-
SubTrigger,
|
|
304
|
-
Group,
|
|
305
|
-
Separator,
|
|
306
|
-
ItemIcon,
|
|
307
|
-
ItemIndicator,
|
|
308
|
-
CheckboxItem,
|
|
309
|
-
ItemImage,
|
|
310
|
-
Label,
|
|
311
|
-
Preview,
|
|
312
|
-
Arrow,
|
|
313
|
-
Sub,
|
|
314
|
-
SubContent,
|
|
315
|
-
Auxiliary
|
|
316
|
-
})
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
export {
|
|
320
|
-
createIosMenu as createNativeMenu
|
|
321
|
-
};
|
|
322
|
-
//# sourceMappingURL=createNativeMenu.ios.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/createNativeMenu/createNativeMenu.ios.tsx"],
|
|
4
|
-
"mappings": "AAGA,SAAS,4BAA4B;AACrC,SAAgB,UAAwB,cAAc,cAAc;AACpE,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,YAAY;AAErB,SAAS,0BAA0B;AAwBnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,uBAAuB,CAAC,UAAU,OAAO,GAEzC,gBAAgB,CAAC,aAA6C;AAClE,QAAM,UAAU,OAAO,CAAC,EAAE,UAAU,SAAS,GAAG,KAAK,MAC/C,UACK,aAAa,UAAU;AAAA,IAC5B,GAAG;AAAA,EACL,CAAC,IAEI,CAAC,SAAS,OAAO,SAAS,EAAzB,OACP,GAAG,QAAQ,SAAS,GAEjB,YAAY,OAAO,CAAC,EAAE,SAAS,MAC5B,EAAE,KACR,GAAG,QAAQ,WAAW,GAEnB,QAAQ,OAAO,CAAC,EAAE,SAAS,MACxB,GAAG,SAAS,KAClB,GAAG,QAAQ,OAAO,GAEf,UAAU,OAAO,CAAC,EAAE,SAAS,OAC5B,YACH,QAAQ,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6JAayI,GAElJ,GAAG,SAAS,MAClB,GAAG,QAAQ,SAAS,GAEjB,YAAY,OAAO,CAAC,EAAE,SAAS,MAA0B;AAC7D,QAAI,OAAO,YAAY;AACrB,YAAM,IAAI,MAAM,2CAA2C;AAE7D,WAAO,GAAG,SAAS;AAAA,EACrB,G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EnB,gBAAgB;AAAA,IACpB,CAAC,MAA8B,EAAE;AAAA,IACjC,GAAG,QAAQ;AAAA,EACb,GAEM,QAAQ,OAAO,CAAC,MAAsB,EAAE,KAAK,GAAG,QAAQ,OAAO;AAErE,SAAO;AAAA,IACL,MAAM,qBAAqB,MAAM;AAAA,MAC/B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
|
|
5
|
-
"names": ["_a", "_b", "_c", "_d", "_e", "_f", "triggerItem"]
|
|
6
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { withStaticProperties } from "@tamagui/core";
|
|
2
|
-
const createNativeMenu = (MenuType) => ({
|
|
3
|
-
Menu: withStaticProperties({}, {
|
|
4
|
-
Trigger: {},
|
|
5
|
-
Content: {},
|
|
6
|
-
Item: {},
|
|
7
|
-
ItemTitle: {},
|
|
8
|
-
ItemSubtitle: {},
|
|
9
|
-
SubTrigger: {},
|
|
10
|
-
Group: {},
|
|
11
|
-
ItemIcon: {},
|
|
12
|
-
Separator: {},
|
|
13
|
-
CheckboxItem: {},
|
|
14
|
-
ItemIndicator: {},
|
|
15
|
-
ItemImage: {},
|
|
16
|
-
Label: {},
|
|
17
|
-
Arrow: {},
|
|
18
|
-
Sub: {},
|
|
19
|
-
SubContent: {},
|
|
20
|
-
Preview: {}
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
createNativeMenu
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=createNativeMenu.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/createNativeMenu/createNativeMenu.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAwB9B,MAAM,mBAAmB,CAAC,cAoCxB;AAAA,EACL,MAAM,qBApCK,CAAC,GAoCqB;AAAA,IAC/B,SAnCY,CAAC;AAAA,IAoCb,SAlCY,CAAC;AAAA,IAmCb,MAhCS,CAAC;AAAA,IAiCV,WAzBc,CAAC;AAAA,IA0Bf,cAxBiB,CAAC;AAAA,IAyBlB,YA7Be,CAAC;AAAA,IA8BhB,OAxBU,CAAC;AAAA,IAyBX,UAnCa,CAAC;AAAA,IAoCd,WAxBc,CAAC;AAAA,IAyBf,cAvBiB,CAAC;AAAA,IAwBlB,eAtBkB,CAAC;AAAA,IAuBnB,WArCc,CAAC;AAAA,IAsCf,OAtBU,CAAC;AAAA,IAuBX,OArBU,CAAC;AAAA,IAsBX,KApBQ,CAAC;AAAA,IAqBT,YAnBe,CAAC;AAAA,IAoBhB,SAhDY,CAAC;AAAA,EAiDf,CAAC;AACH;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { withStaticProperties } from "@tamagui/core";
|
|
2
|
-
const createNativeMenu = (MenuType) => ({
|
|
3
|
-
Menu: withStaticProperties({}, {
|
|
4
|
-
Trigger: {},
|
|
5
|
-
Content: {},
|
|
6
|
-
Item: {},
|
|
7
|
-
ItemTitle: {},
|
|
8
|
-
ItemSubtitle: {},
|
|
9
|
-
SubTrigger: {},
|
|
10
|
-
Group: {},
|
|
11
|
-
ItemIcon: {},
|
|
12
|
-
Separator: {},
|
|
13
|
-
CheckboxItem: {},
|
|
14
|
-
ItemIndicator: {},
|
|
15
|
-
ItemImage: {},
|
|
16
|
-
Label: {},
|
|
17
|
-
Arrow: {},
|
|
18
|
-
Sub: {},
|
|
19
|
-
SubContent: {},
|
|
20
|
-
Preview: {}
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
createNativeMenu
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=createNativeMenu.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/createNativeMenu/createNativeMenu.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAwB9B,MAAM,mBAAmB,CAAC,cAoCxB;AAAA,EACL,MAAM,qBApCK,CAAC,GAoCqB;AAAA,IAC/B,SAnCY,CAAC;AAAA,IAoCb,SAlCY,CAAC;AAAA,IAmCb,MAhCS,CAAC;AAAA,IAiCV,WAzBc,CAAC;AAAA,IA0Bf,cAxBiB,CAAC;AAAA,IAyBlB,YA7Be,CAAC;AAAA,IA8BhB,OAxBU,CAAC;AAAA,IAyBX,UAnCa,CAAC;AAAA,IAoCd,WAxBc,CAAC;AAAA,IAyBf,cAvBiB,CAAC;AAAA,IAwBlB,eAtBkB,CAAC;AAAA,IAuBnB,WArCc,CAAC;AAAA,IAsCf,OAtBU,CAAC;AAAA,IAuBX,OArBU,CAAC;AAAA,IAsBX,KApBQ,CAAC;AAAA,IAqBT,YAnBe,CAAC;AAAA,IAoBhB,SAhDY,CAAC;AAAA,EAiDf,CAAC;AACH;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=createNativeMenuTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=createNativeMenuTypes.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
Children,
|
|
3
|
-
cloneElement,
|
|
4
|
-
isValidElement
|
|
5
|
-
} from "react";
|
|
6
|
-
function flattenChildrenKeyless(children) {
|
|
7
|
-
return React.Children.toArray(children).reduce((flatChildren, child) => child.type === React.Fragment ? flatChildren.concat(
|
|
8
|
-
flattenChildren(child.props.children)
|
|
9
|
-
) : (flatChildren.push(child), flatChildren), []);
|
|
10
|
-
}
|
|
11
|
-
function flattenChildren(children, componentNamesToIgnore, depth = 0, keys = []) {
|
|
12
|
-
return Children.toArray(children).flatMap((elem) => isValidElement(elem) && typeof elem?.type == "function" && componentNamesToIgnore?.some(
|
|
13
|
-
(skipComponentName) => elem.type.displayName.includes(skipComponentName)
|
|
14
|
-
) ? elem.props.children : elem).reduce((acc, node, nodeIndex) => (node.type === React.Fragment ? acc.push.apply(
|
|
15
|
-
acc,
|
|
16
|
-
flattenChildren(
|
|
17
|
-
node.props.children,
|
|
18
|
-
componentNamesToIgnore,
|
|
19
|
-
depth + 1,
|
|
20
|
-
keys.concat(node.key || nodeIndex)
|
|
21
|
-
)
|
|
22
|
-
) : isValidElement(node) ? acc.push(
|
|
23
|
-
cloneElement(node, {
|
|
24
|
-
key: keys.concat(String(node.key)).join(".")
|
|
25
|
-
})
|
|
26
|
-
) : (typeof node == "string" || typeof node == "number") && acc.push(node), acc), []);
|
|
27
|
-
}
|
|
28
|
-
const pickChildren = (_children, targetChild, componentNamesToIgnore) => {
|
|
29
|
-
const children = flattenChildren(_children, componentNamesToIgnore), target = [], withoutTargetChildren = React.Children.map(children, (item) => isValidElement(item) && isInstanceOfComponent(item, targetChild) ? (target.push(cloneElement(item)), null) : item);
|
|
30
|
-
return {
|
|
31
|
-
targetChildren: target.length >= 0 ? target : void 0,
|
|
32
|
-
withoutTargetChildren
|
|
33
|
-
};
|
|
34
|
-
}, isInstanceOfComponent = (element, targetElement) => element?.type === targetElement || typeof element?.type == "function" && (element?.type?.displayName === targetElement.displayName || element?.type?.displayName === targetElement.displayName + "Wrapper"), filterNull = (t) => t != null, create = (Component, displayName) => {
|
|
35
|
-
const MenuComponent = (props) => <Component {...props} />;
|
|
36
|
-
return MenuComponent.displayName = displayName, MenuComponent;
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
create,
|
|
40
|
-
filterNull,
|
|
41
|
-
flattenChildren,
|
|
42
|
-
flattenChildrenKeyless,
|
|
43
|
-
isInstanceOfComponent,
|
|
44
|
-
pickChildren
|
|
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QAAM,WAAW,gBAAgB,WAAW,sBAAsB,GAC5D,SAAgC,CAAC,GACjC,wBAAwB,MAAM,SAAS,IAAI,UAAU,CAAC,SACrD,eAAe,IAAI,KACpB,sBAAsB,MAAM,WAAW,KAEzC,OAAO,KAAK,aAAa,IAAI,CAAC,GACvB,QAJyB,IAOnC;AAID,SAAO;AAAA,IACL,gBAHqB,OAAO,UAAU,IAAI,SAAS;AAAA,IAInD;AAAA,EACF;AACF,GAEa,wBAAwB,CACnC,SACA,kBAGG,SAAiB,SAAS,iBAC1B,OAAQ,SAAiB,QAAQ,eAC9B,SAAiB,MAAM,gBAAiB,cAAsB,eAC7D,SAAiB,MAAM,gBACrB,cAAsB,cAAc,YAIlC,aAAa,CACxB,MAEO,KAAK,MAGD,SAAS,CACpB,WACA,gBACG;AACH,QAAM,gBAAiC,CAAC,UAC/B,CAAC,cAAe,OAAe;AAExC,uBAAc,cAAc,aAErB;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
Children,
|
|
3
|
-
cloneElement,
|
|
4
|
-
isValidElement
|
|
5
|
-
} from "react";
|
|
6
|
-
function flattenChildrenKeyless(children) {
|
|
7
|
-
return React.Children.toArray(children).reduce((flatChildren, child) => child.type === React.Fragment ? flatChildren.concat(
|
|
8
|
-
flattenChildren(child.props.children)
|
|
9
|
-
) : (flatChildren.push(child), flatChildren), []);
|
|
10
|
-
}
|
|
11
|
-
function flattenChildren(children, componentNamesToIgnore, depth = 0, keys = []) {
|
|
12
|
-
return Children.toArray(children).flatMap((elem) => isValidElement(elem) && typeof (elem == null ? void 0 : elem.type) == "function" && componentNamesToIgnore != null && componentNamesToIgnore.some(
|
|
13
|
-
(skipComponentName) => elem.type.displayName.includes(skipComponentName)
|
|
14
|
-
) ? elem.props.children : elem).reduce((acc, node, nodeIndex) => (node.type === React.Fragment ? acc.push.apply(
|
|
15
|
-
acc,
|
|
16
|
-
flattenChildren(
|
|
17
|
-
node.props.children,
|
|
18
|
-
componentNamesToIgnore,
|
|
19
|
-
depth + 1,
|
|
20
|
-
keys.concat(node.key || nodeIndex)
|
|
21
|
-
)
|
|
22
|
-
) : isValidElement(node) ? acc.push(
|
|
23
|
-
cloneElement(node, {
|
|
24
|
-
key: keys.concat(String(node.key)).join(".")
|
|
25
|
-
})
|
|
26
|
-
) : (typeof node == "string" || typeof node == "number") && acc.push(node), acc), []);
|
|
27
|
-
}
|
|
28
|
-
const pickChildren = (_children, targetChild, componentNamesToIgnore) => {
|
|
29
|
-
const children = flattenChildren(_children, componentNamesToIgnore), target = [], withoutTargetChildren = React.Children.map(children, (item) => isValidElement(item) && isInstanceOfComponent(item, targetChild) ? (target.push(cloneElement(item)), null) : item);
|
|
30
|
-
return {
|
|
31
|
-
targetChildren: target.length >= 0 ? target : void 0,
|
|
32
|
-
withoutTargetChildren
|
|
33
|
-
};
|
|
34
|
-
}, isInstanceOfComponent = (element, targetElement) => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
return (element == null ? void 0 : element.type) === targetElement || typeof (element == null ? void 0 : element.type) == "function" && (((_a = element == null ? void 0 : element.type) == null ? void 0 : _a.displayName) === targetElement.displayName || ((_b = element == null ? void 0 : element.type) == null ? void 0 : _b.displayName) === targetElement.displayName + "Wrapper");
|
|
37
|
-
}, filterNull = (t) => t != null, create = (Component, displayName) => {
|
|
38
|
-
const MenuComponent = (props) => <Component {...props} />;
|
|
39
|
-
return MenuComponent.displayName = displayName, MenuComponent;
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
create,
|
|
43
|
-
filterNull,
|
|
44
|
-
flattenChildren,
|
|
45
|
-
flattenChildrenKeyless,
|
|
46
|
-
isInstanceOfComponent,
|
|
47
|
-
pickChildren
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["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sB,MAAM,WAAW,KAEzC,OAAO,KAAK,aAAa,IAAI,CAAC,GACvB,QAJyB,IAOnC;AAID,SAAO;AAAA,IACL,gBAHqB,OAAO,UAAU,IAAI,SAAS;AAAA,IAInD;AAAA,EACF;AACF,GAEa,wBAAwB,CACnC,SACA,kBACG;AAtGL;AA6GE,UALG,mCAAiB,UAAS,iBAC1B,QAAQ,mCAAiB,SAAQ,iBAC9B,wCAAiB,SAAjB,mBAAuB,iBAAiB,cAAsB,iBAC7D,wCAAiB,SAAjB,mBAAuB,iBACrB,cAAsB,cAAc;AAE/C,GAEa,aAAa,CACxB,MAEO,KAAK,MAGD,SAAS,CACpB,WACA,gBACG;AACH,QAAM,gBAAiC,CAAC,UAC/B,CAAC,cAAe,OAAe;AAExC,uBAAc,cAAc,aAErB;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isWeb } from "@tamagui/core";
|
|
2
|
-
function withNativeMenu({
|
|
3
|
-
Component,
|
|
4
|
-
NativeComponent,
|
|
5
|
-
useNativeProp,
|
|
6
|
-
useNativePropScope,
|
|
7
|
-
isRoot = !1
|
|
8
|
-
}) {
|
|
9
|
-
if (isWeb)
|
|
10
|
-
return Component;
|
|
11
|
-
const Menu = (props) => {
|
|
12
|
-
let isNative = !0;
|
|
13
|
-
return isRoot ? isNative = props.native : isNative = useNativeProp(useNativePropScope).native, isNative ? <NativeComponent {...props} /> : <Component {...props} />;
|
|
14
|
-
};
|
|
15
|
-
return Menu.displayName = `${Component.displayName}Wrapper`, Menu;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
withNativeMenu
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=withNativeMenu.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/createNativeMenu/withNativeMenu.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,aAAa;AAEf,SAAS,eAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAMG;AACD,MAAI;AAAO,WAAO;AAClB,QAAM,OAAO,CACX,UACG;AACH,QAAI,WAAW;AAMf,WALI,SACF,WAAW,MAAM,SAEjB,WAAW,cAAc,kBAAkB,EAAE,QAE3C,WACK,CAAC,oBAAqB,OAAmC,KAG3D,CAAC,cAAe,OAAmC;AAAA,EAC5D;AAEA,cAAK,cAAc,GAAG,UAAU,WAAW,WAEpC;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isWeb } from "@tamagui/core";
|
|
2
|
-
function withNativeMenu({
|
|
3
|
-
Component,
|
|
4
|
-
NativeComponent,
|
|
5
|
-
useNativeProp,
|
|
6
|
-
useNativePropScope,
|
|
7
|
-
isRoot = !1
|
|
8
|
-
}) {
|
|
9
|
-
if (isWeb)
|
|
10
|
-
return Component;
|
|
11
|
-
const Menu = (props) => {
|
|
12
|
-
let isNative = !0;
|
|
13
|
-
return isRoot ? isNative = props.native : isNative = useNativeProp(useNativePropScope).native, isNative ? <NativeComponent {...props} /> : <Component {...props} />;
|
|
14
|
-
};
|
|
15
|
-
return Menu.displayName = `${Component.displayName}Wrapper`, Menu;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
withNativeMenu
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=withNativeMenu.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/createNativeMenu/withNativeMenu.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,aAAa;AAEf,SAAS,eAGd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,GAMG;AACD,MAAI;AAAO,WAAO;AAClB,QAAM,OAAO,CACX,UACG;AACH,QAAI,WAAW;AAMf,WALI,SACF,WAAW,MAAM,SAEjB,WAAW,cAAc,kBAAkB,EAAE,QAE3C,WACK,CAAC,oBAAqB,OAAmC,KAG3D,CAAC,cAAe,OAAmC;AAAA,EAC5D;AAEA,cAAK,cAAc,GAAG,UAAU,WAAW,WAEpC;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createNativeMenu.android.d.ts","sourceRoot":"","sources":["../../src/createNativeMenu/createNativeMenu.android.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAInE,OAAO,KAAK,EACV,0BAA0B,EAE1B,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EAEd,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,yBAAyB,CAAA;AAWhC,QAAA,MAAM,iBAAiB,aAAc,aAAa,GAAG,cAAc;;;;;;;;;;;;;;;;;;;;;CAsblE,CAAA;AAED,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createNativeMenu.d.ts","sourceRoot":"","sources":["../../src/createNativeMenu/createNativeMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EAEd,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,yBAAyB,CAAA;AAEhC,eAAO,MAAM,gBAAgB,aAAc,aAAa,GAAG,cAAc;;;;;;;;;;;;;;;;;;;;CAyDxE,CAAA"}
|