@hanzogui/logo 2.0.0-rc.41-hanzoai.5

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.
Files changed (97) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/HanzoguiLogo.cjs +59 -0
  3. package/dist/cjs/HanzoguiLogo.native.js +63 -0
  4. package/dist/cjs/HanzoguiLogo.native.js.map +1 -0
  5. package/dist/cjs/HanzoguiLogoSvg.cjs +74 -0
  6. package/dist/cjs/HanzoguiLogoSvg.native.js +80 -0
  7. package/dist/cjs/HanzoguiLogoSvg.native.js.map +1 -0
  8. package/dist/cjs/LogoIcon.cjs +51 -0
  9. package/dist/cjs/LogoIcon.native.js +55 -0
  10. package/dist/cjs/LogoIcon.native.js.map +1 -0
  11. package/dist/cjs/LogoWords.cjs +154 -0
  12. package/dist/cjs/LogoWords.native.js +182 -0
  13. package/dist/cjs/LogoWords.native.js.map +1 -0
  14. package/dist/cjs/SeasonProvider.cjs +46 -0
  15. package/dist/cjs/SeasonProvider.native.js +57 -0
  16. package/dist/cjs/SeasonProvider.native.js.map +1 -0
  17. package/dist/cjs/ThemeTint.cjs +57 -0
  18. package/dist/cjs/ThemeTint.native.js +62 -0
  19. package/dist/cjs/ThemeTint.native.js.map +1 -0
  20. package/dist/cjs/index.cjs +26 -0
  21. package/dist/cjs/index.native.js +29 -0
  22. package/dist/cjs/index.native.js.map +1 -0
  23. package/dist/cjs/tints.cjs +102 -0
  24. package/dist/cjs/tints.native.js +107 -0
  25. package/dist/cjs/tints.native.js.map +1 -0
  26. package/dist/cjs/useTint.cjs +116 -0
  27. package/dist/cjs/useTint.native.js +128 -0
  28. package/dist/cjs/useTint.native.js.map +1 -0
  29. package/dist/esm/HanzoguiLogo.mjs +34 -0
  30. package/dist/esm/HanzoguiLogo.mjs.map +1 -0
  31. package/dist/esm/HanzoguiLogo.native.js +35 -0
  32. package/dist/esm/HanzoguiLogo.native.js.map +1 -0
  33. package/dist/esm/HanzoguiLogoSvg.mjs +49 -0
  34. package/dist/esm/HanzoguiLogoSvg.mjs.map +1 -0
  35. package/dist/esm/HanzoguiLogoSvg.native.js +52 -0
  36. package/dist/esm/HanzoguiLogoSvg.native.js.map +1 -0
  37. package/dist/esm/LogoIcon.mjs +26 -0
  38. package/dist/esm/LogoIcon.mjs.map +1 -0
  39. package/dist/esm/LogoIcon.native.js +27 -0
  40. package/dist/esm/LogoIcon.native.js.map +1 -0
  41. package/dist/esm/LogoWords.mjs +118 -0
  42. package/dist/esm/LogoWords.mjs.map +1 -0
  43. package/dist/esm/LogoWords.native.js +143 -0
  44. package/dist/esm/LogoWords.native.js.map +1 -0
  45. package/dist/esm/SeasonProvider.mjs +21 -0
  46. package/dist/esm/SeasonProvider.mjs.map +1 -0
  47. package/dist/esm/SeasonProvider.native.js +29 -0
  48. package/dist/esm/SeasonProvider.native.js.map +1 -0
  49. package/dist/esm/ThemeTint.mjs +31 -0
  50. package/dist/esm/ThemeTint.mjs.map +1 -0
  51. package/dist/esm/ThemeTint.native.js +33 -0
  52. package/dist/esm/ThemeTint.native.js.map +1 -0
  53. package/dist/esm/index.js +8 -0
  54. package/dist/esm/index.js.map +1 -0
  55. package/dist/esm/index.mjs +8 -0
  56. package/dist/esm/index.mjs.map +1 -0
  57. package/dist/esm/index.native.js +8 -0
  58. package/dist/esm/index.native.js.map +1 -0
  59. package/dist/esm/tints.mjs +62 -0
  60. package/dist/esm/tints.mjs.map +1 -0
  61. package/dist/esm/tints.native.js +64 -0
  62. package/dist/esm/tints.native.js.map +1 -0
  63. package/dist/esm/useTint.mjs +74 -0
  64. package/dist/esm/useTint.mjs.map +1 -0
  65. package/dist/esm/useTint.native.js +83 -0
  66. package/dist/esm/useTint.native.js.map +1 -0
  67. package/icon/index.js +1 -0
  68. package/icon/index.native.js +1 -0
  69. package/icon.cjs +1 -0
  70. package/package.json +58 -0
  71. package/src/HanzoguiLogo.tsx +40 -0
  72. package/src/HanzoguiLogoSvg.tsx +27 -0
  73. package/src/LogoIcon.tsx +31 -0
  74. package/src/LogoWords.tsx +186 -0
  75. package/src/SeasonProvider.tsx +57 -0
  76. package/src/ThemeTint.tsx +32 -0
  77. package/src/index.tsx +7 -0
  78. package/src/tints.tsx +112 -0
  79. package/src/useTint.tsx +116 -0
  80. package/types/HanzoguiLogo.d.ts +13 -0
  81. package/types/HanzoguiLogo.d.ts.map +11 -0
  82. package/types/HanzoguiLogoSvg.d.ts +8 -0
  83. package/types/HanzoguiLogoSvg.d.ts.map +11 -0
  84. package/types/LogoIcon.d.ts +7 -0
  85. package/types/LogoIcon.d.ts.map +11 -0
  86. package/types/LogoWords.d.ts +8 -0
  87. package/types/LogoWords.d.ts.map +11 -0
  88. package/types/SeasonProvider.d.ts +6 -0
  89. package/types/SeasonProvider.d.ts.map +11 -0
  90. package/types/ThemeTint.d.ts +11 -0
  91. package/types/ThemeTint.d.ts.map +11 -0
  92. package/types/index.d.ts +9 -0
  93. package/types/index.d.ts.map +11 -0
  94. package/types/tints.d.ts +31 -0
  95. package/types/tints.d.ts.map +11 -0
  96. package/types/useTint.d.ts +31 -0
  97. package/types/useTint.d.ts.map +11 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,59 @@
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: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var HanzoguiLogo_exports = {};
24
+ __export(HanzoguiLogo_exports, {
25
+ HanzoguiLogo: () => HanzoguiLogo
26
+ });
27
+ module.exports = __toCommonJS(HanzoguiLogo_exports);
28
+ var import_hanzogui = require("hanzogui");
29
+ var import_LogoIcon = require("./LogoIcon.cjs");
30
+ var import_LogoWords = require("./LogoWords.cjs");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ const HanzoguiLogo = ({
33
+ showWords,
34
+ downscale,
35
+ animated,
36
+ color,
37
+ ref,
38
+ ...props
39
+ }) => {
40
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_hanzogui.XStack, {
41
+ render: "span",
42
+ ref,
43
+ alignItems: "center",
44
+ justifyContent: "center",
45
+ gap: "$5",
46
+ ...props,
47
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoIcon.LogoIcon, {
48
+ downscale: (downscale ?? 1) * (showWords ? 2 : 1.5),
49
+ color
50
+ }), showWords && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_hanzogui.YStack, {
51
+ render: "span",
52
+ marginBottom: -4,
53
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoWords.LogoWords, {
54
+ animated,
55
+ downscale: downscale ?? 2
56
+ })
57
+ })]
58
+ });
59
+ };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var HanzoguiLogo_exports = {};
26
+ __export(HanzoguiLogo_exports, {
27
+ HanzoguiLogo: () => HanzoguiLogo
28
+ });
29
+ module.exports = __toCommonJS(HanzoguiLogo_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_hanzogui = require("hanzogui");
32
+ var import_LogoIcon = require("./LogoIcon.native.js");
33
+ var import_LogoWords = require("./LogoWords.native.js");
34
+ var HanzoguiLogo = function (param) {
35
+ var {
36
+ showWords,
37
+ downscale,
38
+ animated,
39
+ color,
40
+ ref,
41
+ ...props
42
+ } = param;
43
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_hanzogui.XStack, {
44
+ render: "span",
45
+ ref,
46
+ alignItems: "center",
47
+ justifyContent: "center",
48
+ gap: "$5",
49
+ ...props,
50
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoIcon.LogoIcon, {
51
+ downscale: (downscale !== null && downscale !== void 0 ? downscale : 1) * (showWords ? 2 : 1.5),
52
+ color
53
+ }), showWords && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_hanzogui.YStack, {
54
+ render: "span",
55
+ marginBottom: -4,
56
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_LogoWords.LogoWords, {
57
+ animated,
58
+ downscale: downscale !== null && downscale !== void 0 ? downscale : 2
59
+ })
60
+ })]
61
+ });
62
+ };
63
+ //# sourceMappingURL=HanzoguiLogo.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","HanzoguiLogo_exports","__export","HanzoguiLogo","module","exports","import_jsx_runtime","require","import_hanzogui","import_LogoIcon","import_LogoWords","param","showWords","downscale","animated","color","ref","props","jsxs","XStack","render","alignItems","justifyContent","gap","children","jsx","LogoIcon","YStack","marginBottom","LogoWords"],"sources":["../../src/HanzoguiLogo.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAA,GAAAT,YAA+B,CAAAK,oBAAA;AAC/B,IAAAK,kBAAyB,GAAAC,OAAA;AACzB,IAAAC,eAAA,GAAAD,OAA0B;AAmBtB,IAAAE,eAAA,GAAAF,OAAA;AATG,IAAAG,gBAAM,GAAgBH,OAAA;AAAA,IAC3BJ,YAAA,YAAAA,CAAAQ,KAAA;EACA;IAAAC,SAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,KAAA;IAAAC,GAAA;IAAA,GAAAC;EAAA,IAAAN,KAAA;EACA,0BAAAL,kBAAA,CAAAY,IAAA,EAAAV,eAAA,CAAAW,MAAA;IACAC,MAAA;IACAJ,GAAA;IACAK,UAAG;IACLC,cAA8B;IAC5BC,GAAA,EACE;IAAC,GAAAN,KAAA;IAAAO,QAAA,GACC,eAAO,IAAAlB,kBAAA,CAAAmB,GAAA,EAAAhB,eAAA,CAAAiB,QAAA;MACPb,SAAA,GAAAA,SAAA,aAAAA,SAAA,cAAAA,SAAA,SAAAD,SAAA;MACAG;IACA,IACAH,SAAI,uBAAAN,kBAAA,CAAAmB,GAAA,EAAAjB,eAAA,CAAAmB,MAAA;MACHP,MAAG;MAEJQ,YAAA;MAAAJ,QAAA,qBAAAlB,kBAAC,CAAAmB,GAAA,EAAAf,gBAAA,CAAAmB,SAAS;QACTf,QAAA;QAGCD,SAAA,EAAAA,SAAA,aAAAA,SAAA,cAAAA,SAAA;MAAA;IAEJ","ignoreList":[]}
@@ -0,0 +1,74 @@
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: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var HanzoguiLogoSvg_exports = {};
24
+ __export(HanzoguiLogoSvg_exports, {
25
+ HanzoguiIconSvg: () => HanzoguiIconSvg
26
+ });
27
+ module.exports = __toCommonJS(HanzoguiLogoSvg_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ const HanzoguiIconSvg = ({
30
+ color = "#ECD20A",
31
+ ...props
32
+ }) => /* @__PURE__ */(0, import_jsx_runtime.jsx)("svg", {
33
+ width: "160px",
34
+ height: "160px",
35
+ viewBox: "0 0 160 160",
36
+ ...props,
37
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
38
+ id: "duck",
39
+ stroke: "none",
40
+ strokeWidth: "1",
41
+ fill: "none",
42
+ fillRule: "evenodd",
43
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("circle", {
44
+ id: "Oval",
45
+ cx: "80",
46
+ cy: "80",
47
+ r: "145"
48
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
49
+ id: "Group-Copy-5",
50
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
51
+ d: "M10,110 L10,100 L20,100 L20,90 L30,90 L30,80 L40,80 L40,30 L50,30 L50,10 L70,10 L70,0 L120,0 L120,10 L130,10 L130,20 L140,20 L140,40 L160,40 L160,50 L150,50 L150,60 L160,60 L160,70 L150,70 L150,80 L140,80 L140,100 L150,100 L150,110 L160,110 L160,140 L150,140 L150,150 L130,150 L130,160 L40,160 L40,150 L20,150 L20,140 L10,140 L10,130 L0,130 L0,110 L10,110 Z M90,40 L80,40 L80,50 L90,50 L90,40 Z M120,30 L110,30 L110,40 L120,40 L120,30 Z",
52
+ id: "Combined-Shape",
53
+ fill: color
54
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
55
+ id: "Group",
56
+ transform: "translate(80, 30)",
57
+ fill: "#000000",
58
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
59
+ id: "Rectangle-Copy-117",
60
+ x: "0",
61
+ y: "10",
62
+ width: "10",
63
+ height: "10"
64
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
65
+ id: "Rectangle-Copy-141",
66
+ x: "30",
67
+ y: "0",
68
+ width: "10",
69
+ height: "10"
70
+ })]
71
+ })]
72
+ })]
73
+ })
74
+ });
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var HanzoguiLogoSvg_exports = {};
26
+ __export(HanzoguiLogoSvg_exports, {
27
+ HanzoguiIconSvg: () => HanzoguiIconSvg
28
+ });
29
+ module.exports = __toCommonJS(HanzoguiLogoSvg_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var HanzoguiIconSvg = function (param) {
32
+ var {
33
+ color = "#ECD20A",
34
+ ...props
35
+ } = param;
36
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)("svg", {
37
+ width: "160px",
38
+ height: "160px",
39
+ viewBox: "0 0 160 160",
40
+ ...props,
41
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
42
+ id: "duck",
43
+ stroke: "none",
44
+ strokeWidth: "1",
45
+ fill: "none",
46
+ fillRule: "evenodd",
47
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("circle", {
48
+ id: "Oval",
49
+ cx: "80",
50
+ cy: "80",
51
+ r: "145"
52
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
53
+ id: "Group-Copy-5",
54
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
55
+ d: "M10,110 L10,100 L20,100 L20,90 L30,90 L30,80 L40,80 L40,30 L50,30 L50,10 L70,10 L70,0 L120,0 L120,10 L130,10 L130,20 L140,20 L140,40 L160,40 L160,50 L150,50 L150,60 L160,60 L160,70 L150,70 L150,80 L140,80 L140,100 L150,100 L150,110 L160,110 L160,140 L150,140 L150,150 L130,150 L130,160 L40,160 L40,150 L20,150 L20,140 L10,140 L10,130 L0,130 L0,110 L10,110 Z M90,40 L80,40 L80,50 L90,50 L90,40 Z M120,30 L110,30 L110,40 L120,40 L120,30 Z",
56
+ id: "Combined-Shape",
57
+ fill: color
58
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
59
+ id: "Group",
60
+ transform: "translate(80, 30)",
61
+ fill: "#000000",
62
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
63
+ id: "Rectangle-Copy-117",
64
+ x: "0",
65
+ y: "10",
66
+ width: "10",
67
+ height: "10"
68
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
69
+ id: "Rectangle-Copy-141",
70
+ x: "30",
71
+ y: "0",
72
+ width: "10",
73
+ height: "10"
74
+ })]
75
+ })]
76
+ })]
77
+ })
78
+ });
79
+ };
80
+ //# sourceMappingURL=HanzoguiLogoSvg.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","HanzoguiLogoSvg_exports","__export","HanzoguiIconSvg","module","exports","import_jsx_runtime","require","param","color","props","jsx","width","height","viewBox","children","jsxs","id","stroke","strokeWidth","fill","fillRule","cx","cy","r"],"sources":["../../src/HanzoguiLogoSvg.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAYMC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,uBAAA;AANC,IAAAK,kBAAM,GAAmBC,OAAA;AAAA,IAC9BJ,eAAQ,YAAAA,CAAAK,KAAA;EACR,IAAG;IAAAC,KAAA;IAAA,GAAAC;EAAA,IAAAF,KAAA;EACL,OACE,mBAAAF,kBAAA,CAAAK,GAAC,SAAI;IAEDC,KAAA;IACAC,MAAA;IACEC,OAAA;IAAA,GAACJ,KAAA;IAAAK,QAAA,qBAAAT,kBAAA,CAAAU,IAAA;MAAAC,EACC,QAAE;MAAAC,MACC;MAAAC,WACG;MAAAC,IAAA;MACPC,QAAA;MACDN,QAAA,GACE,mBAAAT,kBAAA,CAAAK,GAAC,UAAK;QACNM,EAAA;QACFK,EAAA;QACFC,EAAA;QAEJC,CAAA","ignoreList":[]}
@@ -0,0 +1,51 @@
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: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var LogoIcon_exports = {};
24
+ __export(LogoIcon_exports, {
25
+ LogoIcon: () => LogoIcon
26
+ });
27
+ module.exports = __toCommonJS(LogoIcon_exports);
28
+ var import_hanzogui = require("hanzogui");
29
+ var import_HanzoguiLogoSvg = require("./HanzoguiLogoSvg.cjs");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ const LogoIcon = ({
32
+ downscale = 2,
33
+ color
34
+ }) => {
35
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_hanzogui.YStack, {
36
+ render: "span",
37
+ className: "unselectable",
38
+ alignSelf: "center",
39
+ marginVertical: -10,
40
+ pressStyle: {
41
+ opacity: 0.7,
42
+ scaleX: -1
43
+ },
44
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_HanzoguiLogoSvg.HanzoguiIconSvg, {
45
+ className: "hanzogui-icon",
46
+ width: 450 / 8 / downscale,
47
+ height: 420 / 8 / downscale,
48
+ color
49
+ })
50
+ });
51
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var LogoIcon_exports = {};
26
+ __export(LogoIcon_exports, {
27
+ LogoIcon: () => LogoIcon
28
+ });
29
+ module.exports = __toCommonJS(LogoIcon_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_hanzogui = require("hanzogui");
32
+ var import_HanzoguiLogoSvg = require("./HanzoguiLogoSvg.native.js");
33
+ var LogoIcon = function (param) {
34
+ var {
35
+ downscale = 2,
36
+ color
37
+ } = param;
38
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_hanzogui.YStack, {
39
+ render: "span",
40
+ className: "unselectable",
41
+ alignSelf: "center",
42
+ marginVertical: -10,
43
+ pressStyle: {
44
+ opacity: 0.7,
45
+ scaleX: -1
46
+ },
47
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_HanzoguiLogoSvg.HanzoguiIconSvg, {
48
+ className: "hanzogui-icon",
49
+ width: 450 / 8 / downscale,
50
+ height: 420 / 8 / downscale,
51
+ color
52
+ })
53
+ });
54
+ };
55
+ //# sourceMappingURL=LogoIcon.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","LogoIcon_exports","__export","LogoIcon","module","exports","import_jsx_runtime","require","import_hanzogui","import_HanzoguiLogoSvg","param","downscale","color","jsx","YStack","render","className","alignSelf","marginVertical","pressStyle","opacity","scaleX","children","HanzoguiIconSvg","width","height"],"sources":["../../src/LogoIcon.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAuB,CAAAK,gBAAA;AACvB,IAAAK,kBAAA,GAAAC,OAAgC;AAqB1B,IAAAC,eAAA,GAAAD,OAAA;AAlBC,IAAAE,sBAAkB,GAAAF,OAAA;AAAA,IACvBJ,QAAA,GAAY,SAAAA,CAAAO,KAAA;EACZ;IAAAC,SAAA;IAAAC;EAAA,IAAAF,KAAA;EACF,OAGmB,mBAAAJ,kBAAA,CAAAO,GAAA,EAAAL,eAAA,CAAAM,MAAA;IACjBC,MACE;IAACC,SAAA;IAAAC,SAAA;IAAAC,cACQ;IAAAC,UACP;MACAC,OAAA,KAAU;MACVC,MAAA;IAAgB;IACJC,QACV,iBAAS,IAAAhB,kBAAA,CAAAO,GAAA,EAAAJ,sBAAA,CAAAc,eAAA;MAAAP,SACT,EAAQ;MACVQ,KAAA,YAAAb,SAAA;MAEAc,MAAA,YAAAd,SAAA;MAAAC;IAAC;EAAA;AACW","ignoreList":[]}
@@ -0,0 +1,154 @@
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
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
34
+ var LogoWords_exports = {};
35
+ __export(LogoWords_exports, {
36
+ LogoWords: () => LogoWords
37
+ });
38
+ module.exports = __toCommonJS(LogoWords_exports);
39
+ var import_react = __toESM(require("react"), 1);
40
+ var import_hanzogui = require("hanzogui");
41
+ var import_useTint = require("./useTint.cjs");
42
+ var import_jsx_runtime = require("react/jsx-runtime");
43
+ const defaultColors = ["var(--color12)", "var(--color12)", "var(--color12)", "var(--color12)", "var(--red9)", "var(--green9)", "var(--blue9)"];
44
+ const LogoWords = import_react.default.memo(({
45
+ downscale = 1,
46
+ animated,
47
+ ...props
48
+ }) => {
49
+ const Tint = (0, import_useTint.useTint)();
50
+ const [hovered, setHovered] = import_react.default.useState(false);
51
+ const [mounted, setMounted] = import_react.default.useState("start");
52
+ const {
53
+ tintIndex: index
54
+ } = Tint;
55
+ (0, import_react.useEffect)(() => {
56
+ const idle = window.requestIdleCallback || setTimeout;
57
+ idle(() => {
58
+ setTimeout(() => {
59
+ setMounted("animate");
60
+ }, 50);
61
+ setTimeout(() => {
62
+ setMounted("done");
63
+ }, 1500);
64
+ });
65
+ }, []);
66
+ (0, import_react.useEffect)(() => {
67
+ const handleKeyDown = event => {
68
+ const index2 = Number.parseInt(event.key, 10) - 1;
69
+ if (!Number.isNaN(index2) && index2 >= 0 && index2 < Tint.tints.length) {
70
+ Tint.setTintIndex(index2);
71
+ }
72
+ };
73
+ window.addEventListener("keydown", handleKeyDown);
74
+ return () => {
75
+ window.removeEventListener("keydown", handleKeyDown);
76
+ };
77
+ }, [Tint]);
78
+ const getColor = i => {
79
+ if (hovered) return `var(--${Tint.tints[i]}9)`;
80
+ return defaultColors[i];
81
+ };
82
+ const x = Math.round(index * 18.5 + 18 / 2 * (index / defaultColors.length) + 3 + (index === 6 ? -3 : 0));
83
+ const [layout, setLayout] = (0, import_react.useState)();
84
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_hanzogui.XStack, {
85
+ onMouseEnter: () => setHovered(true),
86
+ onMouseLeave: () => setHovered(false),
87
+ paddingVertical: "$2",
88
+ "data-tauri-drag-region": true,
89
+ marginVertical: "$-2",
90
+ position: "relative",
91
+ className: "logo-words",
92
+ onLayout: e => {
93
+ setLayout(e.nativeEvent.layout);
94
+ },
95
+ onMouseMove: e => {
96
+ if (!layout) return;
97
+ const x2 = e.clientX - layout.pageX;
98
+ const sectionWidth = layout.width / 7;
99
+ const section = Math.min(6, Math.floor(x2 / sectionWidth));
100
+ Tint.setTintIndex(section);
101
+ },
102
+ ...props,
103
+ children: [animated && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_hanzogui.Circle, {
104
+ transition: "medium",
105
+ position: "absolute",
106
+ top: 0,
107
+ left: 0,
108
+ y: mounted === "start" ? -30 : -4,
109
+ x,
110
+ size: 4,
111
+ backgroundColor: "$color12"
112
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("svg", {
113
+ "data-tauri-drag-region": true,
114
+ width: 373 * (1 / downscale) * 0.3333333,
115
+ height: 41 * (1 / downscale) * 0.3333333,
116
+ viewBox: "0 0 373 41",
117
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
118
+ "data-tauri-drag-region": true,
119
+ shapeRendering: "crispEdges",
120
+ fill: getColor(0),
121
+ 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"
122
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
123
+ shapeRendering: "crispEdges",
124
+ fill: getColor(1),
125
+ 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",
126
+ fillRule: "nonzero"
127
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
128
+ "data-tauri-drag-region": true,
129
+ shapeRendering: "crispEdges",
130
+ fill: getColor(2),
131
+ 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"
132
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
133
+ fill: getColor(3),
134
+ 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",
135
+ fillRule: "nonzero"
136
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
137
+ "data-tauri-drag-region": true,
138
+ shapeRendering: "crispEdges",
139
+ fill: getColor(4),
140
+ 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"
141
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
142
+ "data-tauri-drag-region": true,
143
+ shapeRendering: "crispEdges",
144
+ fill: getColor(5),
145
+ 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"
146
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
147
+ "data-tauri-drag-region": true,
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
+ })]
152
+ })]
153
+ });
154
+ });