@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
@@ -366,7 +366,6 @@ const propsCollapsible = {
366
366
  content: { required: false, control: "text", type: "string" },
367
367
  contextMenu: { required: false, control: "text", type: "string" },
368
368
  datatype: { required: false, control: "text", type: "string" },
369
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
370
369
  dir: { required: false, control: "text", type: "string" },
371
370
  disabled: { required: false, control: "boolean", type: "boolean" },
372
371
  draggable: { required: false, control: "boolean", type: "boolean" },
@@ -785,7 +784,6 @@ const propsCollapsibleContent = {
785
784
  content: { required: false, control: "text", type: "string" },
786
785
  contextMenu: { required: false, control: "text", type: "string" },
787
786
  datatype: { required: false, control: "text", type: "string" },
788
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
789
787
  dir: { required: false, control: "text", type: "string" },
790
788
  draggable: { required: false, control: "boolean", type: "boolean" },
791
789
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -28,7 +28,6 @@ __export(dialog_props_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(dialog_props_exports);
30
30
  const propsDialog = {
31
- modal: { required: false, control: "boolean", type: "boolean" },
32
31
  open: { required: false, control: "boolean", type: "boolean" }
33
32
  };
34
33
  const propsDialogTrigger = {};
@@ -366,7 +365,6 @@ const propsDialogOverlay = {
366
365
  control: "text",
367
366
  type: "string"
368
367
  },
369
- asChild: { required: false, control: "boolean", type: "boolean" },
370
368
  autoCapitalize: { required: false, control: "text", type: "string" },
371
369
  autoCorrect: { required: false, control: "text", type: "string" },
372
370
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -376,7 +374,6 @@ const propsDialogOverlay = {
376
374
  content: { required: false, control: "text", type: "string" },
377
375
  contextMenu: { required: false, control: "text", type: "string" },
378
376
  datatype: { required: false, control: "text", type: "string" },
379
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
380
377
  dir: { required: false, control: "text", type: "string" },
381
378
  draggable: { required: false, control: "boolean", type: "boolean" },
382
379
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -783,7 +780,6 @@ const propsDialogContent = {
783
780
  control: "text",
784
781
  type: "string"
785
782
  },
786
- asChild: { required: false, control: "boolean", type: "boolean" },
787
783
  autoCapitalize: { required: false, control: "text", type: "string" },
788
784
  autoCorrect: { required: false, control: "text", type: "string" },
789
785
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -793,7 +789,6 @@ const propsDialogContent = {
793
789
  content: { required: false, control: "text", type: "string" },
794
790
  contextMenu: { required: false, control: "text", type: "string" },
795
791
  datatype: { required: false, control: "text", type: "string" },
796
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
797
792
  dir: { required: false, control: "text", type: "string" },
798
793
  draggable: { required: false, control: "boolean", type: "boolean" },
799
794
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -1200,7 +1195,6 @@ const propsDialogClose = {
1200
1195
  control: "text",
1201
1196
  type: "string"
1202
1197
  },
1203
- asChild: { required: false, control: "boolean", type: "boolean" },
1204
1198
  autoCapitalize: { required: false, control: "text", type: "string" },
1205
1199
  autoCorrect: { required: false, control: "text", type: "string" },
1206
1200
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -1210,7 +1204,6 @@ const propsDialogClose = {
1210
1204
  content: { required: false, control: "text", type: "string" },
1211
1205
  contextMenu: { required: false, control: "text", type: "string" },
1212
1206
  datatype: { required: false, control: "text", type: "string" },
1213
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
1214
1207
  dir: { required: false, control: "text", type: "string" },
1215
1208
  disabled: { required: false, control: "boolean", type: "boolean" },
1216
1209
  draggable: { required: false, control: "boolean", type: "boolean" },
@@ -1631,7 +1624,6 @@ const propsDialogTitle = {
1631
1624
  control: "text",
1632
1625
  type: "string"
1633
1626
  },
1634
- asChild: { required: false, control: "boolean", type: "boolean" },
1635
1627
  autoCapitalize: { required: false, control: "text", type: "string" },
1636
1628
  autoCorrect: { required: false, control: "text", type: "string" },
1637
1629
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -1641,7 +1633,6 @@ const propsDialogTitle = {
1641
1633
  content: { required: false, control: "text", type: "string" },
1642
1634
  contextMenu: { required: false, control: "text", type: "string" },
1643
1635
  datatype: { required: false, control: "text", type: "string" },
1644
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
1645
1636
  dir: { required: false, control: "text", type: "string" },
1646
1637
  draggable: { required: false, control: "boolean", type: "boolean" },
1647
1638
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -2048,7 +2039,6 @@ const propsDialogDescription = {
2048
2039
  control: "text",
2049
2040
  type: "string"
2050
2041
  },
2051
- asChild: { required: false, control: "boolean", type: "boolean" },
2052
2042
  autoCapitalize: { required: false, control: "text", type: "string" },
2053
2043
  autoCorrect: { required: false, control: "text", type: "string" },
2054
2044
  autoFocus: { required: false, control: "boolean", type: "boolean" },
@@ -2058,7 +2048,6 @@ const propsDialogDescription = {
2058
2048
  content: { required: false, control: "text", type: "string" },
2059
2049
  contextMenu: { required: false, control: "text", type: "string" },
2060
2050
  datatype: { required: false, control: "text", type: "string" },
2061
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
2062
2051
  dir: { required: false, control: "text", type: "string" },
2063
2052
  draggable: { required: false, control: "boolean", type: "boolean" },
2064
2053
  hidden: { required: false, control: "boolean", type: "boolean" },
@@ -364,7 +364,6 @@ const props = {
364
364
  content: { required: false, control: "text", type: "string" },
365
365
  contextMenu: { required: false, control: "text", type: "string" },
366
366
  datatype: { required: false, control: "text", type: "string" },
367
- defaultChecked: { required: false, control: "boolean", type: "boolean" },
368
367
  dir: { required: false, control: "text", type: "string" },
369
368
  draggable: { required: false, control: "boolean", type: "boolean" },
370
369
  form: { required: false, control: "text", type: "string" },