@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
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ToDoListSkipped2 = exports.ToDoListRejected = exports.ToDoListMixedOverview = exports.ToDoListApproved = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ToDoList = _interopRequireDefault(require("./ToDoList"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
12
|
-
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
var _default = exports.default = {
|
|
15
|
-
title: 'Components Library/ToDoList/ToDoList',
|
|
16
|
-
component: _ToDoList.default,
|
|
17
|
-
argTypes: {
|
|
18
|
-
title: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
defaultValue: 'To do List'
|
|
21
|
-
},
|
|
22
|
-
subtitle: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
defaultValue: '',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
mandatoryTasks: {
|
|
28
|
-
type: 'array',
|
|
29
|
-
defaultValue: [{
|
|
30
|
-
title: ''
|
|
31
|
-
}, {
|
|
32
|
-
state: ''
|
|
33
|
-
}, {
|
|
34
|
-
link: ''
|
|
35
|
-
}, {
|
|
36
|
-
tooltip: ''
|
|
37
|
-
}]
|
|
38
|
-
},
|
|
39
|
-
optionalTasks: {
|
|
40
|
-
type: 'array',
|
|
41
|
-
defaultValue: [{
|
|
42
|
-
title: ''
|
|
43
|
-
}, {
|
|
44
|
-
state: ''
|
|
45
|
-
}, {
|
|
46
|
-
link: ''
|
|
47
|
-
}, {
|
|
48
|
-
tooltip: ''
|
|
49
|
-
}]
|
|
50
|
-
},
|
|
51
|
-
successText: {
|
|
52
|
-
type: 'string',
|
|
53
|
-
defaultValue: ''
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
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(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_ToDoList.default, args)))));
|
|
58
|
-
const ToDoListMixedOverview = exports.ToDoListMixedOverview = Template.bind({});
|
|
59
|
-
ToDoListMixedOverview.args = {
|
|
60
|
-
subtitle: 'subtitle',
|
|
61
|
-
mandatoryTasks: [{
|
|
62
|
-
title: 'Title of an Mandatory Task - In Progress',
|
|
63
|
-
state: 'in_progress',
|
|
64
|
-
link: 'www.madatorylink.com',
|
|
65
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
66
|
-
}, {
|
|
67
|
-
title: 'Title of an Mandatory Task - Rejected',
|
|
68
|
-
state: 'rejected',
|
|
69
|
-
link: 'www.madatorylink.com',
|
|
70
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
71
|
-
}, {
|
|
72
|
-
title: 'Title of an Mandatory Task - Approved',
|
|
73
|
-
state: 'approved',
|
|
74
|
-
link: 'www.madatorylink.com',
|
|
75
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
76
|
-
}, {
|
|
77
|
-
title: 'Title of an Mandatory Task - Skipped',
|
|
78
|
-
state: 'skipped',
|
|
79
|
-
link: 'www.madatorylink.com',
|
|
80
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
81
|
-
}, {
|
|
82
|
-
title: 'Title of an Mandatory Task - Reapply',
|
|
83
|
-
state: 'reapply',
|
|
84
|
-
link: 'www.madatorylink.com',
|
|
85
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
86
|
-
}, {
|
|
87
|
-
title: 'Title of an Mandatory Task - Not Available',
|
|
88
|
-
state: 'not_available',
|
|
89
|
-
link: 'www.madatorylink.com',
|
|
90
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
91
|
-
}],
|
|
92
|
-
optionalTasks: [{
|
|
93
|
-
title: 'Title of an Optional Task - Draft',
|
|
94
|
-
state: 'draft',
|
|
95
|
-
link: 'www.optionallink.com',
|
|
96
|
-
tooltip: 'a tooltip for Optional Task'
|
|
97
|
-
}]
|
|
98
|
-
};
|
|
99
|
-
const ToDoListApproved = exports.ToDoListApproved = Template.bind({});
|
|
100
|
-
ToDoListApproved.args = {
|
|
101
|
-
subtitle: 'subtitle',
|
|
102
|
-
mandatoryTasks: [{
|
|
103
|
-
title: 'Title of an Mandatory Task - Approved',
|
|
104
|
-
state: 'approved',
|
|
105
|
-
link: 'www.madatorylink.com',
|
|
106
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
107
|
-
}]
|
|
108
|
-
};
|
|
109
|
-
const ToDoListRejected = exports.ToDoListRejected = Template.bind({});
|
|
110
|
-
ToDoListRejected.args = {
|
|
111
|
-
subtitle: 'subtitle',
|
|
112
|
-
mandatoryTasks: [{
|
|
113
|
-
title: 'Title of an Mandatory Task - Rejected',
|
|
114
|
-
state: 'rejected',
|
|
115
|
-
link: 'www.madatorylink.com',
|
|
116
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
117
|
-
}]
|
|
118
|
-
};
|
|
119
|
-
const ToDoListSkipped2 = exports.ToDoListSkipped2 = Template.bind({});
|
|
120
|
-
ToDoListSkipped2.args = {
|
|
121
|
-
subtitle: 'subtitle',
|
|
122
|
-
mandatoryTasks: [{
|
|
123
|
-
title: 'Title of an Mandatory Task - Skipped',
|
|
124
|
-
state: 'skipped',
|
|
125
|
-
link: 'www.madatorylink.com',
|
|
126
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
127
|
-
}, {
|
|
128
|
-
title: 'Title of an Mandatory Task - Skipped 2',
|
|
129
|
-
state: 'skipped',
|
|
130
|
-
link: 'www.madatorylink.com',
|
|
131
|
-
tooltip: 'a tooltip for Mandatory Task'
|
|
132
|
-
}]
|
|
133
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ToDoListTaskReal = exports.ToDoListTaskOverview = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ToDoListTask = _interopRequireDefault(require("./ToDoListTask"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _reactRouterDom = require("react-router-dom");
|
|
12
|
-
var _AuthContext = require("../../context/AuthContext");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
var _default = exports.default = {
|
|
15
|
-
title: 'Components Library/ToDoList/ToDoListTask',
|
|
16
|
-
component: _ToDoListTask.default,
|
|
17
|
-
argTypes: {
|
|
18
|
-
title: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
defaultValue: '',
|
|
21
|
-
required: true
|
|
22
|
-
},
|
|
23
|
-
message: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
defaultValue: '',
|
|
26
|
-
required: true
|
|
27
|
-
},
|
|
28
|
-
state: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
defaultValue: '',
|
|
31
|
-
required: true
|
|
32
|
-
},
|
|
33
|
-
icon: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
defaultValue: '',
|
|
36
|
-
required: true
|
|
37
|
-
},
|
|
38
|
-
link: {
|
|
39
|
-
type: 'any',
|
|
40
|
-
defaultValue: undefined
|
|
41
|
-
},
|
|
42
|
-
tooltip: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
defaultValue: ''
|
|
45
|
-
},
|
|
46
|
-
notificationCount: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
defaultValue: ''
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_ToDoListTask.default, args)))));
|
|
53
|
-
const ToDoListTaskReal = exports.ToDoListTaskReal = Template.bind({});
|
|
54
|
-
ToDoListTaskReal.args = {
|
|
55
|
-
title: 'Risk Questionaire',
|
|
56
|
-
message: 'You have read and understood the risks',
|
|
57
|
-
link: 'www.link.com',
|
|
58
|
-
state: 'approved',
|
|
59
|
-
tooltip: 'a tool tip for you',
|
|
60
|
-
notificationCount: '5'
|
|
61
|
-
};
|
|
62
|
-
const ToDoListTaskOverview = exports.ToDoListTaskOverview = Template.bind({});
|
|
63
|
-
ToDoListTaskOverview.args = {
|
|
64
|
-
title: 'Task Title',
|
|
65
|
-
message: 'Task Message',
|
|
66
|
-
icon: 'Icon',
|
|
67
|
-
link: 'www.link.com',
|
|
68
|
-
tooltip: 'a tool-tip for you',
|
|
69
|
-
notificationCount: '5'
|
|
70
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TransactionDetails4 = exports.TransactionDetails1 = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _TransactionDetails = require("./TransactionDetails");
|
|
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/TransactionDetails',
|
|
14
|
-
component: _TransactionDetails.TransactionDetails,
|
|
15
|
-
argTypes: {
|
|
16
|
-
data: [{
|
|
17
|
-
label: {
|
|
18
|
-
type: 'string'
|
|
19
|
-
}
|
|
20
|
-
}, {
|
|
21
|
-
value: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true
|
|
24
|
-
}
|
|
25
|
-
}],
|
|
26
|
-
required: true
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
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(_TransactionDetails.TransactionDetails, args)));
|
|
30
|
-
const TransactionDetails1 = exports.TransactionDetails1 = Template.bind({});
|
|
31
|
-
TransactionDetails1.args = {
|
|
32
|
-
data: [{
|
|
33
|
-
label: 'This is a Label',
|
|
34
|
-
value: 'This is a value'
|
|
35
|
-
}]
|
|
36
|
-
};
|
|
37
|
-
const TransactionDetails4 = exports.TransactionDetails4 = Template.bind({});
|
|
38
|
-
TransactionDetails4.args = {
|
|
39
|
-
data: [{
|
|
40
|
-
label: 'This is a Label',
|
|
41
|
-
value: 'This is a value'
|
|
42
|
-
}, {
|
|
43
|
-
label: 'This is a Label too',
|
|
44
|
-
value: 'This is a value too'
|
|
45
|
-
}, {
|
|
46
|
-
label: 'This is Label three',
|
|
47
|
-
value: 'This is value three'
|
|
48
|
-
}, {
|
|
49
|
-
label: 'This is Label four',
|
|
50
|
-
value: 'This is value four'
|
|
51
|
-
}]
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
//doublecheck:
|
|
55
|
-
// state?
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutBorders = exports.WithIcons = exports.WithCustomStyling = exports.WithContainerStyling = exports.SingleRow = exports.MultipleRows = exports.LongTextContent = exports.EmptyState = exports.CustomWidth = exports.ComplexExample = exports.Basic = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _TransactionDetailsTable = require("./TransactionDetailsTable");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _InfoIcon = require("../InfoIcon/InfoIcon");
|
|
12
|
-
var _Info = require("../icons/Info");
|
|
13
|
-
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
var _default = exports.default = {
|
|
16
|
-
title: 'Components Library/TransactionDetails/TransactionDetailsTable',
|
|
17
|
-
component: _TransactionDetailsTable.TransactionDetailsTable,
|
|
18
|
-
argTypes: {
|
|
19
|
-
data: {
|
|
20
|
-
control: 'object',
|
|
21
|
-
description: 'Array of objects with label, value, labelIcon, and valueIcon properties'
|
|
22
|
-
},
|
|
23
|
-
showBorders: {
|
|
24
|
-
control: 'boolean',
|
|
25
|
-
description: 'Show borders around the table and rows',
|
|
26
|
-
defaultValue: true
|
|
27
|
-
},
|
|
28
|
-
maxWidth: {
|
|
29
|
-
control: 'text',
|
|
30
|
-
description: 'Maximum width of the table container'
|
|
31
|
-
},
|
|
32
|
-
labelCellStyle: {
|
|
33
|
-
control: false,
|
|
34
|
-
description: 'Function that returns style object for label cells: (index, item) => style'
|
|
35
|
-
},
|
|
36
|
-
valueCellStyle: {
|
|
37
|
-
control: false,
|
|
38
|
-
description: 'Function that returns style object for value cells: (index, item) => style'
|
|
39
|
-
},
|
|
40
|
-
rowStyle: {
|
|
41
|
-
control: false,
|
|
42
|
-
description: 'Function that returns style object for rows: (index, item) => style'
|
|
43
|
-
},
|
|
44
|
-
containerStyle: {
|
|
45
|
-
control: 'object',
|
|
46
|
-
description: 'Style object for the table container'
|
|
47
|
-
},
|
|
48
|
-
className: {
|
|
49
|
-
control: 'text',
|
|
50
|
-
description: 'CSS class name for the table container'
|
|
51
|
-
},
|
|
52
|
-
labelCellClassName: {
|
|
53
|
-
control: false,
|
|
54
|
-
description: 'Function that returns className for label cells: (index, item) => className'
|
|
55
|
-
},
|
|
56
|
-
valueCellClassName: {
|
|
57
|
-
control: false,
|
|
58
|
-
description: 'Function that returns className for value cells: (index, item) => className'
|
|
59
|
-
},
|
|
60
|
-
rowClassName: {
|
|
61
|
-
control: false,
|
|
62
|
-
description: 'Function that returns className for rows: (index, item) => className'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
decorators: [Story => /*#__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(Story, null)))]
|
|
66
|
-
};
|
|
67
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_TransactionDetailsTable.TransactionDetailsTable, args);
|
|
68
|
-
|
|
69
|
-
// Basic example
|
|
70
|
-
const Basic = exports.Basic = Template.bind({});
|
|
71
|
-
Basic.args = {
|
|
72
|
-
data: [{
|
|
73
|
-
label: 'Transaction ID',
|
|
74
|
-
value: '0x1234...5678'
|
|
75
|
-
}, {
|
|
76
|
-
label: 'Amount',
|
|
77
|
-
value: '1,000.00 EUR'
|
|
78
|
-
}, {
|
|
79
|
-
label: 'Status',
|
|
80
|
-
value: 'Completed'
|
|
81
|
-
}]
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// Multiple rows
|
|
85
|
-
const MultipleRows = exports.MultipleRows = Template.bind({});
|
|
86
|
-
MultipleRows.args = {
|
|
87
|
-
data: [{
|
|
88
|
-
label: 'Transaction ID',
|
|
89
|
-
value: '0x1234567890abcdef'
|
|
90
|
-
}, {
|
|
91
|
-
label: 'From Address',
|
|
92
|
-
value: '0xabcd...ef01'
|
|
93
|
-
}, {
|
|
94
|
-
label: 'To Address',
|
|
95
|
-
value: '0x2345...6789'
|
|
96
|
-
}, {
|
|
97
|
-
label: 'Amount',
|
|
98
|
-
value: '5,000.00 EUR'
|
|
99
|
-
}, {
|
|
100
|
-
label: 'Gas Fee',
|
|
101
|
-
value: '0.001 ETH'
|
|
102
|
-
}, {
|
|
103
|
-
label: 'Status',
|
|
104
|
-
value: 'Completed'
|
|
105
|
-
}, {
|
|
106
|
-
label: 'Date',
|
|
107
|
-
value: '2024-01-15 14:30:00'
|
|
108
|
-
}]
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
// With icons
|
|
112
|
-
const WithIcons = exports.WithIcons = Template.bind({});
|
|
113
|
-
WithIcons.args = {
|
|
114
|
-
data: [{
|
|
115
|
-
label: 'Transaction ID',
|
|
116
|
-
value: '0x1234...5678',
|
|
117
|
-
labelIcon: /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
118
|
-
title: "This is the unique identifier for your transaction",
|
|
119
|
-
position: "right"
|
|
120
|
-
})
|
|
121
|
-
}, {
|
|
122
|
-
label: 'Amount',
|
|
123
|
-
value: '1,000.00 EUR',
|
|
124
|
-
valueIcon: /*#__PURE__*/_react.default.createElement(_Info.Info, {
|
|
125
|
-
style: {
|
|
126
|
-
marginRight: '8px',
|
|
127
|
-
display: 'inline-block'
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
}, {
|
|
131
|
-
label: 'Status',
|
|
132
|
-
value: 'Completed'
|
|
133
|
-
}]
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
// Without borders
|
|
137
|
-
const WithoutBorders = exports.WithoutBorders = Template.bind({});
|
|
138
|
-
WithoutBorders.args = {
|
|
139
|
-
data: [{
|
|
140
|
-
label: 'Transaction ID',
|
|
141
|
-
value: '0x1234...5678'
|
|
142
|
-
}, {
|
|
143
|
-
label: 'Amount',
|
|
144
|
-
value: '1,000.00 EUR'
|
|
145
|
-
}, {
|
|
146
|
-
label: 'Status',
|
|
147
|
-
value: 'Completed'
|
|
148
|
-
}],
|
|
149
|
-
showBorders: false
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
// Custom width
|
|
153
|
-
const CustomWidth = exports.CustomWidth = Template.bind({});
|
|
154
|
-
CustomWidth.args = {
|
|
155
|
-
data: [{
|
|
156
|
-
label: 'Transaction ID',
|
|
157
|
-
value: '0x1234...5678'
|
|
158
|
-
}, {
|
|
159
|
-
label: 'Amount',
|
|
160
|
-
value: '1,000.00 EUR'
|
|
161
|
-
}, {
|
|
162
|
-
label: 'Status',
|
|
163
|
-
value: 'Completed'
|
|
164
|
-
}],
|
|
165
|
-
maxWidth: '800px'
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// With custom styling
|
|
169
|
-
const WithCustomStyling = exports.WithCustomStyling = Template.bind({});
|
|
170
|
-
WithCustomStyling.args = {
|
|
171
|
-
data: [{
|
|
172
|
-
label: 'Transaction ID',
|
|
173
|
-
value: '0x1234...5678'
|
|
174
|
-
}, {
|
|
175
|
-
label: 'Amount',
|
|
176
|
-
value: '1,000.00 EUR'
|
|
177
|
-
}, {
|
|
178
|
-
label: 'Status',
|
|
179
|
-
value: 'Completed'
|
|
180
|
-
}, {
|
|
181
|
-
label: 'Priority',
|
|
182
|
-
value: 'High'
|
|
183
|
-
}],
|
|
184
|
-
rowStyle: (index, item) => {
|
|
185
|
-
if (item.value === 'Completed') {
|
|
186
|
-
return {
|
|
187
|
-
backgroundColor: _colors.default.veryLightGreen
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
if (item.value === 'High') {
|
|
191
|
-
return {
|
|
192
|
-
backgroundColor: _colors.default.lightPeach
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
return {};
|
|
196
|
-
},
|
|
197
|
-
valueCellStyle: (index, item) => {
|
|
198
|
-
if (item.value === 'Completed') {
|
|
199
|
-
return {
|
|
200
|
-
color: _colors.default.freshGreen,
|
|
201
|
-
fontWeight: 'bold'
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
return {};
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
// Long text content
|
|
209
|
-
const LongTextContent = exports.LongTextContent = Template.bind({});
|
|
210
|
-
LongTextContent.args = {
|
|
211
|
-
data: [{
|
|
212
|
-
label: 'Transaction Hash',
|
|
213
|
-
value: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'
|
|
214
|
-
}, {
|
|
215
|
-
label: 'Description',
|
|
216
|
-
value: 'This is a very long description that should wrap properly within the table cell and demonstrate how the component handles word wrapping and text overflow scenarios.'
|
|
217
|
-
}, {
|
|
218
|
-
label: 'Short Label',
|
|
219
|
-
value: 'Short value'
|
|
220
|
-
}]
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
// Empty state (edge case)
|
|
224
|
-
const EmptyState = exports.EmptyState = Template.bind({});
|
|
225
|
-
EmptyState.args = {
|
|
226
|
-
data: []
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// Single row
|
|
230
|
-
const SingleRow = exports.SingleRow = Template.bind({});
|
|
231
|
-
SingleRow.args = {
|
|
232
|
-
data: [{
|
|
233
|
-
label: 'Total Amount',
|
|
234
|
-
value: '10,000.00 EUR'
|
|
235
|
-
}]
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
// With container styling
|
|
239
|
-
const WithContainerStyling = exports.WithContainerStyling = Template.bind({});
|
|
240
|
-
WithContainerStyling.args = {
|
|
241
|
-
data: [{
|
|
242
|
-
label: 'Transaction ID',
|
|
243
|
-
value: '0x1234...5678'
|
|
244
|
-
}, {
|
|
245
|
-
label: 'Amount',
|
|
246
|
-
value: '1,000.00 EUR'
|
|
247
|
-
}, {
|
|
248
|
-
label: 'Status',
|
|
249
|
-
value: 'Completed'
|
|
250
|
-
}],
|
|
251
|
-
containerStyle: {
|
|
252
|
-
borderRadius: '8px',
|
|
253
|
-
padding: '20px',
|
|
254
|
-
backgroundColor: _colors.default.grey3
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
// Complex example with all features
|
|
259
|
-
const ComplexExample = exports.ComplexExample = Template.bind({});
|
|
260
|
-
ComplexExample.args = {
|
|
261
|
-
data: [{
|
|
262
|
-
label: 'Transaction ID',
|
|
263
|
-
value: '0x1234...5678',
|
|
264
|
-
labelIcon: /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
265
|
-
title: "Unique transaction identifier",
|
|
266
|
-
position: "right",
|
|
267
|
-
noMarginLeft: true
|
|
268
|
-
})
|
|
269
|
-
}, {
|
|
270
|
-
label: 'Amount',
|
|
271
|
-
value: '5,000.00 EUR',
|
|
272
|
-
valueIcon: /*#__PURE__*/_react.default.createElement(_Info.Info, {
|
|
273
|
-
style: {
|
|
274
|
-
marginRight: '8px',
|
|
275
|
-
display: 'inline-block'
|
|
276
|
-
}
|
|
277
|
-
})
|
|
278
|
-
}, {
|
|
279
|
-
label: 'Status',
|
|
280
|
-
value: 'Pending'
|
|
281
|
-
}, {
|
|
282
|
-
label: 'Gas Fee',
|
|
283
|
-
value: '0.002 ETH'
|
|
284
|
-
}, {
|
|
285
|
-
label: 'Network',
|
|
286
|
-
value: 'Ethereum Mainnet'
|
|
287
|
-
}],
|
|
288
|
-
maxWidth: '700px',
|
|
289
|
-
rowStyle: (index, item) => {
|
|
290
|
-
if (item.value === 'Pending') {
|
|
291
|
-
return {
|
|
292
|
-
backgroundColor: _colors.default.yellowLight
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
return {};
|
|
296
|
-
},
|
|
297
|
-
valueCellStyle: (index, item) => {
|
|
298
|
-
if (item.value === 'Pending') {
|
|
299
|
-
return {
|
|
300
|
-
color: _colors.default.warningOrange
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
return {};
|
|
304
|
-
}
|
|
305
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TransactionInfoExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _TransactionInfo = require("./TransactionInfo");
|
|
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/TransactionInfo',
|
|
14
|
-
component: _TransactionInfo.TransactionInfo,
|
|
15
|
-
argTypes: {
|
|
16
|
-
value1: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
defaultValue: ''
|
|
19
|
-
},
|
|
20
|
-
unit1: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
defaultValue: ''
|
|
23
|
-
},
|
|
24
|
-
name1: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
defaultValue: ''
|
|
27
|
-
},
|
|
28
|
-
owner1: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
defaultValue: ''
|
|
31
|
-
},
|
|
32
|
-
value2: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
defaultValue: ''
|
|
35
|
-
},
|
|
36
|
-
unit2: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
defaultValue: ''
|
|
39
|
-
},
|
|
40
|
-
name2: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
defaultValue: ''
|
|
43
|
-
},
|
|
44
|
-
owner2: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
defaultValue: ''
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
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(_TransactionInfo.TransactionInfo, args)));
|
|
51
|
-
const TransactionInfoExample = exports.TransactionInfoExample = Template.bind({});
|
|
52
|
-
TransactionInfoExample.args = {
|
|
53
|
-
value1: 'value 1',
|
|
54
|
-
unit1: 'unit 1',
|
|
55
|
-
name1: 'name 1',
|
|
56
|
-
owner1: 'owner 1',
|
|
57
|
-
value2: 'value 2',
|
|
58
|
-
unit2: 'unit 2',
|
|
59
|
-
name2: 'name 2',
|
|
60
|
-
owner2: 'owner 2'
|
|
61
|
-
};
|