@homebound/beam 2.235.5 → 2.236.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.
|
@@ -13,6 +13,7 @@ export interface FormLinesProps {
|
|
|
13
13
|
/** Let the user interleave group-less lines and grouped lines. */
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
labelSuffix?: LabelSuffixStyle;
|
|
16
|
+
labelStyle?: "inline" | "hidden" | "above" | "left";
|
|
16
17
|
width?: FormWidth;
|
|
17
18
|
compact?: boolean;
|
|
18
19
|
}
|
package/dist/forms/FormLines.js
CHANGED
|
@@ -12,11 +12,12 @@ const Css_1 = require("../Css");
|
|
|
12
12
|
* (see the `FieldGroup` component), where they will be laid out side-by-side.
|
|
13
13
|
*/
|
|
14
14
|
function FormLines(props) {
|
|
15
|
-
const { children, width = "full", labelSuffix, compact } = props;
|
|
15
|
+
const { children, width = "full", labelSuffix, labelStyle, compact } = props;
|
|
16
16
|
let firstFormHeading = true;
|
|
17
17
|
// Only overwrite `fieldProps` if new values are explicitly set. Ensures we only set to `undefined` if explicitly set.
|
|
18
18
|
const newFieldProps = {
|
|
19
19
|
...("labelSuffix" in props ? { labelSuffix } : {}),
|
|
20
|
+
...("labelStyle" in props ? { labelStyle } : {}),
|
|
20
21
|
...("compact" in props ? { compact } : {}),
|
|
21
22
|
};
|
|
22
23
|
return ((0, jsx_runtime_1.jsx)(PresentationContext_1.PresentationProvider, { fieldProps: newFieldProps, children: (0, jsx_runtime_1.jsx)("div", { css: {
|