@knovator/pagecreator-admin 1.2.9 → 1.3.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.
Files changed (167) hide show
  1. package/index.cjs +7878 -0
  2. package/index.css +2 -0
  3. package/index.js +7864 -0
  4. package/package.json +42 -38
  5. package/src/{index.ts → index.d.ts} +0 -1
  6. package/src/lib/api/index.d.ts +10 -0
  7. package/src/lib/api/list.d.ts +56 -0
  8. package/src/lib/components/Page/AddButton/AddButton.d.ts +3 -0
  9. package/src/lib/components/Page/AddButton/{index.ts → index.d.ts} +0 -1
  10. package/src/lib/components/Page/Form/PageForm.d.ts +4 -0
  11. package/src/lib/components/Page/Form/{index.ts → index.d.ts} +0 -1
  12. package/src/lib/components/Page/Page/Page.d.ts +13 -0
  13. package/src/lib/components/Page/Page/{index.ts → index.d.ts} +0 -1
  14. package/src/lib/components/Page/PageFormActions/PageFormActions.d.ts +4 -0
  15. package/src/lib/components/Page/PageFormActions/{index.ts → index.d.ts} +0 -1
  16. package/src/lib/components/Page/PageFormWrapper/PageFormWrapper.d.ts +4 -0
  17. package/src/lib/components/Page/PageFormWrapper/{index.ts → index.d.ts} +0 -1
  18. package/src/lib/components/Page/Pagination/PagePagination.d.ts +3 -0
  19. package/src/lib/components/Page/Pagination/{index.ts → index.d.ts} +0 -1
  20. package/src/lib/components/Page/Search/PageSearch.d.ts +3 -0
  21. package/src/lib/components/Page/Search/{index.tsx → index.d.ts} +0 -1
  22. package/src/lib/components/Page/Table/PageTable.d.ts +4 -0
  23. package/src/lib/components/Page/Table/{index.ts → index.d.ts} +0 -1
  24. package/src/lib/components/Page/{index.ts → index.d.ts} +0 -1
  25. package/src/lib/components/Widget/AddButton/AddButton.d.ts +3 -0
  26. package/src/lib/components/Widget/AddButton/{index.ts → index.d.ts} +0 -1
  27. package/src/lib/components/Widget/Form/ItemsAccordian.d.ts +4 -0
  28. package/src/lib/components/Widget/Form/Tabs/TabItem.d.ts +4 -0
  29. package/src/lib/components/Widget/Form/Tabs/Tabs.d.ts +4 -0
  30. package/src/lib/components/Widget/Form/Tabs/{index.ts → index.d.ts} +0 -1
  31. package/src/lib/components/Widget/Form/WidgetForm.d.ts +4 -0
  32. package/src/lib/components/Widget/Form/{index.ts → index.d.ts} +0 -1
  33. package/src/lib/components/Widget/Pagination/WidgetPagination.d.ts +3 -0
  34. package/src/lib/components/Widget/Pagination/{index.ts → index.d.ts} +0 -1
  35. package/src/lib/components/Widget/Search/WidgetSearch.d.ts +3 -0
  36. package/src/lib/components/Widget/Search/{index.tsx → index.d.ts} +0 -1
  37. package/src/lib/components/Widget/Table/WidgetTable.d.ts +4 -0
  38. package/src/lib/components/Widget/Table/{index.ts → index.d.ts} +0 -1
  39. package/src/lib/components/Widget/Widget/Widget.d.ts +13 -0
  40. package/src/lib/components/Widget/Widget/{index.ts → index.d.ts} +0 -1
  41. package/src/lib/components/Widget/WidgetFormActions/WidgetFormActions.d.ts +4 -0
  42. package/src/lib/components/Widget/WidgetFormActions/{index.ts → index.d.ts} +0 -1
  43. package/src/lib/components/Widget/WidgetFormWrapper/WidgetFormWrapper.d.ts +4 -0
  44. package/src/lib/components/Widget/WidgetFormWrapper/{index.ts → index.d.ts} +0 -1
  45. package/src/lib/components/Widget/{index.tsx → index.d.ts} +0 -1
  46. package/src/lib/components/common/Accordian/Accordian.d.ts +13 -0
  47. package/src/lib/components/common/Accordian/{index.ts → index.d.ts} +0 -1
  48. package/src/lib/components/common/Button/Button.d.ts +4 -0
  49. package/src/lib/components/common/Button/{index.ts → index.d.ts} +0 -1
  50. package/src/lib/components/common/ConfirmPopover/ConfirmPopover.d.ts +4 -0
  51. package/src/lib/components/common/ConfirmPopover/{index.ts → index.d.ts} +0 -1
  52. package/src/lib/components/common/DNDItemsList/DNDItemsList.d.ts +4 -0
  53. package/src/lib/components/common/DNDItemsList/{index.ts → index.d.ts} +0 -1
  54. package/src/lib/components/common/DeleteModal/DeleteModal.d.ts +4 -0
  55. package/src/lib/components/common/DeleteModal/index.d.ts +2 -0
  56. package/src/lib/components/common/Drawer/Drawer.d.ts +9 -0
  57. package/src/lib/components/common/Drawer/{index.ts → index.d.ts} +0 -1
  58. package/src/lib/components/common/Form/Form.d.ts +15 -0
  59. package/src/lib/components/common/Form/SimpleForm.d.ts +18 -0
  60. package/src/lib/components/common/Form/{index.ts → index.d.ts} +0 -1
  61. package/src/lib/components/common/FormActions/FormActions.d.ts +10 -0
  62. package/src/lib/components/common/FormActions/{index.ts → index.d.ts} +0 -1
  63. package/src/lib/components/common/ImageUpload/ImageUpload.d.ts +4 -0
  64. package/src/lib/components/common/ImageUpload/index.d.ts +2 -0
  65. package/src/lib/components/common/Input/Checkbox.d.ts +4 -0
  66. package/src/lib/components/common/Input/Input.d.ts +4 -0
  67. package/src/lib/components/common/Input/ReactSelect.d.ts +4 -0
  68. package/src/lib/components/common/Input/Select.d.ts +4 -0
  69. package/src/lib/components/common/Input/SrcSet.d.ts +4 -0
  70. package/src/lib/components/common/Input/index.d.ts +12 -0
  71. package/src/lib/components/common/Modal/Modal.d.ts +8 -0
  72. package/src/lib/components/common/Modal/index.d.ts +2 -0
  73. package/src/lib/components/common/Pagination/Pagination.d.ts +4 -0
  74. package/src/lib/components/common/Pagination/{index.ts → index.d.ts} +0 -1
  75. package/src/lib/components/common/Table/Table.d.ts +4 -0
  76. package/src/lib/components/common/Table/{index.ts → index.d.ts} +0 -1
  77. package/src/lib/components/common/Toggle/Toggle.d.ts +4 -0
  78. package/src/lib/components/common/Toggle/{index.ts → index.d.ts} +0 -1
  79. package/src/lib/constants/common.d.ts +122 -0
  80. package/src/lib/context/PageContext.d.ts +7 -0
  81. package/src/lib/context/ProviderContext.d.ts +5 -0
  82. package/src/lib/context/WidgetContext.d.ts +7 -0
  83. package/src/lib/helper/utils.d.ts +10 -0
  84. package/src/lib/hooks/usePage.d.ts +37 -0
  85. package/src/lib/hooks/usePagination.d.ts +15 -0
  86. package/src/lib/hooks/useWidget.d.ts +46 -0
  87. package/src/lib/icons/chevronDown.d.ts +4 -0
  88. package/src/lib/icons/chevronLeft.d.ts +4 -0
  89. package/src/lib/icons/chevronRight.d.ts +4 -0
  90. package/src/lib/icons/chevronUp.d.ts +4 -0
  91. package/src/lib/icons/close.d.ts +4 -0
  92. package/src/lib/icons/pencil.d.ts +4 -0
  93. package/src/lib/icons/plus.d.ts +4 -0
  94. package/src/lib/icons/settings.d.ts +4 -0
  95. package/src/lib/icons/trash.d.ts +4 -0
  96. package/src/lib/types/api.d.ts +34 -0
  97. package/src/lib/types/common.d.ts +30 -0
  98. package/src/lib/types/components.d.ts +422 -0
  99. package/src/lib/types/context.d.ts +135 -0
  100. package/index.d.ts +0 -1
  101. package/src/lib/api/index.ts +0 -70
  102. package/src/lib/api/list.ts +0 -59
  103. package/src/lib/components/Page/AddButton/AddButton.tsx +0 -16
  104. package/src/lib/components/Page/Form/PageForm.tsx +0 -194
  105. package/src/lib/components/Page/Page/Page.tsx +0 -151
  106. package/src/lib/components/Page/PageFormActions/PageFormActions.tsx +0 -50
  107. package/src/lib/components/Page/PageFormWrapper/PageFormWrapper.tsx +0 -16
  108. package/src/lib/components/Page/Pagination/PagePagination.tsx +0 -26
  109. package/src/lib/components/Page/Search/PageSearch.tsx +0 -32
  110. package/src/lib/components/Page/Table/PageTable.tsx +0 -36
  111. package/src/lib/components/Widget/AddButton/AddButton.tsx +0 -16
  112. package/src/lib/components/Widget/Form/ItemsAccordian.tsx +0 -354
  113. package/src/lib/components/Widget/Form/Tabs/TabItem.tsx +0 -43
  114. package/src/lib/components/Widget/Form/Tabs/Tabs.tsx +0 -190
  115. package/src/lib/components/Widget/Form/WidgetForm.tsx +0 -771
  116. package/src/lib/components/Widget/Pagination/WidgetPagination.tsx +0 -26
  117. package/src/lib/components/Widget/Search/WidgetSearch.tsx +0 -32
  118. package/src/lib/components/Widget/Table/WidgetTable.tsx +0 -70
  119. package/src/lib/components/Widget/Widget/Widget.tsx +0 -173
  120. package/src/lib/components/Widget/WidgetFormActions/WidgetFormActions.tsx +0 -50
  121. package/src/lib/components/Widget/WidgetFormWrapper/WidgetFormWrapper.tsx +0 -16
  122. package/src/lib/components/common/Accordian/Accordian.tsx +0 -56
  123. package/src/lib/components/common/Button/Button.tsx +0 -45
  124. package/src/lib/components/common/ConfirmPopover/ConfirmPopover.tsx +0 -47
  125. package/src/lib/components/common/DNDItemsList/DNDItemsList.tsx +0 -77
  126. package/src/lib/components/common/DeleteModal/DeleteModal.tsx +0 -72
  127. package/src/lib/components/common/DeleteModal/index.tsx +0 -3
  128. package/src/lib/components/common/Drawer/Drawer.tsx +0 -79
  129. package/src/lib/components/common/Form/Form.tsx +0 -256
  130. package/src/lib/components/common/Form/SimpleForm.tsx +0 -314
  131. package/src/lib/components/common/FormActions/FormActions.tsx +0 -37
  132. package/src/lib/components/common/ImageUpload/ImageUpload.tsx +0 -113
  133. package/src/lib/components/common/ImageUpload/index.tsx +0 -3
  134. package/src/lib/components/common/Input/Checkbox.tsx +0 -25
  135. package/src/lib/components/common/Input/Input.tsx +0 -51
  136. package/src/lib/components/common/Input/ReactSelect.tsx +0 -61
  137. package/src/lib/components/common/Input/Select.tsx +0 -47
  138. package/src/lib/components/common/Input/SrcSet.tsx +0 -143
  139. package/src/lib/components/common/Input/index.ts +0 -20
  140. package/src/lib/components/common/Modal/Modal.tsx +0 -57
  141. package/src/lib/components/common/Modal/index.tsx +0 -3
  142. package/src/lib/components/common/Pagination/Pagination.tsx +0 -88
  143. package/src/lib/components/common/Table/Table.tsx +0 -133
  144. package/src/lib/components/common/Toggle/Toggle.tsx +0 -23
  145. package/src/lib/constants/common.ts +0 -145
  146. package/src/lib/context/PageContext.tsx +0 -100
  147. package/src/lib/context/ProviderContext.tsx +0 -52
  148. package/src/lib/context/WidgetContext.tsx +0 -127
  149. package/src/lib/helper/utils.ts +0 -46
  150. package/src/lib/hooks/usePage.tsx +0 -306
  151. package/src/lib/hooks/usePagination.tsx +0 -41
  152. package/src/lib/hooks/useWidget.tsx +0 -503
  153. package/src/lib/icons/chevronDown.tsx +0 -21
  154. package/src/lib/icons/chevronLeft.tsx +0 -20
  155. package/src/lib/icons/chevronRight.tsx +0 -20
  156. package/src/lib/icons/chevronUp.tsx +0 -21
  157. package/src/lib/icons/close.tsx +0 -21
  158. package/src/lib/icons/pencil.tsx +0 -21
  159. package/src/lib/icons/plus.tsx +0 -23
  160. package/src/lib/icons/settings.tsx +0 -35
  161. package/src/lib/icons/trash.tsx +0 -21
  162. package/src/lib/types/api.ts +0 -44
  163. package/src/lib/types/common.ts +0 -31
  164. package/src/lib/types/components.ts +0 -428
  165. package/src/lib/types/context.ts +0 -184
  166. package/src/styles/index.css +0 -481
  167. /package/src/lib/types/{index.ts → index.d.ts} +0 -0
package/package.json CHANGED
@@ -1,38 +1,42 @@
1
- {
2
- "name": "@knovator/pagecreator-admin",
3
- "version":"1.2.9",
4
- "dependencies": {
5
- "classnames": "^2.3.1",
6
- "react-beautiful-dnd": "^13.1.0",
7
- "react-transition-group": "^4.4.5",
8
- "react-hook-form": "^7.34.2",
9
- "react-dropzone": "^14.2.2",
10
- "react-select": "^5.4.0",
11
- "react-tabs": "^6.0.0",
12
- "react-tiny-popover": "^7.2.0"
13
- },
14
- "peerDependencies": {
15
- "react": "^18 | ^17",
16
- "@knovator/api": "^0.0.10"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git@github.com:knovator/pagecreator.git"
21
- },
22
- "keywords": [
23
- "pagecreator",
24
- "pagebuilder",
25
- "knovator",
26
- "chavda-bhavik"
27
- ],
28
- "author": "knovator (https://knovator.com/)",
29
- "files": [
30
- "src",
31
- "package.json",
32
- "README.md",
33
- "index.css",
34
- "index.d.ts",
35
- "index.js",
36
- "index.cjs"
37
- ]
38
- }
1
+ {
2
+ "name": "@knovator/pagecreator-admin",
3
+ "version": "1.3.1",
4
+ "dependencies": {
5
+ "classnames": "^2.3.1",
6
+ "react-beautiful-dnd": "^13.1.0",
7
+ "react-transition-group": "^4.4.5",
8
+ "react-hook-form": "^7.34.2",
9
+ "react-dropzone": "^14.2.2",
10
+ "react-select": "^5.4.0",
11
+ "react-tabs": "^6.0.0",
12
+ "react-tiny-popover": "^7.2.0"
13
+ },
14
+ "peerDependencies": {
15
+ "react": "^18 | ^17",
16
+ "@knovator/api": "^0.0.10"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git@github.com:knovator/pagecreator.git"
21
+ },
22
+ "keywords": [
23
+ "pagecreator",
24
+ "pagebuilder",
25
+ "knovator",
26
+ "chavda-bhavik"
27
+ ],
28
+ "author": "knovator (https://knovator.com/)",
29
+ "files": [
30
+ "src",
31
+ "package.json",
32
+ "README.md",
33
+ "index.css",
34
+ "index.d.ts",
35
+ "index.js",
36
+ "index.cjs"
37
+ ],
38
+ "module": "./index.js",
39
+ "main": "./index.cjs",
40
+ "type": "module",
41
+ "types": "./src\\index.d.ts"
42
+ }
@@ -2,5 +2,4 @@ import './styles/index.css';
2
2
  import { Page } from './lib/components/Page';
3
3
  import { Widget } from './lib/components/Widget';
4
4
  import Provider from './lib/context/ProviderContext';
5
-
6
5
  export { Widget, Provider, Page };
@@ -0,0 +1,10 @@
1
+ import { ACTION_TYPES, API_TYPE, BaseAPIProps, Routes_Input, ResponseType } from '../types';
2
+ declare const commonApi: ({ data, config, baseUrl, token, url, method, onError, }: BaseAPIProps) => Promise<ResponseType>;
3
+ declare const getApiType: ({ routes, action, prefix, id, }: {
4
+ routes?: Routes_Input | undefined;
5
+ action: ACTION_TYPES;
6
+ prefix: string;
7
+ id?: string | undefined;
8
+ }) => API_TYPE;
9
+ export default commonApi;
10
+ export { getApiType };
@@ -0,0 +1,56 @@
1
+ import { API_INPUT_TYPE } from '../types';
2
+ declare const apiList: {
3
+ GET_ONE: ({ prefix, id }: API_INPUT_TYPE) => {
4
+ url: string;
5
+ method: string;
6
+ };
7
+ LIST: ({ prefix }: API_INPUT_TYPE) => {
8
+ url: string;
9
+ method: string;
10
+ };
11
+ CREATE: ({ prefix }: API_INPUT_TYPE) => {
12
+ url: string;
13
+ method: string;
14
+ };
15
+ UPDATE: ({ prefix, id }: API_INPUT_TYPE) => {
16
+ url: string;
17
+ method: string;
18
+ };
19
+ PARTIAL_UPDATE: ({ prefix, id }: API_INPUT_TYPE) => {
20
+ url: string;
21
+ method: string;
22
+ };
23
+ DELETE: ({ prefix, id }: API_INPUT_TYPE) => {
24
+ url: string;
25
+ method: string;
26
+ };
27
+ WIDGET_TYPES: ({ prefix }: API_INPUT_TYPE) => {
28
+ url: string;
29
+ method: string;
30
+ };
31
+ SELECTION_TYPES: ({ prefix }: API_INPUT_TYPE) => {
32
+ url: string;
33
+ method: string;
34
+ };
35
+ ITEM: ({ prefix, id }: API_INPUT_TYPE) => {
36
+ url: string;
37
+ method: string;
38
+ };
39
+ COLLECTION_DATA: ({ prefix }: API_INPUT_TYPE) => {
40
+ url: string;
41
+ method: string;
42
+ };
43
+ LANGUAGES: ({ prefix }: API_INPUT_TYPE) => {
44
+ url: string;
45
+ method: string;
46
+ };
47
+ IMAGE_UPLOAD: ({ prefix }: API_INPUT_TYPE) => {
48
+ url: string;
49
+ method: string;
50
+ };
51
+ IMAGE_REMOVE: ({ prefix, id }: API_INPUT_TYPE) => {
52
+ url: string;
53
+ method: string;
54
+ };
55
+ };
56
+ export default apiList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AddButton: () => JSX.Element;
3
+ export default AddButton;
@@ -1,3 +1,2 @@
1
1
  import AddButton from "./AddButton";
2
-
3
2
  export default AddButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormProps } from '../../../types';
3
+ declare const PageForm: ({ formRef, onFilterClick }: FormProps) => JSX.Element | null;
4
+ export default PageForm;
@@ -1,3 +1,2 @@
1
1
  import PageForm from "./PageForm";
2
-
3
2
  export default PageForm;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { PageProps } from '../../../types';
3
+ declare const Page: {
4
+ ({ loader, translations, explicitForm, children, permissions, preConfirmDelete, }: PageProps): JSX.Element;
5
+ Table: ({ extraActions, extraColumns }: import("../../../types").DerivedTableProps) => JSX.Element;
6
+ Search: () => JSX.Element;
7
+ Form: ({ formRef }: import("../../../types").FormProps) => JSX.Element | null;
8
+ AddButton: () => JSX.Element;
9
+ Pagination: () => JSX.Element;
10
+ FormActions: ({ formRef }: import("../../../types").FormActionWrapperProps) => JSX.Element | null;
11
+ FormWrapper: ({ children }: import("../../../types").FormWrapperProps) => JSX.Element | null;
12
+ };
13
+ export default Page;
@@ -1,3 +1,2 @@
1
1
  import Page from "./Page";
2
-
3
2
  export default Page;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormActionWrapperProps } from '../../../types';
3
+ declare const PageFormActions: ({ formRef }: FormActionWrapperProps) => JSX.Element | null;
4
+ export default PageFormActions;
@@ -1,3 +1,2 @@
1
1
  import PageFormActions from './PageFormActions';
2
-
3
2
  export default PageFormActions;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormWrapperProps } from '../../../types';
3
+ declare const PageFormWrapper: ({ children }: FormWrapperProps) => JSX.Element | null;
4
+ export default PageFormWrapper;
@@ -1,3 +1,2 @@
1
1
  import PageFormWrapper from './PageFormWrapper';
2
-
3
2
  export default PageFormWrapper;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PagePagination: () => JSX.Element;
3
+ export default PagePagination;
@@ -1,3 +1,2 @@
1
1
  import PagePagination from "./PagePagination";
2
-
3
2
  export default PagePagination;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PageSearch: () => JSX.Element;
3
+ export default PageSearch;
@@ -1,3 +1,2 @@
1
1
  import PageSearch from "./PageSearch";
2
-
3
2
  export default PageSearch;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DerivedTableProps } from '../../../types';
3
+ declare const PageTable: ({ extraActions, extraColumns }: DerivedTableProps) => JSX.Element;
4
+ export default PageTable;
@@ -1,3 +1,2 @@
1
1
  import PageTable from "./PageTable";
2
-
3
2
  export default PageTable;
@@ -1,3 +1,2 @@
1
1
  import Page from "./Page";
2
-
3
2
  export { Page };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AddButton: () => JSX.Element;
3
+ export default AddButton;
@@ -1,3 +1,2 @@
1
1
  import AddButton from "./AddButton";
2
-
3
2
  export default AddButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ItemsAccordianProps } from '../../../types';
3
+ declare const ItemsAccordian: ({ show, title, id, collapseId, toggleShow, loading, name, errors, control, register, setError, itemType, languages, clearError, addText, deleteText, }: ItemsAccordianProps) => JSX.Element;
4
+ export default ItemsAccordian;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TabItemProps } from '../../../../types';
3
+ declare const TabItem: ({ showDelete, isDisabled, deleteTitle, onRemoveTab, register, error, noButtonText, yesButtonText, }: TabItemProps) => JSX.Element;
4
+ export default TabItem;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TabsProps } from '../../../../types';
3
+ declare const Tabs: ({ errors, activeTab, setActiveTab, options, control, listCode, setValue, getValues, languages, formatItem, deleteTitle, clearErrors, loadOptions, customStyles, noButtonText, yesButtonText, isItemsLoading, itemsPlaceholder, formatOptionLabel, tabCollectionItems, onCollectionItemsIndexChange, }: TabsProps) => JSX.Element;
4
+ export default Tabs;
@@ -1,3 +1,2 @@
1
1
  import Tabs from './Tabs';
2
-
3
2
  export default Tabs;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormProps } from '../../../types';
3
+ declare const WidgetForm: ({ formRef, customInputs }: FormProps) => JSX.Element | null;
4
+ export default WidgetForm;
@@ -1,3 +1,2 @@
1
1
  import MasterForm from "./WidgetForm";
2
-
3
2
  export default MasterForm;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const WidgetPagination: () => JSX.Element;
3
+ export default WidgetPagination;
@@ -1,3 +1,2 @@
1
1
  import WidgetPagination from "./WidgetPagination";
2
-
3
2
  export default WidgetPagination;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const WidgetSearch: () => JSX.Element;
3
+ export default WidgetSearch;
@@ -1,3 +1,2 @@
1
1
  import WidgetSearch from "./WidgetSearch";
2
-
3
2
  export default WidgetSearch;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DerivedTableProps } from '../../../types';
3
+ declare const WidgetTable: ({ extraActions, extraColumns }: DerivedTableProps) => JSX.Element;
4
+ export default WidgetTable;
@@ -1,3 +1,2 @@
1
1
  import WidgetTable from "./WidgetTable";
2
-
3
2
  export default WidgetTable;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { WidgetProps } from '../../../types';
3
+ declare const Widget: {
4
+ ({ routes, loader, explicitForm, imageBaseUrl, permissions, preConfirmDelete, formatListItem, formatOptionLabel, imageMaxSize, translations, children, }: WidgetProps): JSX.Element;
5
+ Table: ({ extraActions, extraColumns }: import("../../../types").DerivedTableProps) => JSX.Element;
6
+ Form: ({ formRef, customInputs }: import("../../../types").FormProps) => JSX.Element | null;
7
+ AddButton: () => JSX.Element;
8
+ Search: () => JSX.Element;
9
+ Pagination: () => JSX.Element;
10
+ FormWrapper: ({ children }: import("../../../types").FormWrapperProps) => JSX.Element | null;
11
+ FormActions: ({ formRef }: import("../../../types").FormActionWrapperProps) => JSX.Element | null;
12
+ };
13
+ export default Widget;
@@ -1,3 +1,2 @@
1
1
  import Widget from "./Widget";
2
-
3
2
  export default Widget;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormActionWrapperProps } from '../../../types';
3
+ declare const WidgetFormActions: ({ formRef }: FormActionWrapperProps) => JSX.Element | null;
4
+ export default WidgetFormActions;
@@ -1,3 +1,2 @@
1
1
  import WidgetFormActions from './WidgetFormActions';
2
-
3
2
  export default WidgetFormActions;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormWrapperProps } from '../../../types';
3
+ declare const WiddgetFormWrapper: ({ children }: FormWrapperProps) => JSX.Element | null;
4
+ export default WiddgetFormWrapper;
@@ -1,3 +1,2 @@
1
1
  import WiddgetFormWrapper from './WidgetFormWrapper';
2
-
3
2
  export default WiddgetFormWrapper;
@@ -1,3 +1,2 @@
1
1
  import Widget from "./Widget";
2
-
3
2
  export { Widget };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface AccordianProps {
3
+ id?: string;
4
+ collapseId?: string;
5
+ className?: string;
6
+ children?: React.ReactNode;
7
+ open?: boolean;
8
+ onToggle?: (status: boolean) => void;
9
+ title?: string;
10
+ footerContent?: React.ReactNode;
11
+ }
12
+ declare const Accordian: ({ id, className, children, open, onToggle, title, collapseId, footerContent, }: AccordianProps) => JSX.Element;
13
+ export default Accordian;
@@ -1,3 +1,2 @@
1
1
  import Accordian from "./Accordian";
2
-
3
2
  export default Accordian;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '../../../types';
3
+ declare const Button: ({ type, size, onClick, className, children, disabled, loading, }: ButtonProps) => JSX.Element;
4
+ export default Button;
@@ -1,3 +1,2 @@
1
1
  import Button from "./Button";
2
-
3
2
  export default Button;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ConfirmPopoverProps } from '../../../types';
3
+ declare const ConfirmPopOver: ({ children, onConfirm, title, confirmText, cancelText, }: ConfirmPopoverProps) => JSX.Element;
4
+ export default ConfirmPopOver;
@@ -1,3 +1,2 @@
1
1
  import ConfirmPopover from './ConfirmPopover';
2
-
3
2
  export default ConfirmPopover;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DNDItemsListProps } from '../../../types';
3
+ declare const DNDItemsList: ({ onDragEnd, items, formatItem, listCode, onFilterClick, }: DNDItemsListProps) => JSX.Element;
4
+ export default DNDItemsList;
@@ -1,3 +1,2 @@
1
1
  import DNDItemsList from "./DNDItemsList";
2
-
3
2
  export default DNDItemsList;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DeleteModalProps } from '../../../types';
3
+ declare const DeleteModal: ({ formState, onClose, itemData, onConfirmDelete, confirmationRequired, permanentlyDelete, lossOfData, pleaseType, toProceedOrCancel, confirm, typeHerePlaceholder, }: DeleteModalProps) => JSX.Element | null;
4
+ export default DeleteModal;
@@ -0,0 +1,2 @@
1
+ import DeleteModal from "./DeleteModal";
2
+ export default DeleteModal;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface DrawerProps extends React.PropsWithChildren {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ footerContent?: React.ReactNode;
7
+ }
8
+ declare const Drawer: ({ children, open, onClose, title, footerContent, }: DrawerProps) => JSX.Element;
9
+ export default Drawer;
@@ -1,3 +1,2 @@
1
1
  import Drawer from "./Drawer";
2
-
3
2
  export default Drawer;
@@ -0,0 +1,15 @@
1
+ import React, { MutableRefObject } from 'react';
2
+ import { EventType } from 'react-hook-form';
3
+ import { CombineObjectType, ObjectType, SchemaType } from '../../../types';
4
+ interface FormProps {
5
+ schema: SchemaType[];
6
+ data?: CombineObjectType;
7
+ isUpdating?: boolean;
8
+ onSubmit: (data: CombineObjectType) => void;
9
+ enable?: boolean;
10
+ updates?: CombineObjectType;
11
+ ref: MutableRefObject<HTMLFormElement | null>;
12
+ watcher?: (value: ObjectType, name: string | undefined, type: EventType | undefined) => void;
13
+ }
14
+ declare const Form: React.ForwardRefExoticComponent<Pick<FormProps, "schema" | "onSubmit" | "data" | "isUpdating" | "enable" | "updates" | "watcher"> & React.RefAttributes<HTMLFormElement | null>>;
15
+ export default Form;
@@ -0,0 +1,18 @@
1
+ import React, { MutableRefObject } from 'react';
2
+ import { CombineObjectType, LanguageType, SchemaType } from '../../../types';
3
+ interface SimpleFormProps {
4
+ schema: SchemaType[];
5
+ isUpdating?: boolean;
6
+ onSubmit: (data: CombineObjectType) => void;
7
+ enable?: boolean;
8
+ languages?: LanguageType[];
9
+ ref: MutableRefObject<HTMLFormElement | null>;
10
+ register: any;
11
+ errors: any;
12
+ handleSubmit: any;
13
+ setValue: any;
14
+ control: any;
15
+ setError: any;
16
+ }
17
+ declare const SimpleForm: React.ForwardRefExoticComponent<Pick<SimpleFormProps, "schema" | "onSubmit" | "isUpdating" | "enable" | "register" | "errors" | "handleSubmit" | "setValue" | "control" | "setError" | "languages"> & React.RefAttributes<HTMLFormElement | null>>;
18
+ export default SimpleForm;
@@ -1,5 +1,4 @@
1
1
  import Form from "./Form";
2
2
  import SimpleForm from "./SimpleForm";
3
-
4
3
  export default Form;
5
4
  export { SimpleForm };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface FormActionsProps {
3
+ loading?: boolean;
4
+ primaryLabel?: string;
5
+ secondaryLabel?: string;
6
+ onPrimaryButtonClick?: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
+ onSecondaryButtonClick?: () => void;
8
+ }
9
+ declare const FormActions: ({ loading, primaryLabel, secondaryLabel, onPrimaryButtonClick, onSecondaryButtonClick, }: FormActionsProps) => JSX.Element;
10
+ export default FormActions;
@@ -1,3 +1,2 @@
1
1
  import FormActions from './FormActions';
2
-
3
2
  export default FormActions;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ImageUploadProps } from '../../../types';
3
+ declare const _default: React.MemoExoticComponent<({ className, text, maxSize, setImgId, onError, error, imgId, onImageUpload, onImageRemove, clearError, baseUrl, disabled, }: ImageUploadProps) => JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import ImageUpload from "./ImageUpload";
2
+ export default ImageUpload;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxProps } from '../../../types';
3
+ declare const Checkbox: ({ rest, label, error, wrapperClassName, disabled, switchClass, }: CheckboxProps) => JSX.Element;
4
+ export default Checkbox;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../../../types';
3
+ declare const Input: ({ label, id, placeholder, type, size, required, error, className, disabled, rest, onInput, onBlur, value, info, onChange, wrapperClassName, }: InputProps) => JSX.Element;
4
+ export default Input;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ReactSelectProps } from '../../../types';
3
+ declare const CustomReactSelect: ({ onChange, label, error, className, isMulti, selectedOptions, required, isLoading, isSearchable, loadOptions, placeholder, wrapperClassName, formatOptionLabel, listCode, customStyles, selectKey, }: ReactSelectProps) => JSX.Element;
4
+ export default CustomReactSelect;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps } from '../../../types';
3
+ declare const Select: ({ onChange, value, rest, label, error, options, size, className, disabled, required, wrapperClassName, }: SelectProps) => JSX.Element;
4
+ export default Select;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { InputProps, SrcSetMessageProps } from '../../../types';
3
+ declare const SrcSet: ({ label, size, required, error, className, register, wrapperClassName, control, errors, name, disabled, screenSizeRequired, heightRequired, minHeight, minScreenSize, minWidth, widthRequired, }: InputProps & SrcSetMessageProps) => JSX.Element;
4
+ export default SrcSet;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import Checkbox from "./Checkbox";
3
+ import Select from "./Select";
4
+ import ReactSelect from "./ReactSelect";
5
+ import SrcSet from './SrcSet';
6
+ declare const _default: (({ label, id, placeholder, type, size, required, error, className, disabled, rest, onInput, onBlur, value, info, onChange, wrapperClassName, }: import("../../../types").InputProps) => JSX.Element) & {
7
+ Select: typeof Select;
8
+ ReactSelect: typeof ReactSelect;
9
+ Checkbox: typeof Checkbox;
10
+ SrcSet: typeof SrcSet;
11
+ };
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface ModalProps extends React.PropsWithChildren {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ }
7
+ declare const Modal: ({ open, onClose, title, children }: ModalProps) => JSX.Element;
8
+ export default Modal;
@@ -0,0 +1,2 @@
1
+ import Modal from "./Modal";
2
+ export default Modal;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PaginationProps } from '../../../types';
3
+ declare const Pagination: ({ currentPage, pageSize, totalPages, totalRecords, setCurrentPage, showingText, pageText, ofText, previousContent, nextContent, }: PaginationProps) => JSX.Element;
4
+ export default Pagination;
@@ -1,3 +1,2 @@
1
1
  import Pagination from "./Pagination";
2
-
3
2
  export default Pagination;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TableProps } from '../../../types';
3
+ declare const Table: ({ data, dataKeys, actions, loader, loading, extraActions, actionsLabel, extraColumns, }: TableProps) => JSX.Element;
4
+ export default Table;
@@ -1,3 +1,2 @@
1
1
  import Table from './Table';
2
-
3
2
  export default Table;