@tamagui/helpers-icon 1.113.0 → 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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=IconProps.native.js.map
|
|
1
|
+
//# sourceMappingURL=IconProps.js.map
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./IconProps
|
|
2
|
-
export * from "./themed
|
|
3
|
-
//# sourceMappingURL=index.
|
|
1
|
+
export * from "./IconProps";
|
|
2
|
+
export * from "./themed";
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers-icon/src/index.ts"],
|
|
4
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -3,38 +3,31 @@ import { getTokenValue, getVariable, Text, usePropsAndStyle } from "@tamagui/cor
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
React.keep;
|
|
5
5
|
function themed(Component) {
|
|
6
|
-
var optsIn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
size = typeof props.size == "string" ? getTokenValue(props.size, "size") : props.size,
|
|
24
|
-
_props_strokeWidth,
|
|
25
|
-
strokeWidth = typeof props.strokeWidth == "string" ? getTokenValue(props.strokeWidth, "size") : (_props_strokeWidth = props.strokeWidth) !== null && _props_strokeWidth !== void 0 ? _props_strokeWidth : `${opts.defaultStrokeWidth}`,
|
|
26
|
-
finalProps = {
|
|
27
|
-
...props,
|
|
28
|
-
color,
|
|
29
|
-
size,
|
|
30
|
-
strokeWidth,
|
|
31
|
-
style
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */_jsx(Component, {
|
|
34
|
-
...finalProps
|
|
35
|
-
});
|
|
6
|
+
var optsIn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, opts = {
|
|
7
|
+
defaultThemeColor: process.env.DEFAULT_ICON_THEME_COLOR || "$color",
|
|
8
|
+
defaultStrokeWidth: 2,
|
|
9
|
+
fallbackColor: "#000",
|
|
10
|
+
resolveValues: process.env.TAMAGUI_ICON_COLOR_RESOLVE || "auto",
|
|
11
|
+
...optsIn
|
|
12
|
+
}, wrapped = function(propsIn) {
|
|
13
|
+
var [props, style, theme] = usePropsAndStyle(propsIn, {
|
|
14
|
+
...opts,
|
|
15
|
+
forComponent: Text,
|
|
16
|
+
resolveValues: opts.resolveValues
|
|
17
|
+
}), defaultColor = opts.defaultThemeColor, colorIn = style.color || (defaultColor ? theme[defaultColor] : void 0) || (props.disableTheme ? null : theme.color) || opts.fallbackColor, color = getVariable(colorIn), size = typeof props.size == "string" ? getTokenValue(props.size, "size") : props.size, _props_strokeWidth, strokeWidth = typeof props.strokeWidth == "string" ? getTokenValue(props.strokeWidth, "size") : (_props_strokeWidth = props.strokeWidth) !== null && _props_strokeWidth !== void 0 ? _props_strokeWidth : `${opts.defaultStrokeWidth}`, finalProps = {
|
|
18
|
+
...props,
|
|
19
|
+
color,
|
|
20
|
+
size,
|
|
21
|
+
strokeWidth,
|
|
22
|
+
style
|
|
36
23
|
};
|
|
24
|
+
return /* @__PURE__ */ _jsx(Component, {
|
|
25
|
+
...finalProps
|
|
26
|
+
});
|
|
27
|
+
};
|
|
37
28
|
return wrapped;
|
|
38
29
|
}
|
|
39
|
-
export {
|
|
40
|
-
|
|
30
|
+
export {
|
|
31
|
+
themed
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=themed.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/helpers-icon/src/themed.tsx"],
|
|
4
|
+
"mappings": ";AAAA,SACEA,eACAC,aACAC,MACAC,wBAEK;AACP,OAAOC,WAAW;AAKlBA,MAAM;AAUC,SAASC,OAAOC,WAA8B;MAAEC,SAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAkB,CAAC,GAClEC,OAAgB;IACpBC,mBAAmBC,QAAQC,IAAIC,4BAA4B;IAC3DC,oBAAoB;IACpBC,eAAe;IACfC,eAAgBL,QAAQC,IAAIK,8BAAsC;IAClE,GAAGT;EACL,GAEMU,UAAU,SAACC,SAAAA;AACf,QAAM,CAACC,OAAOC,OAAOC,KAAAA,IAASlB,iBAAiBe,SAAS;MACtD,GAAGV;MACHc,cAAcpB;MACda,eAAeP,KAAKO;IACtB,CAAA,GAEMQ,eAAef,KAAKC,mBAEpBe,UACJJ,MAAMK,UACLF,eAAeF,MAAME,YAAAA,IAA0BG,YAC9CP,MAAMQ,eAA6B,OAAdN,MAAMI,UAC7BjB,KAAKM,eAEDW,QAAQxB,YAAYuB,OAAAA,GAEpBI,OACJ,OAAOT,MAAMS,QAAS,WAClB5B,cAAcmB,MAAMS,MAAa,MAAA,IACjCT,MAAMS,MAKLT,oBAHDU,cACJ,OAAOV,MAAMU,eAAgB,WACzB7B,cAAcmB,MAAMU,aAAoB,MAAA,KACvCV,qBAAAA,MAAMU,iBAAW,QAAjBV,uBAAAA,SAAAA,qBAAqB,GAAGX,KAAKK,kBAAkB,IAEhDiB,aAAa;MACjB,GAAGX;MACHM;MACAG;MACAC;MACAT;IACF;AAEA,WAAO,qBAACd,WAAAA;MAAW,GAAGwB;;EACxB;AAEA,SAAOb;AACT;",
|
|
5
|
+
"names": ["getTokenValue", "getVariable", "Text", "usePropsAndStyle", "React", "themed", "Component", "optsIn", "opts", "defaultThemeColor", "process", "env", "DEFAULT_ICON_THEME_COLOR", "defaultStrokeWidth", "fallbackColor", "resolveValues", "TAMAGUI_ICON_COLOR_RESOLVE", "wrapped", "propsIn", "props", "style", "theme", "forComponent", "defaultColor", "colorIn", "color", "undefined", "disableTheme", "size", "strokeWidth", "finalProps"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers-icon",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Utilities for icon packages",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tamagui/core": "1.113.
|
|
24
|
+
"@tamagui/core": "1.113.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "*",
|
|
28
28
|
"react-native-svg": ">=12"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "1.113.
|
|
31
|
+
"@tamagui/build": "1.113.2",
|
|
32
32
|
"react": "^18.2.0 || ^19.0.0",
|
|
33
33
|
"react-native-svg": "^15.7.1"
|
|
34
34
|
}
|