@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
@@ -374,7 +374,6 @@ const propsTabs = {
374
374
  content: { required: false, control: "text", type: "string" },
375
375
  contextMenu: { required: false, control: "text", type: "string" },
376
376
  datatype: { required: false, control: "text", type: "string" },
377
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
378
377
  dir: {
379
378
  description: "The direction of navigation between toolbar items.",
380
379
  required: false,
@@ -800,7 +799,6 @@ const propsTabsList = {
800
799
  control: "text",
801
800
  type: "string"
802
801
  },
803
- asChild: { required: false, control: "boolean", type: "boolean" },
804
802
  autoCapitalize: { required: false, control: "text", type: "string" },
805
803
  autoCorrect: { required: false, control: "text", type: "string" },
806
804
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -810,7 +808,6 @@ const propsTabsList = {
810
808
  content: { required: false, control: "text", type: "string" },
811
809
  contextMenu: { required: false, control: "text", type: "string" },
812
810
  datatype: { required: false, control: "text", type: "string" },
813
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
814
811
  dir: { required: false, control: "text", type: "string" },
815
812
  draggable: { required: false, control: "boolean", type: "boolean" },
816
813
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -885,7 +882,434 @@ const propsTabsList = {
885
882
  vocab: { required: false, control: "text", type: "string" }
886
883
  };
887
884
  const propsTabsTrigger = {
888
- value: { required: true, control: "text", type: "string" }
885
+ about: { required: false, control: "text", type: "string" },
886
+ accessKey: { required: false, control: "text", type: "string" },
887
+ "aria-activedescendant": {
888
+ description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
889
+ required: false,
890
+ control: "text",
891
+ type: "string"
892
+ },
893
+ "aria-atomic": {
894
+ 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.",
895
+ required: false,
896
+ control: "boolean",
897
+ type: "boolean"
898
+ },
899
+ "aria-autocomplete": {
900
+ 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.",
901
+ required: false,
902
+ control: "select",
903
+ type: "string",
904
+ options: ["list", "none", "inline", "both"]
905
+ },
906
+ "aria-braillelabel": {
907
+ description: "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",
908
+ required: false,
909
+ control: "text",
910
+ type: "string"
911
+ },
912
+ "aria-brailleroledescription": {
913
+ 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.",
914
+ required: false,
915
+ control: "text",
916
+ type: "string"
917
+ },
918
+ "aria-busy": { required: false, control: "boolean", type: "boolean" },
919
+ "aria-checked": {
920
+ description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
921
+ required: false,
922
+ control: "text",
923
+ type: "string"
924
+ },
925
+ "aria-colcount": {
926
+ description: "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
927
+ required: false,
928
+ control: "number",
929
+ type: "number"
930
+ },
931
+ "aria-colindex": {
932
+ 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.",
933
+ required: false,
934
+ control: "number",
935
+ type: "number"
936
+ },
937
+ "aria-colindextext": {
938
+ description: "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",
939
+ required: false,
940
+ control: "text",
941
+ type: "string"
942
+ },
943
+ "aria-colspan": {
944
+ 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.",
945
+ required: false,
946
+ control: "number",
947
+ type: "number"
948
+ },
949
+ "aria-controls": {
950
+ description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
951
+ required: false,
952
+ control: "text",
953
+ type: "string"
954
+ },
955
+ "aria-current": {
956
+ description: "Indicates the element that represents the current item within a container or set of related elements.",
957
+ required: false,
958
+ control: "text",
959
+ type: "string"
960
+ },
961
+ "aria-describedby": {
962
+ description: "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
963
+ required: false,
964
+ control: "text",
965
+ type: "string"
966
+ },
967
+ "aria-description": {
968
+ description: "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",
969
+ required: false,
970
+ control: "text",
971
+ type: "string"
972
+ },
973
+ "aria-details": {
974
+ description: "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
975
+ required: false,
976
+ control: "text",
977
+ type: "string"
978
+ },
979
+ "aria-disabled": {
980
+ 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.",
981
+ required: false,
982
+ control: "boolean",
983
+ type: "boolean"
984
+ },
985
+ "aria-dropeffect": {
986
+ description: "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
987
+ required: false,
988
+ control: "select",
989
+ type: "string",
990
+ options: ["link", "none", "copy", "execute", "move", "popup"]
991
+ },
992
+ "aria-errormessage": {
993
+ description: "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
994
+ required: false,
995
+ control: "text",
996
+ type: "string"
997
+ },
998
+ "aria-expanded": {
999
+ description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
1000
+ required: false,
1001
+ control: "boolean",
1002
+ type: "boolean"
1003
+ },
1004
+ "aria-flowto": {
1005
+ 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.",
1006
+ required: false,
1007
+ control: "text",
1008
+ type: "string"
1009
+ },
1010
+ "aria-grabbed": {
1011
+ description: `Indicates an element's "grabbed" state in a drag-and-drop operation.
1012
+ @deprecated in ARIA 1.1`,
1013
+ required: false,
1014
+ control: "boolean",
1015
+ type: "boolean"
1016
+ },
1017
+ "aria-haspopup": {
1018
+ description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
1019
+ required: false,
1020
+ control: "text",
1021
+ type: "string"
1022
+ },
1023
+ "aria-hidden": {
1024
+ description: "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
1025
+ required: false,
1026
+ control: "boolean",
1027
+ type: "boolean"
1028
+ },
1029
+ "aria-invalid": {
1030
+ description: "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
1031
+ required: false,
1032
+ control: "text",
1033
+ type: "string"
1034
+ },
1035
+ "aria-keyshortcuts": {
1036
+ description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
1037
+ required: false,
1038
+ control: "text",
1039
+ type: "string"
1040
+ },
1041
+ "aria-label": {
1042
+ description: "Defines a string value that labels the current element.\n@see aria-labelledby.",
1043
+ required: false,
1044
+ control: "text",
1045
+ type: "string"
1046
+ },
1047
+ "aria-labelledby": {
1048
+ description: "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
1049
+ required: false,
1050
+ control: "text",
1051
+ type: "string"
1052
+ },
1053
+ "aria-level": {
1054
+ description: "Defines the hierarchical level of an element within a structure.",
1055
+ required: false,
1056
+ control: "number",
1057
+ type: "number"
1058
+ },
1059
+ "aria-live": {
1060
+ 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.",
1061
+ required: false,
1062
+ control: "radio",
1063
+ type: "string",
1064
+ options: ["off", "assertive", "polite"]
1065
+ },
1066
+ "aria-modal": {
1067
+ description: "Indicates whether an element is modal when displayed.",
1068
+ required: false,
1069
+ control: "boolean",
1070
+ type: "boolean"
1071
+ },
1072
+ "aria-multiline": {
1073
+ description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
1074
+ required: false,
1075
+ control: "boolean",
1076
+ type: "boolean"
1077
+ },
1078
+ "aria-multiselectable": {
1079
+ description: "Indicates that the user may select more than one item from the current selectable descendants.",
1080
+ required: false,
1081
+ control: "boolean",
1082
+ type: "boolean"
1083
+ },
1084
+ "aria-orientation": {
1085
+ description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
1086
+ required: false,
1087
+ control: "radio",
1088
+ type: "string",
1089
+ options: ["horizontal", "vertical"]
1090
+ },
1091
+ "aria-owns": {
1092
+ 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.",
1093
+ required: false,
1094
+ control: "text",
1095
+ type: "string"
1096
+ },
1097
+ "aria-placeholder": {
1098
+ 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.",
1099
+ required: false,
1100
+ control: "text",
1101
+ type: "string"
1102
+ },
1103
+ "aria-posinset": {
1104
+ 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.",
1105
+ required: false,
1106
+ control: "number",
1107
+ type: "number"
1108
+ },
1109
+ "aria-pressed": {
1110
+ description: 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
1111
+ required: false,
1112
+ control: "text",
1113
+ type: "string"
1114
+ },
1115
+ "aria-readonly": {
1116
+ description: "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
1117
+ required: false,
1118
+ control: "boolean",
1119
+ type: "boolean"
1120
+ },
1121
+ "aria-relevant": {
1122
+ description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
1123
+ required: false,
1124
+ control: "select",
1125
+ type: "string",
1126
+ options: [
1127
+ "text",
1128
+ "additions",
1129
+ "additions removals",
1130
+ "additions text",
1131
+ "all",
1132
+ "removals",
1133
+ "removals additions",
1134
+ "removals text",
1135
+ "text additions",
1136
+ "text removals"
1137
+ ]
1138
+ },
1139
+ "aria-required": {
1140
+ description: "Indicates that user input is required on the element before a form may be submitted.",
1141
+ required: false,
1142
+ control: "boolean",
1143
+ type: "boolean"
1144
+ },
1145
+ "aria-roledescription": {
1146
+ description: "Defines a human-readable, author-localized description for the role of an element.",
1147
+ required: false,
1148
+ control: "text",
1149
+ type: "string"
1150
+ },
1151
+ "aria-rowcount": {
1152
+ description: "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
1153
+ required: false,
1154
+ control: "number",
1155
+ type: "number"
1156
+ },
1157
+ "aria-rowindex": {
1158
+ 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.",
1159
+ required: false,
1160
+ control: "number",
1161
+ type: "number"
1162
+ },
1163
+ "aria-rowindextext": {
1164
+ description: "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",
1165
+ required: false,
1166
+ control: "text",
1167
+ type: "string"
1168
+ },
1169
+ "aria-rowspan": {
1170
+ 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.",
1171
+ required: false,
1172
+ control: "number",
1173
+ type: "number"
1174
+ },
1175
+ "aria-selected": {
1176
+ description: 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
1177
+ required: false,
1178
+ control: "boolean",
1179
+ type: "boolean"
1180
+ },
1181
+ "aria-setsize": {
1182
+ 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.",
1183
+ required: false,
1184
+ control: "number",
1185
+ type: "number"
1186
+ },
1187
+ "aria-sort": {
1188
+ description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
1189
+ required: false,
1190
+ control: "select",
1191
+ type: "string",
1192
+ options: ["none", "ascending", "descending", "other"]
1193
+ },
1194
+ "aria-valuemax": {
1195
+ description: "Defines the maximum allowed value for a range widget.",
1196
+ required: false,
1197
+ control: "number",
1198
+ type: "number"
1199
+ },
1200
+ "aria-valuemin": {
1201
+ description: "Defines the minimum allowed value for a range widget.",
1202
+ required: false,
1203
+ control: "number",
1204
+ type: "number"
1205
+ },
1206
+ "aria-valuenow": {
1207
+ description: "Defines the current value for a range widget.\n@see aria-valuetext.",
1208
+ required: false,
1209
+ control: "number",
1210
+ type: "number"
1211
+ },
1212
+ "aria-valuetext": {
1213
+ description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
1214
+ required: false,
1215
+ control: "text",
1216
+ type: "string"
1217
+ },
1218
+ autoCapitalize: { required: false, control: "text", type: "string" },
1219
+ autoCorrect: { required: false, control: "text", type: "string" },
1220
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
1221
+ autoSave: { required: false, control: "text", type: "string" },
1222
+ className: { required: false, control: "text", type: "string" },
1223
+ color: { required: false, control: "color", type: "string" },
1224
+ content: { required: false, control: "text", type: "string" },
1225
+ contextMenu: { required: false, control: "text", type: "string" },
1226
+ datatype: { required: false, control: "text", type: "string" },
1227
+ dir: { required: false, control: "text", type: "string" },
1228
+ disabled: { required: false, control: "boolean", type: "boolean" },
1229
+ draggable: { required: false, control: "boolean", type: "boolean" },
1230
+ form: { required: false, control: "text", type: "string" },
1231
+ formAction: { required: false, control: "text", type: "string" },
1232
+ formEncType: { required: false, control: "text", type: "string" },
1233
+ formMethod: { required: false, control: "text", type: "string" },
1234
+ formNoValidate: { required: false, control: "boolean", type: "boolean" },
1235
+ formTarget: { required: false, control: "text", type: "string" },
1236
+ hidden: { required: false, control: "boolean", type: "boolean" },
1237
+ id: { required: false, control: "text", type: "string" },
1238
+ inputMode: {
1239
+ 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",
1240
+ required: false,
1241
+ control: "select",
1242
+ type: "string",
1243
+ options: [
1244
+ "search",
1245
+ "text",
1246
+ "none",
1247
+ "tel",
1248
+ "url",
1249
+ "email",
1250
+ "numeric",
1251
+ "decimal"
1252
+ ]
1253
+ },
1254
+ is: {
1255
+ 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",
1256
+ required: false,
1257
+ control: "text",
1258
+ type: "string"
1259
+ },
1260
+ itemID: { required: false, control: "text", type: "string" },
1261
+ itemProp: { required: false, control: "text", type: "string" },
1262
+ itemRef: { required: false, control: "text", type: "string" },
1263
+ itemScope: { required: false, control: "boolean", type: "boolean" },
1264
+ itemType: { required: false, control: "text", type: "string" },
1265
+ lang: { required: false, control: "text", type: "string" },
1266
+ name: { required: false, control: "text", type: "string" },
1267
+ nonce: { required: false, control: "text", type: "string" },
1268
+ placeholder: { required: false, control: "text", type: "string" },
1269
+ prefix: { required: false, control: "text", type: "string" },
1270
+ property: { required: false, control: "text", type: "string" },
1271
+ radioGroup: { required: false, control: "text", type: "string" },
1272
+ rel: { required: false, control: "text", type: "string" },
1273
+ resource: { required: false, control: "text", type: "string" },
1274
+ results: { required: false, control: "number", type: "number" },
1275
+ rev: { required: false, control: "text", type: "string" },
1276
+ role: { required: false, control: "text", type: "string" },
1277
+ security: { required: false, control: "text", type: "string" },
1278
+ slot: { required: false, control: "text", type: "string" },
1279
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
1280
+ suppressContentEditableWarning: {
1281
+ required: false,
1282
+ control: "boolean",
1283
+ type: "boolean"
1284
+ },
1285
+ suppressHydrationWarning: {
1286
+ required: false,
1287
+ control: "boolean",
1288
+ type: "boolean"
1289
+ },
1290
+ tabIndex: { required: false, control: "number", type: "number" },
1291
+ title: { required: false, control: "text", type: "string" },
1292
+ translate: {
1293
+ required: false,
1294
+ control: "radio",
1295
+ type: "string",
1296
+ options: ["yes", "no"]
1297
+ },
1298
+ type: {
1299
+ required: false,
1300
+ control: "radio",
1301
+ type: "string",
1302
+ options: ["button", "submit", "reset"]
1303
+ },
1304
+ typeof: { required: false, control: "text", type: "string" },
1305
+ unselectable: {
1306
+ required: false,
1307
+ control: "radio",
1308
+ type: "string",
1309
+ options: ["on", "off"]
1310
+ },
1311
+ value: { required: true, control: "text", type: "string" },
1312
+ vocab: { required: false, control: "text", type: "string" }
889
1313
  };
890
1314
  const propsTabsContent = {
891
1315
  about: { required: false, control: "text", type: "string" },
@@ -1230,7 +1654,6 @@ const propsTabsContent = {
1230
1654
  content: { required: false, control: "text", type: "string" },
1231
1655
  contextMenu: { required: false, control: "text", type: "string" },
1232
1656
  datatype: { required: false, control: "text", type: "string" },
1233
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
1234
1657
  dir: { required: false, control: "text", type: "string" },
1235
1658
  draggable: { required: false, control: "boolean", type: "boolean" },
1236
1659
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -381,7 +381,6 @@ const propsTooltipContent = {
381
381
  type: "string"
382
382
  },
383
383
  arrowPadding: { required: false, control: "number", type: "number" },
384
- asChild: { required: false, control: "boolean", type: "boolean" },
385
384
  autoCapitalize: { required: false, control: "text", type: "string" },
386
385
  autoCorrect: { required: false, control: "text", type: "string" },
387
386
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -392,7 +391,6 @@ const propsTooltipContent = {
392
391
  content: { required: false, control: "text", type: "string" },
393
392
  contextMenu: { required: false, control: "text", type: "string" },
394
393
  datatype: { required: false, control: "text", type: "string" },
395
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
396
394
  dir: { required: false, control: "text", type: "string" },
397
395
  draggable: { required: false, control: "boolean", type: "boolean" },
398
396
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -44,15 +44,22 @@ const namespace = "@webstudio-is/sdk-components-react-radix";
44
44
  const hooksAccordion = {
45
45
  onNavigatorSelect: (context, event) => {
46
46
  for (const instance of event.instancePath) {
47
- if (instance.component === `${namespace}:AccordionItem`) {
47
+ if (instance.component === `${namespace}:AccordionContent`) {
48
48
  const accordion = (0, import_react_sdk.getClosestInstance)(
49
49
  event.instancePath,
50
50
  instance,
51
51
  `${namespace}:Accordion`
52
52
  );
53
- const itemValue = context.getPropValue(instance.id, "value") ?? context.indexesWithinAncestors.get(instance.id)?.toString();
54
- if (accordion && itemValue) {
55
- context.setPropVariable(accordion.id, "value", itemValue);
53
+ const item = (0, import_react_sdk.getClosestInstance)(
54
+ event.instancePath,
55
+ instance,
56
+ `${namespace}:AccordionItem`
57
+ );
58
+ if (accordion && item) {
59
+ const itemValue = context.getPropValue(item.id, "value") ?? context.indexesWithinAncestors.get(item.id)?.toString();
60
+ if (itemValue) {
61
+ context.setPropVariable(accordion.id, "value", itemValue);
62
+ }
56
63
  }
57
64
  }
58
65
  }