@homebound/beam 2.358.0 → 2.358.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,17 +1,15 @@
|
|
|
1
|
-
import { Key } from "react";
|
|
2
1
|
import { Matcher } from "react-day-picker";
|
|
3
2
|
import { Filter } from "./types";
|
|
4
|
-
import { Value } from "../../inputs";
|
|
5
3
|
import { DateRange } from "../../types";
|
|
6
|
-
export type DateRangeFilterProps<
|
|
4
|
+
export type DateRangeFilterProps<O extends string> = {
|
|
7
5
|
label: string;
|
|
8
|
-
defaultValue?:
|
|
6
|
+
defaultValue?: DateRangeFilterValue<O>;
|
|
9
7
|
placeholderText?: string;
|
|
10
8
|
disabledDays?: Matcher | Matcher[];
|
|
11
9
|
testFieldLabel?: string;
|
|
12
10
|
};
|
|
13
|
-
export type DateRangeFilterValue<
|
|
14
|
-
op:
|
|
11
|
+
export type DateRangeFilterValue<O extends string> = {
|
|
12
|
+
op: O;
|
|
15
13
|
value: DateRange | undefined;
|
|
16
14
|
};
|
|
17
|
-
export declare function dateRangeFilter<
|
|
15
|
+
export declare function dateRangeFilter<O extends string>(props: DateRangeFilterProps<O>): (key: string) => Filter<DateRangeFilterValue<O>>;
|