@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/index.es.js CHANGED
@@ -1,43 +1,43 @@
1
- import F from "react-modal";
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 w, useState as E, useEffect as ze, createContext as Ae, useReducer as Te, useCallback as O, useMemo as ue, createElement as _e, useContext as Me } from "react";
4
- import Re from "react-draggable";
5
- import i from "classnames";
6
- import { exhaustSwitchCase as Ee, Spacing as I, getDataProps as We, Row as p, Space as Q, Heading as te, useEventCallback as He, Column as C, Box as B, Indent as Se, Txt as je, Text as Z } from "@stenajs-webui/core";
7
- import { Icon as Ne, FlatButton as we, stenaTimes as Pe, Spinner as Ge, CloseButton as oe, stenaTimesThick as Ve, CircledIcon as Be } from "@stenajs-webui/elements";
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 qe, toast as Xe } from "react-toastify";
10
- import './index.css';const Oo = (e) => {
11
- F.setAppElement(e);
12
- }, Ye = "_overlay_zoch3_1", Ue = "_modal_zoch3_33", Je = "_content_zoch3_43", Ke = "_isDraggable_zoch3_72", Qe = "_footer_zoch3_103", Ze = "_stickyFooter_zoch3_107", L = {
13
- overlay: Ye,
14
- modal: Ue,
15
- content: Je,
16
- isDraggable: Ke,
17
- footer: Qe,
18
- stickyFooter: Ze
19
- }, $e = "draggable-modal-handle", ke = "draggable-modal-cancel", et = ({
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 c = w(null);
26
+ const i = B(null);
27
27
  return /* @__PURE__ */ t(
28
- F,
28
+ O,
29
29
  {
30
- overlayClassName: L.overlay,
31
- className: L.modal,
30
+ overlayClassName: z.overlay,
31
+ className: z.modal,
32
32
  ...r,
33
33
  children: /* @__PURE__ */ t(
34
- Re,
34
+ Ee,
35
35
  {
36
36
  handle: `.${$e}`,
37
- cancel: `.${ke}, button, [role="tooltip"]`,
37
+ cancel: `.${xe}, button, [role="tooltip"]`,
38
38
  bounds: ".ReactModal__Overlay",
39
39
  disabled: !n,
40
- nodeRef: c,
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: i(L.content, {
49
- [L.isDraggable]: n
48
+ className: c(z.content, {
49
+ [z.isDraggable]: n
50
50
  }),
51
- ref: c,
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
- }, tt = "_portal_194oy_1", ot = "_overlay_194oy_4", nt = "_content_194oy_9", st = "_floating_194oy_18", rt = "_slideFromLeft_194oy_32", at = "_slideFromRight_194oy_33", lt = "_afterOpen_194oy_39", ct = "_beforeClose_194oy_43", it = "_slideFromTop_194oy_48", dt = "_slideFromBottom_194oy_49", f = {
60
- portal: tt,
61
- overlay: ot,
62
- content: nt,
63
- floating: st,
64
- slideFromLeft: rt,
65
- slideFromRight: at,
66
- afterOpen: lt,
67
- beforeClose: ct,
68
- slideFromTop: it,
69
- slideFromBottom: dt
70
- }, Io = ({
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: c,
77
- ...m
76
+ floating: i,
77
+ ...d
78
78
  }) => {
79
- const { height: l, width: h } = m;
79
+ const { height: l, width: y } = d;
80
80
  return /* @__PURE__ */ t(
81
- F,
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: i(
91
+ base: c(
92
92
  f.content,
93
- mt(s),
94
- c && f.floating
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: h, height: l, background: e }, overlay: { zIndex: o } },
99
+ style: { content: { width: y, height: l, background: e }, overlay: { zIndex: o } },
100
100
  parentSelector: r ? () => r : void 0,
101
- ...m,
101
+ ...d,
102
102
  bodyOpenClassName: "swui-drawer-body-open",
103
103
  children: n
104
104
  }
105
105
  );
106
- }, mt = (e) => {
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 Ee(e, f.slideFromLeft);
117
+ return We(e, f.slideFromLeft);
118
118
  }
119
- }, zo = ({
119
+ }, To = ({
120
120
  header: e,
121
121
  contentRight: o,
122
122
  onRequestClose: n,
123
123
  icon: s,
124
124
  headingLevel: r = "h1",
125
- ...c
125
+ ...i
126
126
  }) => /* @__PURE__ */ t(
127
- I,
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
- ...We(c),
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
- we,
149
+ Be,
150
150
  {
151
- leftIcon: Pe,
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
- ), ut = "_overlay_1xtk3_1", _t = "_modal_1xtk3_33", ft = "_content_1xtk3_40", Y = {
163
- overlay: ut,
164
- modal: _t,
165
- content: ft
166
- }, gt = { overlay: { justifyContent: "center" } }, Ao = ({
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
- F,
170
+ O,
171
171
  {
172
172
  overlayClassName: Y.overlay,
173
173
  className: Y.modal,
174
- style: gt,
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 = "_overlay_20o05_1", ht = "_afterOpen_20o05_29", yt = "_beforeClose_20o05_29", Ct = "_modal_20o05_41", vt = "_content_20o05_64", $ = {
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: ht,
188
- beforeClose: yt,
189
- modal: Ct,
190
- content: vt
191
- }, fe = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), bt = ({
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
- ...r
197
+ allowContentOverflow: r = !1,
198
+ ...i
197
199
  }) => {
198
- const c = w(null), [m, l] = E(fe ? "auto" : void 0), h = {
199
- overlay: { justifyContent: "center" },
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 = He(() => {
204
- if (!fe)
210
+ }, u = Se(() => {
211
+ if (!ge)
205
212
  return;
206
- const y = c.current;
207
- y && l(
208
- y.scrollHeight > y.clientHeight ? "stable" : "auto"
213
+ const g = d.current;
214
+ g && y(
215
+ g.scrollHeight > g.clientHeight ? "stable" : "auto"
209
216
  );
210
217
  });
211
- return ze(() => (window.addEventListener("resize", u), document.addEventListener("DOMContentLoaded", u), () => {
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
- F,
221
+ O,
215
222
  {
216
223
  overlayClassName: {
217
- base: i(s, $.overlay),
218
- beforeClose: $.beforeClose,
219
- afterOpen: $.afterOpen
224
+ base: c(s, N.overlay),
225
+ beforeClose: N.beforeClose,
226
+ afterOpen: N.afterOpen
220
227
  },
221
228
  className: {
222
- base: i(n, $.modal),
223
- beforeClose: $.beforeClose,
224
- afterOpen: $.afterOpen
229
+ base: c(n, N.modal),
230
+ beforeClose: N.beforeClose,
231
+ afterOpen: N.afterOpen
225
232
  },
226
- style: h,
233
+ style: C,
227
234
  closeTimeoutMS: 250,
228
235
  onAfterOpen: u,
229
- ...r,
236
+ ...i,
230
237
  children: /* @__PURE__ */ t(
231
238
  "div",
232
239
  {
233
- className: $.content,
240
+ className: c(
241
+ N.content,
242
+ r && N.contentOverflowVisible
243
+ ),
234
244
  style: {
235
245
  "--swui-modal-width": "fit-content",
236
- scrollbarGutter: m
246
+ scrollbarGutter: l
237
247
  },
238
- ref: c,
248
+ ref: d,
239
249
  children: e
240
250
  }
241
251
  )
242
252
  }
243
253
  );
244
- }, Nt = "_modal_4fwgb_1", wt = "_overlay_4fwgb_13", ge = {
245
- modal: Nt,
246
- overlay: wt
247
- }, To = ({
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
- F,
264
+ O,
255
265
  {
256
266
  ...r,
257
267
  isOpen: !0,
258
268
  shouldCloseOnOverlayClick: n,
259
269
  shouldCloseOnEsc: s,
260
- className: ge.modal,
261
- overlayClassName: ge.overlay,
262
- children: /* @__PURE__ */ a(C, { spacing: 2, alignItems: "center", children: [
270
+ className: he.modal,
271
+ overlayClassName: he.overlay,
272
+ children: /* @__PURE__ */ a(v, { spacing: 2, alignItems: "center", children: [
263
273
  /* @__PURE__ */ t(
264
- B,
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(Ge, { size: "small" })
283
+ children: /* @__PURE__ */ t(Ve, { size: "small" })
274
284
  }
275
285
  ),
276
286
  (e || o) && /* @__PURE__ */ a(K, { children: [
277
- /* @__PURE__ */ t(I, {}),
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(Se, {})
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
- ), Bt = ({
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(je, { className: ke, size: "large", children: n }),
312
+ n && /* @__PURE__ */ t(Pe, { className: xe, size: "large", children: n }),
303
313
  o
304
314
  ] }),
305
- /* @__PURE__ */ t(B, { alignSelf: "flex-start", children: /* @__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
- ), Mo = ({
324
+ ), Eo = ({
315
325
  header: e,
316
326
  headerText: o,
317
327
  children: n,
318
328
  spacing: s,
319
329
  indent: r,
320
- draggable: c = !1,
321
- onRequestClose: m,
330
+ draggable: i = !1,
331
+ onRequestClose: d,
322
332
  closeButtonClassName: l,
323
- footer: h,
324
- disableStickyFooter: u = !1,
325
- ...y
333
+ footer: y,
334
+ disableStickyFooter: C = !1,
335
+ ...u
326
336
  }) => /* @__PURE__ */ a(
327
- et,
337
+ tt,
328
338
  {
329
- ...y,
330
- onRequestClose: m,
331
- draggable: c,
339
+ ...u,
340
+ onRequestClose: d,
341
+ draggable: i,
332
342
  children: [
333
343
  /* @__PURE__ */ t(
334
- Bt,
344
+ Dt,
335
345
  {
336
- onRequestClose: m,
346
+ onRequestClose: d,
337
347
  header: e,
338
348
  headerText: o,
339
349
  closeButtonClassName: l
340
350
  }
341
351
  ),
342
- /* @__PURE__ */ t(B, { spacing: typeof s == "number" ? s : 1, indent: typeof r == "number" ? r : 1, children: n }),
343
- h && /* @__PURE__ */ t(
344
- B,
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: i(L.footer, {
347
- [L.stickyFooter]: !u
356
+ className: c(z.footer, {
357
+ [z.stickyFooter]: !C
348
358
  }),
349
- children: h
359
+ children: y
350
360
  }
351
361
  )
352
362
  ]
353
363
  }
354
- ), Ro = ({ children: e }) => /* @__PURE__ */ t(C, { indent: 2, spacing: 2, children: e }), ee = Ae(
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: c,
363
- dialogStyle: m,
372
+ contentWrapperStyle: i,
373
+ dialogStyle: d,
364
374
  divInsteadOfDialog: l,
365
- disableCloseOnClickOutside: h,
366
- blockScroll: u = !0,
367
- elementId: y,
368
- onResolve: v,
369
- onReject: k,
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 Fe = w(null), _ = o ?? Fe, [P, Oe] = Te((d) => d + 1, 0), re = w(null), G = w(null), b = w(void 0), z = w(!1), A = w(null), [ae, T] = E(!1), [V, x] = E(!1), [le, N] = E(!1), q = e, Ie = O(
377
- (d) => (re.current = new Promise(
378
- (g, me) => {
379
- G.current = g, A.current = me;
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
- ), N(!1), T(!0), x(!0), Oe(), z.current = !1, b.current = d, n ? _.current?.showModal() : _.current?.show(), re.current),
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
- ), ce = O(
384
- (d) => {
385
- z.current = !0, N(!0), T(!1), l ? setTimeout(() => {
386
- N(!1), x(!1), G.current?.(d), b.current = void 0, v?.();
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
- (g) => {
390
- g.stopPropagation(), N(!1), x(!1), _.current?.close(), G.current?.(d), b.current = void 0, v?.();
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
- [_, v, l]
396
- ), D = O(
397
- (d) => {
398
- z.current = !0, N(!0), T(!1), l ? setTimeout(() => {
399
- N(!1), x(!1), A.current?.(d), k?.(), b.current = void 0;
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
- (g) => {
403
- g.stopPropagation(), N(!1), x(!1), _.current?.close(), A.current?.(d), k?.(), b.current = void 0;
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, k]
409
- ), ie = O(
410
- (d) => {
411
- d.stopPropagation(), z.current || (N(!1), T(!1), x(!1), A.current?.(), k?.(), b.current = void 0);
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
- [k]
414
- ), de = O(
415
- (d) => {
416
- if (d.target !== _.current)
424
+ [$]
425
+ ), me = L(
426
+ (m) => {
427
+ if (m.target !== _.current)
417
428
  return;
418
- const g = _.current.getBoundingClientRect();
419
- g.top <= d.clientY && d.clientY <= g.top + g.height && g.left <= d.clientX && d.clientX <= g.left + g.width || D();
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 = ue(
423
- () => ({ resolve: ce, reject: D }),
424
- [D, ce]
433
+ ), X = _e(
434
+ () => ({ resolve: ie, reject: D }),
435
+ [D, ie]
425
436
  );
426
- return [ue(
437
+ return [_e(
427
438
  () => l ? /* @__PURE__ */ t(
428
- bt,
439
+ Nt,
429
440
  {
430
- isOpen: ae,
441
+ isOpen: le,
431
442
  onRequestClose: D,
432
443
  background: W,
444
+ allowContentOverflow: re,
433
445
  contentLabel: H,
434
- id: y,
446
+ id: u,
435
447
  aria: { modal: !0, labelledby: S, describedby: j },
436
- children: /* @__PURE__ */ t(ee.Provider, { value: X, children: V && /* @__PURE__ */ _e(q, { ...b.current, key: P }) })
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: h ? void 0 : de,
442
- onClose: ie,
453
+ onClick: y ? void 0 : me,
454
+ onClose: de,
443
455
  ref: _,
444
- id: y,
445
- className: i(
446
- u && "swui-block-scroll",
456
+ id: u,
457
+ className: c(
458
+ C && "swui-block-scroll",
447
459
  se,
448
- le && r
460
+ ce && r
449
461
  ),
450
462
  "aria-label": H,
451
463
  "aria-labelledby": S,
452
464
  "aria-describedby": j,
453
- style: { background: W, ...m },
454
- children: /* @__PURE__ */ t("div", { style: c, className: s, children: V && /* @__PURE__ */ t(ee.Provider, { value: X, children: /* @__PURE__ */ _e(q, { ...b.current, key: P }) }) })
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
- ae,
471
+ le,
460
472
  D,
461
473
  W,
474
+ re,
462
475
  H,
463
- y,
476
+ u,
464
477
  S,
465
478
  j,
466
479
  X,
467
480
  V,
468
- q,
481
+ G,
469
482
  P,
470
- h,
471
- u,
483
+ y,
484
+ C,
485
+ me,
472
486
  de,
473
- ie,
474
487
  _,
475
488
  se,
476
- le,
489
+ ce,
477
490
  r,
478
- m,
479
- c,
491
+ d,
492
+ i,
480
493
  s
481
494
  ]
482
495
  ), { show: Ie, reject: D }];
483
496
  }
484
- const Eo = () => {
485
- const e = Me(ee);
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
- }, Dt = "_alertDialog_14t8t_1", $t = "_closing_14t8t_22", U = {
490
- alertDialog: Dt,
491
- closing: $t
502
+ }, $t = "_alertDialog_14t8t_1", xt = "_closing_14t8t_22", U = {
503
+ alertDialog: $t,
504
+ closing: xt
492
505
  };
493
- function Wo(e, o) {
506
+ function So(e, o) {
494
507
  return ne(e, {
495
508
  ...o,
496
509
  modal: !0,
497
- closingClassName: i(o?.closingClassName, U.closing),
498
- contentWrapperClassName: i(
510
+ closingClassName: c(o?.closingClassName, U.closing),
511
+ contentWrapperClassName: c(
499
512
  o?.contentWrapperClassName,
500
513
  U.contentWrapper
501
514
  ),
502
- className: i(o?.className, U.alertDialog)
515
+ className: c(o?.className, U.alertDialog)
503
516
  });
504
517
  }
505
- const kt = "_drawerDialog_11g6r_1", xt = "_left_11g6r_13", Lt = "_right_11g6r_14", Ft = "_contentWrapper_11g6r_19", Ot = "_slideInLeft_11g6r_1", It = "_closing_11g6r_36", zt = "_slideOutLeft_11g6r_1", At = "_slideInRight_11g6r_1", Tt = "_slideOutRight_11g6r_1", Mt = "_top_11g6r_54", Rt = "_bottom_11g6r_55", Et = "_slideInTop_11g6r_1", Wt = "_slideOutTop_11g6r_1", Ht = "_slideInBottom_11g6r_1", St = "_slideOutBottom_11g6r_1", M = {
506
- drawerDialog: kt,
507
- left: xt,
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: Ot,
511
- closing: It,
512
- slideOutLeft: zt,
513
- slideInRight: At,
514
- slideOutRight: Tt,
515
- top: Mt,
516
- bottom: Rt,
517
- slideInTop: Et,
518
- slideOutTop: Wt,
519
- slideInBottom: Ht,
520
- slideOutBottom: St
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 Ho(e, o = "left", n) {
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: i(n?.closingClassName, M.closing),
531
- contentWrapperClassName: i(
543
+ closingClassName: c(n?.closingClassName, M.closing),
544
+ contentWrapperClassName: c(
532
545
  n?.contentWrapperClassName,
533
546
  M.contentWrapper
534
547
  ),
535
- className: i(n?.className, M.drawerDialog, M[o])
548
+ className: c(n?.className, M.drawerDialog, M[o])
536
549
  });
537
550
  }
538
- const jt = "_modalDialog_iw29e_1", Pt = "_closing_iw29e_37", Gt = "_contentWrapper_iw29e_101", J = {
539
- modalDialog: jt,
540
- closing: Pt,
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 So(e, o) {
556
+ function Po(e, o) {
544
557
  return ne(e, {
545
558
  ...o,
546
559
  modal: !0,
547
- closingClassName: i(o?.closingClassName, J.closing),
548
- contentWrapperClassName: i(
560
+ closingClassName: c(o?.closingClassName, J.closing),
561
+ contentWrapperClassName: c(
549
562
  o?.contentWrapperClassName,
550
563
  J.contentWrapper
551
564
  ),
552
- className: i(o?.className, J.modalDialog)
565
+ className: c(o?.className, J.modalDialog)
553
566
  });
554
567
  }
555
- const xe = ({
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 }), Vt = "_modalActionButtons_zeqa6_1", qt = {
560
- modalActionButtons: Vt
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
- C,
587
+ v,
575
588
  {
576
- className: i(pe.modalBody, pe[o], n),
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
- ), Jt = ({
595
+ ), Qt = ({
583
596
  children: e,
584
597
  maxWidth: o
585
598
  }) => /* @__PURE__ */ t(
586
- C,
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
- ), Kt = (e) => /* @__PURE__ */ t(
595
- we,
607
+ ), Zt = (e) => /* @__PURE__ */ t(
608
+ Be,
596
609
  {
597
610
  size: "large",
598
611
  variant: "danger",
599
- leftIcon: Ve,
612
+ leftIcon: Ge,
600
613
  ...e
601
614
  }
602
- ), Qt = ({
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(C, { children: /* @__PURE__ */ a(p, { justifyContent: "space-between", alignItems: "center", gap: 2, children: [
609
- e ? /* @__PURE__ */ t(xe, { headingLevel: o, size: n, children: e }) : /* @__PURE__ */ t("div", {}),
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
- Kt,
624
+ Zt,
612
625
  {
613
626
  onClick: s,
614
627
  size: n,
615
628
  "aria-label": r
616
629
  }
617
630
  ) : null
618
- ] }) }), jo = ({
631
+ ] }) }), qo = ({
619
632
  icon: e,
620
633
  buttons: o,
621
634
  heading: n,
622
635
  text: s,
623
636
  children: r,
624
- maxWidth: c,
625
- minWidth: m,
637
+ maxWidth: i,
638
+ minWidth: d,
626
639
  ...l
627
- }) => /* @__PURE__ */ t(Jt, { children: /* @__PURE__ */ a(Ut, { gap: 0, children: [
640
+ }) => /* @__PURE__ */ t(Qt, { children: /* @__PURE__ */ a(Kt, { gap: 0, children: [
628
641
  l.onClickClose && /* @__PURE__ */ t(
629
- Qt,
642
+ eo,
630
643
  {
631
644
  onClickClose: l.onClickClose,
632
645
  closeButtonAriaLabel: l.closeButtonAriaLabel
633
646
  }
634
647
  ),
635
648
  /* @__PURE__ */ a(
636
- C,
649
+ v,
637
650
  {
638
651
  gap: 2,
639
652
  flexDirection: "column",
640
653
  alignItems: "center",
641
- maxWidth: c,
642
- minWidth: m,
654
+ maxWidth: i,
655
+ minWidth: d,
643
656
  children: [
644
657
  e && /* @__PURE__ */ a(K, { children: [
645
- !l.onClickClose && /* @__PURE__ */ t(I, {}),
646
- /* @__PURE__ */ t(Be, { icon: e, size: "large" }),
647
- /* @__PURE__ */ t(I, {})
658
+ !l.onClickClose && /* @__PURE__ */ t(F, {}),
659
+ /* @__PURE__ */ t(ke, { icon: e, size: "large" }),
660
+ /* @__PURE__ */ t(F, {})
648
661
  ] }),
649
- /* @__PURE__ */ t(xe, { children: n }),
662
+ /* @__PURE__ */ t(ze, { children: n }),
650
663
  s && /* @__PURE__ */ t(Z, { textAlign: "center", children: s }),
651
664
  r,
652
- o && /* @__PURE__ */ t(Xt, { children: o })
665
+ o && /* @__PURE__ */ t(Ut, { children: o })
653
666
  ]
654
667
  }
655
668
  )
656
- ] }) }), Zt = "_modalFooter_1ypno_1", eo = "_sticky_1ypno_10", he = {
657
- modalFooter: Zt,
658
- sticky: eo
659
- }, Po = ({
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: i(he.modalFooter, e && he.sticky, s),
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
- ), to = "_unreadDot_l8bni_1", oo = "_dot_l8bni_4", ye = {
675
- unreadDot: to,
676
- dot: oo
677
- }, no = ({ children: e }) => /* @__PURE__ */ a("div", { className: ye.unreadDot, children: [
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: ye.dot })
680
- ] }), so = "_notificationHeader_1rl25_1", ro = "_timestamp_1rl25_2", Ce = {
681
- notificationHeader: so,
682
- timestamp: ro
683
- }, Le = ({
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: c,
690
- onClickClose: m,
702
+ contentRight: i,
703
+ onClickClose: d,
691
704
  unread: l = !1,
692
- variant: h,
693
- iconBackgroundColor: u,
694
- forceCloseButtonAlignment: y
705
+ variant: y,
706
+ iconBackgroundColor: C,
707
+ forceCloseButtonAlignment: u
695
708
  }) => {
696
- const v = n ? /* @__PURE__ */ t(
697
- Be,
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: u || ao(l, h)
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: Ce.notificationHeader,
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(C, { justifyContent: "center", children: r }),
717
- !r && v && /* @__PURE__ */ t(p, { alignItems: "center", height: "40px", children: l ? /* @__PURE__ */ t(no, { children: v }) : v }),
718
- /* @__PURE__ */ a(B, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
719
- n || m || y ? /* @__PURE__ */ t(Q, { num: 0.5 }) : null,
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: Ce.timestamp, children: /* @__PURE__ */ t(
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
- c && /* @__PURE__ */ t(C, { justifyContent: "center", children: c }),
734
- m && /* @__PURE__ */ t(p, { alignItems: "center", height: "40px", width: "40px", children: /* @__PURE__ */ t(oe, { onClick: m }) })
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
- }, ao = (e, o) => {
751
+ }, co = (e, o) => {
739
752
  if (!(!e && o === "standard"))
740
753
  return "--lhds-color-ui-50";
741
- }, lo = "_notification_tpz0j_1", co = "_body_tpz0j_10", io = "_standard_tpz0j_15", mo = "_unread_tpz0j_16", uo = "_danger_tpz0j_21", R = {
742
- notification: lo,
743
- body: co,
744
- standard: io,
745
- unread: mo,
746
- danger: uo
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: i(
769
+ className: c(
757
770
  R.notification,
758
771
  R[e],
759
772
  n && R.unread
760
773
  ),
761
774
  children: [
762
- /* @__PURE__ */ t(Le, { ...s, unread: n, variant: e }),
763
- o && /* @__PURE__ */ t(C, { className: R.body, children: o })
775
+ /* @__PURE__ */ t(Oe, { ...s, unread: n, variant: e }),
776
+ o && /* @__PURE__ */ t(v, { className: R.body, children: o })
764
777
  ]
765
778
  }
766
- ), _o = "_notificationList_1rkvu_1", fo = {
767
- notificationList: _o
768
- }, Vo = ({
779
+ ), go = "_notificationList_1rkvu_1", ho = {
780
+ notificationList: go
781
+ }, Xo = ({
769
782
  children: e
770
- }) => /* @__PURE__ */ a("div", { "data-comp": "NotificationList", className: fo.notificationList, children: [
783
+ }) => /* @__PURE__ */ a("div", { "data-comp": "NotificationList", className: ho.notificationList, children: [
771
784
  e,
772
785
  /* @__PURE__ */ t("div", {})
773
- ] }), go = "_toast_1ifzt_1", po = "_body_1ifzt_2", ve = {
774
- toast: go,
775
- body: po
776
- }, qo = ({
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
- B,
795
+ k,
783
796
  {
784
- className: ve.toast,
797
+ className: be.toast,
785
798
  "data-comp": "Toast",
786
799
  width: o,
787
800
  maxWidth: n,
788
801
  children: [
789
- /* @__PURE__ */ t(Le, { forceCloseButtonAlignment: !0, ...s }),
790
- e && /* @__PURE__ */ t("div", { className: ve.body, children: e })
802
+ /* @__PURE__ */ t(Oe, { forceCloseButtonAlignment: !0, ...s }),
803
+ e && /* @__PURE__ */ t("div", { className: be.body, children: e })
791
804
  ]
792
805
  }
793
- ), ho = "_toastBox_1lvsy_1", yo = "_clickable_1lvsy_8", be = {
794
- toastBox: ho,
795
- clickable: yo
796
- }, Xo = ({ className: e, ...o }) => /* @__PURE__ */ t(
797
- B,
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: i(
813
+ className: c(
801
814
  e,
802
- be.toastBox,
803
- o.onClick && be.clickable
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
- ), Co = "_toastContainer_1rek2_1", vo = {
810
- toastContainer: Co
811
- }, Yo = ({ ...e }) => /* @__PURE__ */ t(
812
- qe,
822
+ ), bo = "_toastContainer_1rek2_1", wo = {
823
+ toastContainer: bo
824
+ }, Jo = ({ ...e }) => /* @__PURE__ */ t(
825
+ Xe,
813
826
  {
814
- className: vo.toastContainer,
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
- ), Uo = (e, o) => Xe(e, o);
835
+ ), Ko = (e, o) => Ye(e, o);
823
836
  export {
824
- Ao as Alert,
825
- et as BaseWindow,
826
- ke as DRAGGABLE_CANCEL_CLASSNAME,
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
- Io as Drawer,
830
- zo as DrawerHeader,
831
- jo as InfoAlert,
832
- To as LoadingModal,
833
- bt as Modal,
834
- Xt as ModalActionButtons,
835
- Ut as ModalBody,
836
- Kt as ModalCloseButton,
837
- Jt as ModalContainer,
838
- Po as ModalFooter,
839
- Qt as ModalHeader,
840
- xe as ModalHeading,
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
- Le as NotificationHeader,
843
- Vo as NotificationList,
844
- qo as Toast,
845
- Xo as ToastBox,
846
- Yo as ToastContainer,
847
- no as UnreadDot,
848
- Mo as Window,
849
- Ro as WindowFooter,
850
- Bt as WindowHeader,
851
- ao as getIconBgColorFromVariant,
852
- Oo as setupDeclarativeModals,
853
- Uo as showToast,
854
- Wo as useAlertDialog,
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
- Eo as useDialogPromise,
857
- Ho as useDrawerDialog,
858
- So as useModalDialog
869
+ Ho as useDialogPromise,
870
+ jo as useDrawerDialog,
871
+ Po as useModalDialog
859
872
  };
860
873
  //# sourceMappingURL=index.es.js.map