@medialane/ui 0.126.4 → 0.126.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.
|
@@ -25,31 +25,31 @@ module.exports = __toCommonJS(email_verification_gate_exports);
|
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_lucide_react = require("lucide-react");
|
|
27
27
|
var import_cn = require("../utils/cn.js");
|
|
28
|
+
const BRAND_LOOP = "linear-gradient(270deg, #3b7bff, #8a5cf6, #f6608f, #fb8b46, #3b7bff)";
|
|
28
29
|
function EmailVerificationGate({
|
|
29
30
|
reason,
|
|
30
31
|
settingsHref,
|
|
31
32
|
className
|
|
32
33
|
}) {
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-sm font-semibold", children: [
|
|
45
|
-
"Verify your email to ",
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_cn.cn)("col-span-2 mb-3 space-y-1.5", className), children: [
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
36
|
+
"a",
|
|
37
|
+
{
|
|
38
|
+
href: settingsHref,
|
|
39
|
+
className: "ml-gbtn flex h-[54px] items-center gap-3 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]",
|
|
40
|
+
style: { "--ml-grad": BRAND_LOOP },
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Mail, { className: "h-4 w-4 shrink-0 text-brand-orange" }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "min-w-0 flex-1 truncate text-left text-base", children: [
|
|
44
|
+
"Verify email to ",
|
|
46
45
|
reason
|
|
47
46
|
] }),
|
|
48
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "px-1 text-xs text-muted-foreground", children: "Takes under a minute" })
|
|
52
|
+
] });
|
|
53
53
|
}
|
|
54
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
55
55
|
0 && (module.exports = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/email-verification-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport { Mail } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface EmailVerificationGateProps {\n reason: string;\n settingsHref: string;\n className?: string;\n}\n\nexport function EmailVerificationGate({\n reason,\n settingsHref,\n className,\n}: EmailVerificationGateProps) {\n return (\n <a\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/email-verification-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport { Mail, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface EmailVerificationGateProps {\n reason: string;\n settingsHref: string;\n className?: string;\n}\n\nconst BRAND_LOOP = \"linear-gradient(270deg, #3b7bff, #8a5cf6, #f6608f, #fb8b46, #3b7bff)\";\n\nexport function EmailVerificationGate({\n reason,\n settingsHref,\n className,\n}: EmailVerificationGateProps) {\n return (\n <div className={cn(\"col-span-2 mb-3 space-y-1.5\", className)}>\n <a\n href={settingsHref}\n className=\"ml-gbtn flex h-[54px] items-center gap-3 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]\"\n style={{ '--ml-grad': BRAND_LOOP } as React.CSSProperties}\n >\n <Mail className=\"h-4 w-4 shrink-0 text-brand-orange\" />\n <span className=\"min-w-0 flex-1 truncate text-left text-base\">Verify email to {reason}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n </a>\n <p className=\"px-1 text-xs text-muted-foreground\">Takes under a minute</p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBQ;AAvBR,0BAAiC;AACjC,gBAAmB;AAQnB,MAAM,aAAa;AAEZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE,6CAAC,SAAI,eAAW,cAAG,+BAA+B,SAAS,GACzD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,WAAU;AAAA,QACV,OAAO,EAAE,aAAa,WAAW;AAAA,QAEjC;AAAA,sDAAC,4BAAK,WAAU,sCAAqC;AAAA,UACrD,6CAAC,UAAK,WAAU,+CAA8C;AAAA;AAAA,YAAiB;AAAA,aAAO;AAAA,UACtF,4CAAC,kCAAW,WAAU,0CAAyC;AAAA;AAAA;AAAA,IACjE;AAAA,IACA,4CAAC,OAAE,WAAU,sCAAqC,kCAAoB;AAAA,KACxE;AAEJ;","names":[]}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Mail } from "lucide-react";
|
|
3
|
+
import { Mail, ArrowRight } from "lucide-react";
|
|
4
4
|
import { cn } from "../utils/cn.js";
|
|
5
|
+
const BRAND_LOOP = "linear-gradient(270deg, #3b7bff, #8a5cf6, #f6608f, #fb8b46, #3b7bff)";
|
|
5
6
|
function EmailVerificationGate({
|
|
6
7
|
reason,
|
|
7
8
|
settingsHref,
|
|
8
9
|
className
|
|
9
10
|
}) {
|
|
10
|
-
return /* @__PURE__ */ jsxs(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ jsxs("div", { className: "text-sm font-semibold", children: [
|
|
22
|
-
"Verify your email to ",
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("col-span-2 mb-3 space-y-1.5", className), children: [
|
|
12
|
+
/* @__PURE__ */ jsxs(
|
|
13
|
+
"a",
|
|
14
|
+
{
|
|
15
|
+
href: settingsHref,
|
|
16
|
+
className: "ml-gbtn flex h-[54px] items-center gap-3 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]",
|
|
17
|
+
style: { "--ml-grad": BRAND_LOOP },
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 shrink-0 text-brand-orange" }),
|
|
20
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 truncate text-left text-base", children: [
|
|
21
|
+
"Verify email to ",
|
|
23
22
|
reason
|
|
24
23
|
] }),
|
|
25
|
-
/* @__PURE__ */ jsx(
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
/* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 text-xs text-muted-foreground", children: "Takes under a minute" })
|
|
29
|
+
] });
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
32
32
|
EmailVerificationGate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/email-verification-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport { Mail } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface EmailVerificationGateProps {\n reason: string;\n settingsHref: string;\n className?: string;\n}\n\nexport function EmailVerificationGate({\n reason,\n settingsHref,\n className,\n}: EmailVerificationGateProps) {\n return (\n <a\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/email-verification-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport { Mail, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface EmailVerificationGateProps {\n reason: string;\n settingsHref: string;\n className?: string;\n}\n\nconst BRAND_LOOP = \"linear-gradient(270deg, #3b7bff, #8a5cf6, #f6608f, #fb8b46, #3b7bff)\";\n\nexport function EmailVerificationGate({\n reason,\n settingsHref,\n className,\n}: EmailVerificationGateProps) {\n return (\n <div className={cn(\"col-span-2 mb-3 space-y-1.5\", className)}>\n <a\n href={settingsHref}\n className=\"ml-gbtn flex h-[54px] items-center gap-3 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]\"\n style={{ '--ml-grad': BRAND_LOOP } as React.CSSProperties}\n >\n <Mail className=\"h-4 w-4 shrink-0 text-brand-orange\" />\n <span className=\"min-w-0 flex-1 truncate text-left text-base\">Verify email to {reason}</span>\n <ArrowRight className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n </a>\n <p className=\"px-1 text-xs text-muted-foreground\">Takes under a minute</p>\n </div>\n );\n}\n"],"mappings":";AAyBQ,cACA,YADA;AAvBR,SAAS,MAAM,kBAAkB;AACjC,SAAS,UAAU;AAQnB,MAAM,aAAa;AAEZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE,qBAAC,SAAI,WAAW,GAAG,+BAA+B,SAAS,GACzD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,WAAU;AAAA,QACV,OAAO,EAAE,aAAa,WAAW;AAAA,QAEjC;AAAA,8BAAC,QAAK,WAAU,sCAAqC;AAAA,UACrD,qBAAC,UAAK,WAAU,+CAA8C;AAAA;AAAA,YAAiB;AAAA,aAAO;AAAA,UACtF,oBAAC,cAAW,WAAU,0CAAyC;AAAA;AAAA;AAAA,IACjE;AAAA,IACA,oBAAC,OAAE,WAAU,sCAAqC,kCAAoB;AAAA,KACxE;AAEJ;","names":[]}
|