@webstudio-is/sdk-components-react 0.88.0 → 0.89.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,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,17 +510,30 @@ 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
|
defaultValue: "lazy",
|
|
448
524
|
options: ["eager", "lazy"],
|
|
525
|
+
description:
|
|
526
|
+
"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.",
|
|
449
527
|
},
|
|
450
528
|
nonce: { required: false, control: "text", type: "string" },
|
|
451
529
|
optimize: { required: false, control: "boolean", type: "boolean" },
|
|
452
|
-
placeholder: {
|
|
530
|
+
placeholder: {
|
|
531
|
+
required: false,
|
|
532
|
+
control: "text",
|
|
533
|
+
type: "string",
|
|
534
|
+
description:
|
|
535
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
536
|
+
},
|
|
453
537
|
prefix: { required: false, control: "text", type: "string" },
|
|
454
538
|
property: { required: false, control: "text", type: "string" },
|
|
455
539
|
quality: { required: false, control: "number", type: "number" },
|
|
@@ -469,18 +553,51 @@ export const props: Record<string, PropMeta> = {
|
|
|
469
553
|
"strict-origin-when-cross-origin",
|
|
470
554
|
"unsafe-url",
|
|
471
555
|
],
|
|
556
|
+
description: "Specifies which referrer is sent when fetching the resource.",
|
|
557
|
+
},
|
|
558
|
+
rel: {
|
|
559
|
+
required: false,
|
|
560
|
+
control: "text",
|
|
561
|
+
type: "string",
|
|
562
|
+
description:
|
|
563
|
+
"Specifies the relationship of the target object to the link object.",
|
|
472
564
|
},
|
|
473
|
-
rel: { required: false, control: "text", type: "string" },
|
|
474
565
|
resource: { required: false, control: "text", type: "string" },
|
|
475
566
|
results: { required: false, control: "number", type: "number" },
|
|
476
567
|
rev: { required: false, control: "text", type: "string" },
|
|
477
|
-
role: {
|
|
568
|
+
role: {
|
|
569
|
+
required: false,
|
|
570
|
+
control: "text",
|
|
571
|
+
type: "string",
|
|
572
|
+
description:
|
|
573
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
574
|
+
},
|
|
478
575
|
security: { required: false, control: "text", type: "string" },
|
|
479
576
|
sizes: { required: false, control: "text", type: "string" },
|
|
480
|
-
slot: {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
577
|
+
slot: {
|
|
578
|
+
required: false,
|
|
579
|
+
control: "text",
|
|
580
|
+
type: "string",
|
|
581
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
582
|
+
},
|
|
583
|
+
spellCheck: {
|
|
584
|
+
required: false,
|
|
585
|
+
control: "boolean",
|
|
586
|
+
type: "boolean",
|
|
587
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
588
|
+
},
|
|
589
|
+
src: {
|
|
590
|
+
required: false,
|
|
591
|
+
control: "text",
|
|
592
|
+
type: "string",
|
|
593
|
+
description: "The URL of the embeddable content.",
|
|
594
|
+
},
|
|
595
|
+
srcSet: {
|
|
596
|
+
required: false,
|
|
597
|
+
control: "text",
|
|
598
|
+
type: "string",
|
|
599
|
+
description: "One or more responsive image candidates.",
|
|
600
|
+
},
|
|
484
601
|
suppressContentEditableWarning: {
|
|
485
602
|
required: false,
|
|
486
603
|
control: "boolean",
|
|
@@ -491,13 +608,27 @@ export const props: Record<string, PropMeta> = {
|
|
|
491
608
|
control: "boolean",
|
|
492
609
|
type: "boolean",
|
|
493
610
|
},
|
|
494
|
-
tabIndex: {
|
|
495
|
-
|
|
611
|
+
tabIndex: {
|
|
612
|
+
required: false,
|
|
613
|
+
control: "number",
|
|
614
|
+
type: "number",
|
|
615
|
+
description:
|
|
616
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
617
|
+
},
|
|
618
|
+
title: {
|
|
619
|
+
required: false,
|
|
620
|
+
control: "text",
|
|
621
|
+
type: "string",
|
|
622
|
+
description:
|
|
623
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
624
|
+
},
|
|
496
625
|
translate: {
|
|
497
626
|
required: false,
|
|
498
627
|
control: "radio",
|
|
499
628
|
type: "string",
|
|
500
629
|
options: ["yes", "no"],
|
|
630
|
+
description:
|
|
631
|
+
"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.",
|
|
501
632
|
},
|
|
502
633
|
typeof: { required: false, control: "text", type: "string" },
|
|
503
634
|
unselectable: {
|
|
@@ -508,5 +639,10 @@ export const props: Record<string, PropMeta> = {
|
|
|
508
639
|
},
|
|
509
640
|
useMap: { required: false, control: "text", type: "string" },
|
|
510
641
|
vocab: { required: false, control: "text", type: "string" },
|
|
511
|
-
width: {
|
|
642
|
+
width: {
|
|
643
|
+
required: false,
|
|
644
|
+
control: "number",
|
|
645
|
+
type: "number",
|
|
646
|
+
description: "Defines the image’s width in pixels.",
|
|
647
|
+
},
|
|
512
648
|
};
|
|
@@ -2,9 +2,25 @@ 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
|
-
accept: {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
accept: {
|
|
6
|
+
required: false,
|
|
7
|
+
control: "text",
|
|
8
|
+
type: "string",
|
|
9
|
+
description: "List of types the server accepts, typically a file type.",
|
|
10
|
+
},
|
|
11
|
+
accessKey: {
|
|
12
|
+
required: false,
|
|
13
|
+
control: "text",
|
|
14
|
+
type: "string",
|
|
15
|
+
description: "Keyboard shortcut to activate or add focus to the element.",
|
|
16
|
+
},
|
|
17
|
+
alt: {
|
|
18
|
+
required: false,
|
|
19
|
+
control: "text",
|
|
20
|
+
type: "string",
|
|
21
|
+
description:
|
|
22
|
+
"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.",
|
|
23
|
+
},
|
|
8
24
|
"aria-activedescendant": {
|
|
9
25
|
description:
|
|
10
26
|
"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
@@ -185,7 +201,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
185
201
|
},
|
|
186
202
|
"aria-label": {
|
|
187
203
|
description:
|
|
188
|
-
"
|
|
204
|
+
"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.",
|
|
189
205
|
required: false,
|
|
190
206
|
control: "text",
|
|
191
207
|
type: "string",
|
|
@@ -384,36 +400,148 @@ export const props: Record<string, PropMeta> = {
|
|
|
384
400
|
control: "text",
|
|
385
401
|
type: "string",
|
|
386
402
|
},
|
|
387
|
-
autoCapitalize: {
|
|
388
|
-
|
|
403
|
+
autoCapitalize: {
|
|
404
|
+
required: false,
|
|
405
|
+
control: "text",
|
|
406
|
+
type: "string",
|
|
407
|
+
description:
|
|
408
|
+
"Sets whether input is automatically capitalized when entered by user.",
|
|
409
|
+
},
|
|
410
|
+
autoComplete: {
|
|
411
|
+
required: false,
|
|
412
|
+
control: "text",
|
|
413
|
+
type: "string",
|
|
414
|
+
description:
|
|
415
|
+
"Indicates whether controls in this form can by default have their valuesautomatically completed by the browser.",
|
|
416
|
+
},
|
|
389
417
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
390
|
-
autoFocus: {
|
|
418
|
+
autoFocus: {
|
|
419
|
+
required: false,
|
|
420
|
+
control: "boolean",
|
|
421
|
+
type: "boolean",
|
|
422
|
+
description:
|
|
423
|
+
"Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
|
|
424
|
+
},
|
|
391
425
|
autoSave: { required: false, control: "text", type: "string" },
|
|
392
|
-
checked: {
|
|
426
|
+
checked: {
|
|
427
|
+
required: false,
|
|
428
|
+
control: "boolean",
|
|
429
|
+
type: "boolean",
|
|
430
|
+
description:
|
|
431
|
+
"Indicates whether the element should be checked on page load.",
|
|
432
|
+
},
|
|
393
433
|
className: { required: false, control: "text", type: "string" },
|
|
394
|
-
color: {
|
|
395
|
-
|
|
396
|
-
|
|
434
|
+
color: {
|
|
435
|
+
required: false,
|
|
436
|
+
control: "color",
|
|
437
|
+
type: "string",
|
|
438
|
+
description:
|
|
439
|
+
"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.",
|
|
440
|
+
},
|
|
441
|
+
content: {
|
|
442
|
+
required: false,
|
|
443
|
+
control: "text",
|
|
444
|
+
type: "string",
|
|
445
|
+
description:
|
|
446
|
+
"A value associated with http-equiv orname depending on the context.",
|
|
447
|
+
},
|
|
448
|
+
contextMenu: {
|
|
449
|
+
required: false,
|
|
450
|
+
control: "text",
|
|
451
|
+
type: "string",
|
|
452
|
+
description:
|
|
453
|
+
"Defines the ID of a menu element which willserve as the element's context menu.",
|
|
454
|
+
},
|
|
397
455
|
datatype: { required: false, control: "text", type: "string" },
|
|
398
456
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
399
|
-
dir: {
|
|
400
|
-
|
|
401
|
-
|
|
457
|
+
dir: {
|
|
458
|
+
required: false,
|
|
459
|
+
control: "text",
|
|
460
|
+
type: "string",
|
|
461
|
+
description:
|
|
462
|
+
"Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
|
|
463
|
+
},
|
|
464
|
+
disabled: {
|
|
465
|
+
required: false,
|
|
466
|
+
control: "boolean",
|
|
467
|
+
type: "boolean",
|
|
468
|
+
description: "Indicates whether the user can interact with the element.",
|
|
469
|
+
},
|
|
470
|
+
draggable: {
|
|
471
|
+
required: false,
|
|
472
|
+
control: "boolean",
|
|
473
|
+
type: "boolean",
|
|
474
|
+
description: "Defines whether the element can be dragged.",
|
|
475
|
+
},
|
|
402
476
|
enterKeyHint: {
|
|
403
477
|
required: false,
|
|
404
478
|
control: "select",
|
|
405
479
|
type: "string",
|
|
406
480
|
options: ["search", "enter", "done", "go", "next", "previous", "send"],
|
|
481
|
+
description:
|
|
482
|
+
"The enterkeyhint specifies what action label (or icon) to present for the enter key onvirtual keyboards. The attribute can be used with form controls (such asthe value of textarea elements), or in elements in anediting host (e.g., using contenteditable attribute).",
|
|
483
|
+
},
|
|
484
|
+
form: {
|
|
485
|
+
required: false,
|
|
486
|
+
control: "text",
|
|
487
|
+
type: "string",
|
|
488
|
+
description: "Indicates the form that is the owner of the element.",
|
|
489
|
+
},
|
|
490
|
+
formAction: {
|
|
491
|
+
required: false,
|
|
492
|
+
control: "text",
|
|
493
|
+
type: "string",
|
|
494
|
+
description:
|
|
495
|
+
"Indicates the action of the element, overriding the action defined inthe form.",
|
|
496
|
+
},
|
|
497
|
+
formEncType: {
|
|
498
|
+
required: false,
|
|
499
|
+
control: "text",
|
|
500
|
+
type: "string",
|
|
501
|
+
description:
|
|
502
|
+
'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.',
|
|
503
|
+
},
|
|
504
|
+
formMethod: {
|
|
505
|
+
required: false,
|
|
506
|
+
control: "text",
|
|
507
|
+
type: "string",
|
|
508
|
+
description:
|
|
509
|
+
'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.',
|
|
510
|
+
},
|
|
511
|
+
formNoValidate: {
|
|
512
|
+
required: false,
|
|
513
|
+
control: "boolean",
|
|
514
|
+
type: "boolean",
|
|
515
|
+
description:
|
|
516
|
+
'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.',
|
|
517
|
+
},
|
|
518
|
+
formTarget: {
|
|
519
|
+
required: false,
|
|
520
|
+
control: "text",
|
|
521
|
+
type: "string",
|
|
522
|
+
description:
|
|
523
|
+
'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.',
|
|
524
|
+
},
|
|
525
|
+
height: {
|
|
526
|
+
required: false,
|
|
527
|
+
control: "number",
|
|
528
|
+
type: "number",
|
|
529
|
+
description: "Defines the image’s height in pixels.",
|
|
530
|
+
},
|
|
531
|
+
hidden: {
|
|
532
|
+
required: false,
|
|
533
|
+
control: "boolean",
|
|
534
|
+
type: "boolean",
|
|
535
|
+
description:
|
|
536
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
537
|
+
},
|
|
538
|
+
id: {
|
|
539
|
+
required: false,
|
|
540
|
+
control: "text",
|
|
541
|
+
type: "string",
|
|
542
|
+
description:
|
|
543
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
407
544
|
},
|
|
408
|
-
form: { required: false, control: "text", type: "string" },
|
|
409
|
-
formAction: { required: false, control: "text", type: "string" },
|
|
410
|
-
formEncType: { required: false, control: "text", type: "string" },
|
|
411
|
-
formMethod: { required: false, control: "text", type: "string" },
|
|
412
|
-
formNoValidate: { required: false, control: "boolean", type: "boolean" },
|
|
413
|
-
formTarget: { required: false, control: "text", type: "string" },
|
|
414
|
-
height: { required: false, control: "number", type: "number" },
|
|
415
|
-
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
416
|
-
id: { required: false, control: "text", type: "string" },
|
|
417
545
|
inputMode: {
|
|
418
546
|
description:
|
|
419
547
|
"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",
|
|
@@ -443,32 +571,133 @@ export const props: Record<string, PropMeta> = {
|
|
|
443
571
|
itemRef: { required: false, control: "text", type: "string" },
|
|
444
572
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
445
573
|
itemType: { required: false, control: "text", type: "string" },
|
|
446
|
-
lang: {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
574
|
+
lang: {
|
|
575
|
+
required: false,
|
|
576
|
+
control: "text",
|
|
577
|
+
type: "string",
|
|
578
|
+
description: "Defines the language used in the element.",
|
|
579
|
+
},
|
|
580
|
+
list: {
|
|
581
|
+
required: false,
|
|
582
|
+
control: "text",
|
|
583
|
+
type: "string",
|
|
584
|
+
description:
|
|
585
|
+
"Identifies a list of pre-defined options to suggest to the user.",
|
|
586
|
+
},
|
|
587
|
+
max: {
|
|
588
|
+
required: false,
|
|
589
|
+
control: "number",
|
|
590
|
+
type: "number",
|
|
591
|
+
description: "Indicates the maximum value allowed.",
|
|
592
|
+
},
|
|
593
|
+
maxLength: {
|
|
594
|
+
required: false,
|
|
595
|
+
control: "number",
|
|
596
|
+
type: "number",
|
|
597
|
+
description:
|
|
598
|
+
"Defines the maximum number of characters allowed in the element.",
|
|
599
|
+
},
|
|
600
|
+
min: {
|
|
601
|
+
required: false,
|
|
602
|
+
control: "number",
|
|
603
|
+
type: "number",
|
|
604
|
+
description: "Indicates the minimum value allowed.",
|
|
605
|
+
},
|
|
606
|
+
minLength: {
|
|
607
|
+
required: false,
|
|
608
|
+
control: "number",
|
|
609
|
+
type: "number",
|
|
610
|
+
description:
|
|
611
|
+
"Defines the minimum number of characters allowed in the element.",
|
|
612
|
+
},
|
|
613
|
+
multiple: {
|
|
614
|
+
required: false,
|
|
615
|
+
control: "boolean",
|
|
616
|
+
type: "boolean",
|
|
617
|
+
description:
|
|
618
|
+
"Indicates whether multiple values can be entered in an input of the type email or file.",
|
|
619
|
+
},
|
|
620
|
+
name: {
|
|
621
|
+
required: false,
|
|
622
|
+
control: "text",
|
|
623
|
+
type: "string",
|
|
624
|
+
description:
|
|
625
|
+
"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).",
|
|
626
|
+
},
|
|
454
627
|
nonce: { required: false, control: "text", type: "string" },
|
|
455
|
-
pattern: {
|
|
456
|
-
|
|
628
|
+
pattern: {
|
|
629
|
+
required: false,
|
|
630
|
+
control: "text",
|
|
631
|
+
type: "string",
|
|
632
|
+
description:
|
|
633
|
+
"Defines a regular expression which the element's value will be validated against.",
|
|
634
|
+
},
|
|
635
|
+
placeholder: {
|
|
636
|
+
required: false,
|
|
637
|
+
control: "text",
|
|
638
|
+
type: "string",
|
|
639
|
+
description:
|
|
640
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
641
|
+
},
|
|
457
642
|
prefix: { required: false, control: "text", type: "string" },
|
|
458
643
|
property: { required: false, control: "text", type: "string" },
|
|
459
644
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
460
|
-
readOnly: {
|
|
461
|
-
|
|
462
|
-
|
|
645
|
+
readOnly: {
|
|
646
|
+
required: false,
|
|
647
|
+
control: "boolean",
|
|
648
|
+
type: "boolean",
|
|
649
|
+
description: "Indicates whether the element can be edited.",
|
|
650
|
+
},
|
|
651
|
+
rel: {
|
|
652
|
+
required: false,
|
|
653
|
+
control: "text",
|
|
654
|
+
type: "string",
|
|
655
|
+
description:
|
|
656
|
+
"Specifies the relationship of the target object to the link object.",
|
|
657
|
+
},
|
|
658
|
+
required: {
|
|
659
|
+
required: false,
|
|
660
|
+
control: "boolean",
|
|
661
|
+
type: "boolean",
|
|
662
|
+
description:
|
|
663
|
+
"Indicates whether this form element must be filled before the form can be submitted.",
|
|
664
|
+
},
|
|
463
665
|
resource: { required: false, control: "text", type: "string" },
|
|
464
666
|
results: { required: false, control: "number", type: "number" },
|
|
465
667
|
rev: { required: false, control: "text", type: "string" },
|
|
466
|
-
role: {
|
|
668
|
+
role: {
|
|
669
|
+
required: false,
|
|
670
|
+
control: "text",
|
|
671
|
+
type: "string",
|
|
672
|
+
description:
|
|
673
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
674
|
+
},
|
|
467
675
|
security: { required: false, control: "text", type: "string" },
|
|
468
|
-
size: {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
676
|
+
size: {
|
|
677
|
+
required: false,
|
|
678
|
+
control: "number",
|
|
679
|
+
type: "number",
|
|
680
|
+
description:
|
|
681
|
+
"Defines the width of the element (in pixels). If the element'stype attribute is text or password then it's the number of characters.",
|
|
682
|
+
},
|
|
683
|
+
slot: {
|
|
684
|
+
required: false,
|
|
685
|
+
control: "text",
|
|
686
|
+
type: "string",
|
|
687
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
688
|
+
},
|
|
689
|
+
spellCheck: {
|
|
690
|
+
required: false,
|
|
691
|
+
control: "boolean",
|
|
692
|
+
type: "boolean",
|
|
693
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
694
|
+
},
|
|
695
|
+
src: {
|
|
696
|
+
required: false,
|
|
697
|
+
control: "text",
|
|
698
|
+
type: "string",
|
|
699
|
+
description: "The URL of the embeddable content.",
|
|
700
|
+
},
|
|
472
701
|
step: { required: false, control: "number", type: "number" },
|
|
473
702
|
suppressContentEditableWarning: {
|
|
474
703
|
required: false,
|
|
@@ -480,19 +709,35 @@ export const props: Record<string, PropMeta> = {
|
|
|
480
709
|
control: "boolean",
|
|
481
710
|
type: "boolean",
|
|
482
711
|
},
|
|
483
|
-
tabIndex: {
|
|
484
|
-
|
|
712
|
+
tabIndex: {
|
|
713
|
+
required: false,
|
|
714
|
+
control: "number",
|
|
715
|
+
type: "number",
|
|
716
|
+
description:
|
|
717
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
718
|
+
},
|
|
719
|
+
title: {
|
|
720
|
+
required: false,
|
|
721
|
+
control: "text",
|
|
722
|
+
type: "string",
|
|
723
|
+
description:
|
|
724
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
725
|
+
},
|
|
485
726
|
translate: {
|
|
486
727
|
required: false,
|
|
487
728
|
control: "radio",
|
|
488
729
|
type: "string",
|
|
489
730
|
options: ["yes", "no"],
|
|
731
|
+
description:
|
|
732
|
+
"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.",
|
|
490
733
|
},
|
|
491
734
|
type: {
|
|
492
735
|
required: false,
|
|
493
736
|
control: "select",
|
|
494
737
|
type: "string",
|
|
495
738
|
options: ["number", "text", "email", "password", "tel", "url"],
|
|
739
|
+
description:
|
|
740
|
+
"Specifies the type of data that this input will accept and helps the browser provide appropriate validation and formatting for that input type.",
|
|
496
741
|
},
|
|
497
742
|
typeof: { required: false, control: "text", type: "string" },
|
|
498
743
|
unselectable: {
|
|
@@ -502,5 +747,10 @@ export const props: Record<string, PropMeta> = {
|
|
|
502
747
|
options: ["on", "off"],
|
|
503
748
|
},
|
|
504
749
|
vocab: { required: false, control: "text", type: "string" },
|
|
505
|
-
width: {
|
|
750
|
+
width: {
|
|
751
|
+
required: false,
|
|
752
|
+
control: "number",
|
|
753
|
+
type: "number",
|
|
754
|
+
description: "Defines the image’s width in pixels.",
|
|
755
|
+
},
|
|
506
756
|
};
|