@tamagui/helpers-icon 1.88.21 → 1.88.23
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.
- package/dist/esm/IconProps.native.js +0 -14
- package/dist/esm/IconProps.native.js.map +2 -2
- package/dist/esm/index.native.js +2 -21
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/themed.native.js +11 -38
- package/dist/esm/themed.native.js.map +2 -2
- package/dist/jsx/IconProps.native.js +0 -14
- package/dist/jsx/IconProps.native.js.map +2 -2
- package/dist/jsx/index.native.js +2 -21
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/themed.native.js +11 -38
- package/dist/jsx/themed.native.js.map +2 -2
- package/package.json +3 -3
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var IconProps_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(IconProps_exports);
|
|
15
1
|
//# sourceMappingURL=IconProps.js.map
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var src_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(src_exports);
|
|
15
|
-
__reExport(src_exports, require("./IconProps"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./themed"), module.exports);
|
|
17
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
18
|
-
0 && (module.exports = {
|
|
19
|
-
...require("./IconProps"),
|
|
20
|
-
...require("./themed")
|
|
21
|
-
});
|
|
1
|
+
export * from "./IconProps";
|
|
2
|
+
export * from "./themed";
|
|
22
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,47 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var themed_exports = {};
|
|
25
|
-
__export(themed_exports, {
|
|
26
|
-
themed: () => themed
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(themed_exports);
|
|
29
|
-
var import_core = require("@tamagui/core"), import_react = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
import_react.default.keep;
|
|
1
|
+
import { getTokenValue, getVariable, usePropsAndStyle, Text } from "@tamagui/core";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
React.keep;
|
|
31
5
|
function themed(Component, opts = {
|
|
32
6
|
defaultThemeColor: process.env.DEFAULT_ICON_THEME_COLOR || "$color",
|
|
33
7
|
defaultStrokeWidth: 2,
|
|
34
8
|
fallbackColor: "#000"
|
|
35
9
|
}) {
|
|
36
10
|
return (propsIn) => {
|
|
37
|
-
const [props, style, theme] =
|
|
38
|
-
forComponent:
|
|
11
|
+
const [props, style, theme] = usePropsAndStyle(propsIn, {
|
|
12
|
+
forComponent: Text,
|
|
39
13
|
resolveValues: "web"
|
|
40
14
|
// iOS doesnt support dynamic values for SVG so only optimize on web
|
|
41
|
-
}), defaultColor = style.color ?? opts.defaultThemeColor, color =
|
|
15
|
+
}), defaultColor = style.color ?? opts.defaultThemeColor, color = getVariable(
|
|
42
16
|
(defaultColor ? theme[defaultColor] : void 0) || style.color || (props.disableTheme ? null : theme.color) || opts.fallbackColor
|
|
43
|
-
), size = typeof props.size == "string" ?
|
|
44
|
-
return /* @__PURE__ */
|
|
17
|
+
), size = typeof props.size == "string" ? getTokenValue(props.size, "size") : props.size, strokeWidth = typeof props.strokeWidth == "string" ? getTokenValue(props.strokeWidth, "size") : props.strokeWidth ?? `${opts.defaultStrokeWidth}`;
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
45
19
|
Component,
|
|
46
20
|
{
|
|
47
21
|
...props,
|
|
@@ -53,8 +27,7 @@ function themed(Component, opts = {
|
|
|
53
27
|
);
|
|
54
28
|
};
|
|
55
29
|
}
|
|
56
|
-
|
|
57
|
-
0 && (module.exports = {
|
|
30
|
+
export {
|
|
58
31
|
themed
|
|
59
|
-
}
|
|
32
|
+
};
|
|
60
33
|
//# sourceMappingURL=themed.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/themed.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAS,eAAe,aAAa,kBAAkB,YAAY;AACnE,OAAO,WAAW;AA+CZ;AA1CN,MAAM;AAQC,SAAS,OACd,WACA,OAAsB;AAAA,EACpB,mBAAmB,QAAQ,IAAI,4BAA4B;AAAA,EAC3D,oBAAoB;AAAA,EACpB,eAAe;AACjB,GACA;AAqCA,SApCgB,CAAC,YAAuB;AACtC,UAAM,CAAC,OAAO,OAAO,KAAK,IAAI,iBAAiB,SAAS;AAAA,MACtD,cAAc;AAAA,MACd,eAAe;AAAA;AAAA,IACjB,CAAC,GAEK,eAAe,MAAM,SAAS,KAAK,mBAEnC,QAAQ;AAAA,OACX,eAAe,MAAM,YAAsB,IAAI,WAC9C,MAAM,UACJ,MAAM,eAA6B,OAAd,MAAM,UAC7B,KAAK;AAAA,IACT,GAEM,OACJ,OAAO,MAAM,QAAS,WAClB,cAAc,MAAM,MAAa,MAAM,IACvC,MAAM,MAEN,cACJ,OAAO,MAAM,eAAgB,WACzB,cAAc,MAAM,aAAoB,MAAM,IAC9C,MAAM,eAAe,GAAG,KAAK,kBAAkB;AAErD,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAGF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var IconProps_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(IconProps_exports);
|
|
15
1
|
//# sourceMappingURL=IconProps.js.map
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var src_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(src_exports);
|
|
15
|
-
__reExport(src_exports, require("./IconProps"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./themed"), module.exports);
|
|
17
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
18
|
-
0 && (module.exports = {
|
|
19
|
-
...require("./IconProps"),
|
|
20
|
-
...require("./themed")
|
|
21
|
-
});
|
|
1
|
+
export * from "./IconProps";
|
|
2
|
+
export * from "./themed";
|
|
22
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,47 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var themed_exports = {};
|
|
25
|
-
__export(themed_exports, {
|
|
26
|
-
themed: () => themed
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(themed_exports);
|
|
29
|
-
var import_core = require("@tamagui/core"), import_react = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
import_react.default.keep;
|
|
1
|
+
import { getTokenValue, getVariable, usePropsAndStyle, Text } from "@tamagui/core";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
React.keep;
|
|
31
5
|
function themed(Component, opts = {
|
|
32
6
|
defaultThemeColor: process.env.DEFAULT_ICON_THEME_COLOR || "$color",
|
|
33
7
|
defaultStrokeWidth: 2,
|
|
34
8
|
fallbackColor: "#000"
|
|
35
9
|
}) {
|
|
36
10
|
return (propsIn) => {
|
|
37
|
-
const [props, style, theme] =
|
|
38
|
-
forComponent:
|
|
11
|
+
const [props, style, theme] = usePropsAndStyle(propsIn, {
|
|
12
|
+
forComponent: Text,
|
|
39
13
|
resolveValues: "web"
|
|
40
14
|
// iOS doesnt support dynamic values for SVG so only optimize on web
|
|
41
|
-
}), defaultColor = style.color ?? opts.defaultThemeColor, color =
|
|
15
|
+
}), defaultColor = style.color ?? opts.defaultThemeColor, color = getVariable(
|
|
42
16
|
(defaultColor ? theme[defaultColor] : void 0) || style.color || (props.disableTheme ? null : theme.color) || opts.fallbackColor
|
|
43
|
-
), size = typeof props.size == "string" ?
|
|
44
|
-
return /* @__PURE__ */
|
|
17
|
+
), size = typeof props.size == "string" ? getTokenValue(props.size, "size") : props.size, strokeWidth = typeof props.strokeWidth == "string" ? getTokenValue(props.strokeWidth, "size") : props.strokeWidth ?? `${opts.defaultStrokeWidth}`;
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
45
19
|
Component,
|
|
46
20
|
{
|
|
47
21
|
...props,
|
|
@@ -53,8 +27,7 @@ function themed(Component, opts = {
|
|
|
53
27
|
);
|
|
54
28
|
};
|
|
55
29
|
}
|
|
56
|
-
|
|
57
|
-
0 && (module.exports = {
|
|
30
|
+
export {
|
|
58
31
|
themed
|
|
59
|
-
}
|
|
32
|
+
};
|
|
60
33
|
//# sourceMappingURL=themed.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/themed.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAS,eAAe,aAAa,kBAAkB,YAAY;AACnE,OAAO,WAAW;AA+CZ;AA1CN,MAAM;AAQC,SAAS,OACd,WACA,OAAsB;AAAA,EACpB,mBAAmB,QAAQ,IAAI,4BAA4B;AAAA,EAC3D,oBAAoB;AAAA,EACpB,eAAe;AACjB,GACA;AAqCA,SApCgB,CAAC,YAAuB;AACtC,UAAM,CAAC,OAAO,OAAO,KAAK,IAAI,iBAAiB,SAAS;AAAA,MACtD,cAAc;AAAA,MACd,eAAe;AAAA;AAAA,IACjB,CAAC,GAEK,eAAe,MAAM,SAAS,KAAK,mBAEnC,QAAQ;AAAA,OACX,eAAe,MAAM,YAAsB,IAAI,WAC9C,MAAM,UACJ,MAAM,eAA6B,OAAd,MAAM,UAC7B,KAAK;AAAA,IACT,GAEM,OACJ,OAAO,MAAM,QAAS,WAClB,cAAc,MAAM,MAAa,MAAM,IACvC,MAAM,MAEN,cACJ,OAAO,MAAM,eAAgB,WACzB,cAAc,MAAM,aAAoB,MAAM,IAC9C,MAAM,eAAe,GAAG,KAAK,kBAAkB;AAErD,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAGF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers-icon",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.23",
|
|
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.88.
|
|
24
|
+
"@tamagui/core": "1.88.23"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "*",
|
|
28
28
|
"react-native-svg": ">=12"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "1.88.
|
|
31
|
+
"@tamagui/build": "1.88.23",
|
|
32
32
|
"react": "^18.2.0",
|
|
33
33
|
"react-native-svg": "^13.9.0"
|
|
34
34
|
}
|