Skip to content

Commit

Permalink
Add oik/contact-field block - inner block to oik/contact-form #207
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Sep 10, 2022
1 parent fd20e6a commit 7cc697f
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/contact-field.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '5ffeb721bb3cd15feae1');
1 change: 1 addition & 0 deletions build/contact-field.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.wp-block-oik-contact-field{display:grid;gap:20px;grid-template-columns:1fr 3fr}
1 change: 1 addition & 0 deletions build/contact-field.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/contact-form.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '415bb0ff9218c6b64ee5');
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'e2c5003584604a478e5b');
2 changes: 1 addition & 1 deletion build/contact-form.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/contact-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions build/oik-contact-field/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "oik/contact-field",
"title": "Contact field",
"parent": [
"oik/contact-form"
],
"category": "common",
"icon": "text",
"description": "Defines a contact form field",
"attributes": {
"label": {
"type": "string"
},
"type": {
"type": "string",
"default": "text"
},
"name": {
"type": "string"
},
"required": {
"type": "boolean"
},
"length": {
"type": "numeric"
},
"textAlign": {
"type": "string"
},
"className": {
"type": "string"
},
"textColor": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"style": {
"type": "object"
},
"fontSize": {
"type": "string"
},
"gradient": {
"type": "string"
}
},
"supports": {
"html": false,
"customClassName": false,
"className": false,
"color": {
"gradients": false,
"text": false,
"background": false,
"link": false
},
"typography": {
"fontSize": false,
"lineHeight": false
}
},
"keywords": [
"Contact",
"form",
"oik"
],
"editorScript": "file:../../build/contact-field.js",
"editorStyle": "file:../../build/contact-field.css",
"style": "file:../../build/style-contact-field.css"
}
6 changes: 6 additions & 0 deletions build/oik-contact-form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"icon": "forms",
"description": "Displays a Contact form",
"attributes": {
"contact": {
"type": "string"
},
"email": {
"type": "string"
},
"textAlign": {
"type": "string"
},
Expand Down

0 comments on commit 7cc697f

Please sign in to comment.