welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
684 lines (683 loc) • 23.8 kB
JavaScript
"use client";
import { g as Se } from "./index-B6iGEm-i.js";
var V = { exports: {} }, N = { exports: {} }, g = {}, ue;
function _e() {
if (ue) return g;
ue = 1;
var o = typeof Symbol == "function" && Symbol.for, R = o ? Symbol.for("react.element") : 60103, d = o ? Symbol.for("react.portal") : 60106, a = o ? Symbol.for("react.fragment") : 60107, _ = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, T = o ? Symbol.for("react.provider") : 60109, f = o ? Symbol.for("react.context") : 60110, P = o ? Symbol.for("react.async_mode") : 60111, E = o ? Symbol.for("react.concurrent_mode") : 60111, s = o ? Symbol.for("react.forward_ref") : 60112, m = o ? Symbol.for("react.suspense") : 60113, w = o ? Symbol.for("react.suspense_list") : 60120, C = o ? Symbol.for("react.memo") : 60115, M = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, I = o ? Symbol.for("react.fundamental") : 60117, q = o ? Symbol.for("react.responder") : 60118, F = o ? Symbol.for("react.scope") : 60119;
function j(t) {
if (typeof t == "object" && t !== null) {
var k = t.$$typeof;
switch (k) {
case R:
switch (t = t.type, t) {
case P:
case E:
case a:
case i:
case _:
case m:
return t;
default:
switch (t = t && t.$$typeof, t) {
case f:
case s:
case M:
case C:
case T:
return t;
default:
return k;
}
}
case d:
return k;
}
}
}
function A(t) {
return j(t) === E;
}
return g.AsyncMode = P, g.ConcurrentMode = E, g.ContextConsumer = f, g.ContextProvider = T, g.Element = R, g.ForwardRef = s, g.Fragment = a, g.Lazy = M, g.Memo = C, g.Portal = d, g.Profiler = i, g.StrictMode = _, g.Suspense = m, g.isAsyncMode = function(t) {
return A(t) || j(t) === P;
}, g.isConcurrentMode = A, g.isContextConsumer = function(t) {
return j(t) === f;
}, g.isContextProvider = function(t) {
return j(t) === T;
}, g.isElement = function(t) {
return typeof t == "object" && t !== null && t.$$typeof === R;
}, g.isForwardRef = function(t) {
return j(t) === s;
}, g.isFragment = function(t) {
return j(t) === a;
}, g.isLazy = function(t) {
return j(t) === M;
}, g.isMemo = function(t) {
return j(t) === C;
}, g.isPortal = function(t) {
return j(t) === d;
}, g.isProfiler = function(t) {
return j(t) === i;
}, g.isStrictMode = function(t) {
return j(t) === _;
}, g.isSuspense = function(t) {
return j(t) === m;
}, g.isValidElementType = function(t) {
return typeof t == "string" || typeof t == "function" || t === a || t === E || t === i || t === _ || t === m || t === w || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === C || t.$$typeof === T || t.$$typeof === f || t.$$typeof === s || t.$$typeof === I || t.$$typeof === q || t.$$typeof === F || t.$$typeof === x);
}, g.typeOf = j, g;
}
var S = {}, fe;
function Oe() {
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
var o = typeof Symbol == "function" && Symbol.for, R = o ? Symbol.for("react.element") : 60103, d = o ? Symbol.for("react.portal") : 60106, a = o ? Symbol.for("react.fragment") : 60107, _ = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, T = o ? Symbol.for("react.provider") : 60109, f = o ? Symbol.for("react.context") : 60110, P = o ? Symbol.for("react.async_mode") : 60111, E = o ? Symbol.for("react.concurrent_mode") : 60111, s = o ? Symbol.for("react.forward_ref") : 60112, m = o ? Symbol.for("react.suspense") : 60113, w = o ? Symbol.for("react.suspense_list") : 60120, C = o ? Symbol.for("react.memo") : 60115, M = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, I = o ? Symbol.for("react.fundamental") : 60117, q = o ? Symbol.for("react.responder") : 60118, F = o ? Symbol.for("react.scope") : 60119;
function j(r) {
return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
r === a || r === E || r === i || r === _ || r === m || r === w || typeof r == "object" && r !== null && (r.$$typeof === M || r.$$typeof === C || r.$$typeof === T || r.$$typeof === f || r.$$typeof === s || r.$$typeof === I || r.$$typeof === q || r.$$typeof === F || r.$$typeof === x);
}
function A(r) {
if (typeof r == "object" && r !== null) {
var D = r.$$typeof;
switch (D) {
case R:
var B = r.type;
switch (B) {
case P:
case E:
case a:
case i:
case _:
case m:
return B;
default:
var se = B && B.$$typeof;
switch (se) {
case f:
case s:
case M:
case C:
case T:
return se;
default:
return D;
}
}
case d:
return D;
}
}
}
var t = P, k = E, H = f, J = T, X = R, G = s, U = a, K = M, Z = C, L = d, Q = i, Y = _, W = m, z = !1;
function ee(r) {
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), e(r) || A(r) === P;
}
function e(r) {
return A(r) === E;
}
function n(r) {
return A(r) === f;
}
function y(r) {
return A(r) === T;
}
function l(r) {
return typeof r == "object" && r !== null && r.$$typeof === R;
}
function c(r) {
return A(r) === s;
}
function v(r) {
return A(r) === a;
}
function u(r) {
return A(r) === M;
}
function p(r) {
return A(r) === C;
}
function b(r) {
return A(r) === d;
}
function O(r) {
return A(r) === i;
}
function h(r) {
return A(r) === _;
}
function $(r) {
return A(r) === m;
}
S.AsyncMode = t, S.ConcurrentMode = k, S.ContextConsumer = H, S.ContextProvider = J, S.Element = X, S.ForwardRef = G, S.Fragment = U, S.Lazy = K, S.Memo = Z, S.Portal = L, S.Profiler = Q, S.StrictMode = Y, S.Suspense = W, S.isAsyncMode = ee, S.isConcurrentMode = e, S.isContextConsumer = n, S.isContextProvider = y, S.isElement = l, S.isForwardRef = c, S.isFragment = v, S.isLazy = u, S.isMemo = p, S.isPortal = b, S.isProfiler = O, S.isStrictMode = h, S.isSuspense = $, S.isValidElementType = j, S.typeOf = A;
}()), S;
}
var le;
function Ee() {
return le || (le = 1, process.env.NODE_ENV === "production" ? N.exports = _e() : N.exports = Oe()), N.exports;
}
var re, pe;
function Pe() {
if (pe) return re;
pe = 1;
var o = Object.getOwnPropertySymbols, R = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
function a(i) {
if (i == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(i);
}
function _() {
try {
if (!Object.assign)
return !1;
var i = new String("abc");
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
return !1;
for (var T = {}, f = 0; f < 10; f++)
T["_" + String.fromCharCode(f)] = f;
var P = Object.getOwnPropertyNames(T).map(function(s) {
return T[s];
});
if (P.join("") !== "0123456789")
return !1;
var E = {};
return "abcdefghijklmnopqrst".split("").forEach(function(s) {
E[s] = s;
}), Object.keys(Object.assign({}, E)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return re = _() ? Object.assign : function(i, T) {
for (var f, P = a(i), E, s = 1; s < arguments.length; s++) {
f = Object(arguments[s]);
for (var m in f)
R.call(f, m) && (P[m] = f[m]);
if (o) {
E = o(f);
for (var w = 0; w < E.length; w++)
d.call(f, E[w]) && (P[E[w]] = f[E[w]]);
}
}
return P;
}, re;
}
var te, ye;
function ce() {
if (ye) return te;
ye = 1;
var o = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return te = o, te;
}
var ne, de;
function ge() {
return de || (de = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
}
var oe, ve;
function Re() {
if (ve) return oe;
ve = 1;
var o = function() {
};
if (process.env.NODE_ENV !== "production") {
var R = /* @__PURE__ */ ce(), d = {}, a = /* @__PURE__ */ ge();
o = function(i) {
var T = "Warning: " + i;
typeof console < "u" && console.error(T);
try {
throw new Error(T);
} catch {
}
};
}
function _(i, T, f, P, E) {
if (process.env.NODE_ENV !== "production") {
for (var s in i)
if (a(i, s)) {
var m;
try {
if (typeof i[s] != "function") {
var w = Error(
(P || "React class") + ": " + f + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw w.name = "Invariant Violation", w;
}
m = i[s](T, s, P, f, null, R);
} catch (M) {
m = M;
}
if (m && !(m instanceof Error) && o(
(P || "React class") + ": type specification of " + f + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), m instanceof Error && !(m.message in d)) {
d[m.message] = !0;
var C = E ? E() : "";
o(
"Failed " + f + " type: " + m.message + (C ?? "")
);
}
}
}
}
return _.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (d = {});
}, oe = _, oe;
}
var ie, be;
function xe() {
if (be) return ie;
be = 1;
var o = Ee(), R = Pe(), d = /* @__PURE__ */ ce(), a = /* @__PURE__ */ ge(), _ = /* @__PURE__ */ Re(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(f) {
var P = "Warning: " + f;
typeof console < "u" && console.error(P);
try {
throw new Error(P);
} catch {
}
});
function T() {
return null;
}
return ie = function(f, P) {
var E = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
function m(e) {
var n = e && (E && e[E] || e[s]);
if (typeof n == "function")
return n;
}
var w = "<<anonymous>>", C = {
array: q("array"),
bigint: q("bigint"),
bool: q("boolean"),
func: q("function"),
number: q("number"),
object: q("object"),
string: q("string"),
symbol: q("symbol"),
any: F(),
arrayOf: j,
element: A(),
elementType: t(),
instanceOf: k,
node: G(),
objectOf: J,
oneOf: H,
oneOfType: X,
shape: K,
exact: Z
};
function M(e, n) {
return e === n ? e !== 0 || 1 / e === 1 / n : e !== e && n !== n;
}
function x(e, n) {
this.message = e, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
}
x.prototype = Error.prototype;
function I(e) {
if (process.env.NODE_ENV !== "production")
var n = {}, y = 0;
function l(v, u, p, b, O, h, $) {
if (b = b || w, h = h || p, $ !== d) {
if (P) {
var r = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
);
throw r.name = "Invariant Violation", r;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var D = b + ":" + p;
!n[D] && // Avoid spamming the console because they are often not actionable except for lib authors
y < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + h + "` prop on `" + b + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), n[D] = !0, y++);
}
}
return u[p] == null ? v ? u[p] === null ? new x("The " + O + " `" + h + "` is marked as required " + ("in `" + b + "`, but its value is `null`.")) : new x("The " + O + " `" + h + "` is marked as required in " + ("`" + b + "`, but its value is `undefined`.")) : null : e(u, p, b, O, h);
}
var c = l.bind(null, !1);
return c.isRequired = l.bind(null, !0), c;
}
function q(e) {
function n(y, l, c, v, u, p) {
var b = y[l], O = Y(b);
if (O !== e) {
var h = W(b);
return new x(
"Invalid " + v + " `" + u + "` of type " + ("`" + h + "` supplied to `" + c + "`, expected ") + ("`" + e + "`."),
{ expectedType: e }
);
}
return null;
}
return I(n);
}
function F() {
return I(T);
}
function j(e) {
function n(y, l, c, v, u) {
if (typeof e != "function")
return new x("Property `" + u + "` of component `" + c + "` has invalid PropType notation inside arrayOf.");
var p = y[l];
if (!Array.isArray(p)) {
var b = Y(p);
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected an array."));
}
for (var O = 0; O < p.length; O++) {
var h = e(p, O, c, v, u + "[" + O + "]", d);
if (h instanceof Error)
return h;
}
return null;
}
return I(n);
}
function A() {
function e(n, y, l, c, v) {
var u = n[y];
if (!f(u)) {
var p = Y(u);
return new x("Invalid " + c + " `" + v + "` of type " + ("`" + p + "` supplied to `" + l + "`, expected a single ReactElement."));
}
return null;
}
return I(e);
}
function t() {
function e(n, y, l, c, v) {
var u = n[y];
if (!o.isValidElementType(u)) {
var p = Y(u);
return new x("Invalid " + c + " `" + v + "` of type " + ("`" + p + "` supplied to `" + l + "`, expected a single ReactElement type."));
}
return null;
}
return I(e);
}
function k(e) {
function n(y, l, c, v, u) {
if (!(y[l] instanceof e)) {
var p = e.name || w, b = ee(y[l]);
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected ") + ("instance of `" + p + "`."));
}
return null;
}
return I(n);
}
function H(e) {
if (!Array.isArray(e))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : i("Invalid argument supplied to oneOf, expected an array.")), T;
function n(y, l, c, v, u) {
for (var p = y[l], b = 0; b < e.length; b++)
if (M(p, e[b]))
return null;
var O = JSON.stringify(e, function($, r) {
var D = W(r);
return D === "symbol" ? String(r) : r;
});
return new x("Invalid " + v + " `" + u + "` of value `" + String(p) + "` " + ("supplied to `" + c + "`, expected one of " + O + "."));
}
return I(n);
}
function J(e) {
function n(y, l, c, v, u) {
if (typeof e != "function")
return new x("Property `" + u + "` of component `" + c + "` has invalid PropType notation inside objectOf.");
var p = y[l], b = Y(p);
if (b !== "object")
return new x("Invalid " + v + " `" + u + "` of type " + ("`" + b + "` supplied to `" + c + "`, expected an object."));
for (var O in p)
if (a(p, O)) {
var h = e(p, O, c, v, u + "." + O, d);
if (h instanceof Error)
return h;
}
return null;
}
return I(n);
}
function X(e) {
if (!Array.isArray(e))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), T;
for (var n = 0; n < e.length; n++) {
var y = e[n];
if (typeof y != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(y) + " at index " + n + "."
), T;
}
function l(c, v, u, p, b) {
for (var O = [], h = 0; h < e.length; h++) {
var $ = e[h], r = $(c, v, u, p, b, d);
if (r == null)
return null;
r.data && a(r.data, "expectedType") && O.push(r.data.expectedType);
}
var D = O.length > 0 ? ", expected one of type [" + O.join(", ") + "]" : "";
return new x("Invalid " + p + " `" + b + "` supplied to " + ("`" + u + "`" + D + "."));
}
return I(l);
}
function G() {
function e(n, y, l, c, v) {
return L(n[y]) ? null : new x("Invalid " + c + " `" + v + "` supplied to " + ("`" + l + "`, expected a ReactNode."));
}
return I(e);
}
function U(e, n, y, l, c) {
return new x(
(e || "React class") + ": " + n + " type `" + y + "." + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + c + "`."
);
}
function K(e) {
function n(y, l, c, v, u) {
var p = y[l], b = Y(p);
if (b !== "object")
return new x("Invalid " + v + " `" + u + "` of type `" + b + "` " + ("supplied to `" + c + "`, expected `object`."));
for (var O in e) {
var h = e[O];
if (typeof h != "function")
return U(c, v, u, O, W(h));
var $ = h(p, O, c, v, u + "." + O, d);
if ($)
return $;
}
return null;
}
return I(n);
}
function Z(e) {
function n(y, l, c, v, u) {
var p = y[l], b = Y(p);
if (b !== "object")
return new x("Invalid " + v + " `" + u + "` of type `" + b + "` " + ("supplied to `" + c + "`, expected `object`."));
var O = R({}, y[l], e);
for (var h in O) {
var $ = e[h];
if (a(e, h) && typeof $ != "function")
return U(c, v, u, h, W($));
if (!$)
return new x(
"Invalid " + v + " `" + u + "` key `" + h + "` supplied to `" + c + "`.\nBad object: " + JSON.stringify(y[l], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
);
var r = $(p, h, c, v, u + "." + h, d);
if (r)
return r;
}
return null;
}
return I(n);
}
function L(e) {
switch (typeof e) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !e;
case "object":
if (Array.isArray(e))
return e.every(L);
if (e === null || f(e))
return !0;
var n = m(e);
if (n) {
var y = n.call(e), l;
if (n !== e.entries) {
for (; !(l = y.next()).done; )
if (!L(l.value))
return !1;
} else
for (; !(l = y.next()).done; ) {
var c = l.value;
if (c && !L(c[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function Q(e, n) {
return e === "symbol" ? !0 : n ? n["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && n instanceof Symbol : !1;
}
function Y(e) {
var n = typeof e;
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : Q(n, e) ? "symbol" : n;
}
function W(e) {
if (typeof e > "u" || e === null)
return "" + e;
var n = Y(e);
if (n === "object") {
if (e instanceof Date)
return "date";
if (e instanceof RegExp)
return "regexp";
}
return n;
}
function z(e) {
var n = W(e);
switch (n) {
case "array":
case "object":
return "an " + n;
case "boolean":
case "date":
case "regexp":
return "a " + n;
default:
return n;
}
}
function ee(e) {
return !e.constructor || !e.constructor.name ? w : e.constructor.name;
}
return C.checkPropTypes = _, C.resetWarningCache = _.resetWarningCache, C.PropTypes = C, C;
}, ie;
}
var ae, he;
function we() {
if (he) return ae;
he = 1;
var o = /* @__PURE__ */ ce();
function R() {
}
function d() {
}
return d.resetWarningCache = R, ae = function() {
function a(T, f, P, E, s, m) {
if (m !== o) {
var w = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw w.name = "Invariant Violation", w;
}
}
a.isRequired = a;
function _() {
return a;
}
var i = {
array: a,
bigint: a,
bool: a,
func: a,
number: a,
object: a,
string: a,
symbol: a,
any: a,
arrayOf: _,
element: a,
elementType: a,
instanceOf: _,
node: a,
objectOf: _,
oneOf: _,
oneOfType: _,
shape: _,
exact: _,
checkPropTypes: d,
resetWarningCache: R
};
return i.PropTypes = i, i;
}, ae;
}
var me;
function Ce() {
if (me) return V.exports;
if (me = 1, process.env.NODE_ENV !== "production") {
var o = Ee(), R = !0;
V.exports = /* @__PURE__ */ xe()(o.isElement, R);
} else
V.exports = /* @__PURE__ */ we()();
return V.exports;
}
var Ae = /* @__PURE__ */ Ce();
const Ie = /* @__PURE__ */ Se(Ae);
var Te = function() {
return Te = Object.assign || function(R) {
for (var d, a = 1, _ = arguments.length; a < _; a++) {
d = arguments[a];
for (var i in d) Object.prototype.hasOwnProperty.call(d, i) && (R[i] = d[i]);
}
return R;
}, Te.apply(this, arguments);
};
function $e(o, R, d, a) {
function _(i) {
return i instanceof d ? i : new d(function(T) {
T(i);
});
}
return new (d || (d = Promise))(function(i, T) {
function f(s) {
try {
E(a.next(s));
} catch (m) {
T(m);
}
}
function P(s) {
try {
E(a.throw(s));
} catch (m) {
T(m);
}
}
function E(s) {
s.done ? i(s.value) : _(s.value).then(f, P);
}
E((a = a.apply(o, R || [])).next());
});
}
export {
Ie as P,
$e as _,
Te as a
};