@tamagui/helpers-tamagui 1.111.7 → 1.111.9

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,5 +1,5 @@
1
1
  export * from "@tamagui/helpers";
2
- export * from "./prevent";
3
- export * from "./useCurrentColor";
4
- export * from "./useGetThemedIcon";
5
- //# sourceMappingURL=index.js.map
2
+ export * from "./prevent.native.js";
3
+ export * from "./useCurrentColor.native.js";
4
+ export * from "./useGetThemedIcon.native.js";
5
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/helpers-tamagui/src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1,10 +1,5 @@
1
- var prevent = function(e) {
2
- return [
3
- e.preventDefault(),
4
- e.stopPropagation()
5
- ];
1
+ var prevent = function (e) {
2
+ return [e.preventDefault(), e.stopPropagation()];
6
3
  };
7
- export {
8
- prevent
9
- };
10
- //# sourceMappingURL=prevent.js.map
4
+ export { prevent };
5
+ //# sourceMappingURL=prevent.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/helpers-tamagui/src/prevent.tsx"],
4
- "mappings": "AAAO,IAAMA,UAAU,SAACC,GAAAA;SAAM;IAACA,EAAEC,eAAc;IAAID,EAAEE,gBAAe;;;",
5
- "names": ["prevent", "e", "preventDefault", "stopPropagation"]
6
- }
1
+ {"version":3,"names":["prevent","e"],"sources":["../../src/prevent.tsx"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,OAAM,YAAAA,CAAiBC,CAAC,EAAE","ignoreList":[]}
@@ -1,9 +1,10 @@
1
1
  import { getVariable, useTheme } from "@tamagui/web";
2
- var useCurrentColor = function(colorProp) {
3
- var _theme_colorProp, _theme_color, theme = useTheme(), out = getVariable(colorProp || ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get("web")) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get("web")));
2
+ var useCurrentColor = function (colorProp) {
3
+ var _theme_colorProp,
4
+ _theme_color,
5
+ theme = useTheme(),
6
+ out = getVariable(colorProp || ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get("web")) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get("web")));
4
7
  return out;
5
8
  };
6
- export {
7
- useCurrentColor
8
- };
9
- //# sourceMappingURL=useCurrentColor.js.map
9
+ export { useCurrentColor };
10
+ //# sourceMappingURL=useCurrentColor.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/helpers-tamagui/src/useCurrentColor.tsx"],
4
- "mappings": "AACA,SAASA,aAAaC,gBAAgB;AAG/B,IAAMC,kBAAkB,SAACC,WAAAA;MAGfC,kBAAuCA,cAFhDA,QAAQH,SAAAA,GACRI,MAAML,YACVG,eAAaC,mBAAAA,MAAMD,SAAAA,OAAiB,QAAvBC,qBAAAA,SAAAA,SAAAA,iBAAyBE,IAAI,KAAA,QAAUF,eAAAA,MAAMG,WAAK,QAAXH,iBAAAA,SAAAA,SAAAA,aAAaE,IAAI,KAAA,EAAA;AAEvE,SAAOD;AACT;",
5
- "names": ["getVariable", "useTheme", "useCurrentColor", "colorProp", "theme", "out", "get", "color"]
6
- }
1
+ {"version":3,"names":["getVariable","useTheme","useCurrentColor","colorProp","_theme_colorProp","_theme_color","theme","out","get","color"],"sources":["../../src/useCurrentColor.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,EAAaC,QAAA,QAAgB;AAG/B,IAAAC,eAAM,YAAAA,CAAmBC,SAAyB;EACvD,IAAAC,gBAAc;IAAAC,YAAS;IAAAC,KAAA,GAAAL,QAAA;IAAAM,GAAA,GAAAP,WAAA,CAAAG,SAAA,MAAAC,gBAAA,GAAAE,KAAA,CAAAH,SAAA,eAAAC,gBAAA,uBAAAA,gBAAA,CAAAI,GAAA,cAAAH,YAAA,GAAAC,KAAA,CAAAG,KAAA,cAAAJ,YAAA,uBAAAA,YAAA,CAAAG,GAAA;EAIvB,OAHYD,GAAA;AAAA;AACgE,SAG9EL,eAAA","ignoreList":[]}
@@ -1,17 +1,15 @@
1
1
  import React from "react";
2
- import { useCurrentColor } from "./useCurrentColor";
3
- var useGetThemedIcon = function(props) {
2
+ import { useCurrentColor } from "./useCurrentColor.native.js";
3
+ var useGetThemedIcon = function (props) {
4
4
  var color = useCurrentColor(props.color);
5
- return function(el) {
6
- return el && (/* @__PURE__ */ React.isValidElement(el) ? /* @__PURE__ */ React.cloneElement(el, {
5
+ return function (el) {
6
+ return el && (/* @__PURE__ */React.isValidElement(el) ? /* @__PURE__ */React.cloneElement(el, {
7
7
  ...props,
8
8
  color,
9
9
  // @ts-expect-error
10
10
  ...el.props
11
- }) : /* @__PURE__ */ React.createElement(el, props));
11
+ }) : /* @__PURE__ */React.createElement(el, props));
12
12
  };
13
13
  };
14
- export {
15
- useGetThemedIcon
16
- };
17
- //# sourceMappingURL=useGetThemedIcon.js.map
14
+ export { useGetThemedIcon };
15
+ //# sourceMappingURL=useGetThemedIcon.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/helpers-tamagui/src/useGetThemedIcon.tsx"],
4
- "mappings": "AAAA,OAAOA,WAAW;AAGlB,SAASC,uBAAuB;AAEzB,IAAMC,mBAAmB,SAACC,OAAAA;AAC/B,MAAMC,QAAQH,gBAAgBE,MAAMC,KAAK;AACzC,SAAO,SAACC,IAAAA;AACN,WAAKA,OACDL,sBAAMM,eAAeD,EAAAA,IAChBL,sBAAMO,aAAaF,IAAI;MAC5B,GAAGF;MACHC;;MAEA,GAAGC,GAAGF;IACR,CAAA,IAEKH,sBAAMQ,cAAcH,IAAIF,KAAAA;EACjC;AACF;",
5
- "names": ["React", "useCurrentColor", "useGetThemedIcon", "props", "color", "el", "isValidElement", "cloneElement", "createElement"]
6
- }
1
+ {"version":3,"names":["React","useCurrentColor","useGetThemedIcon","props","color","el","isValidElement","cloneElement","createElement"],"sources":["../../src/useGetThemedIcon.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAGlB,SAASC,eAAA,QAAuB;AAEzB,IAAAC,gBAAM,YAAAA,CAAoBC,KAA8C;EAC7E,IAAAC,KAAM,GAAAH,eAAQ,CAAAE,KAAgB,CAAAC,KAAM;EACpC,OAAO,UACAC,EAAA;IAGD,OAAGA,EAAA,oBAAAL,KAAA,CAAAM,cAAA,CAAAD,EAAA,mBAAAL,KAAA,CAAAO,YAAA,CAAAF,EAAA;MACH,GAAAF,KAAA;MAAAC,KAAA;MAEA;MACD,GAEIC,EAAA,CAAAF;IAEX,oBAAAH,KAAA,CAAAQ,aAAA,CAAAH,EAAA,EAAAF,KAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-tamagui",
3
- "version": "1.111.7",
3
+ "version": "1.111.9",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -21,7 +21,7 @@
21
21
  "exports": {
22
22
  "./package.json": "./package.json",
23
23
  ".": {
24
- "react-native-import": "./dist/esm/index.native.mjs",
24
+ "react-native-import": "./dist/esm/index.native.js",
25
25
  "react-native": "./dist/cjs/index.native.js",
26
26
  "types": "./types/index.d.ts",
27
27
  "import": "./dist/esm/index.mjs",
@@ -29,11 +29,11 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@tamagui/helpers": "1.111.7",
33
- "@tamagui/web": "1.111.7"
32
+ "@tamagui/helpers": "1.111.9",
33
+ "@tamagui/web": "1.111.9"
34
34
  },
35
35
  "devDependencies": {
36
- "@tamagui/build": "1.111.7",
36
+ "@tamagui/build": "1.111.9",
37
37
  "react": "^18.2.0 || ^19.0.0",
38
38
  "vitest": "0.34.3"
39
39
  },
@@ -1,5 +0,0 @@
1
- export * from "@tamagui/helpers";
2
- export * from "./prevent.native.mjs";
3
- export * from "./useCurrentColor.native.mjs";
4
- export * from "./useGetThemedIcon.native.mjs";
5
- //# sourceMappingURL=index.native.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- var prevent = function (e) {
2
- return [e.preventDefault(), e.stopPropagation()];
3
- };
4
- export { prevent };
5
- //# sourceMappingURL=prevent.native.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["prevent","e"],"sources":["../../src/prevent.tsx"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,OAAM,YAAAA,CAAiBC,CAAC,EAAE","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import { getVariable, useTheme } from "@tamagui/web";
2
- var useCurrentColor = function (colorProp) {
3
- var _theme_colorProp,
4
- _theme_color,
5
- theme = useTheme(),
6
- out = getVariable(colorProp || ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get("web")) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get("web")));
7
- return out;
8
- };
9
- export { useCurrentColor };
10
- //# sourceMappingURL=useCurrentColor.native.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getVariable","useTheme","useCurrentColor","colorProp","_theme_colorProp","_theme_color","theme","out","get","color"],"sources":["../../src/useCurrentColor.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,EAAaC,QAAA,QAAgB;AAG/B,IAAAC,eAAM,YAAAA,CAAmBC,SAAyB;EACvD,IAAAC,gBAAc;IAAAC,YAAS;IAAAC,KAAA,GAAAL,QAAA;IAAAM,GAAA,GAAAP,WAAA,CAAAG,SAAA,MAAAC,gBAAA,GAAAE,KAAA,CAAAH,SAAA,eAAAC,gBAAA,uBAAAA,gBAAA,CAAAI,GAAA,cAAAH,YAAA,GAAAC,KAAA,CAAAG,KAAA,cAAAJ,YAAA,uBAAAA,YAAA,CAAAG,GAAA;EAIvB,OAHYD,GAAA;AAAA;AACgE,SAG9EL,eAAA","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { useCurrentColor } from "./useCurrentColor.native.mjs";
3
- var useGetThemedIcon = function (props) {
4
- var color = useCurrentColor(props.color);
5
- return function (el) {
6
- return el && (/* @__PURE__ */React.isValidElement(el) ? /* @__PURE__ */React.cloneElement(el, {
7
- ...props,
8
- color,
9
- // @ts-expect-error
10
- ...el.props
11
- }) : /* @__PURE__ */React.createElement(el, props));
12
- };
13
- };
14
- export { useGetThemedIcon };
15
- //# sourceMappingURL=useGetThemedIcon.native.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCurrentColor","useGetThemedIcon","props","color","el","isValidElement","cloneElement","createElement"],"sources":["../../src/useGetThemedIcon.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAGlB,SAASC,eAAA,QAAuB;AAEzB,IAAAC,gBAAM,YAAAA,CAAoBC,KAA8C;EAC7E,IAAAC,KAAM,GAAAH,eAAQ,CAAAE,KAAgB,CAAAC,KAAM;EACpC,OAAO,UACAC,EAAA;IAGD,OAAGA,EAAA,oBAAAL,KAAA,CAAAM,cAAA,CAAAD,EAAA,mBAAAL,KAAA,CAAAO,YAAA,CAAAF,EAAA;MACH,GAAAF,KAAA;MAAAC,KAAA;MAEA;MACD,GAEIC,EAAA,CAAAF;IAEX,oBAAAH,KAAA,CAAAQ,aAAA,CAAAH,EAAA,EAAAF,KAAA","ignoreList":[]}