@tamagui/demos 1.0.21 → 1.0.22

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.
@@ -23,13 +23,13 @@ __export(AnimationsEnterDemo_exports, {
23
23
  module.exports = __toCommonJS(AnimationsEnterDemo_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
25
  var import_logo = require("@tamagui/logo");
26
- var import_react2 = require("react");
26
+ var import_react = require("react");
27
27
  var import_tamagui = require("tamagui");
28
28
  var import_useOnIntersecting = require("./useOnIntersecting");
29
29
  function AnimationsEnterDemo(props) {
30
- const ref = (0, import_react2.useRef)(null);
30
+ const ref = (0, import_react.useRef)(null);
31
31
  const hasIntersected = (0, import_useOnIntersecting.useIsIntersecting)(ref, { once: true });
32
- const [key, setKey] = (0, import_react2.useState)(0);
32
+ const [key, setKey] = (0, import_react.useState)(0);
33
33
  if (!hasIntersected) {
34
34
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
35
35
  ref
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AnimationsEnterDemo.tsx"],
4
- "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport React from 'react'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaW;AAbX,kBAAyB;AAEzB,IAAAA,gBAAiC;AACjC,qBAAuC;AAEvC,+BAAkC;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,UAAM,sBAAoB,IAAI;AACpC,QAAM,qBAAiB,4CAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,QAAI,wBAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,4CAAC;AAAA,MAAO;AAAA,KAAU;AAAA,EAC3B;AAEA,SACE;AAAA,IACE;AAAA,kDAAC;AAAA,QAEC,YAAY;AAAA,UACV,OAAO;AAAA,UACP,GAAG;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,GAAG;AAAA,QACH,IAAG;AAAA,QACH,IAAG;AAAA,QAEF,gBAAM,YAAY,4CAAC;AAAA,UAAS,WAAW;AAAA,SAAM;AAAA,SAfzC,GAgBP;AAAA,MAEA,4CAAC;AAAA,QAAO,MAAK;AAAA,QAAK,IAAG;AAAA,QAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC;AAAA,QAAG;AAAA,OAEhE;AAAA;AAAA,GACF;AAEJ;",
6
- "names": ["import_react"]
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYW;AAZX,kBAAyB;AACzB,mBAAiC;AACjC,qBAAuC;AAEvC,+BAAkC;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,UAAM,qBAAoB,IAAI;AACpC,QAAM,qBAAiB,4CAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,QAAI,uBAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,4CAAC;AAAA,MAAO;AAAA,KAAU;AAAA,EAC3B;AAEA,SACE;AAAA,IACE;AAAA,kDAAC;AAAA,QAEC,YAAY;AAAA,UACV,OAAO;AAAA,UACP,GAAG;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,GAAG;AAAA,QACH,IAAG;AAAA,QACH,IAAG;AAAA,QAEF,gBAAM,YAAY,4CAAC;AAAA,UAAS,WAAW;AAAA,SAAM;AAAA,SAfzC,GAgBP;AAAA,MAEA,4CAAC;AAAA,QAAO,MAAK;AAAA,QAAK,IAAG;AAAA,QAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC;AAAA,QAAG;AAAA,OAEhE;AAAA;AAAA,GACF;AAEJ;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var AnimationsTimingDemo_exports = {};
20
+ __export(AnimationsTimingDemo_exports, {
21
+ AnimationsTimingDemo: () => AnimationsTimingDemo
22
+ });
23
+ module.exports = __toCommonJS(AnimationsTimingDemo_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_logo = require("@tamagui/logo");
26
+ var import_tamagui = require("tamagui");
27
+ function AnimationsTimingDemo() {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, {
29
+ bc: "$pink10",
30
+ animation: "100ms",
31
+ elevation: "$4",
32
+ size: 110,
33
+ br: "$9",
34
+ hoverStyle: {
35
+ scale: 1.2
36
+ },
37
+ pressStyle: {
38
+ scale: 0.9
39
+ },
40
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.LogoIcon, {
41
+ downscale: 0.75
42
+ })
43
+ });
44
+ }
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ AnimationsTimingDemo
48
+ });
49
+ //# sourceMappingURL=AnimationsTimingDemo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AnimationsTimingDemo.tsx"],
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { Square } from 'tamagui'\n\nexport function AnimationsTimingDemo() {\n return (\n <Square\n bc=\"$pink10\"\n animation=\"100ms\"\n elevation=\"$4\"\n size={110}\n br=\"$9\"\n hoverStyle={{\n scale: 1.2,\n }}\n pressStyle={{\n scale: 0.9,\n }}\n >\n <LogoIcon downscale={0.75} />\n </Square>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBM;AAlBN,kBAAyB;AACzB,qBAAuB;AAEhB,SAAS,uBAAuB;AACrC,SACE,4CAAC;AAAA,IACC,IAAG;AAAA,IACH,WAAU;AAAA,IACV,WAAU;AAAA,IACV,MAAM;AAAA,IACN,IAAG;AAAA,IACH,YAAY;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IACA,YAAY;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IAEA,sDAAC;AAAA,MAAS,WAAW;AAAA,KAAM;AAAA,GAC7B;AAEJ;",
6
+ "names": []
7
+ }
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,51 +15,62 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
19
  var DrawerDemo_exports = {};
23
20
  __export(DrawerDemo_exports, {
24
21
  DrawerDemo: () => DrawerDemo
25
22
  });
26
23
  module.exports = __toCommonJS(DrawerDemo_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
27
25
  var import_drawer = require("@tamagui/drawer");
28
26
  var import_feather_icons = require("@tamagui/feather-icons");
29
- var import_react = __toESM(require("react"));
30
27
  var import_react2 = require("react");
31
28
  var import_tamagui = require("tamagui");
32
29
  function DrawerDemo() {
33
30
  const [show, setShow] = (0, import_react2.useState)(false);
34
- return /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, {
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
35
32
  minWidth: 230,
36
33
  w: "100%",
37
34
  h: "100%",
38
35
  ai: "center",
39
36
  jc: "center",
40
- position: "relative"
41
- }, /* @__PURE__ */ import_react.default.createElement(import_drawer.Drawer.Provider, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Button, {
42
- size: "$6",
43
- icon: show ? import_feather_icons.ChevronDown : import_feather_icons.ChevronUp,
44
- circular: true,
45
- onPress: () => setShow((x) => !x),
46
- elevation: "$2"
47
- }), /* @__PURE__ */ import_react.default.createElement(import_drawer.Drawer, {
48
- open: show,
49
- onChangeOpen: setShow
50
- }, /* @__PURE__ */ import_react.default.createElement(import_drawer.Drawer.Frame, {
51
- h: 200,
52
- ai: "center",
53
- jc: "center",
54
- p: "$6",
55
- space: true
56
- }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.Paragraph, {
57
- selectable: false
58
- }, "Hello."), /* @__PURE__ */ import_react.default.createElement(import_tamagui.Button, {
59
- size: "$6",
60
- icon: show ? import_feather_icons.ChevronDown : import_feather_icons.ChevronUp,
61
- circular: true,
62
- onPress: () => setShow((x) => !x),
63
- elevation: "$2"
64
- })))));
37
+ position: "relative",
38
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_drawer.Drawer.Provider, {
39
+ children: [
40
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
41
+ size: "$6",
42
+ icon: show ? import_feather_icons.ChevronDown : import_feather_icons.ChevronUp,
43
+ circular: true,
44
+ onPress: () => setShow((x) => !x),
45
+ elevation: "$2"
46
+ }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drawer.Drawer, {
48
+ open: show,
49
+ onOpenChange: setShow,
50
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_drawer.Drawer.Frame, {
51
+ h: 200,
52
+ ai: "center",
53
+ jc: "center",
54
+ p: "$6",
55
+ space: true,
56
+ children: [
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
58
+ selectable: false,
59
+ children: "Hello."
60
+ }),
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
62
+ size: "$6",
63
+ icon: show ? import_feather_icons.ChevronDown : import_feather_icons.ChevronUp,
64
+ circular: true,
65
+ onPress: () => setShow((x) => !x),
66
+ elevation: "$2"
67
+ })
68
+ ]
69
+ })
70
+ })
71
+ ]
72
+ })
73
+ });
65
74
  }
66
75
  // Annotate the CommonJS export names for ESM import in node:
67
76
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DrawerDemo.tsx"],
4
- "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onChangeOpen={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;AACvB,2BAAuC;AACvC,mBAAkB;AAClB,oBAAyB;AACzB,qBAA0C;AAEnC,sBAAsB;AAC3B,QAAM,CAAC,MAAM,WAAW,4BAAS,KAAK;AACtC,SACE,mDAAC;AAAA,IAAO,UAAU;AAAA,IAAK,GAAE;AAAA,IAAO,GAAE;AAAA,IAAO,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,UAAS;AAAA,KACxE,mDAAC,qBAAO,UAAP,MACC,mDAAC;AAAA,IACC,MAAK;AAAA,IACL,MAAM,OAAO,mCAAc;AAAA,IAC3B,UAAQ;AAAA,IACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,IAChC,WAAU;AAAA,GACZ,GACA,mDAAC;AAAA,IAAO,MAAM;AAAA,IAAM,cAAc;AAAA,KAChC,mDAAC,qBAAO,OAAP;AAAA,IAAa,GAAG;AAAA,IAAK,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,GAAE;AAAA,IAAK,OAAK;AAAA,KACxD,mDAAC;AAAA,IAAU,YAAY;AAAA,KAAO,QAAM,GACpC,mDAAC;AAAA,IACC,MAAK;AAAA,IACL,MAAM,OAAO,mCAAc;AAAA,IAC3B,UAAQ;AAAA,IACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,IAChC,WAAU;AAAA,GACZ,CACF,CACF,CACF,CACF;AAEJ;",
6
- "names": []
4
+ "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onOpenChange={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWQ;AAXR,oBAAuB;AACvB,2BAAuC;AAEvC,IAAAA,gBAAyB;AACzB,qBAA0C;AAEnC,SAAS,aAAa;AAC3B,QAAM,CAAC,MAAM,OAAO,QAAI,wBAAS,KAAK;AACtC,SACE,4CAAC;AAAA,IAAO,UAAU;AAAA,IAAK,GAAE;AAAA,IAAO,GAAE;AAAA,IAAO,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,UAAS;AAAA,IACxE,uDAAC,qBAAO,UAAP;AAAA,MACC;AAAA,oDAAC;AAAA,UACC,MAAK;AAAA,UACL,MAAM,OAAO,mCAAc;AAAA,UAC3B,UAAQ;AAAA,UACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,UAChC,WAAU;AAAA,SACZ;AAAA,QACA,4CAAC;AAAA,UAAO,MAAM;AAAA,UAAM,cAAc;AAAA,UAChC,uDAAC,qBAAO,OAAP;AAAA,YAAa,GAAG;AAAA,YAAK,IAAG;AAAA,YAAS,IAAG;AAAA,YAAS,GAAE;AAAA,YAAK,OAAK;AAAA,YACxD;AAAA,0DAAC;AAAA,gBAAU,YAAY;AAAA,gBAAO;AAAA,eAAM;AAAA,cACpC,4CAAC;AAAA,gBACC,MAAK;AAAA,gBACL,MAAM,OAAO,mCAAc;AAAA,gBAC3B,UAAQ;AAAA,gBACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,gBAChC,WAAU;AAAA,eACZ;AAAA;AAAA,WACF;AAAA,SACF;AAAA;AAAA,KACF;AAAA,GACF;AAEJ;",
6
+ "names": ["import_react"]
7
7
  }
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,32 +15,45 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
19
  var MenuDemo_exports = {};
23
20
  __export(MenuDemo_exports, {
24
21
  MenuDemo: () => MenuDemo
25
22
  });
26
23
  module.exports = __toCommonJS(MenuDemo_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
27
25
  var import_feather_icons = require("@tamagui/feather-icons");
28
26
  var import_menu = require("@tamagui/menu");
29
- var import_react = __toESM(require("react"));
27
+ var import_react = require("react");
30
28
  var import_tamagui = require("tamagui");
31
29
  function MenuDemo() {
32
30
  const [show, setShow] = (0, import_react.useState)(false);
33
- return /* @__PURE__ */ import_react.default.createElement(import_menu.Menu.Provider, null, /* @__PURE__ */ import_react.default.createElement(import_menu.Menu, {
34
- open: show,
35
- onChangeOpen: setShow,
36
- trigger: /* @__PURE__ */ import_react.default.createElement(import_tamagui.Button, {
37
- size: "$6",
38
- icon: import_feather_icons.Menu,
39
- theme: show ? "active" : null,
40
- circular: true,
41
- onPress: () => setShow((x) => !x)
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Provider, {
32
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu, {
33
+ open: show,
34
+ onOpenChange: setShow,
35
+ trigger: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, {
36
+ size: "$6",
37
+ icon: import_feather_icons.Menu,
38
+ theme: show ? "active" : null,
39
+ circular: true,
40
+ onPress: () => setShow((x) => !x)
41
+ }),
42
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Item, {
43
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
44
+ p: "$2",
45
+ children: [
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H4, {
47
+ children: "Menu contents"
48
+ }),
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, {
50
+ children: "Lorem ipsum dolor sit amet."
51
+ })
52
+ ]
53
+ })
54
+ })
42
55
  })
43
- }, /* @__PURE__ */ import_react.default.createElement(import_menu.Menu.Item, null, /* @__PURE__ */ import_react.default.createElement(import_tamagui.YStack, {
44
- p: "$2"
45
- }, /* @__PURE__ */ import_react.default.createElement(import_tamagui.H4, null, "Menu contents"), /* @__PURE__ */ import_react.default.createElement(import_tamagui.Paragraph, null, "Lorem ipsum dolor sit amet.")))));
56
+ });
46
57
  }
47
58
  // Annotate the CommonJS export names for ESM import in node:
48
59
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/MenuDemo.tsx"],
4
- "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onChangeOpen={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAiC;AACjC,kBAAqB;AACrB,mBAAgC;AAChC,qBAA8C;AAEvC,oBAAoB;AACzB,QAAM,CAAC,MAAM,WAAW,2BAAS,KAAK;AAEtC,SACE,mDAAC,iBAAK,UAAL,MACC,mDAAC;AAAA,IACC,MAAM;AAAA,IACN,cAAc;AAAA,IACd,SACE,mDAAC;AAAA,MACC,MAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO,OAAO,WAAW;AAAA,MACzB,UAAQ;AAAA,MACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,KAClC;AAAA,KAGF,mDAAC,iBAAK,MAAL,MACC,mDAAC;AAAA,IAAO,GAAE;AAAA,KACR,mDAAC,yBAAG,eAAa,GACjB,mDAAC,gCAAU,6BAA2B,CACxC,CACF,CACF,CACF;AAEJ;",
6
- "names": []
4
+ "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onOpenChange={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcU;AAdV,2BAAiC;AACjC,kBAAqB;AACrB,mBAAgC;AAChC,qBAA8C;AAEvC,SAAS,WAAW;AACzB,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAS,KAAK;AAEtC,SACE,4CAAC,iBAAK,UAAL;AAAA,IACC,sDAAC;AAAA,MACC,MAAM;AAAA,MACN,cAAc;AAAA,MACd,SACE,4CAAC;AAAA,QACC,MAAK;AAAA,QACL,MAAM,qBAAAA;AAAA,QACN,OAAO,OAAO,WAAW;AAAA,QACzB,UAAQ;AAAA,QACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,OAClC;AAAA,MAGF,sDAAC,iBAAK,MAAL;AAAA,QACC,uDAAC;AAAA,UAAO,GAAE;AAAA,UACR;AAAA,wDAAC;AAAA,cAAG;AAAA,aAAa;AAAA,YACjB,4CAAC;AAAA,cAAU;AAAA,aAA2B;AAAA;AAAA,SACxC;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAEJ;",
6
+ "names": ["MenuIcon"]
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -25,6 +25,7 @@ __export(src_exports, {
25
25
  AnimationsEnterDemo: () => import_AnimationsEnterDemo.AnimationsEnterDemo,
26
26
  AnimationsHoverDemo: () => import_AnimationsHoverDemo.AnimationsHoverDemo,
27
27
  AnimationsPresenceDemo: () => import_AnimationsPresenceDemo.AnimationsPresenceDemo,
28
+ AnimationsTimingDemo: () => import_AnimationsTimingDemo.AnimationsTimingDemo,
28
29
  AvatarDemo: () => import_AvatarDemo.AvatarDemo,
29
30
  ButtonDemo: () => import_ButtonDemo.ButtonDemo,
30
31
  CardDemo: () => import_CardDemo.CardDemo,
@@ -61,6 +62,7 @@ var import_AlertDialogDemo = require("./AlertDialogDemo");
61
62
  var import_AnimationsDemo = require("./AnimationsDemo");
62
63
  var import_AnimationsEnterDemo = require("./AnimationsEnterDemo");
63
64
  var import_AnimationsHoverDemo = require("./AnimationsHoverDemo");
65
+ var import_AnimationsTimingDemo = require("./AnimationsTimingDemo");
64
66
  var import_AnimationsPresenceDemo = require("./AnimationsPresenceDemo");
65
67
  var import_AvatarDemo = require("./AvatarDemo");
66
68
  var import_ButtonDemo = require("./ButtonDemo");
@@ -102,6 +104,7 @@ __reExport(src_exports, require("./useOnIntersecting"), module.exports);
102
104
  AnimationsEnterDemo,
103
105
  AnimationsHoverDemo,
104
106
  AnimationsPresenceDemo,
107
+ AnimationsTimingDemo,
105
108
  AvatarDemo,
106
109
  ButtonDemo,
107
110
  CardDemo,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAgC;AAChC,4BAA+B;AAC/B,iCAAoC;AACpC,iCAAoC;AACpC,oCAAuC;AACvC,wBAA2B;AAC3B,wBAA2B;AAC3B,sBAAyB;AACzB,wBAA2B;AAC3B,0BAA6B;AAC7B,6BAAgC;AAChC,8BAAiC;AACjC,uBAA0B;AAC1B,uBAA0B;AAC1B,0BAA6B;AAC7B,uBAA0B;AAC1B,uBAA0B;AAC1B,gCAAmC;AACnC,0BAA6B;AAC7B,6BAAgC;AAChC,yBAA4B;AAC5B,0BAA6B;AAC7B,wBAA2B;AAC3B,2BAA8B;AAC9B,wBAA2B;AAC3B,4BAA+B;AAC/B,uBAA0B;AAC1B,wBAA2B;AAC3B,yBAA4B;AAC5B,wBAA2B;AAC3B,wBAA2B;AAC3B,sBAAyB;AACzB,8BAAiC;AACjC,yBAA4B;AAC5B,wBAA2B;AAC3B,wBAA2B;AAC3B,wBAAc,gCApCd;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAgC;AAChC,4BAA+B;AAC/B,iCAAoC;AACpC,iCAAoC;AACpC,kCAAqC;AACrC,oCAAuC;AACvC,wBAA2B;AAC3B,wBAA2B;AAC3B,sBAAyB;AACzB,wBAA2B;AAC3B,0BAA6B;AAC7B,6BAAgC;AAChC,8BAAiC;AACjC,uBAA0B;AAC1B,uBAA0B;AAC1B,0BAA6B;AAC7B,uBAA0B;AAC1B,uBAA0B;AAC1B,gCAAmC;AACnC,0BAA6B;AAC7B,6BAAgC;AAChC,yBAA4B;AAC5B,0BAA6B;AAC7B,wBAA2B;AAC3B,2BAA8B;AAC9B,wBAA2B;AAC3B,4BAA+B;AAC/B,uBAA0B;AAC1B,wBAA2B;AAC3B,yBAA4B;AAC5B,wBAA2B;AAC3B,wBAA2B;AAC3B,sBAAyB;AACzB,8BAAiC;AACjC,yBAA4B;AAC5B,wBAA2B;AAC3B,wBAA2B;AAC3B,wBAAc,gCArCd;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AnimationsEnterDemo.tsx"],
4
- "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport React from 'react'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
- "mappings": "AAaW,SAIP,UAJO,KAIP,YAJO;AAbX,SAAS,gBAAgB;AAEzB,SAAS,QAAQ,gBAAgB;AACjC,SAAS,QAAQ,QAAQ,cAAc;AAEvC,SAAS,yBAAyB;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,MAAM,OAAoB,IAAI;AACpC,QAAM,iBAAiB,kBAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,IAAI,SAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,oBAAC;AAAA,MAAO;AAAA,KAAU;AAAA,EAC3B;AAEA,SACE;AAAA,IACE;AAAA,0BAAC;AAAA,QAEC,YAAY;AAAA,UACV,OAAO;AAAA,UACP,GAAG;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,GAAG;AAAA,QACH,IAAG;AAAA,QACH,IAAG;AAAA,QAEF,gBAAM,YAAY,oBAAC;AAAA,UAAS,WAAW;AAAA,SAAM;AAAA,SAfzC,GAgBP;AAAA,MAEA,oBAAC;AAAA,QAAO,MAAK;AAAA,QAAK,IAAG;AAAA,QAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC;AAAA,QAAG;AAAA,OAEhE;AAAA;AAAA,GACF;AAEJ;",
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
+ "mappings": "AAYW,SAIP,UAJO,KAIP,YAJO;AAZX,SAAS,gBAAgB;AACzB,SAAS,QAAQ,gBAAgB;AACjC,SAAS,QAAQ,QAAQ,cAAc;AAEvC,SAAS,yBAAyB;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,MAAM,OAAoB,IAAI;AACpC,QAAM,iBAAiB,kBAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,IAAI,SAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,oBAAC;AAAA,MAAO;AAAA,KAAU;AAAA,EAC3B;AAEA,SACE;AAAA,IACE;AAAA,0BAAC;AAAA,QAEC,YAAY;AAAA,UACV,OAAO;AAAA,UACP,GAAG;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,GAAG;AAAA,QACH,IAAG;AAAA,QACH,IAAG;AAAA,QAEF,gBAAM,YAAY,oBAAC;AAAA,UAAS,WAAW;AAAA,SAAM;AAAA,SAfzC,GAgBP;AAAA,MAEA,oBAAC;AAAA,QAAO,MAAK;AAAA,QAAK,IAAG;AAAA,QAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC;AAAA,QAAG;AAAA,OAEhE;AAAA;AAAA,GACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { LogoIcon } from "@tamagui/logo";
3
+ import { Square } from "tamagui";
4
+ function AnimationsTimingDemo() {
5
+ return /* @__PURE__ */ jsx(Square, {
6
+ bc: "$pink10",
7
+ animation: "100ms",
8
+ elevation: "$4",
9
+ size: 110,
10
+ br: "$9",
11
+ hoverStyle: {
12
+ scale: 1.2
13
+ },
14
+ pressStyle: {
15
+ scale: 0.9
16
+ },
17
+ children: /* @__PURE__ */ jsx(LogoIcon, {
18
+ downscale: 0.75
19
+ })
20
+ });
21
+ }
22
+ export {
23
+ AnimationsTimingDemo
24
+ };
25
+ //# sourceMappingURL=AnimationsTimingDemo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AnimationsTimingDemo.tsx"],
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { Square } from 'tamagui'\n\nexport function AnimationsTimingDemo() {\n return (\n <Square\n bc=\"$pink10\"\n animation=\"100ms\"\n elevation=\"$4\"\n size={110}\n br=\"$9\"\n hoverStyle={{\n scale: 1.2,\n }}\n pressStyle={{\n scale: 0.9,\n }}\n >\n <LogoIcon downscale={0.75} />\n </Square>\n )\n}\n"],
5
+ "mappings": "AAkBM;AAlBN,SAAS,gBAAgB;AACzB,SAAS,cAAc;AAEhB,SAAS,uBAAuB;AACrC,SACE,oBAAC;AAAA,IACC,IAAG;AAAA,IACH,WAAU;AAAA,IACV,WAAU;AAAA,IACV,MAAM;AAAA,IACN,IAAG;AAAA,IACH,YAAY;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IACA,YAAY;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IAEA,8BAAC;AAAA,MAAS,WAAW;AAAA,KAAM;AAAA,GAC7B;AAEJ;",
6
+ "names": []
7
+ }
@@ -1,41 +1,53 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
1
2
  import { Drawer } from "@tamagui/drawer";
2
3
  import { ChevronDown, ChevronUp } from "@tamagui/feather-icons";
3
- import React from "react";
4
4
  import { useState } from "react";
5
5
  import { Button, Paragraph, YStack } from "tamagui";
6
6
  function DrawerDemo() {
7
7
  const [show, setShow] = useState(false);
8
- return /* @__PURE__ */ React.createElement(YStack, {
8
+ return /* @__PURE__ */ jsx(YStack, {
9
9
  minWidth: 230,
10
10
  w: "100%",
11
11
  h: "100%",
12
12
  ai: "center",
13
13
  jc: "center",
14
- position: "relative"
15
- }, /* @__PURE__ */ React.createElement(Drawer.Provider, null, /* @__PURE__ */ React.createElement(Button, {
16
- size: "$6",
17
- icon: show ? ChevronDown : ChevronUp,
18
- circular: true,
19
- onPress: () => setShow((x) => !x),
20
- elevation: "$2"
21
- }), /* @__PURE__ */ React.createElement(Drawer, {
22
- open: show,
23
- onChangeOpen: setShow
24
- }, /* @__PURE__ */ React.createElement(Drawer.Frame, {
25
- h: 200,
26
- ai: "center",
27
- jc: "center",
28
- p: "$6",
29
- space: true
30
- }, /* @__PURE__ */ React.createElement(Paragraph, {
31
- selectable: false
32
- }, "Hello."), /* @__PURE__ */ React.createElement(Button, {
33
- size: "$6",
34
- icon: show ? ChevronDown : ChevronUp,
35
- circular: true,
36
- onPress: () => setShow((x) => !x),
37
- elevation: "$2"
38
- })))));
14
+ position: "relative",
15
+ children: /* @__PURE__ */ jsxs(Drawer.Provider, {
16
+ children: [
17
+ /* @__PURE__ */ jsx(Button, {
18
+ size: "$6",
19
+ icon: show ? ChevronDown : ChevronUp,
20
+ circular: true,
21
+ onPress: () => setShow((x) => !x),
22
+ elevation: "$2"
23
+ }),
24
+ /* @__PURE__ */ jsx(Drawer, {
25
+ open: show,
26
+ onOpenChange: setShow,
27
+ children: /* @__PURE__ */ jsxs(Drawer.Frame, {
28
+ h: 200,
29
+ ai: "center",
30
+ jc: "center",
31
+ p: "$6",
32
+ space: true,
33
+ children: [
34
+ /* @__PURE__ */ jsx(Paragraph, {
35
+ selectable: false,
36
+ children: "Hello."
37
+ }),
38
+ /* @__PURE__ */ jsx(Button, {
39
+ size: "$6",
40
+ icon: show ? ChevronDown : ChevronUp,
41
+ circular: true,
42
+ onPress: () => setShow((x) => !x),
43
+ elevation: "$2"
44
+ })
45
+ ]
46
+ })
47
+ })
48
+ ]
49
+ })
50
+ });
39
51
  }
40
52
  export {
41
53
  DrawerDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DrawerDemo.tsx"],
4
- "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onChangeOpen={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
- "mappings": "AAAA;AACA;AACA;AACA;AACA;AAEO,sBAAsB;AAC3B,QAAM,CAAC,MAAM,WAAW,SAAS,KAAK;AACtC,SACE,oCAAC;AAAA,IAAO,UAAU;AAAA,IAAK,GAAE;AAAA,IAAO,GAAE;AAAA,IAAO,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,UAAS;AAAA,KACxE,oCAAC,OAAO,UAAP,MACC,oCAAC;AAAA,IACC,MAAK;AAAA,IACL,MAAM,OAAO,cAAc;AAAA,IAC3B,UAAQ;AAAA,IACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,IAChC,WAAU;AAAA,GACZ,GACA,oCAAC;AAAA,IAAO,MAAM;AAAA,IAAM,cAAc;AAAA,KAChC,oCAAC,OAAO,OAAP;AAAA,IAAa,GAAG;AAAA,IAAK,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,GAAE;AAAA,IAAK,OAAK;AAAA,KACxD,oCAAC;AAAA,IAAU,YAAY;AAAA,KAAO,QAAM,GACpC,oCAAC;AAAA,IACC,MAAK;AAAA,IACL,MAAM,OAAO,cAAc;AAAA,IAC3B,UAAQ;AAAA,IACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,IAChC,WAAU;AAAA,GACZ,CACF,CACF,CACF,CACF;AAEJ;",
4
+ "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onOpenChange={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
+ "mappings": "AAWQ,cAQE,YARF;AAXR,SAAS,cAAc;AACvB,SAAS,aAAa,iBAAiB;AAEvC,SAAS,gBAAgB;AACzB,SAAS,QAAQ,WAAW,cAAc;AAEnC,SAAS,aAAa;AAC3B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,SACE,oBAAC;AAAA,IAAO,UAAU;AAAA,IAAK,GAAE;AAAA,IAAO,GAAE;AAAA,IAAO,IAAG;AAAA,IAAS,IAAG;AAAA,IAAS,UAAS;AAAA,IACxE,+BAAC,OAAO,UAAP;AAAA,MACC;AAAA,4BAAC;AAAA,UACC,MAAK;AAAA,UACL,MAAM,OAAO,cAAc;AAAA,UAC3B,UAAQ;AAAA,UACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,UAChC,WAAU;AAAA,SACZ;AAAA,QACA,oBAAC;AAAA,UAAO,MAAM;AAAA,UAAM,cAAc;AAAA,UAChC,+BAAC,OAAO,OAAP;AAAA,YAAa,GAAG;AAAA,YAAK,IAAG;AAAA,YAAS,IAAG;AAAA,YAAS,GAAE;AAAA,YAAK,OAAK;AAAA,YACxD;AAAA,kCAAC;AAAA,gBAAU,YAAY;AAAA,gBAAO;AAAA,eAAM;AAAA,cACpC,oBAAC;AAAA,gBACC,MAAK;AAAA,gBACL,MAAM,OAAO,cAAc;AAAA,gBAC3B,UAAQ;AAAA,gBACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,gBAChC,WAAU;AAAA,eACZ;AAAA;AAAA,WACF;AAAA,SACF;AAAA;AAAA,KACF;AAAA,GACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,22 +1,36 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
1
2
  import { Menu as MenuIcon } from "@tamagui/feather-icons";
2
3
  import { Menu } from "@tamagui/menu";
3
- import React, { useState } from "react";
4
+ import { useState } from "react";
4
5
  import { Button, H4, Paragraph, YStack } from "tamagui";
5
6
  function MenuDemo() {
6
7
  const [show, setShow] = useState(false);
7
- return /* @__PURE__ */ React.createElement(Menu.Provider, null, /* @__PURE__ */ React.createElement(Menu, {
8
- open: show,
9
- onChangeOpen: setShow,
10
- trigger: /* @__PURE__ */ React.createElement(Button, {
11
- size: "$6",
12
- icon: MenuIcon,
13
- theme: show ? "active" : null,
14
- circular: true,
15
- onPress: () => setShow((x) => !x)
8
+ return /* @__PURE__ */ jsx(Menu.Provider, {
9
+ children: /* @__PURE__ */ jsx(Menu, {
10
+ open: show,
11
+ onOpenChange: setShow,
12
+ trigger: /* @__PURE__ */ jsx(Button, {
13
+ size: "$6",
14
+ icon: MenuIcon,
15
+ theme: show ? "active" : null,
16
+ circular: true,
17
+ onPress: () => setShow((x) => !x)
18
+ }),
19
+ children: /* @__PURE__ */ jsx(Menu.Item, {
20
+ children: /* @__PURE__ */ jsxs(YStack, {
21
+ p: "$2",
22
+ children: [
23
+ /* @__PURE__ */ jsx(H4, {
24
+ children: "Menu contents"
25
+ }),
26
+ /* @__PURE__ */ jsx(Paragraph, {
27
+ children: "Lorem ipsum dolor sit amet."
28
+ })
29
+ ]
30
+ })
31
+ })
16
32
  })
17
- }, /* @__PURE__ */ React.createElement(Menu.Item, null, /* @__PURE__ */ React.createElement(YStack, {
18
- p: "$2"
19
- }, /* @__PURE__ */ React.createElement(H4, null, "Menu contents"), /* @__PURE__ */ React.createElement(Paragraph, null, "Lorem ipsum dolor sit amet.")))));
33
+ });
20
34
  }
21
35
  export {
22
36
  MenuDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/MenuDemo.tsx"],
4
- "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onChangeOpen={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
- "mappings": "AAAA;AACA;AACA;AACA;AAEO,oBAAoB;AACzB,QAAM,CAAC,MAAM,WAAW,SAAS,KAAK;AAEtC,SACE,oCAAC,KAAK,UAAL,MACC,oCAAC;AAAA,IACC,MAAM;AAAA,IACN,cAAc;AAAA,IACd,SACE,oCAAC;AAAA,MACC,MAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO,OAAO,WAAW;AAAA,MACzB,UAAQ;AAAA,MACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,KAClC;AAAA,KAGF,oCAAC,KAAK,MAAL,MACC,oCAAC;AAAA,IAAO,GAAE;AAAA,KACR,oCAAC,UAAG,eAAa,GACjB,oCAAC,iBAAU,6BAA2B,CACxC,CACF,CACF,CACF;AAEJ;",
4
+ "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onOpenChange={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
+ "mappings": "AAcU,cAUA,YAVA;AAdV,SAAS,QAAQ,gBAAgB;AACjC,SAAS,YAAY;AACrB,SAAgB,gBAAgB;AAChC,SAAS,QAAQ,IAAI,WAAW,cAAc;AAEvC,SAAS,WAAW;AACzB,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAEtC,SACE,oBAAC,KAAK,UAAL;AAAA,IACC,8BAAC;AAAA,MACC,MAAM;AAAA,MACN,cAAc;AAAA,MACd,SACE,oBAAC;AAAA,QACC,MAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO,OAAO,WAAW;AAAA,QACzB,UAAQ;AAAA,QACR,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,OAClC;AAAA,MAGF,8BAAC,KAAK,MAAL;AAAA,QACC,+BAAC;AAAA,UAAO,GAAE;AAAA,UACR;AAAA,gCAAC;AAAA,cAAG;AAAA,aAAa;AAAA,YACjB,oBAAC;AAAA,cAAU;AAAA,aAA2B;AAAA;AAAA,SACxC;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAEJ;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -2,6 +2,7 @@ import { AlertDialogDemo } from "./AlertDialogDemo";
2
2
  import { AnimationsDemo } from "./AnimationsDemo";
3
3
  import { AnimationsEnterDemo } from "./AnimationsEnterDemo";
4
4
  import { AnimationsHoverDemo } from "./AnimationsHoverDemo";
5
+ import { AnimationsTimingDemo } from "./AnimationsTimingDemo";
5
6
  import { AnimationsPresenceDemo } from "./AnimationsPresenceDemo";
6
7
  import { AvatarDemo } from "./AvatarDemo";
7
8
  import { ButtonDemo } from "./ButtonDemo";
@@ -42,6 +43,7 @@ export {
42
43
  AnimationsEnterDemo,
43
44
  AnimationsHoverDemo,
44
45
  AnimationsPresenceDemo,
46
+ AnimationsTimingDemo,
45
47
  AvatarDemo,
46
48
  ButtonDemo,
47
49
  CardDemo,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,cAAc;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AnimationsEnterDemo.tsx"],
4
- "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport React from 'react'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
- "mappings": "AAAA,SAAS,gBAAgB;AAEzB,SAAS,QAAQ,gBAAgB;AACjC,SAAS,QAAQ,QAAQ,cAAc;AAEvC,SAAS,yBAAyB;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,MAAM,OAAoB,IAAI;AACpC,QAAM,iBAAiB,kBAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,IAAI,SAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,CAAC,OAAO,KAAK,KAAK;AAAA,EAC3B;AAEA,SACE;AAAA,IACE,CAAC,OACC,KAAK,KACL,YAAY;AAAA,MACV,OAAO;AAAA,MACP,GAAG;AAAA,MACH,SAAS;AAAA,IACX,GACA,UAAU,SACV,UAAU,KACV,MAAM,KACN,SAAS,GACT,OAAO,GACP,GAAG,GACH,GAAG,UACH,GAAG,MAEF,MAAM,YAAY,CAAC,SAAS,WAAW,MAAM,GAChD,EAjBC;AAAA,IAmBD,CAAC,OAAO,KAAK,KAAK,GAAG,KAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC,GAAG,QAEhE,EAFC;AAAA,EAGH;AAEJ;",
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { useRef, useState } from 'react'\nimport { Button, Square, YStack } from 'tamagui'\n\nimport { useIsIntersecting } from './useOnIntersecting'\n\nexport function AnimationsEnterDemo(props: any) {\n const ref = useRef<HTMLElement>(null)\n const hasIntersected = useIsIntersecting(ref, { once: true })\n const [key, setKey] = useState(0)\n\n if (!hasIntersected) {\n return <YStack ref={ref} />\n }\n\n return (\n <>\n <Square\n key={key}\n enterStyle={{\n scale: 1.5,\n y: -10,\n opacity: 0,\n }}\n animation=\"bouncy\"\n elevation=\"$4\"\n size={110}\n opacity={1}\n scale={1}\n y={0}\n bc=\"$pink10\"\n br=\"$9\"\n >\n {props.children ?? <LogoIcon downscale={0.75} />}\n </Square>\n\n <Button size=\"$3\" mt=\"$4\" onPress={() => setKey(Math.random())}>\n Re-mount\n </Button>\n </>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,QAAQ,gBAAgB;AACjC,SAAS,QAAQ,QAAQ,cAAc;AAEvC,SAAS,yBAAyB;AAE3B,SAAS,oBAAoB,OAAY;AAC9C,QAAM,MAAM,OAAoB,IAAI;AACpC,QAAM,iBAAiB,kBAAkB,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5D,QAAM,CAAC,KAAK,MAAM,IAAI,SAAS,CAAC;AAEhC,MAAI,CAAC,gBAAgB;AACnB,WAAO,CAAC,OAAO,KAAK,KAAK;AAAA,EAC3B;AAEA,SACE;AAAA,IACE,CAAC,OACC,KAAK,KACL,YAAY;AAAA,MACV,OAAO;AAAA,MACP,GAAG;AAAA,MACH,SAAS;AAAA,IACX,GACA,UAAU,SACV,UAAU,KACV,MAAM,KACN,SAAS,GACT,OAAO,GACP,GAAG,GACH,GAAG,UACH,GAAG,MAEF,MAAM,YAAY,CAAC,SAAS,WAAW,MAAM,GAChD,EAjBC;AAAA,IAmBD,CAAC,OAAO,KAAK,KAAK,GAAG,KAAK,SAAS,MAAM,OAAO,KAAK,OAAO,CAAC,GAAG,QAEhE,EAFC;AAAA,EAGH;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,13 @@
1
+ import { LogoIcon } from "@tamagui/logo";
2
+ import { Square } from "tamagui";
3
+ function AnimationsTimingDemo() {
4
+ return <Square bc="$pink10" animation="100ms" elevation="$4" size={110} br="$9" hoverStyle={{
5
+ scale: 1.2
6
+ }} pressStyle={{
7
+ scale: 0.9
8
+ }}><LogoIcon downscale={0.75} /></Square>;
9
+ }
10
+ export {
11
+ AnimationsTimingDemo
12
+ };
13
+ //# sourceMappingURL=AnimationsTimingDemo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AnimationsTimingDemo.tsx"],
4
+ "sourcesContent": ["import { LogoIcon } from '@tamagui/logo'\nimport { Square } from 'tamagui'\n\nexport function AnimationsTimingDemo() {\n return (\n <Square\n bc=\"$pink10\"\n animation=\"100ms\"\n elevation=\"$4\"\n size={110}\n br=\"$9\"\n hoverStyle={{\n scale: 1.2,\n }}\n pressStyle={{\n scale: 0.9,\n }}\n >\n <LogoIcon downscale={0.75} />\n </Square>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AAEhB,SAAS,uBAAuB;AACrC,SACE,CAAC,OACC,GAAG,UACH,UAAU,QACV,UAAU,KACV,MAAM,KACN,GAAG,KACH,YAAY;AAAA,IACV,OAAO;AAAA,EACT,GACA,YAAY;AAAA,IACV,OAAO;AAAA,EACT,GAEA,CAAC,SAAS,WAAW,MAAM,EAC7B,EAdC;AAgBL;",
6
+ "names": []
7
+ }
@@ -6,7 +6,7 @@ function DrawerDemo() {
6
6
  const [show, setShow] = useState(false);
7
7
  return <YStack minWidth={230} w="100%" h="100%" ai="center" jc="center" position="relative"><Drawer.Provider>
8
8
  <Button size="$6" icon={show ? ChevronDown : ChevronUp} circular onPress={() => setShow((x) => !x)} elevation="$2" />
9
- <Drawer open={show} onChangeOpen={setShow}><Drawer.Frame h={200} ai="center" jc="center" p="$6" space>
9
+ <Drawer open={show} onOpenChange={setShow}><Drawer.Frame h={200} ai="center" jc="center" p="$6" space>
10
10
  <Paragraph selectable={false}>Hello.</Paragraph>
11
11
  <Button size="$6" icon={show ? ChevronDown : ChevronUp} circular onPress={() => setShow((x) => !x)} elevation="$2" />
12
12
  </Drawer.Frame></Drawer>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DrawerDemo.tsx"],
4
- "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onChangeOpen={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
- "mappings": "AAAA;AACA;AAEA;AACA;AAEO,sBAAsB;AAC3B,QAAM,CAAC,MAAM,WAAW,SAAS,KAAK;AACtC,SACE,CAAC,OAAO,UAAU,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,SAAS,WACxE,CAAC,OAAO;AAAA,IACN,CAAC,OACC,KAAK,KACL,MAAM,OAAO,cAAc,WAC3B,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAChC,UAAU,KACZ;AAAA,IACA,CAAC,OAAO,MAAM,MAAM,cAAc,SAChC,CAAC,OAAO,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAAE,KAAK;AAAA,MACnD,CAAC,UAAU,YAAY,OAAO,MAAM,EAAnC;AAAA,MACD,CAAC,OACC,KAAK,KACL,MAAM,OAAO,cAAc,WAC3B,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAChC,UAAU,KACZ;AAAA,IACF,EATC,OAAO,MAUV,EAXC;AAAA,EAYH,EApBC,OAAO,SAqBV,EAtBC;AAwBL;",
4
+ "sourcesContent": ["import { Drawer } from '@tamagui/drawer'\nimport { ChevronDown, ChevronUp } from '@tamagui/feather-icons'\nimport React from 'react'\nimport { useState } from 'react'\nimport { Button, Paragraph, YStack } from 'tamagui'\n\nexport function DrawerDemo() {\n const [show, setShow] = useState(false)\n return (\n <YStack minWidth={230} w=\"100%\" h=\"100%\" ai=\"center\" jc=\"center\" position=\"relative\">\n <Drawer.Provider>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n <Drawer open={show} onOpenChange={setShow}>\n <Drawer.Frame h={200} ai=\"center\" jc=\"center\" p=\"$6\" space>\n <Paragraph selectable={false}>Hello.</Paragraph>\n <Button\n size=\"$6\"\n icon={show ? ChevronDown : ChevronUp}\n circular\n onPress={() => setShow((x) => !x)}\n elevation=\"$2\"\n />\n </Drawer.Frame>\n </Drawer>\n </Drawer.Provider>\n </YStack>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,cAAc;AACvB,SAAS,aAAa,iBAAiB;AAEvC,SAAS,gBAAgB;AACzB,SAAS,QAAQ,WAAW,cAAc;AAEnC,SAAS,aAAa;AAC3B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,SACE,CAAC,OAAO,UAAU,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,SAAS,WACxE,CAAC,OAAO;AAAA,IACN,CAAC,OACC,KAAK,KACL,MAAM,OAAO,cAAc,WAC3B,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAChC,UAAU,KACZ;AAAA,IACA,CAAC,OAAO,MAAM,MAAM,cAAc,SAChC,CAAC,OAAO,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAAE,KAAK;AAAA,MACnD,CAAC,UAAU,YAAY,OAAO,MAAM,EAAnC;AAAA,MACD,CAAC,OACC,KAAK,KACL,MAAM,OAAO,cAAc,WAC3B,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAChC,UAAU,KACZ;AAAA,IACF,EATC,OAAO,MAUV,EAXC;AAAA,EAYH,EApBC,OAAO,SAqBV,EAtBC;AAwBL;",
6
6
  "names": []
7
7
  }
@@ -4,7 +4,7 @@ import { useState } from "react";
4
4
  import { Button, H4, Paragraph, YStack } from "tamagui";
5
5
  function MenuDemo() {
6
6
  const [show, setShow] = useState(false);
7
- return <Menu.Provider><Menu open={show} onChangeOpen={setShow} trigger={<Button size="$6" icon={MenuIcon} theme={show ? "active" : null} circular onPress={() => setShow((x) => !x)} />}><Menu.Item><YStack p="$2">
7
+ return <Menu.Provider><Menu open={show} onOpenChange={setShow} trigger={<Button size="$6" icon={MenuIcon} theme={show ? "active" : null} circular onPress={() => setShow((x) => !x)} />}><Menu.Item><YStack p="$2">
8
8
  <H4>Menu contents</H4>
9
9
  <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>
10
10
  </YStack></Menu.Item></Menu></Menu.Provider>;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/MenuDemo.tsx"],
4
- "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onChangeOpen={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
- "mappings": "AAAA;AACA;AACA;AACA;AAEO,oBAAoB;AACzB,QAAM,CAAC,MAAM,WAAW,SAAS,KAAK;AAEtC,SACE,CAAC,KAAK,SACJ,CAAC,KACC,MAAM,MACN,cAAc,SACd,SACE,CAAC,OACC,KAAK,KACL,MAAM,UACN,OAAO,OAAO,WAAW,MACzB,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAClC,IAGF,CAAC,KAAK,KACJ,CAAC,OAAO,EAAE;AAAA,IACR,CAAC,GAAG,aAAa,EAAhB;AAAA,IACD,CAAC,UAAU,2BAA2B,EAArC;AAAA,EACH,EAHC,OAIH,EALC,KAAK,KAMR,EAnBC,KAoBH,EArBC,KAAK;AAuBV;",
4
+ "sourcesContent": ["import { Menu as MenuIcon } from '@tamagui/feather-icons'\nimport { Menu } from '@tamagui/menu'\nimport React, { useState } from 'react'\nimport { Button, H4, Paragraph, YStack } from 'tamagui'\n\nexport function MenuDemo() {\n const [show, setShow] = useState(false)\n\n return (\n <Menu.Provider>\n <Menu\n open={show}\n onOpenChange={setShow}\n trigger={\n <Button\n size=\"$6\"\n icon={MenuIcon}\n theme={show ? 'active' : null}\n circular\n onPress={() => setShow((x) => !x)}\n />\n }\n >\n <Menu.Item>\n <YStack p=\"$2\">\n <H4>Menu contents</H4>\n <Paragraph>Lorem ipsum dolor sit amet.</Paragraph>\n </YStack>\n </Menu.Item>\n </Menu>\n </Menu.Provider>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,QAAQ,gBAAgB;AACjC,SAAS,YAAY;AACrB,SAAgB,gBAAgB;AAChC,SAAS,QAAQ,IAAI,WAAW,cAAc;AAEvC,SAAS,WAAW;AACzB,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAEtC,SACE,CAAC,KAAK,SACJ,CAAC,KACC,MAAM,MACN,cAAc,SACd,SACE,CAAC,OACC,KAAK,KACL,MAAM,UACN,OAAO,OAAO,WAAW,MACzB,SACA,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,GAClC,IAGF,CAAC,KAAK,KACJ,CAAC,OAAO,EAAE;AAAA,IACR,CAAC,GAAG,aAAa,EAAhB;AAAA,IACD,CAAC,UAAU,2BAA2B,EAArC;AAAA,EACH,EAHC,OAIH,EALC,KAAK,KAMR,EAnBC,KAoBH,EArBC,KAAK;AAuBV;",
6
6
  "names": []
7
7
  }
package/dist/jsx/index.js CHANGED
@@ -2,6 +2,7 @@ import { AlertDialogDemo } from "./AlertDialogDemo";
2
2
  import { AnimationsDemo } from "./AnimationsDemo";
3
3
  import { AnimationsEnterDemo } from "./AnimationsEnterDemo";
4
4
  import { AnimationsHoverDemo } from "./AnimationsHoverDemo";
5
+ import { AnimationsTimingDemo } from "./AnimationsTimingDemo";
5
6
  import { AnimationsPresenceDemo } from "./AnimationsPresenceDemo";
6
7
  import { AvatarDemo } from "./AvatarDemo";
7
8
  import { ButtonDemo } from "./ButtonDemo";
@@ -42,6 +43,7 @@ export {
42
43
  AnimationsEnterDemo,
43
44
  AnimationsHoverDemo,
44
45
  AnimationsPresenceDemo,
46
+ AnimationsTimingDemo,
45
47
  AvatarDemo,
46
48
  ButtonDemo,
47
49
  CardDemo,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,cAAc;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FeatherIconsDemo } from './FeatherIconsDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/demos",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -28,27 +28,27 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@tamagui/avatar": "^1.0.21",
32
- "@tamagui/button": "^1.0.21",
33
- "@tamagui/config-base": "^1.0.21",
34
- "@tamagui/core": "^1.0.21",
35
- "@tamagui/list-item": "^1.0.21",
36
- "@tamagui/logo": "^1.0.21",
37
- "@tamagui/menu": "^1.0.21",
38
- "@tamagui/popover": "^1.0.21",
39
- "@tamagui/progress": "^1.0.21",
40
- "@tamagui/select": "^1.0.21",
41
- "@tamagui/sheet": "^1.0.21",
42
- "@tamagui/slider": "^1.0.21",
43
- "@tamagui/stacks": "^1.0.21",
44
- "tamagui": "^1.0.21"
31
+ "@tamagui/avatar": "^1.0.22",
32
+ "@tamagui/button": "^1.0.22",
33
+ "@tamagui/config-base": "^1.0.22",
34
+ "@tamagui/core": "^1.0.22",
35
+ "@tamagui/list-item": "^1.0.22",
36
+ "@tamagui/logo": "^1.0.22",
37
+ "@tamagui/menu": "^1.0.22",
38
+ "@tamagui/popover": "^1.0.22",
39
+ "@tamagui/progress": "^1.0.22",
40
+ "@tamagui/select": "^1.0.22",
41
+ "@tamagui/sheet": "^1.0.22",
42
+ "@tamagui/slider": "^1.0.22",
43
+ "@tamagui/stacks": "^1.0.22",
44
+ "tamagui": "^1.0.22"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "*",
48
48
  "react-dom": "*"
49
49
  },
50
50
  "devDependencies": {
51
- "@tamagui/build": "^1.0.21",
51
+ "@tamagui/build": "^1.0.22",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0"
54
54
  },
@@ -1,5 +1,4 @@
1
1
  import { LogoIcon } from '@tamagui/logo'
2
- import React from 'react'
3
2
  import { useRef, useState } from 'react'
4
3
  import { Button, Square, YStack } from 'tamagui'
5
4
 
@@ -0,0 +1,22 @@
1
+ import { LogoIcon } from '@tamagui/logo'
2
+ import { Square } from 'tamagui'
3
+
4
+ export function AnimationsTimingDemo() {
5
+ return (
6
+ <Square
7
+ bc="$pink10"
8
+ animation="100ms"
9
+ elevation="$4"
10
+ size={110}
11
+ br="$9"
12
+ hoverStyle={{
13
+ scale: 1.2,
14
+ }}
15
+ pressStyle={{
16
+ scale: 0.9,
17
+ }}
18
+ >
19
+ <LogoIcon downscale={0.75} />
20
+ </Square>
21
+ )
22
+ }
package/src/index.tsx CHANGED
@@ -2,6 +2,7 @@ export { AlertDialogDemo } from './AlertDialogDemo'
2
2
  export { AnimationsDemo } from './AnimationsDemo'
3
3
  export { AnimationsEnterDemo } from './AnimationsEnterDemo'
4
4
  export { AnimationsHoverDemo } from './AnimationsHoverDemo'
5
+ export { AnimationsTimingDemo } from './AnimationsTimingDemo'
5
6
  export { AnimationsPresenceDemo } from './AnimationsPresenceDemo'
6
7
  export { AvatarDemo } from './AvatarDemo'
7
8
  export { ButtonDemo } from './ButtonDemo'
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare function AnimationsTimingDemo(): JSX.Element;
3
+ //# sourceMappingURL=AnimationsTimingDemo.d.ts.map
package/types/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { AlertDialogDemo } from './AlertDialogDemo';
2
2
  export { AnimationsDemo } from './AnimationsDemo';
3
3
  export { AnimationsEnterDemo } from './AnimationsEnterDemo';
4
4
  export { AnimationsHoverDemo } from './AnimationsHoverDemo';
5
+ export { AnimationsTimingDemo } from './AnimationsTimingDemo';
5
6
  export { AnimationsPresenceDemo } from './AnimationsPresenceDemo';
6
7
  export { AvatarDemo } from './AvatarDemo';
7
8
  export { ButtonDemo } from './ButtonDemo';