Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@rjsf/chakra-ui): append SubmitButton #2860

Merged
merged 2 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/chakra-ui/src/Widgets/Widgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import TextareaWidget from "../TextareaWidget/TextareaWidget";
import TextWidget from "../TextWidget/TextWidget";
import UpDownWidget from "../UpDownWidget/UpDownWidget";
import URLWidget from "../URLWidget/URLWidget";
import SubmitButton from "../SubmitButton/SubmitButton";

const widgets = {
AltDateTimeWidget,
Expand All @@ -32,6 +33,7 @@ const widgets = {
TextWidget,
UpDownWidget,
URLWidget,
SubmitButton
};

export default widgets;
88 changes: 82 additions & 6 deletions packages/chakra-ui/test/__snapshots__/Array.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ exports[`array fields array 1`] = `
vertical-align: middle;
}

.emotion-9 {
margin-top: 3px;
}

<form
className="rjsf"
noValidate={false}
Expand Down Expand Up @@ -121,9 +125,11 @@ exports[`array fields array 1`] = `
</div>
</div>
</div>
<div>
<div
className="emotion-9"
>
<button
className="btn btn-info"
className="chakra-button emotion-6"
disabled={false}
type="submit"
>
Expand Down Expand Up @@ -297,6 +303,39 @@ exports[`array fields checkboxes 1`] = `
vertical-align: middle;
}

.emotion-14 {
margin-top: 3px;
}

.emotion-15 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
white-space: nowrap;
vertical-align: middle;
outline: 2px solid transparent;
outline-offset: 2px;
width: auto;
}

<form
className="rjsf"
noValidate={false}
Expand Down Expand Up @@ -401,9 +440,11 @@ exports[`array fields checkboxes 1`] = `
</div>
</div>
</div>
<div>
<div
className="emotion-14"
>
<button
className="btn btn-info"
className="chakra-button emotion-15"
disabled={false}
type="submit"
>
Expand Down Expand Up @@ -451,6 +492,39 @@ exports[`array fields fixed array 1`] = `
margin-bottom: 1px;
}

.emotion-14 {
margin-top: 3px;
}

.emotion-15 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
white-space: nowrap;
vertical-align: middle;
outline: 2px solid transparent;
outline-offset: 2px;
width: auto;
}

<form
className="rjsf"
noValidate={false}
Expand Down Expand Up @@ -541,9 +615,11 @@ exports[`array fields fixed array 1`] = `
</div>
</div>
</div>
<div>
<div
className="emotion-14"
>
<button
className="btn btn-info"
className="chakra-button emotion-15"
disabled={false}
type="submit"
>
Expand Down
Loading