@tamagui/logo 2.7.7 → 3.0.0-beta.643.1

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 (81) hide show
  1. package/dist/cjs/LogoIcon.cjs +30 -38
  2. package/dist/cjs/LogoIcon.native.cjs +46 -0
  3. package/dist/cjs/LogoIcon.native.js +31 -38
  4. package/dist/cjs/LogoIcon.native.js.map +1 -1
  5. package/dist/cjs/LogoWords.cjs +142 -137
  6. package/dist/cjs/LogoWords.native.cjs +166 -0
  7. package/dist/cjs/LogoWords.native.js +147 -161
  8. package/dist/cjs/LogoWords.native.js.map +1 -1
  9. package/dist/cjs/SeasonProvider.cjs +24 -31
  10. package/dist/cjs/SeasonProvider.native.cjs +42 -0
  11. package/dist/cjs/SeasonProvider.native.js +24 -37
  12. package/dist/cjs/SeasonProvider.native.js.map +1 -1
  13. package/dist/cjs/TamaguiLogo.cjs +35 -45
  14. package/dist/cjs/TamaguiLogo.native.cjs +52 -0
  15. package/dist/cjs/TamaguiLogo.native.js +36 -45
  16. package/dist/cjs/TamaguiLogo.native.js.map +1 -1
  17. package/dist/cjs/TamaguiLogoSvg.cjs +57 -63
  18. package/dist/cjs/TamaguiLogoSvg.native.cjs +73 -0
  19. package/dist/cjs/TamaguiLogoSvg.native.js +60 -65
  20. package/dist/cjs/TamaguiLogoSvg.native.js.map +1 -1
  21. package/dist/cjs/ThemeTint.cjs +31 -41
  22. package/dist/cjs/ThemeTint.native.cjs +51 -0
  23. package/dist/cjs/ThemeTint.native.js +33 -42
  24. package/dist/cjs/ThemeTint.native.js.map +1 -1
  25. package/dist/cjs/index.cjs +10 -11
  26. package/dist/cjs/index.native.cjs +27 -0
  27. package/dist/cjs/index.native.js +10 -10
  28. package/dist/cjs/index.native.js.map +1 -1
  29. package/dist/cjs/tints.cjs +122 -72
  30. package/dist/cjs/tints.native.cjs +156 -0
  31. package/dist/cjs/tints.native.js +125 -74
  32. package/dist/cjs/tints.native.js.map +1 -1
  33. package/dist/cjs/useTint.cjs +79 -87
  34. package/dist/cjs/useTint.native.cjs +119 -0
  35. package/dist/cjs/useTint.native.js +90 -97
  36. package/dist/cjs/useTint.native.js.map +1 -1
  37. package/dist/esm/LogoIcon.mjs +17 -20
  38. package/dist/esm/LogoIcon.mjs.map +1 -1
  39. package/dist/esm/LogoIcon.native.js +19 -22
  40. package/dist/esm/LogoIcon.native.js.map +1 -1
  41. package/dist/esm/LogoWords.mjs +126 -111
  42. package/dist/esm/LogoWords.mjs.map +1 -1
  43. package/dist/esm/LogoWords.native.js +132 -137
  44. package/dist/esm/LogoWords.native.js.map +1 -1
  45. package/dist/esm/SeasonProvider.mjs +11 -13
  46. package/dist/esm/SeasonProvider.mjs.map +1 -1
  47. package/dist/esm/SeasonProvider.native.js +12 -21
  48. package/dist/esm/SeasonProvider.native.js.map +1 -1
  49. package/dist/esm/TamaguiLogo.mjs +22 -27
  50. package/dist/esm/TamaguiLogo.mjs.map +1 -1
  51. package/dist/esm/TamaguiLogo.native.js +24 -29
  52. package/dist/esm/TamaguiLogo.native.js.map +1 -1
  53. package/dist/esm/TamaguiLogoSvg.mjs +44 -45
  54. package/dist/esm/TamaguiLogoSvg.mjs.map +1 -1
  55. package/dist/esm/TamaguiLogoSvg.native.js +48 -49
  56. package/dist/esm/TamaguiLogoSvg.native.js.map +1 -1
  57. package/dist/esm/ThemeTint.mjs +17 -24
  58. package/dist/esm/ThemeTint.mjs.map +1 -1
  59. package/dist/esm/ThemeTint.native.js +20 -27
  60. package/dist/esm/ThemeTint.native.js.map +1 -1
  61. package/dist/esm/index.js +13 -8
  62. package/dist/esm/index.mjs +13 -8
  63. package/dist/esm/index.native.js +13 -8
  64. package/dist/esm/tints.mjs +102 -44
  65. package/dist/esm/tints.mjs.map +1 -1
  66. package/dist/esm/tints.native.js +105 -47
  67. package/dist/esm/tints.native.js.map +1 -1
  68. package/dist/esm/useTint.mjs +57 -57
  69. package/dist/esm/useTint.mjs.map +1 -1
  70. package/dist/esm/useTint.native.js +68 -68
  71. package/dist/esm/useTint.native.js.map +1 -1
  72. package/package.json +5 -5
  73. package/src/LogoIcon.tsx +2 -4
  74. package/src/LogoWords.tsx +7 -9
  75. package/src/TamaguiLogo.tsx +1 -1
  76. package/types/LogoIcon.d.ts.map +1 -1
  77. package/types/LogoWords.d.ts.map +1 -1
  78. package/types/TamaguiLogo.d.ts.map +1 -1
  79. package/dist/esm/index.js.map +0 -1
  80. package/dist/esm/index.mjs.map +0 -1
  81. package/dist/esm/index.native.js.map +0 -1
@@ -1,49 +1,48 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- const TamaguiIconSvg = ({
3
- color = "#ECD20A",
4
- ...props
5
- }) => /* @__PURE__ */jsx("svg", {
6
- width: "160px",
7
- height: "160px",
8
- viewBox: "0 0 160 160",
9
- ...props,
10
- children: /* @__PURE__ */jsxs("g", {
11
- id: "duck",
12
- stroke: "none",
13
- strokeWidth: "1",
14
- fill: "none",
15
- fillRule: "evenodd",
16
- children: [/* @__PURE__ */jsx("circle", {
17
- id: "Oval",
18
- cx: "80",
19
- cy: "80",
20
- r: "145"
21
- }), /* @__PURE__ */jsxs("g", {
22
- id: "Group-Copy-5",
23
- children: [/* @__PURE__ */jsx("path", {
24
- 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",
25
- id: "Combined-Shape",
26
- fill: color
27
- }), /* @__PURE__ */jsxs("g", {
28
- id: "Group",
29
- transform: "translate(80, 30)",
30
- fill: "#000000",
31
- children: [/* @__PURE__ */jsx("rect", {
32
- id: "Rectangle-Copy-117",
33
- x: "0",
34
- y: "10",
35
- width: "10",
36
- height: "10"
37
- }), /* @__PURE__ */jsx("rect", {
38
- id: "Rectangle-Copy-141",
39
- x: "30",
40
- y: "0",
41
- width: "10",
42
- height: "10"
43
- })]
44
- })]
45
- })]
46
- })
2
+
3
+ const TamaguiIconSvg = ({ color = "#ECD20A", ...props }) => /* @__PURE__ */ jsx("svg", {
4
+ width: "160px",
5
+ height: "160px",
6
+ viewBox: "0 0 160 160",
7
+ ...props,
8
+ children: /* @__PURE__ */ jsxs("g", {
9
+ id: "duck",
10
+ stroke: "none",
11
+ strokeWidth: "1",
12
+ fill: "none",
13
+ fillRule: "evenodd",
14
+ children: [/* @__PURE__ */ jsx("circle", {
15
+ id: "Oval",
16
+ cx: "80",
17
+ cy: "80",
18
+ r: "145"
19
+ }), /* @__PURE__ */ jsxs("g", {
20
+ id: "Group-Copy-5",
21
+ children: [/* @__PURE__ */ jsx("path", {
22
+ 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",
23
+ id: "Combined-Shape",
24
+ fill: color
25
+ }), /* @__PURE__ */ jsxs("g", {
26
+ id: "Group",
27
+ transform: "translate(80, 30)",
28
+ fill: "#000000",
29
+ children: [/* @__PURE__ */ jsx("rect", {
30
+ id: "Rectangle-Copy-117",
31
+ x: "0",
32
+ y: "10",
33
+ width: "10",
34
+ height: "10"
35
+ }), /* @__PURE__ */ jsx("rect", {
36
+ id: "Rectangle-Copy-141",
37
+ x: "30",
38
+ y: "0",
39
+ width: "10",
40
+ height: "10"
41
+ })]
42
+ })]
43
+ })]
44
+ })
47
45
  });
46
+
48
47
  export { TamaguiIconSvg };
49
48
  //# sourceMappingURL=TamaguiLogoSvg.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","jsxs","TamaguiIconSvg","color","props","width","height","viewBox","children","id","stroke","strokeWidth","fill","fillRule","cx","cy","r","d","transform","x","y"],"sources":["../../src/TamaguiLogoSvg.tsx"],"sourcesContent":[null],"mappings":"AAYM,SAAAA,GAAA,EAOEC,IAAA,QAPF;AANC,MAAMC,cAAA,GAAiBA,CAAC;EAC7BC,KAAA,GAAQ;EACR,GAAGC;AACL,MACE,eAAAJ,GAAA,CAAC;EAAIK,KAAA,EAAM;EAAQC,MAAA,EAAO;EAAQC,OAAA,EAAQ;EAAe,GAAGH,KAAA;EAC1DI,QAAA,iBAAAP,IAAA,CAAC;IAAEQ,EAAA,EAAG;IAAOC,MAAA,EAAO;IAAOC,WAAA,EAAY;IAAIC,IAAA,EAAK;IAAOC,QAAA,EAAS;IAC9DL,QAAA,kBAAAR,GAAA,CAAC;MAAOS,EAAA,EAAG;MAAOK,EAAA,EAAG;MAAKC,EAAA,EAAG;MAAKC,CAAA,EAAE;IAAA,CAAM,GAC1C,eAAAf,IAAA,CAAC;MAAEQ,EAAA,EAAG;MACJD,QAAA,kBAAAR,GAAA,CAAC;QACCiB,CAAA,EAAE;QACFR,EAAA,EAAG;QACHG,IAAA,EAAMT;MAAA,CACP,GACD,eAAAF,IAAA,CAAC;QAAEQ,EAAA,EAAG;QAAQS,SAAA,EAAU;QAAoBN,IAAA,EAAK;QAC/CJ,QAAA,kBAAAR,GAAA,CAAC;UAAKS,EAAA,EAAG;UAAqBU,CAAA,EAAE;UAAIC,CAAA,EAAE;UAAKf,KAAA,EAAM;UAAKC,MAAA,EAAO;QAAA,CAAK,GAClE,eAAAN,GAAA,CAAC;UAAKS,EAAA,EAAG;UAAqBU,CAAA,EAAE;UAAKC,CAAA,EAAE;UAAIf,KAAA,EAAM;UAAKC,MAAA,EAAO;QAAA,CAAK;MAAA,CACpE;IAAA,CACF;EAAA,CACF;AAAA,CACF","ignoreList":[]}
1
+ {"version":3,"file":"TamaguiLogoSvg.js","names":[],"sources":["esm/TamaguiLogoSvg.js"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst TamaguiIconSvg = ({\n color = \"#ECD20A\",\n ...props\n}) => /* @__PURE__ */ jsx(\"svg\", { width: \"160px\", height: \"160px\", viewBox: \"0 0 160 160\", ...props, children: /* @__PURE__ */ jsxs(\"g\", { id: \"duck\", stroke: \"none\", strokeWidth: \"1\", fill: \"none\", fillRule: \"evenodd\", children: [\n /* @__PURE__ */ jsx(\"circle\", { id: \"Oval\", cx: \"80\", cy: \"80\", r: \"145\" }),\n /* @__PURE__ */ jsxs(\"g\", { id: \"Group-Copy-5\", children: [\n /* @__PURE__ */ jsx(\n \"path\",\n {\n 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\",\n id: \"Combined-Shape\",\n fill: color\n }\n ),\n /* @__PURE__ */ jsxs(\"g\", { id: \"Group\", transform: \"translate(80, 30)\", fill: \"#000000\", children: [\n /* @__PURE__ */ jsx(\"rect\", { id: \"Rectangle-Copy-117\", x: \"0\", y: \"10\", width: \"10\", height: \"10\" }),\n /* @__PURE__ */ jsx(\"rect\", { id: \"Rectangle-Copy-141\", x: \"30\", y: \"0\", width: \"10\", height: \"10\" })\n ] })\n ] })\n] }) });\nexport {\n TamaguiIconSvg\n};\n//# sourceMappingURL=TamaguiLogoSvg.js.map\n"],"mappings":";;;AACA,MAAM,kBAAkB,EACtB,QAAQ,WACR,GAAG,YACiB,oBAAI,OAAO;CAAE,OAAO;CAAS,QAAQ;CAAS,SAAS;CAAe,GAAG;CAAO,UAA0B,qBAAK,KAAK;EAAE,IAAI;EAAQ,QAAQ;EAAQ,aAAa;EAAK,MAAM;EAAQ,UAAU;EAAW,UAAU,CACrN,oBAAI,UAAU;GAAE,IAAI;GAAQ,IAAI;GAAM,IAAI;GAAM,GAAG;EAAM,CAAC,GAC1D,qBAAK,KAAK;GAAE,IAAI;GAAgB,UAAU,CACxC,oBACd,QACA;IACE,GAAG;IACH,IAAI;IACJ,MAAM;GACR,CACF,GACgB,qBAAK,KAAK;IAAE,IAAI;IAAS,WAAW;IAAqB,MAAM;IAAW,UAAU,CAClF,oBAAI,QAAQ;KAAE,IAAI;KAAsB,GAAG;KAAK,GAAG;KAAM,OAAO;KAAM,QAAQ;IAAK,CAAC,GACpF,oBAAI,QAAQ;KAAE,IAAI;KAAsB,GAAG;KAAM,GAAG;KAAK,OAAO;KAAM,QAAQ;IAAK,CAAC,CACtG;GAAE,CAAC,CACL;EAAE,CAAC,CACL;CAAE,CAAC;AAAE,CAAC"}
@@ -1,52 +1,51 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- var TamaguiIconSvg = function (param) {
3
- var {
4
- color = "#ECD20A",
5
- ...props
6
- } = param;
7
- return /* @__PURE__ */_jsx("svg", {
8
- width: "160px",
9
- height: "160px",
10
- viewBox: "0 0 160 160",
11
- ...props,
12
- children: /* @__PURE__ */_jsxs("g", {
13
- id: "duck",
14
- stroke: "none",
15
- strokeWidth: "1",
16
- fill: "none",
17
- fillRule: "evenodd",
18
- children: [/* @__PURE__ */_jsx("circle", {
19
- id: "Oval",
20
- cx: "80",
21
- cy: "80",
22
- r: "145"
23
- }), /* @__PURE__ */_jsxs("g", {
24
- id: "Group-Copy-5",
25
- children: [/* @__PURE__ */_jsx("path", {
26
- 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",
27
- id: "Combined-Shape",
28
- fill: color
29
- }), /* @__PURE__ */_jsxs("g", {
30
- id: "Group",
31
- transform: "translate(80, 30)",
32
- fill: "#000000",
33
- children: [/* @__PURE__ */_jsx("rect", {
34
- id: "Rectangle-Copy-117",
35
- x: "0",
36
- y: "10",
37
- width: "10",
38
- height: "10"
39
- }), /* @__PURE__ */_jsx("rect", {
40
- id: "Rectangle-Copy-141",
41
- x: "30",
42
- y: "0",
43
- width: "10",
44
- height: "10"
45
- })]
46
- })]
47
- })]
48
- })
49
- });
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+
3
+ var TamaguiIconSvg = function(param) {
4
+ var { color = "#ECD20A", ...props } = param;
5
+ return /* @__PURE__ */ jsx("svg", {
6
+ width: "160px",
7
+ height: "160px",
8
+ viewBox: "0 0 160 160",
9
+ ...props,
10
+ children: /* @__PURE__ */ jsxs("g", {
11
+ id: "duck",
12
+ stroke: "none",
13
+ strokeWidth: "1",
14
+ fill: "none",
15
+ fillRule: "evenodd",
16
+ children: [/* @__PURE__ */ jsx("circle", {
17
+ id: "Oval",
18
+ cx: "80",
19
+ cy: "80",
20
+ r: "145"
21
+ }), /* @__PURE__ */ jsxs("g", {
22
+ id: "Group-Copy-5",
23
+ children: [/* @__PURE__ */ jsx("path", {
24
+ 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",
25
+ id: "Combined-Shape",
26
+ fill: color
27
+ }), /* @__PURE__ */ jsxs("g", {
28
+ id: "Group",
29
+ transform: "translate(80, 30)",
30
+ fill: "#000000",
31
+ children: [/* @__PURE__ */ jsx("rect", {
32
+ id: "Rectangle-Copy-117",
33
+ x: "0",
34
+ y: "10",
35
+ width: "10",
36
+ height: "10"
37
+ }), /* @__PURE__ */ jsx("rect", {
38
+ id: "Rectangle-Copy-141",
39
+ x: "30",
40
+ y: "0",
41
+ width: "10",
42
+ height: "10"
43
+ })]
44
+ })]
45
+ })]
46
+ })
47
+ });
50
48
  };
49
+
51
50
  export { TamaguiIconSvg };
52
51
  //# sourceMappingURL=TamaguiLogoSvg.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","TamaguiIconSvg","param","color","props","width","height","viewBox","children","id","stroke","strokeWidth","fill","fillRule","cx","cy","r"],"sources":["../../src/TamaguiLogoSvg.tsx"],"sourcesContent":[null],"mappings":"AAYM,SAAAA,GAAA,IAOEC,IAAA,EAAAC,IAPF,IAAAC,KAAA;AANC,IAAAC,cAAM,YAAAA,CAAkBC,KAAA;EAC7B;IAAAC,KAAQ;IAAA,GAAAC;EAAA,IAAAF,KAAA;EACR,OAAG,eAAAJ,IAAA;IACLO,KACE;IAEIC,MAAA;IACAC,OAAA,eAAC;IACC,GAAAH,KAAA;IAAAI,QAAC,iBAAAR,KAAA;MAAAS,EAAA;MAAAC,MACG;MAAAC,WACC;MAAAC,IACH,QAAM;MAAAC,QAAA;MACPL,QAAA,GACD,eAAAV,IAAC,SAAK;QACJW,EAAA;QACAK,EAAA;QACFC,EAAA;QACFC,CAAA;MAEJ,I","ignoreList":[]}
1
+ {"version":3,"file":"TamaguiLogoSvg.native.js","names":[],"sources":["esm/TamaguiLogoSvg.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar TamaguiIconSvg = function(param) {\n var { color = \"#ECD20A\", ...props } = param;\n return /* @__PURE__ */ _jsx(\"svg\", {\n width: \"160px\",\n height: \"160px\",\n viewBox: \"0 0 160 160\",\n ...props,\n children: /* @__PURE__ */ _jsxs(\"g\", {\n id: \"duck\",\n stroke: \"none\",\n strokeWidth: \"1\",\n fill: \"none\",\n fillRule: \"evenodd\",\n children: [\n /* @__PURE__ */ _jsx(\"circle\", {\n id: \"Oval\",\n cx: \"80\",\n cy: \"80\",\n r: \"145\"\n }),\n /* @__PURE__ */ _jsxs(\"g\", {\n id: \"Group-Copy-5\",\n children: [\n /* @__PURE__ */ _jsx(\"path\", {\n 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\",\n id: \"Combined-Shape\",\n fill: color\n }),\n /* @__PURE__ */ _jsxs(\"g\", {\n id: \"Group\",\n transform: \"translate(80, 30)\",\n fill: \"#000000\",\n children: [\n /* @__PURE__ */ _jsx(\"rect\", {\n id: \"Rectangle-Copy-117\",\n x: \"0\",\n y: \"10\",\n width: \"10\",\n height: \"10\"\n }),\n /* @__PURE__ */ _jsx(\"rect\", {\n id: \"Rectangle-Copy-141\",\n x: \"30\",\n y: \"0\",\n width: \"10\",\n height: \"10\"\n })\n ]\n })\n ]\n })\n ]\n })\n });\n};\nexport {\n TamaguiIconSvg\n};\n//# sourceMappingURL=TamaguiLogoSvg.js.map\n"],"mappings":";;;AACA,IAAI,iBAAiB,SAAS,OAAO;CACnC,IAAI,EAAE,QAAQ,WAAW,GAAG,UAAU;CACtC,OAAuB,oBAAK,OAAO;EACjC,OAAO;EACP,QAAQ;EACR,SAAS;EACT,GAAG;EACH,UAA0B,qBAAM,KAAK;GACnC,IAAI;GACJ,QAAQ;GACR,aAAa;GACb,MAAM;GACN,UAAU;GACV,UAAU,CACQ,oBAAK,UAAU;IAC7B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,GAAG;GACL,CAAC,GACe,qBAAM,KAAK;IACzB,IAAI;IACJ,UAAU,CACQ,oBAAK,QAAQ;KAC3B,GAAG;KACH,IAAI;KACJ,MAAM;IACR,CAAC,GACe,qBAAM,KAAK;KACzB,IAAI;KACJ,WAAW;KACX,MAAM;KACN,UAAU,CACQ,oBAAK,QAAQ;MAC3B,IAAI;MACJ,GAAG;MACH,GAAG;MACH,OAAO;MACP,QAAQ;KACV,CAAC,GACe,oBAAK,QAAQ;MAC3B,IAAI;MACJ,GAAG;MACH,GAAG;MACH,OAAO;MACP,QAAQ;KACV,CAAC,CACH;IACF,CAAC,CACH;GACF,CAAC,CACH;EACF,CAAC;CACH,CAAC;AACH"}
@@ -1,31 +1,24 @@
1
1
  import { Theme } from "@tamagui/web";
2
2
  import { useTint } from "./useTint.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const ThemeTint = ({
5
- disable,
6
- children,
7
- ...rest
8
- }) => {
9
- const curTint = useTint().tint;
10
- return /* @__PURE__ */jsx(Theme, {
11
- ...rest,
12
- name: disable ? null : curTint,
13
- children
14
- });
4
+
5
+ const ThemeTint = ({ disable, children, ...rest }) => {
6
+ const curTint = useTint().tint;
7
+ return /* @__PURE__ */ jsx(Theme, {
8
+ ...rest,
9
+ name: disable ? null : curTint,
10
+ children
11
+ });
15
12
  };
16
- const ThemeTintAlt = ({
17
- children,
18
- disable,
19
- offset = 1,
20
- ...rest
21
- }) => {
22
- const curTint = useTint(offset).tintAlt;
23
- const name = disable ? null : curTint;
24
- return /* @__PURE__ */jsx(Theme, {
25
- name,
26
- ...rest,
27
- children
28
- });
13
+ const ThemeTintAlt = ({ children, disable, offset = 1, ...rest }) => {
14
+ const curTint = useTint(offset).tintAlt;
15
+ const name = disable ? null : curTint;
16
+ return /* @__PURE__ */ jsx(Theme, {
17
+ name,
18
+ ...rest,
19
+ children
20
+ });
29
21
  };
22
+
30
23
  export { ThemeTint, ThemeTintAlt };
31
24
  //# sourceMappingURL=ThemeTint.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["Theme","useTint","jsx","ThemeTint","disable","children","rest","curTint","tint","name","ThemeTintAlt","offset","tintAlt"],"sources":["../../src/ThemeTint.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAA0BA,KAAA,QAAa;AAEvC,SAASC,OAAA,QAAe;AAUpB,SAAAC,GAAA;AARG,MAAMC,SAAA,GAAYA,CAAC;EACxBC,OAAA;EACAC,QAAA;EACA,GAAGC;AACL,MAAuD;EACrD,MAAMC,OAAA,GAAUN,OAAA,CAAQ,EAAEO,IAAA;EAE1B,OACE,eAAAN,GAAA,CAACF,KAAA;IAAO,GAAGM,IAAA;IAAMG,IAAA,EAAML,OAAA,GAAU,OAAOG,OAAA;IACrCF;EAAA,CACH;AAEJ;AAEO,MAAMK,YAAA,GAAeA,CAAC;EAC3BL,QAAA;EACAD,OAAA;EACAO,MAAA,GAAS;EACT,GAAGL;AACL,MAAwE;EACtE,MAAMC,OAAA,GAAUN,OAAA,CAAQU,MAAM,EAAEC,OAAA;EAChC,MAAMH,IAAA,GAAOL,OAAA,GAAU,OAAOG,OAAA;EAC9B,OACE,eAAAL,GAAA,CAACF,KAAA;IAAMS,IAAA;IAAa,GAAGH,IAAA;IACpBD;EAAA,CACH;AAEJ","ignoreList":[]}
1
+ {"version":3,"file":"ThemeTint.js","names":[],"sources":["esm/ThemeTint.js"],"sourcesContent":["import { Theme } from \"@tamagui/web\";\nimport { useTint } from \"./useTint\";\nimport { jsx } from \"react/jsx-runtime\";\nconst ThemeTint = ({\n disable,\n children,\n ...rest\n}) => {\n const curTint = useTint().tint;\n return /* @__PURE__ */ jsx(Theme, { ...rest, name: disable ? null : curTint, children });\n};\nconst ThemeTintAlt = ({\n children,\n disable,\n offset = 1,\n ...rest\n}) => {\n const curTint = useTint(offset).tintAlt;\n const name = disable ? null : curTint;\n return /* @__PURE__ */ jsx(Theme, { name, ...rest, children });\n};\nexport {\n ThemeTint,\n ThemeTintAlt\n};\n//# sourceMappingURL=ThemeTint.js.map\n"],"mappings":";;;;;AAGA,MAAM,aAAa,EACjB,SACA,UACA,GAAG,WACC;CACJ,MAAM,UAAU,QAAQ,EAAE;CAC1B,OAAuB,oBAAI,OAAO;EAAE,GAAG;EAAM,MAAM,UAAU,OAAO;EAAS;CAAS,CAAC;AACzF;AACA,MAAM,gBAAgB,EACpB,UACA,SACA,SAAS,GACT,GAAG,WACC;CACJ,MAAM,UAAU,QAAQ,MAAM,EAAE;CAChC,MAAM,OAAO,UAAU,OAAO;CAC9B,OAAuB,oBAAI,OAAO;EAAE;EAAM,GAAG;EAAM;CAAS,CAAC;AAC/D"}
@@ -1,33 +1,26 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { Theme } from "@tamagui/web";
3
3
  import { useTint } from "./useTint.native.js";
4
- var ThemeTint = function (param) {
5
- var {
6
- disable,
7
- children,
8
- ...rest
9
- } = param;
10
- var curTint = useTint().tint;
11
- return /* @__PURE__ */_jsx(Theme, {
12
- ...rest,
13
- name: disable ? null : curTint,
14
- children
15
- });
4
+
5
+ var ThemeTint = function(param) {
6
+ var { disable, children, ...rest } = param;
7
+ var curTint = useTint().tint;
8
+ return /* @__PURE__ */ jsx(Theme, {
9
+ ...rest,
10
+ name: disable ? null : curTint,
11
+ children
12
+ });
16
13
  };
17
- var ThemeTintAlt = function (param) {
18
- var {
19
- children,
20
- disable,
21
- offset = 1,
22
- ...rest
23
- } = param;
24
- var curTint = useTint(offset).tintAlt;
25
- var name = disable ? null : curTint;
26
- return /* @__PURE__ */_jsx(Theme, {
27
- name,
28
- ...rest,
29
- children
30
- });
14
+ var ThemeTintAlt = function(param) {
15
+ var { children, disable, offset = 1, ...rest } = param;
16
+ var curTint = useTint(offset).tintAlt;
17
+ var name = disable ? null : curTint;
18
+ return /* @__PURE__ */ jsx(Theme, {
19
+ name,
20
+ ...rest,
21
+ children
22
+ });
31
23
  };
24
+
32
25
  export { ThemeTint, ThemeTintAlt };
33
26
  //# sourceMappingURL=ThemeTint.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","Theme","useTint","ThemeTint","param","disable","children","rest","curTint","tint","name","ThemeTintAlt","offset","tintAlt"],"sources":["../../src/ThemeTint.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAA0BA,GAAA,IAAAC,IAAA,QAAa;AAEvC,SAASC,KAAA,sBAAe;AAUpB,SAAAC,OAAA;AARG,IAAAC,SAAM,YAAAA,CAAaC,KAAA;EACxB;IAAAC,OAAA;IAAAC,QAAA;IAAA,GAAAC;EAAA,IAAAH,KAAA;EACA,IAAAI,OAAA,GAAAN,OAAA,GAAAO,IAAA;EACA,OAAG,eAAAT,IAAA,CAAAC,KAAA;IACL,GAAuDM,IAAA;IACrDG,IAAM,EAAAL,OAAA,GAAU,OAAQG,OAAE;IAE1BF;EAKF;AAEO;AAAsB,IAC3BK,YAAA,YAAAA,CAAAP,KAAA;EACA;IAAAE,QAAA;IAAAD,OAAA;IAAAO,MAAA;IAAA,GAAAL;EAAA,IAAAH,KAAA;EACA,IAAAI,OAAS,GAAAN,OAAA,CAAAU,MAAA,EAAAC,OAAA;EACT,IAAGH,IAAA,GAAAL,OAAA,UAAAG,OAAA;EACL,OAAwE,eAAAR,IAAA,CAAAC,KAAA;IACtES,IAAM;IACN,GAAAH,IAAM;IACND;EAKF","ignoreList":[]}
1
+ {"version":3,"file":"ThemeTint.native.js","names":[],"sources":["esm/ThemeTint.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Theme } from \"@tamagui/web\";\nimport { useTint } from \"./useTint\";\nvar ThemeTint = function(param) {\n var { disable, children, ...rest } = param;\n var curTint = useTint().tint;\n return /* @__PURE__ */ _jsx(Theme, {\n ...rest,\n name: disable ? null : curTint,\n children\n });\n};\nvar ThemeTintAlt = function(param) {\n var { children, disable, offset = 1, ...rest } = param;\n var curTint = useTint(offset).tintAlt;\n var name = disable ? null : curTint;\n return /* @__PURE__ */ _jsx(Theme, {\n name,\n ...rest,\n children\n });\n};\nexport {\n ThemeTint,\n ThemeTintAlt\n};\n//# sourceMappingURL=ThemeTint.js.map\n"],"mappings":";;;;;AAGA,IAAI,YAAY,SAAS,OAAO;CAC9B,IAAI,EAAE,SAAS,UAAU,GAAG,SAAS;CACrC,IAAI,UAAU,QAAQ,EAAE;CACxB,OAAuB,oBAAK,OAAO;EACjC,GAAG;EACH,MAAM,UAAU,OAAO;EACvB;CACF,CAAC;AACH;AACA,IAAI,eAAe,SAAS,OAAO;CACjC,IAAI,EAAE,UAAU,SAAS,SAAS,GAAG,GAAG,SAAS;CACjD,IAAI,UAAU,QAAQ,MAAM,EAAE;CAC9B,IAAI,OAAO,UAAU,OAAO;CAC5B,OAAuB,oBAAK,OAAO;EACjC;EACA,GAAG;EACH;CACF,CAAC;AACH"}
package/dist/esm/index.js CHANGED
@@ -1,8 +1,13 @@
1
- export * from "./TamaguiLogo.mjs";
2
- export * from "./LogoWords.mjs";
3
- export * from "./LogoIcon.mjs";
4
- export * from "./tints.mjs";
5
- export * from "./useTint.mjs";
6
- export * from "./ThemeTint.mjs";
7
- export * from "./SeasonProvider.mjs";
8
- //# sourceMappingURL=index.js.map
1
+ export * from "./TamaguiLogo.mjs"
2
+
3
+ export * from "./LogoWords.mjs"
4
+
5
+ export * from "./LogoIcon.mjs"
6
+
7
+ export * from "./tints.mjs"
8
+
9
+ export * from "./useTint.mjs"
10
+
11
+ export * from "./ThemeTint.mjs"
12
+
13
+ export * from "./SeasonProvider.mjs"
@@ -1,8 +1,13 @@
1
- export * from "./TamaguiLogo.mjs";
2
- export * from "./LogoWords.mjs";
3
- export * from "./LogoIcon.mjs";
4
- export * from "./tints.mjs";
5
- export * from "./useTint.mjs";
6
- export * from "./ThemeTint.mjs";
7
- export * from "./SeasonProvider.mjs";
8
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./TamaguiLogo.mjs"
2
+
3
+ export * from "./LogoWords.mjs"
4
+
5
+ export * from "./LogoIcon.mjs"
6
+
7
+ export * from "./tints.mjs"
8
+
9
+ export * from "./useTint.mjs"
10
+
11
+ export * from "./ThemeTint.mjs"
12
+
13
+ export * from "./SeasonProvider.mjs"
@@ -1,8 +1,13 @@
1
- export * from "./TamaguiLogo.native.js";
2
- export * from "./LogoWords.native.js";
3
- export * from "./LogoIcon.native.js";
4
- export * from "./tints.native.js";
5
- export * from "./useTint.native.js";
6
- export * from "./ThemeTint.native.js";
7
- export * from "./SeasonProvider.native.js";
8
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./TamaguiLogo.native.js"
2
+
3
+ export * from "./LogoWords.native.js"
4
+
5
+ export * from "./LogoIcon.native.js"
6
+
7
+ export * from "./tints.native.js"
8
+
9
+ export * from "./useTint.native.js"
10
+
11
+ export * from "./ThemeTint.native.js"
12
+
13
+ export * from "./SeasonProvider.native.js"
@@ -1,62 +1,120 @@
1
1
  import React from "react";
2
- const listeners = /* @__PURE__ */new Set();
2
+
3
+ const listeners = /* @__PURE__ */ new Set();
3
4
  const familiesValues = {
4
- tamagui: ["yellow", "yellow", "yellow", "gray", "red", "green", "blue"],
5
- xmas: ["red", "green", "red", "green", "red", "green", "red"],
6
- easter: ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"],
7
- halloween: ["yellow", "gray", "yellow", "gray", "yellow", "gray", "yellow"],
8
- valentine: ["red", "red", "red", "red", "red", "red", "red"],
9
- lunar: ["yellow", "red", "red", "red", "red", "red", "yellow"],
10
- stpatricks: ["green", "yellow", "green", "yellow", "green", "yellow", "green"]
5
+ tamagui: [
6
+ "yellow",
7
+ "yellow",
8
+ "yellow",
9
+ "gray",
10
+ "red",
11
+ "green",
12
+ "blue"
13
+ ],
14
+ xmas: [
15
+ "red",
16
+ "green",
17
+ "red",
18
+ "green",
19
+ "red",
20
+ "green",
21
+ "red"
22
+ ],
23
+ easter: [
24
+ "yellow",
25
+ "yellow",
26
+ "yellow",
27
+ "yellow",
28
+ "yellow",
29
+ "yellow",
30
+ "yellow"
31
+ ],
32
+ halloween: [
33
+ "yellow",
34
+ "gray",
35
+ "yellow",
36
+ "gray",
37
+ "yellow",
38
+ "gray",
39
+ "yellow"
40
+ ],
41
+ valentine: [
42
+ "red",
43
+ "red",
44
+ "red",
45
+ "red",
46
+ "red",
47
+ "red",
48
+ "red"
49
+ ],
50
+ lunar: [
51
+ "yellow",
52
+ "red",
53
+ "red",
54
+ "red",
55
+ "red",
56
+ "red",
57
+ "yellow"
58
+ ],
59
+ stpatricks: [
60
+ "green",
61
+ "yellow",
62
+ "green",
63
+ "yellow",
64
+ "green",
65
+ "yellow",
66
+ "green"
67
+ ]
11
68
  };
12
69
  const DEFAULT_FAMILY = "tamagui";
13
70
  const familiesNames = Object.keys(familiesValues);
14
71
  const families = familiesValues;
15
72
  let fam = DEFAULT_FAMILY;
16
73
  function getTints() {
17
- return {
18
- name: fam || DEFAULT_FAMILY,
19
- tints: families[fam] || families.tamagui,
20
- families
21
- };
74
+ return {
75
+ name: fam || DEFAULT_FAMILY,
76
+ tints: families[fam] || families.tamagui,
77
+ families
78
+ };
22
79
  }
23
80
  function useTints() {
24
- const [val, setVal] = React.useState(getTints());
25
- React.useEffect(() => {
26
- return onTintFamilyChange(() => {
27
- React.startTransition(() => {
28
- setVal(getTints());
29
- });
30
- });
31
- }, []);
32
- return val;
81
+ const [val, setVal] = React.useState(getTints());
82
+ React.useEffect(() => {
83
+ return onTintFamilyChange(() => {
84
+ React.startTransition(() => {
85
+ setVal(getTints());
86
+ });
87
+ });
88
+ }, []);
89
+ return val;
33
90
  }
34
91
  function setTintFamily(next) {
35
- if (!families[next]) throw `impossible`;
36
- fam = next;
37
- if (typeof document !== "undefined") {
38
- const root = document.documentElement.classList;
39
- familiesNames.forEach(s => {
40
- if (s !== "tamagui") {
41
- root.remove(`${s}-season`);
42
- }
43
- });
44
- if (next !== "tamagui") {
45
- root.add(`${next}-season`);
46
- }
47
- }
48
- React.startTransition(() => {
49
- listeners.forEach(l => l(next));
50
- });
92
+ if (!families[next]) throw `impossible`;
93
+ fam = next;
94
+ if (typeof document !== "undefined") {
95
+ const root = document.documentElement.classList;
96
+ familiesNames.forEach((s) => {
97
+ if (s !== "tamagui") {
98
+ root.remove(`${s}-season`);
99
+ }
100
+ });
101
+ if (next !== "tamagui") {
102
+ root.add(`${next}-season`);
103
+ }
104
+ }
105
+ React.startTransition(() => {
106
+ listeners.forEach((l) => l(next));
107
+ });
51
108
  }
52
109
  const setNextTintFamily = () => {
53
- setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
110
+ setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
54
111
  };
55
- const onTintFamilyChange = cb => {
56
- listeners.add(cb);
57
- return () => {
58
- listeners.delete(cb);
59
- };
112
+ const onTintFamilyChange = (cb) => {
113
+ listeners.add(cb);
114
+ return () => {
115
+ listeners.delete(cb);
116
+ };
60
117
  };
118
+
61
119
  export { getTints, onTintFamilyChange, setNextTintFamily, setTintFamily, useTints };
62
120
  //# sourceMappingURL=tints.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","listeners","Set","familiesValues","tamagui","xmas","easter","halloween","valentine","lunar","stpatricks","DEFAULT_FAMILY","familiesNames","Object","keys","families","fam","getTints","name","tints","useTints","val","setVal","useState","useEffect","onTintFamilyChange","startTransition","setTintFamily","next","document","root","documentElement","classList","forEach","s","remove","add","l","setNextTintFamily","indexOf","length","cb","delete"],"sources":["../../src/tints.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAKlB,MAAMC,SAAA,GAAY,mBAAIC,GAAA,CAAmB;AAIzC,MAAMC,cAAA,GAAiB;EACrBC,OAAA,EAAS,CAAC,UAAU,UAAU,UAAU,QAAQ,OAAO,SAAS,MAAM;EACtEC,IAAA,EAAM,CAAC,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,KAAK;EAC5DC,MAAA,EAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,SACF;EACAC,SAAA,EAAW,CACT,UACA,QACA,UACA,QACA,UACA,QACA,SACF;EACAC,SAAA,EAAW,CAAC,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;EAC3DC,KAAA,EAAO,CAAC,UAAU,OAAO,OAAO,OAAO,OAAO,OAAO,QAAQ;EAC7DC,UAAA,EAAY,CACV,SACA,UACA,SACA,UACA,SACA,UACA;AAEJ;AAIA,MAAMC,cAAA,GAAyB;AAE/B,MAAMC,aAAA,GAAgBC,MAAA,CAAOC,IAAA,CAAKX,cAAc;AAGhD,MAAMY,QAAA,GAAWZ,cAAA;AAIjB,IAAIa,GAAA,GAAkBL,cAAA;AAEf,SAASM,SAAA,EAId;EACA,OAAO;IACLC,IAAA,EAAMF,GAAA,IAAOL,cAAA;IACbQ,KAAA,EAAOJ,QAAA,CAASC,GAAG,KAAKD,QAAA,CAASX,OAAA;IACjCW;EACF;AACF;AAEO,SAASK,SAAA,EAId;EACA,MAAM,CAACC,GAAA,EAAKC,MAAM,IAAItB,KAAA,CAAMuB,QAAA,CAASN,QAAA,CAAS,CAAC;EAE/CjB,KAAA,CAAMwB,SAAA,CAAU,MAAM;IACpB,OAAOC,kBAAA,CAAmB,MAAM;MAC9BzB,KAAA,CAAM0B,eAAA,CAAgB,MAAM;QAC1BJ,MAAA,CAAOL,QAAA,CAAS,CAAC;MACnB,CAAC;IACH,CAAC;EACH,GAAG,EAAE;EAEL,OAAOI,GAAA;AACT;AAEO,SAASM,cAAcC,IAAA,EAAwB;EACpD,IAAI,CAACb,QAAA,CAASa,IAAI,GAAG,MAAM;EAC3BZ,GAAA,GAAMY,IAAA;EAGN,IAAI,OAAOC,QAAA,KAAa,aAAa;IACnC,MAAMC,IAAA,GAAOD,QAAA,CAASE,eAAA,CAAgBC,SAAA;IAEtCpB,aAAA,CAAcqB,OAAA,CAASC,CAAA,IAAM;MAC3B,IAAIA,CAAA,KAAM,WAAW;QACnBJ,IAAA,CAAKK,MAAA,CAAO,GAAGD,CAAC,SAAS;MAC3B;IACF,CAAC;IAED,IAAIN,IAAA,KAAS,WAAW;MACtBE,IAAA,CAAKM,GAAA,CAAI,GAAGR,IAAI,SAAS;IAC3B;EACF;EAEA5B,KAAA,CAAM0B,eAAA,CAAgB,MAAM;IAC1BzB,SAAA,CAAUgC,OAAA,CAASI,CAAA,IAAMA,CAAA,CAAET,IAAI,CAAC;EAClC,CAAC;AACH;AAEO,MAAMU,iBAAA,GAAoBA,CAAA,KAAY;EAC3CX,aAAA,CAAcf,aAAA,EAAeA,aAAA,CAAc2B,OAAA,CAAQvB,GAAG,IAAI,KAAKJ,aAAA,CAAc4B,MAAM,CAAC;AACtF;AAEO,MAAMf,kBAAA,GAAsBgB,EAAA,IAAsB;EACvDxC,SAAA,CAAUmC,GAAA,CAAIK,EAAE;EAChB,OAAO,MAAY;IACjBxC,SAAA,CAAUyC,MAAA,CAAOD,EAAE;EACrB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"tints.js","names":[],"sources":["esm/tints.js"],"sourcesContent":["import React from \"react\";\nconst listeners = /* @__PURE__ */ new Set();\nconst familiesValues = {\n tamagui: [\"yellow\", \"yellow\", \"yellow\", \"gray\", \"red\", \"green\", \"blue\"],\n xmas: [\"red\", \"green\", \"red\", \"green\", \"red\", \"green\", \"red\"],\n easter: [\n \"yellow\",\n \"yellow\",\n \"yellow\",\n \"yellow\",\n \"yellow\",\n \"yellow\",\n \"yellow\"\n ],\n halloween: [\n \"yellow\",\n \"gray\",\n \"yellow\",\n \"gray\",\n \"yellow\",\n \"gray\",\n \"yellow\"\n ],\n valentine: [\"red\", \"red\", \"red\", \"red\", \"red\", \"red\", \"red\"],\n lunar: [\"yellow\", \"red\", \"red\", \"red\", \"red\", \"red\", \"yellow\"],\n stpatricks: [\n \"green\",\n \"yellow\",\n \"green\",\n \"yellow\",\n \"green\",\n \"yellow\",\n \"green\"\n ]\n};\nconst DEFAULT_FAMILY = \"tamagui\";\nconst familiesNames = Object.keys(familiesValues);\nconst families = familiesValues;\nlet fam = DEFAULT_FAMILY;\nfunction getTints() {\n return {\n name: fam || DEFAULT_FAMILY,\n tints: families[fam] || families.tamagui,\n families\n };\n}\nfunction useTints() {\n const [val, setVal] = React.useState(getTints());\n React.useEffect(() => {\n return onTintFamilyChange(() => {\n React.startTransition(() => {\n setVal(getTints());\n });\n });\n }, []);\n return val;\n}\nfunction setTintFamily(next) {\n if (!families[next]) throw `impossible`;\n fam = next;\n if (typeof document !== \"undefined\") {\n const root = document.documentElement.classList;\n familiesNames.forEach((s) => {\n if (s !== \"tamagui\") {\n root.remove(`${s}-season`);\n }\n });\n if (next !== \"tamagui\") {\n root.add(`${next}-season`);\n }\n }\n React.startTransition(() => {\n listeners.forEach((l) => l(next));\n });\n}\nconst setNextTintFamily = () => {\n setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);\n};\nconst onTintFamilyChange = (cb) => {\n listeners.add(cb);\n return () => {\n listeners.delete(cb);\n };\n};\nexport {\n getTints,\n onTintFamilyChange,\n setNextTintFamily,\n setTintFamily,\n useTints\n};\n//# sourceMappingURL=tints.js.map\n"],"mappings":";;;AACA,MAAM,4BAA4B,IAAI,IAAI;AAC1C,MAAM,iBAAiB;CACrB,SAAS;EAAC;EAAU;EAAU;EAAU;EAAQ;EAAO;EAAS;CAAM;CACtE,MAAM;EAAC;EAAO;EAAS;EAAO;EAAS;EAAO;EAAS;CAAK;CAC5D,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,WAAW;EACT;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,WAAW;EAAC;EAAO;EAAO;EAAO;EAAO;EAAO;EAAO;CAAK;CAC3D,OAAO;EAAC;EAAU;EAAO;EAAO;EAAO;EAAO;EAAO;CAAQ;CAC7D,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;AACA,MAAM,iBAAiB;AACvB,MAAM,gBAAgB,OAAO,KAAK,cAAc;AAChD,MAAM,WAAW;AACjB,IAAI,MAAM;AACV,SAAS,WAAW;CAClB,OAAO;EACL,MAAM,OAAO;EACb,OAAO,SAAS,QAAQ,SAAS;EACjC;CACF;AACF;AACA,SAAS,WAAW;CAClB,MAAM,CAAC,KAAK,UAAU,MAAM,SAAS,SAAS,CAAC;CAC/C,MAAM,gBAAgB;EACpB,OAAO,yBAAyB;GAC9B,MAAM,sBAAsB;IAC1B,OAAO,SAAS,CAAC;GACnB,CAAC;EACH,CAAC;CACH,GAAG,CAAC,CAAC;CACL,OAAO;AACT;AACA,SAAS,cAAc,MAAM;CAC3B,IAAI,CAAC,SAAS,OAAO,MAAM;CAC3B,MAAM;CACN,IAAI,OAAO,aAAa,aAAa;EACnC,MAAM,OAAO,SAAS,gBAAgB;EACtC,cAAc,SAAS,MAAM;GAC3B,IAAI,MAAM,WAAW;IACnB,KAAK,OAAO,GAAG,EAAE,QAAQ;GAC3B;EACF,CAAC;EACD,IAAI,SAAS,WAAW;GACtB,KAAK,IAAI,GAAG,KAAK,QAAQ;EAC3B;CACF;CACA,MAAM,sBAAsB;EAC1B,UAAU,SAAS,MAAM,EAAE,IAAI,CAAC;CAClC,CAAC;AACH;AACA,MAAM,0BAA0B;CAC9B,cAAc,eAAe,cAAc,QAAQ,GAAG,IAAI,KAAK,cAAc,OAAO;AACtF;AACA,MAAM,sBAAsB,OAAO;CACjC,UAAU,IAAI,EAAE;CAChB,aAAa;EACX,UAAU,OAAO,EAAE;CACrB;AACF"}