@homebound/beam 4.52.0 → 4.53.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
@@ -8137,6 +8137,8 @@ type ButtonGroupProps = {
8137
8137
  /** Disables all buttons in ButtonGroup */
8138
8138
  disabled?: boolean;
8139
8139
  size?: ButtonGroupSize;
8140
+ /** Stretches the group to its container, splitting the width evenly between the buttons. */
8141
+ fullWidth?: boolean;
8140
8142
  };
8141
8143
  type ButtonGroupButton = {
8142
8144
  icon?: IconProps["icon"];
@@ -9633,8 +9635,10 @@ type ViewToggleButtonProps = {
9633
9635
  view: TableView;
9634
9636
  onChange: (view: TableView) => void;
9635
9637
  defaultOpen?: boolean;
9638
+ /** Renders the icon-only trigger. Defaults to the `sm` breakpoint. */
9639
+ compact?: boolean;
9636
9640
  };
9637
- declare function ViewToggleButton({ view, onChange, defaultOpen }: ViewToggleButtonProps): React$1.JSX.Element;
9641
+ declare function ViewToggleButton({ view, onChange, defaultOpen, ...props }: ViewToggleButtonProps): React$1.JSX.Element;
9638
9642
 
9639
9643
  type UsePersistedFilterProps$1<F> = {
9640
9644
  filterDefs: FilterDefs<F>;
@@ -9657,6 +9661,11 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
9657
9661
  emptyFallback?: string;
9658
9662
  /** Inline buttons, icon buttons, and an optional overflow menu (`kind: "menu"`). */
9659
9663
  actions?: HeaderAction[];
9664
+ /**
9665
+ * A button group that switches between the table's views, e.g. Cost / Price. Mark the current view `active`.
9666
+ * Sits before the columns selector; in the mobile format it moves to the top of the columns menu, if there is one.
9667
+ */
9668
+ viewModeToggle?: ButtonGroupButton[];
9660
9669
  /** Shows "N Rows Selected · Clear" before the columns selector; Clear deselects every row. */
9661
9670
  selectionSummary?: boolean;
9662
9671
  hideEditColumns?: boolean;
@@ -11187,6 +11196,13 @@ type EditColumnsButtonProps<R extends Kinded> = {
11187
11196
  api: GridTableApi<R>;
11188
11197
  /** When set, columns that share a name use one Edit Columns switch. */
11189
11198
  shareColumnVisibility?: boolean;
11199
+ /** Renders the icon-only trigger. Defaults to the `sm` breakpoint. */
11200
+ compact?: boolean;
11201
+ /**
11202
+ * A button group pinned full width above the column list, e.g. the table's view mode toggle when it has no room
11203
+ * in the toolbar.
11204
+ */
11205
+ viewToggle?: Omit<ButtonGroupProps, "size" | "fullWidth">;
11190
11206
  defaultOpen?: boolean;
11191
11207
  } & Pick<OverlayTriggerProps, "placement" | "disabled" | "tooltip">;
11192
11208
  declare function EditColumnsButton<R extends Kinded>(props: EditColumnsButtonProps<R>): React$1.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -8137,6 +8137,8 @@ type ButtonGroupProps = {
8137
8137
  /** Disables all buttons in ButtonGroup */
8138
8138
  disabled?: boolean;
8139
8139
  size?: ButtonGroupSize;
8140
+ /** Stretches the group to its container, splitting the width evenly between the buttons. */
8141
+ fullWidth?: boolean;
8140
8142
  };
8141
8143
  type ButtonGroupButton = {
8142
8144
  icon?: IconProps["icon"];
@@ -9633,8 +9635,10 @@ type ViewToggleButtonProps = {
9633
9635
  view: TableView;
9634
9636
  onChange: (view: TableView) => void;
9635
9637
  defaultOpen?: boolean;
9638
+ /** Renders the icon-only trigger. Defaults to the `sm` breakpoint. */
9639
+ compact?: boolean;
9636
9640
  };
9637
- declare function ViewToggleButton({ view, onChange, defaultOpen }: ViewToggleButtonProps): React$1.JSX.Element;
9641
+ declare function ViewToggleButton({ view, onChange, defaultOpen, ...props }: ViewToggleButtonProps): React$1.JSX.Element;
9638
9642
 
9639
9643
  type UsePersistedFilterProps$1<F> = {
9640
9644
  filterDefs: FilterDefs<F>;
@@ -9657,6 +9661,11 @@ type GridTableLayoutProps<F extends Record<string, unknown>, R extends Kinded, X
9657
9661
  emptyFallback?: string;
9658
9662
  /** Inline buttons, icon buttons, and an optional overflow menu (`kind: "menu"`). */
9659
9663
  actions?: HeaderAction[];
9664
+ /**
9665
+ * A button group that switches between the table's views, e.g. Cost / Price. Mark the current view `active`.
9666
+ * Sits before the columns selector; in the mobile format it moves to the top of the columns menu, if there is one.
9667
+ */
9668
+ viewModeToggle?: ButtonGroupButton[];
9660
9669
  /** Shows "N Rows Selected · Clear" before the columns selector; Clear deselects every row. */
9661
9670
  selectionSummary?: boolean;
9662
9671
  hideEditColumns?: boolean;
@@ -11187,6 +11196,13 @@ type EditColumnsButtonProps<R extends Kinded> = {
11187
11196
  api: GridTableApi<R>;
11188
11197
  /** When set, columns that share a name use one Edit Columns switch. */
11189
11198
  shareColumnVisibility?: boolean;
11199
+ /** Renders the icon-only trigger. Defaults to the `sm` breakpoint. */
11200
+ compact?: boolean;
11201
+ /**
11202
+ * A button group pinned full width above the column list, e.g. the table's view mode toggle when it has no room
11203
+ * in the toolbar.
11204
+ */
11205
+ viewToggle?: Omit<ButtonGroupProps, "size" | "fullWidth">;
11190
11206
  defaultOpen?: boolean;
11191
11207
  } & Pick<OverlayTriggerProps, "placement" | "disabled" | "tooltip">;
11192
11208
  declare function EditColumnsButton<R extends Kinded>(props: EditColumnsButtonProps<R>): React$1.JSX.Element;