PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 4.0.9
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v4.0.9
4.1.0 4.0.9 4.0.8 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 weeks ago index-rtl.css 2 weeks ago index.asset.php 2 weeks ago index.css 2 weeks ago index.js 2 weeks ago style-index-rtl.css 2 weeks ago style-index.css 2 weeks ago
block.json
191 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 "contentText": {
38 "type": "string",
39 "default": ""
40 },
41 "required": {
42 "type": "boolean",
43 "default": false
44 },
45 "defaultValue": {
46 "type": "string",
47 "default": ""
48 },
49 "fieldName": {
50 "type": "string",
51 "default": ""
52 },
53 "width": {
54 "type": "number",
55 "default": 100
56 },
57 "options": {
58 "type": "array",
59 "default": [],
60 "items": {
61 "type": "object",
62 "properties": {
63 "label": { "type": "string" },
64 "value": { "type": "string" }
65 }
66 }
67 },
68 "minLength": {
69 "type": "number"
70 },
71 "maxLength": {
72 "type": "number"
73 },
74 "showCharacterCounter": {
75 "type": "boolean",
76 "default": true
77 },
78 "minValue": {
79 "type": "number"
80 },
81 "maxValue": {
82 "type": "number"
83 },
84 "pattern": {
85 "type": "string",
86 "default": ""
87 },
88 "patternMessage": {
89 "type": "string",
90 "default": ""
91 },
92 "requiredMessage": {
93 "type": "string",
94 "default": ""
95 },
96 "hideLabel": {
97 "type": "boolean",
98 "default": false
99 },
100 "sensitive": {
101 "type": "boolean",
102 "default": false
103 },
104 "conditionalLogic": {
105 "type": "object",
106 "default": {
107 "action": "show",
108 "ruleGroups": []
109 }
110 },
111 "calculatedSettings": {
112 "type": "object",
113 "default": {
114 "formula": "",
115 "prefix": "",
116 "suffix": "",
117 "roundResult": -1
118 }
119 },
120 "signatureSettings": {
121 "type": "object",
122 "default": {
123 "canvasHeight": 150,
124 "placeholderText": "",
125 "clearText": ""
126 }
127 },
128 "sliderSettings": {
129 "type": "object",
130 "default": {
131 "min": 0,
132 "max": 100,
133 "step": 1,
134 "showValue": true,
135 "prefix": "",
136 "suffix": ""
137 }
138 },
139 "colorSettings": {
140 "type": "object",
141 "default": {
142 "defaultColor": "",
143 "showHexInput": false
144 }
145 },
146 "ratingSettings": {
147 "type": "object",
148 "default": {
149 "maxRating": 5,
150 "defaultRating": 0
151 }
152 },
153 "fileSettings": {
154 "type": "object",
155 "default": {
156 "accept": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".pdf", ".doc", ".docx", ".txt", ".xls", ".xlsx", ".csv"],
157 "maxFileSize": 5,
158 "multiple": false,
159 "maxFiles": 5
160 }
161 },
162 "dateSettings": {
163 "type": "object",
164 "default": {
165 "dateConstraint": "none",
166 "minDateMode": "none",
167 "maxDateMode": "none",
168 "minDate": "",
169 "maxDate": "",
170 "minDateOffset": 0,
171 "maxDateOffset": 0,
172 "excludeDays": [],
173 "dateTimeMessage": ""
174 }
175 },
176 "timeSettings": {
177 "type": "object",
178 "default": {
179 "minTime": "",
180 "maxTime": "",
181 "timeStep": 1,
182 "dateTimeMessage": ""
183 }
184 }
185 },
186 "textdomain": "superb-blocks",
187 "editorScript": "file:./index.js",
188 "editorStyle": "file:./index.css",
189 "style": "file:./style-index.css"
190 }
191