@medialane/ui 0.126.4 → 0.126.6

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,6 +25,7 @@ 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,
@@ -35,17 +36,15 @@ function EmailVerificationGate({
35
36
  {
36
37
  href: settingsHref,
37
38
  className: (0, import_cn.cn)(
38
- "col-span-2 flex items-center gap-3 rounded-2xl bg-brand-orange/10 px-4 py-3 transition-colors hover:bg-brand-orange/15",
39
+ "ml-gbtn col-span-2 mb-3 flex h-[54px] items-center justify-center gap-2 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]",
39
40
  className
40
41
  ),
42
+ style: { "--ml-grad": BRAND_LOOP },
41
43
  children: [
42
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid h-9 w-9 shrink-0 place-items-center rounded-full bg-brand-orange/15", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Mail, { className: "h-4 w-4 text-brand-orange" }) }),
43
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
44
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-sm font-semibold", children: [
45
- "Verify your email to ",
46
- reason
47
- ] }),
48
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs text-muted-foreground", children: "Takes under a minute \u2014 go to Settings" })
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Mail, { className: "h-4 w-4 shrink-0 text-brand-orange" }),
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "truncate text-base", children: [
46
+ "Verify email to ",
47
+ reason
49
48
  ] })
50
49
  ]
51
50
  }
@@ -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 href={settingsHref}\n className={cn(\n \"col-span-2 flex items-center gap-3 rounded-2xl bg-brand-orange/10 px-4 py-3 transition-colors hover:bg-brand-orange/15\",\n className,\n )}\n >\n <div className=\"grid h-9 w-9 shrink-0 place-items-center rounded-full bg-brand-orange/15\">\n <Mail className=\"h-4 w-4 text-brand-orange\" />\n </div>\n <div className=\"min-w-0 flex-1\">\n <div className=\"text-sm font-semibold\">Verify your email to {reason}</div>\n <div className=\"text-xs text-muted-foreground\">Takes under a minute — go to Settings</div>\n </div>\n </a>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBQ;AAvBR,0BAAqB;AACrB,gBAAmB;AAQZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,oDAAC,SAAI,WAAU,4EACb,sDAAC,4BAAK,WAAU,6BAA4B,GAC9C;AAAA,QACA,6CAAC,SAAI,WAAU,kBACb;AAAA,uDAAC,SAAI,WAAU,yBAAwB;AAAA;AAAA,YAAsB;AAAA,aAAO;AAAA,UACpE,4CAAC,SAAI,WAAU,iCAAgC,wDAAqC;AAAA,WACtF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
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\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 <a\n href={settingsHref}\n className={cn(\n \"ml-gbtn col-span-2 mb-3 flex h-[54px] items-center justify-center gap-2 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]\",\n className,\n )}\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=\"truncate text-base\">Verify email to {reason}</span>\n </a>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BM;AAzBN,0BAAqB;AACrB,gBAAmB;AAQnB,MAAM,aAAa;AAEZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,EAAE,aAAa,WAAW;AAAA,MAEjC;AAAA,oDAAC,4BAAK,WAAU,sCAAqC;AAAA,QACrD,6CAAC,UAAK,WAAU,sBAAqB;AAAA;AAAA,UAAiB;AAAA,WAAO;AAAA;AAAA;AAAA,EAC/D;AAEJ;","names":[]}
@@ -2,6 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Mail } 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,
@@ -12,17 +13,15 @@ function EmailVerificationGate({
12
13
  {
13
14
  href: settingsHref,
14
15
  className: cn(
15
- "col-span-2 flex items-center gap-3 rounded-2xl bg-brand-orange/10 px-4 py-3 transition-colors hover:bg-brand-orange/15",
16
+ "ml-gbtn col-span-2 mb-3 flex h-[54px] items-center justify-center gap-2 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]",
16
17
  className
17
18
  ),
19
+ style: { "--ml-grad": BRAND_LOOP },
18
20
  children: [
19
- /* @__PURE__ */ jsx("div", { className: "grid h-9 w-9 shrink-0 place-items-center rounded-full bg-brand-orange/15", children: /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 text-brand-orange" }) }),
20
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
21
- /* @__PURE__ */ jsxs("div", { className: "text-sm font-semibold", children: [
22
- "Verify your email to ",
23
- reason
24
- ] }),
25
- /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Takes under a minute \u2014 go to Settings" })
21
+ /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 shrink-0 text-brand-orange" }),
22
+ /* @__PURE__ */ jsxs("span", { className: "truncate text-base", children: [
23
+ "Verify email to ",
24
+ reason
26
25
  ] })
27
26
  ]
28
27
  }
@@ -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 href={settingsHref}\n className={cn(\n \"col-span-2 flex items-center gap-3 rounded-2xl bg-brand-orange/10 px-4 py-3 transition-colors hover:bg-brand-orange/15\",\n className,\n )}\n >\n <div className=\"grid h-9 w-9 shrink-0 place-items-center rounded-full bg-brand-orange/15\">\n <Mail className=\"h-4 w-4 text-brand-orange\" />\n </div>\n <div className=\"min-w-0 flex-1\">\n <div className=\"text-sm font-semibold\">Verify your email to {reason}</div>\n <div className=\"text-xs text-muted-foreground\">Takes under a minute — go to Settings</div>\n </div>\n </a>\n );\n}\n"],"mappings":";AAyBQ,cAGA,YAHA;AAvBR,SAAS,YAAY;AACrB,SAAS,UAAU;AAQZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,4BAAC,SAAI,WAAU,4EACb,8BAAC,QAAK,WAAU,6BAA4B,GAC9C;AAAA,QACA,qBAAC,SAAI,WAAU,kBACb;AAAA,+BAAC,SAAI,WAAU,yBAAwB;AAAA;AAAA,YAAsB;AAAA,aAAO;AAAA,UACpE,oBAAC,SAAI,WAAU,iCAAgC,wDAAqC;AAAA,WACtF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
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\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 <a\n href={settingsHref}\n className={cn(\n \"ml-gbtn col-span-2 mb-3 flex h-[54px] items-center justify-center gap-2 rounded-[13px] bg-transparent px-5 font-semibold transition-transform active:scale-[0.99]\",\n className,\n )}\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=\"truncate text-base\">Verify email to {reason}</span>\n </a>\n );\n}\n"],"mappings":";AA2BM,cACA,YADA;AAzBN,SAAS,YAAY;AACrB,SAAS,UAAU;AAQnB,MAAM,aAAa;AAEZ,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM;AAAA,MACN,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,EAAE,aAAa,WAAW;AAAA,MAEjC;AAAA,4BAAC,QAAK,WAAU,sCAAqC;AAAA,QACrD,qBAAC,UAAK,WAAU,sBAAqB;AAAA;AAAA,UAAiB;AAAA,WAAO;AAAA;AAAA;AAAA,EAC/D;AAEJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.126.4",
3
+ "version": "0.126.6",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,