schummar-table 0.20.0 → 0.21.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.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { CommonFilterProps, SerializableValue } from '../types';
3
- export declare function SelectFilter<T, V, F extends SerializableValue>({ options: providedOptions, stringValue, render, singleSelect, ...props }: {
3
+ export declare function SelectFilter<T, V, F extends SerializableValue>({ options: providedOptions, stringValue, render, singleSelect, hideSearchField, hideResetButton, ...props }: {
4
4
  /** Which options are provided to select. By default all unique item values are used. */
5
5
  options?: F[];
6
6
  /** String representation of a value. Used to filter options via the text field. */
@@ -9,4 +9,8 @@ export declare function SelectFilter<T, V, F extends SerializableValue>({ option
9
9
  render?: (value: F) => ReactNode;
10
10
  /** If enabled, only one option can be selected at a time. */
11
11
  singleSelect?: boolean;
12
+ /** If enabled, the search field is hidden. */
13
+ hideSearchField?: boolean;
14
+ /** If enabled, the reset button is hidden. */
15
+ hideResetButton?: boolean;
12
16
  } & CommonFilterProps<T, V, F, Set<F>>): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schummar-table",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": "schummar/schummar-table",