tp-react-elements-dev 1.4.3 → 1.4.5

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.
Files changed (38) hide show
  1. package/README.md +96 -46
  2. package/dist/App.d.ts +1 -1
  3. package/dist/components/DeleteComponent/Delete.stories.d.ts +4 -0
  4. package/dist/components/DeleteComponent/DeleteField.d.ts +7 -0
  5. package/dist/components/Form/DatePicker/DatepickerWrapper.d.ts +1 -3
  6. package/dist/components/Form/Form.stories.d.ts +2 -2
  7. package/dist/components/Form/Form.styles.d.ts +8 -8
  8. package/dist/components/Form/FormConstants.d.ts +17 -0
  9. package/dist/components/Form/FormRender.d.ts +9 -4
  10. package/dist/components/Form/FormRenderWrapper.d.ts +10 -0
  11. package/dist/components/Form/Select/MultiSelect.d.ts +1 -6
  12. package/dist/components/Form/Select/SingleSelectForPagination.d.ts +1 -3
  13. package/dist/components/Global.styles.d.ts +6 -6
  14. package/dist/components/ModalField/ConfirmationDialog.d.ts +2 -1
  15. package/dist/components/SessionTimeOut/SessionTimeOut.d.ts +4 -1
  16. package/dist/components/index.d.ts +2 -2
  17. package/dist/index.css +1 -1
  18. package/dist/index.d.ts +4 -2
  19. package/dist/index.esm.css +1 -1
  20. package/dist/index.esm.js +11798 -8678
  21. package/dist/index.esm.js.map +1 -1
  22. package/dist/index.js +11800 -8678
  23. package/dist/index.js.map +1 -1
  24. package/dist/styles/theme.d.ts +9 -0
  25. package/dist/theme.d.ts +10 -0
  26. package/package.json +97 -95
  27. package/dist/asset-manifest.json +0 -16
  28. package/dist/components/Button/Button.d.ts +0 -7
  29. package/dist/components/Button/Button.stories.d.ts +0 -4
  30. package/dist/index.html +0 -1
  31. package/dist/static/css/main.f855e6bc.css +0 -2
  32. package/dist/static/css/main.f855e6bc.css.map +0 -1
  33. package/dist/static/js/453.a7afedbc.chunk.js +0 -2
  34. package/dist/static/js/453.a7afedbc.chunk.js.map +0 -1
  35. package/dist/static/js/main.10dc8de6.js +0 -3
  36. package/dist/static/js/main.10dc8de6.js.LICENSE.txt +0 -39
  37. package/dist/static/js/main.10dc8de6.js.map +0 -1
  38. package/dist/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg +0 -1
package/README.md CHANGED
@@ -1,46 +1,96 @@
1
- # Getting Started with Create React App
2
-
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
-
5
- ## Available Scripts
6
-
7
- In the project directory, you can run:
8
-
9
- ### `npm start`
10
-
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
-
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
16
-
17
- ### `npm test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
1
+ ## How to use the Library
2
+ This Library is a reusable component gives intialvalues and validation schema for useForm and you can render Form Field Components without adding any text fields.
3
+
4
+ ```js
5
+ import { yupResolver } from "@hookform/resolvers/yup";
6
+ import { useForm } from "react-hook-form";
7
+ import { RenderForm, useFormValidatingContext } from "tp-react-elements-dev";
8
+ import { FormSectionPropsItem } from "tp-react-elements-dev/dist/components/Form/FormRender";
9
+ const App = () => {
10
+ const formArray:FormSectionPropsItem[]= [
11
+ {
12
+ name: "userName",
13
+ label: "User Name",
14
+ inputType: "text",
15
+ required: true,
16
+ errorMessage: "Please enter",
17
+ },
18
+ {
19
+ name: "password",
20
+ label: "Password",
21
+ inputType: "number",
22
+ required: true,
23
+ errorMessage: "Please enter",
24
+ },
25
+ {
26
+ name: "date",
27
+ label: "Password",
28
+ inputType: "datepicker",
29
+ required: true,
30
+ errorMessage: "Please select message",
31
+ minDate:'30/06/2024',
32
+ maxDate:'22/07/2024'
33
+ },
34
+ {
35
+ name: "password1",
36
+ label: "Password New",
37
+ inputType: "password",
38
+ required: true,
39
+ errorMessage: "Please select message",
40
+ },
41
+ {
42
+ name: "daterange",
43
+ label: "Password",
44
+ required:true,
45
+ inputType: "multiselect",
46
+ options:[]
47
+ },
48
+ {
49
+ name: "daterangepicker",
50
+ label: "Date range Picker",
51
+ required:true,
52
+ inputType: "dateRangePicker",
53
+ monthSpan:1
54
+ },
55
+ {
56
+ name: "status",
57
+ label: "sdf",
58
+ inputType: "toggleSwitch",
59
+ monthSpan:1
60
+ },
61
+ {
62
+ name: "yearpicker",
63
+ label: "Year",
64
+ required:true,
65
+ inputType: "yearpicker",
66
+ monthSpan:1
67
+ },
68
+ {
69
+ name: "monthpicker",
70
+ label: "Month Picker",
71
+ required:true,
72
+ inputType: "monthpicker",
73
+ monthSpan:1
74
+ },
75
+ {
76
+ name: "file",
77
+ label: "File Upload",
78
+ required:true,
79
+ inputType: "file",
80
+ monthSpan:1
81
+ },
82
+ ];
83
+ const { initialValues, validationSchema } = useFormValidatingContext(
84
+ formArray
85
+ );
86
+ const form=useForm({
87
+ defaultValues:initialValues,
88
+ resolver:yupResolver(validationSchema)
89
+ })
90
+ return (
91
+ <RenderForm formArray={formArray} name={"form1"} form={form} numberOfColumns={2} />
92
+ )
93
+ }
94
+
95
+ export default App
96
+ ```
package/dist/App.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import './App.css';
1
+ import "./App.css";
2
2
  declare function App(): import("react/jsx-runtime").JSX.Element;
3
3
  export default App;
@@ -0,0 +1,4 @@
1
+ import { DeleteFieldProps } from "./DeleteField";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const DeleteFieldComponent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DeleteFieldProps>;
@@ -0,0 +1,7 @@
1
+ export interface DeleteFieldProps {
2
+ onClickFn: () => void;
3
+ tooltip: string;
4
+ text: string;
5
+ }
6
+ declare const DeleteField: ({ onClickFn, tooltip, text }: DeleteFieldProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default DeleteField;
@@ -1,4 +1,2 @@
1
- declare const DatepickerWrapper: ({ props }: {
2
- props: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ declare const DatepickerWrapper: () => import("react/jsx-runtime").JSX.Element;
4
2
  export default DatepickerWrapper;
@@ -1,4 +1,4 @@
1
- import { FormRenderProps } from './FormRender';
1
+ import { FormRenderWrapperProps } from "./FormRenderWrapper";
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const RenderFormComponent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, FormRenderProps>;
4
+ export declare const RenderFormComponent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, FormRenderWrapperProps>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const FormComponent: import("@emotion/styled").StyledComponent<import("@mui/material").GridOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, "children" | "className" | "style" | "classes" | "p" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "spacing" | "sx" | "wrap" | "zeroMinWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "p" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "spacing" | "sx" | "wrap" | "zeroMinWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
6
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
7
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -11,16 +11,16 @@ export declare const ErrorMessageComponent: import("@emotion/styled").StyledComp
11
11
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
12
  export declare const ContainerComponent: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
13
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
- }, "fixed" | "children" | "className" | "style" | "classes" | "maxWidth" | "sx" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
+ }, "className" | "style" | "classes" | "children" | "maxWidth" | "sx" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
15
  export declare const SaveButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
16
16
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
17
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
18
  export declare const BackButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
19
19
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
20
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
20
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
21
21
  export declare const LabelComponent: import("@emotion/styled").StyledComponent<import("@mui/material").GridOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
22
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
23
- }, "children" | "className" | "style" | "classes" | "p" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "spacing" | "sx" | "wrap" | "zeroMinWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
23
+ }, "className" | "style" | "classes" | "p" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "spacing" | "sx" | "wrap" | "zeroMinWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
24
24
  export declare const ImportantMark: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGTextElementAttributes<SVGTextElement>, {}>;
25
25
  export declare const FormWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
26
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
@@ -28,13 +28,13 @@ export declare const FormWrapper: import("@emotion/styled").StyledComponent<impo
28
28
  export declare const DatepickerBox: import("@emotion/styled").StyledComponent<import("@mui/x-date-pickers").DatePickerProps<unknown> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
29
29
  export declare const OptionRender: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
30
30
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
31
- }, "children" | "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "sx" | "disableGutters" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
31
+ }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "sx" | "disableGutters" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
32
32
  export declare const OptionsBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
33
33
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
34
34
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
35
35
  export declare const Options: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
36
36
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
37
- }, "children" | "className" | "paragraph" | "style" | "classes" | "p" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
37
+ }, "className" | "style" | "classes" | "p" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
38
38
  export declare const ArrowDown: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
39
39
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
40
- }, "children" | "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
40
+ }, "className" | "style" | "classes" | "color" | "children" | "fontSize" | "shapeRendering" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,17 @@
1
+ import { FormSectionPropsItem } from "./FormRender";
2
+ import * as Yup from "yup";
3
+ export interface InitialValues {
4
+ [key: string]: string | number | null | boolean;
5
+ }
6
+ export interface ValidationShape {
7
+ [key: string]: Yup.Schema<any>;
8
+ }
9
+ declare const useFormValidatingContext: (formArray: FormSectionPropsItem[]) => {
10
+ validationSchema: Yup.ObjectSchema<{
11
+ [x: string]: any;
12
+ }, Yup.AnyObject, {
13
+ [x: string]: any;
14
+ }, "">;
15
+ initialValues: InitialValues;
16
+ };
17
+ export default useFormValidatingContext;
@@ -4,20 +4,25 @@ interface OptionsProps {
4
4
  label: string | boolean | number;
5
5
  value: string | number;
6
6
  }
7
- interface FormSectionPropsItem {
7
+ export interface FormSectionPropsItem {
8
8
  name: string;
9
9
  label: string;
10
- inputType: 'text' | 'password' | 'number' | 'select' | 'datepicker' | 'multiselect' | 'select-v2' | 'register-number' | 'decimal' | 'alpha-numerical' | 'datepicker' | 'yearpicker' | 'dateRangePicker' | 'monthpicker' | 'multiselect' | 'file' | 'textarea';
10
+ inputType: "text" | "password" | "number" | "select" | "datepicker" | "multiselect" | "select-v2" | "register-number" | "decimal" | "alpha-numerical" | "yearpicker" | "dateRangePicker" | "monthpicker" | "multiselect" | "file" | "textarea" | "toggleSwitch";
11
11
  options?: OptionsProps[];
12
12
  required?: boolean;
13
13
  errorMessage?: string;
14
14
  helperText?: string;
15
15
  disable?: boolean;
16
16
  onChangeFn?: (e: string | number | undefined | null | boolean) => void;
17
+ onBlurFn?: (e: string | number | undefined | null | boolean) => void;
17
18
  maxLength?: number;
18
19
  minDate?: string;
20
+ maxDate?: string;
19
21
  placeholder?: string;
20
- minRows?: string;
22
+ minRows?: string | number;
23
+ CustomProps?: string;
24
+ numberOfColumns?: number;
25
+ monthSpan?: number;
21
26
  }
22
27
  export interface FormRenderProps {
23
28
  item: FormSectionPropsItem;
@@ -28,5 +33,5 @@ export interface FormRenderProps {
28
33
  clearErrors: any;
29
34
  setValue: any;
30
35
  }
31
- declare const RenderForm: (props: FormRenderProps) => import("react/jsx-runtime").JSX.Element | undefined;
36
+ declare const RenderForm: (props: FormRenderProps) => import("react/jsx-runtime").JSX.Element;
32
37
  export default RenderForm;
@@ -0,0 +1,10 @@
1
+ import { FormSectionPropsItem } from "./FormRender";
2
+ import { FieldValues, UseFormReturn } from "react-hook-form";
3
+ export interface FormRenderWrapperProps {
4
+ formArray: FormSectionPropsItem[];
5
+ name: string;
6
+ numberOfColumns?: number;
7
+ form: UseFormReturn<FieldValues, any, undefined>;
8
+ }
9
+ declare const FormRenderWrapper: ({ formArray, name, numberOfColumns, form, }: FormRenderWrapperProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default FormRenderWrapper;
@@ -1,7 +1,2 @@
1
- /// <reference types="react" />
2
- declare const MultiSelect: React.FC<{
3
- options: any;
4
- fields: any;
5
- setValues: any;
6
- }>;
1
+ declare const MultiSelect: () => import("react/jsx-runtime").JSX.Element;
7
2
  export default MultiSelect;
@@ -1,4 +1,2 @@
1
- declare const SingleSelectForPagination: ({ props }: {
2
- props: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ declare const SingleSelectForPagination: () => import("react/jsx-runtime").JSX.Element;
4
2
  export default SingleSelectForPagination;
@@ -1,27 +1,27 @@
1
1
  /// <reference types="react" />
2
2
  export declare const AddButtonFloat: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
4
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  }, {}, {}>;
7
7
  export declare const SubmitButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
9
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
9
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
11
  }, {}, {}>;
12
12
  export declare const CancelButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
13
13
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
14
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
16
  }, {}, {}>;
17
17
  export declare const SaveAsDraftButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
18
18
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
19
- }, "children" | "className" | "href" | "style" | "classes" | "tabIndex" | "color" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
19
+ }, "className" | "style" | "classes" | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
20
20
  theme?: import("@emotion/react").Theme | undefined;
21
21
  }, {}, {}>;
22
22
  export declare const PageHeader: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
23
23
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
24
- }, "children" | "className" | "paragraph" | "style" | "classes" | "p" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & {
24
+ }, "className" | "style" | "classes" | "p" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
25
25
  theme?: import("@emotion/react").Theme | undefined;
26
26
  }, {}, {}>;
27
27
  export declare const ReportsItem: import("@emotion/styled").StyledComponent<any, {}, {}>;
@@ -30,6 +30,6 @@ export declare const DialogContainer: import("@emotion/styled").StyledComponent<
30
30
  }, {}, {}>;
31
31
  export declare const DialogTitleWrapper: import("@emotion/styled").StyledComponent<import("@mui/material").DialogTitleOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
32
32
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
33
- }, "children" | "className" | "paragraph" | "style" | "classes" | "p" | "color" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & {
33
+ }, "className" | "style" | "classes" | "p" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
34
34
  theme?: import("@emotion/react").Theme | undefined;
35
35
  }, {}, {}>;
@@ -5,6 +5,7 @@ export interface ConfirmationDialogProps {
5
5
  text: string;
6
6
  Submit?: string;
7
7
  Cancel?: string;
8
+ buttonStyleProps?: any;
8
9
  }
9
- declare const ConfirmationDialog: ({ openConfirmDialog, handleCancel, onClickSubmit, text, Submit, Cancel }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const ConfirmationDialog: ({ openConfirmDialog, handleCancel, onClickSubmit, text, Submit, Cancel, buttonStyleProps }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export default ConfirmationDialog;
@@ -2,6 +2,9 @@ export interface SessionTimeOutProps {
2
2
  sessionTime: string;
3
3
  handleSubmitSession: () => void;
4
4
  onSessionExpire: () => void;
5
+ handleSessionCancel: () => void;
6
+ SubmitButtonName?: string;
7
+ buttonStyleProps?: any;
5
8
  }
6
- declare const SessionTimeOut: ({ sessionTime, handleSubmitSession, onSessionExpire, }: SessionTimeOutProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SessionTimeOut: ({ sessionTime, handleSubmitSession, onSessionExpire, handleSessionCancel, SubmitButtonName, buttonStyleProps }: SessionTimeOutProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export default SessionTimeOut;
@@ -1,2 +1,2 @@
1
- export { default as Button } from "../components/Button/Button";
2
- export { default as RenderForm } from "../components/Form/FormRender";
1
+ export { default as RenderForm } from "../components/Form/FormRenderWrapper";
2
+ export { default as useFormValidatingContext } from "../components/Form/FormConstants";
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .rs-picker-default .rs-picker-toggle.rs-btn{padding-bottom:7px;padding-top:7px;width:282px}.rs-picker-default .rs-picker-toggle{border:1px solid #e5e5ea;color:#575757;cursor:pointer;display:inline-block;outline:none;padding-left:44px;padding-right:67px;position:relative;z-index:5}.rs-picker-toggle-caret{color:#8e8e93;display:inline-block;font-weight:400;margin-right:240px;position:absolute;right:12px;top:8px}.rs-picker-toolbar-right-btn-ok{background-color:#3498ff;border:none;border-radius:30px;color:#fff;cursor:pointer;font-size:14px;outline:0;padding:8px 12px;text-align:center;width:100px}.rs-picker-menu .rs-calendar .rs-calendar-table-cell-content{border-radius:21px;display:inline-block;padding-left:0;padding-right:0}.css-1xisk3n{background:#ebf4f8!important}.css-xpa0r5-MuiButtonBase-root-MuiIconButton-root{border-radius:4px!important}.calender h6,.calender p{font-size:11px!important}.calender .css-1fre31j,.calender .css-1j13ek9-MuiGrid-root{padding:0}
1
+ .rs-picker-default .rs-picker-toggle.rs-btn{padding-bottom:7px;padding-top:7px;width:282px}.rs-picker-default .rs-picker-toggle{border:1px solid #e5e5ea;color:#575757;cursor:pointer;display:inline-block;outline:none;padding-left:44px;padding-right:67px;position:relative;z-index:5}.rs-picker-toggle-caret{color:#8e8e93;display:inline-block;font-weight:400;margin-right:240px;position:absolute;right:12px;top:8px}.rs-picker-toolbar-right-btn-ok{background-color:#3498ff;border:none;border-radius:30px;color:#fff;cursor:pointer;font-size:14px;outline:0;padding:8px 12px;text-align:center;width:100px}.rs-picker-menu .rs-calendar .rs-calendar-table-cell-content{border-radius:21px;display:inline-block;padding-left:0;padding-right:0}.css-1xisk3n{background:#ebf4f8!important}.css-xpa0r5-MuiButtonBase-root-MuiIconButton-root{border-radius:4px!important}.calender h6,.calender p{font-size:11px!important}.calender .css-1fre31j,.calender .css-1j13ek9-MuiGrid-root{padding:0}.m-form__input .prestashop-switch.switch{display:block;height:30px;position:relative;width:160px}.m-form__input .prestashop-switch.switch.stactv{display:block;height:30px;position:relative;width:162px}.prestashop-switch.switch{background-color:#eee;border:1px solid #ccc;border-radius:50px;-webkit-box-shadow:inset 0 1px 4px 1px #00000026;-moz-box-shadow:inset 0 1px 4px 1px #00000026;box-shadow:inset 0 1px 4px 1px #00000026;color:#333;text-align:center}.prestashop-switch.switch *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.m-form__input .prestashop-switch.switch *{outline:0!important}.m-form__input .prestashop-switch.switch input[type=radio]{line-height:normal;margin:4px 0 0;opacity:0;position:absolute}.m-form__input .prestashop-switch.switch label,.m-form__input .prestashop-switch.switch>span{display:inline-block;line-height:30px;max-width:100%;vertical-align:middle}.m-form__input .prestashop-switch.switch label{color:#bbb;cursor:pointer;float:left;font-size:11px;font-weight:400;height:100%;margin:0;position:relative;text-align:center;text-transform:uppercase;-webkit-transition:color .2s ease-out;-o-transition:color .2s ease-out;transition:color .2s ease-out;width:50%;z-index:2}.m-form__input .prestashop-switch.switch input:checked+label{color:#fff}.m-form__input .prestashop-switch.switch a,.m-form__input .prestashop-switch.switch span span{display:none}.m-form__input .prestashop-switch.switch a{background-color:green;border:1px solid green;border-radius:50px;-webkit-box-shadow:inset -1px 0 green;-moz-box-shadow:inset 0 -1px 0 green;box-shadow:inset 0 -1px 0 green;color:#fff;display:block;height:100%;left:0;padding:0;position:absolute;top:0;-webkit-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;width:50%;z-index:1}.m-form__input{align-items:center;display:flex}.m-form__input .prestashop-switch.switch input:last-of-type:checked~a{background-color:#ec5c29;border:1px solid #fb561c;-webkit-box-shadow:inset 0 -1px 0 #fb561c;-moz-box-shadow:inset 0 -1px 0 #fb561c;box-shadow:inset 0 -1px 0 #fb561c;left:50%}#list-component{background-color:#fff;max-height:200px;overflow:auto!important}#list-component #MuiScrol-listbox{max-height:none!important;overflow:visible}.css-k2lwa0,.css-svpvcz-MuiFormLabel-root-MuiInputLabel-root{background:#fff;font-size:14px!important}@import "../assets/fonts/icon/flaticon_hvc.css";@font-face{font-display:swap;font-family:Roboto-Reg;src:url(../../assets/fonts/roboto-regular-webfont.woff) format("woff")}@font-face{font-display:swap;font-family:Roboto-Med;src:url(../../assets/fonts/roboto-medium-webfont.woff) format("woff")}@font-face{font-display:swap;font-family:Roboto;src:url(../../assets/fonts/roboto-bold-webfont.woff) format("woff")}*{box-sizing:border-box;margin:0;padding:0}html{background:#f8f8f8;height:100vh}body{background:#f8f8f8!important;font-family:Roboto;overflow-x:hidden}.MuiAccordionSummary-expandIconWrapper{color:#fff!important}.MuiAccordionSummary-root.Mui-expanded{min-height:40px!important}.MuiAccordionSummary-content.Mui-expanded{margin:0!important}.MuiAccordionSummary-content.Mui-expanded div{margin:12px 0!important}.action_icons{display:none}.list_action:hover .action_icons{background:#fff;border-radius:10px;box-shadow:0 0 10px #7f7f7f;-moz-column-count:2;column-count:2;display:block;left:60px;list-style-type:none;margin-top:-20px;padding:10px;position:absolute;top:auto 12px;z-index:110}.action_icons:hover{display:flex;flex-direction:column}.action_icons li{align-items:center;color:#0a8fdc;cursor:pointer;display:flex;line-height:1;padding:5px 0}.action_icons li:hover{color:#266c9a;text-decoration:underline}.action_icons li svg{font-size:16px;margin-right:10px}.product-table thead tr{background:#edf3f7}.product-table thead tr th:nth-child(4){width:120px}.product-table thead tr th:nth-child(7){width:50px}.product-table thead tr th:nth-child(6){width:100px}.product-table thead tr th:nth-child(2){width:60px}.product-table thead tr th:nth-child(3){width:100px}.product-table thead tr th:nth-child(5){width:125px}.product-table thead tr th:nth-child(10),.product-table thead tr th:nth-child(8),.product-table thead tr th:nth-child(9){width:100px}.product-table thead tr th:nth-child(11){width:90px}.product-table thead tr th:nth-child(12){width:80px}.product-table thead tr th:nth-child(13){width:100px}.product-table thead tr th:nth-child(14){width:50px}.product-table thead tr th:nth-child(16){width:120px}.product-table thead tr th:nth-child(15){width:60px}.product-table thead tr th:nth-child(17){width:130px}.product-table thead tr th:first-child{width:50px}.product-table thead tr th:last-child{width:60px}.MuiButton-root{box-shadow:none!important}.description-card{height:100%}.danger-badge{color:#dc3545}.danger-badge,.success-badge{border-radius:10px;display:inline-block;padding:2px 14px}.success-badge{color:#198754}.menu-wrapper p{color:#fff!important}.menu-item-wrapper:hover h6,.menu-item-wrapper:hover p,.menu-item-wrapper:hover svg,.menu-wrapper .second-level-wrapper p{color:#000!important}.css-12qr4rk-MuiTableCell-root{font-size:11px;padding:16px 0 16px 14px!important}@keyframes loader__wrapper{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.loader__wrapper{backface-visibility:hidden;height:100%;position:relative;transform:translateZ(0) scale(.64);transform-origin:0 0;width:100%}.loader__wrapper div{animation:loader__wrapper 1s linear infinite;border:10px solid #00adff;border-radius:50%;border-top-color:#0000;box-sizing:initial;height:60px;left:50px;position:absolute;top:50px;width:60px}.loader{background:#0000;display:block;height:64px;margin:0 auto;overflow:hidden;width:64px}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export { default as Button } from "./components/Button/Button";
2
- export { default as RenderForm } from "./components/Form/FormRender";
1
+ export { default as RenderForm } from "./components/Form/FormRenderWrapper";
2
+ export { default as useFormValidatingContext } from "./components/Form/FormConstants";
3
+ export { default as DeleteField } from "./components/DeleteComponent/DeleteField";
4
+ export { default as SessionTimeoutField } from "./components/SessionTimeOut/SessionTimeOut";
@@ -1 +1 @@
1
- .rs-picker-default .rs-picker-toggle.rs-btn{padding-bottom:7px;padding-top:7px;width:282px}.rs-picker-default .rs-picker-toggle{border:1px solid #e5e5ea;color:#575757;cursor:pointer;display:inline-block;outline:none;padding-left:44px;padding-right:67px;position:relative;z-index:5}.rs-picker-toggle-caret{color:#8e8e93;display:inline-block;font-weight:400;margin-right:240px;position:absolute;right:12px;top:8px}.rs-picker-toolbar-right-btn-ok{background-color:#3498ff;border:none;border-radius:30px;color:#fff;cursor:pointer;font-size:14px;outline:0;padding:8px 12px;text-align:center;width:100px}.rs-picker-menu .rs-calendar .rs-calendar-table-cell-content{border-radius:21px;display:inline-block;padding-left:0;padding-right:0}.css-1xisk3n{background:#ebf4f8!important}.css-xpa0r5-MuiButtonBase-root-MuiIconButton-root{border-radius:4px!important}.calender h6,.calender p{font-size:11px!important}.calender .css-1fre31j,.calender .css-1j13ek9-MuiGrid-root{padding:0}
1
+ .rs-picker-default .rs-picker-toggle.rs-btn{padding-bottom:7px;padding-top:7px;width:282px}.rs-picker-default .rs-picker-toggle{border:1px solid #e5e5ea;color:#575757;cursor:pointer;display:inline-block;outline:none;padding-left:44px;padding-right:67px;position:relative;z-index:5}.rs-picker-toggle-caret{color:#8e8e93;display:inline-block;font-weight:400;margin-right:240px;position:absolute;right:12px;top:8px}.rs-picker-toolbar-right-btn-ok{background-color:#3498ff;border:none;border-radius:30px;color:#fff;cursor:pointer;font-size:14px;outline:0;padding:8px 12px;text-align:center;width:100px}.rs-picker-menu .rs-calendar .rs-calendar-table-cell-content{border-radius:21px;display:inline-block;padding-left:0;padding-right:0}.css-1xisk3n{background:#ebf4f8!important}.css-xpa0r5-MuiButtonBase-root-MuiIconButton-root{border-radius:4px!important}.calender h6,.calender p{font-size:11px!important}.calender .css-1fre31j,.calender .css-1j13ek9-MuiGrid-root{padding:0}.m-form__input .prestashop-switch.switch{display:block;height:30px;position:relative;width:160px}.m-form__input .prestashop-switch.switch.stactv{display:block;height:30px;position:relative;width:162px}.prestashop-switch.switch{background-color:#eee;border:1px solid #ccc;border-radius:50px;-webkit-box-shadow:inset 0 1px 4px 1px #00000026;-moz-box-shadow:inset 0 1px 4px 1px #00000026;box-shadow:inset 0 1px 4px 1px #00000026;color:#333;text-align:center}.prestashop-switch.switch *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.m-form__input .prestashop-switch.switch *{outline:0!important}.m-form__input .prestashop-switch.switch input[type=radio]{line-height:normal;margin:4px 0 0;opacity:0;position:absolute}.m-form__input .prestashop-switch.switch label,.m-form__input .prestashop-switch.switch>span{display:inline-block;line-height:30px;max-width:100%;vertical-align:middle}.m-form__input .prestashop-switch.switch label{color:#bbb;cursor:pointer;float:left;font-size:11px;font-weight:400;height:100%;margin:0;position:relative;text-align:center;text-transform:uppercase;-webkit-transition:color .2s ease-out;-o-transition:color .2s ease-out;transition:color .2s ease-out;width:50%;z-index:2}.m-form__input .prestashop-switch.switch input:checked+label{color:#fff}.m-form__input .prestashop-switch.switch a,.m-form__input .prestashop-switch.switch span span{display:none}.m-form__input .prestashop-switch.switch a{background-color:green;border:1px solid green;border-radius:50px;-webkit-box-shadow:inset -1px 0 green;-moz-box-shadow:inset 0 -1px 0 green;box-shadow:inset 0 -1px 0 green;color:#fff;display:block;height:100%;left:0;padding:0;position:absolute;top:0;-webkit-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;width:50%;z-index:1}.m-form__input{align-items:center;display:flex}.m-form__input .prestashop-switch.switch input:last-of-type:checked~a{background-color:#ec5c29;border:1px solid #fb561c;-webkit-box-shadow:inset 0 -1px 0 #fb561c;-moz-box-shadow:inset 0 -1px 0 #fb561c;box-shadow:inset 0 -1px 0 #fb561c;left:50%}#list-component{background-color:#fff;max-height:200px;overflow:auto!important}#list-component #MuiScrol-listbox{max-height:none!important;overflow:visible}.css-k2lwa0,.css-svpvcz-MuiFormLabel-root-MuiInputLabel-root{background:#fff;font-size:14px!important}@import "../assets/fonts/icon/flaticon_hvc.css";@font-face{font-display:swap;font-family:Roboto-Reg;src:url(../../assets/fonts/roboto-regular-webfont.woff) format("woff")}@font-face{font-display:swap;font-family:Roboto-Med;src:url(../../assets/fonts/roboto-medium-webfont.woff) format("woff")}@font-face{font-display:swap;font-family:Roboto;src:url(../../assets/fonts/roboto-bold-webfont.woff) format("woff")}*{box-sizing:border-box;margin:0;padding:0}html{background:#f8f8f8;height:100vh}body{background:#f8f8f8!important;font-family:Roboto;overflow-x:hidden}.MuiAccordionSummary-expandIconWrapper{color:#fff!important}.MuiAccordionSummary-root.Mui-expanded{min-height:40px!important}.MuiAccordionSummary-content.Mui-expanded{margin:0!important}.MuiAccordionSummary-content.Mui-expanded div{margin:12px 0!important}.action_icons{display:none}.list_action:hover .action_icons{background:#fff;border-radius:10px;box-shadow:0 0 10px #7f7f7f;-moz-column-count:2;column-count:2;display:block;left:60px;list-style-type:none;margin-top:-20px;padding:10px;position:absolute;top:auto 12px;z-index:110}.action_icons:hover{display:flex;flex-direction:column}.action_icons li{align-items:center;color:#0a8fdc;cursor:pointer;display:flex;line-height:1;padding:5px 0}.action_icons li:hover{color:#266c9a;text-decoration:underline}.action_icons li svg{font-size:16px;margin-right:10px}.product-table thead tr{background:#edf3f7}.product-table thead tr th:nth-child(4){width:120px}.product-table thead tr th:nth-child(7){width:50px}.product-table thead tr th:nth-child(6){width:100px}.product-table thead tr th:nth-child(2){width:60px}.product-table thead tr th:nth-child(3){width:100px}.product-table thead tr th:nth-child(5){width:125px}.product-table thead tr th:nth-child(10),.product-table thead tr th:nth-child(8),.product-table thead tr th:nth-child(9){width:100px}.product-table thead tr th:nth-child(11){width:90px}.product-table thead tr th:nth-child(12){width:80px}.product-table thead tr th:nth-child(13){width:100px}.product-table thead tr th:nth-child(14){width:50px}.product-table thead tr th:nth-child(16){width:120px}.product-table thead tr th:nth-child(15){width:60px}.product-table thead tr th:nth-child(17){width:130px}.product-table thead tr th:first-child{width:50px}.product-table thead tr th:last-child{width:60px}.MuiButton-root{box-shadow:none!important}.description-card{height:100%}.danger-badge{color:#dc3545}.danger-badge,.success-badge{border-radius:10px;display:inline-block;padding:2px 14px}.success-badge{color:#198754}.menu-wrapper p{color:#fff!important}.menu-item-wrapper:hover h6,.menu-item-wrapper:hover p,.menu-item-wrapper:hover svg,.menu-wrapper .second-level-wrapper p{color:#000!important}.css-12qr4rk-MuiTableCell-root{font-size:11px;padding:16px 0 16px 14px!important}@keyframes loader__wrapper{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.loader__wrapper{backface-visibility:hidden;height:100%;position:relative;transform:translateZ(0) scale(.64);transform-origin:0 0;width:100%}.loader__wrapper div{animation:loader__wrapper 1s linear infinite;border:10px solid #00adff;border-radius:50%;border-top-color:#0000;box-sizing:initial;height:60px;left:50px;position:absolute;top:50px;width:60px}.loader{background:#0000;display:block;height:64px;margin:0 auto;overflow:hidden;width:64px}