asma-ui-core 3.134.2 → 3.134.3

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.
@@ -10,17 +10,17 @@ import { warnUnnamedDialog as Oe } from "../../../helpers/warnUnnamedDialog.js";
10
10
  import Le from "./StyledDialog.module.js";
11
11
  import { StyledDialogTitleContext as Ae } from "./dialogTitleContext.js";
12
12
  import { useDialogHeaderPinning as He } from "./useDialogHeaderPinning.js";
13
- import { dialogContentFlowClasses as Pe } from "./dialogHeaderStyles.js";
14
- import { useEffect as s, useId as N, useLayoutEffect as Z, useMemo as qe, useRef as l, useState as O } from "react";
13
+ import { dialogContentFlowClasses as Pe, dialogScrollerStyle as qe } from "./dialogHeaderStyles.js";
14
+ import { useEffect as s, useId as N, useLayoutEffect as Z, useMemo as Me, useRef as l, useState as O } from "react";
15
15
  import { jsx as o, jsxs as c } from "react/jsx-runtime";
16
- var Me = {
16
+ var Te = {
17
17
  xs: 444,
18
18
  sm: 600,
19
19
  md: 900,
20
20
  lg: 1200,
21
21
  xl: 1536
22
- }, ot = ({ open: t, onClose: L, children: A, dataTest: u, maxWidth: H = "sm", fullWidth: ee, fullScreen: te, scroll: ne = "paper", disableEscapeKeyDown: P, className: re, style: oe, sx: le, classes: q, PaperProps: ae, slotProps: f, busyReason: ie, locale: se = "en", onCloseText: M, showCloseIcon: b = !0, dialogLabel: m, dialogTitle: h, dialogHeaderNode: k, ariaLabel: E }) => {
23
- const p = N(), T = N(), [W, de] = O(), [j, ce] = O(null), ue = qe(() => ({
22
+ }, lt = ({ open: t, onClose: L, children: A, dataTest: u, maxWidth: H = "sm", fullWidth: ee, fullScreen: te, scroll: ne = "paper", disableEscapeKeyDown: P, className: re, style: oe, sx: le, classes: q, PaperProps: ae, slotProps: f, busyReason: ie, locale: se = "en", onCloseText: M, showCloseIcon: b = !0, dialogLabel: m, dialogTitle: h, dialogHeaderNode: k, ariaLabel: E }) => {
23
+ const p = N(), T = N(), [W, de] = O(), [j, ce] = O(null), ue = Me(() => ({
24
24
  titleId: p,
25
25
  setTitleId: de,
26
26
  titleSlot: j
@@ -62,7 +62,7 @@ var Me = {
62
62
  const _ = {
63
63
  ...ae,
64
64
  ...f?.paper
65
- }, Q = H === !1 ? void 0 : Me[H], { className: ve, style: ge, onClick: be, ...ke } = f?.backdrop ?? {}, V = (e, n) => {
65
+ }, Q = H === !1 ? void 0 : Te[H], { className: ve, style: ge, onClick: be, ...ke } = f?.backdrop ?? {}, V = (e, n) => {
66
66
  if (y || d.current) return;
67
67
  const r = L?.(e, n);
68
68
  if (r && typeof r.then == "function") {
@@ -161,10 +161,7 @@ var Me = {
161
161
  ref: F,
162
162
  "data-dialog-body": "",
163
163
  className: "flex min-h-0 w-full min-w-0 flex-auto flex-col overflow-y-auto overflow-x-hidden overscroll-contain",
164
- style: {
165
- scrollPaddingTop: he,
166
- scrollPaddingBottom: pe
167
- },
164
+ style: qe(he, pe),
168
165
  children: [(z || !!h || !!W) && /* @__PURE__ */ c("div", {
169
166
  ref: me,
170
167
  "data-dialog-header": "",
@@ -234,5 +231,5 @@ var Me = {
234
231
  }) : null;
235
232
  };
236
233
  export {
237
- ot as StyledDialog
234
+ lt as StyledDialog
238
235
  };
@@ -1,7 +1,13 @@
1
- var l = "box-border w-full min-w-0 max-w-full shrink-0 bg-white px-4 pb-3 pt-4", x = (e) => e ? "flex min-h-0 min-w-0 flex-[1_1_0%] flex-col" : "flex min-w-0 flex-[1_0_auto] flex-col [&>:only-child]:flex-grow", a = "flex min-h-11 w-full min-w-0 items-center justify-between gap-x-2 max-xs:flex-wrap max-xs:gap-y-1", n = "my-0 block min-w-0 whitespace-normal text-[20px] font-bold leading-[26px] text-delta-800 [overflow-wrap:anywhere] hyphens-auto min-[744px]:text-lg min-[744px]:leading-6";
1
+ var x = "box-border w-full min-w-0 max-w-full shrink-0 bg-white px-4 pb-3 pt-4", a = (e) => e ? "isolate flex min-h-0 min-w-0 flex-[1_1_0%] flex-col" : "isolate flex min-w-0 flex-[1_0_auto] flex-col [&>:only-child]:flex-grow", t = (e, l) => ({
2
+ scrollPaddingTop: e,
3
+ scrollPaddingBottom: l,
4
+ "--dialog-header-offset": `${e}px`,
5
+ "--dialog-footer-offset": `${l}px`
6
+ }), o = "flex min-h-11 w-full min-w-0 items-center justify-between gap-x-2 max-xs:flex-wrap max-xs:gap-y-1", i = "my-0 block min-w-0 whitespace-normal text-[20px] font-bold leading-[26px] text-delta-800 [overflow-wrap:anywhere] hyphens-auto min-[744px]:text-lg min-[744px]:leading-6";
2
7
  export {
3
- a as DIALOG_HEADER_ACTIONS_ROW_CLASSES,
4
- l as DIALOG_HEADER_CLASSES,
5
- n as DIALOG_TITLE_CLASSES,
6
- x as dialogContentFlowClasses
8
+ o as DIALOG_HEADER_ACTIONS_ROW_CLASSES,
9
+ x as DIALOG_HEADER_CLASSES,
10
+ i as DIALOG_TITLE_CLASSES,
11
+ a as dialogContentFlowClasses,
12
+ t as dialogScrollerStyle
7
13
  };
@@ -8,28 +8,28 @@ import { KeyboardCapslockIcon as ze } from "../../icons/keyboard-capslock-icon/K
8
8
  import { ArrowExpandIcon as Ce } from "../../icons/arrow-expand-icon/ArrowExpandIcon.js";
9
9
  import { ArrowShrinkIcon as Ie } from "../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
10
10
  import { StyledButton as a } from "../../inputs/button/StyledButton.js";
11
- import { OverlayBackOwnerContext as Ne, isOverlayBackNavigationPending as Se, useBackCloses as _e } from "../../../hooks/useBackCloses.hook.js";
11
+ import { OverlayBackOwnerContext as Se, isOverlayBackNavigationPending as Ne, useBackCloses as _e } from "../../../hooks/useBackCloses.hook.js";
12
12
  import { useFocusTrap as Re } from "../../../hooks/useFocusTrap.hook.js";
13
13
  import { StyledMenu as Ee } from "../../navigation/menu/StyledMenu.js";
14
14
  import { StyledMenuItem as Me } from "../../navigation/menu/StyledMenuItem.js";
15
15
  import { useDialogHeaderPinning as Ae } from "../dialog/useDialogHeaderPinning.js";
16
- import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as De, DIALOG_HEADER_CLASSES as Oe, DIALOG_TITLE_CLASSES as je, dialogContentFlowClasses as Fe } from "../dialog/dialogHeaderStyles.js";
17
- import { fullScreenFieldWidthVars as Ge } from "../../inputs/field-styles.js";
16
+ import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as De, DIALOG_HEADER_CLASSES as Oe, DIALOG_TITLE_CLASSES as je, dialogContentFlowClasses as Fe, dialogScrollerStyle as Ge } from "../dialog/dialogHeaderStyles.js";
17
+ import { fullScreenFieldWidthVars as Pe } from "../../inputs/field-styles.js";
18
18
  import Z from "./MinimizableDialog.module.js";
19
- import { useToggleMenuVisibility as Pe } from "../../../hooks/useToggleMenuVisibility.hook.js";
19
+ import { useToggleMenuVisibility as qe } from "../../../hooks/useToggleMenuVisibility.hook.js";
20
20
  import B from "clsx";
21
- import { useId as qe, useLayoutEffect as Le, useRef as S, useState as ee } from "react";
21
+ import { useId as Le, useLayoutEffect as Te, useRef as N, useState as ee } from "react";
22
22
  import { Fragment as p, jsx as e, jsxs as l } from "react/jsx-runtime";
23
- var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", onFullScreenText: E = "", showCloseIcon: M = !0, showMinimizeIcon: ie = !0, showExpandIcon: te = !0, showFullScreenIcon: le = !0, title: g, label: A, children: x, open: w, onClose: ae, className: D = "", primaryButtonText: O, primaryButtonLoading: d = !1, primaryButtonDisabled: de, primaryButtonDisabledReason: re, secondaryButtonText: y, onPrimaryButtonClick: j, onSecondaryButtonClick: F, dataTest: G, actionNode: ne, extraActions: r, extraActionsText: h, btnContainerClassName: P, footerClassName: oe, footerInfo: q, locale: t = "en", enableFullscreen: se = !0, fullscreenLockedReason: L, fullScreenState: T, handleFullScreenState: H }) => {
24
- const [i, ce] = ee(!1), [V, me] = ee(!1), { open: fe, anchorEl: he, handleOpen: ue, handleClose: ve } = Pe(), c = S(null), k = S(null), W = qe(), U = S(null), { headerRef: be, pinned: v, hidden: z, scrollPaddingTop: pe, scrollPaddingBottom: ge } = Ae(U), C = t === "en" ? "Wait until saved" : "Vent til lagringen er ferdig", b = () => {
23
+ var fi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", onFullScreenText: E = "", showCloseIcon: M = !0, showMinimizeIcon: ie = !0, showExpandIcon: te = !0, showFullScreenIcon: le = !0, title: g, label: A, children: x, open: w, onClose: ae, className: D = "", primaryButtonText: O, primaryButtonLoading: d = !1, primaryButtonDisabled: de, primaryButtonDisabledReason: re, secondaryButtonText: y, onPrimaryButtonClick: j, onSecondaryButtonClick: F, dataTest: G, actionNode: ne, extraActions: r, extraActionsText: h, btnContainerClassName: P, footerClassName: oe, footerInfo: q, locale: t = "en", enableFullscreen: se = !0, fullscreenLockedReason: L, fullScreenState: T, handleFullScreenState: H }) => {
24
+ const [i, ce] = ee(!1), [V, me] = ee(!1), { open: fe, anchorEl: he, handleOpen: ue, handleClose: ve } = qe(), c = N(null), k = N(null), W = Le(), U = N(null), { headerRef: be, pinned: v, hidden: z, scrollPaddingTop: pe, scrollPaddingBottom: ge } = Ae(U), C = t === "en" ? "Wait until saved" : "Vent til lagringen er ferdig", b = () => {
25
25
  if (d) return !1;
26
26
  ae();
27
27
  }, o = T ?? V, n = o && !i, I = !!L;
28
28
  if (Re(w && n, c, b), _e({
29
29
  active: w && !i,
30
- requestClose: () => !n && Se() ? !1 : b(),
30
+ requestClose: () => !n && Ne() ? !1 : b(),
31
31
  ownerRef: c
32
- }), Le(() => {
32
+ }), Te(() => {
33
33
  c.current?.toggleAttribute("inert", i), k.current?.toggleAttribute("inert", !i);
34
34
  }, [i]), !w) return null;
35
35
  const xe = n ? {
@@ -40,7 +40,7 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
40
40
  transform: "translate(-50%, -50%)",
41
41
  width: "min(1000px, calc(100vw - 32px))",
42
42
  height: "95dvh",
43
- ...Ge
43
+ ...Pe
44
44
  } : void 0, $ = o ? t === "en" ? "Exit full screen" : "Avslutt fullskjerm" : t === "en" ? "Full screen" : "Fullskjerm", K = O ?? d, J = K || y, Q = /* @__PURE__ */ l(p, { children: [y && F && /* @__PURE__ */ e(a, {
45
45
  dataTest: "cancel-button",
46
46
  variant: "outlined",
@@ -59,8 +59,8 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
59
59
  })] }), X = () => {
60
60
  const m = i ? c : k;
61
61
  ce(!i), requestAnimationFrame(() => {
62
- const N = m.current;
63
- N && (N.querySelector('[data-testid="minimize-button"]') ?? we(N))?.focus({ preventScroll: !0 });
62
+ const S = m.current;
63
+ S && (S.querySelector('[data-testid="minimize-button"]') ?? we(S))?.focus({ preventScroll: !0 });
64
64
  });
65
65
  };
66
66
  return /* @__PURE__ */ l(p, { children: [
@@ -128,7 +128,7 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
128
128
  "aria-labelledby": n ? W : void 0,
129
129
  className: s("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300", "max-xs:max-w-[calc(100vw-32px)]", D && !i && !o ? D : "", i && "!h-0 !w-0 opacity-0 duration-0", n && "fixed duration-0"),
130
130
  "data-testid": G,
131
- children: /* @__PURE__ */ e(Ne.Provider, {
131
+ children: /* @__PURE__ */ e(Se.Provider, {
132
132
  value: c,
133
133
  children: /* @__PURE__ */ l("div", {
134
134
  className: B("flex flex-col", o && !i && "h-full"),
@@ -136,10 +136,7 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
136
136
  ref: U,
137
137
  "data-dialog-body": "",
138
138
  className: s("flex min-h-0 flex-grow flex-col overflow-y-auto overscroll-contain", "[&_[data-dialog-footer]]:sticky [&_[data-dialog-footer]]:bottom-0 [&_[data-dialog-footer]]:z-[2] [&_[data-dialog-footer]]:bg-white"),
139
- style: {
140
- scrollPaddingTop: pe,
141
- scrollPaddingBottom: ge
142
- },
139
+ style: Ge(pe, ge),
143
140
  children: [/* @__PURE__ */ l("div", {
144
141
  ref: be,
145
142
  "data-dialog-header": "",
@@ -225,7 +222,7 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
225
222
  })]
226
223
  }), /* @__PURE__ */ e("div", {
227
224
  "data-dialog-content-flow": "",
228
- className: v ? "flex-grow" : Fe(v),
225
+ className: v ? "isolate flex-grow" : Fe(v),
229
226
  children: typeof x == "function" ? x({ fullScreen: o }) : x
230
227
  })]
231
228
  }), (Array.isArray(r) && r.length || typeof r == "function") && h || q ? /* @__PURE__ */ l("div", {
@@ -272,5 +269,5 @@ var mi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
272
269
  ] });
273
270
  };
274
271
  export {
275
- mi as MinimizableDialog
272
+ fi as MinimizableDialog
276
273
  };
@@ -6,36 +6,36 @@ import { OverlayBackOwnerContext as me, isOverlayBackNavigationPending as ue, us
6
6
  import { useFocusTrap as pe } from "../../../../hooks/useFocusTrap.hook.js";
7
7
  import { useMobileMediaQuery as ve } from "../../../../hooks/useMediaQuery.hook.js";
8
8
  import { useDialogHeaderPinning as he } from "../../dialog/useDialogHeaderPinning.js";
9
- import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as xe, DIALOG_HEADER_CLASSES as ge, DIALOG_TITLE_CLASSES as be, dialogContentFlowClasses as ye } from "../../dialog/dialogHeaderStyles.js";
10
- import { fullScreenFieldWidthVars as we } from "../../../inputs/field-styles.js";
9
+ import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as xe, DIALOG_HEADER_CLASSES as ge, DIALOG_TITLE_CLASSES as be, dialogContentFlowClasses as ye, dialogScrollerStyle as we } from "../../dialog/dialogHeaderStyles.js";
10
+ import { fullScreenFieldWidthVars as Ce } from "../../../inputs/field-styles.js";
11
11
  import { CloseBtn as W } from "../components/CloseBtn.js";
12
12
  import { MinimizeBtn as $ } from "../components/MinimizeBtn.js";
13
- import { FullScreenBtn as Ce } from "../components/FullscreenBtn.js";
13
+ import { FullScreenBtn as Se } from "../components/FullscreenBtn.js";
14
14
  import f from "./MinimizableDialogV2.module.js";
15
15
  import { useTranslations as ze } from "./useTranslations.js";
16
16
  import { useControlledProps as Re } from "./useControlledProps.js";
17
- import Se from "clsx";
17
+ import Ne from "clsx";
18
18
  import { useId as G, useLayoutEffect as Q, useRef as l } from "react";
19
- import { Fragment as Ne, jsx as e, jsxs as r } from "react/jsx-runtime";
20
- var Ue = (S) => {
19
+ import { Fragment as Be, jsx as e, jsxs as r } from "react/jsx-runtime";
20
+ var Je = (R) => {
21
21
  const { showCloseIcon: N = !0, showMinimizeIcon: U = !0, showExpandIcon: J = !0, enableFullscreen: K = !0, fullscreenLockedReason: B, title: p, label: v, children: X, open: i, onClose: Y, classNameOverrides: h = {
22
22
  maximized: "",
23
23
  minimized: "",
24
24
  fullscreen: ""
25
- }, dataTest: Z, actionNode: ee, locale: te = "en", busyReason: ie, style: I, initialFocusRef: _ } = S, x = ve(), o = ze(te), n = l(null), c = l(null), k = l(null), E = l(null), g = l(!1), b = l(null), y = G(), F = G(), T = l(null), { headerRef: oe, pinned: w, hidden: C, scrollPaddingTop: ne, scrollPaddingBottom: le } = he(T), { minimized: t, setMinimized: A, fullScreen: a, setFullScreen: D } = Re(S), s = a && !t, L = !!B, { busy: z, busyReason: O, contextValue: M } = ce(ie ?? o.waitUntilSaved), m = () => {
26
- if (z) return !1;
25
+ }, dataTest: Z, actionNode: ee, locale: te = "en", busyReason: ie, style: I, initialFocusRef: _ } = R, x = ve(), o = ze(te), n = l(null), c = l(null), k = l(null), E = l(null), g = l(!1), b = l(null), y = G(), F = G(), T = l(null), { headerRef: oe, pinned: w, hidden: C, scrollPaddingTop: ne, scrollPaddingBottom: le } = he(T), { minimized: t, setMinimized: A, fullScreen: a, setFullScreen: D } = Re(R), s = a && !t, L = !!B, { busy: S, busyReason: O, contextValue: M } = ce(ie ?? o.waitUntilSaved), m = () => {
26
+ if (S) return !1;
27
27
  A(!1), Y();
28
28
  };
29
29
  Q(() => {
30
30
  n.current?.toggleAttribute("inert", t), c.current?.toggleAttribute("inert", !t);
31
31
  }, [t]), Q(() => {
32
- const R = i && !g.current, d = !i && g.current;
32
+ const z = i && !g.current, d = !i && g.current;
33
33
  if (g.current = i, d) {
34
34
  const H = b.current;
35
35
  b.current = null, (!document.activeElement || document.activeElement === document.body) && H?.isConnected && H.focus({ preventScroll: !0 });
36
36
  return;
37
37
  }
38
- if (!R) return;
38
+ if (!z) return;
39
39
  b.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
40
40
  const j = t ? c.current : n.current, se = t ? E.current : k.current;
41
41
  (_?.current ?? se ?? (j ? q(j) : void 0))?.focus({ preventScroll: !0 });
@@ -45,9 +45,9 @@ var Ue = (S) => {
45
45
  i
46
46
  ]);
47
47
  const P = () => {
48
- const R = t ? n : c;
48
+ const z = t ? n : c;
49
49
  A(!t), requestAnimationFrame(() => {
50
- const d = R.current;
50
+ const d = z.current;
51
51
  d && (d.querySelector('[data-testid="toggle-minimize-btn"]') ?? q(d))?.focus({ preventScroll: !0 });
52
52
  });
53
53
  };
@@ -72,11 +72,11 @@ var Ue = (S) => {
72
72
  width: "min(1000px, calc(100vw - 32px))",
73
73
  maxWidth: "min(1000px, calc(100vw - 32px))",
74
74
  height: "95dvh",
75
- ...we
75
+ ...Ce
76
76
  } : void 0;
77
77
  if (!i) return null;
78
78
  const ae = v ? `${F} ${y}` : y;
79
- return /* @__PURE__ */ r(Ne, { children: [
79
+ return /* @__PURE__ */ r(Be, { children: [
80
80
  /* @__PURE__ */ e("div", {
81
81
  ref: c,
82
82
  style: {
@@ -85,7 +85,7 @@ var Ue = (S) => {
85
85
  },
86
86
  className: u(f["minimized-dialog"], !t && f.hidden, h.minimized),
87
87
  children: /* @__PURE__ */ r("div", {
88
- className: Se("flex items-center justify-between", !t && "hidden"),
88
+ className: Ne("flex items-center justify-between", !t && "hidden"),
89
89
  "data-testid": Z,
90
90
  children: [/* @__PURE__ */ e("div", {
91
91
  className: "min-w-0 max-w-[303px] truncate pr-1 text-lg font-semibold text-delta-800",
@@ -110,7 +110,7 @@ var Ue = (S) => {
110
110
  buttonRef: E,
111
111
  showCloseIcon: N,
112
112
  onClick: m,
113
- disabledReason: z ? O : void 0,
113
+ disabledReason: S ? O : void 0,
114
114
  tooltipTitle: o.close
115
115
  })]
116
116
  })]
@@ -139,10 +139,7 @@ var Ue = (S) => {
139
139
  ref: T,
140
140
  "data-dialog-body": "",
141
141
  className: u(t && "hidden", "flex min-h-0 flex-grow flex-col overflow-y-auto overscroll-contain", "[&>[data-dialog-content-flow]>[data-dialog-content]]:!flex-[1_0_auto]", "[&_[data-dialog-footer]]:sticky [&_[data-dialog-footer]]:bottom-0 [&_[data-dialog-footer]]:z-[2] [&_[data-dialog-footer]]:bg-white"),
142
- style: {
143
- scrollPaddingTop: ne,
144
- scrollPaddingBottom: le
145
- },
142
+ style: we(ne, le),
146
143
  children: [/* @__PURE__ */ r("div", {
147
144
  ref: oe,
148
145
  "data-dialog-header": "",
@@ -169,7 +166,7 @@ var Ue = (S) => {
169
166
  onClick: P,
170
167
  tooltipTitle: o.minimize
171
168
  }),
172
- /* @__PURE__ */ e(Ce, {
169
+ /* @__PURE__ */ e(Se, {
173
170
  showFullScreenIcon: (K || L) && !x,
174
171
  disabledReason: B,
175
172
  fullScreen: a,
@@ -182,7 +179,7 @@ var Ue = (S) => {
182
179
  buttonRef: k,
183
180
  showCloseIcon: N,
184
181
  onClick: m,
185
- disabledReason: z ? O : void 0,
182
+ disabledReason: S ? O : void 0,
186
183
  tooltipTitle: o.close
187
184
  })
188
185
  ]
@@ -206,5 +203,5 @@ var Ue = (S) => {
206
203
  ] });
207
204
  };
208
205
  export {
209
- Ue as MinimizableDialogV2
206
+ Je as MinimizableDialogV2
210
207
  };
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  /**
2
3
  * The one dialog header layout (ASMA-8737), shared by `StyledDialog`, `MinimizableDialog` and
3
4
  * `MinimizableDialogV2`: the actions row on top, then the title on a row of its own across the full
@@ -19,6 +20,16 @@ export declare const DIALOG_HEADER_CLASSES = "box-border w-full min-w-0 max-w-fu
19
20
  * still grows to fill a short dialog, keeping a form's footer at the bottom.
20
21
  */
21
22
  export declare const dialogContentFlowClasses: (pinned: boolean) => string;
23
+ /**
24
+ * The scroller's inline style: scroll padding for focus, plus the same offsets as CSS variables so a
25
+ * sticky child of the content can sit under a pinned header with `top-[var(--dialog-header-offset,0px)]`
26
+ * (0 when the header scrolls away or is stepped aside). Always set, so a nested dialog never inherits
27
+ * its parent's offset.
28
+ *
29
+ * The content flow is `isolate`d, so a consumer `z-index` stays below the header (z-2): a sticky bar
30
+ * or a menu that is not portalled can slide under the header, never over the title.
31
+ */
32
+ export declare const dialogScrollerStyle: (scrollPaddingTop: number, scrollPaddingBottom: number) => CSSProperties;
22
33
  /** Label (if any) on the left, the header actions on the right. Wraps rather than overflowing at 320 px. */
23
34
  export declare const DIALOG_HEADER_ACTIONS_ROW_CLASSES = "flex min-h-11 w-full min-w-0 items-center justify-between gap-x-2 max-xs:flex-wrap max-xs:gap-y-1";
24
35
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.134.2",
6
+ "version": "3.134.3",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",