@hanzogui/logo 8.3.1 → 8.3.3

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 (129) hide show
  1. package/dist/cjs/GuiLogo.js +12 -0
  2. package/dist/cjs/GuiLogo.js.map +1 -0
  3. package/dist/cjs/GuiLogoSvg.js +19 -0
  4. package/dist/cjs/GuiLogoSvg.js.map +1 -0
  5. package/dist/cjs/LogoIcon.js +14 -0
  6. package/dist/cjs/LogoIcon.js.map +1 -0
  7. package/dist/cjs/LogoWords.js +80 -0
  8. package/dist/cjs/LogoWords.js.map +1 -0
  9. package/dist/cjs/SeasonProvider.js +42 -0
  10. package/dist/cjs/SeasonProvider.js.map +1 -0
  11. package/dist/cjs/ThemeTint.js +18 -0
  12. package/dist/cjs/ThemeTint.js.map +1 -0
  13. package/dist/cjs/index.js +11 -0
  14. package/dist/cjs/index.js.map +1 -0
  15. package/dist/cjs/package.json +1 -0
  16. package/dist/cjs/tints.js +102 -0
  17. package/dist/cjs/tints.js.map +1 -0
  18. package/dist/cjs/useTint.js +93 -0
  19. package/dist/cjs/useTint.js.map +1 -0
  20. package/dist/esm/GuiLogo.js +8 -0
  21. package/dist/esm/GuiLogo.js.map +1 -0
  22. package/dist/esm/GuiLogoSvg.js +15 -0
  23. package/dist/esm/GuiLogoSvg.js.map +1 -0
  24. package/dist/esm/LogoIcon.js +10 -0
  25. package/dist/esm/LogoIcon.js.map +1 -0
  26. package/dist/esm/LogoWords.js +76 -0
  27. package/dist/esm/LogoWords.js.map +1 -0
  28. package/dist/esm/SeasonProvider.js +39 -0
  29. package/dist/esm/SeasonProvider.js.map +1 -0
  30. package/dist/esm/ThemeTint.js +13 -0
  31. package/dist/esm/ThemeTint.js.map +1 -0
  32. package/dist/esm/index.js +8 -8
  33. package/dist/esm/index.js.map +1 -1
  34. package/dist/esm/tints.js +93 -0
  35. package/dist/esm/tints.js.map +1 -0
  36. package/dist/esm/useTint.js +83 -0
  37. package/dist/esm/useTint.js.map +1 -0
  38. package/package.json +29 -25
  39. package/src/GuiLogo.tsx +2 -2
  40. package/src/LogoIcon.tsx +1 -1
  41. package/src/LogoWords.tsx +1 -1
  42. package/src/SeasonProvider.tsx +1 -1
  43. package/src/ThemeTint.tsx +1 -1
  44. package/src/index.tsx +7 -7
  45. package/src/useTint.tsx +1 -1
  46. package/types/GuiLogo.d.ts +7 -8
  47. package/types/GuiLogo.d.ts.map +1 -11
  48. package/types/GuiLogoSvg.d.ts +12 -13
  49. package/types/GuiLogoSvg.d.ts.map +1 -11
  50. package/types/LogoIcon.d.ts +4 -5
  51. package/types/LogoIcon.d.ts.map +1 -11
  52. package/types/LogoWords.d.ts +5 -6
  53. package/types/LogoWords.d.ts.map +1 -11
  54. package/types/SeasonProvider.d.ts +3 -4
  55. package/types/SeasonProvider.d.ts.map +1 -11
  56. package/types/ThemeTint.d.ts +5 -6
  57. package/types/ThemeTint.d.ts.map +1 -11
  58. package/types/index.d.ts +7 -8
  59. package/types/index.d.ts.map +1 -11
  60. package/types/tints.d.ts +17 -16
  61. package/types/tints.d.ts.map +1 -11
  62. package/types/useTint.d.ts +22 -23
  63. package/types/useTint.d.ts.map +1 -11
  64. package/dist/cjs/GuiLogo.cjs +0 -59
  65. package/dist/cjs/GuiLogo.native.js +0 -63
  66. package/dist/cjs/GuiLogo.native.js.map +0 -1
  67. package/dist/cjs/GuiLogoSvg.cjs +0 -42
  68. package/dist/cjs/GuiLogoSvg.native.js +0 -50
  69. package/dist/cjs/GuiLogoSvg.native.js.map +0 -1
  70. package/dist/cjs/LogoIcon.cjs +0 -51
  71. package/dist/cjs/LogoIcon.native.js +0 -55
  72. package/dist/cjs/LogoIcon.native.js.map +0 -1
  73. package/dist/cjs/LogoWords.cjs +0 -130
  74. package/dist/cjs/LogoWords.native.js +0 -139
  75. package/dist/cjs/LogoWords.native.js.map +0 -1
  76. package/dist/cjs/SeasonProvider.cjs +0 -46
  77. package/dist/cjs/SeasonProvider.native.js +0 -57
  78. package/dist/cjs/SeasonProvider.native.js.map +0 -1
  79. package/dist/cjs/ThemeTint.cjs +0 -57
  80. package/dist/cjs/ThemeTint.native.js +0 -62
  81. package/dist/cjs/ThemeTint.native.js.map +0 -1
  82. package/dist/cjs/index.cjs +0 -26
  83. package/dist/cjs/index.native.js +0 -29
  84. package/dist/cjs/index.native.js.map +0 -1
  85. package/dist/cjs/tints.cjs +0 -102
  86. package/dist/cjs/tints.native.js +0 -107
  87. package/dist/cjs/tints.native.js.map +0 -1
  88. package/dist/cjs/useTint.cjs +0 -116
  89. package/dist/cjs/useTint.native.js +0 -128
  90. package/dist/cjs/useTint.native.js.map +0 -1
  91. package/dist/esm/GuiLogo.mjs +0 -34
  92. package/dist/esm/GuiLogo.mjs.map +0 -1
  93. package/dist/esm/GuiLogo.native.js +0 -35
  94. package/dist/esm/GuiLogo.native.js.map +0 -1
  95. package/dist/esm/GuiLogoSvg.mjs +0 -17
  96. package/dist/esm/GuiLogoSvg.mjs.map +0 -1
  97. package/dist/esm/GuiLogoSvg.native.js +0 -22
  98. package/dist/esm/GuiLogoSvg.native.js.map +0 -1
  99. package/dist/esm/LogoIcon.mjs +0 -26
  100. package/dist/esm/LogoIcon.mjs.map +0 -1
  101. package/dist/esm/LogoIcon.native.js +0 -27
  102. package/dist/esm/LogoIcon.native.js.map +0 -1
  103. package/dist/esm/LogoWords.mjs +0 -94
  104. package/dist/esm/LogoWords.mjs.map +0 -1
  105. package/dist/esm/LogoWords.native.js +0 -100
  106. package/dist/esm/LogoWords.native.js.map +0 -1
  107. package/dist/esm/SeasonProvider.mjs +0 -21
  108. package/dist/esm/SeasonProvider.mjs.map +0 -1
  109. package/dist/esm/SeasonProvider.native.js +0 -29
  110. package/dist/esm/SeasonProvider.native.js.map +0 -1
  111. package/dist/esm/ThemeTint.mjs +0 -31
  112. package/dist/esm/ThemeTint.mjs.map +0 -1
  113. package/dist/esm/ThemeTint.native.js +0 -33
  114. package/dist/esm/ThemeTint.native.js.map +0 -1
  115. package/dist/esm/index.mjs +0 -8
  116. package/dist/esm/index.mjs.map +0 -1
  117. package/dist/esm/index.native.js +0 -8
  118. package/dist/esm/index.native.js.map +0 -1
  119. package/dist/esm/tints.mjs +0 -62
  120. package/dist/esm/tints.mjs.map +0 -1
  121. package/dist/esm/tints.native.js +0 -64
  122. package/dist/esm/tints.native.js.map +0 -1
  123. package/dist/esm/useTint.mjs +0 -74
  124. package/dist/esm/useTint.mjs.map +0 -1
  125. package/dist/esm/useTint.native.js +0 -83
  126. package/dist/esm/useTint.native.js.map +0 -1
  127. package/icon/index.js +0 -1
  128. package/icon/index.native.js +0 -1
  129. package/icon.cjs +0 -1
@@ -1,139 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
36
- var LogoWords_exports = {};
37
- __export(LogoWords_exports, {
38
- LogoWords: () => LogoWords
39
- });
40
- module.exports = __toCommonJS(LogoWords_exports);
41
- var import_jsx_runtime = require("react/jsx-runtime");
42
- var import_react = __toESM(require("react"), 1);
43
- var import_gui = require("@hanzo/gui");
44
- var import_wordmarks = require("@hanzo/logo/wordmarks");
45
- var import_useTint = require("./useTint.native.js");
46
- var WORDMARK = import_wordmarks.WORDMARKS["Hanzo"];
47
- var [WM_X, WM_Y, WM_W, WM_H] = WORDMARK.box;
48
- var LogoWords = /* @__PURE__ */import_react.default.memo(function (param) {
49
- var {
50
- downscale = 1,
51
- animated,
52
- ...props
53
- } = param;
54
- var Tint = (0, import_useTint.useTint)();
55
- var [hovered, setHovered] = import_react.default.useState(false);
56
- var [mounted, setMounted] = import_react.default.useState("start");
57
- var {
58
- tintIndex: index
59
- } = Tint;
60
- var sections = Tint.tints.length;
61
- (0, import_react.useEffect)(function () {
62
- var idle = window.requestIdleCallback || setTimeout;
63
- idle(function () {
64
- setTimeout(function () {
65
- setMounted("animate");
66
- }, 50);
67
- setTimeout(function () {
68
- setMounted("done");
69
- }, 1500);
70
- });
71
- }, []);
72
- (0, import_react.useEffect)(function () {
73
- var handleKeyDown = function (event) {
74
- var i = Number.parseInt(event.key, 10) - 1;
75
- if (!Number.isNaN(i) && i >= 0 && i < Tint.tints.length) {
76
- Tint.setTintIndex(i);
77
- }
78
- };
79
- window.addEventListener("keydown", handleKeyDown);
80
- return function () {
81
- window.removeEventListener("keydown", handleKeyDown);
82
- };
83
- }, [Tint]);
84
- var [layout, setLayout] = (0, import_react.useState)();
85
- var fill = hovered ? `var(--${Tint.tints[index]}9)` : "var(--color12)";
86
- var width = 373 * (1 / downscale) * 0.3333333;
87
- var height = width * WM_H / WM_W;
88
- var dotX = Math.round(width / sections * (index + 0.5));
89
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_gui.XStack, {
90
- onMouseEnter: function () {
91
- return setHovered(true);
92
- },
93
- onMouseLeave: function () {
94
- return setHovered(false);
95
- },
96
- paddingVertical: "$2",
97
- "data-tauri-drag-region": true,
98
- marginVertical: "$-2",
99
- position: "relative",
100
- className: "logo-words",
101
- onLayout: function (e) {
102
- setLayout(e.nativeEvent.layout);
103
- },
104
- // @ts-ignore
105
- onMouseMove: function (e) {
106
- if (!layout) return;
107
- var x = e.clientX - layout.pageX;
108
- var sectionWidth = layout.width / sections;
109
- var section = Math.min(sections - 1, Math.max(0, Math.floor(x / sectionWidth)));
110
- Tint.setTintIndex(section);
111
- },
112
- ...props,
113
- children: [animated && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui.Circle, {
114
- transition: "medium",
115
- position: "absolute",
116
- top: 0,
117
- left: 0,
118
- y: mounted === "start" ? -30 : -4,
119
- x: dotX,
120
- size: 4,
121
- backgroundColor: "$color12"
122
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("svg", {
123
- "data-tauri-drag-region": true,
124
- role: "img",
125
- "aria-label": "Hanzo",
126
- width,
127
- height,
128
- viewBox: `${WM_X} ${-WM_Y - WM_H} ${WM_W} ${WM_H}`,
129
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)("g", {
130
- transform: "scale(1,-1)",
131
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
132
- d: WORDMARK.d,
133
- fill
134
- })
135
- })
136
- })]
137
- });
138
- });
139
- //# sourceMappingURL=LogoWords.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","LogoWords_exports","__export","LogoWords","module","exports","import_jsx_runtime","require","import_react","__toESM","import_gui","import_wordmarks","import_useTint","WORDMARK","WORDMARKS","WM_X","WM_Y","WM_W","WM_H","box","default","memo","param","downscale","animated","props","Tint","useTint","hovered","setHovered","useState","mounted","setMounted","tintIndex","index","sections","tints","length","useEffect","idle","window","requestIdleCallback","setTimeout","handleKeyDown","event","i","Number","parseInt","key","isNaN","setTintIndex","addEventListener","removeEventListener","layout","setLayout","fill","width","height","dotX","Math","round","jsxs","XStack","onMouseEnter","onMouseLeave","paddingVertical","marginVertical","position","className","onLayout","e","nativeEvent","onMouseMove","x","clientX","pageX","sectionWidth","section","min","max","floor","children","jsx","Circle","transition","top","left","y","size","backgroundColor","role","viewBox","transform","d"],"sources":["../../src/LogoWords.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA2C,CAAAK,iBAAA;AAE3C,IAAAK,kBAA+B,GAAAC,OAAA;AAC/B,IAAAC,YAAA,GAAAC,OAA0B,CAAAF,OAAA;AAC1B,IAAAG,UAAA,GAAAH,OAAwB;AAgFpB,IAAAI,gBAAA,GAAAJ,OAAA;AA5DJ,IAAAK,cAAiB,GAAAL,OAAA;AACjB,IAAAM,QAAO,GAAMF,gBAAgB,CAAAG,SAAI,CAAS;AAEnC,KAAAC,IAAM,EAAAC,IAAA,EAAAC,IAST,EAAAC,IAAA,IAAAL,QAAM,CAAAM,GAAA;AACR,IAAAhB,SAAM,kBAAOK,YAAQ,CAAAY,OAAA,CAAAC,IAAA,WAAAC,KAAA;EACrB;IAAMC,SAAC,GAAS;IAAAC,QAAU;IAAI,GAAAC;EAAA,IAAAH,KAAA;EAC9B,IAAAI,IAAO,OAAAd,cAAmB,CAAIe,OAAA;EAE9B,KAAAC,OAAQ,EAAAC,UAAW,CAAM,GAAArB,YAAI,CAAAY,OAAA,CAAAU,QAAA;EAC7B,KAAAC,OAAM,EAAAC,UAAgB,IAAMxB,YAAA,CAAAY,OAAA,CAAAU,QAAA;EAE5B;IAAAG,SAAA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oreList":[]}
@@ -1,46 +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) __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 SeasonProvider_exports = {};
24
- __export(SeasonProvider_exports, {
25
- SeasonProvider: () => SeasonProvider
26
- });
27
- module.exports = __toCommonJS(SeasonProvider_exports);
28
- var import_react = require("react");
29
- var import_tints = require("./tints.cjs");
30
- var import_jsx_runtime = require("react/jsx-runtime");
31
- function useSeasonSync() {
32
- (0, import_react.useEffect)(() => {
33
- const computed = window.__GUI_SEASON__;
34
- if (computed) {
35
- (0, import_tints.setTintFamily)(computed);
36
- }
37
- }, []);
38
- }
39
- function SeasonProvider({
40
- children
41
- }) {
42
- useSeasonSync();
43
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
44
- children
45
- });
46
- }
@@ -1,57 +0,0 @@
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 SeasonProvider_exports = {};
26
- __export(SeasonProvider_exports, {
27
- SeasonProvider: () => SeasonProvider
28
- });
29
- module.exports = __toCommonJS(SeasonProvider_exports);
30
- var import_jsx_runtime = require("react/jsx-runtime");
31
- var import_react = require("react");
32
- var import_tints = require("./tints.native.js");
33
- function useSeasonSync() {
34
- (0, import_react.useEffect)(function () {
35
- var computed = window.__GUI_SEASON__;
36
- if (computed) {
37
- (0, import_tints.setTintFamily)(computed);
38
- }
39
- }, []);
40
- }
41
- function SeasonProvider(param) {
42
- var {
43
- children
44
- } = param;
45
- useSeasonSync();
46
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
47
- children: (/* disabled because were launchig v2 and its lunar new year */
48
- /* <script
49
- suppressHydrationWarning
50
- dangerouslySetInnerHTML={{
51
- __html: getInlineScript(),
52
- }}
53
- /> */
54
- children)
55
- });
56
- }
57
- //# sourceMappingURL=SeasonProvider.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SeasonProvider_exports","__export","SeasonProvider","module","exports","import_jsx_runtime","require","import_react","import_tints","useSeasonSync","useEffect","computed","window","__GUI_SEASON__","setTintFamily","param","children","jsx","Fragment"],"sources":["../../src/SeasonProvider.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA0B,CAAAK,sBAAA;AAC1B,IAAAK,kBAA+C,GAAAC,OAAA;AA2C3C,IAAAC,YAAA,GAAAD,OAAA;AAjBJ,IAAAE,YAAS,GAAAF,OAAgB;AACvB,SAAAG,cAAA;EACE,IAAAF,YAAM,CAAAG,SAA2B;IACjC,IAAIC,QAAA,GAAUC,MAAA,CAAAC,cAAA;IACZ,IAAAF,QAAA;MACF,IAAAH,YAAA,CAAAM,aAAA,EAAAH,QAAA;IACF;EACF;AAEO;AAAwB,SAC7BT,eAAAa,KAAA;EACF,IAEoB;IAAAC;EAAA,IAAAD,KAAA;EAClBN,aAAA,CAAc;EAEd,OACE,mBAAAJ,kBAAA,CAAAY,GAAA,EAAAZ,kBAAA,CAAAa,QAAA;IAWJF,QAAA,G","ignoreList":[]}
@@ -1,57 +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) __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 ThemeTint_exports = {};
24
- __export(ThemeTint_exports, {
25
- ThemeTint: () => ThemeTint,
26
- ThemeTintAlt: () => ThemeTintAlt
27
- });
28
- module.exports = __toCommonJS(ThemeTint_exports);
29
- var import_web = require("@hanzogui/web");
30
- var import_useTint = require("./useTint.cjs");
31
- var import_jsx_runtime = require("react/jsx-runtime");
32
- const ThemeTint = ({
33
- disable,
34
- children,
35
- ...rest
36
- }) => {
37
- const curTint = (0, import_useTint.useTint)().tint;
38
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
39
- ...rest,
40
- name: disable ? null : curTint,
41
- children
42
- });
43
- };
44
- const ThemeTintAlt = ({
45
- children,
46
- disable,
47
- offset = 1,
48
- ...rest
49
- }) => {
50
- const curTint = (0, import_useTint.useTint)(offset).tintAlt;
51
- const name = disable ? null : curTint;
52
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
53
- name,
54
- ...rest,
55
- children
56
- });
57
- };
@@ -1,62 +0,0 @@
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 ThemeTint_exports = {};
26
- __export(ThemeTint_exports, {
27
- ThemeTint: () => ThemeTint,
28
- ThemeTintAlt: () => ThemeTintAlt
29
- });
30
- module.exports = __toCommonJS(ThemeTint_exports);
31
- var import_jsx_runtime = require("react/jsx-runtime");
32
- var import_web = require("@hanzogui/web");
33
- var import_useTint = require("./useTint.native.js");
34
- var ThemeTint = function (param) {
35
- var {
36
- disable,
37
- children,
38
- ...rest
39
- } = param;
40
- var curTint = (0, import_useTint.useTint)().tint;
41
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
42
- ...rest,
43
- name: disable ? null : curTint,
44
- children
45
- });
46
- };
47
- var ThemeTintAlt = function (param) {
48
- var {
49
- children,
50
- disable,
51
- offset = 1,
52
- ...rest
53
- } = param;
54
- var curTint = (0, import_useTint.useTint)(offset).tintAlt;
55
- var name = disable ? null : curTint;
56
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
57
- name,
58
- ...rest,
59
- children
60
- });
61
- };
62
- //# sourceMappingURL=ThemeTint.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","ThemeTint_exports","__export","ThemeTint","ThemeTintAlt","module","exports","import_jsx_runtime","require","import_web","import_useTint","param","disable","children","rest","curTint","useTint","tint","jsx","Theme","name","offset","tintAlt"],"sources":["../../src/ThemeTint.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAuCV,YAAA,CAAAK,iBAAA;AAEvC,IAAAM,kBAAwB,GAAAC,OAAA;AAUpB,IAAAC,UAAA,GAAAD,OAAA;AARG,IAAAE,cAAkB,GAACF,OAAA;AAAA,IACxBL,SAAA,YAAAA,CAAAQ,KAAA;EACA;IAAAC,OAAA;IAAAC,QAAA;IAAA,GAAAC;EAAA,IAAAH,KAAA;EACA,IAAGI,OAAA,OAAAL,cAAA,CAAAM,OAAA,IAAAC,IAAA;EACL,OAAuD,mBAAAV,kBAAA,CAAAW,GAAA,EAAAT,UAAA,CAAAU,KAAA;IACrD,GAAAL,IAAM;IAENM,IAAA,EACER,OAAA,UAAAG,OAAA;IAIJF;EAEO;AAAsB;AAC3B,IACAT,YAAA,YAAAA,CAAAO,KAAA;EACA;IAAAE,QAAS;IAAAD,OAAA;IAAAS,MAAA;IAAA,GAAAP;EAAA,IAAAH,KAAA;EACT,IAAGI,OAAA,OAAAL,cAAA,CAAAM,OAAA,EAAAK,MAAA,EAAAC,OAAA;EACL,IAAwEF,IAAA,GAAAR,OAAA,UAAAG,OAAA;EACtE,OAAM,eAAU,IAAAR,kBAAQ,CAAAW,GAAA,EAAMT,UAAE,CAAAU,KAAA;IAChCC,IAAM;IACN,GAAAN,IACE;IAIJD","ignoreList":[]}
@@ -1,26 +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)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
18
- var index_exports = {};
19
- module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./GuiLogo.cjs"), module.exports);
21
- __reExport(index_exports, require("./LogoWords.cjs"), module.exports);
22
- __reExport(index_exports, require("./LogoIcon.cjs"), module.exports);
23
- __reExport(index_exports, require("./tints.cjs"), module.exports);
24
- __reExport(index_exports, require("./useTint.cjs"), module.exports);
25
- __reExport(index_exports, require("./ThemeTint.cjs"), module.exports);
26
- __reExport(index_exports, require("./SeasonProvider.cjs"), module.exports);
@@ -1,29 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
20
- var index_exports = {};
21
- module.exports = __toCommonJS(index_exports);
22
- __reExport(index_exports, require("./GuiLogo.native.js"), module.exports);
23
- __reExport(index_exports, require("./LogoWords.native.js"), module.exports);
24
- __reExport(index_exports, require("./LogoIcon.native.js"), module.exports);
25
- __reExport(index_exports, require("./tints.native.js"), module.exports);
26
- __reExport(index_exports, require("./useTint.native.js"), module.exports);
27
- __reExport(index_exports, require("./ThemeTint.native.js"), module.exports);
28
- __reExport(index_exports, require("./SeasonProvider.native.js"), module.exports);
29
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,yBAAAH,MADd,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,2BAFdH,MAAA,CAAAC,OAAA;AAGAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,uBAHd,GAAAH,MAAA,CAAAC,OAAA;AAIAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,uBAAAH,MAJd,CAAAC,OAAA;AAKAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,yBAAAH,MALd,CAAAC,OAAA;AAMAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,2BAAAH,MANd,CAAAC,OAAA","ignoreList":[]}
@@ -1,102 +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;
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 tints_exports = {};
35
- __export(tints_exports, {
36
- getTints: () => getTints,
37
- onTintFamilyChange: () => onTintFamilyChange,
38
- setNextTintFamily: () => setNextTintFamily,
39
- setTintFamily: () => setTintFamily,
40
- useTints: () => useTints
41
- });
42
- module.exports = __toCommonJS(tints_exports);
43
- var import_react = __toESM(require("react"), 1);
44
- const listeners = /* @__PURE__ */new Set();
45
- const familiesValues = {
46
- hanzogui: ["yellow", "yellow", "yellow", "gray", "red", "green", "blue"],
47
- xmas: ["red", "green", "red", "green", "red", "green", "red"],
48
- easter: ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"],
49
- halloween: ["yellow", "gray", "yellow", "gray", "yellow", "gray", "yellow"],
50
- valentine: ["red", "red", "red", "red", "red", "red", "red"],
51
- lunar: ["yellow", "red", "red", "red", "red", "red", "yellow"],
52
- stpatricks: ["green", "yellow", "green", "yellow", "green", "yellow", "green"]
53
- };
54
- const DEFAULT_FAMILY = "hanzogui";
55
- const familiesNames = Object.keys(familiesValues);
56
- const families = familiesValues;
57
- let fam = DEFAULT_FAMILY;
58
- function getTints() {
59
- return {
60
- name: fam || DEFAULT_FAMILY,
61
- tints: families[fam] || families.hanzogui,
62
- families
63
- };
64
- }
65
- function useTints() {
66
- const [val, setVal] = import_react.default.useState(getTints());
67
- import_react.default.useEffect(() => {
68
- return onTintFamilyChange(() => {
69
- import_react.default.startTransition(() => {
70
- setVal(getTints());
71
- });
72
- });
73
- }, []);
74
- return val;
75
- }
76
- function setTintFamily(next) {
77
- if (!families[next]) throw `impossible`;
78
- fam = next;
79
- if (typeof document !== "undefined") {
80
- const root = document.documentElement.classList;
81
- familiesNames.forEach(s => {
82
- if (s !== "hanzogui") {
83
- root.remove(`${s}-season`);
84
- }
85
- });
86
- if (next !== "hanzogui") {
87
- root.add(`${next}-season`);
88
- }
89
- }
90
- import_react.default.startTransition(() => {
91
- listeners.forEach(l => l(next));
92
- });
93
- }
94
- const setNextTintFamily = () => {
95
- setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
96
- };
97
- const onTintFamilyChange = cb => {
98
- listeners.add(cb);
99
- return () => {
100
- listeners.delete(cb);
101
- };
102
- };
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
36
- var tints_exports = {};
37
- __export(tints_exports, {
38
- getTints: () => getTints,
39
- onTintFamilyChange: () => onTintFamilyChange,
40
- setNextTintFamily: () => setNextTintFamily,
41
- setTintFamily: () => setTintFamily,
42
- useTints: () => useTints
43
- });
44
- module.exports = __toCommonJS(tints_exports);
45
- var import_react = __toESM(require("react"), 1);
46
- var listeners = /* @__PURE__ */new Set();
47
- var familiesValues = {
48
- hanzogui: ["yellow", "yellow", "yellow", "gray", "red", "green", "blue"],
49
- xmas: ["red", "green", "red", "green", "red", "green", "red"],
50
- easter: ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"],
51
- halloween: ["yellow", "gray", "yellow", "gray", "yellow", "gray", "yellow"],
52
- valentine: ["red", "red", "red", "red", "red", "red", "red"],
53
- lunar: ["yellow", "red", "red", "red", "red", "red", "yellow"],
54
- stpatricks: ["green", "yellow", "green", "yellow", "green", "yellow", "green"]
55
- };
56
- var DEFAULT_FAMILY = "hanzogui";
57
- var familiesNames = Object.keys(familiesValues);
58
- var families = familiesValues;
59
- var fam = DEFAULT_FAMILY;
60
- function getTints() {
61
- return {
62
- name: fam || DEFAULT_FAMILY,
63
- tints: families[fam] || families.hanzogui,
64
- families
65
- };
66
- }
67
- function useTints() {
68
- var [val, setVal] = import_react.default.useState(getTints());
69
- import_react.default.useEffect(function () {
70
- return onTintFamilyChange(function () {
71
- import_react.default.startTransition(function () {
72
- setVal(getTints());
73
- });
74
- });
75
- }, []);
76
- return val;
77
- }
78
- function setTintFamily(next) {
79
- if (!families[next]) throw `impossible`;
80
- fam = next;
81
- if (typeof document !== "undefined") {
82
- var root = document.documentElement.classList;
83
- familiesNames.forEach(function (s) {
84
- if (s !== "hanzogui") {
85
- root.remove(`${s}-season`);
86
- }
87
- });
88
- if (next !== "hanzogui") {
89
- root.add(`${next}-season`);
90
- }
91
- }
92
- import_react.default.startTransition(function () {
93
- listeners.forEach(function (l) {
94
- return l(next);
95
- });
96
- });
97
- }
98
- var setNextTintFamily = function () {
99
- setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
100
- };
101
- var onTintFamilyChange = function (cb) {
102
- listeners.add(cb);
103
- return function () {
104
- listeners.delete(cb);
105
- };
106
- };
107
- //# sourceMappingURL=tints.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","tints_exports","__export","getTints","onTintFamilyChange","setNextTintFamily","setTintFamily","useTints","module","exports","import_react","__toESM","require","listeners","Set","familiesValues","hanzogui","xmas","easter","halloween","valentine","lunar","stpatricks","DEFAULT_FAMILY","familiesNames","Object","keys","families","fam","name","tints","val","setVal","default","useState","useEffect","startTransition"],"sources":["../../src/tints.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAb,YAAkB,CAAAK,aAAA;AAKlB,IAAAS,YAAM,GAAYC,OAAA,CAAAC,OAAA,QAAuB;AAMzC,IAAAC,SAAM,kBAAiB,IAAAC,GAAA;AAAA,IACrBC,cAAW;EACXC,QAAO,GACP,QAAQ,EACN,UACA,UACA,QACA,OACA,SACA;EAEFC,IAAA,GACA,OACE,SACA,OACA,SACA,OACA,SACA;EAEFC,MAAA,GACA,UACA,QAAQ,EACR,UACE,UACA,UACA,UACA;EACAC,SACA,GACA,UACF,QACF,UAIA,MAAM,EAEN,QAAM,EAGN,MAAM,EAIF,QAAkB,CAEf;EAKLC,SAAO,GACL,OACA,OACA,OACF,OACF,OAEO,KAAS,EAKd,KAAO,CAEP;EACEC,KAAA,GACE,UACE,OAAiB,KAClB,EACH,KAAC,EACH,KAAK,EAEL,KAAO,EACT,SAEO;EACLC,UAAK,GACL,OAAM,EAGN,QAAI,EACF,OAAM,EAEN,UACE,OAAI,EACF,UAAyB,OAC3B;AAGF;AACE,IAA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