@fileverse/ui 4.1.1-patch-8 → 4.1.1-patch-9
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.css +5 -0
- package/dist/index.es.d.ts +7 -2
- package/dist/index.es.js +129 -115
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2209,6 +2209,11 @@ video {
|
|
|
2209
2209
|
.filter {
|
|
2210
2210
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2211
2211
|
}
|
|
2212
|
+
.backdrop-blur-sm {
|
|
2213
|
+
--tw-backdrop-blur: blur(4px);
|
|
2214
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2215
|
+
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2216
|
+
}
|
|
2212
2217
|
.transition {
|
|
2213
2218
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2214
2219
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
package/dist/index.es.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ export declare const DialogContent: React_2.ForwardRefExoticComponent<DialogCont
|
|
|
259
259
|
declare interface DialogContentProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
260
260
|
hasCloseIcon?: boolean;
|
|
261
261
|
dismissable?: boolean;
|
|
262
|
+
overlayClasses?: string;
|
|
262
263
|
}
|
|
263
264
|
|
|
264
265
|
export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -304,6 +305,7 @@ export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerCont
|
|
|
304
305
|
|
|
305
306
|
declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof Drawer_2.Content> {
|
|
306
307
|
hasCloseIcon?: boolean;
|
|
308
|
+
overlayClasses?: string;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -347,7 +349,7 @@ export declare interface DynamicContentControllerProps {
|
|
|
347
349
|
size?: "sm" | "lg";
|
|
348
350
|
}
|
|
349
351
|
|
|
350
|
-
export declare const DynamicDrawer: ({ open, onOpenChange, title, titleIcon, content, className, headerClassName, side, noOverlay, rounded, dismissible, }: DynamicDrawerProps) => JSX_2.Element;
|
|
352
|
+
export declare const DynamicDrawer: ({ open, onOpenChange, title, titleIcon, content, className, headerClassName, side, noOverlay, overlayClasses, rounded, dismissible, }: DynamicDrawerProps) => JSX_2.Element;
|
|
351
353
|
|
|
352
354
|
export declare interface DynamicDrawerProps {
|
|
353
355
|
open: boolean;
|
|
@@ -359,6 +361,7 @@ export declare interface DynamicDrawerProps {
|
|
|
359
361
|
className?: string;
|
|
360
362
|
headerClassName?: string;
|
|
361
363
|
noOverlay?: boolean;
|
|
364
|
+
overlayClasses?: string;
|
|
362
365
|
side?: "top" | "right" | "bottom" | "left";
|
|
363
366
|
rounded?: boolean;
|
|
364
367
|
dismissible?: boolean;
|
|
@@ -375,7 +378,7 @@ export declare interface DynamicDropdownProps {
|
|
|
375
378
|
alignOffset?: number;
|
|
376
379
|
}
|
|
377
380
|
|
|
378
|
-
export declare const DynamicModal: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, disableOutsideClick, hasCloseIcon, }: DynamicModalProps) => JSX_2.Element;
|
|
381
|
+
export declare const DynamicModal: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, disableOutsideClick, hasCloseIcon, overlayClasses, noOverlay, }: DynamicModalProps) => JSX_2.Element;
|
|
379
382
|
|
|
380
383
|
export declare interface DynamicModalProps {
|
|
381
384
|
open: boolean;
|
|
@@ -401,6 +404,8 @@ export declare interface DynamicModalProps {
|
|
|
401
404
|
contentClassName?: string;
|
|
402
405
|
disableOutsideClick?: boolean;
|
|
403
406
|
hasCloseIcon?: boolean;
|
|
407
|
+
overlayClasses?: string;
|
|
408
|
+
noOverlay?: boolean;
|
|
404
409
|
}
|
|
405
410
|
|
|
406
411
|
export declare const DynamicRadio: ForwardRefExoticComponent<DynamicRadioProps & RefAttributes<HTMLDivElement>>;
|
package/dist/index.es.js
CHANGED
|
@@ -62,8 +62,8 @@ function g5() {
|
|
|
62
62
|
{
|
|
63
63
|
var ae = w.ReactDebugCurrentFrame, we = ae.getStackAddendum();
|
|
64
64
|
we !== "" && (P += "%s", F = F.concat([we]));
|
|
65
|
-
var Ce = F.map(function(
|
|
66
|
-
return String(
|
|
65
|
+
var Ce = F.map(function(me) {
|
|
66
|
+
return String(me);
|
|
67
67
|
});
|
|
68
68
|
Ce.unshift("Warning: " + P), Function.prototype.apply.call(console[L], console, Ce);
|
|
69
69
|
}
|
|
@@ -122,9 +122,9 @@ function g5() {
|
|
|
122
122
|
var ae = L.displayName || null;
|
|
123
123
|
return ae !== null ? ae : U(L.type) || "Memo";
|
|
124
124
|
case y: {
|
|
125
|
-
var we = L, Ce = we._payload,
|
|
125
|
+
var we = L, Ce = we._payload, me = we._init;
|
|
126
126
|
try {
|
|
127
|
-
return U(
|
|
127
|
+
return U(me(Ce));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -210,8 +210,8 @@ function g5() {
|
|
|
210
210
|
}
|
|
211
211
|
var ke = !1, V;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
V = new
|
|
213
|
+
var ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
V = new ve();
|
|
215
215
|
}
|
|
216
216
|
function pe(L, P) {
|
|
217
217
|
if (!L || ke)
|
|
@@ -229,27 +229,27 @@ function g5() {
|
|
|
229
229
|
Ce = re.current, re.current = null, K();
|
|
230
230
|
try {
|
|
231
231
|
if (P) {
|
|
232
|
-
var
|
|
232
|
+
var me = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(me.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(me, []);
|
|
242
242
|
} catch (ft) {
|
|
243
243
|
ae = ft;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(L, [],
|
|
245
|
+
Reflect.construct(L, [], me);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
me.call();
|
|
249
249
|
} catch (ft) {
|
|
250
250
|
ae = ft;
|
|
251
251
|
}
|
|
252
|
-
L.call(
|
|
252
|
+
L.call(me.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
@@ -331,19 +331,19 @@ function g5() {
|
|
|
331
331
|
function ir(L, P, F, ae, we) {
|
|
332
332
|
{
|
|
333
333
|
var Ce = Function.call.bind(it);
|
|
334
|
-
for (var
|
|
335
|
-
if (Ce(L,
|
|
334
|
+
for (var me in L)
|
|
335
|
+
if (Ce(L, me)) {
|
|
336
336
|
var ue = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof L[
|
|
339
|
-
var at = Error((ae || "React class") + ": " + F + " type `" +
|
|
338
|
+
if (typeof L[me] != "function") {
|
|
339
|
+
var at = Error((ae || "React class") + ": " + F + " type `" + me + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof L[me] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw at.name = "Invariant Violation", at;
|
|
341
341
|
}
|
|
342
|
-
ue = L[
|
|
342
|
+
ue = L[me](P, me, ae, F, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (Ve) {
|
|
344
344
|
ue = Ve;
|
|
345
345
|
}
|
|
346
|
-
ue && !(ue instanceof Error) && (Dt(we), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class", F,
|
|
346
|
+
ue && !(ue instanceof Error) && (Dt(we), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class", F, me, typeof ue), Dt(null)), ue instanceof Error && !(ue.message in Vt) && (Vt[ue.message] = !0, Dt(we), M("Failed %s type: %s", F, ue.message), Dt(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -422,7 +422,7 @@ function g5() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var Ae = function(L, P, F, ae, we, Ce,
|
|
425
|
+
var Ae = function(L, P, F, ae, we, Ce, me) {
|
|
426
426
|
var ue = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
@@ -430,7 +430,7 @@ function g5() {
|
|
|
430
430
|
type: L,
|
|
431
431
|
key: P,
|
|
432
432
|
ref: F,
|
|
433
|
-
props:
|
|
433
|
+
props: me,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: Ce
|
|
436
436
|
};
|
|
@@ -453,20 +453,20 @@ function g5() {
|
|
|
453
453
|
};
|
|
454
454
|
function fe(L, P, F, ae, we) {
|
|
455
455
|
{
|
|
456
|
-
var Ce,
|
|
456
|
+
var Ce, me = {}, ue = null, at = null;
|
|
457
457
|
F !== void 0 && (sr(F), ue = "" + F), pi(P) && (sr(P.key), ue = "" + P.key), hi(P) && (at = P.ref, yi(P, we));
|
|
458
458
|
for (Ce in P)
|
|
459
|
-
it.call(P, Ce) && !fr.hasOwnProperty(Ce) && (
|
|
459
|
+
it.call(P, Ce) && !fr.hasOwnProperty(Ce) && (me[Ce] = P[Ce]);
|
|
460
460
|
if (L && L.defaultProps) {
|
|
461
461
|
var Ve = L.defaultProps;
|
|
462
462
|
for (Ce in Ve)
|
|
463
|
-
|
|
463
|
+
me[Ce] === void 0 && (me[Ce] = Ve[Ce]);
|
|
464
464
|
}
|
|
465
465
|
if (ue || at) {
|
|
466
466
|
var Be = typeof L == "function" ? L.displayName || L.name || "Unknown" : L;
|
|
467
|
-
ue && te(
|
|
467
|
+
ue && te(me, Be), at && se(me, Be);
|
|
468
468
|
}
|
|
469
|
-
return Ae(L, ue, at, we, ae, kt.current,
|
|
469
|
+
return Ae(L, ue, at, we, ae, kt.current, me);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Se = w.ReactCurrentOwner, ze = w.ReactDebugCurrentFrame;
|
|
@@ -537,8 +537,8 @@ Check the top-level render call using <` + F + ">.");
|
|
|
537
537
|
else if (L) {
|
|
538
538
|
var we = k(L);
|
|
539
539
|
if (typeof we == "function" && we !== L.entries)
|
|
540
|
-
for (var Ce = we.call(L),
|
|
541
|
-
Mt(
|
|
540
|
+
for (var Ce = we.call(L), me; !(me = Ce.next()).done; )
|
|
541
|
+
Mt(me.value) && hf(me.value, P);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
}
|
|
@@ -582,8 +582,8 @@ Check the top-level render call using <` + F + ">.");
|
|
|
582
582
|
var yf = {};
|
|
583
583
|
function mf(L, P, F, ae, we, Ce) {
|
|
584
584
|
{
|
|
585
|
-
var
|
|
586
|
-
if (!
|
|
585
|
+
var me = H(L);
|
|
586
|
+
if (!me) {
|
|
587
587
|
var ue = "";
|
|
588
588
|
(L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (ue += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
589
589
|
var at = Yt();
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + F + ">.");
|
|
|
594
594
|
var Be = fe(L, P, F, we, Ce);
|
|
595
595
|
if (Be == null)
|
|
596
596
|
return Be;
|
|
597
|
-
if (
|
|
597
|
+
if (me) {
|
|
598
598
|
var wt = P.children;
|
|
599
599
|
if (wt !== void 0)
|
|
600
600
|
if (ae)
|
|
@@ -645,7 +645,7 @@ function td(e) {
|
|
|
645
645
|
} else for (a in e) e[a] && (n && (n += " "), n += a);
|
|
646
646
|
return n;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function ye() {
|
|
649
649
|
for (var e, t, a = 0, n = "", r = arguments.length; a < r; a++) (e = arguments[a]) && (t = td(e)) && (n && (n += " "), n += t);
|
|
650
650
|
return n;
|
|
651
651
|
}
|
|
@@ -2980,7 +2980,7 @@ function K5() {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
const J5 = /* @__PURE__ */ N5(K5);
|
|
2982
2982
|
function D(...e) {
|
|
2983
|
-
return J5(
|
|
2983
|
+
return J5(ye(e));
|
|
2984
2984
|
}
|
|
2985
2985
|
const eae = (e) => e < 1e3 ? e.toString() : e < 1e4 ? e.toString().slice(0, 1) + "," + e.toString().slice(1) : e < 1e6 ? e % 1e3 === 0 ? e / 1e3 + "K" : (e / 1e3).toFixed(1) + "K" : e % 1e6 === 0 ? e / 1e6 + "M" : (e / 1e6).toFixed(1) + "M", tae = (e, t, a) => {
|
|
2986
2986
|
if ((e == null ? void 0 : e.length) > a) {
|
|
@@ -27299,7 +27299,7 @@ var Rd = "PopperAnchor", Hd = p.forwardRef(
|
|
|
27299
27299
|
Hd.displayName = Rd;
|
|
27300
27300
|
var C0 = "PopperContent", [MB, wB] = zd(C0), Od = p.forwardRef(
|
|
27301
27301
|
(e, t) => {
|
|
27302
|
-
var Z, X, ke, V,
|
|
27302
|
+
var Z, X, ke, V, ve, pe;
|
|
27303
27303
|
const {
|
|
27304
27304
|
__scopePopper: a,
|
|
27305
27305
|
side: n = "bottom",
|
|
@@ -27370,7 +27370,7 @@ var C0 = "PopperContent", [MB, wB] = zd(C0), Od = p.forwardRef(
|
|
|
27370
27370
|
zIndex: Y,
|
|
27371
27371
|
"--radix-popper-transform-origin": [
|
|
27372
27372
|
(V = $.transformOrigin) == null ? void 0 : V.x,
|
|
27373
|
-
(
|
|
27373
|
+
(ve = $.transformOrigin) == null ? void 0 : ve.y
|
|
27374
27374
|
].join(" "),
|
|
27375
27375
|
// hide the content if using the hide middleware and should be hidden
|
|
27376
27376
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
@@ -36639,9 +36639,9 @@ var Kt = 10, [C3, S1] = Za(J1), AK = "SelectContentImpl", L3 = p.forwardRef(
|
|
|
36639
36639
|
}, [x]), ns();
|
|
36640
36640
|
const B = p.useCallback(
|
|
36641
36641
|
(Z) => {
|
|
36642
|
-
const [X, ...ke] = R().map((pe) => pe.ref.current), [V] = ke.slice(-1),
|
|
36642
|
+
const [X, ...ke] = R().map((pe) => pe.ref.current), [V] = ke.slice(-1), ve = document.activeElement;
|
|
36643
36643
|
for (const pe of Z)
|
|
36644
|
-
if (pe ===
|
|
36644
|
+
if (pe === ve || (pe == null || pe.scrollIntoView({ block: "nearest" }), pe === X && C && (C.scrollTop = 0), pe === V && C && (C.scrollTop = C.scrollHeight), pe == null || pe.focus(), document.activeElement !== ve)) return;
|
|
36645
36645
|
},
|
|
36646
36646
|
[R, C]
|
|
36647
36647
|
), W = p.useCallback(
|
|
@@ -36656,9 +36656,9 @@ var Kt = 10, [C3, S1] = Za(J1), AK = "SelectContentImpl", L3 = p.forwardRef(
|
|
|
36656
36656
|
if (x) {
|
|
36657
36657
|
let Z = { x: 0, y: 0 };
|
|
36658
36658
|
const X = (V) => {
|
|
36659
|
-
var
|
|
36659
|
+
var ve, pe;
|
|
36660
36660
|
Z = {
|
|
36661
|
-
x: Math.abs(Math.round(V.pageX) - (((
|
|
36661
|
+
x: Math.abs(Math.round(V.pageX) - (((ve = ee.current) == null ? void 0 : ve.x) ?? 0)),
|
|
36662
36662
|
y: Math.abs(Math.round(V.pageY) - (((pe = ee.current) == null ? void 0 : pe.y) ?? 0))
|
|
36663
36663
|
};
|
|
36664
36664
|
}, ke = (V) => {
|
|
@@ -36675,7 +36675,7 @@ var Kt = 10, [C3, S1] = Za(J1), AK = "SelectContentImpl", L3 = p.forwardRef(
|
|
|
36675
36675
|
};
|
|
36676
36676
|
}, [$]);
|
|
36677
36677
|
const [je, be] = F3((Z) => {
|
|
36678
|
-
const X = R().filter((
|
|
36678
|
+
const X = R().filter((ve) => !ve.disabled), ke = X.find((ve) => ve.ref.current === document.activeElement), V = G3(X, Z, ke);
|
|
36679
36679
|
V && setTimeout(() => V.ref.current.focus());
|
|
36680
36680
|
}), N = p.useCallback(
|
|
36681
36681
|
(Z, X, ke) => {
|
|
@@ -36761,9 +36761,9 @@ var Kt = 10, [C3, S1] = Za(J1), AK = "SelectContentImpl", L3 = p.forwardRef(
|
|
|
36761
36761
|
onKeyDown: q(w.onKeyDown, (Z) => {
|
|
36762
36762
|
const X = Z.ctrlKey || Z.altKey || Z.metaKey;
|
|
36763
36763
|
if (Z.key === "Tab" && Z.preventDefault(), !X && Z.key.length === 1 && be(Z.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(Z.key)) {
|
|
36764
|
-
let V = R().filter((
|
|
36764
|
+
let V = R().filter((ve) => !ve.disabled).map((ve) => ve.ref.current);
|
|
36765
36765
|
if (["ArrowUp", "End"].includes(Z.key) && (V = V.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(Z.key)) {
|
|
36766
|
-
const
|
|
36766
|
+
const ve = Z.target, pe = V.indexOf(ve);
|
|
36767
36767
|
V = V.slice(pe + 1);
|
|
36768
36768
|
}
|
|
36769
36769
|
setTimeout(() => B(V)), Z.preventDefault();
|
|
@@ -36785,29 +36785,29 @@ var SK = "SelectItemAlignedPosition", j3 = p.forwardRef((e, t) => {
|
|
|
36785
36785
|
if (o.trigger && o.valueNode && f && l && v && k && w) {
|
|
36786
36786
|
const S = o.trigger.getBoundingClientRect(), A = l.getBoundingClientRect(), T = o.valueNode.getBoundingClientRect(), H = w.getBoundingClientRect();
|
|
36787
36787
|
if (o.dir !== "rtl") {
|
|
36788
|
-
const
|
|
36788
|
+
const ve = H.left - A.left, pe = T.left - ve, We = S.left - pe, ot = S.width + We, Je = Math.max(ot, A.width), it = window.innerWidth - Kt, Vt = ll(pe, [Kt, it - Je]);
|
|
36789
36789
|
f.style.minWidth = ot + "px", f.style.left = Vt + "px";
|
|
36790
36790
|
} else {
|
|
36791
|
-
const
|
|
36791
|
+
const ve = A.right - H.right, pe = window.innerWidth - T.right - ve, We = window.innerWidth - S.right - pe, ot = S.width + We, Je = Math.max(ot, A.width), it = window.innerWidth - Kt, Vt = ll(pe, [Kt, it - Je]);
|
|
36792
36792
|
f.style.minWidth = ot + "px", f.style.right = Vt + "px";
|
|
36793
36793
|
}
|
|
36794
36794
|
const G = y(), R = window.innerHeight - Kt * 2, U = v.scrollHeight, E = window.getComputedStyle(l), O = parseInt(E.borderTopWidth, 10), B = parseInt(E.paddingTop, 10), W = parseInt(E.borderBottomWidth, 10), $ = parseInt(E.paddingBottom, 10), ee = O + B + U + $ + W, je = Math.min(k.offsetHeight * 5, ee), be = window.getComputedStyle(v), N = parseInt(be.paddingTop, 10), Q = parseInt(be.paddingBottom, 10), K = S.top + S.height / 2 - Kt, Y = R - K, re = k.offsetHeight / 2, Z = k.offsetTop + re, X = O + B + Z, ke = ee - X;
|
|
36795
36795
|
if (X <= K) {
|
|
36796
|
-
const
|
|
36796
|
+
const ve = k === G[G.length - 1].ref.current;
|
|
36797
36797
|
f.style.bottom = "0px";
|
|
36798
36798
|
const pe = l.clientHeight - v.offsetTop - v.offsetHeight, We = Math.max(
|
|
36799
36799
|
Y,
|
|
36800
36800
|
re + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
36801
|
-
(
|
|
36801
|
+
(ve ? Q : 0) + pe + W
|
|
36802
36802
|
), ot = X + We;
|
|
36803
36803
|
f.style.height = ot + "px";
|
|
36804
36804
|
} else {
|
|
36805
|
-
const
|
|
36805
|
+
const ve = k === G[0].ref.current;
|
|
36806
36806
|
f.style.top = "0px";
|
|
36807
36807
|
const We = Math.max(
|
|
36808
36808
|
K,
|
|
36809
36809
|
O + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
36810
|
-
(
|
|
36810
|
+
(ve ? N : 0) + re
|
|
36811
36811
|
) + ke;
|
|
36812
36812
|
f.style.height = We + "px", v.scrollTop = X - K + v.offsetTop;
|
|
36813
36813
|
}
|
|
@@ -38090,7 +38090,7 @@ function MJ({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: a,
|
|
|
38090
38090
|
const wJ = 0.25, xJ = 100, hl = 8, O1 = 16, pl = 26, Yi = "vaul-dragging";
|
|
38091
38091
|
function ip({ open: e, onOpenChange: t, children: a, shouldScaleBackground: n, onDrag: r, onRelease: o, snapPoints: s, nested: f = !1, setBackgroundColorOnScale: c = !0, closeThreshold: l = wJ, scrollLockTimeout: d = xJ, dismissible: h = !0, handleOnly: y = !1, fadeFromIndex: m = s && s.length - 1, activeSnapPoint: g, setActiveSnapPoint: v, fixed: k, modal: w = !0, onClose: M, noBodyStyles: x, direction: b = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: j = !1 }) {
|
|
38092
38092
|
var S;
|
|
38093
|
-
const [A = !1, T] = z.useState(!1), [H, G] = z.useState(!1), [R, U] = z.useState(!1), [E, O] = z.useState(!1), [B, W] = z.useState(!1), [$, ee] = z.useState(!1), je = z.useRef(null), be = z.useRef(null), N = z.useRef(null), Q = z.useRef(null), K = z.useRef(null), Y = z.useRef(!1), re = z.useRef(null), Z = z.useRef(0), X = z.useRef(!1), ke = z.useRef(0), V = z.useRef(null),
|
|
38093
|
+
const [A = !1, T] = z.useState(!1), [H, G] = z.useState(!1), [R, U] = z.useState(!1), [E, O] = z.useState(!1), [B, W] = z.useState(!1), [$, ee] = z.useState(!1), je = z.useRef(null), be = z.useRef(null), N = z.useRef(null), Q = z.useRef(null), K = z.useRef(null), Y = z.useRef(!1), re = z.useRef(null), Z = z.useRef(0), X = z.useRef(!1), ke = z.useRef(0), V = z.useRef(null), ve = z.useRef(((S = V.current) == null ? void 0 : S.getBoundingClientRect().height) || 0), pe = z.useRef(0), We = z.useCallback((te) => {
|
|
38094
38094
|
s && te === qt.length - 1 && (be.current = /* @__PURE__ */ new Date());
|
|
38095
38095
|
}, []), { activeSnapPoint: ot, activeSnapPointIndex: Je, setActiveSnapPoint: it, onRelease: Vt, snapPointsOffset: qt, onDrag: Dt, shouldFade: ir, getPercentageDragged: di } = MJ({
|
|
38096
38096
|
snapPoints: s,
|
|
@@ -38118,7 +38118,7 @@ function ip({ open: e, onOpenChange: t, children: a, shouldScaleBackground: n, o
|
|
|
38118
38118
|
}
|
|
38119
38119
|
function ui(te) {
|
|
38120
38120
|
var se;
|
|
38121
|
-
!h && !s || V.current && !V.current.contains(te.target) || (
|
|
38121
|
+
!h && !s || V.current && !V.current.contains(te.target) || (ve.current = ((se = V.current) == null ? void 0 : se.getBoundingClientRect().height) || 0, W(!0), N.current = /* @__PURE__ */ new Date(), $3() && window.addEventListener("touchend", () => Y.current = !1, {
|
|
38122
38122
|
once: !0
|
|
38123
38123
|
}), te.target.setPointerCapture(te.pointerId), Z.current = Ze(b) ? te.clientY : te.clientX);
|
|
38124
38124
|
}
|
|
@@ -38154,7 +38154,7 @@ function ip({ open: e, onOpenChange: t, children: a, shouldScaleBackground: n, o
|
|
|
38154
38154
|
const se = b === "bottom" || b === "right" ? 1 : -1, Ae = (Z.current - (Ze(b) ? te.clientY : te.clientX)) * se, fe = Ae > 0, Se = s && !h && !fe;
|
|
38155
38155
|
if (Se && Je === 0) return;
|
|
38156
38156
|
const ze = Math.abs(Ae), Ge = document.querySelector("[vaul-drawer-wrapper]");
|
|
38157
|
-
let st = ze /
|
|
38157
|
+
let st = ze / ve.current;
|
|
38158
38158
|
const Mt = di(ze, fe);
|
|
38159
38159
|
if (Mt !== null && (st = Mt), Se && st >= 1 || !Y.current && !Ya(te.target, fe)) return;
|
|
38160
38160
|
if (V.current.classList.add(Yi), Y.current = !0, Ie(V.current, {
|
|
@@ -38613,7 +38613,7 @@ const Ot = {
|
|
|
38613
38613
|
Yn,
|
|
38614
38614
|
{
|
|
38615
38615
|
ref: a,
|
|
38616
|
-
className:
|
|
38616
|
+
className: ye(
|
|
38617
38617
|
"fixed inset-0 z-50 color-utility-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
38618
38618
|
e
|
|
38619
38619
|
),
|
|
@@ -38621,32 +38621,41 @@ const Ot = {
|
|
|
38621
38621
|
}
|
|
38622
38622
|
));
|
|
38623
38623
|
up.displayName = Yn.displayName;
|
|
38624
|
-
const js = p.forwardRef(
|
|
38625
|
-
|
|
38626
|
-
|
|
38627
|
-
|
|
38628
|
-
|
|
38629
|
-
|
|
38630
|
-
|
|
38631
|
-
|
|
38632
|
-
|
|
38633
|
-
|
|
38634
|
-
|
|
38635
|
-
|
|
38636
|
-
|
|
38637
|
-
|
|
38638
|
-
|
|
38639
|
-
|
|
38640
|
-
|
|
38641
|
-
|
|
38642
|
-
|
|
38643
|
-
|
|
38644
|
-
|
|
38624
|
+
const js = p.forwardRef(
|
|
38625
|
+
({
|
|
38626
|
+
className: e,
|
|
38627
|
+
children: t,
|
|
38628
|
+
hasCloseIcon: a,
|
|
38629
|
+
dismissable: n = !0,
|
|
38630
|
+
overlayClasses: r,
|
|
38631
|
+
...o
|
|
38632
|
+
}, s) => /* @__PURE__ */ u.jsxs(jJ, { children: [
|
|
38633
|
+
/* @__PURE__ */ u.jsx(up, { className: r }),
|
|
38634
|
+
/* @__PURE__ */ u.jsx(Ba, { trapped: !1, children: /* @__PURE__ */ u.jsxs(
|
|
38635
|
+
Qn,
|
|
38636
|
+
{
|
|
38637
|
+
ref: s,
|
|
38638
|
+
onInteractOutside: (f) => {
|
|
38639
|
+
n || f.preventDefault();
|
|
38640
|
+
},
|
|
38641
|
+
className: ye(
|
|
38642
|
+
"max-w-lg fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border color-bg-default shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded sm:rounded-lg",
|
|
38643
|
+
e
|
|
38644
|
+
),
|
|
38645
|
+
...o,
|
|
38646
|
+
children: [
|
|
38647
|
+
t,
|
|
38648
|
+
a && /* @__PURE__ */ u.jsx(dp, { className: "absolute right-5 top-5 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ u.jsx(To, { name: "Close", className: "h-5 w-5", fill: "#363B3F" }) })
|
|
38649
|
+
]
|
|
38650
|
+
}
|
|
38651
|
+
) })
|
|
38652
|
+
] })
|
|
38653
|
+
);
|
|
38645
38654
|
js.displayName = Qn.displayName;
|
|
38646
38655
|
const hp = ({
|
|
38647
38656
|
className: e,
|
|
38648
38657
|
...t
|
|
38649
|
-
}) => /* @__PURE__ */ u.jsx("div", { className:
|
|
38658
|
+
}) => /* @__PURE__ */ u.jsx("div", { className: ye("flex flex-col space-y-1.5 text-left", e), ...t });
|
|
38650
38659
|
hp.displayName = "DialogHeader";
|
|
38651
38660
|
const pp = ({
|
|
38652
38661
|
className: e,
|
|
@@ -38654,7 +38663,7 @@ const pp = ({
|
|
|
38654
38663
|
}) => /* @__PURE__ */ u.jsx(
|
|
38655
38664
|
"div",
|
|
38656
38665
|
{
|
|
38657
|
-
className:
|
|
38666
|
+
className: ye(
|
|
38658
38667
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
38659
38668
|
e
|
|
38660
38669
|
),
|
|
@@ -38666,7 +38675,7 @@ const yp = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ u.jsx(
|
|
|
38666
38675
|
Kn,
|
|
38667
38676
|
{
|
|
38668
38677
|
ref: a,
|
|
38669
|
-
className:
|
|
38678
|
+
className: ye("text-heading-md", e),
|
|
38670
38679
|
...t
|
|
38671
38680
|
}
|
|
38672
38681
|
));
|
|
@@ -38675,7 +38684,7 @@ const AJ = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ u.jsx(
|
|
|
38675
38684
|
Jn,
|
|
38676
38685
|
{
|
|
38677
38686
|
ref: a,
|
|
38678
|
-
className:
|
|
38687
|
+
className: ye("text-body-sm color-text-secondary", e),
|
|
38679
38688
|
...t
|
|
38680
38689
|
}
|
|
38681
38690
|
));
|
|
@@ -38689,7 +38698,7 @@ const Cae = Ot.Trigger, SJ = Ot.Portal, Ss = Ot.Close, mp = p.forwardRef(({ clas
|
|
|
38689
38698
|
Ot.Overlay,
|
|
38690
38699
|
{
|
|
38691
38700
|
ref: a,
|
|
38692
|
-
className:
|
|
38701
|
+
className: ye(
|
|
38693
38702
|
"fixed inset-0 z-50 color-utility-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
38694
38703
|
e
|
|
38695
38704
|
),
|
|
@@ -38697,17 +38706,17 @@ const Cae = Ot.Trigger, SJ = Ot.Portal, Ss = Ot.Close, mp = p.forwardRef(({ clas
|
|
|
38697
38706
|
}
|
|
38698
38707
|
));
|
|
38699
38708
|
mp.displayName = Ot.Overlay.displayName;
|
|
38700
|
-
const Ts = p.forwardRef(({ className: e, children: t, hasCloseIcon: a,
|
|
38701
|
-
/* @__PURE__ */ u.jsx(mp, {}),
|
|
38709
|
+
const Ts = p.forwardRef(({ className: e, children: t, hasCloseIcon: a, overlayClasses: n, ...r }, o) => /* @__PURE__ */ u.jsxs(SJ, { children: [
|
|
38710
|
+
/* @__PURE__ */ u.jsx(mp, { className: n }),
|
|
38702
38711
|
/* @__PURE__ */ u.jsx(Ba, { trapped: !1, children: /* @__PURE__ */ u.jsxs(
|
|
38703
38712
|
Ot.Content,
|
|
38704
38713
|
{
|
|
38705
|
-
ref:
|
|
38706
|
-
className:
|
|
38714
|
+
ref: o,
|
|
38715
|
+
className: ye(
|
|
38707
38716
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col gap-4 rounded-t-[10px] border color-bg-default",
|
|
38708
38717
|
e
|
|
38709
38718
|
),
|
|
38710
|
-
...
|
|
38719
|
+
...r,
|
|
38711
38720
|
children: [
|
|
38712
38721
|
t,
|
|
38713
38722
|
a && /* @__PURE__ */ u.jsx(Ss, { className: "absolute top-6 right-6 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ u.jsx(To, { name: "Close", className: "h-5 w-5", fill: "#363B3F" }) })
|
|
@@ -38719,18 +38728,18 @@ Ts.displayName = "DrawerContent";
|
|
|
38719
38728
|
const Is = ({
|
|
38720
38729
|
className: e,
|
|
38721
38730
|
...t
|
|
38722
|
-
}) => /* @__PURE__ */ u.jsx("div", { className:
|
|
38731
|
+
}) => /* @__PURE__ */ u.jsx("div", { className: ye("flex flex-col space-y-1.5 text-left", e), ...t });
|
|
38723
38732
|
Is.displayName = "DrawerHeader";
|
|
38724
38733
|
const Ns = ({
|
|
38725
38734
|
className: e,
|
|
38726
38735
|
...t
|
|
38727
|
-
}) => /* @__PURE__ */ u.jsx("div", { className:
|
|
38736
|
+
}) => /* @__PURE__ */ u.jsx("div", { className: ye("flex gap-2", e), ...t });
|
|
38728
38737
|
Ns.displayName = "DrawerFooter";
|
|
38729
38738
|
const Ds = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ u.jsx(
|
|
38730
38739
|
Ot.Title,
|
|
38731
38740
|
{
|
|
38732
38741
|
ref: a,
|
|
38733
|
-
className:
|
|
38742
|
+
className: ye("text-heading-md", e),
|
|
38734
38743
|
...t
|
|
38735
38744
|
}
|
|
38736
38745
|
));
|
|
@@ -38739,7 +38748,7 @@ const TJ = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ u.jsx(
|
|
|
38739
38748
|
Ot.Description,
|
|
38740
38749
|
{
|
|
38741
38750
|
ref: a,
|
|
38742
|
-
className:
|
|
38751
|
+
className: ye("text-body-sm color-text-secondary", e),
|
|
38743
38752
|
...t
|
|
38744
38753
|
}
|
|
38745
38754
|
));
|
|
@@ -38773,18 +38782,21 @@ const Lae = ({
|
|
|
38773
38782
|
className: f,
|
|
38774
38783
|
contentClassName: c,
|
|
38775
38784
|
disableOutsideClick: l,
|
|
38776
|
-
hasCloseIcon: d
|
|
38777
|
-
|
|
38785
|
+
hasCloseIcon: d,
|
|
38786
|
+
overlayClasses: h,
|
|
38787
|
+
noOverlay: y
|
|
38788
|
+
}) => EJ("(max-width: 768px)") ? /* @__PURE__ */ u.jsx(As, { open: e, onOpenChange: (g) => t(g), children: /* @__PURE__ */ u.jsxs(
|
|
38778
38789
|
Ts,
|
|
38779
38790
|
{
|
|
38780
|
-
className:
|
|
38791
|
+
className: ye("w-full", f),
|
|
38781
38792
|
hasCloseIcon: d,
|
|
38793
|
+
overlayClasses: ye(h, { "bg-transparent": y }),
|
|
38782
38794
|
children: [
|
|
38783
38795
|
/* @__PURE__ */ u.jsx(Is, { className: "px-6 pt-6", children: /* @__PURE__ */ u.jsx(Ds, { className: "text-left text-heading-md", children: a }) }),
|
|
38784
38796
|
/* @__PURE__ */ u.jsxs(
|
|
38785
38797
|
"div",
|
|
38786
38798
|
{
|
|
38787
|
-
className:
|
|
38799
|
+
className: ye(
|
|
38788
38800
|
"flex flex-col gap-4 w-full h-full border-t-[1px] text-body-sm color-text-default",
|
|
38789
38801
|
{
|
|
38790
38802
|
"px-6 pt-6 pb-2": !c
|
|
@@ -38826,15 +38838,16 @@ const Lae = ({
|
|
|
38826
38838
|
) }) : /* @__PURE__ */ u.jsx(lp, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(
|
|
38827
38839
|
js,
|
|
38828
38840
|
{
|
|
38829
|
-
className:
|
|
38841
|
+
className: ye(f),
|
|
38830
38842
|
dismissable: !l,
|
|
38831
38843
|
hasCloseIcon: d,
|
|
38844
|
+
overlayClasses: ye(h, { "bg-transparent": y }),
|
|
38832
38845
|
children: [
|
|
38833
38846
|
/* @__PURE__ */ u.jsx(hp, { className: "px-6 pt-4", children: /* @__PURE__ */ u.jsx(yp, { className: "text-heading-md", children: a }) }),
|
|
38834
38847
|
/* @__PURE__ */ u.jsxs(
|
|
38835
38848
|
"div",
|
|
38836
38849
|
{
|
|
38837
|
-
className:
|
|
38850
|
+
className: ye(
|
|
38838
38851
|
"flex flex-col gap-2 w-full h-full border-t-[1px] text-body-sm color-text-default",
|
|
38839
38852
|
{
|
|
38840
38853
|
"px-6 pt-6 pb-2": !c
|
|
@@ -39452,7 +39465,7 @@ const rX = ({
|
|
|
39452
39465
|
}, y) => /* @__PURE__ */ u.jsxs(
|
|
39453
39466
|
"div",
|
|
39454
39467
|
{
|
|
39455
|
-
className:
|
|
39468
|
+
className: ye(
|
|
39456
39469
|
"flex w-full h-full justify-center gap-2",
|
|
39457
39470
|
c === "vertical" ? "flex-row relative items-start" : "flex-col items-center",
|
|
39458
39471
|
s
|
|
@@ -39463,7 +39476,7 @@ const rX = ({
|
|
|
39463
39476
|
/* @__PURE__ */ u.jsxs(
|
|
39464
39477
|
"div",
|
|
39465
39478
|
{
|
|
39466
|
-
className:
|
|
39479
|
+
className: ye("flex w-full items-center justify-center", {
|
|
39467
39480
|
"flex-col flex-[0.05] relative h-full": c === "vertical",
|
|
39468
39481
|
"!h-[4rem]": c === "vertical" && t,
|
|
39469
39482
|
"translate-x-1/2 right-4 relative": c === "horizontal"
|
|
@@ -39472,7 +39485,7 @@ const rX = ({
|
|
|
39472
39485
|
/* @__PURE__ */ u.jsx(
|
|
39473
39486
|
"div",
|
|
39474
39487
|
{
|
|
39475
|
-
className:
|
|
39488
|
+
className: ye(
|
|
39476
39489
|
"flex h-8 w-8 flex-none flex-col items-center justify-center gap-2 rounded-full",
|
|
39477
39490
|
{ "color-bg-default-inverse": t || e || a },
|
|
39478
39491
|
{ "color-bg-tertiary": !t || !e }
|
|
@@ -39480,7 +39493,7 @@ const rX = ({
|
|
|
39480
39493
|
children: r ? /* @__PURE__ */ u.jsx(
|
|
39481
39494
|
"span",
|
|
39482
39495
|
{
|
|
39483
|
-
className:
|
|
39496
|
+
className: ye("text-body-md-bold", {
|
|
39484
39497
|
"color-text-inverse": t || e || a,
|
|
39485
39498
|
"color-text-secondary": !t || !e
|
|
39486
39499
|
}),
|
|
@@ -39493,7 +39506,7 @@ const rX = ({
|
|
|
39493
39506
|
"div",
|
|
39494
39507
|
{
|
|
39495
39508
|
id: "step-line",
|
|
39496
|
-
className:
|
|
39509
|
+
className: ye(
|
|
39497
39510
|
"flex grow shrink-0 basis-0 flex-col items-center gap-2 border",
|
|
39498
39511
|
{
|
|
39499
39512
|
"border-transparent": n && c === "horizontal" || c === "vertical" && n && t,
|
|
@@ -39513,7 +39526,7 @@ const rX = ({
|
|
|
39513
39526
|
"div",
|
|
39514
39527
|
{
|
|
39515
39528
|
id: "step-content",
|
|
39516
|
-
className:
|
|
39529
|
+
className: ye("text-heading-xsm flex flex-col w-full h-full", {
|
|
39517
39530
|
"color-text-default": t || e || a,
|
|
39518
39531
|
"color-text-secondary": !e && !t,
|
|
39519
39532
|
"flex-1 text-left relative gap-4 py-2": c === "vertical",
|
|
@@ -39538,7 +39551,7 @@ const rX = ({
|
|
|
39538
39551
|
] }) : /* @__PURE__ */ u.jsx(
|
|
39539
39552
|
"div",
|
|
39540
39553
|
{
|
|
39541
|
-
className:
|
|
39554
|
+
className: ye(
|
|
39542
39555
|
"absolute flex flex-col gap-4 top-1/2 left-1/2 -translate-x-1/2 translate-y-1/4 transform max-w-sm",
|
|
39543
39556
|
{
|
|
39544
39557
|
hidden: !e && !t
|
|
@@ -39559,7 +39572,7 @@ const rX = ({
|
|
|
39559
39572
|
({ children: e, className: t, layout: a = "horizontal", ...n }, r) => e ? /* @__PURE__ */ u.jsx(
|
|
39560
39573
|
"div",
|
|
39561
39574
|
{
|
|
39562
|
-
className:
|
|
39575
|
+
className: ye(
|
|
39563
39576
|
"flex items-center justify-center",
|
|
39564
39577
|
{
|
|
39565
39578
|
"flex-col w-full max-w-sm": a === "vertical",
|
|
@@ -39692,23 +39705,24 @@ const Dae = ({
|
|
|
39692
39705
|
headerClassName: s,
|
|
39693
39706
|
side: f = "left",
|
|
39694
39707
|
noOverlay: c = !1,
|
|
39695
|
-
|
|
39696
|
-
|
|
39708
|
+
overlayClasses: l,
|
|
39709
|
+
rounded: d = !1,
|
|
39710
|
+
dismissible: h
|
|
39697
39711
|
}) => /* @__PURE__ */ u.jsx(iX, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(
|
|
39698
39712
|
Op,
|
|
39699
39713
|
{
|
|
39700
|
-
className:
|
|
39714
|
+
className: ye(
|
|
39701
39715
|
{
|
|
39702
|
-
"rounded-b-lg":
|
|
39703
|
-
"rounded-l-lg":
|
|
39704
|
-
"rounded-t-lg":
|
|
39705
|
-
"rounded-r-lg":
|
|
39716
|
+
"rounded-b-lg": d && f === "top",
|
|
39717
|
+
"rounded-l-lg": d && f === "right",
|
|
39718
|
+
"rounded-t-lg": d && f === "bottom",
|
|
39719
|
+
"rounded-r-lg": d && f === "left"
|
|
39706
39720
|
},
|
|
39707
39721
|
o
|
|
39708
39722
|
),
|
|
39709
39723
|
side: f,
|
|
39710
|
-
overlayClasses:
|
|
39711
|
-
dismissible:
|
|
39724
|
+
overlayClasses: ye(l, { "bg-transparent": c }),
|
|
39725
|
+
dismissible: h,
|
|
39712
39726
|
children: [
|
|
39713
39727
|
a && /* @__PURE__ */ u.jsx(Vp, { className: s, children: /* @__PURE__ */ u.jsxs(qp, { className: "text-body-sm-bold inline-flex gap-2 items-center", children: [
|
|
39714
39728
|
n && (n !== "X" ? /* @__PURE__ */ u.jsx(Pe, { name: n, size: "md" }) : /* @__PURE__ */ u.jsx(sX, { className: "rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ u.jsx(Pe, { name: n, size: "md" }) })),
|
|
@@ -39863,12 +39877,12 @@ const Pae = ({
|
|
|
39863
39877
|
defaultValue: s,
|
|
39864
39878
|
disabled: c,
|
|
39865
39879
|
onValueChange: f,
|
|
39866
|
-
children: /* @__PURE__ */ u.jsxs("div", { className:
|
|
39867
|
-
/* @__PURE__ */ u.jsx(Zp, { className:
|
|
39880
|
+
children: /* @__PURE__ */ u.jsxs("div", { className: ye(r), children: [
|
|
39881
|
+
/* @__PURE__ */ u.jsx(Zp, { className: ye(a), children: /* @__PURE__ */ u.jsx(mX, { placeholder: o, id: e }) }),
|
|
39868
39882
|
/* @__PURE__ */ u.jsx(
|
|
39869
39883
|
Up,
|
|
39870
39884
|
{
|
|
39871
|
-
className:
|
|
39885
|
+
className: ye(n),
|
|
39872
39886
|
sideOffset: d,
|
|
39873
39887
|
alignOffset: h,
|
|
39874
39888
|
children: /* @__PURE__ */ u.jsxs(yX, { children: [
|
|
@@ -39876,7 +39890,7 @@ const Pae = ({
|
|
|
39876
39890
|
l.map((y) => /* @__PURE__ */ u.jsx(Yp, { value: y.value, children: /* @__PURE__ */ u.jsxs(
|
|
39877
39891
|
"div",
|
|
39878
39892
|
{
|
|
39879
|
-
className:
|
|
39893
|
+
className: ye("flex items-center", {
|
|
39880
39894
|
"gap-4": y.icon,
|
|
39881
39895
|
"gap-2": !y.icon
|
|
39882
39896
|
}),
|
|
@@ -39902,7 +39916,7 @@ const Pae = ({
|
|
|
39902
39916
|
}
|
|
39903
39917
|
),
|
|
39904
39918
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
39905
|
-
/* @__PURE__ */ u.jsxs("span", { className:
|
|
39919
|
+
/* @__PURE__ */ u.jsxs("span", { className: ye("flex items-center gap-2"), children: [
|
|
39906
39920
|
/* @__PURE__ */ u.jsx(Ea, { className: "text-body-sm", children: y.label }),
|
|
39907
39921
|
y.pro && /* @__PURE__ */ u.jsx(
|
|
39908
39922
|
L4,
|
|
@@ -59660,7 +59674,7 @@ const Hae = He(
|
|
|
59660
59674
|
KW,
|
|
59661
59675
|
{
|
|
59662
59676
|
defaultValue: s,
|
|
59663
|
-
className:
|
|
59677
|
+
className: ye(
|
|
59664
59678
|
"px-4 pt-2 gap-4 rounded-lg shadow-elevation-4 w-[350px] bg-white pb-4",
|
|
59665
59679
|
s === "emojiPicker" && "h-[400px]"
|
|
59666
59680
|
),
|