Skip to content
Snippets Groups Projects

Devel

Merged Eryk Mika requested to merge devel into main
+ 15
5
@@ -210,7 +210,7 @@ export default function FlexibleTable({
@@ -210,7 +210,7 @@ export default function FlexibleTable({
/>
/>
<DuoInput
<DuoInput
label={__("Border row width", 'flexible-invoices-core')}
label={__("Row top/bottom border width", 'flexible-invoices-core')}
values={
values={
{
{
headerBorderRowWidthTop,
headerBorderRowWidthTop,
@@ -227,7 +227,7 @@ export default function FlexibleTable({
@@ -227,7 +227,7 @@ export default function FlexibleTable({
onChange={(value) => setAttributes({headerBorderColumnColor: value})}
onChange={(value) => setAttributes({headerBorderColumnColor: value})}
/>
/>
<DuoInput
<DuoInput
label={__("Border cell width", 'flexible-invoices-core')}
label={__("Column left/right border width", 'flexible-invoices-core')}
values={
values={
{
{
headerBorderColumnWidthLeft,
headerBorderColumnWidthLeft,
@@ -254,7 +254,7 @@ export default function FlexibleTable({
@@ -254,7 +254,7 @@ export default function FlexibleTable({
/>
/>
<ToggleControl
<ToggleControl
label={__('Duo color table', 'flexible-invoices-core')}
label={__('Alternating row colors', 'flexible-invoices-core')}
checked={multipleBodyBackground}
checked={multipleBodyBackground}
onChange={(newValue) => setAttributes({multipleBodyBackground: newValue})}
onChange={(newValue) => setAttributes({multipleBodyBackground: newValue})}
/>
/>
@@ -303,20 +303,25 @@ export default function FlexibleTable({
@@ -303,20 +303,25 @@ export default function FlexibleTable({
}
}
/>
/>
<ColorSelector
<ColorSelector
label={__('Border row color', 'flexible-invoices-core')}
label={__('Row top/bottom border width', 'flexible-invoices-core')}
value={bodyBorderRowColor}
value={bodyBorderRowColor}
enableAlpha={false}
enableAlpha={false}
returnFormat={'hex'}
returnFormat={'hex'}
onChange={(value) => setAttributes({bodyBorderRowColor: value})}
onChange={(value) => setAttributes({bodyBorderRowColor: value})}
/>
/>
<DuoInput
<DuoInput
label={__("Border row width", 'flexible-invoices-core')}
label={__("Column left/right border width", 'flexible-invoices-core')}
values={
values={
{
{
bodyBorderRowWidthTop,
bodyBorderRowWidthTop,
bodyBorderRowWidthBottom,
bodyBorderRowWidthBottom,
}
}
}
}
 
units={ [
 
{ label: 'px', value: 'px' },
 
{ label: 'em', value: 'em' },
 
{ label: 'pt', value: 'pt' }
 
] }
onChange={handleMultipleAttributesChange}
onChange={handleMultipleAttributesChange}
/>
/>
<ColorSelector
<ColorSelector
@@ -335,6 +340,11 @@ export default function FlexibleTable({
@@ -335,6 +340,11 @@ export default function FlexibleTable({
}
}
}
}
layout={'row'}
layout={'row'}
 
units={ [
 
{ label: 'px', value: 'px' },
 
{ label: 'em', value: 'em' },
 
{ label: 'pt', value: 'pt' }
 
] }
onChange={handleMultipleAttributesChange}
onChange={handleMultipleAttributesChange}
/>
/>
</PanelBody>
</PanelBody>
Loading