UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

283 lines (282 loc) 9.1 kB
import K from "react"; var v = { exports: {} }, m = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var I; function ee() { if (I) return m; I = 1; var l = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment"); function c(i, o, s) { var f = null; if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) { s = {}; for (var d in o) d !== "key" && (s[d] = o[d]); } else s = o; return o = s.ref, { $$typeof: l, type: i, key: f, ref: o !== void 0 ? o : null, props: s }; } return m.Fragment = E, m.jsx = c, m.jsxs = c, m; } var _ = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var $; function re() { return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() { function l(e) { if (e == null) return null; if (typeof e == "function") return e.$$typeof === H ? null : e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case p: return "Fragment"; case U: return "Profiler"; case W: return "StrictMode"; case z: return "Suspense"; case G: return "SuspenseList"; case B: return "Activity"; } if (typeof e == "object") switch (typeof e.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), e.$$typeof) { case M: return "Portal"; case V: return e.displayName || "Context"; case J: return (e._context.displayName || "Context") + ".Consumer"; case q: var r = e.render; return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e; case X: return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo"; case T: r = e._payload, e = e._init; try { return l(e(r)); } catch { } } return null; } function E(e) { return "" + e; } function c(e) { try { E(e); var r = !1; } catch { r = !0; } if (r) { r = console; var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object"; return t.call( r, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", n ), E(e); } } function i(e) { if (e === p) return "<>"; if (typeof e == "object" && e !== null && e.$$typeof === T) return "<...>"; try { var r = l(e); return r ? "<" + r + ">" : "<...>"; } catch { return "<...>"; } } function o() { var e = k.A; return e === null ? null : e.getOwner(); } function s() { return Error("react-stack-top-frame"); } function f(e) { if (x.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1; } return e.key !== void 0; } function d(e, r) { function t() { g || (g = !0, console.error( "%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://react.dev/link/special-props)", r )); } t.isReactWarning = !0, Object.defineProperty(e, "key", { get: t, configurable: !0 }); } function D() { var e = l(this.type); return h[e] || (h[e] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), e = this.props.ref, e !== void 0 ? e : null; } function L(e, r, t, n, b, A) { var a = t.ref; return e = { $$typeof: j, type: e, key: r, props: t, _owner: n }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", { enumerable: !1, get: D }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(e, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(e, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: b }), Object.defineProperty(e, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: A }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e; } function P(e, r, t, n, b, A) { var a = r.children; if (a !== void 0) if (n) if (Z(a)) { for (n = 0; n < a.length; n++) w(a[n]); Object.freeze && Object.freeze(a); } else console.error( "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 w(a); if (x.call(r, "key")) { a = l(e); var u = Object.keys(r).filter(function(Q) { return Q !== "key"; }); n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error( `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} />`, n, a, u, a ), Y[a + n] = !0); } if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) { t = {}; for (var S in r) S !== "key" && (t[S] = r[S]); } else t = r; return a && d( t, typeof e == "function" ? e.displayName || e.name || "Unknown" : e ), L( e, a, t, o(), b, A ); } function w(e) { y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1)); } function y(e) { return typeof e == "object" && e !== null && e.$$typeof === j; } var R = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() { return null; }; R = { react_stack_bottom_frame: function(e) { return e(); } }; var g, h = {}, N = R.react_stack_bottom_frame.bind( R, s )(), C = O(i(s)), Y = {}; _.Fragment = p, _.jsx = function(e, r, t) { var n = 1e4 > k.recentlyCreatedOwnerStacks++; return P( e, r, t, !1, n ? Error("react-stack-top-frame") : N, n ? O(i(e)) : C ); }, _.jsxs = function(e, r, t) { var n = 1e4 > k.recentlyCreatedOwnerStacks++; return P( e, r, t, !0, n ? Error("react-stack-top-frame") : N, n ? O(i(e)) : C ); }; }()), _; } var F; function te() { return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports; } var ae = te(); export { ae as j };