next-recomponents 1.5.2 → 1.5.3

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.d.mts CHANGED
@@ -70,7 +70,7 @@ interface TableProps extends React.DetailedHTMLProps<React.TableHTMLAttributes<H
70
70
  onSave?: (e: {
71
71
  data: Record<string, any>;
72
72
  }) => void | Promise<void>;
73
- loader: React.ReactNode;
73
+ loader?: React.ReactNode;
74
74
  }
75
75
  declare function Table({ ...props }: TableProps): react_jsx_runtime.JSX.Element;
76
76
 
package/dist/index.d.ts CHANGED
@@ -70,7 +70,7 @@ interface TableProps extends React.DetailedHTMLProps<React.TableHTMLAttributes<H
70
70
  onSave?: (e: {
71
71
  data: Record<string, any>;
72
72
  }) => void | Promise<void>;
73
- loader: React.ReactNode;
73
+ loader?: React.ReactNode;
74
74
  }
75
75
  declare function Table({ ...props }: TableProps): react_jsx_runtime.JSX.Element;
76
76
 
package/dist/index.js CHANGED
@@ -32019,9 +32019,7 @@ function HTable(_a) {
32019
32019
  onClick: (e) => __async(null, null, function* () {
32020
32020
  setIsLoading(true);
32021
32021
  yield onSave({ data: values });
32022
- setTimeout(() => {
32023
- setIsLoading(false);
32024
- }, 100);
32022
+ setIsLoading(false);
32025
32023
  }),
32026
32024
  children: [
32027
32025
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SaveIcon, {}),
package/dist/index.mjs CHANGED
@@ -32007,9 +32007,7 @@ function HTable(_a) {
32007
32007
  onClick: (e) => __async(null, null, function* () {
32008
32008
  setIsLoading(true);
32009
32009
  yield onSave({ data: values });
32010
- setTimeout(() => {
32011
- setIsLoading(false);
32012
- }, 100);
32010
+ setIsLoading(false);
32013
32011
  }),
32014
32012
  children: [
32015
32013
  /* @__PURE__ */ jsx11(SaveIcon, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/table/h.tsx CHANGED
@@ -94,9 +94,7 @@ export default function HTable({
94
94
  onClick={async (e) => {
95
95
  setIsLoading(true);
96
96
  await onSave({ data: values });
97
- setTimeout(() => {
98
- setIsLoading(false);
99
- }, 100);
97
+ setIsLoading(false);
100
98
  }}
101
99
  >
102
100
  <SaveIcon /> Guardar
@@ -15,7 +15,7 @@ export interface TableProps
15
15
  symbols?: Record<string, ReactNode>;
16
16
  exportName?: string;
17
17
  onSave?: (e: { data: Record<string, any> }) => void | Promise<void>;
18
- loader: React.ReactNode;
18
+ loader?: React.ReactNode;
19
19
  }
20
20
 
21
21
  export default function Table({ ...props }: TableProps) {