@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
@@ -24,20 +24,36 @@ __export(popover_props_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(popover_props_exports);
26
26
  const propsPopover = {
27
- open: { required: false, control: "boolean", type: "boolean" }
27
+ open: {
28
+ required: false,
29
+ control: "boolean",
30
+ type: "boolean",
31
+ description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
32
+ }
28
33
  };
29
34
  const propsPopoverTrigger = {};
30
35
  const propsPopoverContent = {
31
36
  about: { required: false, control: "text", type: "string" },
32
- accessKey: { required: false, control: "text", type: "string" },
37
+ accessKey: {
38
+ required: false,
39
+ control: "text",
40
+ type: "string",
41
+ description: "Keyboard shortcut to activate or add focus to the element."
42
+ },
33
43
  align: {
34
44
  required: false,
35
45
  control: "radio",
36
46
  type: "string",
37
47
  defaultValue: "center",
38
- options: ["center", "start", "end"]
48
+ options: ["center", "start", "end"],
49
+ description: "Specifies the horizontal alignment of the element."
50
+ },
51
+ alignOffset: {
52
+ required: false,
53
+ control: "number",
54
+ type: "number",
55
+ description: "The offset in pixels from the \u201Cstart\u201C or \u201Cend\u201C alignment options."
39
56
  },
40
- alignOffset: { required: false, control: "number", type: "number" },
41
57
  "aria-activedescendant": {
42
58
  description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
43
59
  required: false,
@@ -193,7 +209,7 @@ const propsPopoverContent = {
193
209
  type: "string"
194
210
  },
195
211
  "aria-label": {
196
- description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
212
+ 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.",
197
213
  required: false,
198
214
  control: "text",
199
215
  type: "string"
@@ -370,26 +386,71 @@ const propsPopoverContent = {
370
386
  type: "string"
371
387
  },
372
388
  arrowPadding: { required: false, control: "number", type: "number" },
373
- autoCapitalize: { required: false, control: "text", type: "string" },
389
+ autoCapitalize: {
390
+ required: false,
391
+ control: "text",
392
+ type: "string",
393
+ description: "Sets whether input is automatically capitalized when entered by user."
394
+ },
374
395
  autoCorrect: { required: false, control: "text", type: "string" },
375
- autoFocus: { required: false, control: "boolean", type: "boolean" },
396
+ autoFocus: {
397
+ required: false,
398
+ control: "boolean",
399
+ type: "boolean",
400
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
401
+ },
376
402
  autoSave: { required: false, control: "text", type: "string" },
377
403
  avoidCollisions: { required: false, control: "boolean", type: "boolean" },
378
404
  className: { required: false, control: "text", type: "string" },
379
- color: { required: false, control: "color", type: "string" },
380
- content: { required: false, control: "text", type: "string" },
381
- contextMenu: { required: false, control: "text", type: "string" },
405
+ color: {
406
+ required: false,
407
+ control: "color",
408
+ type: "string",
409
+ 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."
410
+ },
411
+ content: {
412
+ required: false,
413
+ control: "text",
414
+ type: "string",
415
+ description: "A value associated with http-equiv orname depending on the context."
416
+ },
417
+ contextMenu: {
418
+ required: false,
419
+ control: "text",
420
+ type: "string",
421
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
422
+ },
382
423
  datatype: { required: false, control: "text", type: "string" },
383
- dir: { required: false, control: "text", type: "string" },
384
- draggable: { required: false, control: "boolean", type: "boolean" },
385
- hidden: { required: false, control: "boolean", type: "boolean" },
424
+ dir: {
425
+ required: false,
426
+ control: "text",
427
+ type: "string",
428
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
429
+ },
430
+ draggable: {
431
+ required: false,
432
+ control: "boolean",
433
+ type: "boolean",
434
+ description: "Defines whether the element can be dragged."
435
+ },
436
+ hidden: {
437
+ required: false,
438
+ control: "boolean",
439
+ type: "boolean",
440
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
441
+ },
386
442
  hideWhenDetached: {
387
443
  required: false,
388
444
  control: "boolean",
389
445
  type: "boolean",
390
446
  defaultValue: true
391
447
  },
392
- id: { required: false, control: "text", type: "string" },
448
+ id: {
449
+ required: false,
450
+ control: "text",
451
+ type: "string",
452
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
453
+ },
393
454
  inputMode: {
394
455
  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",
395
456
  required: false,
@@ -417,32 +478,64 @@ const propsPopoverContent = {
417
478
  itemRef: { required: false, control: "text", type: "string" },
418
479
  itemScope: { required: false, control: "boolean", type: "boolean" },
419
480
  itemType: { required: false, control: "text", type: "string" },
420
- lang: { required: false, control: "text", type: "string" },
481
+ lang: {
482
+ required: false,
483
+ control: "text",
484
+ type: "string",
485
+ description: "Defines the language used in the element."
486
+ },
421
487
  nonce: { required: false, control: "text", type: "string" },
422
- placeholder: { required: false, control: "text", type: "string" },
488
+ placeholder: {
489
+ required: false,
490
+ control: "text",
491
+ type: "string",
492
+ description: "Provides a hint to the user of what can be entered in the field."
493
+ },
423
494
  prefix: { required: false, control: "text", type: "string" },
424
495
  property: { required: false, control: "text", type: "string" },
425
496
  radioGroup: { required: false, control: "text", type: "string" },
426
- rel: { required: false, control: "text", type: "string" },
497
+ rel: {
498
+ required: false,
499
+ control: "text",
500
+ type: "string",
501
+ description: "Specifies the relationship of the target object to the link object."
502
+ },
427
503
  resource: { required: false, control: "text", type: "string" },
428
504
  results: { required: false, control: "number", type: "number" },
429
505
  rev: { required: false, control: "text", type: "string" },
430
- role: { required: false, control: "text", type: "string" },
506
+ role: {
507
+ required: false,
508
+ control: "text",
509
+ type: "string",
510
+ description: "Defines an explicit role for an element for use by assistive technologies."
511
+ },
431
512
  security: { required: false, control: "text", type: "string" },
432
513
  side: {
433
514
  required: false,
434
515
  control: "select",
435
516
  type: "string",
436
- options: ["top", "right", "bottom", "left"]
517
+ options: ["top", "right", "bottom", "left"],
518
+ description: "The preferred alignment against the Trigger. May change when collisions occur."
437
519
  },
438
520
  sideOffset: {
439
521
  required: false,
440
522
  control: "number",
441
523
  type: "number",
442
- defaultValue: 4
524
+ defaultValue: 4,
525
+ description: "The distance in pixels between the Content and the Trigger."
526
+ },
527
+ slot: {
528
+ required: false,
529
+ control: "text",
530
+ type: "string",
531
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
532
+ },
533
+ spellCheck: {
534
+ required: false,
535
+ control: "boolean",
536
+ type: "boolean",
537
+ description: "Indicates whether spell checking is allowed for the element."
443
538
  },
444
- slot: { required: false, control: "text", type: "string" },
445
- spellCheck: { required: false, control: "boolean", type: "boolean" },
446
539
  sticky: {
447
540
  required: false,
448
541
  control: "radio",
@@ -459,13 +552,24 @@ const propsPopoverContent = {
459
552
  control: "boolean",
460
553
  type: "boolean"
461
554
  },
462
- tabIndex: { required: false, control: "number", type: "number" },
463
- title: { required: false, control: "text", type: "string" },
555
+ tabIndex: {
556
+ required: false,
557
+ control: "number",
558
+ type: "number",
559
+ description: "Overrides the browser's default tab order and follows the one specified instead."
560
+ },
561
+ title: {
562
+ required: false,
563
+ control: "text",
564
+ type: "string",
565
+ description: "Text to be displayed in a tooltip when hovering over the element."
566
+ },
464
567
  translate: {
465
568
  required: false,
466
569
  control: "radio",
467
570
  type: "string",
468
- options: ["yes", "no"]
571
+ options: ["yes", "no"],
572
+ 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."
469
573
  },
470
574
  typeof: { required: false, control: "text", type: "string" },
471
575
  unselectable: {