@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
@@ -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: {
@@ -127,6 +127,7 @@ const metaAccordion = {
127
127
  type: "container",
128
128
  icon: import_svg.AccordionIcon,
129
129
  presetStyle,
130
+ 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
131
  template: [
131
132
  {
132
133
  type: "instance",
@@ -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",
@@ -108,6 +108,7 @@ const metaDialog = {
108
108
  type: "container",
109
109
  icon: import_svg.DialogIcon,
110
110
  stylable: false,
111
+ description: "Displays content with an overlay that covers the window, triggered by a button. Clicking the overlay will close the dialog.",
111
112
  template: [
112
113
  {
113
114
  type: "instance",
@@ -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",
@@ -304,6 +304,7 @@ const metaNavigationMenu = {
304
304
  category: "radix",
305
305
  order: 2,
306
306
  type: "container",
307
+ description: "A collection of links for navigating websites.",
307
308
  icon: import_svg.NavigationMenuIcon,
308
309
  presetStyle,
309
310
  template: [
@@ -65,6 +65,7 @@ const metaPopover = {
65
65
  type: "container",
66
66
  icon: import_svg.PopoverIcon,
67
67
  stylable: false,
68
+ description: "Displays rich content in a portal, triggered by a button.",
68
69
  template: [
69
70
  {
70
71
  type: "instance",
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var props_descriptions_exports = {};
20
+ __export(props_descriptions_exports, {
21
+ propsDescriptions: () => propsDescriptions
22
+ });
23
+ module.exports = __toCommonJS(props_descriptions_exports);
24
+ const open = "Show or hide the content of this component on the canvas. This will not affect the initial state of the component.";
25
+ const alignOffset = "The offset in pixels from the \u201Cstart\u201C or \u201Cend\u201C alignment options.";
26
+ const sideOffset = "The distance in pixels between the Content and the Trigger.";
27
+ const side = "The preferred alignment against the Trigger. May change when collisions occur.";
28
+ const propsDescriptions = {
29
+ Dialog: {
30
+ open
31
+ },
32
+ Sheet: {
33
+ open
34
+ },
35
+ Collapsible: {
36
+ open
37
+ },
38
+ Popover: {
39
+ open
40
+ },
41
+ PopoverContent: {
42
+ alignOffset,
43
+ sideOffset,
44
+ side
45
+ },
46
+ Tooltip: {
47
+ open,
48
+ delayDuration: "The delay before the Tooltip shows after the Trigger is hovered, in milliseconds. If no value is specified, the default is 700ms",
49
+ disableHoverableContent: "When toggled, prevents the Tooltip content from showing when the Trigger is hovered."
50
+ },
51
+ TooltipContent: {
52
+ alignOffset,
53
+ sideOffset,
54
+ side
55
+ }
56
+ };
@@ -105,6 +105,7 @@ const metaRadioGroup = {
105
105
  category: "radix",
106
106
  order: 100,
107
107
  type: "container",
108
+ description: "A set of checkable buttons\u2014known as radio buttons\u2014where no more than one of the buttons can be checked at a time.",
108
109
  icon: import_svg.RadioCheckedIcon,
109
110
  states: [
110
111
  ...import_react_sdk.defaultStates,
@@ -160,6 +161,7 @@ const metaRadioGroup = {
160
161
  const metaRadioGroupItem = {
161
162
  category: "hidden",
162
163
  type: "container",
164
+ requiredAncestors: ["RadioGroup"],
163
165
  icon: import_svg.ItemIcon,
164
166
  states: import_react_sdk.defaultStates,
165
167
  presetStyle: {
@@ -169,6 +171,7 @@ const metaRadioGroupItem = {
169
171
  const metaRadioGroupIndicator = {
170
172
  category: "hidden",
171
173
  type: "container",
174
+ detachable: false,
172
175
  icon: import_svg.TriggerIcon,
173
176
  states: import_react_sdk.defaultStates,
174
177
  presetStyle: {
package/lib/cjs/select.js CHANGED
@@ -40,7 +40,9 @@ const Select = (0, import_react.forwardRef)(({ value, ...props }, _ref) => {
40
40
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.Root, { value, ...props });
41
41
  });
42
42
  const SelectTrigger = import_react_select.Trigger;
43
- const SelectValue = import_react_select.Value;
43
+ const SelectValue = (0, import_react.forwardRef)((props, ref) => {
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.Value, { ref, ...props });
45
+ });
44
46
  const SelectContent = (0, import_react.forwardRef)((props, ref) => {
45
47
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.Content, { ref, ...props, position: "popper" }) });
46
48
  });