@homebound/beam 4.27.0 → 4.28.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.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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. */
|
|
@@ -11093,7 +11095,10 @@ type EnvironmentBannerLayoutProps = {
|
|
|
11093
11095
|
/** Outermost layout shell; optional sticky environment banner above all other chrome. Contract: `docs/layouts.md`. */
|
|
11094
11096
|
declare function EnvironmentBannerLayout(props: EnvironmentBannerLayoutProps): React$1.JSX.Element;
|
|
11095
11097
|
|
|
11096
|
-
type FormSectionChildBase = Omit<FormSectionProps, "childSections"
|
|
11098
|
+
type FormSectionChildBase = Omit<FormSectionProps, "childSections"> & {
|
|
11099
|
+
/** Renders a `Tag` top-right of the header. */
|
|
11100
|
+
tag?: TagProps<any>;
|
|
11101
|
+
};
|
|
11097
11102
|
/** A single, non-draggable entry in a `FormSection`'s `childSections` — never itself nests further children. */
|
|
11098
11103
|
type PlainFormSectionChild = FormSectionChildBase & {
|
|
11099
11104
|
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. */
|
|
@@ -11093,7 +11095,10 @@ type EnvironmentBannerLayoutProps = {
|
|
|
11093
11095
|
/** Outermost layout shell; optional sticky environment banner above all other chrome. Contract: `docs/layouts.md`. */
|
|
11094
11096
|
declare function EnvironmentBannerLayout(props: EnvironmentBannerLayoutProps): React$1.JSX.Element;
|
|
11095
11097
|
|
|
11096
|
-
type FormSectionChildBase = Omit<FormSectionProps, "childSections"
|
|
11098
|
+
type FormSectionChildBase = Omit<FormSectionProps, "childSections"> & {
|
|
11099
|
+
/** Renders a `Tag` top-right of the header. */
|
|
11100
|
+
tag?: TagProps<any>;
|
|
11101
|
+
};
|
|
11097
11102
|
/** A single, non-draggable entry in a `FormSection`'s `childSections` — never itself nests further children. */
|
|
11098
11103
|
type PlainFormSectionChild = FormSectionChildBase & {
|
|
11099
11104
|
id?: string;
|
package/dist/index.js
CHANGED
|
@@ -20374,6 +20374,7 @@ function ContentHeader(props) {
|
|
|
20374
20374
|
level = 2,
|
|
20375
20375
|
aiMode = false,
|
|
20376
20376
|
startAdornment,
|
|
20377
|
+
rightSlotLead,
|
|
20377
20378
|
tooltip,
|
|
20378
20379
|
xss
|
|
20379
20380
|
} = props;
|
|
@@ -20388,7 +20389,7 @@ function ContentHeader(props) {
|
|
|
20388
20389
|
bottomSlotActions,
|
|
20389
20390
|
rightSlotActions
|
|
20390
20391
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
20391
|
-
const showActionsSlot = !!withAutoSave || rightSlotActions.length > 0;
|
|
20392
|
+
const showActionsSlot = !!withAutoSave || !!rightSlotLead || rightSlotActions.length > 0;
|
|
20392
20393
|
const {
|
|
20393
20394
|
tag: Heading,
|
|
20394
20395
|
css: headingCss
|
|
@@ -20436,7 +20437,8 @@ function ContentHeader(props) {
|
|
|
20436
20437
|
/* @__PURE__ */ jsx121(Heading, { ...trussProps79(titleCss), ...tid.title, children: title }),
|
|
20437
20438
|
tooltip && /* @__PURE__ */ jsx121(Icon, { icon: "infoCircle", tooltip, inc: 2 })
|
|
20438
20439
|
] }) : descriptionEl,
|
|
20439
|
-
showActionsSlot && /* @__PURE__ */ jsxs75("div", { className: "df g_2 fs0", ...tid.actions, children: [
|
|
20440
|
+
showActionsSlot && /* @__PURE__ */ jsxs75("div", { className: "df aic g_2 fs0", ...tid.actions, children: [
|
|
20441
|
+
rightSlotLead,
|
|
20440
20442
|
withAutoSave && /* @__PURE__ */ jsx121(AutoSaveIndicator, {}),
|
|
20441
20443
|
rightSlotActions.length > 0 && /* @__PURE__ */ jsx121(HeaderActions, { actions: rightSlotActions })
|
|
20442
20444
|
] })
|
|
@@ -30127,7 +30129,8 @@ function FormSectionChild(props) {
|
|
|
30127
30129
|
description,
|
|
30128
30130
|
actions,
|
|
30129
30131
|
fields,
|
|
30130
|
-
orderField
|
|
30132
|
+
orderField,
|
|
30133
|
+
tag
|
|
30131
30134
|
} = props;
|
|
30132
30135
|
const tid = useTestIds(props, "formSectionChild");
|
|
30133
30136
|
const itemRef = useRef71(null);
|
|
@@ -30158,7 +30161,7 @@ function FormSectionChild(props) {
|
|
|
30158
30161
|
borderStyle: "lot_bsn",
|
|
30159
30162
|
borderWidth: "lot_bw_0"
|
|
30160
30163
|
}), ...tid, children: [
|
|
30161
|
-
/* @__PURE__ */ jsx241(ContentHeader, { ...tid.header, title, description, actions, level: 4, startAdornment: isDraggable ? /* @__PURE__ */ jsx241(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }) : void 0 }),
|
|
30164
|
+
/* @__PURE__ */ jsx241(ContentHeader, { ...tid.header, title, description, actions, level: 4, rightSlotLead: tag && /* @__PURE__ */ jsx241(Tag, { ...tag, ...tid.tag }), startAdornment: isDraggable ? /* @__PURE__ */ jsx241(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }) : void 0 }),
|
|
30162
30165
|
fields
|
|
30163
30166
|
] });
|
|
30164
30167
|
}
|