@tamagui/helpers-tamagui 1.125.6 → 1.125.7

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 = colorProp ? getVariable(colorProp) : ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get()) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get());
2
+ var useCurrentColor = function (colorProp) {
3
+ var _theme_colorProp,
4
+ _theme_color,
5
+ theme = useTheme(),
6
+ out = colorProp ? getVariable(colorProp) : ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get()) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get());
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;MAI1BC,kBAAkCA,cAHhCA,QAAQH,SAAAA,GACRI,MAAMF,YACRH,YAAYG,SAAAA,MACZC,mBAAAA,MAAMD,SAAAA,OAAiB,QAAvBC,qBAAAA,SAAAA,SAAAA,iBAAyBE,IAAG,QAAMF,eAAAA,MAAMG,WAAK,QAAXH,iBAAAA,SAAAA,SAAAA,aAAaE,IAAG;AACtD,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,GAAAJ,SAAA,GAAAH,WAAA,CAAAG,SAAA,MAAAC,gBAAA,GAAAE,KAAA,CAAAH,SAAA,eAAAC,gBAAA,uBAAAA,gBAAA,CAAAI,GAAA,SAAAH,YAAA,GAAAC,KAAA,CAAAG,KAAA,cAAAJ,YAAA,uBAAAA,YAAA,CAAAG,GAAA;EAIvB,OAHYD,GAAA;AAId","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;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
- }
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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers-tamagui",
3
- "version": "1.125.6",
3
+ "version": "1.125.7",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -32,11 +32,11 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/helpers": "1.125.6",
36
- "@tamagui/web": "1.125.6"
35
+ "@tamagui/helpers": "1.125.7",
36
+ "@tamagui/web": "1.125.7"
37
37
  },
38
38
  "devDependencies": {
39
- "@tamagui/build": "1.125.6",
39
+ "@tamagui/build": "1.125.7",
40
40
  "react": "*",
41
41
  "vitest": "^3.0.5"
42
42
  },