cecomponent 2.0.20 → 2.0.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.
@@ -42310,13 +42310,15 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
42310
42310
  left: 0,
42311
42311
  top: 0
42312
42312
  }), G = useMemo(() => {
42313
- if (!f) return null;
42313
+ if (f == null || f === "")
42314
+ return null;
42314
42315
  const Te = typeof f == "string" ? new Date(f) : new Date(f);
42315
- return Te.setHours(0, 0, 0, 0), Te;
42316
+ return Te.setHours(0, 0, 0, 0), isNaN(Te.getTime()) ? null : Te;
42316
42317
  }, [f]), W = useMemo(() => {
42317
- if (!p) return null;
42318
+ if (p == null || p === "")
42319
+ return null;
42318
42320
  const Te = typeof p == "string" ? new Date(p) : new Date(p);
42319
- return Te.setHours(0, 0, 0, 0), Te;
42321
+ return Te.setHours(0, 0, 0, 0), isNaN(Te.getTime()) ? null : Te;
42320
42322
  }, [p]), z = useMemo(() => {
42321
42323
  if (!u) return null;
42322
42324
  const Te = /* @__PURE__ */ new Date();
@@ -42553,7 +42555,7 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
42553
42555
  "button",
42554
42556
  {
42555
42557
  onClick: () => b ? pe(1) : ue(1),
42556
- disabled: !b && !!W && E.getFullYear() === W.getFullYear() && E.getMonth() === W.getMonth(),
42558
+ disabled: !1,
42557
42559
  children: "›"
42558
42560
  }
42559
42561
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "2.0.20",
4
+ "version": "2.0.22",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",