@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/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
- export { AuthenticationConfig, BaseSmartForm, type BaseSmartFormProps, DraftSaveButton, ExternalFieldProvider, Footer, FormContextType, FormFieldGroup, type FormFieldGroupProps, FormHeader, LoadingSpinner, MultiTabSmartForm, type MultiTabSmartFormProps, NavigationButtons, ResetButton, Section, SimpleFormButtons, SmartForm, type SmartFormProps, SubmitButton, Tab, TabIndexProvider, type TabProps, ToastContainerWrapper, useAutoDetectFields, useExternalFormFields, useExternalFormRegistration, useExternalTab, useFieldDetection, useFormWrapper, useTabIndex };
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 };