asma-ui-core 3.135.3 → 3.136.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.
@@ -1,38 +1,38 @@
1
1
  import { cn as s } from "../../../helpers/cn.js";
2
- import { firstTabbable as we } from "../../../helpers/focusable.js";
2
+ import { firstTabbable as ye } from "../../../helpers/focusable.js";
3
3
  import { StyledTooltip as f } from "../../data-display/tooltip/StyledTooltip.js";
4
- import { DotsVerticalIcon as ye } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
4
+ import { DotsVerticalIcon as ke } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
5
5
  import { CloseIcon as Y } from "../../icons/close-icon/CloseIcon.js";
6
- import { MinimizeIcon as ke } from "../../icons/minimize-icon/MinimizeIcon.js";
7
- import { KeyboardCapslockIcon as ze } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
8
- import { ArrowExpandIcon as Ce } from "../../icons/arrow-expand-icon/ArrowExpandIcon.js";
9
- import { ArrowShrinkIcon as Ie } from "../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
10
- import { StyledButton as a } from "../../inputs/button/StyledButton.js";
11
- import { OverlayBackOwnerContext as Se, isOverlayBackNavigationPending as Ne, useBackCloses as _e } from "../../../hooks/useBackCloses.hook.js";
6
+ import { MinimizeIcon as _e } from "../../icons/minimize-icon/MinimizeIcon.js";
7
+ import { KeyboardCapslockIcon as Se } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
8
+ import { ArrowExpandIcon as Ie } from "../../icons/arrow-expand-icon/ArrowExpandIcon.js";
9
+ import { ArrowShrinkIcon as Ce } from "../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
10
+ import { StyledButton as d } from "../../inputs/button/StyledButton.js";
11
+ import { OverlayBackOwnerContext as ze, isOverlayBackNavigationPending as Ee, useBackCloses as Ne } from "../../../hooks/useBackCloses.hook.js";
12
12
  import { useFocusTrap as Re } from "../../../hooks/useFocusTrap.hook.js";
13
- import { StyledMenu as Ee } from "../../navigation/menu/StyledMenu.js";
14
- import { StyledMenuItem as Me } from "../../navigation/menu/StyledMenuItem.js";
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, dialogScrollerStyle as Ge } from "../dialog/dialogHeaderStyles.js";
17
- import { fullScreenFieldWidthVars as Pe } from "../../inputs/field-styles.js";
13
+ import { StyledMenu as Ae } from "../../navigation/menu/StyledMenu.js";
14
+ import { StyledMenuItem as Oe } from "../../navigation/menu/StyledMenuItem.js";
15
+ import { useDialogHeaderPinning as De } from "../dialog/useDialogHeaderPinning.js";
16
+ import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as Le, DIALOG_HEADER_CLASSES as Me, DIALOG_HEADER_TITLE_ROW_CLASSES as Ge, DIALOG_TITLE_CLASSES as je, dialogContentFlowClasses as Fe, dialogScrollerStyle as Te } from "../dialog/dialogHeaderStyles.js";
17
+ import { fullScreenFieldWidthVars as He } from "../../inputs/field-styles.js";
18
18
  import Z from "./MinimizableDialog.module.js";
19
- import { useToggleMenuVisibility as qe } from "../../../hooks/useToggleMenuVisibility.hook.js";
20
- import B from "clsx";
21
- import { useId as Le, useLayoutEffect as Te, useRef as N, useState as ee } from "react";
22
- import { Fragment as p, jsx as e, jsxs as l } from "react/jsx-runtime";
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
- if (d) return !1;
19
+ import { useToggleMenuVisibility as Pe } from "../../../hooks/useToggleMenuVisibility.hook.js";
20
+ import ee from "clsx";
21
+ import { useId as We, useLayoutEffect as qe, useRef as E, useState as ie } from "react";
22
+ import { Fragment as g, jsx as e, jsxs as l } from "react/jsx-runtime";
23
+ var vi = ({ onCloseText: v = "", onMinimizeText: N = "", onExpandText: R = "", onFullScreenText: A = "", showCloseIcon: O = !0, showMinimizeIcon: te = !0, showExpandIcon: le = !0, showFullScreenIcon: de = !0, title: x, label: h, children: w, open: y, onClose: ae, className: D = "", primaryButtonText: L, primaryButtonLoading: a = !1, primaryButtonDisabled: re, primaryButtonDisabledReason: ne, secondaryButtonText: k, onPrimaryButtonClick: M, onSecondaryButtonClick: G, dataTest: j, actionNode: oe, extraActions: r, extraActionsText: u, btnContainerClassName: F, footerClassName: se, footerInfo: T, locale: t = "en", enableFullscreen: ce = !0, fullscreenLockedReason: H, fullScreenState: P, handleFullScreenState: W }) => {
24
+ const [i, me] = ie(!1), [q, fe] = ie(!1), { open: he, anchorEl: ue, handleOpen: ve, handleClose: pe } = Pe(), c = E(null), _ = E(null), V = We(), U = E(null), { headerRef: be, pinned: p, hidden: S, scrollPaddingTop: ge, scrollPaddingBottom: xe } = De(U), I = t === "en" ? "Wait until saved" : "Vent til lagringen er ferdig", b = () => {
25
+ if (a) return !1;
26
26
  ae();
27
- }, o = T ?? V, n = o && !i, I = !!L;
28
- if (Re(w && n, c, b), _e({
29
- active: w && !i,
30
- requestClose: () => !n && Ne() ? !1 : b(),
27
+ }, o = P ?? q, n = o && !i, C = !!H;
28
+ if (Re(y && n, c, b), Ne({
29
+ active: y && !i,
30
+ requestClose: () => !n && Ee() ? !1 : b(),
31
31
  ownerRef: c
32
- }), Te(() => {
33
- c.current?.toggleAttribute("inert", i), k.current?.toggleAttribute("inert", !i);
34
- }, [i]), !w) return null;
35
- const xe = n ? {
32
+ }), qe(() => {
33
+ c.current?.toggleAttribute("inert", i), _.current?.toggleAttribute("inert", !i);
34
+ }, [i]), !y) return null;
35
+ const we = n ? {
36
36
  right: "auto",
37
37
  bottom: "auto",
38
38
  left: "50%",
@@ -40,81 +40,85 @@ var fi = ({ 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
- ...Pe
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, {
43
+ ...He
44
+ } : void 0, $ = o ? t === "en" ? "Exit full screen" : "Avslutt fullskjerm" : t === "en" ? "Full screen" : "Fullskjerm", K = L ?? a, X = K || k, B = /* @__PURE__ */ l(g, { children: [k && G && /* @__PURE__ */ e(d, {
45
45
  dataTest: "cancel-button",
46
46
  variant: "outlined",
47
- disabled: d,
48
- disabledReason: C,
49
- onClick: F,
50
- children: y
51
- }), K && j && /* @__PURE__ */ e(a, {
47
+ disabled: a,
48
+ disabledReason: I,
49
+ onClick: G,
50
+ children: k
51
+ }), K && M && /* @__PURE__ */ e(d, {
52
52
  dataTest: "save-button",
53
- loading: d,
53
+ loading: a,
54
54
  locale: t,
55
- disabled: de,
56
- disabledReason: re,
57
- onClick: j,
58
- children: O
59
- })] }), X = () => {
60
- const m = i ? c : k;
61
- ce(!i), requestAnimationFrame(() => {
62
- const S = m.current;
63
- S && (S.querySelector('[data-testid="minimize-button"]') ?? we(S))?.focus({ preventScroll: !0 });
55
+ disabled: re,
56
+ disabledReason: ne,
57
+ onClick: M,
58
+ children: L
59
+ })] }), J = () => {
60
+ const m = i ? c : _;
61
+ me(!i), requestAnimationFrame(() => {
62
+ const z = m.current;
63
+ z && (z.querySelector('[data-testid="minimize-button"]') ?? ye(z))?.focus({ preventScroll: !0 });
64
64
  });
65
- };
66
- return /* @__PURE__ */ l(p, { children: [
65
+ }, Q = /* @__PURE__ */ e("div", {
66
+ id: V,
67
+ className: je,
68
+ children: x
69
+ });
70
+ return /* @__PURE__ */ l(g, { children: [
67
71
  n && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[51] bg-[rgb(98,110,126)] bg-opacity-70" }),
68
72
  /* @__PURE__ */ e("div", {
69
- ref: k,
73
+ ref: _,
70
74
  style: { zIndex: 51 },
71
75
  className: s(Z.dialog, !i && Z.hidden, i && "max-xs:w-[calc(100vw-32px)]"),
72
76
  children: /* @__PURE__ */ l("div", {
73
- className: B("flex items-center justify-between", !i && "hidden"),
74
- "data-testid": G,
77
+ className: ee("flex items-center justify-between", !i && "hidden"),
78
+ "data-testid": j,
75
79
  children: [/* @__PURE__ */ e(f, {
76
- title: g,
80
+ title: x,
77
81
  placement: "top",
78
82
  children: /* @__PURE__ */ e("div", {
79
83
  tabIndex: 0,
80
84
  "data-testid": "minimized-title",
81
85
  className: "min-w-0 truncate text-lg font-semibold text-delta-800 focus-visible:[outline-offset:-2px]",
82
- children: g
86
+ children: x
83
87
  })
84
88
  }), /* @__PURE__ */ l("div", {
85
89
  className: "flex items-center gap-x-1",
86
- children: [te && /* @__PURE__ */ e(f, {
90
+ children: [le && /* @__PURE__ */ e(f, {
87
91
  title: t === "en" ? "Expand" : "Utvid",
88
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(a, {
92
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
89
93
  dataTest: "minimize-button",
90
94
  "aria-label": R ? void 0 : t === "en" ? "Expand" : "Utvid",
91
95
  variant: "text",
92
96
  size: "small",
93
- onClick: X,
94
- endIcon: /* @__PURE__ */ e(ze, {
97
+ onClick: J,
98
+ endIcon: /* @__PURE__ */ e(Se, {
95
99
  height: 20,
96
100
  width: 20,
97
101
  color: "text-gama-500"
98
102
  }),
99
103
  children: R
100
104
  }) })
101
- }), M && /* @__PURE__ */ e(f, {
105
+ }), O && /* @__PURE__ */ e(f, {
102
106
  title: t === "en" ? "Close" : "Lukk",
103
- open: d ? !1 : void 0,
104
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(a, {
107
+ open: a ? !1 : void 0,
108
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
105
109
  dataTest: "close-button",
106
- "aria-label": u ? void 0 : t === "en" ? "Close" : "Lukk",
110
+ "aria-label": v ? void 0 : t === "en" ? "Close" : "Lukk",
107
111
  variant: "textGray",
108
112
  size: "small",
109
- disabled: d,
110
- disabledReason: C,
113
+ disabled: a,
114
+ disabledReason: I,
111
115
  onClick: b,
112
116
  endIcon: /* @__PURE__ */ e(Y, {
113
117
  height: 20,
114
118
  width: 20,
115
119
  color: "text-delta-700"
116
120
  }),
117
- children: u
121
+ children: v
118
122
  }) })
119
123
  })]
120
124
  })]
@@ -122,146 +126,149 @@ var fi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
122
126
  }),
123
127
  /* @__PURE__ */ e("div", {
124
128
  ref: c,
125
- style: xe,
129
+ style: we,
126
130
  role: n ? "dialog" : void 0,
127
131
  "aria-modal": n ? !0 : void 0,
128
- "aria-labelledby": n ? W : void 0,
132
+ "aria-labelledby": n ? V : void 0,
129
133
  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
- "data-testid": G,
131
- children: /* @__PURE__ */ e(Se.Provider, {
134
+ "data-testid": j,
135
+ children: /* @__PURE__ */ e(ze.Provider, {
132
136
  value: c,
133
137
  children: /* @__PURE__ */ l("div", {
134
- className: B("flex flex-col", o && !i && "h-full"),
138
+ className: ee("flex flex-col", o && !i && "h-full"),
135
139
  children: [/* @__PURE__ */ l("div", {
136
140
  ref: U,
137
141
  "data-dialog-body": "",
138
142
  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: Ge(pe, ge),
143
+ style: Te(ge, xe),
140
144
  children: [/* @__PURE__ */ l("div", {
141
145
  ref: be,
142
146
  "data-dialog-header": "",
143
- "data-header-pinned": v ? "true" : "false",
144
- "aria-hidden": z || void 0,
145
- hidden: z,
146
- className: s(Oe, "rounded-t-lg border-b-[1px] border-delta-200", v && "sticky top-0 z-[2]", z && "hidden"),
147
+ "data-header-pinned": p ? "true" : "false",
148
+ "aria-hidden": S || void 0,
149
+ hidden: S,
150
+ className: s(Me, "rounded-t-lg border-b-[1px] border-delta-200", p && "sticky top-0 z-[2]", S && "hidden"),
147
151
  children: [/* @__PURE__ */ l("div", {
148
- className: De,
149
- children: [A && /* @__PURE__ */ e("div", {
150
- className: "min-w-0 flex-auto hyphens-auto text-sm text-delta-700 [overflow-wrap:anywhere]",
151
- children: A
152
- }), /* @__PURE__ */ l("div", {
153
- className: "ml-auto flex items-center gap-x-1 max-xs:flex-wrap max-xs:justify-end max-xs:gap-y-1",
154
- children: [
155
- ne,
156
- ie && /* @__PURE__ */ e(f, {
157
- title: t === "en" ? "Minimize" : "Minimer",
158
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(a, {
159
- dataTest: "minimize-button",
160
- "aria-label": _ ? void 0 : t === "en" ? "Minimize" : "Minimer",
161
- variant: "textGray",
162
- size: "small",
163
- onClick: X,
164
- endIcon: /* @__PURE__ */ e(ke, {
165
- height: 20,
166
- width: 20,
167
- color: "text-delta-700"
168
- }),
169
- children: _
170
- }) })
171
- }),
172
- (se || I) && le && /* @__PURE__ */ e(f, {
173
- title: $,
174
- open: I ? !1 : void 0,
175
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(a, {
176
- dataTest: "fullscreen-button",
177
- "aria-label": E ? void 0 : $,
178
- variant: "textGray",
179
- size: "small",
180
- disabled: I,
181
- disabledReason: L,
182
- onClick: () => {
183
- T !== void 0 && H ? H(!o) : me(!V);
184
- },
185
- endIcon: o ? /* @__PURE__ */ e(Ie, {
186
- width: 20,
187
- height: 20,
188
- color: "text-delta-700"
189
- }) : /* @__PURE__ */ e(Ce, {
190
- width: 20,
191
- height: 20,
192
- color: "text-delta-700"
193
- }),
194
- children: E
195
- }) })
196
- }),
197
- M && /* @__PURE__ */ e(f, {
198
- title: t === "en" ? "Close" : "Lukk",
199
- open: d ? !1 : void 0,
200
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(a, {
201
- dataTest: "close-button",
202
- "aria-label": u ? void 0 : t === "en" ? "Close" : "Lukk",
203
- variant: "textGray",
204
- size: "small",
205
- disabled: d,
206
- disabledReason: C,
207
- onClick: b,
208
- endIcon: /* @__PURE__ */ e(Y, {
209
- height: 20,
210
- width: 20,
211
- color: "text-delta-700"
212
- }),
213
- children: u
214
- }) })
215
- })
216
- ]
217
- })]
218
- }), /* @__PURE__ */ e("div", {
219
- id: W,
220
- className: je,
221
- children: g
222
- })]
152
+ className: h ? Le : Ge,
153
+ children: [
154
+ h && /* @__PURE__ */ e("div", {
155
+ className: "min-w-0 flex-auto hyphens-auto text-sm text-delta-700 [overflow-wrap:anywhere]",
156
+ children: h
157
+ }),
158
+ !h && /* @__PURE__ */ e("div", {
159
+ className: "min-w-0 flex-auto py-[9px] min-[744px]:py-1.5",
160
+ children: Q
161
+ }),
162
+ /* @__PURE__ */ l("div", {
163
+ className: "ml-auto flex min-h-11 items-center gap-x-1 max-xs:flex-wrap max-xs:justify-end max-xs:gap-y-1",
164
+ children: [
165
+ oe,
166
+ te && /* @__PURE__ */ e(f, {
167
+ title: t === "en" ? "Minimize" : "Minimer",
168
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
169
+ dataTest: "minimize-button",
170
+ "aria-label": N ? void 0 : t === "en" ? "Minimize" : "Minimer",
171
+ variant: "textGray",
172
+ size: "small",
173
+ onClick: J,
174
+ endIcon: /* @__PURE__ */ e(_e, {
175
+ height: 20,
176
+ width: 20,
177
+ color: "text-delta-700"
178
+ }),
179
+ children: N
180
+ }) })
181
+ }),
182
+ (ce || C) && de && /* @__PURE__ */ e(f, {
183
+ title: $,
184
+ open: C ? !1 : void 0,
185
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
186
+ dataTest: "fullscreen-button",
187
+ "aria-label": A ? void 0 : $,
188
+ variant: "textGray",
189
+ size: "small",
190
+ disabled: C,
191
+ disabledReason: H,
192
+ onClick: () => {
193
+ P !== void 0 && W ? W(!o) : fe(!q);
194
+ },
195
+ endIcon: o ? /* @__PURE__ */ e(Ce, {
196
+ width: 20,
197
+ height: 20,
198
+ color: "text-delta-700"
199
+ }) : /* @__PURE__ */ e(Ie, {
200
+ width: 20,
201
+ height: 20,
202
+ color: "text-delta-700"
203
+ }),
204
+ children: A
205
+ }) })
206
+ }),
207
+ O && /* @__PURE__ */ e(f, {
208
+ title: t === "en" ? "Close" : "Lukk",
209
+ open: a ? !1 : void 0,
210
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
211
+ dataTest: "close-button",
212
+ "aria-label": v ? void 0 : t === "en" ? "Close" : "Lukk",
213
+ variant: "textGray",
214
+ size: "small",
215
+ disabled: a,
216
+ disabledReason: I,
217
+ onClick: b,
218
+ endIcon: /* @__PURE__ */ e(Y, {
219
+ height: 20,
220
+ width: 20,
221
+ color: "text-delta-700"
222
+ }),
223
+ children: v
224
+ }) })
225
+ })
226
+ ]
227
+ })
228
+ ]
229
+ }), h && Q]
223
230
  }), /* @__PURE__ */ e("div", {
224
231
  "data-dialog-content-flow": "",
225
- className: v ? "isolate flex-grow" : Fe(v),
226
- children: typeof x == "function" ? x({ fullScreen: o }) : x
232
+ className: p ? "isolate flex-grow" : Fe(p),
233
+ children: typeof w == "function" ? w({ fullScreen: o }) : w
227
234
  })]
228
- }), (Array.isArray(r) && r.length || typeof r == "function") && h || q ? /* @__PURE__ */ l("div", {
229
- className: s("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", oe),
235
+ }), (Array.isArray(r) && r.length || typeof r == "function") && u || T ? /* @__PURE__ */ l("div", {
236
+ className: s("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", se),
230
237
  children: [
231
- Array.isArray(r) && r.length && h ? /* @__PURE__ */ l(p, { children: [/* @__PURE__ */ e(a, {
238
+ Array.isArray(r) && r.length && u ? /* @__PURE__ */ l(g, { children: [/* @__PURE__ */ e(d, {
232
239
  dataTest: "extra-actions-button",
233
240
  variant: "textGray",
234
- startIcon: /* @__PURE__ */ e(ye, {
241
+ startIcon: /* @__PURE__ */ e(ke, {
235
242
  width: 24,
236
243
  height: 24
237
244
  }),
238
- onClick: ue,
239
- children: h
240
- }), /* @__PURE__ */ e(Ee, {
241
- open: fe,
242
- anchorEl: he,
243
- onClose: ve,
244
- children: r.map((m) => /* @__PURE__ */ e(Me, {
245
+ onClick: ve,
246
+ children: u
247
+ }), /* @__PURE__ */ e(Ae, {
248
+ open: he,
249
+ anchorEl: ue,
250
+ onClose: pe,
251
+ children: r.map((m) => /* @__PURE__ */ e(Oe, {
245
252
  className: m.className,
246
253
  onClick: m.onClick,
247
254
  children: m.label
248
255
  }, m.label))
249
- })] }) : h && typeof r == "function" && /* @__PURE__ */ e(a, {
256
+ })] }) : u && typeof r == "function" && /* @__PURE__ */ e(d, {
250
257
  dataTest: "extra-action-button",
251
258
  variant: "text",
252
259
  onClick: r,
253
- children: h
260
+ children: u
254
261
  }),
255
262
  " ",
256
- q,
257
- J ? /* @__PURE__ */ e("div", {
258
- className: s("flex justify-end gap-x-2", P),
259
- children: Q
263
+ T,
264
+ X ? /* @__PURE__ */ e("div", {
265
+ className: s("flex justify-end gap-x-2", F),
266
+ children: B
260
267
  }) : null
261
268
  ]
262
- }) : /* @__PURE__ */ e(p, { children: J ? /* @__PURE__ */ e("div", {
263
- className: s("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", P),
264
- children: Q
269
+ }) : /* @__PURE__ */ e(g, { children: X ? /* @__PURE__ */ e("div", {
270
+ className: s("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", F),
271
+ children: B
265
272
  }) : null })]
266
273
  })
267
274
  })
@@ -269,5 +276,5 @@ var fi = ({ onCloseText: u = "", onMinimizeText: _ = "", onExpandText: R = "", o
269
276
  ] });
270
277
  };
271
278
  export {
272
- fi as MinimizableDialog
279
+ vi as MinimizableDialog
273
280
  };