Compare commits
No commits in common. "v1.0.2" and "main" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ pnpm-debug.log*
|
|||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
|
|||||||
1
dist/favicon.svg
vendored
1
dist/favicon.svg
vendored
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 KiB |
24
dist/icons.svg
vendored
24
dist/icons.svg
vendored
@ -1,24 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
|
||||||
<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>
|
|
||||||
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
|
||||||
</symbol>
|
|
||||||
<symbol id="discord-icon" viewBox="0 0 20 19">
|
|
||||||
<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"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
|
||||||
<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"/>
|
|
||||||
<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"/>
|
|
||||||
<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"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol id="github-icon" viewBox="0 0 19 19">
|
|
||||||
<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"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol id="social-icon" viewBox="0 0 20 20">
|
|
||||||
<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"/>
|
|
||||||
<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"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol id="x-icon" viewBox="0 0 19 19">
|
|
||||||
<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"/>
|
|
||||||
</symbol>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.9 KiB |
626
dist/index.js
vendored
626
dist/index.js
vendored
@ -1,626 +0,0 @@
|
|||||||
import Oe from "react";
|
|
||||||
var x = {};
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
var me;
|
|
||||||
function sr() {
|
|
||||||
if (me) return x;
|
|
||||||
me = 1;
|
|
||||||
var V = Oe, C = Symbol.for("react.element"), M = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
||||||
function w(_, f, T) {
|
|
||||||
var p, y = {}, b = null, I = null;
|
|
||||||
T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && (I = f.ref);
|
|
||||||
for (p in f) m.call(f, p) && !A.hasOwnProperty(p) && (y[p] = f[p]);
|
|
||||||
if (_ && _.defaultProps) for (p in f = _.defaultProps, f) y[p] === void 0 && (y[p] = f[p]);
|
|
||||||
return { $$typeof: C, type: _, key: b, ref: I, props: y, _owner: F.current };
|
|
||||||
}
|
|
||||||
return x.Fragment = M, x.jsx = w, x.jsxs = w, x;
|
|
||||||
}
|
|
||||||
var D = {};
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.development.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
var Te;
|
|
||||||
function lr() {
|
|
||||||
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
||||||
var V = Oe, C = Symbol.for("react.element"), M = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Se = "@@iterator";
|
|
||||||
function Pe(e) {
|
|
||||||
if (e === null || typeof e != "object")
|
|
||||||
return null;
|
|
||||||
var r = X && e[X] || e[Se];
|
|
||||||
return typeof r == "function" ? r : null;
|
|
||||||
}
|
|
||||||
var O = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
||||||
function c(e) {
|
|
||||||
{
|
|
||||||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
||||||
t[n - 1] = arguments[n];
|
|
||||||
Ce("error", e, t);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function Ce(e, r, t) {
|
|
||||||
{
|
|
||||||
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
||||||
o !== "" && (r += "%s", t = t.concat([o]));
|
|
||||||
var u = t.map(function(i) {
|
|
||||||
return String(i);
|
|
||||||
});
|
|
||||||
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var we = !1, je = !1, ke = !1, xe = !1, De = !1, H;
|
|
||||||
H = Symbol.for("react.module.reference");
|
|
||||||
function Fe(e) {
|
|
||||||
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || De || e === F || e === T || e === p || xe || e === I || we || je || ke || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === y || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === f || // This needs to include all possible module reference object
|
|
||||||
// types supported by any Flight configuration anywhere since
|
|
||||||
// we don't know which Flight build this will end up being used
|
|
||||||
// with.
|
|
||||||
e.$$typeof === H || e.getModuleId !== void 0));
|
|
||||||
}
|
|
||||||
function Ae(e, r, t) {
|
|
||||||
var n = e.displayName;
|
|
||||||
if (n)
|
|
||||||
return n;
|
|
||||||
var o = r.displayName || r.name || "";
|
|
||||||
return o !== "" ? t + "(" + o + ")" : t;
|
|
||||||
}
|
|
||||||
function Z(e) {
|
|
||||||
return e.displayName || "Context";
|
|
||||||
}
|
|
||||||
function E(e) {
|
|
||||||
if (e == null)
|
|
||||||
return null;
|
|
||||||
if (typeof e.tag == "number" && c("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 m:
|
|
||||||
return "Fragment";
|
|
||||||
case M:
|
|
||||||
return "Portal";
|
|
||||||
case A:
|
|
||||||
return "Profiler";
|
|
||||||
case F:
|
|
||||||
return "StrictMode";
|
|
||||||
case T:
|
|
||||||
return "Suspense";
|
|
||||||
case p:
|
|
||||||
return "SuspenseList";
|
|
||||||
}
|
|
||||||
if (typeof e == "object")
|
|
||||||
switch (e.$$typeof) {
|
|
||||||
case _:
|
|
||||||
var r = e;
|
|
||||||
return Z(r) + ".Consumer";
|
|
||||||
case w:
|
|
||||||
var t = e;
|
|
||||||
return Z(t._context) + ".Provider";
|
|
||||||
case f:
|
|
||||||
return Ae(e, e.render, "ForwardRef");
|
|
||||||
case y:
|
|
||||||
var n = e.displayName || null;
|
|
||||||
return n !== null ? n : E(e.type) || "Memo";
|
|
||||||
case b: {
|
|
||||||
var o = e, u = o._payload, i = o._init;
|
|
||||||
try {
|
|
||||||
return E(i(u));
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
var h = Object.assign, j = 0, Q, ee, re, te, ne, ae, ie;
|
|
||||||
function oe() {
|
|
||||||
}
|
|
||||||
oe.__reactDisabledLog = !0;
|
|
||||||
function Ie() {
|
|
||||||
{
|
|
||||||
if (j === 0) {
|
|
||||||
Q = console.log, ee = console.info, re = console.warn, te = console.error, ne = console.group, ae = console.groupCollapsed, ie = console.groupEnd;
|
|
||||||
var e = {
|
|
||||||
configurable: !0,
|
|
||||||
enumerable: !0,
|
|
||||||
value: oe,
|
|
||||||
writable: !0
|
|
||||||
};
|
|
||||||
Object.defineProperties(console, {
|
|
||||||
info: e,
|
|
||||||
log: e,
|
|
||||||
warn: e,
|
|
||||||
error: e,
|
|
||||||
group: e,
|
|
||||||
groupCollapsed: e,
|
|
||||||
groupEnd: e
|
|
||||||
});
|
|
||||||
}
|
|
||||||
j++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function $e() {
|
|
||||||
{
|
|
||||||
if (j--, j === 0) {
|
|
||||||
var e = {
|
|
||||||
configurable: !0,
|
|
||||||
enumerable: !0,
|
|
||||||
writable: !0
|
|
||||||
};
|
|
||||||
Object.defineProperties(console, {
|
|
||||||
log: h({}, e, {
|
|
||||||
value: Q
|
|
||||||
}),
|
|
||||||
info: h({}, e, {
|
|
||||||
value: ee
|
|
||||||
}),
|
|
||||||
warn: h({}, e, {
|
|
||||||
value: re
|
|
||||||
}),
|
|
||||||
error: h({}, e, {
|
|
||||||
value: te
|
|
||||||
}),
|
|
||||||
group: h({}, e, {
|
|
||||||
value: ne
|
|
||||||
}),
|
|
||||||
groupCollapsed: h({}, e, {
|
|
||||||
value: ae
|
|
||||||
}),
|
|
||||||
groupEnd: h({}, e, {
|
|
||||||
value: ie
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var U = O.ReactCurrentDispatcher, N;
|
|
||||||
function $(e, r, t) {
|
|
||||||
{
|
|
||||||
if (N === void 0)
|
|
||||||
try {
|
|
||||||
throw Error();
|
|
||||||
} catch (o) {
|
|
||||||
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
||||||
N = n && n[1] || "";
|
|
||||||
}
|
|
||||||
return `
|
|
||||||
` + N + e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var B = !1, W;
|
|
||||||
{
|
|
||||||
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
||||||
W = new We();
|
|
||||||
}
|
|
||||||
function ue(e, r) {
|
|
||||||
if (!e || B)
|
|
||||||
return "";
|
|
||||||
{
|
|
||||||
var t = W.get(e);
|
|
||||||
if (t !== void 0)
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
var n;
|
|
||||||
B = !0;
|
|
||||||
var o = Error.prepareStackTrace;
|
|
||||||
Error.prepareStackTrace = void 0;
|
|
||||||
var u;
|
|
||||||
u = U.current, U.current = null, Ie();
|
|
||||||
try {
|
|
||||||
if (r) {
|
|
||||||
var i = function() {
|
|
||||||
throw Error();
|
|
||||||
};
|
|
||||||
if (Object.defineProperty(i.prototype, "props", {
|
|
||||||
set: function() {
|
|
||||||
throw Error();
|
|
||||||
}
|
|
||||||
}), typeof Reflect == "object" && Reflect.construct) {
|
|
||||||
try {
|
|
||||||
Reflect.construct(i, []);
|
|
||||||
} catch (d) {
|
|
||||||
n = d;
|
|
||||||
}
|
|
||||||
Reflect.construct(e, [], i);
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
i.call();
|
|
||||||
} catch (d) {
|
|
||||||
n = d;
|
|
||||||
}
|
|
||||||
e.call(i.prototype);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
throw Error();
|
|
||||||
} catch (d) {
|
|
||||||
n = d;
|
|
||||||
}
|
|
||||||
e();
|
|
||||||
}
|
|
||||||
} catch (d) {
|
|
||||||
if (d && n && typeof d.stack == "string") {
|
|
||||||
for (var a = d.stack.split(`
|
|
||||||
`), v = n.stack.split(`
|
|
||||||
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
||||||
l--;
|
|
||||||
for (; s >= 1 && l >= 0; s--, l--)
|
|
||||||
if (a[s] !== v[l]) {
|
|
||||||
if (s !== 1 || l !== 1)
|
|
||||||
do
|
|
||||||
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
||||||
var g = `
|
|
||||||
` + a[s].replace(" at new ", " at ");
|
|
||||||
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, g), g;
|
|
||||||
}
|
|
||||||
while (s >= 1 && l >= 0);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
B = !1, U.current = u, $e(), Error.prepareStackTrace = o;
|
|
||||||
}
|
|
||||||
var P = e ? e.displayName || e.name : "", R = P ? $(P) : "";
|
|
||||||
return typeof e == "function" && W.set(e, R), R;
|
|
||||||
}
|
|
||||||
function Ye(e, r, t) {
|
|
||||||
return ue(e, !1);
|
|
||||||
}
|
|
||||||
function Le(e) {
|
|
||||||
var r = e.prototype;
|
|
||||||
return !!(r && r.isReactComponent);
|
|
||||||
}
|
|
||||||
function Y(e, r, t) {
|
|
||||||
if (e == null)
|
|
||||||
return "";
|
|
||||||
if (typeof e == "function")
|
|
||||||
return ue(e, Le(e));
|
|
||||||
if (typeof e == "string")
|
|
||||||
return $(e);
|
|
||||||
switch (e) {
|
|
||||||
case T:
|
|
||||||
return $("Suspense");
|
|
||||||
case p:
|
|
||||||
return $("SuspenseList");
|
|
||||||
}
|
|
||||||
if (typeof e == "object")
|
|
||||||
switch (e.$$typeof) {
|
|
||||||
case f:
|
|
||||||
return Ye(e.render);
|
|
||||||
case y:
|
|
||||||
return Y(e.type, r, t);
|
|
||||||
case b: {
|
|
||||||
var n = e, o = n._payload, u = n._init;
|
|
||||||
try {
|
|
||||||
return Y(u(o), r, t);
|
|
||||||
} catch {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
var k = Object.prototype.hasOwnProperty, se = {}, le = O.ReactDebugCurrentFrame;
|
|
||||||
function L(e) {
|
|
||||||
if (e) {
|
|
||||||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
||||||
le.setExtraStackFrame(t);
|
|
||||||
} else
|
|
||||||
le.setExtraStackFrame(null);
|
|
||||||
}
|
|
||||||
function Ve(e, r, t, n, o) {
|
|
||||||
{
|
|
||||||
var u = Function.call.bind(k);
|
|
||||||
for (var i in e)
|
|
||||||
if (u(e, i)) {
|
|
||||||
var a = void 0;
|
|
||||||
try {
|
|
||||||
if (typeof e[i] != "function") {
|
|
||||||
var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
||||||
throw v.name = "Invariant Violation", v;
|
|
||||||
}
|
|
||||||
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
||||||
} catch (s) {
|
|
||||||
a = s;
|
|
||||||
}
|
|
||||||
a && !(a instanceof Error) && (L(o), c("%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).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in se) && (se[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var Me = Array.isArray;
|
|
||||||
function J(e) {
|
|
||||||
return Me(e);
|
|
||||||
}
|
|
||||||
function Ue(e) {
|
|
||||||
{
|
|
||||||
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function Ne(e) {
|
|
||||||
try {
|
|
||||||
return fe(e), !1;
|
|
||||||
} catch {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function fe(e) {
|
|
||||||
return "" + e;
|
|
||||||
}
|
|
||||||
function ce(e) {
|
|
||||||
if (Ne(e))
|
|
||||||
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), fe(e);
|
|
||||||
}
|
|
||||||
var ve = O.ReactCurrentOwner, Be = {
|
|
||||||
key: !0,
|
|
||||||
ref: !0,
|
|
||||||
__self: !0,
|
|
||||||
__source: !0
|
|
||||||
}, de, pe;
|
|
||||||
function Je(e) {
|
|
||||||
if (k.call(e, "ref")) {
|
|
||||||
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
||||||
if (r && r.isReactWarning)
|
|
||||||
return !1;
|
|
||||||
}
|
|
||||||
return e.ref !== void 0;
|
|
||||||
}
|
|
||||||
function qe(e) {
|
|
||||||
if (k.call(e, "key")) {
|
|
||||||
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
||||||
if (r && r.isReactWarning)
|
|
||||||
return !1;
|
|
||||||
}
|
|
||||||
return e.key !== void 0;
|
|
||||||
}
|
|
||||||
function Ke(e, r) {
|
|
||||||
typeof e.ref == "string" && ve.current;
|
|
||||||
}
|
|
||||||
function Ge(e, r) {
|
|
||||||
{
|
|
||||||
var t = function() {
|
|
||||||
de || (de = !0, c("%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)", r));
|
|
||||||
};
|
|
||||||
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
||||||
get: t,
|
|
||||||
configurable: !0
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ze(e, r) {
|
|
||||||
{
|
|
||||||
var t = function() {
|
|
||||||
pe || (pe = !0, c("%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)", r));
|
|
||||||
};
|
|
||||||
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
||||||
get: t,
|
|
||||||
configurable: !0
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var Xe = function(e, r, t, n, o, u, i) {
|
|
||||||
var a = {
|
|
||||||
// This tag allows us to uniquely identify this as a React Element
|
|
||||||
$$typeof: C,
|
|
||||||
// Built-in properties that belong on the element
|
|
||||||
type: e,
|
|
||||||
key: r,
|
|
||||||
ref: t,
|
|
||||||
props: i,
|
|
||||||
// Record the component responsible for creating this element.
|
|
||||||
_owner: u
|
|
||||||
};
|
|
||||||
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
||||||
configurable: !1,
|
|
||||||
enumerable: !1,
|
|
||||||
writable: !0,
|
|
||||||
value: !1
|
|
||||||
}), Object.defineProperty(a, "_self", {
|
|
||||||
configurable: !1,
|
|
||||||
enumerable: !1,
|
|
||||||
writable: !1,
|
|
||||||
value: n
|
|
||||||
}), Object.defineProperty(a, "_source", {
|
|
||||||
configurable: !1,
|
|
||||||
enumerable: !1,
|
|
||||||
writable: !1,
|
|
||||||
value: o
|
|
||||||
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
||||||
};
|
|
||||||
function He(e, r, t, n, o) {
|
|
||||||
{
|
|
||||||
var u, i = {}, a = null, v = null;
|
|
||||||
t !== void 0 && (ce(t), a = "" + t), qe(r) && (ce(r.key), a = "" + r.key), Je(r) && (v = r.ref, Ke(r, o));
|
|
||||||
for (u in r)
|
|
||||||
k.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
|
|
||||||
if (e && e.defaultProps) {
|
|
||||||
var s = e.defaultProps;
|
|
||||||
for (u in s)
|
|
||||||
i[u] === void 0 && (i[u] = s[u]);
|
|
||||||
}
|
|
||||||
if (a || v) {
|
|
||||||
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
||||||
a && Ge(i, l), v && ze(i, l);
|
|
||||||
}
|
|
||||||
return Xe(e, a, v, o, n, ve.current, i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var q = O.ReactCurrentOwner, ge = O.ReactDebugCurrentFrame;
|
|
||||||
function S(e) {
|
|
||||||
if (e) {
|
|
||||||
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
||||||
ge.setExtraStackFrame(t);
|
|
||||||
} else
|
|
||||||
ge.setExtraStackFrame(null);
|
|
||||||
}
|
|
||||||
var K;
|
|
||||||
K = !1;
|
|
||||||
function G(e) {
|
|
||||||
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
||||||
}
|
|
||||||
function ye() {
|
|
||||||
{
|
|
||||||
if (q.current) {
|
|
||||||
var e = E(q.current.type);
|
|
||||||
if (e)
|
|
||||||
return `
|
|
||||||
|
|
||||||
Check the render method of \`` + e + "`.";
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function Ze(e) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
var Ee = {};
|
|
||||||
function Qe(e) {
|
|
||||||
{
|
|
||||||
var r = ye();
|
|
||||||
if (!r) {
|
|
||||||
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
||||||
t && (r = `
|
|
||||||
|
|
||||||
Check the top-level render call using <` + t + ">.");
|
|
||||||
}
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _e(e, r) {
|
|
||||||
{
|
|
||||||
if (!e._store || e._store.validated || e.key != null)
|
|
||||||
return;
|
|
||||||
e._store.validated = !0;
|
|
||||||
var t = Qe(r);
|
|
||||||
if (Ee[t])
|
|
||||||
return;
|
|
||||||
Ee[t] = !0;
|
|
||||||
var n = "";
|
|
||||||
e && e._owner && e._owner !== q.current && (n = " It was passed a child from " + E(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function be(e, r) {
|
|
||||||
{
|
|
||||||
if (typeof e != "object")
|
|
||||||
return;
|
|
||||||
if (J(e))
|
|
||||||
for (var t = 0; t < e.length; t++) {
|
|
||||||
var n = e[t];
|
|
||||||
G(n) && _e(n, r);
|
|
||||||
}
|
|
||||||
else if (G(e))
|
|
||||||
e._store && (e._store.validated = !0);
|
|
||||||
else if (e) {
|
|
||||||
var o = Pe(e);
|
|
||||||
if (typeof o == "function" && o !== e.entries)
|
|
||||||
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
||||||
G(i.value) && _e(i.value, r);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function er(e) {
|
|
||||||
{
|
|
||||||
var r = e.type;
|
|
||||||
if (r == null || typeof r == "string")
|
|
||||||
return;
|
|
||||||
var t;
|
|
||||||
if (typeof r == "function")
|
|
||||||
t = r.propTypes;
|
|
||||||
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
||||||
// Inner props are checked in the reconciler.
|
|
||||||
r.$$typeof === y))
|
|
||||||
t = r.propTypes;
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
if (t) {
|
|
||||||
var n = E(r);
|
|
||||||
Ve(t, e.props, "prop", n, e);
|
|
||||||
} else if (r.PropTypes !== void 0 && !K) {
|
|
||||||
K = !0;
|
|
||||||
var o = E(r);
|
|
||||||
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
||||||
}
|
|
||||||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function rr(e) {
|
|
||||||
{
|
|
||||||
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
||||||
var n = r[t];
|
|
||||||
if (n !== "children" && n !== "key") {
|
|
||||||
S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var he = {};
|
|
||||||
function Re(e, r, t, n, o, u) {
|
|
||||||
{
|
|
||||||
var i = Fe(e);
|
|
||||||
if (!i) {
|
|
||||||
var a = "";
|
|
||||||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " 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 v = Ze();
|
|
||||||
v ? a += v : a += ye();
|
|
||||||
var s;
|
|
||||||
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === C ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
||||||
}
|
|
||||||
var l = He(e, r, t, o, u);
|
|
||||||
if (l == null)
|
|
||||||
return l;
|
|
||||||
if (i) {
|
|
||||||
var g = r.children;
|
|
||||||
if (g !== void 0)
|
|
||||||
if (n)
|
|
||||||
if (J(g)) {
|
|
||||||
for (var P = 0; P < g.length; P++)
|
|
||||||
be(g[P], e);
|
|
||||||
Object.freeze && Object.freeze(g);
|
|
||||||
} else
|
|
||||||
c("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
|
|
||||||
be(g, e);
|
|
||||||
}
|
|
||||||
if (k.call(r, "key")) {
|
|
||||||
var R = E(e), d = Object.keys(r).filter(function(ur) {
|
|
||||||
return ur !== "key";
|
|
||||||
}), z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
||||||
if (!he[R + z]) {
|
|
||||||
var or = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
||||||
c(`A props object containing a "key" prop is being spread into JSX:
|
|
||||||
let props = %s;
|
|
||||||
<%s {...props} />
|
|
||||||
React keys must be passed directly to JSX without using spread:
|
|
||||||
let props = %s;
|
|
||||||
<%s key={someKey} {...props} />`, z, R, or, R), he[R + z] = !0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return e === m ? rr(l) : er(l), l;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function tr(e, r, t) {
|
|
||||||
return Re(e, r, t, !0);
|
|
||||||
}
|
|
||||||
function nr(e, r, t) {
|
|
||||||
return Re(e, r, t, !1);
|
|
||||||
}
|
|
||||||
var ar = nr, ir = tr;
|
|
||||||
D.Fragment = m, D.jsx = ar, D.jsxs = ir;
|
|
||||||
}()), D;
|
|
||||||
}
|
|
||||||
process.env.NODE_ENV === "production" ? sr() : lr();
|
|
||||||
1
dist/style.css
vendored
1
dist/style.css
vendored
@ -1 +0,0 @@
|
|||||||
.counter{font-size:16px;padding:5px 10px;border-radius:5px;color:var(--accent);background:var(--accent-bg);border:2px solid transparent;transition:border-color .3s;margin-bottom:24px}.counter:hover{border-color:var(--accent-border)}.counter:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.hero{position:relative}.hero .base,.hero .framework,.hero .vite{inset-inline:0;margin:0 auto}.hero .base{width:170px;position:relative;z-index:0}.hero .framework,.hero .vite{position:absolute}.hero .framework{z-index:1;top:34px;height:28px;transform:perspective(2000px) rotate(300deg) rotateX(44deg) rotateY(39deg) scale(1.4)}.hero .vite{z-index:0;top:107px;height:26px;width:auto;transform:perspective(2000px) rotate(300deg) rotateX(40deg) rotateY(39deg) scale(.8)}#center{display:flex;flex-direction:column;gap:25px;place-content:center;place-items:center;flex-grow:1}@media (max-width: 1024px){#center{padding:32px 20px 24px;gap:18px}}#next-steps{display:flex;border-top:1px solid var(--border);text-align:left}#next-steps>div{flex:1 1 0;padding:32px}@media (max-width: 1024px){#next-steps>div{padding:24px 20px}}#next-steps .icon{margin-bottom:16px;width:22px;height:22px}@media (max-width: 1024px){#next-steps{flex-direction:column;text-align:center}}#docs{border-right:1px solid var(--border)}@media (max-width: 1024px){#docs{border-right:none;border-bottom:1px solid var(--border)}}#next-steps ul{list-style:none;padding:0;display:flex;gap:8px;margin:32px 0 0}#next-steps ul .logo{height:18px}#next-steps ul a{color:var(--text-h);font-size:16px;border-radius:6px;background:var(--social-bg);display:flex;padding:6px 12px;align-items:center;gap:8px;text-decoration:none;transition:box-shadow .3s}#next-steps ul a:hover{box-shadow:var(--shadow)}#next-steps ul a .button-icon{height:18px;width:18px}@media (max-width: 1024px){#next-steps ul{margin-top:20px;flex-wrap:wrap;justify-content:center}#next-steps ul li{flex:1 1 calc(50% - 8px)}#next-steps ul a{width:100%;justify-content:center;box-sizing:border-box}}#spacer{height:88px;border-top:1px solid var(--border)}@media (max-width: 1024px){#spacer{height:48px}}.ticks{position:relative;width:100%}.ticks:before,.ticks:after{content:"";position:absolute;top:-4.5px;border:5px solid transparent}.ticks:before{left:0;border-left-color:var(--border)}.ticks:after{right:0;border-right-color:var(--border)}
|
|
||||||
16
package-lock.json
generated
16
package-lock.json
generated
@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "oslog_react_base_component",
|
"name": "oslog_react_base_component",
|
||||||
"version": "1.0.0",
|
"version": "0.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "oslog_react_base_component",
|
"name": "oslog_react_base_component",
|
||||||
"version": "1.0.0",
|
"version": "0.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"react": "^18.3.1",
|
||||||
|
"react-dom": "^18.3.1"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-react": "^4.2.0",
|
"@vitejs/plugin-react": "^4.2.0",
|
||||||
"vite": "^5.0.0"
|
"vite": "^5.0.0"
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^18.3.1",
|
|
||||||
"react-dom": "^18.3.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
@ -1419,7 +1419,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
||||||
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"js-tokens": "^3.0.0 || ^4.0.0"
|
"js-tokens": "^3.0.0 || ^4.0.0"
|
||||||
},
|
},
|
||||||
@ -1511,7 +1510,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
||||||
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
},
|
},
|
||||||
@ -1524,7 +1522,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
||||||
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0",
|
"loose-envify": "^1.1.0",
|
||||||
"scheduler": "^0.23.2"
|
"scheduler": "^0.23.2"
|
||||||
@ -1593,7 +1590,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
||||||
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
}
|
}
|
||||||
|
|||||||
17
package.json
17
package.json
@ -1,23 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "oslog_react_base_component",
|
"name": "oslog_react_base_component",
|
||||||
"private": false,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "eslint ."
|
"lint": "eslint .",
|
||||||
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"dependencies": {
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.0",
|
"vite": "^5.0.0",
|
||||||
"@vitejs/plugin-react": "^4.2.0"
|
"@vitejs/plugin-react": "^4.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,4 +119,4 @@ function App() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* export default App */
|
export default App
|
||||||
|
|||||||
@ -1,26 +1,7 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react'
|
||||||
import { resolve } from 'path';
|
|
||||||
|
|
||||||
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
build: {
|
})
|
||||||
lib: {
|
|
||||||
entry: resolve(__dirname, 'src/App.jsx'),
|
|
||||||
name: 'OslogReactBaseComponent',
|
|
||||||
fileName: 'index',
|
|
||||||
formats: ['es']
|
|
||||||
},
|
|
||||||
rollupOptions: {
|
|
||||||
external: ['react', 'react-dom'],
|
|
||||||
output: {
|
|
||||||
// Force explicit named exports matching your source code
|
|
||||||
exports: 'named',
|
|
||||||
globals: {
|
|
||||||
react: 'React',
|
|
||||||
'react-dom': 'ReactDOM'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user