@webstudio-is/sdk-components-react 0.88.0 → 0.90.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 +117 -21
- package/lib/__generated__/body.props.js +111 -20
- package/lib/__generated__/bold.props.js +111 -20
- package/lib/__generated__/box.props.js +112 -20
- package/lib/__generated__/button.props.js +161 -29
- package/lib/__generated__/checkbox.props.js +264 -47
- package/lib/__generated__/code-text.props.js +111 -20
- package/lib/__generated__/form.props.js +159 -28
- package/lib/__generated__/heading.props.js +112 -20
- package/lib/__generated__/image.props.js +149 -29
- package/lib/__generated__/input.props.js +266 -48
- package/lib/__generated__/italic.props.js +111 -20
- package/lib/__generated__/label.props.js +123 -22
- package/lib/__generated__/link.props.js +145 -27
- package/lib/__generated__/list-item.props.js +111 -20
- package/lib/__generated__/list.props.js +126 -23
- package/lib/__generated__/paragraph.props.js +111 -20
- package/lib/__generated__/radio-button.props.js +264 -47
- package/lib/__generated__/rich-text-link.props.js +145 -27
- package/lib/__generated__/separator.props.js +111 -20
- package/lib/__generated__/span.props.js +111 -20
- package/lib/__generated__/subscript.props.js +111 -20
- package/lib/__generated__/superscript.props.js +111 -20
- package/lib/__generated__/text.props.js +112 -20
- package/lib/__generated__/textarea.props.js +177 -31
- package/lib/__generated__/vimeo-play-button.props.js +161 -29
- package/lib/__generated__/vimeo-preview-image.props.js +149 -29
- package/lib/__generated__/vimeo-spinner.props.js +111 -20
- package/lib/__generated__/vimeo.props.js +112 -21
- package/lib/blockquote.ws.js +1 -0
- package/lib/box.ws.js +1 -0
- package/lib/button.ws.js +1 -0
- package/lib/checkbox.ws.js +1 -0
- package/lib/cjs/__generated__/blockquote.props.js +117 -21
- package/lib/cjs/__generated__/body.props.js +111 -20
- package/lib/cjs/__generated__/bold.props.js +111 -20
- package/lib/cjs/__generated__/box.props.js +112 -20
- package/lib/cjs/__generated__/button.props.js +161 -29
- package/lib/cjs/__generated__/checkbox.props.js +264 -47
- package/lib/cjs/__generated__/code-text.props.js +111 -20
- package/lib/cjs/__generated__/form.props.js +159 -28
- package/lib/cjs/__generated__/heading.props.js +112 -20
- package/lib/cjs/__generated__/image.props.js +149 -29
- package/lib/cjs/__generated__/input.props.js +266 -48
- package/lib/cjs/__generated__/italic.props.js +111 -20
- package/lib/cjs/__generated__/label.props.js +123 -22
- package/lib/cjs/__generated__/link.props.js +145 -27
- package/lib/cjs/__generated__/list-item.props.js +111 -20
- package/lib/cjs/__generated__/list.props.js +126 -23
- package/lib/cjs/__generated__/paragraph.props.js +111 -20
- package/lib/cjs/__generated__/radio-button.props.js +264 -47
- package/lib/cjs/__generated__/rich-text-link.props.js +145 -27
- package/lib/cjs/__generated__/separator.props.js +111 -20
- package/lib/cjs/__generated__/span.props.js +111 -20
- package/lib/cjs/__generated__/subscript.props.js +111 -20
- package/lib/cjs/__generated__/superscript.props.js +111 -20
- package/lib/cjs/__generated__/text.props.js +112 -20
- package/lib/cjs/__generated__/textarea.props.js +177 -31
- package/lib/cjs/__generated__/vimeo-play-button.props.js +161 -29
- package/lib/cjs/__generated__/vimeo-preview-image.props.js +149 -29
- package/lib/cjs/__generated__/vimeo-spinner.props.js +111 -20
- package/lib/cjs/__generated__/vimeo.props.js +112 -21
- package/lib/cjs/blockquote.ws.js +1 -0
- package/lib/cjs/box.ws.js +1 -0
- package/lib/cjs/button.ws.js +1 -0
- package/lib/cjs/checkbox.ws.js +1 -0
- package/lib/cjs/code-text.ws.js +2 -0
- package/lib/cjs/form.ws.js +1 -0
- package/lib/cjs/heading.ws.js +2 -0
- package/lib/cjs/html-embed.ws.js +1 -0
- package/lib/cjs/image.ws.js +1 -0
- package/lib/cjs/input.ws.js +1 -0
- package/lib/cjs/label.ws.js +1 -1
- package/lib/cjs/link.ws.js +2 -0
- package/lib/cjs/list-item.ws.js +1 -0
- package/lib/cjs/list.ws.js +1 -0
- package/lib/cjs/paragraph.ws.js +2 -0
- package/lib/cjs/radio-button.ws.js +1 -0
- package/lib/cjs/separator.ws.js +1 -0
- package/lib/cjs/text.ws.js +1 -0
- package/lib/cjs/textarea.ws.js +1 -0
- package/lib/cjs/vimeo.ws.js +1 -0
- package/lib/code-text.ws.js +2 -0
- package/lib/form.ws.js +1 -0
- package/lib/heading.ws.js +2 -0
- package/lib/html-embed.ws.js +1 -0
- package/lib/image.ws.js +1 -0
- package/lib/input.ws.js +1 -0
- package/lib/label.ws.js +1 -1
- package/lib/link.ws.js +2 -0
- package/lib/list-item.ws.js +1 -0
- package/lib/list.ws.js +1 -0
- package/lib/paragraph.ws.js +2 -0
- package/lib/radio-button.ws.js +1 -0
- package/lib/separator.ws.js +1 -0
- package/lib/text.ws.js +1 -0
- package/lib/textarea.ws.js +1 -0
- package/lib/types/box.d.ts +1 -0
- package/lib/types/heading.d.ts +1 -0
- package/lib/types/list.d.ts +1 -0
- package/lib/types/text.d.ts +1 -0
- package/lib/types/vimeo.d.ts +1 -1
- package/lib/vimeo.ws.js +1 -0
- package/package.json +6 -6
- package/src/__generated__/blockquote.props.ts +131 -20
- package/src/__generated__/body.props.ts +124 -19
- package/src/__generated__/bold.props.ts +124 -19
- package/src/__generated__/box.props.ts +126 -19
- package/src/__generated__/button.props.ts +180 -27
- package/src/__generated__/checkbox.props.ts +292 -44
- package/src/__generated__/code-text.props.ts +124 -19
- package/src/__generated__/form.props.ts +179 -27
- package/src/__generated__/heading.props.ts +126 -19
- package/src/__generated__/image.props.ts +160 -24
- package/src/__generated__/input.props.ts +294 -44
- package/src/__generated__/italic.props.ts +124 -19
- package/src/__generated__/label.props.ts +137 -21
- package/src/__generated__/link.props.ts +159 -24
- package/src/__generated__/list-item.props.ts +124 -19
- package/src/__generated__/list.props.ts +140 -21
- package/src/__generated__/paragraph.props.ts +124 -19
- package/src/__generated__/radio-button.props.ts +292 -44
- package/src/__generated__/rich-text-link.props.ts +159 -24
- package/src/__generated__/separator.props.ts +124 -19
- package/src/__generated__/span.props.ts +124 -19
- package/src/__generated__/subscript.props.ts +124 -19
- package/src/__generated__/superscript.props.ts +124 -19
- package/src/__generated__/text.props.ts +126 -19
- package/src/__generated__/textarea.props.ts +195 -30
- package/src/__generated__/vimeo-play-button.props.ts +179 -27
- package/src/__generated__/vimeo-preview-image.props.ts +160 -24
- package/src/__generated__/vimeo-spinner.props.ts +124 -19
- package/src/__generated__/vimeo.props.ts +125 -20
- package/src/blockquote.ws.tsx +2 -0
- package/src/box.tsx +1 -0
- package/src/box.ws.ts +2 -0
- package/src/button.ws.tsx +2 -0
- package/src/checkbox.ws.tsx +2 -0
- package/src/code-text.ws.tsx +3 -0
- package/src/form.ws.tsx +1 -0
- package/src/heading.tsx +1 -0
- package/src/heading.ws.tsx +3 -0
- package/src/html-embed.ws.ts +1 -0
- package/src/image.ws.tsx +2 -0
- package/src/input.ws.tsx +2 -0
- package/src/label.ws.tsx +1 -1
- package/src/link.ws.tsx +3 -0
- package/src/list-item.ws.tsx +1 -0
- package/src/list.tsx +1 -0
- package/src/list.ws.tsx +1 -0
- package/src/paragraph.ws.tsx +2 -0
- package/src/radio-button.ws.tsx +2 -0
- package/src/separator.ws.tsx +2 -0
- package/src/text.tsx +1 -0
- package/src/text.ws.tsx +2 -0
- package/src/textarea.ws.tsx +2 -0
- package/src/vimeo.tsx +1 -1
- package/src/vimeo.ws.ts +2 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
const props = {
|
|
2
2
|
about: { required: false, control: "text", type: "string" },
|
|
3
|
-
accessKey: {
|
|
3
|
+
accessKey: {
|
|
4
|
+
required: false,
|
|
5
|
+
control: "text",
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "Keyboard shortcut to activate or add focus to the element."
|
|
8
|
+
},
|
|
4
9
|
"aria-activedescendant": {
|
|
5
10
|
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
6
11
|
required: false,
|
|
@@ -156,7 +161,7 @@ const props = {
|
|
|
156
161
|
type: "string"
|
|
157
162
|
},
|
|
158
163
|
"aria-label": {
|
|
159
|
-
description: "
|
|
164
|
+
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.",
|
|
160
165
|
required: false,
|
|
161
166
|
control: "text",
|
|
162
167
|
type: "string"
|
|
@@ -332,27 +337,107 @@ const props = {
|
|
|
332
337
|
control: "text",
|
|
333
338
|
type: "string"
|
|
334
339
|
},
|
|
335
|
-
autoCapitalize: {
|
|
340
|
+
autoCapitalize: {
|
|
341
|
+
required: false,
|
|
342
|
+
control: "text",
|
|
343
|
+
type: "string",
|
|
344
|
+
description: "Sets whether input is automatically capitalized when entered by user."
|
|
345
|
+
},
|
|
336
346
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
337
|
-
autoFocus: {
|
|
347
|
+
autoFocus: {
|
|
348
|
+
required: false,
|
|
349
|
+
control: "boolean",
|
|
350
|
+
type: "boolean",
|
|
351
|
+
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
352
|
+
},
|
|
338
353
|
autoSave: { required: false, control: "text", type: "string" },
|
|
339
354
|
className: { required: false, control: "text", type: "string" },
|
|
340
|
-
color: {
|
|
341
|
-
|
|
342
|
-
|
|
355
|
+
color: {
|
|
356
|
+
required: false,
|
|
357
|
+
control: "color",
|
|
358
|
+
type: "string",
|
|
359
|
+
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."
|
|
360
|
+
},
|
|
361
|
+
content: {
|
|
362
|
+
required: false,
|
|
363
|
+
control: "text",
|
|
364
|
+
type: "string",
|
|
365
|
+
description: "A value associated with http-equiv orname depending on the context."
|
|
366
|
+
},
|
|
367
|
+
contextMenu: {
|
|
368
|
+
required: false,
|
|
369
|
+
control: "text",
|
|
370
|
+
type: "string",
|
|
371
|
+
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
372
|
+
},
|
|
343
373
|
datatype: { required: false, control: "text", type: "string" },
|
|
344
374
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
345
|
-
dir: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
375
|
+
dir: {
|
|
376
|
+
required: false,
|
|
377
|
+
control: "text",
|
|
378
|
+
type: "string",
|
|
379
|
+
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
380
|
+
},
|
|
381
|
+
disabled: {
|
|
382
|
+
required: false,
|
|
383
|
+
control: "boolean",
|
|
384
|
+
type: "boolean",
|
|
385
|
+
description: "Indicates whether the user can interact with the element."
|
|
386
|
+
},
|
|
387
|
+
draggable: {
|
|
388
|
+
required: false,
|
|
389
|
+
control: "boolean",
|
|
390
|
+
type: "boolean",
|
|
391
|
+
description: "Defines whether the element can be dragged."
|
|
392
|
+
},
|
|
393
|
+
form: {
|
|
394
|
+
required: false,
|
|
395
|
+
control: "text",
|
|
396
|
+
type: "string",
|
|
397
|
+
description: "Indicates the form that is the owner of the element."
|
|
398
|
+
},
|
|
399
|
+
formAction: {
|
|
400
|
+
required: false,
|
|
401
|
+
control: "text",
|
|
402
|
+
type: "string",
|
|
403
|
+
description: "Indicates the action of the element, overriding the action defined inthe form."
|
|
404
|
+
},
|
|
405
|
+
formEncType: {
|
|
406
|
+
required: false,
|
|
407
|
+
control: "text",
|
|
408
|
+
type: "string",
|
|
409
|
+
description: `If the button/input is a submit button (e.g. type="submit"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides theenctype attribute of the button's form owner.`
|
|
410
|
+
},
|
|
411
|
+
formMethod: {
|
|
412
|
+
required: false,
|
|
413
|
+
control: "text",
|
|
414
|
+
type: "string",
|
|
415
|
+
description: `If the button/input is a submit button (e.g. type="submit"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button's form owner.`
|
|
416
|
+
},
|
|
417
|
+
formNoValidate: {
|
|
418
|
+
required: false,
|
|
419
|
+
control: "boolean",
|
|
420
|
+
type: "boolean",
|
|
421
|
+
description: `If the button/input is a submit button (e.g. type="submit"), this boolean attribute specifies that the form is not to be validatedwhen it is submitted. If this attribute is specified, it overrides thenovalidate attribute of the button's form owner.`
|
|
422
|
+
},
|
|
423
|
+
formTarget: {
|
|
424
|
+
required: false,
|
|
425
|
+
control: "text",
|
|
426
|
+
type: "string",
|
|
427
|
+
description: `If the button/input is a submit button (e.g. type="submit"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received aftersubmitting the form. If this attribute is specified, it overrides thetarget attribute of the button's form owner.`
|
|
428
|
+
},
|
|
429
|
+
hidden: {
|
|
430
|
+
required: false,
|
|
431
|
+
control: "boolean",
|
|
432
|
+
type: "boolean",
|
|
433
|
+
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
434
|
+
},
|
|
435
|
+
id: {
|
|
436
|
+
required: false,
|
|
437
|
+
control: "text",
|
|
438
|
+
type: "string",
|
|
439
|
+
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
440
|
+
},
|
|
356
441
|
inputMode: {
|
|
357
442
|
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
358
443
|
required: false,
|
|
@@ -380,21 +465,56 @@ const props = {
|
|
|
380
465
|
itemRef: { required: false, control: "text", type: "string" },
|
|
381
466
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
382
467
|
itemType: { required: false, control: "text", type: "string" },
|
|
383
|
-
lang: {
|
|
384
|
-
|
|
468
|
+
lang: {
|
|
469
|
+
required: false,
|
|
470
|
+
control: "text",
|
|
471
|
+
type: "string",
|
|
472
|
+
description: "Defines the language used in the element."
|
|
473
|
+
},
|
|
474
|
+
name: {
|
|
475
|
+
required: false,
|
|
476
|
+
control: "text",
|
|
477
|
+
type: "string",
|
|
478
|
+
description: "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes)."
|
|
479
|
+
},
|
|
385
480
|
nonce: { required: false, control: "text", type: "string" },
|
|
386
|
-
placeholder: {
|
|
481
|
+
placeholder: {
|
|
482
|
+
required: false,
|
|
483
|
+
control: "text",
|
|
484
|
+
type: "string",
|
|
485
|
+
description: "Provides a hint to the user of what can be entered in the field."
|
|
486
|
+
},
|
|
387
487
|
prefix: { required: false, control: "text", type: "string" },
|
|
388
488
|
property: { required: false, control: "text", type: "string" },
|
|
389
489
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
390
|
-
rel: {
|
|
490
|
+
rel: {
|
|
491
|
+
required: false,
|
|
492
|
+
control: "text",
|
|
493
|
+
type: "string",
|
|
494
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
495
|
+
},
|
|
391
496
|
resource: { required: false, control: "text", type: "string" },
|
|
392
497
|
results: { required: false, control: "number", type: "number" },
|
|
393
498
|
rev: { required: false, control: "text", type: "string" },
|
|
394
|
-
role: {
|
|
499
|
+
role: {
|
|
500
|
+
required: false,
|
|
501
|
+
control: "text",
|
|
502
|
+
type: "string",
|
|
503
|
+
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
504
|
+
},
|
|
395
505
|
security: { required: false, control: "text", type: "string" },
|
|
396
|
-
slot: {
|
|
397
|
-
|
|
506
|
+
slot: {
|
|
507
|
+
required: false,
|
|
508
|
+
control: "text",
|
|
509
|
+
type: "string",
|
|
510
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
511
|
+
},
|
|
512
|
+
spellCheck: {
|
|
513
|
+
required: false,
|
|
514
|
+
control: "boolean",
|
|
515
|
+
type: "boolean",
|
|
516
|
+
description: "Indicates whether spell checking is allowed for the element."
|
|
517
|
+
},
|
|
398
518
|
suppressContentEditableWarning: {
|
|
399
519
|
required: false,
|
|
400
520
|
control: "boolean",
|
|
@@ -405,19 +525,31 @@ const props = {
|
|
|
405
525
|
control: "boolean",
|
|
406
526
|
type: "boolean"
|
|
407
527
|
},
|
|
408
|
-
tabIndex: {
|
|
409
|
-
|
|
528
|
+
tabIndex: {
|
|
529
|
+
required: false,
|
|
530
|
+
control: "number",
|
|
531
|
+
type: "number",
|
|
532
|
+
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
533
|
+
},
|
|
534
|
+
title: {
|
|
535
|
+
required: false,
|
|
536
|
+
control: "text",
|
|
537
|
+
type: "string",
|
|
538
|
+
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
539
|
+
},
|
|
410
540
|
translate: {
|
|
411
541
|
required: false,
|
|
412
542
|
control: "radio",
|
|
413
543
|
type: "string",
|
|
414
|
-
options: ["yes", "no"]
|
|
544
|
+
options: ["yes", "no"],
|
|
545
|
+
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."
|
|
415
546
|
},
|
|
416
547
|
type: {
|
|
417
548
|
required: false,
|
|
418
549
|
control: "radio",
|
|
419
550
|
type: "string",
|
|
420
|
-
options: ["button", "submit", "reset"]
|
|
551
|
+
options: ["button", "submit", "reset"],
|
|
552
|
+
description: "Defines the type of the element."
|
|
421
553
|
},
|
|
422
554
|
typeof: { required: false, control: "text", type: "string" },
|
|
423
555
|
unselectable: {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
const props = {
|
|
2
2
|
about: { required: false, control: "text", type: "string" },
|
|
3
|
-
accessKey: {
|
|
4
|
-
|
|
3
|
+
accessKey: {
|
|
4
|
+
required: false,
|
|
5
|
+
control: "text",
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "Keyboard shortcut to activate or add focus to the element."
|
|
8
|
+
},
|
|
9
|
+
alt: {
|
|
10
|
+
required: false,
|
|
11
|
+
control: "text",
|
|
12
|
+
type: "string",
|
|
13
|
+
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."
|
|
14
|
+
},
|
|
5
15
|
"aria-activedescendant": {
|
|
6
16
|
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
7
17
|
required: false,
|
|
@@ -157,7 +167,7 @@ const props = {
|
|
|
157
167
|
type: "string"
|
|
158
168
|
},
|
|
159
169
|
"aria-label": {
|
|
160
|
-
description: "
|
|
170
|
+
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.",
|
|
161
171
|
required: false,
|
|
162
172
|
control: "text",
|
|
163
173
|
type: "string"
|
|
@@ -333,33 +343,85 @@ const props = {
|
|
|
333
343
|
control: "text",
|
|
334
344
|
type: "string"
|
|
335
345
|
},
|
|
336
|
-
autoCapitalize: {
|
|
346
|
+
autoCapitalize: {
|
|
347
|
+
required: false,
|
|
348
|
+
control: "text",
|
|
349
|
+
type: "string",
|
|
350
|
+
description: "Sets whether input is automatically capitalized when entered by user."
|
|
351
|
+
},
|
|
337
352
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
338
|
-
autoFocus: {
|
|
353
|
+
autoFocus: {
|
|
354
|
+
required: false,
|
|
355
|
+
control: "boolean",
|
|
356
|
+
type: "boolean",
|
|
357
|
+
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
358
|
+
},
|
|
339
359
|
autoSave: { required: false, control: "text", type: "string" },
|
|
340
360
|
className: { required: false, control: "text", type: "string" },
|
|
341
|
-
color: {
|
|
342
|
-
|
|
343
|
-
|
|
361
|
+
color: {
|
|
362
|
+
required: false,
|
|
363
|
+
control: "color",
|
|
364
|
+
type: "string",
|
|
365
|
+
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."
|
|
366
|
+
},
|
|
367
|
+
content: {
|
|
368
|
+
required: false,
|
|
369
|
+
control: "text",
|
|
370
|
+
type: "string",
|
|
371
|
+
description: "A value associated with http-equiv orname depending on the context."
|
|
372
|
+
},
|
|
373
|
+
contextMenu: {
|
|
374
|
+
required: false,
|
|
375
|
+
control: "text",
|
|
376
|
+
type: "string",
|
|
377
|
+
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
378
|
+
},
|
|
344
379
|
crossOrigin: {
|
|
345
380
|
required: false,
|
|
346
381
|
control: "radio",
|
|
347
382
|
type: "string",
|
|
348
|
-
options: ["", "anonymous", "use-credentials"]
|
|
383
|
+
options: ["", "anonymous", "use-credentials"],
|
|
384
|
+
description: "How the element handles cross-origin requests"
|
|
349
385
|
},
|
|
350
386
|
datatype: { required: false, control: "text", type: "string" },
|
|
351
387
|
decoding: {
|
|
352
388
|
required: false,
|
|
353
389
|
control: "radio",
|
|
354
390
|
type: "string",
|
|
355
|
-
options: ["async", "auto", "sync"]
|
|
391
|
+
options: ["async", "auto", "sync"],
|
|
392
|
+
description: "Indicates the preferred method to decode the image."
|
|
356
393
|
},
|
|
357
394
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
358
|
-
dir: {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
395
|
+
dir: {
|
|
396
|
+
required: false,
|
|
397
|
+
control: "text",
|
|
398
|
+
type: "string",
|
|
399
|
+
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
400
|
+
},
|
|
401
|
+
draggable: {
|
|
402
|
+
required: false,
|
|
403
|
+
control: "boolean",
|
|
404
|
+
type: "boolean",
|
|
405
|
+
description: "Defines whether the element can be dragged."
|
|
406
|
+
},
|
|
407
|
+
height: {
|
|
408
|
+
required: false,
|
|
409
|
+
control: "number",
|
|
410
|
+
type: "number",
|
|
411
|
+
description: "Defines the image\u2019s height in pixels."
|
|
412
|
+
},
|
|
413
|
+
hidden: {
|
|
414
|
+
required: false,
|
|
415
|
+
control: "boolean",
|
|
416
|
+
type: "boolean",
|
|
417
|
+
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
418
|
+
},
|
|
419
|
+
id: {
|
|
420
|
+
required: false,
|
|
421
|
+
control: "text",
|
|
422
|
+
type: "string",
|
|
423
|
+
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
424
|
+
},
|
|
363
425
|
inputMode: {
|
|
364
426
|
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
365
427
|
required: false,
|
|
@@ -387,16 +449,27 @@ const props = {
|
|
|
387
449
|
itemRef: { required: false, control: "text", type: "string" },
|
|
388
450
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
389
451
|
itemType: { required: false, control: "text", type: "string" },
|
|
390
|
-
lang: {
|
|
452
|
+
lang: {
|
|
453
|
+
required: false,
|
|
454
|
+
control: "text",
|
|
455
|
+
type: "string",
|
|
456
|
+
description: "Defines the language used in the element."
|
|
457
|
+
},
|
|
391
458
|
loading: {
|
|
392
459
|
required: false,
|
|
393
460
|
control: "radio",
|
|
394
461
|
type: "string",
|
|
395
|
-
options: ["eager", "lazy"]
|
|
462
|
+
options: ["eager", "lazy"],
|
|
463
|
+
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."
|
|
396
464
|
},
|
|
397
465
|
nonce: { required: false, control: "text", type: "string" },
|
|
398
466
|
optimize: { required: false, control: "boolean", type: "boolean" },
|
|
399
|
-
placeholder: {
|
|
467
|
+
placeholder: {
|
|
468
|
+
required: false,
|
|
469
|
+
control: "text",
|
|
470
|
+
type: "string",
|
|
471
|
+
description: "Provides a hint to the user of what can be entered in the field."
|
|
472
|
+
},
|
|
400
473
|
prefix: { required: false, control: "text", type: "string" },
|
|
401
474
|
property: { required: false, control: "text", type: "string" },
|
|
402
475
|
quality: { required: false, control: "number", type: "number" },
|
|
@@ -415,19 +488,50 @@ const props = {
|
|
|
415
488
|
"strict-origin",
|
|
416
489
|
"strict-origin-when-cross-origin",
|
|
417
490
|
"unsafe-url"
|
|
418
|
-
]
|
|
491
|
+
],
|
|
492
|
+
description: "Specifies which referrer is sent when fetching the resource."
|
|
493
|
+
},
|
|
494
|
+
rel: {
|
|
495
|
+
required: false,
|
|
496
|
+
control: "text",
|
|
497
|
+
type: "string",
|
|
498
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
419
499
|
},
|
|
420
|
-
rel: { required: false, control: "text", type: "string" },
|
|
421
500
|
resource: { required: false, control: "text", type: "string" },
|
|
422
501
|
results: { required: false, control: "number", type: "number" },
|
|
423
502
|
rev: { required: false, control: "text", type: "string" },
|
|
424
|
-
role: {
|
|
503
|
+
role: {
|
|
504
|
+
required: false,
|
|
505
|
+
control: "text",
|
|
506
|
+
type: "string",
|
|
507
|
+
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
508
|
+
},
|
|
425
509
|
security: { required: false, control: "text", type: "string" },
|
|
426
510
|
sizes: { required: false, control: "text", type: "string" },
|
|
427
|
-
slot: {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
511
|
+
slot: {
|
|
512
|
+
required: false,
|
|
513
|
+
control: "text",
|
|
514
|
+
type: "string",
|
|
515
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
516
|
+
},
|
|
517
|
+
spellCheck: {
|
|
518
|
+
required: false,
|
|
519
|
+
control: "boolean",
|
|
520
|
+
type: "boolean",
|
|
521
|
+
description: "Indicates whether spell checking is allowed for the element."
|
|
522
|
+
},
|
|
523
|
+
src: {
|
|
524
|
+
required: false,
|
|
525
|
+
control: "text",
|
|
526
|
+
type: "string",
|
|
527
|
+
description: "The URL of the embeddable content."
|
|
528
|
+
},
|
|
529
|
+
srcSet: {
|
|
530
|
+
required: false,
|
|
531
|
+
control: "text",
|
|
532
|
+
type: "string",
|
|
533
|
+
description: "One or more responsive image candidates."
|
|
534
|
+
},
|
|
431
535
|
suppressContentEditableWarning: {
|
|
432
536
|
required: false,
|
|
433
537
|
control: "boolean",
|
|
@@ -438,13 +542,24 @@ const props = {
|
|
|
438
542
|
control: "boolean",
|
|
439
543
|
type: "boolean"
|
|
440
544
|
},
|
|
441
|
-
tabIndex: {
|
|
442
|
-
|
|
545
|
+
tabIndex: {
|
|
546
|
+
required: false,
|
|
547
|
+
control: "number",
|
|
548
|
+
type: "number",
|
|
549
|
+
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
550
|
+
},
|
|
551
|
+
title: {
|
|
552
|
+
required: false,
|
|
553
|
+
control: "text",
|
|
554
|
+
type: "string",
|
|
555
|
+
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
556
|
+
},
|
|
443
557
|
translate: {
|
|
444
558
|
required: false,
|
|
445
559
|
control: "radio",
|
|
446
560
|
type: "string",
|
|
447
|
-
options: ["yes", "no"]
|
|
561
|
+
options: ["yes", "no"],
|
|
562
|
+
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."
|
|
448
563
|
},
|
|
449
564
|
typeof: { required: false, control: "text", type: "string" },
|
|
450
565
|
unselectable: {
|
|
@@ -455,7 +570,12 @@ const props = {
|
|
|
455
570
|
},
|
|
456
571
|
useMap: { required: false, control: "text", type: "string" },
|
|
457
572
|
vocab: { required: false, control: "text", type: "string" },
|
|
458
|
-
width: {
|
|
573
|
+
width: {
|
|
574
|
+
required: false,
|
|
575
|
+
control: "number",
|
|
576
|
+
type: "number",
|
|
577
|
+
description: "Defines the image\u2019s width in pixels."
|
|
578
|
+
}
|
|
459
579
|
};
|
|
460
580
|
export {
|
|
461
581
|
props
|