@algodomain/smart-forms 0.1.7 → 0.1.9
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/README.md +652 -15
- package/dist/{chunk-UFRJXDAI.js → chunk-4XK6HAJ2.js} +3 -3
- package/dist/{chunk-UFRJXDAI.js.map → chunk-4XK6HAJ2.js.map} +1 -1
- package/dist/{chunk-RHECLW3K.js → chunk-6VKQ7EMR.js} +3 -3
- package/dist/{chunk-RHECLW3K.js.map → chunk-6VKQ7EMR.js.map} +1 -1
- package/dist/{chunk-NVGQPR3P.cjs → chunk-DRMVY7TX.cjs} +91 -91
- package/dist/{chunk-NVGQPR3P.cjs.map → chunk-DRMVY7TX.cjs.map} +1 -1
- package/dist/{chunk-WIBCOQPP.cjs → chunk-WUYS7DMR.cjs} +3 -2
- package/dist/{chunk-WIBCOQPP.cjs.map → chunk-WUYS7DMR.cjs.map} +1 -1
- package/dist/fields.cjs +101 -101
- package/dist/fields.js +4 -4
- package/dist/index.cjs +1038 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +1015 -116
- package/dist/index.js.map +1 -1
- package/dist/opinionated.cjs +18 -18
- package/dist/opinionated.js +2 -2
- package/package.json +8 -7
package/dist/index.d.ts
CHANGED
|
@@ -54,10 +54,15 @@ declare const SmartForm: React__default.FC<SmartFormProps>;
|
|
|
54
54
|
interface TabProps {
|
|
55
55
|
title: string;
|
|
56
56
|
children: ReactNode;
|
|
57
|
+
onNext?: () => Promise<void> | void;
|
|
58
|
+
processingOverlay?: ReactNode;
|
|
57
59
|
}
|
|
58
60
|
interface MultiTabSmartFormProps extends BaseSmartFormProps {
|
|
59
61
|
showProgressBar?: boolean;
|
|
60
62
|
showTabNumbers?: boolean;
|
|
63
|
+
animateTabs?: boolean;
|
|
64
|
+
tabType?: 'underline' | 'default';
|
|
65
|
+
disableManualTabSwitch?: boolean;
|
|
61
66
|
}
|
|
62
67
|
declare const Tab: React__default.FC<TabProps>;
|
|
63
68
|
declare const MultiTabSmartForm: React__default.FC<MultiTabSmartFormProps>;
|
|
@@ -147,6 +152,7 @@ interface NavigationButtonProps extends FormButtonProps {
|
|
|
147
152
|
onNext?: () => void;
|
|
148
153
|
isFirstTab?: boolean;
|
|
149
154
|
isLastTab?: boolean;
|
|
155
|
+
disabled?: boolean;
|
|
150
156
|
}
|
|
151
157
|
declare const LoadingSpinner: React__default.FC<{
|
|
152
158
|
className?: string;
|
|
@@ -168,4 +174,35 @@ declare const ResetButton: React__default.FC<{
|
|
|
168
174
|
declare const NavigationButtons: React__default.FC<NavigationButtonProps>;
|
|
169
175
|
declare const SimpleFormButtons: React__default.FC<FormButtonProps>;
|
|
170
176
|
|
|
171
|
-
|
|
177
|
+
interface SmartTextAreaProps {
|
|
178
|
+
field: string;
|
|
179
|
+
label?: string;
|
|
180
|
+
rows?: number;
|
|
181
|
+
placeholder?: string;
|
|
182
|
+
validation?: any;
|
|
183
|
+
className?: string;
|
|
184
|
+
required?: boolean;
|
|
185
|
+
defaultValue?: any;
|
|
186
|
+
syncValue?: any;
|
|
187
|
+
info?: string;
|
|
188
|
+
subLabel?: string;
|
|
189
|
+
disabled?: boolean | ((formData: any) => boolean);
|
|
190
|
+
hidden?: boolean | ((formData: any) => boolean);
|
|
191
|
+
charSize?: number;
|
|
192
|
+
autoFocus?: boolean;
|
|
193
|
+
autoComplete?: string;
|
|
194
|
+
autoCorrect?: string;
|
|
195
|
+
autoCapitalize?: string;
|
|
196
|
+
spellCheck?: boolean;
|
|
197
|
+
readOnly?: boolean;
|
|
198
|
+
wrap?: 'soft' | 'hard' | 'off';
|
|
199
|
+
cols?: number;
|
|
200
|
+
maxLength?: number;
|
|
201
|
+
minLength?: number;
|
|
202
|
+
name?: string;
|
|
203
|
+
dirName?: string;
|
|
204
|
+
form?: string;
|
|
205
|
+
}
|
|
206
|
+
declare const SmartTextArea: React__default.FC<SmartTextAreaProps>;
|
|
207
|
+
|
|
208
|
+
export { AuthenticationConfig, BaseSmartForm, type BaseSmartFormProps, DraftSaveButton, ExternalFieldProvider, Footer, FormContextType, FormFieldGroup, type FormFieldGroupProps, FormHeader, LoadingSpinner, MultiTabSmartForm, type MultiTabSmartFormProps, NavigationButtons, ResetButton, Section, SimpleFormButtons, SmartForm, type SmartFormProps, SmartTextArea, type SmartTextAreaProps, SubmitButton, Tab, TabIndexProvider, type TabProps, ToastContainerWrapper, useAutoDetectFields, useExternalFormFields, useExternalFormRegistration, useExternalTab, useFieldDetection, useFormWrapper, useTabIndex };
|