@ahmadmubarak98/namozaj 1.6.3 → 1.6.4

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/main.d.ts CHANGED
@@ -93,15 +93,6 @@ export declare type DateMinMaxValue = {
93
93
  errorMessage?: string;
94
94
  } | null);
95
95
 
96
- export declare interface DefaultSubmitButtonProps {
97
- label?: string;
98
- size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
99
- className?: string;
100
- buttonType?: "button" | "submit" | "reset";
101
- disabled?: boolean;
102
- hidden?: boolean;
103
- }
104
-
105
96
  export declare type DynamicFormField = TextFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | GroupFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
106
97
 
107
98
  export declare interface DynamicFormProps {
@@ -109,12 +100,24 @@ export declare interface DynamicFormProps {
109
100
  localization?: NamozajLocalizationOptions;
110
101
  emptyFormMessage?: string;
111
102
  defaultValues?: Record<string, FieldValueType>;
112
- defaultSubmitButtonProps?: DefaultSubmitButtonProps;
103
+ submitButtonProps?: SubmitButtonProps;
104
+ scrollableWithFixedFooter?: boolean;
113
105
  loading?: boolean;
114
106
  isNested?: boolean;
115
107
  validationMode?: ValidationMode;
116
108
  enableRtl?: boolean;
117
109
  error?: any;
110
+ slots?: {
111
+ formBody?: {
112
+ className?: string;
113
+ style?: React.CSSProperties;
114
+ };
115
+ formFooter?: {
116
+ className?: string;
117
+ style?: React.CSSProperties;
118
+ renderActions?: ((submitBtnNode: React.ReactNode, resetBtnNode: React.ReactNode, formMethods: UseFormReturn<FieldValues, any, FieldValues>) => React.ReactNode);
119
+ };
120
+ };
118
121
  onSubmit?: (data: any) => void;
119
122
  onChange?: (data: any) => void;
120
123
  }
@@ -405,6 +408,15 @@ export declare type SliderFieldConfig = BaseFieldConfig & {
405
408
  };
406
409
  };
407
410
 
411
+ export declare interface SubmitButtonProps {
412
+ label?: string;
413
+ size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
414
+ className?: string;
415
+ buttonType?: "button" | "submit" | "reset";
416
+ disabled?: boolean;
417
+ hidden?: boolean;
418
+ }
419
+
408
420
  export declare type SwitchFieldConfig = BaseFieldConfig & {
409
421
  type: "switch";
410
422
  meta: BaseFieldConfig["meta"] & {