@orioncactuscorp/ui 1.12.2 → 1.14.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/CHANGELOG.md +100 -0
- package/README.md +92 -12
- package/dist/components/Badge/Badge.css +1 -1
- package/dist/components/Badge/Badge.module.scss.js +12 -12
- package/dist/components/FloatingWindow/FloatingWindow.css +1 -0
- package/dist/components/FloatingWindow/FloatingWindow.js +692 -0
- package/dist/components/FloatingWindow/FloatingWindow.module.scss.js +17 -0
- package/dist/components/FloatingWindow/FloatingWindowManager.js +36 -0
- package/dist/components/FloatingWindow/contexts.js +25 -0
- package/dist/components/FloatingWindow/geometry.js +222 -0
- package/dist/components/FloatingWindow/stack.js +31 -0
- package/dist/components/FloatingWindow.d.ts +6 -0
- package/dist/components/FloatingWindow.js +18 -0
- package/dist/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +534 -715
- package/dist/components/Modal/Modal.module.scss.js +46 -44
- package/dist/components/Modal/initialFocus.js +11 -0
- package/dist/components/Modal/useModalDrag.js +328 -310
- package/dist/components/internal/ModalPresentation.js +359 -0
- package/dist/index.js +108 -92
- package/dist/styles.css +3 -2
- package/dist/ui/src/components/Badge/types.d.ts +1 -1
- package/dist/ui/src/components/Badge/types.d.ts.map +1 -1
- package/dist/ui/src/components/FloatingWindow/FloatingWindow.d.ts +32 -0
- package/dist/ui/src/components/FloatingWindow/FloatingWindow.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/FloatingWindowManager.d.ts +4 -0
- package/dist/ui/src/components/FloatingWindow/FloatingWindowManager.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/contexts.d.ts +36 -0
- package/dist/ui/src/components/FloatingWindow/contexts.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/geometry.d.ts +31 -0
- package/dist/ui/src/components/FloatingWindow/geometry.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/index.d.ts +4 -0
- package/dist/ui/src/components/FloatingWindow/index.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/stack.d.ts +9 -0
- package/dist/ui/src/components/FloatingWindow/stack.d.ts.map +1 -0
- package/dist/ui/src/components/FloatingWindow/types.d.ts +121 -0
- package/dist/ui/src/components/FloatingWindow/types.d.ts.map +1 -0
- package/dist/ui/src/components/Modal/Modal.d.ts +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/contexts.d.ts +3 -0
- package/dist/ui/src/components/Modal/contexts.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/initialFocus.d.ts +18 -0
- package/dist/ui/src/components/Modal/initialFocus.d.ts.map +1 -0
- package/dist/ui/src/components/Modal/types.d.ts +9 -1
- package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
- package/dist/ui/src/components/internal/ModalPresentation.d.ts +61 -0
- package/dist/ui/src/components/internal/ModalPresentation.d.ts.map +1 -0
- package/dist/ui/src/index.d.ts +2 -0
- package/dist/ui/src/index.d.ts.map +1 -1
- package/dist/ui/src/utils/motion.d.ts.map +1 -1
- package/dist/utils/motion.js +194 -135
- package/docs/api-conventions.md +2 -5
- package/docs/motion.md +4 -0
- package/docs/selector-contract.md +58 -0
- package/package.json +2 -2
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import { resolveModalSnapMetrics as Rt, resolveModalPopupSnapPositions as Bt } from "./snapPoints.js";
|
|
24
|
-
import c from "./Modal.module.scss.js";
|
|
25
|
-
function R(...e) {
|
|
26
|
-
return e.filter(Boolean).join(" ");
|
|
27
|
-
}
|
|
28
|
-
function Qe(e) {
|
|
29
|
-
return e != null && e !== !1 && e !== "";
|
|
30
|
-
}
|
|
31
|
-
function Pt(e) {
|
|
2
|
+
import { jsx as u, jsxs as Oe } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as A, useState as l, useMemo as Z, useLayoutEffect as ue, useEffect as Y, useCallback as g } from "react";
|
|
4
|
+
import { Dialog as L } from "@base-ui-components/react/dialog";
|
|
5
|
+
import lt from "@orioncactuscorp/icons/orioncactus/CloseThick";
|
|
6
|
+
import ut from "../BackgroundIconButton/BackgroundIconButton.js";
|
|
7
|
+
import { mergeRefs as Be } from "../../utils/mergeRefs.js";
|
|
8
|
+
import { useModalContext as ee, ModalProvider as mt } from "./contexts.js";
|
|
9
|
+
import { useControllableState as pt } from "./useControllableState.js";
|
|
10
|
+
import { useModalContentBlockTransition as ft } from "./useModalContentBlockTransition.js";
|
|
11
|
+
import { useMeasuredElement as qe } from "./useElementSize.js";
|
|
12
|
+
import { useModalDrag as ht } from "./useModalDrag.js";
|
|
13
|
+
import { useModalPlacement as gt } from "./useModalPlacement.js";
|
|
14
|
+
import { useModalStackDepth as bt } from "./useModalStackDepth.js";
|
|
15
|
+
import { resolveContentSizedBottomSheetHeight as St } from "./bottomSheetGeometry.js";
|
|
16
|
+
import { getModalScrollState as vt } from "./modalScrollArbitration.js";
|
|
17
|
+
import { resolveModalInitialFocus as kt } from "./initialFocus.js";
|
|
18
|
+
import { useModalBodyScrollState as yt, ModalBodyFrame as wt, ModalSurfaceFrame as Mt, resolveModalFooterBackground as Ct, ModalFooterFrame as Ht, ModalHeaderFrame as Nt, ModalNavigationSectionFrame as Tt, mergeModalClassName as xt } from "../internal/ModalPresentation.js";
|
|
19
|
+
import { resolveModalSnapMetrics as Ft, resolveModalPopupSnapPositions as Rt } from "./snapPoints.js";
|
|
20
|
+
import x from "./Modal.module.scss.js";
|
|
21
|
+
const ke = xt;
|
|
22
|
+
function Bt(e) {
|
|
32
23
|
if (!e) return;
|
|
33
24
|
const t = Object.entries(e).filter(
|
|
34
25
|
([n]) => n.startsWith("--")
|
|
@@ -36,10 +27,10 @@ function Pt(e) {
|
|
|
36
27
|
if (t.length !== 0)
|
|
37
28
|
return Object.fromEntries(t);
|
|
38
29
|
}
|
|
39
|
-
function
|
|
30
|
+
function $e() {
|
|
40
31
|
return typeof window > "u" ? 0 : window.visualViewport?.height ?? window.innerHeight;
|
|
41
32
|
}
|
|
42
|
-
function
|
|
33
|
+
function Pt(e) {
|
|
43
34
|
const t = e.trim();
|
|
44
35
|
if (!t.endsWith("px")) return;
|
|
45
36
|
const n = Number.parseFloat(t);
|
|
@@ -47,80 +38,80 @@ function Ft(e) {
|
|
|
47
38
|
}
|
|
48
39
|
function Dt(e) {
|
|
49
40
|
if (!(!e || typeof window > "u"))
|
|
50
|
-
return
|
|
41
|
+
return Pt(window.getComputedStyle(e).maxHeight);
|
|
51
42
|
}
|
|
52
|
-
function
|
|
43
|
+
function At({
|
|
53
44
|
contentTransition: e,
|
|
54
45
|
placement: t,
|
|
55
46
|
resize: n
|
|
56
47
|
}) {
|
|
57
48
|
return e !== "auto" || n !== "content" || t === "full" ? "none" : t === "bottom" ? "sheet" : "surface";
|
|
58
49
|
}
|
|
59
|
-
function
|
|
50
|
+
function Ke(e, t) {
|
|
60
51
|
return e.resolvedBackdrop === t ? e : {
|
|
61
52
|
resolvedBackdrop: t,
|
|
62
53
|
exiting: t === "hidden" && e.resolvedBackdrop !== "hidden"
|
|
63
54
|
};
|
|
64
55
|
}
|
|
65
|
-
function
|
|
66
|
-
const [t, n] =
|
|
67
|
-
return
|
|
56
|
+
function Et(e) {
|
|
57
|
+
const [t, n] = l($e);
|
|
58
|
+
return ue(() => {
|
|
68
59
|
if (!e || typeof window > "u") return;
|
|
69
|
-
const
|
|
70
|
-
n(
|
|
60
|
+
const r = () => {
|
|
61
|
+
n($e());
|
|
71
62
|
};
|
|
72
|
-
return
|
|
73
|
-
window.removeEventListener("resize",
|
|
63
|
+
return r(), window.addEventListener("resize", r), window.visualViewport?.addEventListener("resize", r), () => {
|
|
64
|
+
window.removeEventListener("resize", r), window.visualViewport?.removeEventListener(
|
|
74
65
|
"resize",
|
|
75
|
-
|
|
66
|
+
r
|
|
76
67
|
);
|
|
77
68
|
};
|
|
78
69
|
}, [e]), t;
|
|
79
70
|
}
|
|
80
|
-
function
|
|
71
|
+
function Vt(e) {
|
|
81
72
|
const t = e.trim();
|
|
82
73
|
return t.endsWith("ms") ? Number.parseFloat(t) || 0 : t.endsWith("s") ? (Number.parseFloat(t) || 0) * 1e3 : 0;
|
|
83
74
|
}
|
|
84
|
-
function
|
|
85
|
-
return e.split(",").reduce((t, n) => Math.max(t,
|
|
86
|
-
}
|
|
87
|
-
function Vt(e) {
|
|
88
|
-
const t = window.getComputedStyle(e), n = we(t.animationDuration), a = we(t.animationDelay);
|
|
89
|
-
return n + a + 250;
|
|
75
|
+
function ye(e) {
|
|
76
|
+
return e.split(",").reduce((t, n) => Math.max(t, Vt(n)), 0);
|
|
90
77
|
}
|
|
91
78
|
function Lt(e) {
|
|
92
|
-
const t = window.getComputedStyle(e), n =
|
|
93
|
-
return n +
|
|
79
|
+
const t = window.getComputedStyle(e), n = ye(t.animationDuration), r = ye(t.animationDelay);
|
|
80
|
+
return n + r + 250;
|
|
94
81
|
}
|
|
95
|
-
function
|
|
82
|
+
function jt(e) {
|
|
83
|
+
const t = window.getComputedStyle(e), n = ye(t.transitionDuration), r = ye(t.transitionDelay);
|
|
84
|
+
return n + r + 250;
|
|
85
|
+
}
|
|
86
|
+
function It({
|
|
96
87
|
defaultSnapPosition: e,
|
|
97
88
|
node: t,
|
|
98
89
|
snapPositions: n
|
|
99
90
|
}) {
|
|
100
91
|
if (!n?.length) return;
|
|
101
|
-
const
|
|
92
|
+
const r = Rt({
|
|
102
93
|
defaultSnapPosition: e,
|
|
103
94
|
snapPositions: n,
|
|
104
95
|
surfaceMotion: t
|
|
105
96
|
});
|
|
106
|
-
if (!
|
|
107
|
-
const
|
|
97
|
+
if (!r) return;
|
|
98
|
+
const i = r.defaultTarget;
|
|
108
99
|
t.style.setProperty(
|
|
109
100
|
"--oc-modal-translate-x",
|
|
110
|
-
|
|
101
|
+
i.settledTranslate?.x ?? `${i.x}px`
|
|
111
102
|
), t.style.setProperty(
|
|
112
103
|
"--oc-modal-translate-y",
|
|
113
|
-
|
|
104
|
+
i.settledTranslate?.y ?? `${i.y}px`
|
|
114
105
|
);
|
|
115
106
|
}
|
|
116
|
-
function
|
|
107
|
+
function zt(e) {
|
|
117
108
|
if (e && typeof e == "object" && "reason" in e && typeof e.reason == "string")
|
|
118
109
|
return e.reason;
|
|
119
110
|
}
|
|
120
|
-
function
|
|
111
|
+
function ve(e) {
|
|
121
112
|
e && typeof e == "object" && "cancel" in e && typeof e.cancel == "function" && e.cancel();
|
|
122
113
|
}
|
|
123
|
-
function
|
|
114
|
+
function Ot(e, t) {
|
|
124
115
|
switch (t) {
|
|
125
116
|
case "drag-dismiss":
|
|
126
117
|
return e?.drag ?? "auto";
|
|
@@ -138,22 +129,22 @@ function $t(e, t) {
|
|
|
138
129
|
return e?.programmatic ?? "auto";
|
|
139
130
|
}
|
|
140
131
|
}
|
|
141
|
-
function
|
|
132
|
+
function qt(e, t) {
|
|
142
133
|
return t > 0 && (e === "drag-dismiss" || e === "backdrop-press" || e === "outside-press");
|
|
143
134
|
}
|
|
144
|
-
function
|
|
135
|
+
function We(e, t) {
|
|
145
136
|
return t && (e === "backdrop-press" || e === "outside-press");
|
|
146
137
|
}
|
|
147
|
-
function
|
|
138
|
+
function $t({
|
|
148
139
|
backdrop: e,
|
|
149
140
|
canSnapPopup: t,
|
|
150
141
|
placement: n,
|
|
151
|
-
presentationState:
|
|
142
|
+
presentationState: r
|
|
152
143
|
}) {
|
|
153
|
-
return e !== "auto" ? e : n === "bottom" &&
|
|
144
|
+
return e !== "auto" ? e : n === "bottom" && r === "peeked" || t ? "hidden" : "visible";
|
|
154
145
|
}
|
|
155
146
|
function Kt(e) {
|
|
156
|
-
switch (
|
|
147
|
+
switch (zt(e)) {
|
|
157
148
|
case "close-press":
|
|
158
149
|
return "close-button";
|
|
159
150
|
case "outside-press":
|
|
@@ -168,429 +159,437 @@ function Kt(e) {
|
|
|
168
159
|
return "programmatic";
|
|
169
160
|
}
|
|
170
161
|
}
|
|
171
|
-
function
|
|
172
|
-
return e >= 2 && e <= 6;
|
|
173
|
-
}
|
|
174
|
-
function We({
|
|
162
|
+
function Ue({
|
|
175
163
|
children: e,
|
|
176
164
|
open: t,
|
|
177
165
|
defaultOpen: n,
|
|
178
|
-
modal:
|
|
179
|
-
onOpenChange:
|
|
180
|
-
canCloseAttempt:
|
|
181
|
-
onCloseAttempt:
|
|
182
|
-
presentationState:
|
|
183
|
-
defaultPresentationState:
|
|
184
|
-
onPresentationStateChange:
|
|
185
|
-
disablePointerDismissal:
|
|
186
|
-
navigationDepth:
|
|
187
|
-
dismissBehavior:
|
|
166
|
+
modal: r = !0,
|
|
167
|
+
onOpenChange: i,
|
|
168
|
+
canCloseAttempt: f,
|
|
169
|
+
onCloseAttempt: b,
|
|
170
|
+
presentationState: S,
|
|
171
|
+
defaultPresentationState: m = "visible",
|
|
172
|
+
onPresentationStateChange: F,
|
|
173
|
+
disablePointerDismissal: v,
|
|
174
|
+
navigationDepth: R = 0,
|
|
175
|
+
dismissBehavior: k
|
|
188
176
|
}) {
|
|
189
|
-
const
|
|
177
|
+
const y = t !== void 0, [te, j] = l(
|
|
190
178
|
n ?? !1
|
|
191
|
-
),
|
|
179
|
+
), oe = y ? t : te, [ne, we] = l("bottom"), [I, Me] = l(!1), [o, re] = l(!1), [E, me] = l(!1), [c, pe] = l(!1), [ae, se] = l(0), [K, W] = l(0), [fe, Ce] = l(null), [he, U] = l(null), [w, C] = l({
|
|
192
180
|
canScroll: !1,
|
|
193
181
|
scrolledFromTop: !1,
|
|
194
182
|
scrolledToBottom: !0
|
|
195
|
-
}), [
|
|
196
|
-
value:
|
|
197
|
-
defaultValue:
|
|
198
|
-
onChange:
|
|
199
|
-
}), B =
|
|
200
|
-
(
|
|
201
|
-
|
|
183
|
+
}), [H, _] = pt({
|
|
184
|
+
value: S,
|
|
185
|
+
defaultValue: m,
|
|
186
|
+
onChange: F
|
|
187
|
+
}), B = qe(), z = qe(), N = Math.max(0, R), d = g(
|
|
188
|
+
(a, h) => {
|
|
189
|
+
y || j(a), i?.(a, h);
|
|
202
190
|
},
|
|
203
|
-
[
|
|
204
|
-
),
|
|
205
|
-
(
|
|
206
|
-
[
|
|
207
|
-
),
|
|
208
|
-
(
|
|
209
|
-
|
|
191
|
+
[i, y]
|
|
192
|
+
), P = g(
|
|
193
|
+
(a = { reason: "programmatic" }) => f?.(a) !== !1,
|
|
194
|
+
[f]
|
|
195
|
+
), D = g(
|
|
196
|
+
(a = { reason: "programmatic" }) => {
|
|
197
|
+
se((h) => h + 1);
|
|
210
198
|
},
|
|
211
199
|
[]
|
|
212
|
-
),
|
|
213
|
-
|
|
214
|
-
}, []),
|
|
215
|
-
(
|
|
216
|
-
if (
|
|
200
|
+
), O = g(() => {
|
|
201
|
+
W((a) => a + 1);
|
|
202
|
+
}, []), V = g(
|
|
203
|
+
(a = { reason: "programmatic" }) => {
|
|
204
|
+
if (We(a.reason, E))
|
|
217
205
|
return !1;
|
|
218
|
-
const
|
|
219
|
-
return
|
|
206
|
+
const h = Ot(k, a.reason);
|
|
207
|
+
return h === "allow" ? !0 : h === "block" ? !1 : !qt(a.reason, N);
|
|
220
208
|
},
|
|
221
|
-
[
|
|
222
|
-
),
|
|
223
|
-
(
|
|
224
|
-
const { commit:
|
|
225
|
-
return !
|
|
209
|
+
[E, k, N]
|
|
210
|
+
), q = g(
|
|
211
|
+
(a = { reason: "programmatic" }, h = {}) => {
|
|
212
|
+
const { commit: M = !0, skipAttempt: G = !1 } = h;
|
|
213
|
+
return !G && We(a.reason, E) ? (ve(a.eventDetails), !1) : !G && !V(a) || !G && !P(a) || !G && b?.(a) === !1 ? (ve(a.eventDetails), D(a), !1) : (M && d(!1, a.eventDetails), !0);
|
|
226
214
|
},
|
|
227
215
|
[
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
216
|
+
P,
|
|
217
|
+
E,
|
|
218
|
+
V,
|
|
219
|
+
d,
|
|
231
220
|
D,
|
|
232
|
-
|
|
233
|
-
m
|
|
221
|
+
b
|
|
234
222
|
]
|
|
235
|
-
),
|
|
236
|
-
(
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
reason: Kt(
|
|
240
|
-
eventDetails:
|
|
223
|
+
), ie = g(
|
|
224
|
+
(a, h) => {
|
|
225
|
+
if (a && H === "peeked" && _("visible"), !a) {
|
|
226
|
+
q({
|
|
227
|
+
reason: Kt(h),
|
|
228
|
+
eventDetails: h
|
|
241
229
|
});
|
|
242
230
|
return;
|
|
243
231
|
}
|
|
244
|
-
|
|
232
|
+
d(a, h);
|
|
245
233
|
},
|
|
246
|
-
[
|
|
247
|
-
),
|
|
234
|
+
[d, H, q, _]
|
|
235
|
+
), T = H === "visible" && !c ? r : !1, ge = v || ne === "bottom" && (I || c), $ = Z(
|
|
248
236
|
() => ({
|
|
249
|
-
open:
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
237
|
+
open: oe,
|
|
238
|
+
modal: T,
|
|
239
|
+
placement: ne,
|
|
240
|
+
setPlacement: we,
|
|
241
|
+
presentationState: H,
|
|
242
|
+
setPresentationState: _,
|
|
243
|
+
requestClose: q,
|
|
244
|
+
canDismissByBehavior: V,
|
|
245
|
+
canCloseAttempt: P,
|
|
246
|
+
closeAttemptFeedbackKey: ae,
|
|
247
|
+
notifyCloseAttemptRejected: D,
|
|
248
|
+
disablePointerDismissal: v ?? !1,
|
|
249
|
+
setBackdropDismissalDisabled: me,
|
|
250
|
+
setBackgroundInteractive: pe,
|
|
251
|
+
canPeek: I,
|
|
252
|
+
setCanPeek: Me,
|
|
264
253
|
canRenderHandle: o,
|
|
265
|
-
setCanRenderHandle:
|
|
266
|
-
popupSnapLayoutVersion:
|
|
267
|
-
notifyPopupSnapLayoutChange:
|
|
254
|
+
setCanRenderHandle: re,
|
|
255
|
+
popupSnapLayoutVersion: K,
|
|
256
|
+
notifyPopupSnapLayoutChange: O,
|
|
268
257
|
headerHeight: B.height,
|
|
269
|
-
footerHeight:
|
|
258
|
+
footerHeight: z.height,
|
|
270
259
|
setHeaderNode: B.setNode,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
260
|
+
titleNode: he,
|
|
261
|
+
setTitleNode: U,
|
|
262
|
+
setFooterNode: z.setNode,
|
|
263
|
+
bodyNode: fe,
|
|
264
|
+
setBodyNode: Ce,
|
|
265
|
+
scrollState: w,
|
|
266
|
+
setScrollState: C
|
|
276
267
|
}),
|
|
277
268
|
[
|
|
278
|
-
|
|
279
|
-
|
|
269
|
+
fe,
|
|
270
|
+
I,
|
|
280
271
|
o,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
272
|
+
V,
|
|
273
|
+
P,
|
|
274
|
+
ae,
|
|
275
|
+
z.height,
|
|
276
|
+
z.setNode,
|
|
286
277
|
B.height,
|
|
287
278
|
B.setNode,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
W,
|
|
279
|
+
T,
|
|
280
|
+
D,
|
|
291
281
|
O,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
282
|
+
K,
|
|
283
|
+
oe,
|
|
284
|
+
ne,
|
|
285
|
+
q,
|
|
286
|
+
w,
|
|
287
|
+
v,
|
|
288
|
+
H,
|
|
289
|
+
_,
|
|
290
|
+
U,
|
|
291
|
+
he
|
|
298
292
|
]
|
|
299
293
|
);
|
|
300
|
-
return /* @__PURE__ */
|
|
301
|
-
|
|
294
|
+
return /* @__PURE__ */ u(mt, { value: $, children: /* @__PURE__ */ u(
|
|
295
|
+
L.Root,
|
|
302
296
|
{
|
|
303
|
-
open:
|
|
304
|
-
modal:
|
|
305
|
-
onOpenChange:
|
|
297
|
+
open: oe,
|
|
298
|
+
modal: T,
|
|
299
|
+
onOpenChange: ie,
|
|
306
300
|
disablePointerDismissal: ge,
|
|
307
301
|
children: e
|
|
308
302
|
}
|
|
309
303
|
) });
|
|
310
304
|
}
|
|
311
|
-
function
|
|
305
|
+
function Wt({
|
|
312
306
|
className: e = "",
|
|
313
307
|
children: t,
|
|
314
308
|
render: n,
|
|
315
|
-
nativeButton:
|
|
309
|
+
nativeButton: r
|
|
316
310
|
}) {
|
|
317
|
-
return n ? /* @__PURE__ */
|
|
318
|
-
|
|
311
|
+
return n ? /* @__PURE__ */ u(
|
|
312
|
+
L.Trigger,
|
|
319
313
|
{
|
|
320
314
|
render: n,
|
|
321
|
-
nativeButton:
|
|
315
|
+
nativeButton: r,
|
|
322
316
|
"data-oc-component": "modal-trigger",
|
|
323
317
|
children: t
|
|
324
318
|
}
|
|
325
|
-
) : /* @__PURE__ */
|
|
326
|
-
|
|
319
|
+
) : /* @__PURE__ */ u(
|
|
320
|
+
L.Trigger,
|
|
327
321
|
{
|
|
328
|
-
className:
|
|
329
|
-
nativeButton:
|
|
322
|
+
className: ke(x.trigger, e),
|
|
323
|
+
nativeButton: r,
|
|
330
324
|
"data-oc-component": "modal-trigger",
|
|
331
325
|
children: t
|
|
332
326
|
}
|
|
333
327
|
);
|
|
334
328
|
}
|
|
335
|
-
function
|
|
329
|
+
function Ut({
|
|
336
330
|
className: e = "",
|
|
337
331
|
children: t,
|
|
338
332
|
variant: n = "adaptive",
|
|
339
|
-
size:
|
|
340
|
-
resize:
|
|
341
|
-
contentTransition:
|
|
342
|
-
backdrop:
|
|
343
|
-
backdropFrom:
|
|
344
|
-
drag:
|
|
345
|
-
peekable:
|
|
346
|
-
snapPoints:
|
|
347
|
-
defaultSnapPoint:
|
|
348
|
-
snapPositions:
|
|
349
|
-
defaultSnapPosition:
|
|
350
|
-
initialFocus:
|
|
351
|
-
peekHeight:
|
|
352
|
-
closeThreshold:
|
|
353
|
-
scrollLockTimeout:
|
|
354
|
-
container:
|
|
355
|
-
style:
|
|
356
|
-
...
|
|
333
|
+
size: r = "medium",
|
|
334
|
+
resize: i = "content",
|
|
335
|
+
contentTransition: f = "auto",
|
|
336
|
+
backdrop: b = "auto",
|
|
337
|
+
backdropFrom: S,
|
|
338
|
+
drag: m = "content",
|
|
339
|
+
peekable: F = !1,
|
|
340
|
+
snapPoints: v,
|
|
341
|
+
defaultSnapPoint: R,
|
|
342
|
+
snapPositions: k,
|
|
343
|
+
defaultSnapPosition: y,
|
|
344
|
+
initialFocus: te,
|
|
345
|
+
peekHeight: j,
|
|
346
|
+
closeThreshold: oe,
|
|
347
|
+
scrollLockTimeout: ne,
|
|
348
|
+
container: we,
|
|
349
|
+
style: I,
|
|
350
|
+
...Me
|
|
357
351
|
}) {
|
|
358
|
-
const o =
|
|
352
|
+
const o = ee("ModalContent"), { setCanPeek: re, setCanRenderHandle: E, setPlacement: me } = o, c = gt(n), pe = A(null), ae = A(null), se = A(null), K = A(null), [W, fe] = l(null), [Ce, he] = l(
|
|
359
353
|
null
|
|
360
|
-
),
|
|
361
|
-
backdrop:
|
|
362
|
-
canSnapPopup:
|
|
363
|
-
placement:
|
|
354
|
+
), U = A(0), w = A(null), C = A(null), H = A(null), [_, B] = l(), z = m === "handle" || m === "content", N = c === "popup" && z && !!k?.length, d = $t({
|
|
355
|
+
backdrop: b,
|
|
356
|
+
canSnapPopup: N,
|
|
357
|
+
placement: c,
|
|
364
358
|
presentationState: o.presentationState
|
|
365
|
-
}), [
|
|
366
|
-
resolvedBackdrop:
|
|
359
|
+
}), [P, D] = l(() => ({
|
|
360
|
+
resolvedBackdrop: d,
|
|
367
361
|
exiting: !1
|
|
368
|
-
})),
|
|
369
|
-
() =>
|
|
370
|
-
[
|
|
371
|
-
),
|
|
372
|
-
!!
|
|
373
|
-
),
|
|
374
|
-
if (!(!
|
|
375
|
-
return
|
|
376
|
-
snapPoints:
|
|
377
|
-
defaultSnapPoint:
|
|
378
|
-
backdropFrom:
|
|
379
|
-
viewportHeight:
|
|
362
|
+
})), O = Z(
|
|
363
|
+
() => Ke(P, d),
|
|
364
|
+
[P, d]
|
|
365
|
+
), V = O.exiting, q = N && d === "hidden", ie = (c === "bottom" || N) && z, T = c === "bottom" && ie && F, ge = T && j !== void 0 ? j : o.headerHeight > 0 ? o.headerHeight : void 0, $ = c === "bottom" && i !== "fixed", a = Et(
|
|
366
|
+
!!v?.length || $
|
|
367
|
+
), h = Z(() => {
|
|
368
|
+
if (!(!v?.length || a <= 0))
|
|
369
|
+
return Ft({
|
|
370
|
+
snapPoints: v,
|
|
371
|
+
defaultSnapPoint: R,
|
|
372
|
+
backdropFrom: S,
|
|
373
|
+
viewportHeight: a
|
|
380
374
|
});
|
|
381
|
-
}, [
|
|
382
|
-
contentTransition:
|
|
383
|
-
placement:
|
|
384
|
-
resize:
|
|
385
|
-
}),
|
|
386
|
-
|
|
387
|
-
enabled: o.open &&
|
|
388
|
-
node:
|
|
389
|
-
}),
|
|
390
|
-
if (
|
|
391
|
-
|
|
375
|
+
}, [S, R, v, a]), M = c === "bottom" ? h : void 0, G = bt(o.open), [be, Ge] = l(0), Se = A(!1), Je = M !== void 0 && $, He = $ && be > 0 ? be : void 0, J = M ? Je && He !== void 0 ? He : M.sheetHeight : He, Qe = M && J !== void 0 ? Math.max(0, J - M.defaultHeight) : void 0, Xe = J !== void 0, Ne = At({
|
|
376
|
+
contentTransition: f,
|
|
377
|
+
placement: c,
|
|
378
|
+
resize: i
|
|
379
|
+
}), Ye = Ne === "surface" ? "auto" : "none", Ze = Ne === "sheet" ? "auto" : "none", Pe = o.bodyNode;
|
|
380
|
+
ft({
|
|
381
|
+
enabled: o.open && Ne === "surface",
|
|
382
|
+
node: Ce
|
|
383
|
+
}), ue(() => {
|
|
384
|
+
if (!$) {
|
|
385
|
+
Se.current = !1;
|
|
392
386
|
return;
|
|
393
387
|
}
|
|
394
|
-
const
|
|
395
|
-
if (!
|
|
396
|
-
|
|
388
|
+
const s = Pe?.firstElementChild;
|
|
389
|
+
if (!s) {
|
|
390
|
+
Se.current = !1;
|
|
397
391
|
return;
|
|
398
392
|
}
|
|
399
|
-
const
|
|
400
|
-
const
|
|
401
|
-
contentHeight:
|
|
402
|
-
maxHeight: Dt(
|
|
403
|
-
snapHeight:
|
|
404
|
-
}),
|
|
405
|
-
|
|
393
|
+
const p = () => {
|
|
394
|
+
const X = s.getBoundingClientRect().height, le = St({
|
|
395
|
+
contentHeight: X,
|
|
396
|
+
maxHeight: Dt(W),
|
|
397
|
+
snapHeight: M?.sheetHeight
|
|
398
|
+
}), ze = Math.abs(be - le) > 0.5;
|
|
399
|
+
Se.current = ze, ze && Ge(le);
|
|
406
400
|
};
|
|
407
|
-
if (
|
|
408
|
-
const
|
|
409
|
-
return
|
|
401
|
+
if (p(), typeof ResizeObserver > "u") return;
|
|
402
|
+
const de = new ResizeObserver(p);
|
|
403
|
+
return de.observe(s), () => de.disconnect();
|
|
410
404
|
}, [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
]),
|
|
418
|
-
|
|
419
|
-
}, [
|
|
420
|
-
o.open || (
|
|
421
|
-
}, [o.open]),
|
|
422
|
-
const
|
|
423
|
-
() =>
|
|
405
|
+
Pe,
|
|
406
|
+
$,
|
|
407
|
+
M?.sheetHeight,
|
|
408
|
+
be,
|
|
409
|
+
a,
|
|
410
|
+
W
|
|
411
|
+
]), Y(() => {
|
|
412
|
+
me(c);
|
|
413
|
+
}, [c, me]), Y(() => {
|
|
414
|
+
o.open || (K.current = null);
|
|
415
|
+
}, [o.open]), Y(() => (re(T), () => re(!1)), [T, re]), Y(() => (E(ie), () => E(!1)), [ie, E]);
|
|
416
|
+
const et = g(
|
|
417
|
+
() => Se.current,
|
|
424
418
|
[]
|
|
425
|
-
),
|
|
426
|
-
Ae(
|
|
427
|
-
}, [
|
|
428
|
-
Le(!
|
|
419
|
+
), De = o.bodyNode, Ae = o.setScrollState, tt = g(() => {
|
|
420
|
+
Ae(vt(De));
|
|
421
|
+
}, [De, Ae]), Ee = M?.backdropFromHeight, [Ve, Le] = l(!1), ot = g((s) => {
|
|
422
|
+
Le(!s);
|
|
429
423
|
}, []);
|
|
430
424
|
!o.open && Ve && Le(!1);
|
|
431
|
-
const
|
|
432
|
-
enabled:
|
|
433
|
-
drag:
|
|
425
|
+
const Te = Ee !== void 0 && Ve, { collapseBottomSheetToUndimmedSnap: xe, handlers: nt } = ht({
|
|
426
|
+
enabled: m !== !1,
|
|
427
|
+
drag: m,
|
|
434
428
|
open: o.open,
|
|
435
|
-
placement:
|
|
436
|
-
surfaceMotionRef:
|
|
437
|
-
surfaceMotionNode:
|
|
438
|
-
backdropRef:
|
|
429
|
+
placement: c,
|
|
430
|
+
surfaceMotionRef: pe,
|
|
431
|
+
surfaceMotionNode: W,
|
|
432
|
+
backdropRef: se,
|
|
439
433
|
bodyNode: o.bodyNode,
|
|
440
|
-
snapHeights:
|
|
441
|
-
sheetHeight:
|
|
442
|
-
backdropFromHeight:
|
|
443
|
-
onBackdropDimRestChange:
|
|
444
|
-
peekHeight:
|
|
445
|
-
peekFallback:
|
|
434
|
+
snapHeights: M?.snapHeights,
|
|
435
|
+
sheetHeight: J,
|
|
436
|
+
backdropFromHeight: Ee,
|
|
437
|
+
onBackdropDimRestChange: ot,
|
|
438
|
+
peekHeight: T ? j : void 0,
|
|
439
|
+
peekFallback: T ? "header" : void 0,
|
|
446
440
|
presentationState: o.presentationState,
|
|
447
441
|
setPresentationState: o.setPresentationState,
|
|
448
442
|
requestClose: o.requestClose,
|
|
449
443
|
canCloseAttempt: o.canCloseAttempt,
|
|
450
444
|
dismissible: !o.disablePointerDismissal && o.canDismissByBehavior({ reason: "drag-dismiss" }),
|
|
451
|
-
backdropHidden:
|
|
452
|
-
visibleTranslate:
|
|
453
|
-
shouldDeferBottomSettle:
|
|
454
|
-
refreshScrollState:
|
|
455
|
-
snapPositions:
|
|
456
|
-
defaultSnapPosition:
|
|
457
|
-
closeThreshold:
|
|
458
|
-
scrollLockTimeout:
|
|
445
|
+
backdropHidden: d === "hidden",
|
|
446
|
+
visibleTranslate: Qe,
|
|
447
|
+
shouldDeferBottomSettle: et,
|
|
448
|
+
refreshScrollState: tt,
|
|
449
|
+
snapPositions: N ? k : void 0,
|
|
450
|
+
defaultSnapPosition: y,
|
|
451
|
+
closeThreshold: oe,
|
|
452
|
+
scrollLockTimeout: ne,
|
|
459
453
|
popupSnapLayoutVersion: o.popupSnapLayoutVersion
|
|
460
|
-
}),
|
|
461
|
-
(
|
|
462
|
-
|
|
463
|
-
defaultSnapPosition:
|
|
464
|
-
node:
|
|
465
|
-
snapPositions:
|
|
466
|
-
}),
|
|
454
|
+
}), rt = g(
|
|
455
|
+
(s) => {
|
|
456
|
+
pe.current = s, fe(s), s && o.open && N && K.current !== s && (It({
|
|
457
|
+
defaultSnapPosition: y,
|
|
458
|
+
node: s,
|
|
459
|
+
snapPositions: k
|
|
460
|
+
}), K.current = s);
|
|
467
461
|
},
|
|
468
|
-
[
|
|
469
|
-
),
|
|
470
|
-
|
|
462
|
+
[N, o.open, y, k]
|
|
463
|
+
), at = g((s) => {
|
|
464
|
+
ae.current = s, he(s);
|
|
471
465
|
}, []);
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
if (
|
|
475
|
-
|
|
466
|
+
Y(() => {
|
|
467
|
+
const s = o.closeAttemptFeedbackKey;
|
|
468
|
+
if (s === 0 || c !== "popup" || U.current === s) {
|
|
469
|
+
U.current = s, B(void 0);
|
|
476
470
|
return;
|
|
477
471
|
}
|
|
478
|
-
const
|
|
479
|
-
if (!
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
},
|
|
484
|
-
|
|
472
|
+
const p = ae.current;
|
|
473
|
+
if (!p) return;
|
|
474
|
+
U.current = s, w.current !== null && window.cancelAnimationFrame(w.current), C.current !== null && window.clearTimeout(C.current), B(void 0);
|
|
475
|
+
const de = () => {
|
|
476
|
+
B(void 0), C.current = null;
|
|
477
|
+
}, X = (le) => {
|
|
478
|
+
le.target === p && le.animationName === "oc-modal-reject-shake" && (p.removeEventListener("animationend", X), C.current !== null && window.clearTimeout(C.current), de());
|
|
485
479
|
};
|
|
486
|
-
return
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
},
|
|
480
|
+
return p.addEventListener("animationend", X), w.current = window.requestAnimationFrame(() => {
|
|
481
|
+
w.current = null, B("reject"), w.current = window.requestAnimationFrame(() => {
|
|
482
|
+
w.current = null, C.current = window.setTimeout(() => {
|
|
483
|
+
p.removeEventListener("animationend", X), de();
|
|
484
|
+
}, Lt(p));
|
|
491
485
|
});
|
|
492
486
|
}), () => {
|
|
493
|
-
|
|
487
|
+
p.removeEventListener("animationend", X), w.current !== null && (window.cancelAnimationFrame(w.current), w.current = null), C.current !== null && (window.clearTimeout(C.current), C.current = null);
|
|
494
488
|
};
|
|
495
|
-
}, [o.closeAttemptFeedbackKey,
|
|
496
|
-
const
|
|
497
|
-
...
|
|
489
|
+
}, [o.closeAttemptFeedbackKey, c]);
|
|
490
|
+
const je = Bt(I), st = {
|
|
491
|
+
...je,
|
|
498
492
|
...o.headerHeight > 0 ? { "--oc-modal-header-height": `${o.headerHeight}px` } : {},
|
|
499
493
|
...o.footerHeight > 0 ? { "--oc-modal-footer-height": `${o.footerHeight}px` } : {},
|
|
500
|
-
...
|
|
501
|
-
...
|
|
494
|
+
...ge !== void 0 ? { "--oc-modal-peek-height": `${ge}px` } : {},
|
|
495
|
+
...J !== void 0 ? { "--oc-modal-sheet-height": `${J}px` } : {}
|
|
502
496
|
// `--oc-modal-translate-y` and the inline `height` are owned imperatively
|
|
503
497
|
// by the drag hook: content-size transitions pin the surface to a canvas
|
|
504
498
|
// height and compensate the translate in the same frame. Rendering the
|
|
505
499
|
// height here would commit the new size before that compensation runs and
|
|
506
500
|
// make the sheet jump a frame early. The managed sizing CSS rule renders
|
|
507
501
|
// the resting height from `--oc-modal-sheet-height`.
|
|
508
|
-
},
|
|
502
|
+
}, Ie = {
|
|
509
503
|
// Each modal reserves one backdrop slot and one viewport slot.
|
|
510
|
-
"--oc-modal-stack-offset":
|
|
511
|
-
},
|
|
512
|
-
...
|
|
504
|
+
"--oc-modal-stack-offset": G * 2
|
|
505
|
+
}, it = o.headerHeight > 0 ? {
|
|
506
|
+
...I,
|
|
513
507
|
"--oc-modal-header-height": `${o.headerHeight}px`
|
|
514
|
-
} :
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
508
|
+
} : I, ct = kt({
|
|
509
|
+
contentNode: W,
|
|
510
|
+
initialFocus: te,
|
|
511
|
+
modal: o.modal,
|
|
512
|
+
titleNode: o.titleNode
|
|
513
|
+
}), { setBackdropDismissalDisabled: Fe, setBackgroundInteractive: Re } = o, dt = d !== "hidden" || V;
|
|
514
|
+
ue(() => {
|
|
515
|
+
O !== P && D(O);
|
|
516
|
+
}, [P, O]);
|
|
517
|
+
const Q = g(() => {
|
|
518
|
+
H.current !== null && (window.clearTimeout(H.current), H.current = null);
|
|
519
|
+
}, []), ce = g(() => {
|
|
520
|
+
d === "hidden" && (Q(), D((s) => {
|
|
521
|
+
const p = Ke(
|
|
522
|
+
s,
|
|
523
|
+
d
|
|
525
524
|
);
|
|
526
|
-
return
|
|
527
|
-
...
|
|
525
|
+
return p.resolvedBackdrop !== "hidden" || !p.exiting ? p : {
|
|
526
|
+
...p,
|
|
528
527
|
exiting: !1
|
|
529
528
|
};
|
|
530
529
|
}));
|
|
531
|
-
}, [
|
|
532
|
-
return
|
|
530
|
+
}, [Q, d]);
|
|
531
|
+
return Y(
|
|
533
532
|
() => () => {
|
|
534
|
-
|
|
533
|
+
Q();
|
|
535
534
|
},
|
|
536
|
-
[
|
|
537
|
-
),
|
|
538
|
-
if (!
|
|
539
|
-
const
|
|
540
|
-
if (!
|
|
541
|
-
|
|
535
|
+
[Q]
|
|
536
|
+
), ue(() => {
|
|
537
|
+
if (!V || d !== "hidden") return;
|
|
538
|
+
const s = se.current;
|
|
539
|
+
if (!s) {
|
|
540
|
+
H.current = window.setTimeout(ce, 0);
|
|
542
541
|
return;
|
|
543
542
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
543
|
+
Q(), H.current = window.setTimeout(
|
|
544
|
+
ce,
|
|
545
|
+
jt(s)
|
|
547
546
|
);
|
|
548
547
|
}, [
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
]),
|
|
554
|
-
|
|
548
|
+
Q,
|
|
549
|
+
ce,
|
|
550
|
+
V,
|
|
551
|
+
d
|
|
552
|
+
]), ue(() => (Fe(d === "hidden"), Re(q || Te), () => {
|
|
553
|
+
Fe(!1), Re(!1);
|
|
555
554
|
}), [
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
]), /* @__PURE__ */
|
|
562
|
-
|
|
563
|
-
|
|
555
|
+
Te,
|
|
556
|
+
q,
|
|
557
|
+
d,
|
|
558
|
+
Fe,
|
|
559
|
+
Re
|
|
560
|
+
]), /* @__PURE__ */ Oe(L.Portal, { container: we, children: [
|
|
561
|
+
dt ? /* @__PURE__ */ u(
|
|
562
|
+
L.Backdrop,
|
|
564
563
|
{
|
|
565
|
-
ref:
|
|
566
|
-
className:
|
|
564
|
+
ref: se,
|
|
565
|
+
className: x.backdrop,
|
|
567
566
|
"data-oc-part": "backdrop",
|
|
568
567
|
"data-oc-component": "modal-backdrop",
|
|
569
|
-
"data-oc-modal-backdrop":
|
|
570
|
-
"data-oc-modal-backdrop-passthrough":
|
|
571
|
-
"data-oc-modal-placement":
|
|
568
|
+
"data-oc-modal-backdrop": d,
|
|
569
|
+
"data-oc-modal-backdrop-passthrough": Te ? "true" : void 0,
|
|
570
|
+
"data-oc-modal-placement": c,
|
|
572
571
|
"data-oc-modal-presentation-state": o.presentationState,
|
|
573
|
-
style:
|
|
574
|
-
onTransitionCancel: (
|
|
575
|
-
|
|
572
|
+
style: Ie,
|
|
573
|
+
onTransitionCancel: (s) => {
|
|
574
|
+
s.currentTarget === s.target && s.propertyName === "opacity" && ce();
|
|
576
575
|
},
|
|
577
|
-
onTransitionEnd: (
|
|
578
|
-
|
|
576
|
+
onTransitionEnd: (s) => {
|
|
577
|
+
s.currentTarget === s.target && s.propertyName === "opacity" && ce();
|
|
579
578
|
},
|
|
580
579
|
onClick: () => {
|
|
581
580
|
if (o.disablePointerDismissal) {
|
|
582
|
-
if (
|
|
581
|
+
if (xe()) return;
|
|
583
582
|
o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
|
|
584
583
|
return;
|
|
585
584
|
}
|
|
586
585
|
if (!o.canDismissByBehavior({ reason: "backdrop-press" })) {
|
|
587
|
-
if (
|
|
586
|
+
if (xe()) return;
|
|
588
587
|
o.notifyCloseAttemptRejected({ reason: "backdrop-press" });
|
|
589
588
|
return;
|
|
590
589
|
}
|
|
591
|
-
if (
|
|
590
|
+
if (c === "bottom" && T) {
|
|
592
591
|
if (o.presentationState === "visible") {
|
|
593
|
-
if (
|
|
592
|
+
if (xe()) return;
|
|
594
593
|
o.setPresentationState("peeked");
|
|
595
594
|
}
|
|
596
595
|
return;
|
|
@@ -599,71 +598,66 @@ function _t({
|
|
|
599
598
|
}
|
|
600
599
|
}
|
|
601
600
|
) : null,
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
|
|
601
|
+
/* @__PURE__ */ u(
|
|
602
|
+
L.Viewport,
|
|
604
603
|
{
|
|
605
|
-
className:
|
|
604
|
+
className: x.viewport,
|
|
606
605
|
"data-oc-part": "viewport",
|
|
607
606
|
"data-oc-component": "modal-viewport",
|
|
608
|
-
"data-oc-modal-placement":
|
|
609
|
-
style:
|
|
610
|
-
children: /* @__PURE__ */
|
|
611
|
-
|
|
607
|
+
"data-oc-modal-placement": c,
|
|
608
|
+
style: Ie,
|
|
609
|
+
children: /* @__PURE__ */ Oe(
|
|
610
|
+
L.Popup,
|
|
612
611
|
{
|
|
613
|
-
...
|
|
614
|
-
...
|
|
615
|
-
ref:
|
|
616
|
-
initialFocus:
|
|
617
|
-
className:
|
|
618
|
-
|
|
619
|
-
|
|
612
|
+
...Me,
|
|
613
|
+
...nt,
|
|
614
|
+
ref: rt,
|
|
615
|
+
initialFocus: ct,
|
|
616
|
+
className: ke(
|
|
617
|
+
x.surfaceMotion,
|
|
618
|
+
x[r],
|
|
620
619
|
e
|
|
621
620
|
),
|
|
622
621
|
"data-oc-part": "surface-motion",
|
|
623
622
|
"data-oc-component": "modal-content",
|
|
624
|
-
"data-oc-modal-backdrop":
|
|
623
|
+
"data-oc-modal-backdrop": d,
|
|
625
624
|
"data-oc-variant": n,
|
|
626
|
-
"data-oc-size":
|
|
627
|
-
"data-oc-resize":
|
|
628
|
-
"data-oc-modal-feedback":
|
|
629
|
-
"data-oc-modal-placement":
|
|
630
|
-
"data-oc-modal-snapping":
|
|
631
|
-
"data-oc-modal-sheet-sizing":
|
|
632
|
-
"data-oc-modal-sheet-transition":
|
|
633
|
-
style:
|
|
625
|
+
"data-oc-size": r,
|
|
626
|
+
"data-oc-resize": i,
|
|
627
|
+
"data-oc-modal-feedback": c === "popup" ? _ : void 0,
|
|
628
|
+
"data-oc-modal-placement": c,
|
|
629
|
+
"data-oc-modal-snapping": M || N ? "true" : void 0,
|
|
630
|
+
"data-oc-modal-sheet-sizing": Xe ? "managed" : void 0,
|
|
631
|
+
"data-oc-modal-sheet-transition": Ze === "auto" ? "auto" : void 0,
|
|
632
|
+
style: st,
|
|
634
633
|
children: [
|
|
635
|
-
|
|
634
|
+
c === "bottom" ? /* @__PURE__ */ u(
|
|
636
635
|
"div",
|
|
637
636
|
{
|
|
638
637
|
"aria-hidden": "true",
|
|
639
|
-
className:
|
|
640
|
-
|
|
641
|
-
|
|
638
|
+
className: ke(
|
|
639
|
+
x.bottomFill,
|
|
640
|
+
x[r],
|
|
642
641
|
e
|
|
643
642
|
),
|
|
644
643
|
"data-oc-part": "bottom-fill",
|
|
645
644
|
"data-oc-component": "modal-bottom-fill",
|
|
646
|
-
"data-oc-size":
|
|
647
|
-
style:
|
|
645
|
+
"data-oc-size": r,
|
|
646
|
+
style: je
|
|
648
647
|
}
|
|
649
648
|
) : null,
|
|
650
|
-
/* @__PURE__ */
|
|
651
|
-
|
|
649
|
+
/* @__PURE__ */ u(
|
|
650
|
+
Mt,
|
|
652
651
|
{
|
|
653
|
-
ref:
|
|
654
|
-
className:
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
"data-oc-resize": l,
|
|
663
|
-
"data-oc-content-transition": nt === "auto" ? "auto" : void 0,
|
|
664
|
-
"data-oc-modal-placement": r,
|
|
665
|
-
"data-oc-scrollable": o.scrollState.canScroll ? "true" : "false",
|
|
666
|
-
style: pt,
|
|
652
|
+
ref: at,
|
|
653
|
+
className: e,
|
|
654
|
+
contentTransition: Ye === "auto" ? "auto" : void 0,
|
|
655
|
+
placement: c,
|
|
656
|
+
resize: i,
|
|
657
|
+
scrollable: o.scrollState.canScroll,
|
|
658
|
+
size: r,
|
|
659
|
+
style: it,
|
|
660
|
+
variant: n,
|
|
667
661
|
children: t
|
|
668
662
|
}
|
|
669
663
|
)
|
|
@@ -674,352 +668,177 @@ function _t({
|
|
|
674
668
|
)
|
|
675
669
|
] });
|
|
676
670
|
}
|
|
677
|
-
function
|
|
671
|
+
function _t({
|
|
678
672
|
className: e = "",
|
|
679
673
|
title: t,
|
|
680
674
|
children: n,
|
|
681
|
-
leadingContent:
|
|
682
|
-
trailingContent:
|
|
683
|
-
closeLabel:
|
|
684
|
-
closeButton:
|
|
685
|
-
handle:
|
|
686
|
-
ref:
|
|
687
|
-
...
|
|
675
|
+
leadingContent: r,
|
|
676
|
+
trailingContent: i,
|
|
677
|
+
closeLabel: f = "닫기",
|
|
678
|
+
closeButton: b = !0,
|
|
679
|
+
handle: S = !0,
|
|
680
|
+
ref: m,
|
|
681
|
+
...F
|
|
688
682
|
}) {
|
|
689
|
-
const
|
|
690
|
-
() =>
|
|
691
|
-
[
|
|
692
|
-
),
|
|
693
|
-
|
|
694
|
-
|
|
683
|
+
const v = ee("ModalHeader"), { setHeaderNode: R, setTitleNode: k, scrollState: y } = v, te = Z(
|
|
684
|
+
() => Be(R, m),
|
|
685
|
+
[m, R]
|
|
686
|
+
), j = Z(
|
|
687
|
+
() => Be(k),
|
|
688
|
+
[k]
|
|
689
|
+
);
|
|
690
|
+
return /* @__PURE__ */ u(
|
|
691
|
+
Nt,
|
|
695
692
|
{
|
|
696
|
-
...
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
"data-oc-part": "header-inner",
|
|
722
|
-
children: [
|
|
723
|
-
T ? /* @__PURE__ */ d("div", { className: c.headerLeading, "data-oc-part": "header-leading", children: a }) : null,
|
|
724
|
-
/* @__PURE__ */ d("div", { className: c.headerTitle, "data-oc-part": "header-title", children: t ? /* @__PURE__ */ d($.Title, { children: t }) : n }),
|
|
725
|
-
/* @__PURE__ */ ae("div", { className: c.headerTrailing, "data-oc-part": "header-trailing", children: [
|
|
726
|
-
l,
|
|
727
|
-
m ? /* @__PURE__ */ d(Xe, { label: N }) : null
|
|
728
|
-
] })
|
|
729
|
-
]
|
|
730
|
-
}
|
|
731
|
-
)
|
|
732
|
-
]
|
|
693
|
+
...F,
|
|
694
|
+
ref: te,
|
|
695
|
+
className: e,
|
|
696
|
+
closeContent: b ? /* @__PURE__ */ u(_e, { label: f }) : null,
|
|
697
|
+
handleContent: S && v.canRenderHandle ? /* @__PURE__ */ u(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
"aria-hidden": "true",
|
|
701
|
+
className: x.handle,
|
|
702
|
+
"data-oc-part": "handle"
|
|
703
|
+
}
|
|
704
|
+
) : null,
|
|
705
|
+
leadingContent: r,
|
|
706
|
+
sticky: y.scrolledFromTop,
|
|
707
|
+
titleContent: t ? /* @__PURE__ */ u(
|
|
708
|
+
L.Title,
|
|
709
|
+
{
|
|
710
|
+
ref: j,
|
|
711
|
+
className: x.initialFocusTitle,
|
|
712
|
+
tabIndex: -1,
|
|
713
|
+
children: t
|
|
714
|
+
}
|
|
715
|
+
) : void 0,
|
|
716
|
+
trailingContent: i,
|
|
717
|
+
children: n
|
|
733
718
|
}
|
|
734
719
|
);
|
|
735
720
|
}
|
|
736
|
-
function
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
children: n,
|
|
740
|
-
expanded: a,
|
|
741
|
-
defaultExpanded: l = !0,
|
|
742
|
-
onExpandedChange: N,
|
|
743
|
-
disabled: m = !1,
|
|
744
|
-
forceMount: C = !0,
|
|
745
|
-
handle: f = !0,
|
|
746
|
-
headingLevel: M = 2,
|
|
747
|
-
indicator: h,
|
|
748
|
-
titleAsDialogTitle: S = !0,
|
|
749
|
-
navigationProps: x,
|
|
750
|
-
panelProps: p,
|
|
751
|
-
panelContentProps: T,
|
|
752
|
-
ref: G,
|
|
753
|
-
style: O,
|
|
754
|
-
...J
|
|
721
|
+
function Gt({
|
|
722
|
+
handle: e = !0,
|
|
723
|
+
...t
|
|
755
724
|
}) {
|
|
756
|
-
const
|
|
757
|
-
canRenderHandle:
|
|
758
|
-
notifyPopupSnapLayoutChange:
|
|
759
|
-
placement:
|
|
760
|
-
} =
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
onChange: N
|
|
764
|
-
}), [X, Y] = v(
|
|
765
|
-
r ? "open" : "closed"
|
|
766
|
-
), W = `h${Wt(M) ? M : 2}`, {
|
|
767
|
-
className: Z = "",
|
|
768
|
-
id: ie,
|
|
769
|
-
onClick: he,
|
|
770
|
-
...ee
|
|
771
|
-
} = x ?? {}, {
|
|
772
|
-
className: te = "",
|
|
773
|
-
id: b,
|
|
774
|
-
role: y,
|
|
775
|
-
...B
|
|
776
|
-
} = p ?? {}, { className: U = "", ...I } = T ?? {}, D = ie ?? `${K}-navigation`, w = b ?? `${K}-panel`, u = `${K}-dialog-title`, V = Qe(t), L = f && A, P = q > 0 ? {
|
|
777
|
-
...O,
|
|
778
|
-
"--oc-modal-navigation-block-size": `${q}px`
|
|
779
|
-
} : O, oe = k(
|
|
780
|
-
(z) => {
|
|
781
|
-
Y(z), o === "popup" && re();
|
|
782
|
-
},
|
|
783
|
-
[re, o]
|
|
784
|
-
);
|
|
785
|
-
return /* @__PURE__ */ ae(
|
|
786
|
-
"section",
|
|
725
|
+
const n = ee("ModalNavigationSection"), {
|
|
726
|
+
canRenderHandle: r,
|
|
727
|
+
notifyPopupSnapLayoutChange: i,
|
|
728
|
+
placement: f
|
|
729
|
+
} = n;
|
|
730
|
+
return /* @__PURE__ */ u(
|
|
731
|
+
Tt,
|
|
787
732
|
{
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
"data-oc-motion-state": X,
|
|
794
|
-
"data-oc-state": r ? "open" : "closed",
|
|
795
|
-
children: [
|
|
796
|
-
S && V ? /* @__PURE__ */ d(
|
|
797
|
-
$.Title,
|
|
798
|
-
{
|
|
799
|
-
className: c.navigationDialogTitle,
|
|
800
|
-
id: u,
|
|
801
|
-
children: t
|
|
802
|
-
}
|
|
803
|
-
) : null,
|
|
804
|
-
L ? /* @__PURE__ */ d(
|
|
805
|
-
"div",
|
|
806
|
-
{
|
|
807
|
-
"aria-hidden": "true",
|
|
808
|
-
className: c.handle,
|
|
809
|
-
"data-oc-part": "handle"
|
|
810
|
-
}
|
|
811
|
-
) : null,
|
|
812
|
-
/* @__PURE__ */ d(W, { className: c.navigationHeading, "data-oc-part": "heading", children: /* @__PURE__ */ ae(
|
|
813
|
-
"button",
|
|
814
|
-
{
|
|
815
|
-
...ee,
|
|
816
|
-
ref: F,
|
|
817
|
-
id: D,
|
|
818
|
-
className: R(c.navigation, Z),
|
|
819
|
-
type: "button",
|
|
820
|
-
disabled: m,
|
|
821
|
-
"aria-disabled": m ? "true" : ee["aria-disabled"],
|
|
822
|
-
"aria-expanded": r,
|
|
823
|
-
"aria-controls": w,
|
|
824
|
-
onClick: (z) => {
|
|
825
|
-
he?.(z), !(z.defaultPrevented || m) && Q(!r);
|
|
826
|
-
},
|
|
827
|
-
"data-oc-component": "modal-navigation",
|
|
828
|
-
"data-oc-part": "navigation",
|
|
829
|
-
"data-oc-state": r ? "open" : "closed",
|
|
830
|
-
children: [
|
|
831
|
-
/* @__PURE__ */ d("span", { className: c.navigationTitle, "data-oc-part": "title", children: t }),
|
|
832
|
-
h === void 0 ? /* @__PURE__ */ d(
|
|
833
|
-
kt,
|
|
834
|
-
{
|
|
835
|
-
className: c.navigationIndicator,
|
|
836
|
-
open: r
|
|
837
|
-
}
|
|
838
|
-
) : h ? /* @__PURE__ */ d(
|
|
839
|
-
"span",
|
|
840
|
-
{
|
|
841
|
-
className: c.navigationIndicator,
|
|
842
|
-
"data-oc-part": "indicator",
|
|
843
|
-
"data-oc-state": r ? "open" : "closed",
|
|
844
|
-
children: /* @__PURE__ */ d("span", { "data-oc-part": "indicator-frame", children: Nt(h) })
|
|
845
|
-
}
|
|
846
|
-
) : null,
|
|
847
|
-
m ? null : /* @__PURE__ */ d(yt, { variant: "light" })
|
|
848
|
-
]
|
|
849
|
-
}
|
|
850
|
-
) }),
|
|
851
|
-
/* @__PURE__ */ d(
|
|
852
|
-
vt,
|
|
853
|
-
{
|
|
854
|
-
className: R(c.navigationPanel, te),
|
|
855
|
-
open: r,
|
|
856
|
-
forceMount: C,
|
|
857
|
-
intent: "expand",
|
|
858
|
-
measureBlockSize: "rendered",
|
|
859
|
-
onMotionStateChange: oe,
|
|
860
|
-
contentProps: {
|
|
861
|
-
className: c.navigationPanelFrame,
|
|
862
|
-
"data-oc-part": "panel-inner"
|
|
863
|
-
},
|
|
864
|
-
...B,
|
|
865
|
-
"aria-hidden": r ? void 0 : !0,
|
|
866
|
-
"aria-labelledby": D,
|
|
867
|
-
id: w,
|
|
868
|
-
inert: r ? void 0 : !0,
|
|
869
|
-
role: y ?? "region",
|
|
870
|
-
"data-oc-component": "modal-navigation-panel",
|
|
871
|
-
"data-oc-state": r ? "open" : "closed",
|
|
872
|
-
children: /* @__PURE__ */ d(
|
|
873
|
-
Ue,
|
|
874
|
-
{
|
|
875
|
-
className: c.navigationPanelScroll,
|
|
876
|
-
"data-oc-component": "modal-navigation-panel-scroll-area",
|
|
877
|
-
"data-oc-part": "panel-scroll-area",
|
|
878
|
-
children: /* @__PURE__ */ d(
|
|
879
|
-
_e,
|
|
880
|
-
{
|
|
881
|
-
...I,
|
|
882
|
-
className: R(
|
|
883
|
-
c.navigationPanelInner,
|
|
884
|
-
U
|
|
885
|
-
),
|
|
886
|
-
"data-oc-component": "modal-navigation-panel-content",
|
|
887
|
-
children: n
|
|
888
|
-
}
|
|
889
|
-
)
|
|
890
|
-
}
|
|
891
|
-
)
|
|
892
|
-
}
|
|
893
|
-
)
|
|
894
|
-
]
|
|
733
|
+
...t,
|
|
734
|
+
canRenderHandle: e && r,
|
|
735
|
+
onPanelMotionStateChange: () => {
|
|
736
|
+
f === "popup" && i();
|
|
737
|
+
}
|
|
895
738
|
}
|
|
896
739
|
);
|
|
897
740
|
}
|
|
898
|
-
function
|
|
741
|
+
function Jt({
|
|
899
742
|
className: e = "",
|
|
900
743
|
children: t,
|
|
901
744
|
layout: n = "content",
|
|
902
|
-
containerClassName:
|
|
903
|
-
containerProps:
|
|
904
|
-
ref:
|
|
905
|
-
...
|
|
745
|
+
containerClassName: r = "",
|
|
746
|
+
containerProps: i,
|
|
747
|
+
ref: f,
|
|
748
|
+
...b
|
|
906
749
|
}) {
|
|
907
|
-
const
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
)
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
);
|
|
916
|
-
return ne(() => {
|
|
917
|
-
const p = f;
|
|
918
|
-
if (!p || (S(p), typeof ResizeObserver > "u")) return;
|
|
919
|
-
const T = new ResizeObserver(() => S(p));
|
|
920
|
-
return T.observe(p), p.firstElementChild && T.observe(p.firstElementChild), () => T.disconnect();
|
|
921
|
-
}, [f, S]), /* @__PURE__ */ d(
|
|
922
|
-
Ue,
|
|
750
|
+
const S = ee("ModalBody"), { bodyNode: m, setBodyNode: F, setScrollState: v } = S, { setBodyRef: R, updateScrollState: k } = yt({
|
|
751
|
+
bodyNode: m,
|
|
752
|
+
bodyRef: f,
|
|
753
|
+
setBodyNode: F,
|
|
754
|
+
setScrollState: v
|
|
755
|
+
});
|
|
756
|
+
return /* @__PURE__ */ u(
|
|
757
|
+
wt,
|
|
923
758
|
{
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
children: /* @__PURE__ */ d(
|
|
929
|
-
_e,
|
|
930
|
-
{
|
|
931
|
-
ref: x,
|
|
932
|
-
className: c.bodyContainer,
|
|
933
|
-
"data-oc-part": "body-container",
|
|
934
|
-
"data-oc-component": "modal-body-container",
|
|
935
|
-
onScroll: (p) => {
|
|
936
|
-
l?.onScroll?.(p), S(p.currentTarget);
|
|
937
|
-
},
|
|
938
|
-
children: /* @__PURE__ */ d(
|
|
939
|
-
"section",
|
|
940
|
-
{
|
|
941
|
-
...l,
|
|
942
|
-
className: R(c.bodyContent, a),
|
|
943
|
-
"data-oc-part": "body-content",
|
|
944
|
-
"data-oc-component": "modal-body-content",
|
|
945
|
-
"data-oc-layout": n,
|
|
946
|
-
children: t
|
|
947
|
-
}
|
|
948
|
-
)
|
|
759
|
+
bodyContainerProps: {
|
|
760
|
+
ref: R,
|
|
761
|
+
onScroll: (y) => {
|
|
762
|
+
i?.onScroll?.(y), k(y.currentTarget);
|
|
949
763
|
}
|
|
950
|
-
|
|
764
|
+
},
|
|
765
|
+
bodyContentProps: { ...i, className: r },
|
|
766
|
+
layout: n,
|
|
767
|
+
scrollAreaProps: { ...b, className: e },
|
|
768
|
+
children: t
|
|
951
769
|
}
|
|
952
770
|
);
|
|
953
771
|
}
|
|
954
|
-
function
|
|
772
|
+
function Qt({
|
|
955
773
|
className: e = "",
|
|
956
774
|
children: t,
|
|
957
775
|
background: n = "auto",
|
|
958
|
-
ref:
|
|
959
|
-
...
|
|
776
|
+
ref: r,
|
|
777
|
+
...i
|
|
960
778
|
}) {
|
|
961
|
-
const
|
|
962
|
-
() =>
|
|
963
|
-
[
|
|
964
|
-
),
|
|
965
|
-
|
|
966
|
-
|
|
779
|
+
const f = ee("ModalFooter"), { scrollState: b, setFooterNode: S } = f, m = Z(
|
|
780
|
+
() => Be(S, r),
|
|
781
|
+
[r, S]
|
|
782
|
+
), F = Ct(
|
|
783
|
+
n,
|
|
784
|
+
b
|
|
785
|
+
);
|
|
786
|
+
return /* @__PURE__ */ u(
|
|
787
|
+
Ht,
|
|
967
788
|
{
|
|
968
|
-
...
|
|
969
|
-
ref:
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
"data-oc-component": "modal-footer",
|
|
973
|
-
"data-oc-background": M ? "true" : "false",
|
|
789
|
+
...i,
|
|
790
|
+
ref: m,
|
|
791
|
+
backgroundActive: F,
|
|
792
|
+
className: e,
|
|
974
793
|
children: t
|
|
975
794
|
}
|
|
976
795
|
);
|
|
977
796
|
}
|
|
978
|
-
function
|
|
797
|
+
function _e({
|
|
979
798
|
className: e = "",
|
|
980
|
-
children: t = /* @__PURE__ */
|
|
799
|
+
children: t = /* @__PURE__ */ u(lt, {}),
|
|
981
800
|
label: n = "닫기",
|
|
982
|
-
size:
|
|
983
|
-
disabled:
|
|
984
|
-
onClick:
|
|
985
|
-
...
|
|
801
|
+
size: r = 24,
|
|
802
|
+
disabled: i,
|
|
803
|
+
onClick: f,
|
|
804
|
+
...b
|
|
986
805
|
}) {
|
|
987
|
-
const
|
|
988
|
-
return /* @__PURE__ */
|
|
989
|
-
|
|
806
|
+
const S = ee("ModalClose");
|
|
807
|
+
return /* @__PURE__ */ u(
|
|
808
|
+
ut,
|
|
990
809
|
{
|
|
991
|
-
...
|
|
992
|
-
className:
|
|
993
|
-
"aria-label":
|
|
810
|
+
...b,
|
|
811
|
+
className: ke(x.close, e),
|
|
812
|
+
"aria-label": b["aria-label"] ?? n,
|
|
994
813
|
"data-oc-part": "close",
|
|
995
814
|
"data-oc-component": "modal-close",
|
|
996
|
-
disabled:
|
|
997
|
-
onClick: (
|
|
998
|
-
|
|
815
|
+
disabled: i,
|
|
816
|
+
onClick: (m) => {
|
|
817
|
+
f?.(m), !m.defaultPrevented && !i && S.requestClose({ reason: "close-button" });
|
|
999
818
|
},
|
|
1000
|
-
size:
|
|
819
|
+
size: r,
|
|
1001
820
|
children: t
|
|
1002
821
|
}
|
|
1003
822
|
);
|
|
1004
823
|
}
|
|
1005
|
-
const
|
|
1006
|
-
Root:
|
|
1007
|
-
Trigger:
|
|
1008
|
-
Content:
|
|
1009
|
-
Header:
|
|
1010
|
-
NavigationSection:
|
|
1011
|
-
Body:
|
|
1012
|
-
Footer:
|
|
1013
|
-
Close:
|
|
824
|
+
const bo = Object.assign(Ue, {
|
|
825
|
+
Root: Ue,
|
|
826
|
+
Trigger: Wt,
|
|
827
|
+
Content: Ut,
|
|
828
|
+
Header: _t,
|
|
829
|
+
NavigationSection: Gt,
|
|
830
|
+
Body: Jt,
|
|
831
|
+
Footer: Qt,
|
|
832
|
+
Close: _e
|
|
1014
833
|
});
|
|
1015
834
|
export {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
835
|
+
Jt as ModalBody,
|
|
836
|
+
_e as ModalClose,
|
|
837
|
+
Ut as ModalContent,
|
|
838
|
+
Qt as ModalFooter,
|
|
839
|
+
_t as ModalHeader,
|
|
840
|
+
Gt as ModalNavigationSection,
|
|
841
|
+
Ue as ModalRoot,
|
|
842
|
+
Wt as ModalTrigger,
|
|
843
|
+
bo as default
|
|
1025
844
|
};
|