asma-ui-core 3.136.0 → 3.136.2
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/asma-ui-core.css +1 -1
- package/dist/components/feedback/dialog/StyledDialog.js +129 -126
- package/dist/components/feedback/dialog/dialogHeaderStyles.js +5 -3
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +178 -171
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +120 -113
- package/dist/components/utils/bottom-sheet/StyledBottomSheet.js +180 -135
- package/dist/components/utils/bottom-sheet/useDragToDismiss.hook.js +111 -31
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +3 -2
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +3 -3
- package/dist/src/components/feedback/dialog/dialogHeaderStyles.d.ts +15 -3
- package/dist/src/components/utils/bottom-sheet/StyledBottomSheet.d.ts +8 -2
- package/dist/src/components/utils/bottom-sheet/useDragToDismiss.hook.d.ts +14 -3
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { cn as s } from "../../../helpers/cn.js";
|
|
2
|
-
import { firstTabbable as
|
|
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
|
|
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
|
|
7
|
-
import { KeyboardCapslockIcon as
|
|
8
|
-
import { ArrowExpandIcon as
|
|
9
|
-
import { ArrowShrinkIcon as
|
|
10
|
-
import { StyledButton as
|
|
11
|
-
import { OverlayBackOwnerContext as
|
|
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
|
|
14
|
-
import { StyledMenuItem as
|
|
15
|
-
import { useDialogHeaderPinning as
|
|
16
|
-
import { DIALOG_HEADER_ACTIONS_ROW_CLASSES as
|
|
17
|
-
import { fullScreenFieldWidthVars as
|
|
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
|
|
20
|
-
import
|
|
21
|
-
import { useId as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
var
|
|
24
|
-
const [i,
|
|
25
|
-
if (
|
|
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 =
|
|
28
|
-
if (Re(
|
|
29
|
-
active:
|
|
30
|
-
requestClose: () => !n &&
|
|
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
|
-
}),
|
|
33
|
-
c.current?.toggleAttribute("inert", i),
|
|
34
|
-
}, [i]), !
|
|
35
|
-
const
|
|
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
|
-
...
|
|
44
|
-
} : void 0, $ = o ? t === "en" ? "Exit full screen" : "Avslutt fullskjerm" : t === "en" ? "Full screen" : "Fullskjerm", K =
|
|
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:
|
|
48
|
-
disabledReason:
|
|
49
|
-
onClick:
|
|
50
|
-
children:
|
|
51
|
-
}), K &&
|
|
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:
|
|
53
|
+
loading: a,
|
|
54
54
|
locale: t,
|
|
55
|
-
disabled:
|
|
56
|
-
disabledReason:
|
|
57
|
-
onClick:
|
|
58
|
-
children:
|
|
59
|
-
})] }),
|
|
60
|
-
const m = i ? c :
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
74
|
-
"data-testid":
|
|
77
|
+
className: ee("flex items-center justify-between", !i && "hidden"),
|
|
78
|
+
"data-testid": j,
|
|
75
79
|
children: [/* @__PURE__ */ e(f, {
|
|
76
|
-
title:
|
|
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:
|
|
86
|
+
children: x
|
|
83
87
|
})
|
|
84
88
|
}), /* @__PURE__ */ l("div", {
|
|
85
89
|
className: "flex items-center gap-x-1",
|
|
86
|
-
children: [
|
|
90
|
+
children: [le && /* @__PURE__ */ e(f, {
|
|
87
91
|
title: t === "en" ? "Expand" : "Utvid",
|
|
88
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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:
|
|
94
|
-
endIcon: /* @__PURE__ */ e(
|
|
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
|
-
}),
|
|
105
|
+
}), O && /* @__PURE__ */ e(f, {
|
|
102
106
|
title: t === "en" ? "Close" : "Lukk",
|
|
103
|
-
open:
|
|
104
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
107
|
+
open: a ? !1 : void 0,
|
|
108
|
+
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, {
|
|
105
109
|
dataTest: "close-button",
|
|
106
|
-
"aria-label":
|
|
110
|
+
"aria-label": v ? void 0 : t === "en" ? "Close" : "Lukk",
|
|
107
111
|
variant: "textGray",
|
|
108
112
|
size: "small",
|
|
109
|
-
disabled:
|
|
110
|
-
disabledReason:
|
|
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:
|
|
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:
|
|
129
|
+
style: we,
|
|
126
130
|
role: n ? "dialog" : void 0,
|
|
127
131
|
"aria-modal": n ? !0 : void 0,
|
|
128
|
-
"aria-labelledby": n ?
|
|
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":
|
|
131
|
-
children: /* @__PURE__ */ e(
|
|
134
|
+
"data-testid": j,
|
|
135
|
+
children: /* @__PURE__ */ e(ze.Provider, {
|
|
132
136
|
value: c,
|
|
133
137
|
children: /* @__PURE__ */ l("div", {
|
|
134
|
-
className:
|
|
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:
|
|
143
|
+
style: Te(ge, xe),
|
|
140
144
|
children: [/* @__PURE__ */ l("div", {
|
|
141
145
|
ref: be,
|
|
142
146
|
"data-dialog-header": "",
|
|
143
|
-
"data-header-pinned":
|
|
144
|
-
"aria-hidden":
|
|
145
|
-
hidden:
|
|
146
|
-
className: s(
|
|
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:
|
|
149
|
-
children: [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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:
|
|
226
|
-
children: typeof
|
|
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") &&
|
|
229
|
-
className: s("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4",
|
|
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 &&
|
|
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(
|
|
241
|
+
startIcon: /* @__PURE__ */ e(ke, {
|
|
235
242
|
width: 24,
|
|
236
243
|
height: 24
|
|
237
244
|
}),
|
|
238
|
-
onClick:
|
|
239
|
-
children:
|
|
240
|
-
}), /* @__PURE__ */ e(
|
|
241
|
-
open:
|
|
242
|
-
anchorEl:
|
|
243
|
-
onClose:
|
|
244
|
-
children: r.map((m) => /* @__PURE__ */ e(
|
|
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
|
-
})] }) :
|
|
256
|
+
})] }) : u && typeof r == "function" && /* @__PURE__ */ e(d, {
|
|
250
257
|
dataTest: "extra-action-button",
|
|
251
258
|
variant: "text",
|
|
252
259
|
onClick: r,
|
|
253
|
-
children:
|
|
260
|
+
children: u
|
|
254
261
|
}),
|
|
255
262
|
" ",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
className: s("flex justify-end gap-x-2",
|
|
259
|
-
children:
|
|
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(
|
|
263
|
-
className: s("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4",
|
|
264
|
-
children:
|
|
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
|
-
|
|
279
|
+
vi as MinimizableDialog
|
|
273
280
|
};
|