initial
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "generateblocks-pro/form-field",
|
||||
"title": "Form Field",
|
||||
"category": "generateblocks",
|
||||
"ancestor": [
|
||||
"generateblocks-pro/form"
|
||||
],
|
||||
"description": "A form input field.",
|
||||
"keywords": [
|
||||
"form",
|
||||
"input",
|
||||
"field",
|
||||
"email",
|
||||
"text",
|
||||
"select",
|
||||
"checkbox",
|
||||
"textarea",
|
||||
"radio"
|
||||
],
|
||||
"version": "1.0.0",
|
||||
"textdomain": "generateblocks-pro",
|
||||
"attributes": {
|
||||
"uniqueId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"styles": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
},
|
||||
"css": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"globalClasses": {
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"htmlAttributes": {
|
||||
"type": "object",
|
||||
"default": {}
|
||||
},
|
||||
"fieldType": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"",
|
||||
"text",
|
||||
"email",
|
||||
"url",
|
||||
"tel",
|
||||
"number",
|
||||
"hidden",
|
||||
"textarea",
|
||||
"select",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"checkbox-group"
|
||||
]
|
||||
},
|
||||
"tagName": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"enum": [
|
||||
"",
|
||||
"div",
|
||||
"fieldset"
|
||||
]
|
||||
},
|
||||
"fieldName": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"isRequired": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"matchesField": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"conditions": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"field": {
|
||||
"type": "string"
|
||||
},
|
||||
"operator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"is",
|
||||
"isnot",
|
||||
"isempty",
|
||||
"isnotempty"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"className": false,
|
||||
"reusable": false
|
||||
},
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": [
|
||||
"file:./index.css"
|
||||
],
|
||||
"providesContext": {
|
||||
"generateblocks-pro/form-field/fieldType": "fieldType",
|
||||
"generateblocks-pro/form-field/fieldName": "fieldName",
|
||||
"generateblocks-pro/form-field/isRequired": "isRequired",
|
||||
"generateblocks-pro/form-field/uniqueId": "uniqueId"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.gb-form-repeater{display:grid;gap:5px;grid-template-columns:1fr}.gb-form-repeater__item{align-items:flex-start;display:grid;gap:5px}.gb-form-repeater__item .components-base-control,.gb-form-repeater__item .components-base-control__field{margin:0}.gb-form-repeater__item--option{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.gb-form-repeater__item--option .components-button{height:100%;min-width:30px!important}.gb-form-repeater__item--condition{background-color:#fafafa;border:1px solid #ddd;border-radius:4px;grid-template-columns:minmax(0,1fr) auto;padding:8px}.gb-form-repeater__item--condition>.components-button{height:30px;min-width:30px!important}.gb-form-repeater__condition-controls{display:grid;gap:5px;grid-template-columns:1fr}.gb-form-repeater__add-button{justify-self:flex-start;margin-top:3px}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url', 'generateblocks-pro-block-styles', 'generateblocks-pro-components', 'generateblocks-pro-styles-builder'), 'version' => '5b19b4e26c0f6200659f');
|
||||
@@ -0,0 +1 @@
|
||||
.gb-form-repeater{display:grid;gap:5px;grid-template-columns:1fr}.gb-form-repeater__item{align-items:flex-start;display:grid;gap:5px}.gb-form-repeater__item .components-base-control,.gb-form-repeater__item .components-base-control__field{margin:0}.gb-form-repeater__item--option{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.gb-form-repeater__item--option .components-button{height:100%;min-width:30px!important}.gb-form-repeater__item--condition{background-color:#fafafa;border:1px solid #ddd;border-radius:4px;grid-template-columns:minmax(0,1fr) auto;padding:8px}.gb-form-repeater__item--condition>.components-button{height:30px;min-width:30px!important}.gb-form-repeater__condition-controls{display:grid;gap:5px;grid-template-columns:1fr}.gb-form-repeater__add-button{justify-self:flex-start;margin-top:3px}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user