@ambuj.bhaskar/react-component-library 0.29.3 → 0.30.1

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
@@ -974,6 +974,62 @@ export declare type FloorMapViewProps = {
974
974
  origin?: Origin;
975
975
  };
976
976
 
977
+ declare type FormConfigBranch = FormConfigLevel & {
978
+ [key: string]: FormConfigNode;
979
+ };
980
+
981
+ declare type FormConfigLeaf = FormConfigLevel & {
982
+ inputType: "text" | "slider" | "range-slider" | "multiselect" | "select" | "checkbox";
983
+ width?: string;
984
+ required?: boolean;
985
+ placeholder?: string;
986
+ value?: any;
987
+ defaultValue?: any;
988
+ min?: number;
989
+ max?: number;
990
+ values?: any[];
991
+ options?: {
992
+ label: string;
993
+ value: string | number;
994
+ }[];
995
+ defaultValues?: any[];
996
+ };
997
+
998
+ declare type FormConfigLevel = {
999
+ label?: string;
1000
+ description?: string;
1001
+ };
1002
+
1003
+ declare type FormConfigNode = FormConfigLeaf | FormConfigBranch;
1004
+
1005
+ export declare const FormGroup: default_2.FC<FormGroupProps>;
1006
+
1007
+ export declare type FormGroupProps = {
1008
+ formConfig: {
1009
+ [key: string]: FormConfigNode;
1010
+ };
1011
+ width?: CSSstring;
1012
+ height?: CSSstring;
1013
+ onSubmit?: (data: any) => void;
1014
+ submitButtonText?: string;
1015
+ submitButtonProps?: {
1016
+ variant?: "primary" | "secondary" | "tertiary" | "nav";
1017
+ size?: "s" | "m" | "l";
1018
+ disabled?: boolean;
1019
+ loading?: boolean;
1020
+ };
1021
+ showResetButton?: boolean;
1022
+ resetButtonText?: string;
1023
+ resetButtonProps?: {
1024
+ variant?: "primary" | "secondary" | "tertiary" | "nav";
1025
+ size?: "s" | "m" | "l";
1026
+ disabled?: boolean;
1027
+ loading?: boolean;
1028
+ };
1029
+ defaultValues?: Record<string, any>;
1030
+ className?: string;
1031
+ };
1032
+
977
1033
  export declare const Heatmap: React.FC<HeatmapProps>;
978
1034
 
979
1035
  export declare type HeatmapData = {