|
12 | 12 | "pattern": { |
13 | 13 | "regex": "x-.+" |
14 | 14 | }, |
| 15 | + "attributes": [ |
| 16 | + { |
| 17 | + "name": "Component Attribute Expression", |
| 18 | + "pattern": { |
| 19 | + "regex": ":.+" |
| 20 | + }, |
| 21 | + "inject-language": "InjectablePHP", |
| 22 | + "value": { |
| 23 | + "type": "string", |
| 24 | + "required": false |
| 25 | + }, |
| 26 | + "virtual": true |
| 27 | + }, |
| 28 | + { |
| 29 | + "name": "Component Attribute", |
| 30 | + "pattern": { |
| 31 | + "regex": ".+" |
| 32 | + }, |
| 33 | + "value": { |
| 34 | + "type": "string", |
| 35 | + "required": false |
| 36 | + }, |
| 37 | + "virtual": true |
| 38 | + } |
| 39 | + ], |
15 | 40 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec", |
16 | 41 | "virtual": true |
17 | 42 | }, |
|
20 | 45 | "description": "<p>A base template you can install into your own project as a starting point. This one includes the <strong>Tailwind CDN</strong> for quick prototyping.</p><p><strong>Available named slots:</strong></p><ul><li><code>head</code></li><li><code>scripts</code></li></ul>", |
21 | 46 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-base", |
22 | 47 | "attributes": [ |
| 48 | + { |
| 49 | + "name": ":title", |
| 50 | + "description": "The webpage's title", |
| 51 | + "inject-language": "InjectablePHP", |
| 52 | + "value": { |
| 53 | + "type": "string", |
| 54 | + "required": false |
| 55 | + } |
| 56 | + }, |
23 | 57 | { |
24 | 58 | "name": "title", |
25 | 59 | "description": "The webpage's title", |
|
35 | 69 | "description": "<p>This component provides a form element that will post by default and includes the csrf token out of the box.</p>", |
36 | 70 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-form", |
37 | 71 | "attributes": [ |
| 72 | + { |
| 73 | + "name": ":action", |
| 74 | + "description": "", |
| 75 | + "inject-language": "InjectablePHP", |
| 76 | + "value": { |
| 77 | + "type": "string", |
| 78 | + "required": false |
| 79 | + } |
| 80 | + }, |
38 | 81 | { |
39 | 82 | "name": "action", |
40 | 83 | "description": "", |
|
43 | 86 | "required": false |
44 | 87 | } |
45 | 88 | }, |
| 89 | + { |
| 90 | + "name": ":method", |
| 91 | + "description": "", |
| 92 | + "inject-language": "InjectablePHP", |
| 93 | + "value": { |
| 94 | + "type": "string", |
| 95 | + "required": false |
| 96 | + } |
| 97 | + }, |
46 | 98 | { |
47 | 99 | "name": "method", |
48 | 100 | "description": "", |
|
51 | 103 | "required": false |
52 | 104 | } |
53 | 105 | }, |
| 106 | + { |
| 107 | + "name": ":enctype", |
| 108 | + "description": "", |
| 109 | + "inject-language": "InjectablePHP", |
| 110 | + "value": { |
| 111 | + "type": "string", |
| 112 | + "required": false |
| 113 | + } |
| 114 | + }, |
54 | 115 | { |
55 | 116 | "name": "enctype", |
56 | 117 | "description": "", |
|
66 | 127 | "description": "<p>A versatile input component that will render labels and validation errors automatically.</p>", |
67 | 128 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-input", |
68 | 129 | "attributes": [ |
| 130 | + { |
| 131 | + "name": ":name", |
| 132 | + "description": "", |
| 133 | + "inject-language": "InjectablePHP", |
| 134 | + "value": { |
| 135 | + "type": "string", |
| 136 | + "required": true |
| 137 | + } |
| 138 | + }, |
69 | 139 | { |
70 | 140 | "name": "name", |
71 | 141 | "description": "", |
|
74 | 144 | "required": true |
75 | 145 | } |
76 | 146 | }, |
| 147 | + { |
| 148 | + "name": ":label", |
| 149 | + "description": "", |
| 150 | + "inject-language": "InjectablePHP", |
| 151 | + "value": { |
| 152 | + "type": "string", |
| 153 | + "required": false |
| 154 | + } |
| 155 | + }, |
77 | 156 | { |
78 | 157 | "name": "label", |
79 | 158 | "description": "", |
|
82 | 161 | "required": false |
83 | 162 | } |
84 | 163 | }, |
| 164 | + { |
| 165 | + "name": ":id", |
| 166 | + "description": "", |
| 167 | + "inject-language": "InjectablePHP", |
| 168 | + "value": { |
| 169 | + "type": "string", |
| 170 | + "required": false |
| 171 | + } |
| 172 | + }, |
85 | 173 | { |
86 | 174 | "name": "id", |
87 | 175 | "description": "", |
|
90 | 178 | "required": false |
91 | 179 | } |
92 | 180 | }, |
| 181 | + { |
| 182 | + "name": ":type", |
| 183 | + "description": "", |
| 184 | + "inject-language": "InjectablePHP", |
| 185 | + "value": { |
| 186 | + "type": "string", |
| 187 | + "required": false |
| 188 | + } |
| 189 | + }, |
93 | 190 | { |
94 | 191 | "name": "type", |
95 | 192 | "description": "", |
|
98 | 195 | "required": false |
99 | 196 | } |
100 | 197 | }, |
| 198 | + { |
| 199 | + "name": ":default", |
| 200 | + "description": "", |
| 201 | + "inject-language": "InjectablePHP", |
| 202 | + "value": { |
| 203 | + "type": "string", |
| 204 | + "required": false |
| 205 | + } |
| 206 | + }, |
101 | 207 | { |
102 | 208 | "name": "default", |
103 | 209 | "description": "", |
|
123 | 229 | "description": "<p>This component provides the ability to inject any icon from the Iconify project in your templates.</p>", |
124 | 230 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-icon", |
125 | 231 | "attributes": [ |
| 232 | + { |
| 233 | + "name": ":name", |
| 234 | + "description": "", |
| 235 | + "inject-language": "InjectablePHP", |
| 236 | + "value": { |
| 237 | + "type": "string", |
| 238 | + "required": true |
| 239 | + } |
| 240 | + }, |
126 | 241 | { |
127 | 242 | "name": "name", |
128 | 243 | "description": "", |
|
131 | 246 | "required": true |
132 | 247 | } |
133 | 248 | }, |
| 249 | + { |
| 250 | + "name": ":class", |
| 251 | + "description": "", |
| 252 | + "inject-language": "InjectablePHP", |
| 253 | + "value": { |
| 254 | + "type": "string", |
| 255 | + "required": false |
| 256 | + } |
| 257 | + }, |
134 | 258 | { |
135 | 259 | "name": "class", |
136 | 260 | "description": "", |
|
146 | 270 | "description": "<p>Tempest has built-in support for Vite, the most popular front-end development server and build tool. This component simply inject registered entrypoints where it is called.</p>", |
147 | 271 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-vite-tags", |
148 | 272 | "attributes": [ |
| 273 | + { |
| 274 | + "name": ":entrypoints", |
| 275 | + "description": "", |
| 276 | + "inject-language": "InjectablePHP", |
| 277 | + "value": { |
| 278 | + "type": "array", |
| 279 | + "required": false |
| 280 | + } |
| 281 | + }, |
149 | 282 | { |
150 | 283 | "name": "entrypoints", |
151 | 284 | "description": "", |
|
154 | 287 | "required": false |
155 | 288 | } |
156 | 289 | }, |
| 290 | + { |
| 291 | + "name": ":entrypoint", |
| 292 | + "description": "", |
| 293 | + "inject-language": "InjectablePHP", |
| 294 | + "value": { |
| 295 | + "type": "string", |
| 296 | + "required": false |
| 297 | + } |
| 298 | + }, |
157 | 299 | { |
158 | 300 | "name": "entrypoint", |
159 | 301 | "description": "", |
|
174 | 316 | "description": "", |
175 | 317 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-slot", |
176 | 318 | "attributes": [ |
| 319 | + { |
| 320 | + "name": ":name", |
| 321 | + "description": "The name of the slot", |
| 322 | + "inject-language": "InjectablePHP", |
| 323 | + "value": { |
| 324 | + "type": "string", |
| 325 | + "required": false |
| 326 | + } |
| 327 | + }, |
177 | 328 | { |
178 | 329 | "name": "name", |
179 | 330 | "description": "The name of the slot", |
|
189 | 340 | "description": "", |
190 | 341 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-markdown", |
191 | 342 | "attributes": [ |
| 343 | + { |
| 344 | + "name": ":content", |
| 345 | + "description": "The markdown content from a variable", |
| 346 | + "inject-language": "InjectablePHP", |
| 347 | + "value": { |
| 348 | + "type": "string", |
| 349 | + "required": false |
| 350 | + } |
| 351 | + }, |
192 | 352 | { |
193 | 353 | "name": "content", |
194 | 354 | "description": "The markdown content from a variable", |
|
204 | 364 | "description": "", |
205 | 365 | "doc-url": "https://tempestphp.com/1.x/internals/view-spec#x-component", |
206 | 366 | "attributes": [ |
| 367 | + { |
| 368 | + "name": ":is", |
| 369 | + "description": "", |
| 370 | + "inject-language": "InjectablePHP", |
| 371 | + "value": { |
| 372 | + "type": "string", |
| 373 | + "required": true |
| 374 | + } |
| 375 | + }, |
207 | 376 | { |
208 | 377 | "name": "is", |
209 | 378 | "description": "", |
|
0 commit comments