@algodomain/smart-forms 0.1.8 → 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-ONWU4O23.js → chunk-4XK6HAJ2.js} +3 -3
- package/dist/{chunk-ONWU4O23.js.map → chunk-4XK6HAJ2.js.map} +1 -1
- package/dist/{chunk-S4UZYPMB.js → chunk-6VKQ7EMR.js} +3 -9
- package/dist/chunk-6VKQ7EMR.js.map +1 -0
- package/dist/{chunk-I5HYLSDJ.cjs → chunk-DRMVY7TX.cjs} +91 -91
- package/dist/{chunk-I5HYLSDJ.cjs.map → chunk-DRMVY7TX.cjs.map} +1 -1
- package/dist/{chunk-VOLW7NZ4.cjs → chunk-WUYS7DMR.cjs} +3 -9
- package/dist/chunk-WUYS7DMR.cjs.map +1 -0
- package/dist/fields.cjs +101 -101
- package/dist/fields.js +4 -4
- package/dist/index.cjs +475 -8326
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +397 -8249
- 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/chunk-S4UZYPMB.js.map +0 -1
- package/dist/chunk-VOLW7NZ4.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -54,12 +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;
|
|
61
63
|
animateTabs?: boolean;
|
|
62
64
|
tabType?: 'underline' | 'default';
|
|
65
|
+
disableManualTabSwitch?: boolean;
|
|
63
66
|
}
|
|
64
67
|
declare const Tab: React__default.FC<TabProps>;
|
|
65
68
|
declare const MultiTabSmartForm: React__default.FC<MultiTabSmartFormProps>;
|
|
@@ -149,6 +152,7 @@ interface NavigationButtonProps extends FormButtonProps {
|
|
|
149
152
|
onNext?: () => void;
|
|
150
153
|
isFirstTab?: boolean;
|
|
151
154
|
isLastTab?: boolean;
|
|
155
|
+
disabled?: boolean;
|
|
152
156
|
}
|
|
153
157
|
declare const LoadingSpinner: React__default.FC<{
|
|
154
158
|
className?: string;
|
|
@@ -170,4 +174,35 @@ declare const ResetButton: React__default.FC<{
|
|
|
170
174
|
declare const NavigationButtons: React__default.FC<NavigationButtonProps>;
|
|
171
175
|
declare const SimpleFormButtons: React__default.FC<FormButtonProps>;
|
|
172
176
|
|
|
173
|
-
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,12 +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;
|
|
61
63
|
animateTabs?: boolean;
|
|
62
64
|
tabType?: 'underline' | 'default';
|
|
65
|
+
disableManualTabSwitch?: boolean;
|
|
63
66
|
}
|
|
64
67
|
declare const Tab: React__default.FC<TabProps>;
|
|
65
68
|
declare const MultiTabSmartForm: React__default.FC<MultiTabSmartFormProps>;
|
|
@@ -149,6 +152,7 @@ interface NavigationButtonProps extends FormButtonProps {
|
|
|
149
152
|
onNext?: () => void;
|
|
150
153
|
isFirstTab?: boolean;
|
|
151
154
|
isLastTab?: boolean;
|
|
155
|
+
disabled?: boolean;
|
|
152
156
|
}
|
|
153
157
|
declare const LoadingSpinner: React__default.FC<{
|
|
154
158
|
className?: string;
|
|
@@ -170,4 +174,35 @@ declare const ResetButton: React__default.FC<{
|
|
|
170
174
|
declare const NavigationButtons: React__default.FC<NavigationButtonProps>;
|
|
171
175
|
declare const SimpleFormButtons: React__default.FC<FormButtonProps>;
|
|
172
176
|
|
|
173
|
-
|
|
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 };
|