@tamagui/demos 1.144.1 → 1.144.2
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 +31 -31
- package/dist/cjs/AnimationsDelayDemo.cjs +0 -85
- package/dist/cjs/AnimationsDelayDemo.js +0 -56
- package/dist/cjs/AnimationsDelayDemo.js.map +0 -6
- package/dist/cjs/AnimationsDelayDemo.native.js +0 -92
- package/dist/cjs/AnimationsDelayDemo.native.js.map +0 -1
- package/dist/cjs/ContextMenuDemo.cjs +0 -238
- package/dist/cjs/ContextMenuDemo.js +0 -190
- package/dist/cjs/ContextMenuDemo.js.map +0 -6
- package/dist/cjs/ContextMenuDemo.native.js +0 -245
- package/dist/cjs/ContextMenuDemo.native.js.map +0 -1
- package/dist/cjs/MenuDemo.cjs +0 -227
- package/dist/cjs/MenuDemo.js +0 -180
- package/dist/cjs/MenuDemo.js.map +0 -6
- package/dist/cjs/MenuDemo.native.js +0 -232
- package/dist/cjs/MenuDemo.native.js.map +0 -1
- package/dist/esm/AnimationsDelayDemo.js +0 -35
- package/dist/esm/AnimationsDelayDemo.js.map +0 -6
- package/dist/esm/AnimationsDelayDemo.mjs +0 -51
- package/dist/esm/AnimationsDelayDemo.mjs.map +0 -1
- package/dist/esm/AnimationsDelayDemo.native.js +0 -55
- package/dist/esm/AnimationsDelayDemo.native.js.map +0 -1
- package/dist/esm/ContextMenuDemo.js +0 -170
- package/dist/esm/ContextMenuDemo.js.map +0 -6
- package/dist/esm/ContextMenuDemo.mjs +0 -204
- package/dist/esm/ContextMenuDemo.mjs.map +0 -1
- package/dist/esm/ContextMenuDemo.native.js +0 -208
- package/dist/esm/ContextMenuDemo.native.js.map +0 -1
- package/dist/esm/MenuDemo.js +0 -161
- package/dist/esm/MenuDemo.js.map +0 -6
- package/dist/esm/MenuDemo.mjs +0 -193
- package/dist/esm/MenuDemo.mjs.map +0 -1
- package/dist/esm/MenuDemo.native.js +0 -195
- package/dist/esm/MenuDemo.native.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/demos",
|
|
3
|
-
"version": "1.144.
|
|
3
|
+
"version": "1.144.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -50,42 +50,42 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@tamagui/animate-presence": "1.144.
|
|
54
|
-
"@tamagui/avatar": "1.144.
|
|
55
|
-
"@tamagui/button": "1.144.
|
|
56
|
-
"@tamagui/checkbox": "1.144.
|
|
57
|
-
"@tamagui/checkbox-headless": "1.144.
|
|
58
|
-
"@tamagui/config": "1.144.
|
|
59
|
-
"@tamagui/core": "1.144.
|
|
60
|
-
"@tamagui/get-button-sized": "1.144.
|
|
61
|
-
"@tamagui/image-next": "1.144.
|
|
62
|
-
"@tamagui/list-item": "1.144.
|
|
63
|
-
"@tamagui/logo": "1.144.
|
|
64
|
-
"@tamagui/lucide-icons": "1.144.
|
|
65
|
-
"@tamagui/menu": "1.144.
|
|
66
|
-
"@tamagui/popover": "1.144.
|
|
67
|
-
"@tamagui/progress": "1.144.
|
|
68
|
-
"@tamagui/radio-group": "1.144.
|
|
69
|
-
"@tamagui/radio-headless": "1.144.
|
|
70
|
-
"@tamagui/roving-focus": "1.144.
|
|
71
|
-
"@tamagui/select": "1.144.
|
|
72
|
-
"@tamagui/sheet": "1.144.
|
|
73
|
-
"@tamagui/slider": "1.144.
|
|
74
|
-
"@tamagui/stacks": "1.144.
|
|
75
|
-
"@tamagui/switch": "1.144.
|
|
76
|
-
"@tamagui/switch-headless": "1.144.
|
|
77
|
-
"@tamagui/tabs": "1.144.
|
|
78
|
-
"@tamagui/tamagui-dev-config": "1.144.
|
|
79
|
-
"@tamagui/theme": "1.144.
|
|
80
|
-
"@tamagui/toast": "1.144.
|
|
81
|
-
"tamagui": "1.144.
|
|
53
|
+
"@tamagui/animate-presence": "1.144.2",
|
|
54
|
+
"@tamagui/avatar": "1.144.2",
|
|
55
|
+
"@tamagui/button": "1.144.2",
|
|
56
|
+
"@tamagui/checkbox": "1.144.2",
|
|
57
|
+
"@tamagui/checkbox-headless": "1.144.2",
|
|
58
|
+
"@tamagui/config": "1.144.2",
|
|
59
|
+
"@tamagui/core": "1.144.2",
|
|
60
|
+
"@tamagui/get-button-sized": "1.144.2",
|
|
61
|
+
"@tamagui/image-next": "1.144.2",
|
|
62
|
+
"@tamagui/list-item": "1.144.2",
|
|
63
|
+
"@tamagui/logo": "1.144.2",
|
|
64
|
+
"@tamagui/lucide-icons": "1.144.2",
|
|
65
|
+
"@tamagui/menu": "1.144.2",
|
|
66
|
+
"@tamagui/popover": "1.144.2",
|
|
67
|
+
"@tamagui/progress": "1.144.2",
|
|
68
|
+
"@tamagui/radio-group": "1.144.2",
|
|
69
|
+
"@tamagui/radio-headless": "1.144.2",
|
|
70
|
+
"@tamagui/roving-focus": "1.144.2",
|
|
71
|
+
"@tamagui/select": "1.144.2",
|
|
72
|
+
"@tamagui/sheet": "1.144.2",
|
|
73
|
+
"@tamagui/slider": "1.144.2",
|
|
74
|
+
"@tamagui/stacks": "1.144.2",
|
|
75
|
+
"@tamagui/switch": "1.144.2",
|
|
76
|
+
"@tamagui/switch-headless": "1.144.2",
|
|
77
|
+
"@tamagui/tabs": "1.144.2",
|
|
78
|
+
"@tamagui/tamagui-dev-config": "1.144.2",
|
|
79
|
+
"@tamagui/theme": "1.144.2",
|
|
80
|
+
"@tamagui/toast": "1.144.2",
|
|
81
|
+
"tamagui": "1.144.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react": "*",
|
|
85
85
|
"react-native": "*"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@tamagui/build": "1.144.
|
|
88
|
+
"@tamagui/build": "1.144.2",
|
|
89
89
|
"react": "*",
|
|
90
90
|
"react-native": "0.81.5"
|
|
91
91
|
},
|
|
@@ -1,85 +0,0 @@
|
|
|
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 = ["$red10", "$green10", "$blue10", "$purple10"];
|
|
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
|
-
animation: ["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
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
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 = ["$red10", "$green10", "$blue10", "$purple10"];
|
|
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
|
-
animation: ["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
|
|
@@ -1,6 +0,0 @@
|
|
|
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,UAAU,YAAY,WAAW,WAAW;AAErD,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,KAAU,QAAQ,KAAK,IAItC,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,WAAW,CAAC,SAAS,EAAE,OAAO,IAAI,IAAI,CAAC;AAAA,QACvC,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
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
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 = ["$red10", "$green10", "$blue10", "$purple10"];
|
|
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
|
-
animation: ["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
|
|
@@ -1 +0,0 @@
|
|
|
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","animation"],"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,OAAU,oBAAuB;EAAAC,YAAW,GAAAC,OAAA,CAAAF,OAAA;EAAAG,cAAA,GAAAH,OAAA;EAAAI,wBAAA,GAAAJ,OAAA;EAAAK,MAAA,IAErD,QAAS,EACd,UAAM,EAIN,SAAI,EAMA,YAIQ;AAAC,SAAAT,oBAAA;EAAA,IAAAU,GAEC,GAAAL,YAAY,CAAAM,OAAW,CAAAC,MAAO,KAAI;IAAKC,cAAA,OAAAL,wBAAA,CAAAM,iBAAA,EAAAJ,GAAA;MAAAK,IACvC;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,SAAA,GAEJ,S","ignoreList":[]}
|
|
@@ -1,238 +0,0 @@
|
|
|
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
|
-
const Item = (0, import_tamagui.styled)(import_context_menu.ContextMenu.Item, {
|
|
43
|
-
py: 4,
|
|
44
|
-
hoverStyle: {
|
|
45
|
-
bg: "$color2"
|
|
46
|
-
},
|
|
47
|
-
pressStyle: {
|
|
48
|
-
bg: "$color3"
|
|
49
|
-
}
|
|
50
|
-
}),
|
|
51
|
-
ItemTitle = (0, import_tamagui.styled)(import_context_menu.ContextMenu.ItemTitle, {
|
|
52
|
-
color: "$color11"
|
|
53
|
-
});
|
|
54
|
-
Item.displayName = "Item";
|
|
55
|
-
ItemTitle.displayName = "ItemTitle";
|
|
56
|
-
function ContextMenuDemo() {
|
|
57
|
-
const [bookmarksChecked, setBookmarksChecked] = import_react.default.useState(!0),
|
|
58
|
-
[native, setNative] = import_react.default.useState(!0),
|
|
59
|
-
onSelect = () => {
|
|
60
|
-
console.info("onSelect");
|
|
61
|
-
};
|
|
62
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu, {
|
|
63
|
-
allowFlip: !0,
|
|
64
|
-
native,
|
|
65
|
-
placement: "right-start",
|
|
66
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Trigger, {
|
|
67
|
-
asChild: !0,
|
|
68
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
69
|
-
text: "center",
|
|
70
|
-
select: null,
|
|
71
|
-
children: "Right Click or longPress"
|
|
72
|
-
})
|
|
73
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Portal, {
|
|
74
|
-
zIndex: 100,
|
|
75
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Content, {
|
|
76
|
-
px: 0,
|
|
77
|
-
borderWidth: 1,
|
|
78
|
-
items: "flex-start",
|
|
79
|
-
borderColor: "$borderColor",
|
|
80
|
-
enterStyle: {
|
|
81
|
-
y: -10,
|
|
82
|
-
opacity: 0
|
|
83
|
-
},
|
|
84
|
-
exitStyle: {
|
|
85
|
-
y: -10,
|
|
86
|
-
opacity: 0
|
|
87
|
-
},
|
|
88
|
-
elevate: !0,
|
|
89
|
-
animation: ["quick", {
|
|
90
|
-
opacity: {
|
|
91
|
-
overshootClamping: !0
|
|
92
|
-
}
|
|
93
|
-
}],
|
|
94
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Preview, {
|
|
95
|
-
children: () => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
96
|
-
items: "center",
|
|
97
|
-
justify: "center",
|
|
98
|
-
height: 100,
|
|
99
|
-
width: 250,
|
|
100
|
-
style: {
|
|
101
|
-
backgroundColor: "pink"
|
|
102
|
-
},
|
|
103
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
104
|
-
children: "Your Preview here"
|
|
105
|
-
})
|
|
106
|
-
})
|
|
107
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
|
|
108
|
-
onSelect,
|
|
109
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
110
|
-
children: "About Notes"
|
|
111
|
-
})
|
|
112
|
-
}, "about-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Group, {
|
|
113
|
-
backgroundColor: "transparent",
|
|
114
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
|
|
115
|
-
onSelect,
|
|
116
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
117
|
-
children: "Settings"
|
|
118
|
-
})
|
|
119
|
-
}, "settings"), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Item, {
|
|
120
|
-
onSelect,
|
|
121
|
-
justify: "space-between",
|
|
122
|
-
textValue: "Calender",
|
|
123
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
124
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
125
|
-
children: "Calender"
|
|
126
|
-
})
|
|
127
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIcon, {
|
|
128
|
-
androidIconName: "ic_menu_today",
|
|
129
|
-
ios: {
|
|
130
|
-
name: "calendar"
|
|
131
|
-
},
|
|
132
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Calendar, {
|
|
133
|
-
color: "gray",
|
|
134
|
-
size: "$1"
|
|
135
|
-
})
|
|
136
|
-
})]
|
|
137
|
-
}, "accounts")]
|
|
138
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Group, {
|
|
139
|
-
backgroundColor: "transparent",
|
|
140
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
|
|
141
|
-
onSelect,
|
|
142
|
-
disabled: !0,
|
|
143
|
-
textValue: "locked notes",
|
|
144
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
145
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
146
|
-
color: "gray",
|
|
147
|
-
children: "locked notes"
|
|
148
|
-
})
|
|
149
|
-
})
|
|
150
|
-
}, "close-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Item, {
|
|
151
|
-
destructive: !0,
|
|
152
|
-
onSelect,
|
|
153
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
154
|
-
color: "red",
|
|
155
|
-
children: "Delete all"
|
|
156
|
-
})
|
|
157
|
-
}, "delete-all")]
|
|
158
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.Sub, {
|
|
159
|
-
placement: "right-start",
|
|
160
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.SubTrigger, {
|
|
161
|
-
justify: "space-between",
|
|
162
|
-
textValue: "Actions",
|
|
163
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
164
|
-
children: "Actions"
|
|
165
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.ChevronRight, {
|
|
166
|
-
size: "$1"
|
|
167
|
-
})]
|
|
168
|
-
}, "actions-trigger"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Portal, {
|
|
169
|
-
zIndex: 200,
|
|
170
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.SubContent, {
|
|
171
|
-
enterStyle: {
|
|
172
|
-
y: -10,
|
|
173
|
-
opacity: 0
|
|
174
|
-
},
|
|
175
|
-
exitStyle: {
|
|
176
|
-
y: -10,
|
|
177
|
-
opacity: 0
|
|
178
|
-
},
|
|
179
|
-
animation: ["quick", {
|
|
180
|
-
opacity: {
|
|
181
|
-
overshootClamping: !0
|
|
182
|
-
}
|
|
183
|
-
}],
|
|
184
|
-
px: 0,
|
|
185
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(Item, {
|
|
186
|
-
onSelect,
|
|
187
|
-
textValue: "Create note",
|
|
188
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ItemTitle, {
|
|
189
|
-
children: "Create note"
|
|
190
|
-
})
|
|
191
|
-
}, "create-note"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(Item, {
|
|
192
|
-
onSelect,
|
|
193
|
-
textValue: "Delete all notes",
|
|
194
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ItemTitle, {
|
|
195
|
-
children: "Delete all notes"
|
|
196
|
-
})
|
|
197
|
-
}, "delete-all"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(Item, {
|
|
198
|
-
onSelect,
|
|
199
|
-
textValue: "Sync notes",
|
|
200
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ItemTitle, {
|
|
201
|
-
children: "Sync notes"
|
|
202
|
-
})
|
|
203
|
-
}, "sync-all")]
|
|
204
|
-
})
|
|
205
|
-
})]
|
|
206
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Separator, {
|
|
207
|
-
className: "MenuSeparator"
|
|
208
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.CheckboxItem, {
|
|
209
|
-
checked: bookmarksChecked,
|
|
210
|
-
onCheckedChange: setBookmarksChecked,
|
|
211
|
-
gap: "$2",
|
|
212
|
-
justify: "space-between",
|
|
213
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
214
|
-
children: "Mark as read"
|
|
215
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIndicator, {
|
|
216
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Check, {
|
|
217
|
-
size: "$1"
|
|
218
|
-
})
|
|
219
|
-
})]
|
|
220
|
-
}, "show-hidden"), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_context_menu.ContextMenu.CheckboxItem, {
|
|
221
|
-
checked: native,
|
|
222
|
-
onCheckedChange: setNative,
|
|
223
|
-
gap: "$2",
|
|
224
|
-
justify: "space-between",
|
|
225
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemTitle, {
|
|
226
|
-
children: "Enable Native"
|
|
227
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.ItemIndicator, {
|
|
228
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_lucide_icons.Check, {
|
|
229
|
-
size: "$1"
|
|
230
|
-
})
|
|
231
|
-
})]
|
|
232
|
-
}, "show-other-notes"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_context_menu.ContextMenu.Arrow, {
|
|
233
|
-
size: "$2"
|
|
234
|
-
})]
|
|
235
|
-
})
|
|
236
|
-
})]
|
|
237
|
-
});
|
|
238
|
-
}
|