@aircall/blocks 0.4.0 → 0.5.1
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.
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +1540 -220
- package/dist/index.js +1145 -84
- package/package.json +12 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,199 +1,382 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import
|
|
3
|
-
import { Badge, Button, CounterBadge, SidebarProvider, TabsList, useSidebar } from "@aircall/ds";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Badge, Button, CounterBadge, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, SidebarProvider, TabsList, useSidebar } from "@aircall/ds";
|
|
4
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as _tanstack_react_form0 from "@tanstack/react-form";
|
|
6
|
+
import { DeepKeys, DeepKeysOfType, FieldAsyncValidateOrFn, FieldValidateOrFn } from "@tanstack/react-form";
|
|
6
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
7
8
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
8
9
|
|
|
10
|
+
//#region src/components/empty-state.d.ts
|
|
11
|
+
/** Generic root. Anchor of the family + escape hatch for ad-hoc empty states. */
|
|
12
|
+
declare const EmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
interface EmptyStateProps extends React$1.ComponentProps<typeof Empty> {}
|
|
14
|
+
declare namespace EmptyState {
|
|
15
|
+
type Props = EmptyStateProps;
|
|
16
|
+
}
|
|
17
|
+
/** Groups the media, title and description with the design's spacing. */
|
|
18
|
+
declare const EmptyStateHeader: React$1.ForwardRefExoticComponent<Omit<EmptyStateHeaderProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
interface EmptyStateHeaderProps extends React$1.ComponentProps<typeof EmptyHeader> {}
|
|
20
|
+
declare namespace EmptyStateHeader {
|
|
21
|
+
type Props = EmptyStateHeaderProps;
|
|
22
|
+
}
|
|
23
|
+
/** Decorative media slot (icon/avatar). Hidden from assistive tech. */
|
|
24
|
+
declare const EmptyStateMedia: React$1.ForwardRefExoticComponent<Omit<EmptyStateMediaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
type EmptyStateMediaProps = Omit<React$1.ComponentProps<typeof EmptyMedia>, 'variant'>;
|
|
26
|
+
declare namespace EmptyStateMedia {
|
|
27
|
+
type Props = EmptyStateMediaProps;
|
|
28
|
+
}
|
|
29
|
+
declare const EmptyStateTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
interface EmptyStateTitleProps extends React$1.ComponentProps<typeof EmptyTitle> {}
|
|
31
|
+
declare namespace EmptyStateTitle {
|
|
32
|
+
type Props = EmptyStateTitleProps;
|
|
33
|
+
}
|
|
34
|
+
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
interface EmptyStateDescriptionProps extends React$1.ComponentProps<typeof EmptyDescription> {}
|
|
36
|
+
declare namespace EmptyStateDescription {
|
|
37
|
+
type Props = EmptyStateDescriptionProps;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Row of action buttons below the header. Lays buttons out horizontally
|
|
41
|
+
* (wrapping when needed), matching the design. Place an `EmptyStateExternalLink`
|
|
42
|
+
* link as a sibling after it — not inside — to sit on its own line below.
|
|
43
|
+
*/
|
|
44
|
+
declare const EmptyStateActions: React$1.ForwardRefExoticComponent<Omit<EmptyStateActionsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
interface EmptyStateActionsProps extends React$1.ComponentProps<typeof EmptyContent> {}
|
|
46
|
+
declare namespace EmptyStateActions {
|
|
47
|
+
type Props = EmptyStateActionsProps;
|
|
48
|
+
}
|
|
49
|
+
type EmptyStateButtonProps = Omit<React$1.ComponentProps<typeof Button>, 'size'>;
|
|
50
|
+
declare const EmptyStateButton: React$1.ForwardRefExoticComponent<Omit<EmptyStateButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
declare namespace EmptyStateButton {
|
|
52
|
+
type Props = EmptyStateButtonProps;
|
|
53
|
+
}
|
|
54
|
+
type EmptyStateExternalLinkProps = Omit<EmptyStateButtonProps, 'variant' | 'render'> & {
|
|
55
|
+
href: string;
|
|
56
|
+
};
|
|
57
|
+
declare const EmptyStateExternalLink: React$1.ForwardRefExoticComponent<Omit<EmptyStateExternalLinkProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
declare namespace EmptyStateExternalLink {
|
|
59
|
+
type Props = EmptyStateExternalLinkProps;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/coming-soon.d.ts
|
|
63
|
+
declare const ComingSoonEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare const ComingSoonMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare const ComingSoonTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
declare const ComingSoonDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/restricted-access.d.ts
|
|
69
|
+
declare const RestrictedAccessEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
declare const RestrictedAccessMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
declare const RestrictedAccessTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
declare const RestrictedAccessDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/not-found.d.ts
|
|
75
|
+
declare const NotFoundEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const NotFoundMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
declare const NotFoundTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
declare const NotFoundDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/components/no-data.d.ts
|
|
81
|
+
declare const NoDataEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
declare const NoDataMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
declare const NoDataTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
declare const NoDataDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/no-support.d.ts
|
|
87
|
+
declare const NoSupportEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
declare const NoSupportMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
89
|
+
declare const NoSupportTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
declare const NoSupportDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/unknown-error.d.ts
|
|
93
|
+
declare const UnknownErrorEmptyState: React$1.ForwardRefExoticComponent<Omit<EmptyStateProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
declare const UnknownErrorMedia: React$1.ForwardRefExoticComponent<Omit<Omit<EmptyStateMediaProps, "children">, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
declare const UnknownErrorTitle: React$1.ForwardRefExoticComponent<Omit<EmptyStateTitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const UnknownErrorDescription: React$1.ForwardRefExoticComponent<Omit<EmptyStateDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/chatbot-page.d.ts
|
|
99
|
+
declare const ChatbotPage: React$1.ForwardRefExoticComponent<ChatbotPageProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
interface ChatbotPageProps {
|
|
101
|
+
children: React$1.ReactNode;
|
|
102
|
+
className?: string;
|
|
103
|
+
}
|
|
104
|
+
declare namespace ChatbotPage {
|
|
105
|
+
type Props = ChatbotPageProps;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/chatbot-sidebar.d.ts
|
|
109
|
+
interface ChatbotSidebarConversation {
|
|
110
|
+
id: string;
|
|
111
|
+
/** Display title — truncated with ellipsis when it overflows. */
|
|
112
|
+
title: string;
|
|
113
|
+
}
|
|
114
|
+
interface ChatbotSidebarProps {
|
|
115
|
+
/** Recent conversation list shown under the section label. */
|
|
116
|
+
conversations: ChatbotSidebarConversation[];
|
|
117
|
+
/** Highlights the matching conversation row. When set, New Chat loses its accent. */
|
|
118
|
+
activeConversationId?: string;
|
|
119
|
+
/** Called when the user clicks "+ New Chat". */
|
|
120
|
+
onNewChat?: () => void;
|
|
121
|
+
/** Called when the user clicks a conversation row. */
|
|
122
|
+
onSelectConversation?: (id: string) => void;
|
|
123
|
+
/**
|
|
124
|
+
* Render prop for the trailing ellipsis menu items on each conversation row.
|
|
125
|
+
* The block renders the Ellipsis trigger and DropdownMenu wrapper automatically.
|
|
126
|
+
* Return the menu items (DropdownMenuItems, separators, etc.) for this conversation.
|
|
127
|
+
* Omit to hide the ellipsis icon entirely.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* renderConversationMenuContent={conv => (
|
|
131
|
+
* <>
|
|
132
|
+
* <DropdownMenuItem onClick={() => handleRename(conv.id)}>Rename</DropdownMenuItem>
|
|
133
|
+
* <DropdownMenuItem onClick={() => handleDelete(conv.id)}>Delete</DropdownMenuItem>
|
|
134
|
+
* </>
|
|
135
|
+
* )}
|
|
136
|
+
*/
|
|
137
|
+
renderConversationMenuContent?: (conversation: ChatbotSidebarConversation) => React$1.ReactNode;
|
|
138
|
+
/** Label above the conversation list. Defaults to "Recent"*/
|
|
139
|
+
recentLabel?: string;
|
|
140
|
+
className?: string;
|
|
141
|
+
}
|
|
142
|
+
declare const ChatbotSidebar: React$1.ForwardRefExoticComponent<ChatbotSidebarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
143
|
+
declare namespace ChatbotSidebar {
|
|
144
|
+
type Props = ChatbotSidebarProps;
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/chatbot-input.d.ts
|
|
148
|
+
declare const textareaVariants: (props?: ({
|
|
149
|
+
size?: "default" | "large" | null | undefined;
|
|
150
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
151
|
+
type ChatbotInputProps = Omit<React$1.ComponentProps<'textarea'>, 'onChange' | 'value' | 'size' | 'onSubmit'> & VariantProps<typeof textareaVariants> & {
|
|
152
|
+
/** Current text value (controlled). */value?: string; /** Called with the new text whenever the user types. */
|
|
153
|
+
onValueChange?: (value: string) => void; /** Called when the user submits — clicks the send button or presses Enter. */
|
|
154
|
+
onSubmit?: (value: string) => void; /** Called when the user clicks the stop button while `loading`. */
|
|
155
|
+
onStop?: () => void; /** Placeholder shown when empty. */
|
|
156
|
+
placeholder?: string; /** When true, shows the stop button instead of send, and disables typing submission. */
|
|
157
|
+
loading?: boolean;
|
|
158
|
+
};
|
|
159
|
+
declare function ChatbotInput({
|
|
160
|
+
className,
|
|
161
|
+
value,
|
|
162
|
+
onValueChange,
|
|
163
|
+
onSubmit,
|
|
164
|
+
onStop,
|
|
165
|
+
placeholder,
|
|
166
|
+
loading,
|
|
167
|
+
size,
|
|
168
|
+
disabled,
|
|
169
|
+
...textareaProps
|
|
170
|
+
}: ChatbotInputProps): react_jsx_runtime0.JSX.Element;
|
|
171
|
+
//#endregion
|
|
9
172
|
//#region src/components/copy-button.d.ts
|
|
10
|
-
|
|
173
|
+
declare const CopyButton: React$1.ForwardRefExoticComponent<Omit<CopyButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
174
|
+
interface CopyButtonProps extends Omit<React$1.ComponentProps<typeof Button>, 'onClick' | 'variant'> {
|
|
11
175
|
value: string;
|
|
12
176
|
timeout?: number;
|
|
13
|
-
onCopied?: () => void;
|
|
177
|
+
onCopied?: () => void;
|
|
178
|
+
/** Visual style of the underlying Button. Limited to non-primary variants suitable for copy actions. */
|
|
14
179
|
variant?: 'outline' | 'ghost';
|
|
15
|
-
}
|
|
16
|
-
declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
variant,
|
|
21
|
-
children,
|
|
22
|
-
...buttonProps
|
|
23
|
-
}: CopyButtonProps): react_jsx_runtime0.JSX.Element;
|
|
180
|
+
}
|
|
181
|
+
declare namespace CopyButton {
|
|
182
|
+
type Props = CopyButtonProps;
|
|
183
|
+
}
|
|
184
|
+
declare const CopyButtonIcon: React$1.ForwardRefExoticComponent<CopyButtonIconProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
24
185
|
interface CopyButtonIconProps {
|
|
25
186
|
className?: string;
|
|
26
187
|
}
|
|
27
|
-
declare
|
|
28
|
-
|
|
29
|
-
}
|
|
188
|
+
declare namespace CopyButtonIcon {
|
|
189
|
+
type Props = CopyButtonIconProps;
|
|
190
|
+
}
|
|
191
|
+
declare const CopyButtonLabel: React$1.ForwardRefExoticComponent<CopyButtonLabelProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
30
192
|
interface CopyButtonLabelProps {
|
|
31
193
|
label?: string;
|
|
32
194
|
copiedLabel?: string;
|
|
33
195
|
className?: string;
|
|
34
196
|
}
|
|
35
|
-
declare
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
197
|
+
declare namespace CopyButtonLabel {
|
|
198
|
+
type Props = CopyButtonLabelProps;
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/chatbot-panel-suggestion.d.ts
|
|
202
|
+
type ChatbotPanelSuggestionProps = Omit<React.ComponentProps<typeof Button>, 'variant' | 'size'>;
|
|
203
|
+
declare function ChatbotPanelSuggestion({
|
|
204
|
+
className,
|
|
205
|
+
...props
|
|
206
|
+
}: ChatbotPanelSuggestionProps): react_jsx_runtime0.JSX.Element;
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/chatbot-user-message.d.ts
|
|
209
|
+
type ChatbotUserMessageProps = React.ComponentProps<'div'>;
|
|
210
|
+
declare function ChatbotUserMessage({
|
|
211
|
+
className,
|
|
212
|
+
children,
|
|
213
|
+
...props
|
|
214
|
+
}: ChatbotUserMessageProps): react_jsx_runtime0.JSX.Element;
|
|
40
215
|
//#endregion
|
|
41
216
|
//#region src/components/dashboard-standalone-page.d.ts
|
|
42
|
-
declare const DashboardStandalonePage: React.ForwardRefExoticComponent<Omit<
|
|
217
|
+
declare const DashboardStandalonePage: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
218
|
+
interface DashboardStandalonePageProps extends React$1.ComponentProps<'div'> {}
|
|
43
219
|
declare namespace DashboardStandalonePage {
|
|
44
|
-
type Props =
|
|
220
|
+
type Props = DashboardStandalonePageProps;
|
|
45
221
|
}
|
|
46
|
-
declare const DashboardStandalonePageHeader: React.ForwardRefExoticComponent<Omit<
|
|
222
|
+
declare const DashboardStandalonePageHeader: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageHeaderProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
223
|
+
interface DashboardStandalonePageHeaderProps extends React$1.ComponentProps<'header'> {}
|
|
47
224
|
declare namespace DashboardStandalonePageHeader {
|
|
48
|
-
type Props =
|
|
225
|
+
type Props = DashboardStandalonePageHeaderProps;
|
|
49
226
|
}
|
|
50
|
-
declare const DashboardStandalonePageTitle: React.ForwardRefExoticComponent<Omit<
|
|
227
|
+
declare const DashboardStandalonePageTitle: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageTitleProps, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
228
|
+
interface DashboardStandalonePageTitleProps extends React$1.ComponentProps<'h1'> {}
|
|
51
229
|
declare namespace DashboardStandalonePageTitle {
|
|
52
|
-
type Props =
|
|
230
|
+
type Props = DashboardStandalonePageTitleProps;
|
|
231
|
+
}
|
|
232
|
+
declare const DashboardStandalonePageActions: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageActionsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
233
|
+
interface DashboardStandalonePageActionsProps extends React$1.ComponentProps<'div'> {
|
|
234
|
+
side?: 'start' | 'end';
|
|
53
235
|
}
|
|
54
|
-
declare const DashboardStandalonePageActions: React.ForwardRefExoticComponent<Omit<DashboardStandalonePageActions.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
55
236
|
declare namespace DashboardStandalonePageActions {
|
|
56
|
-
type Props =
|
|
57
|
-
side?: 'start' | 'end';
|
|
58
|
-
};
|
|
237
|
+
type Props = DashboardStandalonePageActionsProps;
|
|
59
238
|
}
|
|
60
|
-
declare const DashboardStandalonePageAction: React.ForwardRefExoticComponent<Omit<
|
|
239
|
+
declare const DashboardStandalonePageAction: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageActionProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
240
|
+
interface DashboardStandalonePageActionProps extends React$1.ComponentProps<typeof Button> {}
|
|
61
241
|
declare namespace DashboardStandalonePageAction {
|
|
62
|
-
type Props =
|
|
242
|
+
type Props = DashboardStandalonePageActionProps;
|
|
63
243
|
}
|
|
64
|
-
declare const DashboardStandalonePageContent: React.ForwardRefExoticComponent<Omit<
|
|
244
|
+
declare const DashboardStandalonePageContent: React$1.ForwardRefExoticComponent<Omit<DashboardStandalonePageContentProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
245
|
+
interface DashboardStandalonePageContentProps extends React$1.ComponentProps<'main'> {}
|
|
65
246
|
declare namespace DashboardStandalonePageContent {
|
|
66
|
-
type Props =
|
|
247
|
+
type Props = DashboardStandalonePageContentProps;
|
|
67
248
|
}
|
|
68
249
|
//#endregion
|
|
69
250
|
//#region src/components/dashboard-page.d.ts
|
|
70
|
-
declare
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
declare
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
251
|
+
declare const DashboardPage: React$1.ForwardRefExoticComponent<Omit<DashboardPageProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
252
|
+
interface DashboardPageProps extends React$1.ComponentProps<'div'> {}
|
|
253
|
+
declare namespace DashboardPage {
|
|
254
|
+
type Props = DashboardPageProps;
|
|
255
|
+
}
|
|
256
|
+
declare const DashboardPageBanner: React$1.ForwardRefExoticComponent<Omit<DashboardPageBannerProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
257
|
+
interface DashboardPageBannerProps extends React$1.ComponentProps<'div'> {}
|
|
258
|
+
declare namespace DashboardPageBanner {
|
|
259
|
+
type Props = DashboardPageBannerProps;
|
|
260
|
+
}
|
|
261
|
+
declare const DashboardPageContent: React$1.ForwardRefExoticComponent<Omit<DashboardPageContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
262
|
+
interface DashboardPageContentProps extends React$1.ComponentProps<'div'> {}
|
|
263
|
+
declare namespace DashboardPageContent {
|
|
264
|
+
type Props = DashboardPageContentProps;
|
|
265
|
+
}
|
|
266
|
+
declare const DashboardPageMain: React$1.ForwardRefExoticComponent<Omit<DashboardPageMainProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
267
|
+
interface DashboardPageMainProps extends React$1.ComponentProps<'main'> {}
|
|
268
|
+
declare namespace DashboardPageMain {
|
|
269
|
+
type Props = DashboardPageMainProps;
|
|
270
|
+
}
|
|
271
|
+
declare const DashboardPageTabs: React$1.ForwardRefExoticComponent<Omit<DashboardPageTabsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
272
|
+
interface DashboardPageTabsProps extends React$1.ComponentProps<typeof TabsList> {}
|
|
273
|
+
declare namespace DashboardPageTabs {
|
|
274
|
+
type Props = DashboardPageTabsProps;
|
|
275
|
+
}
|
|
90
276
|
//#endregion
|
|
91
277
|
//#region src/components/dashboard-page-header.d.ts
|
|
92
|
-
declare
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
declare
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
declare
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
declare
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
278
|
+
declare const DashboardPageHeader: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
279
|
+
interface DashboardPageHeaderProps extends React$1.ComponentProps<'div'> {}
|
|
280
|
+
declare namespace DashboardPageHeader {
|
|
281
|
+
type Props = DashboardPageHeaderProps;
|
|
282
|
+
}
|
|
283
|
+
declare const DashboardPageHeaderNav: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderNavProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
interface DashboardPageHeaderNavProps extends React$1.ComponentProps<'div'> {}
|
|
285
|
+
declare namespace DashboardPageHeaderNav {
|
|
286
|
+
type Props = DashboardPageHeaderNavProps;
|
|
287
|
+
}
|
|
288
|
+
declare const DashboardPageHeaderNavBack: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderNavBackProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
289
|
+
interface DashboardPageHeaderNavBackProps extends Omit<React$1.ComponentProps<typeof Button>, 'variant' | 'size'> {}
|
|
290
|
+
declare namespace DashboardPageHeaderNavBack {
|
|
291
|
+
type Props = DashboardPageHeaderNavBackProps;
|
|
292
|
+
}
|
|
293
|
+
declare const DashboardPageHeaderPrefix: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderPrefixProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
294
|
+
interface DashboardPageHeaderPrefixProps extends React$1.ComponentProps<'div'> {}
|
|
295
|
+
declare namespace DashboardPageHeaderPrefix {
|
|
296
|
+
type Props = DashboardPageHeaderPrefixProps;
|
|
297
|
+
}
|
|
298
|
+
declare const DashboardPageHeaderTitleGroup: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderTitleGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
299
|
+
interface DashboardPageHeaderTitleGroupProps extends React$1.ComponentProps<'div'> {}
|
|
300
|
+
declare namespace DashboardPageHeaderTitleGroup {
|
|
301
|
+
type Props = DashboardPageHeaderTitleGroupProps;
|
|
302
|
+
}
|
|
303
|
+
declare const DashboardPageHeaderTitle: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderTitleProps, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
304
|
+
interface DashboardPageHeaderTitleProps extends React$1.ComponentProps<'h1'> {
|
|
118
305
|
size?: 'lg' | 'sm';
|
|
119
|
-
}
|
|
120
|
-
declare
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
141
|
-
type DashboardPageHeaderActionProps = Omit<React.ComponentProps<typeof Button>, 'size'> & {
|
|
306
|
+
}
|
|
307
|
+
declare namespace DashboardPageHeaderTitle {
|
|
308
|
+
type Props = DashboardPageHeaderTitleProps;
|
|
309
|
+
}
|
|
310
|
+
declare const DashboardPageHeaderSubtitle: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderSubtitleProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
311
|
+
interface DashboardPageHeaderSubtitleProps extends React$1.ComponentProps<'div'> {}
|
|
312
|
+
declare namespace DashboardPageHeaderSubtitle {
|
|
313
|
+
type Props = DashboardPageHeaderSubtitleProps;
|
|
314
|
+
}
|
|
315
|
+
declare const DashboardPageHeaderDescription: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderDescriptionProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
316
|
+
interface DashboardPageHeaderDescriptionProps extends React$1.ComponentProps<'div'> {}
|
|
317
|
+
declare namespace DashboardPageHeaderDescription {
|
|
318
|
+
type Props = DashboardPageHeaderDescriptionProps;
|
|
319
|
+
}
|
|
320
|
+
declare const DashboardPageHeaderActions: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderActionsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
321
|
+
interface DashboardPageHeaderActionsProps extends React$1.ComponentProps<'div'> {}
|
|
322
|
+
declare namespace DashboardPageHeaderActions {
|
|
323
|
+
type Props = DashboardPageHeaderActionsProps;
|
|
324
|
+
}
|
|
325
|
+
declare const DashboardPageHeaderAction: React$1.ForwardRefExoticComponent<Omit<DashboardPageHeaderActionProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
326
|
+
interface DashboardPageHeaderActionProps extends Omit<React$1.ComponentProps<typeof Button>, 'size'> {
|
|
142
327
|
size?: 'lg' | 'icon-lg';
|
|
143
|
-
}
|
|
144
|
-
declare
|
|
328
|
+
}
|
|
329
|
+
declare namespace DashboardPageHeaderAction {
|
|
330
|
+
type Props = DashboardPageHeaderActionProps;
|
|
331
|
+
}
|
|
145
332
|
//#endregion
|
|
146
333
|
//#region src/components/product-badges.d.ts
|
|
147
|
-
type BadgeBaseProps = Omit<React.ComponentProps<typeof Badge>, 'variant' | 'children' | 'size'>;
|
|
334
|
+
type BadgeBaseProps = Omit<React$1.ComponentProps<typeof Badge>, 'variant' | 'children' | 'size'>;
|
|
148
335
|
/** Blue pill — feature in beta, not yet GA */
|
|
149
|
-
declare const BetaBadge:
|
|
150
|
-
({
|
|
151
|
-
className,
|
|
152
|
-
...props
|
|
153
|
-
}: BadgeBaseProps): react_jsx_runtime0.JSX.Element;
|
|
154
|
-
displayName: string;
|
|
155
|
-
};
|
|
336
|
+
declare const BetaBadge: React$1.ForwardRefExoticComponent<Omit<BadgeBaseProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
156
337
|
/** Green pill — recently launched feature */
|
|
157
|
-
declare const NewBadge:
|
|
158
|
-
({
|
|
159
|
-
className,
|
|
160
|
-
...props
|
|
161
|
-
}: BadgeBaseProps): react_jsx_runtime0.JSX.Element;
|
|
162
|
-
displayName: string;
|
|
163
|
-
};
|
|
338
|
+
declare const NewBadge: React$1.ForwardRefExoticComponent<Omit<BadgeBaseProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
164
339
|
/** Amber pill — feature being phased out */
|
|
165
|
-
declare const DeprecatedBadge:
|
|
166
|
-
({
|
|
167
|
-
className,
|
|
168
|
-
...props
|
|
169
|
-
}: BadgeBaseProps): react_jsx_runtime0.JSX.Element;
|
|
170
|
-
displayName: string;
|
|
171
|
-
};
|
|
340
|
+
declare const DeprecatedBadge: React$1.ForwardRefExoticComponent<Omit<BadgeBaseProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
172
341
|
/** Blue pill — user is in a trial period (same blue family as Beta) */
|
|
173
|
-
declare const TrialBadge:
|
|
174
|
-
({
|
|
175
|
-
className,
|
|
176
|
-
...props
|
|
177
|
-
}: BadgeBaseProps): react_jsx_runtime0.JSX.Element;
|
|
178
|
-
displayName: string;
|
|
179
|
-
};
|
|
342
|
+
declare const TrialBadge: React$1.ForwardRefExoticComponent<Omit<BadgeBaseProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
180
343
|
/** Charcoal pill — Professional tier (no gradient; solid secondary Badge) */
|
|
181
|
-
declare
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
344
|
+
declare const ProfessionalBadge: React$1.ForwardRefExoticComponent<Omit<BadgeBaseProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
345
|
+
type ProfessionalBadgeProps = BadgeBaseProps;
|
|
346
|
+
declare namespace ProfessionalBadge {
|
|
347
|
+
type Props = ProfessionalBadgeProps;
|
|
348
|
+
}
|
|
185
349
|
declare const roleBadgeVariants: (props?: ({
|
|
186
350
|
role?: "agent" | "supervisor" | "admin" | "owner" | null | undefined;
|
|
187
351
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
188
352
|
type RoleBadgeRole = NonNullable<VariantProps<typeof roleBadgeVariants>['role']>;
|
|
353
|
+
declare const RoleBadge: React$1.ForwardRefExoticComponent<Omit<RoleBadgeProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
189
354
|
type RoleBadgeProps = BadgeBaseProps & {
|
|
190
355
|
/** The user's role within Aircall. */role: RoleBadgeRole;
|
|
191
356
|
};
|
|
192
|
-
declare
|
|
193
|
-
|
|
357
|
+
declare namespace RoleBadge {
|
|
358
|
+
type Props = RoleBadgeProps;
|
|
359
|
+
}
|
|
360
|
+
//#endregion
|
|
361
|
+
//#region src/components/chatbot-panel-trigger.d.ts
|
|
362
|
+
type ChatbotPanelTriggerProps = Omit<React$1.ComponentProps<typeof Button>, 'variant' | 'size' | 'disabled'> & {
|
|
363
|
+
/** The copy revealed when the trigger expands (hover / focus / pressed). */children?: React$1.ReactNode; /** Leading icon. Defaults to the Aircall logo mark. */
|
|
364
|
+
icon?: React$1.ReactNode;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Floating trigger that shows / hides the chatbot panel.
|
|
368
|
+
*
|
|
369
|
+
* Rests as a 40px icon-only circle and expands into a pill that reveals its
|
|
370
|
+
* label on hover and keyboard focus. The four Figma states map to real CSS
|
|
371
|
+
* pseudo-states: default (rest), hover, focus (`:focus-visible` ring) and
|
|
372
|
+
* pressed (`:active`, dimmed to 60%).
|
|
373
|
+
*/
|
|
374
|
+
declare function ChatbotPanelTrigger({
|
|
375
|
+
children,
|
|
376
|
+
icon,
|
|
194
377
|
className,
|
|
195
|
-
...
|
|
196
|
-
}:
|
|
378
|
+
...buttonProps
|
|
379
|
+
}: ChatbotPanelTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
197
380
|
//#endregion
|
|
198
381
|
//#region src/hooks/use-copy-to-clipboard.d.ts
|
|
199
382
|
interface UseCopyToClipboardOptions {
|
|
@@ -208,6 +391,1134 @@ declare function useCopyToClipboard(value: string, {
|
|
|
208
391
|
copied: boolean;
|
|
209
392
|
};
|
|
210
393
|
//#endregion
|
|
394
|
+
//#region src/components/card-save-bar.d.ts
|
|
395
|
+
/**
|
|
396
|
+
* Animated save/discard bar for card-layout forms. Slides in when the form is dirty, collapses when clean.
|
|
397
|
+
*
|
|
398
|
+
* Reads `isDirty`, `isSubmitting`, and `canSubmit` from context — no props needed for form wiring.
|
|
399
|
+
* Must be placed **inside** the `<form>` element and wrapped by `form.AppForm` (or any `formContext` provider).
|
|
400
|
+
* Pair with `<Card className="overflow-hidden pb-0">` so the bar's border sits flush at the card edge.
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* <form.AppForm>
|
|
404
|
+
* <form.CardSaveBar submitLabel="Save" resetLabel="Discard" />
|
|
405
|
+
* </form.AppForm>
|
|
406
|
+
*/
|
|
407
|
+
type CardSaveBarProps = {
|
|
408
|
+
submitLabel?: string;
|
|
409
|
+
savingLabel?: string;
|
|
410
|
+
resetLabel?: string;
|
|
411
|
+
};
|
|
412
|
+
declare function CardSaveBar({
|
|
413
|
+
submitLabel,
|
|
414
|
+
savingLabel,
|
|
415
|
+
resetLabel
|
|
416
|
+
}: CardSaveBarProps): react_jsx_runtime0.JSX.Element;
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region src/components/submit-button.d.ts
|
|
419
|
+
/**
|
|
420
|
+
* Context-aware submit button. Disables itself when the form cannot be submitted or is submitting.
|
|
421
|
+
* Shows `loadingLabel` (default `"Saving…"`) while submitting.
|
|
422
|
+
*
|
|
423
|
+
* Must be a descendant of `form.AppForm` (or any `formContext` provider).
|
|
424
|
+
* Use for inline/flat layouts where `CardSaveBar` is not needed.
|
|
425
|
+
* Accepts all `Button` props except `type` and `disabled` (managed internally).
|
|
426
|
+
*
|
|
427
|
+
* @example
|
|
428
|
+
* <form.AppForm>
|
|
429
|
+
* <form.SubmitButton loadingLabel="Saving…">Save</form.SubmitButton>
|
|
430
|
+
* </form.AppForm>
|
|
431
|
+
*/
|
|
432
|
+
type SubmitButtonProps = Omit<React.ComponentProps<typeof Button>, 'type' | 'disabled'> & {
|
|
433
|
+
loadingLabel?: string;
|
|
434
|
+
};
|
|
435
|
+
declare function SubmitButton({
|
|
436
|
+
children,
|
|
437
|
+
loadingLabel,
|
|
438
|
+
className,
|
|
439
|
+
...buttonProps
|
|
440
|
+
}: SubmitButtonProps): react_jsx_runtime0.JSX.Element;
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/form/use-form.d.ts
|
|
443
|
+
/**
|
|
444
|
+
* Pre-configured TanStack Form hook for `@aircall/blocks`.
|
|
445
|
+
*
|
|
446
|
+
* Fields are built with the composable, typed `Form*Field` wrappers (e.g. `FormSelectField`),
|
|
447
|
+
* which take the `form` as a prop — there are no registered `fieldComponents`. Only the
|
|
448
|
+
* form-level UI (`SubmitButton`, `CardSaveBar`) is registered, so it's available as
|
|
449
|
+
* `form.SubmitButton` / `form.CardSaveBar` inside `form.AppForm`.
|
|
450
|
+
*
|
|
451
|
+
* `CommonForm` is the full form object — use it directly or extend it:
|
|
452
|
+
* - `CommonForm.useAppForm` — primary hook; types inferred from `defaultValues`
|
|
453
|
+
* - `CommonForm.withForm` — HOC equivalent for higher-order function patterns
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* const form = useForm({ defaultValues: { name: '' }, onSubmit: async ({ value }) => save(value) })
|
|
457
|
+
*/
|
|
458
|
+
declare const CommonForm: {
|
|
459
|
+
useAppForm: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {
|
|
460
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
461
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
462
|
+
}>;
|
|
463
|
+
withForm: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({
|
|
464
|
+
render,
|
|
465
|
+
props
|
|
466
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {
|
|
467
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
468
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
469
|
+
}, TRenderProps>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
470
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {}, {
|
|
471
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
472
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
473
|
+
}>;
|
|
474
|
+
}>>;
|
|
475
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps extends object = {}>({
|
|
476
|
+
render,
|
|
477
|
+
props,
|
|
478
|
+
defaultValues
|
|
479
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {}, {
|
|
480
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
481
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
482
|
+
}, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta>(params: React$1.PropsWithChildren<NoInfer<TRenderProps> & {
|
|
483
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {}, {
|
|
484
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
485
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
486
|
+
}> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {}, {
|
|
487
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
488
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
489
|
+
}>;
|
|
490
|
+
fields: TFields;
|
|
491
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
492
|
+
useTypedAppFormContext: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {
|
|
493
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
494
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
495
|
+
}>;
|
|
496
|
+
extendForm: <const TNewField extends Record<string, React$1.ComponentType<any>> & {}, const TNewForm extends Record<string, React$1.ComponentType<any>> & {
|
|
497
|
+
readonly SubmitButton?: "Error: form component names must be unique — this key already exists in the base form" | undefined;
|
|
498
|
+
readonly CardSaveBar?: "Error: form component names must be unique — this key already exists in the base form" | undefined;
|
|
499
|
+
}>(extension: {
|
|
500
|
+
fieldComponents?: TNewField | undefined;
|
|
501
|
+
formComponents?: TNewForm | undefined;
|
|
502
|
+
}) => {
|
|
503
|
+
useAppForm: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {} & TNewField, {
|
|
504
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
505
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
506
|
+
} & TNewForm>;
|
|
507
|
+
withForm: <TFormData, TOnMount_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1, TRenderProps extends object = {}>({
|
|
508
|
+
render,
|
|
509
|
+
props
|
|
510
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1, TOnChange_1, TOnChangeAsync_1, TOnBlur_1, TOnBlurAsync_1, TOnSubmit_1, TOnSubmitAsync_1, TOnDynamic_1, TOnDynamicAsync_1, TOnServer_1, TSubmitMeta_1, {} & TNewField, {
|
|
511
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
512
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
513
|
+
} & TNewForm, TRenderProps>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
514
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1] ? [TOnMount_1] extends [TOnMount_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1 : TOnMount_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1] ? [TOnChange_1] extends [TOnChange_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1 : TOnChange_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1] ? [TOnChangeAsync_1] extends [TOnChangeAsync_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1 : TOnChangeAsync_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1] ? [TOnBlur_1] extends [TOnBlur_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1 : TOnBlur_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1] ? [TOnBlurAsync_1] extends [TOnBlurAsync_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1 : TOnBlurAsync_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1] ? [TOnSubmit_1] extends [TOnSubmit_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1 : TOnSubmit_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1] ? [TOnSubmitAsync_1] extends [TOnSubmitAsync_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1 : TOnSubmitAsync_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1] ? [TOnDynamic_1] extends [TOnDynamic_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1 : TOnDynamic_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1] ? [TOnDynamicAsync_1] extends [TOnDynamicAsync_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1 : TOnDynamicAsync_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1] ? [TOnServer_1] extends [TOnServer_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1 : TOnServer_1, [unknown] extends [TSubmitMeta_1] ? any : TSubmitMeta_1, [unknown] extends [{} & TNewField] ? any : {} & TNewField, [unknown] extends [{
|
|
515
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
516
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
517
|
+
} & TNewForm] ? any : {
|
|
518
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
519
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
520
|
+
} & TNewForm>;
|
|
521
|
+
}>>;
|
|
522
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2, TRenderProps_1 extends object = {}>({
|
|
523
|
+
render,
|
|
524
|
+
props,
|
|
525
|
+
defaultValues
|
|
526
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField, {
|
|
527
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
528
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
529
|
+
} & TNewForm, TSubmitMeta_2, TRenderProps_1>) => <TFormData, TFields extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1> & {
|
|
530
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2, TOnChange_2, TOnChangeAsync_2, TOnBlur_2, TOnBlurAsync_2, TOnSubmit_2, TOnSubmitAsync_2, TOnDynamic_2, TOnDynamicAsync_2, TOnServer_2, unknown extends TSubmitMeta_2 ? TFormSubmitMeta : TSubmitMeta_2, {} & TNewField, {
|
|
531
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
532
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
533
|
+
} & TNewForm> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2 ? TFormSubmitMeta : TSubmitMeta_2, {} & TNewField, {
|
|
534
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
535
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
536
|
+
} & TNewForm>;
|
|
537
|
+
fields: TFields;
|
|
538
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
539
|
+
useTypedAppFormContext: <TFormData, TOnMount_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3, TOnChange_3, TOnChangeAsync_3, TOnBlur_3, TOnBlurAsync_3, TOnSubmit_3, TOnSubmitAsync_3, TOnDynamic_3, TOnDynamicAsync_3, TOnServer_3, TSubmitMeta_3>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3, TOnChange_3, TOnChangeAsync_3, TOnBlur_3, TOnBlurAsync_3, TOnSubmit_3, TOnSubmitAsync_3, TOnDynamic_3, TOnDynamicAsync_3, TOnServer_3, TSubmitMeta_3, {} & TNewField, {
|
|
540
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
541
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
542
|
+
} & TNewForm>;
|
|
543
|
+
extendForm: <const TNewField_1 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField extends infer T ? { [K in keyof T]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_1 extends Record<string, React$1.ComponentType<any>> & ({
|
|
544
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
545
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
546
|
+
} & TNewForm extends infer T_1 ? { [K_1 in keyof T_1]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
547
|
+
fieldComponents?: TNewField_1 | undefined;
|
|
548
|
+
formComponents?: TNewForm_1 | undefined;
|
|
549
|
+
}) => {
|
|
550
|
+
useAppForm: <TFormData, TOnMount_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_4>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_4, TOnChange_4, TOnChangeAsync_4, TOnBlur_4, TOnBlurAsync_4, TOnSubmit_4, TOnSubmitAsync_4, TOnDynamic_4, TOnDynamicAsync_4, TOnServer_4, TSubmitMeta_4>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_4, TOnChange_4, TOnChangeAsync_4, TOnBlur_4, TOnBlurAsync_4, TOnSubmit_4, TOnSubmitAsync_4, TOnDynamic_4, TOnDynamicAsync_4, TOnServer_4, TSubmitMeta_4, {} & TNewField & TNewField_1, {
|
|
551
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
552
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
553
|
+
} & TNewForm & TNewForm_1>;
|
|
554
|
+
withForm: <TFormData, TOnMount_1_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_1, TRenderProps_2 extends object = {}>({
|
|
555
|
+
render,
|
|
556
|
+
props
|
|
557
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_1, TOnChange_1_1, TOnChangeAsync_1_1, TOnBlur_1_1, TOnBlurAsync_1_1, TOnSubmit_1_1, TOnSubmitAsync_1_1, TOnDynamic_1_1, TOnDynamicAsync_1_1, TOnServer_1_1, TSubmitMeta_1_1, {} & TNewField & TNewField_1, {
|
|
558
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
559
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
560
|
+
} & TNewForm & TNewForm_1, TRenderProps_2>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_2] ? any : TRenderProps_2> & {
|
|
561
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_1] ? [TOnMount_1_1] extends [TOnMount_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_1 : TOnMount_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_1] ? [TOnChange_1_1] extends [TOnChange_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_1 : TOnChange_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_1] ? [TOnChangeAsync_1_1] extends [TOnChangeAsync_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_1 : TOnChangeAsync_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_1] ? [TOnBlur_1_1] extends [TOnBlur_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_1 : TOnBlur_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_1] ? [TOnBlurAsync_1_1] extends [TOnBlurAsync_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_1 : TOnBlurAsync_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_1] ? [TOnSubmit_1_1] extends [TOnSubmit_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_1 : TOnSubmit_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_1] ? [TOnSubmitAsync_1_1] extends [TOnSubmitAsync_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_1 : TOnSubmitAsync_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_1] ? [TOnDynamic_1_1] extends [TOnDynamic_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_1 : TOnDynamic_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_1] ? [TOnDynamicAsync_1_1] extends [TOnDynamicAsync_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_1 : TOnDynamicAsync_1_1, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_1] ? [TOnServer_1_1] extends [TOnServer_1_1 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_1 : TOnServer_1_1, [unknown] extends [TSubmitMeta_1_1] ? any : TSubmitMeta_1_1, [unknown] extends [{} & TNewField & TNewField_1] ? any : {} & TNewField & TNewField_1, [unknown] extends [{
|
|
562
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
563
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
564
|
+
} & TNewForm & TNewForm_1] ? any : {
|
|
565
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
566
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
567
|
+
} & TNewForm & TNewForm_1>;
|
|
568
|
+
}>>;
|
|
569
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_1, TRenderProps_1_1 extends object = {}>({
|
|
570
|
+
render,
|
|
571
|
+
props,
|
|
572
|
+
defaultValues
|
|
573
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1, {
|
|
574
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
575
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
576
|
+
} & TNewForm & TNewForm_1, TSubmitMeta_2_1, TRenderProps_1_1>) => <TFormData, TFields_1 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_1>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_1> & {
|
|
577
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_1, TOnChange_2_1, TOnChangeAsync_2_1, TOnBlur_2_1, TOnBlurAsync_2_1, TOnSubmit_2_1, TOnSubmitAsync_2_1, TOnDynamic_2_1, TOnDynamicAsync_2_1, TOnServer_2_1, unknown extends TSubmitMeta_2_1 ? TFormSubmitMeta_1 : TSubmitMeta_2_1, {} & TNewField & TNewField_1, {
|
|
578
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
579
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
580
|
+
} & TNewForm & TNewForm_1> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_1 ? TFormSubmitMeta_1 : TSubmitMeta_2_1, {} & TNewField & TNewField_1, {
|
|
581
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
582
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
583
|
+
} & TNewForm & TNewForm_1>;
|
|
584
|
+
fields: TFields_1;
|
|
585
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
586
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_1 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_1 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_1>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_1, TOnChange_3_1, TOnChangeAsync_3_1, TOnBlur_3_1, TOnBlurAsync_3_1, TOnSubmit_3_1, TOnSubmitAsync_3_1, TOnDynamic_3_1, TOnDynamicAsync_3_1, TOnServer_3_1, TSubmitMeta_3_1>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_1, TOnChange_3_1, TOnChangeAsync_3_1, TOnBlur_3_1, TOnBlurAsync_3_1, TOnSubmit_3_1, TOnSubmitAsync_3_1, TOnDynamic_3_1, TOnDynamicAsync_3_1, TOnServer_3_1, TSubmitMeta_3_1, {} & TNewField & TNewField_1, {
|
|
587
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
588
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
589
|
+
} & TNewForm & TNewForm_1>;
|
|
590
|
+
extendForm: <const TNewField_2 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 extends infer T_2 ? { [K_2 in keyof T_2]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_2 extends Record<string, React$1.ComponentType<any>> & ({
|
|
591
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
592
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
593
|
+
} & TNewForm & TNewForm_1 extends infer T_3 ? { [K_3 in keyof T_3]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
594
|
+
fieldComponents?: TNewField_2 | undefined;
|
|
595
|
+
formComponents?: TNewForm_2 | undefined;
|
|
596
|
+
}) => {
|
|
597
|
+
useAppForm: <TFormData, TOnMount_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_5>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_5, TOnChange_5, TOnChangeAsync_5, TOnBlur_5, TOnBlurAsync_5, TOnSubmit_5, TOnSubmitAsync_5, TOnDynamic_5, TOnDynamicAsync_5, TOnServer_5, TSubmitMeta_5>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_5, TOnChange_5, TOnChangeAsync_5, TOnBlur_5, TOnBlurAsync_5, TOnSubmit_5, TOnSubmitAsync_5, TOnDynamic_5, TOnDynamicAsync_5, TOnServer_5, TSubmitMeta_5, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
598
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
599
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
600
|
+
} & TNewForm & TNewForm_1 & TNewForm_2>;
|
|
601
|
+
withForm: <TFormData, TOnMount_1_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_2, TRenderProps_3 extends object = {}>({
|
|
602
|
+
render,
|
|
603
|
+
props
|
|
604
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_2, TOnChange_1_2, TOnChangeAsync_1_2, TOnBlur_1_2, TOnBlurAsync_1_2, TOnSubmit_1_2, TOnSubmitAsync_1_2, TOnDynamic_1_2, TOnDynamicAsync_1_2, TOnServer_1_2, TSubmitMeta_1_2, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
605
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
606
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
607
|
+
} & TNewForm & TNewForm_1 & TNewForm_2, TRenderProps_3>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_3] ? any : TRenderProps_3> & {
|
|
608
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_2] ? [TOnMount_1_2] extends [TOnMount_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_2 : TOnMount_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_2] ? [TOnChange_1_2] extends [TOnChange_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_2 : TOnChange_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_2] ? [TOnChangeAsync_1_2] extends [TOnChangeAsync_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_2 : TOnChangeAsync_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_2] ? [TOnBlur_1_2] extends [TOnBlur_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_2 : TOnBlur_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_2] ? [TOnBlurAsync_1_2] extends [TOnBlurAsync_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_2 : TOnBlurAsync_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_2] ? [TOnSubmit_1_2] extends [TOnSubmit_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_2 : TOnSubmit_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_2] ? [TOnSubmitAsync_1_2] extends [TOnSubmitAsync_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_2 : TOnSubmitAsync_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_2] ? [TOnDynamic_1_2] extends [TOnDynamic_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_2 : TOnDynamic_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_2] ? [TOnDynamicAsync_1_2] extends [TOnDynamicAsync_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_2 : TOnDynamicAsync_1_2, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_2] ? [TOnServer_1_2] extends [TOnServer_1_2 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_2 : TOnServer_1_2, [unknown] extends [TSubmitMeta_1_2] ? any : TSubmitMeta_1_2, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2] ? any : {} & TNewField & TNewField_1 & TNewField_2, [unknown] extends [{
|
|
609
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
610
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
611
|
+
} & TNewForm & TNewForm_1 & TNewForm_2] ? any : {
|
|
612
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
613
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
614
|
+
} & TNewForm & TNewForm_1 & TNewForm_2>;
|
|
615
|
+
}>>;
|
|
616
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_2, TRenderProps_1_2 extends object = {}>({
|
|
617
|
+
render,
|
|
618
|
+
props,
|
|
619
|
+
defaultValues
|
|
620
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
621
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
622
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
623
|
+
} & TNewForm & TNewForm_1 & TNewForm_2, TSubmitMeta_2_2, TRenderProps_1_2>) => <TFormData, TFields_2 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_2>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_2> & {
|
|
624
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_2, TOnChange_2_2, TOnChangeAsync_2_2, TOnBlur_2_2, TOnBlurAsync_2_2, TOnSubmit_2_2, TOnSubmitAsync_2_2, TOnDynamic_2_2, TOnDynamicAsync_2_2, TOnServer_2_2, unknown extends TSubmitMeta_2_2 ? TFormSubmitMeta_2 : TSubmitMeta_2_2, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
625
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
626
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
627
|
+
} & TNewForm & TNewForm_1 & TNewForm_2> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_2 ? TFormSubmitMeta_2 : TSubmitMeta_2_2, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
628
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
629
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
630
|
+
} & TNewForm & TNewForm_1 & TNewForm_2>;
|
|
631
|
+
fields: TFields_2;
|
|
632
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
633
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_2 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_2 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_2>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_2, TOnChange_3_2, TOnChangeAsync_3_2, TOnBlur_3_2, TOnBlurAsync_3_2, TOnSubmit_3_2, TOnSubmitAsync_3_2, TOnDynamic_3_2, TOnDynamicAsync_3_2, TOnServer_3_2, TSubmitMeta_3_2>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_2, TOnChange_3_2, TOnChangeAsync_3_2, TOnBlur_3_2, TOnBlurAsync_3_2, TOnSubmit_3_2, TOnSubmitAsync_3_2, TOnDynamic_3_2, TOnDynamicAsync_3_2, TOnServer_3_2, TSubmitMeta_3_2, {} & TNewField & TNewField_1 & TNewField_2, {
|
|
634
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
635
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
636
|
+
} & TNewForm & TNewForm_1 & TNewForm_2>;
|
|
637
|
+
extendForm: <const TNewField_3 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 extends infer T_4 ? { [K_4 in keyof T_4]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_3 extends Record<string, React$1.ComponentType<any>> & ({
|
|
638
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
639
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
640
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 extends infer T_5 ? { [K_5 in keyof T_5]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
641
|
+
fieldComponents?: TNewField_3 | undefined;
|
|
642
|
+
formComponents?: TNewForm_3 | undefined;
|
|
643
|
+
}) => {
|
|
644
|
+
useAppForm: <TFormData, TOnMount_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_6>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_6, TOnChange_6, TOnChangeAsync_6, TOnBlur_6, TOnBlurAsync_6, TOnSubmit_6, TOnSubmitAsync_6, TOnDynamic_6, TOnDynamicAsync_6, TOnServer_6, TSubmitMeta_6>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_6, TOnChange_6, TOnChangeAsync_6, TOnBlur_6, TOnBlurAsync_6, TOnSubmit_6, TOnSubmitAsync_6, TOnDynamic_6, TOnDynamicAsync_6, TOnServer_6, TSubmitMeta_6, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
645
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
646
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
647
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3>;
|
|
648
|
+
withForm: <TFormData, TOnMount_1_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_3, TRenderProps_4 extends object = {}>({
|
|
649
|
+
render,
|
|
650
|
+
props
|
|
651
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_3, TOnChange_1_3, TOnChangeAsync_1_3, TOnBlur_1_3, TOnBlurAsync_1_3, TOnSubmit_1_3, TOnSubmitAsync_1_3, TOnDynamic_1_3, TOnDynamicAsync_1_3, TOnServer_1_3, TSubmitMeta_1_3, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
652
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
653
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
654
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3, TRenderProps_4>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_4] ? any : TRenderProps_4> & {
|
|
655
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_3] ? [TOnMount_1_3] extends [TOnMount_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_3 : TOnMount_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_3] ? [TOnChange_1_3] extends [TOnChange_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_3 : TOnChange_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_3] ? [TOnChangeAsync_1_3] extends [TOnChangeAsync_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_3 : TOnChangeAsync_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_3] ? [TOnBlur_1_3] extends [TOnBlur_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_3 : TOnBlur_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_3] ? [TOnBlurAsync_1_3] extends [TOnBlurAsync_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_3 : TOnBlurAsync_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_3] ? [TOnSubmit_1_3] extends [TOnSubmit_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_3 : TOnSubmit_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_3] ? [TOnSubmitAsync_1_3] extends [TOnSubmitAsync_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_3 : TOnSubmitAsync_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_3] ? [TOnDynamic_1_3] extends [TOnDynamic_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_3 : TOnDynamic_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_3] ? [TOnDynamicAsync_1_3] extends [TOnDynamicAsync_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_3 : TOnDynamicAsync_1_3, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_3] ? [TOnServer_1_3] extends [TOnServer_1_3 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_3 : TOnServer_1_3, [unknown] extends [TSubmitMeta_1_3] ? any : TSubmitMeta_1_3, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, [unknown] extends [{
|
|
656
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
657
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
658
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3] ? any : {
|
|
659
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
660
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
661
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3>;
|
|
662
|
+
}>>;
|
|
663
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_3, TRenderProps_1_3 extends object = {}>({
|
|
664
|
+
render,
|
|
665
|
+
props,
|
|
666
|
+
defaultValues
|
|
667
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
668
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
669
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
670
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3, TSubmitMeta_2_3, TRenderProps_1_3>) => <TFormData, TFields_3 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_3>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_3> & {
|
|
671
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_3, TOnChange_2_3, TOnChangeAsync_2_3, TOnBlur_2_3, TOnBlurAsync_2_3, TOnSubmit_2_3, TOnSubmitAsync_2_3, TOnDynamic_2_3, TOnDynamicAsync_2_3, TOnServer_2_3, unknown extends TSubmitMeta_2_3 ? TFormSubmitMeta_3 : TSubmitMeta_2_3, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
672
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
673
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
674
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_3 ? TFormSubmitMeta_3 : TSubmitMeta_2_3, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
675
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
676
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
677
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3>;
|
|
678
|
+
fields: TFields_3;
|
|
679
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
680
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_3 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_3 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_3>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_3, TOnChange_3_3, TOnChangeAsync_3_3, TOnBlur_3_3, TOnBlurAsync_3_3, TOnSubmit_3_3, TOnSubmitAsync_3_3, TOnDynamic_3_3, TOnDynamicAsync_3_3, TOnServer_3_3, TSubmitMeta_3_3>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_3, TOnChange_3_3, TOnChangeAsync_3_3, TOnBlur_3_3, TOnBlurAsync_3_3, TOnSubmit_3_3, TOnSubmitAsync_3_3, TOnDynamic_3_3, TOnDynamicAsync_3_3, TOnServer_3_3, TSubmitMeta_3_3, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3, {
|
|
681
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
682
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
683
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3>;
|
|
684
|
+
extendForm: <const TNewField_4 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 extends infer T_6 ? { [K_6 in keyof T_6]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_4 extends Record<string, React$1.ComponentType<any>> & ({
|
|
685
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
686
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
687
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 extends infer T_7 ? { [K_7 in keyof T_7]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
688
|
+
fieldComponents?: TNewField_4 | undefined;
|
|
689
|
+
formComponents?: TNewForm_4 | undefined;
|
|
690
|
+
}) => {
|
|
691
|
+
useAppForm: <TFormData, TOnMount_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_7>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_7, TOnChange_7, TOnChangeAsync_7, TOnBlur_7, TOnBlurAsync_7, TOnSubmit_7, TOnSubmitAsync_7, TOnDynamic_7, TOnDynamicAsync_7, TOnServer_7, TSubmitMeta_7>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_7, TOnChange_7, TOnChangeAsync_7, TOnBlur_7, TOnBlurAsync_7, TOnSubmit_7, TOnSubmitAsync_7, TOnDynamic_7, TOnDynamicAsync_7, TOnServer_7, TSubmitMeta_7, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
692
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
693
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
694
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4>;
|
|
695
|
+
withForm: <TFormData, TOnMount_1_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_4, TRenderProps_5 extends object = {}>({
|
|
696
|
+
render,
|
|
697
|
+
props
|
|
698
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_4, TOnChange_1_4, TOnChangeAsync_1_4, TOnBlur_1_4, TOnBlurAsync_1_4, TOnSubmit_1_4, TOnSubmitAsync_1_4, TOnDynamic_1_4, TOnDynamicAsync_1_4, TOnServer_1_4, TSubmitMeta_1_4, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
699
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
700
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
701
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4, TRenderProps_5>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_5] ? any : TRenderProps_5> & {
|
|
702
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_4] ? [TOnMount_1_4] extends [TOnMount_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_4 : TOnMount_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_4] ? [TOnChange_1_4] extends [TOnChange_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_4 : TOnChange_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_4] ? [TOnChangeAsync_1_4] extends [TOnChangeAsync_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_4 : TOnChangeAsync_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_4] ? [TOnBlur_1_4] extends [TOnBlur_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_4 : TOnBlur_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_4] ? [TOnBlurAsync_1_4] extends [TOnBlurAsync_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_4 : TOnBlurAsync_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_4] ? [TOnSubmit_1_4] extends [TOnSubmit_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_4 : TOnSubmit_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_4] ? [TOnSubmitAsync_1_4] extends [TOnSubmitAsync_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_4 : TOnSubmitAsync_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_4] ? [TOnDynamic_1_4] extends [TOnDynamic_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_4 : TOnDynamic_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_4] ? [TOnDynamicAsync_1_4] extends [TOnDynamicAsync_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_4 : TOnDynamicAsync_1_4, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_4] ? [TOnServer_1_4] extends [TOnServer_1_4 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_4 : TOnServer_1_4, [unknown] extends [TSubmitMeta_1_4] ? any : TSubmitMeta_1_4, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, [unknown] extends [{
|
|
703
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
704
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
705
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4] ? any : {
|
|
706
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
707
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
708
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4>;
|
|
709
|
+
}>>;
|
|
710
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_4, TRenderProps_1_4 extends object = {}>({
|
|
711
|
+
render,
|
|
712
|
+
props,
|
|
713
|
+
defaultValues
|
|
714
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
715
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
716
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
717
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4, TSubmitMeta_2_4, TRenderProps_1_4>) => <TFormData, TFields_4 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_4>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_4> & {
|
|
718
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_4, TOnChange_2_4, TOnChangeAsync_2_4, TOnBlur_2_4, TOnBlurAsync_2_4, TOnSubmit_2_4, TOnSubmitAsync_2_4, TOnDynamic_2_4, TOnDynamicAsync_2_4, TOnServer_2_4, unknown extends TSubmitMeta_2_4 ? TFormSubmitMeta_4 : TSubmitMeta_2_4, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
719
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
720
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
721
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_4 ? TFormSubmitMeta_4 : TSubmitMeta_2_4, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
722
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
723
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
724
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4>;
|
|
725
|
+
fields: TFields_4;
|
|
726
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
727
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_4 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_4 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_4>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_4, TOnChange_3_4, TOnChangeAsync_3_4, TOnBlur_3_4, TOnBlurAsync_3_4, TOnSubmit_3_4, TOnSubmitAsync_3_4, TOnDynamic_3_4, TOnDynamicAsync_3_4, TOnServer_3_4, TSubmitMeta_3_4>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_4, TOnChange_3_4, TOnChangeAsync_3_4, TOnBlur_3_4, TOnBlurAsync_3_4, TOnSubmit_3_4, TOnSubmitAsync_3_4, TOnDynamic_3_4, TOnDynamicAsync_3_4, TOnServer_3_4, TSubmitMeta_3_4, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4, {
|
|
728
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
729
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
730
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4>;
|
|
731
|
+
extendForm: <const TNewField_5 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 extends infer T_8 ? { [K_8 in keyof T_8]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_5 extends Record<string, React$1.ComponentType<any>> & ({
|
|
732
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
733
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
734
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 extends infer T_9 ? { [K_9 in keyof T_9]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
735
|
+
fieldComponents?: TNewField_5 | undefined;
|
|
736
|
+
formComponents?: TNewForm_5 | undefined;
|
|
737
|
+
}) => {
|
|
738
|
+
useAppForm: <TFormData, TOnMount_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_8>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_8, TOnChange_8, TOnChangeAsync_8, TOnBlur_8, TOnBlurAsync_8, TOnSubmit_8, TOnSubmitAsync_8, TOnDynamic_8, TOnDynamicAsync_8, TOnServer_8, TSubmitMeta_8>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_8, TOnChange_8, TOnChangeAsync_8, TOnBlur_8, TOnBlurAsync_8, TOnSubmit_8, TOnSubmitAsync_8, TOnDynamic_8, TOnDynamicAsync_8, TOnServer_8, TSubmitMeta_8, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
739
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
740
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
741
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5>;
|
|
742
|
+
withForm: <TFormData, TOnMount_1_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_5, TRenderProps_6 extends object = {}>({
|
|
743
|
+
render,
|
|
744
|
+
props
|
|
745
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_5, TOnChange_1_5, TOnChangeAsync_1_5, TOnBlur_1_5, TOnBlurAsync_1_5, TOnSubmit_1_5, TOnSubmitAsync_1_5, TOnDynamic_1_5, TOnDynamicAsync_1_5, TOnServer_1_5, TSubmitMeta_1_5, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
746
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
747
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
748
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5, TRenderProps_6>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_6] ? any : TRenderProps_6> & {
|
|
749
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_5] ? [TOnMount_1_5] extends [TOnMount_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_5 : TOnMount_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_5] ? [TOnChange_1_5] extends [TOnChange_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_5 : TOnChange_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_5] ? [TOnChangeAsync_1_5] extends [TOnChangeAsync_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_5 : TOnChangeAsync_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_5] ? [TOnBlur_1_5] extends [TOnBlur_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_5 : TOnBlur_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_5] ? [TOnBlurAsync_1_5] extends [TOnBlurAsync_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_5 : TOnBlurAsync_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_5] ? [TOnSubmit_1_5] extends [TOnSubmit_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_5 : TOnSubmit_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_5] ? [TOnSubmitAsync_1_5] extends [TOnSubmitAsync_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_5 : TOnSubmitAsync_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_5] ? [TOnDynamic_1_5] extends [TOnDynamic_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_5 : TOnDynamic_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_5] ? [TOnDynamicAsync_1_5] extends [TOnDynamicAsync_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_5 : TOnDynamicAsync_1_5, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_5] ? [TOnServer_1_5] extends [TOnServer_1_5 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_5 : TOnServer_1_5, [unknown] extends [TSubmitMeta_1_5] ? any : TSubmitMeta_1_5, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, [unknown] extends [{
|
|
750
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
751
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
752
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5] ? any : {
|
|
753
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
754
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
755
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5>;
|
|
756
|
+
}>>;
|
|
757
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_5, TRenderProps_1_5 extends object = {}>({
|
|
758
|
+
render,
|
|
759
|
+
props,
|
|
760
|
+
defaultValues
|
|
761
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
762
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
763
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
764
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5, TSubmitMeta_2_5, TRenderProps_1_5>) => <TFormData, TFields_5 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_5>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_5> & {
|
|
765
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_5, TOnChange_2_5, TOnChangeAsync_2_5, TOnBlur_2_5, TOnBlurAsync_2_5, TOnSubmit_2_5, TOnSubmitAsync_2_5, TOnDynamic_2_5, TOnDynamicAsync_2_5, TOnServer_2_5, unknown extends TSubmitMeta_2_5 ? TFormSubmitMeta_5 : TSubmitMeta_2_5, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
766
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
767
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
768
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_5 ? TFormSubmitMeta_5 : TSubmitMeta_2_5, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
769
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
770
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
771
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5>;
|
|
772
|
+
fields: TFields_5;
|
|
773
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
774
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_5 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_5 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_5>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_5, TOnChange_3_5, TOnChangeAsync_3_5, TOnBlur_3_5, TOnBlurAsync_3_5, TOnSubmit_3_5, TOnSubmitAsync_3_5, TOnDynamic_3_5, TOnDynamicAsync_3_5, TOnServer_3_5, TSubmitMeta_3_5>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_5, TOnChange_3_5, TOnChangeAsync_3_5, TOnBlur_3_5, TOnBlurAsync_3_5, TOnSubmit_3_5, TOnSubmitAsync_3_5, TOnDynamic_3_5, TOnDynamicAsync_3_5, TOnServer_3_5, TSubmitMeta_3_5, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5, {
|
|
775
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
776
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
777
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5>;
|
|
778
|
+
extendForm: <const TNewField_6 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 extends infer T_10 ? { [K_10 in keyof T_10]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_6 extends Record<string, React$1.ComponentType<any>> & ({
|
|
779
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
780
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
781
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 extends infer T_11 ? { [K_11 in keyof T_11]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
782
|
+
fieldComponents?: TNewField_6 | undefined;
|
|
783
|
+
formComponents?: TNewForm_6 | undefined;
|
|
784
|
+
}) => {
|
|
785
|
+
useAppForm: <TFormData, TOnMount_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_9>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_9, TOnChange_9, TOnChangeAsync_9, TOnBlur_9, TOnBlurAsync_9, TOnSubmit_9, TOnSubmitAsync_9, TOnDynamic_9, TOnDynamicAsync_9, TOnServer_9, TSubmitMeta_9>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_9, TOnChange_9, TOnChangeAsync_9, TOnBlur_9, TOnBlurAsync_9, TOnSubmit_9, TOnSubmitAsync_9, TOnDynamic_9, TOnDynamicAsync_9, TOnServer_9, TSubmitMeta_9, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
786
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
787
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
788
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6>;
|
|
789
|
+
withForm: <TFormData, TOnMount_1_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_6, TRenderProps_7 extends object = {}>({
|
|
790
|
+
render,
|
|
791
|
+
props
|
|
792
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_6, TOnChange_1_6, TOnChangeAsync_1_6, TOnBlur_1_6, TOnBlurAsync_1_6, TOnSubmit_1_6, TOnSubmitAsync_1_6, TOnDynamic_1_6, TOnDynamicAsync_1_6, TOnServer_1_6, TSubmitMeta_1_6, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
793
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
794
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
795
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6, TRenderProps_7>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_7] ? any : TRenderProps_7> & {
|
|
796
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_6] ? [TOnMount_1_6] extends [TOnMount_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_6 : TOnMount_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_6] ? [TOnChange_1_6] extends [TOnChange_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_6 : TOnChange_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_6] ? [TOnChangeAsync_1_6] extends [TOnChangeAsync_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_6 : TOnChangeAsync_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_6] ? [TOnBlur_1_6] extends [TOnBlur_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_6 : TOnBlur_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_6] ? [TOnBlurAsync_1_6] extends [TOnBlurAsync_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_6 : TOnBlurAsync_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_6] ? [TOnSubmit_1_6] extends [TOnSubmit_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_6 : TOnSubmit_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_6] ? [TOnSubmitAsync_1_6] extends [TOnSubmitAsync_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_6 : TOnSubmitAsync_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_6] ? [TOnDynamic_1_6] extends [TOnDynamic_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_6 : TOnDynamic_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_6] ? [TOnDynamicAsync_1_6] extends [TOnDynamicAsync_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_6 : TOnDynamicAsync_1_6, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_6] ? [TOnServer_1_6] extends [TOnServer_1_6 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_6 : TOnServer_1_6, [unknown] extends [TSubmitMeta_1_6] ? any : TSubmitMeta_1_6, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, [unknown] extends [{
|
|
797
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
798
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
799
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6] ? any : {
|
|
800
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
801
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
802
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6>;
|
|
803
|
+
}>>;
|
|
804
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_6, TRenderProps_1_6 extends object = {}>({
|
|
805
|
+
render,
|
|
806
|
+
props,
|
|
807
|
+
defaultValues
|
|
808
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
809
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
810
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
811
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6, TSubmitMeta_2_6, TRenderProps_1_6>) => <TFormData, TFields_6 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_6>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_6> & {
|
|
812
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_6, TOnChange_2_6, TOnChangeAsync_2_6, TOnBlur_2_6, TOnBlurAsync_2_6, TOnSubmit_2_6, TOnSubmitAsync_2_6, TOnDynamic_2_6, TOnDynamicAsync_2_6, TOnServer_2_6, unknown extends TSubmitMeta_2_6 ? TFormSubmitMeta_6 : TSubmitMeta_2_6, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
813
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
814
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
815
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_6 ? TFormSubmitMeta_6 : TSubmitMeta_2_6, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
816
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
817
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
818
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6>;
|
|
819
|
+
fields: TFields_6;
|
|
820
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
821
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_6 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_6 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_6>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_6, TOnChange_3_6, TOnChangeAsync_3_6, TOnBlur_3_6, TOnBlurAsync_3_6, TOnSubmit_3_6, TOnSubmitAsync_3_6, TOnDynamic_3_6, TOnDynamicAsync_3_6, TOnServer_3_6, TSubmitMeta_3_6>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_6, TOnChange_3_6, TOnChangeAsync_3_6, TOnBlur_3_6, TOnBlurAsync_3_6, TOnSubmit_3_6, TOnSubmitAsync_3_6, TOnDynamic_3_6, TOnDynamicAsync_3_6, TOnServer_3_6, TSubmitMeta_3_6, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6, {
|
|
822
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
823
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
824
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6>;
|
|
825
|
+
extendForm: <const TNewField_7 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 extends infer T_12 ? { [K_12 in keyof T_12]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_7 extends Record<string, React$1.ComponentType<any>> & ({
|
|
826
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
827
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
828
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 extends infer T_13 ? { [K_13 in keyof T_13]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
829
|
+
fieldComponents?: TNewField_7 | undefined;
|
|
830
|
+
formComponents?: TNewForm_7 | undefined;
|
|
831
|
+
}) => {
|
|
832
|
+
useAppForm: <TFormData, TOnMount_10 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_10 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_10 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_10 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_10 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_10 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_10 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_10 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_10 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_10 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_10>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_10, TOnChange_10, TOnChangeAsync_10, TOnBlur_10, TOnBlurAsync_10, TOnSubmit_10, TOnSubmitAsync_10, TOnDynamic_10, TOnDynamicAsync_10, TOnServer_10, TSubmitMeta_10>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_10, TOnChange_10, TOnChangeAsync_10, TOnBlur_10, TOnBlurAsync_10, TOnSubmit_10, TOnSubmitAsync_10, TOnDynamic_10, TOnDynamicAsync_10, TOnServer_10, TSubmitMeta_10, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
833
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
834
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
835
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7>;
|
|
836
|
+
withForm: <TFormData, TOnMount_1_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_7, TRenderProps_8 extends object = {}>({
|
|
837
|
+
render,
|
|
838
|
+
props
|
|
839
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_7, TOnChange_1_7, TOnChangeAsync_1_7, TOnBlur_1_7, TOnBlurAsync_1_7, TOnSubmit_1_7, TOnSubmitAsync_1_7, TOnDynamic_1_7, TOnDynamicAsync_1_7, TOnServer_1_7, TSubmitMeta_1_7, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
840
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
841
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
842
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7, TRenderProps_8>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_8] ? any : TRenderProps_8> & {
|
|
843
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_7] ? [TOnMount_1_7] extends [TOnMount_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_7 : TOnMount_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_7] ? [TOnChange_1_7] extends [TOnChange_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_7 : TOnChange_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_7] ? [TOnChangeAsync_1_7] extends [TOnChangeAsync_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_7 : TOnChangeAsync_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_7] ? [TOnBlur_1_7] extends [TOnBlur_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_7 : TOnBlur_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_7] ? [TOnBlurAsync_1_7] extends [TOnBlurAsync_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_7 : TOnBlurAsync_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_7] ? [TOnSubmit_1_7] extends [TOnSubmit_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_7 : TOnSubmit_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_7] ? [TOnSubmitAsync_1_7] extends [TOnSubmitAsync_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_7 : TOnSubmitAsync_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_7] ? [TOnDynamic_1_7] extends [TOnDynamic_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_7 : TOnDynamic_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_7] ? [TOnDynamicAsync_1_7] extends [TOnDynamicAsync_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_7 : TOnDynamicAsync_1_7, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_7] ? [TOnServer_1_7] extends [TOnServer_1_7 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_7 : TOnServer_1_7, [unknown] extends [TSubmitMeta_1_7] ? any : TSubmitMeta_1_7, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, [unknown] extends [{
|
|
844
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
845
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
846
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7] ? any : {
|
|
847
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
848
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
849
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7>;
|
|
850
|
+
}>>;
|
|
851
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_7, TRenderProps_1_7 extends object = {}>({
|
|
852
|
+
render,
|
|
853
|
+
props,
|
|
854
|
+
defaultValues
|
|
855
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
856
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
857
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
858
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7, TSubmitMeta_2_7, TRenderProps_1_7>) => <TFormData, TFields_7 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_7>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_7> & {
|
|
859
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_7, TOnChange_2_7, TOnChangeAsync_2_7, TOnBlur_2_7, TOnBlurAsync_2_7, TOnSubmit_2_7, TOnSubmitAsync_2_7, TOnDynamic_2_7, TOnDynamicAsync_2_7, TOnServer_2_7, unknown extends TSubmitMeta_2_7 ? TFormSubmitMeta_7 : TSubmitMeta_2_7, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
860
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
861
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
862
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_7 ? TFormSubmitMeta_7 : TSubmitMeta_2_7, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
863
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
864
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
865
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7>;
|
|
866
|
+
fields: TFields_7;
|
|
867
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
868
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_7 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_7 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_7>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_7, TOnChange_3_7, TOnChangeAsync_3_7, TOnBlur_3_7, TOnBlurAsync_3_7, TOnSubmit_3_7, TOnSubmitAsync_3_7, TOnDynamic_3_7, TOnDynamicAsync_3_7, TOnServer_3_7, TSubmitMeta_3_7>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_7, TOnChange_3_7, TOnChangeAsync_3_7, TOnBlur_3_7, TOnBlurAsync_3_7, TOnSubmit_3_7, TOnSubmitAsync_3_7, TOnDynamic_3_7, TOnDynamicAsync_3_7, TOnServer_3_7, TSubmitMeta_3_7, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7, {
|
|
869
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
870
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
871
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7>;
|
|
872
|
+
extendForm: <const TNewField_8 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 extends infer T_14 ? { [K_14 in keyof T_14]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_8 extends Record<string, React$1.ComponentType<any>> & ({
|
|
873
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
874
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
875
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 extends infer T_15 ? { [K_15 in keyof T_15]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
876
|
+
fieldComponents?: TNewField_8 | undefined;
|
|
877
|
+
formComponents?: TNewForm_8 | undefined;
|
|
878
|
+
}) => {
|
|
879
|
+
useAppForm: <TFormData, TOnMount_11 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_11 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_11 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_11 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_11 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_11 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_11 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_11 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_11 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_11 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_11>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_11, TOnChange_11, TOnChangeAsync_11, TOnBlur_11, TOnBlurAsync_11, TOnSubmit_11, TOnSubmitAsync_11, TOnDynamic_11, TOnDynamicAsync_11, TOnServer_11, TSubmitMeta_11>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_11, TOnChange_11, TOnChangeAsync_11, TOnBlur_11, TOnBlurAsync_11, TOnSubmit_11, TOnSubmitAsync_11, TOnDynamic_11, TOnDynamicAsync_11, TOnServer_11, TSubmitMeta_11, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
880
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
881
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
882
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8>;
|
|
883
|
+
withForm: <TFormData, TOnMount_1_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_8, TRenderProps_9 extends object = {}>({
|
|
884
|
+
render,
|
|
885
|
+
props
|
|
886
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_8, TOnChange_1_8, TOnChangeAsync_1_8, TOnBlur_1_8, TOnBlurAsync_1_8, TOnSubmit_1_8, TOnSubmitAsync_1_8, TOnDynamic_1_8, TOnDynamicAsync_1_8, TOnServer_1_8, TSubmitMeta_1_8, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
887
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
888
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
889
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8, TRenderProps_9>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_9] ? any : TRenderProps_9> & {
|
|
890
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_8] ? [TOnMount_1_8] extends [TOnMount_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_8 : TOnMount_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_8] ? [TOnChange_1_8] extends [TOnChange_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_8 : TOnChange_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_8] ? [TOnChangeAsync_1_8] extends [TOnChangeAsync_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_8 : TOnChangeAsync_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_8] ? [TOnBlur_1_8] extends [TOnBlur_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_8 : TOnBlur_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_8] ? [TOnBlurAsync_1_8] extends [TOnBlurAsync_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_8 : TOnBlurAsync_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_8] ? [TOnSubmit_1_8] extends [TOnSubmit_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_8 : TOnSubmit_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_8] ? [TOnSubmitAsync_1_8] extends [TOnSubmitAsync_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_8 : TOnSubmitAsync_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_8] ? [TOnDynamic_1_8] extends [TOnDynamic_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_8 : TOnDynamic_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_8] ? [TOnDynamicAsync_1_8] extends [TOnDynamicAsync_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_8 : TOnDynamicAsync_1_8, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_8] ? [TOnServer_1_8] extends [TOnServer_1_8 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_8 : TOnServer_1_8, [unknown] extends [TSubmitMeta_1_8] ? any : TSubmitMeta_1_8, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, [unknown] extends [{
|
|
891
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
892
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
893
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8] ? any : {
|
|
894
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
895
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
896
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8>;
|
|
897
|
+
}>>;
|
|
898
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_8, TRenderProps_1_8 extends object = {}>({
|
|
899
|
+
render,
|
|
900
|
+
props,
|
|
901
|
+
defaultValues
|
|
902
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
903
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
904
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
905
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8, TSubmitMeta_2_8, TRenderProps_1_8>) => <TFormData, TFields_8 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_8>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_8> & {
|
|
906
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_8, TOnChange_2_8, TOnChangeAsync_2_8, TOnBlur_2_8, TOnBlurAsync_2_8, TOnSubmit_2_8, TOnSubmitAsync_2_8, TOnDynamic_2_8, TOnDynamicAsync_2_8, TOnServer_2_8, unknown extends TSubmitMeta_2_8 ? TFormSubmitMeta_8 : TSubmitMeta_2_8, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
907
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
908
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
909
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_8 ? TFormSubmitMeta_8 : TSubmitMeta_2_8, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
910
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
911
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
912
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8>;
|
|
913
|
+
fields: TFields_8;
|
|
914
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
915
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_8 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_8 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_8>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_8, TOnChange_3_8, TOnChangeAsync_3_8, TOnBlur_3_8, TOnBlurAsync_3_8, TOnSubmit_3_8, TOnSubmitAsync_3_8, TOnDynamic_3_8, TOnDynamicAsync_3_8, TOnServer_3_8, TSubmitMeta_3_8>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_8, TOnChange_3_8, TOnChangeAsync_3_8, TOnBlur_3_8, TOnBlurAsync_3_8, TOnSubmit_3_8, TOnSubmitAsync_3_8, TOnDynamic_3_8, TOnDynamicAsync_3_8, TOnServer_3_8, TSubmitMeta_3_8, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8, {
|
|
916
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
917
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
918
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8>;
|
|
919
|
+
extendForm: <const TNewField_9 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 extends infer T_16 ? { [K_16 in keyof T_16]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_9 extends Record<string, React$1.ComponentType<any>> & ({
|
|
920
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
921
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
922
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 extends infer T_17 ? { [K_17 in keyof T_17]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
923
|
+
fieldComponents?: TNewField_9 | undefined;
|
|
924
|
+
formComponents?: TNewForm_9 | undefined;
|
|
925
|
+
}) => {
|
|
926
|
+
useAppForm: <TFormData, TOnMount_12 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_12 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_12 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_12 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_12 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_12 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_12 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_12 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_12 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_12 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_12>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_12, TOnChange_12, TOnChangeAsync_12, TOnBlur_12, TOnBlurAsync_12, TOnSubmit_12, TOnSubmitAsync_12, TOnDynamic_12, TOnDynamicAsync_12, TOnServer_12, TSubmitMeta_12>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_12, TOnChange_12, TOnChangeAsync_12, TOnBlur_12, TOnBlurAsync_12, TOnSubmit_12, TOnSubmitAsync_12, TOnDynamic_12, TOnDynamicAsync_12, TOnServer_12, TSubmitMeta_12, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
927
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
928
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
929
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9>;
|
|
930
|
+
withForm: <TFormData, TOnMount_1_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_1_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_1_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_1_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_1_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_1_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_1_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_1_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_1_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_1_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_1_9, TRenderProps_10 extends object = {}>({
|
|
931
|
+
render,
|
|
932
|
+
props
|
|
933
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount_1_9, TOnChange_1_9, TOnChangeAsync_1_9, TOnBlur_1_9, TOnBlurAsync_1_9, TOnSubmit_1_9, TOnSubmitAsync_1_9, TOnDynamic_1_9, TOnDynamicAsync_1_9, TOnServer_1_9, TSubmitMeta_1_9, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
934
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
935
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
936
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9, TRenderProps_10>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps_10] ? any : TRenderProps_10> & {
|
|
937
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount_1_9] ? [TOnMount_1_9] extends [TOnMount_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount_1_9 : TOnMount_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange_1_9] ? [TOnChange_1_9] extends [TOnChange_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange_1_9 : TOnChange_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync_1_9] ? [TOnChangeAsync_1_9] extends [TOnChangeAsync_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync_1_9 : TOnChangeAsync_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur_1_9] ? [TOnBlur_1_9] extends [TOnBlur_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur_1_9 : TOnBlur_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync_1_9] ? [TOnBlurAsync_1_9] extends [TOnBlurAsync_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync_1_9 : TOnBlurAsync_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit_1_9] ? [TOnSubmit_1_9] extends [TOnSubmit_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit_1_9 : TOnSubmit_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync_1_9] ? [TOnSubmitAsync_1_9] extends [TOnSubmitAsync_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync_1_9 : TOnSubmitAsync_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic_1_9] ? [TOnDynamic_1_9] extends [TOnDynamic_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic_1_9 : TOnDynamic_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync_1_9] ? [TOnDynamicAsync_1_9] extends [TOnDynamicAsync_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync_1_9 : TOnDynamicAsync_1_9, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer_1_9] ? [TOnServer_1_9] extends [TOnServer_1_9 & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer_1_9 : TOnServer_1_9, [unknown] extends [TSubmitMeta_1_9] ? any : TSubmitMeta_1_9, [unknown] extends [{} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9] ? any : {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, [unknown] extends [{
|
|
938
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
939
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
940
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9] ? any : {
|
|
941
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
942
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
943
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9>;
|
|
944
|
+
}>>;
|
|
945
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta_2_9, TRenderProps_1_9 extends object = {}>({
|
|
946
|
+
render,
|
|
947
|
+
props,
|
|
948
|
+
defaultValues
|
|
949
|
+
}: _tanstack_react_form0.WithFieldGroupProps<TFieldGroupData, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
950
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
951
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
952
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9, TSubmitMeta_2_9, TRenderProps_1_9>) => <TFormData, TFields_9 extends _tanstack_react_form0.DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | _tanstack_react_form0.FieldsMap<TFormData, TFieldGroupData>, TOnMount_2_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_2_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_2_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_2_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_2_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_2_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_2_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_2_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_2_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_2_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta_9>(params: React$1.PropsWithChildren<NoInfer<TRenderProps_1_9> & {
|
|
953
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_2_9, TOnChange_2_9, TOnChangeAsync_2_9, TOnBlur_2_9, TOnBlurAsync_2_9, TOnSubmit_2_9, TOnSubmitAsync_2_9, TOnDynamic_2_9, TOnDynamicAsync_2_9, TOnServer_2_9, unknown extends TSubmitMeta_2_9 ? TFormSubmitMeta_9 : TSubmitMeta_2_9, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
954
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
955
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
956
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9> | _tanstack_react_form0.AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | _tanstack_react_form0.FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta_2_9 ? TFormSubmitMeta_9 : TSubmitMeta_2_9, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
957
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
958
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
959
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9>;
|
|
960
|
+
fields: TFields_9;
|
|
961
|
+
}>) => ReturnType<React$1.FunctionComponent>;
|
|
962
|
+
useTypedAppFormContext: <TFormData, TOnMount_3_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange_3_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync_3_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur_3_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync_3_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit_3_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync_3_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic_3_9 extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync_3_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer_3_9 extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta_3_9>(_props: _tanstack_react_form0.FormOptions<TFormData, TOnMount_3_9, TOnChange_3_9, TOnChangeAsync_3_9, TOnBlur_3_9, TOnBlurAsync_3_9, TOnSubmit_3_9, TOnSubmitAsync_3_9, TOnDynamic_3_9, TOnDynamicAsync_3_9, TOnServer_3_9, TSubmitMeta_3_9>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount_3_9, TOnChange_3_9, TOnChangeAsync_3_9, TOnBlur_3_9, TOnBlurAsync_3_9, TOnSubmit_3_9, TOnSubmitAsync_3_9, TOnDynamic_3_9, TOnDynamicAsync_3_9, TOnServer_3_9, TSubmitMeta_3_9, {} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9, {
|
|
963
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
964
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
965
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9>;
|
|
966
|
+
extendForm: <const TNewField_10 extends Record<string, React$1.ComponentType<any>> & ({} & TNewField & TNewField_1 & TNewField_2 & TNewField_3 & TNewField_4 & TNewField_5 & TNewField_6 & TNewField_7 & TNewField_8 & TNewField_9 extends infer T_18 ? { [K_18 in keyof T_18]?: "Error: field component names must be unique — this key already exists in the base form" | undefined } : never), const TNewForm_10 extends Record<string, React$1.ComponentType<any>> & ({
|
|
967
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
968
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
969
|
+
} & TNewForm & TNewForm_1 & TNewForm_2 & TNewForm_3 & TNewForm_4 & TNewForm_5 & TNewForm_6 & TNewForm_7 & TNewForm_8 & TNewForm_9 extends infer T_19 ? { [K_19 in keyof T_19]?: "Error: form component names must be unique — this key already exists in the base form" | undefined } : never)>(extension: {
|
|
970
|
+
fieldComponents?: TNewField_10 | undefined;
|
|
971
|
+
formComponents?: TNewForm_10 | undefined;
|
|
972
|
+
}) => any;
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
declare const useForm: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_react_form0.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form0.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {
|
|
985
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
986
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
987
|
+
}>;
|
|
988
|
+
declare const withForm: <TFormData, TOnMount extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_react_form0.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_react_form0.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({
|
|
989
|
+
render,
|
|
990
|
+
props
|
|
991
|
+
}: _tanstack_react_form0.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {
|
|
992
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
993
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
994
|
+
}, TRenderProps>) => React$1.FunctionComponent<React$1.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
995
|
+
form: _tanstack_react_form0.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_react_form0.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {}, {
|
|
996
|
+
readonly SubmitButton: typeof SubmitButton;
|
|
997
|
+
readonly CardSaveBar: typeof CardSaveBar;
|
|
998
|
+
}>;
|
|
999
|
+
}>>;
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region src/form/form-context.d.ts
|
|
1002
|
+
/**
|
|
1003
|
+
* TanStack Form contexts for `@aircall/blocks`.
|
|
1004
|
+
*
|
|
1005
|
+
* - `fieldContext` / `formContext` — pass to `createFormHook` when extending `useForm` with custom field or form components.
|
|
1006
|
+
* - `useFieldContext<T>()` — read the bound field's value, meta, and handlers inside a custom field component.
|
|
1007
|
+
* - `useFormContext()` — read form-level state (isDirty, isSubmitting, …) inside a custom form component.
|
|
1008
|
+
*
|
|
1009
|
+
* @example
|
|
1010
|
+
* // Extending useForm with a custom SwitchField
|
|
1011
|
+
* const { useAppForm } = createFormHook({ fieldContext, formContext, fieldComponents: { SwitchField }, formComponents: {} })
|
|
1012
|
+
*/
|
|
1013
|
+
declare const fieldContext: React$1.Context<_tanstack_react_form0.AnyFieldApi>, formContext: React$1.Context<_tanstack_react_form0.AnyFormApi>, useFieldContext: <TData>() => _tanstack_react_form0.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: () => _tanstack_react_form0.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/components/form-field.d.ts
|
|
1016
|
+
/**
|
|
1017
|
+
* Precisely-typed view of the bound field handed to a wrapper's `children`.
|
|
1018
|
+
* `TData` is `DeepValue<TFormData, TName>` — so `value` and `handleChange` are the field's
|
|
1019
|
+
* real value type, derived from the threaded `form`.
|
|
1020
|
+
*/
|
|
1021
|
+
type TypedField<TData> = {
|
|
1022
|
+
state: {
|
|
1023
|
+
value: TData;
|
|
1024
|
+
meta: {
|
|
1025
|
+
errors: readonly unknown[];
|
|
1026
|
+
isTouched: boolean;
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
handleChange: (value: TData) => void;
|
|
1030
|
+
handleBlur: () => void;
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* Minimal structural view of a `createFormHook` form. `state.values` is the typed source the
|
|
1034
|
+
* wrappers read the field-name union from; `AppField` is the binder we render into.
|
|
1035
|
+
*/
|
|
1036
|
+
type BoundForm = {
|
|
1037
|
+
state: {
|
|
1038
|
+
values: unknown;
|
|
1039
|
+
};
|
|
1040
|
+
AppField: (props: never) => React$1.ReactNode;
|
|
1041
|
+
};
|
|
1042
|
+
type FieldValidator<TFormData, TName> = TName extends DeepKeys<TFormData> ? FieldValidateOrFn<TFormData, TName> : never;
|
|
1043
|
+
type FieldAsyncValidator<TFormData, TName> = TName extends DeepKeys<TFormData> ? FieldAsyncValidateOrFn<TFormData, TName> : never;
|
|
1044
|
+
/** Field validators typed against the field's value — the `validators` prop of every wrapper. */
|
|
1045
|
+
type FormFieldValidators<TFormData, TName> = {
|
|
1046
|
+
onMount?: FieldValidator<TFormData, TName>;
|
|
1047
|
+
onChange?: FieldValidator<TFormData, TName>;
|
|
1048
|
+
onChangeAsync?: FieldAsyncValidator<TFormData, TName>;
|
|
1049
|
+
onChangeAsyncDebounceMs?: number;
|
|
1050
|
+
onBlur?: FieldValidator<TFormData, TName>;
|
|
1051
|
+
onBlurAsync?: FieldAsyncValidator<TFormData, TName>;
|
|
1052
|
+
onBlurAsyncDebounceMs?: number;
|
|
1053
|
+
onSubmit?: FieldValidator<TFormData, TName>;
|
|
1054
|
+
onSubmitAsync?: FieldAsyncValidator<TFormData, TName>;
|
|
1055
|
+
};
|
|
1056
|
+
type FormFieldBaseProps<TData, TControl> = {
|
|
1057
|
+
form: Pick<BoundForm, 'AppField'>;
|
|
1058
|
+
name: string;
|
|
1059
|
+
validators?: unknown;
|
|
1060
|
+
label: string;
|
|
1061
|
+
description?: string; /** Builds the primitive-specific wiring bundle handed to `children`. */
|
|
1062
|
+
buildControl: (field: TypedField<TData>) => TControl;
|
|
1063
|
+
children: (field: TypedField<TData>, control: TControl) => React$1.ReactNode;
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* Shared runtime binder for the per-primitive wrappers (FormSelectField, FormInputField, …).
|
|
1067
|
+
* Field-name/value/validator typing is enforced at each wrapper's boundary; this just renders
|
|
1068
|
+
* the AppField + shared shell. `TData`/`TControl` carry the precise field + bundle shapes through.
|
|
1069
|
+
*/
|
|
1070
|
+
declare function FormFieldBase<TData, TControl>(props: FormFieldBaseProps<TData, TControl>): react_jsx_runtime0.JSX.Element;
|
|
1071
|
+
//#endregion
|
|
1072
|
+
//#region src/components/form-select-field.d.ts
|
|
1073
|
+
/**
|
|
1074
|
+
* Wiring bundles handed to a `FormSelectField` child. Spread each onto the matching
|
|
1075
|
+
* primitive — this encodes the Select-specific quirks (the `'' ↔ null` value dance,
|
|
1076
|
+
* `aria-invalid`) so consumers don't re-derive them.
|
|
1077
|
+
*/
|
|
1078
|
+
type SelectControl = {
|
|
1079
|
+
selectProps: {
|
|
1080
|
+
value: string | null;
|
|
1081
|
+
onValueChange: (value: string | null) => void;
|
|
1082
|
+
};
|
|
1083
|
+
selectTriggerProps: {
|
|
1084
|
+
onBlur: () => void;
|
|
1085
|
+
'aria-invalid': true | undefined;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
type FormSelectFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1089
|
+
/** The form instance from `useForm()` — threaded as a prop so `name`/`validators` are typed. */form: TForm;
|
|
1090
|
+
name: TName;
|
|
1091
|
+
label: string;
|
|
1092
|
+
description?: string;
|
|
1093
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>; /** Compose the Select yourself; spread the bundles. Trigger/content stay fully customizable. */
|
|
1094
|
+
children: (field: TypedField<string>, control: SelectControl) => React$1.ReactNode;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Select field wrapper. Owns the binding + shared `Field/Label/Error` shell, and hands the
|
|
1098
|
+
* consumer pre-wired `selectProps` / `selectTriggerProps` to spread onto `@aircall/ds` Select
|
|
1099
|
+
* primitives — trigger, value, and content stay fully composable (Combobox-style triggers too).
|
|
1100
|
+
*
|
|
1101
|
+
* Typing is derived from the threaded `form`: `name` is restricted to the form's **string**
|
|
1102
|
+
* fields, and `validators` infer the field value — identical to using `form.AppField` directly.
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* <FormSelectField form={form} name="language" label="Language" validators={{ onChange }}>
|
|
1106
|
+
* {(field, { selectProps, selectTriggerProps }) => (
|
|
1107
|
+
* <Select {...selectProps}>
|
|
1108
|
+
* <SelectTrigger {...selectTriggerProps}><SelectValue placeholder="Pick one" /></SelectTrigger>
|
|
1109
|
+
* <SelectContent>{options}</SelectContent>
|
|
1110
|
+
* </Select>
|
|
1111
|
+
* )}
|
|
1112
|
+
* </FormSelectField>
|
|
1113
|
+
*/
|
|
1114
|
+
declare function FormSelectField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormSelectFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region src/components/form-input-field.d.ts
|
|
1117
|
+
/**
|
|
1118
|
+
* Wiring bundle handed to a `FormInputField` child. Spread `inputProps` onto a DS `Input`
|
|
1119
|
+
* (or any native-input-shaped control) — value/onChange/onBlur/aria are pre-wired.
|
|
1120
|
+
*/
|
|
1121
|
+
type InputControl = {
|
|
1122
|
+
inputProps: {
|
|
1123
|
+
value: string;
|
|
1124
|
+
onChange: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
1125
|
+
onBlur: () => void;
|
|
1126
|
+
'aria-invalid': true | undefined;
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
type FormInputFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1130
|
+
form: TForm;
|
|
1131
|
+
name: TName;
|
|
1132
|
+
label: string;
|
|
1133
|
+
description?: string;
|
|
1134
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1135
|
+
children: (field: TypedField<string>, control: InputControl) => React$1.ReactNode;
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* Text-input field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1139
|
+
* with an `inputProps` bundle. Compose the input yourself (add adornments, counters, prefixes).
|
|
1140
|
+
* `name` is restricted to the form's **string** fields.
|
|
1141
|
+
*
|
|
1142
|
+
* @example
|
|
1143
|
+
* <FormInputField form={form} name="email" label="Email" validators={{ onChange }}>
|
|
1144
|
+
* {(field, { inputProps }) => <Input {...inputProps} type="email" placeholder="you@co.com" />}
|
|
1145
|
+
* </FormInputField>
|
|
1146
|
+
*/
|
|
1147
|
+
declare function FormInputField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormInputFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1148
|
+
//#endregion
|
|
1149
|
+
//#region src/components/form-combobox-field.d.ts
|
|
1150
|
+
/**
|
|
1151
|
+
* Wiring bundles handed to a `FormComboboxField` child. The Combobox is structurally different
|
|
1152
|
+
* from a Select (search input instead of a trigger), so the bundles target its parts:
|
|
1153
|
+
* `comboboxProps` on the `<Combobox>` root, `comboboxInputProps` on `<ComboboxInput>`.
|
|
1154
|
+
*/
|
|
1155
|
+
type ComboboxControl = {
|
|
1156
|
+
comboboxProps: {
|
|
1157
|
+
value: string | null;
|
|
1158
|
+
onValueChange: (value: string | null) => void;
|
|
1159
|
+
};
|
|
1160
|
+
comboboxInputProps: {
|
|
1161
|
+
onBlur: () => void;
|
|
1162
|
+
'aria-invalid': true | undefined;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
type FormComboboxFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1166
|
+
form: TForm;
|
|
1167
|
+
name: TName;
|
|
1168
|
+
label: string;
|
|
1169
|
+
description?: string;
|
|
1170
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1171
|
+
children: (field: TypedField<string>, control: ComboboxControl) => React$1.ReactNode;
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* Combobox (searchable single-select) field wrapper for **string-valued** fields. Same threaded-
|
|
1175
|
+
* `form` typing and shared shell as the other wrappers; the render-prop hands you `comboboxProps`
|
|
1176
|
+
* and `comboboxInputProps` to spread, leaving the input, trigger, grouping, and item rendering
|
|
1177
|
+
* entirely up to you — the case that motivated the render-prop API.
|
|
1178
|
+
*
|
|
1179
|
+
* @example
|
|
1180
|
+
* <FormComboboxField form={form} name="framework" label="Framework" validators={{ onChange }}>
|
|
1181
|
+
* {(field, { comboboxProps, comboboxInputProps }) => (
|
|
1182
|
+
* <Combobox items={FRAMEWORKS} {...comboboxProps}>
|
|
1183
|
+
* <ComboboxInput {...comboboxInputProps} placeholder="Search…" />
|
|
1184
|
+
* <ComboboxContent>
|
|
1185
|
+
* <ComboboxEmpty>No match.</ComboboxEmpty>
|
|
1186
|
+
* <ComboboxList>{item => <ComboboxItem key={item} value={item}>{item}</ComboboxItem>}</ComboboxList>
|
|
1187
|
+
* </ComboboxContent>
|
|
1188
|
+
* </Combobox>
|
|
1189
|
+
* )}
|
|
1190
|
+
* </FormComboboxField>
|
|
1191
|
+
*/
|
|
1192
|
+
declare function FormComboboxField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormComboboxFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region src/components/form-multi-combobox-field.d.ts
|
|
1195
|
+
/**
|
|
1196
|
+
* Wiring bundles handed to a `FormMultiComboboxField` child. Spread `comboboxProps` onto the
|
|
1197
|
+
* `Combobox` root and `comboboxInputProps` onto its input — value/onValueChange live on the
|
|
1198
|
+
* root, while blur/`aria-invalid` belong to the input.
|
|
1199
|
+
*/
|
|
1200
|
+
type MultiComboboxControl = {
|
|
1201
|
+
comboboxProps: {
|
|
1202
|
+
value: string[];
|
|
1203
|
+
onValueChange: (value: string[]) => void;
|
|
1204
|
+
};
|
|
1205
|
+
comboboxInputProps: {
|
|
1206
|
+
onBlur: () => void;
|
|
1207
|
+
'aria-invalid': true | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
type FormMultiComboboxFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string[]>> = {
|
|
1211
|
+
form: TForm;
|
|
1212
|
+
name: TName;
|
|
1213
|
+
label: string;
|
|
1214
|
+
description?: string;
|
|
1215
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1216
|
+
children: (field: TypedField<string[]>, control: MultiComboboxControl) => React$1.ReactNode;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Multi-select combobox field wrapper — same threaded-`form` typing and shared shell as
|
|
1220
|
+
* `FormSelectField`, with `comboboxProps` / `comboboxInputProps` bundles. `name` is restricted
|
|
1221
|
+
* to the form's **string[]** fields — a string/number `name` is a type error.
|
|
1222
|
+
*
|
|
1223
|
+
* @example
|
|
1224
|
+
* <FormMultiComboboxField form={form} name="tags" label="Tags" validators={{ onChange }}>
|
|
1225
|
+
* {(field, { comboboxProps, comboboxInputProps }) => (
|
|
1226
|
+
* <Combobox multiple items={items} {...comboboxProps}>
|
|
1227
|
+
* <ComboboxChips><ComboboxInput {...comboboxInputProps} /></ComboboxChips>
|
|
1228
|
+
* </Combobox>
|
|
1229
|
+
* )}
|
|
1230
|
+
* </FormMultiComboboxField>
|
|
1231
|
+
*/
|
|
1232
|
+
declare function FormMultiComboboxField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string[]>>(props: FormMultiComboboxFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1233
|
+
//#endregion
|
|
1234
|
+
//#region src/components/form-textarea-field.d.ts
|
|
1235
|
+
/**
|
|
1236
|
+
* Wiring bundle handed to a `FormTextareaField` child. Spread `textareaProps` onto a DS
|
|
1237
|
+
* `Textarea` (or any native-textarea-shaped control) — value/onChange/onBlur/aria are pre-wired.
|
|
1238
|
+
*/
|
|
1239
|
+
type TextareaControl = {
|
|
1240
|
+
textareaProps: {
|
|
1241
|
+
value: string;
|
|
1242
|
+
onChange: (event: React$1.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1243
|
+
onBlur: () => void;
|
|
1244
|
+
'aria-invalid': true | undefined;
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
type FormTextareaFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1248
|
+
form: TForm;
|
|
1249
|
+
name: TName;
|
|
1250
|
+
label: string;
|
|
1251
|
+
description?: string;
|
|
1252
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1253
|
+
children: (field: TypedField<string>, control: TextareaControl) => React$1.ReactNode;
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* Multiline text-input field wrapper — same threaded-`form` typing and shared shell as
|
|
1257
|
+
* `FormSelectField`, with a `textareaProps` bundle. Compose the textarea yourself (rows,
|
|
1258
|
+
* counters, auto-grow). `name` is restricted to the form's **string** fields.
|
|
1259
|
+
*
|
|
1260
|
+
* @example
|
|
1261
|
+
* <FormTextareaField form={form} name="bio" label="Bio" validators={{ onChange }}>
|
|
1262
|
+
* {(field, { textareaProps }) => <Textarea {...textareaProps} rows={4} />}
|
|
1263
|
+
* </FormTextareaField>
|
|
1264
|
+
*/
|
|
1265
|
+
declare function FormTextareaField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormTextareaFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1266
|
+
//#endregion
|
|
1267
|
+
//#region src/components/form-radio-group-field.d.ts
|
|
1268
|
+
/**
|
|
1269
|
+
* Wiring bundle handed to a `FormRadioGroupField` child. Spread `radioGroupProps` onto a DS
|
|
1270
|
+
* `RadioGroup` — this encodes the radio-specific quirks (the `'' ↔ null` value dance,
|
|
1271
|
+
* `aria-invalid`) so consumers don't re-derive them.
|
|
1272
|
+
*/
|
|
1273
|
+
type RadioGroupControl = {
|
|
1274
|
+
radioGroupProps: {
|
|
1275
|
+
value: string | null;
|
|
1276
|
+
onValueChange: (value: string | null) => void;
|
|
1277
|
+
onBlur: () => void;
|
|
1278
|
+
'aria-invalid': true | undefined;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
type FormRadioGroupFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1282
|
+
form: TForm;
|
|
1283
|
+
name: TName;
|
|
1284
|
+
label: string;
|
|
1285
|
+
description?: string;
|
|
1286
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1287
|
+
children: (field: TypedField<string>, control: RadioGroupControl) => React$1.ReactNode;
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* Radio-group field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1291
|
+
* with a `radioGroupProps` bundle. Compose the items yourself. `name` is restricted to the
|
|
1292
|
+
* form's **string** fields.
|
|
1293
|
+
*
|
|
1294
|
+
* @example
|
|
1295
|
+
* <FormRadioGroupField form={form} name="plan" label="Plan" validators={{ onChange }}>
|
|
1296
|
+
* {(field, { radioGroupProps }) => (
|
|
1297
|
+
* <RadioGroup {...radioGroupProps}>
|
|
1298
|
+
* <RadioGroupItem value="a" />
|
|
1299
|
+
* </RadioGroup>
|
|
1300
|
+
* )}
|
|
1301
|
+
* </FormRadioGroupField>
|
|
1302
|
+
*/
|
|
1303
|
+
declare function FormRadioGroupField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormRadioGroupFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region src/components/form-otp-field.d.ts
|
|
1306
|
+
/**
|
|
1307
|
+
* Wiring bundle handed to a `FormOTPField` child. Spread `otpProps` onto a DS `InputOTP` —
|
|
1308
|
+
* value/onChange/onBlur/aria are pre-wired (`InputOTP` reports its value as a plain string).
|
|
1309
|
+
*/
|
|
1310
|
+
type OTPControl = {
|
|
1311
|
+
otpProps: {
|
|
1312
|
+
value: string;
|
|
1313
|
+
onChange: (value: string) => void;
|
|
1314
|
+
onBlur: () => void;
|
|
1315
|
+
'aria-invalid': true | undefined;
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
type FormOTPFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>> = {
|
|
1319
|
+
form: TForm;
|
|
1320
|
+
name: TName;
|
|
1321
|
+
label: string;
|
|
1322
|
+
description?: string;
|
|
1323
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1324
|
+
children: (field: TypedField<string>, control: OTPControl) => React$1.ReactNode;
|
|
1325
|
+
};
|
|
1326
|
+
/**
|
|
1327
|
+
* One-time-code field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1328
|
+
* with an `otpProps` bundle. Compose the slots yourself. `name` is restricted to the form's
|
|
1329
|
+
* **string** fields.
|
|
1330
|
+
*
|
|
1331
|
+
* @example
|
|
1332
|
+
* <FormOTPField form={form} name="code" label="Code" validators={{ onChange }}>
|
|
1333
|
+
* {(field, { otpProps }) => <InputOTP maxLength={6} {...otpProps}>{slots}</InputOTP>}
|
|
1334
|
+
* </FormOTPField>
|
|
1335
|
+
*/
|
|
1336
|
+
declare function FormOTPField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string>>(props: FormOTPFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1337
|
+
//#endregion
|
|
1338
|
+
//#region src/components/form-switch-field.d.ts
|
|
1339
|
+
/**
|
|
1340
|
+
* Wiring bundle handed to a `FormSwitchField` child. Spread `switchProps` onto a DS `Switch` —
|
|
1341
|
+
* checked/onCheckedChange/onBlur/aria are pre-wired.
|
|
1342
|
+
*/
|
|
1343
|
+
type SwitchControl = {
|
|
1344
|
+
switchProps: {
|
|
1345
|
+
checked: boolean;
|
|
1346
|
+
onCheckedChange: (checked: boolean) => void;
|
|
1347
|
+
onBlur: () => void;
|
|
1348
|
+
'aria-invalid': true | undefined;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
type FormSwitchFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], boolean>> = {
|
|
1352
|
+
form: TForm;
|
|
1353
|
+
name: TName;
|
|
1354
|
+
label: string;
|
|
1355
|
+
description?: string;
|
|
1356
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1357
|
+
children: (field: TypedField<boolean>, control: SwitchControl) => React$1.ReactNode;
|
|
1358
|
+
};
|
|
1359
|
+
/**
|
|
1360
|
+
* Toggle field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1361
|
+
* with a `switchProps` bundle. `name` is restricted to the form's **boolean** fields — a
|
|
1362
|
+
* string/number `name` is a type error.
|
|
1363
|
+
*
|
|
1364
|
+
* @example
|
|
1365
|
+
* <FormSwitchField form={form} name="enabled" label="Enabled" validators={{ onChange }}>
|
|
1366
|
+
* {(field, { switchProps }) => <Switch {...switchProps} />}
|
|
1367
|
+
* </FormSwitchField>
|
|
1368
|
+
*/
|
|
1369
|
+
declare function FormSwitchField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], boolean>>(props: FormSwitchFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/components/form-number-field.d.ts
|
|
1372
|
+
/**
|
|
1373
|
+
* Wiring bundle handed to a `FormNumberField` child. Spread `numberProps` onto a DS `Input`
|
|
1374
|
+
* with `type="number"` — value/onChange/onBlur/aria are pre-wired (empty input coerces to `0`).
|
|
1375
|
+
*/
|
|
1376
|
+
type NumberControl = {
|
|
1377
|
+
numberProps: {
|
|
1378
|
+
value: number;
|
|
1379
|
+
onChange: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
1380
|
+
onBlur: () => void;
|
|
1381
|
+
'aria-invalid': true | undefined;
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
type FormNumberFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], number>> = {
|
|
1385
|
+
form: TForm;
|
|
1386
|
+
name: TName;
|
|
1387
|
+
label: string;
|
|
1388
|
+
description?: string;
|
|
1389
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1390
|
+
children: (field: TypedField<number>, control: NumberControl) => React$1.ReactNode;
|
|
1391
|
+
};
|
|
1392
|
+
/**
|
|
1393
|
+
* Numeric-input field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1394
|
+
* with a `numberProps` bundle. `name` is restricted to the form's **number** fields — a
|
|
1395
|
+
* string/boolean `name` is a type error.
|
|
1396
|
+
*
|
|
1397
|
+
* @example
|
|
1398
|
+
* <FormNumberField form={form} name="age" label="Age" validators={{ onChange }}>
|
|
1399
|
+
* {(field, { numberProps }) => <Input type="number" {...numberProps} />}
|
|
1400
|
+
* </FormNumberField>
|
|
1401
|
+
*/
|
|
1402
|
+
declare function FormNumberField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], number>>(props: FormNumberFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1403
|
+
//#endregion
|
|
1404
|
+
//#region src/components/form-slider-field.d.ts
|
|
1405
|
+
/**
|
|
1406
|
+
* Wiring bundle handed to a `FormSliderField` child. Spread `sliderProps` onto a DS `Slider` —
|
|
1407
|
+
* this encodes the single-value ↔ `number[]` dance the underlying range primitive expects.
|
|
1408
|
+
*/
|
|
1409
|
+
type SliderControl = {
|
|
1410
|
+
sliderProps: {
|
|
1411
|
+
value: number[];
|
|
1412
|
+
onValueChange: (value: number[]) => void;
|
|
1413
|
+
onBlur: () => void;
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
type FormSliderFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], number>> = {
|
|
1417
|
+
form: TForm;
|
|
1418
|
+
name: TName;
|
|
1419
|
+
label: string;
|
|
1420
|
+
description?: string;
|
|
1421
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1422
|
+
children: (field: TypedField<number>, control: SliderControl) => React$1.ReactNode;
|
|
1423
|
+
};
|
|
1424
|
+
/**
|
|
1425
|
+
* Slider field wrapper — same threaded-`form` typing and shared shell as `FormSelectField`,
|
|
1426
|
+
* with a `sliderProps` bundle. `name` is restricted to the form's **number** fields; the bundle
|
|
1427
|
+
* converts to/from the `number[]` the range primitive uses internally.
|
|
1428
|
+
*
|
|
1429
|
+
* @example
|
|
1430
|
+
* <FormSliderField form={form} name="volume" label="Volume" validators={{ onChange }}>
|
|
1431
|
+
* {(field, { sliderProps }) => <Slider min={0} max={100} step={1} {...sliderProps} />}
|
|
1432
|
+
* </FormSliderField>
|
|
1433
|
+
*/
|
|
1434
|
+
declare function FormSliderField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], number>>(props: FormSliderFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1435
|
+
//#endregion
|
|
1436
|
+
//#region src/components/form-toggle-group-field.d.ts
|
|
1437
|
+
/**
|
|
1438
|
+
* Wiring bundle handed to a `FormToggleGroupField` child. Spread `toggleGroupProps` onto a DS
|
|
1439
|
+
* `ToggleGroup` — this encodes the single-value ↔ `string[]` dance the multi-select primitive
|
|
1440
|
+
* expects (last pressed item wins; cleared selection maps to `null`).
|
|
1441
|
+
*/
|
|
1442
|
+
type ToggleGroupControl = {
|
|
1443
|
+
toggleGroupProps: {
|
|
1444
|
+
value: string[];
|
|
1445
|
+
onValueChange: (value: string[]) => void;
|
|
1446
|
+
onBlur: () => void;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
type FormToggleGroupFieldProps<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string | null>> = {
|
|
1450
|
+
form: TForm;
|
|
1451
|
+
name: TName;
|
|
1452
|
+
label: string;
|
|
1453
|
+
description?: string;
|
|
1454
|
+
validators?: FormFieldValidators<TForm['state']['values'], TName>;
|
|
1455
|
+
children: (field: TypedField<string | null>, control: ToggleGroupControl) => React$1.ReactNode;
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* Single-select toggle-group field wrapper — same threaded-`form` typing and shared shell as
|
|
1459
|
+
* `FormSelectField`, with a `toggleGroupProps` bundle. `name` is restricted to the form's
|
|
1460
|
+
* **string | null** fields; the bundle converts to/from the `string[]` the multi-select
|
|
1461
|
+
* primitive uses internally.
|
|
1462
|
+
*
|
|
1463
|
+
* @example
|
|
1464
|
+
* <FormToggleGroupField form={form} name="align" label="Align" validators={{ onChange }}>
|
|
1465
|
+
* {(field, { toggleGroupProps }) => (
|
|
1466
|
+
* <ToggleGroup {...toggleGroupProps}>
|
|
1467
|
+
* <ToggleGroupItem value="a">A</ToggleGroupItem>
|
|
1468
|
+
* </ToggleGroup>
|
|
1469
|
+
* )}
|
|
1470
|
+
* </FormToggleGroupField>
|
|
1471
|
+
*/
|
|
1472
|
+
declare function FormToggleGroupField<TForm extends BoundForm, TName extends DeepKeysOfType<TForm['state']['values'], string | null>>(props: FormToggleGroupFieldProps<TForm, TName>): react_jsx_runtime0.JSX.Element;
|
|
1473
|
+
//#endregion
|
|
1474
|
+
//#region src/form/field-errors.d.ts
|
|
1475
|
+
/**
|
|
1476
|
+
* Normalize a TanStack Form field's `meta.errors` into the `{ message }[]` shape
|
|
1477
|
+
* that `@aircall/ds`'s `FieldError` expects.
|
|
1478
|
+
*
|
|
1479
|
+
* Errors come from two validator sources with different shapes:
|
|
1480
|
+
* - per-field validators return plain strings (e.g. `'Email is required'`)
|
|
1481
|
+
* - standard-schema validators (e.g. Zod on `useForm`) return issue **objects** with a `message`
|
|
1482
|
+
*
|
|
1483
|
+
* Both must render their human-readable text — never `"[object Object]"`.
|
|
1484
|
+
*/
|
|
1485
|
+
declare function toFieldErrors(errors: readonly unknown[]): Array<{
|
|
1486
|
+
message: string;
|
|
1487
|
+
}>;
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region src/components/save-bar.d.ts
|
|
1490
|
+
/**
|
|
1491
|
+
* Headless animated save/discard bar. Slides in when `isDirty`, collapses when clean.
|
|
1492
|
+
*
|
|
1493
|
+
* Unlike `CardSaveBar`, this component is form-library agnostic — wire it manually via `form.Subscribe`.
|
|
1494
|
+
* Use when you need the save-bar UI outside of a card layout, or with a custom form setup.
|
|
1495
|
+
*
|
|
1496
|
+
* @example
|
|
1497
|
+
* <form.Subscribe selector={s => ({ isDirty: s.isDirty, isSubmitting: s.isSubmitting, canSubmit: s.canSubmit })}>
|
|
1498
|
+
* {state => <SaveBar {...state} onReset={() => form.reset()} />}
|
|
1499
|
+
* </form.Subscribe>
|
|
1500
|
+
*/
|
|
1501
|
+
type SaveBarProps = {
|
|
1502
|
+
isDirty: boolean;
|
|
1503
|
+
isSubmitting: boolean;
|
|
1504
|
+
canSubmit: boolean;
|
|
1505
|
+
onReset: () => void;
|
|
1506
|
+
submitLabel?: string;
|
|
1507
|
+
savingLabel?: string;
|
|
1508
|
+
resetLabel?: string;
|
|
1509
|
+
className?: string;
|
|
1510
|
+
};
|
|
1511
|
+
declare function SaveBar({
|
|
1512
|
+
isDirty,
|
|
1513
|
+
isSubmitting,
|
|
1514
|
+
canSubmit,
|
|
1515
|
+
onReset,
|
|
1516
|
+
submitLabel,
|
|
1517
|
+
savingLabel,
|
|
1518
|
+
resetLabel,
|
|
1519
|
+
className
|
|
1520
|
+
}: SaveBarProps): react_jsx_runtime0.JSX.Element;
|
|
1521
|
+
//#endregion
|
|
211
1522
|
//#region src/components/dashboard-sidebar-nav.d.ts
|
|
212
1523
|
type DashboardSidebarNavSubmenuSeparator = {
|
|
213
1524
|
kind: 'separator';
|
|
@@ -222,13 +1533,13 @@ type DashboardSidebarNavSubmenuLink = {
|
|
|
222
1533
|
label: string;
|
|
223
1534
|
href?: string;
|
|
224
1535
|
isActive?: boolean; /** Trailing badge — rendered inside <DropdownMenuAddon>. */
|
|
225
|
-
badge?: React.ReactNode;
|
|
1536
|
+
badge?: React$1.ReactNode;
|
|
226
1537
|
};
|
|
227
1538
|
type DashboardSidebarNavSubmenuItem = DashboardSidebarNavSubmenuLink | DashboardSidebarNavSubmenuSeparator | DashboardSidebarNavSubmenuGroupLabel;
|
|
228
1539
|
type DashboardSidebarNavItemBase = {
|
|
229
1540
|
/** Stable key. */id: string;
|
|
230
1541
|
label: string; /** Leading icon (required). */
|
|
231
|
-
icon: React.ReactNode;
|
|
1542
|
+
icon: React$1.ReactNode;
|
|
232
1543
|
isActive?: boolean;
|
|
233
1544
|
/**
|
|
234
1545
|
* Mutes the item visually (opacity, no hover) without removing interactivity.
|
|
@@ -239,19 +1550,19 @@ type DashboardSidebarNavItemBase = {
|
|
|
239
1550
|
* Trailing badge (<ProfessionalBadge />, <BetaBadge />, etc.).
|
|
240
1551
|
* Rendered inside <DashboardSidebarMenuAddon>. Hidden when collapsed.
|
|
241
1552
|
*/
|
|
242
|
-
badge?: React.ReactNode;
|
|
1553
|
+
badge?: React$1.ReactNode;
|
|
243
1554
|
/**
|
|
244
1555
|
* Right-side action icon.
|
|
245
1556
|
* - Active submenu items default to <ChevronRight />.
|
|
246
1557
|
* - Disabled submenu items default to nothing — pass e.g. <LockKeyhole /> explicitly.
|
|
247
1558
|
*/
|
|
248
|
-
action?: React.ReactNode;
|
|
1559
|
+
action?: React$1.ReactNode;
|
|
249
1560
|
/**
|
|
250
1561
|
* Tooltip shown on hover. When set, wraps the button in a Tooltip.
|
|
251
1562
|
* Pairs naturally with disabled + a lock action icon.
|
|
252
1563
|
* Requires <TooltipProvider> in the tree (the DashboardSidebar stories decorator provides one).
|
|
253
1564
|
*/
|
|
254
|
-
tooltip?: React.ReactNode;
|
|
1565
|
+
tooltip?: React$1.ReactNode;
|
|
255
1566
|
};
|
|
256
1567
|
/** Navigates on click. Renders as <a> (or custom element via `renderLink`). */
|
|
257
1568
|
type DashboardSidebarNavItemLink = DashboardSidebarNavItemBase & {
|
|
@@ -285,7 +1596,7 @@ type DashboardSidebarNavProps = {
|
|
|
285
1596
|
* @example
|
|
286
1597
|
* renderLink={(href) => <Link to={href} />}
|
|
287
1598
|
*/
|
|
288
|
-
renderLink?: (href: string) => React.ReactElement;
|
|
1599
|
+
renderLink?: (href: string) => React$1.ReactElement;
|
|
289
1600
|
};
|
|
290
1601
|
declare function DashboardSidebarNav({
|
|
291
1602
|
groups,
|
|
@@ -293,58 +1604,63 @@ declare function DashboardSidebarNav({
|
|
|
293
1604
|
}: DashboardSidebarNavProps): react_jsx_runtime0.JSX.Element;
|
|
294
1605
|
//#endregion
|
|
295
1606
|
//#region src/components/dashboard-sidebar.d.ts
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
declare
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
declare
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
1607
|
+
declare const DashboardSidebarProvider: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarProviderProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1608
|
+
interface DashboardSidebarProviderProps extends React$1.ComponentProps<typeof SidebarProvider> {}
|
|
1609
|
+
declare namespace DashboardSidebarProvider {
|
|
1610
|
+
type Props = DashboardSidebarProviderProps;
|
|
1611
|
+
}
|
|
1612
|
+
declare const DashboardSidebar: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1613
|
+
interface DashboardSidebarProps extends React$1.ComponentProps<'div'> {}
|
|
1614
|
+
declare namespace DashboardSidebar {
|
|
1615
|
+
type Props = DashboardSidebarProps;
|
|
1616
|
+
}
|
|
1617
|
+
declare const DashboardSidebarHeader: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarHeaderProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1618
|
+
interface DashboardSidebarHeaderProps extends React$1.ComponentProps<'div'> {}
|
|
1619
|
+
declare namespace DashboardSidebarHeader {
|
|
1620
|
+
type Props = DashboardSidebarHeaderProps;
|
|
1621
|
+
}
|
|
1622
|
+
declare const DashboardSidebarTrigger: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1623
|
+
interface DashboardSidebarTriggerProps extends React$1.ComponentProps<typeof Button> {}
|
|
1624
|
+
declare namespace DashboardSidebarTrigger {
|
|
1625
|
+
type Props = DashboardSidebarTriggerProps;
|
|
1626
|
+
}
|
|
1627
|
+
declare const DashboardSidebarContent: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1628
|
+
interface DashboardSidebarContentProps extends React$1.ComponentProps<'div'> {}
|
|
1629
|
+
declare namespace DashboardSidebarContent {
|
|
1630
|
+
type Props = DashboardSidebarContentProps;
|
|
1631
|
+
}
|
|
1632
|
+
declare const DashboardSidebarFooter: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarFooterProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1633
|
+
interface DashboardSidebarFooterProps extends React$1.ComponentProps<'div'> {}
|
|
1634
|
+
declare namespace DashboardSidebarFooter {
|
|
1635
|
+
type Props = DashboardSidebarFooterProps;
|
|
1636
|
+
}
|
|
1637
|
+
declare const DashboardSidebarGroup: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1638
|
+
interface DashboardSidebarGroupProps extends React$1.ComponentProps<'div'> {}
|
|
1639
|
+
declare namespace DashboardSidebarGroup {
|
|
1640
|
+
type Props = DashboardSidebarGroupProps;
|
|
1641
|
+
}
|
|
1642
|
+
declare const DashboardSidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarGroupLabelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1643
|
+
type DashboardSidebarGroupLabelProps = useRender.ComponentProps<'div'> & React$1.ComponentProps<'div'>;
|
|
1644
|
+
declare namespace DashboardSidebarGroupLabel {
|
|
1645
|
+
type Props = DashboardSidebarGroupLabelProps;
|
|
1646
|
+
}
|
|
1647
|
+
declare const DashboardSidebarMenu: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarMenuProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1648
|
+
interface DashboardSidebarMenuProps extends React$1.ComponentProps<'ul'> {}
|
|
1649
|
+
declare namespace DashboardSidebarMenu {
|
|
1650
|
+
type Props = DashboardSidebarMenuProps;
|
|
1651
|
+
}
|
|
1652
|
+
declare const DashboardSidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarMenuItemProps, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1653
|
+
interface DashboardSidebarMenuItemProps extends React$1.ComponentProps<'li'> {}
|
|
1654
|
+
declare namespace DashboardSidebarMenuItem {
|
|
1655
|
+
type Props = DashboardSidebarMenuItemProps;
|
|
1656
|
+
}
|
|
1657
|
+
declare const DashboardSidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarMenuButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1658
|
+
type DashboardSidebarMenuButtonProps = useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
|
|
343
1659
|
isActive?: boolean;
|
|
344
1660
|
/** Visual-only disabled state. The button remains clickable (e.g. to show an
|
|
345
1661
|
* upgrade dialog). Does NOT forward to the HTML disabled attribute. */
|
|
346
1662
|
disabled?: boolean;
|
|
347
|
-
icon?: React.ReactNode;
|
|
1663
|
+
icon?: React$1.ReactNode;
|
|
348
1664
|
/**
|
|
349
1665
|
* Trailing "addon" rendered after the label span — mirrors the InputGroup
|
|
350
1666
|
* right-addon pattern. Typically a chevron, lock, or similar icon.
|
|
@@ -355,30 +1671,34 @@ type DashboardSidebarMenuButtonProps = useRender.ComponentProps<'button'> & Reac
|
|
|
355
1671
|
* AI Agents
|
|
356
1672
|
* </DashboardSidebarMenuButton>
|
|
357
1673
|
*/
|
|
358
|
-
action?: React.ReactNode;
|
|
1674
|
+
action?: React$1.ReactNode;
|
|
359
1675
|
};
|
|
360
|
-
declare
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
declare
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
1676
|
+
declare namespace DashboardSidebarMenuButton {
|
|
1677
|
+
type Props = DashboardSidebarMenuButtonProps;
|
|
1678
|
+
}
|
|
1679
|
+
declare const DashboardSidebarMenuBadge: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarMenuBadgeProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1680
|
+
interface DashboardSidebarMenuBadgeProps extends React$1.ComponentProps<typeof CounterBadge> {}
|
|
1681
|
+
declare namespace DashboardSidebarMenuBadge {
|
|
1682
|
+
type Props = DashboardSidebarMenuBadgeProps;
|
|
1683
|
+
}
|
|
1684
|
+
declare const DashboardSidebarSubmenu: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarSubmenuProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1685
|
+
interface DashboardSidebarSubmenuProps extends React$1.ComponentProps<'div'> {}
|
|
1686
|
+
declare namespace DashboardSidebarSubmenu {
|
|
1687
|
+
type Props = DashboardSidebarSubmenuProps;
|
|
1688
|
+
}
|
|
1689
|
+
declare const DashboardSidebarSubmenuItem: React$1.ForwardRefExoticComponent<Omit<DashboardSidebarSubmenuItemProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1690
|
+
type DashboardSidebarSubmenuItemProps = useRender.ComponentProps<'div'> & React$1.ComponentProps<'div'> & {
|
|
370
1691
|
isActive?: boolean;
|
|
371
1692
|
};
|
|
372
|
-
declare
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}: DashboardSidebarSubmenuItemProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
378
|
-
declare function DashboardSidebarSubmenuSeparator({
|
|
379
|
-
className
|
|
380
|
-
}: {
|
|
1693
|
+
declare namespace DashboardSidebarSubmenuItem {
|
|
1694
|
+
type Props = DashboardSidebarSubmenuItemProps;
|
|
1695
|
+
}
|
|
1696
|
+
declare const DashboardSidebarSubmenuSeparator: React$1.ForwardRefExoticComponent<DashboardSidebarSubmenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1697
|
+
interface DashboardSidebarSubmenuSeparatorProps {
|
|
381
1698
|
className?: string;
|
|
382
|
-
}
|
|
1699
|
+
}
|
|
1700
|
+
declare namespace DashboardSidebarSubmenuSeparator {
|
|
1701
|
+
type Props = DashboardSidebarSubmenuSeparatorProps;
|
|
1702
|
+
}
|
|
383
1703
|
//#endregion
|
|
384
|
-
export { BetaBadge, CopyButton, CopyButtonIcon, CopyButtonLabel, DashboardPage, DashboardPageBanner, DashboardPageContent, DashboardPageHeader, DashboardPageHeaderAction, DashboardPageHeaderActions, DashboardPageHeaderDescription, DashboardPageHeaderNav, DashboardPageHeaderNavBack, DashboardPageHeaderPrefix, DashboardPageHeaderSubtitle, DashboardPageHeaderTitle, DashboardPageHeaderTitleGroup, DashboardPageMain, DashboardPageTabs, DashboardSidebar, DashboardSidebarContent, DashboardSidebarFooter, DashboardSidebarGroup, DashboardSidebarGroupLabel, DashboardSidebarHeader, DashboardSidebarMenu, DashboardSidebarMenuBadge, DashboardSidebarMenuButton, DashboardSidebarMenuItem, DashboardSidebarNav, type DashboardSidebarNavGroup, type DashboardSidebarNavItem, type DashboardSidebarNavItemAction, type DashboardSidebarNavItemLink, type DashboardSidebarNavItemSubmenu, type
|
|
1704
|
+
export { BetaBadge, type BoundForm, CardSaveBar, type CardSaveBarProps, ChatbotInput, type ChatbotInputProps, ChatbotPage, ChatbotPanelSuggestion, type ChatbotPanelSuggestionProps, ChatbotPanelTrigger, type ChatbotPanelTriggerProps, ChatbotSidebar, type ChatbotSidebarConversation, ChatbotUserMessage, type ChatbotUserMessageProps, type ComboboxControl, ComingSoonDescription, ComingSoonEmptyState, ComingSoonMedia, ComingSoonTitle, CommonForm, CopyButton, CopyButtonIcon, CopyButtonLabel, DashboardPage, DashboardPageBanner, DashboardPageContent, DashboardPageHeader, DashboardPageHeaderAction, DashboardPageHeaderActions, DashboardPageHeaderDescription, DashboardPageHeaderNav, DashboardPageHeaderNavBack, DashboardPageHeaderPrefix, DashboardPageHeaderSubtitle, DashboardPageHeaderTitle, DashboardPageHeaderTitleGroup, DashboardPageMain, DashboardPageTabs, DashboardSidebar, DashboardSidebarContent, DashboardSidebarFooter, DashboardSidebarGroup, DashboardSidebarGroupLabel, DashboardSidebarHeader, DashboardSidebarMenu, DashboardSidebarMenuBadge, DashboardSidebarMenuButton, DashboardSidebarMenuItem, DashboardSidebarNav, type DashboardSidebarNavGroup, type DashboardSidebarNavItem, type DashboardSidebarNavItemAction, type DashboardSidebarNavItemLink, type DashboardSidebarNavItemSubmenu, type DashboardSidebarNavSubmenuItem, DashboardSidebarProvider, DashboardSidebarSubmenu, DashboardSidebarSubmenuItem, DashboardSidebarSubmenuSeparator, DashboardSidebarTrigger, DashboardStandalonePage, DashboardStandalonePageAction, DashboardStandalonePageActions, DashboardStandalonePageContent, DashboardStandalonePageHeader, DashboardStandalonePageTitle, DeprecatedBadge, EmptyState, EmptyStateActions, EmptyStateButton, EmptyStateDescription, EmptyStateExternalLink, EmptyStateHeader, EmptyStateMedia, EmptyStateTitle, FormComboboxField, type FormComboboxFieldProps, FormFieldBase, type FormFieldValidators, FormInputField, type FormInputFieldProps, FormMultiComboboxField, type FormMultiComboboxFieldProps, FormNumberField, type FormNumberFieldProps, FormOTPField, type FormOTPFieldProps, FormRadioGroupField, type FormRadioGroupFieldProps, FormSelectField, type FormSelectFieldProps, FormSliderField, type FormSliderFieldProps, FormSwitchField, type FormSwitchFieldProps, FormTextareaField, type FormTextareaFieldProps, FormToggleGroupField, type FormToggleGroupFieldProps, type InputControl, type MultiComboboxControl, NewBadge, NoDataDescription, NoDataEmptyState, NoDataMedia, NoDataTitle, NoSupportDescription, NoSupportEmptyState, NoSupportMedia, NoSupportTitle, NotFoundDescription, NotFoundEmptyState, NotFoundMedia, NotFoundTitle, type NumberControl, type OTPControl, ProfessionalBadge, type RadioGroupControl, RestrictedAccessDescription, RestrictedAccessEmptyState, RestrictedAccessMedia, RestrictedAccessTitle, RoleBadge, type RoleBadgeRole, SaveBar, type SaveBarProps, type SelectControl, type SliderControl, SubmitButton, type SubmitButtonProps, type SwitchControl, type TextareaControl, type ToggleGroupControl, TrialBadge, type TypedField, UnknownErrorDescription, UnknownErrorEmptyState, UnknownErrorMedia, UnknownErrorTitle, fieldContext, formContext, toFieldErrors, useCopyToClipboard, useSidebar as useDashboardSidebar, useFieldContext, useForm, useFormContext, withForm };
|