@contentmunch/contentmunch-ui 1.1.19 → 1.1.22
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/favicon-black.svg +9 -0
- package/lib/favicon-white.svg +9 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +5 -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()) ?? "";
|