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