@homebound/beam 4.52.0 → 4.53.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
@@ -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)",
@@ -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
@@ -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)",
@@ -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;