@stenajs-webui/modal 25.3.5 → 25.4.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/building-blocks/ModalHeader.d.ts +10 -2
- package/dist/index.es.js +250 -247
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ready-made-modals/InfoAlert.d.ts +10 -3
- package/package.json +9 -9
package/dist/index.es.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
1
|
+
import F from "react-modal";
|
|
2
2
|
import { jsx as t, jsxs as a, Fragment as K } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as B, useState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { exhaustSwitchCase as We, Spacing as
|
|
3
|
+
import { useRef as B, useState as M, useEffect as Ae, createContext as Te, useReducer as Re, useCallback as k, useMemo as ue, createElement as fe, useContext as Ee } from "react";
|
|
4
|
+
import Me from "react-draggable";
|
|
5
|
+
import i from "classnames";
|
|
6
|
+
import { exhaustSwitchCase as We, Spacing as L, Row as y, Space as Q, Heading as te, getDataProps as Se, useEventCallback as je, Column as b, Box as D, Indent as He, Txt as Pe, Text as Z } from "@stenajs-webui/core";
|
|
7
7
|
import { Icon as we, FlatButton as Be, stenaTimes as qe, Spinner as Ve, CloseButton as oe, stenaTimesThick as Ge, CircledIcon as De } from "@stenajs-webui/elements";
|
|
8
8
|
import { cssColor as $e } from "@stenajs-webui/theme";
|
|
9
9
|
import { ToastContainer as Xe, toast as Ye } from "react-toastify";
|
|
10
10
|
import './index.css';const Io = (e) => {
|
|
11
|
-
|
|
12
|
-
}, Ue = "_overlay_zoch3_1", Je = "_modal_zoch3_33", Ke = "_content_zoch3_43", Qe = "_isDraggable_zoch3_72", Ze = "_footer_zoch3_103", et = "_stickyFooter_zoch3_107",
|
|
11
|
+
F.setAppElement(e);
|
|
12
|
+
}, Ue = "_overlay_zoch3_1", Je = "_modal_zoch3_33", Ke = "_content_zoch3_43", Qe = "_isDraggable_zoch3_72", Ze = "_footer_zoch3_103", et = "_stickyFooter_zoch3_107", O = {
|
|
13
13
|
overlay: Ue,
|
|
14
14
|
modal: Je,
|
|
15
15
|
content: Ke,
|
|
16
16
|
isDraggable: Qe,
|
|
17
17
|
footer: Ze,
|
|
18
18
|
stickyFooter: et
|
|
19
|
-
},
|
|
19
|
+
}, xe = "draggable-modal-handle", ze = "draggable-modal-cancel", tt = ({
|
|
20
20
|
width: e,
|
|
21
21
|
maxWidth: o,
|
|
22
22
|
draggable: n = !1,
|
|
23
23
|
children: s,
|
|
24
24
|
...r
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
26
|
+
const l = B(null);
|
|
27
27
|
return /* @__PURE__ */ t(
|
|
28
|
-
|
|
28
|
+
F,
|
|
29
29
|
{
|
|
30
|
-
overlayClassName:
|
|
31
|
-
className:
|
|
30
|
+
overlayClassName: O.overlay,
|
|
31
|
+
className: O.modal,
|
|
32
32
|
...r,
|
|
33
33
|
children: /* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
Me,
|
|
35
35
|
{
|
|
36
|
-
handle: `.${
|
|
37
|
-
cancel: `.${
|
|
36
|
+
handle: `.${xe}`,
|
|
37
|
+
cancel: `.${ze}, button, [role="tooltip"]`,
|
|
38
38
|
bounds: ".ReactModal__Overlay",
|
|
39
39
|
disabled: !n,
|
|
40
|
-
nodeRef:
|
|
40
|
+
nodeRef: l,
|
|
41
41
|
children: /* @__PURE__ */ t(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
@@ -45,10 +45,10 @@ import './index.css';const Io = (e) => {
|
|
|
45
45
|
"--swui-modal-width": e,
|
|
46
46
|
"--swui-modal-max-width": o
|
|
47
47
|
},
|
|
48
|
-
className:
|
|
49
|
-
[
|
|
48
|
+
className: i(O.content, {
|
|
49
|
+
[O.isDraggable]: n
|
|
50
50
|
}),
|
|
51
|
-
ref:
|
|
51
|
+
ref: l,
|
|
52
52
|
children: s
|
|
53
53
|
}
|
|
54
54
|
)
|
|
@@ -56,7 +56,7 @@ import './index.css';const Io = (e) => {
|
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
}, ot = "_portal_194oy_1", nt = "_overlay_194oy_4", st = "_content_194oy_9", rt = "_floating_194oy_18", at = "_slideFromLeft_194oy_32", lt = "_slideFromRight_194oy_33", ct = "_afterOpen_194oy_39", it = "_beforeClose_194oy_43", dt = "_slideFromTop_194oy_48", mt = "_slideFromBottom_194oy_49",
|
|
59
|
+
}, ot = "_portal_194oy_1", nt = "_overlay_194oy_4", st = "_content_194oy_9", rt = "_floating_194oy_18", at = "_slideFromLeft_194oy_32", lt = "_slideFromRight_194oy_33", ct = "_afterOpen_194oy_39", it = "_beforeClose_194oy_43", dt = "_slideFromTop_194oy_48", mt = "_slideFromBottom_194oy_49", g = {
|
|
60
60
|
portal: ot,
|
|
61
61
|
overlay: nt,
|
|
62
62
|
content: st,
|
|
@@ -73,30 +73,30 @@ import './index.css';const Io = (e) => {
|
|
|
73
73
|
children: n,
|
|
74
74
|
slideFrom: s = "left",
|
|
75
75
|
portalTarget: r,
|
|
76
|
-
floating:
|
|
76
|
+
floating: l,
|
|
77
77
|
...d
|
|
78
78
|
}) => {
|
|
79
|
-
const { height:
|
|
79
|
+
const { height: c, width: _ } = d;
|
|
80
80
|
return /* @__PURE__ */ t(
|
|
81
|
-
|
|
81
|
+
F,
|
|
82
82
|
{
|
|
83
83
|
closeTimeoutMS: 250,
|
|
84
|
-
portalClassName:
|
|
84
|
+
portalClassName: g.portal,
|
|
85
85
|
overlayClassName: {
|
|
86
|
-
base:
|
|
87
|
-
afterOpen:
|
|
88
|
-
beforeClose:
|
|
86
|
+
base: g.overlay,
|
|
87
|
+
afterOpen: g.afterOpen,
|
|
88
|
+
beforeClose: g.beforeClose
|
|
89
89
|
},
|
|
90
90
|
className: {
|
|
91
|
-
base:
|
|
92
|
-
|
|
91
|
+
base: i(
|
|
92
|
+
g.content,
|
|
93
93
|
_t(s),
|
|
94
|
-
|
|
94
|
+
l && g.floating
|
|
95
95
|
),
|
|
96
|
-
afterOpen:
|
|
97
|
-
beforeClose:
|
|
96
|
+
afterOpen: g.afterOpen,
|
|
97
|
+
beforeClose: g.beforeClose
|
|
98
98
|
},
|
|
99
|
-
style: { content: { width:
|
|
99
|
+
style: { content: { width: _, height: c, background: e }, overlay: { zIndex: o } },
|
|
100
100
|
parentSelector: r ? () => r : void 0,
|
|
101
101
|
...d,
|
|
102
102
|
bodyOpenClassName: "swui-drawer-body-open",
|
|
@@ -106,15 +106,15 @@ import './index.css';const Io = (e) => {
|
|
|
106
106
|
}, _t = (e) => {
|
|
107
107
|
switch (e) {
|
|
108
108
|
case "left":
|
|
109
|
-
return
|
|
109
|
+
return g.slideFromLeft;
|
|
110
110
|
case "right":
|
|
111
|
-
return
|
|
111
|
+
return g.slideFromRight;
|
|
112
112
|
case "top":
|
|
113
|
-
return
|
|
113
|
+
return g.slideFromTop;
|
|
114
114
|
case "bottom":
|
|
115
|
-
return
|
|
115
|
+
return g.slideFromBottom;
|
|
116
116
|
default:
|
|
117
|
-
return We(e,
|
|
117
|
+
return We(e, g.slideFromLeft);
|
|
118
118
|
}
|
|
119
119
|
}, To = ({
|
|
120
120
|
header: e,
|
|
@@ -122,28 +122,28 @@ import './index.css';const Io = (e) => {
|
|
|
122
122
|
onRequestClose: n,
|
|
123
123
|
icon: s,
|
|
124
124
|
headingLevel: r = "h1",
|
|
125
|
-
...
|
|
125
|
+
...l
|
|
126
126
|
}) => /* @__PURE__ */ t(
|
|
127
|
-
|
|
127
|
+
L,
|
|
128
128
|
{
|
|
129
129
|
position: "sticky",
|
|
130
130
|
top: 0,
|
|
131
131
|
zIndex: 100,
|
|
132
132
|
background: $e("--lhds-color-ui-50"),
|
|
133
|
-
...
|
|
133
|
+
...Se(l),
|
|
134
134
|
children: /* @__PURE__ */ a(
|
|
135
|
-
|
|
135
|
+
y,
|
|
136
136
|
{
|
|
137
137
|
justifyContent: "space-between",
|
|
138
138
|
alignItems: "center",
|
|
139
139
|
height: "48px",
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */ a(
|
|
141
|
+
/* @__PURE__ */ a(y, { alignItems: "center", gap: 2, children: [
|
|
142
142
|
/* @__PURE__ */ t(Q, { num: 1 }),
|
|
143
143
|
s && /* @__PURE__ */ t(we, { icon: s, size: 24 }),
|
|
144
144
|
/* @__PURE__ */ t(te, { variant: "h4", as: r, children: e })
|
|
145
145
|
] }),
|
|
146
|
-
/* @__PURE__ */ a(
|
|
146
|
+
/* @__PURE__ */ a(y, { gap: 1, children: [
|
|
147
147
|
o,
|
|
148
148
|
/* @__PURE__ */ t(
|
|
149
149
|
Be,
|
|
@@ -163,11 +163,11 @@ import './index.css';const Io = (e) => {
|
|
|
163
163
|
overlay: ut,
|
|
164
164
|
modal: ft,
|
|
165
165
|
content: gt
|
|
166
|
-
}, pt = { overlay: { justifyContent: "center" } },
|
|
166
|
+
}, pt = { overlay: { justifyContent: "center" } }, Ro = ({
|
|
167
167
|
children: e,
|
|
168
168
|
...o
|
|
169
169
|
}) => /* @__PURE__ */ t(
|
|
170
|
-
|
|
170
|
+
F,
|
|
171
171
|
{
|
|
172
172
|
overlayClassName: Y.overlay,
|
|
173
173
|
className: Y.modal,
|
|
@@ -182,12 +182,12 @@ import './index.css';const Io = (e) => {
|
|
|
182
182
|
}
|
|
183
183
|
)
|
|
184
184
|
}
|
|
185
|
-
), ht = "_overlay_qz2d4_1", yt = "_afterOpen_qz2d4_29",
|
|
185
|
+
), ht = "_overlay_qz2d4_1", yt = "_afterOpen_qz2d4_29", vt = "_beforeClose_qz2d4_29", bt = "_modal_qz2d4_41", Ct = "_content_qz2d4_64", Nt = "_contentOverflowVisible_qz2d4_95", w = {
|
|
186
186
|
overlay: ht,
|
|
187
187
|
afterOpen: yt,
|
|
188
|
-
beforeClose:
|
|
189
|
-
modal:
|
|
190
|
-
content:
|
|
188
|
+
beforeClose: vt,
|
|
189
|
+
modal: bt,
|
|
190
|
+
content: Ct,
|
|
191
191
|
contentOverflowVisible: Nt
|
|
192
192
|
}, ge = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), wt = ({
|
|
193
193
|
children: e,
|
|
@@ -195,9 +195,9 @@ import './index.css';const Io = (e) => {
|
|
|
195
195
|
className: n,
|
|
196
196
|
overlayClassName: s,
|
|
197
197
|
allowContentOverflow: r = !1,
|
|
198
|
-
...
|
|
198
|
+
...l
|
|
199
199
|
}) => {
|
|
200
|
-
const d = B(null), [
|
|
200
|
+
const d = B(null), [c, _] = M(ge ? "auto" : void 0), v = {
|
|
201
201
|
/*
|
|
202
202
|
A modal that lets content stick out of it is aligned to the top, since
|
|
203
203
|
whatever sticks out does so downwards and would otherwise run off the
|
|
@@ -207,43 +207,43 @@ import './index.css';const Io = (e) => {
|
|
|
207
207
|
content: {
|
|
208
208
|
"--swui-modal-content-bg-color": o
|
|
209
209
|
}
|
|
210
|
-
},
|
|
210
|
+
}, u = je(() => {
|
|
211
211
|
if (!ge)
|
|
212
212
|
return;
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
const p = d.current;
|
|
214
|
+
p && _(
|
|
215
|
+
p.scrollHeight > p.clientHeight ? "stable" : "auto"
|
|
216
216
|
);
|
|
217
217
|
});
|
|
218
|
-
return Ae(() => (window.addEventListener("resize",
|
|
219
|
-
window.removeEventListener("resize",
|
|
220
|
-
}), [
|
|
221
|
-
|
|
218
|
+
return Ae(() => (window.addEventListener("resize", u), document.addEventListener("DOMContentLoaded", u), () => {
|
|
219
|
+
window.removeEventListener("resize", u), document.removeEventListener("DOMContentLoaded", u);
|
|
220
|
+
}), [u]), /* @__PURE__ */ t(
|
|
221
|
+
F,
|
|
222
222
|
{
|
|
223
223
|
overlayClassName: {
|
|
224
|
-
base:
|
|
224
|
+
base: i(s, w.overlay),
|
|
225
225
|
beforeClose: w.beforeClose,
|
|
226
226
|
afterOpen: w.afterOpen
|
|
227
227
|
},
|
|
228
228
|
className: {
|
|
229
|
-
base:
|
|
229
|
+
base: i(n, w.modal),
|
|
230
230
|
beforeClose: w.beforeClose,
|
|
231
231
|
afterOpen: w.afterOpen
|
|
232
232
|
},
|
|
233
|
-
style:
|
|
233
|
+
style: v,
|
|
234
234
|
closeTimeoutMS: 250,
|
|
235
|
-
onAfterOpen:
|
|
236
|
-
...
|
|
235
|
+
onAfterOpen: u,
|
|
236
|
+
...l,
|
|
237
237
|
children: /* @__PURE__ */ t(
|
|
238
238
|
"div",
|
|
239
239
|
{
|
|
240
|
-
className:
|
|
240
|
+
className: i(
|
|
241
241
|
w.content,
|
|
242
242
|
r && w.contentOverflowVisible
|
|
243
243
|
),
|
|
244
244
|
style: {
|
|
245
245
|
"--swui-modal-width": "fit-content",
|
|
246
|
-
scrollbarGutter:
|
|
246
|
+
scrollbarGutter: c
|
|
247
247
|
},
|
|
248
248
|
ref: d,
|
|
249
249
|
children: e
|
|
@@ -254,14 +254,14 @@ import './index.css';const Io = (e) => {
|
|
|
254
254
|
}, Bt = "_modal_4fwgb_1", Dt = "_overlay_4fwgb_13", pe = {
|
|
255
255
|
modal: Bt,
|
|
256
256
|
overlay: Dt
|
|
257
|
-
},
|
|
257
|
+
}, Eo = ({
|
|
258
258
|
headerIconLeft: e,
|
|
259
259
|
headerText: o,
|
|
260
260
|
shouldCloseOnOverlayClick: n = !1,
|
|
261
261
|
shouldCloseOnEsc: s = !1,
|
|
262
262
|
...r
|
|
263
263
|
}) => /* @__PURE__ */ t(
|
|
264
|
-
|
|
264
|
+
F,
|
|
265
265
|
{
|
|
266
266
|
...r,
|
|
267
267
|
isOpen: !0,
|
|
@@ -269,7 +269,7 @@ import './index.css';const Io = (e) => {
|
|
|
269
269
|
shouldCloseOnEsc: s,
|
|
270
270
|
className: pe.modal,
|
|
271
271
|
overlayClassName: pe.overlay,
|
|
272
|
-
children: /* @__PURE__ */ a(
|
|
272
|
+
children: /* @__PURE__ */ a(b, { spacing: 2, alignItems: "center", children: [
|
|
273
273
|
/* @__PURE__ */ t(
|
|
274
274
|
D,
|
|
275
275
|
{
|
|
@@ -284,11 +284,11 @@ import './index.css';const Io = (e) => {
|
|
|
284
284
|
}
|
|
285
285
|
),
|
|
286
286
|
(e || o) && /* @__PURE__ */ a(K, { children: [
|
|
287
|
-
/* @__PURE__ */ t(
|
|
288
|
-
/* @__PURE__ */ a(
|
|
287
|
+
/* @__PURE__ */ t(L, {}),
|
|
288
|
+
/* @__PURE__ */ a(y, { indent: 2, children: [
|
|
289
289
|
e && /* @__PURE__ */ a(K, { children: [
|
|
290
290
|
/* @__PURE__ */ t(we, { size: 14, icon: e, color: "white" }),
|
|
291
|
-
/* @__PURE__ */ t(
|
|
291
|
+
/* @__PURE__ */ t(He, {})
|
|
292
292
|
] }),
|
|
293
293
|
o && /* @__PURE__ */ t(te, { variant: "h4", color: "white", children: o })
|
|
294
294
|
] })
|
|
@@ -301,15 +301,15 @@ import './index.css';const Io = (e) => {
|
|
|
301
301
|
headerText: n,
|
|
302
302
|
closeButtonClassName: s
|
|
303
303
|
}) => /* @__PURE__ */ a(
|
|
304
|
-
|
|
304
|
+
y,
|
|
305
305
|
{
|
|
306
306
|
spacing: 2,
|
|
307
307
|
indent: 2,
|
|
308
308
|
borderBottom: "1px solid var(--lhds-color-ui-300)",
|
|
309
|
-
className:
|
|
309
|
+
className: xe,
|
|
310
310
|
children: [
|
|
311
|
-
/* @__PURE__ */ a(
|
|
312
|
-
n && /* @__PURE__ */ t(Pe, { className:
|
|
311
|
+
/* @__PURE__ */ a(y, { flex: 1, indent: !0, alignItems: "center", children: [
|
|
312
|
+
n && /* @__PURE__ */ t(Pe, { className: ze, size: "large", children: n }),
|
|
313
313
|
o
|
|
314
314
|
] }),
|
|
315
315
|
/* @__PURE__ */ t(D, { alignSelf: "flex-start", children: /* @__PURE__ */ t(
|
|
@@ -321,24 +321,24 @@ import './index.css';const Io = (e) => {
|
|
|
321
321
|
) })
|
|
322
322
|
]
|
|
323
323
|
}
|
|
324
|
-
),
|
|
324
|
+
), Mo = ({
|
|
325
325
|
header: e,
|
|
326
326
|
headerText: o,
|
|
327
327
|
children: n,
|
|
328
328
|
spacing: s,
|
|
329
329
|
indent: r,
|
|
330
|
-
draggable:
|
|
330
|
+
draggable: l = !1,
|
|
331
331
|
onRequestClose: d,
|
|
332
|
-
closeButtonClassName:
|
|
333
|
-
footer:
|
|
334
|
-
disableStickyFooter:
|
|
335
|
-
...
|
|
332
|
+
closeButtonClassName: c,
|
|
333
|
+
footer: _,
|
|
334
|
+
disableStickyFooter: v = !1,
|
|
335
|
+
...u
|
|
336
336
|
}) => /* @__PURE__ */ a(
|
|
337
337
|
tt,
|
|
338
338
|
{
|
|
339
|
-
...
|
|
339
|
+
...u,
|
|
340
340
|
onRequestClose: d,
|
|
341
|
-
draggable:
|
|
341
|
+
draggable: l,
|
|
342
342
|
children: [
|
|
343
343
|
/* @__PURE__ */ t(
|
|
344
344
|
$t,
|
|
@@ -346,22 +346,22 @@ import './index.css';const Io = (e) => {
|
|
|
346
346
|
onRequestClose: d,
|
|
347
347
|
header: e,
|
|
348
348
|
headerText: o,
|
|
349
|
-
closeButtonClassName:
|
|
349
|
+
closeButtonClassName: c
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
352
|
/* @__PURE__ */ t(D, { spacing: typeof s == "number" ? s : 1, indent: typeof r == "number" ? r : 1, children: n }),
|
|
353
|
-
|
|
353
|
+
_ && /* @__PURE__ */ t(
|
|
354
354
|
D,
|
|
355
355
|
{
|
|
356
|
-
className:
|
|
357
|
-
[
|
|
356
|
+
className: i(O.footer, {
|
|
357
|
+
[O.stickyFooter]: !v
|
|
358
358
|
}),
|
|
359
|
-
children:
|
|
359
|
+
children: _
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
]
|
|
363
363
|
}
|
|
364
|
-
), Wo = ({ children: e }) => /* @__PURE__ */ t(
|
|
364
|
+
), Wo = ({ children: e }) => /* @__PURE__ */ t(b, { indent: 2, spacing: 2, children: e }), ee = Te(
|
|
365
365
|
void 0
|
|
366
366
|
);
|
|
367
367
|
function ne(e, {
|
|
@@ -369,170 +369,170 @@ function ne(e, {
|
|
|
369
369
|
modal: n,
|
|
370
370
|
contentWrapperClassName: s,
|
|
371
371
|
closingClassName: r,
|
|
372
|
-
contentWrapperStyle:
|
|
372
|
+
contentWrapperStyle: l,
|
|
373
373
|
dialogStyle: d,
|
|
374
|
-
divInsteadOfDialog:
|
|
375
|
-
disableCloseOnClickOutside:
|
|
376
|
-
blockScroll:
|
|
377
|
-
elementId:
|
|
378
|
-
onResolve:
|
|
379
|
-
onReject:
|
|
374
|
+
divInsteadOfDialog: c,
|
|
375
|
+
disableCloseOnClickOutside: _,
|
|
376
|
+
blockScroll: v = !0,
|
|
377
|
+
elementId: u,
|
|
378
|
+
onResolve: p,
|
|
379
|
+
onReject: x,
|
|
380
380
|
className: se,
|
|
381
381
|
background: W,
|
|
382
382
|
allowContentOverflow: re,
|
|
383
|
-
label:
|
|
384
|
-
labelledby:
|
|
385
|
-
describedby:
|
|
383
|
+
label: S,
|
|
384
|
+
labelledby: j,
|
|
385
|
+
describedby: H
|
|
386
386
|
}) {
|
|
387
|
-
const
|
|
387
|
+
const ke = B(null), f = o ?? ke, [P, Le] = Re((m) => m + 1, 0), ae = B(null), q = B(null), C = B(void 0), I = B(!1), A = B(null), [le, T] = M(!1), [V, z] = M(!1), [ce, N] = M(!1), G = e, Ie = k(
|
|
388
388
|
(m) => (ae.current = new Promise(
|
|
389
|
-
(
|
|
390
|
-
q.current =
|
|
389
|
+
(h, _e) => {
|
|
390
|
+
q.current = h, A.current = _e;
|
|
391
391
|
}
|
|
392
|
-
), N(!1), T(!0),
|
|
393
|
-
[
|
|
394
|
-
), ie =
|
|
392
|
+
), N(!1), T(!0), z(!0), Le(), I.current = !1, C.current = m, n ? f.current?.showModal() : f.current?.show(), ae.current),
|
|
393
|
+
[f, n]
|
|
394
|
+
), ie = k(
|
|
395
395
|
(m) => {
|
|
396
|
-
I.current = !0, N(!0), T(!1),
|
|
397
|
-
N(!1),
|
|
398
|
-
}, 300) :
|
|
396
|
+
I.current = !0, N(!0), T(!1), c ? setTimeout(() => {
|
|
397
|
+
N(!1), z(!1), q.current?.(m), C.current = void 0, p?.();
|
|
398
|
+
}, 300) : f.current?.addEventListener(
|
|
399
399
|
"animationend",
|
|
400
|
-
(
|
|
401
|
-
|
|
400
|
+
(h) => {
|
|
401
|
+
h.stopPropagation(), N(!1), z(!1), f.current?.close(), q.current?.(m), C.current = void 0, p?.();
|
|
402
402
|
},
|
|
403
403
|
{ once: !0 }
|
|
404
404
|
);
|
|
405
405
|
},
|
|
406
|
-
[
|
|
407
|
-
), $ =
|
|
406
|
+
[f, p, c]
|
|
407
|
+
), $ = k(
|
|
408
408
|
(m) => {
|
|
409
|
-
I.current = !0, N(!0), T(!1),
|
|
410
|
-
N(!1),
|
|
411
|
-
}, 300) :
|
|
409
|
+
I.current = !0, N(!0), T(!1), c ? setTimeout(() => {
|
|
410
|
+
N(!1), z(!1), A.current?.(m), x?.(), C.current = void 0;
|
|
411
|
+
}, 300) : f.current?.addEventListener(
|
|
412
412
|
"animationend",
|
|
413
|
-
(
|
|
414
|
-
|
|
413
|
+
(h) => {
|
|
414
|
+
h.stopPropagation(), N(!1), z(!1), f.current?.close(), A.current?.(m), x?.(), C.current = void 0;
|
|
415
415
|
},
|
|
416
416
|
{ once: !0 }
|
|
417
417
|
);
|
|
418
418
|
},
|
|
419
|
-
[
|
|
420
|
-
), de =
|
|
419
|
+
[f, c, x]
|
|
420
|
+
), de = k(
|
|
421
421
|
(m) => {
|
|
422
|
-
m.stopPropagation(), I.current || (N(!1), T(!1),
|
|
422
|
+
m.stopPropagation(), I.current || (N(!1), T(!1), z(!1), A.current?.(), x?.(), C.current = void 0);
|
|
423
423
|
},
|
|
424
|
-
[
|
|
425
|
-
), me =
|
|
424
|
+
[x]
|
|
425
|
+
), me = k(
|
|
426
426
|
(m) => {
|
|
427
|
-
if (m.target !==
|
|
427
|
+
if (m.target !== f.current)
|
|
428
428
|
return;
|
|
429
|
-
const
|
|
430
|
-
|
|
429
|
+
const h = f.current.getBoundingClientRect();
|
|
430
|
+
h.top <= m.clientY && m.clientY <= h.top + h.height && h.left <= m.clientX && m.clientX <= h.left + h.width || $();
|
|
431
431
|
},
|
|
432
|
-
[
|
|
432
|
+
[f, $]
|
|
433
433
|
), X = ue(
|
|
434
434
|
() => ({ resolve: ie, reject: $ }),
|
|
435
435
|
[$, ie]
|
|
436
436
|
);
|
|
437
437
|
return [ue(
|
|
438
|
-
() =>
|
|
438
|
+
() => c ? /* @__PURE__ */ t(
|
|
439
439
|
wt,
|
|
440
440
|
{
|
|
441
441
|
isOpen: le,
|
|
442
442
|
onRequestClose: $,
|
|
443
443
|
background: W,
|
|
444
444
|
allowContentOverflow: re,
|
|
445
|
-
contentLabel:
|
|
446
|
-
id:
|
|
447
|
-
aria: { modal: !0, labelledby:
|
|
448
|
-
children: /* @__PURE__ */ t(ee.Provider, { value: X, children: V && /* @__PURE__ */ fe(G, { ...
|
|
445
|
+
contentLabel: S,
|
|
446
|
+
id: u,
|
|
447
|
+
aria: { modal: !0, labelledby: j, describedby: H },
|
|
448
|
+
children: /* @__PURE__ */ t(ee.Provider, { value: X, children: V && /* @__PURE__ */ fe(G, { ...C.current, key: P }) })
|
|
449
449
|
}
|
|
450
450
|
) : /* @__PURE__ */ t(
|
|
451
451
|
"dialog",
|
|
452
452
|
{
|
|
453
|
-
onClick:
|
|
453
|
+
onClick: _ ? void 0 : me,
|
|
454
454
|
onClose: de,
|
|
455
|
-
ref:
|
|
456
|
-
id:
|
|
457
|
-
className:
|
|
458
|
-
|
|
455
|
+
ref: f,
|
|
456
|
+
id: u,
|
|
457
|
+
className: i(
|
|
458
|
+
v && "swui-block-scroll",
|
|
459
459
|
se,
|
|
460
460
|
ce && r
|
|
461
461
|
),
|
|
462
|
-
"aria-label":
|
|
463
|
-
"aria-labelledby":
|
|
464
|
-
"aria-describedby":
|
|
462
|
+
"aria-label": S,
|
|
463
|
+
"aria-labelledby": j,
|
|
464
|
+
"aria-describedby": H,
|
|
465
465
|
style: { background: W, ...d },
|
|
466
|
-
children: /* @__PURE__ */ t("div", { style:
|
|
466
|
+
children: /* @__PURE__ */ t("div", { style: l, className: s, children: V && /* @__PURE__ */ t(ee.Provider, { value: X, children: /* @__PURE__ */ fe(G, { ...C.current, key: P }) }) })
|
|
467
467
|
}
|
|
468
468
|
),
|
|
469
469
|
[
|
|
470
|
-
|
|
470
|
+
c,
|
|
471
471
|
le,
|
|
472
472
|
$,
|
|
473
473
|
W,
|
|
474
474
|
re,
|
|
475
|
-
H,
|
|
476
|
-
_,
|
|
477
475
|
S,
|
|
476
|
+
u,
|
|
478
477
|
j,
|
|
478
|
+
H,
|
|
479
479
|
X,
|
|
480
480
|
V,
|
|
481
481
|
G,
|
|
482
482
|
P,
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
_,
|
|
484
|
+
v,
|
|
485
485
|
me,
|
|
486
486
|
de,
|
|
487
|
-
|
|
487
|
+
f,
|
|
488
488
|
se,
|
|
489
489
|
ce,
|
|
490
490
|
r,
|
|
491
491
|
d,
|
|
492
|
-
|
|
492
|
+
l,
|
|
493
493
|
s
|
|
494
494
|
]
|
|
495
495
|
), { show: Ie, reject: $ }];
|
|
496
496
|
}
|
|
497
|
-
const
|
|
498
|
-
const e =
|
|
497
|
+
const So = () => {
|
|
498
|
+
const e = Ee(ee);
|
|
499
499
|
if (e == null)
|
|
500
500
|
throw new Error("useDialogPromise is being used outside of dialog.");
|
|
501
501
|
return e;
|
|
502
|
-
},
|
|
503
|
-
alertDialog:
|
|
504
|
-
closing:
|
|
502
|
+
}, xt = "_alertDialog_14t8t_1", zt = "_closing_14t8t_22", U = {
|
|
503
|
+
alertDialog: xt,
|
|
504
|
+
closing: zt
|
|
505
505
|
};
|
|
506
|
-
function
|
|
506
|
+
function jo(e, o) {
|
|
507
507
|
return ne(e, {
|
|
508
508
|
...o,
|
|
509
509
|
modal: !0,
|
|
510
|
-
closingClassName:
|
|
511
|
-
contentWrapperClassName:
|
|
510
|
+
closingClassName: i(o?.closingClassName, U.closing),
|
|
511
|
+
contentWrapperClassName: i(
|
|
512
512
|
o?.contentWrapperClassName,
|
|
513
513
|
U.contentWrapper
|
|
514
514
|
),
|
|
515
|
-
className:
|
|
515
|
+
className: i(o?.className, U.alertDialog)
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
const
|
|
519
|
-
drawerDialog:
|
|
520
|
-
left:
|
|
521
|
-
right:
|
|
522
|
-
contentWrapper:
|
|
518
|
+
const Ot = "_drawerDialog_11g6r_1", Ft = "_left_11g6r_13", kt = "_right_11g6r_14", Lt = "_contentWrapper_11g6r_19", It = "_slideInLeft_11g6r_1", At = "_closing_11g6r_36", Tt = "_slideOutLeft_11g6r_1", Rt = "_slideInRight_11g6r_1", Et = "_slideOutRight_11g6r_1", Mt = "_top_11g6r_54", Wt = "_bottom_11g6r_55", St = "_slideInTop_11g6r_1", jt = "_slideOutTop_11g6r_1", Ht = "_slideInBottom_11g6r_1", Pt = "_slideOutBottom_11g6r_1", R = {
|
|
519
|
+
drawerDialog: Ot,
|
|
520
|
+
left: Ft,
|
|
521
|
+
right: kt,
|
|
522
|
+
contentWrapper: Lt,
|
|
523
523
|
slideInLeft: It,
|
|
524
524
|
closing: At,
|
|
525
525
|
slideOutLeft: Tt,
|
|
526
|
-
slideInRight:
|
|
527
|
-
slideOutRight:
|
|
528
|
-
top:
|
|
526
|
+
slideInRight: Rt,
|
|
527
|
+
slideOutRight: Et,
|
|
528
|
+
top: Mt,
|
|
529
529
|
bottom: Wt,
|
|
530
|
-
slideInTop:
|
|
531
|
-
slideOutTop:
|
|
532
|
-
slideInBottom:
|
|
530
|
+
slideInTop: St,
|
|
531
|
+
slideOutTop: jt,
|
|
532
|
+
slideInBottom: Ht,
|
|
533
533
|
slideOutBottom: Pt
|
|
534
534
|
};
|
|
535
|
-
function
|
|
535
|
+
function Ho(e, o = "left", n) {
|
|
536
536
|
return ne(e, {
|
|
537
537
|
...n,
|
|
538
538
|
disableCloseOnClickOutside: !0,
|
|
@@ -540,12 +540,12 @@ function jo(e, o = "left", n) {
|
|
|
540
540
|
// Drawers never block page scroll. The drawer's own scroll is kept from
|
|
541
541
|
// chaining to the page by overscroll-behavior on its content.
|
|
542
542
|
blockScroll: !1,
|
|
543
|
-
closingClassName:
|
|
544
|
-
contentWrapperClassName:
|
|
543
|
+
closingClassName: i(n?.closingClassName, R.closing),
|
|
544
|
+
contentWrapperClassName: i(
|
|
545
545
|
n?.contentWrapperClassName,
|
|
546
|
-
|
|
546
|
+
R.contentWrapper
|
|
547
547
|
),
|
|
548
|
-
className:
|
|
548
|
+
className: i(n?.className, R.drawerDialog, R[o])
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
const qt = "_modalDialog_iw29e_1", Vt = "_closing_iw29e_37", Gt = "_contentWrapper_iw29e_101", J = {
|
|
@@ -557,15 +557,15 @@ function Po(e, o) {
|
|
|
557
557
|
return ne(e, {
|
|
558
558
|
...o,
|
|
559
559
|
modal: !0,
|
|
560
|
-
closingClassName:
|
|
561
|
-
contentWrapperClassName:
|
|
560
|
+
closingClassName: i(o?.closingClassName, J.closing),
|
|
561
|
+
contentWrapperClassName: i(
|
|
562
562
|
o?.contentWrapperClassName,
|
|
563
563
|
J.contentWrapper
|
|
564
564
|
),
|
|
565
|
-
className:
|
|
565
|
+
className: i(o?.className, J.modalDialog)
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
const
|
|
568
|
+
const Oe = ({
|
|
569
569
|
headingLevel: e = "h2",
|
|
570
570
|
size: o = "medium",
|
|
571
571
|
children: n
|
|
@@ -574,7 +574,7 @@ const ze = ({
|
|
|
574
574
|
}, Ut = ({
|
|
575
575
|
children: e
|
|
576
576
|
}) => /* @__PURE__ */ a(D, { width: "100%", children: [
|
|
577
|
-
/* @__PURE__ */ t(
|
|
577
|
+
/* @__PURE__ */ t(L, {}),
|
|
578
578
|
/* @__PURE__ */ t("div", { className: Yt.modalActionButtons, children: e })
|
|
579
579
|
] }), Jt = "_modalBody_ozynq_1", he = {
|
|
580
580
|
modalBody: Jt
|
|
@@ -584,9 +584,9 @@ const ze = ({
|
|
|
584
584
|
className: n,
|
|
585
585
|
...s
|
|
586
586
|
}) => /* @__PURE__ */ t(
|
|
587
|
-
|
|
587
|
+
b,
|
|
588
588
|
{
|
|
589
|
-
className:
|
|
589
|
+
className: i(he.modalBody, he[o], n),
|
|
590
590
|
indent: o === "relaxed" ? 5 : 3,
|
|
591
591
|
spacing: o === "relaxed" ? 5 : 3,
|
|
592
592
|
gap: e,
|
|
@@ -596,7 +596,7 @@ const ze = ({
|
|
|
596
596
|
children: e,
|
|
597
597
|
maxWidth: o
|
|
598
598
|
}) => /* @__PURE__ */ t(
|
|
599
|
-
|
|
599
|
+
b,
|
|
600
600
|
{
|
|
601
601
|
flex: 1,
|
|
602
602
|
height: "100%",
|
|
@@ -617,10 +617,11 @@ const ze = ({
|
|
|
617
617
|
headingLevel: o,
|
|
618
618
|
headingSize: n,
|
|
619
619
|
onClickClose: s,
|
|
620
|
-
closeButtonAriaLabel: r
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
620
|
+
closeButtonAriaLabel: r,
|
|
621
|
+
renderModalCloseButton: l
|
|
622
|
+
}) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ a(y, { justifyContent: "space-between", alignItems: "center", gap: 2, children: [
|
|
623
|
+
e ? /* @__PURE__ */ t(Oe, { headingLevel: o, size: n, children: e }) : /* @__PURE__ */ t("div", {}),
|
|
624
|
+
l ? l() : s ? /* @__PURE__ */ t(
|
|
624
625
|
Zt,
|
|
625
626
|
{
|
|
626
627
|
onClick: s,
|
|
@@ -634,32 +635,34 @@ const ze = ({
|
|
|
634
635
|
heading: n,
|
|
635
636
|
text: s,
|
|
636
637
|
children: r,
|
|
637
|
-
maxWidth:
|
|
638
|
+
maxWidth: l,
|
|
638
639
|
minWidth: d,
|
|
639
|
-
|
|
640
|
+
renderModalHeader: c,
|
|
641
|
+
onClickClose: _,
|
|
642
|
+
closeButtonAriaLabel: v
|
|
640
643
|
}) => /* @__PURE__ */ t(Qt, { children: /* @__PURE__ */ a(Kt, { gap: 0, children: [
|
|
641
|
-
|
|
644
|
+
c ? c() : _ && /* @__PURE__ */ t(
|
|
642
645
|
eo,
|
|
643
646
|
{
|
|
644
|
-
onClickClose:
|
|
645
|
-
closeButtonAriaLabel:
|
|
647
|
+
onClickClose: _,
|
|
648
|
+
closeButtonAriaLabel: v
|
|
646
649
|
}
|
|
647
650
|
),
|
|
648
651
|
/* @__PURE__ */ a(
|
|
649
|
-
|
|
652
|
+
b,
|
|
650
653
|
{
|
|
651
654
|
gap: 2,
|
|
652
655
|
flexDirection: "column",
|
|
653
656
|
alignItems: "center",
|
|
654
|
-
maxWidth:
|
|
657
|
+
maxWidth: l,
|
|
655
658
|
minWidth: d,
|
|
656
659
|
children: [
|
|
657
660
|
e && /* @__PURE__ */ a(K, { children: [
|
|
658
|
-
!
|
|
661
|
+
!c && !_ && /* @__PURE__ */ t(L, {}),
|
|
659
662
|
/* @__PURE__ */ t(De, { icon: e, size: "large" }),
|
|
660
|
-
/* @__PURE__ */ t(
|
|
663
|
+
/* @__PURE__ */ t(L, {})
|
|
661
664
|
] }),
|
|
662
|
-
/* @__PURE__ */ t(
|
|
665
|
+
/* @__PURE__ */ t(Oe, { children: n }),
|
|
663
666
|
s && /* @__PURE__ */ t(Z, { textAlign: "center", children: s }),
|
|
664
667
|
r,
|
|
665
668
|
o && /* @__PURE__ */ t(Ut, { children: o })
|
|
@@ -676,82 +679,82 @@ const ze = ({
|
|
|
676
679
|
className: s,
|
|
677
680
|
...r
|
|
678
681
|
}) => /* @__PURE__ */ t(
|
|
679
|
-
|
|
682
|
+
y,
|
|
680
683
|
{
|
|
681
|
-
className:
|
|
684
|
+
className: i(ye.modalFooter, e && ye.sticky, s),
|
|
682
685
|
shadow: "var(--swui-sticky-footer-shadow)",
|
|
683
686
|
zIndex: o,
|
|
684
687
|
gap: n,
|
|
685
688
|
...r
|
|
686
689
|
}
|
|
687
|
-
), no = "_unreadDot_l8bni_1", so = "_dot_l8bni_4",
|
|
690
|
+
), no = "_unreadDot_l8bni_1", so = "_dot_l8bni_4", ve = {
|
|
688
691
|
unreadDot: no,
|
|
689
692
|
dot: so
|
|
690
|
-
}, ro = ({ children: e }) => /* @__PURE__ */ a("div", { className:
|
|
693
|
+
}, ro = ({ children: e }) => /* @__PURE__ */ a("div", { className: ve.unreadDot, children: [
|
|
691
694
|
e,
|
|
692
|
-
/* @__PURE__ */ t("div", { className:
|
|
693
|
-
] }), ao = "_notificationHeader_1rl25_1", lo = "_timestamp_1rl25_2",
|
|
695
|
+
/* @__PURE__ */ t("div", { className: ve.dot })
|
|
696
|
+
] }), ao = "_notificationHeader_1rl25_1", lo = "_timestamp_1rl25_2", be = {
|
|
694
697
|
notificationHeader: ao,
|
|
695
698
|
timestamp: lo
|
|
696
|
-
},
|
|
699
|
+
}, Fe = ({
|
|
697
700
|
text: e,
|
|
698
701
|
timestamp: o,
|
|
699
702
|
icon: n,
|
|
700
703
|
iconAriaLabel: s,
|
|
701
704
|
contentLeft: r,
|
|
702
|
-
contentRight:
|
|
705
|
+
contentRight: l,
|
|
703
706
|
onClickClose: d,
|
|
704
|
-
unread:
|
|
705
|
-
variant:
|
|
706
|
-
iconBackgroundColor:
|
|
707
|
-
forceCloseButtonAlignment:
|
|
707
|
+
unread: c = !1,
|
|
708
|
+
variant: _,
|
|
709
|
+
iconBackgroundColor: v,
|
|
710
|
+
forceCloseButtonAlignment: u
|
|
708
711
|
}) => {
|
|
709
|
-
const
|
|
712
|
+
const p = n ? /* @__PURE__ */ t(
|
|
710
713
|
De,
|
|
711
714
|
{
|
|
712
715
|
size: "small",
|
|
713
716
|
icon: n,
|
|
714
717
|
"aria-label": s,
|
|
715
718
|
variant: "whiteBg",
|
|
716
|
-
backgroundColor:
|
|
719
|
+
backgroundColor: v || co(c, _)
|
|
717
720
|
}
|
|
718
721
|
) : void 0;
|
|
719
722
|
return /* @__PURE__ */ a(
|
|
720
|
-
|
|
723
|
+
y,
|
|
721
724
|
{
|
|
722
725
|
alignItems: "flex-start",
|
|
723
726
|
justifyContent: "space-between",
|
|
724
727
|
"data-comp": "NotificationHeader",
|
|
725
|
-
className:
|
|
728
|
+
className: be.notificationHeader,
|
|
726
729
|
gap: 2,
|
|
727
730
|
children: [
|
|
728
|
-
/* @__PURE__ */ a(
|
|
729
|
-
r && /* @__PURE__ */ t(
|
|
730
|
-
!r &&
|
|
731
|
+
/* @__PURE__ */ a(y, { gap: 2, alignItems: "flex-start", children: [
|
|
732
|
+
r && /* @__PURE__ */ t(b, { justifyContent: "center", children: r }),
|
|
733
|
+
!r && p && /* @__PURE__ */ t(y, { alignItems: "center", height: "40px", children: c ? /* @__PURE__ */ t(ro, { children: p }) : p }),
|
|
731
734
|
/* @__PURE__ */ a(D, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
732
|
-
n || d ||
|
|
735
|
+
n || d || u ? /* @__PURE__ */ t(Q, { num: 0.5 }) : null,
|
|
733
736
|
/* @__PURE__ */ t(Z, { variant: "bold", children: e }),
|
|
734
|
-
o && /* @__PURE__ */ t("div", { className:
|
|
737
|
+
o && /* @__PURE__ */ t("div", { className: be.timestamp, children: /* @__PURE__ */ t(
|
|
735
738
|
Z,
|
|
736
739
|
{
|
|
737
740
|
size: "small",
|
|
738
741
|
color: $e(
|
|
739
|
-
|
|
742
|
+
c ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
|
|
740
743
|
),
|
|
741
744
|
children: o
|
|
742
745
|
}
|
|
743
746
|
) })
|
|
744
747
|
] })
|
|
745
748
|
] }),
|
|
746
|
-
|
|
747
|
-
d && /* @__PURE__ */ t(
|
|
749
|
+
l && /* @__PURE__ */ t(b, { justifyContent: "center", children: l }),
|
|
750
|
+
d && /* @__PURE__ */ t(y, { alignItems: "center", height: "40px", width: "40px", children: /* @__PURE__ */ t(oe, { onClick: d }) })
|
|
748
751
|
]
|
|
749
752
|
}
|
|
750
753
|
);
|
|
751
754
|
}, co = (e, o) => {
|
|
752
755
|
if (!(!e && o === "standard"))
|
|
753
756
|
return "--lhds-color-ui-50";
|
|
754
|
-
}, io = "_notification_tpz0j_1", mo = "_body_tpz0j_10", _o = "_standard_tpz0j_15", uo = "_unread_tpz0j_16", fo = "_danger_tpz0j_21",
|
|
757
|
+
}, io = "_notification_tpz0j_1", mo = "_body_tpz0j_10", _o = "_standard_tpz0j_15", uo = "_unread_tpz0j_16", fo = "_danger_tpz0j_21", E = {
|
|
755
758
|
notification: io,
|
|
756
759
|
body: mo,
|
|
757
760
|
standard: _o,
|
|
@@ -766,14 +769,14 @@ const ze = ({
|
|
|
766
769
|
"div",
|
|
767
770
|
{
|
|
768
771
|
"data-comp": "Notification",
|
|
769
|
-
className:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
n &&
|
|
772
|
+
className: i(
|
|
773
|
+
E.notification,
|
|
774
|
+
E[e],
|
|
775
|
+
n && E.unread
|
|
773
776
|
),
|
|
774
777
|
children: [
|
|
775
|
-
/* @__PURE__ */ t(
|
|
776
|
-
o && /* @__PURE__ */ t(
|
|
778
|
+
/* @__PURE__ */ t(Fe, { ...s, unread: n, variant: e }),
|
|
779
|
+
o && /* @__PURE__ */ t(b, { className: E.body, children: o })
|
|
777
780
|
]
|
|
778
781
|
}
|
|
779
782
|
), go = "_notificationList_1rkvu_1", po = {
|
|
@@ -783,7 +786,7 @@ const ze = ({
|
|
|
783
786
|
}) => /* @__PURE__ */ a("div", { "data-comp": "NotificationList", className: po.notificationList, children: [
|
|
784
787
|
e,
|
|
785
788
|
/* @__PURE__ */ t("div", {})
|
|
786
|
-
] }), ho = "_toast_1ifzt_1", yo = "_body_1ifzt_2",
|
|
789
|
+
] }), ho = "_toast_1ifzt_1", yo = "_body_1ifzt_2", Ce = {
|
|
787
790
|
toast: ho,
|
|
788
791
|
body: yo
|
|
789
792
|
}, Yo = ({
|
|
@@ -794,23 +797,23 @@ const ze = ({
|
|
|
794
797
|
}) => /* @__PURE__ */ a(
|
|
795
798
|
D,
|
|
796
799
|
{
|
|
797
|
-
className:
|
|
800
|
+
className: Ce.toast,
|
|
798
801
|
"data-comp": "Toast",
|
|
799
802
|
width: o,
|
|
800
803
|
maxWidth: n,
|
|
801
804
|
children: [
|
|
802
|
-
/* @__PURE__ */ t(
|
|
803
|
-
e && /* @__PURE__ */ t("div", { className:
|
|
805
|
+
/* @__PURE__ */ t(Fe, { forceCloseButtonAlignment: !0, ...s }),
|
|
806
|
+
e && /* @__PURE__ */ t("div", { className: Ce.body, children: e })
|
|
804
807
|
]
|
|
805
808
|
}
|
|
806
|
-
),
|
|
807
|
-
toastBox:
|
|
808
|
-
clickable:
|
|
809
|
+
), vo = "_toastBox_1lvsy_1", bo = "_clickable_1lvsy_8", Ne = {
|
|
810
|
+
toastBox: vo,
|
|
811
|
+
clickable: bo
|
|
809
812
|
}, Uo = ({ className: e, ...o }) => /* @__PURE__ */ t(
|
|
810
813
|
D,
|
|
811
814
|
{
|
|
812
815
|
as: o.onClick ? "button" : void 0,
|
|
813
|
-
className:
|
|
816
|
+
className: i(
|
|
814
817
|
e,
|
|
815
818
|
Ne.toastBox,
|
|
816
819
|
o.onClick && Ne.clickable
|
|
@@ -819,8 +822,8 @@ const ze = ({
|
|
|
819
822
|
role: "alert",
|
|
820
823
|
...o
|
|
821
824
|
}
|
|
822
|
-
),
|
|
823
|
-
toastContainer:
|
|
825
|
+
), Co = "_toastContainer_1rek2_1", No = {
|
|
826
|
+
toastContainer: Co
|
|
824
827
|
}, Jo = ({ ...e }) => /* @__PURE__ */ t(
|
|
825
828
|
Xe,
|
|
826
829
|
{
|
|
@@ -834,15 +837,15 @@ const ze = ({
|
|
|
834
837
|
}
|
|
835
838
|
), Ko = (e, o) => Ye(e, o);
|
|
836
839
|
export {
|
|
837
|
-
|
|
840
|
+
Ro as Alert,
|
|
838
841
|
tt as BaseWindow,
|
|
839
|
-
|
|
840
|
-
|
|
842
|
+
ze as DRAGGABLE_CANCEL_CLASSNAME,
|
|
843
|
+
xe as DRAGGABLE_HANDLE_CLASSNAME,
|
|
841
844
|
ee as DialogContext,
|
|
842
845
|
Ao as Drawer,
|
|
843
846
|
To as DrawerHeader,
|
|
844
847
|
qo as InfoAlert,
|
|
845
|
-
|
|
848
|
+
Eo as LoadingModal,
|
|
846
849
|
wt as Modal,
|
|
847
850
|
Ut as ModalActionButtons,
|
|
848
851
|
Kt as ModalBody,
|
|
@@ -850,24 +853,24 @@ export {
|
|
|
850
853
|
Qt as ModalContainer,
|
|
851
854
|
Vo as ModalFooter,
|
|
852
855
|
eo as ModalHeader,
|
|
853
|
-
|
|
856
|
+
Oe as ModalHeading,
|
|
854
857
|
Go as Notification,
|
|
855
|
-
|
|
858
|
+
Fe as NotificationHeader,
|
|
856
859
|
Xo as NotificationList,
|
|
857
860
|
Yo as Toast,
|
|
858
861
|
Uo as ToastBox,
|
|
859
862
|
Jo as ToastContainer,
|
|
860
863
|
ro as UnreadDot,
|
|
861
|
-
|
|
864
|
+
Mo as Window,
|
|
862
865
|
Wo as WindowFooter,
|
|
863
866
|
$t as WindowHeader,
|
|
864
867
|
co as getIconBgColorFromVariant,
|
|
865
868
|
Io as setupDeclarativeModals,
|
|
866
869
|
Ko as showToast,
|
|
867
|
-
|
|
870
|
+
jo as useAlertDialog,
|
|
868
871
|
ne as useDialog,
|
|
869
|
-
|
|
870
|
-
|
|
872
|
+
So as useDialogPromise,
|
|
873
|
+
Ho as useDrawerDialog,
|
|
871
874
|
Po as useModalDialog
|
|
872
875
|
};
|
|
873
876
|
//# sourceMappingURL=index.es.js.map
|