@tamagui/logo 1.61.3 → 1.62.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.js +27 -35
- package/dist/cjs/LogoIcon.js.map +1 -1
- package/dist/cjs/LogoIcon.native.js +47 -0
- package/dist/cjs/LogoIcon.native.js.map +6 -0
- package/dist/cjs/LogoWords.js +13 -33
- package/dist/cjs/LogoWords.js.map +1 -1
- package/dist/cjs/LogoWords.native.js +150 -0
- package/dist/cjs/LogoWords.native.js.map +6 -0
- package/dist/cjs/TamaguiLogo.js +21 -31
- package/dist/cjs/TamaguiLogo.js.map +1 -1
- package/dist/cjs/TamaguiLogo.native.js +43 -0
- package/dist/cjs/TamaguiLogo.native.js.map +6 -0
- package/dist/cjs/TamaguiLogoSvg.js +5 -9
- package/dist/cjs/TamaguiLogoSvg.js.map +1 -1
- package/dist/cjs/TamaguiLogoSvg.native.js +39 -0
- package/dist/cjs/TamaguiLogoSvg.native.js.map +6 -0
- package/dist/cjs/index.js +4 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +28 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/tints.js +15 -31
- package/dist/cjs/tints.js.map +1 -1
- package/dist/cjs/tints.native.js +62 -0
- package/dist/cjs/tints.native.js.map +6 -0
- package/dist/cjs/useTint.js +16 -38
- package/dist/cjs/useTint.js.map +1 -1
- package/dist/cjs/useTint.native.js +73 -0
- package/dist/cjs/useTint.native.js.map +6 -0
- package/dist/esm/LogoIcon.js +22 -24
- package/dist/esm/LogoIcon.js.map +1 -1
- package/dist/esm/LogoWords.js +8 -21
- package/dist/esm/LogoWords.js.map +1 -1
- package/dist/esm/TamaguiLogo.js +16 -18
- package/dist/esm/TamaguiLogo.js.map +1 -1
- package/dist/esm/tints.js +10 -22
- package/dist/esm/tints.js.map +1 -1
- package/dist/esm/useTint.js +11 -26
- package/dist/esm/useTint.js.map +1 -1
- package/dist/jsx/LogoIcon.js +14 -16
- package/dist/jsx/LogoIcon.js.map +1 -1
- package/dist/jsx/LogoIcon.native.js +20 -0
- package/dist/jsx/LogoIcon.native.js.map +6 -0
- package/dist/jsx/LogoWords.js +7 -20
- package/dist/jsx/LogoWords.js.map +1 -1
- package/dist/jsx/LogoWords.native.js +99 -0
- package/dist/jsx/LogoWords.native.js.map +6 -0
- package/dist/jsx/TamaguiLogo.js +11 -13
- package/dist/jsx/TamaguiLogo.js.map +1 -1
- package/dist/jsx/TamaguiLogo.native.js +21 -0
- package/dist/jsx/TamaguiLogo.native.js.map +6 -0
- package/dist/jsx/TamaguiLogoSvg.native.js +14 -0
- package/dist/jsx/TamaguiLogoSvg.native.js.map +6 -0
- package/dist/jsx/index.native.js +6 -0
- package/dist/jsx/index.native.js.map +6 -0
- package/dist/jsx/tints.js +10 -22
- package/dist/jsx/tints.js.map +1 -1
- package/dist/jsx/tints.native.js +37 -0
- package/dist/jsx/tints.native.js.map +6 -0
- package/dist/jsx/useTint.js +10 -25
- package/dist/jsx/useTint.js.map +1 -1
- package/dist/jsx/useTint.native.js +59 -0
- package/dist/jsx/useTint.native.js.map +6 -0
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
7
|
for (let key of __getOwnPropNames(from))
|
|
9
|
-
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
9
|
return to;
|
|
13
|
-
};
|
|
14
|
-
var
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
10
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
12
|
var src_exports = {};
|
|
17
13
|
module.exports = __toCommonJS(src_exports);
|
|
18
14
|
__reExport(src_exports, require("./TamaguiLogo"), module.exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,uBAFd;AAGA,wBAAc,oBAHd;AAIA,wBAAc,sBAJd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}, __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("./TamaguiLogo"), module.exports);
|
|
16
|
+
__reExport(src_exports, require("./LogoWords"), module.exports);
|
|
17
|
+
__reExport(src_exports, require("./LogoIcon"), module.exports);
|
|
18
|
+
__reExport(src_exports, require("./tints"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./useTint"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./TamaguiLogo"),
|
|
23
|
+
...require("./LogoWords"),
|
|
24
|
+
...require("./LogoIcon"),
|
|
25
|
+
...require("./tints"),
|
|
26
|
+
...require("./useTint")
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
package/dist/cjs/tints.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var tints_exports = {};
|
|
20
16
|
__export(tints_exports, {
|
|
21
17
|
getTints: () => getTints,
|
|
@@ -30,9 +26,7 @@ const familiesValues = {
|
|
|
30
26
|
tamagui: ["orange", "yellow", "green", "blue", "purple", "pink", "red"],
|
|
31
27
|
xmas: ["red", "green", "red", "green", "red", "green", "red"],
|
|
32
28
|
easter: ["yellow", "pink", "yellow", "pink", "yellow", "pink", "yellow"]
|
|
33
|
-
};
|
|
34
|
-
const familiesNames = Object.keys(familiesValues);
|
|
35
|
-
const families = familiesValues;
|
|
29
|
+
}, familiesNames = Object.keys(familiesValues), families = familiesValues;
|
|
36
30
|
let fam = "tamagui";
|
|
37
31
|
function getTints() {
|
|
38
32
|
return {
|
|
@@ -43,29 +37,19 @@ function getTints() {
|
|
|
43
37
|
}
|
|
44
38
|
function useTints() {
|
|
45
39
|
const [val, setVal] = (0, import_react.useState)(getTints());
|
|
46
|
-
(0, import_react.useEffect)(() => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
}, []);
|
|
51
|
-
return val;
|
|
40
|
+
return (0, import_react.useEffect)(() => onTintFamilyChange(() => {
|
|
41
|
+
setVal(getTints());
|
|
42
|
+
}), []), val;
|
|
52
43
|
}
|
|
53
44
|
const setTintFamily = (next) => {
|
|
54
45
|
if (!families[next])
|
|
55
|
-
throw
|
|
56
|
-
fam = next;
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
const setNextTintFamily = () => {
|
|
46
|
+
throw "impossible";
|
|
47
|
+
fam = next, listeners.forEach((l) => l(next));
|
|
48
|
+
}, setNextTintFamily = () => {
|
|
60
49
|
setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
listeners.add(cb);
|
|
65
|
-
return () => {
|
|
66
|
-
listeners.delete(cb);
|
|
67
|
-
};
|
|
68
|
-
};
|
|
50
|
+
}, listeners = /* @__PURE__ */ new Set(), onTintFamilyChange = (cb) => (listeners.add(cb), () => {
|
|
51
|
+
listeners.delete(cb);
|
|
52
|
+
});
|
|
69
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
70
54
|
0 && (module.exports = {
|
|
71
55
|
getTints,
|
package/dist/cjs/tints.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tints.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAoC;AAGpC,MAAM,iBAAiB;AAAA,EACrB,SAAS,CAAC,UAAU,UAAU,SAAS,QAAQ,UAAU,QAAQ,KAAK;AAAA,EACtE,MAAM,CAAC,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,KAAK;AAAA,EAC5D,QAAQ,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,QAAQ,QAAQ;AACzE,GAIM,gBAAgB,OAAO,KAAK,cAAc,GAE1C,WAAW;AAMjB,IAAI,MAAkB;AAEf,SAAS,WAAW;AACzB,SAAO;AAAA,IACL,MAAM,OAAO;AAAA,IACb,OAAO,SAAS,GAAG,KAAK,SAAS;AAAA,IACjC;AAAA,EACF;AACF;AAEO,SAAS,WAAW;AACzB,QAAM,CAAC,KAAK,MAAM,QAAI,uBAAS,SAAS,CAAC;AAEzC,qCAAU,MACD,mBAAmB,MAAM;AAC9B,WAAO,SAAS,CAAC;AAAA,EACnB,CAAC,GACA,CAAC,CAAC,GAEE;AACT;AAEO,MAAM,gBAAgB,CAAC,SAAqB;AACjD,MAAI,CAAC,SAAS,IAAI;AAAG,UAAM;AAC3B,QAAM,MACN,UAAU,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;AAClC,GAEa,oBAAoB,MAAM;AACrC,gBAAc,eAAe,cAAc,QAAQ,GAAG,IAAI,KAAK,cAAc,MAAM,CAAC;AACtF,GAIM,YAAY,oBAAI,IAAmB,GAE5B,qBAAqB,CAAC,QACjC,UAAU,IAAI,EAAE,GACT,MAAM;AACX,YAAU,OAAO,EAAE;AACrB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var tints_exports = {};
|
|
17
|
+
__export(tints_exports, {
|
|
18
|
+
getTints: () => getTints,
|
|
19
|
+
onTintFamilyChange: () => onTintFamilyChange,
|
|
20
|
+
setNextTintFamily: () => setNextTintFamily,
|
|
21
|
+
setTintFamily: () => setTintFamily,
|
|
22
|
+
useTints: () => useTints
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(tints_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
const familiesValues = {
|
|
27
|
+
tamagui: ["orange", "yellow", "green", "blue", "purple", "pink", "red"],
|
|
28
|
+
xmas: ["red", "green", "red", "green", "red", "green", "red"],
|
|
29
|
+
easter: ["yellow", "pink", "yellow", "pink", "yellow", "pink", "yellow"]
|
|
30
|
+
}, familiesNames = Object.keys(familiesValues), families = familiesValues;
|
|
31
|
+
let fam = "tamagui";
|
|
32
|
+
function getTints() {
|
|
33
|
+
return {
|
|
34
|
+
name: fam || "tamagui",
|
|
35
|
+
tints: families[fam] || families.tamagui,
|
|
36
|
+
families
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function useTints() {
|
|
40
|
+
const [val, setVal] = (0, import_react.useState)(getTints());
|
|
41
|
+
return (0, import_react.useEffect)(() => onTintFamilyChange(() => {
|
|
42
|
+
setVal(getTints());
|
|
43
|
+
}), []), val;
|
|
44
|
+
}
|
|
45
|
+
const setTintFamily = (next) => {
|
|
46
|
+
if (!families[next])
|
|
47
|
+
throw "impossible";
|
|
48
|
+
fam = next, listeners.forEach((l) => l(next));
|
|
49
|
+
}, setNextTintFamily = () => {
|
|
50
|
+
setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
|
|
51
|
+
}, listeners = /* @__PURE__ */ new Set(), onTintFamilyChange = (cb) => (listeners.add(cb), () => {
|
|
52
|
+
listeners.delete(cb);
|
|
53
|
+
});
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
getTints,
|
|
57
|
+
onTintFamilyChange,
|
|
58
|
+
setNextTintFamily,
|
|
59
|
+
setTintFamily,
|
|
60
|
+
useTints
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=tints.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/tints.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAoC;AAGpC,MAAM,iBAAiB;AAAA,EACrB,SAAS,CAAC,UAAU,UAAU,SAAS,QAAQ,UAAU,QAAQ,KAAK;AAAA,EACtE,MAAM,CAAC,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,KAAK;AAAA,EAC5D,QAAQ,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,QAAQ,QAAQ;AACzE,GAIM,gBAAgB,OAAO,KAAK,cAAc,GAE1C,WAAW;AAMjB,IAAI,MAAkB;AAEf,SAAS,WAAW;AACzB,SAAO;AAAA,IACL,MAAM,OAAO;AAAA,IACb,OAAO,SAAS,GAAG,KAAK,SAAS;AAAA,IACjC;AAAA,EACF;AACF;AAEO,SAAS,WAAW;AACzB,QAAM,CAAC,KAAK,MAAM,QAAI,uBAAS,SAAS,CAAC;AAEzC,qCAAU,MACD,mBAAmB,MAAM;AAC9B,WAAO,SAAS,CAAC;AAAA,EACnB,CAAC,GACA,CAAC,CAAC,GAEE;AACT;AAEO,MAAM,gBAAgB,CAAC,SAAqB;AACjD,MAAI,CAAC,SAAS,IAAI;AAAG,UAAM;AAC3B,QAAM,MACN,UAAU,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;AAClC,GAEa,oBAAoB,MAAM;AACrC,gBAAc,eAAe,cAAc,QAAQ,GAAG,IAAI,KAAK,cAAc,MAAM,CAAC;AACtF,GAIM,YAAY,oBAAI,IAAmB,GAE5B,qBAAqB,CAAC,QACjC,UAAU,IAAI,EAAE,GACT,MAAM;AACX,YAAU,OAAO,EAAE;AACrB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/useTint.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var useTint_exports = {};
|
|
20
16
|
__export(useTint_exports, {
|
|
21
17
|
ThemeTint: () => ThemeTint,
|
|
@@ -26,37 +22,22 @@ __export(useTint_exports, {
|
|
|
26
22
|
useTint: () => useTint
|
|
27
23
|
});
|
|
28
24
|
module.exports = __toCommonJS(useTint_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
var import_react = require("react");
|
|
31
|
-
var import_tamagui = require("tamagui");
|
|
32
|
-
var import_tints = require("./tints");
|
|
25
|
+
var import_react = require("react"), import_tamagui = require("tamagui"), import_tints = require("./tints"), import_jsx_runtime = require("react/jsx-runtime");
|
|
33
26
|
const initialTint = 3;
|
|
34
27
|
let current = initialTint;
|
|
35
|
-
const listeners = /* @__PURE__ */ new Set()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return () => {
|
|
39
|
-
listeners.delete(listener);
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const numTints = (0, import_tints.getTints)().tints.length;
|
|
43
|
-
const setTintIndex = (next) => {
|
|
28
|
+
const listeners = /* @__PURE__ */ new Set(), onTintChange = (listener) => (listeners.add(listener), () => {
|
|
29
|
+
listeners.delete(listener);
|
|
30
|
+
}), numTints = (0, import_tints.getTints)().tints.length, setTintIndex = (next) => {
|
|
44
31
|
const val = next % numTints;
|
|
45
|
-
|
|
46
|
-
return;
|
|
47
|
-
current = val;
|
|
48
|
-
(0, import_react.startTransition)(() => {
|
|
32
|
+
val !== current && (current = val, (0, import_react.startTransition)(() => {
|
|
49
33
|
listeners.forEach((x) => x(val));
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const useTint = () => {
|
|
34
|
+
}));
|
|
35
|
+
}, useTint = () => {
|
|
53
36
|
const index = (0, import_react.useSyncExternalStore)(
|
|
54
37
|
onTintChange,
|
|
55
38
|
() => current,
|
|
56
39
|
() => initialTint
|
|
57
|
-
);
|
|
58
|
-
const tintsContext = (0, import_tints.useTints)();
|
|
59
|
-
const { tints } = tintsContext;
|
|
40
|
+
), tintsContext = (0, import_tints.useTints)(), { tints } = tintsContext;
|
|
60
41
|
return {
|
|
61
42
|
...tintsContext,
|
|
62
43
|
tints: tintsContext.tints,
|
|
@@ -68,18 +49,15 @@ const useTint = () => {
|
|
|
68
49
|
setTintIndex(index + 1);
|
|
69
50
|
}
|
|
70
51
|
};
|
|
71
|
-
}
|
|
72
|
-
const ThemeTint = (props) => {
|
|
52
|
+
}, ThemeTint = (props) => {
|
|
73
53
|
const curTint = useTint().tint;
|
|
74
54
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: props.disable ? null : curTint, children: (0, import_react.useMemo)(() => props.children, [props.children]) });
|
|
75
|
-
}
|
|
76
|
-
const ThemeTintAlt = ({
|
|
55
|
+
}, ThemeTintAlt = ({
|
|
77
56
|
children,
|
|
78
57
|
disable,
|
|
79
58
|
offset = 2
|
|
80
59
|
}) => {
|
|
81
|
-
const tint = useTint();
|
|
82
|
-
const curTint = tint.tints[(tint.tintIndex + offset) % tint.tints.length];
|
|
60
|
+
const tint = useTint(), curTint = tint.tints[(tint.tintIndex + offset) % tint.tints.length];
|
|
83
61
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: disable ? null : curTint, children: (0, import_react.useMemo)(() => children, [children]) });
|
|
84
62
|
};
|
|
85
63
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/cjs/useTint.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useTint.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA+D,kBAC/D,iBAAiC,oBAEjC,eAAsD,oBAyDlD;AAlDG,MAAM,cAAc;AAE3B,IAAI,UAAU;AAEd,MAAM,YAAY,oBAAI,IAAc,GAEvB,eAAe,CAAC,cAC3B,UAAU,IAAI,QAAQ,GACf,MAAM;AACX,YAAU,OAAO,QAAQ;AAC3B,IAGI,eAAW,uBAAS,EAAE,MAAM,QAErB,eAAe,CAAC,SAAiB;AAC5C,QAAM,MAAM,OAAO;AACnB,EAAI,QAAQ,YACZ,UAAU,SACV,8BAAgB,MAAM;AACpB,cAAU,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;AAAA,EACjC,CAAC;AACH,GAEa,UAAU,MAAM;AAC3B,QAAM,YAAQ;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR,GACM,mBAAe,uBAAS,GACxB,EAAE,MAAM,IAAI;AAElB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO,aAAa;AAAA,IACpB,WAAW;AAAA,IACX,MAAM,MAAM,KAAK;AAAA,IACjB;AAAA,IACA;AAAA,IACA,aAAa,MAAM;AACjB,mBAAa,QAAQ,CAAC;AAAA,IACxB;AAAA,EACF;AACF,GAEa,YAAY,CAAC,UAAgD;AACxE,QAAM,UAAU,QAAQ,EAAE;AAE1B,SACE,4CAAC,wBAAM,MAAM,MAAM,UAAU,OAAO,SAEjC,oCAAQ,MAAM,MAAM,UAAU,CAAC,MAAM,QAAQ,CAAC,GACjD;AAEJ,GAEa,eAAe,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,SAAS;AACX,MAIM;AACJ,QAAM,OAAO,QAAQ,GACf,UAAU,KAAK,OAAO,KAAK,YAAY,UAAU,KAAK,MAAM,MAAM;AAExE,SACE,4CAAC,wBAAM,MAAM,UAAU,OAAO,SAE3B,oCAAQ,MAAM,UAAU,CAAC,QAAQ,CAAC,GACrC;AAEJ;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var useTint_exports = {};
|
|
17
|
+
__export(useTint_exports, {
|
|
18
|
+
ThemeTint: () => ThemeTint,
|
|
19
|
+
ThemeTintAlt: () => ThemeTintAlt,
|
|
20
|
+
initialTint: () => initialTint,
|
|
21
|
+
onTintChange: () => onTintChange,
|
|
22
|
+
setTintIndex: () => setTintIndex,
|
|
23
|
+
useTint: () => useTint
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(useTint_exports);
|
|
26
|
+
var import_react = require("react"), import_tamagui = require("tamagui"), import_tints = require("./tints"), import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
const initialTint = 3;
|
|
28
|
+
let current = initialTint;
|
|
29
|
+
const listeners = /* @__PURE__ */ new Set(), onTintChange = (listener) => (listeners.add(listener), () => {
|
|
30
|
+
listeners.delete(listener);
|
|
31
|
+
}), numTints = (0, import_tints.getTints)().tints.length, setTintIndex = (next) => {
|
|
32
|
+
const val = next % numTints;
|
|
33
|
+
val !== current && (current = val, (0, import_react.startTransition)(() => {
|
|
34
|
+
listeners.forEach((x) => x(val));
|
|
35
|
+
}));
|
|
36
|
+
}, useTint = () => {
|
|
37
|
+
const index = (0, import_react.useSyncExternalStore)(
|
|
38
|
+
onTintChange,
|
|
39
|
+
() => current,
|
|
40
|
+
() => initialTint
|
|
41
|
+
), tintsContext = (0, import_tints.useTints)(), { tints } = tintsContext;
|
|
42
|
+
return {
|
|
43
|
+
...tintsContext,
|
|
44
|
+
tints: tintsContext.tints,
|
|
45
|
+
tintIndex: index,
|
|
46
|
+
tint: tints[index],
|
|
47
|
+
setTintIndex,
|
|
48
|
+
setNextTintFamily: import_tints.setNextTintFamily,
|
|
49
|
+
setNextTint: () => {
|
|
50
|
+
setTintIndex(index + 1);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}, ThemeTint = (props) => {
|
|
54
|
+
const curTint = useTint().tint;
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: props.disable ? null : curTint, children: (0, import_react.useMemo)(() => props.children, [props.children]) });
|
|
56
|
+
}, ThemeTintAlt = ({
|
|
57
|
+
children,
|
|
58
|
+
disable,
|
|
59
|
+
offset = 2
|
|
60
|
+
}) => {
|
|
61
|
+
const tint = useTint(), curTint = tint.tints[(tint.tintIndex + offset) % tint.tints.length];
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: disable ? null : curTint, children: (0, import_react.useMemo)(() => children, [children]) });
|
|
63
|
+
};
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
ThemeTint,
|
|
67
|
+
ThemeTintAlt,
|
|
68
|
+
initialTint,
|
|
69
|
+
onTintChange,
|
|
70
|
+
setTintIndex,
|
|
71
|
+
useTint
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=useTint.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/useTint.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA+D,kBAC/D,iBAAiC,oBAEjC,eAAsD,oBAyDlD;AAlDG,MAAM,cAAc;AAE3B,IAAI,UAAU;AAEd,MAAM,YAAY,oBAAI,IAAc,GAEvB,eAAe,CAAC,cAC3B,UAAU,IAAI,QAAQ,GACf,MAAM;AACX,YAAU,OAAO,QAAQ;AAC3B,IAGI,eAAW,uBAAS,EAAE,MAAM,QAErB,eAAe,CAAC,SAAiB;AAC5C,QAAM,MAAM,OAAO;AACnB,EAAI,QAAQ,YACZ,UAAU,SACV,8BAAgB,MAAM;AACpB,cAAU,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;AAAA,EACjC,CAAC;AACH,GAEa,UAAU,MAAM;AAC3B,QAAM,YAAQ;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR,GACM,mBAAe,uBAAS,GACxB,EAAE,MAAM,IAAI;AAElB,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO,aAAa;AAAA,IACpB,WAAW;AAAA,IACX,MAAM,MAAM,KAAK;AAAA,IACjB;AAAA,IACA;AAAA,IACA,aAAa,MAAM;AACjB,mBAAa,QAAQ,CAAC;AAAA,IACxB;AAAA,EACF;AACF,GAEa,YAAY,CAAC,UAAgD;AACxE,QAAM,UAAU,QAAQ,EAAE;AAE1B,SACE,4CAAC,wBAAM,MAAM,MAAM,UAAU,OAAO,SAEjC,oCAAQ,MAAM,MAAM,UAAU,CAAC,MAAM,QAAQ,CAAC,GACjD;AAEJ,GAEa,eAAe,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,SAAS;AACX,MAIM;AACJ,QAAM,OAAO,QAAQ,GACf,UAAU,KAAK,OAAO,KAAK,YAAY,UAAU,KAAK,MAAM,MAAM;AAExE,SACE,4CAAC,wBAAM,MAAM,UAAU,OAAO,SAE3B,oCAAQ,MAAM,UAAU,CAAC,QAAQ,CAAC,GACrC;AAEJ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/esm/LogoIcon.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { YStack } from "tamagui";
|
|
3
2
|
import { TamaguiIconSvg } from "./TamaguiLogoSvg";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const LogoIcon = ({ downscale = 2 }) => /* @__PURE__ */ jsx(
|
|
5
|
+
YStack,
|
|
6
|
+
{
|
|
7
|
+
tag: "span",
|
|
8
|
+
className: "unselectable",
|
|
9
|
+
alignSelf: "center",
|
|
10
|
+
marginVertical: -10,
|
|
11
|
+
pressStyle: {
|
|
12
|
+
opacity: 0.7,
|
|
13
|
+
scaleX: -1
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ jsx(
|
|
16
|
+
TamaguiIconSvg,
|
|
17
|
+
{
|
|
18
|
+
className: "tamagui-icon",
|
|
19
|
+
width: 450 / 8 / downscale,
|
|
20
|
+
height: 420 / 8 / downscale
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
);
|
|
27
25
|
export {
|
|
28
26
|
LogoIcon
|
|
29
27
|
};
|
package/dist/esm/LogoIcon.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LogoIcon.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,cAAc;AAEvB,SAAS,sBAAsB;AAczB;AAZC,MAAM,WAAW,CAAC,EAAE,YAAY,EAAE,MAErC;AAAA,EAAC;AAAA;AAAA,IACC,KAAI;AAAA,IACJ,WAAU;AAAA,IACV,WAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,YAAY;AAAA,MACV,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAO,MAAM,IAAI;AAAA,QACjB,QAAQ,MAAM,IAAI;AAAA;AAAA,IACpB;AAAA;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/LogoWords.js
CHANGED
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { memo, useEffect, useState } from "react";
|
|
3
2
|
import { Circle, XStack } from "tamagui";
|
|
4
3
|
import { useTint } from "./useTint";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
const LogoWords = memo(
|
|
6
6
|
({
|
|
7
7
|
downscale = 1,
|
|
8
8
|
animated,
|
|
9
9
|
...props
|
|
10
10
|
}) => {
|
|
11
|
-
const Tint = useTint();
|
|
12
|
-
const { tintIndex: index, tint } = Tint;
|
|
13
|
-
const tints = Tint.tints.map((t) => `var(--${t}9)`);
|
|
14
|
-
const [hovered, setHovered] = useState(false);
|
|
15
|
-
const [mounted, setMounted] = useState("start");
|
|
11
|
+
const Tint = useTint(), { tintIndex: index, tint } = Tint, tints = Tint.tints.map((t) => `var(--${t}9)`), [hovered, setHovered] = useState(!1), [mounted, setMounted] = useState("start");
|
|
16
12
|
useEffect(() => {
|
|
17
|
-
|
|
18
|
-
idle(() => {
|
|
13
|
+
(window.requestIdleCallback || setTimeout)(() => {
|
|
19
14
|
setTimeout(() => {
|
|
20
15
|
setMounted("animate");
|
|
21
|
-
}, 50)
|
|
22
|
-
setTimeout(() => {
|
|
16
|
+
}, 50), setTimeout(() => {
|
|
23
17
|
setMounted("done");
|
|
24
18
|
}, 1500);
|
|
25
19
|
});
|
|
26
20
|
}, []);
|
|
27
21
|
const getColor = (i) => {
|
|
28
22
|
const isActive = mounted !== "start" && i === index;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
if (hovered && isActive) {
|
|
33
|
-
return "var(--color)";
|
|
34
|
-
}
|
|
35
|
-
return tints[i];
|
|
36
|
-
};
|
|
37
|
-
const x = Math.round(
|
|
23
|
+
return mounted !== "done" || hovered ? isActive ? "var(--color)" : tints[index] : hovered && isActive ? "var(--color)" : tints[i];
|
|
24
|
+
}, x = Math.round(
|
|
38
25
|
index * 18.5 + 18 / 2 * (index / tints.length) + 3 + (index === 6 ? -3 : 0)
|
|
39
26
|
);
|
|
40
27
|
return /* @__PURE__ */ jsxs(
|
|
41
28
|
XStack,
|
|
42
29
|
{
|
|
43
|
-
onHoverIn: () => setHovered(
|
|
44
|
-
onHoverOut: () => setHovered(
|
|
30
|
+
onHoverIn: () => setHovered(!0),
|
|
31
|
+
onHoverOut: () => setHovered(!1),
|
|
45
32
|
paddingVertical: "$2",
|
|
46
33
|
marginVertical: "$-2",
|
|
47
34
|
position: "relative",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LogoWords.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "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",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/TamaguiLogo.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { forwardRef } from "react";
|
|
3
2
|
import { XStack, YStack } from "tamagui";
|
|
4
3
|
import { LogoIcon } from "./LogoIcon";
|
|
5
4
|
import { LogoWords } from "./LogoWords";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
const TamaguiLogo = forwardRef(
|
|
7
|
-
({ showWords, downscale, animated, ...props }, ref) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
);
|
|
23
|
-
}
|
|
7
|
+
({ showWords, downscale, animated, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8
|
+
XStack,
|
|
9
|
+
{
|
|
10
|
+
tag: "span",
|
|
11
|
+
ref,
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
space: "$5",
|
|
15
|
+
...props,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx(LogoIcon, { downscale: (downscale ?? 1) * (showWords ? 2 : 1.5) }),
|
|
18
|
+
showWords && /* @__PURE__ */ jsx(YStack, { tag: "span", marginBottom: -4, children: /* @__PURE__ */ jsx(LogoWords, { animated, downscale: downscale ?? 2 }) })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
)
|
|
24
22
|
);
|
|
25
23
|
export {
|
|
26
24
|
TamaguiLogo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TamaguiLogo.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,QAAqB,cAAc;AAE5C,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAWpB,SAQE,KARF;AAHC,MAAM,cAAc;AAAA,EACzB,CAAC,EAAE,WAAW,WAAW,UAAU,GAAG,MAAM,GAAc,QAEtD;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ;AAAA,MACA,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,OAAM;AAAA,MACL,GAAG;AAAA,MAEJ;AAAA,4BAAC,YAAS,YAAY,aAAa,MAAM,YAAY,IAAI,MAAM;AAAA,QAC9D,aACC,oBAAC,UAAO,KAAI,QAAO,cAAc,IAC/B,8BAAC,aAAU,UAAoB,WAAW,aAAa,GAAG,GAC5D;AAAA;AAAA;AAAA,EAEJ;AAGN;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|