chordia-ui 3.3.1 → 3.3.2
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.
- package/dist/FileUploadingState.cjs.js +2 -2
- package/dist/FileUploadingState.cjs.js.map +1 -1
- package/dist/FileUploadingState.es.js +5 -4
- package/dist/FileUploadingState.es.js.map +1 -1
- package/dist/index.cjs2.js +2 -2
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.es2.js +449 -437
- package/dist/index.es2.js.map +1 -1
- package/package.json +1 -1
- package/src/components/common/FileUploadingState.jsx +4 -4
- package/src/components/login/LoginPage.jsx +21 -3
package/package.json
CHANGED
|
@@ -153,7 +153,7 @@ export default function FileUploadingState({
|
|
|
153
153
|
*/
|
|
154
154
|
export function FileUploadSuccessState({
|
|
155
155
|
title = "File uploaded successfully!",
|
|
156
|
-
subtitle = "
|
|
156
|
+
subtitle = "Redirecting...",
|
|
157
157
|
actionLabel = "Add more files",
|
|
158
158
|
onAction,
|
|
159
159
|
width = 648,
|
|
@@ -210,15 +210,15 @@ export function FileUploadSuccessState({
|
|
|
210
210
|
{/* Subtitle */}
|
|
211
211
|
<p
|
|
212
212
|
style={{
|
|
213
|
-
fontSize: "
|
|
214
|
-
fontWeight:
|
|
213
|
+
fontSize: "14px",
|
|
214
|
+
fontWeight: 500,
|
|
215
215
|
color: "var(--Grey-Strong, #808183)",
|
|
216
216
|
margin: 0,
|
|
217
217
|
lineHeight: "140%",
|
|
218
218
|
textAlign: "center",
|
|
219
219
|
}}
|
|
220
220
|
>
|
|
221
|
-
{
|
|
221
|
+
{subtitle}
|
|
222
222
|
</p>
|
|
223
223
|
|
|
224
224
|
{/* Action button */}
|
|
@@ -180,6 +180,7 @@ export default function LoginPage({
|
|
|
180
180
|
const [signupConfirm, setSignupConfirm] = useState('');
|
|
181
181
|
const [showSignupPassword, setShowSignupPassword] = useState(false);
|
|
182
182
|
const [showSignupConfirm, setShowSignupConfirm] = useState(false);
|
|
183
|
+
const [signupError, setSignupError] = useState('');
|
|
183
184
|
const [resetEmail, setResetEmail] = useState('');
|
|
184
185
|
const [activeSlide, setActiveSlide] = useState(0);
|
|
185
186
|
const SLIDE_COUNT = 3;
|
|
@@ -513,7 +514,7 @@ export default function LoginPage({
|
|
|
513
514
|
<Field label="Create Password" gap={8}>
|
|
514
515
|
<div style={{ position: 'relative' }}>
|
|
515
516
|
<input type={showSignupPassword ? 'text' : 'password'} value={signupPassword}
|
|
516
|
-
onChange={(e) => setSignupPassword(e.target.value)}
|
|
517
|
+
onChange={(e) => { setSignupPassword(e.target.value); setSignupError(''); }}
|
|
517
518
|
placeholder="Enter password" autoComplete="new-password"
|
|
518
519
|
style={{ ...inputBase, padding: '10px 44px 10px 14px' }}
|
|
519
520
|
onFocus={focusGreen} onBlur={blurGray} />
|
|
@@ -524,7 +525,7 @@ export default function LoginPage({
|
|
|
524
525
|
<Field label="Confirm Password" gap={8}>
|
|
525
526
|
<div style={{ position: 'relative' }}>
|
|
526
527
|
<input type={showSignupConfirm ? 'text' : 'password'} value={signupConfirm}
|
|
527
|
-
onChange={(e) => setSignupConfirm(e.target.value)}
|
|
528
|
+
onChange={(e) => { setSignupConfirm(e.target.value); setSignupError(''); }}
|
|
528
529
|
placeholder="Enter password" autoComplete="new-password"
|
|
529
530
|
style={{ ...inputBase, padding: '10px 44px 10px 14px' }}
|
|
530
531
|
onFocus={focusGreen} onBlur={blurGray} />
|
|
@@ -532,10 +533,27 @@ export default function LoginPage({
|
|
|
532
533
|
</div>
|
|
533
534
|
</Field>
|
|
534
535
|
|
|
536
|
+
{signupError && (
|
|
537
|
+
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: 8, gap: 6, width: '100%', boxSizing: 'border-box', background: 'var(--color-error-bg)', borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: '22px', color: 'var(--color-text)', fontFamily: FF }}>
|
|
538
|
+
<svg width="17" height="17" viewBox="0 0 24 24" fill="var(--color-text)" style={{ flexShrink: 0 }}>
|
|
539
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
|
|
540
|
+
</svg>
|
|
541
|
+
{signupError}
|
|
542
|
+
</div>
|
|
543
|
+
)}
|
|
544
|
+
|
|
535
545
|
{(() => {
|
|
536
546
|
const canCreate = firstName && lastName && signupEmail && signupPassword && signupConfirm;
|
|
537
547
|
return (
|
|
538
|
-
<GreenButton onClick={() => {
|
|
548
|
+
<GreenButton onClick={() => {
|
|
549
|
+
setSignupError('');
|
|
550
|
+
if (signupPassword !== signupConfirm) {
|
|
551
|
+
setSignupError('Password and Confirm Password do not match!');
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
onSignUp?.({ firstName, lastName, email: signupEmail, password: signupPassword });
|
|
555
|
+
setView('verifyemail');
|
|
556
|
+
}} disabled={!canCreate}>
|
|
539
557
|
Create Account
|
|
540
558
|
</GreenButton>
|
|
541
559
|
);
|