nexura
Version:
A modern and lightweight React component library for building elegant and customizable user interfaces.
659 lines (656 loc) • 33.5 kB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`.btn{font-family:Poppins,sans-serif;font-weight:600;position:relative;overflow:hidden;text-align:center;z-index:1;color:#fff;border:none;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center}.btn-text{z-index:2;position:relative}.btn-sm{padding:.5rem 1.2rem;font-size:.9rem}.btn-md{padding:.8rem 2rem;font-size:1.1rem}.btn-lg{padding:1.2rem 2.8rem;font-size:1.3rem}.btn-rounded{border-radius:2rem}.btn-sharp{border-radius:6px}.btn-outlined{border:1.5px solid rgba(255,255,255,.8)}.btn-glow{box-shadow:0 0 20px #ffffff26,0 0 30px #ffffff1a}.btn-pumpkin{background:linear-gradient(145deg,#ff6b00,#c30)}.btn-vampire{background:linear-gradient(145deg,#70002d,#300040)}.btn-ghost{background:linear-gradient(145deg,#e9e9e9,#bababa);color:#111}.btn-spider{background:linear-gradient(145deg,#222,#000);color:#e0e0e0}.btn-zombie{background:linear-gradient(145deg,#5c8a00,#2d3a00);color:#fff}.btn-skull{background:linear-gradient(145deg,#dcdcdc,#a0a0a0);color:#000}.btn-ocean{background:linear-gradient(145deg,#00c6ff,#0072ff)}.btn-sunset{background:linear-gradient(145deg,#ff416c,#ff4b2b)}.btn:hover{box-shadow:0 0 10px #ffffff4d;transform:scale(1.03)}.btn-forest{background:linear-gradient(145deg,#228b22,#006400)}.btn-midnight{background:linear-gradient(145deg,#232526,#414345)}.btn-ruby{background:linear-gradient(145deg,#d31027,#ea384d)}.btn-cyber{background:linear-gradient(145deg,#0f0c29,#302b63,#24243e);color:#00ffea}.btn-outline-primary{color:#007bff;border:1px solid #007BFF;background:transparent;box-shadow:none}.btn-outline-primary:hover{background:#007bff;transform:scale(1.05);color:#fff}.btn-outline-secondary{color:#6c757d;border:1px solid #6c757d;background:transparent;box-shadow:none}.btn-outline-secondary:hover{background:#6c757d;transform:scale(1.05);color:#fff}.btn-outline-success{color:#28a745;border:1px solid #28a745;background:transparent;box-shadow:none}.btn-outline-success:hover{background:#28a745;transform:scale(1.05);color:#fff}.btn-outline-danger{color:#dc3545;border:1px solid #dc3545;background:transparent;box-shadow:none}.btn-outline-danger:hover{background:#dc3545;transform:scale(1.05);color:#fff}.btn-outline-warning{color:#ffc107;border:1px solid #ffc107;background:transparent;box-shadow:none}.btn-outline-warning:hover{background:#ffc107;transform:scale(1.05);color:#fff}.btn-outline-info{color:#17a2b8;border:1px solid #17a2b8;background:transparent;box-shadow:none}.btn-outline-info:hover{background:#17a2b8;transform:scale(1.05);color:#fff}.btn-outline-light{color:#f8f9fa;border:1px solid #f8f9fa;background:transparent;box-shadow:none}.btn-outline-light:hover{background:#f8f9fa;transform:scale(1.05);color:#000}.btn-outline-dark{color:#343a40;border:1px solid #343a40;background:transparent;box-shadow:none}.btn-outline-dark:hover{background:#343a40;transform:scale(1.05);color:#fff}.btn-primary{background:linear-gradient(145deg,#007bff,#0056b3);color:#fff}.btn-primary:hover{background:#0056b3;transform:scale(1.05);color:#fff}.btn-secondary{background:linear-gradient(145deg,#6c757d,#5a6268);color:#fff}.btn-secondary:hover{background:#5a6268;transform:scale(1.05);color:#fff}.btn-success{background:linear-gradient(145deg,#28a745,#218838);color:#fff}.btn-success:hover{background:#218838;transform:scale(1.05);color:#fff}.btn-danger{background:linear-gradient(145deg,#dc3545,#c82333);color:#fff}.btn-danger:hover{background:#c82333;transform:scale(1.05);color:#fff}.btn-warning{background:linear-gradient(145deg,#ffc107,#e0a800);color:#000}.btn-warning:hover{background:#e0a800;transform:scale(1.05);color:#000}.btn-info{background:linear-gradient(145deg,#17a2b8,#138496);color:#fff}.btn-info:hover{background:#138496;transform:scale(1.05);color:#fff}.btn-light{background:linear-gradient(145deg,#f8f9fa,#e2e6ea);color:#000}.btn-light:hover{background:#e2e6ea;transform:scale(1.05);color:#000}.btn-dark{background:linear-gradient(145deg,#343a40,#23272b);color:#fff}.btn-dark:hover{background:#23272b;transform:scale(1.05);color:#fff}.btn-icon{position:absolute;top:-12px;right:-12px;width:48px;height:48px;background-size:contain;background-repeat:no-repeat;opacity:.5;z-index:1;animation:float 3s ease-in-out infinite}.icon-ocean{width:64px;height:64px;background-repeat:no-repeat;background-size:contain;display:inline-block;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='grad1' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23007BFF' stop-opacity='1' /%3E%3Cstop offset='100%25' stop-color='%230045B7' stop-opacity='1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23grad1)' d='M12 40c6-12 18-12 24 0 4-12 16-12 20 0v12H12V40z'/%3E%3Cpath fill='%23A0D8FF' d='M12 48c6-8 18-8 24 0 4-8 16-8 20 0v4H12v-4z'/%3E%3Ccircle cx='16' cy='44' r='2' fill='%2300A1FF' opacity='0.7' /%3E%3Ccircle cx='48' cy='44' r='2' fill='%2300A1FF' opacity='0.7' /%3E%3C/svg%3E")}.icon-skull{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle fill='%23F8F8F8' cx='32' cy='32' r='18'/%3E%3Ccircle fill='%23000' cx='26' cy='28' r='2'/%3E%3Ccircle fill='%23000' cx='38' cy='28' r='2'/%3E%3Cpath fill='%23000' d='M30 38h4v4h-4z'/%3E%3Cpath fill='%23aaa' d='M22 44c6 4 14 4 20 0-6 2-14 2-20 0z'/%3E%3C/svg%3E")}.icon-sunset{width:64px;height:64px;background-repeat:no-repeat;background-size:contain;display:inline-block;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='grad-sunset' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23FF4B2B' /%3E%3Cstop offset='100%25' stop-color='%23FFB347' /%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='%23002F4B'/%3E%3Ccircle cx='32' cy='40' r='14' fill='url(%23grad-sunset)'/%3E%3Cpath fill='%23002233' d='M18 44h28v10H18z'/%3E%3Cpath fill='%23FF6F3C' d='M14 48h36v6H14z' opacity='0.7'/%3E%3Cpath fill='%23FFF0E1' d='M20 54h24v2H20z' opacity='0.5'/%3E%3C/svg%3E")}.icon-cyber{width:64px;height:64px;display:inline-block;background-repeat:no-repeat;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='28' fill='none' stroke='%2300FFEA' stroke-width='4' stroke-dasharray='6 6'/%3E%3Cpath fill='none' stroke='%2300FFEA' stroke-width='3' d='M20 32h24M32 20v24'/%3E%3Ccircle cx='32' cy='32' r='8' fill='%2300FFEA' opacity='0.3'/%3E%3C/svg%3E")}.icon-pumpkin{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23FFA500' d='M32 4c-1.1 0-2 .9-2 2v2c-6.1 0-12 5-12 14s6 14 14 14 14-5 14-14-5.9-14-12-14V6c0-1.1-.9-2-2-2z'/%3E%3Cellipse fill='%23994D00' cx='32' cy='34' rx='18' ry='14'/%3E%3Ccircle fill='%23fff' cx='26' cy='32' r='2'/%3E%3Ccircle fill='%23fff' cx='38' cy='32' r='2'/%3E%3Cpath fill='%23000' d='M26 40c2 1 6 1 8 0'/%3E%3C/svg%3E")}.icon-zombie{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22%3E%3Ccircle fill=%22%23707F51%22 cx=%2232%22 cy=%2232%22 r=%2218%22/%3E%3Cpath fill=%22%2344432E%22 d=%22M20 45c5-2 25-5 22-14-4 2-15 2-22 6z%22/%3E%3Ccircle fill=%22%23000000%22 cx=%2223%22 cy=%2229%22 r=%223%22/%3E%3Ccircle fill=%22%23A00000%22 cx=%2223%22 cy=%2229%22 r=%222%22/%3E%3Ccircle fill=%22%23000000%22 cx=%2241%22 cy=%2229%22 r=%223%22/%3E%3Ccircle fill=%22%23A00000%22 cx=%2241%22 cy=%2229%22 r=%222%22/%3E%3Cpath fill=%22%23B22222%22 d=%22M28 38c5 2 12 2 15 0-3 5-14 7-15 0z%22/%3E%3Cpath fill=%22%23909060%22 d=%22M24 20l-2 5 3 1-2 5 4-1-1 4 4-4-1-6 3 2-2-7z%22/%3E%3Cpath fill=%22%23440000%22 d=%22M30 24c1-2 4-3 6-2-3 3-4 6-6 6z%22/%3E%3Cpath fill=%22%23440000%22 d=%22M20 40c3-4 15-4 18-8-3 1-13 4-18 8z%22/%3E%3Cpath fill=%22%23C40000%22 d=%22M35 35l1 3 2-2-3-3z%22/%3E%3Cpath fill=%22%23705050%22 d=%22M28 45c-1 2-2 6 2 6-3-4 1-9 3-7z%22/%3E%3C/svg%3E");width:64px;height:64px;display:inline-block;background-repeat:no-repeat;background-size:contain}.icon-ruby{width:64px;height:64px;display:inline-block;background-repeat:no-repeat;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpolygon fill='%23EA384D' stroke='%23B02633' stroke-width='2' points='32 4 12 20 16 44 48 44 52 20 32 4' /%3E%3Cpolygon fill='%23D31027' points='32 10 18 22 22 40 42 40 46 22 32 10' opacity='0.8' /%3E%3Cpolygon fill='%23FF5A73' points='32 16 24 28 28 36 36 36 40 28 32 16' opacity='0.9' /%3E%3C/svg%3E")}.icon-spider{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle fill='%23444444' cx='32' cy='32' r='10'/%3E%3Cpath stroke='%23999999' stroke-width='2' d='M32 22v-8M32 42v8M22 32h-8M42 32h8M26 26l-6-6M38 38l6 6M26 38l-6 6M38 26l6-6'/%3E%3C/svg%3E")}.icon-vampire{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%2351003F' d='M32 4c-9 0-16 7-16 16 0 5 2 10 6 12-2 4-4 10-4 14 0 8 8 14 14 14s14-6 14-14c0-4-2-10-4-14 4-2 6-7 6-12 0-9-7-16-16-16z'/%3E%3Ccircle fill='%23fff' cx='26' cy='28' r='2'/%3E%3Ccircle fill='%23fff' cx='38' cy='28' r='2'/%3E%3Cpath fill='%23fff' d='M28 38l1 4 1-4zm6 0l1 4 1-4z'/%3E%3C/svg%3E")}.icon-ghost{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23F0F0F0' d='M32 4c-10 0-18 8-18 18v26c0 2 2 4 4 4s4-2 6-2 4 2 6 2 4-2 6-2 4 2 6 2 4-2 4-4V22c0-10-8-18-18-18z'/%3E%3Ccircle fill='%23000' cx='24' cy='28' r='2'/%3E%3Ccircle fill='%23000' cx='40' cy='28' r='2'/%3E%3Cpath fill='%23ccc' d='M28 38c2 2 6 2 8 0'/%3E%3C/svg%3E")}.icon-midnight{width:64px;height:64px;display:inline-block;background-repeat:no-repeat;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle fill='%23414345' cx='32' cy='32' r='28'/%3E%3Cpath fill='%23232326' d='M32 4a28 28 0 100 56 24 24 0 010-48z'/%3E%3Ccircle fill='%23b0b0b0' cx='44' cy='20' r='4' opacity='0.6'/%3E%3Ccircle fill='%23a0a0a0' cx='18' cy='44' r='6' opacity='0.4'/%3E%3C/svg%3E")}.icon-forest{width:50px;height:50px;display:inline-block;background-repeat:no-repeat;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpolygon fill='%23006400' points='32 4 18 30 26 30 12 54 28 54 24 46 40 46 36 54 52 54 38 30 46 30 32 4'/%3E%3Cpolygon fill='%23008800' points='32 10 22 34 30 34 18 52 32 52 28 44 36 44 32 52 46 52 34 34 42 34 32 10' opacity='0.7'/%3E%3Crect x='28' y='54' width='8' height='6' fill='%23002200'/%3E%3Cpath fill='%23003300' d='M30 54h4v6h-4z' opacity='0.8'/%3E%3C/svg%3E")}@media (max-width: 576px){.btn-sm{padding:.4rem 1rem;font-size:.75rem}.btn-md{padding:.6rem 1.5rem;font-size:.95rem}.btn-lg{padding:.9rem 2rem;font-size:1.1rem}.btn-icon{width:70px;height:70px;top:-10px;right:-10px}}@media (min-width: 577px) and (max-width: 768px){.btn-sm{padding:.5rem 1.1rem;font-size:.85rem}.btn-md{padding:.7rem 1.8rem;font-size:1rem}.btn-lg{padding:1rem 2.4rem;font-size:1.2rem}.btn-icon{width:50px;height:50px}}@media (min-width: 769px){.btn-sm{padding:.5rem 1.2rem;font-size:.9rem}.btn-md{padding:.8rem 2rem;font-size:1.1rem}.btn-lg{padding:1.2rem 2.8rem;font-size:1.3rem}.btn-icon{width:64px;height:64px}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}`)),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
import we from "react";
var N = { exports: {} }, $ = {};
/**
* @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 Oe;
function cr() {
if (Oe) return $;
Oe = 1;
var D = we, R = Symbol.for("react.element"), S = Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, P = D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
function _(g, f, C) {
var p, h = {}, m = null, W = null;
C !== void 0 && (m = "" + C), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (W = f.ref);
for (p in f) E.call(f, p) && !w.hasOwnProperty(p) && (h[p] = f[p]);
if (g && g.defaultProps) for (p in f = g.defaultProps, f) h[p] === void 0 && (h[p] = f[p]);
return { $$typeof: R, type: g, key: m, ref: W, props: h, _owner: P.current };
}
return $.Fragment = S, $.jsx = _, $.jsxs = _, $;
}
var I = {};
/**
* @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 Se;
function dr() {
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
var D = we, R = Symbol.for("react.element"), S = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), g = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Z = Symbol.iterator, Ce = "@@iterator";
function je(e) {
if (e === null || typeof e != "object")
return null;
var r = Z && e[Z] || e[Ce];
return typeof r == "function" ? r : null;
}
var j = D.__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];
xe("error", e, t);
}
}
function xe(e, r, t) {
{
var n = j.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 ke = !1, De = !1, Fe = !1, Ae = !1, $e = !1, Q;
Q = Symbol.for("react.module.reference");
function Ie(e) {
return !!(typeof e == "string" || typeof e == "function" || e === E || e === w || $e || e === P || e === C || e === p || Ae || e === W || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === h || e.$$typeof === _ || e.$$typeof === g || 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 === Q || e.getModuleId !== void 0));
}
function We(e, r, t) {
var n = e.displayName;
if (n)
return n;
var o = r.displayName || r.name || "";
return o !== "" ? t + "(" + o + ")" : t;
}
function ee(e) {
return e.displayName || "Context";
}
function y(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 E:
return "Fragment";
case S:
return "Portal";
case w:
return "Profiler";
case P:
return "StrictMode";
case C:
return "Suspense";
case p:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case g:
var r = e;
return ee(r) + ".Consumer";
case _:
var t = e;
return ee(t._context) + ".Provider";
case f:
return We(e, e.render, "ForwardRef");
case h:
var n = e.displayName || null;
return n !== null ? n : y(e.type) || "Memo";
case m: {
var o = e, u = o._payload, i = o._init;
try {
return y(i(u));
} catch {
return null;
}
}
}
return null;
}
var T = Object.assign, F = 0, re, te, ne, ae, ie, oe, ue;
function se() {
}
se.__reactDisabledLog = !0;
function Ye() {
{
if (F === 0) {
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: se,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
F++;
}
}
function Le() {
{
if (F--, F === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: T({}, e, {
value: re
}),
info: T({}, e, {
value: te
}),
warn: T({}, e, {
value: ne
}),
error: T({}, e, {
value: ae
}),
group: T({}, e, {
value: ie
}),
groupCollapsed: T({}, e, {
value: oe
}),
groupEnd: T({}, e, {
value: ue
})
});
}
F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var J = j.ReactCurrentDispatcher, q;
function Y(e, r, t) {
{
if (q === void 0)
try {
throw Error();
} catch (o) {
var n = o.stack.trim().match(/\n( *(at )?)/);
q = n && n[1] || "";
}
return `
` + q + e;
}
}
var B = !1, L;
{
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
L = new Ve();
}
function le(e, r) {
if (!e || B)
return "";
{
var t = L.get(e);
if (t !== void 0)
return t;
}
var n;
B = !0;
var o = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = J.current, J.current = null, Ye();
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 (v) {
n = v;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (v) {
n = v;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (v) {
n = v;
}
e();
}
} catch (v) {
if (v && n && typeof v.stack == "string") {
for (var a = v.stack.split(`
`), d = n.stack.split(`
`), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
l--;
for (; s >= 1 && l >= 0; s--, l--)
if (a[s] !== d[l]) {
if (s !== 1 || l !== 1)
do
if (s--, l--, l < 0 || a[s] !== d[l]) {
var b = `
` + a[s].replace(" at new ", " at ");
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, b), b;
}
while (s >= 1 && l >= 0);
break;
}
}
} finally {
B = !1, J.current = u, Le(), Error.prepareStackTrace = o;
}
var k = e ? e.displayName || e.name : "", O = k ? Y(k) : "";
return typeof e == "function" && L.set(e, O), O;
}
function Me(e, r, t) {
return le(e, !1);
}
function Ne(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function V(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return le(e, Ne(e));
if (typeof e == "string")
return Y(e);
switch (e) {
case C:
return Y("Suspense");
case p:
return Y("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case f:
return Me(e.render);
case h:
return V(e.type, r, t);
case m: {
var n = e, o = n._payload, u = n._init;
try {
return V(u(o), r, t);
} catch {
}
}
}
return "";
}
var A = Object.prototype.hasOwnProperty, fe = {}, ce = j.ReactDebugCurrentFrame;
function M(e) {
if (e) {
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
ce.setExtraStackFrame(t);
} else
ce.setExtraStackFrame(null);
}
function Ue(e, r, t, n, o) {
{
var u = Function.call.bind(A);
for (var i in e)
if (u(e, i)) {
var a = void 0;
try {
if (typeof e[i] != "function") {
var d = 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 d.name = "Invariant Violation", d;
}
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) && (M(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), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(o), c("Failed %s type: %s", t, a.message), M(null));
}
}
}
var Je = Array.isArray;
function K(e) {
return Je(e);
}
function qe(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function Be(e) {
try {
return de(e), !1;
} catch {
return !0;
}
}
function de(e) {
return "" + e;
}
function ve(e) {
if (Be(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), de(e);
}
var pe = j.ReactCurrentOwner, Ke = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, be, ge;
function Ge(e) {
if (A.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function ze(e) {
if (A.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function Xe(e, r) {
typeof e.ref == "string" && pe.current;
}
function He(e, r) {
{
var t = function() {
be || (be = !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() {
ge || (ge = !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 Qe = function(e, r, t, n, o, u, i) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: R,
// 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 er(e, r, t, n, o) {
{
var u, i = {}, a = null, d = null;
t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Xe(r, o));
for (u in r)
A.call(r, u) && !Ke.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 || d) {
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(i, l), d && Ze(i, l);
}
return Qe(e, a, d, o, n, pe.current, i);
}
}
var G = j.ReactCurrentOwner, he = j.ReactDebugCurrentFrame;
function x(e) {
if (e) {
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
he.setExtraStackFrame(t);
} else
he.setExtraStackFrame(null);
}
var z;
z = !1;
function X(e) {
return typeof e == "object" && e !== null && e.$$typeof === R;
}
function Ee() {
{
if (G.current) {
var e = y(G.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function rr(e) {
return "";
}
var ye = {};
function tr(e) {
{
var r = Ee();
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 Re(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = tr(r);
if (ye[t])
return;
ye[t] = !0;
var n = "";
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + y(e._owner.type) + "."), x(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), x(null);
}
}
function _e(e, r) {
{
if (typeof e != "object")
return;
if (K(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
X(n) && Re(n, r);
}
else if (X(e))
e._store && (e._store.validated = !0);
else if (e) {
var o = je(e);
if (typeof o == "function" && o !== e.entries)
for (var u = o.call(e), i; !(i = u.next()).done; )
X(i.value) && Re(i.value, r);
}
}
}
function nr(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 === h))
t = r.propTypes;
else
return;
if (t) {
var n = y(r);
Ue(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !z) {
z = !0;
var o = y(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 ar(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
x(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
break;
}
}
e.ref !== null && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
}
}
var me = {};
function Te(e, r, t, n, o, u) {
{
var i = Ie(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 d = rr();
d ? a += d : a += Ee();
var s;
e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof === R ? (s = "<" + (y(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 = er(e, r, t, o, u);
if (l == null)
return l;
if (i) {
var b = r.children;
if (b !== void 0)
if (n)
if (K(b)) {
for (var k = 0; k < b.length; k++)
_e(b[k], e);
Object.freeze && Object.freeze(b);
} 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
_e(b, e);
}
if (A.call(r, "key")) {
var O = y(e), v = Object.keys(r).filter(function(fr) {
return fr !== "key";
}), H = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!me[O + H]) {
var lr = v.length > 0 ? "{" + v.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} />`, H, O, lr, O), me[O + H] = !0;
}
}
return e === E ? ar(l) : nr(l), l;
}
}
function ir(e, r, t) {
return Te(e, r, t, !0);
}
function or(e, r, t) {
return Te(e, r, t, !1);
}
var ur = or, sr = ir;
I.Fragment = E, I.jsx = ur, I.jsxs = sr;
}()), I;
}
var Pe;
function vr() {
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? N.exports = cr() : N.exports = dr()), N.exports;
}
var U = vr();
const br = ({
children: D,
onClick: R,
variant: S = "ghost",
size: E = "md",
glow: P = !0,
outlined: w = !0,
rounded: _ = !0,
alert: g
}) => {
const f = [
"btn",
`btn-${S}`,
`btn-${E}`,
P ? "btn-glow" : "",
w ? "btn-outlined" : "",
_ ? "btn-rounded" : "btn-sharp",
g ? "btn-alert" : ""
].join(" ").trim();
return /* @__PURE__ */ U.jsxs("button", { className: f, onClick: R, children: [
/* @__PURE__ */ U.jsx("span", { className: "btn-text", children: /* @__PURE__ */ U.jsx("span", { children: D }) }),
/* @__PURE__ */ U.jsx("span", { className: `btn-icon icon-${S}` })
] });
};
export {
br as Button
};