@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,6 +1,11 @@
1
1
  const propsCheckbox = {
2
2
  about: { required: false, control: "text", type: "string" },
3
- accessKey: { required: false, control: "text", type: "string" },
3
+ accessKey: {
4
+ required: false,
5
+ control: "text",
6
+ type: "string",
7
+ description: "Keyboard shortcut to activate or add focus to the element."
8
+ },
4
9
  "aria-activedescendant": {
5
10
  description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
6
11
  required: false,
@@ -156,7 +161,7 @@ const propsCheckbox = {
156
161
  type: "string"
157
162
  },
158
163
  "aria-label": {
159
- description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
164
+ 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.",
160
165
  required: false,
161
166
  control: "text",
162
167
  type: "string"
@@ -332,27 +337,112 @@ const propsCheckbox = {
332
337
  control: "text",
333
338
  type: "string"
334
339
  },
335
- autoCapitalize: { required: false, control: "text", type: "string" },
340
+ autoCapitalize: {
341
+ required: false,
342
+ control: "text",
343
+ type: "string",
344
+ description: "Sets whether input is automatically capitalized when entered by user."
345
+ },
336
346
  autoCorrect: { required: false, control: "text", type: "string" },
337
- autoFocus: { required: false, control: "boolean", type: "boolean" },
347
+ autoFocus: {
348
+ required: false,
349
+ control: "boolean",
350
+ type: "boolean",
351
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
352
+ },
338
353
  autoSave: { required: false, control: "text", type: "string" },
339
- checked: { required: true, control: "boolean", type: "boolean" },
354
+ checked: {
355
+ required: true,
356
+ control: "boolean",
357
+ type: "boolean",
358
+ description: "Indicates whether the element should be checked on page load."
359
+ },
340
360
  className: { required: false, control: "text", type: "string" },
341
- color: { required: false, control: "color", type: "string" },
342
- content: { required: false, control: "text", type: "string" },
343
- contextMenu: { required: false, control: "text", type: "string" },
361
+ color: {
362
+ required: false,
363
+ control: "color",
364
+ type: "string",
365
+ 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."
366
+ },
367
+ content: {
368
+ required: false,
369
+ control: "text",
370
+ type: "string",
371
+ description: "A value associated with http-equiv orname depending on the context."
372
+ },
373
+ contextMenu: {
374
+ required: false,
375
+ control: "text",
376
+ type: "string",
377
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
378
+ },
344
379
  datatype: { required: false, control: "text", type: "string" },
345
- dir: { required: false, control: "text", type: "string" },
346
- disabled: { required: false, control: "boolean", type: "boolean" },
347
- draggable: { required: false, control: "boolean", type: "boolean" },
348
- form: { required: false, control: "text", type: "string" },
349
- formAction: { required: false, control: "text", type: "string" },
350
- formEncType: { required: false, control: "text", type: "string" },
351
- formMethod: { required: false, control: "text", type: "string" },
352
- formNoValidate: { required: false, control: "boolean", type: "boolean" },
353
- formTarget: { required: false, control: "text", type: "string" },
354
- hidden: { required: false, control: "boolean", type: "boolean" },
355
- id: { required: false, control: "text", type: "string" },
380
+ dir: {
381
+ required: false,
382
+ control: "text",
383
+ type: "string",
384
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
385
+ },
386
+ disabled: {
387
+ required: false,
388
+ control: "boolean",
389
+ type: "boolean",
390
+ description: "Indicates whether the user can interact with the element."
391
+ },
392
+ draggable: {
393
+ required: false,
394
+ control: "boolean",
395
+ type: "boolean",
396
+ description: "Defines whether the element can be dragged."
397
+ },
398
+ form: {
399
+ required: false,
400
+ control: "text",
401
+ type: "string",
402
+ description: "Indicates the form that is the owner of the element."
403
+ },
404
+ formAction: {
405
+ required: false,
406
+ control: "text",
407
+ type: "string",
408
+ description: "Indicates the action of the element, overriding the action defined inthe form."
409
+ },
410
+ formEncType: {
411
+ required: false,
412
+ control: "text",
413
+ type: "string",
414
+ description: `If the button/input is a submit button (e.g. type="submit"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides theenctype attribute of the button's form owner.`
415
+ },
416
+ formMethod: {
417
+ required: false,
418
+ control: "text",
419
+ type: "string",
420
+ description: `If the button/input is a submit button (e.g. type="submit"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button's form owner.`
421
+ },
422
+ formNoValidate: {
423
+ required: false,
424
+ control: "boolean",
425
+ type: "boolean",
426
+ description: `If the button/input is a submit button (e.g. type="submit"), this boolean attribute specifies that the form is not to be validatedwhen it is submitted. If this attribute is specified, it overrides thenovalidate attribute of the button's form owner.`
427
+ },
428
+ formTarget: {
429
+ required: false,
430
+ control: "text",
431
+ type: "string",
432
+ description: `If the button/input is a submit button (e.g. type="submit"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received aftersubmitting the form. If this attribute is specified, it overrides thetarget attribute of the button's form owner.`
433
+ },
434
+ hidden: {
435
+ required: false,
436
+ control: "boolean",
437
+ type: "boolean",
438
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
439
+ },
440
+ id: {
441
+ required: false,
442
+ control: "text",
443
+ type: "string",
444
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
445
+ },
356
446
  inputMode: {
357
447
  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",
358
448
  required: false,
@@ -380,22 +470,62 @@ const propsCheckbox = {
380
470
  itemRef: { required: false, control: "text", type: "string" },
381
471
  itemScope: { required: false, control: "boolean", type: "boolean" },
382
472
  itemType: { required: false, control: "text", type: "string" },
383
- lang: { required: false, control: "text", type: "string" },
384
- name: { required: false, control: "text", type: "string" },
473
+ lang: {
474
+ required: false,
475
+ control: "text",
476
+ type: "string",
477
+ description: "Defines the language used in the element."
478
+ },
479
+ name: {
480
+ required: false,
481
+ control: "text",
482
+ type: "string",
483
+ 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)."
484
+ },
385
485
  nonce: { required: false, control: "text", type: "string" },
386
- placeholder: { required: false, control: "text", type: "string" },
486
+ placeholder: {
487
+ required: false,
488
+ control: "text",
489
+ type: "string",
490
+ description: "Provides a hint to the user of what can be entered in the field."
491
+ },
387
492
  prefix: { required: false, control: "text", type: "string" },
388
493
  property: { required: false, control: "text", type: "string" },
389
494
  radioGroup: { required: false, control: "text", type: "string" },
390
- rel: { required: false, control: "text", type: "string" },
391
- required: { required: false, control: "boolean", type: "boolean" },
495
+ rel: {
496
+ required: false,
497
+ control: "text",
498
+ type: "string",
499
+ description: "Specifies the relationship of the target object to the link object."
500
+ },
501
+ required: {
502
+ required: false,
503
+ control: "boolean",
504
+ type: "boolean",
505
+ description: "Indicates whether this form element must be filled before the form can be submitted."
506
+ },
392
507
  resource: { required: false, control: "text", type: "string" },
393
508
  results: { required: false, control: "number", type: "number" },
394
509
  rev: { required: false, control: "text", type: "string" },
395
- role: { required: false, control: "text", type: "string" },
510
+ role: {
511
+ required: false,
512
+ control: "text",
513
+ type: "string",
514
+ description: "Defines an explicit role for an element for use by assistive technologies."
515
+ },
396
516
  security: { required: false, control: "text", type: "string" },
397
- slot: { required: false, control: "text", type: "string" },
398
- spellCheck: { required: false, control: "boolean", type: "boolean" },
517
+ slot: {
518
+ required: false,
519
+ control: "text",
520
+ type: "string",
521
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
522
+ },
523
+ spellCheck: {
524
+ required: false,
525
+ control: "boolean",
526
+ type: "boolean",
527
+ description: "Indicates whether spell checking is allowed for the element."
528
+ },
399
529
  suppressContentEditableWarning: {
400
530
  required: false,
401
531
  control: "boolean",
@@ -406,19 +536,31 @@ const propsCheckbox = {
406
536
  control: "boolean",
407
537
  type: "boolean"
408
538
  },
409
- tabIndex: { required: false, control: "number", type: "number" },
410
- title: { required: false, control: "text", type: "string" },
539
+ tabIndex: {
540
+ required: false,
541
+ control: "number",
542
+ type: "number",
543
+ description: "Overrides the browser's default tab order and follows the one specified instead."
544
+ },
545
+ title: {
546
+ required: false,
547
+ control: "text",
548
+ type: "string",
549
+ description: "Text to be displayed in a tooltip when hovering over the element."
550
+ },
411
551
  translate: {
412
552
  required: false,
413
553
  control: "radio",
414
554
  type: "string",
415
- options: ["yes", "no"]
555
+ options: ["yes", "no"],
556
+ 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."
416
557
  },
417
558
  type: {
418
559
  required: false,
419
560
  control: "radio",
420
561
  type: "string",
421
- options: ["button", "submit", "reset"]
562
+ options: ["button", "submit", "reset"],
563
+ description: "Defines the type of the element."
422
564
  },
423
565
  typeof: { required: false, control: "text", type: "string" },
424
566
  unselectable: {
@@ -431,7 +573,12 @@ const propsCheckbox = {
431
573
  };
432
574
  const propsCheckboxIndicator = {
433
575
  about: { required: false, control: "text", type: "string" },
434
- accessKey: { required: false, control: "text", type: "string" },
576
+ accessKey: {
577
+ required: false,
578
+ control: "text",
579
+ type: "string",
580
+ description: "Keyboard shortcut to activate or add focus to the element."
581
+ },
435
582
  "aria-activedescendant": {
436
583
  description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
437
584
  required: false,
@@ -587,7 +734,7 @@ const propsCheckboxIndicator = {
587
734
  type: "string"
588
735
  },
589
736
  "aria-label": {
590
- description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
737
+ 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.",
591
738
  required: false,
592
739
  control: "text",
593
740
  type: "string"
@@ -763,19 +910,64 @@ const propsCheckboxIndicator = {
763
910
  control: "text",
764
911
  type: "string"
765
912
  },
766
- autoCapitalize: { required: false, control: "text", type: "string" },
913
+ autoCapitalize: {
914
+ required: false,
915
+ control: "text",
916
+ type: "string",
917
+ description: "Sets whether input is automatically capitalized when entered by user."
918
+ },
767
919
  autoCorrect: { required: false, control: "text", type: "string" },
768
- autoFocus: { required: false, control: "boolean", type: "boolean" },
920
+ autoFocus: {
921
+ required: false,
922
+ control: "boolean",
923
+ type: "boolean",
924
+ description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
925
+ },
769
926
  autoSave: { required: false, control: "text", type: "string" },
770
927
  className: { required: false, control: "text", type: "string" },
771
- color: { required: false, control: "color", type: "string" },
772
- content: { required: false, control: "text", type: "string" },
773
- contextMenu: { required: false, control: "text", type: "string" },
928
+ color: {
929
+ required: false,
930
+ control: "color",
931
+ type: "string",
932
+ 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."
933
+ },
934
+ content: {
935
+ required: false,
936
+ control: "text",
937
+ type: "string",
938
+ description: "A value associated with http-equiv orname depending on the context."
939
+ },
940
+ contextMenu: {
941
+ required: false,
942
+ control: "text",
943
+ type: "string",
944
+ description: "Defines the ID of a menu element which willserve as the element's context menu."
945
+ },
774
946
  datatype: { required: false, control: "text", type: "string" },
775
- dir: { required: false, control: "text", type: "string" },
776
- draggable: { required: false, control: "boolean", type: "boolean" },
777
- hidden: { required: false, control: "boolean", type: "boolean" },
778
- id: { required: false, control: "text", type: "string" },
947
+ dir: {
948
+ required: false,
949
+ control: "text",
950
+ type: "string",
951
+ description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
952
+ },
953
+ draggable: {
954
+ required: false,
955
+ control: "boolean",
956
+ type: "boolean",
957
+ description: "Defines whether the element can be dragged."
958
+ },
959
+ hidden: {
960
+ required: false,
961
+ control: "boolean",
962
+ type: "boolean",
963
+ description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
964
+ },
965
+ id: {
966
+ required: false,
967
+ control: "text",
968
+ type: "string",
969
+ description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
970
+ },
779
971
  inputMode: {
780
972
  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",
781
973
  required: false,
@@ -803,20 +995,50 @@ const propsCheckboxIndicator = {
803
995
  itemRef: { required: false, control: "text", type: "string" },
804
996
  itemScope: { required: false, control: "boolean", type: "boolean" },
805
997
  itemType: { required: false, control: "text", type: "string" },
806
- lang: { required: false, control: "text", type: "string" },
998
+ lang: {
999
+ required: false,
1000
+ control: "text",
1001
+ type: "string",
1002
+ description: "Defines the language used in the element."
1003
+ },
807
1004
  nonce: { required: false, control: "text", type: "string" },
808
- placeholder: { required: false, control: "text", type: "string" },
1005
+ placeholder: {
1006
+ required: false,
1007
+ control: "text",
1008
+ type: "string",
1009
+ description: "Provides a hint to the user of what can be entered in the field."
1010
+ },
809
1011
  prefix: { required: false, control: "text", type: "string" },
810
1012
  property: { required: false, control: "text", type: "string" },
811
1013
  radioGroup: { required: false, control: "text", type: "string" },
812
- rel: { required: false, control: "text", type: "string" },
1014
+ rel: {
1015
+ required: false,
1016
+ control: "text",
1017
+ type: "string",
1018
+ description: "Specifies the relationship of the target object to the link object."
1019
+ },
813
1020
  resource: { required: false, control: "text", type: "string" },
814
1021
  results: { required: false, control: "number", type: "number" },
815
1022
  rev: { required: false, control: "text", type: "string" },
816
- role: { required: false, control: "text", type: "string" },
1023
+ role: {
1024
+ required: false,
1025
+ control: "text",
1026
+ type: "string",
1027
+ description: "Defines an explicit role for an element for use by assistive technologies."
1028
+ },
817
1029
  security: { required: false, control: "text", type: "string" },
818
- slot: { required: false, control: "text", type: "string" },
819
- spellCheck: { required: false, control: "boolean", type: "boolean" },
1030
+ slot: {
1031
+ required: false,
1032
+ control: "text",
1033
+ type: "string",
1034
+ description: "Assigns a slot in a shadow DOM shadow tree to an element."
1035
+ },
1036
+ spellCheck: {
1037
+ required: false,
1038
+ control: "boolean",
1039
+ type: "boolean",
1040
+ description: "Indicates whether spell checking is allowed for the element."
1041
+ },
820
1042
  suppressContentEditableWarning: {
821
1043
  required: false,
822
1044
  control: "boolean",
@@ -827,13 +1049,24 @@ const propsCheckboxIndicator = {
827
1049
  control: "boolean",
828
1050
  type: "boolean"
829
1051
  },
830
- tabIndex: { required: false, control: "number", type: "number" },
831
- title: { required: false, control: "text", type: "string" },
1052
+ tabIndex: {
1053
+ required: false,
1054
+ control: "number",
1055
+ type: "number",
1056
+ description: "Overrides the browser's default tab order and follows the one specified instead."
1057
+ },
1058
+ title: {
1059
+ required: false,
1060
+ control: "text",
1061
+ type: "string",
1062
+ description: "Text to be displayed in a tooltip when hovering over the element."
1063
+ },
832
1064
  translate: {
833
1065
  required: false,
834
1066
  control: "radio",
835
1067
  type: "string",
836
- options: ["yes", "no"]
1068
+ options: ["yes", "no"],
1069
+ 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."
837
1070
  },
838
1071
  typeof: { required: false, control: "text", type: "string" },
839
1072
  unselectable: {