generated from IvettaGoIT/react_vite
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 7b5602c 🚀
- Loading branch information
Showing
30 changed files
with
83 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 28 additions & 23 deletions
51
assets/BtnSubtitle-6b1a50d7.js → assets/BtnSubtitle-4bf829cb.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,98 @@ | ||
import{n as o,m as i,c as s,P as r,r as w,j as e,s as l,L as B}from"./index-bf61e43f.js";import{F as E,a as R,c as T,b as m,d as F,E as h}from"./formik.esm-cb532871.js";import{B as I}from"./BtnSubmit-d9815895.js";import{B as A}from"./ButtonIconForInput-7559d674.js";import{s as j}from"./styled-components.browser.esm-6c67442d.js";const W=o(E)` | ||
import{n as r,m as s,c as i,P as o,r as w,j as e,s as l,L as B}from"./index-c9cecb98.js";import{F as E,a as R,c as T,b as m,d as F,E as h}from"./formik.esm-6d2d7948.js";import{B as I}from"./BtnSubmit-8cec96a1.js";import{B as A}from"./ButtonIconForInput-a5043276.js";import{s as j}from"./styled-components.browser.esm-5921131f.js";const W=r(E)` | ||
margin-top: 28px; | ||
${i.tablet} { | ||
${s.tablet} { | ||
margin-top: 32px; | ||
width: 364px; | ||
} | ||
`,L=o.div` | ||
`,L=r.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 32px; | ||
margin-bottom: 32px; | ||
${i.mobile} { | ||
${s.mobile} { | ||
gap: 33px; | ||
margin-bottom: 34px; | ||
} | ||
${i.tablet} { | ||
${s.tablet} { | ||
gap: 34px; | ||
margin-bottom: 54px; | ||
} | ||
`,u=o.div` | ||
`,u=r.div` | ||
position: relative; | ||
width: 100%; | ||
`,g=o(R)` | ||
`,g=r(R)` | ||
height: 42px; | ||
width: 100%; | ||
${i.tablet} { | ||
${s.tablet} { | ||
height: 48px; | ||
} | ||
padding-left: 14px; | ||
padding-right: 14px; | ||
border-radius: 12px; | ||
border: 1px solid ${s.textWhite03}; | ||
border: 1px solid ${i.textWhite03}; | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 150%; | ||
outline: none; | ||
color: ${s.textWhite06}; | ||
color: ${i.textWhite06}; | ||
background-color: transparent; | ||
&:focus-visible { | ||
border: 1px solid ${s.orange}; | ||
border: 1px solid ${i.orange}; | ||
} | ||
&[data-touch=true]{ | ||
border-color: ${s.textSuccess}; | ||
border-color: ${i.textSuccess}; | ||
} | ||
`,b=o.div` | ||
`,b=r.div` | ||
position: absolute; | ||
${i.smallMobile} { | ||
${s.smallMobile} { | ||
bottom: -28px; | ||
} | ||
${i.Mobile} { | ||
${s.Mobile} { | ||
bottom: -29px; | ||
} | ||
${i.tablet} { | ||
${s.tablet} { | ||
bottom: -30px; | ||
} | ||
`,f=o.div` | ||
`,f=r.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 4px; | ||
font-size: 12px; | ||
color: ${s.textError}; | ||
`,Z=/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/,C=/^(?=.*[a-zA-Z]{6,})(?=.*\d)[a-zA-Z\d]{7,}$/;function M({nameIsShown:n,btnTitle:d,onSubmit:c}){const[y,$]=w.useState(!1),[v,q]=w.useState("password"),S=t=>t?m().required("Name is required"):null,k=T().shape({name:S(n),email:m().matches(Z,{message:"Email must be valid! For example: [email protected]"}).email("Invalid email").required("Email is required"),password:m().matches(C,{message:"Password must contain 6+ letters, 1 number, and 1+ letter or number"}).required("Password is required")}),P=n?{name:"",email:"",password:""}:{email:"",password:""},z=()=>{$(t=>!t),q(t=>{if(t==="password")return"text";if(t==="text")return"password"})};return e.jsx(F,{initialValues:P,onSubmit:c,validationSchema:k,children:({handleBlur:t,touched:p,errors:x})=>e.jsxs(W,{children:[e.jsxs(L,{children:[n&&e.jsxs(u,{children:[e.jsx(g,{id:"name",type:"text",placeholder:"name",name:"name",onBlur:t,"data-touch":p.name&&!x.name}),e.jsx(b,{children:e.jsx(h,{name:"name",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]}),e.jsxs(u,{children:[e.jsx(g,{id:"email",type:"email",placeholder:"Email",name:"email",onBlur:t,"data-touch":p.email&&!x.email}),e.jsx(b,{children:e.jsx(h,{name:"email",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]}),e.jsxs(u,{children:[e.jsx(g,{id:"password",type:v,placeholder:"Password",name:"password",onBlur:t,"data-touch":p.password&&!x.password}),e.jsx(A,{type:"button",right:"16px",onClick:z,children:e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+`${y?"#icon-eye-off":"#icon-eye"}`})})}),e.jsx(b,{children:e.jsx(h,{name:"password",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]})]}),e.jsx(I,{title:d,fontSize:"20px"})]})})}M.propTypes={nameIsShown:r.bool.isRequired,btnTitle:r.string.isRequired,onSubmit:r.func.isRequired};const N=j.span` | ||
color: ${s.textWhite06}; | ||
color: ${i.textError}; | ||
`,Z=/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/,C=/^(?=.*[a-zA-Z]{6,})(?=.*\d)[a-zA-Z\d]{7,}$/;function M({nameIsShown:n,btnTitle:d,onSubmit:c}){const[$,y]=w.useState(!1),[v,q]=w.useState("password"),S=t=>t?m().required("Name is required"):null,k=T().shape({name:S(n),email:m().matches(Z,{message:"Email must be valid! For example: [email protected]"}).email("Invalid email").required("Email is required"),password:m().matches(C,{message:"Password must contain 6+ letters, 1 number, and 1+ letter or number"}).required("Password is required")}),z=n?{name:"",email:"",password:""}:{email:"",password:""},P=()=>{y(t=>!t),q(t=>{if(t==="password")return"text";if(t==="text")return"password"})};return e.jsx(F,{initialValues:z,onSubmit:c,validationSchema:k,children:({handleBlur:t,touched:p,errors:x})=>e.jsxs(W,{children:[e.jsxs(L,{children:[n&&e.jsxs(u,{children:[e.jsx(g,{id:"name",type:"text",placeholder:"name",name:"name",onBlur:t,"data-touch":p.name&&!x.name}),e.jsx(b,{children:e.jsx(h,{name:"name",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]}),e.jsxs(u,{children:[e.jsx(g,{id:"email",type:"email",placeholder:"Email",name:"email",onBlur:t,"data-touch":p.email&&!x.email}),e.jsx(b,{children:e.jsx(h,{name:"email",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]}),e.jsxs(u,{children:[e.jsx(g,{id:"password",type:v,placeholder:"Password",name:"password",onBlur:t,"data-touch":p.password&&!x.password}),e.jsx(A,{type:"button",right:"16px",onClick:P,children:e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+`${$?"#icon-eye-off":"#icon-eye"}`})})}),e.jsx(b,{children:e.jsx(h,{name:"password",children:a=>e.jsxs(f,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:l+"#icon-checkbox-circle-fill"})}),a]})})})]})]}),e.jsx(I,{title:d,fontSize:"20px"})]})})}M.propTypes={nameIsShown:o.bool.isRequired,btnTitle:o.string.isRequired,onSubmit:o.func.isRequired};const N=j.span` | ||
color: ${i.textWhite06}; | ||
font-family: Roboto; | ||
font-size: 12px; | ||
line-height: 150%; | ||
`,V=j(B)` | ||
color: ${s.white}; | ||
color: ${i.white}; | ||
font-family: Roboto; | ||
font-size: 12px; | ||
line-height: 150%; | ||
text-decoration-line: underline; | ||
margin-left: 5px; | ||
transition: color 250ms cubic-bezier(0.075, 0.82, 0.165, 1); | ||
&:hover, | ||
&:focus { | ||
color: ${i.orange}; | ||
} | ||
`,_=j.div` | ||
display: inline-block; | ||
margin-top: 12px; | ||
${i.tablet} { | ||
${s.tablet} { | ||
padding-left: 9px; | ||
} | ||
`,D=({text:n,linkText:d,to:c})=>e.jsxs(_,{children:[e.jsx(N,{children:n}),e.jsx(V,{to:c,children:d})]});D.propTypes={text:r.string.isRequired,linkText:r.string.isRequired,to:r.string.isRequired};export{M as A,D as B}; | ||
`,D=({text:n,linkText:d,to:c})=>e.jsxs(_,{children:[e.jsx(N,{children:n}),e.jsx(V,{to:c,children:d})]});D.propTypes={text:o.string.isRequired,linkText:o.string.isRequired,to:o.string.isRequired};export{M as A,D as B}; |
2 changes: 1 addition & 1 deletion
2
assets/ButtonIconForInput-7559d674.js → assets/ButtonIconForInput-a5043276.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 17 additions & 17 deletions
34
assets/Exercises-e02903b5.js → assets/Exercises-cd46305e.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
assets/ParamsBlockCard-e1a2e417.js → assets/ParamsBlockCard-71681e63.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.