schummar-table 0.15.0 → 0.16.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.
@@ -16,7 +16,9 @@ export declare type DatePickerProps = {
16
16
  rangeSelect?: boolean;
17
17
  /** Which locale to use to render the calendar. */
18
18
  locale?: string;
19
- /** Which day of the week should be in the first column. */
19
+ /** Which day of the week should be in the first column. (0=Sunday, 1=Monday, ...)
20
+ * @default 1
21
+ */
20
22
  firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
21
23
  /** Which month to show initially */
22
24
  defaultDateInView?: Date;
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonFilterProps } from '../types';
3
- export declare function TextFilter<T, V>({ compare, filterBy, ...props }: {
3
+ export declare function TextFilter<T, V>({ compare, filterBy, placeholder, ...props }: {
4
4
  /** Custom comparison function. Should return true if an item value matches the current filter value.
5
5
  * By default a fuzzy text comparison is used.
6
6
  */
7
7
  compare?: (itemValue: string, filterValue: string) => boolean;
8
+ placeholder?: string;
8
9
  } & CommonFilterProps<T, V, string, string>): JSX.Element;
@@ -80,6 +80,7 @@ export interface TableTheme<T = unknown> {
80
80
  endIcon?: ReactNode;
81
81
  className?: string;
82
82
  inputRef?: Ref<HTMLInputElement>;
83
+ placeholder?: string;
83
84
  }>;
84
85
  Spinner: (props: {
85
86
  className?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "schummar-table",
3
3
  "repository": "schummar/schummar-table",
4
- "version": "0.15.0",
4
+ "version": "0.16.1",
5
5
  "description": "",
6
6
  "type": "module",
7
7
  "sideEffects": false,