@tamagui/helpers-tamagui 1.113.1 → 1.113.2

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.native.js";
3
- export * from "./useCurrentColor.native.js";
4
- export * from "./useGetThemedIcon.native.js";
5
- //# sourceMappingURL=index.native.js.map
2
+ export * from "./prevent";
3
+ export * from "./useCurrentColor";
4
+ export * from "./useGetThemedIcon";
5
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
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,5 +1,10 @@
1
- var prevent = function (e) {
2
- return [e.preventDefault(), e.stopPropagation()];
1
+ var prevent = function(e) {
2
+ return [
3
+ e.preventDefault(),
4
+ e.stopPropagation()
5
+ ];
3
6
  };
4
- export { prevent };
5
- //# sourceMappingURL=prevent.native.js.map
7
+ export {
8
+ prevent
9
+ };
10
+ //# sourceMappingURL=prevent.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["prevent","e"],"sources":["../../src/prevent.tsx"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,OAAM,YAAAA,CAAiBC,CAAC,EAAE","ignoreList":[]}
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,12 +1,12 @@
1
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(
2
+ var useCurrentColor = function(colorProp) {
3
+ var _theme_colorProp, _theme_color, theme = useTheme(), out = getVariable(
7
4
  // TODO can remove 'web' here, will return DynamicColor for iOS for ListItem icons, which is supported in newer react-native-svg versions
8
- 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")));
5
+ 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"))
6
+ );
9
7
  return out;
10
8
  };
11
- export { useCurrentColor };
12
- //# sourceMappingURL=useCurrentColor.native.js.map
9
+ export {
10
+ useCurrentColor
11
+ };
12
+ //# sourceMappingURL=useCurrentColor.js.map
@@ -1 +1,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;IAKvB;IAJYG,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;EAGZ,OAAAD,GAAA;AAEF","ignoreList":[]}
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;MAIfC,kBAAuCA,cAHhDA,QAAQH,SAAAA,GACRI,MAAML;;IAEVG,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,15 +1,17 @@
1
1
  import React from "react";
2
- import { useCurrentColor } from "./useCurrentColor.native.js";
3
- var useGetThemedIcon = function (props) {
2
+ import { useCurrentColor } from "./useCurrentColor";
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 { useGetThemedIcon };
15
- //# sourceMappingURL=useGetThemedIcon.native.js.map
14
+ export {
15
+ useGetThemedIcon
16
+ };
17
+ //# sourceMappingURL=useGetThemedIcon.js.map
@@ -1 +1,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;AAElB,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":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/helpers-tamagui/src/useGetThemedIcon.tsx"],
4
+ "mappings": "AAAA,OAAOA,WAAW;AAElB,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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-tamagui",
3
- "version": "1.113.1",
3
+ "version": "1.113.2",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -29,11 +29,11 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@tamagui/helpers": "1.113.1",
33
- "@tamagui/web": "1.113.1"
32
+ "@tamagui/helpers": "1.113.2",
33
+ "@tamagui/web": "1.113.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@tamagui/build": "1.113.1",
36
+ "@tamagui/build": "1.113.2",
37
37
  "react": "^18.2.0 || ^19.0.0",
38
38
  "vitest": "2.1.1"
39
39
  },