@stokr/components-library 2.3.65-beta.10 → 2.3.65-beta.12
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/Chips/Chip.styles.js +3 -2
- package/dist/components/Input/MultiSelect.js +10 -8
- package/dist/components/Input/TableFilterDropdown.js +210 -0
- package/dist/components/Payment/PaymentDetailsCard.js +5 -2
- package/dist/components/Snackbar/Snackbar.js +3 -0
- package/dist/components/Snackbar/Snackbar.styles.js +18 -9
- package/dist/components/StatusTag/StatusTag.js +19 -9
- package/dist/components/StatusTag/StatusTag.styles.js +4 -4
- package/dist/components/Timeline/Timeline.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +0 -1
- package/dist/static/images/filter-icon.svg +6 -0
- 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 -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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Zero = exports.Two = exports.Three = exports.Six = exports.Seven = exports.One = exports.NumberRow = exports.Nine = exports.InvalidNumber = exports.Four = exports.Five = exports.Eight = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Number = require("./Number");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'Components Library/Number',
|
|
12
|
-
component: _Number.Number,
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component: 'A component that displays numbers using SVG icons.'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
number: {
|
|
22
|
-
control: {
|
|
23
|
-
type: 'number',
|
|
24
|
-
min: 0,
|
|
25
|
-
max: 9,
|
|
26
|
-
step: 1
|
|
27
|
-
},
|
|
28
|
-
description: 'Number to display (0-9)'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_Number.Number, args);
|
|
33
|
-
|
|
34
|
-
// Individual numbers
|
|
35
|
-
const Zero = exports.Zero = Template.bind({});
|
|
36
|
-
Zero.args = {
|
|
37
|
-
number: 0
|
|
38
|
-
};
|
|
39
|
-
const One = exports.One = Template.bind({});
|
|
40
|
-
One.args = {
|
|
41
|
-
number: 1
|
|
42
|
-
};
|
|
43
|
-
const Two = exports.Two = Template.bind({});
|
|
44
|
-
Two.args = {
|
|
45
|
-
number: 2
|
|
46
|
-
};
|
|
47
|
-
const Three = exports.Three = Template.bind({});
|
|
48
|
-
Three.args = {
|
|
49
|
-
number: 3
|
|
50
|
-
};
|
|
51
|
-
const Four = exports.Four = Template.bind({});
|
|
52
|
-
Four.args = {
|
|
53
|
-
number: 4
|
|
54
|
-
};
|
|
55
|
-
const Five = exports.Five = Template.bind({});
|
|
56
|
-
Five.args = {
|
|
57
|
-
number: 5
|
|
58
|
-
};
|
|
59
|
-
const Six = exports.Six = Template.bind({});
|
|
60
|
-
Six.args = {
|
|
61
|
-
number: 6
|
|
62
|
-
};
|
|
63
|
-
const Seven = exports.Seven = Template.bind({});
|
|
64
|
-
Seven.args = {
|
|
65
|
-
number: 7
|
|
66
|
-
};
|
|
67
|
-
const Eight = exports.Eight = Template.bind({});
|
|
68
|
-
Eight.args = {
|
|
69
|
-
number: 8
|
|
70
|
-
};
|
|
71
|
-
const Nine = exports.Nine = Template.bind({});
|
|
72
|
-
Nine.args = {
|
|
73
|
-
number: 9
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// Example of invalid number
|
|
77
|
-
const InvalidNumber = exports.InvalidNumber = Template.bind({});
|
|
78
|
-
InvalidNumber.args = {
|
|
79
|
-
number: 10
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// Row of multiple numbers
|
|
83
|
-
const NumberRow = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
style: {
|
|
85
|
-
display: 'flex',
|
|
86
|
-
gap: '8px'
|
|
87
|
-
}
|
|
88
|
-
}, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map(num => /*#__PURE__*/_react.default.createElement(_Number.Number, {
|
|
89
|
-
key: num,
|
|
90
|
-
number: num
|
|
91
|
-
})));
|
|
92
|
-
exports.NumberRow = NumberRow;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.PaginationWithInput = exports.PaginationExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Pagination = require("./Pagination");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _InputWithButton = require("../Input/InputWithButton");
|
|
12
|
-
var _Button = require("../Button/Button.styles");
|
|
13
|
-
var _Card = require("../Card/Card.styles");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
var _default = exports.default = {
|
|
16
|
-
title: 'Components Library/Pagination',
|
|
17
|
-
component: _Pagination.Pagination,
|
|
18
|
-
argTypes: {
|
|
19
|
-
currentPage: {
|
|
20
|
-
type: 'number',
|
|
21
|
-
defaultValue: 0
|
|
22
|
-
},
|
|
23
|
-
totalCount: {
|
|
24
|
-
type: 'number',
|
|
25
|
-
defaultValue: 0
|
|
26
|
-
},
|
|
27
|
-
pageSize: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
defaultValue: 10
|
|
30
|
-
},
|
|
31
|
-
siblingCount: {
|
|
32
|
-
type: 'number',
|
|
33
|
-
defaultValue: 0
|
|
34
|
-
},
|
|
35
|
-
onPageChange: {
|
|
36
|
-
type: 'function',
|
|
37
|
-
required: true
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
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(_Pagination.Pagination, args)));
|
|
42
|
-
const TemplateWithInput = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, {
|
|
43
|
-
noPaddingHorizontal: true,
|
|
44
|
-
flex: true,
|
|
45
|
-
style: {
|
|
46
|
-
justifyContent: 'space-between',
|
|
47
|
-
flexWrap: 'wrap'
|
|
48
|
-
}
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_Pagination.Pagination, args), /*#__PURE__*/_react.default.createElement(_Card.Card, {
|
|
50
|
-
noPadding: true
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement(_Card.CardTitle, {
|
|
52
|
-
style: {
|
|
53
|
-
padding: '2px 20px'
|
|
54
|
-
}
|
|
55
|
-
}, "Page Size:"), /*#__PURE__*/_react.default.createElement(_InputWithButton.InputWithButton, {
|
|
56
|
-
id: "pageSize",
|
|
57
|
-
name: "pageSize",
|
|
58
|
-
type: "number",
|
|
59
|
-
placeholder: 'Page size'
|
|
60
|
-
// onChange={(e) => setinputPageSize(e.target.value)}
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.Button
|
|
62
|
-
// onClick={() => setpageSize(Number(inputPageSize))}
|
|
63
|
-
, null, "apply")))));
|
|
64
|
-
const PaginationExample = exports.PaginationExample = Template.bind({});
|
|
65
|
-
PaginationExample.args = {
|
|
66
|
-
currentPage: 1,
|
|
67
|
-
totalCount: 100,
|
|
68
|
-
pageSize: 10,
|
|
69
|
-
siblingCount: 1,
|
|
70
|
-
onPageChange: page => {
|
|
71
|
-
console.log('page changed to', page);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
const PaginationWithInput = exports.PaginationWithInput = TemplateWithInput.bind({});
|
|
75
|
-
PaginationWithInput.args = {
|
|
76
|
-
currentPage: 1,
|
|
77
|
-
totalCount: 100,
|
|
78
|
-
pageSize: 10,
|
|
79
|
-
siblingCount: 1,
|
|
80
|
-
onPageChange: page => {
|
|
81
|
-
console.log('page changed to', page);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutPageSizeControl = exports.SmallDataSet = exports.LargeDataSet = exports.Default = exports.CustomStyle = exports.CustomPageSizeLabel = exports.CustomListStyle = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _PaginationControls = _interopRequireDefault(require("./PaginationControls"));
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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
|
-
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; }
|
|
13
|
-
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; }
|
|
14
|
-
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; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
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); }
|
|
18
|
-
// Create mock data array
|
|
19
|
-
const mockItems = Array.from({
|
|
20
|
-
length: 15
|
|
21
|
-
}, (_, index) => ({
|
|
22
|
-
id: index + 1,
|
|
23
|
-
name: "Item ".concat(index + 1)
|
|
24
|
-
}));
|
|
25
|
-
var _default = exports.default = {
|
|
26
|
-
title: 'Components Library/Pagination',
|
|
27
|
-
component: _PaginationControls.default,
|
|
28
|
-
parameters: {
|
|
29
|
-
docs: {
|
|
30
|
-
description: {
|
|
31
|
-
component: 'Pagination controls component with customizable page size and navigation.'
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const Template = args => {
|
|
37
|
-
const [currentPage, setCurrentPage] = (0, _react.useState)(1);
|
|
38
|
-
const [pageSize, setPageSize] = (0, _react.useState)(10);
|
|
39
|
-
const [inputPageSize, setInputPageSize] = (0, _react.useState)(10);
|
|
40
|
-
|
|
41
|
-
// Get current items
|
|
42
|
-
const indexOfLastItem = currentPage * pageSize;
|
|
43
|
-
const indexOfFirstItem = indexOfLastItem - pageSize;
|
|
44
|
-
const currentItems = mockItems.slice(indexOfFirstItem, indexOfLastItem);
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
-
style: {
|
|
47
|
-
marginBottom: '20px'
|
|
48
|
-
}
|
|
49
|
-
}, "Showing items ", (currentPage - 1) * pageSize + 1, " to", ' ', Math.min(currentPage * pageSize, mockItems.length), " of", ' ', mockItems.length), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
-
style: {
|
|
51
|
-
marginBottom: '20px'
|
|
52
|
-
}
|
|
53
|
-
}, currentItems.map(item => /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
-
key: item.id,
|
|
55
|
-
style: {
|
|
56
|
-
padding: '8px',
|
|
57
|
-
borderBottom: '1px solid #eee'
|
|
58
|
-
}
|
|
59
|
-
}, item.name))), /*#__PURE__*/_react.default.createElement(_PaginationControls.default, _extends({}, args, {
|
|
60
|
-
currentPage: currentPage,
|
|
61
|
-
totalCount: mockItems.length,
|
|
62
|
-
pageSize: pageSize,
|
|
63
|
-
inputPageSize: inputPageSize,
|
|
64
|
-
onPageChange: setCurrentPage,
|
|
65
|
-
setPageSize: setPageSize,
|
|
66
|
-
setInputPageSize: setInputPageSize
|
|
67
|
-
})));
|
|
68
|
-
};
|
|
69
|
-
const Default = exports.Default = Template.bind({});
|
|
70
|
-
Default.args = {
|
|
71
|
-
scrollOffset: -100,
|
|
72
|
-
showPageSizeControl: true,
|
|
73
|
-
pageSizeLabel: 'Page Size:',
|
|
74
|
-
applyButtonText: 'Apply'
|
|
75
|
-
};
|
|
76
|
-
const WithoutPageSizeControl = exports.WithoutPageSizeControl = Template.bind({});
|
|
77
|
-
WithoutPageSizeControl.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
78
|
-
showPageSizeControl: false
|
|
79
|
-
});
|
|
80
|
-
const CustomPageSizeLabel = exports.CustomPageSizeLabel = Template.bind({});
|
|
81
|
-
CustomPageSizeLabel.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
82
|
-
pageSizeLabel: 'Items per page:',
|
|
83
|
-
applyButtonText: 'Set'
|
|
84
|
-
});
|
|
85
|
-
const CustomStyle = exports.CustomStyle = Template.bind({});
|
|
86
|
-
CustomStyle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
87
|
-
containerStyle: {
|
|
88
|
-
backgroundColor: '#f5f5f5',
|
|
89
|
-
padding: '20px',
|
|
90
|
-
borderRadius: '8px'
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
const SmallDataSet = exports.SmallDataSet = Template.bind({});
|
|
94
|
-
SmallDataSet.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
95
|
-
totalCount: 20
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// Example showing how the component handles a large dataset
|
|
99
|
-
const LargeDataSet = exports.LargeDataSet = Template.bind({});
|
|
100
|
-
LargeDataSet.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
101
|
-
totalCount: 1000
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
// Example with custom list style
|
|
105
|
-
const CustomListStyle = exports.CustomListStyle = Template.bind({});
|
|
106
|
-
CustomListStyle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
107
|
-
listStyle: {
|
|
108
|
-
backgroundColor: '#e6f7ff',
|
|
109
|
-
borderRadius: '4px',
|
|
110
|
-
padding: '8px'
|
|
111
|
-
}
|
|
112
|
-
});
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutSeparators = exports.WithTooltips = exports.WithPlaceholders = exports.WithCustomInfoSection = exports.WithCustomAmountSection = exports.WithBitcoin = exports.DetailsOnly = exports.Default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _PaymentDetailsCard = _interopRequireDefault(require("./PaymentDetailsCard"));
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
11
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
|
-
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
const StoryContainer = _styledComponents.default.div.withConfig({
|
|
15
|
-
displayName: "PaymentDetailsCardstories__StoryContainer",
|
|
16
|
-
componentId: "sc-1bzi48y-0"
|
|
17
|
-
})(["max-width:500px;padding:20px;background:", ";"], _colors.default.offWhite);
|
|
18
|
-
var _default = exports.default = {
|
|
19
|
-
title: 'Components Library/Payment/PaymentDetailsCard',
|
|
20
|
-
component: _PaymentDetailsCard.default,
|
|
21
|
-
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(StoryContainer, null, /*#__PURE__*/_react.default.createElement(Story, null))))]
|
|
22
|
-
};
|
|
23
|
-
const Default = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
24
|
-
title: "Payment Details",
|
|
25
|
-
amountSection: {
|
|
26
|
-
label: 'Amount to pay',
|
|
27
|
-
amount: 1250.5,
|
|
28
|
-
currency: 'USDC'
|
|
29
|
-
},
|
|
30
|
-
details: [{
|
|
31
|
-
label: 'Reference',
|
|
32
|
-
value: 'INV-2024-001234'
|
|
33
|
-
}, {
|
|
34
|
-
label: 'Date',
|
|
35
|
-
value: 'Dec 19, 2024'
|
|
36
|
-
}, {
|
|
37
|
-
label: 'Status',
|
|
38
|
-
value: 'Pending'
|
|
39
|
-
}]
|
|
40
|
-
});
|
|
41
|
-
exports.Default = Default;
|
|
42
|
-
const WithBitcoin = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
43
|
-
amountSection: {
|
|
44
|
-
label: 'Transfer amount',
|
|
45
|
-
amount: 0.054321,
|
|
46
|
-
currency: 'BTC'
|
|
47
|
-
},
|
|
48
|
-
details: [{
|
|
49
|
-
label: 'Network',
|
|
50
|
-
value: 'Bitcoin Mainnet'
|
|
51
|
-
}, {
|
|
52
|
-
label: 'Fee',
|
|
53
|
-
value: '0.00001 BTC'
|
|
54
|
-
}, {
|
|
55
|
-
label: 'Confirmations',
|
|
56
|
-
value: '3/6'
|
|
57
|
-
}]
|
|
58
|
-
});
|
|
59
|
-
exports.WithBitcoin = WithBitcoin;
|
|
60
|
-
const WithTooltips = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
61
|
-
amountSection: {
|
|
62
|
-
label: 'Investment amount',
|
|
63
|
-
amount: 50000,
|
|
64
|
-
currency: 'USDT'
|
|
65
|
-
},
|
|
66
|
-
details: [{
|
|
67
|
-
label: 'Token price',
|
|
68
|
-
value: '$1.25',
|
|
69
|
-
tooltip: 'Current token price at the time of investment'
|
|
70
|
-
}, {
|
|
71
|
-
label: 'Tokens received',
|
|
72
|
-
value: '40,000 TKN',
|
|
73
|
-
tooltip: 'Number of tokens you will receive'
|
|
74
|
-
}, {
|
|
75
|
-
label: 'Lock-up period',
|
|
76
|
-
value: '12 months',
|
|
77
|
-
tooltip: 'Tokens will be locked for this period'
|
|
78
|
-
}]
|
|
79
|
-
});
|
|
80
|
-
exports.WithTooltips = WithTooltips;
|
|
81
|
-
const WithPlaceholders = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
82
|
-
title: "Pending Payment",
|
|
83
|
-
amountSection: {
|
|
84
|
-
label: 'Amount',
|
|
85
|
-
amount: 500,
|
|
86
|
-
currency: 'USDC'
|
|
87
|
-
},
|
|
88
|
-
details: [{
|
|
89
|
-
label: 'Transaction ID',
|
|
90
|
-
value: null,
|
|
91
|
-
placeholder: 'Awaiting confirmation'
|
|
92
|
-
}, {
|
|
93
|
-
label: 'Recipient',
|
|
94
|
-
value: 'John Doe'
|
|
95
|
-
}, {
|
|
96
|
-
label: 'Status',
|
|
97
|
-
value: null,
|
|
98
|
-
placeholder: 'Processing...'
|
|
99
|
-
}]
|
|
100
|
-
});
|
|
101
|
-
exports.WithPlaceholders = WithPlaceholders;
|
|
102
|
-
const WithCustomInfoSection = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
103
|
-
title: "Order Confirmation",
|
|
104
|
-
amountSection: {
|
|
105
|
-
label: 'Total amount',
|
|
106
|
-
amount: 2500,
|
|
107
|
-
currency: 'USDC'
|
|
108
|
-
},
|
|
109
|
-
details: [{
|
|
110
|
-
label: 'Order ID',
|
|
111
|
-
value: 'ORD-789456'
|
|
112
|
-
}, {
|
|
113
|
-
label: 'Items',
|
|
114
|
-
value: '3 tokens'
|
|
115
|
-
}],
|
|
116
|
-
infoSection: /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
style: {
|
|
118
|
-
padding: '12px',
|
|
119
|
-
background: _colors.default.lightGrey,
|
|
120
|
-
borderRadius: '4px',
|
|
121
|
-
fontSize: '14px',
|
|
122
|
-
color: _colors.default.grey2
|
|
123
|
-
}
|
|
124
|
-
}, "\u24D8 Your payment will be processed within 24 hours. You will receive a confirmation email once complete.")
|
|
125
|
-
});
|
|
126
|
-
exports.WithCustomInfoSection = WithCustomInfoSection;
|
|
127
|
-
const WithoutSeparators = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
128
|
-
title: "Compact View",
|
|
129
|
-
amountSection: {
|
|
130
|
-
label: 'Amount',
|
|
131
|
-
amount: 100,
|
|
132
|
-
currency: 'USDC'
|
|
133
|
-
},
|
|
134
|
-
details: [{
|
|
135
|
-
label: 'From',
|
|
136
|
-
value: 'Wallet A'
|
|
137
|
-
}, {
|
|
138
|
-
label: 'To',
|
|
139
|
-
value: 'Wallet B'
|
|
140
|
-
}],
|
|
141
|
-
showSeparators: false
|
|
142
|
-
});
|
|
143
|
-
exports.WithoutSeparators = WithoutSeparators;
|
|
144
|
-
const DetailsOnly = () => /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
145
|
-
title: "Account Information",
|
|
146
|
-
details: [{
|
|
147
|
-
label: 'Account holder',
|
|
148
|
-
value: 'Jane Smith'
|
|
149
|
-
}, {
|
|
150
|
-
label: 'Account type',
|
|
151
|
-
value: 'Premium'
|
|
152
|
-
}, {
|
|
153
|
-
label: 'Member since',
|
|
154
|
-
value: 'Jan 2023'
|
|
155
|
-
}, {
|
|
156
|
-
label: 'Total investments',
|
|
157
|
-
value: '$125,000'
|
|
158
|
-
}]
|
|
159
|
-
});
|
|
160
|
-
exports.DetailsOnly = DetailsOnly;
|
|
161
|
-
const WithCustomAmountSection = () => {
|
|
162
|
-
const CustomAmount = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
-
style: {
|
|
164
|
-
textAlign: 'center',
|
|
165
|
-
padding: '20px 0'
|
|
166
|
-
}
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
168
|
-
style: {
|
|
169
|
-
fontSize: '14px',
|
|
170
|
-
color: _colors.default.grey2,
|
|
171
|
-
marginBottom: '8px'
|
|
172
|
-
}
|
|
173
|
-
}, "You are investing"), /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
-
style: {
|
|
175
|
-
fontSize: '48px',
|
|
176
|
-
fontWeight: '800',
|
|
177
|
-
color: _colors.default.black
|
|
178
|
-
}
|
|
179
|
-
}, "$10,000"), /*#__PURE__*/_react.default.createElement("div", {
|
|
180
|
-
style: {
|
|
181
|
-
fontSize: '14px',
|
|
182
|
-
color: _colors.default.freshGreen,
|
|
183
|
-
marginTop: '8px'
|
|
184
|
-
}
|
|
185
|
-
}, "\u2713 Best rate available"));
|
|
186
|
-
return /*#__PURE__*/_react.default.createElement(_PaymentDetailsCard.default, {
|
|
187
|
-
title: "Custom Investment",
|
|
188
|
-
amountSection: /*#__PURE__*/_react.default.createElement(CustomAmount, null),
|
|
189
|
-
details: [{
|
|
190
|
-
label: 'Exchange rate',
|
|
191
|
-
value: '1 USD = 0.92 EUR'
|
|
192
|
-
}, {
|
|
193
|
-
label: 'Fees',
|
|
194
|
-
value: '$0.00'
|
|
195
|
-
}]
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
exports.WithCustomAmountSection = WithCustomAmountSection;
|