@stackframe/stack 2.1.2 → 2.1.3
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.
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Divider, Text } from "../components-core";
|
|
4
4
|
export default function DividerWithText({ text }) {
|
|
5
|
-
return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: '
|
|
5
|
+
return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: '1.5rem', marginBottom: '1.5rem' }, children: [_jsx("div", { style: { flex: 1 }, children: _jsx(Divider, {}) }), _jsx(Text, { style: { padding: '0 16px' }, variant: "secondary", size: 'sm', children: text }), _jsx("div", { style: { flex: 1 }, children: _jsx(Divider, {}) })] }));
|
|
6
6
|
}
|
|
@@ -15,5 +15,5 @@ export default function SignIn({ fullPage = false }) {
|
|
|
15
15
|
return _jsx(RedirectMessageCard, { type: 'signedIn', fullPage: fullPage });
|
|
16
16
|
}
|
|
17
17
|
const enableDivider = project.credentialEnabled && project.oauthProviders.filter(p => p.enabled).length > 0;
|
|
18
|
-
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsxs("div", { style: { textAlign: 'center', marginBottom: '1.5rem' }, children: [_jsx(Text, { size: "xl", as: 'h2', children: "
|
|
18
|
+
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsxs("div", { style: { textAlign: 'center', marginBottom: '1.5rem' }, children: [_jsx(Text, { size: "xl", as: 'h2', children: "Sign into Your Account" }), _jsxs(Text, { children: ["Don't have an account? ", _jsx(Link, { href: stackApp.urls['signUp'], children: "Sign up" })] })] }), _jsx(OAuthGroup, { type: 'signin' }), enableDivider && _jsx(DividerWithText, { text: 'or continue with email' }), project.credentialEnabled && _jsx(CredentialSignIn, {})] }));
|
|
19
19
|
}
|
|
@@ -15,5 +15,5 @@ export default function SignUp({ fullPage = false }) {
|
|
|
15
15
|
return _jsx(RedirectMessageCard, { type: 'signedIn', fullPage: fullPage });
|
|
16
16
|
}
|
|
17
17
|
const enableDivider = project.credentialEnabled && project.oauthProviders.filter(p => p.enabled).length > 0;
|
|
18
|
-
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsxs("div", { style: { textAlign: 'center', marginBottom: '1.5rem' }, children: [_jsx(Text, { size: "xl", as: 'h2', children: "Create a New Account" }), _jsxs(Text, { children: ["Already have an account? ", _jsx(Link, { href: stackApp.urls['signIn'], children: "Sign in" })] })] }), _jsx(OAuthGroup, { type: 'signup' }), enableDivider && _jsx(DividerWithText, { text: '
|
|
18
|
+
return (_jsxs(CardFrame, { fullPage: fullPage, children: [_jsxs("div", { style: { textAlign: 'center', marginBottom: '1.5rem' }, children: [_jsx(Text, { size: "xl", as: 'h2', children: "Create a New Account" }), _jsxs(Text, { children: ["Already have an account? ", _jsx(Link, { href: stackApp.urls['signIn'], children: "Sign in" })] })] }), _jsx(OAuthGroup, { type: 'signup' }), enableDivider && _jsx(DividerWithText, { text: 'or continue with email' }), project.credentialEnabled && _jsx(CredentialSignUp, {})] }));
|
|
19
19
|
}
|