qucoon-components 0.0.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 (250) hide show
  1. package/README.md +54 -0
  2. package/dist/index.cjs.js +545 -0
  3. package/dist/index.es.js +92168 -0
  4. package/dist/style.css +1 -0
  5. package/dist/types/App.d.ts +2 -0
  6. package/dist/types/assets/data/countryCodes.json.d.ts +1457 -0
  7. package/dist/types/components/custom/Back.d.ts +2 -0
  8. package/dist/types/components/custom/BaseDropzone.d.ts +16 -0
  9. package/dist/types/components/custom/BaseFileUpload.d.ts +20 -0
  10. package/dist/types/components/custom/CopyToClipboard.d.ts +10 -0
  11. package/dist/types/components/custom/FilePreview.d.ts +13 -0
  12. package/dist/types/components/custom/FormikDropzone.d.ts +11 -0
  13. package/dist/types/components/custom/IconWrapper.d.ts +29 -0
  14. package/dist/types/components/custom/StatusIndicator.d.ts +9 -0
  15. package/dist/types/components/custom/TextDecorator.d.ts +4 -0
  16. package/dist/types/components/custom/TodoList.d.ts +12 -0
  17. package/dist/types/components/custom/index.d.ts +25 -0
  18. package/dist/types/components/custom/reduxProvider.d.ts +6 -0
  19. package/dist/types/components/icon/AddImageIcon.d.ts +3 -0
  20. package/dist/types/components/icon/AngleLeftIcon.d.ts +3 -0
  21. package/dist/types/components/icon/AngleRightIcon.d.ts +3 -0
  22. package/dist/types/components/icon/ApprovedInvoiceCascadingTabsIcon.d.ts +3 -0
  23. package/dist/types/components/icon/BillIcon.d.ts +3 -0
  24. package/dist/types/components/icon/BlurredEllipseBgIcon.d.ts +5 -0
  25. package/dist/types/components/icon/CalendarIcon.d.ts +3 -0
  26. package/dist/types/components/icon/CardIcon.d.ts +3 -0
  27. package/dist/types/components/icon/CircledLeftArrowIcon.d.ts +3 -0
  28. package/dist/types/components/icon/CloseIcon.d.ts +5 -0
  29. package/dist/types/components/icon/CloudUploadIcon.d.ts +3 -0
  30. package/dist/types/components/icon/CompanyLogo.d.ts +3 -0
  31. package/dist/types/components/icon/CopyIcon.d.ts +3 -0
  32. package/dist/types/components/icon/CreateInvoiceCascadingTabsIcon.d.ts +3 -0
  33. package/dist/types/components/icon/CubeIcon.d.ts +3 -0
  34. package/dist/types/components/icon/CustomerServiceIcon.d.ts +3 -0
  35. package/dist/types/components/icon/CustomersIcon.d.ts +3 -0
  36. package/dist/types/components/icon/DownloadIcon.d.ts +3 -0
  37. package/dist/types/components/icon/DropdownAltIcon.d.ts +5 -0
  38. package/dist/types/components/icon/DropdownIcon.d.ts +5 -0
  39. package/dist/types/components/icon/EditIcon.d.ts +3 -0
  40. package/dist/types/components/icon/EditInvoiceLandingPageIcon.d.ts +3 -0
  41. package/dist/types/components/icon/EditInvoiceLandingPageServicesIcon.d.ts +3 -0
  42. package/dist/types/components/icon/EmailIcon.d.ts +3 -0
  43. package/dist/types/components/icon/ExitIcon.d.ts +3 -0
  44. package/dist/types/components/icon/ExportNoteIcon.d.ts +3 -0
  45. package/dist/types/components/icon/EyeVisibleIcon.d.ts +5 -0
  46. package/dist/types/components/icon/FacebookIcon.d.ts +3 -0
  47. package/dist/types/components/icon/FileFolderIcon.d.ts +3 -0
  48. package/dist/types/components/icon/FileFormatsIcon.d.ts +6 -0
  49. package/dist/types/components/icon/FilterIcon.d.ts +2 -0
  50. package/dist/types/components/icon/FirsBadgeIcon.d.ts +3 -0
  51. package/dist/types/components/icon/FlagIcon.d.ts +3 -0
  52. package/dist/types/components/icon/HamburgerMenuIcon.d.ts +3 -0
  53. package/dist/types/components/icon/HeroSectionBgIcon.d.ts +3 -0
  54. package/dist/types/components/icon/HomeIcon.d.ts +3 -0
  55. package/dist/types/components/icon/InfoCircledIcon.d.ts +3 -0
  56. package/dist/types/components/icon/InstagramIcon.d.ts +3 -0
  57. package/dist/types/components/icon/InvoiceHistoryCascadingTabsIcon.d.ts +3 -0
  58. package/dist/types/components/icon/InvoiceHistoryLandingPageServicesIcon.d.ts +3 -0
  59. package/dist/types/components/icon/InvoiceIcon.d.ts +3 -0
  60. package/dist/types/components/icon/KiteIcon.d.ts +3 -0
  61. package/dist/types/components/icon/LightningIcon.d.ts +3 -0
  62. package/dist/types/components/icon/LightningQuickIcon.d.ts +3 -0
  63. package/dist/types/components/icon/LinkedInIcon.d.ts +3 -0
  64. package/dist/types/components/icon/MenuUnfoldIcon.d.ts +3 -0
  65. package/dist/types/components/icon/NotFoundTableIcon.d.ts +3 -0
  66. package/dist/types/components/icon/NoteIcon.d.ts +3 -0
  67. package/dist/types/components/icon/NotificationBellIcon.d.ts +3 -0
  68. package/dist/types/components/icon/OutgoingCircledIcon.d.ts +3 -0
  69. package/dist/types/components/icon/PaddedErrorIcon.d.ts +3 -0
  70. package/dist/types/components/icon/PaddedWarningIcon.d.ts +3 -0
  71. package/dist/types/components/icon/PadlockIcon.d.ts +3 -0
  72. package/dist/types/components/icon/PhoneIcon.d.ts +3 -0
  73. package/dist/types/components/icon/PlayIcon.d.ts +3 -0
  74. package/dist/types/components/icon/PlusIcon.d.ts +3 -0
  75. package/dist/types/components/icon/ReceivedInvoiceLandingPageIcon.d.ts +3 -0
  76. package/dist/types/components/icon/RefreshAltIcon.d.ts +3 -0
  77. package/dist/types/components/icon/RefreshIcon.d.ts +3 -0
  78. package/dist/types/components/icon/RequiredIcon.d.ts +2 -0
  79. package/dist/types/components/icon/RightArrowIcon.d.ts +3 -0
  80. package/dist/types/components/icon/SafeguardIcon.d.ts +3 -0
  81. package/dist/types/components/icon/SearchIcon.d.ts +3 -0
  82. package/dist/types/components/icon/SettingsIcon.d.ts +3 -0
  83. package/dist/types/components/icon/SlideToOpenIcon.d.ts +3 -0
  84. package/dist/types/components/icon/StarTickIcon.d.ts +3 -0
  85. package/dist/types/components/icon/SuccessFilledTickIcon.d.ts +3 -0
  86. package/dist/types/components/icon/SuccessTickIcon.d.ts +3 -0
  87. package/dist/types/components/icon/ThreeDotsMenuIcon.d.ts +3 -0
  88. package/dist/types/components/icon/TrashIcon.d.ts +3 -0
  89. package/dist/types/components/icon/TwitterNowXIcon.d.ts +3 -0
  90. package/dist/types/components/icon/UserAvatarIcon.d.ts +3 -0
  91. package/dist/types/components/icon/UserIcon.d.ts +3 -0
  92. package/dist/types/components/icon/WalletIcon.d.ts +3 -0
  93. package/dist/types/components/icon/index.d.ts +151 -0
  94. package/dist/types/components/index.d.ts +7 -0
  95. package/dist/types/components/layouts/AuthLayout.d.ts +10 -0
  96. package/dist/types/components/layouts/BaseFormLayout.d.ts +3 -0
  97. package/dist/types/components/layouts/BaseModalLayout.d.ts +21 -0
  98. package/dist/types/components/layouts/DashboardPageLayout.d.ts +15 -0
  99. package/dist/types/components/layouts/confirmationModalLayout.d.ts +11 -0
  100. package/dist/types/components/layouts/index.d.ts +15 -0
  101. package/dist/types/components/layouts/notificationModalLayout.d.ts +11 -0
  102. package/dist/types/components/ui/accordion/BaseAccordion.d.ts +23 -0
  103. package/dist/types/components/ui/accordion/index.d.ts +5 -0
  104. package/dist/types/components/ui/avatar/BaseAvatar.d.ts +4 -0
  105. package/dist/types/components/ui/avatar/index.d.ts +5 -0
  106. package/dist/types/components/ui/badge/BaseBadge.d.ts +7 -0
  107. package/dist/types/components/ui/badge/index.d.ts +5 -0
  108. package/dist/types/components/ui/breadcrumbs/BreadCrumbs.d.ts +10 -0
  109. package/dist/types/components/ui/breadcrumbs/index.d.ts +5 -0
  110. package/dist/types/components/ui/button/BaseButton.d.ts +22 -0
  111. package/dist/types/components/ui/button/IconButton.d.ts +10 -0
  112. package/dist/types/components/ui/button/index.d.ts +7 -0
  113. package/dist/types/components/ui/calendar/BaseCalendar.d.ts +12 -0
  114. package/dist/types/components/ui/calendar/index.d.ts +5 -0
  115. package/dist/types/components/ui/card/BaseRubiesCard.d.ts +8 -0
  116. package/dist/types/components/ui/card/CustomerBusinessCard.d.ts +2 -0
  117. package/dist/types/components/ui/card/ErrorCard.d.ts +5 -0
  118. package/dist/types/components/ui/card/GetSupportCard.d.ts +42 -0
  119. package/dist/types/components/ui/card/NewFeatureCard.d.ts +5 -0
  120. package/dist/types/components/ui/card/SelectRubiesSignupCard.d.ts +8 -0
  121. package/dist/types/components/ui/card/TitleSubtitleCard.d.ts +9 -0
  122. package/dist/types/components/ui/card/index.d.ts +17 -0
  123. package/dist/types/components/ui/checkbox/BaseCheckbox.d.ts +21 -0
  124. package/dist/types/components/ui/checkbox/BaseCheckboxGroup.d.ts +22 -0
  125. package/dist/types/components/ui/checkbox/index.d.ts +7 -0
  126. package/dist/types/components/ui/chip/BaseChip.d.ts +14 -0
  127. package/dist/types/components/ui/chip/index.d.ts +5 -0
  128. package/dist/types/components/ui/container/BaseContainer.d.ts +5 -0
  129. package/dist/types/components/ui/container/index.d.ts +5 -0
  130. package/dist/types/components/ui/datepicker/BaseDatePicker.d.ts +24 -0
  131. package/dist/types/components/ui/datepicker/BaseDateRangePicker.d.ts +28 -0
  132. package/dist/types/components/ui/datepicker/FormikDateRangePicker.d.ts +9 -0
  133. package/dist/types/components/ui/datepicker/index.d.ts +9 -0
  134. package/dist/types/components/ui/form/dashboard/CreateOrUpdateDummyForm.d.ts +11 -0
  135. package/dist/types/components/ui/form/dashboard/index.d.ts +5 -0
  136. package/dist/types/components/ui/form/index.d.ts +4 -0
  137. package/dist/types/components/ui/index.d.ts +27 -0
  138. package/dist/types/components/ui/input/BaseInput.d.ts +39 -0
  139. package/dist/types/components/ui/input/BaseOtpInput.d.ts +14 -0
  140. package/dist/types/components/ui/input/BasePhoneNumberInput.d.ts +37 -0
  141. package/dist/types/components/ui/input/index.d.ts +9 -0
  142. package/dist/types/components/ui/label/EnhancedLabel.d.ts +44 -0
  143. package/dist/types/components/ui/label/FormLabel.d.ts +11 -0
  144. package/dist/types/components/ui/label/index.d.ts +7 -0
  145. package/dist/types/components/ui/menu/BaseSidebar.d.ts +64 -0
  146. package/dist/types/components/ui/menu/Footer.d.ts +2 -0
  147. package/dist/types/components/ui/menu/Header.d.ts +6 -0
  148. package/dist/types/components/ui/menu/WebsiteSidebar.d.ts +6 -0
  149. package/dist/types/components/ui/menu/index.d.ts +11 -0
  150. package/dist/types/components/ui/modal/BaseModal.d.ts +19 -0
  151. package/dist/types/components/ui/modal/DeleteDummyConfirmationModal.d.ts +2 -0
  152. package/dist/types/components/ui/modal/GlobalModal.d.ts +2 -0
  153. package/dist/types/components/ui/modal/ModalRenderer.d.ts +6 -0
  154. package/dist/types/components/ui/modal/UpdateDummyModal.d.ts +2 -0
  155. package/dist/types/components/ui/modal/ViewDummyModal.d.ts +2 -0
  156. package/dist/types/components/ui/modal/confirmationModal.d.ts +4 -0
  157. package/dist/types/components/ui/modal/index.d.ts +19 -0
  158. package/dist/types/components/ui/modal/notificationModal.d.ts +4 -0
  159. package/dist/types/components/ui/popup/BasePopup.d.ts +10 -0
  160. package/dist/types/components/ui/popup/BasePopupContainer.d.ts +15 -0
  161. package/dist/types/components/ui/popup/MenuOptionsPopup.d.ts +12 -0
  162. package/dist/types/components/ui/popup/NotificationPopup.d.ts +4 -0
  163. package/dist/types/components/ui/popup/index.d.ts +11 -0
  164. package/dist/types/components/ui/progress/BaseProgress.d.ts +10 -0
  165. package/dist/types/components/ui/progress/index.d.ts +5 -0
  166. package/dist/types/components/ui/radio/BaseRadio.d.ts +19 -0
  167. package/dist/types/components/ui/radio/BaseRadioGroup.d.ts +22 -0
  168. package/dist/types/components/ui/radio/index.d.ts +7 -0
  169. package/dist/types/components/ui/select/BaseSelect.d.ts +32 -0
  170. package/dist/types/components/ui/select/ModernSelect.d.ts +36 -0
  171. package/dist/types/components/ui/select/SearchableSelect.d.ts +41 -0
  172. package/dist/types/components/ui/select/index.d.ts +9 -0
  173. package/dist/types/components/ui/switch/BaseSwitch.d.ts +4 -0
  174. package/dist/types/components/ui/switch/index.d.ts +5 -0
  175. package/dist/types/components/ui/table/BaseDataGrid.d.ts +123 -0
  176. package/dist/types/components/ui/table/BaseTable.d.ts +4 -0
  177. package/dist/types/components/ui/table/Table.d.ts +81 -0
  178. package/dist/types/components/ui/table/components/CustomDateComponent.d.ts +2 -0
  179. package/dist/types/components/ui/table/components/CustomTableActionRenderer.d.ts +3 -0
  180. package/dist/types/components/ui/table/components/CustomTableEmptyState.d.ts +10 -0
  181. package/dist/types/components/ui/table/components/DateRangeFilter.d.ts +2 -0
  182. package/dist/types/components/ui/table/components/index.d.ts +11 -0
  183. package/dist/types/components/ui/table/index.d.ts +12 -0
  184. package/dist/types/components/ui/table/renderers/BaseActionRenderer.d.ts +13 -0
  185. package/dist/types/components/ui/table/renderers/DateCellRenderer.d.ts +10 -0
  186. package/dist/types/components/ui/table/renderers/DeleteActionRenderer.d.ts +7 -0
  187. package/dist/types/components/ui/table/renderers/EditActionRenderer.d.ts +7 -0
  188. package/dist/types/components/ui/table/renderers/RowOptionsActionRenderer.d.ts +8 -0
  189. package/dist/types/components/ui/table/renderers/StatusRenderer.d.ts +18 -0
  190. package/dist/types/components/ui/table/renderers/SubscribeActionRenderer.d.ts +6 -0
  191. package/dist/types/components/ui/table/renderers/ViewActionRenderer.d.ts +6 -0
  192. package/dist/types/components/ui/table/renderers/index.d.ts +19 -0
  193. package/dist/types/components/ui/table/tablePanels/BaseTableHeaderControls.d.ts +26 -0
  194. package/dist/types/components/ui/table/tablePanels/BaseTablePaginationPanel.d.ts +11 -0
  195. package/dist/types/components/ui/table/tablePanels/index.d.ts +7 -0
  196. package/dist/types/components/ui/toast/BaseToast.d.ts +9 -0
  197. package/dist/types/components/ui/toast/BaseToastContainer.d.ts +4 -0
  198. package/dist/types/components/ui/toast/index.d.ts +7 -0
  199. package/dist/types/components/ui/typography/index.d.ts +5 -0
  200. package/dist/types/components/ui/typography/typography.d.ts +12 -0
  201. package/dist/types/configs/appConfig.d.ts +6 -0
  202. package/dist/types/configs/serviceConfig.d.ts +3 -0
  203. package/dist/types/configs/themeConfig.d.ts +97 -0
  204. package/dist/types/importLcDetailsSection.d.ts +2 -0
  205. package/dist/types/index.d.ts +2 -0
  206. package/dist/types/main.d.ts +0 -0
  207. package/dist/types/stores/index.d.ts +2 -0
  208. package/dist/types/utilities/baseUtil.d.ts +3 -0
  209. package/dist/types/utilities/constants/index.d.ts +4 -0
  210. package/dist/types/utilities/constants/routeConstant.d.ts +33 -0
  211. package/dist/types/utilities/context/checkboxContext.d.ts +10 -0
  212. package/dist/types/utilities/context/index.d.ts +6 -0
  213. package/dist/types/utilities/context/modalContext.d.ts +25 -0
  214. package/dist/types/utilities/context/radioContext.d.ts +9 -0
  215. package/dist/types/utilities/data/index.d.ts +4 -0
  216. package/dist/types/utilities/data/sidebarData.d.ts +3 -0
  217. package/dist/types/utilities/enums/baseEnum.d.ts +5 -0
  218. package/dist/types/utilities/enums/baseTableIdEnum.d.ts +10 -0
  219. package/dist/types/utilities/enums/documentStatusEnum.d.ts +5 -0
  220. package/dist/types/utilities/enums/index.d.ts +8 -0
  221. package/dist/types/utilities/enums/modalEnum.d.ts +4 -0
  222. package/dist/types/utilities/enums/popupEnum.d.ts +3 -0
  223. package/dist/types/utilities/factory/index.d.ts +4 -0
  224. package/dist/types/utilities/factory/modalFactory.d.ts +7 -0
  225. package/dist/types/utilities/formUtil.d.ts +17 -0
  226. package/dist/types/utilities/hooks/index.d.ts +23 -0
  227. package/dist/types/utilities/hooks/useFetchOnStageChange.d.ts +2 -0
  228. package/dist/types/utilities/hooks/useFirstRender.d.ts +2 -0
  229. package/dist/types/utilities/hooks/useModal.d.ts +18 -0
  230. package/dist/types/utilities/hooks/useModalContext.d.ts +4 -0
  231. package/dist/types/utilities/hooks/useModalRegistration.d.ts +7 -0
  232. package/dist/types/utilities/hooks/useModalRegistrations.d.ts +3 -0
  233. package/dist/types/utilities/hooks/useNotification.d.ts +22 -0
  234. package/dist/types/utilities/hooks/useOnClickOutside.d.ts +2 -0
  235. package/dist/types/utilities/hooks/usePopup.d.ts +24 -0
  236. package/dist/types/utilities/hooks/useTableDataSync.d.ts +23 -0
  237. package/dist/types/utilities/index.d.ts +18 -0
  238. package/dist/types/utilities/modalRegistrationUtil.d.ts +18 -0
  239. package/dist/types/utilities/modalUtil.d.ts +33 -0
  240. package/dist/types/utilities/routerUtil.d.ts +13 -0
  241. package/dist/types/utilities/stringUtil.d.ts +17 -0
  242. package/dist/types/utilities/theme/index.d.ts +4 -0
  243. package/dist/types/utilities/theme/themeProvider.d.ts +7 -0
  244. package/dist/types/utilities/timeUtil.d.ts +38 -0
  245. package/dist/types/utilities/types/formTypes.d.ts +2 -0
  246. package/dist/types/utilities/types/index.d.ts +6 -0
  247. package/dist/types/utilities/types/modalTypes.d.ts +33 -0
  248. package/dist/types/utilities/types/themeTypes.d.ts +27 -0
  249. package/dist/vite.svg +1 -0
  250. package/package.json +87 -0
@@ -0,0 +1,97 @@
1
+ import { default as React } from 'react';
2
+ export type ThemeConfigProps = {
3
+ color: {
4
+ white: string;
5
+ black: string;
6
+ color1: string;
7
+ color2: string;
8
+ color3: string;
9
+ color4: string;
10
+ color5: string;
11
+ color6: string;
12
+ color7: string;
13
+ color8: string;
14
+ color9: string;
15
+ color10: string;
16
+ color11: string;
17
+ color12: string;
18
+ color13: string;
19
+ };
20
+ fontWeight: {
21
+ regular: number;
22
+ medium: number;
23
+ semibold: number;
24
+ bold: number;
25
+ };
26
+ fontFamily: {
27
+ primary: string;
28
+ secondary: string;
29
+ tertiary: string;
30
+ };
31
+ fontSize: {
32
+ xs?: string;
33
+ sm?: string;
34
+ base?: string;
35
+ lg?: string;
36
+ xl?: string;
37
+ "2xl"?: string;
38
+ "3xl"?: string;
39
+ "4xl"?: string;
40
+ "5xl"?: string;
41
+ "6xl"?: string;
42
+ };
43
+ };
44
+ export declare const themeConfig: {
45
+ color: {
46
+ white: string;
47
+ black: string;
48
+ color1: string;
49
+ color2: string;
50
+ color3: string;
51
+ color4: string;
52
+ color5: string;
53
+ color6: string;
54
+ color7: string;
55
+ color8: string;
56
+ color9: string;
57
+ color10: string;
58
+ color11: string;
59
+ color12: string;
60
+ color13: string;
61
+ };
62
+ fontWeight: {
63
+ regular: number;
64
+ medium: number;
65
+ semibold: number;
66
+ bold: number;
67
+ };
68
+ fontFamily: {
69
+ primary: string;
70
+ secondary: string;
71
+ tertiary: string;
72
+ };
73
+ fontSize: {
74
+ xs: string;
75
+ sm: string;
76
+ base: string;
77
+ lg: string;
78
+ xl: string;
79
+ "2xl": string;
80
+ "3xl": string;
81
+ "4xl": string;
82
+ "5xl": string;
83
+ "6xl": string;
84
+ };
85
+ };
86
+ export type Theme = typeof themeConfig;
87
+ export declare const ThemeContext: React.Context<{
88
+ theme: Theme;
89
+ setTheme: (theme: Theme) => void;
90
+ }>;
91
+ export default function ThemeProvider({ children }: {
92
+ children: React.ReactNode;
93
+ }): import("react/jsx-runtime").JSX.Element;
94
+ export declare const useTheme: () => {
95
+ theme: Theme;
96
+ setTheme: (theme: Theme) => void;
97
+ };
@@ -0,0 +1,2 @@
1
+ declare const ImportLcDetailsSection: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ImportLcDetailsSection;
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './utilities';
File without changes
@@ -0,0 +1,2 @@
1
+ export declare const rootReducer: import('redux').Reducer<{}, never, Partial<{}>>;
2
+ export type RootState = ReturnType<typeof rootReducer>;
@@ -0,0 +1,3 @@
1
+ export declare class BaseUtil {
2
+ static logger(...logInfo: any): void;
3
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/constants
3
+ */
4
+ export * from './routeConstant';
@@ -0,0 +1,33 @@
1
+ export declare const RouteConstant: {
2
+ auth: {
3
+ login: {
4
+ name: string;
5
+ path: string;
6
+ };
7
+ register: {
8
+ name: string;
9
+ path: string;
10
+ };
11
+ getStarted: {
12
+ path: string;
13
+ name: string;
14
+ moduleName: string;
15
+ };
16
+ };
17
+ dashboard: {
18
+ getStarted: {
19
+ name: string;
20
+ path: string;
21
+ };
22
+ createDummy: {
23
+ path: string;
24
+ name: string;
25
+ moduleName: string;
26
+ };
27
+ allDummies: {
28
+ path: string;
29
+ name: string;
30
+ moduleName: string;
31
+ };
32
+ };
33
+ };
@@ -0,0 +1,10 @@
1
+ import { ChangeEventHandler } from 'react';
2
+ interface CheckboxGroupContextType {
3
+ name: string;
4
+ value: string[];
5
+ onChange: ChangeEventHandler<HTMLInputElement>;
6
+ disabled?: boolean;
7
+ }
8
+ export declare const CheckboxGroupContext: import('react').Context<CheckboxGroupContextType | null>;
9
+ export declare const useCheckboxGroupContext: () => CheckboxGroupContextType | null;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/context
3
+ */
4
+ export * from './checkboxContext';
5
+ export * from './modalContext';
6
+ export * from './radioContext';
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { ModalBaseConfig, ModalRegistry } from '../types/modalTypes';
3
+ export interface ModalInstance<T extends keyof ModalRegistry = keyof ModalRegistry> {
4
+ id: string;
5
+ type: T;
6
+ data: ModalRegistry[T]["data"];
7
+ resolve: (result: ModalRegistry[T]["result"]) => void;
8
+ reject: (reason?: any) => void;
9
+ options?: ModalBaseConfig;
10
+ }
11
+ export interface ModalOpenResult<T extends keyof ModalRegistry> {
12
+ id: string;
13
+ promise: Promise<ModalRegistry[T]["result"]>;
14
+ resolve: (result: ModalRegistry[T]["result"]) => void;
15
+ reject: (reason?: any) => void;
16
+ }
17
+ export interface ModalContextValue {
18
+ modals: ModalInstance[];
19
+ openModal: <T extends keyof ModalRegistry>(type: T, data: ModalRegistry[T]["data"], options?: ModalBaseConfig) => ModalOpenResult<T>;
20
+ closeModal: (id: string) => void;
21
+ getModalById: (id: string) => ModalInstance | undefined;
22
+ }
23
+ export declare const ModalProvider: ({ children }: {
24
+ children: ReactNode;
25
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ChangeEventHandler } from 'react';
2
+ export type RadioGroupContextType = {
3
+ name: string;
4
+ value: string | number | null;
5
+ onChange: ChangeEventHandler<HTMLInputElement>;
6
+ disabled?: boolean;
7
+ };
8
+ export declare const RadioGroupContext: import('react').Context<RadioGroupContextType | null>;
9
+ export declare const useRadioGroupContext: () => RadioGroupContextType | null;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/data
3
+ */
4
+ export * from './sidebarData';
@@ -0,0 +1,3 @@
1
+ import { BaseSidebarModuleConfig } from '../../components';
2
+ export declare const sidebarItemsConfig: BaseSidebarModuleConfig[];
3
+ export declare const sidebarBottomMenuConfig: BaseSidebarModuleConfig[];
@@ -0,0 +1,5 @@
1
+ export declare enum BaseEnum {
2
+ RESPONSE_CODE_SUCCESS = "00",
3
+ RESPONSE_CODE_ERROR_BAD_REQUEST = "106",
4
+ RESPONSE_CODE_UNAUTHORIZED = "22"
5
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum BaseTableIdEnum {
2
+ DASHBOARD_TRANSACTIONS_TABLE = "DASHBOARD_TRANSACTIONS_TABLE",
3
+ DASHBOARD_TRANSFERS_TABLE = "DASHBOARD_TRANSFERS_TABLE",
4
+ DASHBOARD_BULK_TRANSFERS_TABLE = "DASHBOARD_BULK_TRANSFERS_TABLE",
5
+ DASHBOARD_BULK_TRANSFER_BATCH_ENTRIES_TABLE = "DASHBOARD_BULK_TRANSFER_BATCH_ENTRIES_TABLE",
6
+ DASHBOARD_SETTINGS_TEAM_TABLE = "DASHBOARD_SETTINGS_TEAM_TABLE",
7
+ DASHBOARD_AUDIT_LOGS_TABLE = "DASHBOARD_AUDIT_LOGS_TABLE",
8
+ DASHBOARD_PENDING_INVITATIONS_TABLE = "DASHBOARD_PENDING_INVITATIONS_TABLE",
9
+ DASHBOARD_DUMMY_TABLE = "DASHBOARD_DUMMY_TABLE"
10
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum DocumentStatusEnum {
2
+ REJECTED = "REJECTED",
3
+ PENDING = "PENDING",
4
+ APPROVED = "APPROVED"
5
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/enums
3
+ */
4
+ export * from './baseEnum';
5
+ export * from './baseTableIdEnum';
6
+ export * from './documentStatusEnum';
7
+ export * from './modalEnum';
8
+ export * from './popupEnum';
@@ -0,0 +1,4 @@
1
+ export declare enum ModalEnum {
2
+ ConfirmationModal = "ConfirmationModal",
3
+ NotificationModal = "NotificationModal"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum PopupEnum {
2
+ ADD_CUSTOM_ROLE = "ADD_CUSTOM_ROLE"
3
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/factory
3
+ */
4
+ export * from './modalFactory';
@@ -0,0 +1,7 @@
1
+ import { ModalEnum } from '../enums/modalEnum';
2
+ import { ModalRegistry } from '../types/modalTypes';
3
+ export declare const modalFactory: {
4
+ [K in ModalEnum]: React.FC<ModalRegistry[K]["data"]>;
5
+ };
6
+ export declare const getModalComponent: (modalType: string) => import('react').ComponentType<any> | undefined;
7
+ export declare const getModalDefaultConfig: (modalType: string) => import('../types/modalTypes').ModalBaseConfig | undefined;
@@ -0,0 +1,17 @@
1
+ import { FormikValues } from 'formik';
2
+ import { Formik } from './types/formTypes';
3
+ export declare class FormUtil {
4
+ static getFileSizeInText: (sizeInBytes: number) => string;
5
+ static touchAllFields: <T extends FormikValues>(formik: Formik<T>) => void;
6
+ static isErrorInForm: <T extends FormikValues>(formik: Formik<T>) => Promise<boolean>;
7
+ static handleNonNegativeInput(event: React.ChangeEvent<HTMLInputElement>, formik: any): void;
8
+ static handlePercentageInput<T extends FormikValues>(event: React.ChangeEvent<HTMLInputElement>, formik: Formik<T>): void;
9
+ static formatDisplayPercentage: (value: number | string) => string;
10
+ static touchFieldsForStep: <T extends FormikValues>(formik: Formik<T>, fields: string[]) => void;
11
+ static isErrorInFormForStep: <T extends FormikValues>(formik: Formik<T>, fields: string[]) => Promise<boolean>;
12
+ static cleanInputToAcceptOnlyNumberText: (inputValue: string) => string;
13
+ static formatNumberWithCommas: (number: string | number) => string;
14
+ static formatDecimalNumberWithCommas: (number: string | number, decimalPlaces: number) => string;
15
+ static parseFormattedNumber(value: string): number;
16
+ static convertObjFieldsFromEmptyStringToNull: <T extends Record<string, any>>(obj: T) => { [K in keyof T]: T[K] | null; };
17
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/hooks
3
+ */
4
+ export { default as useFetchOnStageChange } from './useFetchOnStageChange';
5
+ export * from './useFetchOnStageChange';
6
+ export { default as useFirstRender } from './useFirstRender';
7
+ export * from './useFirstRender';
8
+ export { default as useModal } from './useModal';
9
+ export * from './useModal';
10
+ export { default as useModalContext } from './useModalContext';
11
+ export * from './useModalContext';
12
+ export { default as useModalRegistration } from './useModalRegistration';
13
+ export * from './useModalRegistration';
14
+ export { default as useModalRegistrations } from './useModalRegistrations';
15
+ export * from './useModalRegistrations';
16
+ export { default as useNotification } from './useNotification';
17
+ export * from './useNotification';
18
+ export { default as useOnClickOutside } from './useOnClickOutside';
19
+ export * from './useOnClickOutside';
20
+ export { default as usePopup } from './usePopup';
21
+ export * from './usePopup';
22
+ export { default as useTableDataSync } from './useTableDataSync';
23
+ export * from './useTableDataSync';
@@ -0,0 +1,2 @@
1
+ declare const useFetchOnStageChange: () => void;
2
+ export default useFetchOnStageChange;
@@ -0,0 +1,2 @@
1
+ export declare const useFirstRender: () => boolean;
2
+ export default useFirstRender;
@@ -0,0 +1,18 @@
1
+ import { ModalBaseConfig, ModalRegistry } from '../types/modalTypes';
2
+ export declare const useModal: <T extends keyof ModalRegistry>(type: T) => {
3
+ open: (data: ModalRegistry[T]["data"], options?: ModalBaseConfig) => Promise<ModalRegistry[T]["result"]>;
4
+ close: (result?: ModalRegistry[T]["result"]) => void;
5
+ submit: (result?: ModalRegistry[T]["result"]) => void;
6
+ cancel: (reason?: any) => void;
7
+ closeAll: (result?: ModalRegistry[T]["result"]) => void;
8
+ isOpen: boolean;
9
+ instances: import('..').ModalInstance<keyof ModalRegistry>[];
10
+ latestInstance: import('..').ModalInstance<keyof ModalRegistry>;
11
+ focusedInstance: import('..').ModalInstance<keyof ModalRegistry> | undefined;
12
+ activeInstance: import('..').ModalInstance<keyof ModalRegistry>;
13
+ count: number;
14
+ focus: () => void;
15
+ data: import('../..').NotificationModalLayoutProps | import('../..').ConfirmationModalLayoutProps;
16
+ id: string;
17
+ };
18
+ export default useModal;
@@ -0,0 +1,4 @@
1
+ import { ModalContextValue } from '../context/modalContext';
2
+ export declare const ModalContext: import('react').Context<ModalContextValue | undefined>;
3
+ export declare const useModalContext: () => ModalContextValue;
4
+ export default useModalContext;
@@ -0,0 +1,7 @@
1
+ import { ModalBaseConfig, ModalRegistry } from '..';
2
+ export interface ModalRegistrationConfig<TKey extends keyof ModalRegistry> {
3
+ key: TKey;
4
+ component: React.ComponentType<ModalRegistry[TKey]['data']>;
5
+ defaultConfig?: ModalBaseConfig;
6
+ }
7
+ export default function useModalRegistration<TKey extends keyof ModalRegistry>(config: ModalRegistrationConfig<TKey>): void;
@@ -0,0 +1,3 @@
1
+ import { ModalRegistrationConfig } from './useModalRegistration';
2
+ import { ModalRegistry } from '..';
3
+ export default function useModalRegistrations(configs: ModalRegistrationConfig<keyof ModalRegistry>[]): void;
@@ -0,0 +1,22 @@
1
+ import { NotificationModalLayoutProps } from '../../components';
2
+ export type NotificationVariant = NotificationModalLayoutProps["variant"];
3
+ export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
4
+ export interface NotificationOptions {
5
+ variant?: NotificationVariant;
6
+ position?: NotificationPosition;
7
+ autoClose?: boolean | number;
8
+ persistent?: boolean;
9
+ showCloseButton?: boolean;
10
+ }
11
+ export declare const useNotification: (defaultPosition?: NotificationPosition) => {
12
+ show: (message: string, options?: NotificationOptions) => Promise<void>;
13
+ success: (message: string, options?: Omit<NotificationOptions, "variant">) => Promise<void>;
14
+ error: (message: string, options?: Omit<NotificationOptions, "variant">) => Promise<void>;
15
+ warning: (message: string, options?: Omit<NotificationOptions, "variant">) => Promise<void>;
16
+ info: (message: string, options?: Omit<NotificationOptions, "variant">) => Promise<void>;
17
+ close: (result?: void | undefined) => void;
18
+ closeAll: (result?: void | undefined) => void;
19
+ isOpen: boolean;
20
+ count: number;
21
+ };
22
+ export default useNotification;
@@ -0,0 +1,2 @@
1
+ declare function useOnClickOutside(ref: React.RefObject<HTMLElement>, handler: () => void): void;
2
+ export default useOnClickOutside;
@@ -0,0 +1,24 @@
1
+ import { Boundary, Placement } from '@popperjs/core';
2
+ export interface UsePopupOptions {
3
+ placement?: Placement;
4
+ strategy?: 'absolute' | 'fixed';
5
+ offset?: [number, number];
6
+ closeOnOutsideClick?: boolean;
7
+ closeOnEscape?: boolean;
8
+ boundary?: Boundary;
9
+ flipFallbackPlacements?: Placement[];
10
+ }
11
+ export interface UsePopupReturn {
12
+ isOpen: boolean;
13
+ setIsOpen: (open: boolean) => void;
14
+ toggle: () => void;
15
+ referenceElement: HTMLElement | null;
16
+ setReferenceElement: (el: HTMLElement | null) => void;
17
+ popperElement: HTMLElement | null;
18
+ setPopperElement: (el: HTMLElement | null) => void;
19
+ styles: Record<string, React.CSSProperties>;
20
+ attributes: Record<string, Record<string, string> | undefined>;
21
+ containerRef: React.RefObject<HTMLDivElement>;
22
+ }
23
+ export declare const usePopup: ({ placement, strategy, offset, closeOnOutsideClick, closeOnEscape, boundary, flipFallbackPlacements }?: UsePopupOptions) => UsePopupReturn;
24
+ export default usePopup;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Hook to manage table data syncing with external source and internal state.
3
+ * Supports internal and external updates, pagination tracking, and loading state.
4
+ *
5
+ * @param items - external data array (optional)
6
+ * @param refreshPage - async function to refresh page data
7
+ * @param itemIdKey - key to uniquely identify items in data array
8
+ * @param pageSizeDefault - default page size for pagination (default 10)
9
+ * @returns table data and control functions
10
+ */
11
+ export declare function useTableDataSync<T>(items: T[] | undefined, refreshPage?: (pageNo: number, pageSize: number) => Promise<{
12
+ responseCode: string;
13
+ data: T[];
14
+ }>, itemIdKey?: string, pageSizeDefault?: number): {
15
+ rowData: T[];
16
+ loading: boolean;
17
+ pageNo: number;
18
+ setPageNo: import('react').Dispatch<import('react').SetStateAction<number>>;
19
+ maxPage: number;
20
+ setMaxPage: import('react').Dispatch<import('react').SetStateAction<number>>;
21
+ refreshData: (page?: number, pageSize?: number) => Promise<void>;
22
+ };
23
+ export default useTableDataSync;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities
3
+ */
4
+ export * from './baseUtil';
5
+ export * from './formUtil';
6
+ export * from './modalRegistrationUtil';
7
+ export * from './modalUtil';
8
+ export * from './routerUtil';
9
+ export * from './stringUtil';
10
+ export * from './timeUtil';
11
+ export * from './constants';
12
+ export * from './context';
13
+ export * from './data';
14
+ export * from './enums';
15
+ export * from './factory';
16
+ export * from './hooks';
17
+ export * from './theme';
18
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ import { ModalBaseConfig, ModalRegistry } from './types';
2
+ export interface RegisteredModal {
3
+ component: React.ComponentType<any>;
4
+ defaultConfig?: ModalBaseConfig;
5
+ }
6
+ declare class ModalRegistrationManager {
7
+ private static instance;
8
+ private modalComponents;
9
+ static getInstance(): ModalRegistrationManager;
10
+ register<TKey extends keyof ModalRegistry>(key: TKey, component: React.ComponentType<ModalRegistry[TKey]['data']>, defaultConfig?: ModalBaseConfig): void;
11
+ getComponent(key: string): React.ComponentType<any> | undefined;
12
+ getDefaultConfig(key: string): ModalBaseConfig | undefined;
13
+ getAllRegistered(): [string, RegisteredModal][];
14
+ unregister(key: string): void;
15
+ clear(): void;
16
+ }
17
+ export declare const modalRegistration: ModalRegistrationManager;
18
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ModalContextValue, ModalInstance } from './context/modalContext';
2
+ import { ModalBaseConfig, ModalRegistry } from './types/modalTypes';
3
+ export declare class ModalUtil {
4
+ private static instance;
5
+ private contextValue;
6
+ private focusedModalId;
7
+ private pendingModals;
8
+ private autoCloseTimers;
9
+ private componentCleanupCallbacks;
10
+ static getInstance(): ModalUtil;
11
+ setContext(contextValue: ModalContextValue): void;
12
+ setFocusedModal(id: string): void;
13
+ getFocusedModal(): ModalInstance | null;
14
+ getPendingModals(): Map<string, ModalInstance>;
15
+ getTopmostModal(): ModalInstance | null;
16
+ isModalFocused(id: string): boolean;
17
+ registerComponentCleanup(componentId: string, cleanup: () => void): void;
18
+ unregisterComponentCleanup(componentId: string): void;
19
+ closeFocused(result?: any): void;
20
+ submitFocused(result?: any): void;
21
+ cancelFocused(reason?: any): void;
22
+ open<T extends keyof ModalRegistry>(type: T, data: ModalRegistry[T]["data"], options?: ModalBaseConfig): Promise<ModalRegistry[T]["result"]>;
23
+ close(id: string, result?: any): void;
24
+ closeAllOfType<T extends keyof ModalRegistry>(type: T, result?: ModalRegistry[T]["result"]): void;
25
+ closeAll(): void;
26
+ destroy(): void;
27
+ getModalsByType<T extends keyof ModalRegistry>(type: T): ModalInstance[];
28
+ isTypeOpen<T extends keyof ModalRegistry>(type: T): boolean;
29
+ getModalConfig(): Required<ModalBaseConfig>;
30
+ getModalDefaultConfig<T extends keyof ModalRegistry>(type: T): ModalBaseConfig | undefined;
31
+ private cleanupModal;
32
+ }
33
+ export declare const modalUtil: ModalUtil;
@@ -0,0 +1,13 @@
1
+ import { NavigateFunction } from 'react-router-dom';
2
+ import { NavigateOptions } from 'react-router/dist/lib/context';
3
+ declare class RouterUtil {
4
+ private static navigateFn;
5
+ static setNavigateFn(navigateFn: NavigateFunction): void;
6
+ static goBack(): void;
7
+ static navigate(path: string, options?: NavigateOptions & {
8
+ paramsToReplaceWithValue?: {
9
+ [key: string]: string;
10
+ }[];
11
+ }): void;
12
+ }
13
+ export default RouterUtil;
@@ -0,0 +1,17 @@
1
+ export declare class StringUtil {
2
+ static toTitleCase(sentence: string): string;
3
+ static convertToSentenceCase(input: string): string;
4
+ static spaceAfterEveryNletter(input: string, n?: number): string;
5
+ static abbreviateToTwoCharacter(word: string): string;
6
+ static formatCurrency(amount: string, currency?: string): string;
7
+ static removeNonDigits(input: string): string;
8
+ static insertSpaces(input: string): string;
9
+ static formatPhoneNumber(input: string): string;
10
+ static formatValue(value: string): string;
11
+ static handleCurrencyFormatter: (amount: string) => string;
12
+ static formatAmount: (amount: string) => string;
13
+ static countOccurrences(mainStr: string, subStr: string): number;
14
+ static fromStringToNumber: (stringAmount: string) => number;
15
+ static isStringNullOrEmpty: (string: string | null) => boolean;
16
+ static shortenWord(word: string, replace?: string, length?: number): string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/theme
3
+ */
4
+ export * from './themeProvider';
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DesignTokens } from '../types/themeTypes';
3
+ export declare const ThemeContext: React.Context<DesignTokens>;
4
+ export declare const ThemeProvider: React.FC<{
5
+ children: React.ReactNode;
6
+ }>;
7
+ export declare const useTheme: () => DesignTokens;
@@ -0,0 +1,38 @@
1
+ import { DateTimeFormatOptions } from 'luxon';
2
+ export declare class TimeUtil {
3
+ static now(): string;
4
+ static differentInDays(dataTime1: string, dataTime2: string): number;
5
+ static time(dataTime: string, timeFormat?: "12" | "24"): string;
6
+ static date(dataTime: string): string;
7
+ static timeStamp(dataTime: string): number;
8
+ static localDateTime(dateTime: string): string;
9
+ static decorateTime(dataTime: string): string;
10
+ static decorateDate(dataTime: string): string;
11
+ static getOrdinalSuffix: (num: number) => string;
12
+ static getDecoratedDate(dataTime: string): string;
13
+ static formatDateString: (dateString: string) => string;
14
+ static getFormattedDateStringWithoutTime: (dateString: string, showOrdinalSuffix?: boolean) => string;
15
+ static formatDateToMonDayYear: (dateString: string) => string;
16
+ static formatToDashedDate: (dateString: string) => string;
17
+ static formatGetTimeInMinSecHrAgo: (dateString: string) => string;
18
+ static convertToTargetISO(dateTime: string): string;
19
+ static convertToISOWithMilliseconds(dateTime: string): string;
20
+ static formatDateTimeForFilter(dateTime: string): string;
21
+ static formatDateTime(date: string): string;
22
+ /**
23
+ * Validates if the input is a valid date.
24
+ * Accepts ISO date strings, formatted date strings, and 13-digit timestamps.
25
+ * @param dateInput - The date input to validate.
26
+ * @returns {boolean} - Returns true if the input is a valid date, false otherwise.
27
+ */
28
+ static isValidDate(dateInput: string | number): boolean;
29
+ static getFormatDateTime: (input: string | number, options?: {
30
+ formatDateAs?: DateTimeFormatOptions;
31
+ formatTimeAs?: DateTimeFormatOptions;
32
+ }) => {
33
+ formattedDate: string;
34
+ formattedTime: string;
35
+ fullFormattedDateTime: string;
36
+ isDateTimeValid: boolean;
37
+ };
38
+ }
@@ -0,0 +1,2 @@
1
+ import { FormikValues, useFormik } from 'formik';
2
+ export type Formik<Values extends FormikValues = FormikValues> = ReturnType<typeof useFormik<Values>>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Auto-generated barrel for src/utilities/types
3
+ */
4
+ export * from './formTypes';
5
+ export * from './modalTypes';
6
+ export * from './themeTypes';