@webstudio-is/sdk-components-react 0.185.0 → 0.191.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__generated__/blockquote.props.js +514 -0
- package/lib/__generated__/body.props.js +508 -0
- package/lib/__generated__/bold.props.js +508 -0
- package/lib/__generated__/box.props.js +527 -0
- package/lib/__generated__/button.props.js +570 -0
- package/lib/__generated__/checkbox.props.js +672 -0
- package/lib/__generated__/code-text.props.js +509 -0
- package/lib/__generated__/form.props.js +556 -0
- package/lib/__generated__/heading.props.js +516 -0
- package/lib/__generated__/html-embed.props.js +13 -0
- package/lib/__generated__/image.props.js +592 -0
- package/lib/__generated__/input.props.js +696 -0
- package/lib/__generated__/italic.props.js +508 -0
- package/lib/__generated__/label.props.js +520 -0
- package/lib/__generated__/link.props.js +568 -0
- package/lib/__generated__/list-item.props.js +514 -0
- package/lib/__generated__/list.props.js +534 -0
- package/lib/__generated__/markdown-embed.props.js +7 -0
- package/lib/__generated__/option.props.js +532 -0
- package/lib/__generated__/paragraph.props.js +508 -0
- package/lib/__generated__/radio-button.props.js +672 -0
- package/lib/__generated__/select.props.js +556 -0
- package/lib/__generated__/separator.props.js +508 -0
- package/lib/__generated__/span.props.js +508 -0
- package/lib/__generated__/subscript.props.js +508 -0
- package/lib/__generated__/superscript.props.js +508 -0
- package/lib/__generated__/text.props.js +516 -0
- package/lib/__generated__/textarea.props.js +587 -0
- package/lib/__generated__/time.props.js +312 -0
- package/lib/__generated__/vimeo-play-button.props.js +569 -0
- package/lib/__generated__/vimeo-preview-image.props.js +586 -0
- package/lib/__generated__/vimeo-spinner.props.js +508 -0
- package/lib/__generated__/vimeo.props.js +674 -0
- package/lib/__generated__/xml-node.props.js +7 -0
- package/lib/__generated__/xml-time.props.js +18 -0
- package/lib/blockquote.js +9 -0
- package/lib/blockquote.ws.js +79 -0
- package/lib/body.js +7 -0
- package/lib/body.ws.js +30 -0
- package/lib/bold.js +7 -0
- package/lib/bold.ws.js +20 -0
- package/lib/box.js +9 -0
- package/lib/box.ws.js +31 -0
- package/lib/button.js +9 -0
- package/lib/button.ws.js +44 -0
- package/lib/checkbox.js +15 -0
- package/lib/checkbox.ws.js +59 -0
- package/lib/code-text.js +10 -0
- package/lib/code-text.ws.js +60 -0
- package/lib/components.js +77 -1348
- package/lib/content-embed.ws.js +77 -0
- package/lib/form.js +7 -0
- package/lib/form.ws.js +31 -0
- package/lib/fragment.js +7 -0
- package/lib/fragment.ws.js +11 -0
- package/lib/heading.js +9 -0
- package/lib/heading.ws.js +45 -0
- package/lib/home_wsKvRSqvkajPPBeycZ-C8.svg +3 -0
- package/lib/hooks.js +5 -0
- package/lib/html-embed-patchers.js +29 -0
- package/lib/html-embed.js +112 -0
- package/lib/html-embed.ws.js +46 -0
- package/lib/image.js +40 -0
- package/lib/image.ws.js +65 -0
- package/lib/input.js +17 -0
- package/lib/input.ws.js +55 -0
- package/lib/italic.js +7 -0
- package/lib/italic.ws.js +26 -0
- package/lib/label.js +7 -0
- package/lib/label.ws.js +43 -0
- package/lib/link.js +15 -0
- package/lib/link.ws.js +68 -0
- package/lib/list-item.js +9 -0
- package/lib/list-item.ws.js +40 -0
- package/lib/list.js +6 -0
- package/lib/list.ws.js +92 -0
- package/lib/markdown-embed.js +14 -0
- package/lib/markdown-embed.ws.js +111 -0
- package/lib/metas.js +79 -4573
- package/lib/option.js +7 -0
- package/lib/option.ws.js +47 -0
- package/lib/paragraph.js +7 -0
- package/lib/paragraph.ws.js +40 -0
- package/lib/props.js +77 -17915
- package/lib/radio-button.js +15 -0
- package/lib/radio-button.ws.js +61 -0
- package/lib/rich-text-link.js +8 -0
- package/lib/rich-text-link.ws.js +11 -0
- package/lib/select.js +19 -0
- package/lib/select.ws.js +97 -0
- package/lib/separator.js +9 -0
- package/lib/separator.ws.js +48 -0
- package/lib/slot.js +14 -0
- package/lib/slot.ws.js +15 -0
- package/lib/span.js +7 -0
- package/lib/span.ws.js +20 -0
- package/lib/subscript.js +7 -0
- package/lib/subscript.ws.js +20 -0
- package/lib/superscript.js +7 -0
- package/lib/superscript.ws.js +20 -0
- package/lib/text.js +10 -0
- package/lib/text.ws.js +41 -0
- package/lib/textarea.js +7 -0
- package/lib/textarea.ws.js +56 -0
- package/lib/time.js +319 -0
- package/lib/time.ws.js +22 -0
- package/lib/types/__generated__/xml-time.props.d.ts +2 -0
- package/lib/types/components.d.ts +1 -0
- package/lib/types/metas.d.ts +1 -0
- package/lib/types/props.d.ts +1 -0
- package/lib/types/vimeo-preview-image.d.ts +96 -96
- package/lib/types/xml-node.d.ts +5 -1
- package/lib/types/xml-time.d.ts +6 -0
- package/lib/types/xml-time.ws.d.ts +3 -0
- package/lib/vimeo-play-button.js +15 -0
- package/lib/vimeo-play-button.ws.js +33 -0
- package/lib/vimeo-preview-image.js +19 -0
- package/lib/vimeo-preview-image.ws.js +20 -0
- package/lib/vimeo-spinner.js +13 -0
- package/lib/vimeo-spinner.ws.js +26 -0
- package/lib/vimeo.js +215 -0
- package/lib/vimeo.ws.js +330 -0
- package/lib/xml-node.js +44 -0
- package/lib/xml-node.ws.js +18 -0
- package/lib/xml-time.js +25 -0
- package/lib/xml-time.ws.js +18 -0
- package/package.json +11 -14
package/lib/metas.js
CHANGED
|
@@ -1,4575 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
};
|
|
43
|
-
var meta3 = {
|
|
44
|
-
category: "general",
|
|
45
|
-
type: "embed",
|
|
46
|
-
label: "HTML Embed",
|
|
47
|
-
description: "Used to add HTML code to the page, such as an SVG or script.",
|
|
48
|
-
icon: EmbedIcon,
|
|
49
|
-
presetStyle,
|
|
50
|
-
order: 8
|
|
51
|
-
};
|
|
52
|
-
var propsMeta = {
|
|
53
|
-
props: {
|
|
54
|
-
...props,
|
|
55
|
-
clientOnly: {
|
|
56
|
-
...props.clientOnly,
|
|
57
|
-
description: "Activate it for any scripts that can mutate the DOM or introduce interactivity. This only affects the published site."
|
|
58
|
-
},
|
|
59
|
-
executeScriptOnCanvas: {
|
|
60
|
-
...props.executeScriptOnCanvas,
|
|
61
|
-
label: "Run scripts on canvas",
|
|
62
|
-
description: "Dangerously allow script execution on canvas without switching to preview mode. This only affects build mode, but may result in unwanted side effects inside builder!"
|
|
63
|
-
},
|
|
64
|
-
code: {
|
|
65
|
-
required: true,
|
|
66
|
-
control: "code",
|
|
67
|
-
language: "html",
|
|
68
|
-
type: "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
initialProps: ["className", "clientOnly", "executeScriptOnCanvas"]
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
// src/markdown-embed.ws.ts
|
|
75
|
-
import { MarkdownEmbedIcon } from "@webstudio-is/icons/svg";
|
|
76
|
-
import { imagePlaceholderDataUrl } from "@webstudio-is/image";
|
|
77
|
-
import {
|
|
78
|
-
descendantComponent
|
|
79
|
-
} from "@webstudio-is/react-sdk";
|
|
80
|
-
|
|
81
|
-
// src/__generated__/markdown-embed.props.ts
|
|
82
|
-
var props2 = {
|
|
83
|
-
className: { required: false, control: "text", type: "string" },
|
|
84
|
-
code: { required: true, control: "text", type: "string" }
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// src/markdown-embed.ws.ts
|
|
88
|
-
var markdownSample = `
|
|
89
|
-
# Styling Markdown with Markdown Embed
|
|
90
|
-
|
|
91
|
-
Markdown Embed allows styling of Markdown, which primarily comes from external data.
|
|
92
|
-
|
|
93
|
-
## How to Use Markdown Embed
|
|
94
|
-
|
|
95
|
-
- Every element is shown in the Navigator.
|
|
96
|
-
- Apply styles and Tokens to each element.
|
|
97
|
-
- Adjustments to elements apply universally within this embed, ensuring consistency across your content.
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## This sample text contains all the elements that can be styled.
|
|
102
|
-
|
|
103
|
-
Any elements that were not used above are used below.
|
|
104
|
-
|
|
105
|
-
### Heading 3
|
|
106
|
-
#### Heading 4
|
|
107
|
-
##### Heading 5
|
|
108
|
-
###### Heading 6
|
|
109
|
-
|
|
110
|
-
[Links](#) connect your content to relevant resources.
|
|
111
|
-
|
|
112
|
-
**Bold text** makes your important points stand out.
|
|
113
|
-
|
|
114
|
-
*Italic text* is great for emphasizing terms.
|
|
115
|
-
|
|
116
|
-
1. First Step
|
|
117
|
-
2. Second Step
|
|
118
|
-
|
|
119
|
-

|
|
120
|
-
|
|
121
|
-
> Capture attention with a powerful quote.
|
|
122
|
-
|
|
123
|
-
Using \`console.log("Hello World");\` will log to the console.
|
|
124
|
-
`.trim();
|
|
125
|
-
var descendant = (label2, tag) => {
|
|
126
|
-
return {
|
|
127
|
-
type: "instance",
|
|
128
|
-
component: descendantComponent,
|
|
129
|
-
label: label2,
|
|
130
|
-
props: [{ type: "string", name: "selector", value: ` ${tag}` }],
|
|
131
|
-
children: []
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
var meta4 = {
|
|
135
|
-
category: "data",
|
|
136
|
-
type: "embed",
|
|
137
|
-
description: "Used to add markdown code to the page",
|
|
138
|
-
icon: MarkdownEmbedIcon,
|
|
139
|
-
presetStyle: {
|
|
140
|
-
div: [
|
|
141
|
-
{
|
|
142
|
-
property: "display",
|
|
143
|
-
value: { type: "keyword", value: "contents" }
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
order: 4,
|
|
148
|
-
template: [
|
|
149
|
-
{
|
|
150
|
-
type: "instance",
|
|
151
|
-
component: "MarkdownEmbed",
|
|
152
|
-
props: [
|
|
153
|
-
{
|
|
154
|
-
name: "code",
|
|
155
|
-
type: "string",
|
|
156
|
-
value: markdownSample
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
children: [
|
|
160
|
-
descendant("Paragraph", "p"),
|
|
161
|
-
descendant("Heading 1", "h1"),
|
|
162
|
-
descendant("Heading 2", "h2"),
|
|
163
|
-
descendant("Heading 3", "h3"),
|
|
164
|
-
descendant("Heading 4", "h4"),
|
|
165
|
-
descendant("Heading 5", "h5"),
|
|
166
|
-
descendant("Heading 6", "h6"),
|
|
167
|
-
descendant("Bold", ":where(strong, b)"),
|
|
168
|
-
descendant("Italic", ":where(em, i)"),
|
|
169
|
-
descendant("Link", "a"),
|
|
170
|
-
descendant("Image", "img"),
|
|
171
|
-
descendant("Blockquote", "blockquote"),
|
|
172
|
-
descendant("Code Text", "code"),
|
|
173
|
-
descendant("List", ":where(ul, ol)"),
|
|
174
|
-
descendant("List Item", "li"),
|
|
175
|
-
descendant("Separator", "hr")
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
};
|
|
180
|
-
var propsMeta2 = {
|
|
181
|
-
props: {
|
|
182
|
-
...props2,
|
|
183
|
-
code: {
|
|
184
|
-
required: true,
|
|
185
|
-
control: "code",
|
|
186
|
-
language: "markdown",
|
|
187
|
-
type: "string"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
initialProps: ["className"]
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
// src/content-embed.ws.ts
|
|
194
|
-
import { ContentEmbedIcon } from "@webstudio-is/icons/svg";
|
|
195
|
-
import { imagePlaceholderDataUrl as imagePlaceholderDataUrl2 } from "@webstudio-is/image";
|
|
196
|
-
import {
|
|
197
|
-
descendantComponent as descendantComponent2
|
|
198
|
-
} from "@webstudio-is/react-sdk";
|
|
199
|
-
var htmlSample = `
|
|
200
|
-
<h1>Styling HTML with Content Embed</h1>
|
|
201
|
-
<p>Content Embed allows styling of HTML, which primarily comes from external data.</p>
|
|
202
|
-
<h2>How to Use Content Embed</h2>
|
|
203
|
-
<ul>
|
|
204
|
-
<li>Every element is shown in the Navigator.</li>
|
|
205
|
-
<li>Apply styles and Tokens to each element.</li>
|
|
206
|
-
<li>Adjustments to elements apply universally within this embed, ensuring consistency across your content.</li>
|
|
207
|
-
</ul>
|
|
208
|
-
<hr>
|
|
209
|
-
<h2>This sample text contains all the elements that can be styled.</h2>
|
|
210
|
-
<p>Any elements that were not used above are used below.</p>
|
|
211
|
-
<h3>Heading 3</h3>
|
|
212
|
-
<h4>Heading 4</h4>
|
|
213
|
-
<h5>Heading 5</h5>
|
|
214
|
-
<h6>Heading 6</h6>
|
|
215
|
-
<p><a href="#">Links</a> connect your content to relevant resources.</p>
|
|
216
|
-
<p><strong>Bold text</strong> makes your important points stand out.</p>
|
|
217
|
-
<p><em>Italic text</em> is great for emphasizing terms.</p>
|
|
218
|
-
<ol>
|
|
219
|
-
<li>First Step</li>
|
|
220
|
-
<li>Second Step</li>
|
|
221
|
-
</ol>
|
|
222
|
-
<img src="${imagePlaceholderDataUrl2}">
|
|
223
|
-
<blockquote>Capture attention with a powerful quote.</blockquote>
|
|
224
|
-
<p>Using <code>console.log("Hello World");</code> will log to the console.</p>
|
|
225
|
-
`.trim();
|
|
226
|
-
var descendant2 = (label2, tag) => {
|
|
227
|
-
return {
|
|
228
|
-
type: "instance",
|
|
229
|
-
component: descendantComponent2,
|
|
230
|
-
label: label2,
|
|
231
|
-
props: [{ type: "string", name: "selector", value: ` ${tag}` }],
|
|
232
|
-
children: []
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
var meta5 = {
|
|
236
|
-
category: "data",
|
|
237
|
-
type: "control",
|
|
238
|
-
description: "Content Embed allows styling of HTML, which can be provided via the Code property statically or loaded dynamically from any Resource, for example, from a CMS.",
|
|
239
|
-
icon: ContentEmbedIcon,
|
|
240
|
-
order: 3,
|
|
241
|
-
template: [
|
|
242
|
-
{
|
|
243
|
-
type: "instance",
|
|
244
|
-
component: "HtmlEmbed",
|
|
245
|
-
label: "Content Embed",
|
|
246
|
-
props: [
|
|
247
|
-
{
|
|
248
|
-
name: "code",
|
|
249
|
-
type: "string",
|
|
250
|
-
value: htmlSample
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
children: [
|
|
254
|
-
descendant2("Paragraph", "p"),
|
|
255
|
-
descendant2("Heading 1", "h1"),
|
|
256
|
-
descendant2("Heading 2", "h2"),
|
|
257
|
-
descendant2("Heading 3", "h3"),
|
|
258
|
-
descendant2("Heading 4", "h4"),
|
|
259
|
-
descendant2("Heading 5", "h5"),
|
|
260
|
-
descendant2("Heading 6", "h6"),
|
|
261
|
-
descendant2("Bold", ":where(strong, b)"),
|
|
262
|
-
descendant2("Italic", ":where(em, i)"),
|
|
263
|
-
descendant2("Link", "a"),
|
|
264
|
-
descendant2("Image", "img"),
|
|
265
|
-
descendant2("Blockquote", "blockquote"),
|
|
266
|
-
descendant2("Code Text", "code"),
|
|
267
|
-
descendant2("List", ":where(ul, ol)"),
|
|
268
|
-
descendant2("List Item", "li"),
|
|
269
|
-
descendant2("Separator", "hr")
|
|
270
|
-
]
|
|
271
|
-
}
|
|
272
|
-
]
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
// src/body.ws.ts
|
|
276
|
-
import { BodyIcon } from "@webstudio-is/icons/svg";
|
|
277
|
-
import {
|
|
278
|
-
defaultStates
|
|
279
|
-
} from "@webstudio-is/react-sdk";
|
|
280
|
-
import { body } from "@webstudio-is/sdk/normalize.css";
|
|
281
|
-
var presetStyle2 = {
|
|
282
|
-
body: [
|
|
283
|
-
...body,
|
|
284
|
-
{
|
|
285
|
-
property: "WebkitFontSmoothing",
|
|
286
|
-
value: { type: "keyword", value: "antialiased" }
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
property: "MozOsxFontSmoothing",
|
|
290
|
-
value: { type: "keyword", value: "grayscale" }
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
};
|
|
294
|
-
var meta6 = {
|
|
295
|
-
type: "container",
|
|
296
|
-
icon: BodyIcon,
|
|
297
|
-
states: defaultStates,
|
|
298
|
-
presetStyle: presetStyle2,
|
|
299
|
-
detachable: false
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
// src/box.ws.ts
|
|
303
|
-
import { BoxIcon } from "@webstudio-is/icons/svg";
|
|
304
|
-
import {
|
|
305
|
-
defaultStates as defaultStates2
|
|
306
|
-
} from "@webstudio-is/react-sdk";
|
|
307
|
-
import {
|
|
308
|
-
div,
|
|
309
|
-
address,
|
|
310
|
-
article,
|
|
311
|
-
aside,
|
|
312
|
-
figure,
|
|
313
|
-
footer,
|
|
314
|
-
header,
|
|
315
|
-
main,
|
|
316
|
-
nav,
|
|
317
|
-
section
|
|
318
|
-
} from "@webstudio-is/sdk/normalize.css";
|
|
319
|
-
var presetStyle3 = {
|
|
320
|
-
div,
|
|
321
|
-
address,
|
|
322
|
-
article,
|
|
323
|
-
aside,
|
|
324
|
-
figure,
|
|
325
|
-
footer,
|
|
326
|
-
header,
|
|
327
|
-
main,
|
|
328
|
-
nav,
|
|
329
|
-
section
|
|
330
|
-
};
|
|
331
|
-
var meta7 = {
|
|
332
|
-
category: "general",
|
|
333
|
-
type: "container",
|
|
334
|
-
description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
|
|
335
|
-
icon: BoxIcon,
|
|
336
|
-
states: defaultStates2,
|
|
337
|
-
presetStyle: presetStyle3,
|
|
338
|
-
order: 0
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
// src/text.ws.ts
|
|
342
|
-
import { TextIcon } from "@webstudio-is/icons/svg";
|
|
343
|
-
import {
|
|
344
|
-
defaultStates as defaultStates3
|
|
345
|
-
} from "@webstudio-is/react-sdk";
|
|
346
|
-
import { div as div2 } from "@webstudio-is/sdk/normalize.css";
|
|
347
|
-
var presetStyle4 = {
|
|
348
|
-
div: [
|
|
349
|
-
...div2,
|
|
350
|
-
{
|
|
351
|
-
property: "minHeight",
|
|
352
|
-
value: { type: "unit", unit: "em", value: 1 }
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
};
|
|
356
|
-
var meta8 = {
|
|
357
|
-
category: "text",
|
|
358
|
-
type: "container",
|
|
359
|
-
description: "A generic container for any text content that is not a heading or a link.",
|
|
360
|
-
icon: TextIcon,
|
|
361
|
-
states: defaultStates3,
|
|
362
|
-
presetStyle: presetStyle4,
|
|
363
|
-
order: 0,
|
|
364
|
-
template: [
|
|
365
|
-
{
|
|
366
|
-
type: "instance",
|
|
367
|
-
component: "Text",
|
|
368
|
-
children: [
|
|
369
|
-
{
|
|
370
|
-
type: "text",
|
|
371
|
-
value: "The text you can edit",
|
|
372
|
-
placeholder: true
|
|
373
|
-
}
|
|
374
|
-
]
|
|
375
|
-
}
|
|
376
|
-
]
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
// src/heading.ws.ts
|
|
380
|
-
import { HeadingIcon } from "@webstudio-is/icons/svg";
|
|
381
|
-
import {
|
|
382
|
-
defaultStates as defaultStates4
|
|
383
|
-
} from "@webstudio-is/react-sdk";
|
|
384
|
-
import { h1, h2, h3, h4, h5, h6 } from "@webstudio-is/sdk/normalize.css";
|
|
385
|
-
var presetStyle5 = {
|
|
386
|
-
h1,
|
|
387
|
-
h2,
|
|
388
|
-
h3,
|
|
389
|
-
h4,
|
|
390
|
-
h5,
|
|
391
|
-
h6
|
|
392
|
-
};
|
|
393
|
-
var meta9 = {
|
|
394
|
-
category: "text",
|
|
395
|
-
type: "container",
|
|
396
|
-
description: "Use HTML headings to structure and organize content. Use the Tag property in settings to change the heading level (h1-h6).",
|
|
397
|
-
icon: HeadingIcon,
|
|
398
|
-
invalidAncestors: ["Heading"],
|
|
399
|
-
states: defaultStates4,
|
|
400
|
-
presetStyle: presetStyle5,
|
|
401
|
-
order: 1,
|
|
402
|
-
template: [
|
|
403
|
-
{
|
|
404
|
-
type: "instance",
|
|
405
|
-
component: "Heading",
|
|
406
|
-
children: [
|
|
407
|
-
{
|
|
408
|
-
type: "text",
|
|
409
|
-
value: "Heading text you can edit",
|
|
410
|
-
placeholder: true
|
|
411
|
-
}
|
|
412
|
-
]
|
|
413
|
-
}
|
|
414
|
-
]
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
// src/paragraph.ws.ts
|
|
418
|
-
import { TextAlignLeftIcon } from "@webstudio-is/icons/svg";
|
|
419
|
-
import {
|
|
420
|
-
defaultStates as defaultStates5
|
|
421
|
-
} from "@webstudio-is/react-sdk";
|
|
422
|
-
import { p } from "@webstudio-is/sdk/normalize.css";
|
|
423
|
-
var presetStyle6 = {
|
|
424
|
-
p
|
|
425
|
-
};
|
|
426
|
-
var meta10 = {
|
|
427
|
-
category: "text",
|
|
428
|
-
type: "container",
|
|
429
|
-
description: "A container for multi-line text.",
|
|
430
|
-
icon: TextAlignLeftIcon,
|
|
431
|
-
invalidAncestors: ["Paragraph"],
|
|
432
|
-
states: defaultStates5,
|
|
433
|
-
presetStyle: presetStyle6,
|
|
434
|
-
order: 2,
|
|
435
|
-
template: [
|
|
436
|
-
{
|
|
437
|
-
type: "instance",
|
|
438
|
-
component: "Paragraph",
|
|
439
|
-
children: [
|
|
440
|
-
{
|
|
441
|
-
type: "text",
|
|
442
|
-
value: "Paragraph text you can edit",
|
|
443
|
-
placeholder: true
|
|
444
|
-
}
|
|
445
|
-
]
|
|
446
|
-
}
|
|
447
|
-
]
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
// src/link.ws.ts
|
|
451
|
-
import { LinkIcon } from "@webstudio-is/icons/svg";
|
|
452
|
-
import {
|
|
453
|
-
defaultStates as defaultStates6
|
|
454
|
-
} from "@webstudio-is/react-sdk";
|
|
455
|
-
import { a } from "@webstudio-is/sdk/normalize.css";
|
|
456
|
-
|
|
457
|
-
// src/__generated__/link.props.ts
|
|
458
|
-
var props3 = {
|
|
459
|
-
about: { required: false, control: "text", type: "string" },
|
|
460
|
-
accessKey: {
|
|
461
|
-
required: false,
|
|
462
|
-
control: "text",
|
|
463
|
-
type: "string",
|
|
464
|
-
description: "Keyboard shortcut to activate or add focus to the element."
|
|
465
|
-
},
|
|
466
|
-
"aria-activedescendant": {
|
|
467
|
-
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
468
|
-
required: false,
|
|
469
|
-
control: "text",
|
|
470
|
-
type: "string"
|
|
471
|
-
},
|
|
472
|
-
"aria-atomic": {
|
|
473
|
-
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
474
|
-
required: false,
|
|
475
|
-
control: "boolean",
|
|
476
|
-
type: "boolean"
|
|
477
|
-
},
|
|
478
|
-
"aria-autocomplete": {
|
|
479
|
-
description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
|
|
480
|
-
required: false,
|
|
481
|
-
control: "select",
|
|
482
|
-
type: "string",
|
|
483
|
-
options: ["list", "none", "inline", "both"]
|
|
484
|
-
},
|
|
485
|
-
"aria-braillelabel": {
|
|
486
|
-
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
487
|
-
required: false,
|
|
488
|
-
control: "text",
|
|
489
|
-
type: "string"
|
|
490
|
-
},
|
|
491
|
-
"aria-brailleroledescription": {
|
|
492
|
-
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
493
|
-
required: false,
|
|
494
|
-
control: "text",
|
|
495
|
-
type: "string"
|
|
496
|
-
},
|
|
497
|
-
"aria-busy": { required: false, control: "boolean", type: "boolean" },
|
|
498
|
-
"aria-checked": {
|
|
499
|
-
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
500
|
-
required: false,
|
|
501
|
-
control: "text",
|
|
502
|
-
type: "string"
|
|
503
|
-
},
|
|
504
|
-
"aria-colcount": {
|
|
505
|
-
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
506
|
-
required: false,
|
|
507
|
-
control: "number",
|
|
508
|
-
type: "number"
|
|
509
|
-
},
|
|
510
|
-
"aria-colindex": {
|
|
511
|
-
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
512
|
-
required: false,
|
|
513
|
-
control: "number",
|
|
514
|
-
type: "number"
|
|
515
|
-
},
|
|
516
|
-
"aria-colindextext": {
|
|
517
|
-
description: "Defines a human readable text alternative of aria-colindex.",
|
|
518
|
-
required: false,
|
|
519
|
-
control: "text",
|
|
520
|
-
type: "string"
|
|
521
|
-
},
|
|
522
|
-
"aria-colspan": {
|
|
523
|
-
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
524
|
-
required: false,
|
|
525
|
-
control: "number",
|
|
526
|
-
type: "number"
|
|
527
|
-
},
|
|
528
|
-
"aria-controls": {
|
|
529
|
-
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
530
|
-
required: false,
|
|
531
|
-
control: "text",
|
|
532
|
-
type: "string"
|
|
533
|
-
},
|
|
534
|
-
"aria-current": {
|
|
535
|
-
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
536
|
-
required: false,
|
|
537
|
-
control: "text",
|
|
538
|
-
type: "string"
|
|
539
|
-
},
|
|
540
|
-
"aria-describedby": {
|
|
541
|
-
description: "Identifies the element (or elements) that describes the object.",
|
|
542
|
-
required: false,
|
|
543
|
-
control: "text",
|
|
544
|
-
type: "string"
|
|
545
|
-
},
|
|
546
|
-
"aria-description": {
|
|
547
|
-
description: "Defines a string value that describes or annotates the current element.",
|
|
548
|
-
required: false,
|
|
549
|
-
control: "text",
|
|
550
|
-
type: "string"
|
|
551
|
-
},
|
|
552
|
-
"aria-details": {
|
|
553
|
-
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
554
|
-
required: false,
|
|
555
|
-
control: "text",
|
|
556
|
-
type: "string"
|
|
557
|
-
},
|
|
558
|
-
"aria-disabled": {
|
|
559
|
-
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
560
|
-
required: false,
|
|
561
|
-
control: "boolean",
|
|
562
|
-
type: "boolean"
|
|
563
|
-
},
|
|
564
|
-
"aria-dropeffect": {
|
|
565
|
-
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
566
|
-
required: false,
|
|
567
|
-
control: "select",
|
|
568
|
-
type: "string",
|
|
569
|
-
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
570
|
-
},
|
|
571
|
-
"aria-errormessage": {
|
|
572
|
-
description: "Identifies the element that provides an error message for the object.",
|
|
573
|
-
required: false,
|
|
574
|
-
control: "text",
|
|
575
|
-
type: "string"
|
|
576
|
-
},
|
|
577
|
-
"aria-expanded": {
|
|
578
|
-
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
579
|
-
required: false,
|
|
580
|
-
control: "boolean",
|
|
581
|
-
type: "boolean"
|
|
582
|
-
},
|
|
583
|
-
"aria-flowto": {
|
|
584
|
-
description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
|
|
585
|
-
required: false,
|
|
586
|
-
control: "text",
|
|
587
|
-
type: "string"
|
|
588
|
-
},
|
|
589
|
-
"aria-grabbed": {
|
|
590
|
-
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
591
|
-
required: false,
|
|
592
|
-
control: "boolean",
|
|
593
|
-
type: "boolean"
|
|
594
|
-
},
|
|
595
|
-
"aria-haspopup": {
|
|
596
|
-
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
597
|
-
required: false,
|
|
598
|
-
control: "text",
|
|
599
|
-
type: "string"
|
|
600
|
-
},
|
|
601
|
-
"aria-hidden": {
|
|
602
|
-
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
603
|
-
required: false,
|
|
604
|
-
control: "boolean",
|
|
605
|
-
type: "boolean"
|
|
606
|
-
},
|
|
607
|
-
"aria-invalid": {
|
|
608
|
-
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
609
|
-
required: false,
|
|
610
|
-
control: "text",
|
|
611
|
-
type: "string"
|
|
612
|
-
},
|
|
613
|
-
"aria-keyshortcuts": {
|
|
614
|
-
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
615
|
-
required: false,
|
|
616
|
-
control: "text",
|
|
617
|
-
type: "string"
|
|
618
|
-
},
|
|
619
|
-
"aria-label": {
|
|
620
|
-
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
621
|
-
required: false,
|
|
622
|
-
control: "text",
|
|
623
|
-
type: "string"
|
|
624
|
-
},
|
|
625
|
-
"aria-labelledby": {
|
|
626
|
-
description: "Identifies the element (or elements) that labels the current element.",
|
|
627
|
-
required: false,
|
|
628
|
-
control: "text",
|
|
629
|
-
type: "string"
|
|
630
|
-
},
|
|
631
|
-
"aria-level": {
|
|
632
|
-
description: "Defines the hierarchical level of an element within a structure.",
|
|
633
|
-
required: false,
|
|
634
|
-
control: "number",
|
|
635
|
-
type: "number"
|
|
636
|
-
},
|
|
637
|
-
"aria-live": {
|
|
638
|
-
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
639
|
-
required: false,
|
|
640
|
-
control: "radio",
|
|
641
|
-
type: "string",
|
|
642
|
-
options: ["off", "assertive", "polite"]
|
|
643
|
-
},
|
|
644
|
-
"aria-modal": {
|
|
645
|
-
description: "Indicates whether an element is modal when displayed.",
|
|
646
|
-
required: false,
|
|
647
|
-
control: "boolean",
|
|
648
|
-
type: "boolean"
|
|
649
|
-
},
|
|
650
|
-
"aria-multiline": {
|
|
651
|
-
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
652
|
-
required: false,
|
|
653
|
-
control: "boolean",
|
|
654
|
-
type: "boolean"
|
|
655
|
-
},
|
|
656
|
-
"aria-multiselectable": {
|
|
657
|
-
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
658
|
-
required: false,
|
|
659
|
-
control: "boolean",
|
|
660
|
-
type: "boolean"
|
|
661
|
-
},
|
|
662
|
-
"aria-orientation": {
|
|
663
|
-
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
664
|
-
required: false,
|
|
665
|
-
control: "radio",
|
|
666
|
-
type: "string",
|
|
667
|
-
options: ["horizontal", "vertical"]
|
|
668
|
-
},
|
|
669
|
-
"aria-owns": {
|
|
670
|
-
description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
|
|
671
|
-
required: false,
|
|
672
|
-
control: "text",
|
|
673
|
-
type: "string"
|
|
674
|
-
},
|
|
675
|
-
"aria-placeholder": {
|
|
676
|
-
description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
|
|
677
|
-
required: false,
|
|
678
|
-
control: "text",
|
|
679
|
-
type: "string"
|
|
680
|
-
},
|
|
681
|
-
"aria-posinset": {
|
|
682
|
-
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
683
|
-
required: false,
|
|
684
|
-
control: "number",
|
|
685
|
-
type: "number"
|
|
686
|
-
},
|
|
687
|
-
"aria-pressed": {
|
|
688
|
-
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
689
|
-
required: false,
|
|
690
|
-
control: "text",
|
|
691
|
-
type: "string"
|
|
692
|
-
},
|
|
693
|
-
"aria-readonly": {
|
|
694
|
-
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
695
|
-
required: false,
|
|
696
|
-
control: "boolean",
|
|
697
|
-
type: "boolean"
|
|
698
|
-
},
|
|
699
|
-
"aria-relevant": {
|
|
700
|
-
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
701
|
-
required: false,
|
|
702
|
-
control: "select",
|
|
703
|
-
type: "string",
|
|
704
|
-
options: [
|
|
705
|
-
"text",
|
|
706
|
-
"additions",
|
|
707
|
-
"additions removals",
|
|
708
|
-
"additions text",
|
|
709
|
-
"all",
|
|
710
|
-
"removals",
|
|
711
|
-
"removals additions",
|
|
712
|
-
"removals text",
|
|
713
|
-
"text additions",
|
|
714
|
-
"text removals"
|
|
715
|
-
]
|
|
716
|
-
},
|
|
717
|
-
"aria-required": {
|
|
718
|
-
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
719
|
-
required: false,
|
|
720
|
-
control: "boolean",
|
|
721
|
-
type: "boolean"
|
|
722
|
-
},
|
|
723
|
-
"aria-roledescription": {
|
|
724
|
-
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
725
|
-
required: false,
|
|
726
|
-
control: "text",
|
|
727
|
-
type: "string"
|
|
728
|
-
},
|
|
729
|
-
"aria-rowcount": {
|
|
730
|
-
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
731
|
-
required: false,
|
|
732
|
-
control: "number",
|
|
733
|
-
type: "number"
|
|
734
|
-
},
|
|
735
|
-
"aria-rowindex": {
|
|
736
|
-
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
737
|
-
required: false,
|
|
738
|
-
control: "number",
|
|
739
|
-
type: "number"
|
|
740
|
-
},
|
|
741
|
-
"aria-rowindextext": {
|
|
742
|
-
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
743
|
-
required: false,
|
|
744
|
-
control: "text",
|
|
745
|
-
type: "string"
|
|
746
|
-
},
|
|
747
|
-
"aria-rowspan": {
|
|
748
|
-
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
749
|
-
required: false,
|
|
750
|
-
control: "number",
|
|
751
|
-
type: "number"
|
|
752
|
-
},
|
|
753
|
-
"aria-selected": {
|
|
754
|
-
description: 'Indicates the current "selected" state of various widgets.',
|
|
755
|
-
required: false,
|
|
756
|
-
control: "boolean",
|
|
757
|
-
type: "boolean"
|
|
758
|
-
},
|
|
759
|
-
"aria-setsize": {
|
|
760
|
-
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
761
|
-
required: false,
|
|
762
|
-
control: "number",
|
|
763
|
-
type: "number"
|
|
764
|
-
},
|
|
765
|
-
"aria-sort": {
|
|
766
|
-
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
767
|
-
required: false,
|
|
768
|
-
control: "select",
|
|
769
|
-
type: "string",
|
|
770
|
-
options: ["none", "ascending", "descending", "other"]
|
|
771
|
-
},
|
|
772
|
-
"aria-valuemax": {
|
|
773
|
-
description: "Defines the maximum allowed value for a range widget.",
|
|
774
|
-
required: false,
|
|
775
|
-
control: "number",
|
|
776
|
-
type: "number"
|
|
777
|
-
},
|
|
778
|
-
"aria-valuemin": {
|
|
779
|
-
description: "Defines the minimum allowed value for a range widget.",
|
|
780
|
-
required: false,
|
|
781
|
-
control: "number",
|
|
782
|
-
type: "number"
|
|
783
|
-
},
|
|
784
|
-
"aria-valuenow": {
|
|
785
|
-
description: "Defines the current value for a range widget.",
|
|
786
|
-
required: false,
|
|
787
|
-
control: "number",
|
|
788
|
-
type: "number"
|
|
789
|
-
},
|
|
790
|
-
"aria-valuetext": {
|
|
791
|
-
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
792
|
-
required: false,
|
|
793
|
-
control: "text",
|
|
794
|
-
type: "string"
|
|
795
|
-
},
|
|
796
|
-
autoCapitalize: {
|
|
797
|
-
required: false,
|
|
798
|
-
control: "text",
|
|
799
|
-
type: "string",
|
|
800
|
-
description: "Sets whether input is automatically capitalized when entered by user."
|
|
801
|
-
},
|
|
802
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
803
|
-
autoFocus: {
|
|
804
|
-
required: false,
|
|
805
|
-
control: "boolean",
|
|
806
|
-
type: "boolean",
|
|
807
|
-
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
808
|
-
},
|
|
809
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
810
|
-
className: { required: false, control: "text", type: "string" },
|
|
811
|
-
color: {
|
|
812
|
-
required: false,
|
|
813
|
-
control: "color",
|
|
814
|
-
type: "string",
|
|
815
|
-
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
816
|
-
},
|
|
817
|
-
content: {
|
|
818
|
-
required: false,
|
|
819
|
-
control: "text",
|
|
820
|
-
type: "string",
|
|
821
|
-
description: "A value associated with http-equiv orname depending on the context."
|
|
822
|
-
},
|
|
823
|
-
contextMenu: {
|
|
824
|
-
required: false,
|
|
825
|
-
control: "text",
|
|
826
|
-
type: "string",
|
|
827
|
-
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
828
|
-
},
|
|
829
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
830
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
831
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
832
|
-
dir: {
|
|
833
|
-
required: false,
|
|
834
|
-
control: "text",
|
|
835
|
-
type: "string",
|
|
836
|
-
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
837
|
-
},
|
|
838
|
-
download: {
|
|
839
|
-
required: false,
|
|
840
|
-
control: "boolean",
|
|
841
|
-
type: "boolean",
|
|
842
|
-
description: "Indicates that the hyperlink is to be used for downloading a resource."
|
|
843
|
-
},
|
|
844
|
-
draggable: {
|
|
845
|
-
required: false,
|
|
846
|
-
control: "boolean",
|
|
847
|
-
type: "boolean",
|
|
848
|
-
description: "Defines whether the element can be dragged."
|
|
849
|
-
},
|
|
850
|
-
hidden: {
|
|
851
|
-
required: false,
|
|
852
|
-
control: "boolean",
|
|
853
|
-
type: "boolean",
|
|
854
|
-
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
855
|
-
},
|
|
856
|
-
href: {
|
|
857
|
-
required: false,
|
|
858
|
-
control: "text",
|
|
859
|
-
type: "string",
|
|
860
|
-
description: "The URL of a linked resource."
|
|
861
|
-
},
|
|
862
|
-
hrefLang: {
|
|
863
|
-
required: false,
|
|
864
|
-
control: "text",
|
|
865
|
-
type: "string",
|
|
866
|
-
description: "Specifies the language of the linked resource."
|
|
867
|
-
},
|
|
868
|
-
id: {
|
|
869
|
-
required: false,
|
|
870
|
-
control: "text",
|
|
871
|
-
type: "string",
|
|
872
|
-
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
873
|
-
},
|
|
874
|
-
inputMode: {
|
|
875
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
876
|
-
required: false,
|
|
877
|
-
control: "select",
|
|
878
|
-
type: "string",
|
|
879
|
-
options: [
|
|
880
|
-
"search",
|
|
881
|
-
"text",
|
|
882
|
-
"none",
|
|
883
|
-
"tel",
|
|
884
|
-
"url",
|
|
885
|
-
"email",
|
|
886
|
-
"numeric",
|
|
887
|
-
"decimal"
|
|
888
|
-
]
|
|
889
|
-
},
|
|
890
|
-
is: {
|
|
891
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
892
|
-
required: false,
|
|
893
|
-
control: "text",
|
|
894
|
-
type: "string"
|
|
895
|
-
},
|
|
896
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
897
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
898
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
899
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
900
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
901
|
-
lang: {
|
|
902
|
-
required: false,
|
|
903
|
-
control: "text",
|
|
904
|
-
type: "string",
|
|
905
|
-
description: "Defines the language used in the element."
|
|
906
|
-
},
|
|
907
|
-
media: {
|
|
908
|
-
required: false,
|
|
909
|
-
control: "text",
|
|
910
|
-
type: "string",
|
|
911
|
-
description: "Specifies a hint of the media for which the linked resource was designed."
|
|
912
|
-
},
|
|
913
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
914
|
-
ping: {
|
|
915
|
-
required: false,
|
|
916
|
-
control: "text",
|
|
917
|
-
type: "string",
|
|
918
|
-
description: "The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink."
|
|
919
|
-
},
|
|
920
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
921
|
-
property: { required: false, control: "text", type: "string" },
|
|
922
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
923
|
-
referrerPolicy: {
|
|
924
|
-
required: false,
|
|
925
|
-
control: "select",
|
|
926
|
-
type: "string",
|
|
927
|
-
options: [
|
|
928
|
-
"",
|
|
929
|
-
"no-referrer",
|
|
930
|
-
"no-referrer-when-downgrade",
|
|
931
|
-
"origin",
|
|
932
|
-
"origin-when-cross-origin",
|
|
933
|
-
"same-origin",
|
|
934
|
-
"strict-origin",
|
|
935
|
-
"strict-origin-when-cross-origin",
|
|
936
|
-
"unsafe-url"
|
|
937
|
-
],
|
|
938
|
-
description: "Specifies which referrer is sent when fetching the resource."
|
|
939
|
-
},
|
|
940
|
-
rel: {
|
|
941
|
-
required: false,
|
|
942
|
-
control: "text",
|
|
943
|
-
type: "string",
|
|
944
|
-
description: "Specifies the relationship of the target object to the link object."
|
|
945
|
-
},
|
|
946
|
-
resource: { required: false, control: "text", type: "string" },
|
|
947
|
-
results: { required: false, control: "number", type: "number" },
|
|
948
|
-
rev: { required: false, control: "text", type: "string" },
|
|
949
|
-
role: {
|
|
950
|
-
required: false,
|
|
951
|
-
control: "text",
|
|
952
|
-
type: "string",
|
|
953
|
-
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
954
|
-
},
|
|
955
|
-
security: { required: false, control: "text", type: "string" },
|
|
956
|
-
slot: {
|
|
957
|
-
required: false,
|
|
958
|
-
control: "text",
|
|
959
|
-
type: "string",
|
|
960
|
-
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
961
|
-
},
|
|
962
|
-
spellCheck: {
|
|
963
|
-
required: false,
|
|
964
|
-
control: "boolean",
|
|
965
|
-
type: "boolean",
|
|
966
|
-
description: "Indicates whether spell checking is allowed for the element."
|
|
967
|
-
},
|
|
968
|
-
suppressContentEditableWarning: {
|
|
969
|
-
required: false,
|
|
970
|
-
control: "boolean",
|
|
971
|
-
type: "boolean"
|
|
972
|
-
},
|
|
973
|
-
suppressHydrationWarning: {
|
|
974
|
-
required: false,
|
|
975
|
-
control: "boolean",
|
|
976
|
-
type: "boolean"
|
|
977
|
-
},
|
|
978
|
-
tabIndex: {
|
|
979
|
-
required: false,
|
|
980
|
-
control: "number",
|
|
981
|
-
type: "number",
|
|
982
|
-
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
983
|
-
},
|
|
984
|
-
target: {
|
|
985
|
-
required: false,
|
|
986
|
-
control: "select",
|
|
987
|
-
type: "string",
|
|
988
|
-
options: ["_self", "_blank", "_parent", "_top"],
|
|
989
|
-
description: "Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)"
|
|
990
|
-
},
|
|
991
|
-
title: {
|
|
992
|
-
required: false,
|
|
993
|
-
control: "text",
|
|
994
|
-
type: "string",
|
|
995
|
-
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
996
|
-
},
|
|
997
|
-
translate: {
|
|
998
|
-
required: false,
|
|
999
|
-
control: "radio",
|
|
1000
|
-
type: "string",
|
|
1001
|
-
options: ["yes", "no"],
|
|
1002
|
-
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
1003
|
-
},
|
|
1004
|
-
type: {
|
|
1005
|
-
required: false,
|
|
1006
|
-
control: "text",
|
|
1007
|
-
type: "string",
|
|
1008
|
-
description: "Defines the type of the element."
|
|
1009
|
-
},
|
|
1010
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
1011
|
-
unselectable: {
|
|
1012
|
-
required: false,
|
|
1013
|
-
control: "radio",
|
|
1014
|
-
type: "string",
|
|
1015
|
-
options: ["on", "off"]
|
|
1016
|
-
},
|
|
1017
|
-
vocab: { required: false, control: "text", type: "string" }
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
|
-
// src/link.ws.ts
|
|
1021
|
-
var presetStyle7 = {
|
|
1022
|
-
a: [
|
|
1023
|
-
...a,
|
|
1024
|
-
{
|
|
1025
|
-
property: "minHeight",
|
|
1026
|
-
value: { type: "unit", unit: "em", value: 1 }
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
property: "display",
|
|
1030
|
-
value: { type: "keyword", value: "inline-block" }
|
|
1031
|
-
}
|
|
1032
|
-
]
|
|
1033
|
-
};
|
|
1034
|
-
var meta11 = {
|
|
1035
|
-
category: "general",
|
|
1036
|
-
type: "container",
|
|
1037
|
-
description: "Use a link to send your users to another page, section, or resource. Configure links in the Settings panel.",
|
|
1038
|
-
icon: LinkIcon,
|
|
1039
|
-
invalidAncestors: ["Link", "Button"],
|
|
1040
|
-
presetStyle: presetStyle7,
|
|
1041
|
-
order: 1,
|
|
1042
|
-
states: [
|
|
1043
|
-
...defaultStates6,
|
|
1044
|
-
{
|
|
1045
|
-
selector: ":visited",
|
|
1046
|
-
label: "Visited"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
category: "component-states",
|
|
1050
|
-
selector: "[aria-current=page]",
|
|
1051
|
-
label: "Current page"
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
template: [
|
|
1055
|
-
{
|
|
1056
|
-
type: "instance",
|
|
1057
|
-
component: "Link",
|
|
1058
|
-
children: [
|
|
1059
|
-
{
|
|
1060
|
-
type: "text",
|
|
1061
|
-
value: "Link text you can edit",
|
|
1062
|
-
placeholder: true
|
|
1063
|
-
}
|
|
1064
|
-
]
|
|
1065
|
-
}
|
|
1066
|
-
]
|
|
1067
|
-
};
|
|
1068
|
-
var propsMeta3 = {
|
|
1069
|
-
props: {
|
|
1070
|
-
...props3,
|
|
1071
|
-
href: {
|
|
1072
|
-
type: "string",
|
|
1073
|
-
control: "url",
|
|
1074
|
-
required: false
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
initialProps: ["id", "className", "href", "target", "download"]
|
|
1078
|
-
};
|
|
1079
|
-
|
|
1080
|
-
// src/rich-text-link.ws.ts
|
|
1081
|
-
var meta12 = {
|
|
1082
|
-
...meta11,
|
|
1083
|
-
category: "hidden",
|
|
1084
|
-
type: "rich-text-child",
|
|
1085
|
-
template: []
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
|
-
// src/span.ws.ts
|
|
1089
|
-
import { PaintBrushIcon } from "@webstudio-is/icons/svg";
|
|
1090
|
-
import {
|
|
1091
|
-
defaultStates as defaultStates7
|
|
1092
|
-
} from "@webstudio-is/react-sdk";
|
|
1093
|
-
import { span } from "@webstudio-is/sdk/normalize.css";
|
|
1094
|
-
var presetStyle8 = {
|
|
1095
|
-
span
|
|
1096
|
-
};
|
|
1097
|
-
var meta13 = {
|
|
1098
|
-
type: "rich-text-child",
|
|
1099
|
-
label: "Text",
|
|
1100
|
-
icon: PaintBrushIcon,
|
|
1101
|
-
states: defaultStates7,
|
|
1102
|
-
presetStyle: presetStyle8
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
// src/bold.ws.ts
|
|
1106
|
-
import { BoldIcon } from "@webstudio-is/icons/svg";
|
|
1107
|
-
import {
|
|
1108
|
-
defaultStates as defaultStates8
|
|
1109
|
-
} from "@webstudio-is/react-sdk";
|
|
1110
|
-
import { b } from "@webstudio-is/sdk/normalize.css";
|
|
1111
|
-
var presetStyle9 = {
|
|
1112
|
-
b
|
|
1113
|
-
};
|
|
1114
|
-
var meta14 = {
|
|
1115
|
-
type: "rich-text-child",
|
|
1116
|
-
label: "Bold Text",
|
|
1117
|
-
icon: BoldIcon,
|
|
1118
|
-
states: defaultStates8,
|
|
1119
|
-
presetStyle: presetStyle9
|
|
1120
|
-
};
|
|
1121
|
-
|
|
1122
|
-
// src/italic.ws.ts
|
|
1123
|
-
import { TextItalicIcon } from "@webstudio-is/icons/svg";
|
|
1124
|
-
import {
|
|
1125
|
-
defaultStates as defaultStates9
|
|
1126
|
-
} from "@webstudio-is/react-sdk";
|
|
1127
|
-
import { i } from "@webstudio-is/sdk/normalize.css";
|
|
1128
|
-
var presetStyle10 = {
|
|
1129
|
-
i: [
|
|
1130
|
-
...i,
|
|
1131
|
-
{
|
|
1132
|
-
property: "fontStyle",
|
|
1133
|
-
value: { type: "keyword", value: "italic" }
|
|
1134
|
-
}
|
|
1135
|
-
]
|
|
1136
|
-
};
|
|
1137
|
-
var meta15 = {
|
|
1138
|
-
type: "rich-text-child",
|
|
1139
|
-
label: "Italic Text",
|
|
1140
|
-
icon: TextItalicIcon,
|
|
1141
|
-
states: defaultStates9,
|
|
1142
|
-
presetStyle: presetStyle10
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
// src/superscript.ws.ts
|
|
1146
|
-
import { SuperscriptIcon } from "@webstudio-is/icons/svg";
|
|
1147
|
-
import {
|
|
1148
|
-
defaultStates as defaultStates10
|
|
1149
|
-
} from "@webstudio-is/react-sdk";
|
|
1150
|
-
import { sup } from "@webstudio-is/sdk/normalize.css";
|
|
1151
|
-
var presetStyle11 = {
|
|
1152
|
-
sup
|
|
1153
|
-
};
|
|
1154
|
-
var meta16 = {
|
|
1155
|
-
type: "rich-text-child",
|
|
1156
|
-
label: "Superscript Text",
|
|
1157
|
-
icon: SuperscriptIcon,
|
|
1158
|
-
states: defaultStates10,
|
|
1159
|
-
presetStyle: presetStyle11
|
|
1160
|
-
};
|
|
1161
|
-
|
|
1162
|
-
// src/subscript.ws.ts
|
|
1163
|
-
import { SubscriptIcon } from "@webstudio-is/icons/svg";
|
|
1164
|
-
import {
|
|
1165
|
-
defaultStates as defaultStates11
|
|
1166
|
-
} from "@webstudio-is/react-sdk";
|
|
1167
|
-
import { sub } from "@webstudio-is/sdk/normalize.css";
|
|
1168
|
-
var presetStyle12 = {
|
|
1169
|
-
sub
|
|
1170
|
-
};
|
|
1171
|
-
var meta17 = {
|
|
1172
|
-
type: "rich-text-child",
|
|
1173
|
-
label: "Subscript Text",
|
|
1174
|
-
icon: SubscriptIcon,
|
|
1175
|
-
states: defaultStates11,
|
|
1176
|
-
presetStyle: presetStyle12
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
// src/button.ws.ts
|
|
1180
|
-
import { ButtonElementIcon } from "@webstudio-is/icons/svg";
|
|
1181
|
-
import {
|
|
1182
|
-
defaultStates as defaultStates12
|
|
1183
|
-
} from "@webstudio-is/react-sdk";
|
|
1184
|
-
import { button } from "@webstudio-is/sdk/normalize.css";
|
|
1185
|
-
var presetStyle13 = {
|
|
1186
|
-
button
|
|
1187
|
-
};
|
|
1188
|
-
var meta18 = {
|
|
1189
|
-
category: "forms",
|
|
1190
|
-
type: "container",
|
|
1191
|
-
invalidAncestors: ["Button", "Link"],
|
|
1192
|
-
description: "Use a button to submit forms or trigger actions within a page. Do not use a button to navigate users to another resource or another page - that\u2019s what a link is used for.",
|
|
1193
|
-
icon: ButtonElementIcon,
|
|
1194
|
-
presetStyle: presetStyle13,
|
|
1195
|
-
states: [
|
|
1196
|
-
...defaultStates12,
|
|
1197
|
-
{ selector: ":disabled", label: "Disabled" },
|
|
1198
|
-
{ selector: ":enabled", label: "Enabled" }
|
|
1199
|
-
],
|
|
1200
|
-
order: 2,
|
|
1201
|
-
template: [
|
|
1202
|
-
{
|
|
1203
|
-
type: "instance",
|
|
1204
|
-
component: "Button",
|
|
1205
|
-
children: [
|
|
1206
|
-
{
|
|
1207
|
-
type: "text",
|
|
1208
|
-
value: "Button text you can edit",
|
|
1209
|
-
placeholder: true
|
|
1210
|
-
}
|
|
1211
|
-
]
|
|
1212
|
-
}
|
|
1213
|
-
]
|
|
1214
|
-
};
|
|
1215
|
-
|
|
1216
|
-
// src/input.ws.ts
|
|
1217
|
-
import { FormTextFieldIcon } from "@webstudio-is/icons/svg";
|
|
1218
|
-
import {
|
|
1219
|
-
defaultStates as defaultStates13
|
|
1220
|
-
} from "@webstudio-is/react-sdk";
|
|
1221
|
-
import { input } from "@webstudio-is/sdk/normalize.css";
|
|
1222
|
-
var presetStyle14 = {
|
|
1223
|
-
input: [
|
|
1224
|
-
...input,
|
|
1225
|
-
{
|
|
1226
|
-
property: "display",
|
|
1227
|
-
value: { type: "keyword", value: "block" }
|
|
1228
|
-
}
|
|
1229
|
-
]
|
|
1230
|
-
};
|
|
1231
|
-
var meta19 = {
|
|
1232
|
-
category: "forms",
|
|
1233
|
-
invalidAncestors: ["Button", "Link"],
|
|
1234
|
-
type: "control",
|
|
1235
|
-
label: "Text Input",
|
|
1236
|
-
description: "A single-line text input for collecting string data from your users.",
|
|
1237
|
-
icon: FormTextFieldIcon,
|
|
1238
|
-
presetStyle: presetStyle14,
|
|
1239
|
-
order: 3,
|
|
1240
|
-
states: [
|
|
1241
|
-
...defaultStates13,
|
|
1242
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
1243
|
-
{ selector: ":valid", label: "Valid" },
|
|
1244
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
1245
|
-
{ selector: ":required", label: "Required" },
|
|
1246
|
-
{ selector: ":optional", label: "Optional" }
|
|
1247
|
-
// Additional states will go into submenu
|
|
1248
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
1249
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
1250
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
1251
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
1252
|
-
]
|
|
1253
|
-
};
|
|
1254
|
-
|
|
1255
|
-
// src/form.ws.ts
|
|
1256
|
-
import { FormIcon } from "@webstudio-is/icons/svg";
|
|
1257
|
-
import {
|
|
1258
|
-
defaultStates as defaultStates14
|
|
1259
|
-
} from "@webstudio-is/react-sdk";
|
|
1260
|
-
import { form } from "@webstudio-is/sdk/normalize.css";
|
|
1261
|
-
var presetStyle15 = {
|
|
1262
|
-
form: [
|
|
1263
|
-
...form,
|
|
1264
|
-
{ property: "minHeight", value: { type: "unit", unit: "px", value: 20 } }
|
|
1265
|
-
]
|
|
1266
|
-
};
|
|
1267
|
-
var meta20 = {
|
|
1268
|
-
category: "forms",
|
|
1269
|
-
type: "container",
|
|
1270
|
-
label: "Form",
|
|
1271
|
-
invalidAncestors: ["Form", "Button", "Link"],
|
|
1272
|
-
description: "Create filters, surveys, searches and more.",
|
|
1273
|
-
icon: FormIcon,
|
|
1274
|
-
states: defaultStates14,
|
|
1275
|
-
presetStyle: presetStyle15,
|
|
1276
|
-
order: 0
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
// src/image.ws.ts
|
|
1280
|
-
import { ImageIcon } from "@webstudio-is/icons/svg";
|
|
1281
|
-
import {
|
|
1282
|
-
defaultStates as defaultStates15
|
|
1283
|
-
} from "@webstudio-is/react-sdk";
|
|
1284
|
-
import { img } from "@webstudio-is/sdk/normalize.css";
|
|
1285
|
-
|
|
1286
|
-
// src/__generated__/image.props.ts
|
|
1287
|
-
var props4 = {
|
|
1288
|
-
about: { required: false, control: "text", type: "string" },
|
|
1289
|
-
accessKey: {
|
|
1290
|
-
required: false,
|
|
1291
|
-
control: "text",
|
|
1292
|
-
type: "string",
|
|
1293
|
-
description: "Keyboard shortcut to activate or add focus to the element."
|
|
1294
|
-
},
|
|
1295
|
-
alt: {
|
|
1296
|
-
required: false,
|
|
1297
|
-
control: "text",
|
|
1298
|
-
type: "string",
|
|
1299
|
-
description: "Text description of the image, which is very important for accessibility and search engine optimization. Screen readers read this description to users so they know what the image means. Alt text is also displayed on the page if the image can't be loaded for some reason."
|
|
1300
|
-
},
|
|
1301
|
-
"aria-activedescendant": {
|
|
1302
|
-
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
1303
|
-
required: false,
|
|
1304
|
-
control: "text",
|
|
1305
|
-
type: "string"
|
|
1306
|
-
},
|
|
1307
|
-
"aria-atomic": {
|
|
1308
|
-
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
1309
|
-
required: false,
|
|
1310
|
-
control: "boolean",
|
|
1311
|
-
type: "boolean"
|
|
1312
|
-
},
|
|
1313
|
-
"aria-autocomplete": {
|
|
1314
|
-
description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
|
|
1315
|
-
required: false,
|
|
1316
|
-
control: "select",
|
|
1317
|
-
type: "string",
|
|
1318
|
-
options: ["list", "none", "inline", "both"]
|
|
1319
|
-
},
|
|
1320
|
-
"aria-braillelabel": {
|
|
1321
|
-
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
1322
|
-
required: false,
|
|
1323
|
-
control: "text",
|
|
1324
|
-
type: "string"
|
|
1325
|
-
},
|
|
1326
|
-
"aria-brailleroledescription": {
|
|
1327
|
-
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
1328
|
-
required: false,
|
|
1329
|
-
control: "text",
|
|
1330
|
-
type: "string"
|
|
1331
|
-
},
|
|
1332
|
-
"aria-busy": { required: false, control: "boolean", type: "boolean" },
|
|
1333
|
-
"aria-checked": {
|
|
1334
|
-
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
1335
|
-
required: false,
|
|
1336
|
-
control: "text",
|
|
1337
|
-
type: "string"
|
|
1338
|
-
},
|
|
1339
|
-
"aria-colcount": {
|
|
1340
|
-
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
1341
|
-
required: false,
|
|
1342
|
-
control: "number",
|
|
1343
|
-
type: "number"
|
|
1344
|
-
},
|
|
1345
|
-
"aria-colindex": {
|
|
1346
|
-
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
1347
|
-
required: false,
|
|
1348
|
-
control: "number",
|
|
1349
|
-
type: "number"
|
|
1350
|
-
},
|
|
1351
|
-
"aria-colindextext": {
|
|
1352
|
-
description: "Defines a human readable text alternative of aria-colindex.",
|
|
1353
|
-
required: false,
|
|
1354
|
-
control: "text",
|
|
1355
|
-
type: "string"
|
|
1356
|
-
},
|
|
1357
|
-
"aria-colspan": {
|
|
1358
|
-
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
1359
|
-
required: false,
|
|
1360
|
-
control: "number",
|
|
1361
|
-
type: "number"
|
|
1362
|
-
},
|
|
1363
|
-
"aria-controls": {
|
|
1364
|
-
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
1365
|
-
required: false,
|
|
1366
|
-
control: "text",
|
|
1367
|
-
type: "string"
|
|
1368
|
-
},
|
|
1369
|
-
"aria-current": {
|
|
1370
|
-
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
1371
|
-
required: false,
|
|
1372
|
-
control: "text",
|
|
1373
|
-
type: "string"
|
|
1374
|
-
},
|
|
1375
|
-
"aria-describedby": {
|
|
1376
|
-
description: "Identifies the element (or elements) that describes the object.",
|
|
1377
|
-
required: false,
|
|
1378
|
-
control: "text",
|
|
1379
|
-
type: "string"
|
|
1380
|
-
},
|
|
1381
|
-
"aria-description": {
|
|
1382
|
-
description: "Defines a string value that describes or annotates the current element.",
|
|
1383
|
-
required: false,
|
|
1384
|
-
control: "text",
|
|
1385
|
-
type: "string"
|
|
1386
|
-
},
|
|
1387
|
-
"aria-details": {
|
|
1388
|
-
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
1389
|
-
required: false,
|
|
1390
|
-
control: "text",
|
|
1391
|
-
type: "string"
|
|
1392
|
-
},
|
|
1393
|
-
"aria-disabled": {
|
|
1394
|
-
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
1395
|
-
required: false,
|
|
1396
|
-
control: "boolean",
|
|
1397
|
-
type: "boolean"
|
|
1398
|
-
},
|
|
1399
|
-
"aria-dropeffect": {
|
|
1400
|
-
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
1401
|
-
required: false,
|
|
1402
|
-
control: "select",
|
|
1403
|
-
type: "string",
|
|
1404
|
-
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
1405
|
-
},
|
|
1406
|
-
"aria-errormessage": {
|
|
1407
|
-
description: "Identifies the element that provides an error message for the object.",
|
|
1408
|
-
required: false,
|
|
1409
|
-
control: "text",
|
|
1410
|
-
type: "string"
|
|
1411
|
-
},
|
|
1412
|
-
"aria-expanded": {
|
|
1413
|
-
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
1414
|
-
required: false,
|
|
1415
|
-
control: "boolean",
|
|
1416
|
-
type: "boolean"
|
|
1417
|
-
},
|
|
1418
|
-
"aria-flowto": {
|
|
1419
|
-
description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
|
|
1420
|
-
required: false,
|
|
1421
|
-
control: "text",
|
|
1422
|
-
type: "string"
|
|
1423
|
-
},
|
|
1424
|
-
"aria-grabbed": {
|
|
1425
|
-
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
1426
|
-
required: false,
|
|
1427
|
-
control: "boolean",
|
|
1428
|
-
type: "boolean"
|
|
1429
|
-
},
|
|
1430
|
-
"aria-haspopup": {
|
|
1431
|
-
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
1432
|
-
required: false,
|
|
1433
|
-
control: "text",
|
|
1434
|
-
type: "string"
|
|
1435
|
-
},
|
|
1436
|
-
"aria-hidden": {
|
|
1437
|
-
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
1438
|
-
required: false,
|
|
1439
|
-
control: "boolean",
|
|
1440
|
-
type: "boolean"
|
|
1441
|
-
},
|
|
1442
|
-
"aria-invalid": {
|
|
1443
|
-
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
1444
|
-
required: false,
|
|
1445
|
-
control: "text",
|
|
1446
|
-
type: "string"
|
|
1447
|
-
},
|
|
1448
|
-
"aria-keyshortcuts": {
|
|
1449
|
-
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
1450
|
-
required: false,
|
|
1451
|
-
control: "text",
|
|
1452
|
-
type: "string"
|
|
1453
|
-
},
|
|
1454
|
-
"aria-label": {
|
|
1455
|
-
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
1456
|
-
required: false,
|
|
1457
|
-
control: "text",
|
|
1458
|
-
type: "string"
|
|
1459
|
-
},
|
|
1460
|
-
"aria-labelledby": {
|
|
1461
|
-
description: "Identifies the element (or elements) that labels the current element.",
|
|
1462
|
-
required: false,
|
|
1463
|
-
control: "text",
|
|
1464
|
-
type: "string"
|
|
1465
|
-
},
|
|
1466
|
-
"aria-level": {
|
|
1467
|
-
description: "Defines the hierarchical level of an element within a structure.",
|
|
1468
|
-
required: false,
|
|
1469
|
-
control: "number",
|
|
1470
|
-
type: "number"
|
|
1471
|
-
},
|
|
1472
|
-
"aria-live": {
|
|
1473
|
-
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
1474
|
-
required: false,
|
|
1475
|
-
control: "radio",
|
|
1476
|
-
type: "string",
|
|
1477
|
-
options: ["off", "assertive", "polite"]
|
|
1478
|
-
},
|
|
1479
|
-
"aria-modal": {
|
|
1480
|
-
description: "Indicates whether an element is modal when displayed.",
|
|
1481
|
-
required: false,
|
|
1482
|
-
control: "boolean",
|
|
1483
|
-
type: "boolean"
|
|
1484
|
-
},
|
|
1485
|
-
"aria-multiline": {
|
|
1486
|
-
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
1487
|
-
required: false,
|
|
1488
|
-
control: "boolean",
|
|
1489
|
-
type: "boolean"
|
|
1490
|
-
},
|
|
1491
|
-
"aria-multiselectable": {
|
|
1492
|
-
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
1493
|
-
required: false,
|
|
1494
|
-
control: "boolean",
|
|
1495
|
-
type: "boolean"
|
|
1496
|
-
},
|
|
1497
|
-
"aria-orientation": {
|
|
1498
|
-
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
1499
|
-
required: false,
|
|
1500
|
-
control: "radio",
|
|
1501
|
-
type: "string",
|
|
1502
|
-
options: ["horizontal", "vertical"]
|
|
1503
|
-
},
|
|
1504
|
-
"aria-owns": {
|
|
1505
|
-
description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
|
|
1506
|
-
required: false,
|
|
1507
|
-
control: "text",
|
|
1508
|
-
type: "string"
|
|
1509
|
-
},
|
|
1510
|
-
"aria-placeholder": {
|
|
1511
|
-
description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
|
|
1512
|
-
required: false,
|
|
1513
|
-
control: "text",
|
|
1514
|
-
type: "string"
|
|
1515
|
-
},
|
|
1516
|
-
"aria-posinset": {
|
|
1517
|
-
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
1518
|
-
required: false,
|
|
1519
|
-
control: "number",
|
|
1520
|
-
type: "number"
|
|
1521
|
-
},
|
|
1522
|
-
"aria-pressed": {
|
|
1523
|
-
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
1524
|
-
required: false,
|
|
1525
|
-
control: "text",
|
|
1526
|
-
type: "string"
|
|
1527
|
-
},
|
|
1528
|
-
"aria-readonly": {
|
|
1529
|
-
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
1530
|
-
required: false,
|
|
1531
|
-
control: "boolean",
|
|
1532
|
-
type: "boolean"
|
|
1533
|
-
},
|
|
1534
|
-
"aria-relevant": {
|
|
1535
|
-
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
1536
|
-
required: false,
|
|
1537
|
-
control: "select",
|
|
1538
|
-
type: "string",
|
|
1539
|
-
options: [
|
|
1540
|
-
"text",
|
|
1541
|
-
"additions",
|
|
1542
|
-
"additions removals",
|
|
1543
|
-
"additions text",
|
|
1544
|
-
"all",
|
|
1545
|
-
"removals",
|
|
1546
|
-
"removals additions",
|
|
1547
|
-
"removals text",
|
|
1548
|
-
"text additions",
|
|
1549
|
-
"text removals"
|
|
1550
|
-
]
|
|
1551
|
-
},
|
|
1552
|
-
"aria-required": {
|
|
1553
|
-
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
1554
|
-
required: false,
|
|
1555
|
-
control: "boolean",
|
|
1556
|
-
type: "boolean"
|
|
1557
|
-
},
|
|
1558
|
-
"aria-roledescription": {
|
|
1559
|
-
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
1560
|
-
required: false,
|
|
1561
|
-
control: "text",
|
|
1562
|
-
type: "string"
|
|
1563
|
-
},
|
|
1564
|
-
"aria-rowcount": {
|
|
1565
|
-
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
1566
|
-
required: false,
|
|
1567
|
-
control: "number",
|
|
1568
|
-
type: "number"
|
|
1569
|
-
},
|
|
1570
|
-
"aria-rowindex": {
|
|
1571
|
-
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
1572
|
-
required: false,
|
|
1573
|
-
control: "number",
|
|
1574
|
-
type: "number"
|
|
1575
|
-
},
|
|
1576
|
-
"aria-rowindextext": {
|
|
1577
|
-
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
1578
|
-
required: false,
|
|
1579
|
-
control: "text",
|
|
1580
|
-
type: "string"
|
|
1581
|
-
},
|
|
1582
|
-
"aria-rowspan": {
|
|
1583
|
-
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
1584
|
-
required: false,
|
|
1585
|
-
control: "number",
|
|
1586
|
-
type: "number"
|
|
1587
|
-
},
|
|
1588
|
-
"aria-selected": {
|
|
1589
|
-
description: 'Indicates the current "selected" state of various widgets.',
|
|
1590
|
-
required: false,
|
|
1591
|
-
control: "boolean",
|
|
1592
|
-
type: "boolean"
|
|
1593
|
-
},
|
|
1594
|
-
"aria-setsize": {
|
|
1595
|
-
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
1596
|
-
required: false,
|
|
1597
|
-
control: "number",
|
|
1598
|
-
type: "number"
|
|
1599
|
-
},
|
|
1600
|
-
"aria-sort": {
|
|
1601
|
-
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
1602
|
-
required: false,
|
|
1603
|
-
control: "select",
|
|
1604
|
-
type: "string",
|
|
1605
|
-
options: ["none", "ascending", "descending", "other"]
|
|
1606
|
-
},
|
|
1607
|
-
"aria-valuemax": {
|
|
1608
|
-
description: "Defines the maximum allowed value for a range widget.",
|
|
1609
|
-
required: false,
|
|
1610
|
-
control: "number",
|
|
1611
|
-
type: "number"
|
|
1612
|
-
},
|
|
1613
|
-
"aria-valuemin": {
|
|
1614
|
-
description: "Defines the minimum allowed value for a range widget.",
|
|
1615
|
-
required: false,
|
|
1616
|
-
control: "number",
|
|
1617
|
-
type: "number"
|
|
1618
|
-
},
|
|
1619
|
-
"aria-valuenow": {
|
|
1620
|
-
description: "Defines the current value for a range widget.",
|
|
1621
|
-
required: false,
|
|
1622
|
-
control: "number",
|
|
1623
|
-
type: "number"
|
|
1624
|
-
},
|
|
1625
|
-
"aria-valuetext": {
|
|
1626
|
-
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
1627
|
-
required: false,
|
|
1628
|
-
control: "text",
|
|
1629
|
-
type: "string"
|
|
1630
|
-
},
|
|
1631
|
-
autoCapitalize: {
|
|
1632
|
-
required: false,
|
|
1633
|
-
control: "text",
|
|
1634
|
-
type: "string",
|
|
1635
|
-
description: "Sets whether input is automatically capitalized when entered by user."
|
|
1636
|
-
},
|
|
1637
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
1638
|
-
autoFocus: {
|
|
1639
|
-
required: false,
|
|
1640
|
-
control: "boolean",
|
|
1641
|
-
type: "boolean",
|
|
1642
|
-
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
1643
|
-
},
|
|
1644
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
1645
|
-
className: { required: false, control: "text", type: "string" },
|
|
1646
|
-
color: {
|
|
1647
|
-
required: false,
|
|
1648
|
-
control: "color",
|
|
1649
|
-
type: "string",
|
|
1650
|
-
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
1651
|
-
},
|
|
1652
|
-
content: {
|
|
1653
|
-
required: false,
|
|
1654
|
-
control: "text",
|
|
1655
|
-
type: "string",
|
|
1656
|
-
description: "A value associated with http-equiv orname depending on the context."
|
|
1657
|
-
},
|
|
1658
|
-
contextMenu: {
|
|
1659
|
-
required: false,
|
|
1660
|
-
control: "text",
|
|
1661
|
-
type: "string",
|
|
1662
|
-
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
1663
|
-
},
|
|
1664
|
-
crossOrigin: {
|
|
1665
|
-
required: false,
|
|
1666
|
-
control: "radio",
|
|
1667
|
-
type: "string",
|
|
1668
|
-
options: ["", "anonymous", "use-credentials"],
|
|
1669
|
-
description: "How the element handles cross-origin requests"
|
|
1670
|
-
},
|
|
1671
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
1672
|
-
decoding: {
|
|
1673
|
-
required: false,
|
|
1674
|
-
control: "radio",
|
|
1675
|
-
type: "string",
|
|
1676
|
-
options: ["async", "auto", "sync"],
|
|
1677
|
-
description: "Indicates the preferred method to decode the image."
|
|
1678
|
-
},
|
|
1679
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
1680
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
1681
|
-
dir: {
|
|
1682
|
-
required: false,
|
|
1683
|
-
control: "text",
|
|
1684
|
-
type: "string",
|
|
1685
|
-
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
1686
|
-
},
|
|
1687
|
-
draggable: {
|
|
1688
|
-
required: false,
|
|
1689
|
-
control: "boolean",
|
|
1690
|
-
type: "boolean",
|
|
1691
|
-
description: "Defines whether the element can be dragged."
|
|
1692
|
-
},
|
|
1693
|
-
fetchPriority: {
|
|
1694
|
-
required: false,
|
|
1695
|
-
control: "radio",
|
|
1696
|
-
type: "string",
|
|
1697
|
-
options: ["high", "low", "auto"]
|
|
1698
|
-
},
|
|
1699
|
-
height: {
|
|
1700
|
-
required: false,
|
|
1701
|
-
control: "number",
|
|
1702
|
-
type: "number",
|
|
1703
|
-
description: "Defines the image\u2019s height in pixels."
|
|
1704
|
-
},
|
|
1705
|
-
hidden: {
|
|
1706
|
-
required: false,
|
|
1707
|
-
control: "boolean",
|
|
1708
|
-
type: "boolean",
|
|
1709
|
-
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
1710
|
-
},
|
|
1711
|
-
id: {
|
|
1712
|
-
required: false,
|
|
1713
|
-
control: "text",
|
|
1714
|
-
type: "string",
|
|
1715
|
-
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
1716
|
-
},
|
|
1717
|
-
inputMode: {
|
|
1718
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
1719
|
-
required: false,
|
|
1720
|
-
control: "select",
|
|
1721
|
-
type: "string",
|
|
1722
|
-
options: [
|
|
1723
|
-
"search",
|
|
1724
|
-
"text",
|
|
1725
|
-
"none",
|
|
1726
|
-
"tel",
|
|
1727
|
-
"url",
|
|
1728
|
-
"email",
|
|
1729
|
-
"numeric",
|
|
1730
|
-
"decimal"
|
|
1731
|
-
]
|
|
1732
|
-
},
|
|
1733
|
-
is: {
|
|
1734
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
1735
|
-
required: false,
|
|
1736
|
-
control: "text",
|
|
1737
|
-
type: "string"
|
|
1738
|
-
},
|
|
1739
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
1740
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
1741
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
1742
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
1743
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
1744
|
-
lang: {
|
|
1745
|
-
required: false,
|
|
1746
|
-
control: "text",
|
|
1747
|
-
type: "string",
|
|
1748
|
-
description: "Defines the language used in the element."
|
|
1749
|
-
},
|
|
1750
|
-
loading: {
|
|
1751
|
-
required: false,
|
|
1752
|
-
control: "radio",
|
|
1753
|
-
type: "string",
|
|
1754
|
-
defaultValue: "lazy",
|
|
1755
|
-
options: ["eager", "lazy"],
|
|
1756
|
-
description: "Determines whether the image will load as soon as possible (Eager), or when it scrolls into view (Lazy). Lazy loading is a great option for pages with many images because it can significantly reduce the time it takes for the page to load initially."
|
|
1757
|
-
},
|
|
1758
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
1759
|
-
optimize: {
|
|
1760
|
-
required: false,
|
|
1761
|
-
control: "boolean",
|
|
1762
|
-
type: "boolean",
|
|
1763
|
-
defaultValue: true
|
|
1764
|
-
},
|
|
1765
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
1766
|
-
property: { required: false, control: "text", type: "string" },
|
|
1767
|
-
quality: { required: false, control: "number", type: "number" },
|
|
1768
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
1769
|
-
referrerPolicy: {
|
|
1770
|
-
required: false,
|
|
1771
|
-
control: "select",
|
|
1772
|
-
type: "string",
|
|
1773
|
-
options: [
|
|
1774
|
-
"",
|
|
1775
|
-
"origin",
|
|
1776
|
-
"no-referrer",
|
|
1777
|
-
"no-referrer-when-downgrade",
|
|
1778
|
-
"origin-when-cross-origin",
|
|
1779
|
-
"same-origin",
|
|
1780
|
-
"strict-origin",
|
|
1781
|
-
"strict-origin-when-cross-origin",
|
|
1782
|
-
"unsafe-url"
|
|
1783
|
-
],
|
|
1784
|
-
description: "Specifies which referrer is sent when fetching the resource."
|
|
1785
|
-
},
|
|
1786
|
-
rel: {
|
|
1787
|
-
required: false,
|
|
1788
|
-
control: "text",
|
|
1789
|
-
type: "string",
|
|
1790
|
-
description: "Specifies the relationship of the target object to the link object."
|
|
1791
|
-
},
|
|
1792
|
-
resource: { required: false, control: "text", type: "string" },
|
|
1793
|
-
results: { required: false, control: "number", type: "number" },
|
|
1794
|
-
rev: { required: false, control: "text", type: "string" },
|
|
1795
|
-
role: {
|
|
1796
|
-
required: false,
|
|
1797
|
-
control: "text",
|
|
1798
|
-
type: "string",
|
|
1799
|
-
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
1800
|
-
},
|
|
1801
|
-
security: { required: false, control: "text", type: "string" },
|
|
1802
|
-
sizes: { required: false, control: "text", type: "string" },
|
|
1803
|
-
slot: {
|
|
1804
|
-
required: false,
|
|
1805
|
-
control: "text",
|
|
1806
|
-
type: "string",
|
|
1807
|
-
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
1808
|
-
},
|
|
1809
|
-
spellCheck: {
|
|
1810
|
-
required: false,
|
|
1811
|
-
control: "boolean",
|
|
1812
|
-
type: "boolean",
|
|
1813
|
-
description: "Indicates whether spell checking is allowed for the element."
|
|
1814
|
-
},
|
|
1815
|
-
src: {
|
|
1816
|
-
required: false,
|
|
1817
|
-
control: "text",
|
|
1818
|
-
type: "string",
|
|
1819
|
-
description: "The URL of the embeddable content."
|
|
1820
|
-
},
|
|
1821
|
-
srcSet: {
|
|
1822
|
-
required: false,
|
|
1823
|
-
control: "text",
|
|
1824
|
-
type: "string",
|
|
1825
|
-
description: "One or more responsive image candidates."
|
|
1826
|
-
},
|
|
1827
|
-
suppressContentEditableWarning: {
|
|
1828
|
-
required: false,
|
|
1829
|
-
control: "boolean",
|
|
1830
|
-
type: "boolean"
|
|
1831
|
-
},
|
|
1832
|
-
suppressHydrationWarning: {
|
|
1833
|
-
required: false,
|
|
1834
|
-
control: "boolean",
|
|
1835
|
-
type: "boolean"
|
|
1836
|
-
},
|
|
1837
|
-
tabIndex: {
|
|
1838
|
-
required: false,
|
|
1839
|
-
control: "number",
|
|
1840
|
-
type: "number",
|
|
1841
|
-
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
1842
|
-
},
|
|
1843
|
-
title: {
|
|
1844
|
-
required: false,
|
|
1845
|
-
control: "text",
|
|
1846
|
-
type: "string",
|
|
1847
|
-
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
1848
|
-
},
|
|
1849
|
-
translate: {
|
|
1850
|
-
required: false,
|
|
1851
|
-
control: "radio",
|
|
1852
|
-
type: "string",
|
|
1853
|
-
options: ["yes", "no"],
|
|
1854
|
-
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
1855
|
-
},
|
|
1856
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
1857
|
-
unselectable: {
|
|
1858
|
-
required: false,
|
|
1859
|
-
control: "radio",
|
|
1860
|
-
type: "string",
|
|
1861
|
-
options: ["on", "off"]
|
|
1862
|
-
},
|
|
1863
|
-
useMap: { required: false, control: "text", type: "string" },
|
|
1864
|
-
vocab: { required: false, control: "text", type: "string" },
|
|
1865
|
-
width: {
|
|
1866
|
-
required: false,
|
|
1867
|
-
control: "number",
|
|
1868
|
-
type: "number",
|
|
1869
|
-
description: "Defines the image\u2019s width in pixels."
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
// src/image.ws.ts
|
|
1874
|
-
var presetStyle16 = {
|
|
1875
|
-
img: [
|
|
1876
|
-
...img,
|
|
1877
|
-
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
|
|
1878
|
-
{
|
|
1879
|
-
property: "maxWidth",
|
|
1880
|
-
value: { type: "unit", unit: "%", value: 100 }
|
|
1881
|
-
},
|
|
1882
|
-
// inline | inline-block is not suitable because without line-height: 0 on the parent you get unsuitable spaces/margins
|
|
1883
|
-
// see https://stackoverflow.com/questions/24771194/is-the-margin-of-inline-block-4px-is-static-for-all-browsers
|
|
1884
|
-
{
|
|
1885
|
-
property: "display",
|
|
1886
|
-
value: { type: "keyword", value: "block" }
|
|
1887
|
-
},
|
|
1888
|
-
// Set image height to "auto" to reduce layout shift, improving compatibility across browsers like Safari.
|
|
1889
|
-
// Unlike "fit-content," "auto" preserves the aspect ratio when the width exceeds max-width. (in Safari)
|
|
1890
|
-
// See https://web.dev/articles/optimize-cls#best_practice_for_setting_image_dimensions
|
|
1891
|
-
{
|
|
1892
|
-
property: "height",
|
|
1893
|
-
value: { type: "keyword", value: "auto" }
|
|
1894
|
-
}
|
|
1895
|
-
]
|
|
1896
|
-
};
|
|
1897
|
-
var meta21 = {
|
|
1898
|
-
category: "media",
|
|
1899
|
-
type: "embed",
|
|
1900
|
-
description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
|
|
1901
|
-
icon: ImageIcon,
|
|
1902
|
-
states: defaultStates15,
|
|
1903
|
-
presetStyle: presetStyle16,
|
|
1904
|
-
order: 0
|
|
1905
|
-
};
|
|
1906
|
-
var propsOverrides = {
|
|
1907
|
-
src: {
|
|
1908
|
-
type: "string",
|
|
1909
|
-
control: "file",
|
|
1910
|
-
label: "Source",
|
|
1911
|
-
required: false
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
var optimize = props4.optimize;
|
|
1915
|
-
optimize.description = "Optimize the image for enhanced performance.";
|
|
1916
|
-
var propsMeta4 = {
|
|
1917
|
-
props: {
|
|
1918
|
-
...props4,
|
|
1919
|
-
...propsOverrides,
|
|
1920
|
-
optimize
|
|
1921
|
-
},
|
|
1922
|
-
initialProps: [
|
|
1923
|
-
"id",
|
|
1924
|
-
"className",
|
|
1925
|
-
"src",
|
|
1926
|
-
"width",
|
|
1927
|
-
"height",
|
|
1928
|
-
"alt",
|
|
1929
|
-
"loading",
|
|
1930
|
-
"optimize"
|
|
1931
|
-
]
|
|
1932
|
-
};
|
|
1933
|
-
|
|
1934
|
-
// src/blockquote.ws.ts
|
|
1935
|
-
import { BlockquoteIcon } from "@webstudio-is/icons/svg";
|
|
1936
|
-
import {
|
|
1937
|
-
defaultStates as defaultStates16
|
|
1938
|
-
} from "@webstudio-is/react-sdk";
|
|
1939
|
-
var presetStyle17 = {
|
|
1940
|
-
blockquote: [
|
|
1941
|
-
{
|
|
1942
|
-
property: "marginTop",
|
|
1943
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
1944
|
-
},
|
|
1945
|
-
{
|
|
1946
|
-
property: "marginRight",
|
|
1947
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
property: "marginBottom",
|
|
1951
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
1952
|
-
},
|
|
1953
|
-
{
|
|
1954
|
-
property: "marginLeft",
|
|
1955
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
property: "paddingTop",
|
|
1959
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
property: "paddingBottom",
|
|
1963
|
-
value: { type: "unit", value: 10, unit: "px" }
|
|
1964
|
-
},
|
|
1965
|
-
{
|
|
1966
|
-
property: "paddingLeft",
|
|
1967
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
1968
|
-
},
|
|
1969
|
-
{
|
|
1970
|
-
property: "paddingRight",
|
|
1971
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
1972
|
-
},
|
|
1973
|
-
{
|
|
1974
|
-
property: "borderLeftWidth",
|
|
1975
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
property: "borderLeftStyle",
|
|
1979
|
-
value: { type: "keyword", value: "solid" }
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
property: "borderLeftColor",
|
|
1983
|
-
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
1984
|
-
}
|
|
1985
|
-
]
|
|
1986
|
-
};
|
|
1987
|
-
var meta22 = {
|
|
1988
|
-
category: "text",
|
|
1989
|
-
type: "container",
|
|
1990
|
-
description: "Use to style a quote from an external source like an article or book.",
|
|
1991
|
-
icon: BlockquoteIcon,
|
|
1992
|
-
states: defaultStates16,
|
|
1993
|
-
presetStyle: presetStyle17,
|
|
1994
|
-
order: 3,
|
|
1995
|
-
template: [
|
|
1996
|
-
{
|
|
1997
|
-
type: "instance",
|
|
1998
|
-
component: "Blockquote",
|
|
1999
|
-
children: [
|
|
2000
|
-
{
|
|
2001
|
-
type: "text",
|
|
2002
|
-
value: "Blockquote text you can edit",
|
|
2003
|
-
placeholder: true
|
|
2004
|
-
}
|
|
2005
|
-
]
|
|
2006
|
-
}
|
|
2007
|
-
]
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
// src/list.ws.ts
|
|
2011
|
-
import { ListIcon } from "@webstudio-is/icons/svg";
|
|
2012
|
-
import {
|
|
2013
|
-
defaultStates as defaultStates17
|
|
2014
|
-
} from "@webstudio-is/react-sdk";
|
|
2015
|
-
import { ol, ul } from "@webstudio-is/sdk/normalize.css";
|
|
2016
|
-
var presetStyle18 = {
|
|
2017
|
-
ol: [
|
|
2018
|
-
...ol,
|
|
2019
|
-
{
|
|
2020
|
-
property: "marginTop",
|
|
2021
|
-
value: { type: "keyword", value: "0" }
|
|
2022
|
-
},
|
|
2023
|
-
{
|
|
2024
|
-
property: "marginBottom",
|
|
2025
|
-
value: { type: "keyword", value: "10px" }
|
|
2026
|
-
},
|
|
2027
|
-
{
|
|
2028
|
-
property: "paddingLeft",
|
|
2029
|
-
value: { type: "keyword", value: "40px" }
|
|
2030
|
-
}
|
|
2031
|
-
],
|
|
2032
|
-
ul: [
|
|
2033
|
-
...ul,
|
|
2034
|
-
{
|
|
2035
|
-
property: "marginTop",
|
|
2036
|
-
value: { type: "keyword", value: "0" }
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
property: "marginBottom",
|
|
2040
|
-
value: { type: "keyword", value: "10px" }
|
|
2041
|
-
},
|
|
2042
|
-
{
|
|
2043
|
-
property: "paddingLeft",
|
|
2044
|
-
value: { type: "keyword", value: "40px" }
|
|
2045
|
-
}
|
|
2046
|
-
]
|
|
2047
|
-
};
|
|
2048
|
-
var meta23 = {
|
|
2049
|
-
category: "general",
|
|
2050
|
-
type: "container",
|
|
2051
|
-
description: "Groups content, like links in a menu or steps in a recipe.",
|
|
2052
|
-
icon: ListIcon,
|
|
2053
|
-
states: defaultStates17,
|
|
2054
|
-
presetStyle: presetStyle18,
|
|
2055
|
-
order: 3,
|
|
2056
|
-
template: [
|
|
2057
|
-
{
|
|
2058
|
-
type: "instance",
|
|
2059
|
-
component: "List",
|
|
2060
|
-
children: [
|
|
2061
|
-
{
|
|
2062
|
-
type: "instance",
|
|
2063
|
-
component: "ListItem",
|
|
2064
|
-
children: [
|
|
2065
|
-
{
|
|
2066
|
-
type: "text",
|
|
2067
|
-
value: "List Item text you can edit",
|
|
2068
|
-
placeholder: true
|
|
2069
|
-
}
|
|
2070
|
-
]
|
|
2071
|
-
},
|
|
2072
|
-
{
|
|
2073
|
-
type: "instance",
|
|
2074
|
-
component: "ListItem",
|
|
2075
|
-
children: [
|
|
2076
|
-
{
|
|
2077
|
-
type: "text",
|
|
2078
|
-
value: "List Item text you can edit",
|
|
2079
|
-
placeholder: true
|
|
2080
|
-
}
|
|
2081
|
-
]
|
|
2082
|
-
},
|
|
2083
|
-
{
|
|
2084
|
-
type: "instance",
|
|
2085
|
-
component: "ListItem",
|
|
2086
|
-
children: [
|
|
2087
|
-
{
|
|
2088
|
-
type: "text",
|
|
2089
|
-
value: "List Item text you can edit",
|
|
2090
|
-
placeholder: true
|
|
2091
|
-
}
|
|
2092
|
-
]
|
|
2093
|
-
}
|
|
2094
|
-
]
|
|
2095
|
-
}
|
|
2096
|
-
]
|
|
2097
|
-
};
|
|
2098
|
-
|
|
2099
|
-
// src/list-item.ws.ts
|
|
2100
|
-
import { ListItemIcon } from "@webstudio-is/icons/svg";
|
|
2101
|
-
import {
|
|
2102
|
-
defaultStates as defaultStates18
|
|
2103
|
-
} from "@webstudio-is/react-sdk";
|
|
2104
|
-
import { li } from "@webstudio-is/sdk/normalize.css";
|
|
2105
|
-
var presetStyle19 = {
|
|
2106
|
-
li
|
|
2107
|
-
};
|
|
2108
|
-
var meta24 = {
|
|
2109
|
-
category: "general",
|
|
2110
|
-
type: "container",
|
|
2111
|
-
requiredAncestors: ["List"],
|
|
2112
|
-
description: "Adds a new item to an existing list.",
|
|
2113
|
-
icon: ListItemIcon,
|
|
2114
|
-
states: defaultStates18,
|
|
2115
|
-
presetStyle: presetStyle19,
|
|
2116
|
-
order: 4,
|
|
2117
|
-
template: [
|
|
2118
|
-
{
|
|
2119
|
-
type: "instance",
|
|
2120
|
-
component: "ListItem",
|
|
2121
|
-
children: [
|
|
2122
|
-
{
|
|
2123
|
-
type: "text",
|
|
2124
|
-
value: "List Item text you can edit",
|
|
2125
|
-
placeholder: true
|
|
2126
|
-
}
|
|
2127
|
-
]
|
|
2128
|
-
}
|
|
2129
|
-
]
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
// src/separator.ws.ts
|
|
2133
|
-
import { DashIcon } from "@webstudio-is/icons/svg";
|
|
2134
|
-
import {
|
|
2135
|
-
defaultStates as defaultStates19
|
|
2136
|
-
} from "@webstudio-is/react-sdk";
|
|
2137
|
-
import { hr } from "@webstudio-is/sdk/normalize.css";
|
|
2138
|
-
var presetStyle20 = {
|
|
2139
|
-
hr: [
|
|
2140
|
-
...hr,
|
|
2141
|
-
{
|
|
2142
|
-
property: "height",
|
|
2143
|
-
value: { type: "keyword", value: "1px" }
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
property: "backgroundColor",
|
|
2147
|
-
value: { type: "keyword", value: "gray" }
|
|
2148
|
-
},
|
|
2149
|
-
{
|
|
2150
|
-
property: "borderTopStyle",
|
|
2151
|
-
value: { type: "keyword", value: "none" }
|
|
2152
|
-
},
|
|
2153
|
-
{
|
|
2154
|
-
property: "borderRightStyle",
|
|
2155
|
-
value: { type: "keyword", value: "none" }
|
|
2156
|
-
},
|
|
2157
|
-
{
|
|
2158
|
-
property: "borderLeftStyle",
|
|
2159
|
-
value: { type: "keyword", value: "none" }
|
|
2160
|
-
},
|
|
2161
|
-
{
|
|
2162
|
-
property: "borderBottomStyle",
|
|
2163
|
-
value: { type: "keyword", value: "none" }
|
|
2164
|
-
}
|
|
2165
|
-
]
|
|
2166
|
-
};
|
|
2167
|
-
var meta25 = {
|
|
2168
|
-
category: "general",
|
|
2169
|
-
type: "embed",
|
|
2170
|
-
description: "Used to visually divide sections of content, helping to improve readability and organization within a webpage.",
|
|
2171
|
-
icon: DashIcon,
|
|
2172
|
-
states: defaultStates19,
|
|
2173
|
-
presetStyle: presetStyle20,
|
|
2174
|
-
order: 5
|
|
2175
|
-
};
|
|
2176
|
-
|
|
2177
|
-
// src/code-text.ws.ts
|
|
2178
|
-
import { CodeTextIcon } from "@webstudio-is/icons/svg";
|
|
2179
|
-
import {
|
|
2180
|
-
defaultStates as defaultStates20
|
|
2181
|
-
} from "@webstudio-is/react-sdk";
|
|
2182
|
-
import { code } from "@webstudio-is/sdk/normalize.css";
|
|
2183
|
-
|
|
2184
|
-
// src/__generated__/code-text.props.ts
|
|
2185
|
-
var props5 = {
|
|
2186
|
-
about: { required: false, control: "text", type: "string" },
|
|
2187
|
-
accessKey: {
|
|
2188
|
-
required: false,
|
|
2189
|
-
control: "text",
|
|
2190
|
-
type: "string",
|
|
2191
|
-
description: "Keyboard shortcut to activate or add focus to the element."
|
|
2192
|
-
},
|
|
2193
|
-
"aria-activedescendant": {
|
|
2194
|
-
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
2195
|
-
required: false,
|
|
2196
|
-
control: "text",
|
|
2197
|
-
type: "string"
|
|
2198
|
-
},
|
|
2199
|
-
"aria-atomic": {
|
|
2200
|
-
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
2201
|
-
required: false,
|
|
2202
|
-
control: "boolean",
|
|
2203
|
-
type: "boolean"
|
|
2204
|
-
},
|
|
2205
|
-
"aria-autocomplete": {
|
|
2206
|
-
description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
|
|
2207
|
-
required: false,
|
|
2208
|
-
control: "select",
|
|
2209
|
-
type: "string",
|
|
2210
|
-
options: ["list", "none", "inline", "both"]
|
|
2211
|
-
},
|
|
2212
|
-
"aria-braillelabel": {
|
|
2213
|
-
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
2214
|
-
required: false,
|
|
2215
|
-
control: "text",
|
|
2216
|
-
type: "string"
|
|
2217
|
-
},
|
|
2218
|
-
"aria-brailleroledescription": {
|
|
2219
|
-
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
2220
|
-
required: false,
|
|
2221
|
-
control: "text",
|
|
2222
|
-
type: "string"
|
|
2223
|
-
},
|
|
2224
|
-
"aria-busy": { required: false, control: "boolean", type: "boolean" },
|
|
2225
|
-
"aria-checked": {
|
|
2226
|
-
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
2227
|
-
required: false,
|
|
2228
|
-
control: "text",
|
|
2229
|
-
type: "string"
|
|
2230
|
-
},
|
|
2231
|
-
"aria-colcount": {
|
|
2232
|
-
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
2233
|
-
required: false,
|
|
2234
|
-
control: "number",
|
|
2235
|
-
type: "number"
|
|
2236
|
-
},
|
|
2237
|
-
"aria-colindex": {
|
|
2238
|
-
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
2239
|
-
required: false,
|
|
2240
|
-
control: "number",
|
|
2241
|
-
type: "number"
|
|
2242
|
-
},
|
|
2243
|
-
"aria-colindextext": {
|
|
2244
|
-
description: "Defines a human readable text alternative of aria-colindex.",
|
|
2245
|
-
required: false,
|
|
2246
|
-
control: "text",
|
|
2247
|
-
type: "string"
|
|
2248
|
-
},
|
|
2249
|
-
"aria-colspan": {
|
|
2250
|
-
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
2251
|
-
required: false,
|
|
2252
|
-
control: "number",
|
|
2253
|
-
type: "number"
|
|
2254
|
-
},
|
|
2255
|
-
"aria-controls": {
|
|
2256
|
-
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
2257
|
-
required: false,
|
|
2258
|
-
control: "text",
|
|
2259
|
-
type: "string"
|
|
2260
|
-
},
|
|
2261
|
-
"aria-current": {
|
|
2262
|
-
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
2263
|
-
required: false,
|
|
2264
|
-
control: "text",
|
|
2265
|
-
type: "string"
|
|
2266
|
-
},
|
|
2267
|
-
"aria-describedby": {
|
|
2268
|
-
description: "Identifies the element (or elements) that describes the object.",
|
|
2269
|
-
required: false,
|
|
2270
|
-
control: "text",
|
|
2271
|
-
type: "string"
|
|
2272
|
-
},
|
|
2273
|
-
"aria-description": {
|
|
2274
|
-
description: "Defines a string value that describes or annotates the current element.",
|
|
2275
|
-
required: false,
|
|
2276
|
-
control: "text",
|
|
2277
|
-
type: "string"
|
|
2278
|
-
},
|
|
2279
|
-
"aria-details": {
|
|
2280
|
-
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
2281
|
-
required: false,
|
|
2282
|
-
control: "text",
|
|
2283
|
-
type: "string"
|
|
2284
|
-
},
|
|
2285
|
-
"aria-disabled": {
|
|
2286
|
-
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
2287
|
-
required: false,
|
|
2288
|
-
control: "boolean",
|
|
2289
|
-
type: "boolean"
|
|
2290
|
-
},
|
|
2291
|
-
"aria-dropeffect": {
|
|
2292
|
-
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
2293
|
-
required: false,
|
|
2294
|
-
control: "select",
|
|
2295
|
-
type: "string",
|
|
2296
|
-
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
2297
|
-
},
|
|
2298
|
-
"aria-errormessage": {
|
|
2299
|
-
description: "Identifies the element that provides an error message for the object.",
|
|
2300
|
-
required: false,
|
|
2301
|
-
control: "text",
|
|
2302
|
-
type: "string"
|
|
2303
|
-
},
|
|
2304
|
-
"aria-expanded": {
|
|
2305
|
-
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
2306
|
-
required: false,
|
|
2307
|
-
control: "boolean",
|
|
2308
|
-
type: "boolean"
|
|
2309
|
-
},
|
|
2310
|
-
"aria-flowto": {
|
|
2311
|
-
description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
|
|
2312
|
-
required: false,
|
|
2313
|
-
control: "text",
|
|
2314
|
-
type: "string"
|
|
2315
|
-
},
|
|
2316
|
-
"aria-grabbed": {
|
|
2317
|
-
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
2318
|
-
required: false,
|
|
2319
|
-
control: "boolean",
|
|
2320
|
-
type: "boolean"
|
|
2321
|
-
},
|
|
2322
|
-
"aria-haspopup": {
|
|
2323
|
-
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
2324
|
-
required: false,
|
|
2325
|
-
control: "text",
|
|
2326
|
-
type: "string"
|
|
2327
|
-
},
|
|
2328
|
-
"aria-hidden": {
|
|
2329
|
-
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
2330
|
-
required: false,
|
|
2331
|
-
control: "boolean",
|
|
2332
|
-
type: "boolean"
|
|
2333
|
-
},
|
|
2334
|
-
"aria-invalid": {
|
|
2335
|
-
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
2336
|
-
required: false,
|
|
2337
|
-
control: "text",
|
|
2338
|
-
type: "string"
|
|
2339
|
-
},
|
|
2340
|
-
"aria-keyshortcuts": {
|
|
2341
|
-
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
2342
|
-
required: false,
|
|
2343
|
-
control: "text",
|
|
2344
|
-
type: "string"
|
|
2345
|
-
},
|
|
2346
|
-
"aria-label": {
|
|
2347
|
-
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
2348
|
-
required: false,
|
|
2349
|
-
control: "text",
|
|
2350
|
-
type: "string"
|
|
2351
|
-
},
|
|
2352
|
-
"aria-labelledby": {
|
|
2353
|
-
description: "Identifies the element (or elements) that labels the current element.",
|
|
2354
|
-
required: false,
|
|
2355
|
-
control: "text",
|
|
2356
|
-
type: "string"
|
|
2357
|
-
},
|
|
2358
|
-
"aria-level": {
|
|
2359
|
-
description: "Defines the hierarchical level of an element within a structure.",
|
|
2360
|
-
required: false,
|
|
2361
|
-
control: "number",
|
|
2362
|
-
type: "number"
|
|
2363
|
-
},
|
|
2364
|
-
"aria-live": {
|
|
2365
|
-
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
2366
|
-
required: false,
|
|
2367
|
-
control: "radio",
|
|
2368
|
-
type: "string",
|
|
2369
|
-
options: ["off", "assertive", "polite"]
|
|
2370
|
-
},
|
|
2371
|
-
"aria-modal": {
|
|
2372
|
-
description: "Indicates whether an element is modal when displayed.",
|
|
2373
|
-
required: false,
|
|
2374
|
-
control: "boolean",
|
|
2375
|
-
type: "boolean"
|
|
2376
|
-
},
|
|
2377
|
-
"aria-multiline": {
|
|
2378
|
-
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
2379
|
-
required: false,
|
|
2380
|
-
control: "boolean",
|
|
2381
|
-
type: "boolean"
|
|
2382
|
-
},
|
|
2383
|
-
"aria-multiselectable": {
|
|
2384
|
-
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
2385
|
-
required: false,
|
|
2386
|
-
control: "boolean",
|
|
2387
|
-
type: "boolean"
|
|
2388
|
-
},
|
|
2389
|
-
"aria-orientation": {
|
|
2390
|
-
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
2391
|
-
required: false,
|
|
2392
|
-
control: "radio",
|
|
2393
|
-
type: "string",
|
|
2394
|
-
options: ["horizontal", "vertical"]
|
|
2395
|
-
},
|
|
2396
|
-
"aria-owns": {
|
|
2397
|
-
description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
|
|
2398
|
-
required: false,
|
|
2399
|
-
control: "text",
|
|
2400
|
-
type: "string"
|
|
2401
|
-
},
|
|
2402
|
-
"aria-placeholder": {
|
|
2403
|
-
description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
|
|
2404
|
-
required: false,
|
|
2405
|
-
control: "text",
|
|
2406
|
-
type: "string"
|
|
2407
|
-
},
|
|
2408
|
-
"aria-posinset": {
|
|
2409
|
-
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
2410
|
-
required: false,
|
|
2411
|
-
control: "number",
|
|
2412
|
-
type: "number"
|
|
2413
|
-
},
|
|
2414
|
-
"aria-pressed": {
|
|
2415
|
-
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
2416
|
-
required: false,
|
|
2417
|
-
control: "text",
|
|
2418
|
-
type: "string"
|
|
2419
|
-
},
|
|
2420
|
-
"aria-readonly": {
|
|
2421
|
-
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
2422
|
-
required: false,
|
|
2423
|
-
control: "boolean",
|
|
2424
|
-
type: "boolean"
|
|
2425
|
-
},
|
|
2426
|
-
"aria-relevant": {
|
|
2427
|
-
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
2428
|
-
required: false,
|
|
2429
|
-
control: "select",
|
|
2430
|
-
type: "string",
|
|
2431
|
-
options: [
|
|
2432
|
-
"text",
|
|
2433
|
-
"additions",
|
|
2434
|
-
"additions removals",
|
|
2435
|
-
"additions text",
|
|
2436
|
-
"all",
|
|
2437
|
-
"removals",
|
|
2438
|
-
"removals additions",
|
|
2439
|
-
"removals text",
|
|
2440
|
-
"text additions",
|
|
2441
|
-
"text removals"
|
|
2442
|
-
]
|
|
2443
|
-
},
|
|
2444
|
-
"aria-required": {
|
|
2445
|
-
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
2446
|
-
required: false,
|
|
2447
|
-
control: "boolean",
|
|
2448
|
-
type: "boolean"
|
|
2449
|
-
},
|
|
2450
|
-
"aria-roledescription": {
|
|
2451
|
-
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
2452
|
-
required: false,
|
|
2453
|
-
control: "text",
|
|
2454
|
-
type: "string"
|
|
2455
|
-
},
|
|
2456
|
-
"aria-rowcount": {
|
|
2457
|
-
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
2458
|
-
required: false,
|
|
2459
|
-
control: "number",
|
|
2460
|
-
type: "number"
|
|
2461
|
-
},
|
|
2462
|
-
"aria-rowindex": {
|
|
2463
|
-
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
2464
|
-
required: false,
|
|
2465
|
-
control: "number",
|
|
2466
|
-
type: "number"
|
|
2467
|
-
},
|
|
2468
|
-
"aria-rowindextext": {
|
|
2469
|
-
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
2470
|
-
required: false,
|
|
2471
|
-
control: "text",
|
|
2472
|
-
type: "string"
|
|
2473
|
-
},
|
|
2474
|
-
"aria-rowspan": {
|
|
2475
|
-
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
2476
|
-
required: false,
|
|
2477
|
-
control: "number",
|
|
2478
|
-
type: "number"
|
|
2479
|
-
},
|
|
2480
|
-
"aria-selected": {
|
|
2481
|
-
description: 'Indicates the current "selected" state of various widgets.',
|
|
2482
|
-
required: false,
|
|
2483
|
-
control: "boolean",
|
|
2484
|
-
type: "boolean"
|
|
2485
|
-
},
|
|
2486
|
-
"aria-setsize": {
|
|
2487
|
-
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
2488
|
-
required: false,
|
|
2489
|
-
control: "number",
|
|
2490
|
-
type: "number"
|
|
2491
|
-
},
|
|
2492
|
-
"aria-sort": {
|
|
2493
|
-
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
2494
|
-
required: false,
|
|
2495
|
-
control: "select",
|
|
2496
|
-
type: "string",
|
|
2497
|
-
options: ["none", "ascending", "descending", "other"]
|
|
2498
|
-
},
|
|
2499
|
-
"aria-valuemax": {
|
|
2500
|
-
description: "Defines the maximum allowed value for a range widget.",
|
|
2501
|
-
required: false,
|
|
2502
|
-
control: "number",
|
|
2503
|
-
type: "number"
|
|
2504
|
-
},
|
|
2505
|
-
"aria-valuemin": {
|
|
2506
|
-
description: "Defines the minimum allowed value for a range widget.",
|
|
2507
|
-
required: false,
|
|
2508
|
-
control: "number",
|
|
2509
|
-
type: "number"
|
|
2510
|
-
},
|
|
2511
|
-
"aria-valuenow": {
|
|
2512
|
-
description: "Defines the current value for a range widget.",
|
|
2513
|
-
required: false,
|
|
2514
|
-
control: "number",
|
|
2515
|
-
type: "number"
|
|
2516
|
-
},
|
|
2517
|
-
"aria-valuetext": {
|
|
2518
|
-
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
2519
|
-
required: false,
|
|
2520
|
-
control: "text",
|
|
2521
|
-
type: "string"
|
|
2522
|
-
},
|
|
2523
|
-
autoCapitalize: {
|
|
2524
|
-
required: false,
|
|
2525
|
-
control: "text",
|
|
2526
|
-
type: "string",
|
|
2527
|
-
description: "Sets whether input is automatically capitalized when entered by user."
|
|
2528
|
-
},
|
|
2529
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
2530
|
-
autoFocus: {
|
|
2531
|
-
required: false,
|
|
2532
|
-
control: "boolean",
|
|
2533
|
-
type: "boolean",
|
|
2534
|
-
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
2535
|
-
},
|
|
2536
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
2537
|
-
className: { required: false, control: "text", type: "string" },
|
|
2538
|
-
code: { required: false, control: "text", type: "string" },
|
|
2539
|
-
color: {
|
|
2540
|
-
required: false,
|
|
2541
|
-
control: "color",
|
|
2542
|
-
type: "string",
|
|
2543
|
-
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
2544
|
-
},
|
|
2545
|
-
content: {
|
|
2546
|
-
required: false,
|
|
2547
|
-
control: "text",
|
|
2548
|
-
type: "string",
|
|
2549
|
-
description: "A value associated with http-equiv orname depending on the context."
|
|
2550
|
-
},
|
|
2551
|
-
contextMenu: {
|
|
2552
|
-
required: false,
|
|
2553
|
-
control: "text",
|
|
2554
|
-
type: "string",
|
|
2555
|
-
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
2556
|
-
},
|
|
2557
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
2558
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
2559
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
2560
|
-
dir: {
|
|
2561
|
-
required: false,
|
|
2562
|
-
control: "text",
|
|
2563
|
-
type: "string",
|
|
2564
|
-
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
2565
|
-
},
|
|
2566
|
-
draggable: {
|
|
2567
|
-
required: false,
|
|
2568
|
-
control: "boolean",
|
|
2569
|
-
type: "boolean",
|
|
2570
|
-
description: "Defines whether the element can be dragged."
|
|
2571
|
-
},
|
|
2572
|
-
hidden: {
|
|
2573
|
-
required: false,
|
|
2574
|
-
control: "boolean",
|
|
2575
|
-
type: "boolean",
|
|
2576
|
-
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
2577
|
-
},
|
|
2578
|
-
id: {
|
|
2579
|
-
required: false,
|
|
2580
|
-
control: "text",
|
|
2581
|
-
type: "string",
|
|
2582
|
-
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
2583
|
-
},
|
|
2584
|
-
inputMode: {
|
|
2585
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
2586
|
-
required: false,
|
|
2587
|
-
control: "select",
|
|
2588
|
-
type: "string",
|
|
2589
|
-
options: [
|
|
2590
|
-
"search",
|
|
2591
|
-
"text",
|
|
2592
|
-
"none",
|
|
2593
|
-
"tel",
|
|
2594
|
-
"url",
|
|
2595
|
-
"email",
|
|
2596
|
-
"numeric",
|
|
2597
|
-
"decimal"
|
|
2598
|
-
]
|
|
2599
|
-
},
|
|
2600
|
-
is: {
|
|
2601
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
2602
|
-
required: false,
|
|
2603
|
-
control: "text",
|
|
2604
|
-
type: "string"
|
|
2605
|
-
},
|
|
2606
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
2607
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
2608
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
2609
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
2610
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
2611
|
-
lang: {
|
|
2612
|
-
required: false,
|
|
2613
|
-
control: "text",
|
|
2614
|
-
type: "string",
|
|
2615
|
-
description: "Defines the language used in the element."
|
|
2616
|
-
},
|
|
2617
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
2618
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
2619
|
-
property: { required: false, control: "text", type: "string" },
|
|
2620
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
2621
|
-
rel: {
|
|
2622
|
-
required: false,
|
|
2623
|
-
control: "text",
|
|
2624
|
-
type: "string",
|
|
2625
|
-
description: "Specifies the relationship of the target object to the link object."
|
|
2626
|
-
},
|
|
2627
|
-
resource: { required: false, control: "text", type: "string" },
|
|
2628
|
-
results: { required: false, control: "number", type: "number" },
|
|
2629
|
-
rev: { required: false, control: "text", type: "string" },
|
|
2630
|
-
role: {
|
|
2631
|
-
required: false,
|
|
2632
|
-
control: "text",
|
|
2633
|
-
type: "string",
|
|
2634
|
-
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
2635
|
-
},
|
|
2636
|
-
security: { required: false, control: "text", type: "string" },
|
|
2637
|
-
slot: {
|
|
2638
|
-
required: false,
|
|
2639
|
-
control: "text",
|
|
2640
|
-
type: "string",
|
|
2641
|
-
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
2642
|
-
},
|
|
2643
|
-
spellCheck: {
|
|
2644
|
-
required: false,
|
|
2645
|
-
control: "boolean",
|
|
2646
|
-
type: "boolean",
|
|
2647
|
-
description: "Indicates whether spell checking is allowed for the element."
|
|
2648
|
-
},
|
|
2649
|
-
suppressContentEditableWarning: {
|
|
2650
|
-
required: false,
|
|
2651
|
-
control: "boolean",
|
|
2652
|
-
type: "boolean"
|
|
2653
|
-
},
|
|
2654
|
-
suppressHydrationWarning: {
|
|
2655
|
-
required: false,
|
|
2656
|
-
control: "boolean",
|
|
2657
|
-
type: "boolean"
|
|
2658
|
-
},
|
|
2659
|
-
tabIndex: {
|
|
2660
|
-
required: false,
|
|
2661
|
-
control: "number",
|
|
2662
|
-
type: "number",
|
|
2663
|
-
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
2664
|
-
},
|
|
2665
|
-
title: {
|
|
2666
|
-
required: false,
|
|
2667
|
-
control: "text",
|
|
2668
|
-
type: "string",
|
|
2669
|
-
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
2670
|
-
},
|
|
2671
|
-
translate: {
|
|
2672
|
-
required: false,
|
|
2673
|
-
control: "radio",
|
|
2674
|
-
type: "string",
|
|
2675
|
-
options: ["yes", "no"],
|
|
2676
|
-
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
2677
|
-
},
|
|
2678
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
2679
|
-
unselectable: {
|
|
2680
|
-
required: false,
|
|
2681
|
-
control: "radio",
|
|
2682
|
-
type: "string",
|
|
2683
|
-
options: ["on", "off"]
|
|
2684
|
-
},
|
|
2685
|
-
vocab: { required: false, control: "text", type: "string" }
|
|
2686
|
-
};
|
|
2687
|
-
|
|
2688
|
-
// src/code-text.ws.ts
|
|
2689
|
-
var presetStyle21 = {
|
|
2690
|
-
code: [
|
|
2691
|
-
...code,
|
|
2692
|
-
{
|
|
2693
|
-
property: "display",
|
|
2694
|
-
value: { type: "keyword", value: "block" }
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
property: "whiteSpaceCollapse",
|
|
2698
|
-
value: { type: "keyword", value: "preserve" }
|
|
2699
|
-
},
|
|
2700
|
-
{
|
|
2701
|
-
property: "textWrapMode",
|
|
2702
|
-
value: { type: "keyword", value: "wrap" }
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
property: "paddingLeft",
|
|
2706
|
-
value: { type: "unit", value: 0.2, unit: "em" }
|
|
2707
|
-
},
|
|
2708
|
-
{
|
|
2709
|
-
property: "paddingRight",
|
|
2710
|
-
value: { type: "unit", value: 0.2, unit: "em" }
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
property: "backgroundColor",
|
|
2714
|
-
value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
|
|
2715
|
-
}
|
|
2716
|
-
]
|
|
2717
|
-
};
|
|
2718
|
-
var meta26 = {
|
|
2719
|
-
category: "general",
|
|
2720
|
-
type: "embed",
|
|
2721
|
-
description: "Use this component when you want to display code as text on the page.",
|
|
2722
|
-
icon: CodeTextIcon,
|
|
2723
|
-
invalidAncestors: ["CodeText"],
|
|
2724
|
-
states: defaultStates20,
|
|
2725
|
-
presetStyle: presetStyle21,
|
|
2726
|
-
order: 9
|
|
2727
|
-
};
|
|
2728
|
-
var propsMeta5 = {
|
|
2729
|
-
props: {
|
|
2730
|
-
...props5,
|
|
2731
|
-
code: {
|
|
2732
|
-
required: true,
|
|
2733
|
-
control: "codetext",
|
|
2734
|
-
type: "string"
|
|
2735
|
-
}
|
|
2736
|
-
},
|
|
2737
|
-
initialProps: ["id", "className", "lang", "code"]
|
|
2738
|
-
};
|
|
2739
|
-
|
|
2740
|
-
// src/label.ws.ts
|
|
2741
|
-
import { LabelIcon } from "@webstudio-is/icons/svg";
|
|
2742
|
-
import {
|
|
2743
|
-
defaultStates as defaultStates21
|
|
2744
|
-
} from "@webstudio-is/react-sdk";
|
|
2745
|
-
import { label } from "@webstudio-is/sdk/normalize.css";
|
|
2746
|
-
|
|
2747
|
-
// src/__generated__/label.props.ts
|
|
2748
|
-
var props6 = {
|
|
2749
|
-
about: { required: false, control: "text", type: "string" },
|
|
2750
|
-
accessKey: {
|
|
2751
|
-
required: false,
|
|
2752
|
-
control: "text",
|
|
2753
|
-
type: "string",
|
|
2754
|
-
description: "Keyboard shortcut to activate or add focus to the element."
|
|
2755
|
-
},
|
|
2756
|
-
"aria-activedescendant": {
|
|
2757
|
-
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
2758
|
-
required: false,
|
|
2759
|
-
control: "text",
|
|
2760
|
-
type: "string"
|
|
2761
|
-
},
|
|
2762
|
-
"aria-atomic": {
|
|
2763
|
-
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
2764
|
-
required: false,
|
|
2765
|
-
control: "boolean",
|
|
2766
|
-
type: "boolean"
|
|
2767
|
-
},
|
|
2768
|
-
"aria-autocomplete": {
|
|
2769
|
-
description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
|
|
2770
|
-
required: false,
|
|
2771
|
-
control: "select",
|
|
2772
|
-
type: "string",
|
|
2773
|
-
options: ["list", "none", "inline", "both"]
|
|
2774
|
-
},
|
|
2775
|
-
"aria-braillelabel": {
|
|
2776
|
-
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
2777
|
-
required: false,
|
|
2778
|
-
control: "text",
|
|
2779
|
-
type: "string"
|
|
2780
|
-
},
|
|
2781
|
-
"aria-brailleroledescription": {
|
|
2782
|
-
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
2783
|
-
required: false,
|
|
2784
|
-
control: "text",
|
|
2785
|
-
type: "string"
|
|
2786
|
-
},
|
|
2787
|
-
"aria-busy": { required: false, control: "boolean", type: "boolean" },
|
|
2788
|
-
"aria-checked": {
|
|
2789
|
-
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
2790
|
-
required: false,
|
|
2791
|
-
control: "text",
|
|
2792
|
-
type: "string"
|
|
2793
|
-
},
|
|
2794
|
-
"aria-colcount": {
|
|
2795
|
-
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
2796
|
-
required: false,
|
|
2797
|
-
control: "number",
|
|
2798
|
-
type: "number"
|
|
2799
|
-
},
|
|
2800
|
-
"aria-colindex": {
|
|
2801
|
-
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
2802
|
-
required: false,
|
|
2803
|
-
control: "number",
|
|
2804
|
-
type: "number"
|
|
2805
|
-
},
|
|
2806
|
-
"aria-colindextext": {
|
|
2807
|
-
description: "Defines a human readable text alternative of aria-colindex.",
|
|
2808
|
-
required: false,
|
|
2809
|
-
control: "text",
|
|
2810
|
-
type: "string"
|
|
2811
|
-
},
|
|
2812
|
-
"aria-colspan": {
|
|
2813
|
-
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
2814
|
-
required: false,
|
|
2815
|
-
control: "number",
|
|
2816
|
-
type: "number"
|
|
2817
|
-
},
|
|
2818
|
-
"aria-controls": {
|
|
2819
|
-
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
2820
|
-
required: false,
|
|
2821
|
-
control: "text",
|
|
2822
|
-
type: "string"
|
|
2823
|
-
},
|
|
2824
|
-
"aria-current": {
|
|
2825
|
-
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
2826
|
-
required: false,
|
|
2827
|
-
control: "text",
|
|
2828
|
-
type: "string"
|
|
2829
|
-
},
|
|
2830
|
-
"aria-describedby": {
|
|
2831
|
-
description: "Identifies the element (or elements) that describes the object.",
|
|
2832
|
-
required: false,
|
|
2833
|
-
control: "text",
|
|
2834
|
-
type: "string"
|
|
2835
|
-
},
|
|
2836
|
-
"aria-description": {
|
|
2837
|
-
description: "Defines a string value that describes or annotates the current element.",
|
|
2838
|
-
required: false,
|
|
2839
|
-
control: "text",
|
|
2840
|
-
type: "string"
|
|
2841
|
-
},
|
|
2842
|
-
"aria-details": {
|
|
2843
|
-
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
2844
|
-
required: false,
|
|
2845
|
-
control: "text",
|
|
2846
|
-
type: "string"
|
|
2847
|
-
},
|
|
2848
|
-
"aria-disabled": {
|
|
2849
|
-
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
2850
|
-
required: false,
|
|
2851
|
-
control: "boolean",
|
|
2852
|
-
type: "boolean"
|
|
2853
|
-
},
|
|
2854
|
-
"aria-dropeffect": {
|
|
2855
|
-
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
2856
|
-
required: false,
|
|
2857
|
-
control: "select",
|
|
2858
|
-
type: "string",
|
|
2859
|
-
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
2860
|
-
},
|
|
2861
|
-
"aria-errormessage": {
|
|
2862
|
-
description: "Identifies the element that provides an error message for the object.",
|
|
2863
|
-
required: false,
|
|
2864
|
-
control: "text",
|
|
2865
|
-
type: "string"
|
|
2866
|
-
},
|
|
2867
|
-
"aria-expanded": {
|
|
2868
|
-
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
2869
|
-
required: false,
|
|
2870
|
-
control: "boolean",
|
|
2871
|
-
type: "boolean"
|
|
2872
|
-
},
|
|
2873
|
-
"aria-flowto": {
|
|
2874
|
-
description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
|
|
2875
|
-
required: false,
|
|
2876
|
-
control: "text",
|
|
2877
|
-
type: "string"
|
|
2878
|
-
},
|
|
2879
|
-
"aria-grabbed": {
|
|
2880
|
-
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
2881
|
-
required: false,
|
|
2882
|
-
control: "boolean",
|
|
2883
|
-
type: "boolean"
|
|
2884
|
-
},
|
|
2885
|
-
"aria-haspopup": {
|
|
2886
|
-
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
2887
|
-
required: false,
|
|
2888
|
-
control: "text",
|
|
2889
|
-
type: "string"
|
|
2890
|
-
},
|
|
2891
|
-
"aria-hidden": {
|
|
2892
|
-
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
2893
|
-
required: false,
|
|
2894
|
-
control: "boolean",
|
|
2895
|
-
type: "boolean"
|
|
2896
|
-
},
|
|
2897
|
-
"aria-invalid": {
|
|
2898
|
-
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
2899
|
-
required: false,
|
|
2900
|
-
control: "text",
|
|
2901
|
-
type: "string"
|
|
2902
|
-
},
|
|
2903
|
-
"aria-keyshortcuts": {
|
|
2904
|
-
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
2905
|
-
required: false,
|
|
2906
|
-
control: "text",
|
|
2907
|
-
type: "string"
|
|
2908
|
-
},
|
|
2909
|
-
"aria-label": {
|
|
2910
|
-
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
2911
|
-
required: false,
|
|
2912
|
-
control: "text",
|
|
2913
|
-
type: "string"
|
|
2914
|
-
},
|
|
2915
|
-
"aria-labelledby": {
|
|
2916
|
-
description: "Identifies the element (or elements) that labels the current element.",
|
|
2917
|
-
required: false,
|
|
2918
|
-
control: "text",
|
|
2919
|
-
type: "string"
|
|
2920
|
-
},
|
|
2921
|
-
"aria-level": {
|
|
2922
|
-
description: "Defines the hierarchical level of an element within a structure.",
|
|
2923
|
-
required: false,
|
|
2924
|
-
control: "number",
|
|
2925
|
-
type: "number"
|
|
2926
|
-
},
|
|
2927
|
-
"aria-live": {
|
|
2928
|
-
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
2929
|
-
required: false,
|
|
2930
|
-
control: "radio",
|
|
2931
|
-
type: "string",
|
|
2932
|
-
options: ["off", "assertive", "polite"]
|
|
2933
|
-
},
|
|
2934
|
-
"aria-modal": {
|
|
2935
|
-
description: "Indicates whether an element is modal when displayed.",
|
|
2936
|
-
required: false,
|
|
2937
|
-
control: "boolean",
|
|
2938
|
-
type: "boolean"
|
|
2939
|
-
},
|
|
2940
|
-
"aria-multiline": {
|
|
2941
|
-
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
2942
|
-
required: false,
|
|
2943
|
-
control: "boolean",
|
|
2944
|
-
type: "boolean"
|
|
2945
|
-
},
|
|
2946
|
-
"aria-multiselectable": {
|
|
2947
|
-
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
2948
|
-
required: false,
|
|
2949
|
-
control: "boolean",
|
|
2950
|
-
type: "boolean"
|
|
2951
|
-
},
|
|
2952
|
-
"aria-orientation": {
|
|
2953
|
-
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
2954
|
-
required: false,
|
|
2955
|
-
control: "radio",
|
|
2956
|
-
type: "string",
|
|
2957
|
-
options: ["horizontal", "vertical"]
|
|
2958
|
-
},
|
|
2959
|
-
"aria-owns": {
|
|
2960
|
-
description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
|
|
2961
|
-
required: false,
|
|
2962
|
-
control: "text",
|
|
2963
|
-
type: "string"
|
|
2964
|
-
},
|
|
2965
|
-
"aria-placeholder": {
|
|
2966
|
-
description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
|
|
2967
|
-
required: false,
|
|
2968
|
-
control: "text",
|
|
2969
|
-
type: "string"
|
|
2970
|
-
},
|
|
2971
|
-
"aria-posinset": {
|
|
2972
|
-
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
2973
|
-
required: false,
|
|
2974
|
-
control: "number",
|
|
2975
|
-
type: "number"
|
|
2976
|
-
},
|
|
2977
|
-
"aria-pressed": {
|
|
2978
|
-
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
2979
|
-
required: false,
|
|
2980
|
-
control: "text",
|
|
2981
|
-
type: "string"
|
|
2982
|
-
},
|
|
2983
|
-
"aria-readonly": {
|
|
2984
|
-
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
2985
|
-
required: false,
|
|
2986
|
-
control: "boolean",
|
|
2987
|
-
type: "boolean"
|
|
2988
|
-
},
|
|
2989
|
-
"aria-relevant": {
|
|
2990
|
-
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
2991
|
-
required: false,
|
|
2992
|
-
control: "select",
|
|
2993
|
-
type: "string",
|
|
2994
|
-
options: [
|
|
2995
|
-
"text",
|
|
2996
|
-
"additions",
|
|
2997
|
-
"additions removals",
|
|
2998
|
-
"additions text",
|
|
2999
|
-
"all",
|
|
3000
|
-
"removals",
|
|
3001
|
-
"removals additions",
|
|
3002
|
-
"removals text",
|
|
3003
|
-
"text additions",
|
|
3004
|
-
"text removals"
|
|
3005
|
-
]
|
|
3006
|
-
},
|
|
3007
|
-
"aria-required": {
|
|
3008
|
-
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
3009
|
-
required: false,
|
|
3010
|
-
control: "boolean",
|
|
3011
|
-
type: "boolean"
|
|
3012
|
-
},
|
|
3013
|
-
"aria-roledescription": {
|
|
3014
|
-
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
3015
|
-
required: false,
|
|
3016
|
-
control: "text",
|
|
3017
|
-
type: "string"
|
|
3018
|
-
},
|
|
3019
|
-
"aria-rowcount": {
|
|
3020
|
-
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
3021
|
-
required: false,
|
|
3022
|
-
control: "number",
|
|
3023
|
-
type: "number"
|
|
3024
|
-
},
|
|
3025
|
-
"aria-rowindex": {
|
|
3026
|
-
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
3027
|
-
required: false,
|
|
3028
|
-
control: "number",
|
|
3029
|
-
type: "number"
|
|
3030
|
-
},
|
|
3031
|
-
"aria-rowindextext": {
|
|
3032
|
-
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
3033
|
-
required: false,
|
|
3034
|
-
control: "text",
|
|
3035
|
-
type: "string"
|
|
3036
|
-
},
|
|
3037
|
-
"aria-rowspan": {
|
|
3038
|
-
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
3039
|
-
required: false,
|
|
3040
|
-
control: "number",
|
|
3041
|
-
type: "number"
|
|
3042
|
-
},
|
|
3043
|
-
"aria-selected": {
|
|
3044
|
-
description: 'Indicates the current "selected" state of various widgets.',
|
|
3045
|
-
required: false,
|
|
3046
|
-
control: "boolean",
|
|
3047
|
-
type: "boolean"
|
|
3048
|
-
},
|
|
3049
|
-
"aria-setsize": {
|
|
3050
|
-
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
3051
|
-
required: false,
|
|
3052
|
-
control: "number",
|
|
3053
|
-
type: "number"
|
|
3054
|
-
},
|
|
3055
|
-
"aria-sort": {
|
|
3056
|
-
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
3057
|
-
required: false,
|
|
3058
|
-
control: "select",
|
|
3059
|
-
type: "string",
|
|
3060
|
-
options: ["none", "ascending", "descending", "other"]
|
|
3061
|
-
},
|
|
3062
|
-
"aria-valuemax": {
|
|
3063
|
-
description: "Defines the maximum allowed value for a range widget.",
|
|
3064
|
-
required: false,
|
|
3065
|
-
control: "number",
|
|
3066
|
-
type: "number"
|
|
3067
|
-
},
|
|
3068
|
-
"aria-valuemin": {
|
|
3069
|
-
description: "Defines the minimum allowed value for a range widget.",
|
|
3070
|
-
required: false,
|
|
3071
|
-
control: "number",
|
|
3072
|
-
type: "number"
|
|
3073
|
-
},
|
|
3074
|
-
"aria-valuenow": {
|
|
3075
|
-
description: "Defines the current value for a range widget.",
|
|
3076
|
-
required: false,
|
|
3077
|
-
control: "number",
|
|
3078
|
-
type: "number"
|
|
3079
|
-
},
|
|
3080
|
-
"aria-valuetext": {
|
|
3081
|
-
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
3082
|
-
required: false,
|
|
3083
|
-
control: "text",
|
|
3084
|
-
type: "string"
|
|
3085
|
-
},
|
|
3086
|
-
autoCapitalize: {
|
|
3087
|
-
required: false,
|
|
3088
|
-
control: "text",
|
|
3089
|
-
type: "string",
|
|
3090
|
-
description: "Sets whether input is automatically capitalized when entered by user."
|
|
3091
|
-
},
|
|
3092
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
3093
|
-
autoFocus: {
|
|
3094
|
-
required: false,
|
|
3095
|
-
control: "boolean",
|
|
3096
|
-
type: "boolean",
|
|
3097
|
-
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
3098
|
-
},
|
|
3099
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
3100
|
-
className: { required: false, control: "text", type: "string" },
|
|
3101
|
-
color: {
|
|
3102
|
-
required: false,
|
|
3103
|
-
control: "color",
|
|
3104
|
-
type: "string",
|
|
3105
|
-
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
3106
|
-
},
|
|
3107
|
-
content: {
|
|
3108
|
-
required: false,
|
|
3109
|
-
control: "text",
|
|
3110
|
-
type: "string",
|
|
3111
|
-
description: "A value associated with http-equiv orname depending on the context."
|
|
3112
|
-
},
|
|
3113
|
-
contextMenu: {
|
|
3114
|
-
required: false,
|
|
3115
|
-
control: "text",
|
|
3116
|
-
type: "string",
|
|
3117
|
-
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
3118
|
-
},
|
|
3119
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
3120
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
3121
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
3122
|
-
dir: {
|
|
3123
|
-
required: false,
|
|
3124
|
-
control: "text",
|
|
3125
|
-
type: "string",
|
|
3126
|
-
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
3127
|
-
},
|
|
3128
|
-
draggable: {
|
|
3129
|
-
required: false,
|
|
3130
|
-
control: "boolean",
|
|
3131
|
-
type: "boolean",
|
|
3132
|
-
description: "Defines whether the element can be dragged."
|
|
3133
|
-
},
|
|
3134
|
-
form: {
|
|
3135
|
-
required: false,
|
|
3136
|
-
control: "text",
|
|
3137
|
-
type: "string",
|
|
3138
|
-
description: "Indicates the form that is the owner of the element."
|
|
3139
|
-
},
|
|
3140
|
-
hidden: {
|
|
3141
|
-
required: false,
|
|
3142
|
-
control: "boolean",
|
|
3143
|
-
type: "boolean",
|
|
3144
|
-
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
3145
|
-
},
|
|
3146
|
-
htmlFor: {
|
|
3147
|
-
required: false,
|
|
3148
|
-
control: "text",
|
|
3149
|
-
type: "string",
|
|
3150
|
-
description: "Associates this Label with an Input. The value of the \u201CFor\u201D attribute should match the ID attribute of the corresponding Input element"
|
|
3151
|
-
},
|
|
3152
|
-
id: {
|
|
3153
|
-
required: false,
|
|
3154
|
-
control: "text",
|
|
3155
|
-
type: "string",
|
|
3156
|
-
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
3157
|
-
},
|
|
3158
|
-
inputMode: {
|
|
3159
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
3160
|
-
required: false,
|
|
3161
|
-
control: "select",
|
|
3162
|
-
type: "string",
|
|
3163
|
-
options: [
|
|
3164
|
-
"search",
|
|
3165
|
-
"text",
|
|
3166
|
-
"none",
|
|
3167
|
-
"tel",
|
|
3168
|
-
"url",
|
|
3169
|
-
"email",
|
|
3170
|
-
"numeric",
|
|
3171
|
-
"decimal"
|
|
3172
|
-
]
|
|
3173
|
-
},
|
|
3174
|
-
is: {
|
|
3175
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
3176
|
-
required: false,
|
|
3177
|
-
control: "text",
|
|
3178
|
-
type: "string"
|
|
3179
|
-
},
|
|
3180
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
3181
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
3182
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
3183
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
3184
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
3185
|
-
lang: {
|
|
3186
|
-
required: false,
|
|
3187
|
-
control: "text",
|
|
3188
|
-
type: "string",
|
|
3189
|
-
description: "Defines the language used in the element."
|
|
3190
|
-
},
|
|
3191
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
3192
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
3193
|
-
property: { required: false, control: "text", type: "string" },
|
|
3194
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
3195
|
-
rel: {
|
|
3196
|
-
required: false,
|
|
3197
|
-
control: "text",
|
|
3198
|
-
type: "string",
|
|
3199
|
-
description: "Specifies the relationship of the target object to the link object."
|
|
3200
|
-
},
|
|
3201
|
-
resource: { required: false, control: "text", type: "string" },
|
|
3202
|
-
results: { required: false, control: "number", type: "number" },
|
|
3203
|
-
rev: { required: false, control: "text", type: "string" },
|
|
3204
|
-
role: {
|
|
3205
|
-
required: false,
|
|
3206
|
-
control: "text",
|
|
3207
|
-
type: "string",
|
|
3208
|
-
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
3209
|
-
},
|
|
3210
|
-
security: { required: false, control: "text", type: "string" },
|
|
3211
|
-
slot: {
|
|
3212
|
-
required: false,
|
|
3213
|
-
control: "text",
|
|
3214
|
-
type: "string",
|
|
3215
|
-
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
3216
|
-
},
|
|
3217
|
-
spellCheck: {
|
|
3218
|
-
required: false,
|
|
3219
|
-
control: "boolean",
|
|
3220
|
-
type: "boolean",
|
|
3221
|
-
description: "Indicates whether spell checking is allowed for the element."
|
|
3222
|
-
},
|
|
3223
|
-
suppressContentEditableWarning: {
|
|
3224
|
-
required: false,
|
|
3225
|
-
control: "boolean",
|
|
3226
|
-
type: "boolean"
|
|
3227
|
-
},
|
|
3228
|
-
suppressHydrationWarning: {
|
|
3229
|
-
required: false,
|
|
3230
|
-
control: "boolean",
|
|
3231
|
-
type: "boolean"
|
|
3232
|
-
},
|
|
3233
|
-
tabIndex: {
|
|
3234
|
-
required: false,
|
|
3235
|
-
control: "number",
|
|
3236
|
-
type: "number",
|
|
3237
|
-
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
3238
|
-
},
|
|
3239
|
-
title: {
|
|
3240
|
-
required: false,
|
|
3241
|
-
control: "text",
|
|
3242
|
-
type: "string",
|
|
3243
|
-
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
3244
|
-
},
|
|
3245
|
-
translate: {
|
|
3246
|
-
required: false,
|
|
3247
|
-
control: "radio",
|
|
3248
|
-
type: "string",
|
|
3249
|
-
options: ["yes", "no"],
|
|
3250
|
-
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
3251
|
-
},
|
|
3252
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
3253
|
-
unselectable: {
|
|
3254
|
-
required: false,
|
|
3255
|
-
control: "radio",
|
|
3256
|
-
type: "string",
|
|
3257
|
-
options: ["on", "off"]
|
|
3258
|
-
},
|
|
3259
|
-
vocab: { required: false, control: "text", type: "string" }
|
|
3260
|
-
};
|
|
3261
|
-
|
|
3262
|
-
// src/label.ws.ts
|
|
3263
|
-
var presetStyle22 = {
|
|
3264
|
-
label: [
|
|
3265
|
-
...label,
|
|
3266
|
-
{ property: "display", value: { type: "keyword", value: "block" } }
|
|
3267
|
-
]
|
|
3268
|
-
};
|
|
3269
|
-
var meta27 = {
|
|
3270
|
-
category: "forms",
|
|
3271
|
-
invalidAncestors: ["Button", "Label"],
|
|
3272
|
-
type: "container",
|
|
3273
|
-
label: "Input Label",
|
|
3274
|
-
icon: LabelIcon,
|
|
3275
|
-
states: defaultStates21,
|
|
3276
|
-
presetStyle: presetStyle22,
|
|
3277
|
-
order: 2,
|
|
3278
|
-
template: [
|
|
3279
|
-
{
|
|
3280
|
-
type: "instance",
|
|
3281
|
-
component: "Label",
|
|
3282
|
-
children: [{ type: "text", value: "Form Label", placeholder: true }]
|
|
3283
|
-
}
|
|
3284
|
-
]
|
|
3285
|
-
};
|
|
3286
|
-
var propsMeta6 = {
|
|
3287
|
-
props: {
|
|
3288
|
-
...props6,
|
|
3289
|
-
htmlFor: {
|
|
3290
|
-
...props6.htmlFor,
|
|
3291
|
-
label: "For"
|
|
3292
|
-
}
|
|
3293
|
-
},
|
|
3294
|
-
initialProps: ["id", "className", "htmlFor"]
|
|
3295
|
-
};
|
|
3296
|
-
|
|
3297
|
-
// src/textarea.ws.ts
|
|
3298
|
-
import { FormTextAreaIcon } from "@webstudio-is/icons/svg";
|
|
3299
|
-
import {
|
|
3300
|
-
defaultStates as defaultStates22
|
|
3301
|
-
} from "@webstudio-is/react-sdk";
|
|
3302
|
-
import { textarea } from "@webstudio-is/sdk/normalize.css";
|
|
3303
|
-
var presetStyle23 = {
|
|
3304
|
-
textarea: [
|
|
3305
|
-
...textarea,
|
|
3306
|
-
// resize doesn't work well while on canvas
|
|
3307
|
-
{ property: "resize", value: { type: "keyword", value: "none" } },
|
|
3308
|
-
{
|
|
3309
|
-
property: "display",
|
|
3310
|
-
value: { type: "keyword", value: "block" }
|
|
3311
|
-
}
|
|
3312
|
-
]
|
|
3313
|
-
};
|
|
3314
|
-
var meta28 = {
|
|
3315
|
-
category: "forms",
|
|
3316
|
-
type: "control",
|
|
3317
|
-
label: "Text Area",
|
|
3318
|
-
description: "A multi-line text input for collecting longer string data from your users.",
|
|
3319
|
-
icon: FormTextAreaIcon,
|
|
3320
|
-
presetStyle: presetStyle23,
|
|
3321
|
-
order: 4,
|
|
3322
|
-
invalidAncestors: ["Button", "Link"],
|
|
3323
|
-
states: [
|
|
3324
|
-
...defaultStates22,
|
|
3325
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
3326
|
-
{ selector: ":valid", label: "Valid" },
|
|
3327
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
3328
|
-
{ selector: ":required", label: "Required" },
|
|
3329
|
-
{ selector: ":optional", label: "Optional" }
|
|
3330
|
-
// Additional states will go into submenu
|
|
3331
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
3332
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
3333
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
3334
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
3335
|
-
]
|
|
3336
|
-
};
|
|
3337
|
-
|
|
3338
|
-
// src/radio-button.ws.ts
|
|
3339
|
-
import { RadioCheckedIcon } from "@webstudio-is/icons/svg";
|
|
3340
|
-
import {
|
|
3341
|
-
defaultStates as defaultStates23
|
|
3342
|
-
} from "@webstudio-is/react-sdk";
|
|
3343
|
-
import { radio } from "@webstudio-is/sdk/normalize.css";
|
|
3344
|
-
var presetStyle24 = {
|
|
3345
|
-
input: [
|
|
3346
|
-
...radio,
|
|
3347
|
-
{
|
|
3348
|
-
property: "marginRight",
|
|
3349
|
-
value: { type: "unit", unit: "em", value: 0.5 }
|
|
3350
|
-
}
|
|
3351
|
-
]
|
|
3352
|
-
};
|
|
3353
|
-
var meta29 = {
|
|
3354
|
-
category: "forms",
|
|
3355
|
-
invalidAncestors: ["Button", "Link"],
|
|
3356
|
-
type: "control",
|
|
3357
|
-
label: "Radio",
|
|
3358
|
-
description: "Use within a form to allow your users to select a single option from a set of mutually exclusive choices. Group multiple radios by matching their \u201CName\u201D properties.",
|
|
3359
|
-
icon: RadioCheckedIcon,
|
|
3360
|
-
presetStyle: presetStyle24,
|
|
3361
|
-
order: 5,
|
|
3362
|
-
states: [
|
|
3363
|
-
...defaultStates23,
|
|
3364
|
-
{ selector: ":checked", label: "Checked" },
|
|
3365
|
-
{ selector: ":required", label: "Required" },
|
|
3366
|
-
{ selector: ":optional", label: "Optional" }
|
|
3367
|
-
// Additional states will go into submenu
|
|
3368
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
3369
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
3370
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
3371
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
3372
|
-
],
|
|
3373
|
-
template: [
|
|
3374
|
-
{
|
|
3375
|
-
type: "instance",
|
|
3376
|
-
component: "Label",
|
|
3377
|
-
label: "Radio Field",
|
|
3378
|
-
children: [
|
|
3379
|
-
{ type: "instance", component: "RadioButton", props: [], children: [] },
|
|
3380
|
-
{
|
|
3381
|
-
type: "instance",
|
|
3382
|
-
component: "Text",
|
|
3383
|
-
label: "Radio Label",
|
|
3384
|
-
props: [{ type: "string", name: "tag", value: "span" }],
|
|
3385
|
-
children: [{ type: "text", value: "Radio", placeholder: true }]
|
|
3386
|
-
}
|
|
3387
|
-
]
|
|
3388
|
-
}
|
|
3389
|
-
]
|
|
3390
|
-
};
|
|
3391
|
-
|
|
3392
|
-
// src/checkbox.ws.ts
|
|
3393
|
-
import { CheckboxCheckedIcon } from "@webstudio-is/icons/svg";
|
|
3394
|
-
import {
|
|
3395
|
-
defaultStates as defaultStates24
|
|
3396
|
-
} from "@webstudio-is/react-sdk";
|
|
3397
|
-
import { checkbox } from "@webstudio-is/sdk/normalize.css";
|
|
3398
|
-
var presetStyle25 = {
|
|
3399
|
-
input: [
|
|
3400
|
-
...checkbox,
|
|
3401
|
-
{
|
|
3402
|
-
property: "marginRight",
|
|
3403
|
-
value: { type: "unit", unit: "em", value: 0.5 }
|
|
3404
|
-
}
|
|
3405
|
-
]
|
|
3406
|
-
};
|
|
3407
|
-
var meta30 = {
|
|
3408
|
-
category: "forms",
|
|
3409
|
-
invalidAncestors: ["Button", "Link"],
|
|
3410
|
-
type: "control",
|
|
3411
|
-
description: "Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their \u201CName\u201D properties. Unlike radios, any number of checkboxes in a group can be checked.",
|
|
3412
|
-
icon: CheckboxCheckedIcon,
|
|
3413
|
-
presetStyle: presetStyle25,
|
|
3414
|
-
order: 6,
|
|
3415
|
-
states: [
|
|
3416
|
-
...defaultStates24,
|
|
3417
|
-
{ selector: ":checked", label: "Checked" },
|
|
3418
|
-
{ selector: ":required", label: "Required" },
|
|
3419
|
-
{ selector: ":optional", label: "Optional" },
|
|
3420
|
-
{ selector: ":disabled", label: "Disabled" },
|
|
3421
|
-
{ selector: ":enabled", label: "Enabled" },
|
|
3422
|
-
{ selector: ":read-only", label: "Read Only" },
|
|
3423
|
-
{ selector: ":read-write", label: "Read Write" }
|
|
3424
|
-
],
|
|
3425
|
-
template: [
|
|
3426
|
-
{
|
|
3427
|
-
type: "instance",
|
|
3428
|
-
component: "Label",
|
|
3429
|
-
label: "Checkbox Field",
|
|
3430
|
-
children: [
|
|
3431
|
-
{ type: "instance", component: "Checkbox", children: [] },
|
|
3432
|
-
{
|
|
3433
|
-
type: "instance",
|
|
3434
|
-
component: "Text",
|
|
3435
|
-
label: "Checkbox Label",
|
|
3436
|
-
props: [{ type: "string", name: "tag", value: "span" }],
|
|
3437
|
-
children: [{ type: "text", value: "Checkbox", placeholder: true }]
|
|
3438
|
-
}
|
|
3439
|
-
]
|
|
3440
|
-
}
|
|
3441
|
-
]
|
|
3442
|
-
};
|
|
3443
|
-
|
|
3444
|
-
// src/vimeo.ws.ts
|
|
3445
|
-
import { PlayIcon, SpinnerIcon, VimeoIcon } from "@webstudio-is/icons/svg";
|
|
3446
|
-
import {
|
|
3447
|
-
defaultStates as defaultStates25
|
|
3448
|
-
} from "@webstudio-is/react-sdk";
|
|
3449
|
-
import { div as div3 } from "@webstudio-is/sdk/normalize.css";
|
|
3450
|
-
var presetStyle26 = {
|
|
3451
|
-
div: div3
|
|
3452
|
-
};
|
|
3453
|
-
var meta31 = {
|
|
3454
|
-
category: "media",
|
|
3455
|
-
type: "container",
|
|
3456
|
-
description: "Add a video to your page that is hosted on Vimeo. Paste a Vimeo URL and configure the video in the Settings tab.",
|
|
3457
|
-
order: 1,
|
|
3458
|
-
icon: VimeoIcon,
|
|
3459
|
-
states: defaultStates25,
|
|
3460
|
-
presetStyle: presetStyle26,
|
|
3461
|
-
invalidAncestors: ["Button", "Heading", "Link"],
|
|
3462
|
-
template: [
|
|
3463
|
-
{
|
|
3464
|
-
type: "instance",
|
|
3465
|
-
component: "Vimeo",
|
|
3466
|
-
styles: [
|
|
3467
|
-
{
|
|
3468
|
-
property: "position",
|
|
3469
|
-
value: { type: "keyword", value: "relative" }
|
|
3470
|
-
},
|
|
3471
|
-
{
|
|
3472
|
-
property: "aspectRatio",
|
|
3473
|
-
value: { type: "keyword", value: "640/360" }
|
|
3474
|
-
},
|
|
3475
|
-
{
|
|
3476
|
-
property: "width",
|
|
3477
|
-
value: { type: "unit", value: 100, unit: "%" }
|
|
3478
|
-
}
|
|
3479
|
-
],
|
|
3480
|
-
children: [
|
|
3481
|
-
{
|
|
3482
|
-
type: "instance",
|
|
3483
|
-
component: "VimeoPreviewImage",
|
|
3484
|
-
styles: [
|
|
3485
|
-
{
|
|
3486
|
-
property: "position",
|
|
3487
|
-
value: { type: "keyword", value: "absolute" }
|
|
3488
|
-
},
|
|
3489
|
-
{
|
|
3490
|
-
property: "objectFit",
|
|
3491
|
-
value: { type: "keyword", value: "cover" }
|
|
3492
|
-
},
|
|
3493
|
-
{
|
|
3494
|
-
property: "width",
|
|
3495
|
-
value: { type: "unit", value: 100, unit: "%" }
|
|
3496
|
-
},
|
|
3497
|
-
{
|
|
3498
|
-
property: "height",
|
|
3499
|
-
value: { type: "unit", value: 100, unit: "%" }
|
|
3500
|
-
},
|
|
3501
|
-
{
|
|
3502
|
-
property: "borderTopLeftRadius",
|
|
3503
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
3504
|
-
},
|
|
3505
|
-
{
|
|
3506
|
-
property: "borderTopRightRadius",
|
|
3507
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
3508
|
-
},
|
|
3509
|
-
{
|
|
3510
|
-
property: "borderBottomLeftRadius",
|
|
3511
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
3512
|
-
},
|
|
3513
|
-
{
|
|
3514
|
-
property: "borderBottomRightRadius",
|
|
3515
|
-
value: { type: "unit", value: 20, unit: "px" }
|
|
3516
|
-
},
|
|
3517
|
-
{
|
|
3518
|
-
property: "objectPosition",
|
|
3519
|
-
value: { type: "keyword", value: "cover" }
|
|
3520
|
-
}
|
|
3521
|
-
],
|
|
3522
|
-
children: [],
|
|
3523
|
-
props: [
|
|
3524
|
-
{
|
|
3525
|
-
type: "string",
|
|
3526
|
-
name: "alt",
|
|
3527
|
-
value: "Vimeo video preview image"
|
|
3528
|
-
},
|
|
3529
|
-
{
|
|
3530
|
-
type: "string",
|
|
3531
|
-
name: "sizes",
|
|
3532
|
-
value: "100vw"
|
|
3533
|
-
}
|
|
3534
|
-
]
|
|
3535
|
-
},
|
|
3536
|
-
{
|
|
3537
|
-
type: "instance",
|
|
3538
|
-
component: "VimeoSpinner",
|
|
3539
|
-
label: "Spinner",
|
|
3540
|
-
styles: [
|
|
3541
|
-
{
|
|
3542
|
-
property: "position",
|
|
3543
|
-
value: { type: "keyword", value: "absolute" }
|
|
3544
|
-
},
|
|
3545
|
-
{
|
|
3546
|
-
property: "top",
|
|
3547
|
-
value: { type: "unit", value: 50, unit: "%" }
|
|
3548
|
-
},
|
|
3549
|
-
{
|
|
3550
|
-
property: "left",
|
|
3551
|
-
value: { type: "unit", value: 50, unit: "%" }
|
|
3552
|
-
},
|
|
3553
|
-
{
|
|
3554
|
-
property: "width",
|
|
3555
|
-
value: { type: "unit", value: 70, unit: "px" }
|
|
3556
|
-
},
|
|
3557
|
-
{
|
|
3558
|
-
property: "height",
|
|
3559
|
-
value: { type: "unit", value: 70, unit: "px" }
|
|
3560
|
-
},
|
|
3561
|
-
{
|
|
3562
|
-
property: "marginTop",
|
|
3563
|
-
value: { type: "unit", value: -35, unit: "px" }
|
|
3564
|
-
},
|
|
3565
|
-
{
|
|
3566
|
-
property: "marginLeft",
|
|
3567
|
-
value: { type: "unit", value: -35, unit: "px" }
|
|
3568
|
-
}
|
|
3569
|
-
],
|
|
3570
|
-
children: [
|
|
3571
|
-
{
|
|
3572
|
-
type: "instance",
|
|
3573
|
-
component: "HtmlEmbed",
|
|
3574
|
-
label: "Spinner SVG",
|
|
3575
|
-
props: [
|
|
3576
|
-
{
|
|
3577
|
-
type: "string",
|
|
3578
|
-
name: "code",
|
|
3579
|
-
value: SpinnerIcon
|
|
3580
|
-
}
|
|
3581
|
-
],
|
|
3582
|
-
children: []
|
|
3583
|
-
}
|
|
3584
|
-
]
|
|
3585
|
-
},
|
|
3586
|
-
{
|
|
3587
|
-
type: "instance",
|
|
3588
|
-
component: "VimeoPlayButton",
|
|
3589
|
-
props: [
|
|
3590
|
-
{
|
|
3591
|
-
type: "string",
|
|
3592
|
-
name: "aria-label",
|
|
3593
|
-
value: "Play button"
|
|
3594
|
-
}
|
|
3595
|
-
],
|
|
3596
|
-
styles: [
|
|
3597
|
-
{
|
|
3598
|
-
property: "position",
|
|
3599
|
-
value: { type: "keyword", value: "absolute" }
|
|
3600
|
-
},
|
|
3601
|
-
{
|
|
3602
|
-
property: "width",
|
|
3603
|
-
value: { type: "unit", value: 140, unit: "px" }
|
|
3604
|
-
},
|
|
3605
|
-
{
|
|
3606
|
-
property: "height",
|
|
3607
|
-
value: { type: "unit", value: 80, unit: "px" }
|
|
3608
|
-
},
|
|
3609
|
-
{
|
|
3610
|
-
property: "top",
|
|
3611
|
-
value: { type: "unit", value: 50, unit: "%" }
|
|
3612
|
-
},
|
|
3613
|
-
{
|
|
3614
|
-
property: "left",
|
|
3615
|
-
value: { type: "unit", value: 50, unit: "%" }
|
|
3616
|
-
},
|
|
3617
|
-
{
|
|
3618
|
-
property: "marginTop",
|
|
3619
|
-
value: { type: "unit", value: -40, unit: "px" }
|
|
3620
|
-
},
|
|
3621
|
-
{
|
|
3622
|
-
property: "marginLeft",
|
|
3623
|
-
value: { type: "unit", value: -70, unit: "px" }
|
|
3624
|
-
},
|
|
3625
|
-
{
|
|
3626
|
-
property: "display",
|
|
3627
|
-
value: { type: "keyword", value: "flex" }
|
|
3628
|
-
},
|
|
3629
|
-
{
|
|
3630
|
-
property: "alignItems",
|
|
3631
|
-
value: { type: "keyword", value: "center" }
|
|
3632
|
-
},
|
|
3633
|
-
{
|
|
3634
|
-
property: "justifyContent",
|
|
3635
|
-
value: { type: "keyword", value: "center" }
|
|
3636
|
-
},
|
|
3637
|
-
{
|
|
3638
|
-
property: "borderTopStyle",
|
|
3639
|
-
value: { type: "keyword", value: "none" }
|
|
3640
|
-
},
|
|
3641
|
-
{
|
|
3642
|
-
property: "borderRightStyle",
|
|
3643
|
-
value: { type: "keyword", value: "none" }
|
|
3644
|
-
},
|
|
3645
|
-
{
|
|
3646
|
-
property: "borderBottomStyle",
|
|
3647
|
-
value: { type: "keyword", value: "none" }
|
|
3648
|
-
},
|
|
3649
|
-
{
|
|
3650
|
-
property: "borderLeftStyle",
|
|
3651
|
-
value: { type: "keyword", value: "none" }
|
|
3652
|
-
},
|
|
3653
|
-
{
|
|
3654
|
-
property: "borderTopLeftRadius",
|
|
3655
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
3656
|
-
},
|
|
3657
|
-
{
|
|
3658
|
-
property: "borderTopRightRadius",
|
|
3659
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
3660
|
-
},
|
|
3661
|
-
{
|
|
3662
|
-
property: "borderBottomLeftRadius",
|
|
3663
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
3664
|
-
},
|
|
3665
|
-
{
|
|
3666
|
-
property: "borderBottomRightRadius",
|
|
3667
|
-
value: { type: "unit", value: 5, unit: "px" }
|
|
3668
|
-
},
|
|
3669
|
-
{
|
|
3670
|
-
property: "cursor",
|
|
3671
|
-
value: { type: "keyword", value: "pointer" }
|
|
3672
|
-
},
|
|
3673
|
-
{
|
|
3674
|
-
property: "backgroundColor",
|
|
3675
|
-
value: {
|
|
3676
|
-
type: "rgb",
|
|
3677
|
-
r: 18,
|
|
3678
|
-
g: 18,
|
|
3679
|
-
b: 18,
|
|
3680
|
-
alpha: 1
|
|
3681
|
-
}
|
|
3682
|
-
},
|
|
3683
|
-
{
|
|
3684
|
-
property: "color",
|
|
3685
|
-
value: {
|
|
3686
|
-
type: "rgb",
|
|
3687
|
-
r: 255,
|
|
3688
|
-
g: 255,
|
|
3689
|
-
b: 255,
|
|
3690
|
-
alpha: 1
|
|
3691
|
-
}
|
|
3692
|
-
},
|
|
3693
|
-
{
|
|
3694
|
-
state: ":hover",
|
|
3695
|
-
property: "backgroundColor",
|
|
3696
|
-
value: {
|
|
3697
|
-
type: "rgb",
|
|
3698
|
-
r: 0,
|
|
3699
|
-
g: 173,
|
|
3700
|
-
b: 239,
|
|
3701
|
-
alpha: 1
|
|
3702
|
-
}
|
|
3703
|
-
}
|
|
3704
|
-
],
|
|
3705
|
-
children: [
|
|
3706
|
-
{
|
|
3707
|
-
type: "instance",
|
|
3708
|
-
component: "Box",
|
|
3709
|
-
label: "Play Icon",
|
|
3710
|
-
styles: [
|
|
3711
|
-
{
|
|
3712
|
-
property: "width",
|
|
3713
|
-
value: { type: "unit", value: 60, unit: "px" }
|
|
3714
|
-
},
|
|
3715
|
-
{
|
|
3716
|
-
property: "height",
|
|
3717
|
-
value: { type: "unit", value: 60, unit: "px" }
|
|
3718
|
-
}
|
|
3719
|
-
],
|
|
3720
|
-
props: [
|
|
3721
|
-
{
|
|
3722
|
-
type: "string",
|
|
3723
|
-
name: "aria-hidden",
|
|
3724
|
-
value: "true"
|
|
3725
|
-
}
|
|
3726
|
-
],
|
|
3727
|
-
children: [
|
|
3728
|
-
{
|
|
3729
|
-
type: "instance",
|
|
3730
|
-
component: "HtmlEmbed",
|
|
3731
|
-
label: "Play SVG",
|
|
3732
|
-
props: [
|
|
3733
|
-
{
|
|
3734
|
-
type: "string",
|
|
3735
|
-
name: "code",
|
|
3736
|
-
value: PlayIcon
|
|
3737
|
-
}
|
|
3738
|
-
],
|
|
3739
|
-
children: []
|
|
3740
|
-
}
|
|
3741
|
-
]
|
|
3742
|
-
}
|
|
3743
|
-
]
|
|
3744
|
-
}
|
|
3745
|
-
]
|
|
3746
|
-
}
|
|
3747
|
-
]
|
|
3748
|
-
};
|
|
3749
|
-
|
|
3750
|
-
// src/vimeo-preview-image.ws.ts
|
|
3751
|
-
import "@webstudio-is/react-sdk";
|
|
3752
|
-
|
|
3753
|
-
// src/__generated__/vimeo-preview-image.props.ts
|
|
3754
|
-
var props7 = {
|
|
3755
|
-
about: { required: false, control: "text", type: "string" },
|
|
3756
|
-
accessKey: {
|
|
3757
|
-
required: false,
|
|
3758
|
-
control: "text",
|
|
3759
|
-
type: "string",
|
|
3760
|
-
description: "Keyboard shortcut to activate or add focus to the element."
|
|
3761
|
-
},
|
|
3762
|
-
alt: {
|
|
3763
|
-
required: false,
|
|
3764
|
-
control: "text",
|
|
3765
|
-
type: "string",
|
|
3766
|
-
description: "Text description of the image, which is very important for accessibility and search engine optimization. Screen readers read this description to users so they know what the image means. Alt text is also displayed on the page if the image can't be loaded for some reason."
|
|
3767
|
-
},
|
|
3768
|
-
"aria-activedescendant": {
|
|
3769
|
-
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
3770
|
-
required: false,
|
|
3771
|
-
control: "text",
|
|
3772
|
-
type: "string"
|
|
3773
|
-
},
|
|
3774
|
-
"aria-atomic": {
|
|
3775
|
-
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
3776
|
-
required: false,
|
|
3777
|
-
control: "boolean",
|
|
3778
|
-
type: "boolean"
|
|
3779
|
-
},
|
|
3780
|
-
"aria-autocomplete": {
|
|
3781
|
-
description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
|
|
3782
|
-
required: false,
|
|
3783
|
-
control: "select",
|
|
3784
|
-
type: "string",
|
|
3785
|
-
options: ["list", "none", "inline", "both"]
|
|
3786
|
-
},
|
|
3787
|
-
"aria-braillelabel": {
|
|
3788
|
-
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
3789
|
-
required: false,
|
|
3790
|
-
control: "text",
|
|
3791
|
-
type: "string"
|
|
3792
|
-
},
|
|
3793
|
-
"aria-brailleroledescription": {
|
|
3794
|
-
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
3795
|
-
required: false,
|
|
3796
|
-
control: "text",
|
|
3797
|
-
type: "string"
|
|
3798
|
-
},
|
|
3799
|
-
"aria-busy": { required: false, control: "boolean", type: "boolean" },
|
|
3800
|
-
"aria-checked": {
|
|
3801
|
-
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
3802
|
-
required: false,
|
|
3803
|
-
control: "text",
|
|
3804
|
-
type: "string"
|
|
3805
|
-
},
|
|
3806
|
-
"aria-colcount": {
|
|
3807
|
-
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
3808
|
-
required: false,
|
|
3809
|
-
control: "number",
|
|
3810
|
-
type: "number"
|
|
3811
|
-
},
|
|
3812
|
-
"aria-colindex": {
|
|
3813
|
-
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
3814
|
-
required: false,
|
|
3815
|
-
control: "number",
|
|
3816
|
-
type: "number"
|
|
3817
|
-
},
|
|
3818
|
-
"aria-colindextext": {
|
|
3819
|
-
description: "Defines a human readable text alternative of aria-colindex.",
|
|
3820
|
-
required: false,
|
|
3821
|
-
control: "text",
|
|
3822
|
-
type: "string"
|
|
3823
|
-
},
|
|
3824
|
-
"aria-colspan": {
|
|
3825
|
-
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
3826
|
-
required: false,
|
|
3827
|
-
control: "number",
|
|
3828
|
-
type: "number"
|
|
3829
|
-
},
|
|
3830
|
-
"aria-controls": {
|
|
3831
|
-
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
3832
|
-
required: false,
|
|
3833
|
-
control: "text",
|
|
3834
|
-
type: "string"
|
|
3835
|
-
},
|
|
3836
|
-
"aria-current": {
|
|
3837
|
-
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
3838
|
-
required: false,
|
|
3839
|
-
control: "text",
|
|
3840
|
-
type: "string"
|
|
3841
|
-
},
|
|
3842
|
-
"aria-describedby": {
|
|
3843
|
-
description: "Identifies the element (or elements) that describes the object.",
|
|
3844
|
-
required: false,
|
|
3845
|
-
control: "text",
|
|
3846
|
-
type: "string"
|
|
3847
|
-
},
|
|
3848
|
-
"aria-description": {
|
|
3849
|
-
description: "Defines a string value that describes or annotates the current element.",
|
|
3850
|
-
required: false,
|
|
3851
|
-
control: "text",
|
|
3852
|
-
type: "string"
|
|
3853
|
-
},
|
|
3854
|
-
"aria-details": {
|
|
3855
|
-
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
3856
|
-
required: false,
|
|
3857
|
-
control: "text",
|
|
3858
|
-
type: "string"
|
|
3859
|
-
},
|
|
3860
|
-
"aria-disabled": {
|
|
3861
|
-
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
3862
|
-
required: false,
|
|
3863
|
-
control: "boolean",
|
|
3864
|
-
type: "boolean"
|
|
3865
|
-
},
|
|
3866
|
-
"aria-dropeffect": {
|
|
3867
|
-
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
3868
|
-
required: false,
|
|
3869
|
-
control: "select",
|
|
3870
|
-
type: "string",
|
|
3871
|
-
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
3872
|
-
},
|
|
3873
|
-
"aria-errormessage": {
|
|
3874
|
-
description: "Identifies the element that provides an error message for the object.",
|
|
3875
|
-
required: false,
|
|
3876
|
-
control: "text",
|
|
3877
|
-
type: "string"
|
|
3878
|
-
},
|
|
3879
|
-
"aria-expanded": {
|
|
3880
|
-
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
3881
|
-
required: false,
|
|
3882
|
-
control: "boolean",
|
|
3883
|
-
type: "boolean"
|
|
3884
|
-
},
|
|
3885
|
-
"aria-flowto": {
|
|
3886
|
-
description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
|
|
3887
|
-
required: false,
|
|
3888
|
-
control: "text",
|
|
3889
|
-
type: "string"
|
|
3890
|
-
},
|
|
3891
|
-
"aria-grabbed": {
|
|
3892
|
-
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
3893
|
-
required: false,
|
|
3894
|
-
control: "boolean",
|
|
3895
|
-
type: "boolean"
|
|
3896
|
-
},
|
|
3897
|
-
"aria-haspopup": {
|
|
3898
|
-
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
3899
|
-
required: false,
|
|
3900
|
-
control: "text",
|
|
3901
|
-
type: "string"
|
|
3902
|
-
},
|
|
3903
|
-
"aria-hidden": {
|
|
3904
|
-
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
3905
|
-
required: false,
|
|
3906
|
-
control: "boolean",
|
|
3907
|
-
type: "boolean"
|
|
3908
|
-
},
|
|
3909
|
-
"aria-invalid": {
|
|
3910
|
-
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
3911
|
-
required: false,
|
|
3912
|
-
control: "text",
|
|
3913
|
-
type: "string"
|
|
3914
|
-
},
|
|
3915
|
-
"aria-keyshortcuts": {
|
|
3916
|
-
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
3917
|
-
required: false,
|
|
3918
|
-
control: "text",
|
|
3919
|
-
type: "string"
|
|
3920
|
-
},
|
|
3921
|
-
"aria-label": {
|
|
3922
|
-
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
3923
|
-
required: false,
|
|
3924
|
-
control: "text",
|
|
3925
|
-
type: "string"
|
|
3926
|
-
},
|
|
3927
|
-
"aria-labelledby": {
|
|
3928
|
-
description: "Identifies the element (or elements) that labels the current element.",
|
|
3929
|
-
required: false,
|
|
3930
|
-
control: "text",
|
|
3931
|
-
type: "string"
|
|
3932
|
-
},
|
|
3933
|
-
"aria-level": {
|
|
3934
|
-
description: "Defines the hierarchical level of an element within a structure.",
|
|
3935
|
-
required: false,
|
|
3936
|
-
control: "number",
|
|
3937
|
-
type: "number"
|
|
3938
|
-
},
|
|
3939
|
-
"aria-live": {
|
|
3940
|
-
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
3941
|
-
required: false,
|
|
3942
|
-
control: "radio",
|
|
3943
|
-
type: "string",
|
|
3944
|
-
options: ["off", "assertive", "polite"]
|
|
3945
|
-
},
|
|
3946
|
-
"aria-modal": {
|
|
3947
|
-
description: "Indicates whether an element is modal when displayed.",
|
|
3948
|
-
required: false,
|
|
3949
|
-
control: "boolean",
|
|
3950
|
-
type: "boolean"
|
|
3951
|
-
},
|
|
3952
|
-
"aria-multiline": {
|
|
3953
|
-
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
3954
|
-
required: false,
|
|
3955
|
-
control: "boolean",
|
|
3956
|
-
type: "boolean"
|
|
3957
|
-
},
|
|
3958
|
-
"aria-multiselectable": {
|
|
3959
|
-
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
3960
|
-
required: false,
|
|
3961
|
-
control: "boolean",
|
|
3962
|
-
type: "boolean"
|
|
3963
|
-
},
|
|
3964
|
-
"aria-orientation": {
|
|
3965
|
-
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
3966
|
-
required: false,
|
|
3967
|
-
control: "radio",
|
|
3968
|
-
type: "string",
|
|
3969
|
-
options: ["horizontal", "vertical"]
|
|
3970
|
-
},
|
|
3971
|
-
"aria-owns": {
|
|
3972
|
-
description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.",
|
|
3973
|
-
required: false,
|
|
3974
|
-
control: "text",
|
|
3975
|
-
type: "string"
|
|
3976
|
-
},
|
|
3977
|
-
"aria-placeholder": {
|
|
3978
|
-
description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
|
|
3979
|
-
required: false,
|
|
3980
|
-
control: "text",
|
|
3981
|
-
type: "string"
|
|
3982
|
-
},
|
|
3983
|
-
"aria-posinset": {
|
|
3984
|
-
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
3985
|
-
required: false,
|
|
3986
|
-
control: "number",
|
|
3987
|
-
type: "number"
|
|
3988
|
-
},
|
|
3989
|
-
"aria-pressed": {
|
|
3990
|
-
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
3991
|
-
required: false,
|
|
3992
|
-
control: "text",
|
|
3993
|
-
type: "string"
|
|
3994
|
-
},
|
|
3995
|
-
"aria-readonly": {
|
|
3996
|
-
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
3997
|
-
required: false,
|
|
3998
|
-
control: "boolean",
|
|
3999
|
-
type: "boolean"
|
|
4000
|
-
},
|
|
4001
|
-
"aria-relevant": {
|
|
4002
|
-
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
4003
|
-
required: false,
|
|
4004
|
-
control: "select",
|
|
4005
|
-
type: "string",
|
|
4006
|
-
options: [
|
|
4007
|
-
"text",
|
|
4008
|
-
"additions",
|
|
4009
|
-
"additions removals",
|
|
4010
|
-
"additions text",
|
|
4011
|
-
"all",
|
|
4012
|
-
"removals",
|
|
4013
|
-
"removals additions",
|
|
4014
|
-
"removals text",
|
|
4015
|
-
"text additions",
|
|
4016
|
-
"text removals"
|
|
4017
|
-
]
|
|
4018
|
-
},
|
|
4019
|
-
"aria-required": {
|
|
4020
|
-
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
4021
|
-
required: false,
|
|
4022
|
-
control: "boolean",
|
|
4023
|
-
type: "boolean"
|
|
4024
|
-
},
|
|
4025
|
-
"aria-roledescription": {
|
|
4026
|
-
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
4027
|
-
required: false,
|
|
4028
|
-
control: "text",
|
|
4029
|
-
type: "string"
|
|
4030
|
-
},
|
|
4031
|
-
"aria-rowcount": {
|
|
4032
|
-
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
4033
|
-
required: false,
|
|
4034
|
-
control: "number",
|
|
4035
|
-
type: "number"
|
|
4036
|
-
},
|
|
4037
|
-
"aria-rowindex": {
|
|
4038
|
-
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
4039
|
-
required: false,
|
|
4040
|
-
control: "number",
|
|
4041
|
-
type: "number"
|
|
4042
|
-
},
|
|
4043
|
-
"aria-rowindextext": {
|
|
4044
|
-
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
4045
|
-
required: false,
|
|
4046
|
-
control: "text",
|
|
4047
|
-
type: "string"
|
|
4048
|
-
},
|
|
4049
|
-
"aria-rowspan": {
|
|
4050
|
-
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
4051
|
-
required: false,
|
|
4052
|
-
control: "number",
|
|
4053
|
-
type: "number"
|
|
4054
|
-
},
|
|
4055
|
-
"aria-selected": {
|
|
4056
|
-
description: 'Indicates the current "selected" state of various widgets.',
|
|
4057
|
-
required: false,
|
|
4058
|
-
control: "boolean",
|
|
4059
|
-
type: "boolean"
|
|
4060
|
-
},
|
|
4061
|
-
"aria-setsize": {
|
|
4062
|
-
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
4063
|
-
required: false,
|
|
4064
|
-
control: "number",
|
|
4065
|
-
type: "number"
|
|
4066
|
-
},
|
|
4067
|
-
"aria-sort": {
|
|
4068
|
-
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
4069
|
-
required: false,
|
|
4070
|
-
control: "select",
|
|
4071
|
-
type: "string",
|
|
4072
|
-
options: ["none", "ascending", "descending", "other"]
|
|
4073
|
-
},
|
|
4074
|
-
"aria-valuemax": {
|
|
4075
|
-
description: "Defines the maximum allowed value for a range widget.",
|
|
4076
|
-
required: false,
|
|
4077
|
-
control: "number",
|
|
4078
|
-
type: "number"
|
|
4079
|
-
},
|
|
4080
|
-
"aria-valuemin": {
|
|
4081
|
-
description: "Defines the minimum allowed value for a range widget.",
|
|
4082
|
-
required: false,
|
|
4083
|
-
control: "number",
|
|
4084
|
-
type: "number"
|
|
4085
|
-
},
|
|
4086
|
-
"aria-valuenow": {
|
|
4087
|
-
description: "Defines the current value for a range widget.",
|
|
4088
|
-
required: false,
|
|
4089
|
-
control: "number",
|
|
4090
|
-
type: "number"
|
|
4091
|
-
},
|
|
4092
|
-
"aria-valuetext": {
|
|
4093
|
-
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
4094
|
-
required: false,
|
|
4095
|
-
control: "text",
|
|
4096
|
-
type: "string"
|
|
4097
|
-
},
|
|
4098
|
-
autoCapitalize: {
|
|
4099
|
-
required: false,
|
|
4100
|
-
control: "text",
|
|
4101
|
-
type: "string",
|
|
4102
|
-
description: "Sets whether input is automatically capitalized when entered by user."
|
|
4103
|
-
},
|
|
4104
|
-
autoCorrect: { required: false, control: "text", type: "string" },
|
|
4105
|
-
autoFocus: {
|
|
4106
|
-
required: false,
|
|
4107
|
-
control: "boolean",
|
|
4108
|
-
type: "boolean",
|
|
4109
|
-
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
4110
|
-
},
|
|
4111
|
-
autoSave: { required: false, control: "text", type: "string" },
|
|
4112
|
-
className: { required: false, control: "text", type: "string" },
|
|
4113
|
-
color: {
|
|
4114
|
-
required: false,
|
|
4115
|
-
control: "color",
|
|
4116
|
-
type: "string",
|
|
4117
|
-
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
4118
|
-
},
|
|
4119
|
-
content: {
|
|
4120
|
-
required: false,
|
|
4121
|
-
control: "text",
|
|
4122
|
-
type: "string",
|
|
4123
|
-
description: "A value associated with http-equiv orname depending on the context."
|
|
4124
|
-
},
|
|
4125
|
-
contextMenu: {
|
|
4126
|
-
required: false,
|
|
4127
|
-
control: "text",
|
|
4128
|
-
type: "string",
|
|
4129
|
-
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
4130
|
-
},
|
|
4131
|
-
crossOrigin: {
|
|
4132
|
-
required: false,
|
|
4133
|
-
control: "radio",
|
|
4134
|
-
type: "string",
|
|
4135
|
-
options: ["", "anonymous", "use-credentials"],
|
|
4136
|
-
description: "How the element handles cross-origin requests"
|
|
4137
|
-
},
|
|
4138
|
-
datatype: { required: false, control: "text", type: "string" },
|
|
4139
|
-
decoding: {
|
|
4140
|
-
required: false,
|
|
4141
|
-
control: "radio",
|
|
4142
|
-
type: "string",
|
|
4143
|
-
options: ["async", "auto", "sync"],
|
|
4144
|
-
description: "Indicates the preferred method to decode the image."
|
|
4145
|
-
},
|
|
4146
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
4147
|
-
defaultValue: { required: false, control: "text", type: "string" },
|
|
4148
|
-
dir: {
|
|
4149
|
-
required: false,
|
|
4150
|
-
control: "text",
|
|
4151
|
-
type: "string",
|
|
4152
|
-
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
4153
|
-
},
|
|
4154
|
-
draggable: {
|
|
4155
|
-
required: false,
|
|
4156
|
-
control: "boolean",
|
|
4157
|
-
type: "boolean",
|
|
4158
|
-
description: "Defines whether the element can be dragged."
|
|
4159
|
-
},
|
|
4160
|
-
fetchPriority: {
|
|
4161
|
-
required: false,
|
|
4162
|
-
control: "radio",
|
|
4163
|
-
type: "string",
|
|
4164
|
-
options: ["high", "low", "auto"]
|
|
4165
|
-
},
|
|
4166
|
-
height: {
|
|
4167
|
-
required: false,
|
|
4168
|
-
control: "number",
|
|
4169
|
-
type: "number",
|
|
4170
|
-
description: "Defines the image\u2019s height in pixels."
|
|
4171
|
-
},
|
|
4172
|
-
hidden: {
|
|
4173
|
-
required: false,
|
|
4174
|
-
control: "boolean",
|
|
4175
|
-
type: "boolean",
|
|
4176
|
-
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
4177
|
-
},
|
|
4178
|
-
id: {
|
|
4179
|
-
required: false,
|
|
4180
|
-
control: "text",
|
|
4181
|
-
type: "string",
|
|
4182
|
-
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
4183
|
-
},
|
|
4184
|
-
inputMode: {
|
|
4185
|
-
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
4186
|
-
required: false,
|
|
4187
|
-
control: "select",
|
|
4188
|
-
type: "string",
|
|
4189
|
-
options: [
|
|
4190
|
-
"search",
|
|
4191
|
-
"text",
|
|
4192
|
-
"none",
|
|
4193
|
-
"tel",
|
|
4194
|
-
"url",
|
|
4195
|
-
"email",
|
|
4196
|
-
"numeric",
|
|
4197
|
-
"decimal"
|
|
4198
|
-
]
|
|
4199
|
-
},
|
|
4200
|
-
is: {
|
|
4201
|
-
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
4202
|
-
required: false,
|
|
4203
|
-
control: "text",
|
|
4204
|
-
type: "string"
|
|
4205
|
-
},
|
|
4206
|
-
itemID: { required: false, control: "text", type: "string" },
|
|
4207
|
-
itemProp: { required: false, control: "text", type: "string" },
|
|
4208
|
-
itemRef: { required: false, control: "text", type: "string" },
|
|
4209
|
-
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
4210
|
-
itemType: { required: false, control: "text", type: "string" },
|
|
4211
|
-
lang: {
|
|
4212
|
-
required: false,
|
|
4213
|
-
control: "text",
|
|
4214
|
-
type: "string",
|
|
4215
|
-
description: "Defines the language used in the element."
|
|
4216
|
-
},
|
|
4217
|
-
loading: {
|
|
4218
|
-
required: false,
|
|
4219
|
-
control: "radio",
|
|
4220
|
-
type: "string",
|
|
4221
|
-
options: ["eager", "lazy"],
|
|
4222
|
-
description: "Determines whether the image will load as soon as possible (Eager), or when it scrolls into view (Lazy). Lazy loading is a great option for pages with many images because it can significantly reduce the time it takes for the page to load initially."
|
|
4223
|
-
},
|
|
4224
|
-
nonce: { required: false, control: "text", type: "string" },
|
|
4225
|
-
optimize: { required: false, control: "boolean", type: "boolean" },
|
|
4226
|
-
prefix: { required: false, control: "text", type: "string" },
|
|
4227
|
-
property: { required: false, control: "text", type: "string" },
|
|
4228
|
-
quality: { required: false, control: "number", type: "number" },
|
|
4229
|
-
radioGroup: { required: false, control: "text", type: "string" },
|
|
4230
|
-
referrerPolicy: {
|
|
4231
|
-
required: false,
|
|
4232
|
-
control: "select",
|
|
4233
|
-
type: "string",
|
|
4234
|
-
options: [
|
|
4235
|
-
"",
|
|
4236
|
-
"origin",
|
|
4237
|
-
"no-referrer",
|
|
4238
|
-
"no-referrer-when-downgrade",
|
|
4239
|
-
"origin-when-cross-origin",
|
|
4240
|
-
"same-origin",
|
|
4241
|
-
"strict-origin",
|
|
4242
|
-
"strict-origin-when-cross-origin",
|
|
4243
|
-
"unsafe-url"
|
|
4244
|
-
],
|
|
4245
|
-
description: "Specifies which referrer is sent when fetching the resource."
|
|
4246
|
-
},
|
|
4247
|
-
rel: {
|
|
4248
|
-
required: false,
|
|
4249
|
-
control: "text",
|
|
4250
|
-
type: "string",
|
|
4251
|
-
description: "Specifies the relationship of the target object to the link object."
|
|
4252
|
-
},
|
|
4253
|
-
resource: { required: false, control: "text", type: "string" },
|
|
4254
|
-
results: { required: false, control: "number", type: "number" },
|
|
4255
|
-
rev: { required: false, control: "text", type: "string" },
|
|
4256
|
-
role: {
|
|
4257
|
-
required: false,
|
|
4258
|
-
control: "text",
|
|
4259
|
-
type: "string",
|
|
4260
|
-
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
4261
|
-
},
|
|
4262
|
-
security: { required: false, control: "text", type: "string" },
|
|
4263
|
-
sizes: { required: false, control: "text", type: "string" },
|
|
4264
|
-
slot: {
|
|
4265
|
-
required: false,
|
|
4266
|
-
control: "text",
|
|
4267
|
-
type: "string",
|
|
4268
|
-
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
4269
|
-
},
|
|
4270
|
-
spellCheck: {
|
|
4271
|
-
required: false,
|
|
4272
|
-
control: "boolean",
|
|
4273
|
-
type: "boolean",
|
|
4274
|
-
description: "Indicates whether spell checking is allowed for the element."
|
|
4275
|
-
},
|
|
4276
|
-
src: {
|
|
4277
|
-
required: false,
|
|
4278
|
-
control: "text",
|
|
4279
|
-
type: "string",
|
|
4280
|
-
description: "The URL of the embeddable content."
|
|
4281
|
-
},
|
|
4282
|
-
srcSet: {
|
|
4283
|
-
required: false,
|
|
4284
|
-
control: "text",
|
|
4285
|
-
type: "string",
|
|
4286
|
-
description: "One or more responsive image candidates."
|
|
4287
|
-
},
|
|
4288
|
-
suppressContentEditableWarning: {
|
|
4289
|
-
required: false,
|
|
4290
|
-
control: "boolean",
|
|
4291
|
-
type: "boolean"
|
|
4292
|
-
},
|
|
4293
|
-
suppressHydrationWarning: {
|
|
4294
|
-
required: false,
|
|
4295
|
-
control: "boolean",
|
|
4296
|
-
type: "boolean"
|
|
4297
|
-
},
|
|
4298
|
-
tabIndex: {
|
|
4299
|
-
required: false,
|
|
4300
|
-
control: "number",
|
|
4301
|
-
type: "number",
|
|
4302
|
-
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
4303
|
-
},
|
|
4304
|
-
title: {
|
|
4305
|
-
required: false,
|
|
4306
|
-
control: "text",
|
|
4307
|
-
type: "string",
|
|
4308
|
-
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
4309
|
-
},
|
|
4310
|
-
translate: {
|
|
4311
|
-
required: false,
|
|
4312
|
-
control: "radio",
|
|
4313
|
-
type: "string",
|
|
4314
|
-
options: ["yes", "no"],
|
|
4315
|
-
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
4316
|
-
},
|
|
4317
|
-
typeof: { required: false, control: "text", type: "string" },
|
|
4318
|
-
unselectable: {
|
|
4319
|
-
required: false,
|
|
4320
|
-
control: "radio",
|
|
4321
|
-
type: "string",
|
|
4322
|
-
options: ["on", "off"]
|
|
4323
|
-
},
|
|
4324
|
-
useMap: { required: false, control: "text", type: "string" },
|
|
4325
|
-
vocab: { required: false, control: "text", type: "string" },
|
|
4326
|
-
width: {
|
|
4327
|
-
required: false,
|
|
4328
|
-
control: "number",
|
|
4329
|
-
type: "number",
|
|
4330
|
-
description: "Defines the image\u2019s width in pixels."
|
|
4331
|
-
}
|
|
4332
|
-
};
|
|
4333
|
-
|
|
4334
|
-
// src/vimeo-preview-image.ws.ts
|
|
4335
|
-
var meta32 = {
|
|
4336
|
-
...meta21,
|
|
4337
|
-
category: "hidden",
|
|
4338
|
-
label: "Preview Image",
|
|
4339
|
-
requiredAncestors: ["Vimeo"]
|
|
4340
|
-
};
|
|
4341
|
-
var propsMeta7 = {
|
|
4342
|
-
props: { ...props7, ...propsOverrides },
|
|
4343
|
-
initialProps: propsMeta4.initialProps
|
|
4344
|
-
};
|
|
4345
|
-
|
|
4346
|
-
// src/vimeo-play-button.ws.ts
|
|
4347
|
-
import {
|
|
4348
|
-
defaultStates as defaultStates26
|
|
4349
|
-
} from "@webstudio-is/react-sdk";
|
|
4350
|
-
import { ButtonElementIcon as ButtonElementIcon2 } from "@webstudio-is/icons/svg";
|
|
4351
|
-
import { button as button2 } from "@webstudio-is/sdk/normalize.css";
|
|
4352
|
-
var presetStyle27 = {
|
|
4353
|
-
button: button2
|
|
4354
|
-
};
|
|
4355
|
-
var meta33 = {
|
|
4356
|
-
category: "hidden",
|
|
4357
|
-
type: "container",
|
|
4358
|
-
invalidAncestors: ["Button"],
|
|
4359
|
-
requiredAncestors: ["Vimeo"],
|
|
4360
|
-
label: "Play Button",
|
|
4361
|
-
icon: ButtonElementIcon2,
|
|
4362
|
-
presetStyle: presetStyle27,
|
|
4363
|
-
states: defaultStates26
|
|
4364
|
-
};
|
|
4365
|
-
|
|
4366
|
-
// src/vimeo-spinner.ws.ts
|
|
4367
|
-
import {
|
|
4368
|
-
defaultStates as defaultStates27
|
|
4369
|
-
} from "@webstudio-is/react-sdk";
|
|
4370
|
-
import { div as div4 } from "@webstudio-is/sdk/normalize.css";
|
|
4371
|
-
import { BoxIcon as BoxIcon2 } from "@webstudio-is/icons/svg";
|
|
4372
|
-
var presetStyle28 = {
|
|
4373
|
-
div: div4
|
|
4374
|
-
};
|
|
4375
|
-
var meta34 = {
|
|
4376
|
-
type: "container",
|
|
4377
|
-
icon: BoxIcon2,
|
|
4378
|
-
states: defaultStates27,
|
|
4379
|
-
presetStyle: presetStyle28,
|
|
4380
|
-
category: "hidden",
|
|
4381
|
-
label: "Spinner",
|
|
4382
|
-
requiredAncestors: ["Vimeo"]
|
|
4383
|
-
};
|
|
4384
|
-
|
|
4385
|
-
// src/xml-node.ws.ts
|
|
4386
|
-
import { XmlIcon } from "@webstudio-is/icons/svg";
|
|
4387
|
-
import "@webstudio-is/react-sdk";
|
|
4388
|
-
var meta35 = {
|
|
4389
|
-
category: "xml",
|
|
4390
|
-
order: 6,
|
|
4391
|
-
type: "container",
|
|
4392
|
-
icon: XmlIcon,
|
|
4393
|
-
stylable: false,
|
|
4394
|
-
description: "XML Node"
|
|
4395
|
-
};
|
|
4396
|
-
|
|
4397
|
-
// src/time.ws.ts
|
|
4398
|
-
import { CalendarIcon } from "@webstudio-is/icons/svg";
|
|
4399
|
-
import {
|
|
4400
|
-
defaultStates as defaultStates28
|
|
4401
|
-
} from "@webstudio-is/react-sdk";
|
|
4402
|
-
import { time } from "@webstudio-is/sdk/normalize.css";
|
|
4403
|
-
var presetStyle29 = {
|
|
4404
|
-
time
|
|
4405
|
-
};
|
|
4406
|
-
var meta36 = {
|
|
4407
|
-
category: "data",
|
|
4408
|
-
type: "container",
|
|
4409
|
-
description: "Converts machine-readable date and time to a human-readable format.",
|
|
4410
|
-
icon: CalendarIcon,
|
|
4411
|
-
states: defaultStates28,
|
|
4412
|
-
presetStyle: presetStyle29,
|
|
4413
|
-
order: 5
|
|
4414
|
-
};
|
|
4415
|
-
|
|
4416
|
-
// src/select.ws.ts
|
|
4417
|
-
import { SelectIcon } from "@webstudio-is/icons/svg";
|
|
4418
|
-
import {
|
|
4419
|
-
defaultStates as defaultStates29
|
|
4420
|
-
} from "@webstudio-is/react-sdk";
|
|
4421
|
-
import { select } from "@webstudio-is/sdk/normalize.css";
|
|
4422
|
-
var presetStyle30 = {
|
|
4423
|
-
select: [
|
|
4424
|
-
...select,
|
|
4425
|
-
{
|
|
4426
|
-
property: "display",
|
|
4427
|
-
value: { type: "keyword", value: "block" }
|
|
4428
|
-
}
|
|
4429
|
-
]
|
|
4430
|
-
};
|
|
4431
|
-
var meta37 = {
|
|
4432
|
-
category: "forms",
|
|
4433
|
-
invalidAncestors: ["Button", "Link"],
|
|
4434
|
-
type: "container",
|
|
4435
|
-
description: "A drop-down menu for users to select a single option from a predefined list.",
|
|
4436
|
-
icon: SelectIcon,
|
|
4437
|
-
presetStyle: presetStyle30,
|
|
4438
|
-
order: 4,
|
|
4439
|
-
states: [
|
|
4440
|
-
...defaultStates29,
|
|
4441
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
4442
|
-
{ selector: ":valid", label: "Valid" },
|
|
4443
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
4444
|
-
{ selector: ":required", label: "Required" },
|
|
4445
|
-
{ selector: ":optional", label: "Optional" }
|
|
4446
|
-
],
|
|
4447
|
-
template: [
|
|
4448
|
-
{
|
|
4449
|
-
type: "instance",
|
|
4450
|
-
component: "Select",
|
|
4451
|
-
label: "Select",
|
|
4452
|
-
children: [
|
|
4453
|
-
{
|
|
4454
|
-
type: "instance",
|
|
4455
|
-
component: "Option",
|
|
4456
|
-
label: "Option",
|
|
4457
|
-
props: [
|
|
4458
|
-
{ type: "string", name: "label", value: "Please choose an option" },
|
|
4459
|
-
{ type: "string", name: "value", value: "" }
|
|
4460
|
-
],
|
|
4461
|
-
children: []
|
|
4462
|
-
},
|
|
4463
|
-
{
|
|
4464
|
-
type: "instance",
|
|
4465
|
-
component: "Option",
|
|
4466
|
-
label: "Option",
|
|
4467
|
-
props: [
|
|
4468
|
-
{ type: "string", name: "label", value: "Option A" },
|
|
4469
|
-
{ type: "string", name: "value", value: "a" }
|
|
4470
|
-
],
|
|
4471
|
-
children: []
|
|
4472
|
-
},
|
|
4473
|
-
{
|
|
4474
|
-
type: "instance",
|
|
4475
|
-
component: "Option",
|
|
4476
|
-
label: "Option",
|
|
4477
|
-
props: [
|
|
4478
|
-
{ type: "string", name: "label", value: "Option B" },
|
|
4479
|
-
{ type: "string", name: "value", value: "b" }
|
|
4480
|
-
],
|
|
4481
|
-
children: []
|
|
4482
|
-
},
|
|
4483
|
-
{
|
|
4484
|
-
type: "instance",
|
|
4485
|
-
component: "Option",
|
|
4486
|
-
label: "Option",
|
|
4487
|
-
props: [
|
|
4488
|
-
{ type: "string", name: "label", value: "Option C" },
|
|
4489
|
-
{ type: "string", name: "value", value: "c" }
|
|
4490
|
-
],
|
|
4491
|
-
children: []
|
|
4492
|
-
}
|
|
4493
|
-
]
|
|
4494
|
-
}
|
|
4495
|
-
]
|
|
4496
|
-
};
|
|
4497
|
-
|
|
4498
|
-
// src/option.ws.ts
|
|
4499
|
-
import { ItemIcon } from "@webstudio-is/icons/svg";
|
|
4500
|
-
import "@webstudio-is/react-sdk";
|
|
4501
|
-
var presetStyle31 = {
|
|
4502
|
-
option: [
|
|
4503
|
-
{
|
|
4504
|
-
property: "backgroundColor",
|
|
4505
|
-
state: ":checked",
|
|
4506
|
-
value: {
|
|
4507
|
-
type: "rgb",
|
|
4508
|
-
alpha: 1,
|
|
4509
|
-
r: 209,
|
|
4510
|
-
g: 209,
|
|
4511
|
-
b: 209
|
|
4512
|
-
}
|
|
4513
|
-
}
|
|
4514
|
-
]
|
|
4515
|
-
};
|
|
4516
|
-
var meta38 = {
|
|
4517
|
-
category: "hidden",
|
|
4518
|
-
// @todo: requiredAncestors should be ["Select", "Optgroup", "Datalist"] but that gives unreadable error when adding Select onto Canvas
|
|
4519
|
-
requiredAncestors: ["Select"],
|
|
4520
|
-
type: "control",
|
|
4521
|
-
description: "An item within a drop-down menu that users can select as their chosen value.",
|
|
4522
|
-
icon: ItemIcon,
|
|
4523
|
-
presetStyle: presetStyle31,
|
|
4524
|
-
states: [
|
|
4525
|
-
// Applies when option is being activated (clicked)
|
|
4526
|
-
{ selector: ":active", label: "Active" },
|
|
4527
|
-
// Applies to the currently selected option
|
|
4528
|
-
{ selector: ":checked", label: "Checked" },
|
|
4529
|
-
// For <option> elements: The :default pseudo-class selects the <option> that has the selected attribute when the page loads. This is true even if the user later selects a different option.
|
|
4530
|
-
{ selector: ":default", label: "Default" },
|
|
4531
|
-
{ selector: ":hover", label: "Hover" },
|
|
4532
|
-
{ selector: ":disabled", label: "Disabled" }
|
|
4533
|
-
]
|
|
4534
|
-
};
|
|
1
|
+
import { meta as o } from "./slot.ws.js";
|
|
2
|
+
import { meta as a } from "./fragment.ws.js";
|
|
3
|
+
import { meta as p } from "./html-embed.ws.js";
|
|
4
|
+
import { meta as s } from "./markdown-embed.ws.js";
|
|
5
|
+
import { meta as i } from "./content-embed.ws.js";
|
|
6
|
+
import { meta as d } from "./body.ws.js";
|
|
7
|
+
import { meta as c } from "./box.ws.js";
|
|
8
|
+
import { meta as B } from "./text.ws.js";
|
|
9
|
+
import { meta as b } from "./heading.ws.js";
|
|
10
|
+
import { meta as g } from "./paragraph.ws.js";
|
|
11
|
+
import { meta as I } from "./link.ws.js";
|
|
12
|
+
import { meta as V } from "./rich-text-link.ws.js";
|
|
13
|
+
import { meta as C } from "./span.ws.js";
|
|
14
|
+
import { meta as F } from "./bold.ws.js";
|
|
15
|
+
import { meta as R } from "./italic.ws.js";
|
|
16
|
+
import { meta as y } from "./superscript.ws.js";
|
|
17
|
+
import { meta as X } from "./subscript.ws.js";
|
|
18
|
+
import { meta as v } from "./button.ws.js";
|
|
19
|
+
import { meta as N } from "./input.ws.js";
|
|
20
|
+
import { meta as j, meta as z } from "./form.ws.js";
|
|
21
|
+
import { meta as D } from "./image.ws.js";
|
|
22
|
+
import { meta as J } from "./blockquote.ws.js";
|
|
23
|
+
import { meta as Q } from "./list.ws.js";
|
|
24
|
+
import { meta as W } from "./list-item.ws.js";
|
|
25
|
+
import { meta as Z } from "./separator.ws.js";
|
|
26
|
+
import { meta as $ } from "./code-text.ws.js";
|
|
27
|
+
import { meta as te } from "./label.ws.js";
|
|
28
|
+
import { meta as me } from "./textarea.ws.js";
|
|
29
|
+
import { meta as re } from "./radio-button.ws.js";
|
|
30
|
+
import { meta as xe } from "./checkbox.ws.js";
|
|
31
|
+
import { meta as fe } from "./vimeo.ws.js";
|
|
32
|
+
import { meta as ne } from "./vimeo-preview-image.ws.js";
|
|
33
|
+
import { meta as le } from "./vimeo-play-button.ws.js";
|
|
34
|
+
import { meta as ue } from "./vimeo-spinner.ws.js";
|
|
35
|
+
import { meta as Se } from "./xml-node.ws.js";
|
|
36
|
+
import { meta as Te } from "./xml-time.ws.js";
|
|
37
|
+
import { meta as ke } from "./time.ws.js";
|
|
38
|
+
import { meta as Le } from "./select.ws.js";
|
|
39
|
+
import { meta as he } from "./option.ws.js";
|
|
4535
40
|
export {
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
41
|
+
J as Blockquote,
|
|
42
|
+
d as Body,
|
|
43
|
+
F as Bold,
|
|
44
|
+
c as Box,
|
|
45
|
+
v as Button,
|
|
46
|
+
xe as Checkbox,
|
|
47
|
+
$ as CodeText,
|
|
48
|
+
i as ContentEmbed,
|
|
49
|
+
j as Form,
|
|
50
|
+
a as Fragment,
|
|
51
|
+
b as Heading,
|
|
52
|
+
p as HtmlEmbed,
|
|
53
|
+
D as Image,
|
|
54
|
+
N as Input,
|
|
55
|
+
R as Italic,
|
|
56
|
+
te as Label,
|
|
57
|
+
I as Link,
|
|
58
|
+
Q as List,
|
|
59
|
+
W as ListItem,
|
|
60
|
+
s as MarkdownEmbed,
|
|
61
|
+
he as Option,
|
|
62
|
+
g as Paragraph,
|
|
63
|
+
re as RadioButton,
|
|
64
|
+
z as RemixForm,
|
|
65
|
+
V as RichTextLink,
|
|
66
|
+
Le as Select,
|
|
67
|
+
Z as Separator,
|
|
68
|
+
o as Slot,
|
|
69
|
+
C as Span,
|
|
70
|
+
X as Subscript,
|
|
71
|
+
y as Superscript,
|
|
72
|
+
B as Text,
|
|
73
|
+
me as Textarea,
|
|
74
|
+
ke as Time,
|
|
75
|
+
fe as Vimeo,
|
|
76
|
+
le as VimeoPlayButton,
|
|
77
|
+
ne as VimeoPreviewImage,
|
|
78
|
+
ue as VimeoSpinner,
|
|
79
|
+
Se as XmlNode,
|
|
80
|
+
Te as XmlTime
|
|
4575
81
|
};
|