@stokr/components-library 2.3.65-beta.9 → 2.3.66
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/analytics/index.js +162 -0
- package/dist/components/2FA/login-with-otp-flow.js +1 -1
- package/dist/components/2FA/main-flow.js +40 -12
- package/dist/components/Chips/Chip.js +1 -2
- package/dist/components/Chips/Chip.styles.js +3 -2
- package/dist/components/ConfirmModal/ConfirmModal.js +240 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +26 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +10 -4
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +1 -1
- package/dist/components/Footer/FooterLayout.js +13 -4
- package/dist/components/Footer/FooterMenu.js +19 -3
- package/dist/components/Footer/FooterMenu.styles.js +14 -2
- package/dist/components/Header/Header.styles.js +1 -1
- package/dist/components/Input/DatePickerInput.js +134 -30
- package/dist/components/Input/DatePickerInput.styles.js +16 -3
- package/dist/components/Input/MultiSelect.js +10 -8
- package/dist/components/Input/TableFilterDropdown.js +228 -0
- package/dist/components/Input/Textarea.js +59 -0
- package/dist/components/Input/Textarea.styles.js +18 -0
- package/dist/components/Modal/Modal.js +39 -6
- package/dist/components/Modal/Modal.styles.js +2 -2
- package/dist/components/Modal/SideModal.js +44 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +173 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +29 -0
- package/dist/components/Modal/SuccessModal/index.js +37 -0
- package/dist/components/Payment/PaymentDetailsCard.js +14 -11
- package/dist/components/Payment/PaymentDisplay.js +2 -12
- package/dist/components/Snackbar/Snackbar.js +3 -0
- package/dist/components/Snackbar/Snackbar.styles.js +18 -9
- package/dist/components/StatusTag/StatusTag.js +38 -71
- package/dist/components/StatusTag/StatusTag.styles.js +4 -16
- package/dist/components/Timeline/Timeline.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +0 -1
- package/dist/context/AuthContext.js +5 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.css +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +10371 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/robots.txt +3 -0
- package/dist/static/animations/checked.lottie +0 -0
- package/dist/static/animations/progress.lottie +0 -0
- package/dist/static/images/add-folder-icon.svg +5 -0
- package/dist/static/images/background3.png +0 -0
- package/dist/static/images/bmn2-logo.svg +9 -9
- package/dist/static/images/checkmark-circle-icon.svg +4 -0
- package/dist/static/images/close-circle-icon.svg +3 -0
- package/dist/static/images/doc-icon.svg +4 -0
- package/dist/static/images/filter-icon.svg +6 -0
- package/dist/styles/colors.js +2 -1
- package/dist/styles/global.js +1 -1
- package/dist/utils/customHooks.js +24 -2
- package/dist/utils/formatCurrencyValue.js +9 -2
- package/package.json +5 -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 -162
- package/dist/components/AccountBalance/AccountBalance.stories.js +0 -83
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +0 -913
- 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/Icon/Icon.stories.js +0 -108
- 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 -217
- package/dist/components/Input/InputPassword.stories.js +0 -80
- package/dist/components/Input/InputWithButton.stories.js +0 -75
- package/dist/components/Input/MultiSelect.stories.js +0 -264
- package/dist/components/Input/OtpInput.stories.js +0 -57
- package/dist/components/Input/RangeInput.stories.js +0 -58
- package/dist/components/Input/SearchInput.stories.js +0 -366
- package/dist/components/Input/Select.stories.js +0 -478
- 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/Modal/SideModal.stories.js +0 -342
- 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/PaymentDetailsCard.stories.js +0 -198
- 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/Snackbar/Snackbar.stories.js +0 -292
- package/dist/components/StatusTag/StatusTag.stories.js +0 -262
- package/dist/components/StepController/StepController.stories.js +0 -60
- package/dist/components/StepController/StepControllerProgress.stories.js +0 -49
- package/dist/components/StepsProgress/StepIndicator.stories.js +0 -153
- 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/TextLink/TextLink.stories.js +0 -35
- 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/logo/Logo.stories.js +0 -260
- package/dist/components/taxId/TaxId.stories.js +0 -50
- package/dist/components/video/Video.stories.js +0 -52
- package/dist/static/images/document-icon.svg +0 -3
- package/dist/static/images/sent-icon.svg +0 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="800" height="800" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M17.8086 9.70558C18.1983 9.31421 18.1969 8.68105 17.8056 8.29137C17.4142 7.90169 16.781 7.90305 16.3913 8.29442L10.6215 14.0892L7.30211 10.816C6.90886 10.4283 6.27571 10.4327 5.88793 10.8259C5.50015 11.2192 5.50459 11.8524 5.89784 12.2401L9.92581 16.212C10.3177 16.5985 10.9482 16.5956 11.3366 16.2056L17.8086 9.70558Z" fill="currentColor"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="800" height="800" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9 9L11.9999 11.9999M11.9999 11.9999L14.9999 14.9999M11.9999 11.9999L9 14.9999M11.9999 11.9999L14.9999 9M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
2
|
+
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 1C4.34314 1 3 2.34315 3 4V20C3 21.6569 4.34315 23 6 23H19C20.6569 23 22 21.6569 22 20V10C22 9.73478 21.8946 9.48043 21.7071 9.29289L13.7071 1.29292C13.6114 1.19722 13.4983 1.1229 13.3753 1.07308C13.2572 1.02527 13.1299 1 13 1H6ZM12 3H6C5.44771 3 5 3.44771 5 4V20C5 20.5523 5.44772 21 6 21H19C19.5523 21 20 20.5523 20 20V11H13C12.4477 11 12 10.5523 12 10V3ZM18.5858 9.00003L14 4.41424V9.00003H18.5858Z" fill="#000000"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1.75 3.5H12.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
3
|
+
<path d="M3.5 7H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
4
|
+
<path d="M5.25 10.5H8.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
5
|
+
</svg>
|
|
6
|
+
|
package/dist/styles/colors.js
CHANGED
package/dist/styles/global.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
require("react-tippy/dist/tippy.css");
|
|
9
|
-
require("react-day-picker/
|
|
9
|
+
require("react-day-picker/style.css");
|
|
10
10
|
var _colors = _interopRequireDefault(require("./colors"));
|
|
11
11
|
var _fonts = _interopRequireDefault(require("./fonts"));
|
|
12
12
|
var _semanticUi = _interopRequireDefault(require("./semanticUi"));
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.cooldownHOC = void 0;
|
|
7
|
+
exports.useComponentVisible = useComponentVisible;
|
|
8
|
+
exports.useMobileView = exports.useCooldown = exports.useContainerSize = void 0;
|
|
7
9
|
exports.usePrevious = usePrevious;
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
var _rwd = _interopRequireWildcard(require("../styles/rwd"));
|
|
@@ -117,4 +119,24 @@ const cooldownHOC = function (Component) {
|
|
|
117
119
|
};
|
|
118
120
|
return Wrapper;
|
|
119
121
|
};
|
|
120
|
-
exports.cooldownHOC = cooldownHOC;
|
|
122
|
+
exports.cooldownHOC = cooldownHOC;
|
|
123
|
+
function useComponentVisible(initialIsVisible) {
|
|
124
|
+
const [isComponentVisible, setIsComponentVisible] = (0, _react.useState)(initialIsVisible);
|
|
125
|
+
const ref = (0, _react.useRef)(null);
|
|
126
|
+
const handleClickOutside = event => {
|
|
127
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
128
|
+
setIsComponentVisible(false);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
(0, _react.useEffect)(() => {
|
|
132
|
+
document.addEventListener('click', handleClickOutside, true);
|
|
133
|
+
return () => {
|
|
134
|
+
document.removeEventListener('click', handleClickOutside, true);
|
|
135
|
+
};
|
|
136
|
+
}, []);
|
|
137
|
+
return {
|
|
138
|
+
ref,
|
|
139
|
+
isComponentVisible,
|
|
140
|
+
setIsComponentVisible
|
|
141
|
+
};
|
|
142
|
+
}
|
|
@@ -32,9 +32,11 @@ const formatCurrencyValue = function (currency, value) {
|
|
|
32
32
|
'bitcoin-private': ['EUR', 2],
|
|
33
33
|
'lbtc-private': ['BTC', 8],
|
|
34
34
|
bmn1: ['BMN1', 2],
|
|
35
|
+
bmn2: ['BMN2', 4],
|
|
35
36
|
'btc-fb': ['BTC', 8],
|
|
36
37
|
'usdc-fb': ['USDC', 2],
|
|
37
|
-
'usdq-fb': ['USDQ', 2]
|
|
38
|
+
'usdq-fb': ['USDQ', 2],
|
|
39
|
+
"xaut": ["XAUt", 6]
|
|
38
40
|
}[currency] || [currency, tokenDecimals];
|
|
39
41
|
const formattedValue = parseFloat(Math.abs(value)).toFixed(decimals);
|
|
40
42
|
return valueFirst ? "".concat(formattedValue, " ").concat(symbol) : "".concat(symbol, " ").concat(formattedValue);
|
|
@@ -53,9 +55,11 @@ const getCurrencySymbol = currencySelected => ({
|
|
|
53
55
|
'lbtc-bfx': 'LBTC',
|
|
54
56
|
'btc-bfx': 'BTC',
|
|
55
57
|
bmn1: 'BMN1',
|
|
58
|
+
bmn2: 'BMN2',
|
|
56
59
|
'btc-fb': 'BTC',
|
|
57
60
|
'usdc-fb': 'USDC',
|
|
58
|
-
'usdq-fb': 'USDQ'
|
|
61
|
+
'usdq-fb': 'USDQ',
|
|
62
|
+
'xaut': 'XAUt'
|
|
59
63
|
})[currencySelected] || currencySelected;
|
|
60
64
|
exports.getCurrencySymbol = getCurrencySymbol;
|
|
61
65
|
const getProjectCurrencySign = tokenCurrency => {
|
|
@@ -68,10 +72,13 @@ const getCurrencyIcon = (currency, customIcon) => {
|
|
|
68
72
|
switch (currency.toLowerCase()) {
|
|
69
73
|
case 'btc':
|
|
70
74
|
case 'bitcoin':
|
|
75
|
+
case 'btc-fb':
|
|
71
76
|
return _bitcoinLogo.default;
|
|
72
77
|
case 'usdc':
|
|
78
|
+
case 'usdc-fb':
|
|
73
79
|
return _usdcLogo.default;
|
|
74
80
|
case 'usdq':
|
|
81
|
+
case 'usdq-fb':
|
|
75
82
|
return _usdqLogo.default;
|
|
76
83
|
case 'bmn2':
|
|
77
84
|
return _bmn2Logo.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.66",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"build": "react-scripts build",
|
|
19
19
|
"build-storybook": "storybook build",
|
|
20
20
|
"build-storybook-docs": "storybook build -s public --docs",
|
|
21
|
-
"
|
|
21
|
+
"copy:static": "node -e \"require('fs').cpSync('src/static', 'dist/static', {recursive: true})\"",
|
|
22
|
+
"build:dist": "cross-env BABEL_ENV=production babel src -d dist && npm run copy:static",
|
|
22
23
|
"test": "react-scripts test",
|
|
23
24
|
"prepare": "npm run build",
|
|
24
25
|
"storybook": "storybook dev -p 6006",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"serve": "npx http-server ./storybook-static -p 9009"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
34
|
+
"@lottiefiles/dotlottie-react": "^0.17.13",
|
|
33
35
|
"ajv": "^8.17.1",
|
|
34
36
|
"axios": "^0.30.2",
|
|
35
37
|
"bignumber.js": "^9.1.1",
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
"html-react-parser": "^5.0.6",
|
|
43
45
|
"http-server": "^14.1.1",
|
|
44
46
|
"js-cookie": "^3.0.5",
|
|
47
|
+
"mixpanel-browser": "^2.74.0",
|
|
45
48
|
"mobile-detect": "^1.4.5",
|
|
46
49
|
"moment": "^2.30.1",
|
|
47
50
|
"moment-timezone": "^0.6.0",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.EnterCodeSimple = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _EnterCode = require("./EnterCode");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'Components Library/2FA',
|
|
14
|
-
component: _EnterCode.EnterCode,
|
|
15
|
-
argTypes: {
|
|
16
|
-
isModal: {
|
|
17
|
-
type: 'boolean',
|
|
18
|
-
defaultValue: true
|
|
19
|
-
}
|
|
20
|
-
// inputType: { type: 'string' },
|
|
21
|
-
// placeholder: { type: 'string', defaultValue: '' },
|
|
22
|
-
// value: { type: 'string', defaultValue: '' },
|
|
23
|
-
// numInputs: { type: 'number', defaultValue: 4 },
|
|
24
|
-
// shouldAutoFocus: { type: 'boolean', defaultValue: false },
|
|
25
|
-
// onChange: { action: 'change', type: 'function' },
|
|
26
|
-
// onPaste: { type: 'function' },
|
|
27
|
-
// renderSeparator: { type: 'component' },
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_EnterCode.EnterCode, args)));
|
|
31
|
-
const EnterCodeSimple = exports.EnterCodeSimple = Template.bind({});
|
|
32
|
-
EnterCodeSimple.args = {
|
|
33
|
-
isModalOpen: true,
|
|
34
|
-
popupError: {}
|
|
35
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Disable2FA = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
var _disable2faFlow = _interopRequireDefault(require("./disable-2fa-flow"));
|
|
11
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/2FA',
|
|
15
|
-
component: _disable2faFlow.default,
|
|
16
|
-
argTypes: {
|
|
17
|
-
showFlow: {
|
|
18
|
-
type: 'boolean',
|
|
19
|
-
defaultValue: true
|
|
20
|
-
},
|
|
21
|
-
setShowFlow: {},
|
|
22
|
-
setShowPending: {},
|
|
23
|
-
withSuccessPage: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
defaultValue: false
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_disable2faFlow.default, args))));
|
|
30
|
-
const Disable2FA = exports.Disable2FA = Template.bind({});
|
|
31
|
-
Disable2FA.args = {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Enable2FA = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
var _enable2faFlow = _interopRequireDefault(require("./enable-2fa-flow"));
|
|
11
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/2FA',
|
|
15
|
-
component: _enable2faFlow.default,
|
|
16
|
-
argTypes: {
|
|
17
|
-
showFlow: {
|
|
18
|
-
type: 'boolean',
|
|
19
|
-
defaultValue: true
|
|
20
|
-
},
|
|
21
|
-
setShowFlow: {},
|
|
22
|
-
setShowPending: {},
|
|
23
|
-
withSuccessPage: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
defaultValue: false
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_enable2faFlow.default, args))));
|
|
30
|
-
const Enable2FA = exports.Enable2FA = Template.bind({});
|
|
31
|
-
Enable2FA.args = {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.LoginWithOTPFlow = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
var _loginWithOtpFlow = _interopRequireDefault(require("./login-with-otp-flow"));
|
|
11
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/2FA',
|
|
15
|
-
component: _loginWithOtpFlow.default,
|
|
16
|
-
argTypes: {
|
|
17
|
-
showFlow: {
|
|
18
|
-
type: 'boolean',
|
|
19
|
-
defaultValue: true
|
|
20
|
-
},
|
|
21
|
-
setShowFlow: {},
|
|
22
|
-
setShowPending: {},
|
|
23
|
-
withSuccessPage: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
defaultValue: false
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_loginWithOtpFlow.default, args))));
|
|
30
|
-
const LoginWithOTPFlow = exports.LoginWithOTPFlow = Template.bind({});
|
|
31
|
-
LoginWithOTPFlow.args = {};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutSwitch = exports.WithCustomComponentFunction = exports.WithCustomComponent = exports.PreOpenedEnableFlow = exports.PreOpenedDisableFlow = exports.Default = exports.CustomTitles = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
var _mainFlow = _interopRequireDefault(require("./main-flow"));
|
|
11
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
12
|
-
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
13
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
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); }
|
|
16
|
-
var _default = exports.default = {
|
|
17
|
-
title: 'Components Library/2FA/Main2FAFlow',
|
|
18
|
-
component: _mainFlow.default,
|
|
19
|
-
argTypes: {
|
|
20
|
-
title: {
|
|
21
|
-
control: 'text',
|
|
22
|
-
description: 'Title text for the 2FA section'
|
|
23
|
-
},
|
|
24
|
-
subtitle: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
description: 'Subtitle text for the 2FA section'
|
|
27
|
-
},
|
|
28
|
-
showSwitch: {
|
|
29
|
-
control: 'boolean',
|
|
30
|
-
description: 'Show/hide the toggle switch',
|
|
31
|
-
defaultValue: true
|
|
32
|
-
},
|
|
33
|
-
open2faflow: {
|
|
34
|
-
control: 'boolean',
|
|
35
|
-
description: 'Open enable 2FA flow on mount'
|
|
36
|
-
},
|
|
37
|
-
openDisable2faflow: {
|
|
38
|
-
control: 'boolean',
|
|
39
|
-
description: 'Open disable 2FA flow on mount'
|
|
40
|
-
},
|
|
41
|
-
onRequiresRecentLoginError: {
|
|
42
|
-
action: 'requiresRecentLogin',
|
|
43
|
-
description: 'Callback when recent login is required'
|
|
44
|
-
},
|
|
45
|
-
onLoginAgainClick: {
|
|
46
|
-
action: 'loginAgain',
|
|
47
|
-
description: 'Callback when user clicks login again'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
decorators: [Story => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(Story, null))))]
|
|
51
|
-
};
|
|
52
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_mainFlow.default, args));
|
|
53
|
-
|
|
54
|
-
// Default example
|
|
55
|
-
const Default = exports.Default = Template.bind({});
|
|
56
|
-
Default.args = {};
|
|
57
|
-
|
|
58
|
-
// With custom component as React element
|
|
59
|
-
const WithCustomComponent = () => {
|
|
60
|
-
const CustomButtonGroup = _ref => {
|
|
61
|
-
var _flowActions$isFlowOp, _flowActions$isFlowOp2;
|
|
62
|
-
let {
|
|
63
|
-
flowActions
|
|
64
|
-
} = _ref;
|
|
65
|
-
if (!flowActions) return null;
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, {
|
|
67
|
-
noPaddingHorizontal: true,
|
|
68
|
-
style: {
|
|
69
|
-
marginTop: '16px'
|
|
70
|
-
}
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
-
style: {
|
|
73
|
-
display: 'flex',
|
|
74
|
-
gap: '12px',
|
|
75
|
-
flexWrap: 'wrap'
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
78
|
-
onClick: flowActions.openEnable2FA,
|
|
79
|
-
disabled: flowActions.is2FAEnabled
|
|
80
|
-
}, "Enable 2FA"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
81
|
-
onClick: flowActions.openDisable2FA,
|
|
82
|
-
disabled: !flowActions.is2FAEnabled,
|
|
83
|
-
secondary: true
|
|
84
|
-
}, "Disable 2FA"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
85
|
-
onClick: flowActions.closeFlows,
|
|
86
|
-
outline: true
|
|
87
|
-
}, "Close All Flows")), /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
-
style: {
|
|
89
|
-
marginTop: '12px',
|
|
90
|
-
fontSize: '12px',
|
|
91
|
-
color: '#666'
|
|
92
|
-
}
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement("p", null, "Status: ", flowActions.is2FAEnabled ? 'Enabled' : 'Disabled', /*#__PURE__*/_react.default.createElement("br", null), "Enable Flow Open: ", (_flowActions$isFlowOp = flowActions.isFlowOpen) !== null && _flowActions$isFlowOp !== void 0 && _flowActions$isFlowOp.enable2fa ? 'Yes' : 'No', /*#__PURE__*/_react.default.createElement("br", null), "Disable Flow Open:", ' ', (_flowActions$isFlowOp2 = flowActions.isFlowOpen) !== null && _flowActions$isFlowOp2 !== void 0 && _flowActions$isFlowOp2.disable2fa ? 'Yes' : 'No')));
|
|
94
|
-
};
|
|
95
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_mainFlow.default, {
|
|
96
|
-
customComponent: /*#__PURE__*/_react.default.createElement(CustomButtonGroup, null)
|
|
97
|
-
}));
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// With custom component as render function
|
|
101
|
-
exports.WithCustomComponent = WithCustomComponent;
|
|
102
|
-
const WithCustomComponentFunction = () => {
|
|
103
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_mainFlow.default, {
|
|
104
|
-
customComponent: flowActions => {
|
|
105
|
-
if (!flowActions) return null;
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, {
|
|
107
|
-
noPaddingHorizontal: true,
|
|
108
|
-
style: {
|
|
109
|
-
marginTop: '16px'
|
|
110
|
-
}
|
|
111
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
style: {
|
|
113
|
-
display: 'flex',
|
|
114
|
-
gap: '12px',
|
|
115
|
-
flexWrap: 'wrap'
|
|
116
|
-
}
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
118
|
-
onClick: flowActions.openEnable2FA,
|
|
119
|
-
disabled: flowActions.is2FAEnabled
|
|
120
|
-
}, "Enable 2FA"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
121
|
-
onClick: flowActions.openDisable2FA,
|
|
122
|
-
disabled: !flowActions.is2FAEnabled,
|
|
123
|
-
secondary: true
|
|
124
|
-
}, "Disable 2FA"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
125
|
-
onClick: flowActions.closeFlows,
|
|
126
|
-
outline: true
|
|
127
|
-
}, "Close All Flows")), /*#__PURE__*/_react.default.createElement("div", {
|
|
128
|
-
style: {
|
|
129
|
-
marginTop: '12px',
|
|
130
|
-
fontSize: '12px',
|
|
131
|
-
color: '#666'
|
|
132
|
-
}
|
|
133
|
-
}, /*#__PURE__*/_react.default.createElement("p", null, "Status: ", flowActions.is2FAEnabled ? 'Enabled' : 'Disabled')));
|
|
134
|
-
}
|
|
135
|
-
}));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// Without switch
|
|
139
|
-
exports.WithCustomComponentFunction = WithCustomComponentFunction;
|
|
140
|
-
const WithoutSwitch = exports.WithoutSwitch = Template.bind({});
|
|
141
|
-
WithoutSwitch.args = {
|
|
142
|
-
showSwitch: false
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
// Custom titles
|
|
146
|
-
const CustomTitles = exports.CustomTitles = Template.bind({});
|
|
147
|
-
CustomTitles.args = {
|
|
148
|
-
title: 'Two-Factor Authentication',
|
|
149
|
-
subtitle: 'Add an extra layer of security to your account'
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
// Pre-opened enable flow
|
|
153
|
-
const PreOpenedEnableFlow = exports.PreOpenedEnableFlow = Template.bind({});
|
|
154
|
-
PreOpenedEnableFlow.args = {
|
|
155
|
-
open2faflow: true
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// Pre-opened disable flow
|
|
159
|
-
const PreOpenedDisableFlow = exports.PreOpenedDisableFlow = Template.bind({});
|
|
160
|
-
PreOpenedDisableFlow.args = {
|
|
161
|
-
openDisable2faflow: true
|
|
162
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.AccountBalanceRight = exports.AccountBalanceOverview = exports.AccountBalanceExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _AccountBalance = _interopRequireDefault(require("./AccountBalance"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'Components Library/Account Balance',
|
|
14
|
-
component: _AccountBalance.default,
|
|
15
|
-
argTypes: {
|
|
16
|
-
title: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
defaultValue: '',
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
value: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
defaultValue: '',
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
26
|
-
unit: {
|
|
27
|
-
type: 'string',
|
|
28
|
-
defaultValue: '',
|
|
29
|
-
required: true
|
|
30
|
-
},
|
|
31
|
-
eqValue: {
|
|
32
|
-
type: 'string'
|
|
33
|
-
},
|
|
34
|
-
eqUnit: {
|
|
35
|
-
type: 'string'
|
|
36
|
-
},
|
|
37
|
-
info: {
|
|
38
|
-
type: 'string',
|
|
39
|
-
defaultValue: ''
|
|
40
|
-
},
|
|
41
|
-
half: {
|
|
42
|
-
type: 'boolean',
|
|
43
|
-
defaultValue: false
|
|
44
|
-
},
|
|
45
|
-
right: {
|
|
46
|
-
type: 'boolean',
|
|
47
|
-
defaultValue: false
|
|
48
|
-
},
|
|
49
|
-
border: {
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
defaultValue: false
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_AccountBalance.default, args)));
|
|
56
|
-
const AccountBalanceOverview = exports.AccountBalanceOverview = Template.bind({});
|
|
57
|
-
AccountBalanceOverview.args = {
|
|
58
|
-
title: 'Account Balance Title',
|
|
59
|
-
value: ' some Value ',
|
|
60
|
-
unit: ' A Unit ',
|
|
61
|
-
info: 'Info Tooltip',
|
|
62
|
-
eqValue: ' eqValue ',
|
|
63
|
-
eqUnit: ' eqUnit '
|
|
64
|
-
};
|
|
65
|
-
const AccountBalanceExample = exports.AccountBalanceExample = Template.bind({});
|
|
66
|
-
AccountBalanceExample.args = {
|
|
67
|
-
title: 'Account Balance Title',
|
|
68
|
-
value: '42',
|
|
69
|
-
unit: '€',
|
|
70
|
-
info: 'Information',
|
|
71
|
-
eqValue: '47,34',
|
|
72
|
-
eqUnit: '$'
|
|
73
|
-
};
|
|
74
|
-
const AccountBalanceRight = exports.AccountBalanceRight = Template.bind({});
|
|
75
|
-
AccountBalanceRight.args = {
|
|
76
|
-
title: 'Account Balance Title',
|
|
77
|
-
value: '42',
|
|
78
|
-
unit: '€',
|
|
79
|
-
info: 'Information',
|
|
80
|
-
eqValue: '47,34',
|
|
81
|
-
eqUnit: '$',
|
|
82
|
-
right: true
|
|
83
|
-
};
|