@webstudio-is/sdk-components-react-radix 0.87.0 → 0.88.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 (182) hide show
  1. package/lib/__generated__/accordion.props.js +0 -5
  2. package/lib/__generated__/button.props.js +0 -21
  3. package/lib/__generated__/checkbox.props.js +850 -0
  4. package/lib/__generated__/collapsible.props.js +0 -2
  5. package/lib/__generated__/dialog.props.js +0 -11
  6. package/lib/__generated__/label.props.js +0 -1
  7. package/lib/__generated__/navigation-menu.props.js +2104 -0
  8. package/lib/__generated__/popover.props.js +0 -3
  9. package/lib/__generated__/radio-group.props.js +1282 -0
  10. package/lib/__generated__/select.props.js +2962 -0
  11. package/lib/__generated__/sheet.props.js +0 -11
  12. package/lib/__generated__/switch.props.js +850 -0
  13. package/lib/__generated__/tabs.props.js +428 -5
  14. package/lib/__generated__/tooltip.props.js +0 -2
  15. package/lib/accordion.js +11 -4
  16. package/lib/accordion.ws.js +87 -72
  17. package/lib/checkbox.js +13 -0
  18. package/lib/checkbox.ws.js +151 -0
  19. package/lib/cjs/__generated__/accordion.props.js +0 -5
  20. package/lib/cjs/__generated__/button.props.js +0 -21
  21. package/lib/cjs/__generated__/checkbox.props.js +870 -0
  22. package/lib/cjs/__generated__/collapsible.props.js +0 -2
  23. package/lib/cjs/__generated__/dialog.props.js +0 -11
  24. package/lib/cjs/__generated__/label.props.js +0 -1
  25. package/lib/cjs/__generated__/navigation-menu.props.js +2124 -0
  26. package/lib/cjs/__generated__/popover.props.js +0 -3
  27. package/lib/cjs/__generated__/radio-group.props.js +1302 -0
  28. package/lib/cjs/__generated__/select.props.js +2982 -0
  29. package/lib/cjs/__generated__/sheet.props.js +0 -11
  30. package/lib/cjs/__generated__/switch.props.js +870 -0
  31. package/lib/cjs/__generated__/tabs.props.js +428 -5
  32. package/lib/cjs/__generated__/tooltip.props.js +0 -2
  33. package/lib/cjs/accordion.js +11 -4
  34. package/lib/cjs/accordion.ws.js +85 -71
  35. package/lib/cjs/{textarea.js → checkbox.js} +9 -6
  36. package/lib/cjs/checkbox.ws.js +172 -0
  37. package/lib/cjs/collapsible.ws.js +4 -1
  38. package/lib/cjs/components.js +27 -14
  39. package/lib/cjs/dialog.ws.js +17 -17
  40. package/lib/cjs/hooks.js +5 -1
  41. package/lib/cjs/label.ws.js +1 -1
  42. package/lib/cjs/metas.js +29 -14
  43. package/lib/cjs/navigation-menu.js +107 -0
  44. package/lib/cjs/navigation-menu.ws.js +513 -0
  45. package/lib/cjs/popover.ws.js +12 -9
  46. package/lib/cjs/props.js +27 -14
  47. package/lib/cjs/{button.js → radio-group.js} +10 -8
  48. package/lib/cjs/radio-group.ws.js +188 -0
  49. package/lib/cjs/select.js +81 -0
  50. package/lib/cjs/select.ws.js +349 -0
  51. package/lib/cjs/sheet.ws.js +87 -176
  52. package/lib/cjs/{input.js → switch.js} +8 -9
  53. package/lib/cjs/switch.ws.js +171 -0
  54. package/lib/cjs/tabs.js +2 -3
  55. package/lib/cjs/tabs.ws.js +13 -18
  56. package/lib/cjs/theme/styles.js +100 -0
  57. package/lib/cjs/theme/tailwind-classes.js +125 -16
  58. package/lib/cjs/theme/tailwind-colors.js +1 -0
  59. package/lib/cjs/tooltip.ws.js +11 -8
  60. package/lib/collapsible.ws.js +4 -1
  61. package/lib/components.js +44 -22
  62. package/lib/dialog.ws.js +17 -17
  63. package/lib/hooks.js +5 -1
  64. package/lib/label.ws.js +1 -1
  65. package/lib/metas.js +58 -24
  66. package/lib/navigation-menu.js +85 -0
  67. package/lib/navigation-menu.ws.js +500 -0
  68. package/lib/popover.ws.js +12 -9
  69. package/lib/props.js +56 -24
  70. package/lib/radio-group.js +11 -0
  71. package/lib/radio-group.ws.js +170 -0
  72. package/lib/select.js +73 -0
  73. package/lib/select.ws.js +337 -0
  74. package/lib/sheet.ws.js +88 -194
  75. package/lib/switch.js +7 -0
  76. package/lib/switch.ws.js +143 -0
  77. package/lib/tabs.js +3 -5
  78. package/lib/tabs.ws.js +14 -19
  79. package/lib/theme/styles.js +70 -0
  80. package/lib/theme/tailwind-classes.js +125 -16
  81. package/lib/theme/tailwind-colors.js +1 -0
  82. package/lib/tooltip.ws.js +11 -8
  83. package/lib/types/__generated__/checkbox.props.d.ts +3 -0
  84. package/lib/types/__generated__/navigation-menu.props.d.ts +8 -0
  85. package/lib/types/__generated__/radio-group.props.d.ts +4 -0
  86. package/lib/types/__generated__/select.props.d.ts +9 -0
  87. package/lib/types/__generated__/switch.props.d.ts +3 -0
  88. package/lib/types/checkbox.d.ts +6 -0
  89. package/lib/types/checkbox.stories.d.ts +11 -0
  90. package/lib/types/checkbox.ws.d.ts +5 -0
  91. package/lib/types/components.d.ts +5 -4
  92. package/lib/types/metas.d.ts +6 -4
  93. package/lib/types/navigation-menu.d.ts +15 -0
  94. package/lib/types/navigation-menu.ws.d.ts +15 -0
  95. package/lib/types/props.d.ts +5 -4
  96. package/lib/types/radio-group.d.ts +5 -0
  97. package/lib/types/radio-group.stories.d.ts +9 -0
  98. package/lib/types/radio-group.ws.d.ts +7 -0
  99. package/lib/types/select.d.ts +12 -0
  100. package/lib/types/select.ws.d.ts +17 -0
  101. package/lib/types/sheet.ws.d.ts +2 -15
  102. package/lib/types/switch.d.ts +4 -0
  103. package/lib/types/switch.stories.d.ts +9 -0
  104. package/lib/types/switch.ws.d.ts +5 -0
  105. package/lib/types/tabs.d.ts +3 -12
  106. package/lib/types/theme/radix-common-types.d.ts +3 -2
  107. package/lib/types/theme/styles.d.ts +215 -0
  108. package/lib/types/theme/tailwind-classes.d.ts +16 -6
  109. package/lib/types/theme/tailwind-colors.d.ts +1 -0
  110. package/lib/types/theme/tailwind-theme.d.ts +1 -1
  111. package/package.json +12 -7
  112. package/src/__generated__/accordion.props.ts +0 -5
  113. package/src/__generated__/button.props.ts +0 -21
  114. package/src/__generated__/checkbox.props.ts +948 -0
  115. package/src/__generated__/collapsible.props.ts +0 -2
  116. package/src/__generated__/dialog.props.ts +0 -11
  117. package/src/__generated__/label.props.ts +0 -1
  118. package/src/__generated__/navigation-menu.props.ts +2349 -0
  119. package/src/__generated__/popover.props.ts +0 -3
  120. package/src/__generated__/radio-group.props.ts +1429 -0
  121. package/src/__generated__/select.props.ts +3304 -0
  122. package/src/__generated__/sheet.props.ts +0 -11
  123. package/src/__generated__/switch.props.ts +948 -0
  124. package/src/__generated__/tabs.props.ts +477 -4
  125. package/src/__generated__/tooltip.props.ts +0 -2
  126. package/src/accordion.tsx +14 -7
  127. package/src/accordion.ws.ts +85 -70
  128. package/src/{textarea.stories.ts → checkbox.stories.ts} +6 -11
  129. package/src/checkbox.tsx +22 -0
  130. package/src/checkbox.ws.ts +151 -0
  131. package/src/collapsible.ws.ts +4 -1
  132. package/src/components.ts +25 -12
  133. package/src/dialog.ws.tsx +15 -16
  134. package/src/hooks.ts +4 -0
  135. package/src/label.ws.ts +1 -1
  136. package/src/metas.ts +36 -12
  137. package/src/navigation-menu.stories.tsx +21 -0
  138. package/src/navigation-menu.tsx +130 -0
  139. package/src/navigation-menu.ws.ts +523 -0
  140. package/src/popover.ws.tsx +12 -9
  141. package/src/props.ts +35 -12
  142. package/src/{input.stories.ts → radio-group.stories.ts} +6 -15
  143. package/src/radio-group.tsx +17 -0
  144. package/src/radio-group.ws.ts +174 -0
  145. package/src/select.stories.tsx +21 -0
  146. package/src/select.tsx +107 -0
  147. package/src/select.ws.ts +347 -0
  148. package/src/sheet.ws.tsx +89 -209
  149. package/src/{button.stories.ts → switch.stories.ts} +6 -19
  150. package/src/switch.tsx +10 -0
  151. package/src/switch.ws.ts +143 -0
  152. package/src/tabs.tsx +4 -17
  153. package/src/tabs.ws.ts +17 -19
  154. package/src/theme/radix-common-types.ts +3 -2
  155. package/src/theme/styles.ts +80 -0
  156. package/src/theme/tailwind-classes.ts +150 -14
  157. package/src/theme/tailwind-colors.ts +1 -0
  158. package/src/tooltip.ws.tsx +11 -8
  159. package/lib/button.js +0 -8
  160. package/lib/button.ws.js +0 -133
  161. package/lib/cjs/button.ws.js +0 -160
  162. package/lib/cjs/input.ws.js +0 -103
  163. package/lib/cjs/textarea.ws.js +0 -98
  164. package/lib/input.js +0 -8
  165. package/lib/input.ws.js +0 -75
  166. package/lib/textarea.js +0 -8
  167. package/lib/textarea.ws.js +0 -70
  168. package/lib/types/button.d.ts +0 -7
  169. package/lib/types/button.stories.d.ts +0 -20
  170. package/lib/types/button.ws.d.ts +0 -7
  171. package/lib/types/input.d.ts +0 -2
  172. package/lib/types/input.stories.d.ts +0 -20
  173. package/lib/types/input.ws.d.ts +0 -3
  174. package/lib/types/textarea.d.ts +0 -2
  175. package/lib/types/textarea.stories.d.ts +0 -14
  176. package/lib/types/textarea.ws.d.ts +0 -3
  177. package/src/button.tsx +0 -25
  178. package/src/button.ws.ts +0 -155
  179. package/src/input.tsx +0 -12
  180. package/src/input.ws.ts +0 -78
  181. package/src/textarea.tsx +0 -12
  182. package/src/textarea.ws.ts +0 -74
@@ -348,7 +348,6 @@ const propsTabs = {
348
348
  content: { required: false, control: "text", type: "string" },
349
349
  contextMenu: { required: false, control: "text", type: "string" },
350
350
  datatype: { required: false, control: "text", type: "string" },
351
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
352
351
  dir: {
353
352
  description: "The direction of navigation between toolbar items.",
354
353
  required: false,
@@ -774,7 +773,6 @@ const propsTabsList = {
774
773
  control: "text",
775
774
  type: "string"
776
775
  },
777
- asChild: { required: false, control: "boolean", type: "boolean" },
778
776
  autoCapitalize: { required: false, control: "text", type: "string" },
779
777
  autoCorrect: { required: false, control: "text", type: "string" },
780
778
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -784,7 +782,6 @@ const propsTabsList = {
784
782
  content: { required: false, control: "text", type: "string" },
785
783
  contextMenu: { required: false, control: "text", type: "string" },
786
784
  datatype: { required: false, control: "text", type: "string" },
787
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
788
785
  dir: { required: false, control: "text", type: "string" },
789
786
  draggable: { required: false, control: "boolean", type: "boolean" },
790
787
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -859,7 +856,434 @@ const propsTabsList = {
859
856
  vocab: { required: false, control: "text", type: "string" }
860
857
  };
861
858
  const propsTabsTrigger = {
862
- value: { required: true, control: "text", type: "string" }
859
+ about: { required: false, control: "text", type: "string" },
860
+ accessKey: { required: false, control: "text", type: "string" },
861
+ "aria-activedescendant": {
862
+ description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
863
+ required: false,
864
+ control: "text",
865
+ type: "string"
866
+ },
867
+ "aria-atomic": {
868
+ description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
869
+ required: false,
870
+ control: "boolean",
871
+ type: "boolean"
872
+ },
873
+ "aria-autocomplete": {
874
+ description: "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
875
+ required: false,
876
+ control: "select",
877
+ type: "string",
878
+ options: ["list", "none", "inline", "both"]
879
+ },
880
+ "aria-braillelabel": {
881
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",
882
+ required: false,
883
+ control: "text",
884
+ type: "string"
885
+ },
886
+ "aria-brailleroledescription": {
887
+ description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",
888
+ required: false,
889
+ control: "text",
890
+ type: "string"
891
+ },
892
+ "aria-busy": { required: false, control: "boolean", type: "boolean" },
893
+ "aria-checked": {
894
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
895
+ required: false,
896
+ control: "text",
897
+ type: "string"
898
+ },
899
+ "aria-colcount": {
900
+ description: "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
901
+ required: false,
902
+ control: "number",
903
+ type: "number"
904
+ },
905
+ "aria-colindex": {
906
+ description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
907
+ required: false,
908
+ control: "number",
909
+ type: "number"
910
+ },
911
+ "aria-colindextext": {
912
+ description: "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",
913
+ required: false,
914
+ control: "text",
915
+ type: "string"
916
+ },
917
+ "aria-colspan": {
918
+ description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
919
+ required: false,
920
+ control: "number",
921
+ type: "number"
922
+ },
923
+ "aria-controls": {
924
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
925
+ required: false,
926
+ control: "text",
927
+ type: "string"
928
+ },
929
+ "aria-current": {
930
+ description: "Indicates the element that represents the current item within a container or set of related elements.",
931
+ required: false,
932
+ control: "text",
933
+ type: "string"
934
+ },
935
+ "aria-describedby": {
936
+ description: "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
937
+ required: false,
938
+ control: "text",
939
+ type: "string"
940
+ },
941
+ "aria-description": {
942
+ description: "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",
943
+ required: false,
944
+ control: "text",
945
+ type: "string"
946
+ },
947
+ "aria-details": {
948
+ description: "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
949
+ required: false,
950
+ control: "text",
951
+ type: "string"
952
+ },
953
+ "aria-disabled": {
954
+ description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
955
+ required: false,
956
+ control: "boolean",
957
+ type: "boolean"
958
+ },
959
+ "aria-dropeffect": {
960
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
961
+ required: false,
962
+ control: "select",
963
+ type: "string",
964
+ options: ["link", "none", "copy", "execute", "move", "popup"]
965
+ },
966
+ "aria-errormessage": {
967
+ description: "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
968
+ required: false,
969
+ control: "text",
970
+ type: "string"
971
+ },
972
+ "aria-expanded": {
973
+ description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
974
+ required: false,
975
+ control: "boolean",
976
+ type: "boolean"
977
+ },
978
+ "aria-flowto": {
979
+ description: "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
980
+ required: false,
981
+ control: "text",
982
+ type: "string"
983
+ },
984
+ "aria-grabbed": {
985
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.
986
+ @deprecated in ARIA 1.1`,
987
+ required: false,
988
+ control: "boolean",
989
+ type: "boolean"
990
+ },
991
+ "aria-haspopup": {
992
+ description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
993
+ required: false,
994
+ control: "text",
995
+ type: "string"
996
+ },
997
+ "aria-hidden": {
998
+ description: "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
999
+ required: false,
1000
+ control: "boolean",
1001
+ type: "boolean"
1002
+ },
1003
+ "aria-invalid": {
1004
+ description: "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
1005
+ required: false,
1006
+ control: "text",
1007
+ type: "string"
1008
+ },
1009
+ "aria-keyshortcuts": {
1010
+ description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
1011
+ required: false,
1012
+ control: "text",
1013
+ type: "string"
1014
+ },
1015
+ "aria-label": {
1016
+ description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
1017
+ required: false,
1018
+ control: "text",
1019
+ type: "string"
1020
+ },
1021
+ "aria-labelledby": {
1022
+ description: "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
1023
+ required: false,
1024
+ control: "text",
1025
+ type: "string"
1026
+ },
1027
+ "aria-level": {
1028
+ description: "Defines the hierarchical level of an element within a structure.",
1029
+ required: false,
1030
+ control: "number",
1031
+ type: "number"
1032
+ },
1033
+ "aria-live": {
1034
+ description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
1035
+ required: false,
1036
+ control: "radio",
1037
+ type: "string",
1038
+ options: ["off", "assertive", "polite"]
1039
+ },
1040
+ "aria-modal": {
1041
+ description: "Indicates whether an element is modal when displayed.",
1042
+ required: false,
1043
+ control: "boolean",
1044
+ type: "boolean"
1045
+ },
1046
+ "aria-multiline": {
1047
+ description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
1048
+ required: false,
1049
+ control: "boolean",
1050
+ type: "boolean"
1051
+ },
1052
+ "aria-multiselectable": {
1053
+ description: "Indicates that the user may select more than one item from the current selectable descendants.",
1054
+ required: false,
1055
+ control: "boolean",
1056
+ type: "boolean"
1057
+ },
1058
+ "aria-orientation": {
1059
+ description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
1060
+ required: false,
1061
+ control: "radio",
1062
+ type: "string",
1063
+ options: ["horizontal", "vertical"]
1064
+ },
1065
+ "aria-owns": {
1066
+ description: "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
1067
+ required: false,
1068
+ control: "text",
1069
+ type: "string"
1070
+ },
1071
+ "aria-placeholder": {
1072
+ description: "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
1073
+ required: false,
1074
+ control: "text",
1075
+ type: "string"
1076
+ },
1077
+ "aria-posinset": {
1078
+ description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
1079
+ required: false,
1080
+ control: "number",
1081
+ type: "number"
1082
+ },
1083
+ "aria-pressed": {
1084
+ description: 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
1085
+ required: false,
1086
+ control: "text",
1087
+ type: "string"
1088
+ },
1089
+ "aria-readonly": {
1090
+ description: "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
1091
+ required: false,
1092
+ control: "boolean",
1093
+ type: "boolean"
1094
+ },
1095
+ "aria-relevant": {
1096
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
1097
+ required: false,
1098
+ control: "select",
1099
+ type: "string",
1100
+ options: [
1101
+ "text",
1102
+ "additions",
1103
+ "additions removals",
1104
+ "additions text",
1105
+ "all",
1106
+ "removals",
1107
+ "removals additions",
1108
+ "removals text",
1109
+ "text additions",
1110
+ "text removals"
1111
+ ]
1112
+ },
1113
+ "aria-required": {
1114
+ description: "Indicates that user input is required on the element before a form may be submitted.",
1115
+ required: false,
1116
+ control: "boolean",
1117
+ type: "boolean"
1118
+ },
1119
+ "aria-roledescription": {
1120
+ description: "Defines a human-readable, author-localized description for the role of an element.",
1121
+ required: false,
1122
+ control: "text",
1123
+ type: "string"
1124
+ },
1125
+ "aria-rowcount": {
1126
+ description: "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
1127
+ required: false,
1128
+ control: "number",
1129
+ type: "number"
1130
+ },
1131
+ "aria-rowindex": {
1132
+ description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
1133
+ required: false,
1134
+ control: "number",
1135
+ type: "number"
1136
+ },
1137
+ "aria-rowindextext": {
1138
+ description: "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",
1139
+ required: false,
1140
+ control: "text",
1141
+ type: "string"
1142
+ },
1143
+ "aria-rowspan": {
1144
+ description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
1145
+ required: false,
1146
+ control: "number",
1147
+ type: "number"
1148
+ },
1149
+ "aria-selected": {
1150
+ description: 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
1151
+ required: false,
1152
+ control: "boolean",
1153
+ type: "boolean"
1154
+ },
1155
+ "aria-setsize": {
1156
+ description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
1157
+ required: false,
1158
+ control: "number",
1159
+ type: "number"
1160
+ },
1161
+ "aria-sort": {
1162
+ description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
1163
+ required: false,
1164
+ control: "select",
1165
+ type: "string",
1166
+ options: ["none", "ascending", "descending", "other"]
1167
+ },
1168
+ "aria-valuemax": {
1169
+ description: "Defines the maximum allowed value for a range widget.",
1170
+ required: false,
1171
+ control: "number",
1172
+ type: "number"
1173
+ },
1174
+ "aria-valuemin": {
1175
+ description: "Defines the minimum allowed value for a range widget.",
1176
+ required: false,
1177
+ control: "number",
1178
+ type: "number"
1179
+ },
1180
+ "aria-valuenow": {
1181
+ description: "Defines the current value for a range widget.\n@see aria-valuetext.",
1182
+ required: false,
1183
+ control: "number",
1184
+ type: "number"
1185
+ },
1186
+ "aria-valuetext": {
1187
+ description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
1188
+ required: false,
1189
+ control: "text",
1190
+ type: "string"
1191
+ },
1192
+ autoCapitalize: { required: false, control: "text", type: "string" },
1193
+ autoCorrect: { required: false, control: "text", type: "string" },
1194
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
1195
+ autoSave: { required: false, control: "text", type: "string" },
1196
+ className: { required: false, control: "text", type: "string" },
1197
+ color: { required: false, control: "color", type: "string" },
1198
+ content: { required: false, control: "text", type: "string" },
1199
+ contextMenu: { required: false, control: "text", type: "string" },
1200
+ datatype: { required: false, control: "text", type: "string" },
1201
+ dir: { required: false, control: "text", type: "string" },
1202
+ disabled: { required: false, control: "boolean", type: "boolean" },
1203
+ draggable: { required: false, control: "boolean", type: "boolean" },
1204
+ form: { required: false, control: "text", type: "string" },
1205
+ formAction: { required: false, control: "text", type: "string" },
1206
+ formEncType: { required: false, control: "text", type: "string" },
1207
+ formMethod: { required: false, control: "text", type: "string" },
1208
+ formNoValidate: { required: false, control: "boolean", type: "boolean" },
1209
+ formTarget: { required: false, control: "text", type: "string" },
1210
+ hidden: { required: false, control: "boolean", type: "boolean" },
1211
+ id: { required: false, control: "text", type: "string" },
1212
+ inputMode: {
1213
+ 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",
1214
+ required: false,
1215
+ control: "select",
1216
+ type: "string",
1217
+ options: [
1218
+ "search",
1219
+ "text",
1220
+ "none",
1221
+ "tel",
1222
+ "url",
1223
+ "email",
1224
+ "numeric",
1225
+ "decimal"
1226
+ ]
1227
+ },
1228
+ is: {
1229
+ description: "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
1230
+ required: false,
1231
+ control: "text",
1232
+ type: "string"
1233
+ },
1234
+ itemID: { required: false, control: "text", type: "string" },
1235
+ itemProp: { required: false, control: "text", type: "string" },
1236
+ itemRef: { required: false, control: "text", type: "string" },
1237
+ itemScope: { required: false, control: "boolean", type: "boolean" },
1238
+ itemType: { required: false, control: "text", type: "string" },
1239
+ lang: { required: false, control: "text", type: "string" },
1240
+ name: { required: false, control: "text", type: "string" },
1241
+ nonce: { required: false, control: "text", type: "string" },
1242
+ placeholder: { required: false, control: "text", type: "string" },
1243
+ prefix: { required: false, control: "text", type: "string" },
1244
+ property: { required: false, control: "text", type: "string" },
1245
+ radioGroup: { required: false, control: "text", type: "string" },
1246
+ rel: { required: false, control: "text", type: "string" },
1247
+ resource: { required: false, control: "text", type: "string" },
1248
+ results: { required: false, control: "number", type: "number" },
1249
+ rev: { required: false, control: "text", type: "string" },
1250
+ role: { required: false, control: "text", type: "string" },
1251
+ security: { required: false, control: "text", type: "string" },
1252
+ slot: { required: false, control: "text", type: "string" },
1253
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
1254
+ suppressContentEditableWarning: {
1255
+ required: false,
1256
+ control: "boolean",
1257
+ type: "boolean"
1258
+ },
1259
+ suppressHydrationWarning: {
1260
+ required: false,
1261
+ control: "boolean",
1262
+ type: "boolean"
1263
+ },
1264
+ tabIndex: { required: false, control: "number", type: "number" },
1265
+ title: { required: false, control: "text", type: "string" },
1266
+ translate: {
1267
+ required: false,
1268
+ control: "radio",
1269
+ type: "string",
1270
+ options: ["yes", "no"]
1271
+ },
1272
+ type: {
1273
+ required: false,
1274
+ control: "radio",
1275
+ type: "string",
1276
+ options: ["button", "submit", "reset"]
1277
+ },
1278
+ typeof: { required: false, control: "text", type: "string" },
1279
+ unselectable: {
1280
+ required: false,
1281
+ control: "radio",
1282
+ type: "string",
1283
+ options: ["on", "off"]
1284
+ },
1285
+ value: { required: true, control: "text", type: "string" },
1286
+ vocab: { required: false, control: "text", type: "string" }
863
1287
  };
864
1288
  const propsTabsContent = {
865
1289
  about: { required: false, control: "text", type: "string" },
@@ -1204,7 +1628,6 @@ const propsTabsContent = {
1204
1628
  content: { required: false, control: "text", type: "string" },
1205
1629
  contextMenu: { required: false, control: "text", type: "string" },
1206
1630
  datatype: { required: false, control: "text", type: "string" },
1207
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
1208
1631
  dir: { required: false, control: "text", type: "string" },
1209
1632
  draggable: { required: false, control: "boolean", type: "boolean" },
1210
1633
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -356,7 +356,6 @@ const propsTooltipContent = {
356
356
  type: "string"
357
357
  },
358
358
  arrowPadding: { required: false, control: "number", type: "number" },
359
- asChild: { required: false, control: "boolean", type: "boolean" },
360
359
  autoCapitalize: { required: false, control: "text", type: "string" },
361
360
  autoCorrect: { required: false, control: "text", type: "string" },
362
361
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -367,7 +366,6 @@ const propsTooltipContent = {
367
366
  content: { required: false, control: "text", type: "string" },
368
367
  contextMenu: { required: false, control: "text", type: "string" },
369
368
  datatype: { required: false, control: "text", type: "string" },
370
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
371
369
  dir: { required: false, control: "text", type: "string" },
372
370
  draggable: { required: false, control: "boolean", type: "boolean" },
373
371
  hidden: { required: false, control: "boolean", type: "boolean" },
package/lib/accordion.js CHANGED
@@ -27,15 +27,22 @@ const namespace = "@webstudio-is/sdk-components-react-radix";
27
27
  const hooksAccordion = {
28
28
  onNavigatorSelect: (context, event) => {
29
29
  for (const instance of event.instancePath) {
30
- if (instance.component === `${namespace}:AccordionItem`) {
30
+ if (instance.component === `${namespace}:AccordionContent`) {
31
31
  const accordion = getClosestInstance(
32
32
  event.instancePath,
33
33
  instance,
34
34
  `${namespace}:Accordion`
35
35
  );
36
- const itemValue = context.getPropValue(instance.id, "value") ?? context.indexesWithinAncestors.get(instance.id)?.toString();
37
- if (accordion && itemValue) {
38
- context.setPropVariable(accordion.id, "value", itemValue);
36
+ const item = getClosestInstance(
37
+ event.instancePath,
38
+ instance,
39
+ `${namespace}:AccordionItem`
40
+ );
41
+ if (accordion && item) {
42
+ const itemValue = context.getPropValue(item.id, "value") ?? context.indexesWithinAncestors.get(item.id)?.toString();
43
+ if (itemValue) {
44
+ context.setPropVariable(accordion.id, "value", itemValue);
45
+ }
39
46
  }
40
47
  }
41
48
  }