@webstudio-is/sdk-components-react-radix 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__/accordion.props.js +605 -109
- package/lib/__generated__/button.props.js +161 -29
- package/lib/__generated__/checkbox.props.js +284 -51
- package/lib/__generated__/collapsible.props.js +234 -42
- package/lib/__generated__/dialog.props.js +611 -110
- package/lib/__generated__/input.props.js +264 -47
- package/lib/__generated__/label.props.js +123 -22
- package/lib/__generated__/navigation-menu.props.js +563 -102
- package/lib/__generated__/popover.props.js +129 -25
- package/lib/__generated__/radio-group.props.js +421 -76
- package/lib/__generated__/select.props.js +876 -160
- package/lib/__generated__/sheet.props.js +591 -110
- package/lib/__generated__/switch.props.js +284 -51
- package/lib/__generated__/tabs.props.js +506 -91
- package/lib/__generated__/textarea.props.js +177 -31
- package/lib/__generated__/tooltip.props.js +131 -27
- package/lib/accordion.ws.js +1 -0
- package/lib/checkbox.ws.js +2 -0
- package/lib/cjs/__generated__/accordion.props.js +605 -109
- package/lib/cjs/__generated__/button.props.js +161 -29
- package/lib/cjs/__generated__/checkbox.props.js +284 -51
- package/lib/cjs/__generated__/collapsible.props.js +234 -42
- package/lib/cjs/__generated__/dialog.props.js +611 -110
- package/lib/cjs/__generated__/input.props.js +264 -47
- package/lib/cjs/__generated__/label.props.js +123 -22
- package/lib/cjs/__generated__/navigation-menu.props.js +563 -102
- package/lib/cjs/__generated__/popover.props.js +129 -25
- package/lib/cjs/__generated__/radio-group.props.js +421 -76
- package/lib/cjs/__generated__/select.props.js +875 -159
- package/lib/cjs/__generated__/sheet.props.js +591 -110
- package/lib/cjs/__generated__/switch.props.js +284 -51
- package/lib/cjs/__generated__/tabs.props.js +506 -91
- package/lib/cjs/__generated__/textarea.props.js +177 -31
- package/lib/cjs/__generated__/tooltip.props.js +131 -27
- package/lib/cjs/accordion.ws.js +1 -0
- package/lib/cjs/checkbox.ws.js +2 -0
- package/lib/cjs/collapsible.ws.js +1 -0
- package/lib/cjs/dialog.ws.js +1 -0
- package/lib/cjs/label.ws.js +1 -0
- package/lib/cjs/navigation-menu.ws.js +1 -0
- package/lib/cjs/popover.ws.js +1 -0
- package/lib/cjs/props-descriptions.js +56 -0
- package/lib/cjs/radio-group.ws.js +3 -0
- package/lib/cjs/select.js +3 -1
- package/lib/cjs/select.ws.js +1 -0
- package/lib/cjs/sheet.ws.js +1 -0
- package/lib/cjs/switch.ws.js +2 -0
- package/lib/cjs/tabs.ws.js +1 -0
- package/lib/cjs/tooltip.ws.js +1 -0
- package/lib/collapsible.ws.js +1 -0
- package/lib/dialog.ws.js +1 -0
- package/lib/label.ws.js +1 -0
- package/lib/navigation-menu.ws.js +1 -0
- package/lib/popover.ws.js +1 -0
- package/lib/props-descriptions.js +36 -0
- package/lib/radio-group.ws.js +3 -0
- package/lib/select.js +3 -1
- package/lib/select.ws.js +1 -0
- package/lib/sheet.ws.js +1 -0
- package/lib/switch.ws.js +2 -0
- package/lib/tabs.ws.js +1 -0
- package/lib/tooltip.ws.js +1 -0
- package/lib/types/props-descriptions.d.ts +29 -0
- package/lib/types/select.d.ts +4 -2
- package/package.json +6 -6
- package/src/__generated__/accordion.props.ts +675 -103
- package/src/__generated__/button.props.ts +180 -27
- package/src/__generated__/checkbox.props.ts +317 -48
- package/src/__generated__/collapsible.props.ts +261 -40
- package/src/__generated__/dialog.props.ts +682 -104
- package/src/__generated__/input.props.ts +292 -44
- package/src/__generated__/label.props.ts +137 -21
- package/src/__generated__/navigation-menu.props.ts +629 -96
- package/src/__generated__/popover.props.ts +142 -21
- package/src/__generated__/radio-group.props.ts +470 -71
- package/src/__generated__/select.props.ts +979 -153
- package/src/__generated__/sheet.props.ts +657 -99
- package/src/__generated__/switch.props.ts +317 -48
- package/src/__generated__/tabs.props.ts +565 -86
- package/src/__generated__/textarea.props.ts +195 -30
- package/src/__generated__/tooltip.props.ts +145 -23
- package/src/accordion.ws.ts +2 -0
- package/src/checkbox.ws.ts +3 -0
- package/src/collapsible.ws.ts +2 -0
- package/src/dialog.ws.tsx +2 -0
- package/src/label.ws.ts +2 -0
- package/src/navigation-menu.ws.ts +1 -0
- package/src/popover.ws.tsx +1 -0
- package/src/props-descriptions.ts +43 -0
- package/src/radio-group.ws.ts +4 -0
- package/src/select.tsx +8 -3
- package/src/select.ws.ts +2 -0
- package/src/sheet.ws.tsx +2 -0
- package/src/switch.ws.ts +3 -0
- package/src/tabs.ws.ts +2 -0
- package/src/tooltip.ws.tsx +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,25 +387,99 @@ export const props: Record<string, PropMeta> = {
|
|
|
382
387
|
control: "text",
|
|
383
388
|
type: "string",
|
|
384
389
|
},
|
|
385
|
-
autoCapitalize: {
|
|
386
|
-
|
|
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
|
+
},
|
|
397
|
+
autoComplete: {
|
|
398
|
+
required: false,
|
|
399
|
+
control: "text",
|
|
400
|
+
type: "string",
|
|
401
|
+
description:
|
|
402
|
+
"Indicates whether controls in this form can by default have their valuesautomatically completed by the browser.",
|
|
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
|
-
|
|
394
|
-
|
|
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
|
+
cols: {
|
|
422
|
+
required: false,
|
|
423
|
+
control: "number",
|
|
424
|
+
type: "number",
|
|
425
|
+
description: "Defines the number of columns in a textarea.",
|
|
426
|
+
},
|
|
427
|
+
content: {
|
|
428
|
+
required: false,
|
|
429
|
+
control: "text",
|
|
430
|
+
type: "string",
|
|
431
|
+
description:
|
|
432
|
+
"A value associated with http-equiv orname depending on the context.",
|
|
433
|
+
},
|
|
434
|
+
contextMenu: {
|
|
435
|
+
required: false,
|
|
436
|
+
control: "text",
|
|
437
|
+
type: "string",
|
|
438
|
+
description:
|
|
439
|
+
"Defines the ID of a menu element which willserve as the element's context menu.",
|
|
440
|
+
},
|
|
395
441
|
datatype: { required: false, control: "text", type: "string" },
|
|
396
442
|
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
397
|
-
dir: {
|
|
443
|
+
dir: {
|
|
444
|
+
required: false,
|
|
445
|
+
control: "text",
|
|
446
|
+
type: "string",
|
|
447
|
+
description:
|
|
448
|
+
"Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
|
|
449
|
+
},
|
|
398
450
|
dirName: { required: false, control: "text", type: "string" },
|
|
399
|
-
disabled: {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
451
|
+
disabled: {
|
|
452
|
+
required: false,
|
|
453
|
+
control: "boolean",
|
|
454
|
+
type: "boolean",
|
|
455
|
+
description: "Indicates whether the user can interact with the element.",
|
|
456
|
+
},
|
|
457
|
+
draggable: {
|
|
458
|
+
required: false,
|
|
459
|
+
control: "boolean",
|
|
460
|
+
type: "boolean",
|
|
461
|
+
description: "Defines whether the element can be dragged.",
|
|
462
|
+
},
|
|
463
|
+
form: {
|
|
464
|
+
required: false,
|
|
465
|
+
control: "text",
|
|
466
|
+
type: "string",
|
|
467
|
+
description: "Indicates the form that is the owner of the element.",
|
|
468
|
+
},
|
|
469
|
+
hidden: {
|
|
470
|
+
required: false,
|
|
471
|
+
control: "boolean",
|
|
472
|
+
type: "boolean",
|
|
473
|
+
description:
|
|
474
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
475
|
+
},
|
|
476
|
+
id: {
|
|
477
|
+
required: false,
|
|
478
|
+
control: "text",
|
|
479
|
+
type: "string",
|
|
480
|
+
description:
|
|
481
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
482
|
+
},
|
|
404
483
|
inputMode: {
|
|
405
484
|
description:
|
|
406
485
|
"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",
|
|
@@ -430,26 +509,93 @@ export const props: Record<string, PropMeta> = {
|
|
|
430
509
|
itemRef: { required: false, control: "text", type: "string" },
|
|
431
510
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
432
511
|
itemType: { required: false, control: "text", type: "string" },
|
|
433
|
-
lang: {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
512
|
+
lang: {
|
|
513
|
+
required: false,
|
|
514
|
+
control: "text",
|
|
515
|
+
type: "string",
|
|
516
|
+
description: "Defines the language used in the element.",
|
|
517
|
+
},
|
|
518
|
+
maxLength: {
|
|
519
|
+
required: false,
|
|
520
|
+
control: "number",
|
|
521
|
+
type: "number",
|
|
522
|
+
description:
|
|
523
|
+
"Defines the maximum number of characters allowed in the element.",
|
|
524
|
+
},
|
|
525
|
+
minLength: {
|
|
526
|
+
required: false,
|
|
527
|
+
control: "number",
|
|
528
|
+
type: "number",
|
|
529
|
+
description:
|
|
530
|
+
"Defines the minimum number of characters allowed in the element.",
|
|
531
|
+
},
|
|
532
|
+
name: {
|
|
533
|
+
required: false,
|
|
534
|
+
control: "text",
|
|
535
|
+
type: "string",
|
|
536
|
+
description:
|
|
537
|
+
"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).",
|
|
538
|
+
},
|
|
437
539
|
nonce: { required: false, control: "text", type: "string" },
|
|
438
|
-
placeholder: {
|
|
540
|
+
placeholder: {
|
|
541
|
+
required: false,
|
|
542
|
+
control: "text",
|
|
543
|
+
type: "string",
|
|
544
|
+
description:
|
|
545
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
546
|
+
},
|
|
439
547
|
prefix: { required: false, control: "text", type: "string" },
|
|
440
548
|
property: { required: false, control: "text", type: "string" },
|
|
441
549
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
442
|
-
readOnly: {
|
|
443
|
-
|
|
444
|
-
|
|
550
|
+
readOnly: {
|
|
551
|
+
required: false,
|
|
552
|
+
control: "boolean",
|
|
553
|
+
type: "boolean",
|
|
554
|
+
description: "Indicates whether the element can be edited.",
|
|
555
|
+
},
|
|
556
|
+
rel: {
|
|
557
|
+
required: false,
|
|
558
|
+
control: "text",
|
|
559
|
+
type: "string",
|
|
560
|
+
description:
|
|
561
|
+
"Specifies the relationship of the target object to the link object.",
|
|
562
|
+
},
|
|
563
|
+
required: {
|
|
564
|
+
required: false,
|
|
565
|
+
control: "boolean",
|
|
566
|
+
type: "boolean",
|
|
567
|
+
description:
|
|
568
|
+
"Indicates whether this form element must be filled before the form can be submitted.",
|
|
569
|
+
},
|
|
445
570
|
resource: { required: false, control: "text", type: "string" },
|
|
446
571
|
results: { required: false, control: "number", type: "number" },
|
|
447
572
|
rev: { required: false, control: "text", type: "string" },
|
|
448
|
-
role: {
|
|
449
|
-
|
|
573
|
+
role: {
|
|
574
|
+
required: false,
|
|
575
|
+
control: "text",
|
|
576
|
+
type: "string",
|
|
577
|
+
description:
|
|
578
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
579
|
+
},
|
|
580
|
+
rows: {
|
|
581
|
+
required: false,
|
|
582
|
+
control: "number",
|
|
583
|
+
type: "number",
|
|
584
|
+
description: "Defines the number of rows in a text area.",
|
|
585
|
+
},
|
|
450
586
|
security: { required: false, control: "text", type: "string" },
|
|
451
|
-
slot: {
|
|
452
|
-
|
|
587
|
+
slot: {
|
|
588
|
+
required: false,
|
|
589
|
+
control: "text",
|
|
590
|
+
type: "string",
|
|
591
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
592
|
+
},
|
|
593
|
+
spellCheck: {
|
|
594
|
+
required: false,
|
|
595
|
+
control: "boolean",
|
|
596
|
+
type: "boolean",
|
|
597
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
598
|
+
},
|
|
453
599
|
suppressContentEditableWarning: {
|
|
454
600
|
required: false,
|
|
455
601
|
control: "boolean",
|
|
@@ -460,13 +606,27 @@ export const props: Record<string, PropMeta> = {
|
|
|
460
606
|
control: "boolean",
|
|
461
607
|
type: "boolean",
|
|
462
608
|
},
|
|
463
|
-
tabIndex: {
|
|
464
|
-
|
|
609
|
+
tabIndex: {
|
|
610
|
+
required: false,
|
|
611
|
+
control: "number",
|
|
612
|
+
type: "number",
|
|
613
|
+
description:
|
|
614
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
615
|
+
},
|
|
616
|
+
title: {
|
|
617
|
+
required: false,
|
|
618
|
+
control: "text",
|
|
619
|
+
type: "string",
|
|
620
|
+
description:
|
|
621
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
622
|
+
},
|
|
465
623
|
translate: {
|
|
466
624
|
required: false,
|
|
467
625
|
control: "radio",
|
|
468
626
|
type: "string",
|
|
469
627
|
options: ["yes", "no"],
|
|
628
|
+
description:
|
|
629
|
+
"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.",
|
|
470
630
|
},
|
|
471
631
|
typeof: { required: false, control: "text", type: "string" },
|
|
472
632
|
unselectable: {
|
|
@@ -476,5 +636,10 @@ export const props: Record<string, PropMeta> = {
|
|
|
476
636
|
options: ["on", "off"],
|
|
477
637
|
},
|
|
478
638
|
vocab: { required: false, control: "text", type: "string" },
|
|
479
|
-
wrap: {
|
|
639
|
+
wrap: {
|
|
640
|
+
required: false,
|
|
641
|
+
control: "text",
|
|
642
|
+
type: "string",
|
|
643
|
+
description: "Indicates whether the text should be wrapped.",
|
|
644
|
+
},
|
|
480
645
|
};
|
|
@@ -3,31 +3,49 @@ import type { PropMeta } from "@webstudio-is/generate-arg-types";
|
|
|
3
3
|
export const propsTooltip: Record<string, PropMeta> = {
|
|
4
4
|
delayDuration: {
|
|
5
5
|
description:
|
|
6
|
-
"The
|
|
6
|
+
"The delay before the Tooltip shows after the Trigger is hovered, in milliseconds. If no value is specified, the default is 700ms",
|
|
7
7
|
required: false,
|
|
8
8
|
control: "number",
|
|
9
9
|
type: "number",
|
|
10
10
|
},
|
|
11
11
|
disableHoverableContent: {
|
|
12
12
|
description:
|
|
13
|
-
"When
|
|
13
|
+
"When toggled, prevents the Tooltip content from showing when the Trigger is hovered.",
|
|
14
14
|
required: false,
|
|
15
15
|
control: "boolean",
|
|
16
16
|
type: "boolean",
|
|
17
17
|
},
|
|
18
|
-
open: {
|
|
18
|
+
open: {
|
|
19
|
+
required: false,
|
|
20
|
+
control: "boolean",
|
|
21
|
+
type: "boolean",
|
|
22
|
+
description:
|
|
23
|
+
"Show or hide the content of this component on the canvas. This will not affect the initial state of the component.",
|
|
24
|
+
},
|
|
19
25
|
};
|
|
20
26
|
export const propsTooltipTrigger: Record<string, PropMeta> = {};
|
|
21
27
|
export const propsTooltipContent: Record<string, PropMeta> = {
|
|
22
28
|
about: { required: false, control: "text", type: "string" },
|
|
23
|
-
accessKey: {
|
|
29
|
+
accessKey: {
|
|
30
|
+
required: false,
|
|
31
|
+
control: "text",
|
|
32
|
+
type: "string",
|
|
33
|
+
description: "Keyboard shortcut to activate or add focus to the element.",
|
|
34
|
+
},
|
|
24
35
|
align: {
|
|
25
36
|
required: false,
|
|
26
37
|
control: "radio",
|
|
27
38
|
type: "string",
|
|
28
39
|
options: ["center", "start", "end"],
|
|
40
|
+
description: "Specifies the horizontal alignment of the element.",
|
|
41
|
+
},
|
|
42
|
+
alignOffset: {
|
|
43
|
+
required: false,
|
|
44
|
+
control: "number",
|
|
45
|
+
type: "number",
|
|
46
|
+
description:
|
|
47
|
+
"The offset in pixels from the “start“ or “end“ alignment options.",
|
|
29
48
|
},
|
|
30
|
-
alignOffset: { required: false, control: "number", type: "number" },
|
|
31
49
|
"aria-activedescendant": {
|
|
32
50
|
description:
|
|
33
51
|
"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
@@ -207,7 +225,8 @@ export const propsTooltipContent: Record<string, PropMeta> = {
|
|
|
207
225
|
type: "string",
|
|
208
226
|
},
|
|
209
227
|
"aria-label": {
|
|
210
|
-
description:
|
|
228
|
+
description:
|
|
229
|
+
"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.",
|
|
211
230
|
required: false,
|
|
212
231
|
control: "text",
|
|
213
232
|
type: "string",
|
|
@@ -407,26 +426,79 @@ export const propsTooltipContent: Record<string, PropMeta> = {
|
|
|
407
426
|
type: "string",
|
|
408
427
|
},
|
|
409
428
|
arrowPadding: { required: false, control: "number", type: "number" },
|
|
410
|
-
autoCapitalize: {
|
|
429
|
+
autoCapitalize: {
|
|
430
|
+
required: false,
|
|
431
|
+
control: "text",
|
|
432
|
+
type: "string",
|
|
433
|
+
description:
|
|
434
|
+
"Sets whether input is automatically capitalized when entered by user.",
|
|
435
|
+
},
|
|
411
436
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
412
|
-
autoFocus: {
|
|
437
|
+
autoFocus: {
|
|
438
|
+
required: false,
|
|
439
|
+
control: "boolean",
|
|
440
|
+
type: "boolean",
|
|
441
|
+
description:
|
|
442
|
+
"Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
|
|
443
|
+
},
|
|
413
444
|
autoSave: { required: false, control: "text", type: "string" },
|
|
414
445
|
avoidCollisions: { required: false, control: "boolean", type: "boolean" },
|
|
415
446
|
className: { required: false, control: "text", type: "string" },
|
|
416
|
-
color: {
|
|
417
|
-
|
|
418
|
-
|
|
447
|
+
color: {
|
|
448
|
+
required: false,
|
|
449
|
+
control: "color",
|
|
450
|
+
type: "string",
|
|
451
|
+
description:
|
|
452
|
+
"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.",
|
|
453
|
+
},
|
|
454
|
+
content: {
|
|
455
|
+
required: false,
|
|
456
|
+
control: "text",
|
|
457
|
+
type: "string",
|
|
458
|
+
description:
|
|
459
|
+
"A value associated with http-equiv orname depending on the context.",
|
|
460
|
+
},
|
|
461
|
+
contextMenu: {
|
|
462
|
+
required: false,
|
|
463
|
+
control: "text",
|
|
464
|
+
type: "string",
|
|
465
|
+
description:
|
|
466
|
+
"Defines the ID of a menu element which willserve as the element's context menu.",
|
|
467
|
+
},
|
|
419
468
|
datatype: { required: false, control: "text", type: "string" },
|
|
420
|
-
dir: {
|
|
421
|
-
|
|
422
|
-
|
|
469
|
+
dir: {
|
|
470
|
+
required: false,
|
|
471
|
+
control: "text",
|
|
472
|
+
type: "string",
|
|
473
|
+
description:
|
|
474
|
+
"Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
|
|
475
|
+
},
|
|
476
|
+
draggable: {
|
|
477
|
+
required: false,
|
|
478
|
+
control: "boolean",
|
|
479
|
+
type: "boolean",
|
|
480
|
+
description: "Defines whether the element can be dragged.",
|
|
481
|
+
},
|
|
482
|
+
hidden: {
|
|
483
|
+
required: false,
|
|
484
|
+
control: "boolean",
|
|
485
|
+
type: "boolean",
|
|
486
|
+
description:
|
|
487
|
+
"Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
|
|
488
|
+
},
|
|
423
489
|
hideWhenDetached: {
|
|
424
490
|
required: false,
|
|
425
491
|
control: "boolean",
|
|
426
492
|
type: "boolean",
|
|
427
493
|
defaultValue: true,
|
|
428
494
|
},
|
|
429
|
-
id: {
|
|
495
|
+
id: {
|
|
496
|
+
required: false,
|
|
497
|
+
control: "text",
|
|
498
|
+
type: "string",
|
|
499
|
+
description:
|
|
500
|
+
"Often used with CSS to style a specific element. The value of this attribute must be unique.",
|
|
501
|
+
},
|
|
430
502
|
inputMode: {
|
|
431
503
|
description:
|
|
432
504
|
"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",
|
|
@@ -456,32 +528,68 @@ export const propsTooltipContent: Record<string, PropMeta> = {
|
|
|
456
528
|
itemRef: { required: false, control: "text", type: "string" },
|
|
457
529
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
458
530
|
itemType: { required: false, control: "text", type: "string" },
|
|
459
|
-
lang: {
|
|
531
|
+
lang: {
|
|
532
|
+
required: false,
|
|
533
|
+
control: "text",
|
|
534
|
+
type: "string",
|
|
535
|
+
description: "Defines the language used in the element.",
|
|
536
|
+
},
|
|
460
537
|
nonce: { required: false, control: "text", type: "string" },
|
|
461
|
-
placeholder: {
|
|
538
|
+
placeholder: {
|
|
539
|
+
required: false,
|
|
540
|
+
control: "text",
|
|
541
|
+
type: "string",
|
|
542
|
+
description:
|
|
543
|
+
"Provides a hint to the user of what can be entered in the field.",
|
|
544
|
+
},
|
|
462
545
|
prefix: { required: false, control: "text", type: "string" },
|
|
463
546
|
property: { required: false, control: "text", type: "string" },
|
|
464
547
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
465
|
-
rel: {
|
|
548
|
+
rel: {
|
|
549
|
+
required: false,
|
|
550
|
+
control: "text",
|
|
551
|
+
type: "string",
|
|
552
|
+
description:
|
|
553
|
+
"Specifies the relationship of the target object to the link object.",
|
|
554
|
+
},
|
|
466
555
|
resource: { required: false, control: "text", type: "string" },
|
|
467
556
|
results: { required: false, control: "number", type: "number" },
|
|
468
557
|
rev: { required: false, control: "text", type: "string" },
|
|
469
|
-
role: {
|
|
558
|
+
role: {
|
|
559
|
+
required: false,
|
|
560
|
+
control: "text",
|
|
561
|
+
type: "string",
|
|
562
|
+
description:
|
|
563
|
+
"Defines an explicit role for an element for use by assistive technologies.",
|
|
564
|
+
},
|
|
470
565
|
security: { required: false, control: "text", type: "string" },
|
|
471
566
|
side: {
|
|
472
567
|
required: false,
|
|
473
568
|
control: "select",
|
|
474
569
|
type: "string",
|
|
475
570
|
options: ["top", "right", "bottom", "left"],
|
|
571
|
+
description:
|
|
572
|
+
"The preferred alignment against the Trigger. May change when collisions occur.",
|
|
476
573
|
},
|
|
477
574
|
sideOffset: {
|
|
478
575
|
required: false,
|
|
479
576
|
control: "number",
|
|
480
577
|
type: "number",
|
|
481
578
|
defaultValue: 4,
|
|
579
|
+
description: "The distance in pixels between the Content and the Trigger.",
|
|
580
|
+
},
|
|
581
|
+
slot: {
|
|
582
|
+
required: false,
|
|
583
|
+
control: "text",
|
|
584
|
+
type: "string",
|
|
585
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element.",
|
|
586
|
+
},
|
|
587
|
+
spellCheck: {
|
|
588
|
+
required: false,
|
|
589
|
+
control: "boolean",
|
|
590
|
+
type: "boolean",
|
|
591
|
+
description: "Indicates whether spell checking is allowed for the element.",
|
|
482
592
|
},
|
|
483
|
-
slot: { required: false, control: "text", type: "string" },
|
|
484
|
-
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
485
593
|
sticky: {
|
|
486
594
|
required: false,
|
|
487
595
|
control: "radio",
|
|
@@ -498,13 +606,27 @@ export const propsTooltipContent: Record<string, PropMeta> = {
|
|
|
498
606
|
control: "boolean",
|
|
499
607
|
type: "boolean",
|
|
500
608
|
},
|
|
501
|
-
tabIndex: {
|
|
502
|
-
|
|
609
|
+
tabIndex: {
|
|
610
|
+
required: false,
|
|
611
|
+
control: "number",
|
|
612
|
+
type: "number",
|
|
613
|
+
description:
|
|
614
|
+
"Overrides the browser's default tab order and follows the one specified instead.",
|
|
615
|
+
},
|
|
616
|
+
title: {
|
|
617
|
+
required: false,
|
|
618
|
+
control: "text",
|
|
619
|
+
type: "string",
|
|
620
|
+
description:
|
|
621
|
+
"Text to be displayed in a tooltip when hovering over the element.",
|
|
622
|
+
},
|
|
503
623
|
translate: {
|
|
504
624
|
required: false,
|
|
505
625
|
control: "radio",
|
|
506
626
|
type: "string",
|
|
507
627
|
options: ["yes", "no"],
|
|
628
|
+
description:
|
|
629
|
+
"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.",
|
|
508
630
|
},
|
|
509
631
|
typeof: { required: false, control: "text", type: "string" },
|
|
510
632
|
unselectable: {
|
package/src/accordion.ws.ts
CHANGED
|
@@ -124,6 +124,8 @@ export const metaAccordion: WsComponentMeta = {
|
|
|
124
124
|
type: "container",
|
|
125
125
|
icon: AccordionIcon,
|
|
126
126
|
presetStyle,
|
|
127
|
+
description:
|
|
128
|
+
"A vertically stacked set of interactive headings that each reveal an associated section of content. Clicking on the heading will open the item and close other items.",
|
|
127
129
|
template: [
|
|
128
130
|
{
|
|
129
131
|
type: "instance",
|
package/src/checkbox.ws.ts
CHANGED
|
@@ -21,6 +21,8 @@ export const metaCheckbox: WsComponentMeta = {
|
|
|
21
21
|
order: 101,
|
|
22
22
|
type: "container",
|
|
23
23
|
icon: CheckboxCheckedIcon,
|
|
24
|
+
description:
|
|
25
|
+
"Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their “Name” properties. Unlike radios, any number of checkboxes in a group can be checked.",
|
|
24
26
|
states: [
|
|
25
27
|
...defaultStates,
|
|
26
28
|
{
|
|
@@ -134,6 +136,7 @@ export const metaCheckbox: WsComponentMeta = {
|
|
|
134
136
|
export const metaCheckboxIndicator: WsComponentMeta = {
|
|
135
137
|
category: "hidden",
|
|
136
138
|
type: "container",
|
|
139
|
+
detachable: false,
|
|
137
140
|
icon: TriggerIcon,
|
|
138
141
|
states: defaultStates,
|
|
139
142
|
presetStyle: {
|
package/src/collapsible.ws.ts
CHANGED
|
@@ -26,6 +26,8 @@ export const metaCollapsible: WsComponentMeta = {
|
|
|
26
26
|
type: "container",
|
|
27
27
|
presetStyle,
|
|
28
28
|
icon: CollapsibleIcon,
|
|
29
|
+
description:
|
|
30
|
+
"An interactive component which expands and collapses some content, triggered by a button.",
|
|
29
31
|
template: [
|
|
30
32
|
{
|
|
31
33
|
type: "instance",
|
package/src/dialog.ws.tsx
CHANGED
|
@@ -102,6 +102,8 @@ export const metaDialog: WsComponentMeta = {
|
|
|
102
102
|
type: "container",
|
|
103
103
|
icon: DialogIcon,
|
|
104
104
|
stylable: false,
|
|
105
|
+
description:
|
|
106
|
+
"Displays content with an overlay that covers the window, triggered by a button. Clicking the overlay will close the dialog.",
|
|
105
107
|
template: [
|
|
106
108
|
{
|
|
107
109
|
type: "instance",
|
package/src/label.ws.ts
CHANGED
|
@@ -20,6 +20,8 @@ export const meta: WsComponentMeta = {
|
|
|
20
20
|
icon: LabelIcon,
|
|
21
21
|
presetStyle,
|
|
22
22
|
states: defaultStates,
|
|
23
|
+
description:
|
|
24
|
+
"An accessible label to describe the purpose of an input. Match the “For” property on the label with the “ID” of the input to connect them.",
|
|
23
25
|
template: [
|
|
24
26
|
{
|
|
25
27
|
type: "instance",
|
package/src/popover.ws.tsx
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const open =
|
|
2
|
+
"Show or hide the content of this component on the canvas. This will not affect the initial state of the component.";
|
|
3
|
+
|
|
4
|
+
const alignOffset =
|
|
5
|
+
"The offset in pixels from the “start“ or “end“ alignment options.";
|
|
6
|
+
|
|
7
|
+
const sideOffset =
|
|
8
|
+
"The distance in pixels between the Content and the Trigger.";
|
|
9
|
+
|
|
10
|
+
const side =
|
|
11
|
+
"The preferred alignment against the Trigger. May change when collisions occur.";
|
|
12
|
+
|
|
13
|
+
export const propsDescriptions = {
|
|
14
|
+
Dialog: {
|
|
15
|
+
open,
|
|
16
|
+
},
|
|
17
|
+
Sheet: {
|
|
18
|
+
open,
|
|
19
|
+
},
|
|
20
|
+
Collapsible: {
|
|
21
|
+
open,
|
|
22
|
+
},
|
|
23
|
+
Popover: {
|
|
24
|
+
open,
|
|
25
|
+
},
|
|
26
|
+
PopoverContent: {
|
|
27
|
+
alignOffset,
|
|
28
|
+
sideOffset,
|
|
29
|
+
side,
|
|
30
|
+
},
|
|
31
|
+
Tooltip: {
|
|
32
|
+
open,
|
|
33
|
+
delayDuration:
|
|
34
|
+
"The delay before the Tooltip shows after the Trigger is hovered, in milliseconds. If no value is specified, the default is 700ms",
|
|
35
|
+
disableHoverableContent:
|
|
36
|
+
"When toggled, prevents the Tooltip content from showing when the Trigger is hovered.",
|
|
37
|
+
},
|
|
38
|
+
TooltipContent: {
|
|
39
|
+
alignOffset,
|
|
40
|
+
sideOffset,
|
|
41
|
+
side,
|
|
42
|
+
},
|
|
43
|
+
};
|