@tamagui/logo 1.110.4 → 1.111.0
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/cjs/LogoIcon.native.js +1 -1
- package/dist/cjs/LogoIcon.native.js.map +1 -1
- package/dist/cjs/LogoWords.native.js +8 -105
- package/dist/cjs/LogoWords.native.js.map +2 -2
- package/dist/cjs/TamaguiLogo.native.js +6 -62
- package/dist/cjs/TamaguiLogo.native.js.map +1 -1
- package/dist/cjs/TamaguiLogoSvg.native.js +5 -40
- package/dist/cjs/TamaguiLogoSvg.native.js.map +1 -1
- package/dist/cjs/tints.native.js +2 -44
- package/dist/cjs/tints.native.js.map +2 -2
- package/dist/cjs/useTint.native.js +16 -73
- package/dist/cjs/useTint.native.js.map +1 -1
- package/dist/esm/LogoIcon.native.js +1 -1
- package/dist/esm/LogoIcon.native.js.map +1 -1
- package/dist/esm/LogoIcon.native.mjs +25 -0
- package/dist/esm/LogoIcon.native.mjs.map +1 -0
- package/dist/esm/LogoWords.native.js +8 -104
- package/dist/esm/LogoWords.native.js.map +2 -2
- package/dist/esm/LogoWords.native.mjs +125 -0
- package/dist/esm/LogoWords.native.mjs.map +1 -0
- package/dist/esm/TamaguiLogo.native.js +6 -61
- package/dist/esm/TamaguiLogo.native.js.map +1 -1
- package/dist/esm/TamaguiLogo.native.mjs +33 -0
- package/dist/esm/TamaguiLogo.native.mjs.map +1 -0
- package/dist/esm/TamaguiLogoSvg.native.js +4 -38
- package/dist/esm/TamaguiLogoSvg.native.js.map +1 -1
- package/dist/esm/TamaguiLogoSvg.native.mjs +26 -0
- package/dist/esm/TamaguiLogoSvg.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +6 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/tints.native.js +1 -42
- package/dist/esm/tints.native.js.map +2 -2
- package/dist/esm/tints.native.mjs +49 -0
- package/dist/esm/tints.native.mjs.map +1 -0
- package/dist/esm/useTint.native.js +15 -71
- package/dist/esm/useTint.native.js.map +1 -1
- package/dist/esm/useTint.native.mjs +79 -0
- package/dist/esm/useTint.native.mjs.map +1 -0
- package/dist/jsx/LogoIcon.native.js +1 -1
- package/dist/jsx/LogoIcon.native.js.map +1 -1
- package/dist/jsx/LogoWords.native.js +8 -104
- package/dist/jsx/LogoWords.native.js.map +2 -2
- package/dist/jsx/TamaguiLogo.native.js +6 -61
- package/dist/jsx/TamaguiLogo.native.js.map +1 -1
- package/dist/jsx/TamaguiLogoSvg.native.js +4 -38
- package/dist/jsx/TamaguiLogoSvg.native.js.map +1 -1
- package/dist/jsx/tints.native.js +1 -42
- package/dist/jsx/tints.native.js.map +2 -2
- package/dist/jsx/useTint.native.js +15 -71
- package/dist/jsx/useTint.native.js.map +1 -1
- package/package.json +3 -3
|
@@ -19,7 +19,7 @@ __export(LogoIcon_exports, {
|
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(LogoIcon_exports);
|
|
21
21
|
var import_jsx_runtime = require("react/jsx-runtime"), import_tamagui = require("tamagui"), import_TamaguiLogoSvg = require("./TamaguiLogoSvg"), LogoIcon = function(param) {
|
|
22
|
-
var
|
|
22
|
+
var { downscale = 2 } = param;
|
|
23
23
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
24
24
|
tag: "span",
|
|
25
25
|
className: "unselectable",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/LogoIcon.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,iBAAuB,oBAEvB,wBAA+B,6BAElBA,WAAW,SAAA,OAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,iBAAuB,oBAEvB,wBAA+B,6BAElBA,WAAW,SAAA,OAAA;MAAC,EAAEC,YAAY,EAAC,IAAO;AAC7C,SACE,uCAAAC,KAACC,uBAAAA;IACCC,KAAI;IACJC,WAAU;IACVC,WAAU;IACVC,gBAAgB;IAChBC,YAAY;MACVC,SAAS;MACTC,QAAQ;IACV;cAEA,uCAAAR,KAACS,sCAAAA;MACCN,WAAU;MACVO,OAAO,MAAM,IAAIX;MACjBY,QAAQ,MAAM,IAAIZ;;;AAI1B;",
|
|
5
5
|
"names": ["LogoIcon", "downscale", "_jsx", "YStack", "tag", "className", "alignSelf", "marginVertical", "pressStyle", "opacity", "scaleX", "TamaguiIconSvg", "width", "height"]
|
|
6
6
|
}
|
|
@@ -26,107 +26,10 @@ __export(LogoWords_exports, {
|
|
|
26
26
|
LogoWords: () => LogoWords
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(LogoWords_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_useTint = require("./useTint")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return arr2;
|
|
34
|
-
}
|
|
35
|
-
function _array_with_holes(arr) {
|
|
36
|
-
if (Array.isArray(arr)) return arr;
|
|
37
|
-
}
|
|
38
|
-
function _define_property(obj, key, value) {
|
|
39
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
40
|
-
value,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : obj[key] = value, obj;
|
|
45
|
-
}
|
|
46
|
-
function _iterable_to_array_limit(arr, i) {
|
|
47
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
48
|
-
if (_i != null) {
|
|
49
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
50
|
-
try {
|
|
51
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
52
|
-
;
|
|
53
|
-
} catch (err) {
|
|
54
|
-
_d = !0, _e = err;
|
|
55
|
-
} finally {
|
|
56
|
-
try {
|
|
57
|
-
!_n && _i.return != null && _i.return();
|
|
58
|
-
} finally {
|
|
59
|
-
if (_d) throw _e;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return _arr;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function _non_iterable_rest() {
|
|
66
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
67
|
-
}
|
|
68
|
-
function _object_spread(target) {
|
|
69
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
70
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
71
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
72
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
73
|
-
}))), ownKeys2.forEach(function(key) {
|
|
74
|
-
_define_property(target, key, source[key]);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function ownKeys(object, enumerableOnly) {
|
|
80
|
-
var keys = Object.keys(object);
|
|
81
|
-
if (Object.getOwnPropertySymbols) {
|
|
82
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
83
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
84
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
85
|
-
})), keys.push.apply(keys, symbols);
|
|
86
|
-
}
|
|
87
|
-
return keys;
|
|
88
|
-
}
|
|
89
|
-
function _object_spread_props(target, source) {
|
|
90
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
91
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
92
|
-
}), target;
|
|
93
|
-
}
|
|
94
|
-
function _object_without_properties(source, excluded) {
|
|
95
|
-
if (source == null) return {};
|
|
96
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
97
|
-
if (Object.getOwnPropertySymbols) {
|
|
98
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
99
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
100
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
101
|
-
}
|
|
102
|
-
return target;
|
|
103
|
-
}
|
|
104
|
-
function _object_without_properties_loose(source, excluded) {
|
|
105
|
-
if (source == null) return {};
|
|
106
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
107
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
108
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
109
|
-
return target;
|
|
110
|
-
}
|
|
111
|
-
function _sliced_to_array(arr, i) {
|
|
112
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
113
|
-
}
|
|
114
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
115
|
-
if (o) {
|
|
116
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
117
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
118
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
119
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
var LogoWords = /* @__PURE__ */ import_react.default.memo(function(_param) {
|
|
123
|
-
var _param_downscale = _param.downscale, downscale = _param_downscale === void 0 ? 1 : _param_downscale, grayscale = _param.grayscale, animated = _param.animated, props = _object_without_properties(_param, [
|
|
124
|
-
"downscale",
|
|
125
|
-
"grayscale",
|
|
126
|
-
"animated"
|
|
127
|
-
]), Tint = (0, import_useTint.useTint)(), index = Tint.tintIndex, tint = Tint.tint, tints = Tint.tints.map(function(t) {
|
|
128
|
-
return "var(--".concat(t, "9)");
|
|
129
|
-
}), _React_useState = _sliced_to_array(import_react.default.useState(!1), 2), hovered = _React_useState[0], setHovered = _React_useState[1], _React_useState1 = _sliced_to_array(import_react.default.useState("start"), 2), mounted = _React_useState1[0], setMounted = _React_useState1[1];
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_useTint = require("./useTint"), LogoWords = /* @__PURE__ */ import_react.default.memo(function(param) {
|
|
30
|
+
var { downscale = 1, grayscale, animated, ...props } = param, Tint = (0, import_useTint.useTint)(), { tintIndex: index, tint } = Tint, tints = Tint.tints.map(function(t) {
|
|
31
|
+
return `var(--${t}9)`;
|
|
32
|
+
}), [hovered, setHovered] = import_react.default.useState(!1), [mounted, setMounted] = import_react.default.useState("start");
|
|
130
33
|
import_react.default.useEffect(function() {
|
|
131
34
|
var idle = window.requestIdleCallback || setTimeout;
|
|
132
35
|
idle(function() {
|
|
@@ -141,7 +44,7 @@ var LogoWords = /* @__PURE__ */ import_react.default.memo(function(_param) {
|
|
|
141
44
|
var isActive = mounted !== "start" && i === index;
|
|
142
45
|
return grayscale ? hovered && isActive ? "var(--gray12)" : hovered ? "var(--gray11)" : "var(--gray10)" : mounted !== "done" || hovered ? isActive ? "var(--color)" : tints[index] : hovered && isActive ? "var(--color)" : tints[i];
|
|
143
46
|
}, x = Math.round(index * 18.5 + 18 / 2 * (index / tints.length) + 3 + (index === 6 ? -3 : 0));
|
|
144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack,
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
145
48
|
onHoverIn: function() {
|
|
146
49
|
return setHovered(!0);
|
|
147
50
|
},
|
|
@@ -152,8 +55,8 @@ var LogoWords = /* @__PURE__ */ import_react.default.memo(function(_param) {
|
|
|
152
55
|
"data-tauri-drag-region": !0,
|
|
153
56
|
marginVertical: "$-2",
|
|
154
57
|
position: "relative",
|
|
155
|
-
className: "logo-words"
|
|
156
|
-
|
|
58
|
+
className: "logo-words",
|
|
59
|
+
...props,
|
|
157
60
|
children: [
|
|
158
61
|
animated && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Circle, {
|
|
159
62
|
animation: "quicker",
|
|
@@ -237,7 +140,7 @@ var LogoWords = /* @__PURE__ */ import_react.default.memo(function(_param) {
|
|
|
237
140
|
]
|
|
238
141
|
})
|
|
239
142
|
]
|
|
240
|
-
})
|
|
143
|
+
});
|
|
241
144
|
});
|
|
242
145
|
// Annotate the CommonJS export names for ESM import in node:
|
|
243
146
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/LogoWords.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAElB,iBAA+B,oBAE/B,iBAAwB
|
|
5
|
-
"names": ["LogoWords", "React", "memo", "downscale", "grayscale", "animated", "props", "Tint", "useTint", "
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["LogoWords", "React", "memo", "downscale", "grayscale", "animated", "props", "Tint", "useTint", "tintIndex", "index", "tint", "tints", "map", "t", "hovered", "setHovered", "useState", "mounted", "setMounted", "useEffect", "idle", "window", "requestIdleCallback", "setTimeout", "getColor", "i", "isActive", "x", "Math", "round", "length", "_jsxs", "XStack", "onHoverIn", "onHoverOut", "paddingVertical", "data-tauri-drag-region", "marginVertical", "position", "className", "_jsx", "Circle", "animation", "top", "left", "y", "size", "backgroundColor", "svg", "width", "height", "viewBox", "polygon", "shapeRendering", "fill", "points", "onMouseEnter", "setTintIndex", "path", "d", "fillRule"]
|
|
6
6
|
}
|
|
@@ -26,71 +26,15 @@ __export(TamaguiLogo_exports, {
|
|
|
26
26
|
TamaguiLogo: () => TamaguiLogo
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(TamaguiLogo_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_LogoIcon = require("./LogoIcon"), import_LogoWords = require("./LogoWords")
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
value,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : obj[key] = value, obj;
|
|
37
|
-
}
|
|
38
|
-
function _object_spread(target) {
|
|
39
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
40
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
41
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
42
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
43
|
-
}))), ownKeys2.forEach(function(key) {
|
|
44
|
-
_define_property(target, key, source[key]);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return target;
|
|
48
|
-
}
|
|
49
|
-
function ownKeys(object, enumerableOnly) {
|
|
50
|
-
var keys = Object.keys(object);
|
|
51
|
-
if (Object.getOwnPropertySymbols) {
|
|
52
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
53
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
55
|
-
})), keys.push.apply(keys, symbols);
|
|
56
|
-
}
|
|
57
|
-
return keys;
|
|
58
|
-
}
|
|
59
|
-
function _object_spread_props(target, source) {
|
|
60
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
61
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
62
|
-
}), target;
|
|
63
|
-
}
|
|
64
|
-
function _object_without_properties(source, excluded) {
|
|
65
|
-
if (source == null) return {};
|
|
66
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
67
|
-
if (Object.getOwnPropertySymbols) {
|
|
68
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
69
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
70
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
71
|
-
}
|
|
72
|
-
return target;
|
|
73
|
-
}
|
|
74
|
-
function _object_without_properties_loose(source, excluded) {
|
|
75
|
-
if (source == null) return {};
|
|
76
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
77
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
78
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
79
|
-
return target;
|
|
80
|
-
}
|
|
81
|
-
var TamaguiLogo = /* @__PURE__ */ import_react.default.forwardRef(function(_param, ref) {
|
|
82
|
-
var showWords = _param.showWords, downscale = _param.downscale, animated = _param.animated, props = _object_without_properties(_param, [
|
|
83
|
-
"showWords",
|
|
84
|
-
"downscale",
|
|
85
|
-
"animated"
|
|
86
|
-
]);
|
|
87
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, _object_spread_props(_object_spread({
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_LogoIcon = require("./LogoIcon"), import_LogoWords = require("./LogoWords"), TamaguiLogo = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {
|
|
30
|
+
var { showWords, downscale, animated, ...props } = param;
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
88
32
|
tag: "span",
|
|
89
33
|
ref,
|
|
90
34
|
alignItems: "center",
|
|
91
35
|
justifyContent: "center",
|
|
92
|
-
gap: "$5"
|
|
93
|
-
|
|
36
|
+
gap: "$5",
|
|
37
|
+
...props,
|
|
94
38
|
children: [
|
|
95
39
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LogoIcon.LogoIcon, {
|
|
96
40
|
downscale: (downscale ?? 1) * (showWords ? 2 : 1.5)
|
|
@@ -104,7 +48,7 @@ var TamaguiLogo = /* @__PURE__ */ import_react.default.forwardRef(function(_para
|
|
|
104
48
|
})
|
|
105
49
|
})
|
|
106
50
|
]
|
|
107
|
-
})
|
|
51
|
+
});
|
|
108
52
|
});
|
|
109
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
110
54
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/TamaguiLogo.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAElB,iBAA+B,oBAE/B,kBAAyB,uBACzB,mBAA0B
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAElB,iBAA+B,oBAE/B,kBAAyB,uBACzB,mBAA0B,wBAQbA,cAAcC,6BAAAA,QAAMC,WAC/B,SAAA,OAA0DC,KAAAA;MAAzD,EAAEC,WAAWC,WAAWC,UAAU,GAAGC,MAAAA,IAAkB;AACtD,SACE,uCAAAC,MAACC,uBAAAA;IACCC,KAAI;IACJP;IACAQ,YAAW;IACXC,gBAAe;IACfC,KAAI;IACH,GAAGN;;MAEJ,uCAAAO,KAACC,0BAAAA;QAASV,YAAYA,aAAa,MAAMD,YAAY,IAAI;;MACxDA,aACC,uCAAAU,KAACE,uBAAAA;QAAON,KAAI;QAAOO,cAAc;kBAC/B,uCAAAH,KAACI,4BAAAA;UAAUZ;UAAoBD,WAAWA,aAAa;;;;;AAKjE,CAAA;",
|
|
5
5
|
"names": ["TamaguiLogo", "React", "forwardRef", "ref", "showWords", "downscale", "animated", "props", "_jsxs", "XStack", "tag", "alignItems", "justifyContent", "gap", "_jsx", "LogoIcon", "YStack", "marginBottom", "LogoWords"]
|
|
6
6
|
}
|
|
@@ -18,47 +18,12 @@ __export(TamaguiLogoSvg_exports, {
|
|
|
18
18
|
TamaguiIconSvg: () => TamaguiIconSvg
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(TamaguiLogoSvg_exports);
|
|
21
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
22
|
-
|
|
23
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
-
value,
|
|
25
|
-
enumerable: !0,
|
|
26
|
-
configurable: !0,
|
|
27
|
-
writable: !0
|
|
28
|
-
}) : obj[key] = value, obj;
|
|
29
|
-
}
|
|
30
|
-
function _object_spread(target) {
|
|
31
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
33
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
-
}))), ownKeys2.forEach(function(key) {
|
|
36
|
-
_define_property(target, key, source[key]);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
40
|
-
}
|
|
41
|
-
function ownKeys(object, enumerableOnly) {
|
|
42
|
-
var keys = Object.keys(object);
|
|
43
|
-
if (Object.getOwnPropertySymbols) {
|
|
44
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
45
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
46
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
47
|
-
})), keys.push.apply(keys, symbols);
|
|
48
|
-
}
|
|
49
|
-
return keys;
|
|
50
|
-
}
|
|
51
|
-
function _object_spread_props(target, source) {
|
|
52
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
53
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
54
|
-
}), target;
|
|
55
|
-
}
|
|
56
|
-
var TamaguiIconSvg = function(props) {
|
|
57
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", _object_spread_props(_object_spread({
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime"), TamaguiIconSvg = function(props) {
|
|
22
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
58
23
|
width: 424,
|
|
59
24
|
height: 394,
|
|
60
|
-
viewBox: "0 0 424 394"
|
|
61
|
-
|
|
25
|
+
viewBox: "0 0 424 394",
|
|
26
|
+
...props,
|
|
62
27
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", {
|
|
63
28
|
fill: "none",
|
|
64
29
|
fillRule: "evenodd",
|
|
@@ -80,7 +45,7 @@ var TamaguiIconSvg = function(props) {
|
|
|
80
45
|
})
|
|
81
46
|
]
|
|
82
47
|
})
|
|
83
|
-
})
|
|
48
|
+
});
|
|
84
49
|
};
|
|
85
50
|
// Annotate the CommonJS export names for ESM import in node:
|
|
86
51
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/TamaguiLogoSvg.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAaA,iBAAiB,SAACC,OAAAA;SAC7B,uCAAAC,KAACC,OAAAA;IAAIC,OAAO;IAAKC,QAAQ;IAAKC,SAAQ;IAAe,GAAGL;cACtD,uCAAAM,MAACC,KAAAA;MAAEC,MAAK;MAAOC,UAAS;;QACtB,uCAAAR,KAACS,QAAAA;UACCC,GAAE;UACFC,SAAS;;QAEX,uCAAAN,MAACC,KAAAA;UAAEC,MAAK;;YACN,uCAAAP,KAACS,QAAAA;cAAKC,GAAE;;YACR,uCAAAV,KAACS,QAAAA;cAAKC,GAAE;;;;;;;;",
|
|
5
5
|
"names": ["TamaguiIconSvg", "props", "_jsx", "svg", "width", "height", "viewBox", "_jsxs", "g", "fill", "fillRule", "path", "d", "opacity"]
|
|
6
6
|
}
|
package/dist/cjs/tints.native.js
CHANGED
|
@@ -30,49 +30,7 @@ __export(tints_exports, {
|
|
|
30
30
|
useTints: () => useTints
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(tints_exports);
|
|
33
|
-
var import_react = __toESM(require("react"))
|
|
34
|
-
function _array_like_to_array(arr, len) {
|
|
35
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
36
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
37
|
-
return arr2;
|
|
38
|
-
}
|
|
39
|
-
function _array_with_holes(arr) {
|
|
40
|
-
if (Array.isArray(arr)) return arr;
|
|
41
|
-
}
|
|
42
|
-
function _iterable_to_array_limit(arr, i) {
|
|
43
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44
|
-
if (_i != null) {
|
|
45
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
46
|
-
try {
|
|
47
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
48
|
-
;
|
|
49
|
-
} catch (err) {
|
|
50
|
-
_d = !0, _e = err;
|
|
51
|
-
} finally {
|
|
52
|
-
try {
|
|
53
|
-
!_n && _i.return != null && _i.return();
|
|
54
|
-
} finally {
|
|
55
|
-
if (_d) throw _e;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return _arr;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function _non_iterable_rest() {
|
|
62
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
63
|
-
}
|
|
64
|
-
function _sliced_to_array(arr, i) {
|
|
65
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
66
|
-
}
|
|
67
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
68
|
-
if (o) {
|
|
69
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
70
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
71
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
72
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
var listeners = /* @__PURE__ */ new Set(), familiesValues = {
|
|
33
|
+
var import_react = __toESM(require("react")), listeners = /* @__PURE__ */ new Set(), familiesValues = {
|
|
76
34
|
tamagui: [
|
|
77
35
|
"red",
|
|
78
36
|
"pink",
|
|
@@ -136,7 +94,7 @@ function getTints() {
|
|
|
136
94
|
};
|
|
137
95
|
}
|
|
138
96
|
function useTints() {
|
|
139
|
-
var
|
|
97
|
+
var [val, setVal] = import_react.default.useState(getTints());
|
|
140
98
|
return import_react.default.useEffect(function() {
|
|
141
99
|
return onTintFamilyChange(function() {
|
|
142
100
|
import_react.default.startTransition(function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/tints.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["listeners", "Set", "familiesValues", "tamagui", "xmas", "easter", "halloween", "valentine", "lunar", "DEFAULT_FAMILY", "familiesNames", "Object", "keys", "families", "fam", "getTints", "name", "tints", "useTints", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;mBAAkB,2BAKZA,YAAY,oBAAIC,IAAAA,GAEhBC,iBAAiB;EACrBC,SAAS;IAAC;IAAO;IAAQ;IAAU;IAAQ;IAAS;IAAU;;EAC9DC,MAAM;IAAC;IAAO;IAAS;IAAO;IAAS;IAAO;IAAS;;EACvDC,QAAQ;IAAC;IAAU;IAAQ;IAAU;IAAQ;IAAU;IAAQ;;EAC/DC,WAAW;IAAC;IAAU;IAAQ;IAAU;IAAQ;IAAU;IAAQ;;EAClEC,WAAW;IAAC;IAAQ;IAAO;IAAQ;IAAO;IAAQ;IAAO;;EACzDC,OAAO;IAAC;IAAU;IAAO;IAAO;IAAO;IAAO;IAAO;;AACvD,GAIMC,iBAAyB,WAEzBC,gBAAgBC,OAAOC,KAAKV,cAAAA,GAE5BW,WAAWX,gBAIbY,MAAkBL;AAwBf,SAASM,WAAAA;AACd,SAAO;IACLC,MAAMF,OAAOL;IACbQ,OAAOJ,SAASC,GAAAA,KAAQD,SAASV;IACjCU;EACF;AACF;AAEO,SAASK,WAAAA;AACd,MAAM,CAACC,KAAKC,MAAAA,IAAUC,aAAAA,QAAMC,SAASP,SAAAA,CAAAA;AAErCM,sBAAAA,QAAME,UAAU,WAAA;AACd,WAAOC,mBAAmB,WAAA;AACxBH,mBAAAA,QAAMI,gBAAgB,WAAA;AACpBL,eAAOL,SAAAA,CAAAA;MACT,CAAA;IACF,CAAA;EACF,GAAG,CAAA,CAAE,GAEEI;AACT;AAEO,SAASO,cAAcC,MAAgB;AAC5C,MAAI,CAACd,SAASc,IAAAA,EAAO,OAAM;AAC3Bb,QAAMa,MACNN,aAAAA,QAAMI,gBAAgB,WAAA;AACpBzB,cAAU4B,QAAQ,SAACC,GAAAA;aAAMA,EAAEF,IAAAA;;EAC7B,CAAA;AACF;AAEO,IAAMG,oBAAoB,WAAA;AAC/BJ,gBAAchB,eAAeA,cAAcqB,QAAQjB,GAAAA,IAAO,KAAKJ,cAAcsB,MAAM,CAAC;AACtF,GAEaR,qBAAqB,SAACS,IAAAA;AACjCjC,mBAAUkC,IAAID,EAAAA,GACP,WAAA;AACLjC,cAAUmC,OAAOF,EAAAA;EACnB;AACF;",
|
|
5
|
+
"names": ["listeners", "Set", "familiesValues", "tamagui", "xmas", "easter", "halloween", "valentine", "lunar", "DEFAULT_FAMILY", "familiesNames", "Object", "keys", "families", "fam", "getTints", "name", "tints", "useTints", "val", "setVal", "React", "useState", "useEffect", "onTintFamilyChange", "startTransition", "setTintFamily", "next", "forEach", "l", "setNextTintFamily", "indexOf", "length", "cb", "add", "delete"]
|
|
6
6
|
}
|
|
@@ -31,59 +31,7 @@ __export(useTint_exports, {
|
|
|
31
31
|
useTint: () => useTint
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(useTint_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_tints = require("./tints")
|
|
35
|
-
function _define_property(obj, key, value) {
|
|
36
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
37
|
-
value,
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0
|
|
41
|
-
}) : obj[key] = value, obj;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread(target) {
|
|
44
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
45
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
46
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
47
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
48
|
-
}))), ownKeys2.forEach(function(key) {
|
|
49
|
-
_define_property(target, key, source[key]);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return target;
|
|
53
|
-
}
|
|
54
|
-
function ownKeys(object, enumerableOnly) {
|
|
55
|
-
var keys = Object.keys(object);
|
|
56
|
-
if (Object.getOwnPropertySymbols) {
|
|
57
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
58
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
59
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
60
|
-
})), keys.push.apply(keys, symbols);
|
|
61
|
-
}
|
|
62
|
-
return keys;
|
|
63
|
-
}
|
|
64
|
-
function _object_spread_props(target, source) {
|
|
65
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
66
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
67
|
-
}), target;
|
|
68
|
-
}
|
|
69
|
-
function _object_without_properties(source, excluded) {
|
|
70
|
-
if (source == null) return {};
|
|
71
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
72
|
-
if (Object.getOwnPropertySymbols) {
|
|
73
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
74
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
75
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function _object_without_properties_loose(source, excluded) {
|
|
80
|
-
if (source == null) return {};
|
|
81
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
82
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
83
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
84
|
-
return target;
|
|
85
|
-
}
|
|
86
|
-
var initialTint = 3, current = initialTint, listeners = /* @__PURE__ */ new Set(), onTintChange = function(listener) {
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_tints = require("./tints"), initialTint = 3, current = initialTint, listeners = /* @__PURE__ */ new Set(), onTintChange = function(listener) {
|
|
87
35
|
return listeners.add(listener), function() {
|
|
88
36
|
listeners.delete(listener);
|
|
89
37
|
};
|
|
@@ -99,8 +47,9 @@ var initialTint = 3, current = initialTint, listeners = /* @__PURE__ */ new Set(
|
|
|
99
47
|
return current;
|
|
100
48
|
}, function() {
|
|
101
49
|
return initialTint;
|
|
102
|
-
}), tintsContext = (0, import_tints.useTints)(), tints = tintsContext
|
|
103
|
-
return
|
|
50
|
+
}), tintsContext = (0, import_tints.useTints)(), { tints } = tintsContext, tintAltIndex = Math.abs((index + altOffset) % tints.length);
|
|
51
|
+
return {
|
|
52
|
+
...tintsContext,
|
|
104
53
|
tints: tintsContext.tints,
|
|
105
54
|
tintIndex: index,
|
|
106
55
|
tintAltIndex,
|
|
@@ -113,27 +62,21 @@ var initialTint = 3, current = initialTint, listeners = /* @__PURE__ */ new Set(
|
|
|
113
62
|
setTintIndex(index + 1);
|
|
114
63
|
});
|
|
115
64
|
}
|
|
116
|
-
}
|
|
117
|
-
}, ThemeTint = function(
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
]), curTint = useTint().tint;
|
|
122
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, _object_spread_props(_object_spread({}, rest), {
|
|
65
|
+
};
|
|
66
|
+
}, ThemeTint = function(param) {
|
|
67
|
+
var { disable, children, ...rest } = param, curTint = useTint().tint;
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
69
|
+
...rest,
|
|
123
70
|
name: disable ? null : curTint,
|
|
124
71
|
children
|
|
125
|
-
})
|
|
126
|
-
}, ThemeTintAlt = function(
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
]), curTint = useTint(offset).tintAlt, name = disable ? null : curTint;
|
|
132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, _object_spread_props(_object_spread({
|
|
133
|
-
name
|
|
134
|
-
}, rest), {
|
|
72
|
+
});
|
|
73
|
+
}, ThemeTintAlt = function(param) {
|
|
74
|
+
var { children, disable, offset = 1, ...rest } = param, curTint = useTint(offset).tintAlt, name = disable ? null : curTint;
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
76
|
+
name,
|
|
77
|
+
...rest,
|
|
135
78
|
children
|
|
136
|
-
})
|
|
79
|
+
});
|
|
137
80
|
};
|
|
138
81
|
// Annotate the CommonJS export names for ESM import in node:
|
|
139
82
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/useTint.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAElB,iBAAsB,oBAEtB,eAAsD
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAElB,iBAAsB,oBAEtB,eAAsD,oBAOzCA,cAAc,GAEvBC,UAAUD,aAERE,YAAY,oBAAIC,IAAAA,GAETC,eAAe,SAACC,UAAAA;AAC3BH,mBAAUI,IAAID,QAAAA,GACP,WAAA;AACLH,cAAUK,OAAOF,QAAAA;EACnB;AACF,GAEMG,eAAWC,uBAAAA,EAAWC,MAAMC,QAErBC,eAAe,SAACC,MAAAA;AAC3B,MAAMC,MAAMD,OAAOL;AACnB,EAAIM,QAAQb,YACZA,UAAUa,KACVC,aAAAA,QAAMC,gBAAgB,WAAA;AACpBd,cAAUe,QAAQ,SAACC,GAAAA;aAAMA,EAAEJ,GAAAA;;EAC7B,CAAA;AACF,GAEaK,UAAU,WAAA;MAACC,YAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAY,IAC5BC,QAAQN,aAAAA,QAAMO,qBAClBlB,cACA,WAAA;WAAMH;KACN,WAAA;WAAMD;MAEFuB,mBAAeC,uBAAAA,GACf,EAAEd,MAAK,IAAKa,cACZE,eAAeC,KAAKC,KAAKN,QAAQD,aAAaV,MAAMC,MAAM;AAEhE,SAAO;IACL,GAAGY;IACHb,OAAOa,aAAab;IACpBkB,WAAWP;IACXI;IACAI,MAAMnB,MAAMW,KAAAA;IACZS,SAASpB,MAAMe,YAAAA;IACfb;IACAmB;IACAC,aAAa,WAAA;AACXjB,mBAAAA,QAAMC,gBAAgB,WAAA;AACpBJ,qBAAaS,QAAQ,CAAA;MACvB,CAAA;IACF;EACF;AACF,GAEaY,YAAY,SAAA,OAAA;MAAC,EACxBC,SACAC,UACA,GAAGC,KAAAA,IACgC,OAC7BC,UAAUlB,QAAAA,EAAUU;AAC1B,SACE,uCAAAS,KAACC,sBAAAA;IAAO,GAAGH;IAAMI,MAAMN,UAAU,OAAOG;;;AAI5C,GAEaI,eAAe,SAAA,OAAA;MAAC,EAC3BN,UACAD,SACAQ,SAAS,GACT,GAAGN,KAAAA,IACiD,OAC9CC,UAAUlB,QAAQuB,MAAAA,EAAQZ,SAC1BU,OAAON,UAAU,OAAOG;AAC9B,SACE,uCAAAC,KAACC,sBAAAA;IAAMC;IAAa,GAAGJ;;;AAI3B;",
|
|
5
5
|
"names": ["initialTint", "current", "listeners", "Set", "onTintChange", "listener", "add", "delete", "numTints", "getTints", "tints", "length", "setTintIndex", "next", "val", "React", "startTransition", "forEach", "x", "useTint", "altOffset", "index", "useSyncExternalStore", "tintsContext", "useTints", "tintAltIndex", "Math", "abs", "tintIndex", "tint", "tintAlt", "setNextTintFamily", "setNextTint", "ThemeTint", "disable", "children", "rest", "curTint", "_jsx", "Theme", "name", "ThemeTintAlt", "offset"]
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { YStack } from "tamagui";
|
|
3
3
|
import { TamaguiIconSvg } from "./TamaguiLogoSvg";
|
|
4
4
|
var LogoIcon = function(param) {
|
|
5
|
-
var
|
|
5
|
+
var { downscale = 2 } = param;
|
|
6
6
|
return /* @__PURE__ */ _jsx(YStack, {
|
|
7
7
|
tag: "span",
|
|
8
8
|
className: "unselectable",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/LogoIcon.tsx"],
|
|
4
|
-
"mappings": ";AAAA,SAASA,cAAc;AAEvB,SAASC,sBAAsB;AAExB,IAAMC,WAAW,SAAA,OAAA
|
|
4
|
+
"mappings": ";AAAA,SAASA,cAAc;AAEvB,SAASC,sBAAsB;AAExB,IAAMC,WAAW,SAAA,OAAA;MAAC,EAAEC,YAAY,EAAC,IAAO;AAC7C,SACE,qBAACH,QAAAA;IACCI,KAAI;IACJC,WAAU;IACVC,WAAU;IACVC,gBAAgB;IAChBC,YAAY;MACVC,SAAS;MACTC,QAAQ;IACV;cAEA,qBAACT,gBAAAA;MACCI,WAAU;MACVM,OAAO,MAAM,IAAIR;MACjBS,QAAQ,MAAM,IAAIT;;;AAI1B;",
|
|
5
5
|
"names": ["YStack", "TamaguiIconSvg", "LogoIcon", "downscale", "tag", "className", "alignSelf", "marginVertical", "pressStyle", "opacity", "scaleX", "width", "height"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { YStack } from "tamagui";
|
|
3
|
+
import { TamaguiIconSvg } from "./TamaguiLogoSvg.mjs";
|
|
4
|
+
var LogoIcon = function (param) {
|
|
5
|
+
var {
|
|
6
|
+
downscale = 2
|
|
7
|
+
} = param;
|
|
8
|
+
return /* @__PURE__ */_jsx(YStack, {
|
|
9
|
+
tag: "span",
|
|
10
|
+
className: "unselectable",
|
|
11
|
+
alignSelf: "center",
|
|
12
|
+
marginVertical: -10,
|
|
13
|
+
pressStyle: {
|
|
14
|
+
opacity: 0.7,
|
|
15
|
+
scaleX: -1
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */_jsx(TamaguiIconSvg, {
|
|
18
|
+
className: "tamagui-icon",
|
|
19
|
+
width: 450 / 8 / downscale,
|
|
20
|
+
height: 420 / 8 / downscale
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export { LogoIcon };
|
|
25
|
+
//# sourceMappingURL=LogoIcon.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","YStack","TamaguiIconSvg","LogoIcon","param","downscale","tag","className","alignSelf","marginVertical","pressStyle","opacity","scaleX","children","width","height"],"sources":["../../src/LogoIcon.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,QAAc;AAEvB,SAASC,MAAA,iBAAsB;AAczB,SAAAC,cAAA;AAZC,IAAAC,QAAM,YAAAA,CAAcC,KAAA;EAEtB;IAAAC,SAAA;EAAA,IAAAD,KAAA;EAAA,sBAAAJ,IAAA,CAAAC,MAAA;IACCK,GAAA,EAAI;IACJC,SAAA,EAAU;IACVC,SAAA,EAAU;IACVC,cAAA,EAAgB;IAChBC,UAAA,EAAY;MACVC,OAAA,EAAS;MACTC,MAAA,EAAQ;IACV;IAEAC,QAAA,iBAAAb,IAAA,CAAAE,cAAA;MAACK,SAAA;MAAAO,KAAA,YAAAT,SAAA;MAAAU,MACC,QAAU,IAAAV;IAAA;EACO;AACC;AAAA,SACpBF,QAAA","ignoreList":[]}
|