dfh-ui-library 1.1.13 → 1.1.14

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.
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ISchema } from "../../shared/models/components/common.model";
3
+ interface IComponentProps {
4
+ schema: ISchema[];
5
+ cancelAction?: (event: React.MouseEvent<HTMLButtonElement>) => void;
6
+ handleSubmit: (data: any) => void;
7
+ }
8
+ declare const DFHFormProvider: (props: IComponentProps) => React.JSX.Element;
9
+ export default DFHFormProvider;
@@ -0,0 +1,6 @@
1
+ import { IDefaultComponent, ISchema } from "../../shared/models/components/common.model";
2
+ export declare const UIComponentHelper: (schema: ISchema[]) => {
3
+ id: number;
4
+ component: any;
5
+ }[];
6
+ export declare const LibraryComponents: IDefaultComponent[];
@@ -0,0 +1 @@
1
+ export { default } from "./ComponentProvider";
@@ -3,3 +3,4 @@ export { default as Button } from "./Button";
3
3
  export { default as Typhography } from "./Typhography";
4
4
  export { Input, Select, CheckBox, Label, InputValidation, Textarea, RadioButton, } from "./FormElements";
5
5
  export { default as Card } from "./Card";
6
+ export { default as ComponentProvider } from "./ComponentProvider";
@@ -47,3 +47,16 @@ export interface IInputValidationProps {
47
47
  */
48
48
  additionalClasses?: string | undefined;
49
49
  }
50
+ export interface ISchema {
51
+ id: number;
52
+ elementType: string;
53
+ }
54
+ export interface IDefaultComponent {
55
+ id: number;
56
+ component: any;
57
+ type: string;
58
+ }
59
+ export interface IComponent {
60
+ id: number;
61
+ component: any;
62
+ }
package/dist/index.d.ts CHANGED
@@ -41,6 +41,10 @@ interface IInputValidationProps {
41
41
  */
42
42
  additionalClasses?: string | undefined;
43
43
  }
44
+ interface ISchema {
45
+ id: number;
46
+ elementType: string;
47
+ }
44
48
 
45
49
  interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
46
50
  /**
@@ -353,4 +357,11 @@ declare const Textarea: React$1.FC<IInputProps>;
353
357
  */
354
358
  declare const Card: React$1.FC<ICardProps>;
355
359
 
356
- export { Button, Card, Checkbox as CheckBox, Input, InputValidation, Label, RadioButton, Select, Textarea, Typhography };
360
+ interface IComponentProps {
361
+ schema: ISchema[];
362
+ cancelAction?: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
363
+ handleSubmit: (data: any) => void;
364
+ }
365
+ declare const DFHFormProvider: (props: IComponentProps) => React$1.JSX.Element;
366
+
367
+ export { Button, Card, Checkbox as CheckBox, DFHFormProvider as ComponentProvider, Input, InputValidation, Label, RadioButton, Select, Textarea, Typhography };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",