@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,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,20 +387,73 @@ 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
|
-
|
|
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
|
+
draggable: {
|
|
438
|
+
required: false,
|
|
439
|
+
control: "boolean",
|
|
440
|
+
type: "boolean",
|
|
441
|
+
description: "Defines whether the element can be dragged.",
|
|
442
|
+
},
|
|
443
|
+
hidden: {
|
|
444
|
+
required: false,
|
|
445
|
+
control: "boolean",
|
|
446
|
+
type: "boolean",
|
|
447
|
+
description:
|
|
448
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
449
|
+
},
|
|
450
|
+
id: {
|
|
451
|
+
required: false,
|
|
452
|
+
control: "text",
|
|
453
|
+
type: "string",
|
|
454
|
+
description:
|
|
455
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
456
|
+
},
|
|
399
457
|
inputMode: {
|
|
400
458
|
description:
|
|
401
459
|
"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",
|
|
@@ -425,20 +483,53 @@ export const props: Record<string, PropMeta> = {
|
|
|
425
483
|
itemRef: { required: false, control: "text", type: "string" },
|
|
426
484
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
427
485
|
itemType: { required: false, control: "text", type: "string" },
|
|
428
|
-
lang: {
|
|
486
|
+
lang: {
|
|
487
|
+
required: false,
|
|
488
|
+
control: "text",
|
|
489
|
+
type: "string",
|
|
490
|
+
description: "Defines the language used in the element.",
|
|
491
|
+
},
|
|
429
492
|
nonce: { required: false, control: "text", type: "string" },
|
|
430
|
-
placeholder: {
|
|
493
|
+
placeholder: {
|
|
494
|
+
required: false,
|
|
495
|
+
control: "text",
|
|
496
|
+
type: "string",
|
|
497
|
+
description:
|
|
498
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
499
|
+
},
|
|
431
500
|
prefix: { required: false, control: "text", type: "string" },
|
|
432
501
|
property: { required: false, control: "text", type: "string" },
|
|
433
502
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
434
|
-
rel: {
|
|
503
|
+
rel: {
|
|
504
|
+
required: false,
|
|
505
|
+
control: "text",
|
|
506
|
+
type: "string",
|
|
507
|
+
description:
|
|
508
|
+
"Specifies the relationship of the target object to the link object.",
|
|
509
|
+
},
|
|
435
510
|
resource: { required: false, control: "text", type: "string" },
|
|
436
511
|
results: { required: false, control: "number", type: "number" },
|
|
437
512
|
rev: { required: false, control: "text", type: "string" },
|
|
438
|
-
role: {
|
|
513
|
+
role: {
|
|
514
|
+
required: false,
|
|
515
|
+
control: "text",
|
|
516
|
+
type: "string",
|
|
517
|
+
description:
|
|
518
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
519
|
+
},
|
|
439
520
|
security: { required: false, control: "text", type: "string" },
|
|
440
|
-
slot: {
|
|
441
|
-
|
|
521
|
+
slot: {
|
|
522
|
+
required: false,
|
|
523
|
+
control: "text",
|
|
524
|
+
type: "string",
|
|
525
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
526
|
+
},
|
|
527
|
+
spellCheck: {
|
|
528
|
+
required: false,
|
|
529
|
+
control: "boolean",
|
|
530
|
+
type: "boolean",
|
|
531
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
532
|
+
},
|
|
442
533
|
suppressContentEditableWarning: {
|
|
443
534
|
required: false,
|
|
444
535
|
control: "boolean",
|
|
@@ -449,13 +540,27 @@ export const props: Record<string, PropMeta> = {
|
|
|
449
540
|
control: "boolean",
|
|
450
541
|
type: "boolean",
|
|
451
542
|
},
|
|
452
|
-
tabIndex: {
|
|
453
|
-
|
|
543
|
+
tabIndex: {
|
|
544
|
+
required: false,
|
|
545
|
+
control: "number",
|
|
546
|
+
type: "number",
|
|
547
|
+
description:
|
|
548
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
549
|
+
},
|
|
550
|
+
title: {
|
|
551
|
+
required: false,
|
|
552
|
+
control: "text",
|
|
553
|
+
type: "string",
|
|
554
|
+
description:
|
|
555
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
556
|
+
},
|
|
454
557
|
translate: {
|
|
455
558
|
required: false,
|
|
456
559
|
control: "radio",
|
|
457
560
|
type: "string",
|
|
458
561
|
options: ["yes", "no"],
|
|
562
|
+
description:
|
|
563
|
+
"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.",
|
|
459
564
|
},
|
|
460
565
|
typeof: { required: false, control: "text", type: "string" },
|
|
461
566
|
unselectable: {
|
|
@@ -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,22 +387,86 @@ 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
|
-
|
|
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
|
+
draggable: {
|
|
438
|
+
required: false,
|
|
439
|
+
control: "boolean",
|
|
440
|
+
type: "boolean",
|
|
441
|
+
description: "Defines whether the element can be dragged.",
|
|
442
|
+
},
|
|
443
|
+
form: {
|
|
444
|
+
required: false,
|
|
445
|
+
control: "text",
|
|
446
|
+
type: "string",
|
|
447
|
+
description: "Indicates the form that is the owner of the element.",
|
|
448
|
+
},
|
|
449
|
+
hidden: {
|
|
450
|
+
required: false,
|
|
451
|
+
control: "boolean",
|
|
452
|
+
type: "boolean",
|
|
453
|
+
description:
|
|
454
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
455
|
+
},
|
|
456
|
+
htmlFor: {
|
|
457
|
+
required: false,
|
|
458
|
+
control: "text",
|
|
459
|
+
type: "string",
|
|
460
|
+
description:
|
|
461
|
+
"Associates this Label with an Input. The value of the “For” attribute should match the ID attribute of the corresponding Input element",
|
|
462
|
+
},
|
|
463
|
+
id: {
|
|
464
|
+
required: false,
|
|
465
|
+
control: "text",
|
|
466
|
+
type: "string",
|
|
467
|
+
description:
|
|
468
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
469
|
+
},
|
|
401
470
|
inputMode: {
|
|
402
471
|
description:
|
|
403
472
|
"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",
|
|
@@ -427,20 +496,53 @@ export const props: Record<string, PropMeta> = {
|
|
|
427
496
|
itemRef: { required: false, control: "text", type: "string" },
|
|
428
497
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
429
498
|
itemType: { required: false, control: "text", type: "string" },
|
|
430
|
-
lang: {
|
|
499
|
+
lang: {
|
|
500
|
+
required: false,
|
|
501
|
+
control: "text",
|
|
502
|
+
type: "string",
|
|
503
|
+
description: "Defines the language used in the element.",
|
|
504
|
+
},
|
|
431
505
|
nonce: { required: false, control: "text", type: "string" },
|
|
432
|
-
placeholder: {
|
|
506
|
+
placeholder: {
|
|
507
|
+
required: false,
|
|
508
|
+
control: "text",
|
|
509
|
+
type: "string",
|
|
510
|
+
description:
|
|
511
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
512
|
+
},
|
|
433
513
|
prefix: { required: false, control: "text", type: "string" },
|
|
434
514
|
property: { required: false, control: "text", type: "string" },
|
|
435
515
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
436
|
-
rel: {
|
|
516
|
+
rel: {
|
|
517
|
+
required: false,
|
|
518
|
+
control: "text",
|
|
519
|
+
type: "string",
|
|
520
|
+
description:
|
|
521
|
+
"Specifies the relationship of the target object to the link object.",
|
|
522
|
+
},
|
|
437
523
|
resource: { required: false, control: "text", type: "string" },
|
|
438
524
|
results: { required: false, control: "number", type: "number" },
|
|
439
525
|
rev: { required: false, control: "text", type: "string" },
|
|
440
|
-
role: {
|
|
526
|
+
role: {
|
|
527
|
+
required: false,
|
|
528
|
+
control: "text",
|
|
529
|
+
type: "string",
|
|
530
|
+
description:
|
|
531
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
532
|
+
},
|
|
441
533
|
security: { required: false, control: "text", type: "string" },
|
|
442
|
-
slot: {
|
|
443
|
-
|
|
534
|
+
slot: {
|
|
535
|
+
required: false,
|
|
536
|
+
control: "text",
|
|
537
|
+
type: "string",
|
|
538
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
539
|
+
},
|
|
540
|
+
spellCheck: {
|
|
541
|
+
required: false,
|
|
542
|
+
control: "boolean",
|
|
543
|
+
type: "boolean",
|
|
544
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
545
|
+
},
|
|
444
546
|
suppressContentEditableWarning: {
|
|
445
547
|
required: false,
|
|
446
548
|
control: "boolean",
|
|
@@ -451,13 +553,27 @@ export const props: Record<string, PropMeta> = {
|
|
|
451
553
|
control: "boolean",
|
|
452
554
|
type: "boolean",
|
|
453
555
|
},
|
|
454
|
-
tabIndex: {
|
|
455
|
-
|
|
556
|
+
tabIndex: {
|
|
557
|
+
required: false,
|
|
558
|
+
control: "number",
|
|
559
|
+
type: "number",
|
|
560
|
+
description:
|
|
561
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
562
|
+
},
|
|
563
|
+
title: {
|
|
564
|
+
required: false,
|
|
565
|
+
control: "text",
|
|
566
|
+
type: "string",
|
|
567
|
+
description:
|
|
568
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
569
|
+
},
|
|
456
570
|
translate: {
|
|
457
571
|
required: false,
|
|
458
572
|
control: "radio",
|
|
459
573
|
type: "string",
|
|
460
574
|
options: ["yes", "no"],
|
|
575
|
+
description:
|
|
576
|
+
"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.",
|
|
461
577
|
},
|
|
462
578
|
typeof: { required: false, control: "text", type: "string" },
|
|
463
579
|
unselectable: {
|
|
@@ -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,22 +387,85 @@ 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
|
-
|
|
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
|
+
draggable: {
|
|
438
|
+
required: false,
|
|
439
|
+
control: "boolean",
|
|
440
|
+
type: "boolean",
|
|
441
|
+
description: "Defines whether the element can be dragged.",
|
|
442
|
+
},
|
|
443
|
+
hidden: {
|
|
444
|
+
required: false,
|
|
445
|
+
control: "boolean",
|
|
446
|
+
type: "boolean",
|
|
447
|
+
description:
|
|
448
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
449
|
+
},
|
|
450
|
+
href: {
|
|
451
|
+
required: false,
|
|
452
|
+
control: "text",
|
|
453
|
+
type: "string",
|
|
454
|
+
description: "The URL of a linked resource.",
|
|
455
|
+
},
|
|
456
|
+
hrefLang: {
|
|
457
|
+
required: false,
|
|
458
|
+
control: "text",
|
|
459
|
+
type: "string",
|
|
460
|
+
description: "Specifies the language of the linked resource.",
|
|
461
|
+
},
|
|
462
|
+
id: {
|
|
463
|
+
required: false,
|
|
464
|
+
control: "text",
|
|
465
|
+
type: "string",
|
|
466
|
+
description:
|
|
467
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
468
|
+
},
|
|
401
469
|
inputMode: {
|
|
402
470
|
description:
|
|
403
471
|
"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",
|
|
@@ -427,11 +495,34 @@ export const props: Record<string, PropMeta> = {
|
|
|
427
495
|
itemRef: { required: false, control: "text", type: "string" },
|
|
428
496
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
429
497
|
itemType: { required: false, control: "text", type: "string" },
|
|
430
|
-
lang: {
|
|
431
|
-
|
|
498
|
+
lang: {
|
|
499
|
+
required: false,
|
|
500
|
+
control: "text",
|
|
501
|
+
type: "string",
|
|
502
|
+
description: "Defines the language used in the element.",
|
|
503
|
+
},
|
|
504
|
+
media: {
|
|
505
|
+
required: false,
|
|
506
|
+
control: "text",
|
|
507
|
+
type: "string",
|
|
508
|
+
description:
|
|
509
|
+
"Specifies a hint of the media for which the linked resource was designed.",
|
|
510
|
+
},
|
|
432
511
|
nonce: { required: false, control: "text", type: "string" },
|
|
433
|
-
ping: {
|
|
434
|
-
|
|
512
|
+
ping: {
|
|
513
|
+
required: false,
|
|
514
|
+
control: "text",
|
|
515
|
+
type: "string",
|
|
516
|
+
description:
|
|
517
|
+
"The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink.",
|
|
518
|
+
},
|
|
519
|
+
placeholder: {
|
|
520
|
+
required: false,
|
|
521
|
+
control: "text",
|
|
522
|
+
type: "string",
|
|
523
|
+
description:
|
|
524
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
525
|
+
},
|
|
435
526
|
prefix: { required: false, control: "text", type: "string" },
|
|
436
527
|
property: { required: false, control: "text", type: "string" },
|
|
437
528
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
@@ -450,15 +541,38 @@ export const props: Record<string, PropMeta> = {
|
|
|
450
541
|
"strict-origin-when-cross-origin",
|
|
451
542
|
"unsafe-url",
|
|
452
543
|
],
|
|
544
|
+
description: "Specifies which referrer is sent when fetching the resource.",
|
|
545
|
+
},
|
|
546
|
+
rel: {
|
|
547
|
+
required: false,
|
|
548
|
+
control: "text",
|
|
549
|
+
type: "string",
|
|
550
|
+
description:
|
|
551
|
+
"Specifies the relationship of the target object to the link object.",
|
|
453
552
|
},
|
|
454
|
-
rel: { required: false, control: "text", type: "string" },
|
|
455
553
|
resource: { required: false, control: "text", type: "string" },
|
|
456
554
|
results: { required: false, control: "number", type: "number" },
|
|
457
555
|
rev: { required: false, control: "text", type: "string" },
|
|
458
|
-
role: {
|
|
556
|
+
role: {
|
|
557
|
+
required: false,
|
|
558
|
+
control: "text",
|
|
559
|
+
type: "string",
|
|
560
|
+
description:
|
|
561
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
562
|
+
},
|
|
459
563
|
security: { required: false, control: "text", type: "string" },
|
|
460
|
-
slot: {
|
|
461
|
-
|
|
564
|
+
slot: {
|
|
565
|
+
required: false,
|
|
566
|
+
control: "text",
|
|
567
|
+
type: "string",
|
|
568
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
569
|
+
},
|
|
570
|
+
spellCheck: {
|
|
571
|
+
required: false,
|
|
572
|
+
control: "boolean",
|
|
573
|
+
type: "boolean",
|
|
574
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
575
|
+
},
|
|
462
576
|
suppressContentEditableWarning: {
|
|
463
577
|
required: false,
|
|
464
578
|
control: "boolean",
|
|
@@ -469,21 +583,42 @@ export const props: Record<string, PropMeta> = {
|
|
|
469
583
|
control: "boolean",
|
|
470
584
|
type: "boolean",
|
|
471
585
|
},
|
|
472
|
-
tabIndex: {
|
|
586
|
+
tabIndex: {
|
|
587
|
+
required: false,
|
|
588
|
+
control: "number",
|
|
589
|
+
type: "number",
|
|
590
|
+
description:
|
|
591
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
592
|
+
},
|
|
473
593
|
target: {
|
|
474
594
|
required: false,
|
|
475
595
|
control: "select",
|
|
476
596
|
type: "string",
|
|
477
597
|
options: ["_self", "_blank", "_parent", "_top"],
|
|
598
|
+
description:
|
|
599
|
+
"Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)",
|
|
600
|
+
},
|
|
601
|
+
title: {
|
|
602
|
+
required: false,
|
|
603
|
+
control: "text",
|
|
604
|
+
type: "string",
|
|
605
|
+
description:
|
|
606
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
478
607
|
},
|
|
479
|
-
title: { required: false, control: "text", type: "string" },
|
|
480
608
|
translate: {
|
|
481
609
|
required: false,
|
|
482
610
|
control: "radio",
|
|
483
611
|
type: "string",
|
|
484
612
|
options: ["yes", "no"],
|
|
613
|
+
description:
|
|
614
|
+
"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.",
|
|
615
|
+
},
|
|
616
|
+
type: {
|
|
617
|
+
required: false,
|
|
618
|
+
control: "text",
|
|
619
|
+
type: "string",
|
|
620
|
+
description: "Defines the type of the element.",
|
|
485
621
|
},
|
|
486
|
-
type: { required: false, control: "text", type: "string" },
|
|
487
622
|
typeof: { required: false, control: "text", type: "string" },
|
|
488
623
|
unselectable: {
|
|
489
624
|
required: false,
|