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