@homebound/beam 2.407.0 → 2.408.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.d.cts CHANGED
@@ -4770,7 +4770,7 @@ interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
4770
4770
  }
4771
4771
  declare function Button(props: ButtonProps): _emotion_react_jsx_runtime.JSX.Element;
4772
4772
  type ButtonSize = "sm" | "md" | "lg";
4773
- type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "caution" | "danger" | "quaternary" | "text" | "textSecondary";
4773
+ type ButtonVariant = "primary" | "secondary" | "secondaryBlack" | "tertiary" | "tertiaryDanger" | "caution" | "danger" | "quaternary" | "text" | "textSecondary";
4774
4774
 
4775
4775
  interface IconButtonProps extends BeamButtonProps, BeamFocusableProps {
4776
4776
  /** The icon to use within the button. */
@@ -4860,7 +4860,6 @@ interface OverlayTriggerProps {
4860
4860
 
4861
4861
  interface EditColumnsButtonProps<R extends Kinded> extends Pick<OverlayTriggerProps, "trigger" | "placement" | "disabled" | "tooltip"> {
4862
4862
  columns: GridColumn<R>[];
4863
- title?: string;
4864
4863
  api: GridTableApi<R>;
4865
4864
  defaultOpen?: boolean;
4866
4865
  }
@@ -4868,7 +4867,7 @@ declare function EditColumnsButton<R extends Kinded>(props: EditColumnsButtonPro
4868
4867
 
4869
4868
  interface SelectToggleProps {
4870
4869
  id: string;
4871
- disabled?: boolean;
4870
+ disabled?: boolean | ReactNode;
4872
4871
  }
4873
4872
  /** Provides a checkbox to show/drive this row's selected state. */
4874
4873
  declare function SelectToggle({ id, disabled }: SelectToggleProps): _emotion_react_jsx_runtime.JSX.Element;
@@ -7717,6 +7716,7 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
7717
7716
  primaryAction?: ActionButtonProps;
7718
7717
  secondaryAction?: ActionButtonProps;
7719
7718
  tertiaryAction?: ActionButtonProps;
7719
+ hideEditColumns?: boolean;
7720
7720
  };
7721
7721
  /**
7722
7722
  * A layout component that combines a table with a header, actions buttons and filters.
@@ -7751,8 +7751,11 @@ declare const GridTableLayout: typeof GridTableLayoutComponent;
7751
7751
  * * `client` search will use the built-in grid table search functionality.
7752
7752
  * * `server` search will return `searchString` as a debounced search string to query the server.
7753
7753
  */
7754
- declare function useGridTableLayoutState<F extends Record<string, unknown>>({ persistedFilter, search, groupBy: maybeGroupBy, }: {
7754
+ declare function useGridTableLayoutState<F extends Record<string, unknown>>({ persistedFilter, persistedColumns, search, groupBy: maybeGroupBy, }: {
7755
7755
  persistedFilter?: UsePersistedFilterProps<F>;
7756
+ persistedColumns?: {
7757
+ storageKey: string;
7758
+ };
7756
7759
  search?: "client" | "server";
7757
7760
  groupBy?: Record<string, string>;
7758
7761
  }): {
@@ -7763,6 +7766,9 @@ declare function useGridTableLayoutState<F extends Record<string, unknown>>({ pe
7763
7766
  setSearchString: React__default.Dispatch<React__default.SetStateAction<string | undefined>>;
7764
7767
  search: "client" | "server" | undefined;
7765
7768
  groupBy: GroupByHook<string> | undefined;
7769
+ visibleColumnIds: string[] | undefined;
7770
+ setVisibleColumnIds: ((value: string[] | undefined) => void) | undefined;
7771
+ persistedColumnsStorageKey: string | undefined;
7766
7772
  };
7767
7773
 
7768
7774
  /** Intended to wrap the whole application to prevent the browser's native scrolling behavior while also taking the full height of the viewport */
package/dist/index.d.ts CHANGED
@@ -4770,7 +4770,7 @@ interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
4770
4770
  }
4771
4771
  declare function Button(props: ButtonProps): _emotion_react_jsx_runtime.JSX.Element;
4772
4772
  type ButtonSize = "sm" | "md" | "lg";
4773
- type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "caution" | "danger" | "quaternary" | "text" | "textSecondary";
4773
+ type ButtonVariant = "primary" | "secondary" | "secondaryBlack" | "tertiary" | "tertiaryDanger" | "caution" | "danger" | "quaternary" | "text" | "textSecondary";
4774
4774
 
4775
4775
  interface IconButtonProps extends BeamButtonProps, BeamFocusableProps {
4776
4776
  /** The icon to use within the button. */
@@ -4860,7 +4860,6 @@ interface OverlayTriggerProps {
4860
4860
 
4861
4861
  interface EditColumnsButtonProps<R extends Kinded> extends Pick<OverlayTriggerProps, "trigger" | "placement" | "disabled" | "tooltip"> {
4862
4862
  columns: GridColumn<R>[];
4863
- title?: string;
4864
4863
  api: GridTableApi<R>;
4865
4864
  defaultOpen?: boolean;
4866
4865
  }
@@ -4868,7 +4867,7 @@ declare function EditColumnsButton<R extends Kinded>(props: EditColumnsButtonPro
4868
4867
 
4869
4868
  interface SelectToggleProps {
4870
4869
  id: string;
4871
- disabled?: boolean;
4870
+ disabled?: boolean | ReactNode;
4872
4871
  }
4873
4872
  /** Provides a checkbox to show/drive this row's selected state. */
4874
4873
  declare function SelectToggle({ id, disabled }: SelectToggleProps): _emotion_react_jsx_runtime.JSX.Element;
@@ -7717,6 +7716,7 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
7717
7716
  primaryAction?: ActionButtonProps;
7718
7717
  secondaryAction?: ActionButtonProps;
7719
7718
  tertiaryAction?: ActionButtonProps;
7719
+ hideEditColumns?: boolean;
7720
7720
  };
7721
7721
  /**
7722
7722
  * A layout component that combines a table with a header, actions buttons and filters.
@@ -7751,8 +7751,11 @@ declare const GridTableLayout: typeof GridTableLayoutComponent;
7751
7751
  * * `client` search will use the built-in grid table search functionality.
7752
7752
  * * `server` search will return `searchString` as a debounced search string to query the server.
7753
7753
  */
7754
- declare function useGridTableLayoutState<F extends Record<string, unknown>>({ persistedFilter, search, groupBy: maybeGroupBy, }: {
7754
+ declare function useGridTableLayoutState<F extends Record<string, unknown>>({ persistedFilter, persistedColumns, search, groupBy: maybeGroupBy, }: {
7755
7755
  persistedFilter?: UsePersistedFilterProps<F>;
7756
+ persistedColumns?: {
7757
+ storageKey: string;
7758
+ };
7756
7759
  search?: "client" | "server";
7757
7760
  groupBy?: Record<string, string>;
7758
7761
  }): {
@@ -7763,6 +7766,9 @@ declare function useGridTableLayoutState<F extends Record<string, unknown>>({ pe
7763
7766
  setSearchString: React__default.Dispatch<React__default.SetStateAction<string | undefined>>;
7764
7767
  search: "client" | "server" | undefined;
7765
7768
  groupBy: GroupByHook<string> | undefined;
7769
+ visibleColumnIds: string[] | undefined;
7770
+ setVisibleColumnIds: ((value: string[] | undefined) => void) | undefined;
7771
+ persistedColumnsStorageKey: string | undefined;
7766
7772
  };
7767
7773
 
7768
7774
  /** Intended to wrap the whole application to prevent the browser's native scrolling behavior while also taking the full height of the viewport */