| Server IP : 185.252.147.100 / Your IP : 216.73.217.33 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/generateblocks/src/block-context/ |
Upload File : |
import defaultContext from './default';
import { __ } from '@wordpress/i18n';
import { defaultsDeep } from 'lodash';
const buttonContext = defaultsDeep( {
id: 'button',
supports: {
responsiveTabs: true,
settingsPanel: {
enabled: true,
icon: 'button-settings',
},
layout: {
enabled: true,
display: true,
flexDirection: true,
flexWrap: true,
alignItems: true,
justifyContent: true,
columnGap: true,
rowGap: true,
zIndex: true,
position: true,
},
flexChildPanel: {
enabled: true,
flex: true,
order: true,
},
sizingPanel: {
enabled: true,
width: true,
height: true,
minWidth: true,
minHeight: true,
maxWidth: true,
maxHeight: true,
useGlobalMaxWidth: true,
},
typography: {
enabled: true,
alignment: true,
fontWeight: true,
textTransform: true,
fontSize: true,
letterSpacing: true,
fontFamily: true,
},
spacing: {
enabled: true,
padding: true,
margin: true,
},
borders: {
enabled: true,
borderColors: [
{
state: '',
tooltip: __( 'Border', 'generateblocks' ),
alpha: true,
},
{
state: 'Hover',
tooltip: __( 'Border Hover', 'generateblocks' ),
alpha: true,
},
],
borderTop: true,
borderRight: true,
borderBottom: true,
borderLeft: true,
borderRadius: true,
},
colors: {
enabled: true,
elements: [
{
group: 'background',
label: __( 'Background', 'generateblocks' ),
items: [
{
attribute: 'backgroundColor',
alpha: true,
},
{
tooltip: __( 'Hover', 'generateblocks' ),
attribute: 'backgroundColorHover',
alpha: true,
},
],
},
{
group: 'text',
label: __( 'Text', 'generateblocks' ),
items: [
{
attribute: 'textColor',
},
{
tooltip: __( 'Hover', 'generateblocks' ),
attribute: 'textColorHover',
},
],
},
],
},
backgroundPanel: {
enabled: true,
backgroundGradient: true,
},
icon: {
enabled: true,
location: [
{ label: __( 'Left', 'generateblocks' ), value: 'left' },
{ label: __( 'Right', 'generateblocks' ), value: 'right' },
],
iconSize: true,
},
},
}, defaultContext );
export default buttonContext;