@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/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
- 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 };
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
- 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 };