@main12/auth-login 0.3.2 → 0.3.4

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.
@@ -18,17 +18,17 @@ function DefaultLogo() {
18
18
  });
19
19
  return null;
20
20
  }
21
- export const AuthLayout = ({ children, logo, title, subtitle, footer, poweredBy, cardClassName = '', backgroundClass = 'bg-white md:bg-[#191919]' })=>{
21
+ export const AuthLayout = ({ children, logo, title, subtitle, footer, poweredBy, cardClassName = '', backgroundClass = 'bg-accent' })=>{
22
22
  const displayLogo = logo || /*#__PURE__*/ _jsx(DefaultLogo, {});
23
23
  const header = (displayLogo || title) && /*#__PURE__*/ _jsxs("div", {
24
- className: "flex flex-col items-center gap-2 pt-6 pb-2 px-6",
24
+ className: "flex flex-col items-center gap-2 pt-8 pb-4 px-8",
25
25
  children: [
26
26
  displayLogo && /*#__PURE__*/ _jsx("div", {
27
- className: "flex justify-center mb-2",
27
+ className: "flex justify-center mb-3",
28
28
  children: displayLogo
29
29
  }),
30
30
  title && /*#__PURE__*/ _jsx("h1", {
31
- className: "text-xl font-semibold text-gray-900 text-center",
31
+ className: "text-2xl font-bold text-gray-900 text-center tracking-tight",
32
32
  children: title
33
33
  }),
34
34
  subtitle && /*#__PURE__*/ _jsx("p", {
@@ -41,18 +41,19 @@ export const AuthLayout = ({ children, logo, title, subtitle, footer, poweredBy,
41
41
  className: `flex flex-col min-h-screen ${backgroundClass}`,
42
42
  children: [
43
43
  /*#__PURE__*/ _jsxs("div", {
44
- className: "md:hidden flex flex-col w-full max-w-md mx-auto",
44
+ className: "md:hidden flex flex-col w-full max-w-md mx-auto light [color-scheme:light] px-4 py-8",
45
+ "data-theme": "light",
45
46
  style: {
46
- maxWidth: '400px'
47
+ maxWidth: '448px'
47
48
  },
48
49
  children: [
49
50
  header,
50
51
  /*#__PURE__*/ _jsx("div", {
51
- className: "px-6 pb-4",
52
+ className: "px-8 pb-6",
52
53
  children: children
53
54
  }),
54
55
  footer && /*#__PURE__*/ _jsx("div", {
55
- className: "px-6 pb-6 flex justify-center",
56
+ className: "px-8 pb-8 flex justify-center",
56
57
  children: footer
57
58
  }),
58
59
  /*#__PURE__*/ _jsx(PoweredBy, {
@@ -63,9 +64,9 @@ export const AuthLayout = ({ children, logo, title, subtitle, footer, poweredBy,
63
64
  /*#__PURE__*/ _jsx("div", {
64
65
  className: "hidden md:flex min-h-screen items-center justify-center px-4 py-12",
65
66
  children: /*#__PURE__*/ _jsxs("div", {
66
- className: "w-full max-w-md max-w-[400px] animate-[fadeIn_0.5s_ease-out]",
67
+ className: "w-full max-w-md animate-[fadeIn_0.5s_ease-out]",
67
68
  style: {
68
- maxWidth: '400px'
69
+ maxWidth: '448px'
69
70
  },
70
71
  children: [
71
72
  /*#__PURE__*/ _jsxs(Card, {
@@ -51,22 +51,23 @@ export const Input = ({ type = 'text', label, value, onChange, onValueChange, is
51
51
  ]
52
52
  });
53
53
  export const Card = ({ children, className = '' })=>/*#__PURE__*/ _jsx("div", {
54
- className: `bg-white rounded-2xl shadow-2xl w-full ${className}`,
54
+ className: `bg-white text-gray-900 rounded-2xl shadow-2xl w-full light [color-scheme:light] ${className}`,
55
+ "data-theme": "light",
55
56
  style: {
56
- maxWidth: '400px'
57
+ maxWidth: '448px'
57
58
  },
58
59
  children: children
59
60
  });
60
61
  export const CardHeader = ({ children, className = '' })=>/*#__PURE__*/ _jsx("div", {
61
- className: `flex flex-col items-center gap-2 pt-8 pb-2 px-6 ${className}`,
62
+ className: `flex flex-col items-center gap-2 pt-8 pb-4 px-8 ${className}`,
62
63
  children: children
63
64
  });
64
65
  export const CardContent = ({ children, className = '' })=>/*#__PURE__*/ _jsx("div", {
65
- className: `px-6 pb-4 ${className}`,
66
+ className: `px-8 pb-6 ${className}`,
66
67
  children: children
67
68
  });
68
69
  export const CardFooter = ({ children, className = '' })=>/*#__PURE__*/ _jsx("div", {
69
- className: `px-6 pb-6 flex justify-center ${className}`,
70
+ className: `px-8 pb-8 flex justify-center ${className}`,
70
71
  children: children
71
72
  });
72
73
  export const CardTitle = ({ children, className = '' })=>/*#__PURE__*/ _jsx("h1", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@main12/auth-login",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Reusable Payload CMS auth plugin — login, signup, OTP, forgot password, branded emails, Powered by Main12",
5
5
  "license": "MIT",
6
6
  "type": "module",