@homebound/beam 2.327.0 → 2.328.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/components/Tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconKey } from "./";
|
|
2
2
|
import { Margin, Only, Xss } from "../Css";
|
|
3
|
-
type TagXss = Margin;
|
|
3
|
+
type TagXss = Margin | "backgroundColor" | "color";
|
|
4
4
|
export type TagType = "info" | "caution" | "warning" | "success" | "neutral";
|
|
5
5
|
interface TagProps<X> {
|
|
6
6
|
text: string;
|
package/dist/forms/FormLines.js
CHANGED
|
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const PresentationContext_1 = require("../components/PresentationContext");
|
|
7
7
|
const Css_1 = require("../Css");
|
|
8
|
+
const components_1 = require("../components");
|
|
8
9
|
/**
|
|
9
10
|
* Applies standard Form layout/size/spacing between lines.
|
|
10
11
|
*
|
|
@@ -12,7 +13,8 @@ const Css_1 = require("../Css");
|
|
|
12
13
|
* (see the `FieldGroup` component), where they will be laid out side-by-side.
|
|
13
14
|
*/
|
|
14
15
|
function FormLines(props) {
|
|
15
|
-
const {
|
|
16
|
+
const { inModal } = (0, components_1.useModal)();
|
|
17
|
+
const { children, width = inModal ? "full" : "lg", labelSuffix, labelStyle, compact } = props;
|
|
16
18
|
let firstFormHeading = true;
|
|
17
19
|
// Only overwrite `fieldProps` if new values are explicitly set. Ensures we only set to `undefined` if explicitly set.
|
|
18
20
|
const newFieldProps = {
|