fix bug
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 52s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s

This commit is contained in:
Mohamadzadeh 2026-10-04 12:56:25 +03:30
parent f153156a66
commit e9d96339e2
2 changed files with 18 additions and 16 deletions

View File

@ -161,7 +161,7 @@ function ge({
}) { }) {
const { React: n, Button: X, HStack: x, IconButton: D, Input: te, Text: f } = I(), { useCallback: T, useEffect: z, useMemo: ne, useRef: re, useState: M } = n, H = fe(F), h = Z[H], a = H === "simple", g = H === "minimal", u = j === !0, G = Number(m), oe = Number.isFinite(G) && G > 0 ? G : 10, O = Number(e), B = Number.isFinite(O) && O > 0 ? O : 0, V = Number(E), i = Number.isFinite(V) && V > 0 ? Math.ceil(V) : Math.ceil(B / oe), l = u && i <= 0 && B <= 0, N = u && !l, s = l ? 1 : U(t, i), [P, d] = M( const { React: n, Button: X, HStack: x, IconButton: D, Input: te, Text: f } = I(), { useCallback: T, useEffect: z, useMemo: ne, useRef: re, useState: M } = n, H = fe(F), h = Z[H], a = H === "simple", g = H === "minimal", u = j === !0, G = Number(m), oe = Number.isFinite(G) && G > 0 ? G : 10, O = Number(e), B = Number.isFinite(O) && O > 0 ? O : 0, V = Number(E), i = Number.isFinite(V) && V > 0 ? Math.ceil(V) : Math.ceil(B / oe), l = u && i <= 0 && B <= 0, N = u && !l, s = l ? 1 : U(t, i), [P, d] = M(
a ? "" : c(s) a ? "" : c(s)
), [k, _] = M(!1), [w, b] = M(null), y = re(null), p = w ?? s, $ = B > 0, ie = ne(() => a ? [] : l ? [1] : i <= 0 ? [] : Array.from( ), [k, S] = M(!1), [w, b] = M(null), y = re(null), p = w ?? s, $ = B > 0, ie = ne(() => a ? [] : l ? [1] : i <= 0 ? [] : Array.from(
new Set( new Set(
h.getPageNumbers({ h.getPageNumbers({
currentPage: s, currentPage: s,
@ -169,12 +169,12 @@ function ge({
}) })
) )
).filter((r) => r >= 1 && r <= i).sort((r, o) => r - o), [h, l, a, s, i]), R = T(() => { ).filter((r) => r >= 1 && r <= i).sort((r, o) => r - o), [h, l, a, s, i]), R = T(() => {
d(a ? "" : c(s)), _(!1), b(null); d(a ? "" : c(s)), S(!1), b(null);
}, [a, s]), v = T( }, [a, s]), v = T(
(r) => { (r) => {
if (u) return; if (u) return;
const o = U(r, i); const o = U(r, i);
_(!1), d(a ? "" : c(s)), b(null), o !== s && C?.(o); S(!1), d(a ? "" : c(s)), b(null), o !== s && C?.(o);
}, },
[u, a, C, s, i] [u, a, C, s, i]
), W = T(() => { ), W = T(() => {
@ -189,10 +189,10 @@ function ge({
} }
const o = U(r, i); const o = U(r, i);
if (a) { if (a) {
_(!1), d(""), o !== s ? (b(o), C?.(o)) : b(null), y.current?.blur(); S(!1), d(""), o !== s ? (b(o), C?.(o)) : b(null), y.current?.blur();
return; return;
} }
o !== s ? (b(o), d(c(o)), C?.(o)) : (d(c(s)), _(!1), b(null)), y.current?.blur(); o !== s ? (b(o), d(c(o)), C?.(o)) : (d(c(s)), S(!1), b(null)), y.current?.blur();
}, [ }, [
P, P,
a, a,
@ -201,7 +201,7 @@ function ge({
s, s,
i i
]), ae = T(() => { ]), ae = T(() => {
u || (b(null), d(""), _(!0)); u || (b(null), d(""), S(!0));
}, [u]), se = T((r) => { }, [u]), se = T((r) => {
if (u) return; if (u) return;
const o = r.target.value, ce = J(o).replace(/\D/g, ""); const o = r.target.value, ce = J(o).replace(/\D/g, "");
@ -213,7 +213,7 @@ function ge({
return; return;
} }
if (w !== null) { if (w !== null) {
s === w && (b(null), _(!1), d(c(s))); s === w && (b(null), S(!1), d(c(s)));
return; return;
} }
k || d(c(s)); k || d(c(s));
@ -226,7 +226,7 @@ function ge({
}, 1e3); }, 1e3);
return () => clearTimeout(r); return () => clearTimeout(r);
}, [W, P, k, a, w]), i <= 0 && !l) return null; }, [W, P, k, a, w]), i <= 0 && !l) return null;
const S = (r = 14, o) => n.createElement(he, { size: r, color: o }), K = () => { const _ = (r = 14, o) => n.createElement(he, { size: r, color: o }), K = () => {
const r = n.createElement(te, { const r = n.createElement(te, {
ref: y, ref: y,
type: "text", type: "text",
@ -236,7 +236,7 @@ function ge({
value: g && N ? "" : P, value: g && N ? "" : P,
readOnly: u, readOnly: u,
onFocus: () => { onFocus: () => {
u || a || (_(!0), b(null), d("")); u || a || (S(!0), b(null), d(""));
}, },
onChange: se, onChange: se,
onBlur: () => { onBlur: () => {
@ -285,7 +285,7 @@ function ge({
pointerEvents: "none" pointerEvents: "none"
} }
}, },
S(13) _(13)
) )
); );
}, A = (r, o = !1) => n.createElement( }, A = (r, o = !1) => n.createElement(
@ -300,7 +300,7 @@ function ge({
onClick: a && o ? ae : () => v(r), onClick: a && o ? ae : () => v(r),
variant: "soft" variant: "soft"
}, },
o && N ? S(14, "#FFFFFF") : c(r) o && N ? _(14, "#FFFFFF") : c(r)
), q = () => n.createElement( ), q = () => n.createElement(
X, X,
{ {
@ -313,7 +313,7 @@ function ge({
cursor: "default", cursor: "default",
"aria-label": "در حال دریافت تعداد صفحات" "aria-label": "در حال دریافت تعداد صفحات"
}, },
S(14) _(14)
), le = a && i > 1 && p !== 1, ue = a && i > 1 && p !== i; ), le = a && i > 1 && p !== 1, ue = a && i > 1 && p !== i;
return g ? n.createElement( return g ? n.createElement(
x, x,
@ -365,7 +365,7 @@ function ge({
i > 0 && v(i); i > 0 && v(i);
} }
}, },
l ? S(13) : c(i) l ? _(13) : c(i)
), ),
n.createElement(D, { n.createElement(D, {
size: "sm", size: "sm",
@ -393,7 +393,7 @@ function ge({
n.createElement( n.createElement(
f, f,
{ color: "#1D2939", fontSize: "sm", fontWeight: "700" }, { color: "#1D2939", fontSize: "sm", fontWeight: "700" },
l ? S(13) : c(B) l ? _(13) : c(B)
), ),
n.createElement( n.createElement(
f, f,
@ -424,7 +424,7 @@ function ge({
n.createElement( n.createElement(
f, f,
null, null,
l ? S(13) : c(i) l ? _(13) : c(i)
) )
), ),
n.createElement( n.createElement(
@ -482,7 +482,7 @@ function ge({
n.createElement( n.createElement(
f, f,
null, null,
l ? S(13) : c(B) l ? _(13) : c(B)
) )
) )
); );
@ -521,6 +521,7 @@ class de extends HTMLElement {
{ {
theme: F || m, theme: F || m,
resetCSS: !1, resetCSS: !1,
disableGlobalStyle: !0,
...C || {}, ...C || {},
...j || {} ...j || {}
}, },

View File

@ -792,6 +792,7 @@ class PaginationElement extends HTMLElement {
{ {
theme: theme || defaultTheme, theme: theme || defaultTheme,
resetCSS: false, resetCSS: false,
disableGlobalStyle: true,
...(defaultProviderProps || {}), ...(defaultProviderProps || {}),
...(chakraProviderProps || {}), ...(chakraProviderProps || {}),
}, },