@tamagui/demos 1.144.3 → 1.144.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.
Files changed (34) hide show
  1. package/dist/cjs/AnimationsDelayDemo.cjs +85 -0
  2. package/dist/cjs/AnimationsDelayDemo.js +56 -0
  3. package/dist/cjs/AnimationsDelayDemo.js.map +6 -0
  4. package/dist/cjs/AnimationsDelayDemo.native.js +92 -0
  5. package/dist/cjs/AnimationsDelayDemo.native.js.map +1 -0
  6. package/dist/cjs/ContextMenuDemo.cjs +228 -0
  7. package/dist/cjs/ContextMenuDemo.js +200 -0
  8. package/dist/cjs/ContextMenuDemo.js.map +6 -0
  9. package/dist/cjs/ContextMenuDemo.native.js +234 -0
  10. package/dist/cjs/ContextMenuDemo.native.js.map +1 -0
  11. package/dist/cjs/MenuDemo.cjs +227 -0
  12. package/dist/cjs/MenuDemo.js +177 -0
  13. package/dist/cjs/MenuDemo.js.map +6 -0
  14. package/dist/cjs/MenuDemo.native.js +233 -0
  15. package/dist/cjs/MenuDemo.native.js.map +1 -0
  16. package/dist/esm/AnimationsDelayDemo.js +35 -0
  17. package/dist/esm/AnimationsDelayDemo.js.map +6 -0
  18. package/dist/esm/AnimationsDelayDemo.mjs +51 -0
  19. package/dist/esm/AnimationsDelayDemo.mjs.map +1 -0
  20. package/dist/esm/AnimationsDelayDemo.native.js +55 -0
  21. package/dist/esm/AnimationsDelayDemo.native.js.map +1 -0
  22. package/dist/esm/ContextMenuDemo.js +180 -0
  23. package/dist/esm/ContextMenuDemo.js.map +6 -0
  24. package/dist/esm/ContextMenuDemo.mjs +194 -0
  25. package/dist/esm/ContextMenuDemo.mjs.map +1 -0
  26. package/dist/esm/ContextMenuDemo.native.js +197 -0
  27. package/dist/esm/ContextMenuDemo.native.js.map +1 -0
  28. package/dist/esm/MenuDemo.js +165 -0
  29. package/dist/esm/MenuDemo.js.map +6 -0
  30. package/dist/esm/MenuDemo.mjs +193 -0
  31. package/dist/esm/MenuDemo.mjs.map +1 -0
  32. package/dist/esm/MenuDemo.native.js +196 -0
  33. package/dist/esm/MenuDemo.native.js.map +1 -0
  34. package/package.json +31 -31
@@ -0,0 +1,85 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var AnimationsDelayDemo_exports = {};
33
+ __export(AnimationsDelayDemo_exports, {
34
+ AnimationsDelayDemo: () => AnimationsDelayDemo
35
+ });
36
+ module.exports = __toCommonJS(AnimationsDelayDemo_exports);
37
+ var import_react = __toESM(require("react"), 1),
38
+ import_tamagui = require("tamagui"),
39
+ import_useOnIntersecting = require("./useOnIntersecting.cjs"),
40
+ import_jsx_runtime = require("react/jsx-runtime");
41
+ const colors = ["$color9", "$color10", "$color11", "$color12"];
42
+ function AnimationsDelayDemo() {
43
+ const ref = import_react.default.useRef(null),
44
+ hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {
45
+ once: !0
46
+ }),
47
+ [show, setShow] = import_react.default.useState(!0);
48
+ return import_tamagui.isWeb && !hasIntersected ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
49
+ ref,
50
+ height: 150
51
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
52
+ gap: "$4",
53
+ items: "center",
54
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
55
+ gap: "$3",
56
+ height: 100,
57
+ items: "center",
58
+ justify: "center",
59
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, {
60
+ children: show && colors.map((color, i) => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Square, {
61
+ transition: ["200ms", {
62
+ delay: i * 100
63
+ }],
64
+ enterStyle: {
65
+ opacity: 0,
66
+ scale: 0.5,
67
+ y: 20
68
+ },
69
+ exitStyle: {
70
+ opacity: 0,
71
+ scale: 0,
72
+ y: 20
73
+ },
74
+ size: 60,
75
+ bg: color,
76
+ rounded: "$4"
77
+ }, color))
78
+ })
79
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
80
+ size: "$3",
81
+ onPress: () => setShow(!show),
82
+ children: show ? "Hide" : "Show"
83
+ })]
84
+ });
85
+ }
@@ -0,0 +1,56 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var AnimationsDelayDemo_exports = {};
24
+ __export(AnimationsDelayDemo_exports, {
25
+ AnimationsDelayDemo: () => AnimationsDelayDemo
26
+ });
27
+ module.exports = __toCommonJS(AnimationsDelayDemo_exports);
28
+ var import_react = __toESM(require("react"), 1), import_tamagui = require("tamagui"), import_useOnIntersecting = require("./useOnIntersecting"), import_jsx_runtime = require("react/jsx-runtime");
29
+ const colors = ["$color9", "$color10", "$color11", "$color12"];
30
+ function AnimationsDelayDemo() {
31
+ const ref = import_react.default.useRef(null), hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, { once: !0 }), [show, setShow] = import_react.default.useState(!0);
32
+ return import_tamagui.isWeb && !hasIntersected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { ref, height: 150 }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { gap: "$4", items: "center", children: [
33
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { gap: "$3", height: 100, items: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { children: show && colors.map((color, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
34
+ import_tamagui.Square,
35
+ {
36
+ transition: ["200ms", { delay: i * 100 }],
37
+ enterStyle: {
38
+ opacity: 0,
39
+ scale: 0.5,
40
+ y: 20
41
+ },
42
+ exitStyle: {
43
+ opacity: 0,
44
+ scale: 0,
45
+ y: 20
46
+ },
47
+ size: 60,
48
+ bg: color,
49
+ rounded: "$4"
50
+ },
51
+ color
52
+ )) }) }),
53
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: "$3", onPress: () => setShow(!show), children: show ? "Hide" : "Show" })
54
+ ] });
55
+ }
56
+ //# sourceMappingURL=AnimationsDelayDemo.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AnimationsDelayDemo.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAClB,iBAAuE,oBAEvE,2BAAkC,gCAUvB;AARX,MAAM,SAAS,CAAC,WAAW,YAAY,YAAY,UAAU;AAEtD,SAAS,sBAAsB;AACpC,QAAM,MAAM,aAAAA,QAAM,OAAoB,IAAI,GACpC,qBAAiB,4CAAkB,KAAK,EAAE,MAAM,GAAK,CAAC,GACtD,CAAC,MAAM,OAAO,IAAI,aAAAA,QAAM,SAAS,EAAI;AAE3C,SAAI,wBAAS,CAAC,iBACL,4CAAC,yBAAO,KAAiB,QAAQ,KAAK,IAI7C,6CAAC,yBAAO,KAAI,MAAK,OAAM,UACrB;AAAA,gDAAC,yBAAO,KAAI,MAAK,QAAQ,KAAK,OAAM,UAAS,SAAQ,UACnD,sDAAC,kCACE,kBACC,OAAO,IAAI,CAAC,OAAO,MACjB;AAAA,MAAC;AAAA;AAAA,QAEC,YAAY,CAAC,SAAS,EAAE,OAAO,IAAI,IAAI,CAAC;AAAA,QACxC,YAAY;AAAA,UACV,SAAS;AAAA,UACT,OAAO;AAAA,UACP,GAAG;AAAA,QACL;AAAA,QACA,WAAW;AAAA,UACT,SAAS;AAAA,UACT,OAAO;AAAA,UACP,GAAG;AAAA,QACL;AAAA,QACA,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,SAAQ;AAAA;AAAA,MAdH;AAAA,IAeP,CACD,GACL,GACF;AAAA,IAEA,4CAAC,yBAAO,MAAK,MAAK,SAAS,MAAM,QAAQ,CAAC,IAAI,GAC3C,iBAAO,SAAS,QACnB;AAAA,KACF;AAEJ;",
5
+ "names": ["React"]
6
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
34
+ var AnimationsDelayDemo_exports = {};
35
+ __export(AnimationsDelayDemo_exports, {
36
+ AnimationsDelayDemo: () => AnimationsDelayDemo
37
+ });
38
+ module.exports = __toCommonJS(AnimationsDelayDemo_exports);
39
+ var import_jsx_runtime = require("react/jsx-runtime"),
40
+ import_react = __toESM(require("react"), 1),
41
+ import_tamagui = require("tamagui"),
42
+ import_useOnIntersecting = require("./useOnIntersecting.native.js"),
43
+ colors = ["$color9", "$color10", "$color11", "$color12"];
44
+ function AnimationsDelayDemo() {
45
+ var ref = import_react.default.useRef(null),
46
+ hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, {
47
+ once: !0
48
+ }),
49
+ [show, setShow] = import_react.default.useState(!0);
50
+ return import_tamagui.isWeb && !hasIntersected ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
51
+ ref,
52
+ height: 150
53
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
54
+ gap: "$4",
55
+ items: "center",
56
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
57
+ gap: "$3",
58
+ height: 100,
59
+ items: "center",
60
+ justify: "center",
61
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, {
62
+ children: show && colors.map(function (color, i) {
63
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Square, {
64
+ transition: ["200ms", {
65
+ delay: i * 100
66
+ }],
67
+ enterStyle: {
68
+ opacity: 0,
69
+ scale: 0.5,
70
+ y: 20
71
+ },
72
+ exitStyle: {
73
+ opacity: 0,
74
+ scale: 0,
75
+ y: 20
76
+ },
77
+ size: 60,
78
+ bg: color,
79
+ rounded: "$4"
80
+ }, color);
81
+ })
82
+ })
83
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Button, {
84
+ size: "$3",
85
+ onPress: function () {
86
+ return setShow(!show);
87
+ },
88
+ children: show ? "Hide" : "Show"
89
+ })]
90
+ });
91
+ }
92
+ //# sourceMappingURL=AnimationsDelayDemo.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","AnimationsDelayDemo_exports","__export","AnimationsDelayDemo","module","exports","import_jsx_runtime","require","import_react","__toESM","import_tamagui","import_useOnIntersecting","colors","ref","default","useRef","hasIntersected","useIsIntersecting","once","show","setShow","useState","isWeb","jsx","YStack","height","jsxs","gap","items","children","XStack","justify","AnimatePresence","map","color","i","Square","transition"],"sources":["../../src/AnimationsDelayDemo.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,2BAClB;AAIA,IAAAK,kBAAgB,GAAAC,OAAW,oBAAwB;EAAAC,YAAU,GAAAC,OAAA,CAAAF,OAAA;EAAAG,cAAA,GAAAH,OAAA;EAAAI,wBAAA,GAAAJ,OAAA;EAAAK,MAAA,IAEtD,SAAS,EACd,UAAM,EAIN,UAAI,EAMA,WAIQ;AAAC,SAAAT,oBAAA;EAAA,IAAAU,GAEC,GAAAL,YAAa,CAAAM,OAAW,CAAAC,MAAO,KAAI;IAAIC,cAAC,OAAAL,wBAAA,CAAAM,iBAAA,EAAAJ,GAAA;MAAAK,IACxC;IAAY;IAAA,CAAAC,IACV,EAAAC,OAAS,IAAAZ,YAAA,CAAAM,OAAA,CAAAO,QAAA;EAAA,OAAAX,cACF,CAAAY,KAAA,KAAAN,cAAA,sBAAAV,kBAAA,CAAAiB,GAAA,EAAAb,cAAA,CAAAc,MAAA;IAAAX,GAAA;IACJY,MACL;EAAA,oBACW,IAAAnB,kBAAA,CAAAoB,IAAA,EAAAhB,cAAA,CAAAc,MAAA;IAAAG,GAAA,MACT;IAASC,KAAA,EACT,QAAO;IAAAC,QACP,EAAG,gBACL,IAAAvB,kBAAA,CAAAiB,GAAA,EAAAb,cAAA,CAAAoB,MAAA;MACAH,GAAA,MAAM;MACNF,MAAI;MACJG,KAAA,UAAQ;MAAAG,OAAA;MAdHF,QAAA,qBAAAvB,kBAAA,CAAAiB,GAAA,EAAAb,cAAA,CAAAsB,eAAA;QAiBbH,QACF,EAAAV,IAAA,IAAAP,MAAA,CAAAqB,GAAA,WAAAC,KAAA,EAAAC,CAAA;UAEA,0BAAA7B,kBAAC,CAAAiB,GAAA,EAAAb,cAAO,CAAA0B,MAAK,EAAK;YAGpBC,UAAA,GAEJ,S","ignoreList":[]}
@@ -0,0 +1,228 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var ContextMenuDemo_exports = {};
33
+ __export(ContextMenuDemo_exports, {
34
+ ContextMenuDemo: () => ContextMenuDemo
35
+ });
36
+ module.exports = __toCommonJS(ContextMenuDemo_exports);
37
+ var import_context_menu = require("@tamagui/context-menu"),
38
+ import_lucide_icons = require("@tamagui/lucide-icons"),
39
+ import_react = __toESM(require("react"), 1),
40
+ import_tamagui = require("tamagui"),
41
+ import_jsx_runtime = require("react/jsx-runtime");
42
+ function ContextMenuDemo() {
43
+ const [bookmarksChecked, setBookmarksChecked] = import_react.default.useState(!0),
44
+ [native, setNative] = import_react.default.useState(!0),
45
+ onSelect = () => {
46
+ console.info("onSelect");
47
+ };
48
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu, {
49
+ allowFlip: !0,
50
+ native,
51
+ placement: "bottom-start",
52
+ offset: 14,
53
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Trigger, {
54
+ asChild: !0,
55
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
56
+ p: "$4",
57
+ rounded: "$4",
58
+ borderWidth: 1,
59
+ borderStyle: "dashed",
60
+ borderColor: "$color6",
61
+ cursor: "default",
62
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
63
+ text: "center",
64
+ select: "none",
65
+ color: "$color10",
66
+ children: "Right Click or Long Press"
67
+ })
68
+ })
69
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Portal, {
70
+ zIndex: 100,
71
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Content, {
72
+ p: "$1.5",
73
+ minW: 180,
74
+ borderWidth: 1,
75
+ borderColor: "$borderColor",
76
+ transformOrigin: "left top",
77
+ enterStyle: {
78
+ scale: 0.9,
79
+ opacity: 0,
80
+ y: -5
81
+ },
82
+ exitStyle: {
83
+ scale: 0.95,
84
+ opacity: 0,
85
+ y: -3
86
+ },
87
+ elevation: "$3",
88
+ transition: "100ms",
89
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Arrow, {
90
+ size: "$4",
91
+ borderWidth: 1,
92
+ borderColor: "$borderColor"
93
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Preview, {
94
+ children: () => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
95
+ items: "center",
96
+ justify: "center",
97
+ height: 100,
98
+ width: 250,
99
+ bg: "pink",
100
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
101
+ children: "Your Preview here"
102
+ })
103
+ })
104
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
105
+ onSelect,
106
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
107
+ children: "About Notes"
108
+ })
109
+ }, "about-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
110
+ onSelect,
111
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
112
+ children: "Settings"
113
+ })
114
+ }, "settings"), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Item, {
115
+ onSelect,
116
+ justify: "space-between",
117
+ textValue: "Calendar",
118
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
119
+ children: "Calendar"
120
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIcon, {
121
+ androidIconName: "ic_menu_today",
122
+ ios: {
123
+ name: "calendar"
124
+ },
125
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Calendar, {
126
+ color: "gray",
127
+ size: 14
128
+ })
129
+ })]
130
+ }, "accounts"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
131
+ onSelect,
132
+ disabled: !0,
133
+ textValue: "Locked Notes",
134
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
135
+ color: "gray",
136
+ children: "Locked Notes"
137
+ })
138
+ }, "close-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
139
+ destructive: !0,
140
+ onSelect,
141
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
142
+ color: "red",
143
+ children: "Delete all"
144
+ })
145
+ }, "delete-all"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Sub, {
146
+ placement: "right-start",
147
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.SubTrigger, {
148
+ justify: "space-between",
149
+ textValue: "Actions",
150
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
151
+ children: "Actions"
152
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.ChevronRight, {
153
+ size: 12,
154
+ color: "$color10"
155
+ })]
156
+ }, "actions-trigger"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Portal, {
157
+ zIndex: 200,
158
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.SubContent, {
159
+ enterStyle: {
160
+ scale: 0.9,
161
+ opacity: 0,
162
+ x: -5
163
+ },
164
+ exitStyle: {
165
+ scale: 0.95,
166
+ opacity: 0,
167
+ x: -3
168
+ },
169
+ transition: "100ms",
170
+ transformOrigin: "left top",
171
+ elevation: "$3",
172
+ minW: 160,
173
+ bg: "$background",
174
+ p: "$1.5",
175
+ borderWidth: 1,
176
+ borderColor: "$borderColor",
177
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Label, {
178
+ children: "Note settings"
179
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
180
+ onSelect,
181
+ textValue: "Create note",
182
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
183
+ children: "Create note"
184
+ })
185
+ }, "create-note"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
186
+ onSelect,
187
+ textValue: "Delete all notes",
188
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
189
+ children: "Delete all notes"
190
+ })
191
+ }, "delete-all-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
192
+ onSelect,
193
+ textValue: "Sync notes",
194
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
195
+ children: "Sync notes"
196
+ })
197
+ }, "sync-all")]
198
+ })
199
+ })]
200
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.CheckboxItem, {
201
+ checked: bookmarksChecked,
202
+ onCheckedChange: setBookmarksChecked,
203
+ justify: "space-between",
204
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
205
+ children: "Mark as read"
206
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIndicator, {
207
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Check, {
208
+ size: 12,
209
+ color: "$color10"
210
+ })
211
+ })]
212
+ }, "show-hidden"), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.CheckboxItem, {
213
+ checked: native,
214
+ onCheckedChange: setNative,
215
+ justify: "space-between",
216
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
217
+ children: "Enable Native"
218
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIndicator, {
219
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Check, {
220
+ size: 12,
221
+ color: "$color10"
222
+ })
223
+ })]
224
+ }, "show-other-notes")]
225
+ })
226
+ })]
227
+ });
228
+ }