docthub-core-components 3.2.8 → 3.3.1
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/components/overrides/ui/account-conflict-prompt/account-conflict-prompt.js +265 -0
- package/dist/components/overrides/ui/account-conflict-prompt/presets.js +50 -0
- package/dist/components/overrides/ui/account-conflict-prompt/types.js +5 -0
- package/dist/components/overrides/ui/auto-complete.js +67 -66
- package/dist/components/ui/cookie-dialog.js +38 -32
- package/dist/components/ui/dialog.js +148 -145
- package/dist/index.js +180 -160
- package/dist/lib/get-floating-dropdown-position.js +4 -4
- package/dist/src/components/overrides/ui/account-conflict-prompt/account-conflict-prompt.d.ts +2 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/index.d.ts +3 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/presets.d.ts +22 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/types.d.ts +42 -0
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts +3 -3
- package/dist/src/components/ui/command.d.ts +7 -7
- package/dist/src/components/ui/sheet.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,45 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
3
3
|
import { c as D } from "react-compiler-runtime";
|
|
4
|
+
import { X as N } from "lucide-react";
|
|
4
5
|
import { DoctButton as k } from "./button.js";
|
|
5
|
-
import {
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
8
|
-
const e = D(
|
|
9
|
-
open:
|
|
10
|
-
defaultOpen:
|
|
11
|
-
onOpenChange:
|
|
12
|
-
cookiePolicyRoute:
|
|
13
|
-
onPolicyClick:
|
|
6
|
+
import { DialogTitle as v, DialogHeader as F, DialogClose as y, DialogDescription as B, DialogFooter as _, DialogContent as O, Dialog as j } from "./dialog.js";
|
|
7
|
+
import { cn as z } from "../../lib/utils.js";
|
|
8
|
+
const A = (C) => {
|
|
9
|
+
const e = D(22), {
|
|
10
|
+
open: h,
|
|
11
|
+
defaultOpen: x,
|
|
12
|
+
onOpenChange: u,
|
|
13
|
+
cookiePolicyRoute: g,
|
|
14
|
+
onPolicyClick: l,
|
|
14
15
|
onAccept: a,
|
|
15
|
-
className:
|
|
16
|
-
} =
|
|
16
|
+
className: b
|
|
17
|
+
} = C;
|
|
17
18
|
let o;
|
|
18
|
-
e[0] !==
|
|
19
|
-
let c
|
|
20
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t(
|
|
19
|
+
e[0] !== b ? (o = z("sm:!max-w-[384px] !max-w-[328px] gap-3 !rounded-2xl border-0 bg-[#525252] p-4 text-white shadow-none sm:!rounded-2xl", b), e[0] = b, e[1] = o) : o = e[1];
|
|
20
|
+
let c;
|
|
21
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t(v, { className: "text-left text-[16px] !font-medium leading-[20px] tracking-normal text-white", children: "Cookies" }), e[2] = c) : c = e[2];
|
|
22
|
+
let m, d, p;
|
|
23
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ w(F, { className: "flex-row items-center justify-between space-y-0 text-left", children: [
|
|
24
|
+
c,
|
|
25
|
+
/* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t(k, { type: "button", variant: "ghost", size: "medium", iconOnly: !0, "aria-label": "Close cookie dialog", className: "h-6 w-6 shrink-0 rounded-none bg-transparent p-0 text-white hover:bg-transparent active:bg-transparent focus-visible:ring-white/40 focus-visible:ring-offset-0", icon: /* @__PURE__ */ t(N, { className: "!h-5 !w-5 !text-white", strokeWidth: 2 }) }) })
|
|
26
|
+
] }), d = /* @__PURE__ */ t(B, { className: "text-[12px] font-normal leading-[18px] text-[#DCDCDC] pr-0 sm:pr-4", children: "We use cookies to enhance your browsing experience, analyse site traffic, and personalise content. By continuing to use our site, you consent to our use of cookies." }), p = /* @__PURE__ */ t("hr", { className: "m-0 border-0 border-t border-[#FFFFFF1F]" }), e[3] = m, e[4] = d, e[5] = p) : (m = e[3], d = e[4], p = e[5]);
|
|
21
27
|
let i;
|
|
22
|
-
e[
|
|
23
|
-
|
|
24
|
-
}, children: "Cookies Policy" }), e[
|
|
28
|
+
e[6] !== g || e[7] !== l ? (i = /* @__PURE__ */ t(k, { type: "button", variant: "secondary", size: "medium", className: "h-[36px] min-w-0 flex-1 basis-0 shrink !bg-[#6B6B6B] text-[14px] font-medium !text-white hover:!bg-[#7A7A7A]", onClick: () => {
|
|
29
|
+
l == null || l(), window.open(g, "_blank", "noopener,noreferrer");
|
|
30
|
+
}, children: "Cookies Policy" }), e[6] = g, e[7] = l, e[8] = i) : i = e[8];
|
|
25
31
|
let n;
|
|
26
|
-
e[
|
|
27
|
-
let
|
|
28
|
-
e[
|
|
32
|
+
e[9] !== a ? (n = /* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t(k, { type: "button", variant: "brandBlue", size: "medium", className: "h-[36px] min-w-0 flex-1 basis-0 shrink text-[14px] font-medium", onClick: () => a == null ? void 0 : a(), children: "Ok, Got it" }) }), e[9] = a, e[10] = n) : n = e[10];
|
|
33
|
+
let s;
|
|
34
|
+
e[11] !== i || e[12] !== n ? (s = /* @__PURE__ */ w(_, { className: "!flex !flex-row !flex-nowrap items-center gap-3 pt-1", children: [
|
|
29
35
|
i,
|
|
30
36
|
n
|
|
31
|
-
] }), e[
|
|
32
|
-
let
|
|
33
|
-
e[
|
|
34
|
-
c,
|
|
37
|
+
] }), e[11] = i, e[12] = n, e[13] = s) : s = e[13];
|
|
38
|
+
let r;
|
|
39
|
+
e[14] !== o || e[15] !== s ? (r = /* @__PURE__ */ w(O, { showCloseButton: !1, className: o, children: [
|
|
35
40
|
m,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
d,
|
|
42
|
+
p,
|
|
43
|
+
s
|
|
44
|
+
] }), e[14] = o, e[15] = s, e[16] = r) : r = e[16];
|
|
45
|
+
let f;
|
|
46
|
+
return e[17] !== x || e[18] !== u || e[19] !== h || e[20] !== r ? (f = /* @__PURE__ */ t(j, { open: h, defaultOpen: x, onOpenChange: u, modal: !0, children: r }), e[17] = x, e[18] = u, e[19] = h, e[20] = r, e[21] = f) : f = e[21], f;
|
|
41
47
|
};
|
|
42
|
-
|
|
48
|
+
A.displayName = "CookieDialog";
|
|
43
49
|
export {
|
|
44
|
-
|
|
50
|
+
A as CookieDialog
|
|
45
51
|
};
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as w, jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import { c as g } from "react-compiler-runtime";
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import { X as
|
|
6
|
-
import * as
|
|
7
|
-
import { cn as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
let e, o,
|
|
11
|
-
|
|
4
|
+
import { Dialog as p } from "@base-ui/react/dialog";
|
|
5
|
+
import { X as A } from "lucide-react";
|
|
6
|
+
import * as f from "react";
|
|
7
|
+
import { cn as u } from "../../lib/utils.js";
|
|
8
|
+
const L = f.createContext(null), G = (i) => {
|
|
9
|
+
const t = g(11);
|
|
10
|
+
let e, o, l;
|
|
11
|
+
t[0] !== i ? ({
|
|
12
12
|
onOpenChange: e,
|
|
13
|
-
modal:
|
|
13
|
+
modal: l,
|
|
14
14
|
...o
|
|
15
|
-
} = i,
|
|
16
|
-
const s =
|
|
17
|
-
let a;
|
|
18
|
-
l[4] !== e ? (a = e ? (n) => e(n) : void 0, l[4] = e, l[5] = a) : a = l[5];
|
|
15
|
+
} = i, t[0] = i, t[1] = e, t[2] = o, t[3] = l) : (e = t[1], o = t[2], l = t[3]);
|
|
16
|
+
const s = l === void 0 ? !0 : l, [a, c] = f.useState(!1);
|
|
19
17
|
let r;
|
|
20
|
-
|
|
18
|
+
t[4] !== e ? (r = e ? (d) => e(d) : void 0, t[4] = e, t[5] = r) : r = t[5];
|
|
19
|
+
let n;
|
|
20
|
+
return t[6] !== a || t[7] !== s || t[8] !== o || t[9] !== r ? (n = /* @__PURE__ */ m(L.Provider, { value: c, children: /* @__PURE__ */ m(p.Root, { onOpenChange: r, modal: s, disablePointerDismissal: a, ...o }) }), t[6] = a, t[7] = s, t[8] = o, t[9] = r, t[10] = n) : n = t[10], n;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
const
|
|
22
|
+
G.displayName = "Dialog";
|
|
23
|
+
const J = f.forwardRef((i, t) => {
|
|
24
24
|
const e = g(12);
|
|
25
|
-
let o,
|
|
25
|
+
let o, l, s;
|
|
26
26
|
if (e[0] !== i ? ({
|
|
27
27
|
asChild: o,
|
|
28
|
-
children:
|
|
28
|
+
children: l,
|
|
29
29
|
...s
|
|
30
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
31
|
-
const
|
|
30
|
+
} = i, e[0] = i, e[1] = o, e[2] = l, e[3] = s) : (o = e[1], l = e[2], s = e[3]), o && f.isValidElement(l)) {
|
|
31
|
+
const r = t, n = l;
|
|
32
32
|
let d;
|
|
33
|
-
return e[4] !== s || e[5] !==
|
|
33
|
+
return e[4] !== s || e[5] !== r || e[6] !== n ? (d = /* @__PURE__ */ m(p.Trigger, { ref: r, render: n, ...s }), e[4] = s, e[5] = r, e[6] = n, e[7] = d) : d = e[7], d;
|
|
34
34
|
}
|
|
35
|
-
const a =
|
|
36
|
-
let
|
|
37
|
-
return e[8] !==
|
|
35
|
+
const a = t;
|
|
36
|
+
let c;
|
|
37
|
+
return e[8] !== l || e[9] !== s || e[10] !== a ? (c = /* @__PURE__ */ m(p.Trigger, { ref: a, ...s, children: l }), e[8] = l, e[9] = s, e[10] = a, e[11] = c) : c = e[11], c;
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const
|
|
39
|
+
J.displayName = "DialogTrigger";
|
|
40
|
+
const K = p.Portal, M = f.forwardRef((i, t) => {
|
|
41
41
|
const e = g(12);
|
|
42
|
-
let o,
|
|
42
|
+
let o, l, s;
|
|
43
43
|
if (e[0] !== i ? ({
|
|
44
44
|
asChild: o,
|
|
45
|
-
children:
|
|
45
|
+
children: l,
|
|
46
46
|
...s
|
|
47
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
48
|
-
const
|
|
47
|
+
} = i, e[0] = i, e[1] = o, e[2] = l, e[3] = s) : (o = e[1], l = e[2], s = e[3]), o && f.isValidElement(l)) {
|
|
48
|
+
const r = t, n = l;
|
|
49
49
|
let d;
|
|
50
|
-
return e[4] !== s || e[5] !==
|
|
50
|
+
return e[4] !== s || e[5] !== r || e[6] !== n ? (d = /* @__PURE__ */ m(p.Close, { ref: r, render: n, ...s }), e[4] = s, e[5] = r, e[6] = n, e[7] = d) : d = e[7], d;
|
|
51
51
|
}
|
|
52
|
-
const a =
|
|
53
|
-
let
|
|
54
|
-
return e[8] !==
|
|
52
|
+
const a = t;
|
|
53
|
+
let c;
|
|
54
|
+
return e[8] !== l || e[9] !== s || e[10] !== a ? (c = /* @__PURE__ */ m(p.Close, { ref: a, ...s, children: l }), e[8] = l, e[9] = s, e[10] = a, e[11] = c) : c = e[11], c;
|
|
55
55
|
});
|
|
56
|
-
|
|
57
|
-
const
|
|
56
|
+
M.displayName = "DialogClose";
|
|
57
|
+
const X = f.forwardRef((i, t) => {
|
|
58
58
|
const e = g(9);
|
|
59
|
-
let o,
|
|
59
|
+
let o, l;
|
|
60
60
|
e[0] !== i ? ({
|
|
61
61
|
className: o,
|
|
62
|
-
...
|
|
63
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
62
|
+
...l
|
|
63
|
+
} = i, e[0] = i, e[1] = o, e[2] = l) : (o = e[1], l = e[2]);
|
|
64
64
|
let s;
|
|
65
|
-
e[3] !== o ? (s =
|
|
65
|
+
e[3] !== o ? (s = u("fixed inset-0 z-50 bg-black/80 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0", o), e[3] = o, e[4] = s) : s = e[4];
|
|
66
66
|
let a;
|
|
67
|
-
return e[5] !==
|
|
67
|
+
return e[5] !== l || e[6] !== t || e[7] !== s ? (a = /* @__PURE__ */ m(p.Backdrop, { ref: t, className: s, ...l }), e[5] = l, e[6] = t, e[7] = s, e[8] = a) : a = e[8], a;
|
|
68
68
|
});
|
|
69
|
-
|
|
70
|
-
const
|
|
69
|
+
X.displayName = "DialogOverlay";
|
|
70
|
+
const Q = {
|
|
71
71
|
xs: "max-w-xs",
|
|
72
72
|
sm: "max-w-sm",
|
|
73
73
|
md: "max-w-md",
|
|
@@ -75,7 +75,7 @@ const G = {
|
|
|
75
75
|
xl: "max-w-xl",
|
|
76
76
|
"2xl": "max-w-2xl",
|
|
77
77
|
full: "max-w-[calc(100vw-2rem)]"
|
|
78
|
-
},
|
|
78
|
+
}, H = u(
|
|
79
79
|
"[scrollbar-width:thin]",
|
|
80
80
|
// "[scrollbar-color:hsl(var(--muted-foreground)/0.35)_transparent]",
|
|
81
81
|
"[&::-webkit-scrollbar]:w-1",
|
|
@@ -83,148 +83,151 @@ const G = {
|
|
|
83
83
|
"[&::-webkit-scrollbar-thumb]:rounded-full",
|
|
84
84
|
"[&::-webkit-scrollbar-thumb]:bg-border/55",
|
|
85
85
|
"[&::-webkit-scrollbar-thumb:hover]:bg-border/85"
|
|
86
|
-
),
|
|
87
|
-
const e = g(
|
|
88
|
-
let o,
|
|
86
|
+
), U = f.forwardRef((i, t) => {
|
|
87
|
+
const e = g(35);
|
|
88
|
+
let o, l, s, a, c, r, n, d;
|
|
89
89
|
e[0] !== i ? ({
|
|
90
|
-
className:
|
|
90
|
+
className: l,
|
|
91
91
|
children: o,
|
|
92
92
|
closeOnOutsideClick: a,
|
|
93
|
-
size:
|
|
94
|
-
showCloseButton:
|
|
95
|
-
closeOnEscape:
|
|
93
|
+
size: c,
|
|
94
|
+
showCloseButton: r,
|
|
95
|
+
closeOnEscape: n,
|
|
96
96
|
layout: d,
|
|
97
97
|
...s
|
|
98
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
99
|
-
const
|
|
100
|
-
let
|
|
101
|
-
e[9] !==
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
let v;
|
|
109
|
-
e[16] !== O ? (v = p("absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[open]:bg-accent data-[open]:text-muted-foreground", O), e[16] = O, e[17] = v) : v = e[17];
|
|
110
|
-
const _ = v;
|
|
111
|
-
let h;
|
|
112
|
-
e[18] !== _ || e[19] !== R ? (h = R && /* @__PURE__ */ b(f.Close, { className: _, children: [
|
|
113
|
-
/* @__PURE__ */ m(H, { className: "h-4 w-4" }),
|
|
114
|
-
/* @__PURE__ */ m("span", { className: "sr-only", children: "Close" })
|
|
115
|
-
] }), e[18] = _, e[19] = R, e[20] = h) : h = e[20];
|
|
116
|
-
let y;
|
|
117
|
-
e[21] !== o || e[22] !== B || e[23] !== s || e[24] !== z || e[25] !== h ? (y = /* @__PURE__ */ b(f.Popup, { ref: z, className: B, tabIndex: -1, initialFocus: E, ...s, children: [
|
|
118
|
-
o,
|
|
119
|
-
h
|
|
120
|
-
] }), e[21] = o, e[22] = B, e[23] = s, e[24] = z, e[25] = h, e[26] = y) : y = e[26];
|
|
121
|
-
const D = y;
|
|
98
|
+
} = i, e[0] = i, e[1] = o, e[2] = l, e[3] = s, e[4] = a, e[5] = c, e[6] = r, e[7] = n, e[8] = d) : (o = e[1], l = e[2], s = e[3], a = e[4], c = e[5], r = e[6], n = e[7], d = e[8]);
|
|
99
|
+
const N = a === void 0 ? !0 : a, q = c === void 0 ? "lg" : c, O = r === void 0 ? !0 : r, h = d === void 0 ? "default" : d, x = f.useContext(L);
|
|
100
|
+
let v, y;
|
|
101
|
+
e[9] !== N || e[10] !== x ? (v = () => (x == null || x(!N), () => x == null ? void 0 : x(!1)), y = [N, x], e[9] = N, e[10] = x, e[11] = v, e[12] = y) : (v = e[11], y = e[12]), f.useLayoutEffect(v, y);
|
|
102
|
+
const I = f.useRef(null);
|
|
103
|
+
let D;
|
|
104
|
+
e[13] !== t ? (D = (V) => {
|
|
105
|
+
I.current = V, typeof t == "function" ? t(V) : t && (t.current = V);
|
|
106
|
+
}, e[13] = t, e[14] = D) : D = e[14];
|
|
107
|
+
const T = D, B = h === "outsideScroll" ? "relative left-auto top-auto z-50 mx-auto w-full translate-x-0 translate-y-0 border bg-background shadow-lg duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 sm:rounded-lg pointer-events-auto" : "fixed left-[50%] top-[50%] z-50 w-full translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-[48%] data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-[48%] sm:rounded-lg", _ = h === "insideScroll" ? "flex max-h-[min(90dvh,36rem)] flex-col overflow-hidden gap-0 p-0" : "grid gap-4 p-6", j = Q[q];
|
|
122
108
|
let C;
|
|
123
|
-
e[
|
|
109
|
+
e[15] !== l || e[16] !== _ || e[17] !== j || e[18] !== B ? (C = u(B, _, j, l), e[15] = l, e[16] = _, e[17] = j, e[18] = B, e[19] = C) : C = e[19];
|
|
110
|
+
const E = C, P = h === "insideScroll" ? "right-6 top-6" : "right-4 top-4";
|
|
124
111
|
let k;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
112
|
+
e[20] !== P ? (k = u("absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[open]:bg-accent data-[open]:text-muted-foreground", P), e[20] = P, e[21] = k) : k = e[21];
|
|
113
|
+
const F = k;
|
|
114
|
+
let b;
|
|
115
|
+
e[22] !== F || e[23] !== O ? (b = O && /* @__PURE__ */ w(p.Close, { className: F, children: [
|
|
116
|
+
/* @__PURE__ */ m(A, { className: "h-4 w-4" }),
|
|
117
|
+
/* @__PURE__ */ m("span", { className: "sr-only", children: "Close" })
|
|
118
|
+
] }), e[22] = F, e[23] = O, e[24] = b) : b = e[24];
|
|
119
|
+
let R;
|
|
120
|
+
e[25] !== o || e[26] !== E || e[27] !== s || e[28] !== T || e[29] !== b ? (R = /* @__PURE__ */ w(p.Popup, { ref: T, className: E, tabIndex: -1, initialFocus: I, ...s, children: [
|
|
121
|
+
o,
|
|
122
|
+
b
|
|
123
|
+
] }), e[25] = o, e[26] = E, e[27] = s, e[28] = T, e[29] = b, e[30] = R) : R = e[30];
|
|
124
|
+
const S = R;
|
|
125
|
+
let z;
|
|
126
|
+
e[31] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ m(X, {}), e[31] = z) : z = e[31];
|
|
127
|
+
let $;
|
|
128
|
+
return e[32] !== h || e[33] !== S ? ($ = /* @__PURE__ */ w(K, { children: [
|
|
129
|
+
z,
|
|
130
|
+
h === "outsideScroll" ? /* @__PURE__ */ m(p.Viewport, { className: u("fixed inset-0 z-50 overflow-y-auto overscroll-contain", H), children: /* @__PURE__ */ m("div", { className: "pointer-events-none flex min-h-full items-center justify-center p-4 sm:p-6", children: S }) }) : S
|
|
131
|
+
] }), e[32] = h, e[33] = S, e[34] = $) : $ = e[34], $;
|
|
129
132
|
});
|
|
130
|
-
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
+
U.displayName = "DialogContent";
|
|
134
|
+
const W = (i) => {
|
|
135
|
+
const t = g(8);
|
|
133
136
|
let e, o;
|
|
134
|
-
|
|
137
|
+
t[0] !== i ? ({
|
|
135
138
|
className: e,
|
|
136
139
|
...o
|
|
137
|
-
} = i,
|
|
138
|
-
let
|
|
139
|
-
|
|
140
|
+
} = i, t[0] = i, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
|
|
141
|
+
let l;
|
|
142
|
+
t[3] !== e ? (l = u("flex flex-col space-y-1.5 text-center sm:text-left", e), t[3] = e, t[4] = l) : l = t[4];
|
|
140
143
|
let s;
|
|
141
|
-
return
|
|
144
|
+
return t[5] !== o || t[6] !== l ? (s = /* @__PURE__ */ m("div", { className: l, ...o }), t[5] = o, t[6] = l, t[7] = s) : s = t[7], s;
|
|
142
145
|
};
|
|
143
|
-
|
|
144
|
-
const
|
|
146
|
+
W.displayName = "DialogHeader";
|
|
147
|
+
const Y = f.forwardRef((i, t) => {
|
|
145
148
|
const e = g(17);
|
|
146
|
-
let o,
|
|
149
|
+
let o, l, s;
|
|
147
150
|
if (e[0] !== i ? ({
|
|
148
151
|
className: o,
|
|
149
152
|
withTopBorder: s,
|
|
150
|
-
...
|
|
151
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
153
|
+
...l
|
|
154
|
+
} = i, e[0] = i, e[1] = o, e[2] = l, e[3] = s) : (o = e[1], l = e[2], s = e[3]), s) {
|
|
155
|
+
let r;
|
|
156
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ m("div", { className: "mx-6 shrink-0 border-t border-border", "aria-hidden": "true" }), e[4] = r) : r = e[4];
|
|
152
157
|
let n;
|
|
153
|
-
e[
|
|
154
|
-
let c;
|
|
155
|
-
e[5] !== o ? (c = p("flex flex-col-reverse items-stretch gap-2 px-6 pt-4 pb-5 sm:flex-row sm:items-center sm:justify-end", o), e[5] = o, e[6] = c) : c = e[6];
|
|
158
|
+
e[5] !== o ? (n = u("flex flex-col-reverse items-stretch gap-2 px-6 pt-4 pb-5 sm:flex-row sm:items-center sm:justify-end", o), e[5] = o, e[6] = n) : n = e[6];
|
|
156
159
|
let d;
|
|
157
|
-
return e[7] !==
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */ m("div", { ref:
|
|
160
|
-
] }), e[7] =
|
|
160
|
+
return e[7] !== l || e[8] !== t || e[9] !== n ? (d = /* @__PURE__ */ w("div", { className: "shrink-0", children: [
|
|
161
|
+
r,
|
|
162
|
+
/* @__PURE__ */ m("div", { ref: t, className: n, ...l })
|
|
163
|
+
] }), e[7] = l, e[8] = t, e[9] = n, e[10] = d) : d = e[10], d;
|
|
161
164
|
}
|
|
162
165
|
let a;
|
|
163
|
-
e[11] !== o ? (a =
|
|
164
|
-
let
|
|
165
|
-
return e[13] !==
|
|
166
|
+
e[11] !== o ? (a = u("flex flex-col-reverse items-stretch gap-2 sm:flex-row sm:items-center sm:justify-end", o), e[11] = o, e[12] = a) : a = e[12];
|
|
167
|
+
let c;
|
|
168
|
+
return e[13] !== l || e[14] !== t || e[15] !== a ? (c = /* @__PURE__ */ m("div", { ref: t, className: a, ...l }), e[13] = l, e[14] = t, e[15] = a, e[16] = c) : c = e[16], c;
|
|
166
169
|
});
|
|
167
|
-
|
|
168
|
-
const
|
|
170
|
+
Y.displayName = "DialogFooter";
|
|
171
|
+
const Z = f.forwardRef((i, t) => {
|
|
169
172
|
const e = g(17);
|
|
170
|
-
let o,
|
|
173
|
+
let o, l, s;
|
|
171
174
|
if (e[0] !== i ? ({
|
|
172
175
|
className: o,
|
|
173
176
|
withTopBorder: s,
|
|
174
|
-
...
|
|
175
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
177
|
+
...l
|
|
178
|
+
} = i, e[0] = i, e[1] = o, e[2] = l, e[3] = s) : (o = e[1], l = e[2], s = e[3]), s) {
|
|
179
|
+
let r;
|
|
180
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ m("div", { className: "mx-6 shrink-0 border-t border-border", "aria-hidden": "true" }), e[4] = r) : r = e[4];
|
|
176
181
|
let n;
|
|
177
|
-
e[
|
|
178
|
-
let c;
|
|
179
|
-
e[5] !== o ? (c = p("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pt-5 pb-5", P, o), e[5] = o, e[6] = c) : c = e[6];
|
|
182
|
+
e[5] !== o ? (n = u("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pt-5 pb-5", H, o), e[5] = o, e[6] = n) : n = e[6];
|
|
180
183
|
let d;
|
|
181
|
-
return e[7] !==
|
|
182
|
-
|
|
183
|
-
/* @__PURE__ */ m("div", { ref:
|
|
184
|
-
] }), e[7] =
|
|
184
|
+
return e[7] !== l || e[8] !== t || e[9] !== n ? (d = /* @__PURE__ */ w("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
185
|
+
r,
|
|
186
|
+
/* @__PURE__ */ m("div", { ref: t, className: n, ...l })
|
|
187
|
+
] }), e[7] = l, e[8] = t, e[9] = n, e[10] = d) : d = e[10], d;
|
|
185
188
|
}
|
|
186
189
|
let a;
|
|
187
|
-
e[11] !== o ? (a =
|
|
188
|
-
let
|
|
189
|
-
return e[13] !==
|
|
190
|
+
e[11] !== o ? (a = u("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 py-4", H, o), e[11] = o, e[12] = a) : a = e[12];
|
|
191
|
+
let c;
|
|
192
|
+
return e[13] !== l || e[14] !== t || e[15] !== a ? (c = /* @__PURE__ */ m("div", { ref: t, className: a, ...l }), e[13] = l, e[14] = t, e[15] = a, e[16] = c) : c = e[16], c;
|
|
190
193
|
});
|
|
191
|
-
|
|
192
|
-
const
|
|
194
|
+
Z.displayName = "DialogScrollableBody";
|
|
195
|
+
const ee = f.forwardRef((i, t) => {
|
|
193
196
|
const e = g(9);
|
|
194
|
-
let o,
|
|
197
|
+
let o, l;
|
|
195
198
|
e[0] !== i ? ({
|
|
196
199
|
className: o,
|
|
197
|
-
...
|
|
198
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
200
|
+
...l
|
|
201
|
+
} = i, e[0] = i, e[1] = o, e[2] = l) : (o = e[1], l = e[2]);
|
|
199
202
|
let s;
|
|
200
|
-
e[3] !== o ? (s =
|
|
203
|
+
e[3] !== o ? (s = u("text-lg font-semibold leading-none tracking-tight", o), e[3] = o, e[4] = s) : s = e[4];
|
|
201
204
|
let a;
|
|
202
|
-
return e[5] !==
|
|
205
|
+
return e[5] !== l || e[6] !== t || e[7] !== s ? (a = /* @__PURE__ */ m(p.Title, { ref: t, className: s, ...l }), e[5] = l, e[6] = t, e[7] = s, e[8] = a) : a = e[8], a;
|
|
203
206
|
});
|
|
204
|
-
|
|
205
|
-
const
|
|
207
|
+
ee.displayName = "DialogTitle";
|
|
208
|
+
const te = f.forwardRef((i, t) => {
|
|
206
209
|
const e = g(9);
|
|
207
|
-
let o,
|
|
210
|
+
let o, l;
|
|
208
211
|
e[0] !== i ? ({
|
|
209
212
|
className: o,
|
|
210
|
-
...
|
|
211
|
-
} = i, e[0] = i, e[1] = o, e[2] =
|
|
213
|
+
...l
|
|
214
|
+
} = i, e[0] = i, e[1] = o, e[2] = l) : (o = e[1], l = e[2]);
|
|
212
215
|
let s;
|
|
213
|
-
e[3] !== o ? (s =
|
|
216
|
+
e[3] !== o ? (s = u("text-sm text-muted-foreground", o), e[3] = o, e[4] = s) : s = e[4];
|
|
214
217
|
let a;
|
|
215
|
-
return e[5] !==
|
|
218
|
+
return e[5] !== l || e[6] !== t || e[7] !== s ? (a = /* @__PURE__ */ m(p.Description, { ref: t, className: s, ...l }), e[5] = l, e[6] = t, e[7] = s, e[8] = a) : a = e[8], a;
|
|
216
219
|
});
|
|
217
|
-
|
|
220
|
+
te.displayName = "DialogDescription";
|
|
218
221
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
222
|
+
G as Dialog,
|
|
223
|
+
M as DialogClose,
|
|
224
|
+
U as DialogContent,
|
|
225
|
+
te as DialogDescription,
|
|
226
|
+
Y as DialogFooter,
|
|
227
|
+
W as DialogHeader,
|
|
228
|
+
X as DialogOverlay,
|
|
229
|
+
K as DialogPortal,
|
|
230
|
+
Z as DialogScrollableBody,
|
|
231
|
+
ee as DialogTitle,
|
|
232
|
+
J as DialogTrigger
|
|
230
233
|
};
|