Skip to content
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.

-->
# 6.0.0-beta.17

## @rjsf/shadcn

- Update ArrayFieldItemTemplate to align buttons with the input field [#4753](https://github.com/rjsf-team/react-jsonschema-form/pull/4753)

# 6.0.0-beta.16

## @rjsf/antd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function ArrayFieldItemTemplate<
);
return (
<div>
<div className='mb-2 flex flex-row flex-wrap'>
<div className='mb-2 flex flex-row flex-wrap items-center'>
<div className='grow shrink'>{children}</div>
<div className='flex items-end justify-end p-0.5'>
{hasToolbar && (
Expand Down
40 changes: 20 additions & 20 deletions packages/shadcn/test/__snapshots__/Array.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ exports[`array fields array icons 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -290,7 +290,7 @@ exports[`array fields array icons 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -724,7 +724,7 @@ exports[`array fields fixed array 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -772,7 +772,7 @@ exports[`array fields fixed array 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -1215,7 +1215,7 @@ exports[`with title and description array icons 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -1409,7 +1409,7 @@ exports[`with title and description array icons 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -1823,7 +1823,7 @@ exports[`with title and description fixed array 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -1884,7 +1884,7 @@ exports[`with title and description fixed array 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -2128,7 +2128,7 @@ exports[`with title and description from both array icons 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -2322,7 +2322,7 @@ exports[`with title and description from both array icons 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -2736,7 +2736,7 @@ exports[`with title and description from both fixed array 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -2797,7 +2797,7 @@ exports[`with title and description from both fixed array 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -3041,7 +3041,7 @@ exports[`with title and description from uiSchema array icons 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -3235,7 +3235,7 @@ exports[`with title and description from uiSchema array icons 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -3649,7 +3649,7 @@ exports[`with title and description from uiSchema fixed array 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -3710,7 +3710,7 @@ exports[`with title and description from uiSchema fixed array 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -3898,7 +3898,7 @@ exports[`with title and description with global label off array icons 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -4073,7 +4073,7 @@ exports[`with title and description with global label off array icons 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -4440,7 +4440,7 @@ exports[`with title and description with global label off fixed array 1`] = `
>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down Expand Up @@ -4482,7 +4482,7 @@ exports[`with title and description with global label off fixed array 1`] = `
</div>
<div>
<div
className="mb-2 flex flex-row flex-wrap"
className="mb-2 flex flex-row flex-wrap items-center"
>
<div
className="grow shrink"
Expand Down