@webstudio-is/sdk-components-react-radix 0.88.0 → 0.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) 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 +21 -9
  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 +19 -9
  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 +19 -5
  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 +16 -1
  47. package/lib/cjs/switch.ws.js +2 -0
  48. package/lib/cjs/tabs.ws.js +12 -2
  49. package/lib/cjs/theme/styles.js +0 -4
  50. package/lib/cjs/tooltip.ws.js +1 -0
  51. package/lib/collapsible.ws.js +1 -0
  52. package/lib/dialog.ws.js +22 -7
  53. package/lib/label.ws.js +1 -0
  54. package/lib/navigation-menu.ws.js +1 -0
  55. package/lib/popover.ws.js +1 -0
  56. package/lib/props-descriptions.js +36 -0
  57. package/lib/radio-group.ws.js +3 -0
  58. package/lib/select.js +3 -1
  59. package/lib/select.ws.js +1 -0
  60. package/lib/sheet.ws.js +17 -2
  61. package/lib/switch.ws.js +2 -0
  62. package/lib/tabs.ws.js +14 -2
  63. package/lib/theme/styles.js +0 -4
  64. package/lib/tooltip.ws.js +1 -0
  65. package/lib/types/accordion.ws.d.ts +1 -1
  66. package/lib/types/props-descriptions.d.ts +29 -0
  67. package/lib/types/select.d.ts +4 -2
  68. package/lib/types/tabs.ws.d.ts +1 -1
  69. package/package.json +6 -6
  70. package/src/__generated__/accordion.props.ts +675 -103
  71. package/src/__generated__/button.props.ts +180 -27
  72. package/src/__generated__/checkbox.props.ts +317 -48
  73. package/src/__generated__/collapsible.props.ts +261 -40
  74. package/src/__generated__/dialog.props.ts +682 -104
  75. package/src/__generated__/input.props.ts +292 -44
  76. package/src/__generated__/label.props.ts +137 -21
  77. package/src/__generated__/navigation-menu.props.ts +629 -96
  78. package/src/__generated__/popover.props.ts +142 -21
  79. package/src/__generated__/radio-group.props.ts +470 -71
  80. package/src/__generated__/select.props.ts +979 -153
  81. package/src/__generated__/sheet.props.ts +657 -99
  82. package/src/__generated__/switch.props.ts +317 -48
  83. package/src/__generated__/tabs.props.ts +565 -86
  84. package/src/__generated__/textarea.props.ts +195 -30
  85. package/src/__generated__/tooltip.props.ts +145 -23
  86. package/src/accordion.ws.ts +22 -11
  87. package/src/checkbox.ws.ts +3 -0
  88. package/src/collapsible.ws.ts +2 -0
  89. package/src/dialog.ws.tsx +22 -7
  90. package/src/label.ws.ts +2 -0
  91. package/src/navigation-menu.ws.ts +1 -0
  92. package/src/popover.ws.tsx +1 -0
  93. package/src/props-descriptions.ts +43 -0
  94. package/src/radio-group.ws.ts +4 -0
  95. package/src/select.tsx +8 -3
  96. package/src/select.ws.ts +2 -0
  97. package/src/sheet.ws.tsx +18 -2
  98. package/src/switch.ws.ts +3 -0
  99. package/src/tabs.ws.ts +17 -6
  100. package/src/theme/styles.ts +0 -4
  101. package/src/tooltip.ws.tsx +2 -0
@@ -23,7 +23,12 @@ __export(textarea_props_exports, {
23
23
  module.exports = __toCommonJS(textarea_props_exports);
24
24
  const props = {
25
25
  about: { required: false, control: "text", type: "string" },
26
- accessKey: { required: false, control: "text", type: "string" },
26
+ accessKey: {
27
+ required: false,
28
+ control: "text",
29
+ type: "string",
30
+ description: "Keyboard shortcut to activate or add focus to the element."
31
+ },
27
32
  "aria-activedescendant": {
28
33
  description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
29
34
  required: false,
@@ -179,7 +184,7 @@ const props = {
179
184
  type: "string"
180
185
  },
181
186
  "aria-label": {
182
- description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
187
+ description: "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.",
183
188
  required: false,
184
189
  control: "text",
185
190
  type: "string"
@@ -355,25 +360,90 @@ const props = {
355
360
  control: "text",
356
361
  type: "string"
357
362
  },
358
- autoCapitalize: { required: false, control: "text", type: "string" },
359
- autoComplete: { required: false, control: "text", type: "string" },
363
+ autoCapitalize: {
364
+ required: false,
365
+ control: "text",
366
+ type: "string",
367
+ description: "Sets whether input is automatically capitalized when entered by user."
368
+ },
369
+ autoComplete: {
370
+ required: false,
371
+ control: "text",
372
+ type: "string",
373
+ description: "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser."
374
+ },
360
375
  autoCorrect: { required: false, control: "text", type: "string" },
361
- autoFocus: { required: false, control: "boolean", type: "boolean" },
376
+ autoFocus: {
377
+ required: false,
378
+ control: "boolean",
379
+ type: "boolean",
380
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
381
+ },
362
382
  autoSave: { required: false, control: "text", type: "string" },
363
383
  className: { required: false, control: "text", type: "string" },
364
- color: { required: false, control: "color", type: "string" },
365
- cols: { required: false, control: "number", type: "number" },
366
- content: { required: false, control: "text", type: "string" },
367
- contextMenu: { required: false, control: "text", type: "string" },
384
+ color: {
385
+ required: false,
386
+ control: "color",
387
+ type: "string",
388
+ description: "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."
389
+ },
390
+ cols: {
391
+ required: false,
392
+ control: "number",
393
+ type: "number",
394
+ description: "Defines the number of columns in a textarea."
395
+ },
396
+ content: {
397
+ required: false,
398
+ control: "text",
399
+ type: "string",
400
+ description: "A value associated with http-equiv orname depending on the context."
401
+ },
402
+ contextMenu: {
403
+ required: false,
404
+ control: "text",
405
+ type: "string",
406
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
407
+ },
368
408
  datatype: { required: false, control: "text", type: "string" },
369
409
  defaultChecked: { required: false, control: "boolean", type: "boolean" },
370
- dir: { required: false, control: "text", type: "string" },
410
+ dir: {
411
+ required: false,
412
+ control: "text",
413
+ type: "string",
414
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
415
+ },
371
416
  dirName: { required: false, control: "text", type: "string" },
372
- disabled: { required: false, control: "boolean", type: "boolean" },
373
- draggable: { required: false, control: "boolean", type: "boolean" },
374
- form: { required: false, control: "text", type: "string" },
375
- hidden: { required: false, control: "boolean", type: "boolean" },
376
- id: { required: false, control: "text", type: "string" },
417
+ disabled: {
418
+ required: false,
419
+ control: "boolean",
420
+ type: "boolean",
421
+ description: "Indicates whether the user can interact with the element."
422
+ },
423
+ draggable: {
424
+ required: false,
425
+ control: "boolean",
426
+ type: "boolean",
427
+ description: "Defines whether the element can be dragged."
428
+ },
429
+ form: {
430
+ required: false,
431
+ control: "text",
432
+ type: "string",
433
+ description: "Indicates the form that is the owner of the element."
434
+ },
435
+ hidden: {
436
+ required: false,
437
+ control: "boolean",
438
+ type: "boolean",
439
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
440
+ },
441
+ id: {
442
+ required: false,
443
+ control: "text",
444
+ type: "string",
445
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
446
+ },
377
447
  inputMode: {
378
448
  description: "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",
379
449
  required: false,
@@ -401,26 +471,86 @@ const props = {
401
471
  itemRef: { required: false, control: "text", type: "string" },
402
472
  itemScope: { required: false, control: "boolean", type: "boolean" },
403
473
  itemType: { required: false, control: "text", type: "string" },
404
- lang: { required: false, control: "text", type: "string" },
405
- maxLength: { required: false, control: "number", type: "number" },
406
- minLength: { required: false, control: "number", type: "number" },
407
- name: { required: false, control: "text", type: "string" },
474
+ lang: {
475
+ required: false,
476
+ control: "text",
477
+ type: "string",
478
+ description: "Defines the language used in the element."
479
+ },
480
+ maxLength: {
481
+ required: false,
482
+ control: "number",
483
+ type: "number",
484
+ description: "Defines the maximum number of characters allowed in the element."
485
+ },
486
+ minLength: {
487
+ required: false,
488
+ control: "number",
489
+ type: "number",
490
+ description: "Defines the minimum number of characters allowed in the element."
491
+ },
492
+ name: {
493
+ required: false,
494
+ control: "text",
495
+ type: "string",
496
+ description: "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)."
497
+ },
408
498
  nonce: { required: false, control: "text", type: "string" },
409
- placeholder: { required: false, control: "text", type: "string" },
499
+ placeholder: {
500
+ required: false,
501
+ control: "text",
502
+ type: "string",
503
+ description: "Provides a hint to the user of what can be entered in the field."
504
+ },
410
505
  prefix: { required: false, control: "text", type: "string" },
411
506
  property: { required: false, control: "text", type: "string" },
412
507
  radioGroup: { required: false, control: "text", type: "string" },
413
- readOnly: { required: false, control: "boolean", type: "boolean" },
414
- rel: { required: false, control: "text", type: "string" },
415
- required: { required: false, control: "boolean", type: "boolean" },
508
+ readOnly: {
509
+ required: false,
510
+ control: "boolean",
511
+ type: "boolean",
512
+ description: "Indicates whether the element can be edited."
513
+ },
514
+ rel: {
515
+ required: false,
516
+ control: "text",
517
+ type: "string",
518
+ description: "Specifies the relationship of the target object to the link object."
519
+ },
520
+ required: {
521
+ required: false,
522
+ control: "boolean",
523
+ type: "boolean",
524
+ description: "Indicates whether this form element must be filled before the form can be submitted."
525
+ },
416
526
  resource: { required: false, control: "text", type: "string" },
417
527
  results: { required: false, control: "number", type: "number" },
418
528
  rev: { required: false, control: "text", type: "string" },
419
- role: { required: false, control: "text", type: "string" },
420
- rows: { required: false, control: "number", type: "number" },
529
+ role: {
530
+ required: false,
531
+ control: "text",
532
+ type: "string",
533
+ description: "Defines an explicit role for an element for use by assistive technologies."
534
+ },
535
+ rows: {
536
+ required: false,
537
+ control: "number",
538
+ type: "number",
539
+ description: "Defines the number of rows in a text area."
540
+ },
421
541
  security: { required: false, control: "text", type: "string" },
422
- slot: { required: false, control: "text", type: "string" },
423
- spellCheck: { required: false, control: "boolean", type: "boolean" },
542
+ slot: {
543
+ required: false,
544
+ control: "text",
545
+ type: "string",
546
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
547
+ },
548
+ spellCheck: {
549
+ required: false,
550
+ control: "boolean",
551
+ type: "boolean",
552
+ description: "Indicates whether spell checking is allowed for the element."
553
+ },
424
554
  suppressContentEditableWarning: {
425
555
  required: false,
426
556
  control: "boolean",
@@ -431,13 +561,24 @@ const props = {
431
561
  control: "boolean",
432
562
  type: "boolean"
433
563
  },
434
- tabIndex: { required: false, control: "number", type: "number" },
435
- title: { required: false, control: "text", type: "string" },
564
+ tabIndex: {
565
+ required: false,
566
+ control: "number",
567
+ type: "number",
568
+ description: "Overrides the browser's default tab order and follows the one specified instead."
569
+ },
570
+ title: {
571
+ required: false,
572
+ control: "text",
573
+ type: "string",
574
+ description: "Text to be displayed in a tooltip when hovering over the element."
575
+ },
436
576
  translate: {
437
577
  required: false,
438
578
  control: "radio",
439
579
  type: "string",
440
- options: ["yes", "no"]
580
+ options: ["yes", "no"],
581
+ description: "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."
441
582
  },
442
583
  typeof: { required: false, control: "text", type: "string" },
443
584
  unselectable: {
@@ -447,5 +588,10 @@ const props = {
447
588
  options: ["on", "off"]
448
589
  },
449
590
  vocab: { required: false, control: "text", type: "string" },
450
- wrap: { required: false, control: "text", type: "string" }
591
+ wrap: {
592
+ required: false,
593
+ control: "text",
594
+ type: "string",
595
+ description: "Indicates whether the text should be wrapped."
596
+ }
451
597
  };
@@ -25,30 +25,46 @@ __export(tooltip_props_exports, {
25
25
  module.exports = __toCommonJS(tooltip_props_exports);
26
26
  const propsTooltip = {
27
27
  delayDuration: {
28
- description: "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",
28
+ description: "The delay before the Tooltip shows after the Trigger is hovered, in milliseconds. If no value is specified, the default is 700ms",
29
29
  required: false,
30
30
  control: "number",
31
31
  type: "number"
32
32
  },
33
33
  disableHoverableContent: {
34
- description: "When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.\n@defaultValue false",
34
+ description: "When toggled, prevents the Tooltip content from showing when the Trigger is hovered.",
35
35
  required: false,
36
36
  control: "boolean",
37
37
  type: "boolean"
38
38
  },
39
- open: { required: false, control: "boolean", type: "boolean" }
39
+ open: {
40
+ required: false,
41
+ control: "boolean",
42
+ type: "boolean",
43
+ description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
44
+ }
40
45
  };
41
46
  const propsTooltipTrigger = {};
42
47
  const propsTooltipContent = {
43
48
  about: { required: false, control: "text", type: "string" },
44
- accessKey: { required: false, control: "text", type: "string" },
49
+ accessKey: {
50
+ required: false,
51
+ control: "text",
52
+ type: "string",
53
+ description: "Keyboard shortcut to activate or add focus to the element."
54
+ },
45
55
  align: {
46
56
  required: false,
47
57
  control: "radio",
48
58
  type: "string",
49
- options: ["center", "start", "end"]
59
+ options: ["center", "start", "end"],
60
+ description: "Specifies the horizontal alignment of the element."
61
+ },
62
+ alignOffset: {
63
+ required: false,
64
+ control: "number",
65
+ type: "number",
66
+ description: "The offset in pixels from the \u201Cstart\u201C or \u201Cend\u201C alignment options."
50
67
  },
51
- alignOffset: { required: false, control: "number", type: "number" },
52
68
  "aria-activedescendant": {
53
69
  description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
54
70
  required: false,
@@ -204,7 +220,7 @@ const propsTooltipContent = {
204
220
  type: "string"
205
221
  },
206
222
  "aria-label": {
207
- description: "A more descriptive label for accessibility purpose",
223
+ description: "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.",
208
224
  required: false,
209
225
  control: "text",
210
226
  type: "string"
@@ -381,26 +397,71 @@ const propsTooltipContent = {
381
397
  type: "string"
382
398
  },
383
399
  arrowPadding: { required: false, control: "number", type: "number" },
384
- autoCapitalize: { required: false, control: "text", type: "string" },
400
+ autoCapitalize: {
401
+ required: false,
402
+ control: "text",
403
+ type: "string",
404
+ description: "Sets whether input is automatically capitalized when entered by user."
405
+ },
385
406
  autoCorrect: { required: false, control: "text", type: "string" },
386
- autoFocus: { required: false, control: "boolean", type: "boolean" },
407
+ autoFocus: {
408
+ required: false,
409
+ control: "boolean",
410
+ type: "boolean",
411
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
412
+ },
387
413
  autoSave: { required: false, control: "text", type: "string" },
388
414
  avoidCollisions: { required: false, control: "boolean", type: "boolean" },
389
415
  className: { required: false, control: "text", type: "string" },
390
- color: { required: false, control: "color", type: "string" },
391
- content: { required: false, control: "text", type: "string" },
392
- contextMenu: { required: false, control: "text", type: "string" },
416
+ color: {
417
+ required: false,
418
+ control: "color",
419
+ type: "string",
420
+ description: "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."
421
+ },
422
+ content: {
423
+ required: false,
424
+ control: "text",
425
+ type: "string",
426
+ description: "A value associated with http-equiv orname depending on the context."
427
+ },
428
+ contextMenu: {
429
+ required: false,
430
+ control: "text",
431
+ type: "string",
432
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
433
+ },
393
434
  datatype: { required: false, control: "text", type: "string" },
394
- dir: { required: false, control: "text", type: "string" },
395
- draggable: { required: false, control: "boolean", type: "boolean" },
396
- hidden: { required: false, control: "boolean", type: "boolean" },
435
+ dir: {
436
+ required: false,
437
+ control: "text",
438
+ type: "string",
439
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
440
+ },
441
+ draggable: {
442
+ required: false,
443
+ control: "boolean",
444
+ type: "boolean",
445
+ description: "Defines whether the element can be dragged."
446
+ },
447
+ hidden: {
448
+ required: false,
449
+ control: "boolean",
450
+ type: "boolean",
451
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
452
+ },
397
453
  hideWhenDetached: {
398
454
  required: false,
399
455
  control: "boolean",
400
456
  type: "boolean",
401
457
  defaultValue: true
402
458
  },
403
- id: { required: false, control: "text", type: "string" },
459
+ id: {
460
+ required: false,
461
+ control: "text",
462
+ type: "string",
463
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
464
+ },
404
465
  inputMode: {
405
466
  description: "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",
406
467
  required: false,
@@ -428,32 +489,64 @@ const propsTooltipContent = {
428
489
  itemRef: { required: false, control: "text", type: "string" },
429
490
  itemScope: { required: false, control: "boolean", type: "boolean" },
430
491
  itemType: { required: false, control: "text", type: "string" },
431
- lang: { required: false, control: "text", type: "string" },
492
+ lang: {
493
+ required: false,
494
+ control: "text",
495
+ type: "string",
496
+ description: "Defines the language used in the element."
497
+ },
432
498
  nonce: { required: false, control: "text", type: "string" },
433
- placeholder: { required: false, control: "text", type: "string" },
499
+ placeholder: {
500
+ required: false,
501
+ control: "text",
502
+ type: "string",
503
+ description: "Provides a hint to the user of what can be entered in the field."
504
+ },
434
505
  prefix: { required: false, control: "text", type: "string" },
435
506
  property: { required: false, control: "text", type: "string" },
436
507
  radioGroup: { required: false, control: "text", type: "string" },
437
- rel: { required: false, control: "text", type: "string" },
508
+ rel: {
509
+ required: false,
510
+ control: "text",
511
+ type: "string",
512
+ description: "Specifies the relationship of the target object to the link object."
513
+ },
438
514
  resource: { required: false, control: "text", type: "string" },
439
515
  results: { required: false, control: "number", type: "number" },
440
516
  rev: { required: false, control: "text", type: "string" },
441
- role: { required: false, control: "text", type: "string" },
517
+ role: {
518
+ required: false,
519
+ control: "text",
520
+ type: "string",
521
+ description: "Defines an explicit role for an element for use by assistive technologies."
522
+ },
442
523
  security: { required: false, control: "text", type: "string" },
443
524
  side: {
444
525
  required: false,
445
526
  control: "select",
446
527
  type: "string",
447
- options: ["top", "right", "bottom", "left"]
528
+ options: ["top", "right", "bottom", "left"],
529
+ description: "The preferred alignment against the Trigger. May change when collisions occur."
448
530
  },
449
531
  sideOffset: {
450
532
  required: false,
451
533
  control: "number",
452
534
  type: "number",
453
- defaultValue: 4
535
+ defaultValue: 4,
536
+ description: "The distance in pixels between the Content and the Trigger."
537
+ },
538
+ slot: {
539
+ required: false,
540
+ control: "text",
541
+ type: "string",
542
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
543
+ },
544
+ spellCheck: {
545
+ required: false,
546
+ control: "boolean",
547
+ type: "boolean",
548
+ description: "Indicates whether spell checking is allowed for the element."
454
549
  },
455
- slot: { required: false, control: "text", type: "string" },
456
- spellCheck: { required: false, control: "boolean", type: "boolean" },
457
550
  sticky: {
458
551
  required: false,
459
552
  control: "radio",
@@ -470,13 +563,24 @@ const propsTooltipContent = {
470
563
  control: "boolean",
471
564
  type: "boolean"
472
565
  },
473
- tabIndex: { required: false, control: "number", type: "number" },
474
- title: { required: false, control: "text", type: "string" },
566
+ tabIndex: {
567
+ required: false,
568
+ control: "number",
569
+ type: "number",
570
+ description: "Overrides the browser's default tab order and follows the one specified instead."
571
+ },
572
+ title: {
573
+ required: false,
574
+ control: "text",
575
+ type: "string",
576
+ description: "Text to be displayed in a tooltip when hovering over the element."
577
+ },
475
578
  translate: {
476
579
  required: false,
477
580
  control: "radio",
478
581
  type: "string",
479
- options: ["yes", "no"]
582
+ options: ["yes", "no"],
583
+ description: "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."
480
584
  },
481
585
  typeof: { required: false, control: "text", type: "string" },
482
586
  unselectable: {
@@ -41,6 +41,7 @@ __export(accordion_ws_exports, {
41
41
  });
42
42
  module.exports = __toCommonJS(accordion_ws_exports);
43
43
  var import_svg = require("@webstudio-is/icons/svg");
44
+ var import_react_sdk = require("@webstudio-is/react-sdk");
44
45
  var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
45
46
  var tc = __toESM(require("./theme/tailwind-classes"), 1);
46
47
  var import_styles = require("./theme/styles");
@@ -127,6 +128,7 @@ const metaAccordion = {
127
128
  type: "container",
128
129
  icon: import_svg.AccordionIcon,
129
130
  presetStyle,
131
+ description: "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.",
130
132
  template: [
131
133
  {
132
134
  type: "instance",
@@ -220,46 +222,54 @@ const metaAccordion = {
220
222
  const metaAccordionItem = {
221
223
  category: "hidden",
222
224
  type: "container",
225
+ label: "Item",
223
226
  icon: import_svg.ItemIcon,
224
227
  requiredAncestors: ["Accordion"],
225
228
  indexWithinAncestor: "Accordion",
226
- presetStyle,
227
- label: "Item"
229
+ presetStyle
228
230
  };
229
231
  const metaAccordionHeader = {
230
232
  category: "hidden",
231
233
  type: "container",
234
+ label: "Item Header",
232
235
  icon: import_svg.HeaderIcon,
233
236
  requiredAncestors: ["AccordionItem"],
234
237
  detachable: false,
235
238
  presetStyle: {
236
239
  h3: [import_css_normalize.h3, tc.my(0)].flat()
237
- },
238
- label: "Item Header"
240
+ }
239
241
  };
240
242
  const metaAccordionTrigger = {
241
243
  category: "hidden",
242
244
  type: "container",
245
+ label: "Item Trigger",
243
246
  icon: import_svg.TriggerIcon,
244
247
  requiredAncestors: ["AccordionHeader"],
245
248
  detachable: false,
249
+ states: [
250
+ ...import_react_sdk.defaultStates,
251
+ {
252
+ category: "component-states",
253
+ label: "Open",
254
+ selector: "[data-state=open]"
255
+ }
256
+ ],
246
257
  presetStyle: {
247
258
  button: [import_css_normalize.button, import_styles.buttonReset].flat()
248
- },
249
- label: "Item Trigger"
259
+ }
250
260
  };
251
261
  const metaAccordionContent = {
252
262
  category: "hidden",
253
263
  type: "container",
264
+ label: "Item Content",
254
265
  icon: import_svg.ContentIcon,
255
266
  requiredAncestors: ["AccordionItem"],
256
267
  detachable: false,
257
- presetStyle,
258
- label: "Item Content"
268
+ presetStyle
259
269
  };
260
270
  const propsMetaAccordion = {
261
271
  props: import_accordion.propsAccordion,
262
- initialProps: ["value", "collapsible", "dir", "orientation"]
272
+ initialProps: ["value", "collapsible"]
263
273
  };
264
274
  const propsMetaAccordionItem = {
265
275
  props: import_accordion.propsAccordionItem
@@ -45,6 +45,7 @@ const metaCheckbox = {
45
45
  order: 101,
46
46
  type: "container",
47
47
  icon: import_svg.CheckboxCheckedIcon,
48
+ description: "Use within a form to allow your users to toggle between checked and not checked. Group checkboxes by matching their \u201CName\u201D properties. Unlike radios, any number of checkboxes in a group can be checked.",
48
49
  states: [
49
50
  ...import_react_sdk.defaultStates,
50
51
  {
@@ -157,6 +158,7 @@ const metaCheckbox = {
157
158
  const metaCheckboxIndicator = {
158
159
  category: "hidden",
159
160
  type: "container",
161
+ detachable: false,
160
162
  icon: import_svg.TriggerIcon,
161
163
  states: import_react_sdk.defaultStates,
162
164
  presetStyle: {
@@ -39,6 +39,7 @@ const metaCollapsible = {
39
39
  type: "container",
40
40
  presetStyle,
41
41
  icon: import_svg.CollapsibleIcon,
42
+ description: "An interactive component which expands and collapses some content, triggered by a button.",
42
43
  template: [
43
44
  {
44
45
  type: "instance",
@@ -53,9 +53,6 @@ var import_styles = require("./theme/styles");
53
53
  const presetStyle = {
54
54
  div: import_css_normalize.div
55
55
  };
56
- const buttonPresetStyle = {
57
- button: import_css_normalize.button
58
- };
59
56
  const titlePresetStyle = {
60
57
  h2: import_css_normalize.h2
61
58
  };
@@ -98,7 +95,9 @@ const metaDialogDescription = {
98
95
  const metaDialogClose = {
99
96
  category: "hidden",
100
97
  type: "container",
101
- presetStyle: buttonPresetStyle,
98
+ presetStyle: {
99
+ button: [import_styles.buttonReset, import_css_normalize.button].flat()
100
+ },
102
101
  icon: import_svg.ButtonElementIcon,
103
102
  label: "Close Button"
104
103
  };
@@ -108,6 +107,7 @@ const metaDialog = {
108
107
  type: "container",
109
108
  icon: import_svg.DialogIcon,
110
109
  stylable: false,
110
+ description: "Displays content with an overlay that covers the window, triggered by a button. Clicking the overlay will close the dialog.",
111
111
  template: [
112
112
  {
113
113
  type: "instance",
@@ -261,7 +261,21 @@ const metaDialog = {
261
261
  tc.hover(tc.opacity(100)),
262
262
  tc.focus(tc.ring("ring", 2, "background", 2))
263
263
  ].flat(),
264
- children: [{ type: "text", value: "\u2715" }]
264
+ children: [
265
+ {
266
+ type: "instance",
267
+ component: "HtmlEmbed",
268
+ label: "Close Icon",
269
+ props: [
270
+ {
271
+ type: "string",
272
+ name: "code",
273
+ value: import_svg.LargeXIcon
274
+ }
275
+ ],
276
+ children: []
277
+ }
278
+ ]
265
279
  }
266
280
  ]
267
281
  }
@@ -47,6 +47,7 @@ const meta = {
47
47
  icon: import_svg.LabelIcon,
48
48
  presetStyle,
49
49
  states: import_react_sdk.defaultStates,
50
+ description: "An accessible label to describe the purpose of an input. Match the \u201CFor\u201D property on the label with the \u201CID\u201D of the input to connect them.",
50
51
  template: [
51
52
  {
52
53
  type: "instance",