@tamagui/logo 2.0.0-rc.8 → 2.0.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.
Files changed (107) hide show
  1. package/dist/cjs/LogoIcon.cjs +33 -29
  2. package/dist/cjs/LogoIcon.native.js +36 -34
  3. package/dist/cjs/LogoIcon.native.js.map +1 -1
  4. package/dist/cjs/LogoWords.cjs +63 -52
  5. package/dist/cjs/LogoWords.native.js +67 -60
  6. package/dist/cjs/LogoWords.native.js.map +1 -1
  7. package/dist/cjs/SeasonProvider.cjs +20 -15
  8. package/dist/cjs/SeasonProvider.native.js +20 -15
  9. package/dist/cjs/SeasonProvider.native.js.map +1 -1
  10. package/dist/cjs/TamaguiLogo.cjs +36 -32
  11. package/dist/cjs/TamaguiLogo.native.js +44 -42
  12. package/dist/cjs/TamaguiLogo.native.js.map +1 -1
  13. package/dist/cjs/TamaguiLogoSvg.cjs +12 -10
  14. package/dist/cjs/TamaguiLogoSvg.native.js +59 -57
  15. package/dist/cjs/TamaguiLogoSvg.native.js.map +1 -1
  16. package/dist/cjs/ThemeTint.cjs +40 -37
  17. package/dist/cjs/ThemeTint.native.js +43 -41
  18. package/dist/cjs/ThemeTint.native.js.map +1 -1
  19. package/dist/cjs/index.cjs +7 -5
  20. package/dist/cjs/index.native.js +7 -5
  21. package/dist/cjs/index.native.js.map +1 -1
  22. package/dist/cjs/tints.cjs +61 -47
  23. package/dist/cjs/tints.native.js +59 -49
  24. package/dist/cjs/tints.native.js.map +1 -1
  25. package/dist/cjs/useTint.cjs +90 -77
  26. package/dist/cjs/useTint.native.js +99 -90
  27. package/dist/cjs/useTint.native.js.map +1 -1
  28. package/dist/esm/LogoIcon.mjs +18 -16
  29. package/dist/esm/LogoIcon.mjs.map +1 -1
  30. package/dist/esm/LogoIcon.native.js.map +1 -1
  31. package/dist/esm/LogoWords.mjs +35 -26
  32. package/dist/esm/LogoWords.mjs.map +1 -1
  33. package/dist/esm/LogoWords.native.js +38 -33
  34. package/dist/esm/LogoWords.native.js.map +1 -1
  35. package/dist/esm/SeasonProvider.mjs +5 -2
  36. package/dist/esm/SeasonProvider.mjs.map +1 -1
  37. package/dist/esm/SeasonProvider.native.js +5 -2
  38. package/dist/esm/SeasonProvider.native.js.map +1 -1
  39. package/dist/esm/TamaguiLogo.mjs +20 -18
  40. package/dist/esm/TamaguiLogo.mjs.map +1 -1
  41. package/dist/esm/TamaguiLogo.native.js +2 -2
  42. package/dist/esm/TamaguiLogo.native.js.map +1 -1
  43. package/dist/esm/ThemeTint.mjs +25 -24
  44. package/dist/esm/ThemeTint.mjs.map +1 -1
  45. package/dist/esm/ThemeTint.native.js +27 -27
  46. package/dist/esm/ThemeTint.native.js.map +1 -1
  47. package/dist/esm/index.js +7 -7
  48. package/dist/esm/index.js.map +1 -6
  49. package/dist/esm/tints.mjs +37 -25
  50. package/dist/esm/tints.mjs.map +1 -1
  51. package/dist/esm/tints.native.js +34 -26
  52. package/dist/esm/tints.native.js.map +1 -1
  53. package/dist/esm/useTint.mjs +62 -51
  54. package/dist/esm/useTint.mjs.map +1 -1
  55. package/dist/esm/useTint.native.js +72 -65
  56. package/dist/esm/useTint.native.js.map +1 -1
  57. package/icon/index.js +1 -0
  58. package/icon/index.native.js +1 -0
  59. package/icon.cjs +1 -0
  60. package/package.json +13 -17
  61. package/types/LogoIcon.d.ts.map +2 -2
  62. package/types/LogoWords.d.ts +1 -1
  63. package/types/LogoWords.d.ts.map +4 -6
  64. package/types/SeasonProvider.d.ts.map +2 -2
  65. package/types/TamaguiLogo.d.ts +1 -1
  66. package/types/TamaguiLogo.d.ts.map +3 -3
  67. package/types/TamaguiLogoSvg.d.ts +1 -1
  68. package/types/TamaguiLogoSvg.d.ts.map +3 -3
  69. package/types/ThemeTint.d.ts +2 -2
  70. package/types/ThemeTint.d.ts.map +3 -3
  71. package/types/index.d.ts.map +2 -2
  72. package/types/tints.d.ts.map +2 -2
  73. package/types/useTint.d.ts.map +4 -6
  74. package/dist/cjs/LogoIcon.js +0 -46
  75. package/dist/cjs/LogoIcon.js.map +0 -6
  76. package/dist/cjs/LogoWords.js +0 -170
  77. package/dist/cjs/LogoWords.js.map +0 -6
  78. package/dist/cjs/SeasonProvider.js +0 -32
  79. package/dist/cjs/SeasonProvider.js.map +0 -6
  80. package/dist/cjs/TamaguiLogo.js +0 -43
  81. package/dist/cjs/TamaguiLogo.js.map +0 -6
  82. package/dist/cjs/TamaguiLogoSvg.js +0 -41
  83. package/dist/cjs/TamaguiLogoSvg.js.map +0 -6
  84. package/dist/cjs/ThemeTint.js +0 -38
  85. package/dist/cjs/ThemeTint.js.map +0 -6
  86. package/dist/cjs/index.js +0 -21
  87. package/dist/cjs/index.js.map +0 -6
  88. package/dist/cjs/tints.js +0 -91
  89. package/dist/cjs/tints.js.map +0 -6
  90. package/dist/cjs/useTint.js +0 -76
  91. package/dist/cjs/useTint.js.map +0 -6
  92. package/dist/esm/LogoIcon.js +0 -32
  93. package/dist/esm/LogoIcon.js.map +0 -6
  94. package/dist/esm/LogoWords.js +0 -149
  95. package/dist/esm/LogoWords.js.map +0 -6
  96. package/dist/esm/SeasonProvider.js +0 -18
  97. package/dist/esm/SeasonProvider.js.map +0 -6
  98. package/dist/esm/TamaguiLogo.js +0 -30
  99. package/dist/esm/TamaguiLogo.js.map +0 -6
  100. package/dist/esm/TamaguiLogoSvg.js +0 -25
  101. package/dist/esm/TamaguiLogoSvg.js.map +0 -6
  102. package/dist/esm/ThemeTint.js +0 -24
  103. package/dist/esm/ThemeTint.js.map +0 -6
  104. package/dist/esm/tints.js +0 -67
  105. package/dist/esm/tints.js.map +0 -6
  106. package/dist/esm/useTint.js +0 -54
  107. package/dist/esm/useTint.js.map +0 -6
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var ThemeTint_exports = {};
24
26
  __export(ThemeTint_exports, {
@@ -26,35 +28,35 @@ __export(ThemeTint_exports, {
26
28
  ThemeTintAlt: () => ThemeTintAlt
27
29
  });
28
30
  module.exports = __toCommonJS(ThemeTint_exports);
29
- var import_jsx_runtime = require("react/jsx-runtime"),
30
- import_web = require("@tamagui/web"),
31
- import_useTint = require("./useTint.native.js"),
32
- ThemeTint = function (param) {
33
- var {
34
- disable,
35
- children,
36
- ...rest
37
- } = param,
38
- curTint = (0, import_useTint.useTint)().tint;
39
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
40
- ...rest,
41
- name: disable ? null : curTint,
42
- children
43
- });
44
- },
45
- ThemeTintAlt = function (param) {
46
- var {
47
- children,
48
- disable,
49
- offset = 1,
50
- ...rest
51
- } = param,
52
- curTint = (0, import_useTint.useTint)(offset).tintAlt,
53
- name = disable ? null : curTint;
54
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
55
- name,
56
- ...rest,
57
- children
58
- });
59
- };
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var import_web = require("@tamagui/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
+ };
60
62
  //# sourceMappingURL=ThemeTint.native.js.map
@@ -1 +1 @@
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,iBAEvC;AAEO,IAAAM,kBAAmB,GAAAC,OAAA;EAAAC,UAAA,GAAAD,OAAA;EAAAE,cAAA,GAAAF,OAAA;EAAAL,SAAA,YAAAA,CAAAQ,KAAA;IACxB;QAAAC,OAAA;QAAAC,QAAA;QAAA,GAAAC;MAAA,IAAAH,KAAA;MAAAI,OAAA,OAAAL,cAAA,CAAAM,OAAA,IAAAC,IAAA;IACA,0BAAAV,kBAAA,CAAAW,GAAA,EAAAT,UAAA,CAAAU,KAAA;MACA,GAAGL,IAAA;MACLM,IAAuD,EAAAR,OAAA,UAAAG,OAAA;MACrDF;IAEA;EAKF;EAEaT,YAAA,GAAe,SAAAA,CAACO,KAAA;IAC3B;QAAAE,QAAA;QAAAD,OAAA;QAAAS,MAAA;QAAA,GAAAP;MAAA,IAAAH,KAAA;MAAAI,OAAA,OAAAL,cAAA,CAAAM,OAAA,EAAAK,MAAA,EAAAC,OAAA;MAAAF,IAAA,GAAAR,OAAA,UAAAG,OAAA;IACA,0BAAAR,kBAAA,CAAAW,GAAA,EAAAT,UAAA,CAAAU,KAAA;MACAC,IAAA;MACA,GAAGN,IAAA;MACLD;IACE;EAEA","ignoreList":[]}
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":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +1 @@
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,2BADd,EAAAH,MAAA,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
+ {"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,2BADd,EAAAH,MAAA,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":[]}
@@ -2,33 +2,35 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
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);
32
34
  var tints_exports = {};
33
35
  __export(tints_exports, {
34
36
  getTints: () => getTints,
@@ -39,19 +41,19 @@ __export(tints_exports, {
39
41
  });
40
42
  module.exports = __toCommonJS(tints_exports);
41
43
  var import_react = __toESM(require("react"), 1);
42
- const listeners = /* @__PURE__ */new Set(),
43
- familiesValues = {
44
- tamagui: ["yellow", "yellow", "yellow", "gray", "red", "green", "blue"],
45
- xmas: ["red", "green", "red", "green", "red", "green", "red"],
46
- easter: ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"],
47
- halloween: ["yellow", "gray", "yellow", "gray", "yellow", "gray", "yellow"],
48
- valentine: ["red", "red", "red", "red", "red", "red", "red"],
49
- lunar: ["yellow", "red", "red", "red", "red", "red", "yellow"],
50
- stpatricks: ["green", "teal", "green", "teal", "green", "teal", "green"]
51
- },
52
- DEFAULT_FAMILY = "tamagui",
53
- familiesNames = Object.keys(familiesValues),
54
- families = familiesValues;
44
+ const listeners = /* @__PURE__ */new Set();
45
+ const familiesValues = {
46
+ tamagui: ["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", "teal", "green", "teal", "green", "teal", "green"]
53
+ };
54
+ const DEFAULT_FAMILY = "tamagui";
55
+ const familiesNames = Object.keys(familiesValues);
56
+ const families = familiesValues;
55
57
  let fam = DEFAULT_FAMILY;
56
58
  function getTints() {
57
59
  return {
@@ -62,27 +64,39 @@ function getTints() {
62
64
  }
63
65
  function useTints() {
64
66
  const [val, setVal] = import_react.default.useState(getTints());
65
- return import_react.default.useEffect(() => onTintFamilyChange(() => {
66
- import_react.default.startTransition(() => {
67
- setVal(getTints());
67
+ import_react.default.useEffect(() => {
68
+ return onTintFamilyChange(() => {
69
+ import_react.default.startTransition(() => {
70
+ setVal(getTints());
71
+ });
68
72
  });
69
- }), []), val;
73
+ }, []);
74
+ return val;
70
75
  }
71
76
  function setTintFamily(next) {
72
- if (!families[next]) throw "impossible";
73
- if (fam = next, typeof document < "u") {
77
+ if (!families[next]) throw `impossible`;
78
+ fam = next;
79
+ if (typeof document !== "undefined") {
74
80
  const root = document.documentElement.classList;
75
81
  familiesNames.forEach(s => {
76
- s !== "tamagui" && root.remove(`${s}-season`);
77
- }), next !== "tamagui" && root.add(`${next}-season`);
82
+ if (s !== "tamagui") {
83
+ root.remove(`${s}-season`);
84
+ }
85
+ });
86
+ if (next !== "tamagui") {
87
+ root.add(`${next}-season`);
88
+ }
78
89
  }
79
90
  import_react.default.startTransition(() => {
80
91
  listeners.forEach(l => l(next));
81
92
  });
82
93
  }
83
94
  const setNextTintFamily = () => {
84
- setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
85
- },
86
- onTintFamilyChange = cb => (listeners.add(cb), () => {
95
+ setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
96
+ };
97
+ const onTintFamilyChange = cb => {
98
+ listeners.add(cb);
99
+ return () => {
87
100
  listeners.delete(cb);
88
- });
101
+ };
102
+ };
@@ -4,33 +4,35 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  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: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
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);
34
36
  var tints_exports = {};
35
37
  __export(tints_exports, {
36
38
  getTints: () => getTints,
@@ -40,21 +42,21 @@ __export(tints_exports, {
40
42
  useTints: () => useTints
41
43
  });
42
44
  module.exports = __toCommonJS(tints_exports);
43
- var import_react = __toESM(require("react"), 1),
44
- listeners = /* @__PURE__ */new Set(),
45
- familiesValues = {
46
- tamagui: ["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", "teal", "green", "teal", "green", "teal", "green"]
53
- },
54
- DEFAULT_FAMILY = "tamagui",
55
- familiesNames = Object.keys(familiesValues),
56
- families = familiesValues,
57
- fam = DEFAULT_FAMILY;
45
+ var import_react = __toESM(require("react"), 1);
46
+ var listeners = /* @__PURE__ */new Set();
47
+ var familiesValues = {
48
+ tamagui: ["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", "teal", "green", "teal", "green", "teal", "green"]
55
+ };
56
+ var DEFAULT_FAMILY = "tamagui";
57
+ var familiesNames = Object.keys(familiesValues);
58
+ var families = familiesValues;
59
+ var fam = DEFAULT_FAMILY;
58
60
  function getTints() {
59
61
  return {
60
62
  name: fam || DEFAULT_FAMILY,
@@ -64,21 +66,28 @@ function getTints() {
64
66
  }
65
67
  function useTints() {
66
68
  var [val, setVal] = import_react.default.useState(getTints());
67
- return import_react.default.useEffect(function () {
69
+ import_react.default.useEffect(function () {
68
70
  return onTintFamilyChange(function () {
69
71
  import_react.default.startTransition(function () {
70
72
  setVal(getTints());
71
73
  });
72
74
  });
73
- }, []), val;
75
+ }, []);
76
+ return val;
74
77
  }
75
78
  function setTintFamily(next) {
76
- if (!families[next]) throw "impossible";
77
- if (fam = next, typeof document < "u") {
79
+ if (!families[next]) throw `impossible`;
80
+ fam = next;
81
+ if (typeof document !== "undefined") {
78
82
  var root = document.documentElement.classList;
79
83
  familiesNames.forEach(function (s) {
80
- s !== "tamagui" && root.remove(`${s}-season`);
81
- }), next !== "tamagui" && root.add(`${next}-season`);
84
+ if (s !== "tamagui") {
85
+ root.remove(`${s}-season`);
86
+ }
87
+ });
88
+ if (next !== "tamagui") {
89
+ root.add(`${next}-season`);
90
+ }
82
91
  }
83
92
  import_react.default.startTransition(function () {
84
93
  listeners.forEach(function (l) {
@@ -87,11 +96,12 @@ function setTintFamily(next) {
87
96
  });
88
97
  }
89
98
  var setNextTintFamily = function () {
90
- setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
91
- },
92
- onTintFamilyChange = function (cb) {
93
- return listeners.add(cb), function () {
94
- listeners.delete(cb);
95
- };
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);
96
105
  };
106
+ };
97
107
  //# sourceMappingURL=tints.native.js.map
@@ -1 +1 @@
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","tamagui","xmas","easter","halloween","valentine","lunar","stpatricks"],"sources":["../../src/tints.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,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,GAInC;EAAAC,SAAA,kBAAiB,IAAAC,GAAA;EAAAC,cAAA;IACrBC,OAAA,EAAS,CACT,QAAO,EACP,QAAQ,EACN,UACA,QACA,OACA,SACA;IACAC,IACA,GACF,OACA,SACE,OACA,SACA,OACA,SACA;IACAC,MACA,GACF,UACA,UACA,QAAQ,EACR,UAKI,UASF,QAAkB,EAEf,QAAS,CAKd;IAAOC,SACC,GACN,QAAO,EACP,QACF,UACF,QAEO,QAAS,EAKd,MAAO,EAEP,SAEI;IACEC,SAAA,EAAO,CACT,KAAC,EACF,KACE,EAGP,OAEO,KAAS,EACd,KAAK,EAIL,KAHA,EAIE,MAEA;IACEC,KAAI,GAGN,QAEI,EAGN,OAEA,OACE,OACD,OACH,OAEO,QAAM,CACX;IACFC,UAEa,GAGT,SACF,Q","ignoreList":[]}
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","tamagui","xmas","easter","halloween","valentine","lunar","stpatricks","DEFAULT_FAMILY","familiesNames","Object","keys","families","fam","name","tints"],"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;AAIzC,IAAAC,SAAM,kBAAiB,IAAAC,GAAA;AAAA,IACrBC,cAAU;EACVC,OAAO,GACP,QAAQ,EACN,UACA,UACA,QACA,OACA,SACA;EAEFC,IAAA,GACA,OACE,SACA,OACA,SACA,OACA,SACA;EAEFC,MAAA,GACA,UACA,QAAQ,EACR,UACF,UAIA,QAAM,EAEN,QAAM,EAGN,QAAM,CAIN;EAEOC,SAAS,GAKd,QAAO,EACL,MAAM,EACN,QAAO,EACP,QACF,UACF,QAEO,QAAS,CAKd;EAEAC,SAAA,GACE,OACE,OACE,OAAiB,KAClB,EACH,KAAC,EACH,KAAK,EAEL,KAAO,CACT;EAEOC,KAAA,EAAS,CACd,QAAK,EACL,KAAM,EAGN,KAAI,EACF,OAEA,OACE,OACE,SAAyB;EAC3BC,UACD,GAED,OAAI,EACF,QACF,SACF,QAEA,SACE,QACD;AAGI;AACL,IAAAC,cAAc;AAChB,IAAAC,aAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAX,cAAA;AAEO,IAAAY,QAAM,GAAAZ,cAAsB;AACjC,IAAAa,GAAA,GAAAL,cAAgB;AAChB,SAAOpB,QAAYA,CAAA;EACjB;IACF0B,IAAA,EAAAD,GAAA,IAAAL,cAAA;IACFO,KAAA,EAAAH,QAAA,CAAAC,GAAA,KAAAD,QAAA,CAAAX,OAAA","ignoreList":[]}