@tamagui/logo 1.124.7 → 1.124.8
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/LogoWords.cjs +14 -14
- package/dist/cjs/LogoWords.js +11 -14
- package/dist/cjs/LogoWords.js.map +1 -1
- package/dist/cjs/LogoWords.native.js +18 -28
- package/dist/cjs/LogoWords.native.js.map +2 -2
- package/dist/cjs/ThemeTint.cjs +54 -0
- package/dist/cjs/ThemeTint.js +38 -0
- package/dist/cjs/ThemeTint.js.map +6 -0
- package/dist/cjs/ThemeTint.native.js +42 -0
- package/dist/cjs/ThemeTint.native.js.map +6 -0
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +3 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/useTint.cjs +27 -56
- package/dist/cjs/useTint.js +1 -18
- package/dist/cjs/useTint.js.map +1 -1
- package/dist/cjs/useTint.native.js +1 -19
- package/dist/cjs/useTint.native.js.map +2 -2
- package/dist/esm/LogoWords.js +11 -14
- package/dist/esm/LogoWords.js.map +1 -1
- package/dist/esm/LogoWords.mjs +14 -14
- package/dist/esm/LogoWords.mjs.map +1 -1
- package/dist/esm/LogoWords.native.js +18 -28
- package/dist/esm/LogoWords.native.js.map +2 -2
- package/dist/esm/ThemeTint.js +24 -0
- package/dist/esm/ThemeTint.js.map +6 -0
- package/dist/esm/ThemeTint.mjs +30 -0
- package/dist/esm/ThemeTint.mjs.map +1 -0
- package/dist/esm/ThemeTint.native.js +23 -0
- package/dist/esm/ThemeTint.native.js.map +6 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -0
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/useTint.js +0 -19
- package/dist/esm/useTint.js.map +1 -1
- package/dist/esm/useTint.mjs +26 -53
- package/dist/esm/useTint.mjs.map +1 -1
- package/dist/esm/useTint.native.js +0 -18
- package/dist/esm/useTint.native.js.map +2 -2
- package/package.json +4 -4
- package/src/LogoWords.tsx +18 -7
- package/src/ThemeTint.tsx +31 -0
- package/src/index.tsx +1 -0
- package/src/useTint.tsx +1 -34
- package/types/LogoWords.d.ts.map +1 -1
- package/types/ThemeTint.d.ts +9 -0
- package/types/ThemeTint.d.ts.map +11 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +2 -2
- package/types/useTint.d.ts +1 -7
- package/types/useTint.d.ts.map +2 -2
package/dist/cjs/LogoWords.cjs
CHANGED
|
@@ -76,6 +76,13 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"],
|
|
|
76
76
|
marginVertical: "$-2",
|
|
77
77
|
position: "relative",
|
|
78
78
|
className: "logo-words",
|
|
79
|
+
onMouseMove: e => {
|
|
80
|
+
const rect = e.currentTarget.getBoundingClientRect(),
|
|
81
|
+
x2 = e.clientX - rect.left,
|
|
82
|
+
sectionWidth = rect.width / 7,
|
|
83
|
+
section = Math.min(6, Math.floor(x2 / sectionWidth));
|
|
84
|
+
Tint.setTintIndex(section);
|
|
85
|
+
},
|
|
79
86
|
...props,
|
|
80
87
|
children: [animated && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Circle, {
|
|
81
88
|
animation: "quicker",
|
|
@@ -95,43 +102,36 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"],
|
|
|
95
102
|
"data-tauri-drag-region": !0,
|
|
96
103
|
shapeRendering: "crispEdges",
|
|
97
104
|
fill: getColor(0),
|
|
98
|
-
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
99
|
-
onMouseEnter: () => Tint.setTintIndex(0)
|
|
105
|
+
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
100
106
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
101
107
|
shapeRendering: "crispEdges",
|
|
102
108
|
fill: getColor(1),
|
|
103
109
|
d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
|
|
104
|
-
fillRule: "nonzero"
|
|
105
|
-
onMouseEnter: () => Tint.setTintIndex(1)
|
|
110
|
+
fillRule: "nonzero"
|
|
106
111
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
107
112
|
"data-tauri-drag-region": !0,
|
|
108
113
|
shapeRendering: "crispEdges",
|
|
109
114
|
fill: getColor(2),
|
|
110
|
-
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
111
|
-
onMouseEnter: () => Tint.setTintIndex(2)
|
|
115
|
+
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
112
116
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
113
117
|
fill: getColor(3),
|
|
114
118
|
d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
|
|
115
|
-
fillRule: "nonzero"
|
|
116
|
-
onMouseEnter: () => Tint.setTintIndex(3)
|
|
119
|
+
fillRule: "nonzero"
|
|
117
120
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
118
121
|
"data-tauri-drag-region": !0,
|
|
119
122
|
shapeRendering: "crispEdges",
|
|
120
123
|
fill: getColor(4),
|
|
121
|
-
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
122
|
-
onMouseEnter: () => Tint.setTintIndex(4)
|
|
124
|
+
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
123
125
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
124
126
|
"data-tauri-drag-region": !0,
|
|
125
127
|
shapeRendering: "crispEdges",
|
|
126
128
|
fill: getColor(5),
|
|
127
|
-
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
128
|
-
onMouseEnter: () => Tint.setTintIndex(5)
|
|
129
|
+
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
129
130
|
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("polygon", {
|
|
130
131
|
"data-tauri-drag-region": !0,
|
|
131
132
|
shapeRendering: "crispEdges",
|
|
132
133
|
fill: getColor(6),
|
|
133
|
-
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
134
|
-
onMouseEnter: () => Tint.setTintIndex(6)
|
|
134
|
+
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
135
135
|
})]
|
|
136
136
|
})]
|
|
137
137
|
});
|
package/dist/cjs/LogoWords.js
CHANGED
|
@@ -59,6 +59,10 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
59
59
|
marginVertical: "$-2",
|
|
60
60
|
position: "relative",
|
|
61
61
|
className: "logo-words",
|
|
62
|
+
onMouseMove: (e) => {
|
|
63
|
+
const rect = e.currentTarget.getBoundingClientRect(), x2 = e.clientX - rect.left, sectionWidth = rect.width / 7, section = Math.min(6, Math.floor(x2 / sectionWidth));
|
|
64
|
+
Tint.setTintIndex(section);
|
|
65
|
+
},
|
|
62
66
|
...props,
|
|
63
67
|
children: [
|
|
64
68
|
animated && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -88,8 +92,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
88
92
|
"data-tauri-drag-region": !0,
|
|
89
93
|
shapeRendering: "crispEdges",
|
|
90
94
|
fill: getColor(0),
|
|
91
|
-
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
92
|
-
onMouseEnter: () => Tint.setTintIndex(0)
|
|
95
|
+
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
93
96
|
}
|
|
94
97
|
),
|
|
95
98
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -98,8 +101,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
98
101
|
shapeRendering: "crispEdges",
|
|
99
102
|
fill: getColor(1),
|
|
100
103
|
d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
|
|
101
|
-
fillRule: "nonzero"
|
|
102
|
-
onMouseEnter: () => Tint.setTintIndex(1)
|
|
104
|
+
fillRule: "nonzero"
|
|
103
105
|
}
|
|
104
106
|
),
|
|
105
107
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -108,8 +110,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
108
110
|
"data-tauri-drag-region": !0,
|
|
109
111
|
shapeRendering: "crispEdges",
|
|
110
112
|
fill: getColor(2),
|
|
111
|
-
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
112
|
-
onMouseEnter: () => Tint.setTintIndex(2)
|
|
113
|
+
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
113
114
|
}
|
|
114
115
|
),
|
|
115
116
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -117,8 +118,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
117
118
|
{
|
|
118
119
|
fill: getColor(3),
|
|
119
120
|
d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
|
|
120
|
-
fillRule: "nonzero"
|
|
121
|
-
onMouseEnter: () => Tint.setTintIndex(3)
|
|
121
|
+
fillRule: "nonzero"
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -127,8 +127,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
127
127
|
"data-tauri-drag-region": !0,
|
|
128
128
|
shapeRendering: "crispEdges",
|
|
129
129
|
fill: getColor(4),
|
|
130
|
-
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
131
|
-
onMouseEnter: () => Tint.setTintIndex(4)
|
|
130
|
+
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
132
131
|
}
|
|
133
132
|
),
|
|
134
133
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -137,8 +136,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
137
136
|
"data-tauri-drag-region": !0,
|
|
138
137
|
shapeRendering: "crispEdges",
|
|
139
138
|
fill: getColor(5),
|
|
140
|
-
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
141
|
-
onMouseEnter: () => Tint.setTintIndex(5)
|
|
139
|
+
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
142
140
|
}
|
|
143
141
|
),
|
|
144
142
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -147,8 +145,7 @@ const rgb = ["#ED0F0F", "#6BCF1A", "#6252F8"], LogoWords = import_react.default.
|
|
|
147
145
|
"data-tauri-drag-region": !0,
|
|
148
146
|
shapeRendering: "crispEdges",
|
|
149
147
|
fill: getColor(6),
|
|
150
|
-
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
151
|
-
onMouseEnter: () => Tint.setTintIndex(6)
|
|
148
|
+
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
152
149
|
}
|
|
153
150
|
)
|
|
154
151
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LogoWords.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAElB,iBAA+B,oBAE/B,iBAAwB,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAElB,iBAA+B,oBAE/B,iBAAwB,sBAiFhB;AA/ER,MAAM,MAAM,CAAC,WAAW,WAAW,SAAS,GAE/B,YAST,aAAAA,QAAM,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,MAAM;AACxD,QAAM,WAAO,wBAAQ,GACf,CAAC,SAAS,UAAU,IAAI,aAAAA,QAAM,SAAS,EAAK,GAC5C,CAAC,SAAS,UAAU,IAAI,aAAAA,QAAM,SAAuC,OAAO,GAE5E,EAAE,WAAW,OAAO,KAAK,IAAI,MAC7B,eAAe,KAAK,MAAM,IAAI,CAACC,OAAM,GAAGA,EAAC,GAAG,EAAE,IAAI,CAAC,MAAM,SAAS,CAAC,GAAG,GAEtE,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GAEM,cAAc,UAChB,KAAK,MAAM,IAAI,CAACA,OAAM,IAAIA,EAAC,GAAG,IAC9B,CAAC,YAAY,YAAY,YAAY,YAAY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AAa;AAAA,YAC/B,QAAQ,MAAM,IAAI,aAAa;AAAA,YAC/B,SAAQ;AAAA,YAER;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,0BAAsB;AAAA,kBACtB,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,QAAO;AAAA;AAAA,cAET;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,GAAE;AAAA,kBACF,UAAS;AAAA;AAAA,cAEX;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,0BAAsB;AAAA,kBACtB,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,QAAO;AAAA;AAAA,cAET;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,MAAM,SAAS,CAAC;AAAA,kBAChB,GAAE;AAAA,kBACF,UAAS;AAAA;AAAA,cAEX;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,0BAAsB;AAAA,kBACtB,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,QAAO;AAAA;AAAA,cAET;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,0BAAsB;AAAA,kBACtB,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,QAAO;AAAA;AAAA,cAET;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,0BAAsB;AAAA,kBACtB,gBAAe;AAAA,kBACf,MAAM,SAAS,CAAC;AAAA,kBAChB,QAAO;AAAA;AAAA,cAET;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ,CAAC;",
|
|
5
5
|
"names": ["React", "x"]
|
|
6
6
|
}
|
|
@@ -76,6 +76,11 @@ var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(re
|
|
|
76
76
|
marginVertical: "$-2",
|
|
77
77
|
position: "relative",
|
|
78
78
|
className: "logo-words",
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
onMouseMove: function(e) {
|
|
81
|
+
var rect = e.currentTarget.getBoundingClientRect(), x2 = e.clientX - rect.left, sectionWidth = rect.width / 7, section = Math.min(6, Math.floor(x2 / sectionWidth));
|
|
82
|
+
Tint.setTintIndex(section);
|
|
83
|
+
},
|
|
79
84
|
...props,
|
|
80
85
|
children: [
|
|
81
86
|
animated && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Circle, {
|
|
@@ -99,63 +104,48 @@ var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(re
|
|
|
99
104
|
"data-tauri-drag-region": !0,
|
|
100
105
|
shapeRendering: "crispEdges",
|
|
101
106
|
fill: getColor(0),
|
|
102
|
-
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
103
|
-
onMouseEnter: function() {
|
|
104
|
-
return Tint.setTintIndex(0);
|
|
105
|
-
}
|
|
107
|
+
points: "24.3870968 40.1612903 24.3870968 8.67741935 32.2580645 8.67741935 32.2580645 0.806451613 0.774193548 0.806451613 0.774193548 8.67741935 8.64516129 8.67741935 8.64516129 40.1612903"
|
|
106
108
|
}),
|
|
109
|
+
// onMouseEnter={() => Tint.setTintIndex(0)}
|
|
107
110
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
108
111
|
shapeRendering: "crispEdges",
|
|
109
112
|
fill: getColor(1),
|
|
110
113
|
d: "M87.3548387,0.806451613 L87.3548387,8.67741935 L95.2258065,8.67741935 L95.2258065,40.1612903 L79.483871,40.1612903 L79.483871,24.4193548 L71.6129032,24.4193548 L71.6129032,40.1612903 L55.8709677,40.1612903 L55.8709677,8.67741935 L63.7419355,8.67741935 L63.7419355,0.806451613 L87.3548387,0.806451613 Z M79.483871,8.67741935 L71.6129032,8.67741935 L71.6129032,16.5483871 L79.483871,16.5483871 L79.483871,8.67741935 Z",
|
|
111
|
-
fillRule: "nonzero"
|
|
112
|
-
onMouseEnter: function() {
|
|
113
|
-
return Tint.setTintIndex(1);
|
|
114
|
-
}
|
|
114
|
+
fillRule: "nonzero"
|
|
115
115
|
}),
|
|
116
|
+
// onMouseEnter={() => Tint.setTintIndex(1)}
|
|
116
117
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", {
|
|
117
118
|
"data-tauri-drag-region": !0,
|
|
118
119
|
shapeRendering: "crispEdges",
|
|
119
120
|
fill: getColor(2),
|
|
120
|
-
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
121
|
-
onMouseEnter: function() {
|
|
122
|
-
return Tint.setTintIndex(2);
|
|
123
|
-
}
|
|
121
|
+
points: "130.645161 40.1612903 130.645161 22.4516129 138.516129 22.4516129 138.516129 40.1612903 154.258065 40.1612903 154.258065 0.806451613 142.451613 0.806451613 142.451613 8.67741935 126.709677 8.67741935 126.709677 0.806451613 114.903226 0.806451613 114.903226 40.1612903"
|
|
124
122
|
}),
|
|
123
|
+
// onMouseEnter={() => Tint.setTintIndex(2)}
|
|
125
124
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
126
125
|
fill: getColor(3),
|
|
127
126
|
d: "M205.419355,0.806451613 L205.419355,8.67741935 L213.290323,8.67741935 L213.290323,40.1612903 L197.548387,40.1612903 L197.548387,24.4193548 L189.677419,24.4193548 L189.677419,40.1612903 L173.935484,40.1612903 L173.935484,8.67741935 L181.806452,8.67741935 L181.806452,0.806451613 L205.419355,0.806451613 Z M197.548387,8.67741935 L189.677419,8.67741935 L189.677419,16.5483871 L197.548387,16.5483871 L197.548387,8.67741935 Z",
|
|
128
|
-
fillRule: "nonzero"
|
|
129
|
-
onMouseEnter: function() {
|
|
130
|
-
return Tint.setTintIndex(3);
|
|
131
|
-
}
|
|
127
|
+
fillRule: "nonzero"
|
|
132
128
|
}),
|
|
129
|
+
// onMouseEnter={() => Tint.setTintIndex(3)}
|
|
133
130
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", {
|
|
134
131
|
"data-tauri-drag-region": !0,
|
|
135
132
|
shapeRendering: "crispEdges",
|
|
136
133
|
fill: getColor(4),
|
|
137
|
-
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
138
|
-
onMouseEnter: function() {
|
|
139
|
-
return Tint.setTintIndex(4);
|
|
140
|
-
}
|
|
134
|
+
points: "264.451613 40.1612903 264.451613 32.2903226 272.322581 32.2903226 272.322581 16.5483871 256.580645 16.5483871 256.580645 32.2903226 248.709677 32.2903226 248.709677 8.67741935 272.322581 8.67741935 272.322581 0.806451613 240.83871 0.806451613 240.83871 8.67741935 232.967742 8.67741935 232.967742 32.2903226 240.83871 32.2903226 240.83871 40.1612903"
|
|
141
135
|
}),
|
|
136
|
+
// onMouseEnter={() => Tint.setTintIndex(4)}
|
|
142
137
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", {
|
|
143
138
|
"data-tauri-drag-region": !0,
|
|
144
139
|
shapeRendering: "crispEdges",
|
|
145
140
|
fill: getColor(5),
|
|
146
|
-
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
147
|
-
onMouseEnter: function() {
|
|
148
|
-
return Tint.setTintIndex(5);
|
|
149
|
-
}
|
|
141
|
+
points: "323.483871 40.1612903 323.483871 32.2903226 331.354839 32.2903226 331.354839 0.806451613 315.612903 0.806451613 315.612903 32.2903226 307.741935 32.2903226 307.741935 0.806451613 292 0.806451613 292 32.2903226 299.870968 32.2903226 299.870968 40.1612903"
|
|
150
142
|
}),
|
|
143
|
+
// onMouseEnter={() => Tint.setTintIndex(5)}
|
|
151
144
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", {
|
|
152
145
|
"data-tauri-drag-region": !0,
|
|
153
146
|
shapeRendering: "crispEdges",
|
|
154
147
|
fill: getColor(6),
|
|
155
|
-
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
156
|
-
onMouseEnter: function() {
|
|
157
|
-
return Tint.setTintIndex(6);
|
|
158
|
-
}
|
|
148
|
+
points: "372.677419 40.1612903 372.677419 0.806451613 356.935484 0.806451613 356.935484 40.1612903"
|
|
159
149
|
})
|
|
160
150
|
]
|
|
161
151
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/LogoWords.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,8BAElB,iBAA+B,oBAE/B,iBAAwB,sBAElBA,MAAM;EAAC;EAAW;EAAW;GAEtBC,YASTC,6BAAAA,QAAMC,KAAK,SAAA,OAAA;MAAC,EAAEC,YAAY,GAAGC,UAAU,GAAGC,MAAAA,IAAO,OAC7CC,WAAOC,wBAAAA,GACP,CAACC,SAASC,UAAAA,IAAcR,aAAAA,QAAMS,SAAS,EAAA,GACvC,CAACC,SAASC,UAAAA,IAAcX,aAAAA,QAAMS,SAAuC,OAAA,GAErE,EAAEG,WAAWC,OAAOC,KAAI,IAAKT,MAC7BU,eAAeV,KAAKW,MAAMC,IAAI,SAACC,IAAAA;WAAM,GAAGA,EAAAA;KAAMD,IAAI,SAACE,GAAAA;WAAM,SAASA,CAAAA;MAElEH,QAAQ;IACZ;IACA;IACA;IACA;OACGlB;KAGCsB,cAAcb,UAChBF,KAAKW,MAAMC,IAAI,SAACC,IAAAA;WAAM,IAAIA,EAAAA;OAC1B;IAAC;IAAY;IAAY;IAAY;OAAepB;;AAExDE,eAAAA,QAAMqB,UAAU,WAAA;AACd,QAAMC,OAAOC,OAAOC,uBAAuBC;AAC3CH,SAAK,WAAA;AACHG,iBAAW,WAAA;AACTd,mBAAW,SAAA;MACb,GAAG,EAAA,GAEHc,WAAW,WAAA;AACTd,mBAAW,MAAA;MACb,GAAG,IAAA;IACL,CAAA;EACF,GAAG,CAAA,CAAE;AAEL,MAAMe,WAAW,SAACC,GAAAA;AAChB,QAAMC,WAAWlB,YAAY,WAAWiB,MAAMd;AAC9C,WAAIN,UACKQ,aAAaY,CAAAA,IAEfX,MAAMW,CAAAA;EACf,GAEMT,IAAIW,KAAKC,MACbjB,QAAQ,OAAQ,KAAK,KAAMA,QAAQG,MAAMe,UAAU,KAAKlB,UAAU,IAAI,KAAK,EAAA;AAG7E,SACE,uCAAAmB,MAACC,uBAAAA;IACCC,WAAW,WAAA;aAAM1B,WAAW,EAAA;;IAC5B2B,YAAY,WAAA;aAAM3B,WAAW,EAAA;;IAC7B4B,iBAAgB;IAChBC,0BAAsB;IACtBC,gBAAe;IACfC,UAAS;IACTC,WAAU;
|
|
5
|
-
"names": ["rgb", "LogoWords", "React", "memo", "downscale", "animated", "props", "Tint", "useTint", "hovered", "setHovered", "useState", "mounted", "setMounted", "tintIndex", "index", "tint", "hoveredTints", "tints", "map", "x", "t", "circleTints", "useEffect", "idle", "window", "requestIdleCallback", "setTimeout", "getColor", "i", "isActive", "Math", "round", "length", "_jsxs", "XStack", "onHoverIn", "onHoverOut", "paddingVertical", "data-tauri-drag-region", "marginVertical", "position", "className", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;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MAAMxC,SAAS,CAAA;YACfyC,QAAO;;;UAIT,uCAAAb,KAACU,WAAAA;YACC3B,0BAAsB;YACtB4B,gBAAe;YACfC,MAAMxC,SAAS,CAAA;YACfyC,QAAO;;;;;;AAMjB,CAAA;",
|
|
5
|
+
"names": ["rgb", "LogoWords", "React", "memo", "downscale", "animated", "props", "Tint", "useTint", "hovered", "setHovered", "useState", "mounted", "setMounted", "tintIndex", "index", "tint", "hoveredTints", "tints", "map", "x", "t", "circleTints", "useEffect", "idle", "window", "requestIdleCallback", "setTimeout", "getColor", "i", "isActive", "Math", "round", "length", "_jsxs", "XStack", "onHoverIn", "onHoverOut", "paddingVertical", "data-tauri-drag-region", "marginVertical", "position", "className", "onMouseMove", "e", "rect", "currentTarget", "getBoundingClientRect", "clientX", "left", "sectionWidth", "width", "section", "min", "floor", "setTintIndex", "_jsx", "Circle", "animation", "top", "y", "size", "backgroundColor", "svg", "height", "viewBox", "polygon", "shapeRendering", "fill", "points", "path", "d", "fillRule"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var ThemeTint_exports = {};
|
|
22
|
+
__export(ThemeTint_exports, {
|
|
23
|
+
ThemeTint: () => ThemeTint,
|
|
24
|
+
ThemeTintAlt: () => ThemeTintAlt
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(ThemeTint_exports);
|
|
27
|
+
var import_web = require("@tamagui/web"),
|
|
28
|
+
import_useTint = require("./useTint.cjs"),
|
|
29
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
const ThemeTint = ({
|
|
31
|
+
disable,
|
|
32
|
+
children,
|
|
33
|
+
...rest
|
|
34
|
+
}) => {
|
|
35
|
+
const curTint = (0, import_useTint.useTint)().tint;
|
|
36
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
|
|
37
|
+
...rest,
|
|
38
|
+
name: disable ? null : curTint,
|
|
39
|
+
children
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
ThemeTintAlt = ({
|
|
43
|
+
children,
|
|
44
|
+
disable,
|
|
45
|
+
offset = 1,
|
|
46
|
+
...rest
|
|
47
|
+
}) => {
|
|
48
|
+
const curTint = (0, import_useTint.useTint)(offset).tintAlt;
|
|
49
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.Theme, {
|
|
50
|
+
name: disable ? null : curTint,
|
|
51
|
+
...rest,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var ThemeTint_exports = {};
|
|
16
|
+
__export(ThemeTint_exports, {
|
|
17
|
+
ThemeTint: () => ThemeTint,
|
|
18
|
+
ThemeTintAlt: () => ThemeTintAlt
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(ThemeTint_exports);
|
|
21
|
+
var import_web = require("@tamagui/web"), import_useTint = require("./useTint"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
+
const ThemeTint = ({
|
|
23
|
+
disable,
|
|
24
|
+
children,
|
|
25
|
+
...rest
|
|
26
|
+
}) => {
|
|
27
|
+
const curTint = (0, import_useTint.useTint)().tint;
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web.Theme, { ...rest, name: disable ? null : curTint, children });
|
|
29
|
+
}, ThemeTintAlt = ({
|
|
30
|
+
children,
|
|
31
|
+
disable,
|
|
32
|
+
offset = 1,
|
|
33
|
+
...rest
|
|
34
|
+
}) => {
|
|
35
|
+
const curTint = (0, import_useTint.useTint)(offset).tintAlt;
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web.Theme, { name: disable ? null : curTint, ...rest, children });
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=ThemeTint.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ThemeTint.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAuC,yBAEvC,iBAAwB,sBASpB;AAPG,MAAM,YAAY,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAuD;AACrD,QAAM,cAAU,wBAAQ,EAAE;AAC1B,SACE,4CAAC,oBAAO,GAAG,MAAM,MAAM,UAAU,OAAO,SACrC,UACH;AAEJ,GAEa,eAAe,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT,GAAG;AACL,MAAwE;AACtE,QAAM,cAAU,wBAAQ,MAAM,EAAE;AAEhC,SACE,4CAAC,oBAAM,MAFI,UAAU,OAAO,SAER,GAAG,MACpB,UACH;AAEJ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var ThemeTint_exports = {};
|
|
17
|
+
__export(ThemeTint_exports, {
|
|
18
|
+
ThemeTint: () => ThemeTint,
|
|
19
|
+
ThemeTintAlt: () => ThemeTintAlt
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(ThemeTint_exports);
|
|
22
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_web = require("@tamagui/web"), import_useTint = require("./useTint"), ThemeTint = function(param) {
|
|
23
|
+
var { disable, children, ...rest } = param, curTint = (0, import_useTint.useTint)().tint;
|
|
24
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web.Theme, {
|
|
25
|
+
...rest,
|
|
26
|
+
name: disable ? null : curTint,
|
|
27
|
+
children
|
|
28
|
+
});
|
|
29
|
+
}, ThemeTintAlt = function(param) {
|
|
30
|
+
var { children, disable, offset = 1, ...rest } = param, curTint = (0, import_useTint.useTint)(offset).tintAlt, name = disable ? null : curTint;
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web.Theme, {
|
|
32
|
+
name,
|
|
33
|
+
...rest,
|
|
34
|
+
children
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
ThemeTint,
|
|
40
|
+
ThemeTintAlt
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=ThemeTint.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/ThemeTint.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;uDAAA,aAAuC,yBAEvC,iBAAwB,sBAEXA,YAAY,SAAA,OAAA;MAAC,EACxBC,SACAC,UACA,GAAGC,KAAAA,IACgC,OAC7BC,cAAUC,wBAAAA,EAAUC;AAC1B,SACE,uCAAAC,KAACC,kBAAAA;IAAO,GAAGL;IAAMM,MAAMR,UAAU,OAAOG;;;AAI5C,GAEaM,eAAe,SAAA,OAAA;MAAC,EAC3BR,UACAD,SACAU,SAAS,GACT,GAAGR,KAAAA,IACiD,OAC9CC,cAAUC,wBAAQM,MAAAA,EAAQC,SAC1BH,OAAOR,UAAU,OAAOG;AAC9B,SACE,uCAAAG,KAACC,kBAAAA;IAAMC;IAAa,GAAGN;;;AAI3B;",
|
|
5
|
+
"names": ["ThemeTint", "disable", "children", "rest", "curTint", "useTint", "tint", "_jsx", "Theme", "name", "ThemeTintAlt", "offset", "tintAlt"]
|
|
6
|
+
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -19,4 +19,5 @@ __reExport(index_exports, require("./TamaguiLogo.cjs"), module.exports);
|
|
|
19
19
|
__reExport(index_exports, require("./LogoWords.cjs"), module.exports);
|
|
20
20
|
__reExport(index_exports, require("./LogoIcon.cjs"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./tints.cjs"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./useTint.cjs"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./useTint.cjs"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./ThemeTint.cjs"), module.exports);
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,4 +16,5 @@ __reExport(index_exports, require("./LogoWords"), module.exports);
|
|
|
16
16
|
__reExport(index_exports, require("./LogoIcon"), module.exports);
|
|
17
17
|
__reExport(index_exports, require("./tints"), module.exports);
|
|
18
18
|
__reExport(index_exports, require("./useTint"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./ThemeTint"), module.exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,0BAAd;AACA,0BAAc,wBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,sBAJd;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,0BAAd;AACA,0BAAc,wBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,sBAJd;AAKA,0BAAc,wBALd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -17,12 +17,14 @@ __reExport(index_exports, require("./LogoWords"), module.exports);
|
|
|
17
17
|
__reExport(index_exports, require("./LogoIcon"), module.exports);
|
|
18
18
|
__reExport(index_exports, require("./tints"), module.exports);
|
|
19
19
|
__reExport(index_exports, require("./useTint"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./ThemeTint"), module.exports);
|
|
20
21
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
22
|
0 && (module.exports = {
|
|
22
23
|
...require("./TamaguiLogo"),
|
|
23
24
|
...require("./LogoWords"),
|
|
24
25
|
...require("./LogoIcon"),
|
|
25
26
|
...require("./tints"),
|
|
26
|
-
...require("./useTint")
|
|
27
|
+
...require("./useTint"),
|
|
28
|
+
...require("./ThemeTint")
|
|
27
29
|
});
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/packages/logo/src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;AAAA;;0BAAc,0BAAd;AACA,0BAAc,wBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,sBAJd;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;AAAA;;0BAAc,0BAAd;AACA,0BAAc,wBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,oBAHd;AAIA,0BAAc,sBAJd;AAKA,0BAAc,wBALd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/useTint.cjs
CHANGED
|
@@ -31,8 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
}), mod);
|
|
32
32
|
var useTint_exports = {};
|
|
33
33
|
__export(useTint_exports, {
|
|
34
|
-
ThemeTint: () => ThemeTint,
|
|
35
|
-
ThemeTintAlt: () => ThemeTintAlt,
|
|
36
34
|
getDocsSection: () => getDocsSection,
|
|
37
35
|
onTintChange: () => onTintChange,
|
|
38
36
|
setTintIndex: () => setTintIndex,
|
|
@@ -41,9 +39,7 @@ __export(useTint_exports, {
|
|
|
41
39
|
module.exports = __toCommonJS(useTint_exports);
|
|
42
40
|
var import_one = require("one"),
|
|
43
41
|
import_react = __toESM(require("react"), 1),
|
|
44
|
-
|
|
45
|
-
import_tints = require("./tints.cjs"),
|
|
46
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
import_tints = require("./tints.cjs");
|
|
47
43
|
let current = 3;
|
|
48
44
|
const listeners = /* @__PURE__ */new Set(),
|
|
49
45
|
onTintChange = listener => (listeners.add(listener), () => {
|
|
@@ -58,54 +54,29 @@ function getDocsSection(pathname) {
|
|
|
58
54
|
return pathname === "/docs/intro/compiler-install" || pathname === "/docs/intro/benchmarks" || pathname === "/docs/intro/why-a-compiler" ? "compile" : pathname.startsWith("/ui/") ? "ui" : pathname.startsWith("/docs/") ? "core" : null;
|
|
59
55
|
}
|
|
60
56
|
const useTint = (altOffset = -1) => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ThemeTint = ({
|
|
88
|
-
disable,
|
|
89
|
-
children,
|
|
90
|
-
...rest
|
|
91
|
-
}) => {
|
|
92
|
-
const curTint = useTint().tint;
|
|
93
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
94
|
-
...rest,
|
|
95
|
-
name: disable ? null : curTint,
|
|
96
|
-
children
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
|
-
ThemeTintAlt = ({
|
|
100
|
-
children,
|
|
101
|
-
disable,
|
|
102
|
-
offset = 1,
|
|
103
|
-
...rest
|
|
104
|
-
}) => {
|
|
105
|
-
const curTint = useTint(offset).tintAlt;
|
|
106
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
|
|
107
|
-
name: disable ? null : curTint,
|
|
108
|
-
...rest,
|
|
109
|
-
children
|
|
110
|
-
});
|
|
111
|
-
};
|
|
57
|
+
const pathname = (0, import_one.usePathname)(),
|
|
58
|
+
section = getDocsSection(pathname);
|
|
59
|
+
let initial = current;
|
|
60
|
+
section && (initial = section === "compile" ? 5 : section === "core" ? 4 : 6);
|
|
61
|
+
const index = import_react.default.useSyncExternalStore(onTintChange, () => current, () => initial),
|
|
62
|
+
tintsContext = (0, import_tints.useTints)(),
|
|
63
|
+
{
|
|
64
|
+
tints
|
|
65
|
+
} = tintsContext,
|
|
66
|
+
tintAltIndex = Math.abs((index + altOffset) % tints.length);
|
|
67
|
+
return {
|
|
68
|
+
...tintsContext,
|
|
69
|
+
tints: tintsContext.tints,
|
|
70
|
+
tintIndex: index,
|
|
71
|
+
tintAltIndex,
|
|
72
|
+
tint: tints[index],
|
|
73
|
+
tintAlt: tints[tintAltIndex],
|
|
74
|
+
setTintIndex,
|
|
75
|
+
setNextTintFamily: import_tints.setNextTintFamily,
|
|
76
|
+
setNextTint: () => {
|
|
77
|
+
import_react.default.startTransition(() => {
|
|
78
|
+
setTintIndex(index + 1);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
};
|
package/dist/cjs/useTint.js
CHANGED
|
@@ -22,15 +22,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
23
|
var useTint_exports = {};
|
|
24
24
|
__export(useTint_exports, {
|
|
25
|
-
ThemeTint: () => ThemeTint,
|
|
26
|
-
ThemeTintAlt: () => ThemeTintAlt,
|
|
27
25
|
getDocsSection: () => getDocsSection,
|
|
28
26
|
onTintChange: () => onTintChange,
|
|
29
27
|
setTintIndex: () => setTintIndex,
|
|
30
28
|
useTint: () => useTint
|
|
31
29
|
});
|
|
32
30
|
module.exports = __toCommonJS(useTint_exports);
|
|
33
|
-
var import_one = require("one"), import_react = __toESM(require("react"), 1),
|
|
31
|
+
var import_one = require("one"), import_react = __toESM(require("react"), 1), import_tints = require("./tints");
|
|
34
32
|
let current = 3;
|
|
35
33
|
const listeners = /* @__PURE__ */ new Set(), onTintChange = (listener) => (listeners.add(listener), () => {
|
|
36
34
|
listeners.delete(listener);
|
|
@@ -65,20 +63,5 @@ const useTint = (altOffset = -1) => {
|
|
|
65
63
|
});
|
|
66
64
|
}
|
|
67
65
|
};
|
|
68
|
-
}, ThemeTint = ({
|
|
69
|
-
disable,
|
|
70
|
-
children,
|
|
71
|
-
...rest
|
|
72
|
-
}) => {
|
|
73
|
-
const curTint = useTint().tint;
|
|
74
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { ...rest, name: disable ? null : curTint, children });
|
|
75
|
-
}, ThemeTintAlt = ({
|
|
76
|
-
children,
|
|
77
|
-
disable,
|
|
78
|
-
offset = 1,
|
|
79
|
-
...rest
|
|
80
|
-
}) => {
|
|
81
|
-
const curTint = useTint(offset).tintAlt;
|
|
82
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: disable ? null : curTint, ...rest, children });
|
|
83
66
|
};
|
|
84
67
|
//# sourceMappingURL=useTint.js.map
|