schummar-table 0.32.1 → 0.33.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.
package/dist/cjs/index.js CHANGED
@@ -2205,7 +2205,7 @@ function useTableState(_props) {
2205
2205
  if (props.hiddenColumns === void 0) {
2206
2206
  (_d = props.onHiddenColumnsChange) == null ? void 0 : _d.call(props, props.defaultHiddenColumns ?? /* @__PURE__ */ new Set());
2207
2207
  }
2208
- (_e = props.onReset) == null ? void 0 : _e.call(props);
2208
+ (_e = props.onReset) == null ? void 0 : _e.call(props, "table");
2209
2209
  }
2210
2210
  const state = react.useMemo(() => new react$2.Store({
2211
2211
  props,
@@ -2259,9 +2259,11 @@ function ClearFiltersButton() {
2259
2259
  const table = useTableContext();
2260
2260
  return /* @__PURE__ */ jsxRuntime.jsx("div", { css: tableTheme.defaultClasses.clearFiltersButton, children: /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant: "outlined", onClick: () => {
2261
2261
  table.update((state) => {
2262
+ var _a, _b;
2262
2263
  state.activeColumns.forEach((column) => {
2263
2264
  state.filterValues.delete(column.id);
2264
2265
  });
2266
+ (_b = (_a = table.getState().props).onReset) == null ? void 0 : _b.call(_a, "filters");
2265
2267
  });
2266
2268
  }, children: textClearFilters }) });
2267
2269
  }