@tamagui/native 3.0.0-beta.924.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/PressBoundary.cjs +2 -48
- package/dist/cjs/PressBoundary.native.cjs +3 -3
- package/dist/cjs/PressBoundary.native.js +3 -3
- package/dist/cjs/PressBoundary.native.js.map +1 -1
- package/dist/cjs/components.cjs +6 -2
- package/dist/cjs/components.native.cjs +6 -2
- package/dist/cjs/components.native.js +6 -2
- package/dist/cjs/components.native.js.map +1 -1
- package/dist/cjs/expoUIMenuAdapter.native.cjs +1 -5
- package/dist/cjs/expoUIMenuAdapter.native.js +1 -5
- package/dist/cjs/expoUIMenuAdapter.native.js.map +1 -1
- package/dist/cjs/expoUIMenuView.cjs +82 -0
- package/dist/cjs/expoUIMenuView.native.cjs +100 -0
- package/dist/cjs/expoUIMenuView.native.js +102 -0
- package/dist/cjs/expoUIMenuView.native.js.map +1 -0
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.native.cjs +0 -2
- package/dist/cjs/index.native.js +0 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/nativeMenuContext.cjs +3 -1
- package/dist/cjs/nativeMenuContext.native.cjs +6 -1
- package/dist/cjs/nativeMenuContext.native.js +6 -1
- package/dist/cjs/nativeMenuContext.native.js.map +1 -1
- package/dist/cjs/setup-expo-ui-menu.cjs +6 -1
- package/dist/cjs/setup-expo-ui-menu.native.cjs +6 -1
- package/dist/cjs/setup-expo-ui-menu.native.js +6 -1
- package/dist/cjs/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/cjs/setup-one-portal.cjs +23 -0
- package/dist/cjs/setup-one-portal.native.cjs +25 -0
- package/dist/cjs/setup-one-portal.native.js +27 -0
- package/dist/cjs/setup-one-portal.native.js.map +1 -0
- package/dist/esm/PressBoundary.mjs +3 -43
- package/dist/esm/PressBoundary.mjs.map +1 -1
- package/dist/esm/PressBoundary.native.js.map +1 -1
- package/dist/esm/components.mjs +6 -2
- package/dist/esm/components.mjs.map +1 -1
- package/dist/esm/components.native.js +6 -2
- package/dist/esm/components.native.js.map +1 -1
- package/dist/esm/expoUIMenuAdapter.native.js +1 -5
- package/dist/esm/expoUIMenuAdapter.native.js.map +1 -1
- package/dist/esm/expoUIMenuView.mjs +63 -0
- package/dist/esm/expoUIMenuView.mjs.map +1 -0
- package/dist/esm/expoUIMenuView.native.js +73 -0
- package/dist/esm/expoUIMenuView.native.js.map +1 -0
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/index.native.js +1 -2
- package/dist/esm/nativeMenuContext.mjs +3 -1
- package/dist/esm/nativeMenuContext.mjs.map +1 -1
- package/dist/esm/nativeMenuContext.native.js +6 -1
- package/dist/esm/nativeMenuContext.native.js.map +1 -1
- package/dist/esm/setup-burnt.mjs +1 -6
- package/dist/esm/setup-burnt.native.js +0 -5
- package/dist/esm/setup-expo-ui-menu.mjs +6 -6
- package/dist/esm/setup-expo-ui-menu.mjs.map +1 -1
- package/dist/esm/setup-expo-ui-menu.native.js +6 -6
- package/dist/esm/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/esm/setup-gesture-handler.mjs +1 -6
- package/dist/esm/setup-gesture-handler.native.js +0 -5
- package/dist/esm/setup-keyboard-controller.native.js +0 -5
- package/dist/esm/setup-one-portal.mjs +26 -0
- package/dist/esm/setup-one-portal.mjs.map +1 -0
- package/dist/esm/setup-one-portal.native.js +26 -0
- package/dist/esm/setup-one-portal.native.js.map +1 -0
- package/dist/esm/setup-teleport.mjs +1 -6
- package/dist/esm/setup-teleport.native.js +0 -5
- package/dist/esm/setup-worklets.mjs +1 -6
- package/dist/esm/setup-worklets.native.js +0 -5
- package/dist/esm/setup-zeego.mjs +2 -7
- package/dist/esm/setup-zeego.native.js +0 -5
- package/package.json +28 -26
- package/setup-one-portal/index.cjs +2 -0
- package/setup-one-portal/index.js +2 -0
- package/setup-one-portal/index.native.cjs +2 -0
- package/setup-one-portal/index.native.js +2 -0
- package/setup-one-portal.cjs +1 -0
- package/src/PressBoundary.native.tsx +75 -0
- package/src/PressBoundary.tsx +16 -83
- package/src/components.tsx +3 -2
- package/src/expoUIMenuAdapter.tsx +2 -2
- package/src/expoUIMenuView.tsx +124 -0
- package/src/gesture-handler.ts +1 -1
- package/src/index.ts +0 -7
- package/src/nativeMenuContext.ts +7 -1
- package/src/setup-expo-ui-menu.ts +9 -1
- package/src/setup-one-portal.ts +32 -0
- package/src/types.ts +11 -5
- package/types/PressBoundary.d.ts +13 -14
- package/types/PressBoundary.d.ts.map +2 -2
- package/types/PressBoundary.native.d.ts +8 -0
- package/types/PressBoundary.native.d.ts.map +11 -0
- package/types/components.d.ts.map +1 -1
- package/types/expoUIMenuAdapter.d.ts +27 -1
- package/types/expoUIMenuAdapter.d.ts.map +2 -2
- package/types/expoUIMenuView.d.ts +24 -0
- package/types/expoUIMenuView.d.ts.map +11 -0
- package/types/gesture-handler.d.ts +1 -1
- package/types/gesture-handler.d.ts.map +1 -1
- package/types/index.d.ts +1 -5
- package/types/index.d.ts.map +2 -2
- package/types/nativeMenuContext.d.ts.map +2 -2
- package/types/setup-expo-ui-menu.d.ts.map +1 -1
- package/types/setup-one-portal.d.ts +3 -0
- package/types/setup-one-portal.d.ts.map +11 -0
- package/types/types.d.ts +10 -4
- package/types/types.d.ts.map +2 -2
- package/dist/cjs/linearGradientState.cjs +0 -41
- package/dist/cjs/linearGradientState.native.cjs +0 -43
- package/dist/cjs/linearGradientState.native.js +0 -45
- package/dist/cjs/linearGradientState.native.js.map +0 -1
- package/dist/cjs/setup-expo-linear-gradient.cjs +0 -16
- package/dist/cjs/setup-expo-linear-gradient.native.cjs +0 -18
- package/dist/cjs/setup-expo-linear-gradient.native.js +0 -20
- package/dist/cjs/setup-expo-linear-gradient.native.js.map +0 -1
- package/dist/esm/linearGradientState.mjs +0 -22
- package/dist/esm/linearGradientState.mjs.map +0 -1
- package/dist/esm/linearGradientState.native.js +0 -22
- package/dist/esm/linearGradientState.native.js.map +0 -1
- package/dist/esm/setup-expo-linear-gradient.mjs +0 -24
- package/dist/esm/setup-expo-linear-gradient.mjs.map +0 -1
- package/dist/esm/setup-expo-linear-gradient.native.js +0 -24
- package/dist/esm/setup-expo-linear-gradient.native.js.map +0 -1
- package/setup-expo-linear-gradient/index.cjs +0 -2
- package/setup-expo-linear-gradient/index.js +0 -2
- package/setup-expo-linear-gradient/index.native.cjs +0 -2
- package/setup-expo-linear-gradient/index.native.js +0 -2
- package/setup-expo-linear-gradient.cjs +0 -1
- package/src/linearGradientState.ts +0 -27
- package/src/setup-expo-linear-gradient.ts +0 -36
- package/types/linearGradientState.d.ts +0 -9
- package/types/linearGradientState.d.ts.map +0 -11
- package/types/setup-expo-linear-gradient.d.ts +0 -3
- package/types/setup-expo-linear-gradient.d.ts.map +0 -11
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
function createExpoUIMenuView({ swiftUI, modifiers }) {
|
|
4
|
+
const { Button, ContextMenu, Host, Menu, RNHostView, Section, Toggle } = swiftUI;
|
|
5
|
+
function renderAction(action, onPressAction) {
|
|
6
|
+
if (action.attributes?.hidden) return null;
|
|
7
|
+
const { subactions, displayInline, state, attributes, image, title } = action;
|
|
8
|
+
const systemImage = typeof image === "string" ? image : void 0;
|
|
9
|
+
if (subactions && subactions.length > 0) {
|
|
10
|
+
const children = subactions.map((sub) => renderAction(sub, onPressAction));
|
|
11
|
+
if (displayInline) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Section, {
|
|
13
|
+
title,
|
|
14
|
+
children
|
|
15
|
+
}, action.id);
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ jsx(Menu, {
|
|
18
|
+
label: title,
|
|
19
|
+
systemImage,
|
|
20
|
+
children
|
|
21
|
+
}, action.id);
|
|
22
|
+
}
|
|
23
|
+
const fire = () => onPressAction?.({ nativeEvent: { event: action.id } });
|
|
24
|
+
const itemModifiers = attributes?.disabled ? [modifiers.disabled(true)] : void 0;
|
|
25
|
+
if (state === "on" || state === "off") {
|
|
26
|
+
return /* @__PURE__ */ jsx(Toggle, {
|
|
27
|
+
label: title,
|
|
28
|
+
systemImage,
|
|
29
|
+
isOn: state === "on",
|
|
30
|
+
onIsOnChange: fire,
|
|
31
|
+
modifiers: itemModifiers
|
|
32
|
+
}, action.id);
|
|
33
|
+
}
|
|
34
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
35
|
+
label: title,
|
|
36
|
+
systemImage,
|
|
37
|
+
role: attributes?.destructive ? "destructive" : void 0,
|
|
38
|
+
modifiers: itemModifiers,
|
|
39
|
+
onPress: fire
|
|
40
|
+
}, action.id);
|
|
41
|
+
}
|
|
42
|
+
return function ExpoUIMenuView({ actions, onPressAction, shouldOpenOnLongPress, title, children }) {
|
|
43
|
+
const items = actions.map((action) => renderAction(action, onPressAction));
|
|
44
|
+
const body = title ? /* @__PURE__ */ jsx(Section, {
|
|
45
|
+
title,
|
|
46
|
+
children: items
|
|
47
|
+
}) : items;
|
|
48
|
+
const trigger = /* @__PURE__ */ jsx(RNHostView, {
|
|
49
|
+
matchContents: true,
|
|
50
|
+
children: /* @__PURE__ */ jsx(Fragment, { children })
|
|
51
|
+
});
|
|
52
|
+
return /* @__PURE__ */ jsx(Host, {
|
|
53
|
+
ignoreSafeArea: "all",
|
|
54
|
+
children: shouldOpenOnLongPress ? /* @__PURE__ */ jsxs(ContextMenu, { children: [/* @__PURE__ */ jsx(ContextMenu.Trigger, { children: trigger }), /* @__PURE__ */ jsx(ContextMenu.Items, { children: body })] }) : /* @__PURE__ */ jsx(Menu, {
|
|
55
|
+
label: trigger,
|
|
56
|
+
children: body
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { createExpoUIMenuView };
|
|
63
|
+
//# sourceMappingURL=expoUIMenuView.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expoUIMenuView.js","names":[],"sources":["esm/expoUIMenuView.js"],"sourcesContent":["import { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nfunction createExpoUIMenuView({\n swiftUI,\n modifiers\n}) {\n const { Button, ContextMenu, Host, Menu, RNHostView, Section, Toggle } = swiftUI;\n function renderAction(action, onPressAction) {\n if (action.attributes?.hidden) return null;\n const { subactions, displayInline, state, attributes, image, title } = action;\n const systemImage = typeof image === \"string\" ? image : void 0;\n if (subactions && subactions.length > 0) {\n const children = subactions.map((sub) => renderAction(sub, onPressAction));\n if (displayInline) {\n return /* @__PURE__ */ jsx(Section, { title, children }, action.id);\n }\n return /* @__PURE__ */ jsx(Menu, { label: title, systemImage, children }, action.id);\n }\n const fire = () => onPressAction?.({ nativeEvent: { event: action.id } });\n const itemModifiers = attributes?.disabled ? [modifiers.disabled(true)] : void 0;\n if (state === \"on\" || state === \"off\") {\n return /* @__PURE__ */ jsx(\n Toggle,\n {\n label: title,\n systemImage,\n isOn: state === \"on\",\n onIsOnChange: fire,\n modifiers: itemModifiers\n },\n action.id\n );\n }\n return /* @__PURE__ */ jsx(\n Button,\n {\n label: title,\n systemImage,\n role: attributes?.destructive ? \"destructive\" : void 0,\n modifiers: itemModifiers,\n onPress: fire\n },\n action.id\n );\n }\n return function ExpoUIMenuView({\n actions,\n onPressAction,\n shouldOpenOnLongPress,\n title,\n children\n }) {\n const items = actions.map((action) => renderAction(action, onPressAction));\n const body = title ? /* @__PURE__ */ jsx(Section, { title, children: items }) : items;\n const trigger = /* @__PURE__ */ jsx(RNHostView, { matchContents: true, children: /* @__PURE__ */ jsx(Fragment, { children }) });\n return /* @__PURE__ */ jsx(Host, { ignoreSafeArea: \"all\", children: shouldOpenOnLongPress ? /* @__PURE__ */ jsxs(ContextMenu, { children: [\n /* @__PURE__ */ jsx(ContextMenu.Trigger, { children: trigger }),\n /* @__PURE__ */ jsx(ContextMenu.Items, { children: body })\n ] }) : /* @__PURE__ */ jsx(Menu, { label: trigger, children: body }) });\n };\n}\nexport {\n createExpoUIMenuView\n};\n//# sourceMappingURL=expoUIMenuView.js.map\n"],"mappings":";;;AACA,SAAS,qBAAqB,EAC5B,SACA,aACC;CACD,MAAM,EAAE,QAAQ,aAAa,MAAM,MAAM,YAAY,SAAS,WAAW;CACzE,SAAS,aAAa,QAAQ,eAAe;EAC3C,IAAI,OAAO,YAAY,QAAQ,OAAO;EACtC,MAAM,EAAE,YAAY,eAAe,OAAO,YAAY,OAAO,UAAU;EACvE,MAAM,cAAc,OAAO,UAAU,WAAW,QAAQ,KAAK;EAC7D,IAAI,cAAc,WAAW,SAAS,GAAG;GACvC,MAAM,WAAW,WAAW,KAAK,QAAQ,aAAa,KAAK,aAAa,CAAC;GACzE,IAAI,eAAe;IACjB,OAAuB,oBAAI,SAAS;KAAE;KAAO;IAAS,GAAG,OAAO,EAAE;GACpE;GACA,OAAuB,oBAAI,MAAM;IAAE,OAAO;IAAO;IAAa;GAAS,GAAG,OAAO,EAAE;EACrF;EACA,MAAM,aAAa,gBAAgB,EAAE,aAAa,EAAE,OAAO,OAAO,GAAG,EAAE,CAAC;EACxE,MAAM,gBAAgB,YAAY,WAAW,CAAC,UAAU,SAAS,IAAI,CAAC,IAAI,KAAK;EAC/E,IAAI,UAAU,QAAQ,UAAU,OAAO;GACrC,OAAuB,oBACrB,QACA;IACE,OAAO;IACP;IACA,MAAM,UAAU;IAChB,cAAc;IACd,WAAW;GACb,GACA,OAAO,EACT;EACF;EACA,OAAuB,oBACrB,QACA;GACE,OAAO;GACP;GACA,MAAM,YAAY,cAAc,gBAAgB,KAAK;GACrD,WAAW;GACX,SAAS;EACX,GACA,OAAO,EACT;CACF;CACA,OAAO,SAAS,eAAe,EAC7B,SACA,eACA,uBACA,OACA,YACC;EACD,MAAM,QAAQ,QAAQ,KAAK,WAAW,aAAa,QAAQ,aAAa,CAAC;EACzE,MAAM,OAAO,QAAwB,oBAAI,SAAS;GAAE;GAAO,UAAU;EAAM,CAAC,IAAI;EAChF,MAAM,UAA0B,oBAAI,YAAY;GAAE,eAAe;GAAM,UAA0B,oBAAI,UAAU,EAAE,SAAS,CAAC;EAAE,CAAC;EAC9H,OAAuB,oBAAI,MAAM;GAAE,gBAAgB;GAAO,UAAU,wBAAwC,qBAAK,aAAa,EAAE,UAAU,CACxH,oBAAI,YAAY,SAAS,EAAE,UAAU,QAAQ,CAAC,GAC9C,oBAAI,YAAY,OAAO,EAAE,UAAU,KAAK,CAAC,CAC3D,EAAE,CAAC,IAAoB,oBAAI,MAAM;IAAE,OAAO;IAAS,UAAU;GAAK,CAAC;EAAE,CAAC;CACxE;AACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
|
|
4
|
+
function createExpoUIMenuView(param) {
|
|
5
|
+
var { swiftUI, modifiers } = param;
|
|
6
|
+
var { Button, ContextMenu, Host, Menu, RNHostView, Section, Toggle } = swiftUI;
|
|
7
|
+
function renderAction(action, onPressAction) {
|
|
8
|
+
var _action_attributes;
|
|
9
|
+
if ((_action_attributes = action.attributes) === null || _action_attributes === void 0 ? void 0 : _action_attributes.hidden) return null;
|
|
10
|
+
var { subactions, displayInline, state, attributes, image, title } = action;
|
|
11
|
+
var systemImage = typeof image === "string" ? image : void 0;
|
|
12
|
+
if (subactions && subactions.length > 0) {
|
|
13
|
+
var children = subactions.map(function(sub) {
|
|
14
|
+
return renderAction(sub, onPressAction);
|
|
15
|
+
});
|
|
16
|
+
if (displayInline) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Section, {
|
|
18
|
+
title,
|
|
19
|
+
children
|
|
20
|
+
}, action.id);
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ jsx(Menu, {
|
|
23
|
+
label: title,
|
|
24
|
+
systemImage,
|
|
25
|
+
children
|
|
26
|
+
}, action.id);
|
|
27
|
+
}
|
|
28
|
+
var fire = function() {
|
|
29
|
+
return onPressAction === null || onPressAction === void 0 ? void 0 : onPressAction({ nativeEvent: { event: action.id } });
|
|
30
|
+
};
|
|
31
|
+
var itemModifiers = (attributes === null || attributes === void 0 ? void 0 : attributes.disabled) ? [modifiers.disabled(true)] : void 0;
|
|
32
|
+
if (state === "on" || state === "off") {
|
|
33
|
+
return /* @__PURE__ */ jsx(Toggle, {
|
|
34
|
+
label: title,
|
|
35
|
+
systemImage,
|
|
36
|
+
isOn: state === "on",
|
|
37
|
+
onIsOnChange: fire,
|
|
38
|
+
modifiers: itemModifiers
|
|
39
|
+
}, action.id);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
42
|
+
label: title,
|
|
43
|
+
systemImage,
|
|
44
|
+
role: (attributes === null || attributes === void 0 ? void 0 : attributes.destructive) ? "destructive" : void 0,
|
|
45
|
+
modifiers: itemModifiers,
|
|
46
|
+
onPress: fire
|
|
47
|
+
}, action.id);
|
|
48
|
+
}
|
|
49
|
+
return function ExpoUIMenuView(param2) {
|
|
50
|
+
var { actions, onPressAction, shouldOpenOnLongPress, title, children } = param2;
|
|
51
|
+
var items = actions.map(function(action) {
|
|
52
|
+
return renderAction(action, onPressAction);
|
|
53
|
+
});
|
|
54
|
+
var body = title ? /* @__PURE__ */ jsx(Section, {
|
|
55
|
+
title,
|
|
56
|
+
children: items
|
|
57
|
+
}) : items;
|
|
58
|
+
var trigger = /* @__PURE__ */ jsx(RNHostView, {
|
|
59
|
+
matchContents: true,
|
|
60
|
+
children: /* @__PURE__ */ jsx(Fragment, { children })
|
|
61
|
+
});
|
|
62
|
+
return /* @__PURE__ */ jsx(Host, {
|
|
63
|
+
ignoreSafeArea: "all",
|
|
64
|
+
children: shouldOpenOnLongPress ? /* @__PURE__ */ jsxs(ContextMenu, { children: [/* @__PURE__ */ jsx(ContextMenu.Trigger, { children: trigger }), /* @__PURE__ */ jsx(ContextMenu.Items, { children: body })] }) : /* @__PURE__ */ jsx(Menu, {
|
|
65
|
+
label: trigger,
|
|
66
|
+
children: body
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { createExpoUIMenuView };
|
|
73
|
+
//# sourceMappingURL=expoUIMenuView.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expoUIMenuView.native.js","names":["_Fragment"],"sources":["esm/expoUIMenuView.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nfunction createExpoUIMenuView(param) {\n var { swiftUI, modifiers } = param;\n var { Button, ContextMenu, Host, Menu, RNHostView, Section, Toggle } = swiftUI;\n function renderAction(action, onPressAction) {\n var _action_attributes;\n if ((_action_attributes = action.attributes) === null || _action_attributes === void 0 ? void 0 : _action_attributes.hidden) return null;\n var { subactions, displayInline, state, attributes, image, title } = action;\n var systemImage = typeof image === \"string\" ? image : void 0;\n if (subactions && subactions.length > 0) {\n var children = subactions.map(function(sub) {\n return renderAction(sub, onPressAction);\n });\n if (displayInline) {\n return /* @__PURE__ */ _jsx(Section, {\n title,\n children\n }, action.id);\n }\n return /* @__PURE__ */ _jsx(Menu, {\n label: title,\n systemImage,\n children\n }, action.id);\n }\n var fire = function() {\n return onPressAction === null || onPressAction === void 0 ? void 0 : onPressAction({\n nativeEvent: {\n event: action.id\n }\n });\n };\n var itemModifiers = (attributes === null || attributes === void 0 ? void 0 : attributes.disabled) ? [\n modifiers.disabled(true)\n ] : void 0;\n if (state === \"on\" || state === \"off\") {\n return /* @__PURE__ */ _jsx(Toggle, {\n label: title,\n systemImage,\n isOn: state === \"on\",\n onIsOnChange: fire,\n modifiers: itemModifiers\n }, action.id);\n }\n return /* @__PURE__ */ _jsx(Button, {\n label: title,\n systemImage,\n role: (attributes === null || attributes === void 0 ? void 0 : attributes.destructive) ? \"destructive\" : void 0,\n modifiers: itemModifiers,\n onPress: fire\n }, action.id);\n }\n return function ExpoUIMenuView(param2) {\n var { actions, onPressAction, shouldOpenOnLongPress, title, children } = param2;\n var items = actions.map(function(action) {\n return renderAction(action, onPressAction);\n });\n var body = title ? /* @__PURE__ */ _jsx(Section, {\n title,\n children: items\n }) : items;\n var trigger = /* @__PURE__ */ _jsx(RNHostView, {\n matchContents: true,\n children: /* @__PURE__ */ _jsx(_Fragment, {\n children\n })\n });\n return /* @__PURE__ */ _jsx(Host, {\n ignoreSafeArea: \"all\",\n children: shouldOpenOnLongPress ? /* @__PURE__ */ _jsxs(ContextMenu, {\n children: [\n /* @__PURE__ */ _jsx(ContextMenu.Trigger, {\n children: trigger\n }),\n /* @__PURE__ */ _jsx(ContextMenu.Items, {\n children: body\n })\n ]\n }) : /* @__PURE__ */ _jsx(Menu, {\n label: trigger,\n children: body\n })\n });\n };\n}\nexport {\n createExpoUIMenuView\n};\n//# sourceMappingURL=expoUIMenuView.js.map\n"],"mappings":";;;;AAEA,SAAS,qBAAqB,OAAO;CACnC,IAAI,EAAE,SAAS,cAAc;CAC7B,IAAI,EAAE,QAAQ,aAAa,MAAM,MAAM,YAAY,SAAS,WAAW;CACvE,SAAS,aAAa,QAAQ,eAAe;EAC3C,IAAI;EACJ,KAAK,qBAAqB,OAAO,gBAAgB,QAAQ,uBAAuB,KAAK,IAAI,KAAK,IAAI,mBAAmB,QAAQ,OAAO;EACpI,IAAI,EAAE,YAAY,eAAe,OAAO,YAAY,OAAO,UAAU;EACrE,IAAI,cAAc,OAAO,UAAU,WAAW,QAAQ,KAAK;EAC3D,IAAI,cAAc,WAAW,SAAS,GAAG;GACvC,IAAI,WAAW,WAAW,IAAI,SAAS,KAAK;IAC1C,OAAO,aAAa,KAAK,aAAa;GACxC,CAAC;GACD,IAAI,eAAe;IACjB,OAAuB,oBAAK,SAAS;KACnC;KACA;IACF,GAAG,OAAO,EAAE;GACd;GACA,OAAuB,oBAAK,MAAM;IAChC,OAAO;IACP;IACA;GACF,GAAG,OAAO,EAAE;EACd;EACA,IAAI,OAAO,WAAW;GACpB,OAAO,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,EACjF,aAAa,EACX,OAAO,OAAO,GAChB,EACF,CAAC;EACH;EACA,IAAI,iBAAiB,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,YAAY,CAClG,UAAU,SAAS,IAAI,CACzB,IAAI,KAAK;EACT,IAAI,UAAU,QAAQ,UAAU,OAAO;GACrC,OAAuB,oBAAK,QAAQ;IAClC,OAAO;IACP;IACA,MAAM,UAAU;IAChB,cAAc;IACd,WAAW;GACb,GAAG,OAAO,EAAE;EACd;EACA,OAAuB,oBAAK,QAAQ;GAClC,OAAO;GACP;GACA,OAAO,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,eAAe,gBAAgB,KAAK;GAC9G,WAAW;GACX,SAAS;EACX,GAAG,OAAO,EAAE;CACd;CACA,OAAO,SAAS,eAAe,QAAQ;EACrC,IAAI,EAAE,SAAS,eAAe,uBAAuB,OAAO,aAAa;EACzE,IAAI,QAAQ,QAAQ,IAAI,SAAS,QAAQ;GACvC,OAAO,aAAa,QAAQ,aAAa;EAC3C,CAAC;EACD,IAAI,OAAO,QAAwB,oBAAK,SAAS;GAC/C;GACA,UAAU;EACZ,CAAC,IAAI;EACL,IAAI,UAA0B,oBAAK,YAAY;GAC7C,eAAe;GACf,UAA0B,oBAAKA,UAAW,EACxC,SACF,CAAC;EACH,CAAC;EACD,OAAuB,oBAAK,MAAM;GAChC,gBAAgB;GAChB,UAAU,wBAAwC,qBAAM,aAAa,EACnE,UAAU,CACQ,oBAAK,YAAY,SAAS,EACxC,UAAU,QACZ,CAAC,GACe,oBAAK,YAAY,OAAO,EACtC,UAAU,KACZ,CAAC,CACH,EACF,CAAC,IAAoB,oBAAK,MAAM;IAC9B,OAAO;IACP,UAAU;GACZ,CAAC;EACH,CAAC;CACH;AACF"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.mjs";
|
|
|
2
2
|
import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.mjs";
|
|
3
3
|
import { getWorklets } from "./workletsState.mjs";
|
|
4
4
|
import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.mjs";
|
|
5
|
-
import { getLinearGradient } from "./linearGradientState.mjs";
|
|
6
5
|
import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.mjs";
|
|
7
6
|
import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
8
7
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
|
|
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.mjs";
|
|
|
10
9
|
import { getBurnt } from "./burntState.mjs";
|
|
11
10
|
import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.mjs";
|
|
12
11
|
|
|
13
|
-
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState,
|
|
12
|
+
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.mjs";
|
|
|
2
2
|
import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.mjs";
|
|
3
3
|
import { getWorklets } from "./workletsState.mjs";
|
|
4
4
|
import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.mjs";
|
|
5
|
-
import { getLinearGradient } from "./linearGradientState.mjs";
|
|
6
5
|
import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.mjs";
|
|
7
6
|
import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
8
7
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
|
|
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.mjs";
|
|
|
10
9
|
import { getBurnt } from "./burntState.mjs";
|
|
11
10
|
import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.mjs";
|
|
12
11
|
|
|
13
|
-
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState,
|
|
12
|
+
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
|
package/dist/esm/index.native.js
CHANGED
|
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.native.js";
|
|
|
2
2
|
import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.native.js";
|
|
3
3
|
import { getWorklets } from "./workletsState.native.js";
|
|
4
4
|
import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.native.js";
|
|
5
|
-
import { getLinearGradient } from "./linearGradientState.native.js";
|
|
6
5
|
import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.native.js";
|
|
7
6
|
import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
8
7
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.native.js";
|
|
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.native.js";
|
|
|
10
9
|
import { getBurnt } from "./burntState.native.js";
|
|
11
10
|
import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.native.js";
|
|
12
11
|
|
|
13
|
-
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState,
|
|
12
|
+
export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const KEY = "__tamagui_native_menu_context__";
|
|
4
|
+
const g = globalThis;
|
|
5
|
+
const NativeMenuContext = g[KEY] ??= createContext(false);
|
|
4
6
|
|
|
5
7
|
export { NativeMenuContext };
|
|
6
8
|
//# sourceMappingURL=nativeMenuContext.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeMenuContext.js","names":[],"sources":["esm/nativeMenuContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst NativeMenuContext = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,MAAM,oBAAoB,cAAc,KAAK"}
|
|
1
|
+
{"version":3,"file":"nativeMenuContext.js","names":[],"sources":["esm/nativeMenuContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst KEY = \"__tamagui_native_menu_context__\";\nconst g = globalThis;\nconst NativeMenuContext = g[KEY] ??= createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,oBAAoB,EAAE,SAAS,cAAc,KAAK"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _g;
|
|
4
|
+
var _KEY;
|
|
5
|
+
var KEY = "__tamagui_native_menu_context__";
|
|
6
|
+
var g = globalThis;
|
|
7
|
+
var _;
|
|
8
|
+
var NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = createContext(false);
|
|
4
9
|
|
|
5
10
|
export { NativeMenuContext };
|
|
6
11
|
//# sourceMappingURL=nativeMenuContext.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["esm/nativeMenuContext.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar NativeMenuContext = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI,
|
|
1
|
+
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["esm/nativeMenuContext.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar _g;\nvar _KEY;\nvar KEY = \"__tamagui_native_menu_context__\";\nvar g = globalThis;\nvar _;\nvar NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI;AACJ,IAAI;AACJ,IAAI,MAAM;AACV,IAAI,IAAI;AACR,IAAI;AACJ,IAAI,qBAAqB,KAAK,KAAK,EAAC,CAAE,OAAO,UAAU,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,QAAQ,cAAc,KAAK"}
|
package/dist/esm/setup-burnt.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { getBurnt } from "./burntState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_burnt_setup) return;
|
|
11
6
|
g.__tamagui_native_burnt_setup = true;
|
|
12
7
|
try {
|
|
13
|
-
const Burnt =
|
|
8
|
+
const Burnt = require("burnt");
|
|
14
9
|
if (Burnt) {
|
|
15
10
|
getBurnt().set({
|
|
16
11
|
enabled: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getBurnt } from "./burntState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_burnt_setup) return;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
|
|
2
|
+
import { createExpoUIMenuView } from "./expoUIMenuView.mjs";
|
|
2
3
|
import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
3
|
-
|
|
4
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
|
-
});
|
|
4
|
+
import { Platform } from "react-native-web";
|
|
8
5
|
|
|
9
6
|
function setup() {
|
|
10
7
|
let MenuView;
|
|
11
8
|
try {
|
|
12
|
-
MenuView =
|
|
9
|
+
MenuView = Platform.OS === "ios" ? createExpoUIMenuView({
|
|
10
|
+
swiftUI: require("@expo/ui/swift-ui"),
|
|
11
|
+
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
12
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
13
13
|
} catch (error) {
|
|
14
14
|
if (process.env.NODE_ENV === "development") {
|
|
15
15
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-expo-ui-menu.js","names":[],"sources":["esm/setup-expo-ui-menu.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n let MenuView;\n try {\n MenuView = require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({ MenuView }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-expo-ui-menu.js","names":[],"sources":["esm/setup-expo-ui-menu.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nimport { Platform } from \"react-native-web\";\nfunction setup() {\n let MenuView;\n try {\n MenuView = Platform.OS === \"ios\" ? createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n }) : require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({ MenuView }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,WAAW,SAAS,OAAO,QAAQ,qBAAqB;GACtD,mBAAiB,mBAAmB;GACpC,qBAAmB,6BAA6B;EAClD,CAAC,cAAY,yBAAyB,CAAC,CAAC;CAC1C,SAAS,OAAO;EACd,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yCAAyC,KAAK;EAC7D;EACA;CACF;CACA,0BAA0B,wBAAwB,EAAE,SAAS,CAAC,CAAC;AACjE;AACA,MAAM"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.native.js";
|
|
2
|
+
import { createExpoUIMenuView } from "./expoUIMenuView.native.js";
|
|
2
3
|
import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
3
|
-
|
|
4
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
|
-
});
|
|
4
|
+
import { Platform } from "react-native";
|
|
8
5
|
|
|
9
6
|
function setup() {
|
|
10
7
|
var MenuView;
|
|
11
8
|
try {
|
|
12
|
-
MenuView =
|
|
9
|
+
MenuView = Platform.OS === "ios" ? createExpoUIMenuView({
|
|
10
|
+
swiftUI: require("@expo/ui/swift-ui"),
|
|
11
|
+
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
12
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
13
13
|
} catch (error) {
|
|
14
14
|
if (process.env.NODE_ENV === "development") {
|
|
15
15
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["esm/setup-expo-ui-menu.native.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n var MenuView;\n try {\n MenuView = require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["esm/setup-expo-ui-menu.native.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nimport { Platform } from \"react-native\";\nfunction setup() {\n var MenuView;\n try {\n MenuView = Platform.OS === \"ios\" ? createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n }) : require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,WAAW,SAAS,OAAO,QAAQ,qBAAqB;GACtD,mBAAiB,mBAAmB;GACpC,qBAAmB,6BAA6B;EAClD,CAAC,cAAY,yBAAyB,CAAC,CAAC;CAC1C,SAAS,OAAO;EACd,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yCAAyC,KAAK;EAC7D;EACA;CACF;CACA,0BAA0B,wBAAwB,EAChD,SACF,CAAC,CAAC;AACJ;AACA,MAAM"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
let currentConfig = {
|
|
9
4
|
pressEvents: true,
|
|
10
5
|
sheet: true
|
|
@@ -26,7 +21,7 @@ function setupGestureHandler(config) {
|
|
|
26
21
|
const isFirstRun = !g.__tamagui_native_gesture_setup_complete;
|
|
27
22
|
g.__tamagui_native_gesture_setup_complete = true;
|
|
28
23
|
try {
|
|
29
|
-
const rngh =
|
|
24
|
+
const rngh = require("react-native-gesture-handler");
|
|
30
25
|
const { Gesture, GestureDetector, ScrollView, GestureHandlerRootView } = rngh;
|
|
31
26
|
if (Gesture && GestureDetector) {
|
|
32
27
|
getGestureHandler().set({
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
var currentConfig = {
|
|
9
4
|
pressEvents: true,
|
|
10
5
|
sheet: true
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { setKeyboardControllerState } from "./keyboardControllerState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_keyboard_controller_setup_complete) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPortal } from "./portalState.mjs";
|
|
2
|
+
|
|
3
|
+
function setup() {
|
|
4
|
+
const g = globalThis;
|
|
5
|
+
if (g.__tamagui_native_portal_setup) return;
|
|
6
|
+
g.__tamagui_native_portal_setup = true;
|
|
7
|
+
const { One } = require("one");
|
|
8
|
+
g.__tamagui_teleport = {
|
|
9
|
+
Portal: One.UI.Portal,
|
|
10
|
+
PortalHost: One.UI.PortalHost,
|
|
11
|
+
hostStyle: {
|
|
12
|
+
position: "absolute",
|
|
13
|
+
top: 0,
|
|
14
|
+
right: 0,
|
|
15
|
+
bottom: 0,
|
|
16
|
+
left: 0
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
getPortal().set({
|
|
20
|
+
enabled: true,
|
|
21
|
+
type: "teleport"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
setup();
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=setup-one-portal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-one-portal.js","names":[],"sources":["esm/setup-one-portal.js"],"sourcesContent":["import { getPortal } from \"./portalState\";\nfunction setup() {\n const g = globalThis;\n if (g.__tamagui_native_portal_setup) return;\n g.__tamagui_native_portal_setup = true;\n const { One } = require(\"one\");\n g.__tamagui_teleport = {\n Portal: One.UI.Portal,\n PortalHost: One.UI.PortalHost,\n hostStyle: { position: \"absolute\", top: 0, right: 0, bottom: 0, left: 0 }\n };\n getPortal().set({ enabled: true, type: \"teleport\" });\n}\nsetup();\n//# sourceMappingURL=setup-one-portal.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,MAAM,IAAI;CACV,IAAI,EAAE,+BAA+B;CACrC,EAAE,gCAAgC;CAClC,MAAM,EAAE,kBAAgB,KAAK;CAC7B,EAAE,qBAAqB;EACrB,QAAQ,IAAI,GAAG;EACf,YAAY,IAAI,GAAG;EACnB,WAAW;GAAE,UAAU;GAAY,KAAK;GAAG,OAAO;GAAG,QAAQ;GAAG,MAAM;EAAE;CAC1E;CACA,UAAU,CAAC,CAAC,IAAI;EAAE,SAAS;EAAM,MAAM;CAAW,CAAC;AACrD;AACA,MAAM"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPortal } from "./portalState.native.js";
|
|
2
|
+
|
|
3
|
+
function setup() {
|
|
4
|
+
var g = globalThis;
|
|
5
|
+
if (g.__tamagui_native_portal_setup) return;
|
|
6
|
+
g.__tamagui_native_portal_setup = true;
|
|
7
|
+
var { One } = require("one");
|
|
8
|
+
g.__tamagui_teleport = {
|
|
9
|
+
Portal: One.UI.Portal,
|
|
10
|
+
PortalHost: One.UI.PortalHost,
|
|
11
|
+
hostStyle: {
|
|
12
|
+
position: "absolute",
|
|
13
|
+
top: 0,
|
|
14
|
+
right: 0,
|
|
15
|
+
bottom: 0,
|
|
16
|
+
left: 0
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
getPortal().set({
|
|
20
|
+
enabled: true,
|
|
21
|
+
type: "teleport"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
setup();
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=setup-one-portal.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-one-portal.native.js","names":[],"sources":["esm/setup-one-portal.native.js"],"sourcesContent":["import { getPortal } from \"./portalState\";\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_portal_setup) return;\n g.__tamagui_native_portal_setup = true;\n var { One } = require(\"one\");\n g.__tamagui_teleport = {\n Portal: One.UI.Portal,\n PortalHost: One.UI.PortalHost,\n hostStyle: {\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n };\n getPortal().set({\n enabled: true,\n type: \"teleport\"\n });\n}\nsetup();\n//# sourceMappingURL=setup-one-portal.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,+BAA+B;CACrC,EAAE,gCAAgC;CAClC,IAAI,EAAE,kBAAgB,KAAK;CAC3B,EAAE,qBAAqB;EACrB,QAAQ,IAAI,GAAG;EACf,YAAY,IAAI,GAAG;EACnB,WAAW;GACT,UAAU;GACV,KAAK;GACL,OAAO;GACP,QAAQ;GACR,MAAM;EACR;CACF;CACA,UAAU,CAAC,CAAC,IAAI;EACd,SAAS;EACT,MAAM;CACR,CAAC;AACH;AACA,MAAM"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_portal_setup) return;
|
|
11
6
|
g.__tamagui_native_portal_setup = true;
|
|
12
7
|
try {
|
|
13
|
-
const teleport =
|
|
8
|
+
const teleport = require("react-native-teleport");
|
|
14
9
|
if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {
|
|
15
10
|
g.__tamagui_teleport = teleport;
|
|
16
11
|
getPortal().set({
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_portal_setup) return;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_worklets_setup_complete) {
|
|
@@ -12,7 +7,7 @@ function setup() {
|
|
|
12
7
|
}
|
|
13
8
|
g.__tamagui_native_worklets_setup_complete = true;
|
|
14
9
|
try {
|
|
15
|
-
const worklets =
|
|
10
|
+
const worklets = require("react-native-worklets-core");
|
|
16
11
|
if (worklets) {
|
|
17
12
|
getWorklets().set({
|
|
18
13
|
enabled: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_worklets_setup_complete) {
|
package/dist/esm/setup-zeego.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
let Menu;
|
|
10
5
|
let ContextMenu;
|
|
11
6
|
try {
|
|
12
|
-
Menu =
|
|
13
|
-
ContextMenu =
|
|
7
|
+
Menu = require("zeego/dropdown-menu");
|
|
8
|
+
ContextMenu = require("zeego/context-menu");
|
|
14
9
|
} catch (err) {
|
|
15
10
|
if (process.env.NODE_ENV === "development") {
|
|
16
11
|
console.warn(`Error setting up Zeego`, err);
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var Menu;
|
|
10
5
|
var ContextMenu;
|