PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 4.0.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v4.0.0
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 trunk 1.0.0 2.0.0 2.0.1 2.0.2 2.0.3 3.0 3.0.1 3.0.2 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1
superb-blocks / blocks / form-field / block.json
superb-blocks / blocks / form-field Last commit date
block.json 2 months ago index-rtl.css 2 months ago index.asset.php 2 months ago index.css 2 months ago index.js 2 months ago style-index-rtl.css 2 months ago style-index.css 2 months ago
block.json
179 lines
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "superb-addons/form-field",
5 "parent": ["superb-addons/form", "superb-addons/form-step"],
6 "version": "0.1.0",
7 "title": "Form Field",
8 "category": "superb-addons-blocks",
9 "icon": "editor-textcolor",
10 "description": "A form field. Select the field type, configure validation, and set conditional logic.",
11 "keywords": ["field", "input", "form", "text", "email"],
12 "supports": {
13 "html": false,
14 "inserter": true,
15 "reusable": false
16 },
17 "attributes": {
18 "fieldId": {
19 "type": "string"
20 },
21 "fieldType": {
22 "type": "string",
23 "default": "text"
24 },
25 "label": {
26 "type": "string",
27 "default": ""
28 },
29 "placeholder": {
30 "type": "string",
31 "default": ""
32 },
33 "helpText": {
34 "type": "string",
35 "default": ""
36 },
37 "required": {
38 "type": "boolean",
39 "default": false
40 },
41 "defaultValue": {
42 "type": "string",
43 "default": ""
44 },
45 "fieldName": {
46 "type": "string",
47 "default": ""
48 },
49 "width": {
50 "type": "number",
51 "default": 100
52 },
53 "options": {
54 "type": "array",
55 "default": [],
56 "items": {
57 "type": "object",
58 "properties": {
59 "label": { "type": "string" },
60 "value": { "type": "string" }
61 }
62 }
63 },
64 "minLength": {
65 "type": "number"
66 },
67 "maxLength": {
68 "type": "number"
69 },
70 "minValue": {
71 "type": "number"
72 },
73 "maxValue": {
74 "type": "number"
75 },
76 "pattern": {
77 "type": "string",
78 "default": ""
79 },
80 "patternMessage": {
81 "type": "string",
82 "default": ""
83 },
84 "hideLabel": {
85 "type": "boolean",
86 "default": false
87 },
88 "sensitive": {
89 "type": "boolean",
90 "default": false
91 },
92 "conditionalLogic": {
93 "type": "object",
94 "default": {
95 "action": "show",
96 "ruleGroups": []
97 }
98 },
99 "calculatedSettings": {
100 "type": "object",
101 "default": {
102 "formula": "",
103 "prefix": "",
104 "suffix": "",
105 "roundResult": -1
106 }
107 },
108 "signatureSettings": {
109 "type": "object",
110 "default": {
111 "canvasHeight": 150,
112 "placeholderText": "",
113 "clearText": ""
114 }
115 },
116 "sliderSettings": {
117 "type": "object",
118 "default": {
119 "min": 0,
120 "max": 100,
121 "step": 1,
122 "showValue": true,
123 "prefix": "",
124 "suffix": ""
125 }
126 },
127 "colorSettings": {
128 "type": "object",
129 "default": {
130 "defaultColor": "",
131 "showHexInput": false
132 }
133 },
134 "ratingSettings": {
135 "type": "object",
136 "default": {
137 "maxRating": 5,
138 "defaultRating": 0
139 }
140 },
141 "fileSettings": {
142 "type": "object",
143 "default": {
144 "accept": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".pdf", ".doc", ".docx", ".txt", ".xls", ".xlsx", ".csv"],
145 "maxFileSize": 5,
146 "multiple": false,
147 "maxFiles": 5
148 }
149 },
150 "dateSettings": {
151 "type": "object",
152 "default": {
153 "dateConstraint": "none",
154 "minDateMode": "none",
155 "maxDateMode": "none",
156 "minDate": "",
157 "maxDate": "",
158 "minDateOffset": 0,
159 "maxDateOffset": 0,
160 "excludeDays": [],
161 "dateTimeMessage": ""
162 }
163 },
164 "timeSettings": {
165 "type": "object",
166 "default": {
167 "minTime": "",
168 "maxTime": "",
169 "timeStep": 1,
170 "dateTimeMessage": ""
171 }
172 }
173 },
174 "textdomain": "superb-blocks",
175 "editorScript": "file:./index.js",
176 "editorStyle": "file:./index.css",
177 "style": "file:./style-index.css"
178 }
179