@mesob/auth-react 0.2.0 → 0.2.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.
@@ -3,7 +3,7 @@
3
3
  // src/components/auth/auth-card.tsx
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var AuthCard = ({ children }) => {
6
- return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen p-4 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx("div", { className: "rounded-xl border bg-card p-8 shadow-lg", children }) }) });
6
+ return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen w-full p-4 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "w-full min-w-[280px] max-w-[28rem] shrink-0", children: /* @__PURE__ */ jsx("div", { className: "rounded-xl border border-border bg-card p-6 shadow-lg sm:p-8", children }) }) });
7
7
  };
8
8
  export {
9
9
  AuthCard
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/auth/auth-card.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\n\ntype AuthCardProps = {\n children: ReactNode;\n};\n\nexport const AuthCard = ({ children }: AuthCardProps) => {\n return (\n <div className=\"flex min-h-screen p-4 items-center justify-center\">\n <div className=\"w-full max-w-md\">\n <div className=\"rounded-xl border bg-card p-8 shadow-lg\">\n {children}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;AAYQ;AAJD,IAAM,WAAW,CAAC,EAAE,SAAS,MAAqB;AACvD,SACE,oBAAC,SAAI,WAAU,qDACb,8BAAC,SAAI,WAAU,mBACb,8BAAC,SAAI,WAAU,2CACZ,UACH,GACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/auth/auth-card.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\n\ntype AuthCardProps = {\n children: ReactNode;\n};\n\nexport const AuthCard = ({ children }: AuthCardProps) => {\n return (\n <div className=\"flex min-h-screen w-full p-4 items-center justify-center\">\n <div className=\"w-full min-w-[280px] max-w-[28rem] shrink-0\">\n <div className=\"rounded-xl border border-border bg-card p-6 shadow-lg sm:p-8\">\n {children}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;AAYQ;AAJD,IAAM,WAAW,CAAC,EAAE,SAAS,MAAqB;AACvD,SACE,oBAAC,SAAI,WAAU,4DACb,8BAAC,SAAI,WAAU,+CACb,8BAAC,SAAI,WAAU,gEACZ,UACH,GACF,GACF;AAEJ;","names":[]}
@@ -1,6 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as react from 'react';
2
3
  import { ReactNode, Component, ErrorInfo } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
5
5
  type ErrorBoundaryProps = {
6
6
  children: ReactNode;
@@ -18,7 +18,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
18
18
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
19
19
  componentDidCatch(_error: Error, _errorInfo: ErrorInfo): void;
20
20
  reset: () => void;
21
- render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
21
+ render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
22
22
  }
23
23
  declare function AuthErrorBoundary({ children }: {
24
24
  children: ReactNode;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // src/components/auth/auth-card.tsx
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var AuthCard = ({ children }) => {
6
- return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen p-4 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx("div", { className: "rounded-xl border bg-card p-8 shadow-lg", children }) }) });
6
+ return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen w-full p-4 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "w-full min-w-[280px] max-w-[28rem] shrink-0", children: /* @__PURE__ */ jsx("div", { className: "rounded-xl border border-border bg-card p-6 shadow-lg sm:p-8", children }) }) });
7
7
  };
8
8
 
9
9
  // src/components/auth/forgot-password.tsx