@tamagui/helpers 1.79.12 → 1.79.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -11,19 +11,21 @@ var __copyProps = (to, from, except, desc) => {
11
11
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
12
  var src_exports = {};
13
13
  module.exports = __toCommonJS(src_exports);
14
+ __reExport(src_exports, require("@tamagui/simple-hash"), module.exports);
14
15
  __reExport(src_exports, require("./clamp"), module.exports);
15
16
  __reExport(src_exports, require("./composeEventHandlers"), module.exports);
16
17
  __reExport(src_exports, require("./concatClassName"), module.exports);
17
- __reExport(src_exports, require("./validStyleProps"), module.exports);
18
18
  __reExport(src_exports, require("./types"), module.exports);
19
- __reExport(src_exports, require("@tamagui/simple-hash"), module.exports);
19
+ __reExport(src_exports, require("./validStyleProps"), module.exports);
20
+ __reExport(src_exports, require("./withStaticProperties"), module.exports);
20
21
  // Annotate the CommonJS export names for ESM import in node:
21
22
  0 && (module.exports = {
23
+ ...require("@tamagui/simple-hash"),
22
24
  ...require("./clamp"),
23
25
  ...require("./composeEventHandlers"),
24
26
  ...require("./concatClassName"),
25
- ...require("./validStyleProps"),
26
27
  ...require("./types"),
27
- ...require("@tamagui/simple-hash")
28
+ ...require("./validStyleProps"),
29
+ ...require("./withStaticProperties")
28
30
  });
29
31
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;AACA,wBAAc,mCADd;AAEA,wBAAc,8BAFd;AAGA,wBAAc,8BAHd;AAIA,wBAAc,oBAJd;AAKA,wBAAc,iCALd;",
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,iCAAd;AACA,wBAAc,oBADd;AAEA,wBAAc,mCAFd;AAGA,wBAAc,8BAHd;AAIA,wBAAc,oBAJd;AAKA,wBAAc,8BALd;AAMA,wBAAc,mCANd;",
5
5
  "names": []
6
6
  }
@@ -12,19 +12,21 @@ var __copyProps = (to, from, except, desc) => {
12
12
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
13
  var src_exports = {};
14
14
  module.exports = __toCommonJS(src_exports);
15
+ __reExport(src_exports, require("@tamagui/simple-hash"), module.exports);
15
16
  __reExport(src_exports, require("./clamp"), module.exports);
16
17
  __reExport(src_exports, require("./composeEventHandlers"), module.exports);
17
18
  __reExport(src_exports, require("./concatClassName"), module.exports);
18
- __reExport(src_exports, require("./validStyleProps"), module.exports);
19
19
  __reExport(src_exports, require("./types"), module.exports);
20
- __reExport(src_exports, require("@tamagui/simple-hash"), module.exports);
20
+ __reExport(src_exports, require("./validStyleProps"), module.exports);
21
+ __reExport(src_exports, require("./withStaticProperties"), module.exports);
21
22
  // Annotate the CommonJS export names for ESM import in node:
22
23
  0 && (module.exports = {
24
+ ...require("@tamagui/simple-hash"),
23
25
  ...require("./clamp"),
24
26
  ...require("./composeEventHandlers"),
25
27
  ...require("./concatClassName"),
26
- ...require("./validStyleProps"),
27
28
  ...require("./types"),
28
- ...require("@tamagui/simple-hash")
29
+ ...require("./validStyleProps"),
30
+ ...require("./withStaticProperties")
29
31
  });
30
32
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;AACA,wBAAc,mCADd;AAEA,wBAAc,8BAFd;AAGA,wBAAc,8BAHd;AAIA,wBAAc,oBAJd;AAKA,wBAAc,iCALd;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,iCAAd;AACA,wBAAc,oBADd;AAEA,wBAAc,mCAFd;AAGA,wBAAc,8BAHd;AAIA,wBAAc,oBAJd;AAKA,wBAAc,8BALd;AAMA,wBAAc,mCANd;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,40 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var withStaticProperties_exports = {};
16
+ __export(withStaticProperties_exports, {
17
+ withStaticProperties: () => withStaticProperties
18
+ });
19
+ module.exports = __toCommonJS(withStaticProperties_exports);
20
+ var import_react = require("react");
21
+ const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
22
+ const next = (() => {
23
+ if (component[Decorated]) {
24
+ const _ = (0, import_react.forwardRef)(
25
+ (props, ref) => (0, import_react.createElement)(component, { ...props, ref })
26
+ );
27
+ for (const key in component) {
28
+ const v = component[key];
29
+ _[key] = v && typeof v == "object" ? { ...v } : v;
30
+ }
31
+ }
32
+ return component;
33
+ })();
34
+ return Object.assign(next, staticProps), next[Decorated] = !0, next;
35
+ };
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ withStaticProperties
39
+ });
40
+ //# sourceMappingURL=withStaticProperties.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/withStaticProperties.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0C;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,QAAI;AAAA,QAAW,CAAC,OAAO,YAC3B,4BAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
+ "names": []
6
+ }
@@ -0,0 +1,41 @@
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: !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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var withStaticProperties_exports = {};
17
+ __export(withStaticProperties_exports, {
18
+ withStaticProperties: () => withStaticProperties
19
+ });
20
+ module.exports = __toCommonJS(withStaticProperties_exports);
21
+ var import_react = require("react");
22
+ const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
23
+ const next = (() => {
24
+ if (component[Decorated]) {
25
+ const _ = (0, import_react.forwardRef)(
26
+ (props, ref) => (0, import_react.createElement)(component, { ...props, ref })
27
+ );
28
+ for (const key in component) {
29
+ const v = component[key];
30
+ _[key] = v && typeof v == "object" ? { ...v } : v;
31
+ }
32
+ }
33
+ return component;
34
+ })();
35
+ return Object.assign(next, staticProps), next[Decorated] = !0, next;
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ withStaticProperties
40
+ });
41
+ //# sourceMappingURL=withStaticProperties.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/withStaticProperties.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0C;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,QAAI;AAAA,QAAW,CAAC,OAAO,YAC3B,4BAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
+ "names": []
6
+ }
package/dist/esm/index.js CHANGED
@@ -1,7 +1,8 @@
1
+ export * from "@tamagui/simple-hash";
1
2
  export * from "./clamp";
2
3
  export * from "./composeEventHandlers";
3
4
  export * from "./concatClassName";
4
- export * from "./validStyleProps";
5
5
  export * from "./types";
6
- export * from "@tamagui/simple-hash";
6
+ export * from "./validStyleProps";
7
+ export * from "./withStaticProperties";
7
8
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
4
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,7 +1,8 @@
1
+ export * from "@tamagui/simple-hash";
1
2
  export * from "./clamp";
2
3
  export * from "./composeEventHandlers";
3
4
  export * from "./concatClassName";
4
- export * from "./validStyleProps";
5
5
  export * from "./types";
6
- export * from "@tamagui/simple-hash";
6
+ export * from "./validStyleProps";
7
+ export * from "./withStaticProperties";
7
8
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
4
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,20 @@
1
+ import { createElement, forwardRef } from "react";
2
+ const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
3
+ const next = (() => {
4
+ if (component[Decorated]) {
5
+ const _ = forwardRef(
6
+ (props, ref) => createElement(component, { ...props, ref })
7
+ );
8
+ for (const key in component) {
9
+ const v = component[key];
10
+ _[key] = v && typeof v == "object" ? { ...v } : v;
11
+ }
12
+ }
13
+ return component;
14
+ })();
15
+ return Object.assign(next, staticProps), next[Decorated] = !0, next;
16
+ };
17
+ export {
18
+ withStaticProperties
19
+ };
20
+ //# sourceMappingURL=withStaticProperties.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/withStaticProperties.tsx"],
4
+ "mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,IAAI;AAAA,QAAW,CAAC,OAAO,QAC3B,cAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
+ "names": []
6
+ }
@@ -0,0 +1,20 @@
1
+ import { createElement, forwardRef } from "react";
2
+ const Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
3
+ const next = (() => {
4
+ if (component[Decorated]) {
5
+ const _ = forwardRef(
6
+ (props, ref) => createElement(component, { ...props, ref })
7
+ );
8
+ for (const key in component) {
9
+ const v = component[key];
10
+ _[key] = v && typeof v == "object" ? { ...v } : v;
11
+ }
12
+ }
13
+ return component;
14
+ })();
15
+ return Object.assign(next, staticProps), next[Decorated] = !0, next;
16
+ };
17
+ export {
18
+ withStaticProperties
19
+ };
20
+ //# sourceMappingURL=withStaticProperties.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/withStaticProperties.tsx"],
4
+ "mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,MAAM,YAAY,OAAO,GAIZ,uBAAuB,SAClC,WACA,aACgB;AAEhB,QAAM,QAAQ,MAAM;AAClB,QAAI,UAAU,SAAS,GAAG;AACxB,YAAM,IAAI;AAAA,QAAW,CAAC,OAAO,QAC3B,cAAc,WAAkB,EAAE,GAAG,OAAO,IAAI,CAAC;AAAA,MACnD;AAEA,iBAAW,OAAO,WAAW;AAC3B,cAAM,IAAI,UAAU,GAAG;AAEvB,UAAE,GAAG,IAAI,KAAK,OAAO,KAAM,WAAW,EAAE,GAAG,EAAE,IAAI;AAAA,MACnD;AAAA,IACF;AACA,WAAO;AAAA,EACT,GAAG;AAGH,gBAAO,OAAO,MAAM,WAAW,GAC/B,KAAK,SAAS,IAAI,IAEX;AACT;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers",
3
- "version": "1.79.12",
3
+ "version": "1.79.13",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -19,11 +19,11 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "dependencies": {
22
- "@tamagui/constants": "1.79.12",
23
- "@tamagui/simple-hash": "1.79.12"
22
+ "@tamagui/constants": "1.79.13",
23
+ "@tamagui/simple-hash": "1.79.13"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "1.79.12"
26
+ "@tamagui/build": "1.79.13"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
+ export * from '@tamagui/simple-hash'
1
2
  export * from './clamp'
2
3
  export * from './composeEventHandlers'
3
4
  export * from './concatClassName'
4
- export * from './validStyleProps'
5
5
  export * from './types'
6
- export * from '@tamagui/simple-hash'
6
+ export * from './validStyleProps'
7
+ export * from './withStaticProperties'
package/src/types.ts CHANGED
@@ -9,3 +9,9 @@ export type StyleObject = {
9
9
  }
10
10
 
11
11
  export type MediaStyleObject = Omit<StyleObject, 'value'>
12
+
13
+ export type NativePlatform = 'web' | 'mobile' | 'android' | 'ios'
14
+ export type NativeValue<Platform extends NativePlatform = NativePlatform> =
15
+ | boolean
16
+ | Platform
17
+ | Platform[]
@@ -0,0 +1,32 @@
1
+ import { createElement, forwardRef } from 'react'
2
+
3
+ const Decorated = Symbol()
4
+
5
+ type Combined<A, B> = A & B
6
+
7
+ export const withStaticProperties = function <A extends Function, B>(
8
+ component: A,
9
+ staticProps: B
10
+ ): Combined<A, B> {
11
+ // clone component if already wrapped once
12
+ const next = (() => {
13
+ if (component[Decorated]) {
14
+ const _ = forwardRef((props, ref) =>
15
+ createElement(component as any, { ...props, ref })
16
+ )
17
+ // attach existing things again
18
+ for (const key in component) {
19
+ const v = component[key]
20
+ // @ts-ignore
21
+ _[key] = v && typeof v === 'object' ? { ...v } : v
22
+ }
23
+ }
24
+ return component
25
+ })()
26
+
27
+ // add new things
28
+ Object.assign(next, staticProps)
29
+ next[Decorated] = true
30
+
31
+ return next as any as A & B
32
+ }
package/types/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ export * from '@tamagui/simple-hash';
1
2
  export * from './clamp';
2
3
  export * from './composeEventHandlers';
3
4
  export * from './concatClassName';
4
- export * from './validStyleProps';
5
5
  export * from './types';
6
- export * from '@tamagui/simple-hash';
6
+ export * from './validStyleProps';
7
+ export * from './withStaticProperties';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA"}
package/types/types.d.ts CHANGED
@@ -6,4 +6,6 @@ export type StyleObject = {
6
6
  value?: any;
7
7
  };
8
8
  export type MediaStyleObject = Omit<StyleObject, 'value'>;
9
+ export type NativePlatform = 'web' | 'mobile' | 'android' | 'ios';
10
+ export type NativeValue<Platform extends NativePlatform = NativePlatform> = boolean | Platform | Platform[];
9
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,EAAE,CAAA;IAGf,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,EAAE,CAAA;IAGf,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;AAEzD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAA;AACjE,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,cAAc,GAAG,cAAc,IACpE,OAAO,GACP,QAAQ,GACR,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { useLayoutEffect } from 'react';
2
+ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
3
+ //# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map
@@ -0,0 +1,4 @@
1
+ type Combined<A, B> = A & B;
2
+ export declare const withStaticProperties: <A extends Function, B>(component: A, staticProps: B) => Combined<A, B>;
3
+ export {};
4
+ //# sourceMappingURL=withStaticProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../src/withStaticProperties.tsx"],"names":[],"mappings":"AAIA,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3B,eAAO,MAAM,oBAAoB,yEAyBhC,CAAA"}