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
1 change: 1 addition & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Bug Fixes

- DataViews: Fix `compact` density clipping and remove top/bottom padding. [#77054](https://github.com/WordPress/gutenberg/pull/77054)
- DataForm: Remove `text-transform` from `panel` field labels. [#77196](https://github.com/WordPress/gutenberg/pull/77196)

## 14.0.0 (2026-04-01)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
line-height: $grid-unit-05 * 5;
hyphens: auto;
color: $gray-700;
text-transform: capitalize;

.components-base-control__label {
display: inline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const HighLevelHelpText: Story = {
fields: [
{
id: 'accountForm',
label: 'Account Information',
label: 'Account information',
description:
'We collect this information to create your account and provide personalized services. Your data will be kept secure and used only for account management and service improvements.',
children: [ 'name', 'email', 'phone' ],
Expand Down
12 changes: 6 additions & 6 deletions packages/dataviews/src/dataform/stories/data-adapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ const DataAdapterComponent = () => {
// for nested data based on the field id.
{
id: 'user.profile.name',
label: 'User Name',
label: 'User name',
type: 'text',
},
{
id: 'user.profile.email',
label: 'User Email',
label: 'User email',
type: 'email',
},
{
id: 'user.profile.tags',
label: 'User Tags',
label: 'User tags',
type: 'array',
placeholder: 'Enter comma-separated tags',
description:
Expand Down Expand Up @@ -101,13 +101,13 @@ const DataAdapterComponent = () => {
// Example of deriving data by leveraging setValue method.
{
id: 'revenue.total',
label: 'Total Revenue',
label: 'Total revenue',
type: 'integer',
readOnly: true,
},
{
id: 'revenue.pricePerUnit',
label: 'Price Per Unit',
label: 'Price per unit',
type: 'integer',
setValue: ( { item, value } ) => ( {
revenue: {
Expand Down Expand Up @@ -174,7 +174,7 @@ const DataAdapterComponent = () => {
fields: [
{
id: 'userProfile',
label: 'User Profile',
label: 'User profile',
children: [
'user.profile.name',
'user.profile.email',
Expand Down
10 changes: 5 additions & 5 deletions packages/dataviews/src/dataform/stories/layout-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const LayoutCardComponent = ( {
const customerFields: Field< Customer >[] = [
{
id: 'name',
label: 'Customer Name',
label: 'Customer name',
type: 'text',
},
{
Expand All @@ -70,17 +70,17 @@ const LayoutCardComponent = ( {
},
{
id: 'shippingAddress',
label: 'Shipping Address',
label: 'Shipping address',
type: 'text',
},
{
id: 'billingAddress',
label: 'Billing Address',
label: 'Billing address',
type: 'text',
},
{
id: 'displayPayments',
label: 'Display Payments?',
label: 'Display payments?',
type: 'boolean',
},
{
Expand Down Expand Up @@ -112,7 +112,7 @@ const LayoutCardComponent = ( {
},
{
id: 'dueDate',
label: 'Due Date',
label: 'Due date',
type: 'text',
render: ( { item } ) => {
return <Badge>Due on: { item.dueDate }</Badge>;
Expand Down
10 changes: 5 additions & 5 deletions packages/dataviews/src/dataform/stories/layout-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'filesize',
label: 'File Size',
label: 'File size',
type: 'integer',
readOnly: true,
},
Expand Down Expand Up @@ -170,7 +170,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'longDescription',
label: 'Long Description',
label: 'Long description',
type: 'text',
Edit: {
control: 'textarea',
Expand All @@ -179,7 +179,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'comment_status',
label: 'Comment Status',
label: 'Comment status',
type: 'text',
Edit: 'radio',
elements: [
Expand All @@ -189,7 +189,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'ping_status',
label: 'Allow Pings/Trackbacks',
label: 'Allow pings/trackbacks',
type: 'boolean',
},
{
Expand Down Expand Up @@ -223,7 +223,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'flight_status',
label: 'Flight Status',
label: 'Flight status',
type: 'text',
Edit: 'radio',
elements: [
Expand Down
18 changes: 9 additions & 9 deletions packages/dataviews/src/dataform/stories/layout-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'filesize',
label: 'File Size',
label: 'File size',
type: 'integer',
readOnly: true,
},
Expand Down Expand Up @@ -180,7 +180,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'longDescription',
label: 'Long Description',
label: 'Long description',
type: 'text',
Edit: {
control: 'textarea',
Expand All @@ -189,7 +189,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'comment_status',
label: 'Comment Status',
label: 'Comment status',
type: 'text',
Edit: 'radio',
elements: [
Expand All @@ -199,7 +199,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'ping_status',
label: 'Allow Pings/Trackbacks',
label: 'Allow pings/trackbacks',
type: 'boolean',
},
{
Expand Down Expand Up @@ -233,7 +233,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'flight_status',
label: 'Flight Status',
label: 'Flight status',
type: 'text',
Edit: 'radio',
elements: [
Expand Down Expand Up @@ -360,7 +360,7 @@ const LayoutPanelComponent = ( {
'title',
{
id: 'status',
label: 'Status & Visibility',
label: 'Status & visibility',
children: [ 'status', 'password' ],
},
'order',
Expand All @@ -375,12 +375,12 @@ const LayoutPanelComponent = ( {
},
{
id: 'address1',
label: 'Combined Address',
label: 'Combined address',
children: [ 'address1', 'address2', 'city' ],
},
{
id: 'flight_info',
label: 'Flight Information',
label: 'Flight information',
children: [
'origin',
'destination',
Expand All @@ -396,7 +396,7 @@ const LayoutPanelComponent = ( {
},
{
id: 'passenger_details',
label: 'Passenger Details',
label: 'Passenger details',
children: [ 'author', 'seat' ],
layout: getPanelLayoutFromStoryArgs( {
summary: [ 'author', 'seat' ],
Expand Down
10 changes: 5 additions & 5 deletions packages/dataviews/src/dataform/stories/layout-regular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'filesize',
label: 'File Size',
label: 'File size',
type: 'integer',
readOnly: true,
},
Expand Down Expand Up @@ -177,7 +177,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'longDescription',
label: 'Long Description',
label: 'Long description',
type: 'text',
Edit: {
control: 'textarea',
Expand All @@ -186,7 +186,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'comment_status',
label: 'Comment Status',
label: 'Comment status',
type: 'text',
Edit: 'radio',
elements: [
Expand All @@ -196,7 +196,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'ping_status',
label: 'Allow Pings/Trackbacks',
label: 'Allow pings/trackbacks',
type: 'boolean',
},
{
Expand Down Expand Up @@ -230,7 +230,7 @@ const fields: Field< SamplePost >[] = [
},
{
id: 'flight_status',
label: 'Flight Status',
label: 'Flight status',
type: 'text',
Edit: 'radio',
elements: [
Expand Down
18 changes: 9 additions & 9 deletions packages/dataviews/src/dataform/stories/layout-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const LayoutRowComponent = ( {
const customerFields: Field< Customer >[] = [
{
id: 'name',
label: 'Customer Name',
label: 'Customer name',
type: 'text',
},
{
Expand All @@ -57,37 +57,37 @@ const LayoutRowComponent = ( {
},
{
id: 'shippingAddress',
label: 'Shipping Address',
label: 'Shipping address',
type: 'text',
},
{
id: 'shippingCity',
label: 'Shipping City',
label: 'Shipping city',
type: 'text',
},
{
id: 'shippingPostalCode',
label: 'Shipping Postal Code',
label: 'Shipping postal code',
type: 'text',
},
{
id: 'shippingCountry',
label: 'Shipping Country',
label: 'Shipping country',
type: 'text',
},
{
id: 'billingAddress',
label: 'Billing Address',
label: 'Billing address',
type: 'text',
},
{
id: 'billingCity',
label: 'Billing City',
label: 'Billing city',
type: 'text',
},
{
id: 'billingPostalCode',
label: 'Billing Postal Code',
label: 'Billing postal code',
type: 'text',
},
{
Expand All @@ -102,7 +102,7 @@ const LayoutRowComponent = ( {
},
{
id: 'hasDiscount',
label: 'Has Discount?',
label: 'Has discount?',
type: 'boolean',
},
{
Expand Down
Loading
Loading