@tamagui/animate 1.124.17 → 1.124.18

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Animate.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAA+C,sCAqCvC;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MAGxB,uBAAuB;AAAA,MACvB,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM;AAAA,MAEb;AAAA;AAAA,EACH,IAIG,4CAAC,2CAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,2EAAG,UAAS;AACrB;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAA+C,sCAsCvC;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAA8B;AAC/E,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MAGxB,uBAAuB;AAAA,MACvB,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM;AAAA,MAEb;AAAA;AAAA,EACH,IAIG,4CAAC,2CAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,2EAAG,UAAS;AACrB;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/ui/animate/src/Animate.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;uDACA,0BAA+C;AAiCxC,SAASA,QAAQ,OAA0C;MAA1C,EAAEC,UAAUC,MAAM,GAAGC,MAAAA,IAArB;AACtB,SAAID,SAAS,aACPC,MAAMC,sBAEN,uCAAAC,KAACC,uCAAAA;IACCC,SAASJ,MAAMI,UAAUC,SAAY;IACrCC,gBAAgBN,MAAMM;IACtBC,cAAcP,MAAMO;IACpBC,aAAaR,MAAMQ;IACnBC,kBAAkBT,MAAMS;;;IAGxBC,uBAAuB;IACvBC,WAAWX,MAAMY;IACjBC,QAAQb,MAAMa;;OAOb,uCAAAX,KAACY,yCAAAA;IAAiB,GAAGd;cAAQA,MAAMY,UAAUd,WAAW;OAG1D,uCAAAI,KAAA,mBAAAa,UAAA;;;AACT;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;uDACA,0BAA+C;AAkCxC,SAASA,QAAQ,OAA0C;MAA1C,EAAEC,UAAUC,MAAM,GAAGC,MAAAA,IAArB;AACtB,SAAID,SAAS,aACPC,MAAMC,sBAEN,uCAAAC,KAACC,uCAAAA;IACCC,SAASJ,MAAMI,UAAUC,SAAY;IACrCC,gBAAgBN,MAAMM;IACtBC,cAAcP,MAAMO;IACpBC,aAAaR,MAAMQ;IACnBC,kBAAkBT,MAAMS;;;IAGxBC,uBAAuB;IACvBC,WAAWX,MAAMY;IACjBC,QAAQb,MAAMa;;OAOb,uCAAAX,KAACY,yCAAAA;IAAiB,GAAGd;cAAQA,MAAMY,UAAUd,WAAW;OAG1D,uCAAAI,KAAA,mBAAAa,UAAA;;;AACT;",
5
5
  "names": ["Animate", "children", "type", "props", "keepChildrenMounted", "_jsx", "PresenceChild", "initial", "undefined", "onExitComplete", "enterVariant", "exitVariant", "enterExitVariant", "presenceAffectsLayout", "isPresent", "present", "custom", "AnimatePresence", "_Fragment"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Animate.tsx"],
4
- "mappings": "AACA,SAAS,iBAAiB,qBAAqB;AAqCvC,SAoBC,UApBD;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MAGxB,uBAAuB;AAAA,MACvB,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM;AAAA,MAEb;AAAA;AAAA,EACH,IAIG,oBAAC,mBAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,gCAAG,UAAS;AACrB;",
4
+ "mappings": "AACA,SAAS,iBAAiB,qBAAqB;AAsCvC,SAoBC,UApBD;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAA8B;AAC/E,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MAGxB,uBAAuB;AAAA,MACvB,WAAW,MAAM;AAAA,MACjB,QAAQ,MAAM;AAAA,MAEb;AAAA;AAAA,EACH,IAIG,oBAAC,mBAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,gCAAG,UAAS;AACrB;",
5
5
  "names": []
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"names":["AnimatePresence","PresenceChild","Fragment","jsx","Animate","children","type","props","keepChildrenMounted","initial","onExitComplete","enterVariant","exitVariant","enterExitVariant","presenceAffectsLayout","isPresent","present","custom"],"sources":["../../src/Animate.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,eAAA,EAAiBC,aAAA,QAAqB;AAqCvC,SAoBCC,QAAA,EApBDC,GAAA;AAJD,SAASC,QAAQ;EAAEC,QAAA;EAAUC,IAAA;EAAM,GAAGC;AAAM,GAAiB;EAClE,OAAID,IAAA,KAAS,aACPC,KAAA,CAAMC,mBAAA,GAEN,eAAAL,GAAA,CAACF,aAAA;IACCQ,OAAA,EAASF,KAAA,CAAME,OAAA,GAAU,SAAY;IACrCC,cAAA,EAAgBH,KAAA,CAAMG,cAAA;IACtBC,YAAA,EAAcJ,KAAA,CAAMI,YAAA;IACpBC,WAAA,EAAaL,KAAA,CAAMK,WAAA;IACnBC,gBAAA,EAAkBN,KAAA,CAAMM,gBAAA;IAGxBC,qBAAA,EAAuB;IACvBC,SAAA,EAAWR,KAAA,CAAMS,OAAA;IACjBC,MAAA,EAAQV,KAAA,CAAMU,MAAA;IAEbZ;EAAA,CACH,IAIG,eAAAF,GAAA,CAACH,eAAA;IAAiB,GAAGO,KAAA;IAAQF,QAAA,EAAAE,KAAA,CAAMS,OAAA,GAAUX,QAAA,GAAW;EAAA,CAAK,IAG/D,eAAAF,GAAA,CAAAD,QAAA;IAAGG;EAAA,CAAS;AACrB","ignoreList":[]}
1
+ {"version":3,"names":["AnimatePresence","PresenceChild","Fragment","jsx","Animate","children","type","props","keepChildrenMounted","initial","onExitComplete","enterVariant","exitVariant","enterExitVariant","presenceAffectsLayout","isPresent","present","custom"],"sources":["../../src/Animate.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,eAAA,EAAiBC,aAAA,QAAqB;AAsCvC,SAoBCC,QAAA,EApBDC,GAAA;AAJD,SAASC,QAAQ;EAAEC,QAAA;EAAUC,IAAA;EAAM,GAAGC;AAAM,GAA8B;EAC/E,OAAID,IAAA,KAAS,aACPC,KAAA,CAAMC,mBAAA,GAEN,eAAAL,GAAA,CAACF,aAAA;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sBAEN,qBAACL,eAAAA;IACCM,SAASF,MAAME,UAAUC,SAAY;IACrCC,gBAAgBJ,MAAMI;IACtBC,cAAcL,MAAMK;IACpBC,aAAaN,MAAMM;IACnBC,kBAAkBP,MAAMO;;;IAGxBC,uBAAuB;IACvBC,WAAWT,MAAMU;IACjBC,QAAQX,MAAMW;;OAOb,qBAAChB,iBAAAA;IAAiB,GAAGK;cAAQA,MAAMU,UAAUZ,WAAW;OAG1D,qBAAA,WAAA;;;AACT;",
5
5
  "names": ["AnimatePresence", "PresenceChild", "Animate", "children", "type", "props", "keepChildrenMounted", "initial", "undefined", "onExitComplete", "enterVariant", "exitVariant", "enterExitVariant", "presenceAffectsLayout", "isPresent", "present", "custom"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animate",
3
- "version": "1.124.17",
3
+ "version": "1.124.18",
4
4
  "source": "src/index.ts",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@tamagui/animate-presence": "1.124.17"
16
+ "@tamagui/animate-presence": "1.124.18"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "1.124.17"
19
+ "@tamagui/build": "1.124.18"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tamagui-build",
package/src/Animate.tsx CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { AnimatePresenceProps } from '@tamagui/animate-presence'
2
2
  import { AnimatePresence, PresenceChild } from '@tamagui/animate-presence'
3
+ import type { JSX } from 'react/jsx-runtime'
3
4
 
4
5
  type BaseProps = {
5
6
  children: React.ReactNode
@@ -32,7 +33,7 @@ export type AnimateProps = BaseProps & PresenceProps
32
33
  *
33
34
  */
34
35
 
35
- export function Animate({ children, type, ...props }: AnimateProps) {
36
+ export function Animate({ children, type, ...props }: AnimateProps): JSX.Element {
36
37
  if (type === 'presence') {
37
38
  if (props.keepChildrenMounted) {
38
39
  return (
@@ -1,31 +1,31 @@
1
- import type { AnimatePresenceProps } from '@tamagui/animate-presence';
2
- type BaseProps = {
3
- children: React.ReactNode;
4
- };
1
+ import type { AnimatePresenceProps } from "@tamagui/animate-presence";
2
+ import type { JSX } from "react/jsx-runtime";
3
+ type BaseProps = { children: React.ReactNode };
5
4
  type PresenceProps = AnimatePresenceProps & {
6
- type: 'presence';
7
- present: boolean;
8
- keepChildrenMounted?: boolean;
5
+ type: "presence";
6
+ present: boolean;
7
+ keepChildrenMounted?: boolean;
9
8
  };
10
9
  export type AnimateProps = BaseProps & PresenceProps;
11
10
  /**
12
- * Because mounting and unmounting children can be expensive, this gives us the
13
- * option to avoid that.
14
- *
15
- * type: 'presence' will act just like AnimatePresence, except you use `present`
16
- * instead of conditional children.
17
- * Note that this does avoid reconciling the children even when present={false}
18
- * so no extra cost to perf over AnimatePresence.
19
- *
20
- * type: 'presence' with keepChildrenMounted true *always* render the children so you pay
21
- * the cost up-front to mount them, but then you avoid the mount cost at the start
22
- * of the animation.
23
- *
24
- * There's no "right way" it just depends on the use case, this component just makes
25
- * it easier to choose the strategy yourself.
26
- *
27
- *
28
- */
29
- export declare function Animate({ children, type, ...props }: AnimateProps): import("react/jsx-runtime").JSX.Element;
11
+ * Because mounting and unmounting children can be expensive, this gives us the
12
+ * option to avoid that.
13
+ *
14
+ * type: 'presence' will act just like AnimatePresence, except you use `present`
15
+ * instead of conditional children.
16
+ * Note that this does avoid reconciling the children even when present={false}
17
+ * so no extra cost to perf over AnimatePresence.
18
+ *
19
+ * type: 'presence' with keepChildrenMounted true *always* render the children so you pay
20
+ * the cost up-front to mount them, but then you avoid the mount cost at the start
21
+ * of the animation.
22
+ *
23
+ * There's no "right way" it just depends on the use case, this component just makes
24
+ * it easier to choose the strategy yourself.
25
+ *
26
+ *
27
+ */
28
+ export declare function Animate({ children, type,...props }: AnimateProps): JSX.Element;
30
29
  export {};
30
+
31
31
  //# sourceMappingURL=Animate.d.ts.map
@@ -1 +1,11 @@
1
- {"version":3,"file":"Animate.d.ts","sourceRoot":"","sources":["../src/Animate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAGrE,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,KAAK,aAAa,GAAG,oBAAoB,GAAG;IAC1C,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AAEH,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAyBjE"}
1
+ {
2
+ "mappings": "AAAA,cAAc,4BAA4B,2BAA2B;AAErE,cAAc,WAAW,mBAAmB;KAEvC,YAAY,EACf,UAAU,MAAM,UACjB;KAEI,gBAAgB,uBAAuB;CAC1C,MAAM;CACN;CACA;AACD;AAED,YAAY,eAAe,YAAY;;;;;;;;;;;;;;;;;;;AAqBvC,OAAO,iBAAS,QAAQ,EAAE,UAAU,KAAM,GAAG,OAAqB,EAAZ,eAAe,IAAI",
3
+ "names": [],
4
+ "sources": [
5
+ "src/Animate.tsx"
6
+ ],
7
+ "sourcesContent": [
8
+ "import type { AnimatePresenceProps } from '@tamagui/animate-presence'\nimport { AnimatePresence, PresenceChild } from '@tamagui/animate-presence'\nimport type { JSX } from 'react/jsx-runtime'\n\ntype BaseProps = {\n children: React.ReactNode\n}\n\ntype PresenceProps = AnimatePresenceProps & {\n type: 'presence'\n present: boolean\n keepChildrenMounted?: boolean\n}\n\nexport type AnimateProps = BaseProps & PresenceProps\n\n/**\n * Because mounting and unmounting children can be expensive, this gives us the\n * option to avoid that.\n *\n * type: 'presence' will act just like AnimatePresence, except you use `present`\n * instead of conditional children.\n * Note that this does avoid reconciling the children even when present={false}\n * so no extra cost to perf over AnimatePresence.\n *\n * type: 'presence' with keepChildrenMounted true *always* render the children so you pay\n * the cost up-front to mount them, but then you avoid the mount cost at the start\n * of the animation.\n *\n * There's no \"right way\" it just depends on the use case, this component just makes\n * it easier to choose the strategy yourself.\n *\n *\n */\n\nexport function Animate({ children, type, ...props }: AnimateProps): JSX.Element {\n if (type === 'presence') {\n if (props.keepChildrenMounted) {\n return (\n <PresenceChild\n initial={props.initial ? undefined : false}\n onExitComplete={props.onExitComplete}\n enterVariant={props.enterVariant}\n exitVariant={props.exitVariant}\n enterExitVariant={props.enterExitVariant}\n // BUGFIX: this causes continous re-renders if keepChildrenMounted is true, see HeaderMenu\n // but since we always re-render this component on open changes this should be fine to leave off?\n presenceAffectsLayout={false}\n isPresent={props.present}\n custom={props.custom}\n >\n {children as any}\n </PresenceChild>\n )\n }\n\n return <AnimatePresence {...props}>{props.present ? children : null}</AnimatePresence>\n }\n\n return <>{children}</>\n}\n"
9
+ ],
10
+ "version": 3
11
+ }
package/types/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from './Animate';
1
+ export * from "./Animate";
2
+
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1,11 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
1
+ {
2
+ "mappings": "AAAA,cAAc",
3
+ "names": [],
4
+ "sources": [
5
+ "src/index.ts"
6
+ ],
7
+ "sourcesContent": [
8
+ "export * from './Animate'\n"
9
+ ],
10
+ "version": 3
11
+ }