@homebound/beam 4.53.0 → 4.54.0

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.d.cts CHANGED
@@ -309,7 +309,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
309
309
  get bcBlack(): CssBuilder<T & {
310
310
  borderColor: csstype.Property.BorderColor | undefined;
311
311
  }, S>;
312
- /** Sets `borderColor: "rgba(255, 253, 253, 1)"`. */
312
+ /** Sets `borderColor: "rgba(250, 250, 250, 1)"`. */
313
313
  get bcGray50(): CssBuilder<T & {
314
314
  borderColor: csstype.Property.BorderColor | undefined;
315
315
  }, S>;
@@ -2263,7 +2263,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2263
2263
  get black(): CssBuilder<T & {
2264
2264
  color: csstype.Property.Color | undefined;
2265
2265
  }, S>;
2266
- /** Sets `color: "rgba(255, 253, 253, 1)"`. */
2266
+ /** Sets `color: "rgba(250, 250, 250, 1)"`. */
2267
2267
  get gray50(): CssBuilder<T & {
2268
2268
  color: csstype.Property.Color | undefined;
2269
2269
  }, S>;
@@ -2559,7 +2559,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2559
2559
  get bgBlack(): CssBuilder<T & {
2560
2560
  backgroundColor: csstype.Property.BackgroundColor | undefined;
2561
2561
  }, S>;
2562
- /** Sets `backgroundColor: "rgba(255, 253, 253, 1)"`. */
2562
+ /** Sets `backgroundColor: "rgba(250, 250, 250, 1)"`. */
2563
2563
  get bgGray50(): CssBuilder<T & {
2564
2564
  backgroundColor: csstype.Property.BackgroundColor | undefined;
2565
2565
  }, S>;
@@ -2855,7 +2855,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2855
2855
  get fBlack(): CssBuilder<T & {
2856
2856
  fill: csstype.Property.Fill | undefined;
2857
2857
  }, S>;
2858
- /** Sets `fill: "rgba(255, 253, 253, 1)"`. */
2858
+ /** Sets `fill: "rgba(250, 250, 250, 1)"`. */
2859
2859
  get fGray50(): CssBuilder<T & {
2860
2860
  fill: csstype.Property.Fill | undefined;
2861
2861
  }, S>;
@@ -4945,7 +4945,7 @@ declare enum Palette {
4945
4945
  White = "rgba(255, 255, 255, 1)",
4946
4946
  Transparent = "rgba(0,0,0,0)",
4947
4947
  Black = "rgba(0, 0, 0, 1)",
4948
- Gray50 = "rgba(255, 253, 253, 1)",
4948
+ Gray50 = "rgba(250, 250, 250, 1)",
4949
4949
  Gray100 = "rgba(247, 245, 245, 1)",
4950
4950
  Gray200 = "rgba(236, 235, 235, 1)",
4951
4951
  Gray300 = "rgba(221, 220, 220, 1)",
@@ -8376,7 +8376,7 @@ declare function ModalFilterItem({ label, children }: {
8376
8376
  */
8377
8377
  type Value = string | number | null | undefined | boolean;
8378
8378
 
8379
- interface FilterProps<F extends Record<string, unknown>, G extends Value = string> {
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<MultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
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<SelectFieldProps<O, V>, "value" | "onSelect" | "label"> & {
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<TreeSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
10856
+ type TreeFilterProps<O, V extends Value> = Omit<MenuTreeSelectFieldProps<O, V>, "values" | "onSelect" | "label" | "selectionDisplay"> & {
10855
10857
  defaultValue?: V[];
10856
10858
  label?: string;
10857
- /** Defines which of the tree values to use in the filter - "root", "leaf", or "all"
10858
- * @default "root" */
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`. See `MenuSelectField.mdx`. */
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
@@ -309,7 +309,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
309
309
  get bcBlack(): CssBuilder<T & {
310
310
  borderColor: csstype.Property.BorderColor | undefined;
311
311
  }, S>;
312
- /** Sets `borderColor: "rgba(255, 253, 253, 1)"`. */
312
+ /** Sets `borderColor: "rgba(250, 250, 250, 1)"`. */
313
313
  get bcGray50(): CssBuilder<T & {
314
314
  borderColor: csstype.Property.BorderColor | undefined;
315
315
  }, S>;
@@ -2263,7 +2263,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2263
2263
  get black(): CssBuilder<T & {
2264
2264
  color: csstype.Property.Color | undefined;
2265
2265
  }, S>;
2266
- /** Sets `color: "rgba(255, 253, 253, 1)"`. */
2266
+ /** Sets `color: "rgba(250, 250, 250, 1)"`. */
2267
2267
  get gray50(): CssBuilder<T & {
2268
2268
  color: csstype.Property.Color | undefined;
2269
2269
  }, S>;
@@ -2559,7 +2559,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2559
2559
  get bgBlack(): CssBuilder<T & {
2560
2560
  backgroundColor: csstype.Property.BackgroundColor | undefined;
2561
2561
  }, S>;
2562
- /** Sets `backgroundColor: "rgba(255, 253, 253, 1)"`. */
2562
+ /** Sets `backgroundColor: "rgba(250, 250, 250, 1)"`. */
2563
2563
  get bgGray50(): CssBuilder<T & {
2564
2564
  backgroundColor: csstype.Property.BackgroundColor | undefined;
2565
2565
  }, S>;
@@ -2855,7 +2855,7 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
2855
2855
  get fBlack(): CssBuilder<T & {
2856
2856
  fill: csstype.Property.Fill | undefined;
2857
2857
  }, S>;
2858
- /** Sets `fill: "rgba(255, 253, 253, 1)"`. */
2858
+ /** Sets `fill: "rgba(250, 250, 250, 1)"`. */
2859
2859
  get fGray50(): CssBuilder<T & {
2860
2860
  fill: csstype.Property.Fill | undefined;
2861
2861
  }, S>;
@@ -4945,7 +4945,7 @@ declare enum Palette {
4945
4945
  White = "rgba(255, 255, 255, 1)",
4946
4946
  Transparent = "rgba(0,0,0,0)",
4947
4947
  Black = "rgba(0, 0, 0, 1)",
4948
- Gray50 = "rgba(255, 253, 253, 1)",
4948
+ Gray50 = "rgba(250, 250, 250, 1)",
4949
4949
  Gray100 = "rgba(247, 245, 245, 1)",
4950
4950
  Gray200 = "rgba(236, 235, 235, 1)",
4951
4951
  Gray300 = "rgba(221, 220, 220, 1)",
@@ -8376,7 +8376,7 @@ declare function ModalFilterItem({ label, children }: {
8376
8376
  */
8377
8377
  type Value = string | number | null | undefined | boolean;
8378
8378
 
8379
- interface FilterProps<F extends Record<string, unknown>, G extends Value = string> {
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<MultiSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
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<SelectFieldProps<O, V>, "value" | "onSelect" | "label"> & {
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<TreeSelectFieldProps<O, V>, "values" | "onSelect" | "label"> & {
10856
+ type TreeFilterProps<O, V extends Value> = Omit<MenuTreeSelectFieldProps<O, V>, "values" | "onSelect" | "label" | "selectionDisplay"> & {
10855
10857
  defaultValue?: V[];
10856
10858
  label?: string;
10857
- /** Defines which of the tree values to use in the filter - "root", "leaf", or "all"
10858
- * @default "root" */
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`. See `MenuSelectField.mdx`. */
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 = {