nitro-web 0.0.101 → 0.0.102
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Topbar, Field, FormError, Button, request, onChange } from 'nitro-web'
|
|
2
2
|
import { Errors } from 'nitro-web/types'
|
|
3
3
|
|
|
4
|
-
export function ResetInstructions() {
|
|
4
|
+
export function ResetInstructions({ className }: { className?: string }) {
|
|
5
5
|
const navigate = useNavigate()
|
|
6
6
|
const isLoading = useState(false)
|
|
7
7
|
const [, setStore] = useTracked()
|
|
@@ -18,10 +18,10 @@ export function ResetInstructions() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<div
|
|
21
|
+
<div className={className}>
|
|
22
22
|
<Topbar title={<>Reset your Password</>} />
|
|
23
23
|
|
|
24
|
-
<form onSubmit={onSubmit}>
|
|
24
|
+
<form onSubmit={onSubmit} class="mb-0">
|
|
25
25
|
<div>
|
|
26
26
|
<label for="email">Email Address</label>
|
|
27
27
|
<Field name="email" type="email" state={state} onChange={(e) => onChange(setState, e)} placeholder="Your email address..." />
|
|
@@ -38,7 +38,7 @@ export function ResetInstructions() {
|
|
|
38
38
|
)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export function ResetPassword() {
|
|
41
|
+
export function ResetPassword({ className }: { className?: string }) {
|
|
42
42
|
const navigate = useNavigate()
|
|
43
43
|
const params = useParams()
|
|
44
44
|
const isLoading = useState(false)
|
|
@@ -61,10 +61,10 @@ export function ResetPassword() {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
|
-
<div
|
|
64
|
+
<div className={className}>
|
|
65
65
|
<Topbar title={<>Reset your Password</>} />
|
|
66
66
|
|
|
67
|
-
<form onSubmit={onSubmit}>
|
|
67
|
+
<form onSubmit={onSubmit} class="mb-0">
|
|
68
68
|
<div>
|
|
69
69
|
<label for="password">Your New Password</label>
|
|
70
70
|
<Field name="password" type="password" state={state} onChange={(e) => onChange(setState, e)} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Topbar, Field, Button, FormError, request, queryObject, injectedConfig, updateJwt, onChange } from 'nitro-web'
|
|
2
2
|
import { Errors } from 'nitro-web/types'
|
|
3
3
|
|
|
4
|
-
export function Signin() {
|
|
4
|
+
export function Signin({ className }: { className?: string }) {
|
|
5
5
|
const navigate = useNavigate()
|
|
6
6
|
const location = useLocation()
|
|
7
7
|
const isSignout = location.pathname == '/signout'
|
|
@@ -47,10 +47,10 @@ export function Signin() {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
|
-
<div>
|
|
50
|
+
<div className={className}>
|
|
51
51
|
<Topbar title={<>Sign in to your Account</>} />
|
|
52
52
|
|
|
53
|
-
<form onSubmit={onSubmit}>
|
|
53
|
+
<form onSubmit={onSubmit} class="mb-0">
|
|
54
54
|
<div>
|
|
55
55
|
<label for="email">Email Address</label>
|
|
56
56
|
<Field name="email" type="email" state={state} onChange={(e) => onChange(setState, e)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button, Field, FormError, Topbar, request, injectedConfig, onChange } from 'nitro-web'
|
|
2
2
|
import { Errors } from 'nitro-web/types'
|
|
3
3
|
|
|
4
|
-
export function Signup() {
|
|
4
|
+
export function Signup({ className }: { className?: string }) {
|
|
5
5
|
const navigate = useNavigate()
|
|
6
6
|
const isLoading = useState(false)
|
|
7
7
|
const [, setStore] = useTracked()
|
|
@@ -9,7 +9,7 @@ export function Signup() {
|
|
|
9
9
|
email: injectedConfig.env === 'development' ? (injectedConfig.placeholderEmail || '') : '',
|
|
10
10
|
name: injectedConfig.env === 'development' ? 'Bruce Wayne' : '',
|
|
11
11
|
business: { name: injectedConfig.env === 'development' ? 'Wayne Enterprises' : '' },
|
|
12
|
-
password: injectedConfig.env === 'development' ? '
|
|
12
|
+
password: injectedConfig.env === 'development' ? '' : '',
|
|
13
13
|
errors: [] as Errors,
|
|
14
14
|
})
|
|
15
15
|
|
|
@@ -24,10 +24,10 @@ export function Signup() {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<div
|
|
27
|
+
<div className={className}>
|
|
28
28
|
<Topbar title={<>Start your 21 day Free Trial</>} />
|
|
29
29
|
|
|
30
|
-
<form onSubmit={onSubmit}>
|
|
30
|
+
<form onSubmit={onSubmit} class="mb-0">
|
|
31
31
|
<div class="grid grid-cols-2 gap-6">
|
|
32
32
|
<div>
|
|
33
33
|
<label for="name">Your Name</label>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
5
|
"homepage": "https://boycce.github.io/nitro-web/",
|
|
6
6
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[[ subject = You've been invited to join IMG ]]
|
|
8
8
|
<b>%recipient.greet%</b>,<br/>
|
|
9
9
|
<br/>
|
|
10
|
-
You've been invited to join
|
|
10
|
+
You've been invited to join <b>%recipient.configName%</b>.<br/>
|
|
11
11
|
<br/>
|
|
12
12
|
If you didn't expect to receive this email, feel free to disregard this email.<br/>
|
|
13
13
|
<br/>
|