@krak-stack/registry 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +29 -0
  2. package/dist/components/ui/alert-dialog.d.ts +18 -0
  3. package/dist/components/ui/app-brand.d.ts +26 -0
  4. package/dist/components/ui/app-brand.js +78 -0
  5. package/dist/components/ui/attachment.d.ts +23 -0
  6. package/dist/components/ui/badge.d.ts +7 -0
  7. package/dist/components/ui/button.d.ts +8 -0
  8. package/dist/components/ui/card.d.ts +11 -0
  9. package/dist/components/ui/checkbox.d.ts +3 -0
  10. package/dist/components/ui/code-block.d.ts +14 -0
  11. package/dist/components/ui/code-block.js +224 -0
  12. package/dist/components/ui/command.d.ts +18 -0
  13. package/dist/components/ui/copy-button.d.ts +18 -0
  14. package/dist/components/ui/copy-button.js +133 -0
  15. package/dist/components/ui/data-table.d.ts +264 -0
  16. package/dist/components/ui/data-table.js +3594 -0
  17. package/dist/components/ui/dialog.d.ts +13 -0
  18. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  19. package/dist/components/ui/editing-locale-switcher.d.ts +7 -0
  20. package/dist/components/ui/editing-locale-switcher.js +626 -0
  21. package/dist/components/ui/effect-form.d.ts +137 -0
  22. package/dist/components/ui/effect-form.js +2330 -0
  23. package/dist/components/ui/field.d.ts +24 -0
  24. package/dist/components/ui/file-picker.d.ts +30 -0
  25. package/dist/components/ui/file-picker.js +811 -0
  26. package/dist/components/ui/form.d.ts +402 -0
  27. package/dist/components/ui/form.js +2245 -0
  28. package/dist/components/ui/google-map.d.ts +103 -0
  29. package/dist/components/ui/google-map.js +754 -0
  30. package/dist/components/ui/icon-input.d.ts +9 -0
  31. package/dist/components/ui/icon-input.js +971 -0
  32. package/dist/components/ui/input-group.d.ts +17 -0
  33. package/dist/components/ui/input.d.ts +3 -0
  34. package/dist/components/ui/label.d.ts +3 -0
  35. package/dist/components/ui/loading.d.ts +7 -0
  36. package/dist/components/ui/loading.js +467 -0
  37. package/dist/components/ui/locale-switcher.d.ts +7 -0
  38. package/dist/components/ui/locale-switcher.js +632 -0
  39. package/dist/components/ui/pagination.d.ts +43 -0
  40. package/dist/components/ui/pagination.js +787 -0
  41. package/dist/components/ui/popover.d.ts +9 -0
  42. package/dist/components/ui/scroll-area.d.ts +4 -0
  43. package/dist/components/ui/search-menu.d.ts +34 -0
  44. package/dist/components/ui/search-menu.js +839 -0
  45. package/dist/components/ui/select.d.ts +15 -0
  46. package/dist/components/ui/separator.d.ts +3 -0
  47. package/dist/components/ui/sheet.d.ts +14 -0
  48. package/dist/components/ui/sidebar-layout.d.ts +29 -0
  49. package/dist/components/ui/sidebar-layout.js +755 -0
  50. package/dist/components/ui/sidebar.d.ts +63 -0
  51. package/dist/components/ui/skeleton.d.ts +2 -0
  52. package/dist/components/ui/stats-card.d.ts +12 -0
  53. package/dist/components/ui/stats-card.js +125 -0
  54. package/dist/components/ui/table.d.ts +10 -0
  55. package/dist/components/ui/textarea.d.ts +3 -0
  56. package/dist/components/ui/theme-switcher.d.ts +29 -0
  57. package/dist/components/ui/theme-switcher.js +775 -0
  58. package/dist/components/ui/tooltip.d.ts +6 -0
  59. package/dist/components/ui/virtualized-combobox.d.ts +54 -0
  60. package/dist/components/ui/virtualized-combobox.js +821 -0
  61. package/dist/hooks/use-mobile.d.ts +1 -0
  62. package/dist/lib/query.d.ts +49 -0
  63. package/dist/lib/utils.d.ts +2 -0
  64. package/dist/paraglide/runtime.d.ts +978 -0
  65. package/dist/services/embedding.d.ts +2 -0
  66. package/dist/services/embedding.js +23 -0
  67. package/dist/services/notification/channels/index.d.ts +22 -0
  68. package/dist/services/notification/channels/index.js +11 -0
  69. package/dist/services/notification/channels/ses/index.d.ts +51 -0
  70. package/dist/services/notification/channels/ses/index.js +145 -0
  71. package/dist/services/notification/channels/ses/schema.d.ts +13 -0
  72. package/dist/services/notification/channels/ses/schema.js +35 -0
  73. package/dist/services/notification/index.d.ts +15 -0
  74. package/dist/services/notification/index.js +67 -0
  75. package/dist/services/notification/schema.d.ts +10 -0
  76. package/dist/services/notification/schema.js +30 -0
  77. package/dist/services/opentelemetry.d.ts +8 -0
  78. package/dist/services/opentelemetry.js +23 -0
  79. package/dist/services/s3/index.d.ts +62 -0
  80. package/dist/services/s3/index.js +208 -0
  81. package/dist/services/s3/schema.d.ts +18 -0
  82. package/dist/services/s3/schema.js +37 -0
  83. package/package.json +218 -0
  84. package/tailwind.css +1 -0
@@ -0,0 +1,402 @@
1
+ import type { InputHTMLAttributes, JSX } from "react";
2
+ import { type VirtualizedComboboxMessageOverrides, type VirtualizedComboboxOption } from "./virtualized-combobox.js";
3
+ export type FormMessages = {
4
+ keyValueKey: string;
5
+ keyValueValue: string;
6
+ keyValueDelete: string;
7
+ keyValueAdd: string;
8
+ accepts: (accepts: string) => string;
9
+ delete: string;
10
+ suggestedImageSize: (width: string, height: string) => string;
11
+ blockNavigationTitle: string;
12
+ blockNavigationDescription: string;
13
+ blockNavigationCancel: string;
14
+ blockNavigationConfirm: string;
15
+ submit: string;
16
+ revert: string;
17
+ };
18
+ export type FormMessageOverrides = Partial<FormMessages>;
19
+ export declare const formMessages: (overrides?: FormMessageOverrides) => {
20
+ keyValueKey: string;
21
+ keyValueValue: string;
22
+ keyValueDelete: string;
23
+ keyValueAdd: string;
24
+ accepts: (accepts: string) => string;
25
+ delete: string;
26
+ suggestedImageSize: (width: string, height: string) => string;
27
+ blockNavigationTitle: string;
28
+ blockNavigationDescription: string;
29
+ blockNavigationCancel: string;
30
+ blockNavigationConfirm: string;
31
+ submit: string;
32
+ revert: string;
33
+ } | {
34
+ keyValueKey: string;
35
+ keyValueValue: string;
36
+ keyValueDelete: string;
37
+ keyValueAdd: string;
38
+ accepts: (accepts: string) => string;
39
+ delete: string;
40
+ suggestedImageSize: (width: string, height: string) => string;
41
+ blockNavigationTitle: string;
42
+ blockNavigationDescription: string;
43
+ blockNavigationCancel: string;
44
+ blockNavigationConfirm: string;
45
+ submit: string;
46
+ revert: string;
47
+ };
48
+ export declare const ErrorMessage: ({ text }: {
49
+ text: string;
50
+ }) => JSX.Element;
51
+ export declare function FieldError({ errors }: {
52
+ errors?: any[];
53
+ }): JSX.Element | null;
54
+ export type DefaultFormOptions = {
55
+ legend?: string;
56
+ description?: string;
57
+ };
58
+ export type DefaultOptions = {
59
+ label: JSX.Element | string;
60
+ description?: string;
61
+ };
62
+ type SelectFieldOption = {
63
+ label: string;
64
+ value: string;
65
+ };
66
+ type SelectFieldProps = DefaultOptions & {
67
+ options: readonly SelectFieldOption[];
68
+ placeholder?: string | undefined;
69
+ } & ({
70
+ multiple?: false;
71
+ } | {
72
+ multiple: true;
73
+ });
74
+ type SearchableSelectFieldSharedProps<TData> = DefaultOptions & {
75
+ emptyLabel: React.ReactNode;
76
+ initialItems?: readonly VirtualizedComboboxOption<TData>[];
77
+ items: readonly VirtualizedComboboxOption<TData>[];
78
+ messages?: VirtualizedComboboxMessageOverrides;
79
+ onSearchValueChange?: (value: string) => void;
80
+ placeholder: React.ReactNode;
81
+ renderItem?: (item: VirtualizedComboboxOption<TData>) => React.ReactNode;
82
+ searchValue?: string;
83
+ };
84
+ type SearchableSelectFieldProps<TData> = SearchableSelectFieldSharedProps<TData> & ({
85
+ multiple?: false;
86
+ } | {
87
+ multiple: true;
88
+ });
89
+ export declare const BlockNavigation: ({ messages, }: {
90
+ messages?: FormMessageOverrides;
91
+ }) => JSX.Element;
92
+ export declare const FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
93
+ children: React.ReactNode;
94
+ } & DefaultFormOptions & {
95
+ localized?: boolean;
96
+ editingLocale?: string;
97
+ locales?: {
98
+ label: string;
99
+ value: string;
100
+ }[];
101
+ }) => JSX.Element;
102
+ declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, 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, {
103
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
104
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
105
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
106
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
107
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
108
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
109
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
110
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
111
+ messages?: FormMessageOverrides;
112
+ onFileChange?: (file: File | "") => void;
113
+ required?: boolean;
114
+ }) => JSX.Element;
115
+ readonly KeyValueField: (props: DefaultOptions & {
116
+ messages?: FormMessageOverrides;
117
+ }) => JSX.Element;
118
+ readonly ImageField: ({ label, messages, size, }: {
119
+ label: string;
120
+ messages?: FormMessageOverrides;
121
+ size: {
122
+ width: number;
123
+ height: number;
124
+ suggestedWidth?: number;
125
+ suggestedHeight?: number;
126
+ };
127
+ }) => JSX.Element;
128
+ readonly RevertButton: ({ messages, original, }: {
129
+ messages?: FormMessageOverrides;
130
+ original: string;
131
+ }) => JSX.Element | undefined;
132
+ }, {
133
+ readonly SubmitButton: ({ children, messages, }: {
134
+ children?: React.ReactNode;
135
+ messages?: FormMessageOverrides;
136
+ }) => JSX.Element;
137
+ readonly FormError: () => JSX.Element;
138
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
139
+ children: React.ReactNode;
140
+ } & DefaultFormOptions & {
141
+ localized?: boolean;
142
+ editingLocale?: string;
143
+ locales?: {
144
+ label: string;
145
+ value: string;
146
+ }[];
147
+ }) => JSX.Element;
148
+ readonly BlockNavigation: ({ messages, }: {
149
+ messages?: FormMessageOverrides;
150
+ }) => JSX.Element;
151
+ }>, withForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
152
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
153
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
154
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
155
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
156
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
157
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
158
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
159
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
160
+ messages?: FormMessageOverrides;
161
+ onFileChange?: (file: File | "") => void;
162
+ required?: boolean;
163
+ }) => JSX.Element;
164
+ readonly KeyValueField: (props: DefaultOptions & {
165
+ messages?: FormMessageOverrides;
166
+ }) => JSX.Element;
167
+ readonly ImageField: ({ label, messages, size, }: {
168
+ label: string;
169
+ messages?: FormMessageOverrides;
170
+ size: {
171
+ width: number;
172
+ height: number;
173
+ suggestedWidth?: number;
174
+ suggestedHeight?: number;
175
+ };
176
+ }) => JSX.Element;
177
+ readonly RevertButton: ({ messages, original, }: {
178
+ messages?: FormMessageOverrides;
179
+ original: string;
180
+ }) => JSX.Element | undefined;
181
+ }, {
182
+ readonly SubmitButton: ({ children, messages, }: {
183
+ children?: React.ReactNode;
184
+ messages?: FormMessageOverrides;
185
+ }) => JSX.Element;
186
+ readonly FormError: () => JSX.Element;
187
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
188
+ children: React.ReactNode;
189
+ } & DefaultFormOptions & {
190
+ localized?: boolean;
191
+ editingLocale?: string;
192
+ locales?: {
193
+ label: string;
194
+ value: string;
195
+ }[];
196
+ }) => JSX.Element;
197
+ readonly BlockNavigation: ({ messages, }: {
198
+ messages?: FormMessageOverrides;
199
+ }) => JSX.Element;
200
+ }, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
201
+ 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, {
202
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
203
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
204
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
205
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
206
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
207
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
208
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
209
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
210
+ messages?: FormMessageOverrides;
211
+ onFileChange?: (file: File | "") => void;
212
+ required?: boolean;
213
+ }) => JSX.Element;
214
+ readonly KeyValueField: (props: DefaultOptions & {
215
+ messages?: FormMessageOverrides;
216
+ }) => JSX.Element;
217
+ readonly ImageField: ({ label, messages, size, }: {
218
+ label: string;
219
+ messages?: FormMessageOverrides;
220
+ size: {
221
+ width: number;
222
+ height: number;
223
+ suggestedWidth?: number;
224
+ suggestedHeight?: number;
225
+ };
226
+ }) => JSX.Element;
227
+ readonly RevertButton: ({ messages, original, }: {
228
+ messages?: FormMessageOverrides;
229
+ original: string;
230
+ }) => JSX.Element | undefined;
231
+ }, {
232
+ readonly SubmitButton: ({ children, messages, }: {
233
+ children?: React.ReactNode;
234
+ messages?: FormMessageOverrides;
235
+ }) => JSX.Element;
236
+ readonly FormError: () => JSX.Element;
237
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
238
+ children: React.ReactNode;
239
+ } & DefaultFormOptions & {
240
+ localized?: boolean;
241
+ editingLocale?: string;
242
+ locales?: {
243
+ label: string;
244
+ value: string;
245
+ }[];
246
+ }) => JSX.Element;
247
+ readonly BlockNavigation: ({ messages, }: {
248
+ messages?: FormMessageOverrides;
249
+ }) => JSX.Element;
250
+ }>;
251
+ }>>, withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps extends object = {}>({ render, props, defaultValues, }: import("@tanstack/react-form").WithFieldGroupProps<TFieldGroupData, {
252
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
253
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
254
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
255
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
256
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
257
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
258
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
259
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
260
+ messages?: FormMessageOverrides;
261
+ onFileChange?: (file: File | "") => void;
262
+ required?: boolean;
263
+ }) => JSX.Element;
264
+ readonly KeyValueField: (props: DefaultOptions & {
265
+ messages?: FormMessageOverrides;
266
+ }) => JSX.Element;
267
+ readonly ImageField: ({ label, messages, size, }: {
268
+ label: string;
269
+ messages?: FormMessageOverrides;
270
+ size: {
271
+ width: number;
272
+ height: number;
273
+ suggestedWidth?: number;
274
+ suggestedHeight?: number;
275
+ };
276
+ }) => JSX.Element;
277
+ readonly RevertButton: ({ messages, original, }: {
278
+ messages?: FormMessageOverrides;
279
+ original: string;
280
+ }) => JSX.Element | undefined;
281
+ }, {
282
+ readonly SubmitButton: ({ children, messages, }: {
283
+ children?: React.ReactNode;
284
+ messages?: FormMessageOverrides;
285
+ }) => JSX.Element;
286
+ readonly FormError: () => JSX.Element;
287
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
288
+ children: React.ReactNode;
289
+ } & DefaultFormOptions & {
290
+ localized?: boolean;
291
+ editingLocale?: string;
292
+ locales?: {
293
+ label: string;
294
+ value: string;
295
+ }[];
296
+ }) => JSX.Element;
297
+ readonly BlockNavigation: ({ messages, }: {
298
+ messages?: FormMessageOverrides;
299
+ }) => JSX.Element;
300
+ }, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends import("@tanstack/react-form").DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | import("@tanstack/react-form").FieldsMap<TFormData, TFieldGroupData>, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TFormSubmitMeta>(params: import("react").PropsWithChildren<NoInfer<TRenderProps> & {
301
+ form: import("@tanstack/react-form").AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | import("@tanstack/react-form").FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
302
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
303
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
304
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
305
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
306
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
307
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
308
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
309
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
310
+ messages?: FormMessageOverrides;
311
+ onFileChange?: (file: File | "") => void;
312
+ required?: boolean;
313
+ }) => JSX.Element;
314
+ readonly KeyValueField: (props: DefaultOptions & {
315
+ messages?: FormMessageOverrides;
316
+ }) => JSX.Element;
317
+ readonly ImageField: ({ label, messages, size, }: {
318
+ label: string;
319
+ messages?: FormMessageOverrides;
320
+ size: {
321
+ width: number;
322
+ height: number;
323
+ suggestedWidth?: number;
324
+ suggestedHeight?: number;
325
+ };
326
+ }) => JSX.Element;
327
+ readonly RevertButton: ({ messages, original, }: {
328
+ messages?: FormMessageOverrides;
329
+ original: string;
330
+ }) => JSX.Element | undefined;
331
+ }, {
332
+ readonly SubmitButton: ({ children, messages, }: {
333
+ children?: React.ReactNode;
334
+ messages?: FormMessageOverrides;
335
+ }) => JSX.Element;
336
+ readonly FormError: () => JSX.Element;
337
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
338
+ children: React.ReactNode;
339
+ } & DefaultFormOptions & {
340
+ localized?: boolean;
341
+ editingLocale?: string;
342
+ locales?: {
343
+ label: string;
344
+ value: string;
345
+ }[];
346
+ }) => JSX.Element;
347
+ readonly BlockNavigation: ({ messages, }: {
348
+ messages?: FormMessageOverrides;
349
+ }) => JSX.Element;
350
+ }> | import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
351
+ readonly TextField: ({ children, ...props }: React.ComponentProps<"input"> & DefaultOptions) => JSX.Element;
352
+ readonly TextAreaField: ({ children, ...props }: React.ComponentProps<"textarea"> & DefaultOptions) => JSX.Element;
353
+ readonly SelectField: ({ description, label, multiple, options, placeholder, }: SelectFieldProps) => JSX.Element;
354
+ readonly MultiSelectField: (props: Omit<SelectFieldProps, "multiple">) => JSX.Element;
355
+ readonly SearchableSelectField: <TData>({ description, label, multiple, ...props }: SearchableSelectFieldProps<TData>) => JSX.Element;
356
+ readonly CheckboxField: (props: DefaultOptions) => JSX.Element;
357
+ readonly FileField: ({ label, accept, messages, onFileChange, required, }: Omit<DefaultOptions, "description"> & {
358
+ accept: InputHTMLAttributes<HTMLInputElement>["accept"];
359
+ messages?: FormMessageOverrides;
360
+ onFileChange?: (file: File | "") => void;
361
+ required?: boolean;
362
+ }) => JSX.Element;
363
+ readonly KeyValueField: (props: DefaultOptions & {
364
+ messages?: FormMessageOverrides;
365
+ }) => JSX.Element;
366
+ readonly ImageField: ({ label, messages, size, }: {
367
+ label: string;
368
+ messages?: FormMessageOverrides;
369
+ size: {
370
+ width: number;
371
+ height: number;
372
+ suggestedWidth?: number;
373
+ suggestedHeight?: number;
374
+ };
375
+ }) => JSX.Element;
376
+ readonly RevertButton: ({ messages, original, }: {
377
+ messages?: FormMessageOverrides;
378
+ original: string;
379
+ }) => JSX.Element | undefined;
380
+ }, {
381
+ readonly SubmitButton: ({ children, messages, }: {
382
+ children?: React.ReactNode;
383
+ messages?: FormMessageOverrides;
384
+ }) => JSX.Element;
385
+ readonly FormError: () => JSX.Element;
386
+ readonly FieldWrapper: ({ children, legend, localized, description, locales, editingLocale, }: {
387
+ children: React.ReactNode;
388
+ } & DefaultFormOptions & {
389
+ localized?: boolean;
390
+ editingLocale?: string;
391
+ locales?: {
392
+ label: string;
393
+ value: string;
394
+ }[];
395
+ }) => JSX.Element;
396
+ readonly BlockNavigation: ({ messages, }: {
397
+ messages?: FormMessageOverrides;
398
+ }) => JSX.Element;
399
+ }>;
400
+ fields: TFields;
401
+ }>) => ReturnType<import("react").FunctionComponent>;
402
+ export { useAppForm, withForm, withFieldGroup };