@johnnykarthi/demo-app 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/demo-app.css +2 -0
- package/dist/demo-app.js +512 -0
- package/dist/demo-app.umd.cjs +16 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x'
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
])
|
|
73
|
+
```
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--btn-primary:#2563eb;--btn-primary-hover:#1d4ed8;--btn-secondary:#64748b;--btn-secondary-hover:#475569;--btn-radius:6px;--btn-transition:all .2s ease}.k-btn{border-radius:var(--btn-radius);cursor:pointer;transition:var(--btn-transition);border:1px solid #0000;justify-content:center;align-items:center;padding:10px 20px;font-family:inherit;font-size:.875rem;font-weight:500;display:inline-flex}.k-btn-primary{background-color:var(--btn-primary);color:#fff}.k-btn-primary:hover{background-color:var(--btn-primary-hover)}.k-btn-secondary{background-color:var(--btn-secondary);color:#fff}.k-btn-secondary:hover{background-color:var(--btn-secondary-hover)}.k-btn-outline{color:#334155;background-color:#0000;border-color:#cbd5e1}.k-btn-outline:hover{background-color:#f8fafc;border-color:#94a3b8}.k-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
|
|
2
|
+
/*$vite$:1*/
|
package/dist/demo-app.js
ADDED
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { StrictMode as e } from "react";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var t = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), n = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
4
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
}), r = (/* @__PURE__ */ t(((e) => {
|
|
7
|
+
var t = n("react-dom");
|
|
8
|
+
if (process.env.NODE_ENV === "production") e.createRoot = t.createRoot, e.hydrateRoot = t.hydrateRoot;
|
|
9
|
+
else {
|
|
10
|
+
var r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
11
|
+
e.createRoot = function(e, n) {
|
|
12
|
+
r.usingClientEntryPoint = !0;
|
|
13
|
+
try {
|
|
14
|
+
return t.createRoot(e, n);
|
|
15
|
+
} finally {
|
|
16
|
+
r.usingClientEntryPoint = !1;
|
|
17
|
+
}
|
|
18
|
+
}, e.hydrateRoot = function(e, n, i) {
|
|
19
|
+
r.usingClientEntryPoint = !0;
|
|
20
|
+
try {
|
|
21
|
+
return t.hydrateRoot(e, n, i);
|
|
22
|
+
} finally {
|
|
23
|
+
r.usingClientEntryPoint = !1;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
})))(), i = /* @__PURE__ */ t(((e) => {
|
|
28
|
+
var t = n("react"), r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = {
|
|
29
|
+
key: !0,
|
|
30
|
+
ref: !0,
|
|
31
|
+
__self: !0,
|
|
32
|
+
__source: !0
|
|
33
|
+
};
|
|
34
|
+
function c(e, t, n) {
|
|
35
|
+
var i, c = {}, l = null, u = null;
|
|
36
|
+
for (i in n !== void 0 && (l = "" + n), t.key !== void 0 && (l = "" + t.key), t.ref !== void 0 && (u = t.ref), t) a.call(t, i) && !s.hasOwnProperty(i) && (c[i] = t[i]);
|
|
37
|
+
if (e && e.defaultProps) for (i in t = e.defaultProps, t) c[i] === void 0 && (c[i] = t[i]);
|
|
38
|
+
return {
|
|
39
|
+
$$typeof: r,
|
|
40
|
+
type: e,
|
|
41
|
+
key: l,
|
|
42
|
+
ref: u,
|
|
43
|
+
props: c,
|
|
44
|
+
_owner: o.current
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
e.Fragment = i, e.jsx = c, e.jsxs = c;
|
|
48
|
+
})), a = /* @__PURE__ */ t(((e) => {
|
|
49
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
+
var t = n("react"), r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, _ = "@@iterator";
|
|
51
|
+
function ee(e) {
|
|
52
|
+
if (typeof e != "object" || !e) return null;
|
|
53
|
+
var t = g && e[g] || e[_];
|
|
54
|
+
return typeof t == "function" ? t : null;
|
|
55
|
+
}
|
|
56
|
+
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function y(e) {
|
|
58
|
+
te("error", e, [...arguments].slice(1));
|
|
59
|
+
}
|
|
60
|
+
function te(e, t, n) {
|
|
61
|
+
var r = v.ReactDebugCurrentFrame.getStackAddendum();
|
|
62
|
+
r !== "" && (t += "%s", n = n.concat([r]));
|
|
63
|
+
var i = n.map(function(e) {
|
|
64
|
+
return String(e);
|
|
65
|
+
});
|
|
66
|
+
i.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, i);
|
|
67
|
+
}
|
|
68
|
+
var ne = !1, re = !1, ie = !1, ae = !1, oe = !1, se = Symbol.for("react.module.reference");
|
|
69
|
+
function ce(e) {
|
|
70
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || oe || e === o || e === d || e === f || ae || e === h || ne || re || ie || typeof e == "object" && e && (e.$$typeof === m || e.$$typeof === p || e.$$typeof === c || e.$$typeof === l || e.$$typeof === u || e.$$typeof === se || e.getModuleId !== void 0));
|
|
71
|
+
}
|
|
72
|
+
function le(e, t, n) {
|
|
73
|
+
var r = e.displayName;
|
|
74
|
+
if (r) return r;
|
|
75
|
+
var i = t.displayName || t.name || "";
|
|
76
|
+
return i === "" ? n : n + "(" + i + ")";
|
|
77
|
+
}
|
|
78
|
+
function b(e) {
|
|
79
|
+
return e.displayName || "Context";
|
|
80
|
+
}
|
|
81
|
+
function x(e) {
|
|
82
|
+
if (e == null) return null;
|
|
83
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null;
|
|
84
|
+
if (typeof e == "string") return e;
|
|
85
|
+
switch (e) {
|
|
86
|
+
case a: return "Fragment";
|
|
87
|
+
case i: return "Portal";
|
|
88
|
+
case s: return "Profiler";
|
|
89
|
+
case o: return "StrictMode";
|
|
90
|
+
case d: return "Suspense";
|
|
91
|
+
case f: return "SuspenseList";
|
|
92
|
+
}
|
|
93
|
+
if (typeof e == "object") switch (e.$$typeof) {
|
|
94
|
+
case l: return b(e) + ".Consumer";
|
|
95
|
+
case c: return b(e._context) + ".Provider";
|
|
96
|
+
case u: return le(e, e.render, "ForwardRef");
|
|
97
|
+
case p:
|
|
98
|
+
var t = e.displayName || null;
|
|
99
|
+
return t === null ? x(e.type) || "Memo" : t;
|
|
100
|
+
case m:
|
|
101
|
+
var n = e, r = n._payload, h = n._init;
|
|
102
|
+
try {
|
|
103
|
+
return x(h(r));
|
|
104
|
+
} catch {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
var S = Object.assign, C = 0, w, T, E, ue, D, O, k;
|
|
111
|
+
function A() {}
|
|
112
|
+
A.__reactDisabledLog = !0;
|
|
113
|
+
function de() {
|
|
114
|
+
if (C === 0) {
|
|
115
|
+
w = console.log, T = console.info, E = console.warn, ue = console.error, D = console.group, O = console.groupCollapsed, k = console.groupEnd;
|
|
116
|
+
var e = {
|
|
117
|
+
configurable: !0,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
value: A,
|
|
120
|
+
writable: !0
|
|
121
|
+
};
|
|
122
|
+
Object.defineProperties(console, {
|
|
123
|
+
info: e,
|
|
124
|
+
log: e,
|
|
125
|
+
warn: e,
|
|
126
|
+
error: e,
|
|
127
|
+
group: e,
|
|
128
|
+
groupCollapsed: e,
|
|
129
|
+
groupEnd: e
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
C++;
|
|
133
|
+
}
|
|
134
|
+
function fe() {
|
|
135
|
+
if (C--, C === 0) {
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
writable: !0
|
|
140
|
+
};
|
|
141
|
+
Object.defineProperties(console, {
|
|
142
|
+
log: S({}, e, { value: w }),
|
|
143
|
+
info: S({}, e, { value: T }),
|
|
144
|
+
warn: S({}, e, { value: E }),
|
|
145
|
+
error: S({}, e, { value: ue }),
|
|
146
|
+
group: S({}, e, { value: D }),
|
|
147
|
+
groupCollapsed: S({}, e, { value: O }),
|
|
148
|
+
groupEnd: S({}, e, { value: k })
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
C < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
152
|
+
}
|
|
153
|
+
var j = v.ReactCurrentDispatcher, M;
|
|
154
|
+
function N(e, t, n) {
|
|
155
|
+
if (M === void 0) try {
|
|
156
|
+
throw Error();
|
|
157
|
+
} catch (e) {
|
|
158
|
+
var r = e.stack.trim().match(/\n( *(at )?)/);
|
|
159
|
+
M = r && r[1] || "";
|
|
160
|
+
}
|
|
161
|
+
return "\n" + M + e;
|
|
162
|
+
}
|
|
163
|
+
var P = !1, F = new (typeof WeakMap == "function" ? WeakMap : Map)();
|
|
164
|
+
function I(e, t) {
|
|
165
|
+
if (!e || P) return "";
|
|
166
|
+
var n = F.get(e);
|
|
167
|
+
if (n !== void 0) return n;
|
|
168
|
+
var r;
|
|
169
|
+
P = !0;
|
|
170
|
+
var i = Error.prepareStackTrace;
|
|
171
|
+
Error.prepareStackTrace = void 0;
|
|
172
|
+
var a = j.current;
|
|
173
|
+
j.current = null, de();
|
|
174
|
+
try {
|
|
175
|
+
if (t) {
|
|
176
|
+
var o = function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
};
|
|
179
|
+
if (Object.defineProperty(o.prototype, "props", { set: function() {
|
|
180
|
+
throw Error();
|
|
181
|
+
} }), typeof Reflect == "object" && Reflect.construct) {
|
|
182
|
+
try {
|
|
183
|
+
Reflect.construct(o, []);
|
|
184
|
+
} catch (e) {
|
|
185
|
+
r = e;
|
|
186
|
+
}
|
|
187
|
+
Reflect.construct(e, [], o);
|
|
188
|
+
} else {
|
|
189
|
+
try {
|
|
190
|
+
o.call();
|
|
191
|
+
} catch (e) {
|
|
192
|
+
r = e;
|
|
193
|
+
}
|
|
194
|
+
e.call(o.prototype);
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
try {
|
|
198
|
+
throw Error();
|
|
199
|
+
} catch (e) {
|
|
200
|
+
r = e;
|
|
201
|
+
}
|
|
202
|
+
e();
|
|
203
|
+
}
|
|
204
|
+
} catch (t) {
|
|
205
|
+
if (t && r && typeof t.stack == "string") {
|
|
206
|
+
for (var s = t.stack.split("\n"), c = r.stack.split("\n"), l = s.length - 1, u = c.length - 1; l >= 1 && u >= 0 && s[l] !== c[u];) u--;
|
|
207
|
+
for (; l >= 1 && u >= 0; l--, u--) if (s[l] !== c[u]) {
|
|
208
|
+
if (l !== 1 || u !== 1) do
|
|
209
|
+
if (l--, u--, u < 0 || s[l] !== c[u]) {
|
|
210
|
+
var d = "\n" + s[l].replace(" at new ", " at ");
|
|
211
|
+
return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && F.set(e, d), d;
|
|
212
|
+
}
|
|
213
|
+
while (l >= 1 && u >= 0);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
} finally {
|
|
218
|
+
P = !1, j.current = a, fe(), Error.prepareStackTrace = i;
|
|
219
|
+
}
|
|
220
|
+
var f = e ? e.displayName || e.name : "", p = f ? N(f) : "";
|
|
221
|
+
return typeof e == "function" && F.set(e, p), p;
|
|
222
|
+
}
|
|
223
|
+
function pe(e, t, n) {
|
|
224
|
+
return I(e, !1);
|
|
225
|
+
}
|
|
226
|
+
function me(e) {
|
|
227
|
+
var t = e.prototype;
|
|
228
|
+
return !!(t && t.isReactComponent);
|
|
229
|
+
}
|
|
230
|
+
function L(e, t, n) {
|
|
231
|
+
if (e == null) return "";
|
|
232
|
+
if (typeof e == "function") return I(e, me(e));
|
|
233
|
+
if (typeof e == "string") return N(e);
|
|
234
|
+
switch (e) {
|
|
235
|
+
case d: return N("Suspense");
|
|
236
|
+
case f: return N("SuspenseList");
|
|
237
|
+
}
|
|
238
|
+
if (typeof e == "object") switch (e.$$typeof) {
|
|
239
|
+
case u: return pe(e.render);
|
|
240
|
+
case p: return L(e.type, t, n);
|
|
241
|
+
case m:
|
|
242
|
+
var r = e, i = r._payload, a = r._init;
|
|
243
|
+
try {
|
|
244
|
+
return L(a(i), t, n);
|
|
245
|
+
} catch {}
|
|
246
|
+
}
|
|
247
|
+
return "";
|
|
248
|
+
}
|
|
249
|
+
var R = Object.prototype.hasOwnProperty, z = {}, B = v.ReactDebugCurrentFrame;
|
|
250
|
+
function V(e) {
|
|
251
|
+
if (e) {
|
|
252
|
+
var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
|
|
253
|
+
B.setExtraStackFrame(n);
|
|
254
|
+
} else B.setExtraStackFrame(null);
|
|
255
|
+
}
|
|
256
|
+
function he(e, t, n, r, i) {
|
|
257
|
+
var a = Function.call.bind(R);
|
|
258
|
+
for (var o in e) if (a(e, o)) {
|
|
259
|
+
var s = void 0;
|
|
260
|
+
try {
|
|
261
|
+
if (typeof e[o] != "function") {
|
|
262
|
+
var c = Error((r || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
263
|
+
throw c.name = "Invariant Violation", c;
|
|
264
|
+
}
|
|
265
|
+
s = e[o](t, o, r, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
266
|
+
} catch (e) {
|
|
267
|
+
s = e;
|
|
268
|
+
}
|
|
269
|
+
s && !(s instanceof Error) && (V(i), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", r || "React class", n, o, typeof s), V(null)), s instanceof Error && !(s.message in z) && (z[s.message] = !0, V(i), y("Failed %s type: %s", n, s.message), V(null));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
var ge = Array.isArray;
|
|
273
|
+
function H(e) {
|
|
274
|
+
return ge(e);
|
|
275
|
+
}
|
|
276
|
+
function _e(e) {
|
|
277
|
+
return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
278
|
+
}
|
|
279
|
+
function ve(e) {
|
|
280
|
+
try {
|
|
281
|
+
return U(e), !1;
|
|
282
|
+
} catch {
|
|
283
|
+
return !0;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function U(e) {
|
|
287
|
+
return "" + e;
|
|
288
|
+
}
|
|
289
|
+
function W(e) {
|
|
290
|
+
if (ve(e)) return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _e(e)), U(e);
|
|
291
|
+
}
|
|
292
|
+
var G = v.ReactCurrentOwner, ye = {
|
|
293
|
+
key: !0,
|
|
294
|
+
ref: !0,
|
|
295
|
+
__self: !0,
|
|
296
|
+
__source: !0
|
|
297
|
+
}, K, q, J = {};
|
|
298
|
+
function be(e) {
|
|
299
|
+
if (R.call(e, "ref")) {
|
|
300
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
301
|
+
if (t && t.isReactWarning) return !1;
|
|
302
|
+
}
|
|
303
|
+
return e.ref !== void 0;
|
|
304
|
+
}
|
|
305
|
+
function xe(e) {
|
|
306
|
+
if (R.call(e, "key")) {
|
|
307
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
308
|
+
if (t && t.isReactWarning) return !1;
|
|
309
|
+
}
|
|
310
|
+
return e.key !== void 0;
|
|
311
|
+
}
|
|
312
|
+
function Se(e, t) {
|
|
313
|
+
if (typeof e.ref == "string" && G.current && t && G.current.stateNode !== t) {
|
|
314
|
+
var n = x(G.current.type);
|
|
315
|
+
J[n] || (y("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", x(G.current.type), e.ref), J[n] = !0);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
function Ce(e, t) {
|
|
319
|
+
var n = function() {
|
|
320
|
+
K || (K = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
321
|
+
};
|
|
322
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
323
|
+
get: n,
|
|
324
|
+
configurable: !0
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function we(e, t) {
|
|
328
|
+
var n = function() {
|
|
329
|
+
q || (q = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
330
|
+
};
|
|
331
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
332
|
+
get: n,
|
|
333
|
+
configurable: !0
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
var Te = function(e, t, n, i, a, o, s) {
|
|
337
|
+
var c = {
|
|
338
|
+
$$typeof: r,
|
|
339
|
+
type: e,
|
|
340
|
+
key: t,
|
|
341
|
+
ref: n,
|
|
342
|
+
props: s,
|
|
343
|
+
_owner: o
|
|
344
|
+
};
|
|
345
|
+
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
346
|
+
configurable: !1,
|
|
347
|
+
enumerable: !1,
|
|
348
|
+
writable: !0,
|
|
349
|
+
value: !1
|
|
350
|
+
}), Object.defineProperty(c, "_self", {
|
|
351
|
+
configurable: !1,
|
|
352
|
+
enumerable: !1,
|
|
353
|
+
writable: !1,
|
|
354
|
+
value: i
|
|
355
|
+
}), Object.defineProperty(c, "_source", {
|
|
356
|
+
configurable: !1,
|
|
357
|
+
enumerable: !1,
|
|
358
|
+
writable: !1,
|
|
359
|
+
value: a
|
|
360
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
361
|
+
};
|
|
362
|
+
function Ee(e, t, n, r, i) {
|
|
363
|
+
var a, o = {}, s = null, c = null;
|
|
364
|
+
for (a in n !== void 0 && (W(n), s = "" + n), xe(t) && (W(t.key), s = "" + t.key), be(t) && (c = t.ref, Se(t, i)), t) R.call(t, a) && !ye.hasOwnProperty(a) && (o[a] = t[a]);
|
|
365
|
+
if (e && e.defaultProps) {
|
|
366
|
+
var l = e.defaultProps;
|
|
367
|
+
for (a in l) o[a] === void 0 && (o[a] = l[a]);
|
|
368
|
+
}
|
|
369
|
+
if (s || c) {
|
|
370
|
+
var u = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
371
|
+
s && Ce(o, u), c && we(o, u);
|
|
372
|
+
}
|
|
373
|
+
return Te(e, s, c, i, r, G.current, o);
|
|
374
|
+
}
|
|
375
|
+
var Y = v.ReactCurrentOwner, X = v.ReactDebugCurrentFrame;
|
|
376
|
+
function Z(e) {
|
|
377
|
+
if (e) {
|
|
378
|
+
var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
|
|
379
|
+
X.setExtraStackFrame(n);
|
|
380
|
+
} else X.setExtraStackFrame(null);
|
|
381
|
+
}
|
|
382
|
+
var Q = !1;
|
|
383
|
+
function $(e) {
|
|
384
|
+
return typeof e == "object" && !!e && e.$$typeof === r;
|
|
385
|
+
}
|
|
386
|
+
function De() {
|
|
387
|
+
if (Y.current) {
|
|
388
|
+
var e = x(Y.current.type);
|
|
389
|
+
if (e) return "\n\nCheck the render method of `" + e + "`.";
|
|
390
|
+
}
|
|
391
|
+
return "";
|
|
392
|
+
}
|
|
393
|
+
function Oe(e) {
|
|
394
|
+
if (e !== void 0) {
|
|
395
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
396
|
+
return "\n\nCheck your code at " + t + ":" + n + ".";
|
|
397
|
+
}
|
|
398
|
+
return "";
|
|
399
|
+
}
|
|
400
|
+
var ke = {};
|
|
401
|
+
function Ae(e) {
|
|
402
|
+
var t = De();
|
|
403
|
+
if (!t) {
|
|
404
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
405
|
+
n && (t = "\n\nCheck the top-level render call using <" + n + ">.");
|
|
406
|
+
}
|
|
407
|
+
return t;
|
|
408
|
+
}
|
|
409
|
+
function je(e, t) {
|
|
410
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
411
|
+
e._store.validated = !0;
|
|
412
|
+
var n = Ae(t);
|
|
413
|
+
if (!ke[n]) {
|
|
414
|
+
ke[n] = !0;
|
|
415
|
+
var r = "";
|
|
416
|
+
e && e._owner && e._owner !== Y.current && (r = " It was passed a child from " + x(e._owner.type) + "."), Z(e), y("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", n, r), Z(null);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function Me(e, t) {
|
|
421
|
+
if (typeof e == "object") {
|
|
422
|
+
if (H(e)) for (var n = 0; n < e.length; n++) {
|
|
423
|
+
var r = e[n];
|
|
424
|
+
$(r) && je(r, t);
|
|
425
|
+
}
|
|
426
|
+
else if ($(e)) e._store && (e._store.validated = !0);
|
|
427
|
+
else if (e) {
|
|
428
|
+
var i = ee(e);
|
|
429
|
+
if (typeof i == "function" && i !== e.entries) for (var a = i.call(e), o; !(o = a.next()).done;) $(o.value) && je(o.value, t);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function Ne(e) {
|
|
434
|
+
var t = e.type;
|
|
435
|
+
if (!(t == null || typeof t == "string")) {
|
|
436
|
+
var n;
|
|
437
|
+
if (typeof t == "function") n = t.propTypes;
|
|
438
|
+
else if (typeof t == "object" && (t.$$typeof === u || t.$$typeof === p)) n = t.propTypes;
|
|
439
|
+
else return;
|
|
440
|
+
if (n) {
|
|
441
|
+
var r = x(t);
|
|
442
|
+
he(n, e.props, "prop", r, e);
|
|
443
|
+
} else t.PropTypes !== void 0 && !Q && (Q = !0, y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x(t) || "Unknown"));
|
|
444
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
function Pe(e) {
|
|
448
|
+
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
449
|
+
var r = t[n];
|
|
450
|
+
if (r !== "children" && r !== "key") {
|
|
451
|
+
Z(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", r), Z(null);
|
|
452
|
+
break;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
e.ref !== null && (Z(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
|
|
456
|
+
}
|
|
457
|
+
var Fe = {};
|
|
458
|
+
function Ie(e, t, n, i, o, s) {
|
|
459
|
+
var c = ce(e);
|
|
460
|
+
if (!c) {
|
|
461
|
+
var l = "";
|
|
462
|
+
(e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
463
|
+
var u = Oe(o);
|
|
464
|
+
u ? l += u : l += De();
|
|
465
|
+
var d;
|
|
466
|
+
e === null ? d = "null" : H(e) ? d = "array" : e !== void 0 && e.$$typeof === r ? (d = "<" + (x(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, l);
|
|
467
|
+
}
|
|
468
|
+
var f = Ee(e, t, n, o, s);
|
|
469
|
+
if (f == null) return f;
|
|
470
|
+
if (c) {
|
|
471
|
+
var p = t.children;
|
|
472
|
+
if (p !== void 0) if (i) if (H(p)) {
|
|
473
|
+
for (var m = 0; m < p.length; m++) Me(p[m], e);
|
|
474
|
+
Object.freeze && Object.freeze(p);
|
|
475
|
+
} else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
476
|
+
else Me(p, e);
|
|
477
|
+
}
|
|
478
|
+
if (R.call(t, "key")) {
|
|
479
|
+
var h = x(e), g = Object.keys(t).filter(function(e) {
|
|
480
|
+
return e !== "key";
|
|
481
|
+
}), _ = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
482
|
+
Fe[h + _] || (y("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", _, h, g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}", h), Fe[h + _] = !0);
|
|
483
|
+
}
|
|
484
|
+
return e === a ? Pe(f) : Ne(f), f;
|
|
485
|
+
}
|
|
486
|
+
function Le(e, t, n) {
|
|
487
|
+
return Ie(e, t, n, !0);
|
|
488
|
+
}
|
|
489
|
+
function Re(e, t, n) {
|
|
490
|
+
return Ie(e, t, n, !1);
|
|
491
|
+
}
|
|
492
|
+
var ze = Re, Be = Le;
|
|
493
|
+
e.Fragment = a, e.jsx = ze, e.jsxs = Be;
|
|
494
|
+
})();
|
|
495
|
+
})), o = (/* @__PURE__ */ t(((e, t) => {
|
|
496
|
+
process.env.NODE_ENV === "production" ? t.exports = i() : t.exports = a();
|
|
497
|
+
})))();
|
|
498
|
+
function s({ children: e }) {
|
|
499
|
+
return /* @__PURE__ */ (0, o.jsx)("button", {
|
|
500
|
+
className: "k-btn k-btn-secondary",
|
|
501
|
+
children: e
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/App.tsx
|
|
506
|
+
function c() {
|
|
507
|
+
return /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)("h2", { children: "Welcome to Vite + React" }), /* @__PURE__ */ (0, o.jsx)(s, { children: "Click Me" })] });
|
|
508
|
+
}
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/main.tsx
|
|
511
|
+
(0, r.createRoot)(document.getElementById("root")).render(/* @__PURE__ */ (0, o.jsx)(e, { children: /* @__PURE__ */ (0, o.jsx)(c, {}) }));
|
|
512
|
+
//#endregion
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(require(`react`)):typeof define==`function`&&define.amd?define([`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.react))})(this,function(e){var t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),n=t((e=>{var t=require(`react-dom`);if(process.env.NODE_ENV===`production`)e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e.createRoot=function(e,r){n.usingClientEntryPoint=!0;try{return t.createRoot(e,r)}finally{n.usingClientEntryPoint=!1}},e.hydrateRoot=function(e,r,i){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(e,r,i)}finally{n.usingClientEntryPoint=!1}}}}))(),r=t((e=>{var t=require(`react`),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),i=t((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=require(`react`),n=Symbol.for(`react.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.provider`),c=Symbol.for(`react.context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.iterator,g=`@@iterator`;function _(e){if(typeof e!=`object`||!e)return null;var t=h&&e[h]||e[g];return typeof t==`function`?t:null}var v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){ee(`error`,e,[...arguments].slice(1))}function ee(e,t,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var te=!1,ne=!1,re=!1,ie=!1,ae=!1,oe=Symbol.for(`react.module.reference`);function se(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||ae||e===a||e===u||e===d||ie||e===m||te||ne||re||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===oe||e.getModuleId!==void 0))}function ce(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function b(e){return e.displayName||`Context`}function x(e){if(e==null)return null;if(typeof e.tag==`number`&&y(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case i:return`Fragment`;case r:return`Portal`;case o:return`Profiler`;case a:return`StrictMode`;case u:return`Suspense`;case d:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case c:return b(e)+`.Consumer`;case s:return b(e._context)+`.Provider`;case l:return ce(e,e.render,`ForwardRef`);case f:var t=e.displayName||null;return t===null?x(e.type)||`Memo`:t;case p:var n=e,m=n._payload,h=n._init;try{return x(h(m))}catch{return null}}return null}var S=Object.assign,C=0,w,T,E,D,le,O,k;function A(){}A.__reactDisabledLog=!0;function ue(){if(C===0){w=console.log,T=console.info,E=console.warn,D=console.error,le=console.group,O=console.groupCollapsed,k=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}C++}function de(){if(C--,C===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:w}),info:S({},e,{value:T}),warn:S({},e,{value:E}),error:S({},e,{value:D}),group:S({},e,{value:le}),groupCollapsed:S({},e,{value:O}),groupEnd:S({},e,{value:k})})}C<0&&y(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var j=v.ReactCurrentDispatcher,M;function N(e,t,n){if(M===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||``}return`
|
|
2
|
+
`+M+e}var P=!1,F=new(typeof WeakMap==`function`?WeakMap:Map);function I(e,t){if(!e||P)return``;var n=F.get(e);if(n!==void 0)return n;var r;P=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=j.current;j.current=null,ue();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
|
|
3
|
+
`),c=r.stack.split(`
|
|
4
|
+
`),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
|
|
5
|
+
`+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&F.set(e,d),d}while(l>=1&&u>=0);break}}}finally{P=!1,j.current=a,de(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?N(f):``;return typeof e==`function`&&F.set(e,p),p}function fe(e,t,n){return I(e,!1)}function pe(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function L(e,t,n){if(e==null)return``;if(typeof e==`function`)return I(e,pe(e));if(typeof e==`string`)return N(e);switch(e){case u:return N(`Suspense`);case d:return N(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case l:return fe(e.render);case f:return L(e.type,t,n);case p:var r=e,i=r._payload,a=r._init;try{return L(a(i),t,n)}catch{}}return``}var R=Object.prototype.hasOwnProperty,z={},B=v.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}function me(e,t,n,r,i){var a=Function.call.bind(R);for(var o in e)if(a(e,o)){var s=void 0;try{if(typeof e[o]!=`function`){var c=Error((r||`React class`)+`: `+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name=`Invariant Violation`,c}s=e[o](t,o,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){s=e}s&&!(s instanceof Error)&&(V(i),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||`React class`,n,o,typeof s),V(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,V(i),y(`Failed %s type: %s`,n,s.message),V(null))}}var he=Array.isArray;function H(e){return he(e)}function ge(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function _e(e){try{return U(e),!1}catch{return!0}}function U(e){return``+e}function W(e){if(_e(e))return y(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,ge(e)),U(e)}var G=v.ReactCurrentOwner,ve={key:!0,ref:!0,__self:!0,__source:!0},K,q,J={};function ye(e){if(R.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function be(e){if(R.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function xe(e,t){if(typeof e.ref==`string`&&G.current&&t&&G.current.stateNode!==t){var n=x(G.current.type);J[n]||(y(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,x(G.current.type),e.ref),J[n]=!0)}}function Se(e,t){var n=function(){K||(K=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function Ce(e,t){var n=function(){q||(q=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`ref`,{get:n,configurable:!0})}var we=function(e,t,r,i,a,o,s){var c={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,`_self`,{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,`_source`,{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Te(e,t,n,r,i){var a,o={},s=null,c=null;for(a in n!==void 0&&(W(n),s=``+n),be(t)&&(W(t.key),s=``+t.key),ye(t)&&(c=t.ref,xe(t,i)),t)R.call(t,a)&&!ve.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps){var l=e.defaultProps;for(a in l)o[a]===void 0&&(o[a]=l[a])}if(s||c){var u=typeof e==`function`?e.displayName||e.name||`Unknown`:e;s&&Se(o,u),c&&Ce(o,u)}return we(e,s,c,i,r,G.current,o)}var Y=v.ReactCurrentOwner,X=v.ReactDebugCurrentFrame;function Z(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);X.setExtraStackFrame(n)}else X.setExtraStackFrame(null)}var Q=!1;function $(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function Ee(){if(Y.current){var e=x(Y.current.type);if(e)return`
|
|
6
|
+
|
|
7
|
+
Check the render method of \``+e+"`."}return``}function De(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,``),n=e.lineNumber;return`
|
|
8
|
+
|
|
9
|
+
Check your code at `+t+`:`+n+`.`}return``}var Oe={};function ke(e){var t=Ee();if(!t){var n=typeof e==`string`?e:e.displayName||e.name;n&&(t=`
|
|
10
|
+
|
|
11
|
+
Check the top-level render call using <`+n+`>.`)}return t}function Ae(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=ke(t);if(!Oe[n]){Oe[n]=!0;var r=``;e&&e._owner&&e._owner!==Y.current&&(r=` It was passed a child from `+x(e._owner.type)+`.`),Z(e),y(`Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.`,n,r),Z(null)}}}function je(e,t){if(typeof e==`object`){if(H(e))for(var n=0;n<e.length;n++){var r=e[n];$(r)&&Ae(r,t)}else if($(e))e._store&&(e._store.validated=!0);else if(e){var i=_(e);if(typeof i==`function`&&i!==e.entries)for(var a=i.call(e),o;!(o=a.next()).done;)$(o.value)&&Ae(o.value,t)}}}function Me(e){var t=e.type;if(!(t==null||typeof t==`string`)){var n;if(typeof t==`function`)n=t.propTypes;else if(typeof t==`object`&&(t.$$typeof===l||t.$$typeof===f))n=t.propTypes;else return;if(n){var r=x(t);me(n,e.props,`prop`,r,e)}else t.PropTypes!==void 0&&!Q&&(Q=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(t)||`Unknown`));typeof t.getDefaultProps==`function`&&!t.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ne(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if(r!==`children`&&r!==`key`){Z(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Z(null);break}}e.ref!==null&&(Z(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}var Pe={};function Fe(e,t,r,a,o,s){var c=se(e);if(!c){var l=``;(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(l+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`);var u=De(o);u?l+=u:l+=Ee();var d;e===null?d=`null`:H(e)?d=`array`:e!==void 0&&e.$$typeof===n?(d=`<`+(x(e.type)||`Unknown`)+` />`,l=` Did you accidentally export a JSX literal instead of a component?`):d=typeof e,y(`React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s`,d,l)}var f=Te(e,t,r,o,s);if(f==null)return f;if(c){var p=t.children;if(p!==void 0)if(a)if(H(p)){for(var m=0;m<p.length;m++)je(p[m],e);Object.freeze&&Object.freeze(p)}else y(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else je(p,e)}if(R.call(t,`key`)){var h=x(e),g=Object.keys(t).filter(function(e){return e!==`key`}),_=g.length>0?`{key: someKey, `+g.join(`: ..., `)+`: ...}`:`{key: someKey}`;Pe[h+_]||(y(`A props object containing a "key" prop is being spread into JSX:
|
|
12
|
+
let props = %s;
|
|
13
|
+
<%s {...props} />
|
|
14
|
+
React keys must be passed directly to JSX without using spread:
|
|
15
|
+
let props = %s;
|
|
16
|
+
<%s key={someKey} {...props} />`,_,h,g.length>0?`{`+g.join(`: ..., `)+`: ...}`:`{}`,h),Pe[h+_]=!0)}return e===i?Ne(f):Me(f),f}function Ie(e,t,n){return Fe(e,t,n,!0)}function Le(e,t,n){return Fe(e,t,n,!1)}var Re=Le,ze=Ie;e.Fragment=i,e.jsx=Re,e.jsxs=ze})()})),a=t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=r():t.exports=i()}))();function o({children:e}){return(0,a.jsx)(`button`,{className:`k-btn k-btn-secondary`,children:e})}function s(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`h2`,{children:`Welcome to Vite + React`}),(0,a.jsx)(o,{children:`Click Me`})]})}(0,n.createRoot)(document.getElementById(`root`)).render((0,a.jsx)(e.StrictMode,{children:(0,a.jsx)(s,{})}))});
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
|
package/dist/icons.svg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
|
3
|
+
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
|
|
4
|
+
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
|
5
|
+
</symbol>
|
|
6
|
+
<symbol id="discord-icon" viewBox="0 0 20 19">
|
|
7
|
+
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
|
|
8
|
+
</symbol>
|
|
9
|
+
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
|
10
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
|
|
11
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
|
|
12
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="github-icon" viewBox="0 0 19 19">
|
|
15
|
+
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="social-icon" viewBox="0 0 20 20">
|
|
18
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
|
|
19
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="x-icon" viewBox="0 0 19 19">
|
|
22
|
+
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
|
|
23
|
+
</symbol>
|
|
24
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@johnnykarthi/demo-app",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Reusable React UI components",
|
|
6
|
+
"main": "dist/demo-app.umd.cjs",
|
|
7
|
+
"module": "dist/demo-app.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "tsc -b && vite build",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"preview": "vite preview"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"react": "^18",
|
|
19
|
+
"react-dom": "^18"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.39.4",
|
|
23
|
+
"@types/node": "^24.12.0",
|
|
24
|
+
"@types/react": "^19.2.14",
|
|
25
|
+
"@types/react-dom": "^19.2.3",
|
|
26
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
27
|
+
"eslint": "^9.39.4",
|
|
28
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
29
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
30
|
+
"globals": "^17.4.0",
|
|
31
|
+
"typescript": "~5.9.3",
|
|
32
|
+
"typescript-eslint": "^8.56.1",
|
|
33
|
+
"vite": "^8.0.0"
|
|
34
|
+
}
|
|
35
|
+
}
|