@finspringinnovations/fixeddepositsdk 1.0.0
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 +128 -0
- package/lib/api/applicationApi.d.ts +1 -0
- package/lib/api/applicationApi.js +11 -0
- package/lib/api/bankApi.d.ts +352 -0
- package/lib/api/bankApi.js +54 -0
- package/lib/api/baseApi.d.ts +6 -0
- package/lib/api/baseApi.js +406 -0
- package/lib/api/customerApi.d.ts +855 -0
- package/lib/api/customerApi.js +241 -0
- package/lib/api/fdApi.d.ts +979 -0
- package/lib/api/fdApi.js +112 -0
- package/lib/api/fdCalculatorApi.d.ts +179 -0
- package/lib/api/fdCalculatorApi.js +36 -0
- package/lib/api/index.d.ts +14 -0
- package/lib/api/index.js +45 -0
- package/lib/api/interestRateApi.d.ts +585 -0
- package/lib/api/interestRateApi.js +101 -0
- package/lib/api/kycApi.d.ts +486 -0
- package/lib/api/kycApi.js +71 -0
- package/lib/api/masterDataApi.d.ts +158 -0
- package/lib/api/masterDataApi.js +35 -0
- package/lib/api/nomineeApi.d.ts +325 -0
- package/lib/api/nomineeApi.js +46 -0
- package/lib/api/onboardingApi.d.ts +192 -0
- package/lib/api/onboardingApi.js +41 -0
- package/lib/api/panApi.d.ts +0 -0
- package/lib/api/panApi.js +23 -0
- package/lib/api/paymentApi.d.ts +325 -0
- package/lib/api/paymentApi.js +46 -0
- package/lib/api/workflowApi.d.ts +654 -0
- package/lib/api/workflowApi.js +90 -0
- package/lib/assets/images/images.d.ts +6 -0
- package/lib/assets/images/images.js +12 -0
- package/lib/components/AadhaarInput.d.ts +13 -0
- package/lib/components/AadhaarInput.js +47 -0
- package/lib/components/ActionButton.d.ts +12 -0
- package/lib/components/ActionButton.js +87 -0
- package/lib/components/ActiveFDCard.d.ts +18 -0
- package/lib/components/ActiveFDCard.js +116 -0
- package/lib/components/AmountInput.d.ts +20 -0
- package/lib/components/AmountInput.js +142 -0
- package/lib/components/CheckboxOption.d.ts +11 -0
- package/lib/components/CheckboxOption.js +41 -0
- package/lib/components/CompanyHeader.d.ts +7 -0
- package/lib/components/CompanyHeader.js +59 -0
- package/lib/components/DropdownSelector.d.ts +9 -0
- package/lib/components/DropdownSelector.js +49 -0
- package/lib/components/EmptyState.d.ts +17 -0
- package/lib/components/EmptyState.js +44 -0
- package/lib/components/ErrorDisplay.d.ts +17 -0
- package/lib/components/ErrorDisplay.js +69 -0
- package/lib/components/FAQItem.d.ts +9 -0
- package/lib/components/FAQItem.js +52 -0
- package/lib/components/FDCard.d.ts +23 -0
- package/lib/components/FDCard.js +116 -0
- package/lib/components/FormDropdown.d.ts +18 -0
- package/lib/components/FormDropdown.js +155 -0
- package/lib/components/FormSection.d.ts +14 -0
- package/lib/components/FormSection.js +38 -0
- package/lib/components/Header.d.ts +14 -0
- package/lib/components/Header.js +52 -0
- package/lib/components/IFSCSearchResultCard.d.ts +13 -0
- package/lib/components/IFSCSearchResultCard.js +70 -0
- package/lib/components/InfoBox.d.ts +8 -0
- package/lib/components/InfoBox.js +39 -0
- package/lib/components/InterestRateCard.d.ts +8 -0
- package/lib/components/InterestRateCard.js +46 -0
- package/lib/components/LoadingIndicator.d.ts +12 -0
- package/lib/components/LoadingIndicator.js +30 -0
- package/lib/components/OTPInput.d.ts +17 -0
- package/lib/components/OTPInput.js +144 -0
- package/lib/components/PaymentDetailsCard.d.ts +20 -0
- package/lib/components/PaymentDetailsCard.js +68 -0
- package/lib/components/PendingFDBottomSheet.d.ts +19 -0
- package/lib/components/PendingFDBottomSheet.js +122 -0
- package/lib/components/SafeAreaWrapper.d.ts +13 -0
- package/lib/components/SafeAreaWrapper.js +41 -0
- package/lib/components/ScreenHeader.d.ts +11 -0
- package/lib/components/ScreenHeader.js +46 -0
- package/lib/components/StatusDisplay.d.ts +15 -0
- package/lib/components/StatusDisplay.js +88 -0
- package/lib/components/TextFieldWithLabel.d.ts +46 -0
- package/lib/components/TextFieldWithLabel.js +326 -0
- package/lib/components/TrustBox.d.ts +8 -0
- package/lib/components/TrustBox.js +46 -0
- package/lib/components/ValidationErrorAlert.d.ts +23 -0
- package/lib/components/ValidationErrorAlert.js +39 -0
- package/lib/components/ValidationMessage.d.ts +9 -0
- package/lib/components/ValidationMessage.js +98 -0
- package/lib/components/index.d.ts +35 -0
- package/lib/components/index.js +64 -0
- package/lib/config/apiConfig.d.ts +34 -0
- package/lib/config/apiConfig.js +158 -0
- package/lib/config/appDataConfig.d.ts +159 -0
- package/lib/config/appDataConfig.js +310 -0
- package/lib/config/encryptionConfig.d.ts +21 -0
- package/lib/config/encryptionConfig.js +61 -0
- package/lib/config/workflowConstants.d.ts +62 -0
- package/lib/config/workflowConstants.js +63 -0
- package/lib/constants/strings/bank.d.ts +72 -0
- package/lib/constants/strings/bank.js +86 -0
- package/lib/constants/strings/base64Images.d.ts +26 -0
- package/lib/constants/strings/base64Images.js +29 -0
- package/lib/constants/strings/common.d.ts +53 -0
- package/lib/constants/strings/common.js +62 -0
- package/lib/constants/strings/employee.d.ts +61 -0
- package/lib/constants/strings/employee.js +77 -0
- package/lib/constants/strings/faq.d.ts +14 -0
- package/lib/constants/strings/faq.js +20 -0
- package/lib/constants/strings/fd.d.ts +122 -0
- package/lib/constants/strings/fd.js +151 -0
- package/lib/constants/strings/home.d.ts +49 -0
- package/lib/constants/strings/home.js +62 -0
- package/lib/constants/strings/index.d.ts +16 -0
- package/lib/constants/strings/index.js +44 -0
- package/lib/constants/strings/kyc.d.ts +80 -0
- package/lib/constants/strings/kyc.js +94 -0
- package/lib/constants/strings/nominee.d.ts +64 -0
- package/lib/constants/strings/nominee.js +81 -0
- package/lib/hooks/useAuth.d.ts +25 -0
- package/lib/hooks/useAuth.js +39 -0
- package/lib/hooks/useFDData.d.ts +11 -0
- package/lib/hooks/useFDData.js +40 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.js +161 -0
- package/lib/navigation/RootNavigator.d.ts +9 -0
- package/lib/navigation/RootNavigator.js +459 -0
- package/lib/navigation/SimpleNavigator.d.ts +11 -0
- package/lib/navigation/SimpleNavigator.js +114 -0
- package/lib/navigation/helpers.d.ts +11 -0
- package/lib/navigation/helpers.js +83 -0
- package/lib/navigation/index.d.ts +17 -0
- package/lib/navigation/index.js +42 -0
- package/lib/navigation/types.d.ts +139 -0
- package/lib/navigation/types.js +2 -0
- package/lib/navigation/workflowNavigator.d.ts +22 -0
- package/lib/navigation/workflowNavigator.js +104 -0
- package/lib/providers/ApiProvider.d.ts +7 -0
- package/lib/providers/ApiProvider.js +16 -0
- package/lib/providers/MasterDataProvider.d.ts +10 -0
- package/lib/providers/MasterDataProvider.js +54 -0
- package/lib/screens/AadhaarVerification.d.ts +7 -0
- package/lib/screens/AadhaarVerification.js +627 -0
- package/lib/screens/AddBankAccount.d.ts +22 -0
- package/lib/screens/AddBankAccount.js +381 -0
- package/lib/screens/BankDetail.d.ts +16 -0
- package/lib/screens/BankDetail.js +596 -0
- package/lib/screens/Employee.d.ts +18 -0
- package/lib/screens/Employee.js +594 -0
- package/lib/screens/FDCalculator.d.ts +18 -0
- package/lib/screens/FDCalculator.js +767 -0
- package/lib/screens/FDList.d.ts +28 -0
- package/lib/screens/FDList.js +1853 -0
- package/lib/screens/FindIFSC.d.ts +16 -0
- package/lib/screens/FindIFSC.js +248 -0
- package/lib/screens/NomineeDetail.d.ts +17 -0
- package/lib/screens/NomineeDetail.js +592 -0
- package/lib/screens/PayNow.d.ts +14 -0
- package/lib/screens/PayNow.js +230 -0
- package/lib/screens/Payment.d.ts +11 -0
- package/lib/screens/Payment.js +191 -0
- package/lib/screens/PaymentStatus.d.ts +16 -0
- package/lib/screens/PaymentStatus.js +431 -0
- package/lib/screens/ReviewKYC.d.ts +23 -0
- package/lib/screens/ReviewKYC.js +727 -0
- package/lib/state/paymentSession.d.ts +8 -0
- package/lib/state/paymentSession.js +13 -0
- package/lib/store/fdListSelectedSlice.d.ts +21 -0
- package/lib/store/fdListSelectedSlice.js +26 -0
- package/lib/store/hooks.d.ts +8 -0
- package/lib/store/hooks.js +8 -0
- package/lib/store/index.d.ts +3 -0
- package/lib/store/index.js +8 -0
- package/lib/store/onboardingSlice.d.ts +12 -0
- package/lib/store/onboardingSlice.js +32 -0
- package/lib/store/store.d.ts +13 -0
- package/lib/store/store.js +27 -0
- package/lib/theme/ThemeContext.d.ts +210 -0
- package/lib/theme/ThemeContext.js +92 -0
- package/lib/theme/colors.d.ts +80 -0
- package/lib/theme/colors.js +85 -0
- package/lib/theme/index.d.ts +35 -0
- package/lib/theme/index.js +78 -0
- package/lib/theme/shadows.d.ts +53 -0
- package/lib/theme/shadows.js +58 -0
- package/lib/theme/typography.d.ts +134 -0
- package/lib/theme/typography.js +143 -0
- package/lib/types/dataTypes.d.ts +34 -0
- package/lib/types/dataTypes.js +2 -0
- package/lib/types/workflowTypes.d.ts +2 -0
- package/lib/types/workflowTypes.js +2 -0
- package/lib/utils/apiLogger.d.ts +48 -0
- package/lib/utils/apiLogger.js +105 -0
- package/lib/utils/encryption.d.ts +28 -0
- package/lib/utils/encryption.js +113 -0
- package/lib/utils/getFDData.d.ts +48 -0
- package/lib/utils/getFDData.js +145 -0
- package/lib/utils/globalData.d.ts +2 -0
- package/lib/utils/globalData.js +10 -0
- package/package.json +51 -0
- package/src/api/applicationApi.ts +12 -0
- package/src/api/bankApi.ts +42 -0
- package/src/api/baseApi.ts +463 -0
- package/src/api/customerApi.ts +324 -0
- package/src/api/fdApi.ts +150 -0
- package/src/api/fdCalculatorApi.ts +41 -0
- package/src/api/index.ts +29 -0
- package/src/api/interestRateApi.ts +143 -0
- package/src/api/kycApi.ts +63 -0
- package/src/api/masterDataApi.ts +37 -0
- package/src/api/nomineeApi.ts +34 -0
- package/src/api/onboardingApi.ts +64 -0
- package/src/api/panApi.ts +25 -0
- package/src/api/paymentApi.ts +34 -0
- package/src/api/workflowApi.ts +94 -0
- package/src/assets/images/Mahindra.png +0 -0
- package/src/assets/images/arrow-filled.png +0 -0
- package/src/assets/images/arrow-left.png +0 -0
- package/src/assets/images/backicon.png +0 -0
- package/src/assets/images/calendar.png +0 -0
- package/src/assets/images/chevron-down.png +0 -0
- package/src/assets/images/chevron-down@2x.png +0 -0
- package/src/assets/images/chevron-down@3x.png +0 -0
- package/src/assets/images/images.js +10 -0
- package/src/assets/images/shriram_logo.png +0 -0
- package/src/components/AadhaarInput.tsx +91 -0
- package/src/components/ActionButton.tsx +129 -0
- package/src/components/ActiveFDCard.tsx +188 -0
- package/src/components/AmountInput.tsx +217 -0
- package/src/components/CheckboxOption.tsx +93 -0
- package/src/components/CompanyHeader.tsx +80 -0
- package/src/components/DropdownSelector.tsx +77 -0
- package/src/components/EmptyState.tsx +109 -0
- package/src/components/ErrorDisplay.tsx +135 -0
- package/src/components/FAQItem.tsx +90 -0
- package/src/components/FDCard.tsx +186 -0
- package/src/components/FormDropdown.tsx +214 -0
- package/src/components/FormSection.tsx +86 -0
- package/src/components/Header.tsx +110 -0
- package/src/components/IFSCSearchResultCard.tsx +139 -0
- package/src/components/InfoBox.tsx +55 -0
- package/src/components/InterestRateCard.tsx +77 -0
- package/src/components/LoadingIndicator.tsx +63 -0
- package/src/components/OTPInput.tsx +213 -0
- package/src/components/PaymentDetailsCard.tsx +120 -0
- package/src/components/PendingFDBottomSheet.tsx +237 -0
- package/src/components/README.md +210 -0
- package/src/components/SafeAreaWrapper.tsx +68 -0
- package/src/components/ScreenHeader.tsx +83 -0
- package/src/components/StatusDisplay.tsx +139 -0
- package/src/components/TextFieldWithLabel.tsx +502 -0
- package/src/components/TrustBox.tsx +63 -0
- package/src/components/ValidationErrorAlert.tsx +57 -0
- package/src/components/ValidationMessage.tsx +134 -0
- package/src/components/index.tsx +47 -0
- package/src/config/apiConfig.ts +217 -0
- package/src/config/appDataConfig.ts +358 -0
- package/src/config/encryptionConfig.ts +65 -0
- package/src/config/workflowConstants.ts +70 -0
- package/src/constants/strings/README.md +146 -0
- package/src/constants/strings/bank.ts +92 -0
- package/src/constants/strings/base64Images.ts +31 -0
- package/src/constants/strings/common.ts +63 -0
- package/src/constants/strings/employee.ts +85 -0
- package/src/constants/strings/faq.ts +23 -0
- package/src/constants/strings/fd.ts +172 -0
- package/src/constants/strings/home.ts +67 -0
- package/src/constants/strings/index.ts +21 -0
- package/src/constants/strings/kyc.ts +100 -0
- package/src/constants/strings/nominee.ts +90 -0
- package/src/hooks/useAuth.ts +42 -0
- package/src/hooks/useFDData.ts +48 -0
- package/src/index.tsx +139 -0
- package/src/navigation/RootNavigator.tsx +687 -0
- package/src/navigation/SimpleNavigator.tsx +123 -0
- package/src/navigation/helpers.ts +85 -0
- package/src/navigation/index.tsx +84 -0
- package/src/navigation/types.ts +146 -0
- package/src/navigation/workflowNavigator.ts +131 -0
- package/src/providers/ApiProvider.tsx +23 -0
- package/src/providers/MasterDataProvider.tsx +30 -0
- package/src/screens/AadhaarVerification.tsx +809 -0
- package/src/screens/AddBankAccount.tsx +541 -0
- package/src/screens/BankDetail.tsx +826 -0
- package/src/screens/Employee.tsx +822 -0
- package/src/screens/FDCalculator.tsx +1002 -0
- package/src/screens/FDList.tsx +2199 -0
- package/src/screens/FindIFSC.tsx +332 -0
- package/src/screens/NomineeDetail.tsx +800 -0
- package/src/screens/PayNow.tsx +282 -0
- package/src/screens/Payment.tsx +224 -0
- package/src/screens/PaymentStatus.tsx +595 -0
- package/src/screens/ReviewKYC.tsx +1062 -0
- package/src/state/paymentSession.ts +13 -0
- package/src/store/fdListSelectedSlice.ts +42 -0
- package/src/store/hooks.ts +6 -0
- package/src/store/index.ts +3 -0
- package/src/store/onboardingSlice.ts +37 -0
- package/src/store/store.ts +27 -0
- package/src/theme/ThemeContext.tsx +84 -0
- package/src/theme/colors.ts +90 -0
- package/src/theme/index.ts +85 -0
- package/src/theme/shadows.ts +61 -0
- package/src/theme/typography.ts +151 -0
- package/src/types/dataTypes.ts +37 -0
- package/src/types/env.d.ts +93 -0
- package/src/types/workflowTypes.ts +12 -0
- package/src/utils/apiLogger.ts +166 -0
- package/src/utils/encryption.ts +159 -0
- package/src/utils/getFDData.ts +165 -0
- package/src/utils/globalData.ts +7 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setPaymentSession = setPaymentSession;
|
|
4
|
+
exports.getPaymentSession = getPaymentSession;
|
|
5
|
+
let lastPaymentUrl;
|
|
6
|
+
let lastTransactionId;
|
|
7
|
+
function setPaymentSession(params) {
|
|
8
|
+
lastPaymentUrl = params.paymentUrl;
|
|
9
|
+
lastTransactionId = params.transactionId;
|
|
10
|
+
}
|
|
11
|
+
function getPaymentSession() {
|
|
12
|
+
return { paymentUrl: lastPaymentUrl, transactionId: lastTransactionId };
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface FDListSelectedData {
|
|
2
|
+
id: string;
|
|
3
|
+
providerId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
accountNumber: string;
|
|
6
|
+
roi: string;
|
|
7
|
+
tenure: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
maturityDate: string;
|
|
10
|
+
status: 'active' | 'matured' | 'pending';
|
|
11
|
+
creditRating: string;
|
|
12
|
+
companyName: string;
|
|
13
|
+
fdRate: string;
|
|
14
|
+
interestPayout: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const setFDListSelected: import("@reduxjs/toolkit").ActionCreatorWithPayload<FDListSelectedData, "fdListSelected/setFDListSelected">, clearFDListSelected: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"fdListSelected/clearFDListSelected">, updateFDListSelectedField: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
17
|
+
field: keyof FDListSelectedData;
|
|
18
|
+
value: any;
|
|
19
|
+
}, "fdListSelected/updateFDListSelectedField">;
|
|
20
|
+
declare const _default: import("redux").Reducer<any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.updateFDListSelectedField = exports.clearFDListSelected = exports.setFDListSelected = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const initialState = null;
|
|
7
|
+
const fdListSelectedSlice = (0, toolkit_1.createSlice)({
|
|
8
|
+
name: 'fdListSelected',
|
|
9
|
+
initialState: initialState,
|
|
10
|
+
reducers: {
|
|
11
|
+
setFDListSelected: (state, action) => {
|
|
12
|
+
// Replace the entire state with the new payload
|
|
13
|
+
return action.payload;
|
|
14
|
+
},
|
|
15
|
+
clearFDListSelected: (state) => {
|
|
16
|
+
return null;
|
|
17
|
+
},
|
|
18
|
+
updateFDListSelectedField: (state, action) => {
|
|
19
|
+
if (state) {
|
|
20
|
+
state[action.payload.field] = action.payload.value;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
_a = fdListSelectedSlice.actions, exports.setFDListSelected = _a.setFDListSelected, exports.clearFDListSelected = _a.clearFDListSelected, exports.updateFDListSelectedField = _a.updateFDListSelectedField;
|
|
26
|
+
exports.default = fdListSelectedSlice.reducer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import type { RootState } from './store';
|
|
3
|
+
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
4
|
+
fdsdkApi: import("@reduxjs/toolkit/query").CombinedState<{}, "InterestRate", "fdsdkApi">;
|
|
5
|
+
onboarding: import("./onboardingSlice").OnboardingIds;
|
|
6
|
+
fdListSelected: any;
|
|
7
|
+
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").UnknownAction>;
|
|
8
|
+
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAppSelector = exports.useAppDispatch = void 0;
|
|
4
|
+
const react_redux_1 = require("react-redux");
|
|
5
|
+
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
|
6
|
+
const useAppDispatch = () => (0, react_redux_1.useDispatch)();
|
|
7
|
+
exports.useAppDispatch = useAppDispatch;
|
|
8
|
+
exports.useAppSelector = react_redux_1.useSelector;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAppSelector = exports.useAppDispatch = exports.store = void 0;
|
|
4
|
+
var store_1 = require("./store");
|
|
5
|
+
Object.defineProperty(exports, "store", { enumerable: true, get: function () { return store_1.store; } });
|
|
6
|
+
var hooks_1 = require("./hooks");
|
|
7
|
+
Object.defineProperty(exports, "useAppDispatch", { enumerable: true, get: function () { return hooks_1.useAppDispatch; } });
|
|
8
|
+
Object.defineProperty(exports, "useAppSelector", { enumerable: true, get: function () { return hooks_1.useAppSelector; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface OnboardingIds {
|
|
2
|
+
workflowInstanceId?: string;
|
|
3
|
+
applicationId?: string;
|
|
4
|
+
entityid?: string;
|
|
5
|
+
customerId?: string;
|
|
6
|
+
fdId?: string;
|
|
7
|
+
providerId?: string;
|
|
8
|
+
wfStatus?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const setOnboardingIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<OnboardingIds, "onboarding/setOnboardingIds">, clearOnboardingIds: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboarding/clearOnboardingIds">;
|
|
11
|
+
declare const _default: import("redux").Reducer<OnboardingIds>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.clearOnboardingIds = exports.setOnboardingIds = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const initialState = {};
|
|
7
|
+
const onboardingSlice = (0, toolkit_1.createSlice)({
|
|
8
|
+
name: 'onboarding',
|
|
9
|
+
initialState,
|
|
10
|
+
reducers: {
|
|
11
|
+
setOnboardingIds: (state, action) => {
|
|
12
|
+
const { workflowInstanceId, applicationId, entityid, customerId, fdId, providerId, wfStatus } = action.payload;
|
|
13
|
+
if (workflowInstanceId)
|
|
14
|
+
state.workflowInstanceId = workflowInstanceId;
|
|
15
|
+
if (applicationId)
|
|
16
|
+
state.applicationId = applicationId;
|
|
17
|
+
if (entityid)
|
|
18
|
+
state.entityid = entityid;
|
|
19
|
+
if (customerId)
|
|
20
|
+
state.customerId = customerId;
|
|
21
|
+
if (fdId)
|
|
22
|
+
state.fdId = fdId;
|
|
23
|
+
if (providerId)
|
|
24
|
+
state.providerId = providerId;
|
|
25
|
+
if (wfStatus)
|
|
26
|
+
state.wfStatus = wfStatus;
|
|
27
|
+
},
|
|
28
|
+
clearOnboardingIds: () => initialState,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
_a = onboardingSlice.actions, exports.setOnboardingIds = _a.setOnboardingIds, exports.clearOnboardingIds = _a.clearOnboardingIds;
|
|
32
|
+
exports.default = onboardingSlice.reducer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
+
fdsdkApi: import("@reduxjs/toolkit/query").CombinedState<{}, "InterestRate", "fdsdkApi">;
|
|
3
|
+
onboarding: import("./onboardingSlice").OnboardingIds;
|
|
4
|
+
fdListSelected: any;
|
|
5
|
+
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
6
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
7
|
+
fdsdkApi: import("@reduxjs/toolkit/query").CombinedState<{}, "InterestRate", "fdsdkApi">;
|
|
8
|
+
onboarding: import("./onboardingSlice").OnboardingIds;
|
|
9
|
+
fdListSelected: any;
|
|
10
|
+
}, undefined, import("redux").UnknownAction>;
|
|
11
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
12
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
13
|
+
export type AppDispatch = typeof store.dispatch;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.store = void 0;
|
|
7
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
|
+
const baseApi_1 = require("../api/baseApi");
|
|
9
|
+
const onboardingSlice_1 = __importDefault(require("./onboardingSlice"));
|
|
10
|
+
const fdListSelectedSlice_1 = __importDefault(require("./fdListSelectedSlice"));
|
|
11
|
+
// Configure the Redux store
|
|
12
|
+
exports.store = (0, toolkit_1.configureStore)({
|
|
13
|
+
reducer: {
|
|
14
|
+
// Add the generated reducer as a specific top-level slice
|
|
15
|
+
[baseApi_1.baseApi.reducerPath]: baseApi_1.baseApi.reducer,
|
|
16
|
+
onboarding: onboardingSlice_1.default,
|
|
17
|
+
fdListSelected: fdListSelectedSlice_1.default,
|
|
18
|
+
},
|
|
19
|
+
// Adding the api middleware enables caching, invalidation, polling,
|
|
20
|
+
// and other useful features of `rtk-query`.
|
|
21
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
22
|
+
serializableCheck: {
|
|
23
|
+
// Ignore these action types for serializable check
|
|
24
|
+
ignoredActions: ['persist/PERSIST', 'persist/REHYDRATE'],
|
|
25
|
+
},
|
|
26
|
+
}).concat(baseApi_1.baseApi.middleware),
|
|
27
|
+
});
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { type Theme, type ThemeName } from './index';
|
|
3
|
+
interface ThemeContextType {
|
|
4
|
+
theme: Theme;
|
|
5
|
+
themeName: ThemeName;
|
|
6
|
+
setTheme: (themeName: ThemeName) => void;
|
|
7
|
+
}
|
|
8
|
+
interface ThemeProviderProps {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
initialTheme?: ThemeName;
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
}
|
|
13
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
14
|
+
export declare const useTheme: () => ThemeContextType;
|
|
15
|
+
export declare const useColors: () => import("./colors").ColorScheme;
|
|
16
|
+
export declare const useTypography: () => {
|
|
17
|
+
readonly fontFamily: {
|
|
18
|
+
readonly primary: "poppins.regular";
|
|
19
|
+
readonly medium: "poppins.medium";
|
|
20
|
+
readonly semiBold: "poppins.semibold";
|
|
21
|
+
readonly bold: "poppins.bold";
|
|
22
|
+
};
|
|
23
|
+
readonly fontSize: {
|
|
24
|
+
readonly xxs: 8;
|
|
25
|
+
readonly xs: 10;
|
|
26
|
+
readonly sm: 12;
|
|
27
|
+
readonly md: 14;
|
|
28
|
+
readonly lg: 16;
|
|
29
|
+
readonly xl: 18;
|
|
30
|
+
readonly xxl: 20;
|
|
31
|
+
readonly xxxl: 24;
|
|
32
|
+
};
|
|
33
|
+
readonly fontWeight: {
|
|
34
|
+
readonly regular: "400";
|
|
35
|
+
readonly medium: "500";
|
|
36
|
+
readonly semiBold: "600";
|
|
37
|
+
readonly bold: "700";
|
|
38
|
+
};
|
|
39
|
+
readonly lineHeight: {
|
|
40
|
+
readonly tight: 1.2;
|
|
41
|
+
readonly normal: 1.4;
|
|
42
|
+
readonly relaxed: 1.6;
|
|
43
|
+
};
|
|
44
|
+
readonly styles: {
|
|
45
|
+
readonly h1: {
|
|
46
|
+
readonly fontFamily: "poppins.bold";
|
|
47
|
+
readonly fontSize: 24;
|
|
48
|
+
readonly fontWeight: "700";
|
|
49
|
+
readonly lineHeight: 32;
|
|
50
|
+
};
|
|
51
|
+
readonly h2: {
|
|
52
|
+
readonly fontFamily: "poppins.semibold";
|
|
53
|
+
readonly fontSize: 20;
|
|
54
|
+
readonly fontWeight: "600";
|
|
55
|
+
readonly lineHeight: 28;
|
|
56
|
+
};
|
|
57
|
+
readonly h3: {
|
|
58
|
+
readonly fontFamily: "poppins.medium";
|
|
59
|
+
readonly fontSize: 16;
|
|
60
|
+
readonly fontWeight: "500";
|
|
61
|
+
readonly lineHeight: 24;
|
|
62
|
+
};
|
|
63
|
+
readonly bodyLarge: {
|
|
64
|
+
readonly fontFamily: "poppins.regular";
|
|
65
|
+
readonly fontSize: 16;
|
|
66
|
+
readonly fontWeight: "400";
|
|
67
|
+
readonly lineHeight: 24;
|
|
68
|
+
};
|
|
69
|
+
readonly bodyMedium: {
|
|
70
|
+
readonly fontFamily: "poppins.regular";
|
|
71
|
+
readonly fontSize: 14;
|
|
72
|
+
readonly fontWeight: "400";
|
|
73
|
+
readonly lineHeight: 20;
|
|
74
|
+
};
|
|
75
|
+
readonly bodySmall: {
|
|
76
|
+
readonly fontFamily: "poppins.regular";
|
|
77
|
+
readonly fontSize: 12;
|
|
78
|
+
readonly fontWeight: "400";
|
|
79
|
+
readonly lineHeight: 16;
|
|
80
|
+
};
|
|
81
|
+
readonly text14Medium: {
|
|
82
|
+
readonly fontFamily: "poppins.medium";
|
|
83
|
+
readonly fontSize: 14;
|
|
84
|
+
readonly fontWeight: "600";
|
|
85
|
+
readonly lineHeight: 12;
|
|
86
|
+
};
|
|
87
|
+
readonly text12Regular: {
|
|
88
|
+
readonly fontFamily: "poppins.regular";
|
|
89
|
+
readonly fontSize: 12;
|
|
90
|
+
readonly fontWeight: "400";
|
|
91
|
+
readonly lineHeight: 16;
|
|
92
|
+
};
|
|
93
|
+
readonly text12Medium: {
|
|
94
|
+
readonly fontFamily: "poppins.medium";
|
|
95
|
+
readonly fontSize: 12;
|
|
96
|
+
readonly fontWeight: "500";
|
|
97
|
+
readonly lineHeight: 12;
|
|
98
|
+
};
|
|
99
|
+
readonly text11Regular: {
|
|
100
|
+
readonly fontFamily: "poppins.regular";
|
|
101
|
+
readonly fontSize: 11;
|
|
102
|
+
readonly fontWeight: "400";
|
|
103
|
+
readonly lineHeight: 11;
|
|
104
|
+
};
|
|
105
|
+
readonly text10Regular: {
|
|
106
|
+
readonly fontFamily: "poppins.regular";
|
|
107
|
+
readonly fontSize: 10;
|
|
108
|
+
readonly fontWeight: "400";
|
|
109
|
+
readonly lineHeight: 12;
|
|
110
|
+
};
|
|
111
|
+
readonly text10Medium: {
|
|
112
|
+
readonly fontFamily: "poppins.medium";
|
|
113
|
+
readonly fontSize: 10;
|
|
114
|
+
readonly fontWeight: "500";
|
|
115
|
+
readonly lineHeight: 14;
|
|
116
|
+
};
|
|
117
|
+
readonly text8Regular: {
|
|
118
|
+
readonly fontFamily: "poppins.regular";
|
|
119
|
+
readonly fontSize: 8;
|
|
120
|
+
readonly fontWeight: "400";
|
|
121
|
+
readonly lineHeight: 10;
|
|
122
|
+
};
|
|
123
|
+
readonly label: {
|
|
124
|
+
readonly fontFamily: "poppins.medium";
|
|
125
|
+
readonly fontSize: 12;
|
|
126
|
+
readonly fontWeight: "500";
|
|
127
|
+
readonly lineHeight: 16;
|
|
128
|
+
};
|
|
129
|
+
readonly caption: {
|
|
130
|
+
readonly fontFamily: "poppins.regular";
|
|
131
|
+
readonly fontSize: 10;
|
|
132
|
+
readonly fontWeight: "400";
|
|
133
|
+
readonly lineHeight: 14;
|
|
134
|
+
};
|
|
135
|
+
readonly button: {
|
|
136
|
+
readonly fontFamily: "poppins.medium";
|
|
137
|
+
readonly fontSize: 16;
|
|
138
|
+
readonly fontWeight: "500";
|
|
139
|
+
readonly lineHeight: 20;
|
|
140
|
+
};
|
|
141
|
+
readonly buttonSmall: {
|
|
142
|
+
readonly fontFamily: "poppins.medium";
|
|
143
|
+
readonly fontSize: 14;
|
|
144
|
+
readonly fontWeight: "500";
|
|
145
|
+
readonly lineHeight: 18;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export declare const useShadows: () => {
|
|
150
|
+
readonly default: {
|
|
151
|
+
readonly shadowColor: "#000000";
|
|
152
|
+
readonly shadowOffset: {
|
|
153
|
+
readonly width: 0;
|
|
154
|
+
readonly height: 2;
|
|
155
|
+
};
|
|
156
|
+
readonly shadowOpacity: 0.1;
|
|
157
|
+
readonly shadowRadius: 4;
|
|
158
|
+
readonly elevation: 3;
|
|
159
|
+
};
|
|
160
|
+
readonly light: {
|
|
161
|
+
readonly shadowColor: "#000000";
|
|
162
|
+
readonly shadowOffset: {
|
|
163
|
+
readonly width: 0;
|
|
164
|
+
readonly height: 1;
|
|
165
|
+
};
|
|
166
|
+
readonly shadowOpacity: 0.05;
|
|
167
|
+
readonly shadowRadius: 2;
|
|
168
|
+
readonly elevation: 1;
|
|
169
|
+
};
|
|
170
|
+
readonly medium: {
|
|
171
|
+
readonly shadowColor: "#000000";
|
|
172
|
+
readonly shadowOffset: {
|
|
173
|
+
readonly width: 0;
|
|
174
|
+
readonly height: 4;
|
|
175
|
+
};
|
|
176
|
+
readonly shadowOpacity: 0.15;
|
|
177
|
+
readonly shadowRadius: 6;
|
|
178
|
+
readonly elevation: 5;
|
|
179
|
+
};
|
|
180
|
+
readonly heavy: {
|
|
181
|
+
readonly shadowColor: "#000000";
|
|
182
|
+
readonly shadowOffset: {
|
|
183
|
+
readonly width: 0;
|
|
184
|
+
readonly height: 6;
|
|
185
|
+
};
|
|
186
|
+
readonly shadowOpacity: 0.2;
|
|
187
|
+
readonly shadowRadius: 8;
|
|
188
|
+
readonly elevation: 8;
|
|
189
|
+
};
|
|
190
|
+
readonly card: {
|
|
191
|
+
readonly shadowColor: "#000000";
|
|
192
|
+
readonly shadowOffset: {
|
|
193
|
+
readonly width: 0;
|
|
194
|
+
readonly height: 2;
|
|
195
|
+
};
|
|
196
|
+
readonly shadowOpacity: 0.1;
|
|
197
|
+
readonly shadowRadius: 4;
|
|
198
|
+
readonly elevation: 3;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
export declare const useSpacing: () => {
|
|
202
|
+
readonly xs: 4;
|
|
203
|
+
readonly sm: 8;
|
|
204
|
+
readonly md: 12;
|
|
205
|
+
readonly lg: 16;
|
|
206
|
+
readonly xl: 20;
|
|
207
|
+
readonly xxl: 24;
|
|
208
|
+
readonly xxxl: 32;
|
|
209
|
+
};
|
|
210
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.useSpacing = exports.useShadows = exports.useTypography = exports.useColors = exports.useTheme = exports.ThemeProvider = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const index_1 = require("./index");
|
|
39
|
+
const appDataConfig_1 = require("../config/appDataConfig");
|
|
40
|
+
const ThemeContext = (0, react_1.createContext)(undefined);
|
|
41
|
+
const ThemeProvider = ({ children, initialTheme = 'primary', theme: customTheme, }) => {
|
|
42
|
+
const [currentThemeName, setCurrentThemeName] = react_1.default.useState(initialTheme);
|
|
43
|
+
const colorOverrides = (0, appDataConfig_1.getSDKColors)();
|
|
44
|
+
const theme = customTheme || (0, index_1.createTheme)(currentThemeName, colorOverrides);
|
|
45
|
+
const setTheme = react_1.default.useCallback((themeName) => {
|
|
46
|
+
setCurrentThemeName(themeName);
|
|
47
|
+
}, []);
|
|
48
|
+
const value = react_1.default.useMemo(() => ({
|
|
49
|
+
theme,
|
|
50
|
+
themeName: currentThemeName,
|
|
51
|
+
setTheme,
|
|
52
|
+
}), [theme, currentThemeName, setTheme]);
|
|
53
|
+
return (react_1.default.createElement(ThemeContext.Provider, { value: value }, children));
|
|
54
|
+
};
|
|
55
|
+
exports.ThemeProvider = ThemeProvider;
|
|
56
|
+
const useTheme = () => {
|
|
57
|
+
const context = (0, react_1.useContext)(ThemeContext);
|
|
58
|
+
if (context === undefined) {
|
|
59
|
+
// Return default theme if no provider
|
|
60
|
+
return {
|
|
61
|
+
theme: index_1.defaultTheme,
|
|
62
|
+
themeName: 'primary',
|
|
63
|
+
setTheme: () => { },
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return context;
|
|
67
|
+
};
|
|
68
|
+
exports.useTheme = useTheme;
|
|
69
|
+
// Hook for just getting theme colors
|
|
70
|
+
const useColors = () => {
|
|
71
|
+
const { theme } = (0, exports.useTheme)();
|
|
72
|
+
return theme.colors;
|
|
73
|
+
};
|
|
74
|
+
exports.useColors = useColors;
|
|
75
|
+
// Hook for getting typography
|
|
76
|
+
const useTypography = () => {
|
|
77
|
+
const { theme } = (0, exports.useTheme)();
|
|
78
|
+
return theme.typography;
|
|
79
|
+
};
|
|
80
|
+
exports.useTypography = useTypography;
|
|
81
|
+
// Hook for getting shadows
|
|
82
|
+
const useShadows = () => {
|
|
83
|
+
const { theme } = (0, exports.useTheme)();
|
|
84
|
+
return theme.shadows;
|
|
85
|
+
};
|
|
86
|
+
exports.useShadows = useShadows;
|
|
87
|
+
// Hook for getting spacing
|
|
88
|
+
const useSpacing = () => {
|
|
89
|
+
const { theme } = (0, exports.useTheme)();
|
|
90
|
+
return theme.spacing;
|
|
91
|
+
};
|
|
92
|
+
exports.useSpacing = useSpacing;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
readonly primary: {
|
|
3
|
+
readonly primary: "#3073e0";
|
|
4
|
+
readonly tabSelected: "#3073e0";
|
|
5
|
+
readonly headerBg: "#415fe6";
|
|
6
|
+
readonly headerText: "#ffffff";
|
|
7
|
+
readonly success: "#32c997";
|
|
8
|
+
readonly textSecondary: "#8f8f8f";
|
|
9
|
+
readonly border: "#606677";
|
|
10
|
+
readonly shadow: "#000000";
|
|
11
|
+
readonly background: "#ffffff";
|
|
12
|
+
readonly surface: "#f8f9fa";
|
|
13
|
+
readonly text: "#1a1a1a";
|
|
14
|
+
readonly textLight: "#6c757d";
|
|
15
|
+
readonly error: "#dc3545";
|
|
16
|
+
readonly warning: "#ffc107";
|
|
17
|
+
readonly info: "#17a2b8";
|
|
18
|
+
readonly muted: "#f0f0f0";
|
|
19
|
+
readonly black: "#000000";
|
|
20
|
+
readonly inputBackground: "#ffffff";
|
|
21
|
+
readonly inputBorder: "#606677";
|
|
22
|
+
readonly placeholderColor: "rgba(0,0,0,0.2)";
|
|
23
|
+
readonly labelColor: "#1a1a1a";
|
|
24
|
+
readonly buttonBackground: "#415fe6";
|
|
25
|
+
readonly buttonTextColor: "#ffffff";
|
|
26
|
+
readonly cancelButtonBg: "#f8f9fa";
|
|
27
|
+
};
|
|
28
|
+
readonly dark: {
|
|
29
|
+
readonly primary: "#4285f4";
|
|
30
|
+
readonly tabSelected: "#ffc631";
|
|
31
|
+
readonly headerBg: "#051620";
|
|
32
|
+
readonly headerText: "#ffffff";
|
|
33
|
+
readonly success: "#48bb78";
|
|
34
|
+
readonly textSecondary: "#a0aec0";
|
|
35
|
+
readonly border: "#154c6e";
|
|
36
|
+
readonly shadow: "#154c6e";
|
|
37
|
+
readonly background: "#000000";
|
|
38
|
+
readonly surface: "#082739";
|
|
39
|
+
readonly text: "#ffffff";
|
|
40
|
+
readonly textLight: "#a0aec0";
|
|
41
|
+
readonly error: "#f56565";
|
|
42
|
+
readonly warning: "#ed8936";
|
|
43
|
+
readonly info: "#4299e1";
|
|
44
|
+
readonly muted: "#2a2a2a";
|
|
45
|
+
readonly inputBackground: "#082739";
|
|
46
|
+
readonly inputBorder: "#195C86";
|
|
47
|
+
readonly placeholderColor: "#a0aec0";
|
|
48
|
+
readonly labelColor: "#ffffff";
|
|
49
|
+
readonly buttonBackground: "#ffc631";
|
|
50
|
+
readonly buttonTextColor: "#000000";
|
|
51
|
+
readonly cancelButtonBg: "#0d3248";
|
|
52
|
+
};
|
|
53
|
+
readonly corporate: {
|
|
54
|
+
readonly primary: "#1e40af";
|
|
55
|
+
readonly tabSelected: "#1e40af";
|
|
56
|
+
readonly headerBg: "#3730a3";
|
|
57
|
+
readonly headerText: "#ffffff";
|
|
58
|
+
readonly success: "#059669";
|
|
59
|
+
readonly textSecondary: "#6b7280";
|
|
60
|
+
readonly border: "#9ca3af";
|
|
61
|
+
readonly shadow: "#000000";
|
|
62
|
+
readonly background: "#f9fafb";
|
|
63
|
+
readonly surface: "#ffffff";
|
|
64
|
+
readonly text: "#111827";
|
|
65
|
+
readonly textLight: "#6b7280";
|
|
66
|
+
readonly error: "#dc2626";
|
|
67
|
+
readonly warning: "#d97706";
|
|
68
|
+
readonly info: "#2563eb";
|
|
69
|
+
readonly muted: "#e5e7eb";
|
|
70
|
+
readonly inputBackground: "#ffffff";
|
|
71
|
+
readonly inputBorder: "#9ca3af";
|
|
72
|
+
readonly placeholderColor: "rgba(0,0,0,0.2)";
|
|
73
|
+
readonly labelColor: "#111827";
|
|
74
|
+
readonly buttonBackground: "#3730a3";
|
|
75
|
+
readonly buttonTextColor: "#ffffff";
|
|
76
|
+
readonly cancelButtonBg: "#ffffff";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type ThemeName = keyof typeof colors;
|
|
80
|
+
export type ColorScheme = typeof colors[ThemeName];
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.colors = void 0;
|
|
4
|
+
// Color palette for the SDK
|
|
5
|
+
exports.colors = {
|
|
6
|
+
// Primary Theme (Default)
|
|
7
|
+
primary: {
|
|
8
|
+
primary: '#3073e0', // Main primary color
|
|
9
|
+
tabSelected: '#3073e0',
|
|
10
|
+
headerBg: '#415fe6',
|
|
11
|
+
headerText: '#ffffff', // White header text
|
|
12
|
+
success: '#32c997', // 7.5% ap
|
|
13
|
+
textSecondary: '#8f8f8f', // ROI text
|
|
14
|
+
border: '#606677', // with 36% opacity
|
|
15
|
+
shadow: '#000000', // with 10% opacity
|
|
16
|
+
// Additional colors for complete theme
|
|
17
|
+
background: '#ffffff',
|
|
18
|
+
surface: '#f8f9fa',
|
|
19
|
+
text: '#1a1a1a',
|
|
20
|
+
textLight: '#6c757d',
|
|
21
|
+
error: '#dc3545',
|
|
22
|
+
warning: '#ffc107',
|
|
23
|
+
info: '#17a2b8',
|
|
24
|
+
muted: '#f0f0f0',
|
|
25
|
+
black: '#000000',
|
|
26
|
+
inputBackground: '#ffffff', // Input and box background color for primary theme
|
|
27
|
+
inputBorder: '#606677', // Input border color for primary theme
|
|
28
|
+
placeholderColor: 'rgba(0,0,0,0.2)', // Placeholder color for primary theme
|
|
29
|
+
labelColor: '#1a1a1a', // Label text color for primary theme
|
|
30
|
+
buttonBackground: '#415fe6', // Button background color for primary theme
|
|
31
|
+
buttonTextColor: '#ffffff', // Button text color for primary theme
|
|
32
|
+
cancelButtonBg: '#f8f9fa', // Cancel button background for primary theme
|
|
33
|
+
},
|
|
34
|
+
// Alternative themes can be added here
|
|
35
|
+
dark: {
|
|
36
|
+
primary: '#4285f4', // Main primary color
|
|
37
|
+
tabSelected: '#ffc631',
|
|
38
|
+
headerBg: '#051620',
|
|
39
|
+
headerText: '#ffffff', // White header text for dark theme
|
|
40
|
+
success: '#48bb78',
|
|
41
|
+
textSecondary: '#a0aec0',
|
|
42
|
+
border: '#154c6e',
|
|
43
|
+
shadow: '#154c6e',
|
|
44
|
+
background: '#000000', // Pure black background
|
|
45
|
+
surface: '#082739',
|
|
46
|
+
text: '#ffffff',
|
|
47
|
+
textLight: '#a0aec0',
|
|
48
|
+
error: '#f56565',
|
|
49
|
+
warning: '#ed8936',
|
|
50
|
+
info: '#4299e1',
|
|
51
|
+
muted: '#2a2a2a',
|
|
52
|
+
inputBackground: '#082739', // Input and box background color for dark theme
|
|
53
|
+
inputBorder: '#195C86', // Input border color for dark theme
|
|
54
|
+
placeholderColor: '#a0aec0', // Placeholder color for dark theme (light gray)
|
|
55
|
+
labelColor: '#ffffff', // Label text color for dark theme (white)
|
|
56
|
+
buttonBackground: '#ffc631', // Button background color for dark theme
|
|
57
|
+
buttonTextColor: '#000000', // Button text color for dark theme (black)
|
|
58
|
+
cancelButtonBg: '#0d3248', // Cancel button background for dark theme
|
|
59
|
+
},
|
|
60
|
+
corporate: {
|
|
61
|
+
primary: '#1e40af', // Main primary color
|
|
62
|
+
tabSelected: '#1e40af',
|
|
63
|
+
headerBg: '#3730a3',
|
|
64
|
+
headerText: '#ffffff', // White header text
|
|
65
|
+
success: '#059669',
|
|
66
|
+
textSecondary: '#6b7280',
|
|
67
|
+
border: '#9ca3af',
|
|
68
|
+
shadow: '#000000',
|
|
69
|
+
background: '#f9fafb',
|
|
70
|
+
surface: '#ffffff',
|
|
71
|
+
text: '#111827',
|
|
72
|
+
textLight: '#6b7280',
|
|
73
|
+
error: '#dc2626',
|
|
74
|
+
warning: '#d97706',
|
|
75
|
+
info: '#2563eb',
|
|
76
|
+
muted: '#e5e7eb',
|
|
77
|
+
inputBackground: '#ffffff', // Input and box background color for corporate theme
|
|
78
|
+
inputBorder: '#9ca3af', // Input border color for corporate theme
|
|
79
|
+
placeholderColor: 'rgba(0,0,0,0.2)', // Placeholder color for corporate theme
|
|
80
|
+
labelColor: '#111827', // Label text color for corporate theme
|
|
81
|
+
buttonBackground: '#3730a3', // Button background color for corporate theme
|
|
82
|
+
buttonTextColor: '#ffffff', // Button text color for corporate theme
|
|
83
|
+
cancelButtonBg: '#ffffff', // Cancel button background for corporate theme
|
|
84
|
+
},
|
|
85
|
+
};
|