@homebound/beam 4.53.1 → 4.54.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/index.cjs +3772 -3736
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +3696 -3660
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8376,7 +8376,7 @@ declare function ModalFilterItem({ label, children }: {
|
|
|
8376
8376
|
*/
|
|
8377
8377
|
type Value = string | number | null | undefined | boolean;
|
|
8378
8378
|
|
|
8379
|
-
|
|
8379
|
+
type FilterProps<F extends Record<string, unknown>, G extends Value = string> = {
|
|
8380
8380
|
/** List of filters */
|
|
8381
8381
|
filterDefs: FilterDefs<F>;
|
|
8382
8382
|
/** The current filter value. */
|
|
@@ -8398,7 +8398,7 @@ interface FilterProps<F extends Record<string, unknown>, G extends Value = strin
|
|
|
8398
8398
|
vertical?: boolean;
|
|
8399
8399
|
/** Specifies the number of in line filters before more filters modal */
|
|
8400
8400
|
numberOfInlineFilters?: number;
|
|
8401
|
-
}
|
|
8401
|
+
};
|
|
8402
8402
|
declare function Filters<F extends Record<string, unknown>, G extends Value = string>(props: FilterProps<F, G>): React$1.JSX.Element;
|
|
8403
8403
|
declare const _Filters: typeof Filters;
|
|
8404
8404
|
|
|
@@ -8732,6 +8732,8 @@ type MenuSelectFieldBaseProps<O, V extends Value> = {
|
|
|
8732
8732
|
getOptionMenuLabel?: (opt: O) => ReactNode;
|
|
8733
8733
|
/** Extra text the menu search matches, in addition to `getOptionLabel`. */
|
|
8734
8734
|
getOptionSearchText?: (opt: O) => string | readonly string[];
|
|
8735
|
+
/** Debounced menu search text. The caller replaces `options` and should keep the current selection in that list. Closing calls this with `""`. */
|
|
8736
|
+
onSearch?: (search: string) => void;
|
|
8735
8737
|
disabledOptions?: (V | {
|
|
8736
8738
|
value: V;
|
|
8737
8739
|
reason: string;
|
|
@@ -8766,7 +8768,7 @@ type MenuMultiSelectFieldProps<O, V extends Value> = MenuSelectFieldBaseProps<O,
|
|
|
8766
8768
|
proposedValues?: V[];
|
|
8767
8769
|
onSelect: (values: V[], opts: O[]) => void;
|
|
8768
8770
|
};
|
|
8769
|
-
/** Menu select that toggles several values and shows a count badge instead of the value. See `MenuMultiSelectField.mdx`. */
|
|
8771
|
+
/** Menu select that toggles several values and shows a count badge instead of the value. Search is included when the list is longer than `searchOptionLimit`, or when `onSearch` is set. See `MenuMultiSelectField.mdx`. */
|
|
8770
8772
|
declare function MenuMultiSelectField<O, V extends Value>(props: MenuMultiSelectFieldProps<O, V>): JSX.Element;
|
|
8771
8773
|
|
|
8772
8774
|
type BoundMenuMultiSelectFieldProps<O, V extends Value> = Omit<MenuMultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
@@ -10827,7 +10829,7 @@ type DateRangeFilterValue<O extends string> = {
|
|
|
10827
10829
|
};
|
|
10828
10830
|
declare function dateRangeFilter<O extends string>(props: DateRangeFilterProps<O>): (key: string) => Filter<DateRangeFilterValue<O>>;
|
|
10829
10831
|
|
|
10830
|
-
type MultiFilterProps<O, V extends Value> = Omit<
|
|
10832
|
+
type MultiFilterProps<O, V extends Value> = Omit<MenuMultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
10831
10833
|
defaultValue?: V[];
|
|
10832
10834
|
label?: string;
|
|
10833
10835
|
};
|
|
@@ -10845,20 +10847,18 @@ type NumberRangeFilterValue = {
|
|
|
10845
10847
|
};
|
|
10846
10848
|
declare function numberRangeFilter(props: NumberRangeFilterProps<NumberRangeFilterValue>): (key: string) => Filter<NumberRangeFilterValue>;
|
|
10847
10849
|
|
|
10848
|
-
type SingleFilterProps<O, V extends Value> = Omit<
|
|
10850
|
+
type SingleFilterProps<O, V extends Value> = Omit<MenuSelectFieldProps<O, V>, "value" | "onSelect" | "label"> & {
|
|
10849
10851
|
defaultValue?: V;
|
|
10850
10852
|
label?: string;
|
|
10851
10853
|
};
|
|
10852
10854
|
declare function singleFilter<O, V extends Value>(props: SingleFilterProps<O, V>): (key: string) => Filter<V>;
|
|
10853
10855
|
|
|
10854
|
-
type TreeFilterProps<O, V extends Value> = Omit<
|
|
10856
|
+
type TreeFilterProps<O, V extends Value> = Omit<MenuTreeSelectFieldProps<O, V>, "values" | "onSelect" | "label" | "selectionDisplay"> & {
|
|
10855
10857
|
defaultValue?: V[];
|
|
10856
10858
|
label?: string;
|
|
10857
|
-
/**
|
|
10858
|
-
|
|
10859
|
-
filterBy?: TreeFilterBy;
|
|
10859
|
+
/** Which selected values the filter stores: `"root"`, `"leaf"`, or `"all"`. @default "root" */
|
|
10860
|
+
filterBy?: TreeSelectionDisplay;
|
|
10860
10861
|
};
|
|
10861
|
-
type TreeFilterBy = keyof TreeSelectResponse<any, any>;
|
|
10862
10862
|
declare function treeFilter<O, V extends Value>(props: TreeFilterProps<O, V>): (key: string) => Filter<V[]>;
|
|
10863
10863
|
|
|
10864
10864
|
/**
|
|
@@ -11977,7 +11977,7 @@ type ErrorMessageProps = {
|
|
|
11977
11977
|
*/
|
|
11978
11978
|
declare function ErrorMessage(props: ErrorMessageProps): React$1.JSX.Element;
|
|
11979
11979
|
|
|
11980
|
-
/** Select whose trigger shows the value and opens a menu. Search is included when the list is longer than `searchOptionLimit
|
|
11980
|
+
/** Select whose trigger shows the value and opens a menu. Search is included when the list is longer than `searchOptionLimit`, or when `onSearch` is set. See `MenuSelectField.mdx`. */
|
|
11981
11981
|
declare function MenuSelectField<O, V extends Value>(props: MenuSelectFieldProps<O, V>): JSX.Element;
|
|
11982
11982
|
|
|
11983
11983
|
type ToggleButtonProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -8376,7 +8376,7 @@ declare function ModalFilterItem({ label, children }: {
|
|
|
8376
8376
|
*/
|
|
8377
8377
|
type Value = string | number | null | undefined | boolean;
|
|
8378
8378
|
|
|
8379
|
-
|
|
8379
|
+
type FilterProps<F extends Record<string, unknown>, G extends Value = string> = {
|
|
8380
8380
|
/** List of filters */
|
|
8381
8381
|
filterDefs: FilterDefs<F>;
|
|
8382
8382
|
/** The current filter value. */
|
|
@@ -8398,7 +8398,7 @@ interface FilterProps<F extends Record<string, unknown>, G extends Value = strin
|
|
|
8398
8398
|
vertical?: boolean;
|
|
8399
8399
|
/** Specifies the number of in line filters before more filters modal */
|
|
8400
8400
|
numberOfInlineFilters?: number;
|
|
8401
|
-
}
|
|
8401
|
+
};
|
|
8402
8402
|
declare function Filters<F extends Record<string, unknown>, G extends Value = string>(props: FilterProps<F, G>): React$1.JSX.Element;
|
|
8403
8403
|
declare const _Filters: typeof Filters;
|
|
8404
8404
|
|
|
@@ -8732,6 +8732,8 @@ type MenuSelectFieldBaseProps<O, V extends Value> = {
|
|
|
8732
8732
|
getOptionMenuLabel?: (opt: O) => ReactNode;
|
|
8733
8733
|
/** Extra text the menu search matches, in addition to `getOptionLabel`. */
|
|
8734
8734
|
getOptionSearchText?: (opt: O) => string | readonly string[];
|
|
8735
|
+
/** Debounced menu search text. The caller replaces `options` and should keep the current selection in that list. Closing calls this with `""`. */
|
|
8736
|
+
onSearch?: (search: string) => void;
|
|
8735
8737
|
disabledOptions?: (V | {
|
|
8736
8738
|
value: V;
|
|
8737
8739
|
reason: string;
|
|
@@ -8766,7 +8768,7 @@ type MenuMultiSelectFieldProps<O, V extends Value> = MenuSelectFieldBaseProps<O,
|
|
|
8766
8768
|
proposedValues?: V[];
|
|
8767
8769
|
onSelect: (values: V[], opts: O[]) => void;
|
|
8768
8770
|
};
|
|
8769
|
-
/** Menu select that toggles several values and shows a count badge instead of the value. See `MenuMultiSelectField.mdx`. */
|
|
8771
|
+
/** Menu select that toggles several values and shows a count badge instead of the value. Search is included when the list is longer than `searchOptionLimit`, or when `onSearch` is set. See `MenuMultiSelectField.mdx`. */
|
|
8770
8772
|
declare function MenuMultiSelectField<O, V extends Value>(props: MenuMultiSelectFieldProps<O, V>): JSX.Element;
|
|
8771
8773
|
|
|
8772
8774
|
type BoundMenuMultiSelectFieldProps<O, V extends Value> = Omit<MenuMultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
@@ -10827,7 +10829,7 @@ type DateRangeFilterValue<O extends string> = {
|
|
|
10827
10829
|
};
|
|
10828
10830
|
declare function dateRangeFilter<O extends string>(props: DateRangeFilterProps<O>): (key: string) => Filter<DateRangeFilterValue<O>>;
|
|
10829
10831
|
|
|
10830
|
-
type MultiFilterProps<O, V extends Value> = Omit<
|
|
10832
|
+
type MultiFilterProps<O, V extends Value> = Omit<MenuMultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
|
|
10831
10833
|
defaultValue?: V[];
|
|
10832
10834
|
label?: string;
|
|
10833
10835
|
};
|
|
@@ -10845,20 +10847,18 @@ type NumberRangeFilterValue = {
|
|
|
10845
10847
|
};
|
|
10846
10848
|
declare function numberRangeFilter(props: NumberRangeFilterProps<NumberRangeFilterValue>): (key: string) => Filter<NumberRangeFilterValue>;
|
|
10847
10849
|
|
|
10848
|
-
type SingleFilterProps<O, V extends Value> = Omit<
|
|
10850
|
+
type SingleFilterProps<O, V extends Value> = Omit<MenuSelectFieldProps<O, V>, "value" | "onSelect" | "label"> & {
|
|
10849
10851
|
defaultValue?: V;
|
|
10850
10852
|
label?: string;
|
|
10851
10853
|
};
|
|
10852
10854
|
declare function singleFilter<O, V extends Value>(props: SingleFilterProps<O, V>): (key: string) => Filter<V>;
|
|
10853
10855
|
|
|
10854
|
-
type TreeFilterProps<O, V extends Value> = Omit<
|
|
10856
|
+
type TreeFilterProps<O, V extends Value> = Omit<MenuTreeSelectFieldProps<O, V>, "values" | "onSelect" | "label" | "selectionDisplay"> & {
|
|
10855
10857
|
defaultValue?: V[];
|
|
10856
10858
|
label?: string;
|
|
10857
|
-
/**
|
|
10858
|
-
|
|
10859
|
-
filterBy?: TreeFilterBy;
|
|
10859
|
+
/** Which selected values the filter stores: `"root"`, `"leaf"`, or `"all"`. @default "root" */
|
|
10860
|
+
filterBy?: TreeSelectionDisplay;
|
|
10860
10861
|
};
|
|
10861
|
-
type TreeFilterBy = keyof TreeSelectResponse<any, any>;
|
|
10862
10862
|
declare function treeFilter<O, V extends Value>(props: TreeFilterProps<O, V>): (key: string) => Filter<V[]>;
|
|
10863
10863
|
|
|
10864
10864
|
/**
|
|
@@ -11977,7 +11977,7 @@ type ErrorMessageProps = {
|
|
|
11977
11977
|
*/
|
|
11978
11978
|
declare function ErrorMessage(props: ErrorMessageProps): React$1.JSX.Element;
|
|
11979
11979
|
|
|
11980
|
-
/** Select whose trigger shows the value and opens a menu. Search is included when the list is longer than `searchOptionLimit
|
|
11980
|
+
/** Select whose trigger shows the value and opens a menu. Search is included when the list is longer than `searchOptionLimit`, or when `onSearch` is set. See `MenuSelectField.mdx`. */
|
|
11981
11981
|
declare function MenuSelectField<O, V extends Value>(props: MenuSelectFieldProps<O, V>): JSX.Element;
|
|
11982
11982
|
|
|
11983
11983
|
type ToggleButtonProps = {
|