@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<V extends Value, DV extends DateRangeFilterValue<V>> = {
4
+ export type DateRangeFilterProps<O extends string> = {
7
5
  label: string;
8
- defaultValue?: DV;
6
+ defaultValue?: DateRangeFilterValue<O>;
9
7
  placeholderText?: string;
10
8
  disabledDays?: Matcher | Matcher[];
11
9
  testFieldLabel?: string;
12
10
  };
13
- export type DateRangeFilterValue<V extends Value> = {
14
- op: V;
11
+ export type DateRangeFilterValue<O extends string> = {
12
+ op: O;
15
13
  value: DateRange | undefined;
16
14
  };
17
- export declare function dateRangeFilter<V extends Key>(props: DateRangeFilterProps<V, DateRangeFilterValue<V>>): (key: string) => Filter<DateRangeFilterValue<V>>;
15
+ export declare function dateRangeFilter<O extends string>(props: DateRangeFilterProps<O>): (key: string) => Filter<DateRangeFilterValue<O>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.358.0",
3
+ "version": "2.358.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",