asma-ui-core 3.110.0 → 3.112.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/components/feedback/minimizable-dialog/MinimizableDialog.js +41 -41
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +57 -57
- package/dist/components/inputs/input-field/StyledInputField.js +147 -157
- package/dist/components/inputs/textarea/StyledTextarea.js +46 -47
- package/dist/hooks/useBackCloses.hook.js +67 -38
- package/dist/hooks/useTopLayer.hook.js +30 -26
- package/dist/index.js +252 -249
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +4 -1
- package/dist/src/helpers/CharacterCounter.d.ts +2 -1
- package/dist/src/hooks/useBackCloses.hook.d.ts +47 -2
- package/dist/src/hooks/useTopLayer.hook.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { cn as
|
|
1
|
+
import { cn as h } from "../../../helpers/cn.js";
|
|
2
2
|
import { firstTabbable as me } from "../../../helpers/focusable.js";
|
|
3
3
|
import { StyledTooltip as u } from "../../data-display/tooltip/StyledTooltip.js";
|
|
4
|
-
import { DotsVerticalIcon as
|
|
4
|
+
import { DotsVerticalIcon as fe } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
|
|
5
5
|
import { CloseIcon as K } from "../../icons/close-icon/CloseIcon.js";
|
|
6
|
-
import { MinimizeIcon as
|
|
6
|
+
import { MinimizeIcon as he } from "../../icons/minimize-icon/MinimizeIcon.js";
|
|
7
7
|
import { KeyboardCapslockIcon as ue } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
|
|
8
8
|
import { ArrowExpandIcon as ve } from "../../icons/arrow-expand-icon/ArrowExpandIcon.js";
|
|
9
9
|
import { ArrowShrinkIcon as be } from "../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
|
|
10
10
|
import { StyledButton as r } from "../../inputs/button/StyledButton.js";
|
|
11
|
-
import { OverlayBackOwnerContext as pe,
|
|
12
|
-
import { useFocusTrap as
|
|
11
|
+
import { OverlayBackOwnerContext as pe, isOverlayBackNavigationPending as ge, useBackCloses as xe } from "../../../hooks/useBackCloses.hook.js";
|
|
12
|
+
import { useFocusTrap as ke } from "../../../hooks/useFocusTrap.hook.js";
|
|
13
13
|
import { StyledMenu as ye } from "../../navigation/menu/StyledMenu.js";
|
|
14
|
-
import { StyledMenuItem as
|
|
15
|
-
import { fullScreenFieldWidthVars as
|
|
14
|
+
import { StyledMenuItem as we } from "../../navigation/menu/StyledMenuItem.js";
|
|
15
|
+
import { fullScreenFieldWidthVars as ze } from "../../inputs/field-styles.js";
|
|
16
16
|
import T from "./MinimizableDialog.module.js";
|
|
17
|
-
import { useToggleMenuVisibility as
|
|
17
|
+
import { useToggleMenuVisibility as Ne } from "../../../hooks/useToggleMenuVisibility.hook.js";
|
|
18
18
|
import H from "clsx";
|
|
19
|
-
import { useLayoutEffect as
|
|
19
|
+
import { useLayoutEffect as Ce, useRef as J, useState as Q } from "react";
|
|
20
20
|
import { Fragment as p, jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
21
|
-
var
|
|
22
|
-
const [i, re] = Q(!1), [
|
|
21
|
+
var Qe = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", onFullScreenText: M = "", showCloseIcon: R = !0, showMinimizeIcon: X = !0, showExpandIcon: Y = !0, showFullScreenIcon: Z = !0, title: m, label: g, children: x, open: k, onClose: L, className: j = "", primaryButtonText: S, primaryButtonLoading: n = !1, primaryButtonDisabled: B, primaryButtonDisabledReason: ee, secondaryButtonText: y, onPrimaryButtonClick: F, onSecondaryButtonClick: _, dataTest: q, actionNode: te, extraActions: d, extraActionsText: f, btnContainerClassName: E, footerClassName: ie, footerInfo: G, locale: t = "en", enableFullscreen: le = !0, fullScreenState: O, handleFullScreenState: D }) => {
|
|
22
|
+
const [i, re] = Q(!1), [V, ne] = Q(!1), { open: de, anchorEl: ae, handleOpen: oe, handleClose: se } = Ne(), s = J(null), w = J(null), z = t === "en" ? "Wait until saved" : "Vent til lagringen er ferdig", b = () => {
|
|
23
23
|
if (n) return !1;
|
|
24
24
|
L();
|
|
25
|
-
}, o = O ??
|
|
26
|
-
if (
|
|
27
|
-
active:
|
|
28
|
-
requestClose: b,
|
|
25
|
+
}, o = O ?? V, a = o && !i;
|
|
26
|
+
if (ke(k && a, s, b), xe({
|
|
27
|
+
active: k && !i,
|
|
28
|
+
requestClose: () => !a && ge() ? !1 : b(),
|
|
29
29
|
ownerRef: s
|
|
30
|
-
}),
|
|
30
|
+
}), Ce(() => {
|
|
31
31
|
s.current?.toggleAttribute("inert", i), w.current?.toggleAttribute("inert", !i);
|
|
32
|
-
}, [i]), !
|
|
32
|
+
}, [i]), !k) return null;
|
|
33
33
|
const ce = a ? {
|
|
34
34
|
right: "auto",
|
|
35
35
|
bottom: "auto",
|
|
@@ -38,15 +38,15 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
38
38
|
transform: "translate(-50%, -50%)",
|
|
39
39
|
width: "min(1000px, calc(100vw - 32px))",
|
|
40
40
|
height: "95dvh",
|
|
41
|
-
...
|
|
42
|
-
} : void 0,
|
|
41
|
+
...ze
|
|
42
|
+
} : void 0, P = o ? t === "en" ? "Exit full screen" : "Avslutt fullskjerm" : t === "en" ? "Full screen" : "Fullskjerm", W = S ?? n, U = W || y, $ = /* @__PURE__ */ l(p, { children: [y && _ && /* @__PURE__ */ e(r, {
|
|
43
43
|
dataTest: "cancel-button",
|
|
44
44
|
variant: "outlined",
|
|
45
45
|
disabled: n,
|
|
46
46
|
disabledReason: z,
|
|
47
47
|
onClick: _,
|
|
48
|
-
children:
|
|
49
|
-
}),
|
|
48
|
+
children: y
|
|
49
|
+
}), W && F && /* @__PURE__ */ e(r, {
|
|
50
50
|
dataTest: "save-button",
|
|
51
51
|
loading: n,
|
|
52
52
|
locale: t,
|
|
@@ -66,10 +66,10 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
66
66
|
/* @__PURE__ */ e("div", {
|
|
67
67
|
ref: w,
|
|
68
68
|
style: { zIndex: 51 },
|
|
69
|
-
className:
|
|
69
|
+
className: h(T.dialog, !i && T.hidden),
|
|
70
70
|
children: /* @__PURE__ */ l("div", {
|
|
71
71
|
className: H("flex items-center justify-between", !i && "hidden"),
|
|
72
|
-
"data-testid":
|
|
72
|
+
"data-testid": q,
|
|
73
73
|
children: [/* @__PURE__ */ e("div", {
|
|
74
74
|
className: "truncate text-lg font-semibold text-delta-800",
|
|
75
75
|
children: m
|
|
@@ -118,8 +118,8 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
118
118
|
role: a ? "dialog" : void 0,
|
|
119
119
|
"aria-modal": a ? !0 : void 0,
|
|
120
120
|
"aria-label": a && typeof m == "string" ? m : void 0,
|
|
121
|
-
className:
|
|
122
|
-
"data-testid":
|
|
121
|
+
className: h("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", j && !i && !o ? j : "", i && "!h-0 !w-0 opacity-0 duration-0", a && "fixed duration-0"),
|
|
122
|
+
"data-testid": q,
|
|
123
123
|
children: /* @__PURE__ */ l(pe.Provider, {
|
|
124
124
|
value: s,
|
|
125
125
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -144,7 +144,7 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
144
144
|
variant: "textGray",
|
|
145
145
|
size: "small",
|
|
146
146
|
onClick: A,
|
|
147
|
-
endIcon: /* @__PURE__ */ e(
|
|
147
|
+
endIcon: /* @__PURE__ */ e(he, {
|
|
148
148
|
height: 20,
|
|
149
149
|
width: 20,
|
|
150
150
|
color: "text-delta-700"
|
|
@@ -153,14 +153,14 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
153
153
|
}) })
|
|
154
154
|
}),
|
|
155
155
|
le && Z && /* @__PURE__ */ e(u, {
|
|
156
|
-
title:
|
|
156
|
+
title: P,
|
|
157
157
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(r, {
|
|
158
158
|
dataTest: "fullscreen-button",
|
|
159
|
-
"aria-label": M ? void 0 :
|
|
159
|
+
"aria-label": M ? void 0 : P,
|
|
160
160
|
variant: "textGray",
|
|
161
161
|
size: "small",
|
|
162
162
|
onClick: () => {
|
|
163
|
-
O !== void 0 &&
|
|
163
|
+
O !== void 0 && D ? D() : ne(!V);
|
|
164
164
|
},
|
|
165
165
|
endIcon: o ? /* @__PURE__ */ e(be, {
|
|
166
166
|
width: 20,
|
|
@@ -204,42 +204,42 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
204
204
|
children: [/* @__PURE__ */ e("div", {
|
|
205
205
|
className: "flex-grow overflow-y-auto overscroll-contain",
|
|
206
206
|
children: typeof x == "function" ? x({ fullScreen: o }) : x
|
|
207
|
-
}), (Array.isArray(d) && d.length || typeof d == "function") &&
|
|
208
|
-
className:
|
|
207
|
+
}), (Array.isArray(d) && d.length || typeof d == "function") && f || G ? /* @__PURE__ */ l("div", {
|
|
208
|
+
className: h("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", ie),
|
|
209
209
|
children: [
|
|
210
|
-
Array.isArray(d) && d.length &&
|
|
210
|
+
Array.isArray(d) && d.length && f ? /* @__PURE__ */ l(p, { children: [/* @__PURE__ */ e(r, {
|
|
211
211
|
dataTest: "extra-actions-button",
|
|
212
212
|
variant: "textGray",
|
|
213
|
-
startIcon: /* @__PURE__ */ e(
|
|
213
|
+
startIcon: /* @__PURE__ */ e(fe, {
|
|
214
214
|
width: 24,
|
|
215
215
|
height: 24
|
|
216
216
|
}),
|
|
217
217
|
onClick: oe,
|
|
218
|
-
children:
|
|
218
|
+
children: f
|
|
219
219
|
}), /* @__PURE__ */ e(ye, {
|
|
220
220
|
open: de,
|
|
221
221
|
anchorEl: ae,
|
|
222
222
|
onClose: se,
|
|
223
|
-
children: d.map((c) => /* @__PURE__ */ e(
|
|
223
|
+
children: d.map((c) => /* @__PURE__ */ e(we, {
|
|
224
224
|
className: c.className,
|
|
225
225
|
onClick: c.onClick,
|
|
226
226
|
children: c.label
|
|
227
227
|
}, c.label))
|
|
228
|
-
})] }) :
|
|
228
|
+
})] }) : f && typeof d == "function" && /* @__PURE__ */ e(r, {
|
|
229
229
|
dataTest: "extra-action-button",
|
|
230
230
|
variant: "text",
|
|
231
231
|
onClick: d,
|
|
232
|
-
children:
|
|
232
|
+
children: f
|
|
233
233
|
}),
|
|
234
234
|
" ",
|
|
235
|
-
|
|
235
|
+
G,
|
|
236
236
|
U ? /* @__PURE__ */ e("div", {
|
|
237
|
-
className:
|
|
237
|
+
className: h("flex justify-end gap-x-2", E),
|
|
238
238
|
children: $
|
|
239
239
|
}) : null
|
|
240
240
|
]
|
|
241
241
|
}) : /* @__PURE__ */ e(p, { children: U ? /* @__PURE__ */ e("div", {
|
|
242
|
-
className:
|
|
242
|
+
className: h("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", E),
|
|
243
243
|
children: $
|
|
244
244
|
}) : null })]
|
|
245
245
|
})]
|
|
@@ -248,5 +248,5 @@ var He = ({ onCloseText: v = "", onMinimizeText: C = "", onExpandText: I = "", o
|
|
|
248
248
|
] });
|
|
249
249
|
};
|
|
250
250
|
export {
|
|
251
|
-
|
|
251
|
+
Qe as MinimizableDialog
|
|
252
252
|
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { cn as a } from "../../../../helpers/cn.js";
|
|
2
|
-
import { firstTabbable as
|
|
2
|
+
import { firstTabbable as q } from "../../../../helpers/focusable.js";
|
|
3
3
|
import { StyledTooltip as te } from "../../../data-display/tooltip/StyledTooltip.js";
|
|
4
|
-
import { DialogBusyContext as
|
|
4
|
+
import { DialogBusyContext as D, useDialogBusyBoundary as ie } from "../../dialog/DialogBusyContext.js";
|
|
5
5
|
import { useMobileMediaQuery as le } from "../../../../hooks/useMediaQuery.hook.js";
|
|
6
|
-
import { OverlayBackOwnerContext as ne,
|
|
7
|
-
import { useFocusTrap as
|
|
8
|
-
import { fullScreenFieldWidthVars as
|
|
9
|
-
import { CloseBtn as
|
|
10
|
-
import { MinimizeBtn as
|
|
11
|
-
import { FullScreenBtn as
|
|
6
|
+
import { OverlayBackOwnerContext as ne, isOverlayBackNavigationPending as oe, useBackCloses as re } from "../../../../hooks/useBackCloses.hook.js";
|
|
7
|
+
import { useFocusTrap as se } from "../../../../hooks/useFocusTrap.hook.js";
|
|
8
|
+
import { fullScreenFieldWidthVars as ce } from "../../../inputs/field-styles.js";
|
|
9
|
+
import { CloseBtn as A } from "../components/CloseBtn.js";
|
|
10
|
+
import { MinimizeBtn as V } from "../components/MinimizeBtn.js";
|
|
11
|
+
import { FullScreenBtn as ae } from "../components/FullscreenBtn.js";
|
|
12
12
|
import h from "./MinimizableDialogV2.module.js";
|
|
13
|
-
import { useTranslations as
|
|
14
|
-
import { useControlledProps as
|
|
15
|
-
import
|
|
16
|
-
import { useId as
|
|
17
|
-
import { Fragment as
|
|
18
|
-
var
|
|
19
|
-
const { showCloseIcon:
|
|
13
|
+
import { useTranslations as de } from "./useTranslations.js";
|
|
14
|
+
import { useControlledProps as me } from "./useControlledProps.js";
|
|
15
|
+
import ue from "clsx";
|
|
16
|
+
import { useId as $, useLayoutEffect as W, useRef as d } from "react";
|
|
17
|
+
import { Fragment as fe, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
18
|
+
var Ee = (w) => {
|
|
19
|
+
const { showCloseIcon: N = !0, showMinimizeIcon: H = !0, showExpandIcon: L = !0, enableFullscreen: _ = !0, title: u, label: f, children: Q, open: i, onClose: U, classNameOverrides: b = {
|
|
20
20
|
maximized: "",
|
|
21
21
|
minimized: "",
|
|
22
22
|
fullscreen: ""
|
|
23
|
-
}, dataTest: G, actionNode: J, locale: K = "en", busyReason: X, style:
|
|
23
|
+
}, dataTest: G, actionNode: J, locale: K = "en", busyReason: X, style: R, initialFocusRef: B } = w, s = le(), l = de(K), n = d(null), p = d(null), S = d(null), F = d(null), g = d(!1), y = d(null), x = $(), k = $(), { minimized: t, setMinimized: T, fullScreen: o, setFullScreen: I } = me(w), c = o && !t, { busy: z, busyReason: M, contextValue: E } = ie(X ?? l.waitUntilSaved), v = () => {
|
|
24
24
|
if (z) return !1;
|
|
25
|
-
|
|
25
|
+
T(!1), U();
|
|
26
26
|
};
|
|
27
27
|
W(() => {
|
|
28
28
|
n.current?.toggleAttribute("inert", t), p.current?.toggleAttribute("inert", !t);
|
|
29
29
|
}, [t]), W(() => {
|
|
30
|
-
const
|
|
30
|
+
const C = i && !g.current, m = !i && g.current;
|
|
31
31
|
if (g.current = i, m) {
|
|
32
|
-
const
|
|
33
|
-
y.current = null, (!document.activeElement || document.activeElement === document.body) &&
|
|
32
|
+
const O = y.current;
|
|
33
|
+
y.current = null, (!document.activeElement || document.activeElement === document.body) && O?.isConnected && O.focus({ preventScroll: !0 });
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
if (!
|
|
36
|
+
if (!C) return;
|
|
37
37
|
y.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
38
|
-
const
|
|
39
|
-
(
|
|
38
|
+
const j = t ? p.current : n.current, ee = t ? F.current : S.current;
|
|
39
|
+
(B?.current ?? ee ?? (j ? q(j) : void 0))?.focus({ preventScroll: !0 });
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
B,
|
|
42
42
|
t,
|
|
43
43
|
i
|
|
44
44
|
]);
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
const m =
|
|
49
|
-
m && (m.querySelector('[data-testid="toggle-minimize-btn"]') ??
|
|
45
|
+
const P = () => {
|
|
46
|
+
const C = t ? n : p;
|
|
47
|
+
T(!t), requestAnimationFrame(() => {
|
|
48
|
+
const m = C.current;
|
|
49
|
+
m && (m.querySelector('[data-testid="toggle-minimize-btn"]') ?? q(m))?.focus({ preventScroll: !0 });
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
active: i &&
|
|
54
|
-
requestClose: v,
|
|
52
|
+
se(i && c, n, v), re({
|
|
53
|
+
active: i && !t,
|
|
54
|
+
requestClose: () => !c && oe() ? !1 : v(),
|
|
55
55
|
ownerRef: n
|
|
56
56
|
});
|
|
57
57
|
const Y = c ? s ? {
|
|
@@ -70,20 +70,20 @@ var Me = (C) => {
|
|
|
70
70
|
width: "min(1000px, calc(100vw - 32px))",
|
|
71
71
|
maxWidth: "min(1000px, calc(100vw - 32px))",
|
|
72
72
|
height: "95dvh",
|
|
73
|
-
...
|
|
73
|
+
...ce
|
|
74
74
|
} : void 0;
|
|
75
75
|
if (!i) return null;
|
|
76
|
-
const Z = f ? `${
|
|
77
|
-
return /* @__PURE__ */ r(
|
|
76
|
+
const Z = f ? `${k} ${x}` : x;
|
|
77
|
+
return /* @__PURE__ */ r(fe, { children: [
|
|
78
78
|
/* @__PURE__ */ e("div", {
|
|
79
79
|
ref: p,
|
|
80
80
|
style: {
|
|
81
81
|
zIndex: 51,
|
|
82
|
-
...
|
|
82
|
+
...R
|
|
83
83
|
},
|
|
84
84
|
className: a(h["minimized-dialog"], !t && h.hidden, b.minimized),
|
|
85
85
|
children: /* @__PURE__ */ r("div", {
|
|
86
|
-
className:
|
|
86
|
+
className: ue("flex items-center justify-between", !t && "hidden"),
|
|
87
87
|
"data-testid": G,
|
|
88
88
|
children: [/* @__PURE__ */ e("div", {
|
|
89
89
|
className: "max-w-[303px] truncate pr-1 text-lg font-semibold text-delta-800",
|
|
@@ -97,16 +97,16 @@ var Me = (C) => {
|
|
|
97
97
|
})
|
|
98
98
|
}), /* @__PURE__ */ r("div", {
|
|
99
99
|
className: "flex items-center gap-x-1",
|
|
100
|
-
children: [/* @__PURE__ */ e(
|
|
100
|
+
children: [/* @__PURE__ */ e(V, {
|
|
101
101
|
type: "expand",
|
|
102
102
|
visibility: L,
|
|
103
|
-
onClick:
|
|
103
|
+
onClick: P,
|
|
104
104
|
tooltipTitle: l.expand
|
|
105
|
-
}), /* @__PURE__ */ e(
|
|
106
|
-
buttonRef:
|
|
107
|
-
showCloseIcon:
|
|
105
|
+
}), /* @__PURE__ */ e(A, {
|
|
106
|
+
buttonRef: F,
|
|
107
|
+
showCloseIcon: N,
|
|
108
108
|
onClick: v,
|
|
109
|
-
disabledReason: z ?
|
|
109
|
+
disabledReason: z ? M : void 0,
|
|
110
110
|
tooltipTitle: l.close
|
|
111
111
|
})]
|
|
112
112
|
})]
|
|
@@ -115,13 +115,13 @@ var Me = (C) => {
|
|
|
115
115
|
c && /* @__PURE__ */ e("div", {
|
|
116
116
|
className: "fixed inset-0 z-[52] bg-[rgb(98,110,126)] bg-opacity-70",
|
|
117
117
|
onClick: () => {
|
|
118
|
-
|
|
118
|
+
I(!1);
|
|
119
119
|
}
|
|
120
120
|
}),
|
|
121
121
|
/* @__PURE__ */ e("div", {
|
|
122
122
|
style: {
|
|
123
123
|
zIndex: 51,
|
|
124
|
-
...
|
|
124
|
+
...R,
|
|
125
125
|
...Y
|
|
126
126
|
},
|
|
127
127
|
ref: n,
|
|
@@ -136,7 +136,7 @@ var Me = (C) => {
|
|
|
136
136
|
children: [/* @__PURE__ */ r("div", {
|
|
137
137
|
className: "flex items-center justify-between",
|
|
138
138
|
children: [f ? /* @__PURE__ */ e("div", {
|
|
139
|
-
id:
|
|
139
|
+
id: k,
|
|
140
140
|
className: "text-sm text-delta-700",
|
|
141
141
|
children: f
|
|
142
142
|
}) : /* @__PURE__ */ e("div", {
|
|
@@ -146,29 +146,29 @@ var Me = (C) => {
|
|
|
146
146
|
}), /* @__PURE__ */ r("div", {
|
|
147
147
|
className: "flex items-center gap-x-1",
|
|
148
148
|
children: [
|
|
149
|
-
/* @__PURE__ */ e(
|
|
149
|
+
/* @__PURE__ */ e(D.Provider, {
|
|
150
150
|
value: E,
|
|
151
151
|
children: J
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */ e(
|
|
153
|
+
/* @__PURE__ */ e(V, {
|
|
154
154
|
visibility: H && !s && !o,
|
|
155
155
|
type: "minimize",
|
|
156
|
-
onClick:
|
|
156
|
+
onClick: P,
|
|
157
157
|
tooltipTitle: l.minimize
|
|
158
158
|
}),
|
|
159
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(ae, {
|
|
160
160
|
showFullScreenIcon: _ && !s,
|
|
161
161
|
fullScreen: o,
|
|
162
162
|
onClick: () => {
|
|
163
|
-
|
|
163
|
+
I(!o);
|
|
164
164
|
},
|
|
165
165
|
tooltipTitle: o ? l.exitFullscreen : l.fullscreen
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
buttonRef:
|
|
169
|
-
showCloseIcon:
|
|
167
|
+
/* @__PURE__ */ e(A, {
|
|
168
|
+
buttonRef: S,
|
|
169
|
+
showCloseIcon: N,
|
|
170
170
|
onClick: v,
|
|
171
|
-
disabledReason: z ?
|
|
171
|
+
disabledReason: z ? M : void 0,
|
|
172
172
|
tooltipTitle: l.close
|
|
173
173
|
})
|
|
174
174
|
]
|
|
@@ -180,7 +180,7 @@ var Me = (C) => {
|
|
|
180
180
|
})]
|
|
181
181
|
}), /* @__PURE__ */ e("div", {
|
|
182
182
|
className: a(t && "hidden", "flex flex-grow flex-col overflow-y-auto overscroll-contain"),
|
|
183
|
-
children: /* @__PURE__ */ e(
|
|
183
|
+
children: /* @__PURE__ */ e(D.Provider, {
|
|
184
184
|
value: E,
|
|
185
185
|
children: Q
|
|
186
186
|
})
|
|
@@ -190,5 +190,5 @@ var Me = (C) => {
|
|
|
190
190
|
] });
|
|
191
191
|
};
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
Ee as MinimizableDialogV2
|
|
194
194
|
};
|