infinity-forge 0.20.0 → 0.20.1

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.
@@ -32,7 +32,7 @@ var S = __importStar(require("./styles.js"));
32
32
  function InputSearch(_a) {
33
33
  var onChange = _a.onChange;
34
34
  var _b = (0, react_1.useState)(null), value = _b[0], setValue = _b[1];
35
- var debouncedValue = (0, system_1.useDebounce)(value, 500);
35
+ var debouncedValue = (0, system_1.useDebounce)(value, 400);
36
36
  (0, react_1.useEffect)(function () {
37
37
  if (debouncedValue !== null) {
38
38
  onChange(value);
@@ -1,4 +1,8 @@
1
1
  import { IUseTableProps } from './interfaces.js';
2
2
  export declare function useTable<T = any, M = any>(props: IUseTableProps<T, M>): {
3
+ query: {
4
+ data: any;
5
+ isLoading: boolean;
6
+ };
3
7
  Table: import("react/jsx-runtime").JSX.Element;
4
8
  };
@@ -18,6 +18,7 @@ var query_1 = require("./query.js");
18
18
  function useTable(props) {
19
19
  var queryTable = props.query && (0, query_1.useQueryTable)(props.query);
20
20
  return {
21
+ query: queryTable,
21
22
  Table: (0, jsx_runtime_1.jsx)(components_1.Table, __assign({}, props, { isFetching: queryTable === null || queryTable === void 0 ? void 0 : queryTable.isLoading, tableInformations: queryTable === null || queryTable === void 0 ? void 0 : queryTable.data })),
22
23
  };
23
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoC;AACpC,iCAAuC;AAIvC,SAAgB,QAAQ,CAAmB,KAA2B;IAEpE,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,IAAI,IAAA,qBAAa,EAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5D,OAAO;QACL,KAAK,EAAE,uBAAC,kBAAK,eAAK,KAAK,IAAE,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,IAAK;KACrG,CAAA;AACH,CAAC;AAPD,4BAOC"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoC;AACpC,iCAAuC;AAIvC,SAAgB,QAAQ,CAAmB,KAA2B;IAEpE,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,IAAI,IAAA,qBAAa,EAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5D,OAAO;QACL,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,uBAAC,kBAAK,eAAK,KAAK,IAAE,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,IAAK;KACrG,CAAA;AACH,CAAC;AARD,4BAQC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",