@solidxai/core-ui 0.1.7-beta.4 → 0.1.7-beta.6

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 (268) hide show
  1. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  2. package/dist/components/auth/AuthLayout.js +1 -1
  3. package/dist/components/auth/AuthLayout.js.map +1 -1
  4. package/dist/components/auth/AuthLayout.tsx +5 -3
  5. package/dist/components/auth/SolidLogin.js +3 -3
  6. package/dist/components/auth/SolidLogin.js.map +1 -1
  7. package/dist/components/auth/SolidLogin.tsx +2 -2
  8. package/dist/components/common/AuthBanner.js.map +1 -1
  9. package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
  10. package/dist/components/common/DropzonePlaceholder.js +1 -1
  11. package/dist/components/common/DropzonePlaceholder.js.map +1 -1
  12. package/dist/components/common/DropzonePlaceholder.tsx +8 -6
  13. package/dist/components/core/chatter/SolidChatter.d.ts +2 -1
  14. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  15. package/dist/components/core/chatter/SolidChatter.js +2 -4
  16. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  17. package/dist/components/core/chatter/SolidChatter.tsx +3 -4
  18. package/dist/components/core/chatter/SolidChatterHeader.d.ts +1 -0
  19. package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
  20. package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
  21. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  22. package/dist/components/core/chatter/SolidChatterHeader.tsx +4 -3
  23. package/dist/components/core/chatter/chatter.module.css +42 -32
  24. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js +1 -1
  25. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js.map +1 -1
  26. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.tsx +2 -2
  27. package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +153 -30
  28. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
  29. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +7 -7
  30. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
  31. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +9 -10
  32. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts.map +1 -1
  33. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js +1 -1
  34. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js.map +1 -1
  35. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.tsx +6 -4
  36. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts.map +1 -1
  37. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js +1 -1
  38. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js.map +1 -1
  39. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.tsx +3 -1
  40. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  41. package/dist/components/core/form/SolidFormActionHeader.js +13 -13
  42. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  43. package/dist/components/core/form/SolidFormActionHeader.tsx +21 -24
  44. package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
  45. package/dist/components/core/form/SolidFormFooter.js +1 -1
  46. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  47. package/dist/components/core/form/SolidFormFooter.tsx +0 -1
  48. package/dist/components/core/form/SolidFormUserViewLayout.js +1 -1
  49. package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
  50. package/dist/components/core/form/SolidFormUserViewLayout.tsx +1 -1
  51. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  52. package/dist/components/core/form/SolidFormView.js +22 -33
  53. package/dist/components/core/form/SolidFormView.js.map +1 -1
  54. package/dist/components/core/form/SolidFormView.tsx +38 -59
  55. package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
  56. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +12 -1
  57. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
  58. package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +1 -0
  59. package/dist/components/core/form/fields/SolidLongTextField.js +4 -4
  60. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  61. package/dist/components/core/form/fields/SolidLongTextField.tsx +4 -4
  62. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  63. package/dist/components/core/form/fields/SolidMediaMultipleField.js +14 -14
  64. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  65. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +35 -21
  66. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  67. package/dist/components/core/form/fields/SolidMediaSingleField.js +2 -2
  68. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  69. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +48 -34
  70. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  71. package/dist/components/core/form/fields/SolidPasswordField.js +2 -2
  72. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  73. package/dist/components/core/form/fields/SolidPasswordField.tsx +46 -42
  74. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  75. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +23 -27
  76. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  77. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +64 -66
  78. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  79. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +2 -6
  80. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  81. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +4 -7
  82. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  83. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +12 -15
  84. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  85. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +30 -16
  86. package/dist/components/core/form/fields/solidFields.module.css +86 -15
  87. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
  88. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
  89. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
  90. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
  91. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
  92. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.d.ts.map +1 -1
  93. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +18 -28
  94. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
  95. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +52 -48
  96. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
  97. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
  98. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
  99. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
  100. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
  101. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -1
  102. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +1 -1
  103. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
  104. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +5 -4
  105. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  106. package/dist/components/core/kanban/KanbanBoard.js +11 -5
  107. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  108. package/dist/components/core/kanban/KanbanBoard.tsx +8 -0
  109. package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
  110. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  111. package/dist/components/core/kanban/KanbanCard.js +4 -4
  112. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  113. package/dist/components/core/kanban/KanbanCard.tsx +5 -4
  114. package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
  115. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  116. package/dist/components/core/kanban/KanbanColumn.js +3 -3
  117. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  118. package/dist/components/core/kanban/KanbanColumn.tsx +4 -3
  119. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -1
  120. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -1
  121. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +1 -2
  122. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -1
  123. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +2 -2
  124. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -1
  125. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +21 -10
  126. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
  127. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
  128. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
  129. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +18 -10
  130. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
  131. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +3 -6
  132. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
  133. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +30 -24
  134. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -1
  135. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +2 -2
  136. package/dist/components/core/list/SolidDataTable.d.ts +1 -0
  137. package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
  138. package/dist/components/core/list/SolidDataTable.js +19 -2
  139. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  140. package/dist/components/core/list/SolidDataTable.tsx +30 -2
  141. package/dist/components/core/list/SolidDataTablePagination.d.ts +15 -0
  142. package/dist/components/core/list/SolidDataTablePagination.d.ts.map +1 -0
  143. package/dist/components/core/list/SolidDataTablePagination.js +22 -0
  144. package/dist/components/core/list/SolidDataTablePagination.js.map +1 -0
  145. package/dist/components/core/list/SolidDataTablePagination.tsx +71 -0
  146. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  147. package/dist/components/core/list/SolidListView.js +1 -1
  148. package/dist/components/core/list/SolidListView.js.map +1 -1
  149. package/dist/components/core/list/SolidListView.tsx +1 -0
  150. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  151. package/dist/components/core/list/SolidListViewConfigure.tsx +1 -1
  152. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +1 -1
  153. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -1
  154. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +6 -7
  155. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
  156. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +9 -10
  157. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
  158. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
  159. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
  160. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
  161. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
  162. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
  163. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
  164. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
  165. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
  166. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
  167. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
  168. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
  169. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
  170. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
  171. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
  172. package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
  173. package/dist/components/core/locales/SolidChatterLocaleTabView.js +7 -4
  174. package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
  175. package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +28 -11
  176. package/dist/components/core/locales/SolidLocale.js +4 -4
  177. package/dist/components/core/locales/SolidLocale.js.map +1 -1
  178. package/dist/components/core/locales/SolidLocale.tsx +18 -18
  179. package/dist/components/core/locales/solid-locale.css +105 -7
  180. package/dist/components/core/model/CreateModel.js +2 -2
  181. package/dist/components/core/model/CreateModel.js.map +1 -1
  182. package/dist/components/core/model/CreateModel.tsx +2 -2
  183. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  184. package/dist/components/core/model/FieldMetaData.js +3 -3
  185. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  186. package/dist/components/core/model/FieldMetaData.tsx +45 -22
  187. package/dist/components/layout/AppSidebar.d.ts.map +1 -1
  188. package/dist/components/layout/AppSidebar.js +75 -7
  189. package/dist/components/layout/AppSidebar.js.map +1 -1
  190. package/dist/components/layout/AppSidebar.tsx +84 -7
  191. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
  192. package/dist/components/shad-cn-ui/SolidCodeEditor.js +13 -7
  193. package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
  194. package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +22 -12
  195. package/dist/components/shad-cn-ui/SolidDialog.d.ts +2 -1
  196. package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
  197. package/dist/components/shad-cn-ui/SolidDialog.js +2 -2
  198. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  199. package/dist/components/shad-cn-ui/SolidDialog.tsx +6 -3
  200. package/dist/components/shad-cn-ui/SolidSelect.d.ts +2 -1
  201. package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
  202. package/dist/components/shad-cn-ui/SolidSelect.js +2 -2
  203. package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
  204. package/dist/components/shad-cn-ui/SolidSelect.tsx +3 -0
  205. package/dist/components/shad-cn-ui/SolidTextarea.d.ts +1 -1
  206. package/dist/components/shad-cn-ui/SolidTextarea.d.ts.map +1 -1
  207. package/dist/components/shad-cn-ui/SolidTextarea.js +3 -2
  208. package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -1
  209. package/dist/components/shad-cn-ui/SolidTextarea.tsx +17 -2
  210. package/dist/components/solid-ui/SolidButton.d.ts +14 -0
  211. package/dist/components/solid-ui/SolidButton.d.ts.map +1 -0
  212. package/dist/components/solid-ui/SolidButton.js +36 -0
  213. package/dist/components/solid-ui/SolidButton.js.map +1 -0
  214. package/dist/components/solid-ui/SolidButton.tsx +54 -0
  215. package/dist/components/solid-ui/SolidTabs.d.ts +18 -0
  216. package/dist/components/solid-ui/SolidTabs.d.ts.map +1 -0
  217. package/dist/components/solid-ui/SolidTabs.js +22 -0
  218. package/dist/components/solid-ui/SolidTabs.js.map +1 -0
  219. package/dist/components/solid-ui/SolidTabs.tsx +73 -0
  220. package/dist/components/solid-ui/index.d.ts +3 -0
  221. package/dist/components/solid-ui/index.d.ts.map +1 -0
  222. package/dist/components/solid-ui/index.js +3 -0
  223. package/dist/components/solid-ui/index.js.map +1 -0
  224. package/dist/components/solid-ui/index.ts +2 -0
  225. package/dist/helpers/registry.d.ts.map +1 -1
  226. package/dist/helpers/registry.js +10 -0
  227. package/dist/helpers/registry.js.map +1 -1
  228. package/dist/helpers/registry.ts +16 -0
  229. package/dist/index.d.ts +3 -2
  230. package/dist/index.d.ts.map +1 -1
  231. package/dist/index.js +3 -2
  232. package/dist/index.js.map +1 -1
  233. package/dist/index.ts +71 -2
  234. package/dist/resources/globals.css +628 -67
  235. package/dist/resources/shadcn-base.css +333 -7
  236. package/dist/resources/solid-responsive.css +6 -6
  237. package/dist/resources/themes/solid-dark-purple/theme.css +1 -1
  238. package/package.json +1 -1
  239. package/dist/components/auth/SolidOTPVerify.d.ts +0 -3
  240. package/dist/components/auth/SolidOTPVerify.d.ts.map +0 -1
  241. package/dist/components/auth/SolidOTPVerify.js +0 -67
  242. package/dist/components/auth/SolidOTPVerify.js.map +0 -1
  243. package/dist/components/auth/SolidOTPVerify.tsx +0 -133
  244. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +0 -2
  245. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +0 -1
  246. package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -50
  247. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
  248. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
  249. package/dist/nextAuth/authProviders.d.ts +0 -4
  250. package/dist/nextAuth/authProviders.d.ts.map +0 -1
  251. package/dist/nextAuth/authProviders.js +0 -198
  252. package/dist/nextAuth/authProviders.js.map +0 -1
  253. package/dist/nextAuth/authProviders.tsx +0 -232
  254. package/dist/nextAuth/handleLogout.d.ts +0 -2
  255. package/dist/nextAuth/handleLogout.d.ts.map +0 -1
  256. package/dist/nextAuth/handleLogout.js +0 -36
  257. package/dist/nextAuth/handleLogout.js.map +0 -1
  258. package/dist/nextAuth/handleLogout.tsx +0 -39
  259. package/dist/nextAuth/refreshAccessToken.d.ts +0 -2
  260. package/dist/nextAuth/refreshAccessToken.d.ts.map +0 -1
  261. package/dist/nextAuth/refreshAccessToken.js +0 -24
  262. package/dist/nextAuth/refreshAccessToken.js.map +0 -1
  263. package/dist/nextAuth/refreshAccessToken.tsx +0 -28
  264. package/dist/redux/features/settingsSlice.d.ts +0 -20
  265. package/dist/redux/features/settingsSlice.d.ts.map +0 -1
  266. package/dist/redux/features/settingsSlice.js +0 -39
  267. package/dist/redux/features/settingsSlice.js.map +0 -1
  268. package/dist/redux/features/settingsSlice.ts +0 -60
@@ -20,19 +20,29 @@ export function SolidCodeEditor({
20
20
  language = "javascript",
21
21
  }: SolidCodeEditorProps) {
22
22
  return (
23
- <Editor
23
+ <div
24
24
  className={className}
25
- height={height}
26
- language={language}
27
- value={value}
28
- onChange={(val) => onChange?.(val ?? "")}
29
- options={{
30
- readOnly,
31
- minimap: { enabled: false },
32
- lineNumbers: "on",
33
- fontSize: typeof fontSize === "number" ? fontSize : parseInt(String(fontSize), 10) || 14,
34
- scrollBeyondLastLine: false,
25
+ style={{
26
+ border: "1px solid var(--surface-border, #d0d7de)",
27
+ borderRadius: "0.5rem",
28
+ overflow: "hidden",
29
+ background: "var(--surface-card, #fff)",
35
30
  }}
36
- />
31
+ >
32
+ <Editor
33
+ height={height}
34
+ language={language}
35
+ value={value}
36
+ onChange={(val) => onChange?.(val ?? "")}
37
+ options={{
38
+ readOnly,
39
+ minimap: { enabled: false },
40
+ lineNumbers: "on",
41
+ fontSize: typeof fontSize === "number" ? fontSize : parseInt(String(fontSize), 10) || 14,
42
+ scrollBeyondLastLine: false,
43
+ overviewRulerBorder: false,
44
+ }}
45
+ />
46
+ </div>
37
47
  );
38
48
  }
@@ -31,9 +31,10 @@ export declare function SolidDialogFooter({ children, className }: SolidDialogSe
31
31
  export declare function SolidDialogSeparator({ className }: {
32
32
  className?: string;
33
33
  }): import("react/jsx-runtime").JSX.Element;
34
- export declare function SolidDialogClose({ className, children, "aria-label": ariaLabel, }: {
34
+ export declare function SolidDialogClose({ className, children, onClick, "aria-label": ariaLabel, }: {
35
35
  className?: string;
36
36
  children?: React.ReactNode;
37
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
37
38
  "aria-label"?: string;
38
39
  }): import("react/jsx-runtime").JSX.Element;
39
40
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SolidDialog.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CA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AW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,UAAiB,EACjB,eAAe,EACf,YAAY,EACZ,WAAkB,GACnB,EAAE,gBAAgB,2CAqClB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAEjF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAEhF;AAED,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAMtF;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAE/E;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CAEjF;AAED,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAEzE;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EAAE,SAA0B,GACzC,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,2CAaA"}
@@ -55,7 +55,7 @@ export function SolidDialogSeparator(_a) {
55
55
  return _jsx("div", { className: cx("solid-radix-dialog-separator", className) });
56
56
  }
57
57
  export function SolidDialogClose(_a) {
58
- var className = _a.className, children = _a.children, _b = _a["aria-label"], ariaLabel = _b === void 0 ? "Close dialog" : _b;
59
- return (_jsx(Dialog.Close, { asChild: true, children: _jsx("button", { type: "button", className: cx("solid-radix-dialog-close", className), "aria-label": ariaLabel, children: children !== null && children !== void 0 ? children : _jsx(X, { size: 16 }) }) }));
58
+ var className = _a.className, children = _a.children, onClick = _a.onClick, _b = _a["aria-label"], ariaLabel = _b === void 0 ? "Close dialog" : _b;
59
+ return (_jsx(Dialog.Close, { asChild: true, children: _jsx("button", { type: "button", className: cx("solid-radix-dialog-close", className), "aria-label": ariaLabel, onClick: onClick, children: children !== null && children !== void 0 ? children : _jsx(X, { size: 16 }) }) }));
60
60
  }
61
61
  //# sourceMappingURL=SolidDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidDialog.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidDialog.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AA4BjC,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAgBT;;QAfjB,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,gBAAgB,sBAAA,EAChB,gBAAgB,sBAAA,EAChB,KAAK,WAAA,EACL,OAAO,aAAA,EACP,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,kBAAiB,EAAjB,UAAU,mBAAG,IAAI,KAAA,EACjB,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA;IAElB,IAAM,cAAc,GAAG,MAAA,IAAI,aAAJ,IAAI,cAAJ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AE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,GAAI,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAQhC;QAPC,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,qBAAwC,EAA1B,SAAS,mBAAG,cAAc,KAAA;IAMxC,OAAO,CACL,KAAC,MAAM,CAAC,KAAK,IAAC,OAAO,kBACnB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,gBACxC,SAAS,YAEpB,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAC,CAAC,IAAC,IAAI,EAAE,EAAE,GAAI,GACrB,GACI,CAChB,CAAC;AACJ,CAAC","sourcesContent":["import * as React from \"react\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\ntype SolidDialogProps = {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n children: React.ReactNode;\n className?: string;\n contentClassName?: string;\n overlayClassName?: string;\n style?: React.CSSProperties;\n // Compatibility props\n visible?: boolean;\n onHide?: () => void;\n modal?: boolean;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n showHeader?: boolean;\n headerClassName?: string;\n contentStyle?: React.CSSProperties;\n breakpoints?: Record<string, string>;\n dismissible?: boolean;\n};\n\ntype SolidDialogSectionProps = {\n children: React.ReactNode;\n className?: string;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidDialog({\n open,\n onOpenChange,\n children,\n className,\n contentClassName,\n overlayClassName,\n style,\n visible,\n onHide,\n header,\n footer,\n showHeader = true,\n headerClassName,\n contentStyle,\n dismissible = true,\n}: SolidDialogProps) {\n const controlledOpen = open ?? visible ?? false;\n const handleOpenChange = (next: boolean) => {\n if (!dismissible && !next) return;\n onOpenChange?.(next);\n if (!next) onHide?.();\n };\n\n return (\n <Dialog.Root open={controlledOpen} onOpenChange={handleOpenChange}>\n <Dialog.Portal>\n <Dialog.Overlay className={cx(\"solid-radix-dialog-overlay\", overlayClassName)} />\n <Dialog.Content\n className={cx(\"solid-radix-dialog-content\", className, contentClassName)}\n style={style ?? contentStyle}\n onEscapeKeyDown={(event) => {\n if (!dismissible) event.preventDefault();\n }}\n onPointerDownOutside={(event) => {\n if (!dismissible) event.preventDefault();\n }}\n onInteractOutside={(event) => {\n if (!dismissible) event.preventDefault();\n }}\n >\n {showHeader && (header || onHide) ? (\n <SolidDialogHeader className={headerClassName}>\n {header ? <SolidDialogTitle>{header}</SolidDialogTitle> : null}\n <SolidDialogClose aria-label=\"Close\" />\n </SolidDialogHeader>\n ) : null}\n {children}\n {footer ? <SolidDialogFooter>{footer}</SolidDialogFooter> : null}\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n );\n}\n\nexport function SolidDialogHeader({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-header\", className)}>{children}</div>;\n}\n\nexport function SolidDialogTitle({ children, className }: SolidDialogSectionProps) {\n return <Dialog.Title className={cx(\"solid-radix-dialog-title\", className)}>{children}</Dialog.Title>;\n}\n\nexport function SolidDialogDescription({ children, className }: SolidDialogSectionProps) {\n return (\n <Dialog.Description className={cx(\"solid-radix-dialog-description\", className)}>\n {children}\n </Dialog.Description>\n );\n}\n\nexport function SolidDialogBody({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-body\", className)}>{children}</div>;\n}\n\nexport function SolidDialogFooter({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-footer\", className)}>{children}</div>;\n}\n\nexport function SolidDialogSeparator({ className }: { className?: string }) {\n return <div className={cx(\"solid-radix-dialog-separator\", className)} />;\n}\n\nexport function SolidDialogClose({\n className,\n children,\n \"aria-label\": ariaLabel = \"Close dialog\",\n}: {\n className?: string;\n children?: React.ReactNode;\n \"aria-label\"?: string;\n}) {\n return (\n <Dialog.Close asChild>\n <button\n type=\"button\"\n className={cx(\"solid-radix-dialog-close\", className)}\n aria-label={ariaLabel}\n >\n {children ?? <X size={16} />}\n </button>\n </Dialog.Close>\n );\n}\n"]}
1
+ {"version":3,"file":"SolidDialog.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidDialog.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AA4BjC,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAgBT;;QAfjB,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,gBAAgB,sBAAA,EAChB,gBAAgB,sBAAA,EAChB,KAAK,WAAA,EACL,OAAO,aAAA,EACP,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,kBAAiB,EAAjB,UAAU,mBAAG,IAAI,KAAA,EACjB,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA;IAElB,IAAM,cAAc,GAAG,MAAA,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,OAAO,mCAAI,KAAK,CAAC;IAChD,IAAM,gBAAgB,GAAG,UAAC,IAAa;QACrC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI;YAAE,OAAO;QAClC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI;YAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,MAAM,CAAC,IA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AA0B,EAAE,SAAS,CAAC,gBACxC,SAAS,EACrB,OAAO,EAAE,OAAO,YAEf,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAC,CAAC,IAAC,IAAI,EAAE,EAAE,GAAI,GACrB,GACI,CAChB,CAAC;AACJ,CAAC","sourcesContent":["import * as React from \"react\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\ntype SolidDialogProps = {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n children: React.ReactNode;\n className?: string;\n contentClassName?: string;\n overlayClassName?: string;\n style?: React.CSSProperties;\n // Compatibility props\n visible?: boolean;\n onHide?: () => void;\n modal?: boolean;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n showHeader?: boolean;\n headerClassName?: string;\n contentStyle?: React.CSSProperties;\n breakpoints?: Record<string, string>;\n dismissible?: boolean;\n};\n\ntype SolidDialogSectionProps = {\n children: React.ReactNode;\n className?: string;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidDialog({\n open,\n onOpenChange,\n children,\n className,\n contentClassName,\n overlayClassName,\n style,\n visible,\n onHide,\n header,\n footer,\n showHeader = true,\n headerClassName,\n contentStyle,\n dismissible = true,\n}: SolidDialogProps) {\n const controlledOpen = open ?? visible ?? false;\n const handleOpenChange = (next: boolean) => {\n if (!dismissible && !next) return;\n onOpenChange?.(next);\n if (!next) onHide?.();\n };\n\n return (\n <Dialog.Root open={controlledOpen} onOpenChange={handleOpenChange}>\n <Dialog.Portal>\n <Dialog.Overlay className={cx(\"solid-radix-dialog-overlay\", overlayClassName)} />\n <Dialog.Content\n className={cx(\"solid-radix-dialog-content\", className, contentClassName)}\n style={style ?? contentStyle}\n onEscapeKeyDown={(event: any) => {\n if (!dismissible) event.preventDefault();\n }}\n onPointerDownOutside={(event: any) => {\n if (!dismissible) event.preventDefault();\n }}\n onInteractOutside={(event: any) => {\n if (!dismissible) event.preventDefault();\n }}\n >\n {showHeader && (header || onHide) ? (\n <SolidDialogHeader className={headerClassName}>\n {header ? <SolidDialogTitle>{header}</SolidDialogTitle> : null}\n <SolidDialogClose aria-label=\"Close\" />\n </SolidDialogHeader>\n ) : null}\n {children}\n {footer ? <SolidDialogFooter>{footer}</SolidDialogFooter> : null}\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n );\n}\n\nexport function SolidDialogHeader({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-header\", className)}>{children}</div>;\n}\n\nexport function SolidDialogTitle({ children, className }: SolidDialogSectionProps) {\n return <Dialog.Title className={cx(\"solid-radix-dialog-title\", className)}>{children}</Dialog.Title>;\n}\n\nexport function SolidDialogDescription({ children, className }: SolidDialogSectionProps) {\n return (\n <Dialog.Description className={cx(\"solid-radix-dialog-description\", className)}>\n {children}\n </Dialog.Description>\n );\n}\n\nexport function SolidDialogBody({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-body\", className)}>{children}</div>;\n}\n\nexport function SolidDialogFooter({ children, className }: SolidDialogSectionProps) {\n return <div className={cx(\"solid-radix-dialog-footer\", className)}>{children}</div>;\n}\n\nexport function SolidDialogSeparator({ className }: { className?: string }) {\n return <div className={cx(\"solid-radix-dialog-separator\", className)} />;\n}\n\nexport function SolidDialogClose({\n className,\n children,\n onClick,\n \"aria-label\": ariaLabel = \"Close dialog\",\n}: {\n className?: string;\n children?: React.ReactNode;\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n \"aria-label\"?: string;\n}) {\n return (\n <Dialog.Close asChild>\n <button\n type=\"button\"\n className={cx(\"solid-radix-dialog-close\", className)}\n aria-label={ariaLabel}\n onClick={onClick}\n >\n {children ?? <X size={16} />}\n </button>\n </Dialog.Close>\n );\n}\n"]}
@@ -63,13 +63,13 @@ export function SolidDialog({
63
63
  <Dialog.Content
64
64
  className={cx("solid-radix-dialog-content", className, contentClassName)}
65
65
  style={style ?? contentStyle}
66
- onEscapeKeyDown={(event) => {
66
+ onEscapeKeyDown={(event: any) => {
67
67
  if (!dismissible) event.preventDefault();
68
68
  }}
69
- onPointerDownOutside={(event) => {
69
+ onPointerDownOutside={(event: any) => {
70
70
  if (!dismissible) event.preventDefault();
71
71
  }}
72
- onInteractOutside={(event) => {
72
+ onInteractOutside={(event: any) => {
73
73
  if (!dismissible) event.preventDefault();
74
74
  }}
75
75
  >
@@ -118,10 +118,12 @@ export function SolidDialogSeparator({ className }: { className?: string }) {
118
118
  export function SolidDialogClose({
119
119
  className,
120
120
  children,
121
+ onClick,
121
122
  "aria-label": ariaLabel = "Close dialog",
122
123
  }: {
123
124
  className?: string;
124
125
  children?: React.ReactNode;
126
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
125
127
  "aria-label"?: string;
126
128
  }) {
127
129
  return (
@@ -130,6 +132,7 @@ export function SolidDialogClose({
130
132
  type="button"
131
133
  className={cx("solid-radix-dialog-close", className)}
132
134
  aria-label={ariaLabel}
135
+ onClick={onClick}
133
136
  >
134
137
  {children ?? <X size={16} />}
135
138
  </button>
@@ -10,7 +10,8 @@ type SolidSelectProps = {
10
10
  onChange?: (event: {
11
11
  value: any;
12
12
  }) => void;
13
+ id?: string;
13
14
  };
14
- export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, id, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
16
17
  //# sourceMappingURL=SolidSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidSelect.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC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,EACR,EAAE,GACH,EAAE,gBAAgB,2CAoClB"}
@@ -8,7 +8,7 @@ function cx() {
8
8
  return parts.filter(Boolean).join(" ");
9
9
  }
10
10
  export function SolidSelect(_a) {
11
- var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange;
11
+ var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange, id = _a.id;
12
12
  var normalized = options.map(function (option, index) {
13
13
  var _a;
14
14
  return ({
@@ -19,7 +19,7 @@ export function SolidSelect(_a) {
19
19
  });
20
20
  var selectedIndex = normalized.findIndex(function (item) { return item.value === value; });
21
21
  var selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : "";
22
- return (_jsxs("div", { className: cx("solid-select-wrap", className), children: [_jsxs("select", { className: "solid-select", value: selectedKey, disabled: disabled, onChange: function (event) {
22
+ return (_jsxs("div", { className: cx("solid-select-wrap", className), children: [_jsxs("select", { id: id, className: "solid-select", value: selectedKey, disabled: disabled, onChange: function (event) {
23
23
  var next = normalized.find(function (item) { return item.key === event.target.value; });
24
24
  onChange === null || onChange === void 0 ? void 0 : onChange({ value: next === null || next === void 0 ? void 0 : next.value });
25
25
  }, children: [_jsx("option", { value: "", disabled: true, children: placeholder || "Select" }), normalized.map(function (item) { return (_jsx("option", { value: item.key, children: item.label }, item.key)); })] }), _jsx("span", { className: "solid-select-icon", "aria-hidden": "true", children: _jsx(ChevronDown, { size: 14 }) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[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QAAQ,EAClB,QAAQ,EAAE,UAAC,KAAK;oBACd,IAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,GAAG,KAAK,KAAK,CAAC,MAAM,CAAC,KAAK,EAA/B,CAA+B,CAAC,CAAC;oBACxE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,EAAE,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE,CAAC,CAAC;gBACrC,CAAC,aAED,iBAAQ,KAAK,EAAC,EAAE,EAAC,QAAQ,kBACtB,WAAW,IAAI,QAAQ,GACjB,EACR,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACxB,iBAAuB,KAAK,EAAE,IAAI,CAAC,GAAG,YACnC,IAAI,CAAC,KAAK,IADA,IAAI,CAAC,GAAG,CAEZ,CACV,EAJyB,CAIzB,CAAC,IACK,EACT,eAAM,SAAS,EAAC,mBAAmB,iBAAa,MAAM,YACpD,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,GACpB,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { ChevronDown } from \"lucide-react\";\n\ntype SolidSelectOption = Record<string, any>;\n\ntype SolidSelectProps = {\n value?: any;\n options?: SolidSelectOption[];\n optionLabel?: string;\n optionValue?: string;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n onChange?: (event: { value: any }) => void;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidSelect({\n value,\n options = [],\n optionLabel = \"label\",\n optionValue = \"value\",\n placeholder,\n className,\n disabled,\n onChange,\n}: SolidSelectProps) {\n const normalized = options.map((option, index) => ({\n key: String(index),\n label: option?.[optionLabel] ?? \"\",\n value: option?.[optionValue],\n }));\n\n const selectedIndex = normalized.findIndex((item) => item.value === value);\n const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : \"\";\n\n return (\n <div className={cx(\"solid-select-wrap\", className)}>\n <select\n className=\"solid-select\"\n value={selectedKey}\n disabled={disabled}\n onChange={(event) => {\n const next = normalized.find((item) => item.key === event.target.value);\n onChange?.({ value: next?.value });\n }}\n >\n <option value=\"\" disabled>\n {placeholder || \"Select\"}\n </option>\n {normalized.map((item) => (\n <option key={item.key} value={item.key}>\n {item.label}\n </option>\n ))}\n </select>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAgB3C,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAUT;QATjB,KAAK,WAAA,EACL,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EACZ,mBAAqB,EAArB,WAAW,mBAAG,OAAO,KAAA,EACrB,mBAAqB,EAArB,WAAW,mBAAG,OAAO,KAAA,EACrB,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,EAAE,QAAA;IAEF,IAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK;;QAAK,OAAA,CAAC;YACjD,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC;YAClB,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,WAAW,CAAC,mCAAI,EAAE;YAClC,KAAK,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,WAA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ide-react\";\n\ntype SolidSelectOption = Record<string, any>;\n\ntype SolidSelectProps = {\n value?: any;\n options?: SolidSelectOption[];\n optionLabel?: string;\n optionValue?: string;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n onChange?: (event: { value: any }) => void;\n id?: string;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidSelect({\n value,\n options = [],\n optionLabel = \"label\",\n optionValue = \"value\",\n placeholder,\n className,\n disabled,\n onChange,\n id,\n}: SolidSelectProps) {\n const normalized = options.map((option, index) => ({\n key: String(index),\n label: option?.[optionLabel] ?? \"\",\n value: option?.[optionValue],\n }));\n\n const selectedIndex = normalized.findIndex((item) => item.value === value);\n const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : \"\";\n\n return (\n <div className={cx(\"solid-select-wrap\", className)}>\n <select\n id={id}\n className=\"solid-select\"\n value={selectedKey}\n disabled={disabled}\n onChange={(event) => {\n const next = normalized.find((item) => item.key === event.target.value);\n onChange?.({ value: next?.value });\n }}\n >\n <option value=\"\" disabled>\n {placeholder || \"Select\"}\n </option>\n {normalized.map((item) => (\n <option key={item.key} value={item.key}>\n {item.label}\n </option>\n ))}\n </select>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </div>\n );\n}\n"]}
@@ -12,6 +12,7 @@ type SolidSelectProps = {
12
12
  className?: string;
13
13
  disabled?: boolean;
14
14
  onChange?: (event: { value: any }) => void;
15
+ id?: string;
15
16
  };
16
17
 
17
18
  function cx(...parts: Array<string | false | undefined>) {
@@ -27,6 +28,7 @@ export function SolidSelect({
27
28
  className,
28
29
  disabled,
29
30
  onChange,
31
+ id,
30
32
  }: SolidSelectProps) {
31
33
  const normalized = options.map((option, index) => ({
32
34
  key: String(index),
@@ -40,6 +42,7 @@ export function SolidSelect({
40
42
  return (
41
43
  <div className={cx("solid-select-wrap", className)}>
42
44
  <select
45
+ id={id}
43
46
  className="solid-select"
44
47
  value={selectedKey}
45
48
  disabled={disabled}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  type SolidTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
3
- export declare function SolidTextarea({ className, ...props }: SolidTextareaProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SolidTextarea({ className, disabled, readOnly, style, ...props }: SolidTextareaProps): import("react/jsx-runtime").JSX.Element;
4
4
  export {};
5
5
  //# sourceMappingURL=SolidTextarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidTextarea.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidTextarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,kBAAkB,GAAG,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;AAM5E,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAExE"}
1
+ {"version":3,"file":"SolidTextarea.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidTextarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,kBAAkB,GAAG,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;AAM5E,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAiBnG"}
@@ -29,7 +29,8 @@ function cx() {
29
29
  return parts.filter(Boolean).join(" ");
30
30
  }
31
31
  export function SolidTextarea(_a) {
32
- var className = _a.className, props = __rest(_a, ["className"]);
33
- return _jsx("textarea", __assign({ className: cx("solid-input solid-textarea", className) }, props));
32
+ var className = _a.className, disabled = _a.disabled, readOnly = _a.readOnly, style = _a.style, props = __rest(_a, ["className", "disabled", "readOnly", "style"]);
33
+ var isInteractionLocked = Boolean(disabled || readOnly);
34
+ return (_jsx("textarea", __assign({ className: cx("solid-input solid-textarea", isInteractionLocked && "is-interaction-locked", className), "aria-disabled": disabled || undefined, "aria-readonly": readOnly || undefined, style: __assign(__assign({}, (style || {})), (isInteractionLocked ? { opacity: 0.75, cursor: "not-allowed" } : {})), disabled: disabled, readOnly: readOnly }, props)));
34
35
  }
35
36
  //# sourceMappingURL=SolidTextarea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidTextarea.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAA2C;IAAzC,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IACjD,OAAO,4BAAU,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,IAAM,KAAK,EAAI,CAAC;AACzF,CAAC","sourcesContent":["import React from \"react\";\n\ntype SolidTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidTextarea({ className, ...props }: SolidTextareaProps) {\n return <textarea className={cx(\"solid-input solid-textarea\", className)} {...props} />;\n}\n"]}
1
+ {"version":3,"file":"SolidTextarea.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidTextarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAAsE;IAApE,IAAA,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAK,KAAK,cAAhD,8CAAkD,CAAF;IAC5E,IAAM,mBAAmB,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC;IAE1D,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,SAAS,CAAC,mBACvF,QAAQ,IAAI,SAAS,mBACrB,QAAQ,IAAI,SAAS,EACpC,KAAK,wBACA,CAAC,KAAK,IAAI,EAAE,CAAC,GACb,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAE1E,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,IACd,KAAK,EACT,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\n\ntype SolidTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidTextarea({ className, disabled, readOnly, style, ...props }: SolidTextareaProps) {\n const isInteractionLocked = Boolean(disabled || readOnly);\n\n return (\n <textarea\n className={cx(\"solid-input solid-textarea\", isInteractionLocked && \"is-interaction-locked\", className)}\n aria-disabled={disabled || undefined}\n aria-readonly={readOnly || undefined}\n style={{\n ...(style || {}),\n ...(isInteractionLocked ? { opacity: 0.75, cursor: \"not-allowed\" } : {}),\n }}\n disabled={disabled}\n readOnly={readOnly}\n {...props}\n />\n );\n}\n"]}
@@ -6,6 +6,21 @@ function cx(...parts: Array<string | false | undefined>) {
6
6
  return parts.filter(Boolean).join(" ");
7
7
  }
8
8
 
9
- export function SolidTextarea({ className, ...props }: SolidTextareaProps) {
10
- return <textarea className={cx("solid-input solid-textarea", className)} {...props} />;
9
+ export function SolidTextarea({ className, disabled, readOnly, style, ...props }: SolidTextareaProps) {
10
+ const isInteractionLocked = Boolean(disabled || readOnly);
11
+
12
+ return (
13
+ <textarea
14
+ className={cx("solid-input solid-textarea", isInteractionLocked && "is-interaction-locked", className)}
15
+ aria-disabled={disabled || undefined}
16
+ aria-readonly={readOnly || undefined}
17
+ style={{
18
+ ...(style || {}),
19
+ ...(isInteractionLocked ? { opacity: 0.75, cursor: "not-allowed" } : {}),
20
+ }}
21
+ disabled={disabled}
22
+ readOnly={readOnly}
23
+ {...props}
24
+ />
25
+ );
11
26
  }
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ type SolidButtonVariant = "primary" | "secondary" | "ghost" | "outline" | "destructive";
3
+ type SolidButtonSize = "sm" | "md" | "lg";
4
+ type SolidButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
+ variant?: SolidButtonVariant;
6
+ size?: SolidButtonSize;
7
+ fullWidth?: boolean;
8
+ loading?: boolean;
9
+ leftIcon?: React.ReactNode;
10
+ rightIcon?: React.ReactNode;
11
+ };
12
+ export declare function SolidButton({ variant, size, fullWidth, loading, leftIcon, rightIcon, className, disabled, children, type, ...props }: SolidButtonProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=SolidButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidButton.d.ts","sourceRoot":"","sources":["../../../src/components/solid-ui/SolidButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,kBAAkB,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;AACxF,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,KAAK,gBAAgB,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACtE,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAMF,wBAAgB,WAAW,CAAC,EAC1B,OAAmB,EACnB,IAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,IAAe,EACf,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAuBlB"}
@@ -0,0 +1,36 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ function cx() {
25
+ var parts = [];
26
+ for (var _i = 0; _i < arguments.length; _i++) {
27
+ parts[_i] = arguments[_i];
28
+ }
29
+ return parts.filter(Boolean).join(" ");
30
+ }
31
+ export function SolidButton(_a) {
32
+ var _b = _a.variant, variant = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "md" : _c, fullWidth = _a.fullWidth, loading = _a.loading, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, className = _a.className, disabled = _a.disabled, children = _a.children, _d = _a.type, type = _d === void 0 ? "button" : _d, props = __rest(_a, ["variant", "size", "fullWidth", "loading", "leftIcon", "rightIcon", "className", "disabled", "children", "type"]);
33
+ var isDisabled = disabled || loading;
34
+ return (_jsxs("button", __assign({ type: type, className: cx("solid-btn", "solid-btn--".concat(variant), "solid-btn--".concat(size), fullWidth && "solid-btn--full", loading && "is-loading", className), disabled: isDisabled }, props, { children: [loading && _jsx("span", { className: "solid-btn-spinner", "aria-hidden": "true" }), !loading && leftIcon ? _jsx("span", { className: "solid-btn-icon", children: leftIcon }) : null, _jsx("span", { className: "solid-btn-label", children: children }), !loading && rightIcon ? _jsx("span", { className: "solid-btn-icon", children: rightIcon }) : null] })));
35
+ }
36
+ //# sourceMappingURL=SolidButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidButton.js","sourceRoot":"","sources":["../../../src/components/solid-ui/SolidButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAYT;IAXjB,IAAA,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EACX,SAAS,eAAA,EACT,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACZ,KAAK,cAXkB,iHAY3B,CADS;IAER,IAAM,UAAU,GAAG,QAAQ,IAAI,OAAO,CAAC;IAEvC,OAAO,CACL,2BACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX,WAAW,EACX,qBAAc,OAAO,CAAE,EACvB,qBAAc,IAAI,CAAE,EACpB,SAAS,IAAI,iBAAiB,EAC9B,OAAO,IAAI,YAAY,EACvB,SAAS,CACV,EACD,QAAQ,EAAE,UAAU,IAChB,KAAK,eAER,OAAO,IAAI,eAAM,SAAS,EAAC,mBAAmB,iBAAa,MAAM,GAAG,EACpE,CAAC,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,gBAAgB,YAAE,QAAQ,GAAQ,CAAC,CAAC,CAAC,IAAI,EACjF,eAAM,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAQ,EAClD,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,gBAAgB,YAAE,SAAS,GAAQ,CAAC,CAAC,CAAC,IAAI,KAC5E,CACV,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\n\ntype SolidButtonVariant = \"primary\" | \"secondary\" | \"ghost\" | \"outline\" | \"destructive\";\ntype SolidButtonSize = \"sm\" | \"md\" | \"lg\";\n\ntype SolidButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n variant?: SolidButtonVariant;\n size?: SolidButtonSize;\n fullWidth?: boolean;\n loading?: boolean;\n leftIcon?: React.ReactNode;\n rightIcon?: React.ReactNode;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidButton({\n variant = \"primary\",\n size = \"md\",\n fullWidth,\n loading,\n leftIcon,\n rightIcon,\n className,\n disabled,\n children,\n type = \"button\",\n ...props\n}: SolidButtonProps) {\n const isDisabled = disabled || loading;\n\n return (\n <button\n type={type}\n className={cx(\n \"solid-btn\",\n `solid-btn--${variant}`,\n `solid-btn--${size}`,\n fullWidth && \"solid-btn--full\",\n loading && \"is-loading\",\n className\n )}\n disabled={isDisabled}\n {...props}\n >\n {loading && <span className=\"solid-btn-spinner\" aria-hidden=\"true\" />}\n {!loading && leftIcon ? <span className=\"solid-btn-icon\">{leftIcon}</span> : null}\n <span className=\"solid-btn-label\">{children}</span>\n {!loading && rightIcon ? <span className=\"solid-btn-icon\">{rightIcon}</span> : null}\n </button>\n );\n}\n"]}
@@ -0,0 +1,54 @@
1
+ import React from "react";
2
+
3
+ type SolidButtonVariant = "primary" | "secondary" | "ghost" | "outline" | "destructive";
4
+ type SolidButtonSize = "sm" | "md" | "lg";
5
+
6
+ type SolidButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ variant?: SolidButtonVariant;
8
+ size?: SolidButtonSize;
9
+ fullWidth?: boolean;
10
+ loading?: boolean;
11
+ leftIcon?: React.ReactNode;
12
+ rightIcon?: React.ReactNode;
13
+ };
14
+
15
+ function cx(...parts: Array<string | false | undefined>) {
16
+ return parts.filter(Boolean).join(" ");
17
+ }
18
+
19
+ export function SolidButton({
20
+ variant = "primary",
21
+ size = "md",
22
+ fullWidth,
23
+ loading,
24
+ leftIcon,
25
+ rightIcon,
26
+ className,
27
+ disabled,
28
+ children,
29
+ type = "button",
30
+ ...props
31
+ }: SolidButtonProps) {
32
+ const isDisabled = disabled || loading;
33
+
34
+ return (
35
+ <button
36
+ type={type}
37
+ className={cx(
38
+ "solid-btn",
39
+ `solid-btn--${variant}`,
40
+ `solid-btn--${size}`,
41
+ fullWidth && "solid-btn--full",
42
+ loading && "is-loading",
43
+ className
44
+ )}
45
+ disabled={isDisabled}
46
+ {...props}
47
+ >
48
+ {loading && <span className="solid-btn-spinner" aria-hidden="true" />}
49
+ {!loading && leftIcon ? <span className="solid-btn-icon">{leftIcon}</span> : null}
50
+ <span className="solid-btn-label">{children}</span>
51
+ {!loading && rightIcon ? <span className="solid-btn-icon">{rightIcon}</span> : null}
52
+ </button>
53
+ );
54
+ }
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ type SolidTabProps = {
3
+ value: string;
4
+ label: React.ReactNode;
5
+ content: React.ReactNode;
6
+ };
7
+ type SolidTabGroupProps = {
8
+ tabs: SolidTabProps[];
9
+ value: string;
10
+ onValueChange: (value: string) => void;
11
+ className?: string;
12
+ listClassName?: string;
13
+ panelClassName?: string;
14
+ };
15
+ export declare function SolidTab(_props: SolidTabProps): null;
16
+ export declare function SolidTabGroup({ tabs, value, onValueChange, className, listClassName, panelClassName, }: SolidTabGroupProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=SolidTabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidTabs.d.ts","sourceRoot":"","sources":["../../../src/components/solid-ui/SolidTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAMF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,aAAa,QAE7C;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,GACf,EAAE,kBAAkB,2CAwCpB"}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ function cx() {
3
+ var parts = [];
4
+ for (var _i = 0; _i < arguments.length; _i++) {
5
+ parts[_i] = arguments[_i];
6
+ }
7
+ return parts.filter(Boolean).join(" ");
8
+ }
9
+ export function SolidTab(_props) {
10
+ return null;
11
+ }
12
+ export function SolidTabGroup(_a) {
13
+ var tabs = _a.tabs, value = _a.value, onValueChange = _a.onValueChange, className = _a.className, listClassName = _a.listClassName, panelClassName = _a.panelClassName;
14
+ return (_jsxs("div", { className: cx("solid-tabs", className), children: [_jsx("div", { className: cx("solid-tabs-list", listClassName), role: "tablist", children: tabs.map(function (tab) {
15
+ var isActive = tab.value === value;
16
+ return (_jsx("button", { type: "button", role: "tab", "aria-selected": isActive, "aria-controls": "solid-tab-panel-".concat(tab.value), id: "solid-tab-".concat(tab.value), className: cx("solid-tabs-trigger", isActive && "is-active"), onClick: function () { return onValueChange(tab.value); }, children: tab.label }, tab.value));
17
+ }) }), tabs.map(function (tab) {
18
+ var isActive = tab.value === value;
19
+ return (_jsx("div", { role: "tabpanel", id: "solid-tab-panel-".concat(tab.value), "aria-labelledby": "solid-tab-".concat(tab.value), hidden: !isActive, className: cx("solid-tabs-panel", panelClassName), children: isActive ? tab.content : null }, tab.value));
20
+ })] }));
21
+ }
22
+ //# sourceMappingURL=SolidTabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidTabs.js","sourceRoot":"","sources":["../../../src/components/solid-ui/SolidTabs.tsx"],"names":[],"mappings":";AAiBA,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,MAAqB;IAC5C,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UA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ACP,CAAC;YACJ,CAAC,CAAC,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\n\ntype SolidTabProps = {\n value: string;\n label: React.ReactNode;\n content: React.ReactNode;\n};\n\ntype SolidTabGroupProps = {\n tabs: SolidTabProps[];\n value: string;\n onValueChange: (value: string) => void;\n className?: string;\n listClassName?: string;\n panelClassName?: string;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidTab(_props: SolidTabProps) {\n return null;\n}\n\nexport function SolidTabGroup({\n tabs,\n value,\n onValueChange,\n className,\n listClassName,\n panelClassName,\n}: SolidTabGroupProps) {\n return (\n <div className={cx(\"solid-tabs\", className)}>\n <div className={cx(\"solid-tabs-list\", listClassName)} role=\"tablist\">\n {tabs.map((tab) => {\n const isActive = tab.value === value;\n return (\n <button\n key={tab.value}\n type=\"button\"\n role=\"tab\"\n aria-selected={isActive}\n aria-controls={`solid-tab-panel-${tab.value}`}\n id={`solid-tab-${tab.value}`}\n className={cx(\"solid-tabs-trigger\", isActive && \"is-active\")}\n onClick={() => onValueChange(tab.value)}\n >\n {tab.label}\n </button>\n );\n })}\n </div>\n\n {tabs.map((tab) => {\n const isActive = tab.value === value;\n return (\n <div\n key={tab.value}\n role=\"tabpanel\"\n id={`solid-tab-panel-${tab.value}`}\n aria-labelledby={`solid-tab-${tab.value}`}\n hidden={!isActive}\n className={cx(\"solid-tabs-panel\", panelClassName)}\n >\n {isActive ? tab.content : null}\n </div>\n );\n })}\n </div>\n );\n}\n"]}
@@ -0,0 +1,73 @@
1
+ import React from "react";
2
+
3
+ type SolidTabProps = {
4
+ value: string;
5
+ label: React.ReactNode;
6
+ content: React.ReactNode;
7
+ };
8
+
9
+ type SolidTabGroupProps = {
10
+ tabs: SolidTabProps[];
11
+ value: string;
12
+ onValueChange: (value: string) => void;
13
+ className?: string;
14
+ listClassName?: string;
15
+ panelClassName?: string;
16
+ };
17
+
18
+ function cx(...parts: Array<string | false | undefined>) {
19
+ return parts.filter(Boolean).join(" ");
20
+ }
21
+
22
+ export function SolidTab(_props: SolidTabProps) {
23
+ return null;
24
+ }
25
+
26
+ export function SolidTabGroup({
27
+ tabs,
28
+ value,
29
+ onValueChange,
30
+ className,
31
+ listClassName,
32
+ panelClassName,
33
+ }: SolidTabGroupProps) {
34
+ return (
35
+ <div className={cx("solid-tabs", className)}>
36
+ <div className={cx("solid-tabs-list", listClassName)} role="tablist">
37
+ {tabs.map((tab) => {
38
+ const isActive = tab.value === value;
39
+ return (
40
+ <button
41
+ key={tab.value}
42
+ type="button"
43
+ role="tab"
44
+ aria-selected={isActive}
45
+ aria-controls={`solid-tab-panel-${tab.value}`}
46
+ id={`solid-tab-${tab.value}`}
47
+ className={cx("solid-tabs-trigger", isActive && "is-active")}
48
+ onClick={() => onValueChange(tab.value)}
49
+ >
50
+ {tab.label}
51
+ </button>
52
+ );
53
+ })}
54
+ </div>
55
+
56
+ {tabs.map((tab) => {
57
+ const isActive = tab.value === value;
58
+ return (
59
+ <div
60
+ key={tab.value}
61
+ role="tabpanel"
62
+ id={`solid-tab-panel-${tab.value}`}
63
+ aria-labelledby={`solid-tab-${tab.value}`}
64
+ hidden={!isActive}
65
+ className={cx("solid-tabs-panel", panelClassName)}
66
+ >
67
+ {isActive ? tab.content : null}
68
+ </div>
69
+ );
70
+ })}
71
+ </div>
72
+ );
73
+ }
@@ -0,0 +1,3 @@
1
+ export { SolidButton } from "./SolidButton";
2
+ export { SolidTab, SolidTabGroup } from "./SolidTabs";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/solid-ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { SolidButton } from "./SolidButton";
2
+ export { SolidTab, SolidTabGroup } from "./SolidTabs";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/solid-ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { SolidButton } from \"./SolidButton\";\nexport { SolidTab, SolidTabGroup } from \"./SolidTabs\";\n"]}
@@ -0,0 +1,2 @@
1
+ export { SolidButton } from "./SolidButton";
2
+ export { SolidTab, SolidTabGroup } from "./SolidTabs";
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/helpers/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkD1B,OAAO,EAGH,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC7B,MAAM,6BAA6B,CAAC;AAuBrC,eAAO,MAAM,0BAA0B,SAAU,MAAM,aAAa,MAAM,aAAa,CAAC,GAAG,CAAC,QAAQ,sBAAsB,YAAW,MAAM,EAAE,cAAkB,MAAM,SAMpK,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAAU,MAAM,gBAAgB,GAAG,EAAE,KAAK,GAAG,QAAQ,qBAAqB,SAE/G,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAAU,MAAM,KAAG,MAAM,aAAa,CAAC,GAAG,CAAC,GAAG,IAM/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAU,sBAAsB,cAAa,MAAM,KAAQ,MAAM,EAAE,GAAG,EASxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,MAAM,eA7C/B,GAAG,EAAE,KAAK,GA+C3B,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/helpers/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkD1B,OAAO,EAGH,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC7B,MAAM,6BAA6B,CAAC;AA6BrC,eAAO,MAAM,0BAA0B,SAAU,MAAM,aAAa,MAAM,aAAa,CAAC,GAAG,CAAC,QAAQ,sBAAsB,YAAW,MAAM,EAAE,cAAkB,MAAM,SAMpK,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAAU,MAAM,gBAAgB,GAAG,EAAE,KAAK,GAAG,QAAQ,qBAAqB,SAE/G,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAAU,MAAM,KAAG,MAAM,aAAa,CAAC,GAAG,CAAC,GAAG,IAM/E,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAU,sBAAsB,cAAa,MAAM,KAAQ,MAAM,EAAE,GAAG,EASxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,SAAU,MAAM,eA7C/B,GAAG,EAAE,KAAK,GA+C3B,CAAC"}
@@ -52,6 +52,11 @@ import dashboardQuestionOnFormLoadHandler from "../components/core/extension/sol
52
52
  import MqMessageKanbanCardWidget from "../components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget";
53
53
  import MediaCardWidget from "../components/core/extension/solid-core/media/card/MediaCardWidget";
54
54
  import { ExtensionComponentTypes, ExtensionFunctionTypes, } from "../types/extension-registry";
55
+ import { SolidChatterMessageCoModelEntityIdFormViewWidget } from "../components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget";
56
+ import { SolidChatterMessageCoModelEntityIdListViewWidget } from "../components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget";
57
+ import { SolidMqMessageStageListViewWidget } from "../components/core/list/widgets/SolidMqMessageStageListViewWidget";
58
+ import { SolidLovTypeChangeFormEditWidget } from "../components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget";
59
+ import { SolidSummarizeListHeaderActionMqMessages } from "../components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages";
55
60
  var extensionRegistry = {
56
61
  components: {},
57
62
  functions: {},
@@ -116,6 +121,9 @@ registerExtensionComponent('DefaultDateTimeListWidget', DefaultDateTimeListWidge
116
121
  // - date
117
122
  registerExtensionComponent('DefaultDateListWidget', DefaultDateListWidget, ExtensionComponentTypes.list_field_widget);
118
123
  // - datetime
124
+ registerExtensionComponent("SolidChatterMessageCoModelEntityIdListViewWidget", SolidChatterMessageCoModelEntityIdListViewWidget, ExtensionComponentTypes.list_field_widget);
125
+ registerExtensionComponent("SolidMqMessageStageListViewWidget", SolidMqMessageStageListViewWidget, ExtensionComponentTypes.list_field_widget);
126
+ registerExtensionComponent("SolidSummarizeListHeaderActionMqMessages", SolidSummarizeListHeaderActionMqMessages, ExtensionComponentTypes.list_header_action);
119
127
  // ...
120
128
  // 2. form view field edit widget
121
129
  // - shortText
@@ -233,6 +241,8 @@ registerExtensionComponent("DeleteModuleRowAction", DeleteModuleRowAction, Exten
233
241
  registerExtensionComponent("CustomHtml", CustomHtml, ExtensionComponentTypes.form_widget);
234
242
  // Common
235
243
  registerExtensionComponent("ChartFormPreviewWidget", ChartFormPreviewWidget, ExtensionComponentTypes.form_widget, ["chart"]);
244
+ registerExtensionComponent("SolidChatterMessageCoModelEntityIdFormViewWidget", SolidChatterMessageCoModelEntityIdFormViewWidget, ExtensionComponentTypes.form_field_view_widget);
245
+ registerExtensionComponent("SolidLovTypeChangeFormEditWidget", SolidLovTypeChangeFormEditWidget, ExtensionComponentTypes.form_field_edit_widget);
236
246
  // Formview Default View widgets
237
247
  registerExtensionComponent("MaskedShortTextListViewWidget", MaskedShortTextListViewWidget, ExtensionComponentTypes.list_field_widget, ["maskedShortTextList"]);
238
248
  registerExtensionComponent("PublishedStatusListViewWidget", PublishedStatusListViewWidget, ExtensionComponentTypes.list_field_widget, ["publishedStatus"]);