@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
@@ -1,20 +1,38 @@
1
1
  import type { PropMeta } from "@webstudio-is/generate-arg-types";
2
2
 
3
3
  export const propsPopover: Record<string, PropMeta> = {
4
- open: { required: false, control: "boolean", type: "boolean" },
4
+ open: {
5
+ required: false,
6
+ control: "boolean",
7
+ type: "boolean",
8
+ description:
9
+ "Show or hide the content of this component on the canvas. This will not affect the initial state of the component.",
10
+ },
5
11
  };
6
12
  export const propsPopoverTrigger: Record<string, PropMeta> = {};
7
13
  export const propsPopoverContent: Record<string, PropMeta> = {
8
14
  about: { required: false, control: "text", type: "string" },
9
- accessKey: { required: false, control: "text", type: "string" },
15
+ accessKey: {
16
+ required: false,
17
+ control: "text",
18
+ type: "string",
19
+ description: "Keyboard shortcut to activate or add focus to the element.",
20
+ },
10
21
  align: {
11
22
  required: false,
12
23
  control: "radio",
13
24
  type: "string",
14
25
  defaultValue: "center",
15
26
  options: ["center", "start", "end"],
27
+ description: "Specifies the horizontal alignment of the element.",
28
+ },
29
+ alignOffset: {
30
+ required: false,
31
+ control: "number",
32
+ type: "number",
33
+ description:
34
+ "The offset in pixels from the “start“ or “end“ alignment options.",
16
35
  },
17
- alignOffset: { required: false, control: "number", type: "number" },
18
36
  "aria-activedescendant": {
19
37
  description:
20
38
  "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
@@ -195,7 +213,7 @@ export const propsPopoverContent: Record<string, PropMeta> = {
195
213
  },
196
214
  "aria-label": {
197
215
  description:
198
- "Defines a string value that labels the current element.\n@see aria-labelledby.",
216
+ "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.",
199
217
  required: false,
200
218
  control: "text",
201
219
  type: "string",
@@ -395,26 +413,79 @@ export const propsPopoverContent: Record<string, PropMeta> = {
395
413
  type: "string",
396
414
  },
397
415
  arrowPadding: { required: false, control: "number", type: "number" },
398
- autoCapitalize: { required: false, control: "text", type: "string" },
416
+ autoCapitalize: {
417
+ required: false,
418
+ control: "text",
419
+ type: "string",
420
+ description:
421
+ "Sets whether input is automatically capitalized when entered by user.",
422
+ },
399
423
  autoCorrect: { required: false, control: "text", type: "string" },
400
- autoFocus: { required: false, control: "boolean", type: "boolean" },
424
+ autoFocus: {
425
+ required: false,
426
+ control: "boolean",
427
+ type: "boolean",
428
+ description:
429
+ "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
430
+ },
401
431
  autoSave: { required: false, control: "text", type: "string" },
402
432
  avoidCollisions: { required: false, control: "boolean", type: "boolean" },
403
433
  className: { required: false, control: "text", type: "string" },
404
- color: { required: false, control: "color", type: "string" },
405
- content: { required: false, control: "text", type: "string" },
406
- contextMenu: { required: false, control: "text", type: "string" },
434
+ color: {
435
+ required: false,
436
+ control: "color",
437
+ type: "string",
438
+ description:
439
+ "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.",
440
+ },
441
+ content: {
442
+ required: false,
443
+ control: "text",
444
+ type: "string",
445
+ description:
446
+ "A value associated with http-equiv orname depending on the context.",
447
+ },
448
+ contextMenu: {
449
+ required: false,
450
+ control: "text",
451
+ type: "string",
452
+ description:
453
+ "Defines the ID of a menu element which willserve as the element's context menu.",
454
+ },
407
455
  datatype: { required: false, control: "text", type: "string" },
408
- dir: { required: false, control: "text", type: "string" },
409
- draggable: { required: false, control: "boolean", type: "boolean" },
410
- hidden: { required: false, control: "boolean", type: "boolean" },
456
+ dir: {
457
+ required: false,
458
+ control: "text",
459
+ type: "string",
460
+ description:
461
+ "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
462
+ },
463
+ draggable: {
464
+ required: false,
465
+ control: "boolean",
466
+ type: "boolean",
467
+ description: "Defines whether the element can be dragged.",
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
+ },
411
476
  hideWhenDetached: {
412
477
  required: false,
413
478
  control: "boolean",
414
479
  type: "boolean",
415
480
  defaultValue: true,
416
481
  },
417
- id: { required: false, control: "text", type: "string" },
482
+ id: {
483
+ required: false,
484
+ control: "text",
485
+ type: "string",
486
+ description:
487
+ "Often used with CSS to style a specific element. The value of this attribute must be unique.",
488
+ },
418
489
  inputMode: {
419
490
  description:
420
491
  "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",
@@ -444,32 +515,68 @@ export const propsPopoverContent: Record<string, PropMeta> = {
444
515
  itemRef: { required: false, control: "text", type: "string" },
445
516
  itemScope: { required: false, control: "boolean", type: "boolean" },
446
517
  itemType: { required: false, control: "text", type: "string" },
447
- lang: { required: false, control: "text", type: "string" },
518
+ lang: {
519
+ required: false,
520
+ control: "text",
521
+ type: "string",
522
+ description: "Defines the language used in the element.",
523
+ },
448
524
  nonce: { required: false, control: "text", type: "string" },
449
- placeholder: { required: false, control: "text", type: "string" },
525
+ placeholder: {
526
+ required: false,
527
+ control: "text",
528
+ type: "string",
529
+ description:
530
+ "Provides a hint to the user of what can be entered in the field.",
531
+ },
450
532
  prefix: { required: false, control: "text", type: "string" },
451
533
  property: { required: false, control: "text", type: "string" },
452
534
  radioGroup: { required: false, control: "text", type: "string" },
453
- rel: { required: false, control: "text", type: "string" },
535
+ rel: {
536
+ required: false,
537
+ control: "text",
538
+ type: "string",
539
+ description:
540
+ "Specifies the relationship of the target object to the link object.",
541
+ },
454
542
  resource: { required: false, control: "text", type: "string" },
455
543
  results: { required: false, control: "number", type: "number" },
456
544
  rev: { required: false, control: "text", type: "string" },
457
- role: { required: false, control: "text", type: "string" },
545
+ role: {
546
+ required: false,
547
+ control: "text",
548
+ type: "string",
549
+ description:
550
+ "Defines an explicit role for an element for use by assistive technologies.",
551
+ },
458
552
  security: { required: false, control: "text", type: "string" },
459
553
  side: {
460
554
  required: false,
461
555
  control: "select",
462
556
  type: "string",
463
557
  options: ["top", "right", "bottom", "left"],
558
+ description:
559
+ "The preferred alignment against the Trigger. May change when collisions occur.",
464
560
  },
465
561
  sideOffset: {
466
562
  required: false,
467
563
  control: "number",
468
564
  type: "number",
469
565
  defaultValue: 4,
566
+ description: "The distance in pixels between the Content and the Trigger.",
567
+ },
568
+ slot: {
569
+ required: false,
570
+ control: "text",
571
+ type: "string",
572
+ description: "Assigns a slot in a shadow DOM shadow tree to an element.",
573
+ },
574
+ spellCheck: {
575
+ required: false,
576
+ control: "boolean",
577
+ type: "boolean",
578
+ description: "Indicates whether spell checking is allowed for the element.",
470
579
  },
471
- slot: { required: false, control: "text", type: "string" },
472
- spellCheck: { required: false, control: "boolean", type: "boolean" },
473
580
  sticky: {
474
581
  required: false,
475
582
  control: "radio",
@@ -486,13 +593,27 @@ export const propsPopoverContent: Record<string, PropMeta> = {
486
593
  control: "boolean",
487
594
  type: "boolean",
488
595
  },
489
- tabIndex: { required: false, control: "number", type: "number" },
490
- title: { required: false, control: "text", type: "string" },
596
+ tabIndex: {
597
+ required: false,
598
+ control: "number",
599
+ type: "number",
600
+ description:
601
+ "Overrides the browser's default tab order and follows the one specified instead.",
602
+ },
603
+ title: {
604
+ required: false,
605
+ control: "text",
606
+ type: "string",
607
+ description:
608
+ "Text to be displayed in a tooltip when hovering over the element.",
609
+ },
491
610
  translate: {
492
611
  required: false,
493
612
  control: "radio",
494
613
  type: "string",
495
614
  options: ["yes", "no"],
615
+ description:
616
+ "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.",
496
617
  },
497
618
  typeof: { required: false, control: "text", type: "string" },
498
619
  unselectable: {