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.
- package/README.md +54 -0
- package/dist/index.cjs.js +545 -0
- package/dist/index.es.js +92168 -0
- package/dist/style.css +1 -0
- package/dist/types/App.d.ts +2 -0
- package/dist/types/assets/data/countryCodes.json.d.ts +1457 -0
- package/dist/types/components/custom/Back.d.ts +2 -0
- package/dist/types/components/custom/BaseDropzone.d.ts +16 -0
- package/dist/types/components/custom/BaseFileUpload.d.ts +20 -0
- package/dist/types/components/custom/CopyToClipboard.d.ts +10 -0
- package/dist/types/components/custom/FilePreview.d.ts +13 -0
- package/dist/types/components/custom/FormikDropzone.d.ts +11 -0
- package/dist/types/components/custom/IconWrapper.d.ts +29 -0
- package/dist/types/components/custom/StatusIndicator.d.ts +9 -0
- package/dist/types/components/custom/TextDecorator.d.ts +4 -0
- package/dist/types/components/custom/TodoList.d.ts +12 -0
- package/dist/types/components/custom/index.d.ts +25 -0
- package/dist/types/components/custom/reduxProvider.d.ts +6 -0
- package/dist/types/components/icon/AddImageIcon.d.ts +3 -0
- package/dist/types/components/icon/AngleLeftIcon.d.ts +3 -0
- package/dist/types/components/icon/AngleRightIcon.d.ts +3 -0
- package/dist/types/components/icon/ApprovedInvoiceCascadingTabsIcon.d.ts +3 -0
- package/dist/types/components/icon/BillIcon.d.ts +3 -0
- package/dist/types/components/icon/BlurredEllipseBgIcon.d.ts +5 -0
- package/dist/types/components/icon/CalendarIcon.d.ts +3 -0
- package/dist/types/components/icon/CardIcon.d.ts +3 -0
- package/dist/types/components/icon/CircledLeftArrowIcon.d.ts +3 -0
- package/dist/types/components/icon/CloseIcon.d.ts +5 -0
- package/dist/types/components/icon/CloudUploadIcon.d.ts +3 -0
- package/dist/types/components/icon/CompanyLogo.d.ts +3 -0
- package/dist/types/components/icon/CopyIcon.d.ts +3 -0
- package/dist/types/components/icon/CreateInvoiceCascadingTabsIcon.d.ts +3 -0
- package/dist/types/components/icon/CubeIcon.d.ts +3 -0
- package/dist/types/components/icon/CustomerServiceIcon.d.ts +3 -0
- package/dist/types/components/icon/CustomersIcon.d.ts +3 -0
- package/dist/types/components/icon/DownloadIcon.d.ts +3 -0
- package/dist/types/components/icon/DropdownAltIcon.d.ts +5 -0
- package/dist/types/components/icon/DropdownIcon.d.ts +5 -0
- package/dist/types/components/icon/EditIcon.d.ts +3 -0
- package/dist/types/components/icon/EditInvoiceLandingPageIcon.d.ts +3 -0
- package/dist/types/components/icon/EditInvoiceLandingPageServicesIcon.d.ts +3 -0
- package/dist/types/components/icon/EmailIcon.d.ts +3 -0
- package/dist/types/components/icon/ExitIcon.d.ts +3 -0
- package/dist/types/components/icon/ExportNoteIcon.d.ts +3 -0
- package/dist/types/components/icon/EyeVisibleIcon.d.ts +5 -0
- package/dist/types/components/icon/FacebookIcon.d.ts +3 -0
- package/dist/types/components/icon/FileFolderIcon.d.ts +3 -0
- package/dist/types/components/icon/FileFormatsIcon.d.ts +6 -0
- package/dist/types/components/icon/FilterIcon.d.ts +2 -0
- package/dist/types/components/icon/FirsBadgeIcon.d.ts +3 -0
- package/dist/types/components/icon/FlagIcon.d.ts +3 -0
- package/dist/types/components/icon/HamburgerMenuIcon.d.ts +3 -0
- package/dist/types/components/icon/HeroSectionBgIcon.d.ts +3 -0
- package/dist/types/components/icon/HomeIcon.d.ts +3 -0
- package/dist/types/components/icon/InfoCircledIcon.d.ts +3 -0
- package/dist/types/components/icon/InstagramIcon.d.ts +3 -0
- package/dist/types/components/icon/InvoiceHistoryCascadingTabsIcon.d.ts +3 -0
- package/dist/types/components/icon/InvoiceHistoryLandingPageServicesIcon.d.ts +3 -0
- package/dist/types/components/icon/InvoiceIcon.d.ts +3 -0
- package/dist/types/components/icon/KiteIcon.d.ts +3 -0
- package/dist/types/components/icon/LightningIcon.d.ts +3 -0
- package/dist/types/components/icon/LightningQuickIcon.d.ts +3 -0
- package/dist/types/components/icon/LinkedInIcon.d.ts +3 -0
- package/dist/types/components/icon/MenuUnfoldIcon.d.ts +3 -0
- package/dist/types/components/icon/NotFoundTableIcon.d.ts +3 -0
- package/dist/types/components/icon/NoteIcon.d.ts +3 -0
- package/dist/types/components/icon/NotificationBellIcon.d.ts +3 -0
- package/dist/types/components/icon/OutgoingCircledIcon.d.ts +3 -0
- package/dist/types/components/icon/PaddedErrorIcon.d.ts +3 -0
- package/dist/types/components/icon/PaddedWarningIcon.d.ts +3 -0
- package/dist/types/components/icon/PadlockIcon.d.ts +3 -0
- package/dist/types/components/icon/PhoneIcon.d.ts +3 -0
- package/dist/types/components/icon/PlayIcon.d.ts +3 -0
- package/dist/types/components/icon/PlusIcon.d.ts +3 -0
- package/dist/types/components/icon/ReceivedInvoiceLandingPageIcon.d.ts +3 -0
- package/dist/types/components/icon/RefreshAltIcon.d.ts +3 -0
- package/dist/types/components/icon/RefreshIcon.d.ts +3 -0
- package/dist/types/components/icon/RequiredIcon.d.ts +2 -0
- package/dist/types/components/icon/RightArrowIcon.d.ts +3 -0
- package/dist/types/components/icon/SafeguardIcon.d.ts +3 -0
- package/dist/types/components/icon/SearchIcon.d.ts +3 -0
- package/dist/types/components/icon/SettingsIcon.d.ts +3 -0
- package/dist/types/components/icon/SlideToOpenIcon.d.ts +3 -0
- package/dist/types/components/icon/StarTickIcon.d.ts +3 -0
- package/dist/types/components/icon/SuccessFilledTickIcon.d.ts +3 -0
- package/dist/types/components/icon/SuccessTickIcon.d.ts +3 -0
- package/dist/types/components/icon/ThreeDotsMenuIcon.d.ts +3 -0
- package/dist/types/components/icon/TrashIcon.d.ts +3 -0
- package/dist/types/components/icon/TwitterNowXIcon.d.ts +3 -0
- package/dist/types/components/icon/UserAvatarIcon.d.ts +3 -0
- package/dist/types/components/icon/UserIcon.d.ts +3 -0
- package/dist/types/components/icon/WalletIcon.d.ts +3 -0
- package/dist/types/components/icon/index.d.ts +151 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/components/layouts/AuthLayout.d.ts +10 -0
- package/dist/types/components/layouts/BaseFormLayout.d.ts +3 -0
- package/dist/types/components/layouts/BaseModalLayout.d.ts +21 -0
- package/dist/types/components/layouts/DashboardPageLayout.d.ts +15 -0
- package/dist/types/components/layouts/confirmationModalLayout.d.ts +11 -0
- package/dist/types/components/layouts/index.d.ts +15 -0
- package/dist/types/components/layouts/notificationModalLayout.d.ts +11 -0
- package/dist/types/components/ui/accordion/BaseAccordion.d.ts +23 -0
- package/dist/types/components/ui/accordion/index.d.ts +5 -0
- package/dist/types/components/ui/avatar/BaseAvatar.d.ts +4 -0
- package/dist/types/components/ui/avatar/index.d.ts +5 -0
- package/dist/types/components/ui/badge/BaseBadge.d.ts +7 -0
- package/dist/types/components/ui/badge/index.d.ts +5 -0
- package/dist/types/components/ui/breadcrumbs/BreadCrumbs.d.ts +10 -0
- package/dist/types/components/ui/breadcrumbs/index.d.ts +5 -0
- package/dist/types/components/ui/button/BaseButton.d.ts +22 -0
- package/dist/types/components/ui/button/IconButton.d.ts +10 -0
- package/dist/types/components/ui/button/index.d.ts +7 -0
- package/dist/types/components/ui/calendar/BaseCalendar.d.ts +12 -0
- package/dist/types/components/ui/calendar/index.d.ts +5 -0
- package/dist/types/components/ui/card/BaseRubiesCard.d.ts +8 -0
- package/dist/types/components/ui/card/CustomerBusinessCard.d.ts +2 -0
- package/dist/types/components/ui/card/ErrorCard.d.ts +5 -0
- package/dist/types/components/ui/card/GetSupportCard.d.ts +42 -0
- package/dist/types/components/ui/card/NewFeatureCard.d.ts +5 -0
- package/dist/types/components/ui/card/SelectRubiesSignupCard.d.ts +8 -0
- package/dist/types/components/ui/card/TitleSubtitleCard.d.ts +9 -0
- package/dist/types/components/ui/card/index.d.ts +17 -0
- package/dist/types/components/ui/checkbox/BaseCheckbox.d.ts +21 -0
- package/dist/types/components/ui/checkbox/BaseCheckboxGroup.d.ts +22 -0
- package/dist/types/components/ui/checkbox/index.d.ts +7 -0
- package/dist/types/components/ui/chip/BaseChip.d.ts +14 -0
- package/dist/types/components/ui/chip/index.d.ts +5 -0
- package/dist/types/components/ui/container/BaseContainer.d.ts +5 -0
- package/dist/types/components/ui/container/index.d.ts +5 -0
- package/dist/types/components/ui/datepicker/BaseDatePicker.d.ts +24 -0
- package/dist/types/components/ui/datepicker/BaseDateRangePicker.d.ts +28 -0
- package/dist/types/components/ui/datepicker/FormikDateRangePicker.d.ts +9 -0
- package/dist/types/components/ui/datepicker/index.d.ts +9 -0
- package/dist/types/components/ui/form/dashboard/CreateOrUpdateDummyForm.d.ts +11 -0
- package/dist/types/components/ui/form/dashboard/index.d.ts +5 -0
- package/dist/types/components/ui/form/index.d.ts +4 -0
- package/dist/types/components/ui/index.d.ts +27 -0
- package/dist/types/components/ui/input/BaseInput.d.ts +39 -0
- package/dist/types/components/ui/input/BaseOtpInput.d.ts +14 -0
- package/dist/types/components/ui/input/BasePhoneNumberInput.d.ts +37 -0
- package/dist/types/components/ui/input/index.d.ts +9 -0
- package/dist/types/components/ui/label/EnhancedLabel.d.ts +44 -0
- package/dist/types/components/ui/label/FormLabel.d.ts +11 -0
- package/dist/types/components/ui/label/index.d.ts +7 -0
- package/dist/types/components/ui/menu/BaseSidebar.d.ts +64 -0
- package/dist/types/components/ui/menu/Footer.d.ts +2 -0
- package/dist/types/components/ui/menu/Header.d.ts +6 -0
- package/dist/types/components/ui/menu/WebsiteSidebar.d.ts +6 -0
- package/dist/types/components/ui/menu/index.d.ts +11 -0
- package/dist/types/components/ui/modal/BaseModal.d.ts +19 -0
- package/dist/types/components/ui/modal/DeleteDummyConfirmationModal.d.ts +2 -0
- package/dist/types/components/ui/modal/GlobalModal.d.ts +2 -0
- package/dist/types/components/ui/modal/ModalRenderer.d.ts +6 -0
- package/dist/types/components/ui/modal/UpdateDummyModal.d.ts +2 -0
- package/dist/types/components/ui/modal/ViewDummyModal.d.ts +2 -0
- package/dist/types/components/ui/modal/confirmationModal.d.ts +4 -0
- package/dist/types/components/ui/modal/index.d.ts +19 -0
- package/dist/types/components/ui/modal/notificationModal.d.ts +4 -0
- package/dist/types/components/ui/popup/BasePopup.d.ts +10 -0
- package/dist/types/components/ui/popup/BasePopupContainer.d.ts +15 -0
- package/dist/types/components/ui/popup/MenuOptionsPopup.d.ts +12 -0
- package/dist/types/components/ui/popup/NotificationPopup.d.ts +4 -0
- package/dist/types/components/ui/popup/index.d.ts +11 -0
- package/dist/types/components/ui/progress/BaseProgress.d.ts +10 -0
- package/dist/types/components/ui/progress/index.d.ts +5 -0
- package/dist/types/components/ui/radio/BaseRadio.d.ts +19 -0
- package/dist/types/components/ui/radio/BaseRadioGroup.d.ts +22 -0
- package/dist/types/components/ui/radio/index.d.ts +7 -0
- package/dist/types/components/ui/select/BaseSelect.d.ts +32 -0
- package/dist/types/components/ui/select/ModernSelect.d.ts +36 -0
- package/dist/types/components/ui/select/SearchableSelect.d.ts +41 -0
- package/dist/types/components/ui/select/index.d.ts +9 -0
- package/dist/types/components/ui/switch/BaseSwitch.d.ts +4 -0
- package/dist/types/components/ui/switch/index.d.ts +5 -0
- package/dist/types/components/ui/table/BaseDataGrid.d.ts +123 -0
- package/dist/types/components/ui/table/BaseTable.d.ts +4 -0
- package/dist/types/components/ui/table/Table.d.ts +81 -0
- package/dist/types/components/ui/table/components/CustomDateComponent.d.ts +2 -0
- package/dist/types/components/ui/table/components/CustomTableActionRenderer.d.ts +3 -0
- package/dist/types/components/ui/table/components/CustomTableEmptyState.d.ts +10 -0
- package/dist/types/components/ui/table/components/DateRangeFilter.d.ts +2 -0
- package/dist/types/components/ui/table/components/index.d.ts +11 -0
- package/dist/types/components/ui/table/index.d.ts +12 -0
- package/dist/types/components/ui/table/renderers/BaseActionRenderer.d.ts +13 -0
- package/dist/types/components/ui/table/renderers/DateCellRenderer.d.ts +10 -0
- package/dist/types/components/ui/table/renderers/DeleteActionRenderer.d.ts +7 -0
- package/dist/types/components/ui/table/renderers/EditActionRenderer.d.ts +7 -0
- package/dist/types/components/ui/table/renderers/RowOptionsActionRenderer.d.ts +8 -0
- package/dist/types/components/ui/table/renderers/StatusRenderer.d.ts +18 -0
- package/dist/types/components/ui/table/renderers/SubscribeActionRenderer.d.ts +6 -0
- package/dist/types/components/ui/table/renderers/ViewActionRenderer.d.ts +6 -0
- package/dist/types/components/ui/table/renderers/index.d.ts +19 -0
- package/dist/types/components/ui/table/tablePanels/BaseTableHeaderControls.d.ts +26 -0
- package/dist/types/components/ui/table/tablePanels/BaseTablePaginationPanel.d.ts +11 -0
- package/dist/types/components/ui/table/tablePanels/index.d.ts +7 -0
- package/dist/types/components/ui/toast/BaseToast.d.ts +9 -0
- package/dist/types/components/ui/toast/BaseToastContainer.d.ts +4 -0
- package/dist/types/components/ui/toast/index.d.ts +7 -0
- package/dist/types/components/ui/typography/index.d.ts +5 -0
- package/dist/types/components/ui/typography/typography.d.ts +12 -0
- package/dist/types/configs/appConfig.d.ts +6 -0
- package/dist/types/configs/serviceConfig.d.ts +3 -0
- package/dist/types/configs/themeConfig.d.ts +97 -0
- package/dist/types/importLcDetailsSection.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/main.d.ts +0 -0
- package/dist/types/stores/index.d.ts +2 -0
- package/dist/types/utilities/baseUtil.d.ts +3 -0
- package/dist/types/utilities/constants/index.d.ts +4 -0
- package/dist/types/utilities/constants/routeConstant.d.ts +33 -0
- package/dist/types/utilities/context/checkboxContext.d.ts +10 -0
- package/dist/types/utilities/context/index.d.ts +6 -0
- package/dist/types/utilities/context/modalContext.d.ts +25 -0
- package/dist/types/utilities/context/radioContext.d.ts +9 -0
- package/dist/types/utilities/data/index.d.ts +4 -0
- package/dist/types/utilities/data/sidebarData.d.ts +3 -0
- package/dist/types/utilities/enums/baseEnum.d.ts +5 -0
- package/dist/types/utilities/enums/baseTableIdEnum.d.ts +10 -0
- package/dist/types/utilities/enums/documentStatusEnum.d.ts +5 -0
- package/dist/types/utilities/enums/index.d.ts +8 -0
- package/dist/types/utilities/enums/modalEnum.d.ts +4 -0
- package/dist/types/utilities/enums/popupEnum.d.ts +3 -0
- package/dist/types/utilities/factory/index.d.ts +4 -0
- package/dist/types/utilities/factory/modalFactory.d.ts +7 -0
- package/dist/types/utilities/formUtil.d.ts +17 -0
- package/dist/types/utilities/hooks/index.d.ts +23 -0
- package/dist/types/utilities/hooks/useFetchOnStageChange.d.ts +2 -0
- package/dist/types/utilities/hooks/useFirstRender.d.ts +2 -0
- package/dist/types/utilities/hooks/useModal.d.ts +18 -0
- package/dist/types/utilities/hooks/useModalContext.d.ts +4 -0
- package/dist/types/utilities/hooks/useModalRegistration.d.ts +7 -0
- package/dist/types/utilities/hooks/useModalRegistrations.d.ts +3 -0
- package/dist/types/utilities/hooks/useNotification.d.ts +22 -0
- package/dist/types/utilities/hooks/useOnClickOutside.d.ts +2 -0
- package/dist/types/utilities/hooks/usePopup.d.ts +24 -0
- package/dist/types/utilities/hooks/useTableDataSync.d.ts +23 -0
- package/dist/types/utilities/index.d.ts +18 -0
- package/dist/types/utilities/modalRegistrationUtil.d.ts +18 -0
- package/dist/types/utilities/modalUtil.d.ts +33 -0
- package/dist/types/utilities/routerUtil.d.ts +13 -0
- package/dist/types/utilities/stringUtil.d.ts +17 -0
- package/dist/types/utilities/theme/index.d.ts +4 -0
- package/dist/types/utilities/theme/themeProvider.d.ts +7 -0
- package/dist/types/utilities/timeUtil.d.ts +38 -0
- package/dist/types/utilities/types/formTypes.d.ts +2 -0
- package/dist/types/utilities/types/index.d.ts +6 -0
- package/dist/types/utilities/types/modalTypes.d.ts +33 -0
- package/dist/types/utilities/types/themeTypes.d.ts +27 -0
- package/dist/vite.svg +1 -0
- 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
|
+
};
|
|
File without changes
|
|
@@ -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,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,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,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,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,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,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,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,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
|
+
}
|