@homebound/beam 4.27.0 → 4.29.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
@@ -8392,6 +8392,8 @@ type ContentHeaderProps<X = ContentHeaderXss> = {
8392
8392
  aiMode?: boolean;
8393
8393
  /** Rendered before the title, e.g. a drag handle on `FormSectionChild`. */
8394
8394
  startAdornment?: ReactNode;
8395
+ /** Rendered first in the right slot, before the autosave indicator and actions, e.g. a Tag on `FormSectionChild`. */
8396
+ rightSlotLead?: ReactNode;
8395
8397
  /** Shows an info icon after the title with this tooltip content. */
8396
8398
  tooltip?: ReactNode;
8397
8399
  /** Style overrides for padding. */
@@ -8924,14 +8926,16 @@ declare function BoundNumberField(props: BoundNumberFieldProps): React$1.JSX.Ele
8924
8926
  type RadioFieldOption<K extends string> = {
8925
8927
  /** The label for a specific option, i.e. "Cheddar". */
8926
8928
  label: string;
8927
- /** An optional longer description to render under the label. */
8929
+ /** An optional longer description to render under the label. Not shown for `layout="thumbnail"`. */
8928
8930
  description?: string | (() => ReactNode);
8929
8931
  /** The undisplayed value, i.e. an id of some sort. */
8930
8932
  value: K;
8931
8933
  /** Disable only specific option, with an optional reason */
8932
8934
  disabled?: boolean | ReactNode;
8935
+ /** The image to show for this option, i.e. a material swatch. Only used by `layout="thumbnail"`. */
8936
+ imgSrc?: string;
8933
8937
  };
8934
- type RadioGroupFieldLayout = "vertical" | "horizontal";
8938
+ type RadioGroupFieldLayout = "vertical" | "horizontal" | "thumbnail";
8935
8939
  type RadioGroupFieldProps<K extends string> = {
8936
8940
  /** The label for the choice itself, i.e. "Favorite Cheese". */
8937
8941
  label: string;
@@ -8950,7 +8954,7 @@ type RadioGroupFieldProps<K extends string> = {
8950
8954
  helperText?: string | ReactNode;
8951
8955
  onBlur?: () => void;
8952
8956
  onFocus?: () => void;
8953
- /** Direction of the options. Defaults to "vertical". */
8957
+ /** The options' arrangement. Defaults to "vertical". */
8954
8958
  layout?: RadioGroupFieldLayout;
8955
8959
  } & Pick<PresentationFieldProps, "labelStyle">;
8956
8960
  /**
@@ -11093,7 +11097,10 @@ type EnvironmentBannerLayoutProps = {
11093
11097
  /** Outermost layout shell; optional sticky environment banner above all other chrome. Contract: `docs/layouts.md`. */
11094
11098
  declare function EnvironmentBannerLayout(props: EnvironmentBannerLayoutProps): React$1.JSX.Element;
11095
11099
 
11096
- type FormSectionChildBase = Omit<FormSectionProps, "childSections">;
11100
+ type FormSectionChildBase = Omit<FormSectionProps, "childSections"> & {
11101
+ /** Renders a `Tag` top-right of the header. */
11102
+ tag?: TagProps<any>;
11103
+ };
11097
11104
  /** A single, non-draggable entry in a `FormSection`'s `childSections` — never itself nests further children. */
11098
11105
  type PlainFormSectionChild = FormSectionChildBase & {
11099
11106
  id?: string;
package/dist/index.d.ts CHANGED
@@ -8392,6 +8392,8 @@ type ContentHeaderProps<X = ContentHeaderXss> = {
8392
8392
  aiMode?: boolean;
8393
8393
  /** Rendered before the title, e.g. a drag handle on `FormSectionChild`. */
8394
8394
  startAdornment?: ReactNode;
8395
+ /** Rendered first in the right slot, before the autosave indicator and actions, e.g. a Tag on `FormSectionChild`. */
8396
+ rightSlotLead?: ReactNode;
8395
8397
  /** Shows an info icon after the title with this tooltip content. */
8396
8398
  tooltip?: ReactNode;
8397
8399
  /** Style overrides for padding. */
@@ -8924,14 +8926,16 @@ declare function BoundNumberField(props: BoundNumberFieldProps): React$1.JSX.Ele
8924
8926
  type RadioFieldOption<K extends string> = {
8925
8927
  /** The label for a specific option, i.e. "Cheddar". */
8926
8928
  label: string;
8927
- /** An optional longer description to render under the label. */
8929
+ /** An optional longer description to render under the label. Not shown for `layout="thumbnail"`. */
8928
8930
  description?: string | (() => ReactNode);
8929
8931
  /** The undisplayed value, i.e. an id of some sort. */
8930
8932
  value: K;
8931
8933
  /** Disable only specific option, with an optional reason */
8932
8934
  disabled?: boolean | ReactNode;
8935
+ /** The image to show for this option, i.e. a material swatch. Only used by `layout="thumbnail"`. */
8936
+ imgSrc?: string;
8933
8937
  };
8934
- type RadioGroupFieldLayout = "vertical" | "horizontal";
8938
+ type RadioGroupFieldLayout = "vertical" | "horizontal" | "thumbnail";
8935
8939
  type RadioGroupFieldProps<K extends string> = {
8936
8940
  /** The label for the choice itself, i.e. "Favorite Cheese". */
8937
8941
  label: string;
@@ -8950,7 +8954,7 @@ type RadioGroupFieldProps<K extends string> = {
8950
8954
  helperText?: string | ReactNode;
8951
8955
  onBlur?: () => void;
8952
8956
  onFocus?: () => void;
8953
- /** Direction of the options. Defaults to "vertical". */
8957
+ /** The options' arrangement. Defaults to "vertical". */
8954
8958
  layout?: RadioGroupFieldLayout;
8955
8959
  } & Pick<PresentationFieldProps, "labelStyle">;
8956
8960
  /**
@@ -11093,7 +11097,10 @@ type EnvironmentBannerLayoutProps = {
11093
11097
  /** Outermost layout shell; optional sticky environment banner above all other chrome. Contract: `docs/layouts.md`. */
11094
11098
  declare function EnvironmentBannerLayout(props: EnvironmentBannerLayoutProps): React$1.JSX.Element;
11095
11099
 
11096
- type FormSectionChildBase = Omit<FormSectionProps, "childSections">;
11100
+ type FormSectionChildBase = Omit<FormSectionProps, "childSections"> & {
11101
+ /** Renders a `Tag` top-right of the header. */
11102
+ tag?: TagProps<any>;
11103
+ };
11097
11104
  /** A single, non-draggable entry in a `FormSection`'s `childSections` — never itself nests further children. */
11098
11105
  type PlainFormSectionChild = FormSectionChildBase & {
11099
11106
  id?: string;