🎨(react) enhance FormExemples stories
update FormExemples stories with new css variables introduce with the new tokens architectures
This commit is contained in:
committed by
NathanVss
parent
c9f6d2d41c
commit
43337d4f7f
@@ -24,7 +24,7 @@ export const OverflowLabels = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Application
|
Application
|
||||||
@@ -64,9 +64,7 @@ export const OverflowLabels = () => {
|
|||||||
<Input label={"City" + overflow} fullWidth={true} />
|
<Input label={"City" + overflow} fullWidth={true} />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="fs-l clr-greyscale-800 mb-t">
|
<div className="fs-l clr-gray-800 mb-t">Your curriculum vitae</div>
|
||||||
Your curriculum vitae
|
|
||||||
</div>
|
|
||||||
<FileUploader
|
<FileUploader
|
||||||
fullWidth={true}
|
fullWidth={true}
|
||||||
text="pdf only ( 4mb maximum )"
|
text="pdf only ( 4mb maximum )"
|
||||||
@@ -81,7 +79,7 @@ export const OverflowLabels = () => {
|
|||||||
<Button fullWidth={true}>Apply</Button>
|
<Button fullWidth={true}>Apply</Button>
|
||||||
<a
|
<a
|
||||||
href="/#"
|
href="/#"
|
||||||
className="clr-greyscale-800 fs-m"
|
className="clr-gray-800 fs-m"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Need help ?
|
Need help ?
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export const Login = () => {
|
|||||||
onSubmit={methods.handleSubmit(onSubmit)}
|
onSubmit={methods.handleSubmit(onSubmit)}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Log in
|
Log in
|
||||||
@@ -84,9 +84,9 @@ export const Login = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button fullWidth={true}>Log in</Button>
|
<Button fullWidth={true}>Log in</Button>
|
||||||
<div className="fs-m clr-greyscale-800" style={{ textAlign: "center" }}>
|
<div className="fs-m clr-gray-800" style={{ textAlign: "center" }}>
|
||||||
You do not have an account?{" "}
|
You do not have an account?{" "}
|
||||||
<a href="/#" className="clr-greyscale-800">
|
<a href="/#" className="clr-gray-800">
|
||||||
Register
|
Register
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -65,14 +65,14 @@ const SportsBase = ({ values }: SportProps) => {
|
|||||||
onSubmit={methods.handleSubmit(onSubmit)}
|
onSubmit={methods.handleSubmit(onSubmit)}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Register
|
Register
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div className="fs-l clr-greyscale-800 mb-t">Gender</div>
|
<div className="fs-l clr-gray-800 mb-t">Gender</div>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
state={getFieldState("gender", methods.formState)}
|
state={getFieldState("gender", methods.formState)}
|
||||||
text={getFieldErrorMessage("gender", methods.formState)}
|
text={getFieldErrorMessage("gender", methods.formState)}
|
||||||
@@ -158,7 +158,7 @@ const SportsBase = ({ values }: SportProps) => {
|
|||||||
<Button fullWidth={true}>Apply</Button>
|
<Button fullWidth={true}>Apply</Button>
|
||||||
<a
|
<a
|
||||||
href="/#"
|
href="/#"
|
||||||
className="clr-greyscale-800 fs-m"
|
className="clr-gray-800 fs-m"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Need help ?
|
Need help ?
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const Login = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Log in
|
Log in
|
||||||
@@ -43,9 +43,9 @@ export const Login = () => {
|
|||||||
<Checkbox label="Remember me" />
|
<Checkbox label="Remember me" />
|
||||||
</div>
|
</div>
|
||||||
<Button fullWidth={true}>Log in</Button>
|
<Button fullWidth={true}>Log in</Button>
|
||||||
<div className="fs-m clr-greyscale-800" style={{ textAlign: "center" }}>
|
<div className="fs-m clr-gray-800" style={{ textAlign: "center" }}>
|
||||||
You do not have an account?{" "}
|
You do not have an account?{" "}
|
||||||
<a href="/#" className="clr-greyscale-800">
|
<a href="/#" className="clr-gray-800">
|
||||||
Register
|
Register
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,7 +65,7 @@ export const Application = () => {
|
|||||||
method="get"
|
method="get"
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Application
|
Application
|
||||||
@@ -102,7 +102,7 @@ export const Application = () => {
|
|||||||
<Input label="City" fullWidth={true} />
|
<Input label="City" fullWidth={true} />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="fs-l clr-greyscale-800 mb-t">Your curriculum vitae</div>
|
<div className="fs-l clr-gray-800 mb-t">Your curriculum vitae</div>
|
||||||
<FileUploader
|
<FileUploader
|
||||||
fullWidth={true}
|
fullWidth={true}
|
||||||
text="pdf only ( 4mb maximum )"
|
text="pdf only ( 4mb maximum )"
|
||||||
@@ -142,7 +142,7 @@ export const Application = () => {
|
|||||||
<Button fullWidth={true}>Apply</Button>
|
<Button fullWidth={true}>Apply</Button>
|
||||||
<a
|
<a
|
||||||
href="/#"
|
href="/#"
|
||||||
className="clr-greyscale-800 fs-m"
|
className="clr-gray-800 fs-m"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Need help ?
|
Need help ?
|
||||||
@@ -163,13 +163,13 @@ export const Sports = () => {
|
|||||||
onSubmit={(e) => e.preventDefault()}
|
onSubmit={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Register
|
Register
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
<div className="fs-l clr-greyscale-800 mb-t">Gender</div>
|
<div className="fs-l clr-gray-800 mb-t">Gender</div>
|
||||||
<div style={{ display: "flex", gap: "0.5rem" }}>
|
<div style={{ display: "flex", gap: "0.5rem" }}>
|
||||||
<Radio name="gender" label="Male" fullWidth={true} />
|
<Radio name="gender" label="Male" fullWidth={true} />
|
||||||
<Radio name="gender" label="Female" />
|
<Radio name="gender" label="Female" />
|
||||||
@@ -234,7 +234,7 @@ export const Sports = () => {
|
|||||||
<Button fullWidth={true}>Apply</Button>
|
<Button fullWidth={true}>Apply</Button>
|
||||||
<a
|
<a
|
||||||
href="/#"
|
href="/#"
|
||||||
className="clr-greyscale-800 fs-m"
|
className="clr-gray-800 fs-m"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Need help ?
|
Need help ?
|
||||||
@@ -254,13 +254,13 @@ export const SportsDisabled = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
className="fs-h3 fw-bold clr-greyscale-900"
|
className="fs-h3 fw-bold clr-gray-900"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Register
|
Register
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
<div className="fs-l clr-greyscale-800 mb-t">Gender</div>
|
<div className="fs-l clr-gray-800 mb-t">Gender</div>
|
||||||
<div style={{ display: "flex", gap: "0.5rem" }}>
|
<div style={{ display: "flex", gap: "0.5rem" }}>
|
||||||
<Radio name="gender" label="Male" fullWidth={true} disabled={true} />
|
<Radio name="gender" label="Male" fullWidth={true} disabled={true} />
|
||||||
<Radio name="gender" label="Female" disabled={true} />
|
<Radio name="gender" label="Female" disabled={true} />
|
||||||
@@ -347,7 +347,7 @@ export const SportsDisabled = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
<a
|
<a
|
||||||
href="/#"
|
href="/#"
|
||||||
className="clr-greyscale-800 fs-m"
|
className="clr-gray-800 fs-m"
|
||||||
style={{ textAlign: "center" }}
|
style={{ textAlign: "center" }}
|
||||||
>
|
>
|
||||||
Need help ?
|
Need help ?
|
||||||
|
|||||||
Reference in New Issue
Block a user