@starasia/admin 8.3.0 → 8.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +8 -9
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3798,7 +3798,7 @@ const Ri = ({
|
|
|
3798
3798
|
w
|
|
3799
3799
|
)) }) })
|
|
3800
3800
|
] }),
|
|
3801
|
-
c &&
|
|
3801
|
+
c && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
|
|
3802
3802
|
m,
|
|
3803
3803
|
{
|
|
3804
3804
|
direction: "column",
|
|
@@ -3816,7 +3816,7 @@ const Ri = ({
|
|
|
3816
3816
|
variant: "neutral",
|
|
3817
3817
|
siblingCount: 0,
|
|
3818
3818
|
currentPage: t != null && t.currentPage ? Number(t.currentPage) : 1,
|
|
3819
|
-
totalPages: Number(t.totalPage),
|
|
3819
|
+
totalPages: Number(t == null ? void 0 : t.totalPage),
|
|
3820
3820
|
onPageChange: x
|
|
3821
3821
|
}
|
|
3822
3822
|
)
|
|
@@ -5926,7 +5926,7 @@ function xo(t) {
|
|
|
5926
5926
|
const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)", bo = ({
|
|
5927
5927
|
sortDir: t,
|
|
5928
5928
|
frozen: r
|
|
5929
|
-
}) => t === "asc" ? /* @__PURE__ */ e(F, { name: "
|
|
5929
|
+
}) => t === "asc" ? /* @__PURE__ */ e(F, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(F, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(F, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(F, { name: "Filter", size: "xs" }), wt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
|
|
5930
5930
|
const l = o ? "var(--sa-color-error-600, #c9184a)" : "var(--sa-text-primary, #292a2e)";
|
|
5931
5931
|
return /* @__PURE__ */ u(
|
|
5932
5932
|
"button",
|
|
@@ -6033,8 +6033,7 @@ const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6033
6033
|
borderRadius: "var(--sa-radii-sm, 6px)",
|
|
6034
6034
|
boxShadow: "0 6px 24px rgba(0,0,0,0.12)",
|
|
6035
6035
|
zIndex: 9999,
|
|
6036
|
-
|
|
6037
|
-
paddingBottom: 4,
|
|
6036
|
+
padding: "4px",
|
|
6038
6037
|
display: "flex",
|
|
6039
6038
|
flexDirection: "column"
|
|
6040
6039
|
},
|
|
@@ -6043,7 +6042,7 @@ const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6043
6042
|
/* @__PURE__ */ e(
|
|
6044
6043
|
wt,
|
|
6045
6044
|
{
|
|
6046
|
-
icon: "
|
|
6045
|
+
icon: "ChevronUp",
|
|
6047
6046
|
label: "Ascending",
|
|
6048
6047
|
active: o === "asc",
|
|
6049
6048
|
onClick: () => y(() => o === "asc" ? s() : l("asc"))
|
|
@@ -6052,7 +6051,7 @@ const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6052
6051
|
/* @__PURE__ */ e(
|
|
6053
6052
|
wt,
|
|
6054
6053
|
{
|
|
6055
|
-
icon: "
|
|
6054
|
+
icon: "ChevronDown",
|
|
6056
6055
|
label: "Descending",
|
|
6057
6056
|
active: o === "desc",
|
|
6058
6057
|
onClick: () => y(() => o === "desc" ? s() : l("desc"))
|
|
@@ -6265,7 +6264,7 @@ const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6265
6264
|
display: "flex",
|
|
6266
6265
|
alignItems: "center",
|
|
6267
6266
|
gap: 4,
|
|
6268
|
-
paddingRight:
|
|
6267
|
+
paddingRight: 16,
|
|
6269
6268
|
paddingLeft: 40,
|
|
6270
6269
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
6271
6270
|
}, bt = (b, M, I, Y) => {
|
|
@@ -6282,7 +6281,7 @@ const tc = xo(yo), Gr = 200, Xt = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6282
6281
|
children: be && b.label
|
|
6283
6282
|
}
|
|
6284
6283
|
), Le = b.tooltip;
|
|
6285
|
-
return Le ? /* @__PURE__ */ e(Me, { label: Le, position: "top", children: he }) : he;
|
|
6284
|
+
return Le ? /* @__PURE__ */ e(Me, { label: Le, position: "top-end", children: he }) : he;
|
|
6286
6285
|
}, xn = (b, M) => {
|
|
6287
6286
|
const I = et(b);
|
|
6288
6287
|
if (!I.length) return null;
|