initial
This commit is contained in:
+93
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "generateblocks-pro/form-field-control",
|
||||
"title": "Form Field Control",
|
||||
"category": "generateblocks",
|
||||
"ancestor": [
|
||||
"generateblocks-pro/form-field"
|
||||
],
|
||||
"description": "A form field control.",
|
||||
"keywords": [
|
||||
"form",
|
||||
"input",
|
||||
"control",
|
||||
"select",
|
||||
"textarea",
|
||||
"checkbox",
|
||||
"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": {}
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"rows": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"checkedValue": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"defaultValue": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"className": false,
|
||||
"reusable": false
|
||||
},
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": [
|
||||
"file:./index.css"
|
||||
],
|
||||
"usesContext": [
|
||||
"generateblocks-pro/form-field/fieldType",
|
||||
"generateblocks-pro/form-field/fieldName",
|
||||
"generateblocks-pro/form-field/isRequired",
|
||||
"generateblocks-pro/form-field/uniqueId"
|
||||
]
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
.gb-html-attributes{display:grid;gap:5px;grid-template-columns:1fr}.gb-html-attributes__item{align-items:center;display:grid;gap:5px;grid-template-columns:1fr 2fr auto}.gb-html-attributes__item .components-button{height:100%;min-width:30px!important}.gb-html-attributes__item .components-base-control,.gb-html-attributes__item .components-base-control__field{margin:0}.gb-html-attributes__clipboard-suggestion{background-color:#f0f6fc;border:1px solid #d1e7dd;border-radius:4px;margin-bottom:12px;padding:8px 12px}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-label{display:block;font-weight:500;margin-bottom:5px}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-text{align-items:center;color:#1e1e1e;display:flex;font-size:13px;gap:8px;justify-content:space-between}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-text code{background-color:#fff;border-radius:3px;font-family:monospace;font-size:11px;padding:2px 4px}
|
||||
.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}
|
||||
+1
@@ -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' => 'e7ae39457cd4c57eee1d');
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
.gb-html-attributes{display:grid;gap:5px;grid-template-columns:1fr}.gb-html-attributes__item{align-items:center;display:grid;gap:5px;grid-template-columns:1fr 2fr auto}.gb-html-attributes__item .components-button{height:100%;min-width:30px!important}.gb-html-attributes__item .components-base-control,.gb-html-attributes__item .components-base-control__field{margin:0}.gb-html-attributes__clipboard-suggestion{background-color:#f0f6fc;border:1px solid #d1e7dd;border-radius:4px;margin-bottom:12px;padding:8px 12px}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-label{display:block;font-weight:500;margin-bottom:5px}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-text{align-items:center;color:#1e1e1e;display:flex;font-size:13px;gap:8px;justify-content:space-between}.gb-html-attributes__clipboard-suggestion .gb-html-attributes__clipboard-text code{background-color:#fff;border-radius:3px;font-family:monospace;font-size:11px;padding:2px 4px}
|
||||
.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