kylin-ui-component
Version:
A React UI library for some developers to develop quickly
664 lines (660 loc) • 21.7 kB
JavaScript
import M from "react";
var Q = { exports: {} }, A = {};
/**
* @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 Ce;
function fr() {
if (Ce)
return A;
Ce = 1;
var h = M, b = Symbol.for("react.element"), R = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
function k(_, l, P) {
var v, m = {}, T = null, I = null;
P !== void 0 && (T = "" + P), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (I = l.ref);
for (v in l)
g.call(l, v) && !w.hasOwnProperty(v) && (m[v] = l[v]);
if (_ && _.defaultProps)
for (v in l = _.defaultProps, l)
m[v] === void 0 && (m[v] = l[v]);
return { $$typeof: b, type: _, key: T, ref: I, props: m, _owner: C.current };
}
return A.Fragment = R, A.jsx = k, A.jsxs = k, A;
}
var N = {};
/**
* @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 we;
function lr() {
return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
var h = M, b = Symbol.for("react.element"), R = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), _ = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), ee = Symbol.iterator, Se = "@@iterator";
function xe(e) {
if (e === null || typeof e != "object")
return null;
var r = ee && e[ee] || e[Se];
return typeof r == "function" ? r : null;
}
var S = h.__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];
je("error", e, t);
}
}
function je(e, r, t) {
{
var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
i !== "" && (r += "%s", t = t.concat([i]));
var u = t.map(function(o) {
return String(o);
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
}
}
var ke = !1, Fe = !1, De = !1, Ae = !1, Ne = !1, re;
re = Symbol.for("react.module.reference");
function Ie(e) {
return !!(typeof e == "string" || typeof e == "function" || e === g || e === w || Ne || e === C || e === P || e === v || Ae || e === I || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === m || e.$$typeof === k || e.$$typeof === _ || e.$$typeof === l || // 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 === re || e.getModuleId !== void 0));
}
function $e(e, r, t) {
var n = e.displayName;
if (n)
return n;
var i = r.displayName || r.name || "";
return i !== "" ? t + "(" + i + ")" : t;
}
function te(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 g:
return "Fragment";
case R:
return "Portal";
case w:
return "Profiler";
case C:
return "StrictMode";
case P:
return "Suspense";
case v:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case _:
var r = e;
return te(r) + ".Consumer";
case k:
var t = e;
return te(t._context) + ".Provider";
case l:
return $e(e, e.render, "ForwardRef");
case m:
var n = e.displayName || null;
return n !== null ? n : y(e.type) || "Memo";
case T: {
var i = e, u = i._payload, o = i._init;
try {
return y(o(u));
} catch {
return null;
}
}
}
return null;
}
var O = Object.assign, F = 0, ne, ae, oe, ie, ue, se, fe;
function le() {
}
le.__reactDisabledLog = !0;
function We() {
{
if (F === 0) {
ne = console.log, ae = console.info, oe = console.warn, ie = console.error, ue = console.group, se = console.groupCollapsed, fe = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: le,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
F++;
}
}
function Ye() {
{
if (F--, F === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: O({}, e, {
value: ne
}),
info: O({}, e, {
value: ae
}),
warn: O({}, e, {
value: oe
}),
error: O({}, e, {
value: ie
}),
group: O({}, e, {
value: ue
}),
groupCollapsed: O({}, e, {
value: se
}),
groupEnd: O({}, e, {
value: fe
})
});
}
F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var q = S.ReactCurrentDispatcher, J;
function $(e, r, t) {
{
if (J === void 0)
try {
throw Error();
} catch (i) {
var n = i.stack.trim().match(/\n( *(at )?)/);
J = n && n[1] || "";
}
return `
` + J + e;
}
}
var G = !1, W;
{
var Le = typeof WeakMap == "function" ? WeakMap : Map;
W = new Le();
}
function ce(e, r) {
if (!e || G)
return "";
{
var t = W.get(e);
if (t !== void 0)
return t;
}
var n;
G = !0;
var i = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = q.current, q.current = null, We();
try {
if (r) {
var o = function() {
throw Error();
};
if (Object.defineProperty(o.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(o, []);
} catch (E) {
n = E;
}
Reflect.construct(e, [], o);
} else {
try {
o.call();
} catch (E) {
n = E;
}
e.call(o.prototype);
}
} else {
try {
throw Error();
} catch (E) {
n = E;
}
e();
}
} catch (E) {
if (E && n && typeof E.stack == "string") {
for (var a = E.stack.split(`
`), d = n.stack.split(`
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
f--;
for (; s >= 1 && f >= 0; s--, f--)
if (a[s] !== d[f]) {
if (s !== 1 || f !== 1)
do
if (s--, f--, f < 0 || a[s] !== d[f]) {
var p = `
` + a[s].replace(" at new ", " at ");
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, p), p;
}
while (s >= 1 && f >= 0);
break;
}
}
} finally {
G = !1, q.current = u, Ye(), Error.prepareStackTrace = i;
}
var j = e ? e.displayName || e.name : "", Oe = j ? $(j) : "";
return typeof e == "function" && W.set(e, Oe), Oe;
}
function Ve(e, r, t) {
return ce(e, !1);
}
function Me(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function Y(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return ce(e, Me(e));
if (typeof e == "string")
return $(e);
switch (e) {
case P:
return $("Suspense");
case v:
return $("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case l:
return Ve(e.render);
case m:
return Y(e.type, r, t);
case T: {
var n = e, i = n._payload, u = n._init;
try {
return Y(u(i), r, t);
} catch {
}
}
}
return "";
}
var L = Object.prototype.hasOwnProperty, de = {}, ve = S.ReactDebugCurrentFrame;
function V(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
ve.setExtraStackFrame(t);
} else
ve.setExtraStackFrame(null);
}
function Ue(e, r, t, n, i) {
{
var u = Function.call.bind(L);
for (var o in e)
if (u(e, o)) {
var a = void 0;
try {
if (typeof e[o] != "function") {
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw d.name = "Invariant Violation", d;
}
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (s) {
a = s;
}
a && !(a instanceof Error) && (V(i), 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, o, typeof a), V(null)), a instanceof Error && !(a.message in de) && (de[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null));
}
}
}
var Be = Array.isArray;
function z(e) {
return Be(e);
}
function qe(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function Je(e) {
try {
return pe(e), !1;
} catch {
return !0;
}
}
function pe(e) {
return "" + e;
}
function ge(e) {
if (Je(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)), pe(e);
}
var D = S.ReactCurrentOwner, Ge = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, me, ye, H;
H = {};
function ze(e) {
if (L.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function He(e) {
if (L.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) {
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
var t = y(D.current.type);
H[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(D.current.type), e.ref), H[t] = !0);
}
}
function Xe(e, r) {
{
var t = function() {
me || (me = !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() {
ye || (ye = !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, i, u, o) {
var a = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: b,
// Built-in properties that belong on the element
type: e,
key: r,
ref: t,
props: o,
// 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: i
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
};
function er(e, r, t, n, i) {
{
var u, o = {}, a = null, d = null;
t !== void 0 && (ge(t), a = "" + t), He(r) && (ge(r.key), a = "" + r.key), ze(r) && (d = r.ref, Ke(r, i));
for (u in r)
L.call(r, u) && !Ge.hasOwnProperty(u) && (o[u] = r[u]);
if (e && e.defaultProps) {
var s = e.defaultProps;
for (u in s)
o[u] === void 0 && (o[u] = s[u]);
}
if (a || d) {
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && Xe(o, f), d && Ze(o, f);
}
return Qe(e, a, d, i, n, D.current, o);
}
}
var K = S.ReactCurrentOwner, Ee = S.ReactDebugCurrentFrame;
function x(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
Ee.setExtraStackFrame(t);
} else
Ee.setExtraStackFrame(null);
}
var X;
X = !1;
function Z(e) {
return typeof e == "object" && e !== null && e.$$typeof === b;
}
function be() {
{
if (K.current) {
var e = y(K.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function rr(e) {
{
if (e !== void 0) {
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
return `
Check your code at ` + r + ":" + t + ".";
}
return "";
}
}
var he = {};
function tr(e) {
{
var r = be();
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 (he[t])
return;
he[t] = !0;
var n = "";
e && e._owner && e._owner !== K.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 (z(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
Z(n) && Re(n, r);
}
else if (Z(e))
e._store && (e._store.validated = !0);
else if (e) {
var i = xe(e);
if (typeof i == "function" && i !== e.entries)
for (var u = i.call(e), o; !(o = u.next()).done; )
Z(o.value) && Re(o.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 === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === m))
t = r.propTypes;
else
return;
if (t) {
var n = y(r);
Ue(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !X) {
X = !0;
var i = y(r);
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "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));
}
}
function Te(e, r, t, n, i, u) {
{
var o = Ie(e);
if (!o) {
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(i);
d ? a += d : a += be();
var s;
e === null ? s = "null" : z(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (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 f = er(e, r, t, i, u);
if (f == null)
return f;
if (o) {
var p = r.children;
if (p !== void 0)
if (n)
if (z(p)) {
for (var j = 0; j < p.length; j++)
_e(p[j], e);
Object.freeze && Object.freeze(p);
} 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(p, e);
}
return e === g ? ar(f) : nr(f), f;
}
}
function or(e, r, t) {
return Te(e, r, t, !0);
}
function ir(e, r, t) {
return Te(e, r, t, !1);
}
var ur = ir, sr = or;
N.Fragment = g, N.jsx = ur, N.jsxs = sr;
}()), N;
}
process.env.NODE_ENV === "production" ? Q.exports = fr() : Q.exports = lr();
var cr = Q.exports;
const Pe = cr.jsx;
function U({ tagName: h, displayName: b }) {
return (R) => M.forwardRef((C, w) => /* @__PURE__ */ Pe(
R,
{
ref: w,
...C,
tagName: h
}
));
}
const B = M.forwardRef((h, b) => {
const { tagName: R, ...g } = h;
return /* @__PURE__ */ Pe(R, { ref: b, ...g });
});
U({
tagName: "section",
displayName: "Layout"
})(B);
const vr = U({
tagName: "header",
displayName: "Header"
})(B), pr = U({
tagName: "footer",
displayName: "Footer"
})(B), gr = U({
tagName: "main",
displayName: "Content"
})(B);
export {
gr as Content,
pr as Footer,
vr as Header
};
//# sourceMappingURL=index.js.map