@homebound/beam 4.23.0 → 4.23.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 CHANGED
@@ -126,6 +126,7 @@ __export(index_exports, {
126
126
  FormPageLayout: () => FormPageLayout,
127
127
  FormRow: () => FormRow,
128
128
  FormSection: () => FormSection,
129
+ FormSectionChild: () => FormSectionChild,
129
130
  FormSectionLayout: () => FormSectionLayout,
130
131
  FullBleed: () => FullBleed,
131
132
  GridTable: () => GridTable,
@@ -15969,7 +15970,7 @@ function BannerActions(props) {
15969
15970
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "df aic g_1 fs0 sm_w100 sm_ord_3 sm_fb1", children: actions.map(({
15970
15971
  action,
15971
15972
  variant
15972
- }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "df sm_fg1 sm_fb_0", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { ...action, variant, fullWidth: true }) }, String(action.label))) });
15973
+ }, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "df sm_fg1 sm_fb_0", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { ...action, variant, fullWidth: true }) }, `${typeof action.label === "string" ? action.label : variant}-${index}`)) });
15973
15974
  }
15974
15975
 
15975
15976
  // src/components/StatusBanner/internal/BannerItem.tsx
@@ -15991,10 +15992,6 @@ function BannerItem(props) {
15991
15992
  alignItems: "aic",
15992
15993
  gap: "g_12px",
15993
15994
  flexWrap: "fww",
15994
- paddingTop: "pt2",
15995
- paddingBottom: "pb2",
15996
- paddingRight: "pr2",
15997
- paddingLeft: "pl2",
15998
15995
  backgroundColor: ["bgColor_var", {
15999
15996
  "--backgroundColor": "var(--b-surface)"
16000
15997
  }],
@@ -16211,7 +16208,7 @@ function BannerAccordion(props) {
16211
16208
  boxShadow: "bshFocus"
16212
16209
  }
16213
16210
  }), ...tid.toggle, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ExpandChevron, { expanded }) }) }) }),
16214
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { id: detailsId, "aria-hidden": !expanded, inert: expanded ? void 0 : true, ...(0, import_runtime57.trussProps)(expandCollapsePanelStyles(contentHeight)), ...tid.details, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: contentRef, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BannerItem, { ...item, isLast: i === items.length - 1, ...tid.item }, item.title)) }) })
16211
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { id: detailsId, "aria-hidden": !expanded, inert: expanded ? void 0 : true, ...(0, import_runtime57.trussProps)(expandCollapsePanelStyles(contentHeight)), ...tid.details, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: contentRef, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BannerItem, { ...item, isLast: i === items.length - 1, ...tid.item }, `${item.title}-${i}`)) }) })
16215
16212
  ] });
16216
16213
  }
16217
16214
 
@@ -16237,7 +16234,7 @@ function StatusBanner(props) {
16237
16234
  }
16238
16235
  }), role: "status", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BannerRow, { ...props, ...tid }) });
16239
16236
  }
16240
- if (props.items) return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BannerAccordion, { ...props, items: props.items, ...tid });
16237
+ if (props.items && props.items.length > 0) return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BannerAccordion, { ...props, items: props.items, ...tid });
16241
16238
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ...(0, import_runtime58.trussProps)({
16242
16239
  ...background,
16243
16240
  ...border,
@@ -31653,6 +31650,7 @@ var togglePressStyles = {
31653
31650
  FormPageLayout,
31654
31651
  FormRow,
31655
31652
  FormSection,
31653
+ FormSectionChild,
31656
31654
  FormSectionLayout,
31657
31655
  FullBleed,
31658
31656
  GridTable,