@stokr/components-library 2.3.65-beta.10 → 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/Chips/Chip.styles.js +3 -2
- 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,299 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithHTML = exports.RedArrow = exports.Positions = exports.NoMargins = exports.MultipleTooltips = exports.LongText = exports.InContext = exports.Disabled = exports.Default = exports.CustomChildren = exports.ArrowColorComparison = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InfoIcon = require("./InfoIcon");
|
|
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/Icons/Info Icon',
|
|
14
|
-
component: _InfoIcon.InfoIcon,
|
|
15
|
-
argTypes: {
|
|
16
|
-
title: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'Text content to display in the tooltip',
|
|
19
|
-
control: 'text'
|
|
20
|
-
},
|
|
21
|
-
html: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
description: 'HTML content to display in the tooltip (takes precedence over title)',
|
|
24
|
-
control: 'text'
|
|
25
|
-
},
|
|
26
|
-
position: {
|
|
27
|
-
type: 'select',
|
|
28
|
-
options: ['top', 'bottom', 'left', 'right'],
|
|
29
|
-
description: 'Position of the tooltip relative to the icon',
|
|
30
|
-
control: 'select'
|
|
31
|
-
},
|
|
32
|
-
noMargin: {
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
description: 'Remove all margins from the container',
|
|
35
|
-
control: 'boolean'
|
|
36
|
-
},
|
|
37
|
-
noMarginLeft: {
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
description: 'Remove left margin from the container',
|
|
40
|
-
control: 'boolean'
|
|
41
|
-
},
|
|
42
|
-
noMarginRight: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
description: 'Remove right margin from the container',
|
|
45
|
-
control: 'boolean'
|
|
46
|
-
},
|
|
47
|
-
noIcon: {
|
|
48
|
-
type: 'boolean',
|
|
49
|
-
description: 'Hide the info icon and show children instead',
|
|
50
|
-
control: 'boolean'
|
|
51
|
-
},
|
|
52
|
-
disabled: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
description: 'Disable the tooltip',
|
|
55
|
-
control: 'boolean'
|
|
56
|
-
},
|
|
57
|
-
fullWidth: {
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
description: 'Make the container full width',
|
|
60
|
-
control: 'boolean'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
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)))]
|
|
64
|
-
}; // Default example
|
|
65
|
-
const Default = exports.Default = {
|
|
66
|
-
args: {
|
|
67
|
-
title: 'This is a helpful tooltip with some information',
|
|
68
|
-
position: 'bottom'
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// All positions
|
|
73
|
-
const Positions = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
-
style: {
|
|
75
|
-
display: 'flex',
|
|
76
|
-
gap: '40px',
|
|
77
|
-
flexWrap: 'wrap',
|
|
78
|
-
padding: '60px'
|
|
79
|
-
}
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
-
style: {
|
|
82
|
-
textAlign: 'center'
|
|
83
|
-
}
|
|
84
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
85
|
-
position: "top",
|
|
86
|
-
title: "Tooltip on top"
|
|
87
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
-
style: {
|
|
89
|
-
marginTop: '10px',
|
|
90
|
-
fontSize: '12px'
|
|
91
|
-
}
|
|
92
|
-
}, "Top")), /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
-
style: {
|
|
94
|
-
textAlign: 'center'
|
|
95
|
-
}
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
97
|
-
position: "bottom",
|
|
98
|
-
title: "Tooltip on bottom"
|
|
99
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
style: {
|
|
101
|
-
marginTop: '10px',
|
|
102
|
-
fontSize: '12px'
|
|
103
|
-
}
|
|
104
|
-
}, "Bottom")), /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
-
style: {
|
|
106
|
-
textAlign: 'center'
|
|
107
|
-
}
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
109
|
-
position: "left",
|
|
110
|
-
title: "Tooltip on left"
|
|
111
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
style: {
|
|
113
|
-
marginTop: '10px',
|
|
114
|
-
fontSize: '12px'
|
|
115
|
-
}
|
|
116
|
-
}, "Left")), /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
style: {
|
|
118
|
-
textAlign: 'center'
|
|
119
|
-
}
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
121
|
-
position: "right",
|
|
122
|
-
title: "Tooltip on right"
|
|
123
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
-
style: {
|
|
125
|
-
marginTop: '10px',
|
|
126
|
-
fontSize: '12px'
|
|
127
|
-
}
|
|
128
|
-
}, "Right")));
|
|
129
|
-
|
|
130
|
-
// With HTML content
|
|
131
|
-
exports.Positions = Positions;
|
|
132
|
-
const WithHTML = exports.WithHTML = {
|
|
133
|
-
args: {
|
|
134
|
-
html: '<strong>Bold text</strong> and <em>italic text</em><br/>With a line break',
|
|
135
|
-
position: 'bottom'
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// With long text
|
|
140
|
-
const LongText = exports.LongText = {
|
|
141
|
-
args: {
|
|
142
|
-
title: 'This is a very long tooltip text that demonstrates how the tooltip handles longer content. It should wrap nicely and maintain good readability.',
|
|
143
|
-
position: 'bottom'
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// No margins
|
|
148
|
-
const NoMargins = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
-
style: {
|
|
150
|
-
display: 'flex',
|
|
151
|
-
gap: '20px',
|
|
152
|
-
alignItems: 'center'
|
|
153
|
-
}
|
|
154
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, "Text before"), /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
155
|
-
title: "No margin",
|
|
156
|
-
noMargin: true
|
|
157
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, "Text after"));
|
|
158
|
-
|
|
159
|
-
// Custom children (no icon)
|
|
160
|
-
exports.NoMargins = NoMargins;
|
|
161
|
-
const CustomChildren = exports.CustomChildren = {
|
|
162
|
-
args: {
|
|
163
|
-
title: 'Custom content instead of icon',
|
|
164
|
-
noIcon: true,
|
|
165
|
-
children: /*#__PURE__*/_react.default.createElement("span", {
|
|
166
|
-
style: {
|
|
167
|
-
textDecoration: 'underline'
|
|
168
|
-
}
|
|
169
|
-
}, "Hover me")
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
// Disabled
|
|
174
|
-
const Disabled = exports.Disabled = {
|
|
175
|
-
args: {
|
|
176
|
-
title: 'This tooltip is disabled',
|
|
177
|
-
disabled: true
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// In context example
|
|
182
|
-
const InContext = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
183
|
-
style: {
|
|
184
|
-
padding: '40px',
|
|
185
|
-
maxWidth: '500px'
|
|
186
|
-
}
|
|
187
|
-
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
188
|
-
style: {
|
|
189
|
-
display: 'inline-flex',
|
|
190
|
-
alignItems: 'center',
|
|
191
|
-
gap: '8px'
|
|
192
|
-
}
|
|
193
|
-
}, "Investment Amount", /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
194
|
-
title: "Enter the amount you wish to invest in this project. Minimum investment is \u20AC1,000.",
|
|
195
|
-
position: "top"
|
|
196
|
-
})), /*#__PURE__*/_react.default.createElement("input", {
|
|
197
|
-
type: "number",
|
|
198
|
-
placeholder: "Enter amount",
|
|
199
|
-
style: {
|
|
200
|
-
marginTop: '10px',
|
|
201
|
-
padding: '8px',
|
|
202
|
-
width: '100%',
|
|
203
|
-
border: '1px solid #ccc',
|
|
204
|
-
borderRadius: '4px'
|
|
205
|
-
}
|
|
206
|
-
}), /*#__PURE__*/_react.default.createElement("p", {
|
|
207
|
-
style: {
|
|
208
|
-
marginTop: '20px',
|
|
209
|
-
fontSize: '14px',
|
|
210
|
-
color: '#666'
|
|
211
|
-
}
|
|
212
|
-
}, "Need help?", ' ', /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
213
|
-
title: "Contact our support team for assistance",
|
|
214
|
-
noMarginLeft: true,
|
|
215
|
-
noMarginRight: true
|
|
216
|
-
})));
|
|
217
|
-
|
|
218
|
-
// Multiple tooltips
|
|
219
|
-
exports.InContext = InContext;
|
|
220
|
-
const MultipleTooltips = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
221
|
-
style: {
|
|
222
|
-
padding: '40px'
|
|
223
|
-
}
|
|
224
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
225
|
-
style: {
|
|
226
|
-
marginBottom: '20px'
|
|
227
|
-
}
|
|
228
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
229
|
-
title: "First tooltip",
|
|
230
|
-
position: "top"
|
|
231
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
232
|
-
style: {
|
|
233
|
-
marginLeft: '10px'
|
|
234
|
-
}
|
|
235
|
-
}, "First example")), /*#__PURE__*/_react.default.createElement("div", {
|
|
236
|
-
style: {
|
|
237
|
-
marginBottom: '20px'
|
|
238
|
-
}
|
|
239
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
240
|
-
title: "Second tooltip",
|
|
241
|
-
position: "bottom"
|
|
242
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
243
|
-
style: {
|
|
244
|
-
marginLeft: '10px'
|
|
245
|
-
}
|
|
246
|
-
}, "Second example")), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
247
|
-
html: "<strong>HTML</strong> tooltip with <em>formatting</em>",
|
|
248
|
-
position: "right"
|
|
249
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
250
|
-
style: {
|
|
251
|
-
marginLeft: '10px'
|
|
252
|
-
}
|
|
253
|
-
}, "Third example with HTML")));
|
|
254
|
-
|
|
255
|
-
// Custom arrow color (red)
|
|
256
|
-
exports.MultipleTooltips = MultipleTooltips;
|
|
257
|
-
const RedArrow = exports.RedArrow = {
|
|
258
|
-
args: {
|
|
259
|
-
title: 'This tooltip has a red arrow instead of the default blue',
|
|
260
|
-
position: 'bottom',
|
|
261
|
-
arrowColor: '#ee220d' // Using red from colors
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
// Comparison: Blue vs Red arrow
|
|
266
|
-
const ArrowColorComparison = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
267
|
-
style: {
|
|
268
|
-
padding: '40px',
|
|
269
|
-
display: 'flex',
|
|
270
|
-
gap: '40px',
|
|
271
|
-
alignItems: 'center'
|
|
272
|
-
}
|
|
273
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
274
|
-
style: {
|
|
275
|
-
textAlign: 'center'
|
|
276
|
-
}
|
|
277
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
278
|
-
title: "Default blue arrow",
|
|
279
|
-
position: "bottom"
|
|
280
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
281
|
-
style: {
|
|
282
|
-
marginTop: '10px',
|
|
283
|
-
fontSize: '12px'
|
|
284
|
-
}
|
|
285
|
-
}, "Blue (default)")), /*#__PURE__*/_react.default.createElement("div", {
|
|
286
|
-
style: {
|
|
287
|
-
textAlign: 'center'
|
|
288
|
-
}
|
|
289
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
|
|
290
|
-
title: "Custom red arrow",
|
|
291
|
-
position: "bottom",
|
|
292
|
-
arrowColor: "#ee220d"
|
|
293
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
294
|
-
style: {
|
|
295
|
-
marginTop: '10px',
|
|
296
|
-
fontSize: '12px'
|
|
297
|
-
}
|
|
298
|
-
}, "Red (custom)")));
|
|
299
|
-
exports.ArrowColorComparison = ArrowColorComparison;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ImagesCarousel = ImagesCarousel;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _Slider = _interopRequireDefault(require("../Slider/Slider"));
|
|
10
|
-
var _Slider2 = require("../Slider/Slider.styles");
|
|
11
|
-
var _CaptialRaisedSummary = _interopRequireDefault(require("../CapitalRaisedSummary/CaptialRaisedSummary"));
|
|
12
|
-
var _Grid = require("../Grid/Grid.styles");
|
|
13
|
-
var _InvestmentStat = _interopRequireDefault(require("../InvestmentStat/InvestmentStat"));
|
|
14
|
-
var _parseBlockContent = _interopRequireDefault(require("../../utils/parseBlockContent"));
|
|
15
|
-
var _ProjectContext = require("context/Project/ProjectContext");
|
|
16
|
-
var _video = require("../video");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
-
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); }
|
|
24
|
-
function ImagesCarousel(params) {
|
|
25
|
-
const [shouldRenderPage, setShouldRenderPage] = (0, _react.useState)(false);
|
|
26
|
-
const [carouselItems, setCarouselItems] = (0, _react.useState)([]);
|
|
27
|
-
// const [venture, setVenture] = useState({})
|
|
28
|
-
let {
|
|
29
|
-
project
|
|
30
|
-
} = (0, _react.useContext)(_ProjectContext.ProjectContext);
|
|
31
|
-
const [isVideoOpen, setIsVideoOpen] = (0, _react.useState)(false);
|
|
32
|
-
const [videoUri, setVideoUri] = (0, _react.useState)('');
|
|
33
|
-
(0, _react.useEffect)(() => {
|
|
34
|
-
const carouselFiles = generateCarouselItems(project.blocks.media);
|
|
35
|
-
setCarouselItems(carouselFiles);
|
|
36
|
-
setShouldRenderPage(true);
|
|
37
|
-
}, []);
|
|
38
|
-
const generateCarouselItems = media => {
|
|
39
|
-
const mediaParsed = (0, _parseBlockContent.default)(media);
|
|
40
|
-
const carouselFiles = [];
|
|
41
|
-
const tempObj = {};
|
|
42
|
-
|
|
43
|
-
// Find only carousel items
|
|
44
|
-
Object.keys(mediaParsed).forEach(key => {
|
|
45
|
-
if (key.includes('carouselFiles')) {
|
|
46
|
-
const index = key.split('carouselFiles_')[1].split('_')[0];
|
|
47
|
-
|
|
48
|
-
// Group video and its thumbnail
|
|
49
|
-
if (key.includes('videoThumbnail')) {
|
|
50
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), {}, {
|
|
51
|
-
videoThumbnail: mediaParsed[key]
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), mediaParsed[key]);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Object.keys(tempObj).forEach(key => {
|
|
59
|
-
carouselFiles.push(tempObj[key]);
|
|
60
|
-
});
|
|
61
|
-
return carouselFiles;
|
|
62
|
-
};
|
|
63
|
-
const openVideo = videoUri => {
|
|
64
|
-
setIsVideoOpen(true);
|
|
65
|
-
setVideoUri(videoUri);
|
|
66
|
-
};
|
|
67
|
-
const closeVideo = () => {
|
|
68
|
-
setIsVideoOpen(false);
|
|
69
|
-
setVideoUri();
|
|
70
|
-
};
|
|
71
|
-
return shouldRenderPage ? /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_video.Video, {
|
|
72
|
-
src: videoUri,
|
|
73
|
-
isVideoOpen: true,
|
|
74
|
-
noPlayButton: true,
|
|
75
|
-
play: isVideoOpen,
|
|
76
|
-
onClose: closeVideo
|
|
77
|
-
}), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
78
|
-
part: 2,
|
|
79
|
-
full: 3
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider.default, {
|
|
81
|
-
dots: true
|
|
82
|
-
}, carouselItems.map(item => {
|
|
83
|
-
if (item.type === 'image') {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
85
|
-
key: item.uri
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
87
|
-
src: item.uri,
|
|
88
|
-
alt: ""
|
|
89
|
-
}));
|
|
90
|
-
} else if (item.type === 'video') {
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
92
|
-
key: item.uri
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
94
|
-
src: item.videoThumbnail.uri,
|
|
95
|
-
alt: ""
|
|
96
|
-
}), /*#__PURE__*/_react.default.createElement(_video.PlayButton, {
|
|
97
|
-
onClick: () => openVideo(item.uri)
|
|
98
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
99
|
-
alt: "Play video",
|
|
100
|
-
src: require('../video/img/play-btn.svg')
|
|
101
|
-
})));
|
|
102
|
-
}
|
|
103
|
-
})), /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.default, {
|
|
104
|
-
capital: project.totalSold,
|
|
105
|
-
multiProgressBar: project.multiProgressBar
|
|
106
|
-
})), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
107
|
-
part: 1,
|
|
108
|
-
full: 3
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
110
|
-
content: project.sharePercentage,
|
|
111
|
-
title: project.name === 'aquarius' ? 'Target return' : project.shareType,
|
|
112
|
-
tooltip: project.name === 'aquarius' ? 'The target yield per annum in accordance with the Offering Memorandum. Please read carefully the Offering Memorandum before investing' : project.name === 'mazzanti' ? 'The Securities represent the right to 50% of the sale proceeds for the sale of 1 (one) Millecavalli R car (minus any taxes).' : project.name === 'blockstream-mining' ? 'The percentage represents all Bitcoins mined over a period of 36 months in accordance with the Terms and Conditions. Please carefully read the Terms and Conditions before investing.' : "The percentage of the venture\u2019s future ".concat(project.name === 'infinite-fleet' ? 'profits' : 'revenues', " to be distributed in accordance with the Offering Terms. Please carefully read the Offering Terms and Offering Document\n before investing."),
|
|
113
|
-
borderTop: true
|
|
114
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
115
|
-
content: project.name === 'aquarius' ? 'OPEN-ENDED' : project.name === 'infinite-fleet' ? 'TBD' : project.daysLeft,
|
|
116
|
-
title: project.name === 'aquarius' ? 'fund typ' : project.daysLeftText,
|
|
117
|
-
borderTop: true
|
|
118
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
119
|
-
content: project.name === 'aquarius' ? 'PROFESSIONAL' : project.investmentCount.toString(),
|
|
120
|
-
title: "Investors",
|
|
121
|
-
primaryBg: true
|
|
122
|
-
}))) : '';
|
|
123
|
-
}
|
|
124
|
-
var _default = exports.default = ImagesCarousel;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.DatePickerInputFilled = exports.DatePickerInputEmpty = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _DatePickerInput = require("./DatePickerInput");
|
|
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
|
-
// import { date } from '@storybook/addon-knobs'
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/Inputs/Date Picker Input',
|
|
15
|
-
component: _DatePickerInput.DatePickerInput,
|
|
16
|
-
argTypes: {
|
|
17
|
-
id: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
name: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
label: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
defaultValue: ''
|
|
28
|
-
},
|
|
29
|
-
placeholder: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
defaultValue: ''
|
|
32
|
-
},
|
|
33
|
-
value: {
|
|
34
|
-
type: 'date',
|
|
35
|
-
control: {
|
|
36
|
-
type: 'object'
|
|
37
|
-
},
|
|
38
|
-
// control: { type: 'date' },
|
|
39
|
-
required: true
|
|
40
|
-
},
|
|
41
|
-
//oneOf string, date, required,
|
|
42
|
-
error: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
defaultValue: false
|
|
45
|
-
},
|
|
46
|
-
touched: {
|
|
47
|
-
type: 'boolean',
|
|
48
|
-
defaultValue: false
|
|
49
|
-
},
|
|
50
|
-
dashboard: {
|
|
51
|
-
type: 'boolean',
|
|
52
|
-
defaultValue: false
|
|
53
|
-
},
|
|
54
|
-
checkLabel: {
|
|
55
|
-
type: 'function'
|
|
56
|
-
},
|
|
57
|
-
onChange: {
|
|
58
|
-
action: 'change',
|
|
59
|
-
type: 'function',
|
|
60
|
-
required: true
|
|
61
|
-
},
|
|
62
|
-
onBlur: {
|
|
63
|
-
action: 'blur',
|
|
64
|
-
type: 'function'
|
|
65
|
-
},
|
|
66
|
-
onFocus: {
|
|
67
|
-
action: 'hasFocus',
|
|
68
|
-
type: 'function'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
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(_DatePickerInput.DatePickerInput, args)));
|
|
73
|
-
const DatePickerInputFilled = exports.DatePickerInputFilled = Template.bind({});
|
|
74
|
-
DatePickerInputFilled.args = {
|
|
75
|
-
label: 'label date',
|
|
76
|
-
value: '2022-1-4'
|
|
77
|
-
};
|
|
78
|
-
const DatePickerInputEmpty = exports.DatePickerInputEmpty = Template.bind({});
|
|
79
|
-
DatePickerInputEmpty.args = {
|
|
80
|
-
label: 'label date'
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
//doublecheck:
|
|
84
|
-
|
|
85
|
-
//works fine if clicking on element itself to change date,
|
|
86
|
-
//but changes to "value" in SB controls print UNIX timestamp
|
|
87
|
-
//value: new Date(2022, 0, 1, 0, 4) also not working interactively
|