-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move label gen from TexWidget to FieldTemplate for bootstrap4
- Loading branch information
Showing
9 changed files
with
277 additions
and
391 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
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
38 changes: 14 additions & 24 deletions
38
packages/bootstrap-4/test/__snapshots__/ColorWidget.test.tsx.snap
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,28 +1,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ColorWidget simple 1`] = ` | ||
<div | ||
className="mb-0 form-group" | ||
> | ||
<label | ||
className="text-danger form-label" | ||
> | ||
Some simple label | ||
* | ||
</label> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="color" | ||
value="value" | ||
/> | ||
</div> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="color" | ||
value="value" | ||
/> | ||
`; |
38 changes: 14 additions & 24 deletions
38
packages/bootstrap-4/test/__snapshots__/DateTimeWidget.test.tsx.snap
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,28 +1,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DateTimeWidget simple 1`] = ` | ||
<div | ||
className="mb-0 form-group" | ||
> | ||
<label | ||
className="text-danger form-label" | ||
> | ||
Some simple label | ||
* | ||
</label> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="datetime-local" | ||
value="2020-07-30T13:41:00.268" | ||
/> | ||
</div> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="datetime-local" | ||
value="2020-07-30T13:41:00.268" | ||
/> | ||
`; |
38 changes: 14 additions & 24 deletions
38
packages/bootstrap-4/test/__snapshots__/DateWidget.test.tsx.snap
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,28 +1,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DateWidget simple 1`] = ` | ||
<div | ||
className="mb-0 form-group" | ||
> | ||
<label | ||
className="text-danger form-label" | ||
> | ||
Some simple label | ||
* | ||
</label> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="date" | ||
value="value" | ||
/> | ||
</div> | ||
<input | ||
autoFocus={true} | ||
className="is-invalid form-control" | ||
disabled={false} | ||
id="_id" | ||
onBlur={[Function]} | ||
onChange={[Function]} | ||
onFocus={[Function]} | ||
placeholder="" | ||
readOnly={true} | ||
required={true} | ||
type="date" | ||
value="value" | ||
/> | ||
`; |
Oops, something went wrong.