@contentmunch/contentmunch-ui 1.1.21 → 1.1.23
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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +6 -2
- package/lib/index.umd.js +1 -1
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -2274,13 +2274,16 @@ const Ah = ({ variant: e, collapsed: t, children: n }) => {
|
|
|
2274
2274
|
footer: d,
|
|
2275
2275
|
children: f
|
|
2276
2276
|
}) => {
|
|
2277
|
-
const { header: m, rows: x } = f, [g, j] = Y(r ?? { index:
|
|
2277
|
+
const { header: m, rows: x } = f, [g, j] = Y(r ?? { index: -1 }), [y, b] = Y({ num: 0, size: t }), w = (M) => {
|
|
2278
2278
|
j(
|
|
2279
2279
|
(C) => C.index === M ? { ...C, desc: !C.desc } : { index: M }
|
|
2280
2280
|
);
|
|
2281
2281
|
}, T = Oe(() => {
|
|
2282
2282
|
var P;
|
|
2283
|
-
const M = [...x]
|
|
2283
|
+
const M = [...x];
|
|
2284
|
+
if (g.index < 0)
|
|
2285
|
+
return M;
|
|
2286
|
+
const C = (P = m[g.index]) == null ? void 0 : P.sort;
|
|
2284
2287
|
return C ? M.sort(C) : M.sort((D, z) => {
|
|
2285
2288
|
var X, $, Ee, O;
|
|
2286
2289
|
const ie = (($ = (X = D[g.index]) == null ? void 0 : X.value) == null ? void 0 : $.toString().toLowerCase()) ?? "", W = ((O = (Ee = z[g.index]) == null ? void 0 : Ee.value) == null ? void 0 : O.toString().toLowerCase()) ?? "";
|
|
@@ -2354,6 +2357,7 @@ const Ah = ({ variant: e, collapsed: t, children: n }) => {
|
|
|
2354
2357
|
{
|
|
2355
2358
|
name: "pageSize",
|
|
2356
2359
|
options: [
|
|
2360
|
+
{ label: "20", value: "20" },
|
|
2357
2361
|
{ label: "50", value: "50" },
|
|
2358
2362
|
{ label: "100", value: "100" },
|
|
2359
2363
|
{ label: "500", value: "500" }
|