@tamagui/helpers-tamagui 1.143.1 → 1.144.0

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.
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var useGetIcon_exports = {};
33
+ __export(useGetIcon_exports, {
34
+ useGetIcon: () => useGetIcon
35
+ });
36
+ module.exports = __toCommonJS(useGetIcon_exports);
37
+ var import_react = __toESM(require("react"), 1);
38
+ const useGetIcon = () => (el, props) => el && (import_react.default.isValidElement(el) ? import_react.default.cloneElement(el, {
39
+ ...props,
40
+ // @ts-expect-error
41
+ ...el.props
42
+ }) : import_react.default.createElement(el, props));
@@ -0,0 +1,34 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var useGetIcon_exports = {};
24
+ __export(useGetIcon_exports, {
25
+ useGetIcon: () => useGetIcon
26
+ });
27
+ module.exports = __toCommonJS(useGetIcon_exports);
28
+ var import_react = __toESM(require("react"), 1);
29
+ const useGetIcon = () => (el, props) => el && (import_react.default.isValidElement(el) ? import_react.default.cloneElement(el, {
30
+ ...props,
31
+ // @ts-expect-error
32
+ ...el.props
33
+ }) : import_react.default.createElement(el, props));
34
+ //# sourceMappingURL=useGetIcon.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useGetIcon.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAEX,MAAM,aAAa,MACjB,CAAC,IAAS,UACV,OACD,aAAAA,QAAM,eAAe,EAAE,IAClB,aAAAA,QAAM,aAAa,IAAI;AAAA,EAC5B,GAAG;AAAA;AAAA,EAEH,GAAG,GAAG;AACR,CAAC,IAEI,aAAAA,QAAM,cAAc,IAAI,KAAK;",
5
+ "names": ["React"]
6
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
34
+ var useGetIcon_exports = {};
35
+ __export(useGetIcon_exports, {
36
+ useGetIcon: () => useGetIcon
37
+ });
38
+ module.exports = __toCommonJS(useGetIcon_exports);
39
+ var import_react = __toESM(require("react"), 1),
40
+ useGetIcon = function () {
41
+ return function (el, props) {
42
+ return el && (/* @__PURE__ */import_react.default.isValidElement(el) ? /* @__PURE__ */import_react.default.cloneElement(el, {
43
+ ...props,
44
+ // @ts-expect-error
45
+ ...el.props
46
+ }) : /* @__PURE__ */import_react.default.createElement(el, props));
47
+ };
48
+ };
49
+ //# sourceMappingURL=useGetIcon.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useGetIcon_exports","__export","useGetIcon","module","exports","import_react","__toESM","require","el","props","default","isValidElement","cloneElement"],"sources":["../../src/useGetIcon.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,kBAAA;AAEX,IAAAK,YAAM,GAAaC,OAChB,CAAAC,OAAS,QACV,KACD;EAAAL,UAAA,YAAAA,CAAA,EAAM;IAEN,OAAG,UAAAM,EAAA,EAAAC,KAAA;MAAA,OAAAD,EAAA,oBAAAH,YAAA,CAAAK,OAAA,CAAAC,cAAA,CAAAH,EAAA,mBAAAH,YAAA,CAAAK,OAAA,CAAAE,YAAA,CAAAJ,EAAA;QAEA,GAAGC,KAAA;QAGH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ const useGetIcon = () => (el, props) => el && (React.isValidElement(el) ? React.cloneElement(el, {
3
+ ...props,
4
+ // @ts-expect-error
5
+ ...el.props
6
+ }) : React.createElement(el, props));
7
+ export {
8
+ useGetIcon
9
+ };
10
+ //# sourceMappingURL=useGetIcon.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useGetIcon.tsx"],
4
+ "mappings": "AAAA,OAAO,WAAW;AAEX,MAAM,aAAa,MACjB,CAAC,IAAS,UACV,OACD,MAAM,eAAe,EAAE,IAClB,MAAM,aAAa,IAAI;AAAA,EAC5B,GAAG;AAAA;AAAA,EAEH,GAAG,GAAG;AACR,CAAC,IAEI,MAAM,cAAc,IAAI,KAAK;",
5
+ "names": []
6
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ const useGetIcon = () => (el, props) => el && (React.isValidElement(el) ? React.cloneElement(el, {
3
+ ...props,
4
+ // @ts-expect-error
5
+ ...el.props
6
+ }) : React.createElement(el, props));
7
+ export { useGetIcon };
8
+ //# sourceMappingURL=useGetIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useGetIcon","el","props","isValidElement","cloneElement","createElement"],"sources":["../../src/useGetIcon.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAEX,MAAMC,UAAA,GAAaA,CAAA,KACjB,CAACC,EAAA,EAASC,KAAA,KACVD,EAAA,KACDF,KAAA,CAAMI,cAAA,CAAeF,EAAE,IAClBF,KAAA,CAAMK,YAAA,CAAaH,EAAA,EAAI;EAC5B,GAAGC,KAAA;EAAA;EAEH,GAAGD,EAAA,CAAGC;AACR,CAAC,IAEIH,KAAA,CAAMM,aAAA,CAAcJ,EAAA,EAAIC,KAAK","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ var useGetIcon = function () {
3
+ return function (el, props) {
4
+ return el && (/* @__PURE__ */React.isValidElement(el) ? /* @__PURE__ */React.cloneElement(el, {
5
+ ...props,
6
+ // @ts-expect-error
7
+ ...el.props
8
+ }) : /* @__PURE__ */React.createElement(el, props));
9
+ };
10
+ };
11
+ export { useGetIcon };
12
+ //# sourceMappingURL=useGetIcon.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useGetIcon","el","props","isValidElement","cloneElement"],"sources":["../../src/useGetIcon.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAEX,IAAAC,UAAM,YAAAA,CAAA,EACH;EAIF,OAAG,UAAAC,EAAA,EAAAC,KAAA;IAAA,OAAAD,EAAA,oBAAAF,KAAA,CAAAI,cAAA,CAAAF,EAAA,mBAAAF,KAAA,CAAAK,YAAA,CAAAH,EAAA;MAEA,GAAGC,KAAA;MAGH","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-tamagui",
3
- "version": "1.143.1",
3
+ "version": "1.144.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "source": "src/index.ts",
@@ -36,11 +36,11 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@tamagui/helpers": "1.143.1",
40
- "@tamagui/web": "1.143.1"
39
+ "@tamagui/helpers": "1.144.0",
40
+ "@tamagui/web": "1.144.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.143.1",
43
+ "@tamagui/build": "1.144.0",
44
44
  "react": "*",
45
45
  "react-native": "0.81.5",
46
46
  "vitest": "^4.0.4"
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetIcon.d.ts","sourceRoot":"","sources":["../src/useGetIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,SACb,IAAI,GAAG,EAAE,OAAO,GAAG,QAW5B,CAAA"}