docthub-core-components 3.3.3 → 3.3.5
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.
|
@@ -30,9 +30,9 @@ const t = {
|
|
|
30
30
|
blogs: "https://blogs.dochub.in/",
|
|
31
31
|
jobsDropYourResume: "https://jobs.dochub.in/drop-your-resume",
|
|
32
32
|
// Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
|
|
33
|
-
enterpriseLogin: "https://enterprise.
|
|
33
|
+
enterpriseLogin: "https://enterprise.dochub.in/login/",
|
|
34
34
|
// When domain is changed to enterprise.dochub.in, update the URL
|
|
35
|
-
enterpriseRegister: "https://enterprise.
|
|
35
|
+
enterpriseRegister: "https://enterprise.dochub.in/register/",
|
|
36
36
|
enterpriseTermsConditions: "https://enterprise.dochub.in/enterprise-terms-conditions/",
|
|
37
37
|
enterprisePrivacyPolicy: "https://enterprise.dochub.in/enterprise-privacy-policy/",
|
|
38
38
|
enterprisePaymentPolicy: "https://enterprise.dochub.in/enterprise-payment-policy/",
|
|
@@ -11,8 +11,8 @@ const e = {
|
|
|
11
11
|
"request-demo": "https://dev.dochub.in/contact-us",
|
|
12
12
|
"contact-sales": "https://dev.dochub.in/contact-us",
|
|
13
13
|
// Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
|
|
14
|
-
"enterprise-login": "https://enterprise.
|
|
15
|
-
"create-enterprise-account": "https://enterprise.
|
|
14
|
+
"enterprise-login": "https://enterprise.dochub.in/login",
|
|
15
|
+
"create-enterprise-account": "https://enterprise.dochub.in/register",
|
|
16
16
|
"contact-support": "https://dev.dochub.in/contact-us"
|
|
17
17
|
}, o = {
|
|
18
18
|
"recruiter-solution": "https://www.docthub.com/recruiter",
|
|
@@ -1,51 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { X as
|
|
5
|
-
import { DoctButton as
|
|
6
|
-
import { DialogTitle as
|
|
7
|
-
import { cn as
|
|
8
|
-
const
|
|
9
|
-
const e =
|
|
10
|
-
open:
|
|
2
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
3
|
+
import { c as B } from "react-compiler-runtime";
|
|
4
|
+
import { X as F } from "lucide-react";
|
|
5
|
+
import { DoctButton as y } from "./button.js";
|
|
6
|
+
import { DialogTitle as O, DialogClose as N, DialogHeader as _, DialogDescription as j, DialogFooter as z, DialogContent as A, Dialog as S } from "./dialog.js";
|
|
7
|
+
import { cn as W } from "../../lib/utils.js";
|
|
8
|
+
const G = (v) => {
|
|
9
|
+
const e = B(26), {
|
|
10
|
+
open: p,
|
|
11
11
|
defaultOpen: x,
|
|
12
|
-
onOpenChange:
|
|
13
|
-
cookiePolicyRoute:
|
|
14
|
-
onPolicyClick:
|
|
15
|
-
onAccept:
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
onOpenChange: g,
|
|
13
|
+
cookiePolicyRoute: b,
|
|
14
|
+
onPolicyClick: c,
|
|
15
|
+
onAccept: m,
|
|
16
|
+
showCloseButton: D,
|
|
17
|
+
className: w
|
|
18
|
+
} = v, C = D === void 0 ? !0 : D;
|
|
18
19
|
let o;
|
|
19
|
-
e[0] !==
|
|
20
|
-
let
|
|
21
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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]);
|
|
20
|
+
e[0] !== w ? (o = W("sm:!max-w-[384px] !max-w-[328px] gap-3 !rounded-2xl border-0 bg-[#525252] p-4 text-white shadow-none sm:!rounded-2xl", w), e[0] = w, e[1] = o) : o = e[1];
|
|
21
|
+
let d;
|
|
22
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ t(O, { className: "text-left text-[16px] !font-medium leading-[20px] tracking-normal text-white", children: "Cookies" }), e[2] = d) : d = e[2];
|
|
27
23
|
let i;
|
|
28
|
-
e[
|
|
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];
|
|
31
|
-
let n;
|
|
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];
|
|
24
|
+
e[3] !== C ? (i = C ? /* @__PURE__ */ t(N, { asChild: !0, children: /* @__PURE__ */ t(y, { 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(F, { className: "!h-5 !w-5 !text-white", strokeWidth: 2 }) }) }) : null, e[3] = C, e[4] = i) : i = e[4];
|
|
33
25
|
let s;
|
|
34
|
-
e[
|
|
35
|
-
|
|
26
|
+
e[5] !== i ? (s = /* @__PURE__ */ k(_, { className: "flex-row items-center justify-between space-y-0 text-left", children: [
|
|
27
|
+
d,
|
|
28
|
+
i
|
|
29
|
+
] }), e[5] = i, e[6] = s) : s = e[6];
|
|
30
|
+
let f, u;
|
|
31
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ t(j, { 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." }), u = /* @__PURE__ */ t("hr", { className: "m-0 border-0 border-t border-[#FFFFFF1F]" }), e[7] = f, e[8] = u) : (f = e[7], u = e[8]);
|
|
32
|
+
let l;
|
|
33
|
+
e[9] !== b || e[10] !== c ? (l = /* @__PURE__ */ t(y, { 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: () => {
|
|
34
|
+
c == null || c(), window.location.assign(b);
|
|
35
|
+
}, children: "Cookies Policy" }), e[9] = b, e[10] = c, e[11] = l) : l = e[11];
|
|
36
|
+
let n;
|
|
37
|
+
e[12] !== m ? (n = /* @__PURE__ */ t(N, { asChild: !0, children: /* @__PURE__ */ t(y, { type: "button", variant: "brandBlue", size: "medium", className: "h-[36px] min-w-0 flex-1 basis-0 shrink text-[14px] font-medium", onClick: () => m == null ? void 0 : m(), children: "Ok, Got it" }) }), e[12] = m, e[13] = n) : n = e[13];
|
|
38
|
+
let a;
|
|
39
|
+
e[14] !== l || e[15] !== n ? (a = /* @__PURE__ */ k(z, { className: "!flex !flex-row !flex-nowrap items-center gap-3 pt-1", children: [
|
|
40
|
+
l,
|
|
36
41
|
n
|
|
37
|
-
] }), e[
|
|
42
|
+
] }), e[14] = l, e[15] = n, e[16] = a) : a = e[16];
|
|
38
43
|
let r;
|
|
39
|
-
e[
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
] }), e[
|
|
45
|
-
let
|
|
46
|
-
return e[
|
|
44
|
+
e[17] !== a || e[18] !== o || e[19] !== s ? (r = /* @__PURE__ */ k(A, { showCloseButton: !1, closeOnOutsideClick: !1, className: o, children: [
|
|
45
|
+
s,
|
|
46
|
+
f,
|
|
47
|
+
u,
|
|
48
|
+
a
|
|
49
|
+
] }), e[17] = a, e[18] = o, e[19] = s, e[20] = r) : r = e[20];
|
|
50
|
+
let h;
|
|
51
|
+
return e[21] !== x || e[22] !== g || e[23] !== p || e[24] !== r ? (h = /* @__PURE__ */ t(S, { open: p, defaultOpen: x, onOpenChange: g, modal: !0, children: r }), e[21] = x, e[22] = g, e[23] = p, e[24] = r, e[25] = h) : h = e[25], h;
|
|
47
52
|
};
|
|
48
|
-
|
|
53
|
+
G.displayName = "CookieDialog";
|
|
49
54
|
export {
|
|
50
|
-
|
|
55
|
+
G as CookieDialog
|
|
51
56
|
};
|
|
@@ -14,10 +14,15 @@ export type CookieDialogProps = {
|
|
|
14
14
|
* Called when the user accepts cookies (clicks the primary button).
|
|
15
15
|
*/
|
|
16
16
|
onAccept?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to show the header close (X) button.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
showCloseButton?: boolean;
|
|
17
22
|
className?: string;
|
|
18
23
|
};
|
|
19
24
|
export declare const CookieDialog: {
|
|
20
|
-
({ open, defaultOpen, onOpenChange, cookiePolicyRoute, onPolicyClick, onAccept, className, }: CookieDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
({ open, defaultOpen, onOpenChange, cookiePolicyRoute, onPolicyClick, onAccept, showCloseButton, className, }: CookieDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
21
26
|
displayName: string;
|
|
22
27
|
};
|
|
23
28
|
export default CookieDialog;
|