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

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 +452 -0
  75. package/dist/betterAuth/server/defaultAuthServerConfig.js +49 -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 +14 -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,83 +1,83 @@
1
- declare const useFieldContext: <TData>() => import("@tanstack/form-core").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
2
- declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/form-core").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
3
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
4
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
5
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
6
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
7
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
8
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
9
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
10
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
11
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
1
+ declare const useFieldContext: <TData>() => import("@tanstack/react-form").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
2
+ declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
3
+ readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
4
+ readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
5
+ readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
6
+ readonly TextPasswordField: import("react").FC<import("@mantine/core").TextInputProps>;
7
+ readonly PasswordField: import("react").FC<import("@mantine/core").PasswordInputProps>;
8
+ readonly SelectField: import("react").FC<import("@mantine/core").SelectProps>;
9
+ readonly MultiSelectField: import("react").FC<import("@mantine/core").MultiSelectProps>;
10
+ readonly SwitchField: import("react").FC<import("@mantine/core").SwitchProps>;
11
+ readonly JsonField: import("react").FC<import("@uiw/react-codemirror").ReactCodeMirrorProps>;
12
12
  }, {
13
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
13
+ readonly SubmitButton: import("react").FC<import("@mantine/core").ButtonProps & {
14
14
  label?: string;
15
15
  onClick?: () => void;
16
- }) => import("react/jsx-runtime").JSX.Element;
17
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
16
+ }>;
17
+ readonly CancelButton: import("react").FC<import("@mantine/core").ButtonProps & {
18
18
  label?: string;
19
19
  onClick?: () => void;
20
- }) => import("react/jsx-runtime").JSX.Element;
21
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
20
+ }>;
21
+ readonly SubscribeButton: import("react").FC<import("@mantine/core").ButtonProps & {
22
22
  label: string;
23
23
  onClick?: () => void;
24
- }) => import("react/jsx-runtime").JSX.Element;
25
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
24
+ }>;
25
+ readonly SubscribeActionIcon: import("react").FC<import("@mantine/core").ActionIconProps & {
26
26
  onClick?: () => void;
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- }>, withForm: <TFormData, TOnMount extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
29
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
30
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
31
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
32
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
33
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
34
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
35
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
36
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
37
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
27
+ }>;
28
+ }>, withForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
29
+ readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
30
+ readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
31
+ readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
32
+ readonly TextPasswordField: import("react").FC<import("@mantine/core").TextInputProps>;
33
+ readonly PasswordField: import("react").FC<import("@mantine/core").PasswordInputProps>;
34
+ readonly SelectField: import("react").FC<import("@mantine/core").SelectProps>;
35
+ readonly MultiSelectField: import("react").FC<import("@mantine/core").MultiSelectProps>;
36
+ readonly SwitchField: import("react").FC<import("@mantine/core").SwitchProps>;
37
+ readonly JsonField: import("react").FC<import("@uiw/react-codemirror").ReactCodeMirrorProps>;
38
38
  }, {
39
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
39
+ readonly SubmitButton: import("react").FC<import("@mantine/core").ButtonProps & {
40
40
  label?: string;
41
41
  onClick?: () => void;
42
- }) => import("react/jsx-runtime").JSX.Element;
43
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
42
+ }>;
43
+ readonly CancelButton: import("react").FC<import("@mantine/core").ButtonProps & {
44
44
  label?: string;
45
45
  onClick?: () => void;
46
- }) => import("react/jsx-runtime").JSX.Element;
47
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
46
+ }>;
47
+ readonly SubscribeButton: import("react").FC<import("@mantine/core").ButtonProps & {
48
48
  label: string;
49
49
  onClick?: () => void;
50
- }) => import("react/jsx-runtime").JSX.Element;
51
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
50
+ }>;
51
+ readonly SubscribeActionIcon: import("react").FC<import("@mantine/core").ActionIconProps & {
52
52
  onClick?: () => void;
53
- }) => import("react/jsx-runtime").JSX.Element;
53
+ }>;
54
54
  }, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
55
- form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
56
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
57
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
58
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
59
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
60
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
61
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
62
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
63
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
64
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
55
+ form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
56
+ readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
57
+ readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
58
+ readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
59
+ readonly TextPasswordField: import("react").FC<import("@mantine/core").TextInputProps>;
60
+ readonly PasswordField: import("react").FC<import("@mantine/core").PasswordInputProps>;
61
+ readonly SelectField: import("react").FC<import("@mantine/core").SelectProps>;
62
+ readonly MultiSelectField: import("react").FC<import("@mantine/core").MultiSelectProps>;
63
+ readonly SwitchField: import("react").FC<import("@mantine/core").SwitchProps>;
64
+ readonly JsonField: import("react").FC<import("@uiw/react-codemirror").ReactCodeMirrorProps>;
65
65
  }, {
66
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
66
+ readonly SubmitButton: import("react").FC<import("@mantine/core").ButtonProps & {
67
67
  label?: string;
68
68
  onClick?: () => void;
69
- }) => import("react/jsx-runtime").JSX.Element;
70
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
69
+ }>;
70
+ readonly CancelButton: import("react").FC<import("@mantine/core").ButtonProps & {
71
71
  label?: string;
72
72
  onClick?: () => void;
73
- }) => import("react/jsx-runtime").JSX.Element;
74
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
73
+ }>;
74
+ readonly SubscribeButton: import("react").FC<import("@mantine/core").ButtonProps & {
75
75
  label: string;
76
76
  onClick?: () => void;
77
- }) => import("react/jsx-runtime").JSX.Element;
78
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
77
+ }>;
78
+ readonly SubscribeActionIcon: import("react").FC<import("@mantine/core").ActionIconProps & {
79
79
  onClick?: () => void;
80
- }) => import("react/jsx-runtime").JSX.Element;
80
+ }>;
81
81
  }>;
82
82
  }>>;
83
83
  export { useAppForm, useFieldContext, useFormContext, withForm };
@@ -1,14 +1,14 @@
1
1
  import { createFormHook, createFormHookContexts } from "@tanstack/react-form";
2
2
  import { CancelButton, SubmitButton, SubscribeActionIcon, SubscribeButton } from "./buttons/index.js";
3
- import { JsonField, MultiSelectField, NumberField, PassowrdField, SelectField, SwitchField, TextField, TextPassowrdField, TextareaField } from "./fields/index.js";
3
+ import { JsonField, MultiSelectField, NumberField, PasswordField, SelectField, SwitchField, TextField, TextPasswordField, TextareaField } from "./fields/index.js";
4
4
  const { fieldContext, useFieldContext, formContext, useFormContext } = createFormHookContexts();
5
5
  const { useAppForm, withForm } = createFormHook({
6
6
  fieldComponents: {
7
7
  TextField: TextField,
8
8
  NumberField: NumberField,
9
9
  TextareaField: TextareaField,
10
- TextPassowrdField: TextPassowrdField,
11
- PassowrdField: PassowrdField,
10
+ TextPasswordField: TextPasswordField,
11
+ PasswordField: PasswordField,
12
12
  SelectField: SelectField,
13
13
  MultiSelectField: MultiSelectField,
14
14
  SwitchField: SwitchField,
@@ -1,2 +1,2 @@
1
1
  import type { ReactCodeMirrorProps } from '@uiw/react-codemirror';
2
- export declare const JsonField: (props: ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const JsonField: React.FC<ReactCodeMirrorProps>;
@@ -1,2 +1,2 @@
1
1
  import { type MultiSelectProps } from '@mantine/core';
2
- export declare const MultiSelectField: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MultiSelectField: React.FC<MultiSelectProps>;
@@ -1,2 +1,2 @@
1
1
  import { type NumberInputProps } from '@mantine/core';
2
- export declare const NumberField: (props: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const NumberField: React.FC<NumberInputProps>;
@@ -0,0 +1,2 @@
1
+ import { type PasswordInputProps } from '@mantine/core';
2
+ export declare const PasswordField: React.FC<PasswordInputProps>;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { PasswordInput } from "@mantine/core";
3
3
  import { useFieldContext } from "../context.js";
4
- const PassowrdField = (props)=>{
4
+ const PasswordField = (props)=>{
5
5
  const field = useFieldContext();
6
6
  return /*#__PURE__*/ jsx(PasswordInput, {
7
7
  size: "lg",
@@ -15,4 +15,4 @@ const PassowrdField = (props)=>{
15
15
  ...props
16
16
  });
17
17
  };
18
- export { PassowrdField };
18
+ export { PasswordField };
@@ -1,2 +1,2 @@
1
1
  import { type SelectProps } from '@mantine/core';
2
- export declare const SelectField: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const SelectField: React.FC<SelectProps>;
@@ -1,2 +1,2 @@
1
1
  import { type SwitchProps } from '@mantine/core';
2
- export declare const SwitchField: (props: SwitchProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const SwitchField: React.FC<SwitchProps>;
@@ -1,2 +1,2 @@
1
1
  import { type TextInputProps } from '@mantine/core';
2
- export declare const TextField: (props: TextInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const TextField: React.FC<TextInputProps>;
@@ -0,0 +1,2 @@
1
+ import { type TextInputProps } from '@mantine/core';
2
+ export declare const TextPasswordField: React.FC<TextInputProps>;
@@ -0,0 +1,29 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { ActionIcon, TextInput } from "@mantine/core";
3
+ import { IconRefresh } from "@tabler/icons-react";
4
+ import omgopass from "omgopass";
5
+ import { useFieldContext } from "../context.js";
6
+ const TextPasswordField = (props)=>{
7
+ const field = useFieldContext();
8
+ return /*#__PURE__*/ jsx(TextInput, {
9
+ label: "Пароль",
10
+ placeholder: "Введите пароль",
11
+ rightSection: /*#__PURE__*/ jsx(ActionIcon, {
12
+ variant: "light",
13
+ onClick: ()=>field.setValue(omgopass({
14
+ minSyllableLength: 2,
15
+ maxSyllableLength: 2
16
+ })),
17
+ children: /*#__PURE__*/ jsx(IconRefresh, {
18
+ size: 16
19
+ })
20
+ }),
21
+ name: field.name,
22
+ value: field.state.value || '',
23
+ onChange: (e)=>field.handleChange(e.target.value),
24
+ onBlur: field.handleBlur,
25
+ error: field.state.meta.errors.map((error)=>error.message).join(', '),
26
+ ...props
27
+ });
28
+ };
29
+ export { TextPasswordField };
@@ -1,2 +1,2 @@
1
1
  import { type TextareaProps } from '@mantine/core';
2
- export declare const TextareaField: (props: TextareaProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const TextareaField: React.FC<TextareaProps>;
@@ -1,9 +1,9 @@
1
1
  export * from './JsonField';
2
2
  export * from './MultiSelectField';
3
3
  export * from './NumberField';
4
- export * from './PassowrdField';
4
+ export * from './PasswordField';
5
5
  export * from './SelectField';
6
6
  export * from './SwitchField';
7
7
  export * from './TextareaField';
8
8
  export * from './TextField';
9
- export * from './TextPassowrdField';
9
+ export * from './TextPasswordField';
@@ -1,9 +1,9 @@
1
1
  export * from "./JsonField.js";
2
2
  export * from "./MultiSelectField.js";
3
3
  export * from "./NumberField.js";
4
- export * from "./PassowrdField.js";
4
+ export * from "./PasswordField.js";
5
5
  export * from "./SelectField.js";
6
6
  export * from "./SwitchField.js";
7
7
  export * from "./TextareaField.js";
8
8
  export * from "./TextField.js";
9
- export * from "./TextPassowrdField.js";
9
+ export * from "./TextPasswordField.js";
@@ -1,3 +1,2 @@
1
1
  export { blurOnError } from './blurOnError';
2
2
  export { useAppForm, useFieldContext, withForm } from './context';
3
- export { fieldsSchema } from './fieldsSchema';
@@ -1,4 +1,3 @@
1
1
  import { blurOnError } from "./blurOnError.js";
2
2
  import { useAppForm, useFieldContext, withForm } from "./context.js";
3
- import { fieldsSchema } from "./fieldsSchema.js";
4
- export { blurOnError, fieldsSchema, useAppForm, useFieldContext, withForm };
3
+ export { blurOnError, useAppForm, useFieldContext, withForm };
@@ -0,0 +1,9 @@
1
+ export * from './AnimatedChevron';
2
+ export * from './editor';
3
+ export * from './error';
4
+ export * from './form';
5
+ export * from './hoverPaper';
6
+ export * from './JsonInput';
7
+ export * from './RouterLink';
8
+ export * from './saveInput';
9
+ export * from './scrollArea';
@@ -0,0 +1,9 @@
1
+ export * from "./AnimatedChevron.js";
2
+ export * from "./editor/index.js";
3
+ export * from "./error/index.js";
4
+ export * from "./form/index.js";
5
+ export * from "./hoverPaper/index.js";
6
+ export * from "./JsonInput.js";
7
+ export * from "./RouterLink.js";
8
+ export * from "./saveInput/index.js";
9
+ export * from "./scrollArea/index.js";
@@ -1,6 +1,6 @@
1
1
  import type { ReactCodeMirrorProps } from '@uiw/react-codemirror';
2
- export declare const JsonInput: ({ initialValue, onChange, debounce, ...props }: {
2
+ export declare const JsonInput: React.FC<{
3
3
  initialValue: string;
4
4
  onChange: (value: string) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<ReactCodeMirrorProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<ReactCodeMirrorProps, 'value' | 'onChange'>>;
@@ -1,6 +1,6 @@
1
1
  import { type NumberInputProps } from '@mantine/core';
2
- export declare const NumberInput: ({ initialValue, onChange, debounce, ...props }: {
2
+ export declare const NumberInput: React.FC<{
3
3
  initialValue: string | number;
4
4
  onChange: (value: string | number) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<NumberInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<NumberInputProps, 'value' | 'onChange'>>;
@@ -1,36 +1,36 @@
1
- export declare const SaveInput: (({ initialValue, onChange, debounce, ...props }: {
1
+ export declare const SaveInput: import("react").FC<{
2
2
  initialValue?: string;
3
3
  onChange: (value: string) => Promise<void>;
4
4
  debounce?: number;
5
- } & Omit<import("@mantine/core").TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element) & {
6
- TextInput: ({ initialValue, onChange, debounce, ...props }: {
5
+ } & Omit<import("@mantine/core").TextInputProps, "onChange" | "value">> & {
6
+ TextInput: import("react").FC<{
7
7
  initialValue?: string;
8
8
  onChange: (value: string) => Promise<void>;
9
9
  debounce?: number;
10
- } & Omit<import("@mantine/core").TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
11
- NumberInput: ({ initialValue, onChange, debounce, ...props }: {
10
+ } & Omit<import("@mantine/core").TextInputProps, "onChange" | "value">>;
11
+ NumberInput: import("react").FC<{
12
12
  initialValue: string | number;
13
13
  onChange: (value: string | number) => Promise<void>;
14
14
  debounce?: number;
15
- } & Omit<import("@mantine/core").NumberInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
16
- Textarea: ({ initialValue, onChange, debounce, ...props }: {
15
+ } & Omit<import("@mantine/core").NumberInputProps, "onChange" | "value">>;
16
+ Textarea: import("react").FC<{
17
17
  initialValue: string;
18
18
  onChange: (value: string) => Promise<void>;
19
19
  debounce?: number;
20
- } & Omit<import("@mantine/core").TextareaProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
21
- Switch: ({ initialValue, onChange, debounce, w, ...props }: {
20
+ } & Omit<import("@mantine/core").TextareaProps, "onChange" | "value">>;
21
+ Switch: import("react").FC<{
22
22
  initialValue: boolean;
23
23
  onChange: (value: boolean) => Promise<void>;
24
24
  debounce?: number;
25
- } & Omit<import("@mantine/core").SwitchProps, "checked" | "onChange">) => import("react/jsx-runtime").JSX.Element;
26
- JsonInput: ({ initialValue, onChange, debounce, ...props }: {
25
+ } & Omit<import("@mantine/core").SwitchProps, "onChange" | "checked">>;
26
+ JsonInput: import("react").FC<{
27
27
  initialValue: string;
28
28
  onChange: (value: string) => Promise<void>;
29
29
  debounce?: number;
30
- } & Omit<import("@uiw/react-codemirror").ReactCodeMirrorProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
31
- Select: ({ initialValue, onChange, debounce, ...props }: {
30
+ } & Omit<import("@uiw/react-codemirror").ReactCodeMirrorProps, "onChange" | "value">>;
31
+ Select: import("react").FC<{
32
32
  initialValue: string | null;
33
33
  onChange: (value: string | null) => Promise<void>;
34
34
  debounce?: number;
35
- } & Omit<import("@mantine/core").SelectProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
35
+ } & Omit<import("@mantine/core").SelectProps, "onChange" | "value">>;
36
36
  };
@@ -1,6 +1,6 @@
1
1
  import { type SelectProps } from '@mantine/core';
2
- export declare const Select: ({ initialValue, onChange, debounce, ...props }: {
2
+ export declare const Select: React.FC<{
3
3
  initialValue: string | null;
4
4
  onChange: (value: string | null) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<SelectProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<SelectProps, 'value' | 'onChange'>>;
@@ -1,6 +1,6 @@
1
1
  import { type SwitchProps } from '@mantine/core';
2
- export declare const Switch: ({ initialValue, onChange, debounce, w, ...props }: {
2
+ export declare const Switch: React.FC<{
3
3
  initialValue: boolean;
4
4
  onChange: (value: boolean) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<SwitchProps, "checked" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<SwitchProps, 'checked' | 'onChange'>>;
@@ -1,6 +1,6 @@
1
1
  import { type TextInputProps } from '@mantine/core';
2
- export declare const TextInput: ({ initialValue, onChange, debounce, ...props }: {
2
+ export declare const TextInput: React.FC<{
3
3
  initialValue?: string;
4
4
  onChange: (value: string) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<TextInputProps, 'value' | 'onChange'>>;
@@ -1,6 +1,6 @@
1
1
  import { type TextareaProps } from '@mantine/core';
2
- export declare const Textarea: ({ initialValue, onChange, debounce, ...props }: {
2
+ export declare const Textarea: React.FC<{
3
3
  initialValue: string;
4
4
  onChange: (value: string) => Promise<void>;
5
5
  debounce?: number;
6
- } & Omit<TextareaProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Omit<TextareaProps, 'value' | 'onChange'>>;
@@ -0,0 +1,7 @@
1
+ import { type MantineRadius, type ScrollAreaProps as MantineScrollAreaProps } from '@mantine/core';
2
+ export interface ScrollAreaProps extends Omit<MantineScrollAreaProps, 'h'> {
3
+ height: MantineScrollAreaProps['h'];
4
+ radius?: MantineRadius;
5
+ autoScroll?: boolean;
6
+ }
7
+ export declare const Root: React.FC<ScrollAreaProps>;
@@ -0,0 +1,42 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Box, ScrollArea, getRadius } from "@mantine/core";
3
+ import { useElementSize } from "@mantine/hooks";
4
+ import { useEffect, useRef } from "react";
5
+ import { isAboveCenter } from "./methods.js";
6
+ import { getHasScrollableContent, getHeight, getIsAboveCenter, getScrollAreaRef, setAutoScroll, setHeight, setIsAboveCenter, setScrollAreaRef } from "./store.js";
7
+ const Root = ({ children, height, radius, autoScroll = false, ...props })=>{
8
+ const scrollAreaRef = useRef(null);
9
+ const { ref: boxRef, height: contentHeight } = useElementSize();
10
+ useEffect(()=>{
11
+ setAutoScroll(autoScroll);
12
+ });
13
+ useEffect(()=>{
14
+ if (getHeight() !== contentHeight) setHeight(contentHeight);
15
+ if (scrollAreaRef.current && !getScrollAreaRef()) setScrollAreaRef(scrollAreaRef.current);
16
+ }, [
17
+ contentHeight
18
+ ]);
19
+ return /*#__PURE__*/ jsx(ScrollArea, {
20
+ viewportRef: scrollAreaRef,
21
+ h: height,
22
+ classNames: {
23
+ viewport: 'rolder-scroll-area-viewport',
24
+ scrollbar: 'rolder-scroll-area-scrollbar'
25
+ },
26
+ style: {
27
+ '--radius': radius ? getRadius(radius) : void 0
28
+ },
29
+ onScrollPositionChange: ()=>{
30
+ if (getHasScrollableContent()) {
31
+ const current = isAboveCenter();
32
+ if (getIsAboveCenter() !== current) setIsAboveCenter(current);
33
+ }
34
+ },
35
+ ...props,
36
+ children: /*#__PURE__*/ jsx(Box, {
37
+ ref: boxRef,
38
+ children: children
39
+ })
40
+ });
41
+ };
42
+ export { Root };
@@ -0,0 +1,7 @@
1
+ import { type ActionIconProps } from '@mantine/core';
2
+ import { type ReactNode } from '@tabler/icons-react';
3
+ export interface ScrollButtonProps extends ActionIconProps {
4
+ upIcon?: ReactNode;
5
+ downIcon?: ReactNode;
6
+ }
7
+ export declare const ScrollButton: React.FC<ScrollButtonProps>;
@@ -0,0 +1,30 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { ActionIcon } from "@mantine/core";
3
+ import { IconChevronDown, IconChevronUp } from "@tabler/icons-react";
4
+ import { scrollToBottom, scrollToTop } from "./methods.js";
5
+ import { useHasScrollableContent, useIsAboveCenter } from "./store.js";
6
+ const ScrollButton = ({ upIcon, downIcon, ...props })=>{
7
+ const hasScrollableContent = useHasScrollableContent();
8
+ const isScrollingDown = useIsAboveCenter();
9
+ if (!hasScrollableContent) return null;
10
+ const icon = isScrollingDown ? downIcon ?? /*#__PURE__*/ jsx(IconChevronDown, {
11
+ strokeWidth: 1.5
12
+ }) : upIcon ?? /*#__PURE__*/ jsx(IconChevronUp, {
13
+ strokeWidth: 1.5
14
+ });
15
+ const handleClick = ()=>{
16
+ if (isScrollingDown) scrollToBottom();
17
+ else scrollToTop();
18
+ };
19
+ return /*#__PURE__*/ jsx(ActionIcon, {
20
+ pos: "absolute",
21
+ bottom: 16,
22
+ right: 16,
23
+ variant: "light",
24
+ onClick: handleClick,
25
+ "aria-label": isScrollingDown ? 'Scroll to bottom' : 'Scroll to top',
26
+ ...props,
27
+ children: icon
28
+ });
29
+ };
30
+ export { ScrollButton };
@@ -1,3 +1,6 @@
1
- export { useScrollArea } from './context';
2
- export { ScrollArea } from './ScrollArea';
3
- export type { ScrollAreaContextValue, ScrollAreaHook, ScrollAreaProps, ScrollAreaState, ScrollButtonProps, ScrollPosition, } from './types';
1
+ export declare const ScrollArea: {
2
+ Root: import("react").FC<import("./Root").ScrollAreaProps>;
3
+ ScrollButton: import("react").FC<import("./ScrollButton").ScrollButtonProps>;
4
+ };
5
+ export type * from './Root';
6
+ export type * from './ScrollButton';
@@ -1,3 +1,7 @@
1
- import { useScrollArea } from "./context.js";
2
- import { ScrollArea } from "./ScrollArea.js";
3
- export { ScrollArea, useScrollArea };
1
+ import { Root } from "./Root.js";
2
+ import { ScrollButton } from "./ScrollButton.js";
3
+ const ScrollArea = {
4
+ Root: Root,
5
+ ScrollButton: ScrollButton
6
+ };
7
+ export { ScrollArea };
@@ -0,0 +1,4 @@
1
+ export declare const scrollToBottom: () => void;
2
+ export declare const scrollToTop: () => void;
3
+ export declare const isAboveCenter: () => boolean;
4
+ export declare const hasScrollableContent: () => boolean;