@homebound/beam 3.97.0 → 3.99.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
@@ -9086,19 +9086,25 @@ interface HbSpinnerProviderProps {
9086
9086
  }
9087
9087
  declare function HbSpinnerProvider({ quips, children }: HbSpinnerProviderProps): JSX.Element;
9088
9088
 
9089
+ /** Overflow `ButtonMenu` props; the trigger is always a `verticalDots` IconButton. */
9090
+ type HeaderMenuAction = Omit<ButtonMenuProps, "trigger">;
9089
9091
  /**
9090
- * A single action rendered by `HeaderActions` — either a full `Button` or an icon-only `IconButton`.
9092
+ * A single action rendered by `HeaderActions` — a `Button`, an icon-only `IconButton`, or a
9093
+ * `ButtonMenu` (typically the overflow / more-actions menu).
9091
9094
  *
9092
9095
  * Tagged with `kind` (not `type`) because `ButtonProps` already has its own
9093
9096
  * unrelated `type?: "button" | "submit" | "reset"` HTML-attribute field.
9094
9097
  *
9095
9098
  * Icon actions always render with the `outline` `IconButton` variant, so `variant` is omitted here.
9099
+ * Menu actions always use a `verticalDots` trigger.
9096
9100
  */
9097
9101
  type HeaderAction = ({
9098
9102
  kind?: "default";
9099
9103
  } & ButtonProps) | ({
9100
9104
  kind: "icon";
9101
- } & Omit<IconButtonProps, "variant">);
9105
+ } & Omit<IconButtonProps, "variant">) | ({
9106
+ kind: "menu";
9107
+ } & HeaderMenuAction);
9102
9108
 
9103
9109
  type ContentHeaderXss = Xss<Padding>;
9104
9110
  type ContentHeaderLevel = 2 | 3 | 4;
@@ -9740,8 +9746,6 @@ declare function useQueryState<V extends string = string>(name: string, initialV
9740
9746
  type UseSessionStorage<T> = [T, (value: T) => void];
9741
9747
  declare function useSessionStorage<T>(key: string, defaultValue: T): UseSessionStorage<T>;
9742
9748
 
9743
- type ActionButtonMenuProps = Omit<ButtonMenuProps, "trigger">;
9744
-
9745
9749
  type QueryTablePropsWithQuery<R extends Kinded, X extends Only<GridTableXss, X>, QData> = BaseQueryTableProps<R, X, QData> & {
9746
9750
  emptyFallback?: string;
9747
9751
  keepHeaderWhenLoading?: boolean;
@@ -9751,8 +9755,8 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
9751
9755
  layoutState?: ReturnType<typeof useGridTableLayoutState<F>>;
9752
9756
  /** Title for the empty state when the table has no data rows. */
9753
9757
  emptyFallback?: string;
9754
- /** Renders a ButtonMenu with "verticalDots" icon as trigger */
9755
- actionMenu?: ActionButtonMenuProps;
9758
+ /** Inline buttons, icon buttons, and an optional overflow menu (`kind: "menu"`). */
9759
+ actions?: HeaderAction[];
9756
9760
  hideEditColumns?: boolean;
9757
9761
  totalCount?: number;
9758
9762
  /** When true, shows a view toggle button and renders the table with `as="card"` when in card view. */
package/dist/index.d.ts CHANGED
@@ -9086,19 +9086,25 @@ interface HbSpinnerProviderProps {
9086
9086
  }
9087
9087
  declare function HbSpinnerProvider({ quips, children }: HbSpinnerProviderProps): JSX.Element;
9088
9088
 
9089
+ /** Overflow `ButtonMenu` props; the trigger is always a `verticalDots` IconButton. */
9090
+ type HeaderMenuAction = Omit<ButtonMenuProps, "trigger">;
9089
9091
  /**
9090
- * A single action rendered by `HeaderActions` — either a full `Button` or an icon-only `IconButton`.
9092
+ * A single action rendered by `HeaderActions` — a `Button`, an icon-only `IconButton`, or a
9093
+ * `ButtonMenu` (typically the overflow / more-actions menu).
9091
9094
  *
9092
9095
  * Tagged with `kind` (not `type`) because `ButtonProps` already has its own
9093
9096
  * unrelated `type?: "button" | "submit" | "reset"` HTML-attribute field.
9094
9097
  *
9095
9098
  * Icon actions always render with the `outline` `IconButton` variant, so `variant` is omitted here.
9099
+ * Menu actions always use a `verticalDots` trigger.
9096
9100
  */
9097
9101
  type HeaderAction = ({
9098
9102
  kind?: "default";
9099
9103
  } & ButtonProps) | ({
9100
9104
  kind: "icon";
9101
- } & Omit<IconButtonProps, "variant">);
9105
+ } & Omit<IconButtonProps, "variant">) | ({
9106
+ kind: "menu";
9107
+ } & HeaderMenuAction);
9102
9108
 
9103
9109
  type ContentHeaderXss = Xss<Padding>;
9104
9110
  type ContentHeaderLevel = 2 | 3 | 4;
@@ -9740,8 +9746,6 @@ declare function useQueryState<V extends string = string>(name: string, initialV
9740
9746
  type UseSessionStorage<T> = [T, (value: T) => void];
9741
9747
  declare function useSessionStorage<T>(key: string, defaultValue: T): UseSessionStorage<T>;
9742
9748
 
9743
- type ActionButtonMenuProps = Omit<ButtonMenuProps, "trigger">;
9744
-
9745
9749
  type QueryTablePropsWithQuery<R extends Kinded, X extends Only<GridTableXss, X>, QData> = BaseQueryTableProps<R, X, QData> & {
9746
9750
  emptyFallback?: string;
9747
9751
  keepHeaderWhenLoading?: boolean;
@@ -9751,8 +9755,8 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
9751
9755
  layoutState?: ReturnType<typeof useGridTableLayoutState<F>>;
9752
9756
  /** Title for the empty state when the table has no data rows. */
9753
9757
  emptyFallback?: string;
9754
- /** Renders a ButtonMenu with "verticalDots" icon as trigger */
9755
- actionMenu?: ActionButtonMenuProps;
9758
+ /** Inline buttons, icon buttons, and an optional overflow menu (`kind: "menu"`). */
9759
+ actions?: HeaderAction[];
9756
9760
  hideEditColumns?: boolean;
9757
9761
  totalCount?: number;
9758
9762
  /** When true, shows a view toggle button and renders the table with `as="card"` when in card view. */