@burdenoff/fe-libs 2026.1030.2 → 2026.1030.4

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.
@@ -5,6 +5,11 @@ export interface ModalShellProps {
5
5
  title: string;
6
6
  description?: string;
7
7
  children: ReactNode;
8
+ /**
9
+ * Omit the body slot when the description is the entire message. Opt-in:
10
+ * existing callers, including those with null children, keep their body.
11
+ */
12
+ omitBody?: boolean;
8
13
  size?: 'sm' | 'md' | 'lg' | 'xl';
9
14
  footer?: ReactNode;
10
15
  /**
@@ -36,4 +41,4 @@ export interface ModalShellProps {
36
41
  * primitives (which already own the scrim, Escape, focus trap and scroll lock);
37
42
  * it does not replace them.
38
43
  */
39
- export declare function ModalShell({ open, onClose, title, description, children, size, footer, role, ariaModal, onOpenAutoFocus, testId, }: ModalShellProps): import('react/jsx-runtime').JSX.Element;
44
+ export declare function ModalShell({ open, onClose, title, description, children, omitBody, size, footer, role, ariaModal, onOpenAutoFocus, testId, }: ModalShellProps): import('react/jsx-runtime').JSX.Element;
@@ -9,32 +9,32 @@ var f = {
9
9
  lg: "sm:max-w-2xl",
10
10
  xl: "sm:max-w-3xl"
11
11
  };
12
- function p({ open: p, onClose: m, title: h, description: g, children: _, size: v = "md", footer: y, role: b, ariaModal: x, onOpenAutoFocus: S, testId: C }) {
13
- let w = l(null);
12
+ function p({ open: p, onClose: m, title: h, description: g, children: _, omitBody: v = !1, size: y = "md", footer: b, role: x, ariaModal: S, onOpenAutoFocus: C, testId: w }) {
13
+ let T = l(null);
14
14
  return /* @__PURE__ */ u(e, {
15
15
  open: p,
16
16
  onOpenChange: (e) => {
17
17
  e || m();
18
18
  },
19
19
  children: /* @__PURE__ */ d(t, {
20
- className: f[v],
21
- ...b ? { role: b } : {},
22
- ...x ? { "aria-modal": !0 } : {},
23
- ...C ? { "data-testid": C } : {},
20
+ className: f[y],
21
+ ...x ? { role: x } : {},
22
+ ...S ? { "aria-modal": !0 } : {},
23
+ ...w ? { "data-testid": w } : {},
24
24
  onOpenAutoFocus: (e) => {
25
- w.current = s(document), S?.(e);
25
+ T.current = s(document), C?.(e);
26
26
  },
27
27
  onCloseAutoFocus: (e) => {
28
- let t = w.current;
29
- w.current = null, o(document) && c(document, [t]) && e.preventDefault();
28
+ let t = T.current;
29
+ T.current = null, o(document) && c(document, [t]) && e.preventDefault();
30
30
  },
31
31
  children: [
32
32
  /* @__PURE__ */ d(i, { children: [h && /* @__PURE__ */ u(a, { children: h }), g && /* @__PURE__ */ u(n, { children: g })] }),
33
- /* @__PURE__ */ u("div", {
33
+ !v && /* @__PURE__ */ u("div", {
34
34
  className: "max-h-[60dvh] overflow-y-auto overscroll-contain pr-1",
35
35
  children: _
36
36
  }),
37
- y && /* @__PURE__ */ u(r, { children: y })
37
+ b && /* @__PURE__ */ u(r, { children: b })
38
38
  ]
39
39
  })
40
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1030.2",
3
+ "version": "2026.1030.4",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "type": "module",
6
6
  "bin": {