@stokr/components-library 2.3.65-beta.1 → 2.3.65-beta.11
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/dist/components/2FA/main-flow.js +28 -7
- package/dist/components/AdminDashboard/Table/ReactTable.js +123 -7
- package/dist/components/Chips/Chip.js +1 -2
- package/dist/components/Chips/Chip.styles.js +3 -2
- package/dist/components/Input/Input.js +33 -33
- package/dist/components/Input/MultiSelect.js +319 -0
- package/dist/components/Input/SearchInput.js +78 -0
- package/dist/components/Input/SearchInput.styles.js +25 -0
- package/dist/components/Input/Select.js +51 -28
- package/dist/components/Modal/SideModal.js +82 -0
- package/dist/components/Modal/SideModal.styles.js +21 -0
- package/dist/components/Payment/PaymentDetailsCard.js +189 -0
- package/dist/components/Payment/PaymentDisplay.js +2 -12
- package/dist/components/ProfileBox/ProfileBox.js +2 -1
- package/dist/components/Snackbar/Snackbar.js +193 -0
- package/dist/components/Snackbar/Snackbar.styles.js +97 -0
- package/dist/components/Snackbar/SnackbarProvider.js +81 -0
- package/dist/components/Snackbar/index.js +32 -0
- package/dist/components/Snackbar/useSnackbar.js +43 -0
- package/dist/components/StatusTag/StatusTag.js +175 -0
- package/dist/components/StatusTag/StatusTag.styles.js +37 -0
- package/dist/components/StepsProgress/StepIndicator.js +59 -0
- package/dist/components/StepsProgress/StepIndicator.styles.js +30 -0
- package/dist/components/TextLink/TextLink.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/constants/globalVariables.js +41 -2
- package/dist/context/Checkbox/CheckboxContext.js +0 -1
- package/dist/index.js +66 -0
- package/dist/static/images/bmn2-logo.svg +9 -0
- package/dist/static/images/document-icon.svg +3 -0
- package/dist/static/images/plus-icon.svg +4 -0
- package/dist/static/images/search-icon.svg +3 -0
- package/dist/static/images/sent-icon.svg +10 -0
- package/dist/static/images/transfer-icon.svg +10 -0
- package/dist/utils/formatCurrencyValue.js +43 -3
- package/package.json +3 -2
- package/dist/components/2FA/EnterCode.stories.js +0 -35
- package/dist/components/2FA/disable-2fa-flow.stories.js +0 -31
- package/dist/components/2FA/enable-2fa-flow.stories.js +0 -31
- package/dist/components/2FA/login-with-otp-flow.stories.js +0 -31
- package/dist/components/2FA/main-flow.stories.js +0 -33
- package/dist/components/AccountBalance/AccountBalance.stories.js +0 -83
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +0 -406
- package/dist/components/AgreementItem/AgreementItem.stories.js +0 -105
- package/dist/components/AnalyticGraphs/Analytic.js +0 -541
- package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -25
- package/dist/components/BackButton/BackButton.stories.js +0 -32
- package/dist/components/Background/Background.stories.js +0 -75
- package/dist/components/BarChart/BarChart.js +0 -263
- package/dist/components/BarChart/BarChart.stories.js +0 -66
- package/dist/components/BarChart/BarChart.styles.js +0 -26
- package/dist/components/BarChartLegend/BarChartLegend.js +0 -79
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -21
- package/dist/components/BasicTable/BasicTable.stories.js +0 -59
- package/dist/components/BlogPost/BlogPost.stories.js +0 -160
- package/dist/components/Button/Button.stories.js +0 -146
- package/dist/components/Button/GlareButton.stories.js +0 -132
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -42
- package/dist/components/ChartBox/ChartBox.js +0 -41
- package/dist/components/ChartBox/ChartBox.stories.js +0 -17
- package/dist/components/ChartBox/ChartBox.styles.js +0 -27
- package/dist/components/ChartBox/ChartBoxDistribution.js +0 -27
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -18
- package/dist/components/ChartLegend/ChartLegend.stories.js +0 -90
- package/dist/components/Checkbox/Checkbox.stories.js +0 -88
- package/dist/components/Checklist/ChecklistCard.stories.js +0 -102
- package/dist/components/Checklist/UserChecklist.js +0 -184
- package/dist/components/Checklist/UserChecklist.stories.js +0 -317
- package/dist/components/Chips/Chip.stories.js +0 -36
- package/dist/components/Chips/ChipsWrapper.stories.js +0 -47
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -111
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -205
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -70
- package/dist/components/DonutChart/DonutChart.stories.js +0 -54
- package/dist/components/FAQ/FAQ.stories.js +0 -76
- package/dist/components/Footer/Footer.stories.js +0 -49
- package/dist/components/Footer/FooterLayout.stories.js +0 -26
- package/dist/components/Footer/FooterMenu.stories.js +0 -113
- package/dist/components/Footer/mangopay.png +0 -0
- package/dist/components/Footer/mangopay.svg +0 -20
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -69
- package/dist/components/Form/Form.stories.js +0 -32
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -27
- package/dist/components/Header/Header.stories.js +0 -192
- package/dist/components/InfoIcon/InfoIcon.stories.js +0 -299
- package/dist/components/InfoPanel/InfoPanel.js +0 -124
- package/dist/components/Input/DatePickerInput.stories.js +0 -87
- package/dist/components/Input/Input.stories.js +0 -142
- package/dist/components/Input/InputPassword.stories.js +0 -80
- package/dist/components/Input/InputWithButton.stories.js +0 -75
- package/dist/components/Input/OtpInput.stories.js +0 -57
- package/dist/components/Input/RangeInput.stories.js +0 -58
- package/dist/components/Input/Select.stories.js +0 -139
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -135
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -52
- package/dist/components/KYCFlow/BasicInfo.js +0 -448
- package/dist/components/KYCFlow/Confirmation.js +0 -46
- package/dist/components/KYCFlow/DocumentFileUpload.js +0 -263
- package/dist/components/KYCFlow/DocumentScan.js +0 -75
- package/dist/components/KYCFlow/DocumentScanUpload.js +0 -251
- package/dist/components/KYCFlow/DocumentSelect.js +0 -118
- package/dist/components/KYCFlow/DocumentSuccess.js +0 -63
- package/dist/components/KYCFlow/DocumentUpload.js +0 -53
- package/dist/components/KYCFlow/DocumentVerificationType.js +0 -131
- package/dist/components/KYCFlow/FaceScan.js +0 -54
- package/dist/components/KYCFlow/FaceScanRecognition.js +0 -61
- package/dist/components/KYCFlow/FaceScanSuccess.js +0 -56
- package/dist/components/KYCFlow/Terms.js +0 -119
- package/dist/components/KYCFlow/_styles.js +0 -111
- package/dist/components/KYCFlow/index.js +0 -97
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -29
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -58
- package/dist/components/Layout/Layout.stories.js +0 -60
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -66
- package/dist/components/LearnMorePage/LearnMore.stories.js +0 -48
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -62
- package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -30
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -59
- package/dist/components/LoginModal/LoginModal.stories.js +0 -74
- package/dist/components/MatomoConnect/Matomo.js +0 -228
- package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -387
- package/dist/components/Modal/Modal.stories.js +0 -75
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +0 -150
- package/dist/components/Modal/PaymentModal.stories.js +0 -57
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -67
- package/dist/components/Newsletter/Newsletter.stories.js +0 -16
- package/dist/components/NotificationContext/NotificationContext.js +0 -141
- package/dist/components/Number/Number.stories.js +0 -92
- package/dist/components/Pagination/Pagination.stories.js +0 -83
- package/dist/components/Pagination/PaginationControls.stories.js +0 -112
- package/dist/components/Payment/PaymentDisplay.stories.js +0 -302
- package/dist/components/Payment/TimerComponent.stories.js +0 -236
- package/dist/components/Process/Process.stories.js +0 -42
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -45
- package/dist/components/ProfileBox/ProfileBox.stories.js +0 -35
- package/dist/components/ProfileHeader/ProfileHeader.js +0 -252
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -65
- package/dist/components/ProfileStat/ProfileStat.stories.js +0 -66
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -53
- package/dist/components/QRCode/QRCode.stories.js +0 -104
- package/dist/components/Radio/Radio.stories.js +0 -73
- package/dist/components/RefreshButton/RefreshButton.stories.js +0 -38
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -443
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
- package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -80
- package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
- package/dist/components/RegisterAlgorand/SelectProject.js +0 -89
- package/dist/components/RegisterAlgorand/_styles.js +0 -28
- package/dist/components/RegisterAlgorand/flow.js +0 -409
- package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
- package/dist/components/RegisterAlgorand/index.js +0 -48
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -41
- package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -226
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -204
- package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
- package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
- package/dist/components/RegisterEthereum/EthFinish.js +0 -41
- package/dist/components/RegisterEthereum/EthIntro.js +0 -95
- package/dist/components/RegisterEthereum/_styles.js +0 -28
- package/dist/components/RegisterEthereum/index.js +0 -68
- package/dist/components/RegisterModal/RegisterModal.stories.js +0 -49
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -37
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
- package/dist/components/RiskQuestionnaire/_styles.js +0 -15
- package/dist/components/SEO/SEO.stories.js +0 -60
- package/dist/components/SideLine/SideLine.stories.js +0 -28
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubIntro.js +0 -55
- package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
- package/dist/components/SigningSubflow/_styles.js +0 -34
- package/dist/components/SigningSubflow/index.js +0 -32
- package/dist/components/Slider/Slider.stories.js +0 -68
- package/dist/components/StepController/StepController.stories.js +0 -60
- package/dist/components/StepController/StepControllerProgress.stories.js +0 -49
- package/dist/components/StepsProgress/StepsProgress.stories.js +0 -49
- package/dist/components/Switch/Switch.stories.js +0 -81
- package/dist/components/Tabs/Tabs.stories.js +0 -36
- package/dist/components/TabsNav/TabNav.stories.js +0 -40
- package/dist/components/TabsNav/TabsNav.stories.js +0 -37
- package/dist/components/TeamOverview/TeamOverview.stories.js +0 -76
- package/dist/components/TermsModal/TermsModal.stories.js +0 -31
- package/dist/components/Text/Headline.stories.js +0 -48
- package/dist/components/Text/Text.stories.js +0 -70
- package/dist/components/Timeline/Timeline.stories.js +0 -393
- package/dist/components/ToDoList/ToDoList.stories.js +0 -133
- package/dist/components/ToDoList/ToDoListTask.stories.js +0 -70
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -55
- package/dist/components/TransactionDetails/TransactionDetailsTable.stories.js +0 -305
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -61
- package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -100
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +0 -59
- package/dist/components/headerHo/HeaderHo.stories.js +0 -35
- package/dist/components/icons/Arrow.stories.js +0 -42
- package/dist/components/icons/ArrowSimple.stories.js +0 -48
- package/dist/components/icons/Check.stories.js +0 -22
- package/dist/components/icons/Facebook.stories.js +0 -21
- package/dist/components/icons/Facebook_Logo.png +0 -0
- package/dist/components/icons/Info.stories.js +0 -16
- package/dist/components/icons/Instagram.stories.js +0 -21
- package/dist/components/icons/LI-In-Bug.png +0 -0
- package/dist/components/icons/LinkIcon.stories.js +0 -21
- package/dist/components/icons/LinkedIn.stories.js +0 -16
- package/dist/components/icons/Medium.stories.js +0 -16
- package/dist/components/icons/Reddit.stories.js +0 -21
- package/dist/components/icons/Share.stories.js +0 -16
- package/dist/components/icons/Telegram-Logo.png +0 -0
- package/dist/components/icons/Telegram.stories.js +0 -16
- package/dist/components/icons/Twitter.stories.js +0 -21
- package/dist/components/icons/X-logo-black.png +0 -0
- package/dist/components/icons/X.stories.js +0 -16
- package/dist/components/icons/Youtube.stories.js +0 -21
- package/dist/components/icons/youtube_social_circle_red.png +0 -0
- package/dist/components/taxId/TaxId.stories.js +0 -50
- package/dist/components/video/Video.stories.js +0 -52
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useSnackbar = exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _SnackbarProvider = require("./SnackbarProvider");
|
|
9
|
+
/**
|
|
10
|
+
* useSnackbar hook - Use this to show snackbars from any component
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const { showSnackbar, closeSnackbar, clearAll } = useSnackbar()
|
|
14
|
+
*
|
|
15
|
+
* // Show a success snackbar
|
|
16
|
+
* showSnackbar({
|
|
17
|
+
* message: 'Operation completed!',
|
|
18
|
+
* variant: 'success',
|
|
19
|
+
* duration: 3000
|
|
20
|
+
* })
|
|
21
|
+
*
|
|
22
|
+
* // Show an error snackbar that stays until dismissed
|
|
23
|
+
* showSnackbar({
|
|
24
|
+
* message: 'Something went wrong',
|
|
25
|
+
* variant: 'error',
|
|
26
|
+
* duration: 'permanent'
|
|
27
|
+
* })
|
|
28
|
+
*
|
|
29
|
+
* // Show with custom content
|
|
30
|
+
* showSnackbar({
|
|
31
|
+
* message: <span>Custom <strong>content</strong></span>,
|
|
32
|
+
* variant: 'info'
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
const useSnackbar = () => {
|
|
36
|
+
const context = (0, _react.useContext)(_SnackbarProvider.SnackbarContext);
|
|
37
|
+
if (!context) {
|
|
38
|
+
throw new Error('useSnackbar must be used within a SnackbarProvider');
|
|
39
|
+
}
|
|
40
|
+
return context;
|
|
41
|
+
};
|
|
42
|
+
exports.useSnackbar = useSnackbar;
|
|
43
|
+
var _default = exports.default = useSnackbar;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.StatusTag = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _InfoIcon = _interopRequireDefault(require("../InfoIcon/InfoIcon"));
|
|
9
|
+
var _Icon = require("../Icon/Icon.style");
|
|
10
|
+
var _checkIcon = require("../../static/images/check-icon.svg");
|
|
11
|
+
var _crossIcon = require("../../static/images/cross-icon.svg");
|
|
12
|
+
var _sentIcon = require("../../static/images/sent-icon.svg");
|
|
13
|
+
var _documentIcon = require("../../static/images/document-icon.svg");
|
|
14
|
+
var _transferIcon = require("../../static/images/transfer-icon.svg");
|
|
15
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
16
|
+
var _StatusTag = require("./StatusTag.styles");
|
|
17
|
+
const _excluded = ["variant", "icon", "text", "tooltip", "tooltipProps", "iconColor", "hoverColor", "disableHoverColor", "minWidth", "className", "containerStyle", "iconStyle", "textStyle", "onClick", "center"];
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
+
const PaidIcon = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
iconColor,
|
|
25
|
+
hoverColor,
|
|
26
|
+
disableHoverColor
|
|
27
|
+
} = _ref;
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_StatusTag.PaidIconWrapper, {
|
|
29
|
+
iconColor: iconColor,
|
|
30
|
+
hoverColor: hoverColor,
|
|
31
|
+
disableHoverColor: disableHoverColor
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_checkIcon.ReactComponent, null));
|
|
33
|
+
};
|
|
34
|
+
const DeclinedIcon = _ref2 => {
|
|
35
|
+
let {
|
|
36
|
+
iconColor,
|
|
37
|
+
hoverColor,
|
|
38
|
+
disableHoverColor
|
|
39
|
+
} = _ref2;
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_StatusTag.DeclinedIconWrapper, {
|
|
41
|
+
iconColor: iconColor,
|
|
42
|
+
hoverColor: hoverColor,
|
|
43
|
+
disableHoverColor: disableHoverColor
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_crossIcon.ReactComponent, null));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// Variant configuration - maps variant to icon and colors only
|
|
48
|
+
const variantConfig = {
|
|
49
|
+
pending: {
|
|
50
|
+
icon: /*#__PURE__*/_react.default.createElement(_Icon.Icon, {
|
|
51
|
+
icon: _Icon.iconsMap.inProgress,
|
|
52
|
+
size: 12
|
|
53
|
+
}),
|
|
54
|
+
iconColor: _colors.default.grey2,
|
|
55
|
+
hoverColor: _colors.default.warningOrange,
|
|
56
|
+
disableHoverColor: false
|
|
57
|
+
},
|
|
58
|
+
initiated: {
|
|
59
|
+
icon: /*#__PURE__*/_react.default.createElement(_sentIcon.ReactComponent, {
|
|
60
|
+
width: 12,
|
|
61
|
+
height: 12
|
|
62
|
+
}),
|
|
63
|
+
iconColor: _colors.default.grey2,
|
|
64
|
+
hoverColor: _colors.default.blue,
|
|
65
|
+
disableHoverColor: false
|
|
66
|
+
},
|
|
67
|
+
confirmed: {
|
|
68
|
+
icon: /*#__PURE__*/_react.default.createElement(_documentIcon.ReactComponent, {
|
|
69
|
+
width: 12,
|
|
70
|
+
height: 12
|
|
71
|
+
}),
|
|
72
|
+
iconColor: _colors.default.grey2,
|
|
73
|
+
hoverColor: _colors.default.blue,
|
|
74
|
+
disableHoverColor: false
|
|
75
|
+
},
|
|
76
|
+
declined: {
|
|
77
|
+
icon: (iconColor, hoverColor, disableHoverColor) => /*#__PURE__*/_react.default.createElement(DeclinedIcon, {
|
|
78
|
+
iconColor: iconColor,
|
|
79
|
+
hoverColor: hoverColor,
|
|
80
|
+
disableHoverColor: disableHoverColor
|
|
81
|
+
}),
|
|
82
|
+
iconColor: _colors.default.grey2,
|
|
83
|
+
hoverColor: _colors.default.darkRed,
|
|
84
|
+
disableHoverColor: false
|
|
85
|
+
},
|
|
86
|
+
paid: {
|
|
87
|
+
// icon: (iconColor, hoverColor, disableHoverColor) => (
|
|
88
|
+
// <PaidIcon
|
|
89
|
+
// iconColor={iconColor}
|
|
90
|
+
// hoverColor={hoverColor}
|
|
91
|
+
// disableHoverColor={disableHoverColor}
|
|
92
|
+
// />
|
|
93
|
+
// ),
|
|
94
|
+
icon: /*#__PURE__*/_react.default.createElement(_transferIcon.ReactComponent, {
|
|
95
|
+
width: 14,
|
|
96
|
+
height: 14
|
|
97
|
+
}),
|
|
98
|
+
iconColor: _colors.default.grey2,
|
|
99
|
+
hoverColor: _colors.default.freshGreen,
|
|
100
|
+
disableHoverColor: false
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const StatusTag = _ref3 => {
|
|
104
|
+
var _variantData$disableH;
|
|
105
|
+
let {
|
|
106
|
+
variant,
|
|
107
|
+
icon,
|
|
108
|
+
text,
|
|
109
|
+
tooltip,
|
|
110
|
+
tooltipProps,
|
|
111
|
+
iconColor,
|
|
112
|
+
hoverColor,
|
|
113
|
+
disableHoverColor,
|
|
114
|
+
minWidth,
|
|
115
|
+
className,
|
|
116
|
+
containerStyle,
|
|
117
|
+
iconStyle,
|
|
118
|
+
textStyle,
|
|
119
|
+
onClick,
|
|
120
|
+
center
|
|
121
|
+
} = _ref3,
|
|
122
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
123
|
+
// If variant is provided, use its configuration (but allow overrides)
|
|
124
|
+
const variantData = variant ? variantConfig[variant] : null;
|
|
125
|
+
|
|
126
|
+
// Determine colors - variant config can be overridden by props
|
|
127
|
+
const finalIconColor = iconColor !== undefined ? iconColor : (variantData === null || variantData === void 0 ? void 0 : variantData.iconColor) || _colors.default.grey2;
|
|
128
|
+
const finalHoverColor = hoverColor !== undefined ? hoverColor : variantData === null || variantData === void 0 ? void 0 : variantData.hoverColor;
|
|
129
|
+
const finalDisableHoverColor = disableHoverColor !== undefined ? disableHoverColor : (_variantData$disableH = variantData === null || variantData === void 0 ? void 0 : variantData.disableHoverColor) !== null && _variantData$disableH !== void 0 ? _variantData$disableH : false;
|
|
130
|
+
|
|
131
|
+
// Determine which icon to use - handle function icons (for paid/declined)
|
|
132
|
+
let finalIcon = null;
|
|
133
|
+
if (icon) {
|
|
134
|
+
finalIcon = icon;
|
|
135
|
+
} else if (variantData !== null && variantData !== void 0 && variantData.icon) {
|
|
136
|
+
if (typeof variantData.icon === 'function') {
|
|
137
|
+
// Icon is a function (paid/declined) - pass color props
|
|
138
|
+
finalIcon = variantData.icon(finalIconColor, finalHoverColor, finalDisableHoverColor);
|
|
139
|
+
} else {
|
|
140
|
+
// Icon is a React element (pending/initiated/confirmed)
|
|
141
|
+
finalIcon = variantData.icon;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const content = /*#__PURE__*/_react.default.createElement(_StatusTag.StatusTagContainer, _extends({
|
|
145
|
+
className: className,
|
|
146
|
+
style: containerStyle,
|
|
147
|
+
onClick: onClick,
|
|
148
|
+
hasClick: !!onClick
|
|
149
|
+
}, props), /*#__PURE__*/_react.default.createElement(_StatusTag.StatusTagWrapper, {
|
|
150
|
+
minWidth: minWidth,
|
|
151
|
+
center: center
|
|
152
|
+
}, finalIcon && /*#__PURE__*/_react.default.createElement(_StatusTag.IconWrapper, {
|
|
153
|
+
iconColor: finalIconColor,
|
|
154
|
+
hoverColor: finalHoverColor,
|
|
155
|
+
disableHoverColor: finalDisableHoverColor,
|
|
156
|
+
style: iconStyle,
|
|
157
|
+
isCustomIcon: typeof (variantData === null || variantData === void 0 ? void 0 : variantData.icon) === 'function'
|
|
158
|
+
}, finalIcon), text && /*#__PURE__*/_react.default.createElement(_StatusTag.StatusText, {
|
|
159
|
+
style: textStyle
|
|
160
|
+
}, text)));
|
|
161
|
+
|
|
162
|
+
// Wrap with InfoIcon tooltip if tooltip is provided
|
|
163
|
+
if (tooltip) {
|
|
164
|
+
return /*#__PURE__*/_react.default.createElement(_InfoIcon.default, _extends({
|
|
165
|
+
title: tooltip,
|
|
166
|
+
position: "top",
|
|
167
|
+
noIcon: true,
|
|
168
|
+
noMarginLeft: true,
|
|
169
|
+
noMarginRight: true
|
|
170
|
+
}, tooltipProps), content);
|
|
171
|
+
}
|
|
172
|
+
return content;
|
|
173
|
+
};
|
|
174
|
+
exports.StatusTag = StatusTag;
|
|
175
|
+
var _default = exports.default = StatusTag;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StatusText = exports.StatusTagWrapper = exports.StatusTagContainer = exports.PaidIconWrapper = exports.IconWrapper = exports.DeclinedIconWrapper = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const StatusTagContainer = exports.StatusTagContainer = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "StatusTagstyles__StatusTagContainer",
|
|
12
|
+
componentId: "sc-24azs1-0"
|
|
13
|
+
})(["display:inline-flex;cursor:", ";transition:opacity 0.2s ease;&:hover{opacity:", ";}"], props => props.hasClick ? 'pointer' : 'default', props => props.hasClick ? 0.8 : 1);
|
|
14
|
+
const StatusTagWrapper = exports.StatusTagWrapper = _styledComponents.default.div.withConfig({
|
|
15
|
+
displayName: "StatusTagstyles__StatusTagWrapper",
|
|
16
|
+
componentId: "sc-24azs1-1"
|
|
17
|
+
})(["display:flex;align-items:center;gap:6px;padding:6px 10px;background-color:transparent;border:1px solid ", ";border-radius:4px;white-space:nowrap;min-width:", ";justify-content:", ";"], _colors.default.lightGrey, props => props.minWidth || 'auto', props => props.center ? 'center' : 'flex-start');
|
|
18
|
+
const IconWrapper = exports.IconWrapper = _styledComponents.default.div.withConfig({
|
|
19
|
+
displayName: "StatusTagstyles__IconWrapper",
|
|
20
|
+
componentId: "sc-24azs1-2"
|
|
21
|
+
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:12px;height:12px;color:", ";transition:color 0.2s ease;svg{width:100%;height:100%;display:block;}", " ", ""], props => props.iconColor || _colors.default.grey2, props => !props.isCustomIcon && "\n svg path,\n svg circle,\n svg rect,\n svg line {\n ".concat(!props.disableHoverColor ? "fill: currentColor;" : '', "\n }\n "), props => !props.disableHoverColor && props.hoverColor && "\n ".concat(StatusTagContainer, ":hover & {\n color: ").concat(props.hoverColor, ";\n }\n "));
|
|
22
|
+
const StatusText = exports.StatusText = _styledComponents.default.span.withConfig({
|
|
23
|
+
displayName: "StatusTagstyles__StatusText",
|
|
24
|
+
componentId: "sc-24azs1-3"
|
|
25
|
+
})(["font-size:12px;font-weight:600;line-height:18px;color:", ";letter-spacing:0.6px;"], _colors.default.black);
|
|
26
|
+
|
|
27
|
+
// Paid icon wrapper (check + green circle)
|
|
28
|
+
const PaidIconWrapper = exports.PaidIconWrapper = _styledComponents.default.div.withConfig({
|
|
29
|
+
displayName: "StatusTagstyles__PaidIconWrapper",
|
|
30
|
+
componentId: "sc-24azs1-4"
|
|
31
|
+
})(["width:12px;height:12px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background-color 0.2s ease;svg{width:8px;height:8px;}svg path{stroke:", ";}", ""], props => props.iconColor || _colors.default.grey2, _colors.default.white, props => !props.disableHoverColor && props.hoverColor && "\n ".concat(StatusTagContainer, ":hover & {\n background-color: ").concat(props.hoverColor, ";\n }\n "));
|
|
32
|
+
|
|
33
|
+
// Declined icon wrapper (cross + red circle)
|
|
34
|
+
const DeclinedIconWrapper = exports.DeclinedIconWrapper = _styledComponents.default.div.withConfig({
|
|
35
|
+
displayName: "StatusTagstyles__DeclinedIconWrapper",
|
|
36
|
+
componentId: "sc-24azs1-5"
|
|
37
|
+
})(["width:12px;height:12px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background-color 0.2s ease;svg{width:6px;height:6px;}svg path{stroke:", ";}", ""], props => props.iconColor || _colors.default.grey2, _colors.default.white, props => !props.disableHoverColor && props.hoverColor && "\n ".concat(StatusTagContainer, ":hover & {\n background-color: ").concat(props.hoverColor, ";\n }\n "));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.StepIndicator = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _StepIndicator = require("./StepIndicator.styles");
|
|
10
|
+
var _checkIcon = require("../../static/images/check-icon.svg");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const StepIndicator = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
steps,
|
|
15
|
+
currentStep,
|
|
16
|
+
onStepClick,
|
|
17
|
+
showLabels = true,
|
|
18
|
+
marginBottom
|
|
19
|
+
} = _ref;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_StepIndicator.StepIndicatorContainer, {
|
|
21
|
+
marginBottom: marginBottom
|
|
22
|
+
}, steps.map((step, index) => {
|
|
23
|
+
const isCompleted = index < currentStep;
|
|
24
|
+
const isActive = index === currentStep;
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
26
|
+
key: step.id
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_StepIndicator.StepItem, {
|
|
28
|
+
onClick: () => onStepClick && onStepClick(index),
|
|
29
|
+
style: {
|
|
30
|
+
cursor: onStepClick ? 'pointer' : 'default'
|
|
31
|
+
}
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_StepIndicator.StepCircle, {
|
|
33
|
+
isCompleted: isCompleted,
|
|
34
|
+
isActive: isActive
|
|
35
|
+
}, isCompleted ? /*#__PURE__*/_react.default.createElement(_checkIcon.ReactComponent, {
|
|
36
|
+
width: 14,
|
|
37
|
+
height: 11
|
|
38
|
+
}) : index + 1), showLabels && /*#__PURE__*/_react.default.createElement(_StepIndicator.StepLabel, null, step.label)), index < steps.length - 1 && /*#__PURE__*/_react.default.createElement(_StepIndicator.StepConnector, {
|
|
39
|
+
isCompleted: isCompleted
|
|
40
|
+
}));
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
exports.StepIndicator = StepIndicator;
|
|
44
|
+
StepIndicator.propTypes = {
|
|
45
|
+
steps: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
46
|
+
id: _propTypes.default.string.isRequired,
|
|
47
|
+
label: _propTypes.default.string.isRequired
|
|
48
|
+
})).isRequired,
|
|
49
|
+
currentStep: _propTypes.default.number.isRequired,
|
|
50
|
+
onStepClick: _propTypes.default.func,
|
|
51
|
+
showLabels: _propTypes.default.bool,
|
|
52
|
+
marginBottom: _propTypes.default.string
|
|
53
|
+
};
|
|
54
|
+
StepIndicator.defaultProps = {
|
|
55
|
+
onStepClick: null,
|
|
56
|
+
showLabels: true,
|
|
57
|
+
marginBottom: '32px'
|
|
58
|
+
};
|
|
59
|
+
var _default = exports.default = StepIndicator;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StepLabel = exports.StepItem = exports.StepIndicatorContainer = exports.StepConnector = exports.StepCircle = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
const StepIndicatorContainer = exports.StepIndicatorContainer = _styledComponents.default.div.withConfig({
|
|
12
|
+
displayName: "StepIndicatorstyles__StepIndicatorContainer",
|
|
13
|
+
componentId: "sc-ywoddn-0"
|
|
14
|
+
})(["display:flex;align-items:center;gap:16px;margin-bottom:", ";"], props => props.marginBottom || '32px');
|
|
15
|
+
const StepItem = exports.StepItem = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "StepIndicatorstyles__StepItem",
|
|
17
|
+
componentId: "sc-ywoddn-1"
|
|
18
|
+
})(["display:flex;align-items:center;gap:12px;"]);
|
|
19
|
+
const StepCircle = exports.StepCircle = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "StepIndicatorstyles__StepCircle",
|
|
21
|
+
componentId: "sc-ywoddn-2"
|
|
22
|
+
})(["width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;transition:all 0.2s ease;", " ", " ", ""], props => props.isCompleted && (0, _styledComponents.css)(["background-color:", ";color:", ";svg path{stroke:", ";}"], _colors.default.progressGreen, _colors.default.white, _colors.default.white), props => props.isActive && !props.isCompleted && (0, _styledComponents.css)(["background-color:", ";color:", ";"], _colors.default.black, _colors.default.white), props => !props.isActive && !props.isCompleted && (0, _styledComponents.css)(["background-color:", ";color:", ";"], _colors.default.grey, _colors.default.black));
|
|
23
|
+
const StepLabel = exports.StepLabel = _styledComponents.default.span.withConfig({
|
|
24
|
+
displayName: "StepIndicatorstyles__StepLabel",
|
|
25
|
+
componentId: "sc-ywoddn-3"
|
|
26
|
+
})(["font-size:16px;font-weight:600;line-height:24px;letter-spacing:0.6px;word-wrap:break-word;"]);
|
|
27
|
+
const StepConnector = exports.StepConnector = _styledComponents.default.div.withConfig({
|
|
28
|
+
displayName: "StepIndicatorstyles__StepConnector",
|
|
29
|
+
componentId: "sc-ywoddn-4"
|
|
30
|
+
})(["flex:1;height:2px;max-width:80px;background-color:", ";"], props => props.isCompleted ? _colors.default.progressGreen : _colors.default.grey);
|
|
@@ -9,7 +9,7 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
9
9
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
-
const styles = (0, _styledComponents.css)(["background:#fff;border:none;cursor:pointer;position:relative;font-family:'Open Sans';font-weight:bold;font-size:11px;line-height:14px;text-transform:uppercase;display:inline-block;padding-left:18px;padding-right:6px;transition:padding 0.2s;&:before{content:'\\f3d1';font-family:'Ionicons';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;line-height:8px;display:block;width:8px;height:8px;position:absolute;top:50%;left:0;margin-top:-4px;color:", ";}&:hover{padding-left:24px;padding-right:0;}", ""], props => _theme.default.cWarning, props => props.disabled && (0, _styledComponents.css)(["opacity:0.5;pointer-events:none;"]));
|
|
12
|
+
const styles = (0, _styledComponents.css)(["background:#fff;border:none;cursor:pointer;position:relative;font-family:'Open Sans';font-weight:bold;font-size:11px;line-height:14px;text-transform:uppercase;display:inline-block;padding-left:18px;padding-right:6px;transition:padding 0.2s;&:before{content:'\\f3d1';font-family:'Ionicons';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;line-height:8px;display:block;width:8px;height:8px;position:absolute;top:50%;left:0;margin-top:-4px;color:", ";transform:", ";}&:hover{padding-left:24px;padding-right:0;}", ""], props => _theme.default.cWarning, props => props.reverse ? 'rotate(180deg)' : 'none', props => props.disabled && (0, _styledComponents.css)(["opacity:0.5;pointer-events:none;"]));
|
|
13
13
|
const TextLink = exports.TextLink = (0, _styledComponents.default)(_reactRouterDom.Link).withConfig({
|
|
14
14
|
displayName: "TextLinkstyles__TextLink",
|
|
15
15
|
componentId: "sc-h1k34v-0"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _Icon = require("../Icon/Icon.style");
|
|
9
9
|
var _InfoIcon = require("../InfoIcon/InfoIcon");
|
|
10
10
|
var _Timeline = require("./Timeline.styles");
|
|
11
|
-
var _crossIcon = require("static/images/cross-icon.svg");
|
|
12
|
-
var _checkIcon = require("static/images/check-icon.svg");
|
|
11
|
+
var _crossIcon = require("../../static/images/cross-icon.svg");
|
|
12
|
+
var _checkIcon = require("../../static/images/check-icon.svg");
|
|
13
13
|
var _moment = _interopRequireDefault(require("moment"));
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
const TimelineStep = _ref => {
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.walletTypes = exports.platformURL = exports.platformDomain = exports.emailRegex = exports.UserTypes = exports.USInvestorAcreditationStatuses = exports.ProjectTypes = exports.ProjectStatus = exports.ProjectStates = exports.ProfessionalInvestorStatuses = void 0;
|
|
6
|
+
exports.walletTypes = exports.transactionTypeDisplayNames = exports.platformURL = exports.platformDomain = exports.emailRegex = exports.UserTypes = exports.USInvestorAcreditationStatuses = exports.TransactionTypes = exports.ProjectTypes = exports.ProjectStatus = exports.ProjectStates = exports.ProfessionalInvestorStatuses = exports.LoanActivityTypes = void 0;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
12
|
const platformDomain = exports.platformDomain = process.env.REACT_APP_WEBSITE_DOMAIN;
|
|
8
13
|
const platformURL = exports.platformURL = 'https://' + platformDomain;
|
|
9
14
|
const walletTypes = exports.walletTypes = {
|
|
@@ -44,4 +49,38 @@ const USInvestorAcreditationStatuses = exports.USInvestorAcreditationStatuses =
|
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
// should be used for all email form validation globally
|
|
47
|
-
const emailRegex = exports.emailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i;
|
|
52
|
+
const emailRegex = exports.emailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i;
|
|
53
|
+
const LoanActivityTypes = exports.LoanActivityTypes = {
|
|
54
|
+
PRINCIPAL_DEPOSIT: 'principal_deposit',
|
|
55
|
+
PRINCIPAL_RELEASE: 'principal_release',
|
|
56
|
+
INTEREST_PAYMENT: 'interest_payment',
|
|
57
|
+
COLLATERAL_DEPOSIT: 'collateral_deposit',
|
|
58
|
+
COLLATERAL_RELEASE: 'collateral_release',
|
|
59
|
+
COLLATERAL_PARTIAL_DEPOSIT: 'collateral_partial_deposit',
|
|
60
|
+
COLLATERAL_PARTIAL_RELEASE: 'collateral_partial_release',
|
|
61
|
+
LIQUIDATION: 'liquidation'
|
|
62
|
+
};
|
|
63
|
+
const TransactionTypes = exports.TransactionTypes = _objectSpread({
|
|
64
|
+
SUBSCRIPTION: 'subscription',
|
|
65
|
+
REFUND: 'refund',
|
|
66
|
+
REDEMPTION: 'redemption',
|
|
67
|
+
VENTURE_PAYOUT: 'issuer_payout',
|
|
68
|
+
AGGREGATION: 'aggregation'
|
|
69
|
+
}, LoanActivityTypes);
|
|
70
|
+
|
|
71
|
+
// Display names for transaction types (matching the spreadsheet)
|
|
72
|
+
const transactionTypeDisplayNames = exports.transactionTypeDisplayNames = {
|
|
73
|
+
[TransactionTypes.INTEREST_PAYMENT]: 'Interest',
|
|
74
|
+
[TransactionTypes.COLLATERAL_DEPOSIT]: 'Collateral Deposit',
|
|
75
|
+
[TransactionTypes.COLLATERAL_RELEASE]: 'Collateral Release',
|
|
76
|
+
[TransactionTypes.COLLATERAL_PARTIAL_DEPOSIT]: 'Collateral Shift (Deposit)',
|
|
77
|
+
[TransactionTypes.COLLATERAL_PARTIAL_RELEASE]: 'Collateral Shift (Release)',
|
|
78
|
+
[TransactionTypes.PRINCIPAL_DEPOSIT]: 'Principal Increase',
|
|
79
|
+
[TransactionTypes.PRINCIPAL_RELEASE]: 'Principal Decrease',
|
|
80
|
+
[TransactionTypes.LIQUIDATION]: 'Liquidation',
|
|
81
|
+
[TransactionTypes.REDEMPTION]: 'Redemption',
|
|
82
|
+
[TransactionTypes.REFUND]: 'Refund',
|
|
83
|
+
[TransactionTypes.AGGREGATION]: 'Aggregation',
|
|
84
|
+
[TransactionTypes.VENTURE_PAYOUT]: 'Issuer Payout',
|
|
85
|
+
[TransactionTypes.SUBSCRIPTION]: 'Issuance'
|
|
86
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -399,6 +399,17 @@ Object.keys(_Select).forEach(function (key) {
|
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
|
+
var _MultiSelect = require("./components/Input/MultiSelect");
|
|
403
|
+
Object.keys(_MultiSelect).forEach(function (key) {
|
|
404
|
+
if (key === "default" || key === "__esModule") return;
|
|
405
|
+
if (key in exports && exports[key] === _MultiSelect[key]) return;
|
|
406
|
+
Object.defineProperty(exports, key, {
|
|
407
|
+
enumerable: true,
|
|
408
|
+
get: function () {
|
|
409
|
+
return _MultiSelect[key];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
402
413
|
var _OtpInput = require("./components/Input/OtpInput");
|
|
403
414
|
Object.keys(_OtpInput).forEach(function (key) {
|
|
404
415
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -608,6 +619,17 @@ Object.keys(_NewVentureModal).forEach(function (key) {
|
|
|
608
619
|
}
|
|
609
620
|
});
|
|
610
621
|
});
|
|
622
|
+
var _SideModal = require("./components/Modal/SideModal");
|
|
623
|
+
Object.keys(_SideModal).forEach(function (key) {
|
|
624
|
+
if (key === "default" || key === "__esModule") return;
|
|
625
|
+
if (key in exports && exports[key] === _SideModal[key]) return;
|
|
626
|
+
Object.defineProperty(exports, key, {
|
|
627
|
+
enumerable: true,
|
|
628
|
+
get: function () {
|
|
629
|
+
return _SideModal[key];
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
});
|
|
611
633
|
var _MultiProgressBar = require("./components/MultiProgressBar/MultiProgressBar");
|
|
612
634
|
Object.keys(_MultiProgressBar).forEach(function (key) {
|
|
613
635
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1422,6 +1444,17 @@ Object.keys(_TimerComponent).forEach(function (key) {
|
|
|
1422
1444
|
}
|
|
1423
1445
|
});
|
|
1424
1446
|
});
|
|
1447
|
+
var _PaymentDetailsCard = require("./components/Payment/PaymentDetailsCard");
|
|
1448
|
+
Object.keys(_PaymentDetailsCard).forEach(function (key) {
|
|
1449
|
+
if (key === "default" || key === "__esModule") return;
|
|
1450
|
+
if (key in exports && exports[key] === _PaymentDetailsCard[key]) return;
|
|
1451
|
+
Object.defineProperty(exports, key, {
|
|
1452
|
+
enumerable: true,
|
|
1453
|
+
get: function () {
|
|
1454
|
+
return _PaymentDetailsCard[key];
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
});
|
|
1425
1458
|
var _Timeline = require("./components/Timeline/Timeline");
|
|
1426
1459
|
Object.keys(_Timeline).forEach(function (key) {
|
|
1427
1460
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1443,4 +1476,37 @@ Object.keys(_TimelineStep).forEach(function (key) {
|
|
|
1443
1476
|
return _TimelineStep[key];
|
|
1444
1477
|
}
|
|
1445
1478
|
});
|
|
1479
|
+
});
|
|
1480
|
+
var _StatusTag = require("./components/StatusTag/StatusTag");
|
|
1481
|
+
Object.keys(_StatusTag).forEach(function (key) {
|
|
1482
|
+
if (key === "default" || key === "__esModule") return;
|
|
1483
|
+
if (key in exports && exports[key] === _StatusTag[key]) return;
|
|
1484
|
+
Object.defineProperty(exports, key, {
|
|
1485
|
+
enumerable: true,
|
|
1486
|
+
get: function () {
|
|
1487
|
+
return _StatusTag[key];
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
});
|
|
1491
|
+
var _StepIndicator = require("./components/StepsProgress/StepIndicator");
|
|
1492
|
+
Object.keys(_StepIndicator).forEach(function (key) {
|
|
1493
|
+
if (key === "default" || key === "__esModule") return;
|
|
1494
|
+
if (key in exports && exports[key] === _StepIndicator[key]) return;
|
|
1495
|
+
Object.defineProperty(exports, key, {
|
|
1496
|
+
enumerable: true,
|
|
1497
|
+
get: function () {
|
|
1498
|
+
return _StepIndicator[key];
|
|
1499
|
+
}
|
|
1500
|
+
});
|
|
1501
|
+
});
|
|
1502
|
+
var _Snackbar = require("./components/Snackbar");
|
|
1503
|
+
Object.keys(_Snackbar).forEach(function (key) {
|
|
1504
|
+
if (key === "default" || key === "__esModule") return;
|
|
1505
|
+
if (key in exports && exports[key] === _Snackbar[key]) return;
|
|
1506
|
+
Object.defineProperty(exports, key, {
|
|
1507
|
+
enumerable: true,
|
|
1508
|
+
get: function () {
|
|
1509
|
+
return _Snackbar[key];
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1446
1512
|
});
|