@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
|
@@ -2,7 +2,12 @@ import type { PropMeta } from "@webstudio-is/generate-arg-types";
|
|
|
2
2
|
|
|
3
3
|
export const props: Record<string, PropMeta> = {
|
|
4
4
|
about: { required: false, control: "text", type: "string" },
|
|
5
|
-
accessKey: {
|
|
5
|
+
accessKey: {
|
|
6
|
+
required: false,
|
|
7
|
+
control: "text",
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Keyboard shortcut to activate or add focus to the element.",
|
|
10
|
+
},
|
|
6
11
|
"aria-activedescendant": {
|
|
7
12
|
description:
|
|
8
13
|
"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
@@ -183,7 +188,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
183
188
|
},
|
|
184
189
|
"aria-label": {
|
|
185
190
|
description:
|
|
186
|
-
"
|
|
191
|
+
"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.",
|
|
187
192
|
required: false,
|
|
188
193
|
control: "text",
|
|
189
194
|
type: "string",
|
|
@@ -382,27 +387,120 @@ export const props: Record<string, PropMeta> = {
|
|
|
382
387
|
control: "text",
|
|
383
388
|
type: "string",
|
|
384
389
|
},
|
|
385
|
-
autoCapitalize: {
|
|
390
|
+
autoCapitalize: {
|
|
391
|
+
required: false,
|
|
392
|
+
control: "text",
|
|
393
|
+
type: "string",
|
|
394
|
+
description:
|
|
395
|
+
"Sets whether input is automatically capitalized when entered by user.",
|
|
396
|
+
},
|
|
386
397
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
387
|
-
autoFocus: {
|
|
398
|
+
autoFocus: {
|
|
399
|
+
required: false,
|
|
400
|
+
control: "boolean",
|
|
401
|
+
type: "boolean",
|
|
402
|
+
description:
|
|
403
|
+
"Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
|
|
404
|
+
},
|
|
388
405
|
autoSave: { required: false, control: "text", type: "string" },
|
|
389
406
|
className: { required: false, control: "text", type: "string" },
|
|
390
|
-
color: {
|
|
391
|
-
|
|
392
|
-
|
|
407
|
+
color: {
|
|
408
|
+
required: false,
|
|
409
|
+
control: "color",
|
|
410
|
+
type: "string",
|
|
411
|
+
description:
|
|
412
|
+
"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.",
|
|
413
|
+
},
|
|
414
|
+
content: {
|
|
415
|
+
required: false,
|
|
416
|
+
control: "text",
|
|
417
|
+
type: "string",
|
|
418
|
+
description:
|
|
419
|
+
"A value associated with http-equiv orname depending on the context.",
|
|
420
|
+
},
|
|
421
|
+
contextMenu: {
|
|
422
|
+
required: false,
|
|
423
|
+
control: "text",
|
|
424
|
+
type: "string",
|
|
425
|
+
description:
|
|
426
|
+
"Defines the ID of a menu element which willserve as the element's context menu.",
|
|
427
|
+
},
|
|
393
428
|
datatype: { required: false, control: "text", type: "string" },
|
|
394
429
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
395
|
-
dir: {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
430
|
+
dir: {
|
|
431
|
+
required: false,
|
|
432
|
+
control: "text",
|
|
433
|
+
type: "string",
|
|
434
|
+
description:
|
|
435
|
+
"Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
|
|
436
|
+
},
|
|
437
|
+
disabled: {
|
|
438
|
+
required: false,
|
|
439
|
+
control: "boolean",
|
|
440
|
+
type: "boolean",
|
|
441
|
+
description: "Indicates whether the user can interact with the element.",
|
|
442
|
+
},
|
|
443
|
+
draggable: {
|
|
444
|
+
required: false,
|
|
445
|
+
control: "boolean",
|
|
446
|
+
type: "boolean",
|
|
447
|
+
description: "Defines whether the element can be dragged.",
|
|
448
|
+
},
|
|
449
|
+
form: {
|
|
450
|
+
required: false,
|
|
451
|
+
control: "text",
|
|
452
|
+
type: "string",
|
|
453
|
+
description: "Indicates the form that is the owner of the element.",
|
|
454
|
+
},
|
|
455
|
+
formAction: {
|
|
456
|
+
required: false,
|
|
457
|
+
control: "text",
|
|
458
|
+
type: "string",
|
|
459
|
+
description:
|
|
460
|
+
"Indicates the action of the element, overriding the action defined inthe form.",
|
|
461
|
+
},
|
|
462
|
+
formEncType: {
|
|
463
|
+
required: false,
|
|
464
|
+
control: "text",
|
|
465
|
+
type: "string",
|
|
466
|
+
description:
|
|
467
|
+
'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.',
|
|
468
|
+
},
|
|
469
|
+
formMethod: {
|
|
470
|
+
required: false,
|
|
471
|
+
control: "text",
|
|
472
|
+
type: "string",
|
|
473
|
+
description:
|
|
474
|
+
'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.',
|
|
475
|
+
},
|
|
476
|
+
formNoValidate: {
|
|
477
|
+
required: false,
|
|
478
|
+
control: "boolean",
|
|
479
|
+
type: "boolean",
|
|
480
|
+
description:
|
|
481
|
+
'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.',
|
|
482
|
+
},
|
|
483
|
+
formTarget: {
|
|
484
|
+
required: false,
|
|
485
|
+
control: "text",
|
|
486
|
+
type: "string",
|
|
487
|
+
description:
|
|
488
|
+
'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.',
|
|
489
|
+
},
|
|
490
|
+
hidden: {
|
|
491
|
+
required: false,
|
|
492
|
+
control: "boolean",
|
|
493
|
+
type: "boolean",
|
|
494
|
+
description:
|
|
495
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
496
|
+
},
|
|
497
|
+
id: {
|
|
498
|
+
required: false,
|
|
499
|
+
control: "text",
|
|
500
|
+
type: "string",
|
|
501
|
+
description:
|
|
502
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
503
|
+
},
|
|
406
504
|
inputMode: {
|
|
407
505
|
description:
|
|
408
506
|
"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",
|
|
@@ -432,21 +530,60 @@ export const props: Record<string, PropMeta> = {
|
|
|
432
530
|
itemRef: { required: false, control: "text", type: "string" },
|
|
433
531
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
434
532
|
itemType: { required: false, control: "text", type: "string" },
|
|
435
|
-
lang: {
|
|
436
|
-
|
|
533
|
+
lang: {
|
|
534
|
+
required: false,
|
|
535
|
+
control: "text",
|
|
536
|
+
type: "string",
|
|
537
|
+
description: "Defines the language used in the element.",
|
|
538
|
+
},
|
|
539
|
+
name: {
|
|
540
|
+
required: false,
|
|
541
|
+
control: "text",
|
|
542
|
+
type: "string",
|
|
543
|
+
description:
|
|
544
|
+
"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).",
|
|
545
|
+
},
|
|
437
546
|
nonce: { required: false, control: "text", type: "string" },
|
|
438
|
-
placeholder: {
|
|
547
|
+
placeholder: {
|
|
548
|
+
required: false,
|
|
549
|
+
control: "text",
|
|
550
|
+
type: "string",
|
|
551
|
+
description:
|
|
552
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
553
|
+
},
|
|
439
554
|
prefix: { required: false, control: "text", type: "string" },
|
|
440
555
|
property: { required: false, control: "text", type: "string" },
|
|
441
556
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
442
|
-
rel: {
|
|
557
|
+
rel: {
|
|
558
|
+
required: false,
|
|
559
|
+
control: "text",
|
|
560
|
+
type: "string",
|
|
561
|
+
description:
|
|
562
|
+
"Specifies the relationship of the target object to the link object.",
|
|
563
|
+
},
|
|
443
564
|
resource: { required: false, control: "text", type: "string" },
|
|
444
565
|
results: { required: false, control: "number", type: "number" },
|
|
445
566
|
rev: { required: false, control: "text", type: "string" },
|
|
446
|
-
role: {
|
|
567
|
+
role: {
|
|
568
|
+
required: false,
|
|
569
|
+
control: "text",
|
|
570
|
+
type: "string",
|
|
571
|
+
description:
|
|
572
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
573
|
+
},
|
|
447
574
|
security: { required: false, control: "text", type: "string" },
|
|
448
|
-
slot: {
|
|
449
|
-
|
|
575
|
+
slot: {
|
|
576
|
+
required: false,
|
|
577
|
+
control: "text",
|
|
578
|
+
type: "string",
|
|
579
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
580
|
+
},
|
|
581
|
+
spellCheck: {
|
|
582
|
+
required: false,
|
|
583
|
+
control: "boolean",
|
|
584
|
+
type: "boolean",
|
|
585
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
586
|
+
},
|
|
450
587
|
suppressContentEditableWarning: {
|
|
451
588
|
required: false,
|
|
452
589
|
control: "boolean",
|
|
@@ -457,19 +594,34 @@ export const props: Record<string, PropMeta> = {
|
|
|
457
594
|
control: "boolean",
|
|
458
595
|
type: "boolean",
|
|
459
596
|
},
|
|
460
|
-
tabIndex: {
|
|
461
|
-
|
|
597
|
+
tabIndex: {
|
|
598
|
+
required: false,
|
|
599
|
+
control: "number",
|
|
600
|
+
type: "number",
|
|
601
|
+
description:
|
|
602
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
603
|
+
},
|
|
604
|
+
title: {
|
|
605
|
+
required: false,
|
|
606
|
+
control: "text",
|
|
607
|
+
type: "string",
|
|
608
|
+
description:
|
|
609
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
610
|
+
},
|
|
462
611
|
translate: {
|
|
463
612
|
required: false,
|
|
464
613
|
control: "radio",
|
|
465
614
|
type: "string",
|
|
466
615
|
options: ["yes", "no"],
|
|
616
|
+
description:
|
|
617
|
+
"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.",
|
|
467
618
|
},
|
|
468
619
|
type: {
|
|
469
620
|
required: false,
|
|
470
621
|
control: "radio",
|
|
471
622
|
type: "string",
|
|
472
623
|
options: ["button", "submit", "reset"],
|
|
624
|
+
description: "Defines the type of the element.",
|
|
473
625
|
},
|
|
474
626
|
typeof: { required: false, control: "text", type: "string" },
|
|
475
627
|
unselectable: {
|
|
@@ -2,8 +2,19 @@ import type { PropMeta } from "@webstudio-is/generate-arg-types";
|
|
|
2
2
|
|
|
3
3
|
export const props: Record<string, PropMeta> = {
|
|
4
4
|
about: { required: false, control: "text", type: "string" },
|
|
5
|
-
accessKey: {
|
|
6
|
-
|
|
5
|
+
accessKey: {
|
|
6
|
+
required: false,
|
|
7
|
+
control: "text",
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "Keyboard shortcut to activate or add focus to the element.",
|
|
10
|
+
},
|
|
11
|
+
alt: {
|
|
12
|
+
required: false,
|
|
13
|
+
control: "text",
|
|
14
|
+
type: "string",
|
|
15
|
+
description:
|
|
16
|
+
"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.",
|
|
17
|
+
},
|
|
7
18
|
"aria-activedescendant": {
|
|
8
19
|
description:
|
|
9
20
|
"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
@@ -184,7 +195,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
184
195
|
},
|
|
185
196
|
"aria-label": {
|
|
186
197
|
description:
|
|
187
|
-
"
|
|
198
|
+
"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.",
|
|
188
199
|
required: false,
|
|
189
200
|
control: "text",
|
|
190
201
|
type: "string",
|
|
@@ -383,19 +394,50 @@ export const props: Record<string, PropMeta> = {
|
|
|
383
394
|
control: "text",
|
|
384
395
|
type: "string",
|
|
385
396
|
},
|
|
386
|
-
autoCapitalize: {
|
|
397
|
+
autoCapitalize: {
|
|
398
|
+
required: false,
|
|
399
|
+
control: "text",
|
|
400
|
+
type: "string",
|
|
401
|
+
description:
|
|
402
|
+
"Sets whether input is automatically capitalized when entered by user.",
|
|
403
|
+
},
|
|
387
404
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
388
|
-
autoFocus: {
|
|
405
|
+
autoFocus: {
|
|
406
|
+
required: false,
|
|
407
|
+
control: "boolean",
|
|
408
|
+
type: "boolean",
|
|
409
|
+
description:
|
|
410
|
+
"Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
|
|
411
|
+
},
|
|
389
412
|
autoSave: { required: false, control: "text", type: "string" },
|
|
390
413
|
className: { required: false, control: "text", type: "string" },
|
|
391
|
-
color: {
|
|
392
|
-
|
|
393
|
-
|
|
414
|
+
color: {
|
|
415
|
+
required: false,
|
|
416
|
+
control: "color",
|
|
417
|
+
type: "string",
|
|
418
|
+
description:
|
|
419
|
+
"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.",
|
|
420
|
+
},
|
|
421
|
+
content: {
|
|
422
|
+
required: false,
|
|
423
|
+
control: "text",
|
|
424
|
+
type: "string",
|
|
425
|
+
description:
|
|
426
|
+
"A value associated with http-equiv orname depending on the context.",
|
|
427
|
+
},
|
|
428
|
+
contextMenu: {
|
|
429
|
+
required: false,
|
|
430
|
+
control: "text",
|
|
431
|
+
type: "string",
|
|
432
|
+
description:
|
|
433
|
+
"Defines the ID of a menu element which willserve as the element's context menu.",
|
|
434
|
+
},
|
|
394
435
|
crossOrigin: {
|
|
395
436
|
required: false,
|
|
396
437
|
control: "radio",
|
|
397
438
|
type: "string",
|
|
398
439
|
options: ["", "anonymous", "use-credentials"],
|
|
440
|
+
description: "How the element handles cross-origin requests",
|
|
399
441
|
},
|
|
400
442
|
datatype: { required: false, control: "text", type: "string" },
|
|
401
443
|
decoding: {
|
|
@@ -403,13 +445,42 @@ export const props: Record<string, PropMeta> = {
|
|
|
403
445
|
control: "radio",
|
|
404
446
|
type: "string",
|
|
405
447
|
options: ["async", "auto", "sync"],
|
|
448
|
+
description: "Indicates the preferred method to decode the image.",
|
|
406
449
|
},
|
|
407
450
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
408
|
-
dir: {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
451
|
+
dir: {
|
|
452
|
+
required: false,
|
|
453
|
+
control: "text",
|
|
454
|
+
type: "string",
|
|
455
|
+
description:
|
|
456
|
+
"Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
|
|
457
|
+
},
|
|
458
|
+
draggable: {
|
|
459
|
+
required: false,
|
|
460
|
+
control: "boolean",
|
|
461
|
+
type: "boolean",
|
|
462
|
+
description: "Defines whether the element can be dragged.",
|
|
463
|
+
},
|
|
464
|
+
height: {
|
|
465
|
+
required: false,
|
|
466
|
+
control: "number",
|
|
467
|
+
type: "number",
|
|
468
|
+
description: "Defines the image’s height in pixels.",
|
|
469
|
+
},
|
|
470
|
+
hidden: {
|
|
471
|
+
required: false,
|
|
472
|
+
control: "boolean",
|
|
473
|
+
type: "boolean",
|
|
474
|
+
description:
|
|
475
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
476
|
+
},
|
|
477
|
+
id: {
|
|
478
|
+
required: false,
|
|
479
|
+
control: "text",
|
|
480
|
+
type: "string",
|
|
481
|
+
description:
|
|
482
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
483
|
+
},
|
|
413
484
|
inputMode: {
|
|
414
485
|
description:
|
|
415
486
|
"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",
|
|
@@ -439,16 +510,29 @@ export const props: Record<string, PropMeta> = {
|
|
|
439
510
|
itemRef: { required: false, control: "text", type: "string" },
|
|
440
511
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
441
512
|
itemType: { required: false, control: "text", type: "string" },
|
|
442
|
-
lang: {
|
|
513
|
+
lang: {
|
|
514
|
+
required: false,
|
|
515
|
+
control: "text",
|
|
516
|
+
type: "string",
|
|
517
|
+
description: "Defines the language used in the element.",
|
|
518
|
+
},
|
|
443
519
|
loading: {
|
|
444
520
|
required: false,
|
|
445
521
|
control: "radio",
|
|
446
522
|
type: "string",
|
|
447
523
|
options: ["eager", "lazy"],
|
|
524
|
+
description:
|
|
525
|
+
"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.",
|
|
448
526
|
},
|
|
449
527
|
nonce: { required: false, control: "text", type: "string" },
|
|
450
528
|
optimize: { required: false, control: "boolean", type: "boolean" },
|
|
451
|
-
placeholder: {
|
|
529
|
+
placeholder: {
|
|
530
|
+
required: false,
|
|
531
|
+
control: "text",
|
|
532
|
+
type: "string",
|
|
533
|
+
description:
|
|
534
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
535
|
+
},
|
|
452
536
|
prefix: { required: false, control: "text", type: "string" },
|
|
453
537
|
property: { required: false, control: "text", type: "string" },
|
|
454
538
|
quality: { required: false, control: "number", type: "number" },
|
|
@@ -468,18 +552,51 @@ export const props: Record<string, PropMeta> = {
|
|
|
468
552
|
"strict-origin-when-cross-origin",
|
|
469
553
|
"unsafe-url",
|
|
470
554
|
],
|
|
555
|
+
description: "Specifies which referrer is sent when fetching the resource.",
|
|
556
|
+
},
|
|
557
|
+
rel: {
|
|
558
|
+
required: false,
|
|
559
|
+
control: "text",
|
|
560
|
+
type: "string",
|
|
561
|
+
description:
|
|
562
|
+
"Specifies the relationship of the target object to the link object.",
|
|
471
563
|
},
|
|
472
|
-
rel: { required: false, control: "text", type: "string" },
|
|
473
564
|
resource: { required: false, control: "text", type: "string" },
|
|
474
565
|
results: { required: false, control: "number", type: "number" },
|
|
475
566
|
rev: { required: false, control: "text", type: "string" },
|
|
476
|
-
role: {
|
|
567
|
+
role: {
|
|
568
|
+
required: false,
|
|
569
|
+
control: "text",
|
|
570
|
+
type: "string",
|
|
571
|
+
description:
|
|
572
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
573
|
+
},
|
|
477
574
|
security: { required: false, control: "text", type: "string" },
|
|
478
575
|
sizes: { required: false, control: "text", type: "string" },
|
|
479
|
-
slot: {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
576
|
+
slot: {
|
|
577
|
+
required: false,
|
|
578
|
+
control: "text",
|
|
579
|
+
type: "string",
|
|
580
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
581
|
+
},
|
|
582
|
+
spellCheck: {
|
|
583
|
+
required: false,
|
|
584
|
+
control: "boolean",
|
|
585
|
+
type: "boolean",
|
|
586
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
587
|
+
},
|
|
588
|
+
src: {
|
|
589
|
+
required: false,
|
|
590
|
+
control: "text",
|
|
591
|
+
type: "string",
|
|
592
|
+
description: "The URL of the embeddable content.",
|
|
593
|
+
},
|
|
594
|
+
srcSet: {
|
|
595
|
+
required: false,
|
|
596
|
+
control: "text",
|
|
597
|
+
type: "string",
|
|
598
|
+
description: "One or more responsive image candidates.",
|
|
599
|
+
},
|
|
483
600
|
suppressContentEditableWarning: {
|
|
484
601
|
required: false,
|
|
485
602
|
control: "boolean",
|
|
@@ -490,13 +607,27 @@ export const props: Record<string, PropMeta> = {
|
|
|
490
607
|
control: "boolean",
|
|
491
608
|
type: "boolean",
|
|
492
609
|
},
|
|
493
|
-
tabIndex: {
|
|
494
|
-
|
|
610
|
+
tabIndex: {
|
|
611
|
+
required: false,
|
|
612
|
+
control: "number",
|
|
613
|
+
type: "number",
|
|
614
|
+
description:
|
|
615
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
616
|
+
},
|
|
617
|
+
title: {
|
|
618
|
+
required: false,
|
|
619
|
+
control: "text",
|
|
620
|
+
type: "string",
|
|
621
|
+
description:
|
|
622
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
623
|
+
},
|
|
495
624
|
translate: {
|
|
496
625
|
required: false,
|
|
497
626
|
control: "radio",
|
|
498
627
|
type: "string",
|
|
499
628
|
options: ["yes", "no"],
|
|
629
|
+
description:
|
|
630
|
+
"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.",
|
|
500
631
|
},
|
|
501
632
|
typeof: { required: false, control: "text", type: "string" },
|
|
502
633
|
unselectable: {
|
|
@@ -507,5 +638,10 @@ export const props: Record<string, PropMeta> = {
|
|
|
507
638
|
},
|
|
508
639
|
useMap: { required: false, control: "text", type: "string" },
|
|
509
640
|
vocab: { required: false, control: "text", type: "string" },
|
|
510
|
-
width: {
|
|
641
|
+
width: {
|
|
642
|
+
required: false,
|
|
643
|
+
control: "number",
|
|
644
|
+
type: "number",
|
|
645
|
+
description: "Defines the image’s width in pixels.",
|
|
646
|
+
},
|
|
511
647
|
};
|