@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.
- package/dist/cjs/LogoIcon.cjs +30 -38
- package/dist/cjs/LogoIcon.native.cjs +46 -0
- package/dist/cjs/LogoIcon.native.js +31 -38
- package/dist/cjs/LogoIcon.native.js.map +1 -1
- package/dist/cjs/LogoWords.cjs +142 -137
- package/dist/cjs/LogoWords.native.cjs +166 -0
- package/dist/cjs/LogoWords.native.js +147 -161
- package/dist/cjs/LogoWords.native.js.map +1 -1
- package/dist/cjs/SeasonProvider.cjs +24 -31
- package/dist/cjs/SeasonProvider.native.cjs +42 -0
- package/dist/cjs/SeasonProvider.native.js +24 -37
- package/dist/cjs/SeasonProvider.native.js.map +1 -1
- package/dist/cjs/TamaguiLogo.cjs +35 -45
- package/dist/cjs/TamaguiLogo.native.cjs +52 -0
- package/dist/cjs/TamaguiLogo.native.js +36 -45
- package/dist/cjs/TamaguiLogo.native.js.map +1 -1
- package/dist/cjs/TamaguiLogoSvg.cjs +57 -63
- package/dist/cjs/TamaguiLogoSvg.native.cjs +73 -0
- package/dist/cjs/TamaguiLogoSvg.native.js +60 -65
- package/dist/cjs/TamaguiLogoSvg.native.js.map +1 -1
- package/dist/cjs/ThemeTint.cjs +31 -41
- package/dist/cjs/ThemeTint.native.cjs +51 -0
- package/dist/cjs/ThemeTint.native.js +33 -42
- package/dist/cjs/ThemeTint.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +27 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/tints.cjs +122 -72
- package/dist/cjs/tints.native.cjs +156 -0
- package/dist/cjs/tints.native.js +125 -74
- package/dist/cjs/tints.native.js.map +1 -1
- package/dist/cjs/useTint.cjs +79 -87
- package/dist/cjs/useTint.native.cjs +119 -0
- package/dist/cjs/useTint.native.js +90 -97
- package/dist/cjs/useTint.native.js.map +1 -1
- package/dist/esm/LogoIcon.mjs +17 -20
- package/dist/esm/LogoIcon.mjs.map +1 -1
- package/dist/esm/LogoIcon.native.js +19 -22
- package/dist/esm/LogoIcon.native.js.map +1 -1
- package/dist/esm/LogoWords.mjs +126 -111
- package/dist/esm/LogoWords.mjs.map +1 -1
- package/dist/esm/LogoWords.native.js +132 -137
- package/dist/esm/LogoWords.native.js.map +1 -1
- package/dist/esm/SeasonProvider.mjs +11 -13
- package/dist/esm/SeasonProvider.mjs.map +1 -1
- package/dist/esm/SeasonProvider.native.js +12 -21
- package/dist/esm/SeasonProvider.native.js.map +1 -1
- package/dist/esm/TamaguiLogo.mjs +22 -27
- package/dist/esm/TamaguiLogo.mjs.map +1 -1
- package/dist/esm/TamaguiLogo.native.js +24 -29
- package/dist/esm/TamaguiLogo.native.js.map +1 -1
- package/dist/esm/TamaguiLogoSvg.mjs +44 -45
- package/dist/esm/TamaguiLogoSvg.mjs.map +1 -1
- package/dist/esm/TamaguiLogoSvg.native.js +48 -49
- package/dist/esm/TamaguiLogoSvg.native.js.map +1 -1
- package/dist/esm/ThemeTint.mjs +17 -24
- package/dist/esm/ThemeTint.mjs.map +1 -1
- package/dist/esm/ThemeTint.native.js +20 -27
- package/dist/esm/ThemeTint.native.js.map +1 -1
- package/dist/esm/index.js +13 -8
- package/dist/esm/index.mjs +13 -8
- package/dist/esm/index.native.js +13 -8
- package/dist/esm/tints.mjs +102 -44
- package/dist/esm/tints.mjs.map +1 -1
- package/dist/esm/tints.native.js +105 -47
- package/dist/esm/tints.native.js.map +1 -1
- package/dist/esm/useTint.mjs +57 -57
- package/dist/esm/useTint.mjs.map +1 -1
- package/dist/esm/useTint.native.js +68 -68
- package/dist/esm/useTint.native.js.map +1 -1
- package/package.json +5 -5
- package/src/LogoIcon.tsx +2 -4
- package/src/LogoWords.tsx +7 -9
- package/src/TamaguiLogo.tsx +1 -1
- package/types/LogoIcon.d.ts.map +1 -1
- package/types/LogoWords.d.ts.map +1 -1
- package/types/TamaguiLogo.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
|
@@ -1,49 +1,48 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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,"
|
|
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,U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vg = 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,"
|
|
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"}
|
package/dist/esm/ThemeTint.mjs
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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,"
|
|
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
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Theme } from "@tamagui/web";
|
|
3
3
|
import { useTint } from "./useTint.native.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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":["
|
|
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
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
export * from "./
|
|
8
|
-
|
|
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"
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
export * from "./TamaguiLogo.mjs"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
export * from "./
|
|
8
|
-
|
|
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"
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
export * from "./TamaguiLogo.native.js"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
|
|
7
|
-
export * from "./
|
|
8
|
-
|
|
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"
|
package/dist/esm/tints.mjs
CHANGED
|
@@ -1,62 +1,120 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
3
4
|
const familiesValues = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
74
|
+
return {
|
|
75
|
+
name: fam || DEFAULT_FAMILY,
|
|
76
|
+
tints: families[fam] || families.tamagui,
|
|
77
|
+
families
|
|
78
|
+
};
|
|
22
79
|
}
|
|
23
80
|
function useTints() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
110
|
+
setTintFamily(familiesNames[(familiesNames.indexOf(fam) + 1) % familiesNames.length]);
|
|
54
111
|
};
|
|
55
|
-
const onTintFamilyChange = cb => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
package/dist/esm/tints.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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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