react-vite-component-library
Advanced tools
Comparing version 1.0.32 to 1.1.0
@@ -17,12 +17,12 @@ import require$$0, { forwardRef, useState, useRef, useEffect, useImperativeHandle } from "react"; | ||
hasRequiredReactJsxRuntime_production_min = 1; | ||
var t = require$$0, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
var t = require$$0, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function C(_, h, k) { | ||
var x, E = {}, j = null, P = null; | ||
var x, y = {}, j = null, P = null; | ||
k !== void 0 && (j = "" + k), h.key !== void 0 && (j = "" + h.key), h.ref !== void 0 && (P = h.ref); | ||
for (x in h) | ||
i.call(h, x) && !y.hasOwnProperty(x) && (E[x] = h[x]); | ||
i.call(h, x) && !E.hasOwnProperty(x) && (y[x] = h[x]); | ||
if (_ && _.defaultProps) | ||
for (x in h = _.defaultProps, h) | ||
E[x] === void 0 && (E[x] = h[x]); | ||
return { $$typeof: a, type: _, key: j, ref: P, props: E, _owner: R.current }; | ||
y[x] === void 0 && (y[x] = h[x]); | ||
return { $$typeof: a, type: _, key: j, ref: P, props: y, _owner: R.current }; | ||
} | ||
@@ -44,3 +44,3 @@ return reactJsxRuntime_production_min.Fragment = l, reactJsxRuntime_production_min.jsx = C, reactJsxRuntime_production_min.jsxs = C, reactJsxRuntime_production_min; | ||
return hasRequiredReactJsxRuntime_development || (hasRequiredReactJsxRuntime_development = 1, process.env.NODE_ENV !== "production" && function() { | ||
var t = require$$0, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), V = Symbol.iterator, M = "@@iterator"; | ||
var t = require$$0, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), V = Symbol.iterator, M = "@@iterator"; | ||
function J(e) { | ||
@@ -70,6 +70,6 @@ if (e === null || typeof e != "object") | ||
} | ||
var Ee = !1, ye = !1, Ce = !1, je = !1, we = !1, K; | ||
var ye = !1, Ee = !1, Ce = !1, je = !1, we = !1, K; | ||
K = Symbol.for("react.module.reference"); | ||
function Te(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === i || e === y || we || e === R || e === k || e === x || je || e === P || Ee || ye || Ce || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === E || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object | ||
return !!(typeof e == "string" || typeof e == "function" || e === i || e === E || we || e === R || e === k || e === x || je || e === P || ye || Ee || Ce || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === y || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -102,3 +102,3 @@ // we don't know which Flight build this will end up being used | ||
return "Portal"; | ||
case y: | ||
case E: | ||
return "Profiler"; | ||
@@ -122,3 +122,3 @@ case R: | ||
return ke(e, e.render, "ForwardRef"); | ||
case E: | ||
case y: | ||
var s = e.displayName || null; | ||
@@ -199,6 +199,6 @@ return s !== null ? s : w(e.type) || "Memo"; | ||
} | ||
var Y = v.ReactCurrentDispatcher, z; | ||
var Y = v.ReactCurrentDispatcher, B; | ||
function $(e, r, n) { | ||
{ | ||
if (z === void 0) | ||
if (B === void 0) | ||
try { | ||
@@ -208,9 +208,9 @@ throw Error(); | ||
var s = c.stack.trim().match(/\n( *(at )?)/); | ||
z = s && s[1] || ""; | ||
B = s && s[1] || ""; | ||
} | ||
return ` | ||
` + z + e; | ||
` + B + e; | ||
} | ||
} | ||
var B = !1, N; | ||
var q = !1, N; | ||
{ | ||
@@ -221,3 +221,3 @@ var Oe = typeof WeakMap == "function" ? WeakMap : Map; | ||
function oe(e, r) { | ||
if (!e || B) | ||
if (!e || q) | ||
return ""; | ||
@@ -230,3 +230,3 @@ { | ||
var s; | ||
B = !0; | ||
q = !0; | ||
var c = Error.prepareStackTrace; | ||
@@ -288,3 +288,3 @@ Error.prepareStackTrace = void 0; | ||
} finally { | ||
B = !1, Y.current = f, Pe(), Error.prepareStackTrace = c; | ||
q = !1, Y.current = f, Pe(), Error.prepareStackTrace = c; | ||
} | ||
@@ -318,3 +318,3 @@ var A = e ? e.displayName || e.name : "", _e = A ? $(A) : ""; | ||
return Ae(e.render); | ||
case E: | ||
case y: | ||
return L(e.type, r, n); | ||
@@ -359,3 +359,3 @@ case j: { | ||
var Ve = Array.isArray; | ||
function q(e) { | ||
function U(e) { | ||
return Ve(e); | ||
@@ -388,4 +388,4 @@ } | ||
__source: !0 | ||
}, de, me, U; | ||
U = {}; | ||
}, de, me, H; | ||
H = {}; | ||
function De(e) { | ||
@@ -410,3 +410,3 @@ if (D.call(e, "ref")) { | ||
var n = w(I.current.type); | ||
U[n] || (d('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', w(I.current.type), e.ref), U[n] = !0); | ||
H[n] || (d('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', w(I.current.type), e.ref), H[n] = !0); | ||
} | ||
@@ -436,3 +436,3 @@ } | ||
} | ||
var ze = function(e, r, n, s, c, f, u) { | ||
var Be = function(e, r, n, s, c, f, u) { | ||
var o = { | ||
@@ -466,3 +466,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
}; | ||
function Be(e, r, n, s, c) { | ||
function qe(e, r, n, s, c) { | ||
{ | ||
@@ -482,6 +482,6 @@ var f, u = {}, o = null, p = null; | ||
} | ||
return ze(e, o, p, c, s, I.current, u); | ||
return Be(e, o, p, c, s, I.current, u); | ||
} | ||
} | ||
var H = v.ReactCurrentOwner, he = v.ReactDebugCurrentFrame; | ||
var z = v.ReactCurrentOwner, he = v.ReactDebugCurrentFrame; | ||
function O(e) { | ||
@@ -501,4 +501,4 @@ if (e) { | ||
{ | ||
if (H.current) { | ||
var e = w(H.current.type); | ||
if (z.current) { | ||
var e = w(z.current.type); | ||
if (e) | ||
@@ -512,3 +512,3 @@ return ` | ||
} | ||
function qe(e) { | ||
function Ue(e) { | ||
{ | ||
@@ -525,3 +525,3 @@ if (e !== void 0) { | ||
var ve = {}; | ||
function Ue(e) { | ||
function He(e) { | ||
{ | ||
@@ -543,3 +543,3 @@ var r = ge(); | ||
e._store.validated = !0; | ||
var n = Ue(r); | ||
var n = He(r); | ||
if (ve[n]) | ||
@@ -549,3 +549,3 @@ return; | ||
var s = ""; | ||
e && e._owner && e._owner !== H.current && (s = " It was passed a child from " + w(e._owner.type) + "."), O(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), O(null); | ||
e && e._owner && e._owner !== z.current && (s = " It was passed a child from " + w(e._owner.type) + "."), O(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), O(null); | ||
} | ||
@@ -557,3 +557,3 @@ } | ||
return; | ||
if (q(e)) | ||
if (U(e)) | ||
for (var n = 0; n < e.length; n++) { | ||
@@ -573,3 +573,3 @@ var s = e[n]; | ||
} | ||
function He(e) { | ||
function ze(e) { | ||
{ | ||
@@ -584,3 +584,3 @@ var r = e.type; | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === E)) | ||
r.$$typeof === y)) | ||
n = r.propTypes; | ||
@@ -618,8 +618,8 @@ else | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " 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 p = qe(c); | ||
var p = Ue(c); | ||
p ? o += p : o += ge(); | ||
var m; | ||
e === null ? m = "null" : q(e) ? m = "array" : e !== void 0 && e.$$typeof === a ? (m = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, o); | ||
e === null ? m = "null" : U(e) ? m = "array" : e !== void 0 && e.$$typeof === a ? (m = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, o); | ||
} | ||
var g = Be(e, r, n, c, f); | ||
var g = qe(e, r, n, c, f); | ||
if (g == null) | ||
@@ -631,3 +631,3 @@ return g; | ||
if (s) | ||
if (q(b)) { | ||
if (U(b)) { | ||
for (var A = 0; A < b.length; A++) | ||
@@ -641,3 +641,3 @@ pe(b[A], e); | ||
} | ||
return e === i ? Ze(g) : He(g), g; | ||
return e === i ? Ze(g) : ze(g), g; | ||
} | ||
@@ -657,3 +657,3 @@ } | ||
var jsxRuntimeExports = jsxRuntime.exports; | ||
const btnClass = "_btnClass_1kz9g_1", lefticonClass = "_lefticonClass_1kz9g_3", title = "_title_1kz9g_6", righticonClass = "_righticonClass_1kz9g_9", critical$1 = "_critical_1kz9g_12", primary = "_primary_1kz9g_15", link = "_link_1kz9g_18", disable = "_disable_1kz9g_21", styles$1 = { | ||
const btnClass = "_btnClass_imey0_1", lefticonClass = "_lefticonClass_imey0_3", title = "_title_imey0_6", righticonClass = "_righticonClass_imey0_8", critical$1 = "_critical_imey0_11", primary = "_primary_imey0_14", link = "_link_imey0_17", disable = "_disable_imey0_20", styles$1 = { | ||
btnClass, | ||
@@ -678,3 +678,3 @@ lefticonClass, | ||
customTitleClass: _ | ||
}) => t.title ? /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: [styles$1.title, _].join(" "), children: C }) : null, R = t.customWidth || "110px", y = t.customHeight || "48px"; | ||
}) => t.title ? /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: [styles$1.title, _].join(" "), children: C }) : null, R = t.customWidth || "110px", E = t.customHeight || "48px"; | ||
return /* @__PURE__ */ jsxRuntimeExports.jsxs( | ||
@@ -685,3 +685,3 @@ "div", | ||
className: [l, styles$1.btnClass, t.customBtnClass].join(" "), | ||
style: { width: R, height: y }, | ||
style: { width: R, height: E }, | ||
role: "button", | ||
@@ -801,3 +801,3 @@ children: [ | ||
return l; | ||
}, containerClass = "_containerClass_1k30h_1", labelClass = "_labelClass_1k30h_2", inputClass = "_inputClass_1k30h_5", helpTextClass = "_helpTextClass_1k30h_15", errorTextClass = "_errorTextClass_1k30h_16", critical = "_critical_1k30h_25", success = "_success_1k30h_30", styles = { | ||
}, containerClass = "_containerClass_ykvls_1", labelClass = "_labelClass_ykvls_2", inputClass = "_inputClass_ykvls_5", helpTextClass = "_helpTextClass_ykvls_15", errorTextClass = "_errorTextClass_ykvls_16", critical = "_critical_ykvls_25", success = "_success_ykvls_30", styles = { | ||
containerClass, | ||
@@ -863,5 +863,5 @@ labelClass, | ||
(t, a) => { | ||
const [l, i] = useState(null), [R, y] = useState(t.value || ""), [C, _] = useState(t.inputType || "text"), h = useRef(null); | ||
useEffect(() => (y(t.value || ""), () => { | ||
y(""); | ||
const [l, i] = useState(null), [R, E] = useState(t.value || ""), [C, _] = useState(t.inputType || "text"), h = useRef(null); | ||
useEffect(() => (E(t.value || ""), () => { | ||
E(""); | ||
}), [t.value]), useImperativeHandle(a, () => ({ | ||
@@ -890,6 +890,6 @@ focus() { | ||
} | ||
y(v), t.onChange && t.onChange(v); | ||
E(v), t.onChange && t.onChange(v); | ||
}, x = () => { | ||
l && i(null), t.onFocus && t.onFocus(); | ||
}, E = () => { | ||
}, y = () => { | ||
if (t.validateOnBlur) { | ||
@@ -931,3 +931,3 @@ const v = validationHandler(R, t.validations); | ||
onFocus: x, | ||
onBlur: E, | ||
onBlur: y, | ||
disabled: t.disabled, | ||
@@ -934,0 +934,0 @@ style: { height: J }, |
@@ -16,3 +16,3 @@ { | ||
}, | ||
"version": "1.0.32", | ||
"version": "1.1.0", | ||
"type": "module", | ||
@@ -19,0 +19,0 @@ "files": [ |
@@ -62,5 +62,1 @@ # This is a template to create React Components Library | ||
``` | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39
122328
3638
62