@rolder/kit 3.0.0-alpha.11 → 3.0.0-alpha.111

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 (299) hide show
  1. package/dist/ai/index.d.ts +2 -0
  2. package/dist/ai/index.js +2 -0
  3. package/dist/ai/ui/chat/Root.d.ts +55 -0
  4. package/dist/ai/ui/chat/Root.js +18 -0
  5. package/dist/ai/ui/chat/chatInput/File.js +71 -0
  6. package/dist/ai/ui/chat/chatInput/FileIcon.js +43 -0
  7. package/dist/ai/ui/chat/chatInput/Root.d.ts +9 -0
  8. package/dist/ai/ui/chat/chatInput/Root.js +24 -0
  9. package/dist/ai/ui/chat/chatInput/Submit.js +23 -0
  10. package/dist/ai/ui/{promptInput → chat/chatInput}/Textarea.js +8 -7
  11. package/dist/ai/ui/{promptInput → chat/chatInput}/index.d.ts +2 -3
  12. package/dist/ai/ui/{promptInput → chat/chatInput}/index.js +2 -2
  13. package/dist/ai/ui/chat/chatInput/store/file.d.ts +8 -0
  14. package/dist/ai/ui/chat/chatInput/store/file.js +32 -0
  15. package/dist/ai/ui/chat/chatInput/store/fileErrorNotificaton.d.ts +2 -0
  16. package/dist/ai/ui/chat/chatInput/store/fileErrorNotificaton.js +21 -0
  17. package/dist/ai/ui/chat/chatInput/store/index.d.ts +2 -0
  18. package/dist/ai/ui/chat/chatInput/store/index.js +2 -0
  19. package/dist/ai/ui/chat/chatInput/store/input.d.ts +13 -0
  20. package/dist/ai/ui/chat/chatInput/store/input.js +81 -0
  21. package/dist/ai/ui/chat/chatInput/store/parseFile.d.ts +2 -0
  22. package/dist/ai/ui/chat/chatInput/store/parseFile.js +23 -0
  23. package/dist/ai/ui/chat/index.d.ts +12 -0
  24. package/dist/ai/ui/chat/index.js +15 -0
  25. package/dist/ai/ui/chat/messages/Empty.d.ts +4 -0
  26. package/dist/ai/ui/chat/messages/Empty.js +11 -0
  27. package/dist/ai/ui/chat/messages/Loader.d.ts +5 -0
  28. package/dist/ai/ui/chat/messages/Loader.js +12 -0
  29. package/dist/ai/ui/chat/messages/Message.d.ts +8 -0
  30. package/dist/ai/ui/chat/messages/Message.js +22 -0
  31. package/dist/ai/ui/chat/messages/Messages.d.ts +3 -0
  32. package/dist/ai/ui/chat/messages/Messages.js +40 -0
  33. package/dist/ai/ui/chat/messages/index.d.ts +2 -0
  34. package/dist/ai/ui/chat/messages/index.js +2 -0
  35. package/dist/ai/ui/chat/parts/File.d.ts +6 -0
  36. package/dist/ai/ui/{conversation → chat/parts}/File.js +10 -10
  37. package/dist/ai/ui/chat/parts/FileIcon.js +43 -0
  38. package/dist/ai/ui/chat/parts/PartPaper.d.ts +8 -0
  39. package/dist/ai/ui/chat/parts/PartPaper.js +14 -0
  40. package/dist/ai/ui/chat/parts/TextPart.d.ts +6 -0
  41. package/dist/ai/ui/chat/parts/TextPart.js +15 -0
  42. package/dist/ai/ui/chat/parts/ToolExecution.d.ts +7 -0
  43. package/dist/ai/ui/chat/parts/ToolExecution.js +56 -0
  44. package/dist/ai/ui/chat/parts/ToolPart.d.ts +10 -0
  45. package/dist/ai/ui/chat/parts/ToolPart.js +24 -0
  46. package/dist/ai/ui/chat/parts/index.d.ts +3 -0
  47. package/dist/ai/ui/chat/parts/index.js +3 -0
  48. package/dist/ai/ui/chat/store/index.d.ts +4 -0
  49. package/dist/ai/ui/chat/store/index.js +4 -0
  50. package/dist/ai/ui/chat/store/messages.d.ts +12 -0
  51. package/dist/ai/ui/chat/store/messages.js +40 -0
  52. package/dist/ai/ui/chat/store/send.d.ts +14 -0
  53. package/dist/ai/ui/chat/store/send.js +16 -0
  54. package/dist/ai/ui/chat/store/states.d.ts +11 -0
  55. package/dist/ai/ui/chat/store/states.js +20 -0
  56. package/dist/ai/ui/chat/store/useInitChat.d.ts +3 -0
  57. package/dist/ai/ui/chat/store/useInitChat.js +40 -0
  58. package/dist/ai/ui/index.d.ts +1 -0
  59. package/dist/ai/ui/index.js +1 -0
  60. package/dist/ai/utils/index.d.ts +2 -0
  61. package/dist/ai/utils/index.js +2 -0
  62. package/dist/app/AppDefaults.js +1 -1
  63. package/dist/app/DefaultApp.js +1 -1
  64. package/dist/app/cookieColorSchemeManager.js +1 -1
  65. package/dist/app/defaultTheme.d.ts +7 -7
  66. package/dist/app/index.d.ts +3 -0
  67. package/dist/app/index.js +3 -0
  68. package/dist/betterAuth/client/getAuthClient.d.ts +3050 -0
  69. package/dist/betterAuth/client/getAuthClient.js +18 -0
  70. package/dist/betterAuth/client/index.d.ts +1 -0
  71. package/dist/betterAuth/client/index.js +1 -0
  72. package/dist/betterAuth/index.d.ts +3 -0
  73. package/dist/betterAuth/index.js +3 -0
  74. package/dist/betterAuth/server/defaultAuthServerConfig.d.ts +1243 -0
  75. package/dist/betterAuth/server/defaultAuthServerConfig.js +50 -0
  76. package/dist/betterAuth/server/env.d.ts +1 -0
  77. package/dist/betterAuth/server/env.js +8 -0
  78. package/dist/betterAuth/server/getDBSession.d.ts +2 -0
  79. package/dist/betterAuth/server/getDBSession.js +85 -0
  80. package/dist/betterAuth/server/getSessionToken.d.ts +1 -0
  81. package/dist/betterAuth/server/getSessionToken.js +15 -0
  82. package/dist/betterAuth/server/getSessionUser.d.ts +1 -0
  83. package/dist/betterAuth/server/getSessionUser.js +22 -0
  84. package/dist/betterAuth/server/index.d.ts +10 -0
  85. package/dist/betterAuth/server/index.js +11 -0
  86. package/dist/betterAuth/server/surrealDbAdapter/adapter.d.ts +8 -0
  87. package/dist/betterAuth/server/surrealDbAdapter/adapter.js +64 -0
  88. package/dist/betterAuth/server/surrealDbAdapter/adapter.test.d.ts +1 -0
  89. package/dist/betterAuth/server/surrealDbAdapter/adapter.test.js +84 -0
  90. package/dist/betterAuth/server/surrealDbAdapter/db/getDB.d.ts +2 -0
  91. package/dist/betterAuth/server/surrealDbAdapter/db/getDB.js +26 -0
  92. package/dist/betterAuth/server/surrealDbAdapter/db/index.d.ts +1 -0
  93. package/dist/betterAuth/server/surrealDbAdapter/db/index.js +1 -0
  94. package/dist/betterAuth/server/surrealDbAdapter/db/schema.d.ts +1 -0
  95. package/dist/betterAuth/server/surrealDbAdapter/db/schema.js +97 -0
  96. package/dist/betterAuth/server/surrealDbAdapter/index.d.ts +1 -0
  97. package/dist/betterAuth/server/surrealDbAdapter/index.js +1 -0
  98. package/dist/betterAuth/server/surrealDbAdapter/methods/count.d.ts +2 -0
  99. package/dist/betterAuth/server/surrealDbAdapter/methods/count.js +17 -0
  100. package/dist/betterAuth/server/surrealDbAdapter/methods/create.d.ts +2 -0
  101. package/dist/betterAuth/server/surrealDbAdapter/methods/create.js +21 -0
  102. package/dist/betterAuth/server/surrealDbAdapter/methods/delete.d.ts +2 -0
  103. package/dist/betterAuth/server/surrealDbAdapter/methods/delete.js +18 -0
  104. package/dist/betterAuth/server/surrealDbAdapter/methods/deleteMany.d.ts +2 -0
  105. package/dist/betterAuth/server/surrealDbAdapter/methods/deleteMany.js +19 -0
  106. package/dist/betterAuth/server/surrealDbAdapter/methods/findMany.d.ts +2 -0
  107. package/dist/betterAuth/server/surrealDbAdapter/methods/findMany.js +51 -0
  108. package/dist/betterAuth/server/surrealDbAdapter/methods/findOne.d.ts +2 -0
  109. package/dist/betterAuth/server/surrealDbAdapter/methods/findOne.js +42 -0
  110. package/dist/betterAuth/server/surrealDbAdapter/methods/index.d.ts +8 -0
  111. package/dist/betterAuth/server/surrealDbAdapter/methods/index.js +8 -0
  112. package/dist/betterAuth/server/surrealDbAdapter/methods/types.d.ts +56 -0
  113. package/dist/betterAuth/server/surrealDbAdapter/methods/update.d.ts +2 -0
  114. package/dist/betterAuth/server/surrealDbAdapter/methods/update.js +25 -0
  115. package/dist/betterAuth/server/surrealDbAdapter/methods/updateMany.d.ts +2 -0
  116. package/dist/betterAuth/server/surrealDbAdapter/methods/updateMany.js +21 -0
  117. package/dist/betterAuth/server/surrealDbAdapter/types.d.ts +2 -0
  118. package/dist/betterAuth/server/surrealDbAdapter/utils/applyJoinMappings.d.ts +2 -0
  119. package/dist/betterAuth/server/surrealDbAdapter/utils/applyJoinMappings.js +31 -0
  120. package/dist/betterAuth/server/surrealDbAdapter/utils/buildExpression.d.ts +3 -0
  121. package/dist/betterAuth/server/surrealDbAdapter/utils/buildExpression.js +58 -0
  122. package/dist/betterAuth/server/surrealDbAdapter/utils/buildJoinPlan.d.ts +9 -0
  123. package/dist/betterAuth/server/surrealDbAdapter/utils/buildJoinPlan.js +46 -0
  124. package/dist/betterAuth/server/surrealDbAdapter/utils/buildSelectFields.d.ts +1 -0
  125. package/dist/betterAuth/server/surrealDbAdapter/utils/buildSelectFields.js +5 -0
  126. package/dist/betterAuth/server/surrealDbAdapter/utils/index.d.ts +6 -0
  127. package/dist/betterAuth/server/surrealDbAdapter/utils/index.js +6 -0
  128. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeOutputRecordIds.d.ts +2 -0
  129. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeOutputRecordIds.js +43 -0
  130. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeRecordIds.d.ts +2 -0
  131. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeRecordIds.js +38 -0
  132. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeWhereValue.d.ts +2 -0
  133. package/dist/betterAuth/server/surrealDbAdapter/utils/normalizeWhereValue.js +33 -0
  134. package/dist/betterAuth/server/surrealDbAdapter/utils/types.d.ts +34 -0
  135. package/dist/betterAuth/server/types.d.ts +8 -0
  136. package/dist/betterAuth/useSessionUser.d.ts +1 -0
  137. package/dist/betterAuth/useSessionUser.js +8 -0
  138. package/dist/hooks/index.d.ts +2 -0
  139. package/dist/hooks/index.js +2 -0
  140. package/dist/styles.css +3 -8
  141. package/dist/surrealDB/deafaultCrud.d.ts +2 -0
  142. package/dist/{surreal → surrealDB}/deafaultCrud.js +6 -5
  143. package/dist/surrealDB/getDBInstance.d.ts +3 -0
  144. package/dist/surrealDB/getDBInstance.js +34 -0
  145. package/dist/surrealDB/getDBInstanceTanstack.d.ts +3 -0
  146. package/dist/{surreal/connection.js → surrealDB/getDBInstanceTanstack.js} +2 -2
  147. package/dist/surrealDB/index.d.ts +6 -0
  148. package/dist/surrealDB/index.js +6 -0
  149. package/dist/{surreal/connection.d.ts → surrealDB/types.d.ts} +3 -3
  150. package/dist/surrealDB/types.js +0 -0
  151. package/dist/tanstack/cookie/index.d.ts +3 -0
  152. package/dist/tanstack/cookie/index.js +4 -0
  153. package/dist/{functions → tanstack/cookie}/setCookie.d.ts +1 -1
  154. package/dist/tanstack/index.d.ts +3 -0
  155. package/dist/tanstack/index.js +3 -0
  156. package/dist/tanstack/middlewares/index.d.ts +6 -0
  157. package/dist/tanstack/middlewares/index.js +5 -0
  158. package/dist/tanstack/middlewares/locale.d.ts +4 -0
  159. package/dist/{app/defaultRequestMiddlewares.js → tanstack/middlewares/locale.js} +2 -5
  160. package/dist/tanstack/s3/getS3Client.d.ts +2 -0
  161. package/dist/tanstack/s3/getS3Client.js +18 -0
  162. package/dist/tanstack/s3/getSignedFileUrlFn.d.ts +4 -0
  163. package/dist/tanstack/s3/getSignedFileUrlFn.js +21 -0
  164. package/dist/tanstack/s3/index.d.ts +2 -0
  165. package/dist/tanstack/s3/index.js +2 -0
  166. package/dist/tanstack/s3/uploadRequest.d.ts +3 -0
  167. package/dist/tanstack/s3/uploadRequest.js +21 -0
  168. package/dist/ui/AnimatedChevron.d.ts +3 -4
  169. package/dist/ui/AnimatedChevron.js +6 -25
  170. package/dist/ui/JsonInput.d.ts +1 -1
  171. package/dist/ui/JsonInput.js +1 -1
  172. package/dist/ui/editor/Content.d.ts +2 -2
  173. package/dist/ui/editor/Content.js +2 -2
  174. package/dist/ui/editor/Root.d.ts +7 -1
  175. package/dist/ui/editor/Root.js +42 -5
  176. package/dist/ui/editor/Toolbar.d.ts +3 -2
  177. package/dist/ui/editor/Toolbar.js +7 -25
  178. package/dist/ui/editor/index.d.ts +5 -9
  179. package/dist/ui/editor/index.js +3 -4
  180. package/dist/ui/editor/store.d.ts +6 -0
  181. package/dist/ui/editor/store.js +10 -0
  182. package/dist/ui/error/DefaultError.d.ts +1 -1
  183. package/dist/ui/error/DefaultNotFound.d.ts +1 -1
  184. package/dist/ui/error/Forbidden.d.ts +1 -1
  185. package/dist/ui/form/buttons/CancelButton.d.ts +2 -2
  186. package/dist/ui/form/buttons/CancelButton.js +4 -26
  187. package/dist/ui/form/buttons/SubmitButton.d.ts +2 -2
  188. package/dist/ui/form/buttons/SubmitButton.js +4 -29
  189. package/dist/ui/form/buttons/SubscribeActionIcon.d.ts +2 -2
  190. package/dist/ui/form/buttons/SubscribeButton.d.ts +2 -2
  191. package/dist/ui/form/context.d.ts +55 -55
  192. package/dist/ui/form/context.js +3 -3
  193. package/dist/ui/form/fields/JsonField.d.ts +1 -1
  194. package/dist/ui/form/fields/MultiSelectField.d.ts +1 -1
  195. package/dist/ui/form/fields/NumberField.d.ts +1 -1
  196. package/dist/ui/form/fields/PasswordField.d.ts +2 -0
  197. package/dist/ui/form/fields/{PassowrdField.js → PasswordField.js} +2 -2
  198. package/dist/ui/form/fields/SelectField.d.ts +1 -1
  199. package/dist/ui/form/fields/SwitchField.d.ts +1 -1
  200. package/dist/ui/form/fields/TextField.d.ts +1 -1
  201. package/dist/ui/form/fields/TextPasswordField.d.ts +2 -0
  202. package/dist/ui/form/fields/TextPasswordField.js +29 -0
  203. package/dist/ui/form/fields/TextareaField.d.ts +1 -1
  204. package/dist/ui/form/fields/index.d.ts +2 -2
  205. package/dist/ui/form/fields/index.js +2 -2
  206. package/dist/ui/form/index.d.ts +0 -1
  207. package/dist/ui/form/index.js +1 -2
  208. package/dist/ui/index.d.ts +9 -0
  209. package/dist/ui/index.js +9 -0
  210. package/dist/ui/saveInput/JsonInput.d.ts +2 -2
  211. package/dist/ui/saveInput/NumberInput.d.ts +2 -2
  212. package/dist/ui/saveInput/SaveInput.d.ts +14 -14
  213. package/dist/ui/saveInput/Select.d.ts +2 -2
  214. package/dist/ui/saveInput/Switch.d.ts +2 -2
  215. package/dist/ui/saveInput/TextInput.d.ts +2 -2
  216. package/dist/ui/saveInput/Textarea.d.ts +2 -2
  217. package/dist/ui/scrollArea/Root.d.ts +7 -0
  218. package/dist/ui/scrollArea/Root.js +42 -0
  219. package/dist/ui/scrollArea/ScrollButton.d.ts +7 -0
  220. package/dist/ui/scrollArea/ScrollButton.js +30 -0
  221. package/dist/ui/scrollArea/index.d.ts +6 -3
  222. package/dist/ui/scrollArea/index.js +7 -3
  223. package/dist/ui/scrollArea/methods.d.ts +4 -0
  224. package/dist/ui/scrollArea/methods.js +32 -0
  225. package/dist/ui/scrollArea/store.d.ts +12 -0
  226. package/dist/ui/scrollArea/store.js +25 -0
  227. package/dist/{ui/form/fieldsSchema.d.ts → zodSchemas.d.ts} +1 -1
  228. package/dist/{ui/form/fieldsSchema.js → zodSchemas.js} +2 -2
  229. package/package.json +103 -71
  230. package/dist/ai/ui/conversation/ConversationContext.d.ts +0 -7
  231. package/dist/ai/ui/conversation/ConversationContext.js +0 -8
  232. package/dist/ai/ui/conversation/ConversationProvider.d.ts +0 -2
  233. package/dist/ai/ui/conversation/ConversationProvider.js +0 -14
  234. package/dist/ai/ui/conversation/Empty.d.ts +0 -1
  235. package/dist/ai/ui/conversation/Empty.js +0 -21
  236. package/dist/ai/ui/conversation/File.d.ts +0 -4
  237. package/dist/ai/ui/conversation/FileIcon.js +0 -225
  238. package/dist/ai/ui/conversation/Loader.d.ts +0 -2
  239. package/dist/ai/ui/conversation/Loader.js +0 -12
  240. package/dist/ai/ui/conversation/Message.d.ts +0 -4
  241. package/dist/ai/ui/conversation/Message.js +0 -25
  242. package/dist/ai/ui/conversation/Root.d.ts +0 -2
  243. package/dist/ai/ui/conversation/Root.js +0 -26
  244. package/dist/ai/ui/conversation/index.d.ts +0 -13
  245. package/dist/ai/ui/conversation/index.js +0 -14
  246. package/dist/ai/ui/conversation/types.d.ts +0 -7
  247. package/dist/ai/ui/conversation/useChatMessage.d.ts +0 -2
  248. package/dist/ai/ui/conversation/useChatMessage.js +0 -12
  249. package/dist/ai/ui/promptInput/File.js +0 -117
  250. package/dist/ai/ui/promptInput/FileIcon.js +0 -225
  251. package/dist/ai/ui/promptInput/PromptInputContext.d.ts +0 -12
  252. package/dist/ai/ui/promptInput/PromptInputContext.js +0 -8
  253. package/dist/ai/ui/promptInput/PromptInputProvider.d.ts +0 -2
  254. package/dist/ai/ui/promptInput/PromptInputProvider.js +0 -50
  255. package/dist/ai/ui/promptInput/Root.d.ts +0 -3
  256. package/dist/ai/ui/promptInput/Root.js +0 -17
  257. package/dist/ai/ui/promptInput/Submit.js +0 -40
  258. package/dist/ai/ui/promptInput/types.d.ts +0 -11
  259. package/dist/app/defaultRequestMiddlewares.d.ts +0 -4
  260. package/dist/index.d.ts +0 -26
  261. package/dist/index.js +0 -26
  262. package/dist/surreal/deafaultCrud.d.ts +0 -2
  263. package/dist/ui/editor/Provider.d.ts +0 -17
  264. package/dist/ui/editor/Provider.js +0 -80
  265. package/dist/ui/editor/types.d.ts +0 -7
  266. package/dist/ui/form/fields/PassowrdField.d.ts +0 -2
  267. package/dist/ui/form/fields/TextPassowrdField.d.ts +0 -2
  268. package/dist/ui/form/fields/TextPassowrdField.js +0 -51
  269. package/dist/ui/scrollArea/ScrollArea.d.ts +0 -62
  270. package/dist/ui/scrollArea/ScrollArea.js +0 -30
  271. package/dist/ui/scrollArea/ScrollAreaButton.d.ts +0 -5
  272. package/dist/ui/scrollArea/ScrollAreaButton.js +0 -51
  273. package/dist/ui/scrollArea/ScrollAreaContent.d.ts +0 -6
  274. package/dist/ui/scrollArea/ScrollAreaContent.js +0 -29
  275. package/dist/ui/scrollArea/context.d.ts +0 -28
  276. package/dist/ui/scrollArea/context.js +0 -10
  277. package/dist/ui/scrollArea/types.d.ts +0 -65
  278. package/dist/ui/scrollArea/useScrollArea.d.ts +0 -9
  279. package/dist/ui/scrollArea/useScrollArea.js +0 -146
  280. /package/dist/ai/ui/{promptInput → chat/chatInput}/File.d.ts +0 -0
  281. /package/dist/ai/ui/{conversation → chat/chatInput}/FileIcon.d.ts +0 -0
  282. /package/dist/ai/ui/{promptInput → chat/chatInput}/Footer.d.ts +0 -0
  283. /package/dist/ai/ui/{promptInput → chat/chatInput}/Footer.js +0 -0
  284. /package/dist/ai/ui/{promptInput → chat/chatInput}/Submit.d.ts +0 -0
  285. /package/dist/ai/ui/{promptInput → chat/chatInput}/Textarea.d.ts +0 -0
  286. /package/dist/ai/ui/{promptInput → chat/parts}/FileIcon.d.ts +0 -0
  287. /package/dist/{ai/ui/conversation → betterAuth/server/surrealDbAdapter/methods}/types.js +0 -0
  288. /package/dist/{ai/ui/promptInput → betterAuth/server/surrealDbAdapter}/types.js +0 -0
  289. /package/dist/{ui/editor → betterAuth/server/surrealDbAdapter/utils}/types.js +0 -0
  290. /package/dist/{ui/scrollArea → betterAuth/server}/types.js +0 -0
  291. /package/dist/{surreal → surrealDB}/deserialize.d.ts +0 -0
  292. /package/dist/{surreal → surrealDB}/deserialize.js +0 -0
  293. /package/dist/{surreal → surrealDB}/encryption.d.ts +0 -0
  294. /package/dist/{surreal → surrealDB}/encryption.js +0 -0
  295. /package/dist/{functions → tanstack/cookie}/getCookie.d.ts +0 -0
  296. /package/dist/{functions → tanstack/cookie}/getCookie.js +0 -0
  297. /package/dist/{functions → tanstack/cookie}/setCookie.js +0 -0
  298. /package/dist/{functions → tanstack/cookie}/setCookies.d.ts +0 -0
  299. /package/dist/{functions → tanstack/cookie}/setCookies.js +0 -0
@@ -1,17 +1,18 @@
1
1
  import { createServerFn } from "@tanstack/react-start";
2
- import { getDB } from "./connection.js";
2
+ import { getDBSession } from "../betterAuth/index.js";
3
+ import { zodSchemas } from "../zodSchemas.js";
3
4
  import { deserialize } from "./deserialize.js";
4
5
  const surrealDeleteFn = createServerFn({
5
6
  method: 'POST'
6
- }).inputValidator((data)=>data).handler(async ({ data })=>{
7
- const db = await getDB();
7
+ }).inputValidator(zodSchemas.id).handler(async ({ data })=>{
8
+ const db = await getDBSession();
8
9
  const id = deserialize(data);
9
10
  await db.delete(id);
10
11
  });
11
12
  const surrealUnsubscribeFn = createServerFn({
12
13
  method: 'POST'
13
- }).inputValidator((data)=>data).handler(async ({ data })=>{
14
- const db = await getDB();
14
+ }).inputValidator(zodSchemas.id).handler(async ({ data })=>{
15
+ const db = await getDBSession();
15
16
  const live = await db.liveOf(data);
16
17
  await live.kill();
17
18
  });
@@ -0,0 +1,3 @@
1
+ import { Surreal } from 'surrealdb';
2
+ import type { SurrealDBProps } from './types';
3
+ export declare const getDBInstance: (params?: SurrealDBProps | undefined) => Promise<Surreal>;
@@ -0,0 +1,34 @@
1
+ import { Surreal } from "surrealdb";
2
+ let db = null;
3
+ const getDBInstance = async (params = {})=>{
4
+ if (db?.isConnected) return db;
5
+ const instance = new Surreal();
6
+ try {
7
+ const url = params.url || process.env.SURREALDB_URL;
8
+ if (!url) throw new Error('Missing required SurrealDB URL');
9
+ const namespace = params.namespace || process.env.SURREALDB_NAMESPACE;
10
+ if (!namespace) throw new Error('Missing required SurrealDB namespace');
11
+ const database = params.database || process.env.SURREALDB_DATABASE;
12
+ if (!database) throw new Error('Missing required SurrealDB database');
13
+ const username = params.username || process.env.SURREALDB_USERNAME;
14
+ const password = params.password || process.env.SURREALDB_PASSWORD;
15
+ if (username && password) await instance.connect(url, {
16
+ authentication: {
17
+ username,
18
+ password
19
+ }
20
+ });
21
+ else await instance.connect(url);
22
+ await instance.use({
23
+ namespace,
24
+ database
25
+ });
26
+ db = instance;
27
+ return instance;
28
+ } catch (error) {
29
+ console.error('Failed to connect to SurrealDB:', error);
30
+ db = null;
31
+ throw error;
32
+ }
33
+ };
34
+ export { getDBInstance };
@@ -0,0 +1,3 @@
1
+ import { Surreal } from 'surrealdb';
2
+ import type { SurrealDBProps } from './types';
3
+ export declare const getDBInstanceTanstack: (params?: SurrealDBProps | undefined) => Promise<Surreal>;
@@ -2,7 +2,7 @@ import { createServerOnlyFn } from "@tanstack/react-start";
2
2
  import { getCookie } from "@tanstack/react-start/server";
3
3
  import { DateTime, Surreal } from "surrealdb";
4
4
  let db = null;
5
- const getDB = createServerOnlyFn(async (params = {})=>{
5
+ const getDBInstanceTanstack = createServerOnlyFn(async (params = {})=>{
6
6
  if (db?.isConnected) return db;
7
7
  const locale = getCookie('locale') || 'ru-RU';
8
8
  const timeZone = getCookie('tz') || 'UTC';
@@ -46,4 +46,4 @@ const getDB = createServerOnlyFn(async (params = {})=>{
46
46
  throw error;
47
47
  }
48
48
  });
49
- export { getDB };
49
+ export { getDBInstanceTanstack };
@@ -0,0 +1,6 @@
1
+ export * from 'surrealdb';
2
+ export * from './deafaultCrud';
3
+ export * from './deserialize';
4
+ export * from './encryption';
5
+ export * from './getDBInstance';
6
+ export * from './getDBInstanceTanstack';
@@ -0,0 +1,6 @@
1
+ export * from "surrealdb";
2
+ export * from "./deafaultCrud.js";
3
+ export * from "./deserialize.js";
4
+ export * from "./encryption.js";
5
+ export * from "./getDBInstance.js";
6
+ export * from "./getDBInstanceTanstack.js";
@@ -1,9 +1,9 @@
1
- import { type CodecOptions, Surreal } from 'surrealdb';
2
- export declare const getDB: (params?: {
1
+ import type { CodecOptions } from 'surrealdb';
2
+ export interface SurrealDBProps {
3
3
  url?: string;
4
4
  namespace?: string;
5
5
  database?: string;
6
6
  username?: string;
7
7
  password?: string;
8
8
  codecOptions?: CodecOptions;
9
- } | undefined) => Promise<Surreal>;
9
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ export { getCookie } from './getCookie';
2
+ export { setCookie } from './setCookie';
3
+ export { setCookies } from './setCookies';
@@ -0,0 +1,4 @@
1
+ import { getCookie } from "./getCookie.js";
2
+ import { setCookie } from "./setCookie.js";
3
+ import { setCookies } from "./setCookies.js";
4
+ export { getCookie, setCookie, setCookies };
@@ -7,4 +7,4 @@
7
7
  * @param {string} value - Значение куки, если не указано, кука будет удалена
8
8
  * @param {number} [expires=7] - Количество дней до истечения срока действия куки (по умолчанию 7 дней)
9
9
  */
10
- export declare const setCookie: import("@tanstack/start-fn-stubs").IsomorphicFn<[name: string, value?: string | undefined, expires?: number | undefined], void, void>;
10
+ export declare const setCookie: import("@tanstack/react-start").IsomorphicFn<[name: string, value?: string | undefined, expires?: number | undefined], void, void>;
@@ -0,0 +1,3 @@
1
+ export * from './cookie';
2
+ export * from './middlewares';
3
+ export * from './s3';
@@ -0,0 +1,3 @@
1
+ export * from "./cookie/index.js";
2
+ export * from "./middlewares/index.js";
3
+ export * from "./s3/index.js";
@@ -0,0 +1,6 @@
1
+ import { locale } from './locale';
2
+ export { locale };
3
+ export declare const defaultRequestMiddlewares: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, {
4
+ locale: string;
5
+ timeZone: string;
6
+ }>[];
@@ -0,0 +1,5 @@
1
+ import { locale } from "./locale.js";
2
+ const defaultRequestMiddlewares = [
3
+ locale
4
+ ];
5
+ export { defaultRequestMiddlewares, locale };
@@ -0,0 +1,4 @@
1
+ export declare const locale: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, {
2
+ locale: string;
3
+ timeZone: string;
4
+ }>;
@@ -1,6 +1,6 @@
1
1
  import { createMiddleware } from "@tanstack/react-start";
2
2
  import { getCookie, getRequestHeader, setCookie } from "@tanstack/react-start/server";
3
- const defaultRequestMiddlewares_locale = createMiddleware().server(async ({ next })=>{
3
+ const locale_locale = createMiddleware().server(async ({ next })=>{
4
4
  const header = getRequestHeader('accept-language');
5
5
  const headerLocale = header?.split(',')[0] || 'ru-RU';
6
6
  const cookieLocale = getCookie('locale');
@@ -18,7 +18,4 @@ const defaultRequestMiddlewares_locale = createMiddleware().server(async ({ next
18
18
  }
19
19
  });
20
20
  });
21
- const defaultRequestMiddlewares = [
22
- defaultRequestMiddlewares_locale
23
- ];
24
- export { defaultRequestMiddlewares };
21
+ export { locale_locale as locale };
@@ -0,0 +1,2 @@
1
+ import { custom } from '@better-upload/server/clients';
2
+ export declare const getS3Client: () => ReturnType<typeof custom>;
@@ -0,0 +1,18 @@
1
+ import { custom } from "@better-upload/server/clients";
2
+ const getS3Client = ()=>{
3
+ const host = process.env.S3_HOST;
4
+ if (!host) throw new Error('S3_HOST environment variable is not set');
5
+ const region = process.env.S3_REGION;
6
+ if (!region) throw new Error('S3_REGION environment variable is not set');
7
+ const accessKeyId = process.env.S3_ACCESS_KEY_ID;
8
+ if (!accessKeyId) throw new Error('S3_ACCESS_KEY_ID environment variable is not set');
9
+ const accessKeySecret = process.env.S3_ACCESS_KEY_SECRET;
10
+ if (!accessKeySecret) throw new Error('S3_ACCESS_KEY_SECRET environment variable is not set');
11
+ return custom({
12
+ host,
13
+ region,
14
+ accessKeyId,
15
+ secretAccessKey: accessKeySecret
16
+ });
17
+ };
18
+ export { getS3Client };
@@ -0,0 +1,4 @@
1
+ import z from 'zod/v4';
2
+ export declare const getSignedFileUrlFn: import("@tanstack/react-start").RequiredFetcher<undefined, z.ZodObject<{
3
+ s3Key: z.ZodString;
4
+ }, z.core.$strip>, Promise<string>>;
@@ -0,0 +1,21 @@
1
+ import { presignGetObject } from "@better-upload/server/helpers";
2
+ import { createServerFn } from "@tanstack/react-start";
3
+ import v4 from "zod/v4";
4
+ import { getS3Client } from "./getS3Client.js";
5
+ const Schema = v4.object({
6
+ s3Key: v4.string()
7
+ });
8
+ const getSignedFileUrlFn = createServerFn({
9
+ method: 'POST'
10
+ }).inputValidator(Schema).handler(async ({ data: { s3Key } })=>{
11
+ const bucket = process.env.S3_BUCKET_NAME;
12
+ if (!bucket) throw new Error('S3_BUCKET_NAME environment variable is not set');
13
+ const s3 = getS3Client();
14
+ const url = await presignGetObject(s3, {
15
+ bucket,
16
+ key: s3Key,
17
+ expiresIn: 300
18
+ });
19
+ return url;
20
+ });
21
+ export { getSignedFileUrlFn };
@@ -0,0 +1,2 @@
1
+ export * from './getSignedFileUrlFn';
2
+ export * from './uploadRequest';
@@ -0,0 +1,2 @@
1
+ export * from "./getSignedFileUrlFn.js";
2
+ export * from "./uploadRequest.js";
@@ -0,0 +1,3 @@
1
+ export declare const uploadRequest: ({ request }: {
2
+ request: Request;
3
+ }) => Promise<Response>;
@@ -0,0 +1,21 @@
1
+ import { handleRequest, route } from "@better-upload/server";
2
+ import { createServerOnlyFn } from "@tanstack/react-start";
3
+ import { getS3Client } from "./getS3Client.js";
4
+ const getRouter = createServerOnlyFn(()=>{
5
+ const bucket = process.env.S3_BUCKET_NAME;
6
+ if (!bucket) throw new Error('S3_BUCKET_NAME environment variable is not set');
7
+ const s3 = getS3Client();
8
+ const router = {
9
+ client: s3,
10
+ bucketName: bucket,
11
+ routes: {
12
+ upload: route({
13
+ multipleFiles: false,
14
+ maxFileSize: 52428800
15
+ })
16
+ }
17
+ };
18
+ return router;
19
+ });
20
+ const uploadRequest = async ({ request })=>handleRequest(request, getRouter());
21
+ export { uploadRequest };
@@ -1,6 +1,5 @@
1
- import type { SVGProps } from 'react';
2
- interface Props extends SVGProps<SVGSVGElement> {
1
+ import { type IconProps } from '@tabler/icons-react';
2
+ export interface AnimatedChevronProps extends IconProps {
3
3
  expanded?: boolean;
4
4
  }
5
- export declare const AnimatedChevron: ({ expanded, style, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export {};
5
+ export declare const AnimatedChevron: React.FC<AnimatedChevronProps>;
@@ -1,31 +1,12 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- const AnimatedChevron = ({ expanded, style, ...props })=>/*#__PURE__*/ jsxs("svg", {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- width: "24",
5
- height: "24",
6
- viewBox: "0 0 24 24",
7
- fill: "none",
8
- stroke: "currentColor",
9
- strokeWidth: "1.5",
10
- strokeLinecap: "round",
11
- strokeLinejoin: "round",
12
- role: "img",
13
- "aria-label": "Chevron",
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { IconChevronDown } from "@tabler/icons-react";
3
+ const AnimatedChevron = ({ expanded, style, ...props })=>/*#__PURE__*/ jsx(IconChevronDown, {
4
+ strokeWidth: 1.5,
14
5
  style: {
15
6
  transition: 'transform 0.2s ease-in-out',
16
- transform: expanded ? 'rotate(-180deg)' : 'rotate(0deg)',
7
+ transform: expanded ? 'rotate(180deg)' : 'rotate(0deg)',
17
8
  ...style
18
9
  },
19
- ...props,
20
- children: [
21
- /*#__PURE__*/ jsx("path", {
22
- stroke: "none",
23
- d: "M0 0h24v24H0z",
24
- fill: "none"
25
- }),
26
- /*#__PURE__*/ jsx("path", {
27
- d: "M6 9l6 6l6 -6"
28
- })
29
- ]
10
+ ...props
30
11
  });
31
12
  export { AnimatedChevron };
@@ -1,2 +1,2 @@
1
1
  import { type ReactCodeMirrorProps } from '@uiw/react-codemirror';
2
- export declare const JsonInput: (props: ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const JsonInput: React.FC<ReactCodeMirrorProps>;
@@ -5,7 +5,7 @@ import { linter } from "@codemirror/lint";
5
5
  import { keymap } from "@codemirror/view";
6
6
  import { vscodeDark, vscodeLight } from "@uiw/codemirror-theme-vscode";
7
7
  import react_codemirror from "@uiw/react-codemirror";
8
- import { getCookie } from "../functions/getCookie.js";
8
+ import { getCookie } from "../tanstack/index.js";
9
9
  const formatJson = (view)=>{
10
10
  try {
11
11
  const text = view.state.doc.toString();
@@ -1,3 +1,3 @@
1
- export declare const Content: ({ height }: {
1
+ export declare const Content: React.FC<{
2
2
  height: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }>;
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { RichTextEditor } from "@mantine/tiptap";
3
3
  import { ScrollArea } from "../scrollArea/index.js";
4
- const Content = ({ height })=>/*#__PURE__*/ jsxs(ScrollArea, {
5
- h: height,
4
+ const Content = ({ height })=>/*#__PURE__*/ jsxs(ScrollArea.Root, {
5
+ height: height,
6
6
  autoScroll: true,
7
7
  radius: "md",
8
8
  children: [
@@ -1,2 +1,8 @@
1
1
  import { type RichTextEditorProps } from '@mantine/tiptap';
2
- export declare const Root: ({ children, classNames, ...props }: Omit<RichTextEditorProps, "editor">) => import("react/jsx-runtime").JSX.Element;
2
+ import { type EditorOptions } from '@tiptap/react';
3
+ export interface EditorProps extends RichTextEditorProps {
4
+ editable?: boolean;
5
+ disabledToolbar?: boolean;
6
+ onUpdate: EditorOptions['onUpdate'];
7
+ }
8
+ export declare const Root: React.FC<EditorProps>;
@@ -1,10 +1,47 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { RichTextEditor } from "@mantine/tiptap";
3
- import { useEditor } from "./Provider.js";
4
- const Root = ({ children, classNames, ...props })=>{
5
- const { editor } = useEditor();
2
+ import { Link, RichTextEditor, getTaskListExtension } from "@mantine/tiptap";
3
+ import extension_highlight from "@tiptap/extension-highlight";
4
+ import extension_placeholder from "@tiptap/extension-placeholder";
5
+ import { TableKit } from "@tiptap/extension-table";
6
+ import extension_task_item from "@tiptap/extension-task-item";
7
+ import extension_task_list from "@tiptap/extension-task-list";
8
+ import extension_text_align from "@tiptap/extension-text-align";
9
+ import { useEditor } from "@tiptap/react";
10
+ import starter_kit from "@tiptap/starter-kit";
11
+ import { useState } from "react";
12
+ import { setDisabledToolbar } from "./store.js";
13
+ const Root = ({ children, classNames, content, editable = true, disabledToolbar, onUpdate, editor: customEditor, ...props })=>{
14
+ useState(()=>setDisabledToolbar(disabledToolbar || false));
15
+ const editor = useEditor({
16
+ shouldRerenderOnTransaction: false,
17
+ immediatelyRender: false,
18
+ extensions: [
19
+ starter_kit.configure({
20
+ link: false
21
+ }),
22
+ extension_placeholder.configure({
23
+ placeholder: 'Документ пуст'
24
+ }),
25
+ Link,
26
+ extension_highlight,
27
+ extension_text_align.configure({
28
+ types: [
29
+ 'heading',
30
+ 'paragraph'
31
+ ]
32
+ }),
33
+ getTaskListExtension(extension_task_list),
34
+ extension_task_item.configure({
35
+ nested: true
36
+ }),
37
+ TableKit
38
+ ],
39
+ content,
40
+ onUpdate,
41
+ editable
42
+ });
6
43
  return /*#__PURE__*/ jsx(RichTextEditor, {
7
- editor: editor,
44
+ editor: customEditor || editor,
8
45
  classNames: {
9
46
  root: 'rolder-editor-root',
10
47
  content: 'rolder-editor-content',
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
- export declare const Toolbar: ({ saving, children, }: {
2
+ export interface ToolbarProps {
3
3
  saving?: boolean;
4
4
  children?: ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element | null;
5
+ }
6
+ export declare const Toolbar: React.FC<ToolbarProps>;
@@ -1,10 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Loader } from "@mantine/core";
3
3
  import { RichTextEditor } from "@mantine/tiptap";
4
- import { useEditor } from "./Provider.js";
4
+ import { IconCheck } from "@tabler/icons-react";
5
+ import { getDisabledToolbar, useEditor } from "./store.js";
5
6
  const Toolbar = ({ saving, children })=>{
6
- const { editor, disabledToolbar } = useEditor();
7
- return disabledToolbar ? null : /*#__PURE__*/ jsxs(RichTextEditor.Toolbar, {
7
+ const editor = useEditor();
8
+ return getDisabledToolbar() ? null : /*#__PURE__*/ jsxs(RichTextEditor.Toolbar, {
8
9
  sticky: true,
9
10
  children: [
10
11
  /*#__PURE__*/ jsxs(RichTextEditor.ControlsGroup, {
@@ -124,28 +125,9 @@ const Toolbar = ({ saving, children })=>{
124
125
  },
125
126
  children: saving ? /*#__PURE__*/ jsx(Loader, {
126
127
  size: 14
127
- }) : /*#__PURE__*/ jsxs("svg", {
128
- xmlns: "http://www.w3.org/2000/svg",
129
- width: "16",
130
- height: "16",
131
- viewBox: "0 0 16 16",
132
- fill: "none",
133
- stroke: "currentColor",
134
- strokeWidth: "1.5",
135
- strokeLinecap: "round",
136
- strokeLinejoin: "round",
137
- role: "img",
138
- "aria-label": "Saved",
139
- children: [
140
- /*#__PURE__*/ jsx("path", {
141
- stroke: "none",
142
- d: "M0 0h24v24H0z",
143
- fill: "none"
144
- }),
145
- /*#__PURE__*/ jsx("path", {
146
- d: "M5 12l5 5l10 -10"
147
- })
148
- ]
128
+ }) : /*#__PURE__*/ jsx(IconCheck, {
129
+ stroke: 1.5,
130
+ size: 16
149
131
  })
150
132
  })
151
133
  ]
@@ -1,12 +1,8 @@
1
1
  export declare const Editor: {
2
- Root: ({ children, classNames, ...props }: Omit<import("@mantine/tiptap").RichTextEditorProps, "editor">) => import("react/jsx-runtime").JSX.Element;
3
- Content: ({ height }: {
2
+ Root: import("react").FC<import("./Root").EditorProps>;
3
+ Content: import("react").FC<{
4
4
  height: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- Toolbar: ({ saving, children, }: {
7
- saving?: boolean;
8
- children?: import("react").ReactNode;
9
- }) => import("react/jsx-runtime").JSX.Element | null;
10
- Provider: ({ children, initialContent, initialEditable, initialDisabledToolbar, onChange, }: import("./types").EditorProps) => import("react/jsx-runtime").JSX.Element;
5
+ }>;
6
+ Toolbar: import("react").FC<import("./Toolbar").ToolbarProps>;
11
7
  };
12
- export { useEditor } from './Provider';
8
+ export * from './store';
@@ -1,11 +1,10 @@
1
1
  import { Content } from "./Content.js";
2
- import { Provider, useEditor } from "./Provider.js";
3
2
  import { Root } from "./Root.js";
4
3
  import { Toolbar } from "./Toolbar.js";
4
+ export * from "./store.js";
5
5
  const Editor = {
6
6
  Root: Root,
7
7
  Content: Content,
8
- Toolbar: Toolbar,
9
- Provider: Provider
8
+ Toolbar: Toolbar
10
9
  };
11
- export { Editor, useEditor };
10
+ export { Editor };
@@ -0,0 +1,6 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export declare const getEditor: () => Editor | null;
3
+ export declare const useEditor: () => Editor | null;
4
+ export declare const setEditor: (editor: Editor) => void;
5
+ export declare const getDisabledToolbar: () => boolean;
6
+ export declare const setDisabledToolbar: (disabled: boolean) => void;
@@ -0,0 +1,10 @@
1
+ import { useStore } from "@nanostores/react";
2
+ import { atom } from "nanostores";
3
+ const $editor = atom(null);
4
+ const getEditor = ()=>$editor.get();
5
+ const useEditor = ()=>useStore($editor);
6
+ const setEditor = (editor)=>$editor.set(editor);
7
+ const $disabledToolbar = atom(false);
8
+ const getDisabledToolbar = ()=>$disabledToolbar.get();
9
+ const setDisabledToolbar = (disabled)=>$disabledToolbar.set(disabled);
10
+ export { getDisabledToolbar, getEditor, setDisabledToolbar, setEditor, useEditor };
@@ -1,2 +1,2 @@
1
1
  import type { ErrorComponentProps } from '@tanstack/react-router';
2
- export declare const DefaultError: ({ error }: ErrorComponentProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DefaultError: React.FC<ErrorComponentProps>;
@@ -1 +1 @@
1
- export declare const DefaultNotFound: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const DefaultNotFound: React.FC;
@@ -1 +1 @@
1
- export declare const Forbidden: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const Forbidden: React.FC;
@@ -1,5 +1,5 @@
1
1
  import { type ButtonProps } from '@mantine/core';
2
- export declare const CancelButton: (props: ButtonProps & {
2
+ export declare const CancelButton: React.FC<ButtonProps & {
3
3
  label?: string;
4
4
  onClick?: () => void;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }>;
@@ -1,5 +1,6 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { Button } from "@mantine/core";
3
+ import { IconCancel } from "@tabler/icons-react";
3
4
  import { useFormContext } from "../context.js";
4
5
  const CancelButton = (props)=>{
5
6
  const form = useFormContext();
@@ -9,31 +10,8 @@ const CancelButton = (props)=>{
9
10
  type: "reset",
10
11
  size: "xs",
11
12
  variant: "light",
12
- leftSection: /*#__PURE__*/ jsxs("svg", {
13
- xmlns: "http://www.w3.org/2000/svg",
14
- width: "16",
15
- height: "16",
16
- viewBox: "0 0 16 16",
17
- fill: "none",
18
- stroke: "currentColor",
19
- strokeWidth: "2",
20
- strokeLinecap: "round",
21
- strokeLinejoin: "round",
22
- role: "img",
23
- "aria-label": "Cancel",
24
- children: [
25
- /*#__PURE__*/ jsx("path", {
26
- stroke: "none",
27
- d: "M0 0h24v24H0z",
28
- fill: "none"
29
- }),
30
- /*#__PURE__*/ jsx("path", {
31
- d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"
32
- }),
33
- /*#__PURE__*/ jsx("path", {
34
- d: "M18.364 5.636l-12.728 12.728"
35
- })
36
- ]
13
+ leftSection: /*#__PURE__*/ jsx(IconCancel, {
14
+ size: 16
37
15
  }),
38
16
  disabled: isSubmitting,
39
17
  ...props,
@@ -1,5 +1,5 @@
1
1
  import { type ButtonProps } from '@mantine/core';
2
- export declare const SubmitButton: (props: ButtonProps & {
2
+ export declare const SubmitButton: React.FC<ButtonProps & {
3
3
  label?: string;
4
4
  onClick?: () => void;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }>;