@homebound/beam 4.28.0 → 4.29.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.cjs +209 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +270 -135
- package/dist/index.js.map +1 -1
- package/dist/truss.css +8 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8926,14 +8926,16 @@ declare function BoundNumberField(props: BoundNumberFieldProps): React$1.JSX.Ele
|
|
|
8926
8926
|
type RadioFieldOption<K extends string> = {
|
|
8927
8927
|
/** The label for a specific option, i.e. "Cheddar". */
|
|
8928
8928
|
label: string;
|
|
8929
|
-
/** An optional longer description to render under the label. */
|
|
8929
|
+
/** An optional longer description to render under the label. Not shown for `layout="thumbnail"`. */
|
|
8930
8930
|
description?: string | (() => ReactNode);
|
|
8931
8931
|
/** The undisplayed value, i.e. an id of some sort. */
|
|
8932
8932
|
value: K;
|
|
8933
8933
|
/** Disable only specific option, with an optional reason */
|
|
8934
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;
|
|
8935
8937
|
};
|
|
8936
|
-
type RadioGroupFieldLayout = "vertical" | "horizontal";
|
|
8938
|
+
type RadioGroupFieldLayout = "vertical" | "horizontal" | "thumbnail";
|
|
8937
8939
|
type RadioGroupFieldProps<K extends string> = {
|
|
8938
8940
|
/** The label for the choice itself, i.e. "Favorite Cheese". */
|
|
8939
8941
|
label: string;
|
|
@@ -8952,7 +8954,7 @@ type RadioGroupFieldProps<K extends string> = {
|
|
|
8952
8954
|
helperText?: string | ReactNode;
|
|
8953
8955
|
onBlur?: () => void;
|
|
8954
8956
|
onFocus?: () => void;
|
|
8955
|
-
/**
|
|
8957
|
+
/** The options' arrangement. Defaults to "vertical". */
|
|
8956
8958
|
layout?: RadioGroupFieldLayout;
|
|
8957
8959
|
} & Pick<PresentationFieldProps, "labelStyle">;
|
|
8958
8960
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8926,14 +8926,16 @@ declare function BoundNumberField(props: BoundNumberFieldProps): React$1.JSX.Ele
|
|
|
8926
8926
|
type RadioFieldOption<K extends string> = {
|
|
8927
8927
|
/** The label for a specific option, i.e. "Cheddar". */
|
|
8928
8928
|
label: string;
|
|
8929
|
-
/** An optional longer description to render under the label. */
|
|
8929
|
+
/** An optional longer description to render under the label. Not shown for `layout="thumbnail"`. */
|
|
8930
8930
|
description?: string | (() => ReactNode);
|
|
8931
8931
|
/** The undisplayed value, i.e. an id of some sort. */
|
|
8932
8932
|
value: K;
|
|
8933
8933
|
/** Disable only specific option, with an optional reason */
|
|
8934
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;
|
|
8935
8937
|
};
|
|
8936
|
-
type RadioGroupFieldLayout = "vertical" | "horizontal";
|
|
8938
|
+
type RadioGroupFieldLayout = "vertical" | "horizontal" | "thumbnail";
|
|
8937
8939
|
type RadioGroupFieldProps<K extends string> = {
|
|
8938
8940
|
/** The label for the choice itself, i.e. "Favorite Cheese". */
|
|
8939
8941
|
label: string;
|
|
@@ -8952,7 +8954,7 @@ type RadioGroupFieldProps<K extends string> = {
|
|
|
8952
8954
|
helperText?: string | ReactNode;
|
|
8953
8955
|
onBlur?: () => void;
|
|
8954
8956
|
onFocus?: () => void;
|
|
8955
|
-
/**
|
|
8957
|
+
/** The options' arrangement. Defaults to "vertical". */
|
|
8956
8958
|
layout?: RadioGroupFieldLayout;
|
|
8957
8959
|
} & Pick<PresentationFieldProps, "labelStyle">;
|
|
8958
8960
|
/**
|