@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.
Files changed (96) hide show
  1. package/lib/__generated__/accordion.props.js +605 -109
  2. package/lib/__generated__/button.props.js +161 -29
  3. package/lib/__generated__/checkbox.props.js +284 -51
  4. package/lib/__generated__/collapsible.props.js +234 -42
  5. package/lib/__generated__/dialog.props.js +611 -110
  6. package/lib/__generated__/input.props.js +264 -47
  7. package/lib/__generated__/label.props.js +123 -22
  8. package/lib/__generated__/navigation-menu.props.js +563 -102
  9. package/lib/__generated__/popover.props.js +129 -25
  10. package/lib/__generated__/radio-group.props.js +421 -76
  11. package/lib/__generated__/select.props.js +876 -160
  12. package/lib/__generated__/sheet.props.js +591 -110
  13. package/lib/__generated__/switch.props.js +284 -51
  14. package/lib/__generated__/tabs.props.js +506 -91
  15. package/lib/__generated__/textarea.props.js +177 -31
  16. package/lib/__generated__/tooltip.props.js +131 -27
  17. package/lib/accordion.ws.js +1 -0
  18. package/lib/checkbox.ws.js +2 -0
  19. package/lib/cjs/__generated__/accordion.props.js +605 -109
  20. package/lib/cjs/__generated__/button.props.js +161 -29
  21. package/lib/cjs/__generated__/checkbox.props.js +284 -51
  22. package/lib/cjs/__generated__/collapsible.props.js +234 -42
  23. package/lib/cjs/__generated__/dialog.props.js +611 -110
  24. package/lib/cjs/__generated__/input.props.js +264 -47
  25. package/lib/cjs/__generated__/label.props.js +123 -22
  26. package/lib/cjs/__generated__/navigation-menu.props.js +563 -102
  27. package/lib/cjs/__generated__/popover.props.js +129 -25
  28. package/lib/cjs/__generated__/radio-group.props.js +421 -76
  29. package/lib/cjs/__generated__/select.props.js +875 -159
  30. package/lib/cjs/__generated__/sheet.props.js +591 -110
  31. package/lib/cjs/__generated__/switch.props.js +284 -51
  32. package/lib/cjs/__generated__/tabs.props.js +506 -91
  33. package/lib/cjs/__generated__/textarea.props.js +177 -31
  34. package/lib/cjs/__generated__/tooltip.props.js +131 -27
  35. package/lib/cjs/accordion.ws.js +1 -0
  36. package/lib/cjs/checkbox.ws.js +2 -0
  37. package/lib/cjs/collapsible.ws.js +1 -0
  38. package/lib/cjs/dialog.ws.js +1 -0
  39. package/lib/cjs/label.ws.js +1 -0
  40. package/lib/cjs/navigation-menu.ws.js +1 -0
  41. package/lib/cjs/popover.ws.js +1 -0
  42. package/lib/cjs/props-descriptions.js +56 -0
  43. package/lib/cjs/radio-group.ws.js +3 -0
  44. package/lib/cjs/select.js +3 -1
  45. package/lib/cjs/select.ws.js +1 -0
  46. package/lib/cjs/sheet.ws.js +1 -0
  47. package/lib/cjs/switch.ws.js +2 -0
  48. package/lib/cjs/tabs.ws.js +1 -0
  49. package/lib/cjs/tooltip.ws.js +1 -0
  50. package/lib/collapsible.ws.js +1 -0
  51. package/lib/dialog.ws.js +1 -0
  52. package/lib/label.ws.js +1 -0
  53. package/lib/navigation-menu.ws.js +1 -0
  54. package/lib/popover.ws.js +1 -0
  55. package/lib/props-descriptions.js +36 -0
  56. package/lib/radio-group.ws.js +3 -0
  57. package/lib/select.js +3 -1
  58. package/lib/select.ws.js +1 -0
  59. package/lib/sheet.ws.js +1 -0
  60. package/lib/switch.ws.js +2 -0
  61. package/lib/tabs.ws.js +1 -0
  62. package/lib/tooltip.ws.js +1 -0
  63. package/lib/types/props-descriptions.d.ts +29 -0
  64. package/lib/types/select.d.ts +4 -2
  65. package/package.json +6 -6
  66. package/src/__generated__/accordion.props.ts +675 -103
  67. package/src/__generated__/button.props.ts +180 -27
  68. package/src/__generated__/checkbox.props.ts +317 -48
  69. package/src/__generated__/collapsible.props.ts +261 -40
  70. package/src/__generated__/dialog.props.ts +682 -104
  71. package/src/__generated__/input.props.ts +292 -44
  72. package/src/__generated__/label.props.ts +137 -21
  73. package/src/__generated__/navigation-menu.props.ts +629 -96
  74. package/src/__generated__/popover.props.ts +142 -21
  75. package/src/__generated__/radio-group.props.ts +470 -71
  76. package/src/__generated__/select.props.ts +979 -153
  77. package/src/__generated__/sheet.props.ts +657 -99
  78. package/src/__generated__/switch.props.ts +317 -48
  79. package/src/__generated__/tabs.props.ts +565 -86
  80. package/src/__generated__/textarea.props.ts +195 -30
  81. package/src/__generated__/tooltip.props.ts +145 -23
  82. package/src/accordion.ws.ts +2 -0
  83. package/src/checkbox.ws.ts +3 -0
  84. package/src/collapsible.ws.ts +2 -0
  85. package/src/dialog.ws.tsx +2 -0
  86. package/src/label.ws.ts +2 -0
  87. package/src/navigation-menu.ws.ts +1 -0
  88. package/src/popover.ws.tsx +1 -0
  89. package/src/props-descriptions.ts +43 -0
  90. package/src/radio-group.ws.ts +4 -0
  91. package/src/select.tsx +8 -3
  92. package/src/select.ws.ts +2 -0
  93. package/src/sheet.ws.tsx +2 -0
  94. package/src/switch.ws.ts +3 -0
  95. package/src/tabs.ws.ts +2 -0
  96. 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: { required: false, control: "text", type: "string" },
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
- "Defines a string value that labels the current element.\n@see aria-labelledby.",
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: { required: false, control: "text", type: "string" },
386
- autoComplete: { required: false, control: "text", type: "string" },
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: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "color", type: "string" },
392
- cols: { required: false, control: "number", type: "number" },
393
- content: { required: false, control: "text", type: "string" },
394
- contextMenu: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "boolean", type: "boolean" },
400
- draggable: { required: false, control: "boolean", type: "boolean" },
401
- form: { required: false, control: "text", type: "string" },
402
- hidden: { required: false, control: "boolean", type: "boolean" },
403
- id: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
434
- maxLength: { required: false, control: "number", type: "number" },
435
- minLength: { required: false, control: "number", type: "number" },
436
- name: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "boolean", type: "boolean" },
443
- rel: { required: false, control: "text", type: "string" },
444
- required: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "text", type: "string" },
449
- rows: { required: false, control: "number", type: "number" },
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: { required: false, control: "text", type: "string" },
452
- spellCheck: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "number", type: "number" },
464
- title: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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 duration from when the pointer enters the trigger until the tooltip gets opened. This will\noverride the prop with the same name passed to Provider.\n@defaultValue 700",
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 `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.\n@defaultValue false",
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: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "text", type: "string" },
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: "A more descriptive label for accessibility purpose",
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "color", type: "string" },
417
- content: { required: false, control: "text", type: "string" },
418
- contextMenu: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
421
- draggable: { required: false, control: "boolean", type: "boolean" },
422
- hidden: { required: false, control: "boolean", type: "boolean" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "text", type: "string" },
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: { required: false, control: "number", type: "number" },
502
- title: { required: false, control: "text", type: "string" },
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: {
@@ -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",
@@ -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: {
@@ -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",
@@ -306,6 +306,7 @@ export const metaNavigationMenu: WsComponentMeta = {
306
306
  category: "radix",
307
307
  order: 2,
308
308
  type: "container",
309
+ description: "A collection of links for navigating websites.",
309
310
  icon: NavigationMenuIcon,
310
311
  presetStyle,
311
312
 
@@ -48,6 +48,7 @@ export const metaPopover: WsComponentMeta = {
48
48
  type: "container",
49
49
  icon: PopoverIcon,
50
50
  stylable: false,
51
+ description: "Displays rich content in a portal, triggered by a button.",
51
52
  template: [
52
53
  {
53
54
  type: "instance",
@@ -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
+ };