@tamagui/logo 1.114.3 → 1.115.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.cjs +45 -0
- package/dist/cjs/LogoWords.cjs +136 -0
- package/dist/cjs/TamaguiLogo.cjs +64 -0
- package/dist/cjs/TamaguiLogoSvg.cjs +47 -0
- package/dist/cjs/index.cjs +22 -0
- package/dist/cjs/{tints.js → tints.cjs} +39 -26
- package/dist/cjs/useTint.cjs +106 -0
- package/package.json +3 -3
- package/dist/cjs/LogoIcon.js +0 -42
- package/dist/cjs/LogoWords.js +0 -162
- package/dist/cjs/TamaguiLogo.js +0 -46
- package/dist/cjs/TamaguiLogoSvg.js +0 -34
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/useTint.js +0 -80
- /package/dist/cjs/{LogoIcon.js.map → LogoIcon.cjs.map} +0 -0
- /package/dist/cjs/{LogoWords.js.map → LogoWords.cjs.map} +0 -0
- /package/dist/cjs/{TamaguiLogo.js.map → TamaguiLogo.cjs.map} +0 -0
- /package/dist/cjs/{TamaguiLogoSvg.js.map → TamaguiLogoSvg.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{tints.js.map → tints.cjs.map} +0 -0
- /package/dist/cjs/{useTint.js.map → useTint.cjs.map} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var LogoIcon_exports = {};
|
|
22
|
+
__export(LogoIcon_exports, {
|
|
23
|
+
LogoIcon: () => LogoIcon
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(LogoIcon_exports);
|
|
26
|
+
var import_tamagui = require("tamagui"),
|
|
27
|
+
import_TamaguiLogoSvg = require("./TamaguiLogoSvg.cjs"),
|
|
28
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
const LogoIcon = ({
|
|
30
|
+
downscale = 2
|
|
31
|
+
}) => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
32
|
+
tag: "span",
|
|
33
|
+
className: "unselectable",
|
|
34
|
+
alignSelf: "center",
|
|
35
|
+
marginVertical: -10,
|
|
36
|
+
pressStyle: {
|
|
37
|
+
opacity: 0.7,
|
|
38
|
+
scaleX: -1
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_TamaguiLogoSvg.TamaguiIconSvg, {
|
|
41
|
+
className: "tamagui-icon",
|
|
42
|
+
width: 450 / 8 / downscale,
|
|
43
|
+
height: 420 / 8 / downscale
|
|
44
|
+
})
|
|
45
|
+
});
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
32
|
+
var LogoWords_exports = {};
|
|
33
|
+
__export(LogoWords_exports, {
|
|
34
|
+
LogoWords: () => LogoWords
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(LogoWords_exports);
|
|
37
|
+
var import_react = __toESM(require("react")),
|
|
38
|
+
import_tamagui = require("tamagui"),
|
|
39
|
+
import_useTint = require("./useTint.cjs"),
|
|
40
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
const LogoWords = import_react.default.memo(({
|
|
42
|
+
downscale = 1,
|
|
43
|
+
grayscale,
|
|
44
|
+
animated,
|
|
45
|
+
...props
|
|
46
|
+
}) => {
|
|
47
|
+
const Tint = (0, import_useTint.useTint)(),
|
|
48
|
+
{
|
|
49
|
+
tintIndex: index,
|
|
50
|
+
tint
|
|
51
|
+
} = Tint,
|
|
52
|
+
tints = Tint.tints.map(t => `var(--${t}9)`),
|
|
53
|
+
[hovered, setHovered] = import_react.default.useState(!1),
|
|
54
|
+
[mounted, setMounted] = import_react.default.useState("start");
|
|
55
|
+
import_react.default.useEffect(() => {
|
|
56
|
+
(window.requestIdleCallback || setTimeout)(() => {
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
setMounted("animate");
|
|
59
|
+
}, 50), setTimeout(() => {
|
|
60
|
+
setMounted("done");
|
|
61
|
+
}, 1500);
|
|
62
|
+
});
|
|
63
|
+
}, []);
|
|
64
|
+
const getColor = i => {
|
|
65
|
+
const isActive = mounted !== "start" && i === index;
|
|
66
|
+
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];
|
|
67
|
+
},
|
|
68
|
+
x = Math.round(index * 18.5 + 18 / 2 * (index / tints.length) + 3 + (index === 6 ? -3 : 0));
|
|
69
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
70
|
+
onHoverIn: () => setHovered(!0),
|
|
71
|
+
onHoverOut: () => setHovered(!1),
|
|
72
|
+
paddingVertical: "$2",
|
|
73
|
+
"data-tauri-drag-region": !0,
|
|
74
|
+
marginVertical: "$-2",
|
|
75
|
+
position: "relative",
|
|
76
|
+
className: "logo-words",
|
|
77
|
+
...props,
|
|
78
|
+
children: [animated && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Circle, {
|
|
79
|
+
animation: "quicker",
|
|
80
|
+
position: "absolute",
|
|
81
|
+
top: 0,
|
|
82
|
+
left: 0,
|
|
83
|
+
y: mounted === "start" ? -30 : -3,
|
|
84
|
+
x,
|
|
85
|
+
size: 4,
|
|
86
|
+
backgroundColor: "$color9"
|
|
87
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("svg", {
|
|
88
|
+
"data-tauri-drag-region": !0,
|
|
89
|
+
width: 373 * (1 / downscale) * 0.333333334,
|
|
90
|
+
height: 41 * (1 / downscale) * 0.333333334,
|
|
91
|
+
viewBox: "0 0 373 41",
|
|
92
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
93
|
+
"data-tauri-drag-region": !0,
|
|
94
|
+
shapeRendering: "crispEdges",
|
|
95
|
+
fill: getColor(0),
|
|
96
|
+
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903",
|
|
97
|
+
onMouseEnter: () => Tint.setTintIndex(0)
|
|
98
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
99
|
+
shapeRendering: "crispEdges",
|
|
100
|
+
fill: getColor(1),
|
|
101
|
+
d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
|
|
102
|
+
fillRule: "nonzero",
|
|
103
|
+
onMouseEnter: () => Tint.setTintIndex(1)
|
|
104
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
105
|
+
"data-tauri-drag-region": !0,
|
|
106
|
+
shapeRendering: "crispEdges",
|
|
107
|
+
fill: getColor(2),
|
|
108
|
+
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903",
|
|
109
|
+
onMouseEnter: () => Tint.setTintIndex(2)
|
|
110
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
111
|
+
fill: getColor(3),
|
|
112
|
+
d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
|
|
113
|
+
fillRule: "nonzero",
|
|
114
|
+
onMouseEnter: () => Tint.setTintIndex(3)
|
|
115
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
116
|
+
"data-tauri-drag-region": !0,
|
|
117
|
+
shapeRendering: "crispEdges",
|
|
118
|
+
fill: getColor(4),
|
|
119
|
+
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903",
|
|
120
|
+
onMouseEnter: () => Tint.setTintIndex(4)
|
|
121
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
122
|
+
"data-tauri-drag-region": !0,
|
|
123
|
+
shapeRendering: "crispEdges",
|
|
124
|
+
fill: getColor(5),
|
|
125
|
+
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903",
|
|
126
|
+
onMouseEnter: () => Tint.setTintIndex(5)
|
|
127
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
128
|
+
"data-tauri-drag-region": !0,
|
|
129
|
+
shapeRendering: "crispEdges",
|
|
130
|
+
fill: getColor(6),
|
|
131
|
+
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903",
|
|
132
|
+
onMouseEnter: () => Tint.setTintIndex(6)
|
|
133
|
+
})]
|
|
134
|
+
})]
|
|
135
|
+
});
|
|
136
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
32
|
+
var TamaguiLogo_exports = {};
|
|
33
|
+
__export(TamaguiLogo_exports, {
|
|
34
|
+
TamaguiLogo: () => TamaguiLogo
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(TamaguiLogo_exports);
|
|
37
|
+
var import_react = __toESM(require("react")),
|
|
38
|
+
import_tamagui = require("tamagui"),
|
|
39
|
+
import_LogoIcon = require("./LogoIcon.cjs"),
|
|
40
|
+
import_LogoWords = require("./LogoWords.cjs"),
|
|
41
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
const TamaguiLogo = import_react.default.forwardRef(({
|
|
43
|
+
showWords,
|
|
44
|
+
downscale,
|
|
45
|
+
animated,
|
|
46
|
+
...props
|
|
47
|
+
}, ref) => /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
48
|
+
tag: "span",
|
|
49
|
+
ref,
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
gap: "$5",
|
|
53
|
+
...props,
|
|
54
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoIcon.LogoIcon, {
|
|
55
|
+
downscale: (downscale ?? 1) * (showWords ? 2 : 1.5)
|
|
56
|
+
}), showWords && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
57
|
+
tag: "span",
|
|
58
|
+
marginBottom: -4,
|
|
59
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoWords.LogoWords, {
|
|
60
|
+
animated,
|
|
61
|
+
downscale: downscale ?? 2
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var TamaguiLogoSvg_exports = {};
|
|
22
|
+
__export(TamaguiLogoSvg_exports, {
|
|
23
|
+
TamaguiIconSvg: () => TamaguiIconSvg
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(TamaguiLogoSvg_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
const TamaguiIconSvg = props => /* @__PURE__ */(0, import_jsx_runtime.jsx)("svg", {
|
|
28
|
+
width: 424,
|
|
29
|
+
height: 394,
|
|
30
|
+
viewBox: "0 0 424 394",
|
|
31
|
+
...props,
|
|
32
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
|
|
33
|
+
fill: "none",
|
|
34
|
+
fillRule: "evenodd",
|
|
35
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
36
|
+
d: "M310.786 30v28.75H372.5l-.001 28.75H426.5v86.25h-54.001l.001 28.75h-61.714v115h-28.929V375h-202.5v-57.5H21.5v-230h57.857V30h231.429Z",
|
|
37
|
+
opacity: 0.267
|
|
38
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
|
|
39
|
+
fill: "var(--color)",
|
|
40
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
41
|
+
d: "M279.5 0h-20v20h20zM250.7 0h-20v20h20zM221.9 0h-20v20h20zM193.1 0h-20v20h20zM164.3 0h-20v20h20zM135.5 0h-20v20h20zM106.7 28.714h-20v20h20zM77.9 57.429h-20v20h20zM49.1 86.143h-20v20h20zM49.1 114.857h-20v20h20zM49.1 143.571h-20v20h20zM49.1 172.286h-20v20h20zM20.3 201H.3v20h20zM20.3 229.714H.3v20h20zM20.3 258.429H.3v20h20zM49.1 287.143h-20v20h20zM77.9 315.857h-20v20h20zM106.7 344.571h-20v20h20zM135.5 373.286h-20v20h20zM164.3 373.286h-20v20h20zM193.1 344.571h-20v20h20zM221.9 344.571h-20v20h20zM221.9 373.286h-20v20h20zM250.7 373.286h-20v20h20zM279.5 344.571h-20v20h20zM279.5 315.857h-20v20h20zM308.3 287.143h-20v20h20zM337.1 229.714h-20v20h20zM337.1 258.429h-20v20h20zM337.1 201h-20v20h20zM365.9 172.286h-20v20h20zM394.7 172.286h-20v20h20zM423.5 143.571h-20v20h20zM394.7 114.857h-20v20h20zM365.9 114.857h-20v20h20zM337.1 114.857h-20v20h20zM423.5 86.143h-20v20h20zM423.5 114.857h-20v20h20zM394.7 57.429h-20v20h20z"
|
|
42
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
43
|
+
d: "M394.7 57.429h-20v20h20zM365.9 57.429h-20v20h20zM308.3 28.714h-20v20h20zM279.5 57.429h-20v20h20zM193.1 86.143h-20v20h20zM193.1 201h-20v20h20zM193.1 229.714h-20v20h20zM164.3 258.429h-20v20h20zM135.5 229.714h-20v20h20zM135.5 201h-20v20h20zM337.1 57.429h-20v20h20z"
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
7
|
+
get: () => from[key],
|
|
8
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
9
|
+
});
|
|
10
|
+
return to;
|
|
11
|
+
},
|
|
12
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
13
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
14
|
+
value: !0
|
|
15
|
+
}), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./TamaguiLogo.cjs"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./LogoWords.cjs"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("./LogoIcon.cjs"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("./tints.cjs"), module.exports);
|
|
22
|
+
__reExport(src_exports, require("./useTint.cjs"), module.exports);
|
|
@@ -2,24 +2,33 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
15
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
18
23
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
24
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
23
32
|
var tints_exports = {};
|
|
24
33
|
__export(tints_exports, {
|
|
25
34
|
getTints: () => getTints,
|
|
@@ -30,14 +39,18 @@ __export(tints_exports, {
|
|
|
30
39
|
});
|
|
31
40
|
module.exports = __toCommonJS(tints_exports);
|
|
32
41
|
var import_react = __toESM(require("react"));
|
|
33
|
-
const listeners = /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
const listeners = /* @__PURE__ */new Set(),
|
|
43
|
+
familiesValues = {
|
|
44
|
+
tamagui: ["red", "pink", "purple", "blue", "green", "orange", "red"],
|
|
45
|
+
xmas: ["red", "green", "red", "green", "red", "green", "red"],
|
|
46
|
+
easter: ["yellow", "pink", "yellow", "pink", "yellow", "pink", "yellow"],
|
|
47
|
+
halloween: ["orange", "gray", "orange", "gray", "orange", "gray", "orange"],
|
|
48
|
+
valentine: ["pink", "red", "pink", "red", "pink", "red", "pink"],
|
|
49
|
+
lunar: ["yellow", "red", "red", "red", "red", "red", "yellow"]
|
|
50
|
+
},
|
|
51
|
+
DEFAULT_FAMILY = "tamagui",
|
|
52
|
+
familiesNames = Object.keys(familiesValues),
|
|
53
|
+
families = familiesValues;
|
|
41
54
|
let fam = DEFAULT_FAMILY;
|
|
42
55
|
function getTints() {
|
|
43
56
|
return {
|
|
@@ -57,12 +70,12 @@ function useTints() {
|
|
|
57
70
|
function setTintFamily(next) {
|
|
58
71
|
if (!families[next]) throw "impossible";
|
|
59
72
|
fam = next, import_react.default.startTransition(() => {
|
|
60
|
-
listeners.forEach(
|
|
73
|
+
listeners.forEach(l => l(next));
|
|
61
74
|
});
|
|
62
75
|
}
|
|
63
76
|
const setNextTintFamily = () => {
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
listeners.
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
|
|
78
|
+
},
|
|
79
|
+
onTintFamilyChange = cb => (listeners.add(cb), () => {
|
|
80
|
+
listeners.delete(cb);
|
|
81
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
32
|
+
var useTint_exports = {};
|
|
33
|
+
__export(useTint_exports, {
|
|
34
|
+
ThemeTint: () => ThemeTint,
|
|
35
|
+
ThemeTintAlt: () => ThemeTintAlt,
|
|
36
|
+
initialTint: () => initialTint,
|
|
37
|
+
onTintChange: () => onTintChange,
|
|
38
|
+
setTintIndex: () => setTintIndex,
|
|
39
|
+
useTint: () => useTint
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(useTint_exports);
|
|
42
|
+
var import_react = __toESM(require("react")),
|
|
43
|
+
import_tamagui = require("tamagui"),
|
|
44
|
+
import_tints = require("./tints.cjs"),
|
|
45
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
const initialTint = 3;
|
|
47
|
+
let current = initialTint;
|
|
48
|
+
const listeners = /* @__PURE__ */new Set(),
|
|
49
|
+
onTintChange = listener => (listeners.add(listener), () => {
|
|
50
|
+
listeners.delete(listener);
|
|
51
|
+
}),
|
|
52
|
+
numTints = (0, import_tints.getTints)().tints.length,
|
|
53
|
+
setTintIndex = next => {
|
|
54
|
+
const val = next % numTints;
|
|
55
|
+
val !== current && (current = val, import_react.default.startTransition(() => {
|
|
56
|
+
listeners.forEach(x => x(val));
|
|
57
|
+
}));
|
|
58
|
+
},
|
|
59
|
+
useTint = (altOffset = -1) => {
|
|
60
|
+
const index = import_react.default.useSyncExternalStore(onTintChange, () => current, () => initialTint),
|
|
61
|
+
tintsContext = (0, import_tints.useTints)(),
|
|
62
|
+
{
|
|
63
|
+
tints
|
|
64
|
+
} = tintsContext,
|
|
65
|
+
tintAltIndex = Math.abs((index + altOffset) % tints.length);
|
|
66
|
+
return {
|
|
67
|
+
...tintsContext,
|
|
68
|
+
tints: tintsContext.tints,
|
|
69
|
+
tintIndex: index,
|
|
70
|
+
tintAltIndex,
|
|
71
|
+
tint: tints[index],
|
|
72
|
+
tintAlt: tints[tintAltIndex],
|
|
73
|
+
setTintIndex,
|
|
74
|
+
setNextTintFamily: import_tints.setNextTintFamily,
|
|
75
|
+
setNextTint: () => {
|
|
76
|
+
import_react.default.startTransition(() => {
|
|
77
|
+
setTintIndex(index + 1);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
ThemeTint = ({
|
|
83
|
+
disable,
|
|
84
|
+
children,
|
|
85
|
+
...rest
|
|
86
|
+
}) => {
|
|
87
|
+
const curTint = useTint().tint;
|
|
88
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
89
|
+
...rest,
|
|
90
|
+
name: disable ? null : curTint,
|
|
91
|
+
children
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
ThemeTintAlt = ({
|
|
95
|
+
children,
|
|
96
|
+
disable,
|
|
97
|
+
offset = 1,
|
|
98
|
+
...rest
|
|
99
|
+
}) => {
|
|
100
|
+
const curTint = useTint(offset).tintAlt;
|
|
101
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
102
|
+
name: disable ? null : curTint,
|
|
103
|
+
...rest,
|
|
104
|
+
children
|
|
105
|
+
});
|
|
106
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/logo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.115.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"clean:build": "tamagui-build clean:build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"tamagui": "1.
|
|
24
|
+
"tamagui": "1.115.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tamagui/build": "1.
|
|
27
|
+
"@tamagui/build": "1.115.0",
|
|
28
28
|
"react": "^18.2.0 || ^19.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
package/dist/cjs/LogoIcon.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var LogoIcon_exports = {};
|
|
16
|
-
__export(LogoIcon_exports, {
|
|
17
|
-
LogoIcon: () => LogoIcon
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(LogoIcon_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_TamaguiLogoSvg = require("./TamaguiLogoSvg"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
const LogoIcon = ({ downscale = 2 }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
22
|
-
import_tamagui.YStack,
|
|
23
|
-
{
|
|
24
|
-
tag: "span",
|
|
25
|
-
className: "unselectable",
|
|
26
|
-
alignSelf: "center",
|
|
27
|
-
marginVertical: -10,
|
|
28
|
-
pressStyle: {
|
|
29
|
-
opacity: 0.7,
|
|
30
|
-
scaleX: -1
|
|
31
|
-
},
|
|
32
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
-
import_TamaguiLogoSvg.TamaguiIconSvg,
|
|
34
|
-
{
|
|
35
|
-
className: "tamagui-icon",
|
|
36
|
-
width: 450 / 8 / downscale,
|
|
37
|
-
height: 420 / 8 / downscale
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
//# sourceMappingURL=LogoIcon.js.map
|
package/dist/cjs/LogoWords.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var LogoWords_exports = {};
|
|
24
|
-
__export(LogoWords_exports, {
|
|
25
|
-
LogoWords: () => LogoWords
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(LogoWords_exports);
|
|
28
|
-
var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_useTint = require("./useTint"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const LogoWords = import_react.default.memo(
|
|
30
|
-
({
|
|
31
|
-
downscale = 1,
|
|
32
|
-
grayscale,
|
|
33
|
-
animated,
|
|
34
|
-
...props
|
|
35
|
-
}) => {
|
|
36
|
-
const Tint = (0, import_useTint.useTint)(), { tintIndex: index, tint } = Tint, tints = Tint.tints.map((t) => `var(--${t}9)`), [hovered, setHovered] = import_react.default.useState(!1), [mounted, setMounted] = import_react.default.useState("start");
|
|
37
|
-
import_react.default.useEffect(() => {
|
|
38
|
-
(window.requestIdleCallback || setTimeout)(() => {
|
|
39
|
-
setTimeout(() => {
|
|
40
|
-
setMounted("animate");
|
|
41
|
-
}, 50), setTimeout(() => {
|
|
42
|
-
setMounted("done");
|
|
43
|
-
}, 1500);
|
|
44
|
-
});
|
|
45
|
-
}, []);
|
|
46
|
-
const getColor = (i) => {
|
|
47
|
-
const isActive = mounted !== "start" && i === index;
|
|
48
|
-
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];
|
|
49
|
-
}, x = Math.round(
|
|
50
|
-
index * 18.5 + 18 / 2 * (index / tints.length) + 3 + (index === 6 ? -3 : 0)
|
|
51
|
-
);
|
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
53
|
-
import_tamagui.XStack,
|
|
54
|
-
{
|
|
55
|
-
onHoverIn: () => setHovered(!0),
|
|
56
|
-
onHoverOut: () => setHovered(!1),
|
|
57
|
-
paddingVertical: "$2",
|
|
58
|
-
"data-tauri-drag-region": !0,
|
|
59
|
-
marginVertical: "$-2",
|
|
60
|
-
position: "relative",
|
|
61
|
-
className: "logo-words",
|
|
62
|
-
...props,
|
|
63
|
-
children: [
|
|
64
|
-
animated && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
65
|
-
import_tamagui.Circle,
|
|
66
|
-
{
|
|
67
|
-
animation: "quicker",
|
|
68
|
-
position: "absolute",
|
|
69
|
-
top: 0,
|
|
70
|
-
left: 0,
|
|
71
|
-
y: mounted === "start" ? -30 : -3,
|
|
72
|
-
x,
|
|
73
|
-
size: 4,
|
|
74
|
-
backgroundColor: "$color9"
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
78
|
-
"svg",
|
|
79
|
-
{
|
|
80
|
-
"data-tauri-drag-region": !0,
|
|
81
|
-
width: 373 * (1 / downscale) * 0.333333334,
|
|
82
|
-
height: 41 * (1 / downscale) * 0.333333334,
|
|
83
|
-
viewBox: "0 0 373 41",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
-
"polygon",
|
|
87
|
-
{
|
|
88
|
-
"data-tauri-drag-region": !0,
|
|
89
|
-
shapeRendering: "crispEdges",
|
|
90
|
-
fill: getColor(0),
|
|
91
|
-
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903",
|
|
92
|
-
onMouseEnter: () => Tint.setTintIndex(0)
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
-
"path",
|
|
97
|
-
{
|
|
98
|
-
shapeRendering: "crispEdges",
|
|
99
|
-
fill: getColor(1),
|
|
100
|
-
d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
|
|
101
|
-
fillRule: "nonzero",
|
|
102
|
-
onMouseEnter: () => Tint.setTintIndex(1)
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
106
|
-
"polygon",
|
|
107
|
-
{
|
|
108
|
-
"data-tauri-drag-region": !0,
|
|
109
|
-
shapeRendering: "crispEdges",
|
|
110
|
-
fill: getColor(2),
|
|
111
|
-
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903",
|
|
112
|
-
onMouseEnter: () => Tint.setTintIndex(2)
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
|
-
"path",
|
|
117
|
-
{
|
|
118
|
-
fill: getColor(3),
|
|
119
|
-
d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
|
|
120
|
-
fillRule: "nonzero",
|
|
121
|
-
onMouseEnter: () => Tint.setTintIndex(3)
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
125
|
-
"polygon",
|
|
126
|
-
{
|
|
127
|
-
"data-tauri-drag-region": !0,
|
|
128
|
-
shapeRendering: "crispEdges",
|
|
129
|
-
fill: getColor(4),
|
|
130
|
-
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903",
|
|
131
|
-
onMouseEnter: () => Tint.setTintIndex(4)
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
135
|
-
"polygon",
|
|
136
|
-
{
|
|
137
|
-
"data-tauri-drag-region": !0,
|
|
138
|
-
shapeRendering: "crispEdges",
|
|
139
|
-
fill: getColor(5),
|
|
140
|
-
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903",
|
|
141
|
-
onMouseEnter: () => Tint.setTintIndex(5)
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
|
-
"polygon",
|
|
146
|
-
{
|
|
147
|
-
"data-tauri-drag-region": !0,
|
|
148
|
-
shapeRendering: "crispEdges",
|
|
149
|
-
fill: getColor(6),
|
|
150
|
-
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903",
|
|
151
|
-
onMouseEnter: () => Tint.setTintIndex(6)
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
//# sourceMappingURL=LogoWords.js.map
|
package/dist/cjs/TamaguiLogo.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var TamaguiLogo_exports = {};
|
|
24
|
-
__export(TamaguiLogo_exports, {
|
|
25
|
-
TamaguiLogo: () => TamaguiLogo
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(TamaguiLogo_exports);
|
|
28
|
-
var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_LogoIcon = require("./LogoIcon"), import_LogoWords = require("./LogoWords"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const TamaguiLogo = import_react.default.forwardRef(
|
|
30
|
-
({ showWords, downscale, animated, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
31
|
-
import_tamagui.XStack,
|
|
32
|
-
{
|
|
33
|
-
tag: "span",
|
|
34
|
-
ref,
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
justifyContent: "center",
|
|
37
|
-
gap: "$5",
|
|
38
|
-
...props,
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LogoIcon.LogoIcon, { downscale: (downscale ?? 1) * (showWords ? 2 : 1.5) }),
|
|
41
|
-
showWords && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { tag: "span", marginBottom: -4, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LogoWords.LogoWords, { animated, downscale: downscale ?? 2 }) })
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
);
|
|
46
|
-
//# sourceMappingURL=TamaguiLogo.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var TamaguiLogoSvg_exports = {};
|
|
16
|
-
__export(TamaguiLogoSvg_exports, {
|
|
17
|
-
TamaguiIconSvg: () => TamaguiIconSvg
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(TamaguiLogoSvg_exports);
|
|
20
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
const TamaguiIconSvg = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: 424, height: 394, viewBox: "0 0 424 394", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "none", fillRule: "evenodd", children: [
|
|
22
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
23
|
-
"path",
|
|
24
|
-
{
|
|
25
|
-
d: "M310.786 30v28.75H372.5l-.001 28.75H426.5v86.25h-54.001l.001 28.75h-61.714v115h-28.929V375h-202.5v-57.5H21.5v-230h57.857V30h231.429Z",
|
|
26
|
-
opacity: 0.267
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "var(--color)", children: [
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M279.5 0h-20v20h20zM250.7 0h-20v20h20zM221.9 0h-20v20h20zM193.1 0h-20v20h20zM164.3 0h-20v20h20zM135.5 0h-20v20h20zM106.7 28.714h-20v20h20zM77.9 57.429h-20v20h20zM49.1 86.143h-20v20h20zM49.1 114.857h-20v20h20zM49.1 143.571h-20v20h20zM49.1 172.286h-20v20h20zM20.3 201H.3v20h20zM20.3 229.714H.3v20h20zM20.3 258.429H.3v20h20zM49.1 287.143h-20v20h20zM77.9 315.857h-20v20h20zM106.7 344.571h-20v20h20zM135.5 373.286h-20v20h20zM164.3 373.286h-20v20h20zM193.1 344.571h-20v20h20zM221.9 344.571h-20v20h20zM221.9 373.286h-20v20h20zM250.7 373.286h-20v20h20zM279.5 344.571h-20v20h20zM279.5 315.857h-20v20h20zM308.3 287.143h-20v20h20zM337.1 229.714h-20v20h20zM337.1 258.429h-20v20h20zM337.1 201h-20v20h20zM365.9 172.286h-20v20h20zM394.7 172.286h-20v20h20zM423.5 143.571h-20v20h20zM394.7 114.857h-20v20h20zM365.9 114.857h-20v20h20zM337.1 114.857h-20v20h20zM423.5 86.143h-20v20h20zM423.5 114.857h-20v20h20zM394.7 57.429h-20v20h20z" }),
|
|
31
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M394.7 57.429h-20v20h20zM365.9 57.429h-20v20h20zM308.3 28.714h-20v20h20zM279.5 57.429h-20v20h20zM193.1 86.143h-20v20h20zM193.1 201h-20v20h20zM193.1 229.714h-20v20h20zM164.3 258.429h-20v20h20zM135.5 229.714h-20v20h20zM135.5 201h-20v20h20zM337.1 57.429h-20v20h20z" })
|
|
32
|
-
] })
|
|
33
|
-
] }) });
|
|
34
|
-
//# sourceMappingURL=TamaguiLogoSvg.js.map
|
package/dist/cjs/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var src_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(src_exports);
|
|
14
|
-
__reExport(src_exports, require("./TamaguiLogo"), module.exports);
|
|
15
|
-
__reExport(src_exports, require("./LogoWords"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./LogoIcon"), module.exports);
|
|
17
|
-
__reExport(src_exports, require("./tints"), module.exports);
|
|
18
|
-
__reExport(src_exports, require("./useTint"), module.exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/useTint.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var useTint_exports = {};
|
|
24
|
-
__export(useTint_exports, {
|
|
25
|
-
ThemeTint: () => ThemeTint,
|
|
26
|
-
ThemeTintAlt: () => ThemeTintAlt,
|
|
27
|
-
initialTint: () => initialTint,
|
|
28
|
-
onTintChange: () => onTintChange,
|
|
29
|
-
setTintIndex: () => setTintIndex,
|
|
30
|
-
useTint: () => useTint
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(useTint_exports);
|
|
33
|
-
var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_tints = require("./tints"), import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
const initialTint = 3;
|
|
35
|
-
let current = initialTint;
|
|
36
|
-
const listeners = /* @__PURE__ */ new Set(), onTintChange = (listener) => (listeners.add(listener), () => {
|
|
37
|
-
listeners.delete(listener);
|
|
38
|
-
}), numTints = (0, import_tints.getTints)().tints.length, setTintIndex = (next) => {
|
|
39
|
-
const val = next % numTints;
|
|
40
|
-
val !== current && (current = val, import_react.default.startTransition(() => {
|
|
41
|
-
listeners.forEach((x) => x(val));
|
|
42
|
-
}));
|
|
43
|
-
}, useTint = (altOffset = -1) => {
|
|
44
|
-
const index = import_react.default.useSyncExternalStore(
|
|
45
|
-
onTintChange,
|
|
46
|
-
() => current,
|
|
47
|
-
() => initialTint
|
|
48
|
-
), tintsContext = (0, import_tints.useTints)(), { tints } = tintsContext, tintAltIndex = Math.abs((index + altOffset) % tints.length);
|
|
49
|
-
return {
|
|
50
|
-
...tintsContext,
|
|
51
|
-
tints: tintsContext.tints,
|
|
52
|
-
tintIndex: index,
|
|
53
|
-
tintAltIndex,
|
|
54
|
-
tint: tints[index],
|
|
55
|
-
tintAlt: tints[tintAltIndex],
|
|
56
|
-
setTintIndex,
|
|
57
|
-
setNextTintFamily: import_tints.setNextTintFamily,
|
|
58
|
-
setNextTint: () => {
|
|
59
|
-
import_react.default.startTransition(() => {
|
|
60
|
-
setTintIndex(index + 1);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}, ThemeTint = ({
|
|
65
|
-
disable,
|
|
66
|
-
children,
|
|
67
|
-
...rest
|
|
68
|
-
}) => {
|
|
69
|
-
const curTint = useTint().tint;
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { ...rest, name: disable ? null : curTint, children });
|
|
71
|
-
}, ThemeTintAlt = ({
|
|
72
|
-
children,
|
|
73
|
-
disable,
|
|
74
|
-
offset = 1,
|
|
75
|
-
...rest
|
|
76
|
-
}) => {
|
|
77
|
-
const curTint = useTint(offset).tintAlt;
|
|
78
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: disable ? null : curTint, ...rest, children });
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=useTint.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|