next-recomponents 1.6.3 → 1.6.5

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.js CHANGED
@@ -31985,8 +31985,8 @@ function HTable(_a) {
31985
31985
  }
31986
31986
  const typeOf = typeof d[key];
31987
31987
  const isObject2 = typeOf == "object";
31988
- const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/;
31989
- const isDate = typeOf == "string" && regex.test(d[key].toString());
31988
+ const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
31989
+ const isDate = !isObject2 && regex.test(`${d[key]}`);
31990
31990
  const cellTypeOf = isDate ? "date" : isObject2 ? "object" : typeOf;
31991
31991
  const content = cellTypeOf == "date" ? d[key].split("T").join(" ").split(".")[0] : cellTypeOf == "object" ? import_react25.default.isValidElement(d[key]) ? ((_b2 = d[key]) == null ? void 0 : _b2.props).value : JSON.stringify(d[key]) : d[key];
31992
31992
  const handler = import_react25.default.isValidElement(d[key]) ? d[key] : null;
package/dist/index.mjs CHANGED
@@ -31971,8 +31971,8 @@ function HTable(_a) {
31971
31971
  }
31972
31972
  const typeOf = typeof d[key];
31973
31973
  const isObject2 = typeOf == "object";
31974
- const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/;
31975
- const isDate = typeOf == "string" && regex.test(d[key].toString());
31974
+ const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
31975
+ const isDate = !isObject2 && regex.test(`${d[key]}`);
31976
31976
  const cellTypeOf = isDate ? "date" : isObject2 ? "object" : typeOf;
31977
31977
  const content = cellTypeOf == "date" ? d[key].split("T").join(" ").split(".")[0] : cellTypeOf == "object" ? React4.isValidElement(d[key]) ? ((_b2 = d[key]) == null ? void 0 : _b2.props).value : JSON.stringify(d[key]) : d[key];
31978
31978
  const handler = React4.isValidElement(d[key]) ? d[key] : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/table/h.tsx CHANGED
@@ -50,9 +50,9 @@ export default function HTable({
50
50
  }
51
51
  const typeOf = typeof d[key];
52
52
  const isObject = typeOf == "object";
53
- const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/;
53
+ const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
54
54
 
55
- const isDate = typeOf == "string" && regex.test(d[key].toString());
55
+ const isDate = !isObject && regex.test(`${d[key]}`);
56
56
  const cellTypeOf = isDate ? "date" : isObject ? "object" : typeOf;
57
57
  const content =
58
58
  cellTypeOf == "date"