@ahmadmubarak98/namozaj 1.5.4 → 1.6.0
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 +17 -2
- package/dist/namozaj.js +2193 -2159
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export declare interface DefaultSubmitButtonProps {
|
|
|
101
101
|
hidden?: boolean;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export declare type DynamicFormField = TextFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
|
|
104
|
+
export declare type DynamicFormField = TextFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | GroupFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
|
|
105
105
|
|
|
106
106
|
export declare interface DynamicFormProps {
|
|
107
107
|
fields: DynamicFormField[];
|
|
@@ -183,7 +183,7 @@ export declare type FieldOptionFetchFunction = (() => Promise<FieldOption[]>) |
|
|
|
183
183
|
|
|
184
184
|
export declare type FieldSize = 'small' | 'medium';
|
|
185
185
|
|
|
186
|
-
export declare type FieldType = "text" | "phone" | "number" | "slider" | "select" | "multi-select" | "checkbox-group" | "radio-group" | "checkbox" | "switch" | "date" | "time" | "datetime" | "file" | "repeater" | "field-array";
|
|
186
|
+
export declare type FieldType = "text" | "phone" | "number" | "slider" | "select" | "multi-select" | "checkbox-group" | "radio-group" | "checkbox" | "switch" | "date" | "time" | "datetime" | "file" | "repeater" | "field-array" | "group";
|
|
187
187
|
|
|
188
188
|
export declare type FieldValueType = string | number | boolean | Date | File | (string | undefined)[] | ({
|
|
189
189
|
[x: string]: any;
|
|
@@ -243,6 +243,21 @@ export declare type GridColumnConfig = {
|
|
|
243
243
|
|
|
244
244
|
export declare type GridSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
245
245
|
|
|
246
|
+
export declare type GroupFieldConfig = BaseFieldConfig & {
|
|
247
|
+
type: "group";
|
|
248
|
+
meta: {
|
|
249
|
+
label: string;
|
|
250
|
+
tooltip?: TooltipConfig;
|
|
251
|
+
helperText?: HelperTextConfig;
|
|
252
|
+
className?: string;
|
|
253
|
+
style?: React.CSSProperties;
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
grid?: GridColumnConfig;
|
|
256
|
+
fields: DynamicFormField[];
|
|
257
|
+
visibilityRules?: VisibilityRule[];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
|
|
246
261
|
export declare type HelperTextConfig = {
|
|
247
262
|
content?: string | React.ReactNode;
|
|
248
263
|
color?: BaseColors | string;
|