@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.
Files changed (198) hide show
  1. package/dist/components/Chips/Chip.styles.js +3 -2
  2. package/package.json +3 -2
  3. package/dist/components/2FA/EnterCode.stories.js +0 -35
  4. package/dist/components/2FA/disable-2fa-flow.stories.js +0 -31
  5. package/dist/components/2FA/enable-2fa-flow.stories.js +0 -31
  6. package/dist/components/2FA/login-with-otp-flow.stories.js +0 -31
  7. package/dist/components/2FA/main-flow.stories.js +0 -162
  8. package/dist/components/AccountBalance/AccountBalance.stories.js +0 -83
  9. package/dist/components/AdminDashboard/Table/ReactTable.stories.js +0 -913
  10. package/dist/components/AgreementItem/AgreementItem.stories.js +0 -105
  11. package/dist/components/AnalyticGraphs/Analytic.js +0 -541
  12. package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -25
  13. package/dist/components/BackButton/BackButton.stories.js +0 -32
  14. package/dist/components/Background/Background.stories.js +0 -75
  15. package/dist/components/BarChart/BarChart.js +0 -263
  16. package/dist/components/BarChart/BarChart.stories.js +0 -66
  17. package/dist/components/BarChart/BarChart.styles.js +0 -26
  18. package/dist/components/BarChartLegend/BarChartLegend.js +0 -79
  19. package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -21
  20. package/dist/components/BasicTable/BasicTable.stories.js +0 -59
  21. package/dist/components/BlogPost/BlogPost.stories.js +0 -160
  22. package/dist/components/Button/Button.stories.js +0 -146
  23. package/dist/components/Button/GlareButton.stories.js +0 -132
  24. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -42
  25. package/dist/components/ChartBox/ChartBox.js +0 -41
  26. package/dist/components/ChartBox/ChartBox.stories.js +0 -17
  27. package/dist/components/ChartBox/ChartBox.styles.js +0 -27
  28. package/dist/components/ChartBox/ChartBoxDistribution.js +0 -27
  29. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -18
  30. package/dist/components/ChartLegend/ChartLegend.stories.js +0 -90
  31. package/dist/components/Checkbox/Checkbox.stories.js +0 -88
  32. package/dist/components/Checklist/ChecklistCard.stories.js +0 -102
  33. package/dist/components/Checklist/UserChecklist.js +0 -184
  34. package/dist/components/Checklist/UserChecklist.stories.js +0 -317
  35. package/dist/components/Chips/Chip.stories.js +0 -36
  36. package/dist/components/Chips/ChipsWrapper.stories.js +0 -47
  37. package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -111
  38. package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -205
  39. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -70
  40. package/dist/components/DonutChart/DonutChart.stories.js +0 -54
  41. package/dist/components/FAQ/FAQ.stories.js +0 -76
  42. package/dist/components/Footer/Footer.stories.js +0 -49
  43. package/dist/components/Footer/FooterLayout.stories.js +0 -26
  44. package/dist/components/Footer/FooterMenu.stories.js +0 -113
  45. package/dist/components/Footer/mangopay.png +0 -0
  46. package/dist/components/Footer/mangopay.svg +0 -20
  47. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -69
  48. package/dist/components/Form/Form.stories.js +0 -32
  49. package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -27
  50. package/dist/components/Header/Header.stories.js +0 -192
  51. package/dist/components/Icon/Icon.stories.js +0 -108
  52. package/dist/components/InfoIcon/InfoIcon.stories.js +0 -299
  53. package/dist/components/InfoPanel/InfoPanel.js +0 -124
  54. package/dist/components/Input/DatePickerInput.stories.js +0 -87
  55. package/dist/components/Input/Input.stories.js +0 -217
  56. package/dist/components/Input/InputPassword.stories.js +0 -80
  57. package/dist/components/Input/InputWithButton.stories.js +0 -75
  58. package/dist/components/Input/MultiSelect.stories.js +0 -264
  59. package/dist/components/Input/OtpInput.stories.js +0 -57
  60. package/dist/components/Input/RangeInput.stories.js +0 -58
  61. package/dist/components/Input/SearchInput.stories.js +0 -366
  62. package/dist/components/Input/Select.stories.js +0 -478
  63. package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -135
  64. package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -52
  65. package/dist/components/KYCFlow/BasicInfo.js +0 -448
  66. package/dist/components/KYCFlow/Confirmation.js +0 -46
  67. package/dist/components/KYCFlow/DocumentFileUpload.js +0 -263
  68. package/dist/components/KYCFlow/DocumentScan.js +0 -75
  69. package/dist/components/KYCFlow/DocumentScanUpload.js +0 -251
  70. package/dist/components/KYCFlow/DocumentSelect.js +0 -118
  71. package/dist/components/KYCFlow/DocumentSuccess.js +0 -63
  72. package/dist/components/KYCFlow/DocumentUpload.js +0 -53
  73. package/dist/components/KYCFlow/DocumentVerificationType.js +0 -131
  74. package/dist/components/KYCFlow/FaceScan.js +0 -54
  75. package/dist/components/KYCFlow/FaceScanRecognition.js +0 -61
  76. package/dist/components/KYCFlow/FaceScanSuccess.js +0 -56
  77. package/dist/components/KYCFlow/Terms.js +0 -119
  78. package/dist/components/KYCFlow/_styles.js +0 -111
  79. package/dist/components/KYCFlow/index.js +0 -97
  80. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -29
  81. package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -58
  82. package/dist/components/Layout/Layout.stories.js +0 -60
  83. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -66
  84. package/dist/components/LearnMorePage/LearnMore.stories.js +0 -48
  85. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -62
  86. package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -30
  87. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -59
  88. package/dist/components/LoginModal/LoginModal.stories.js +0 -74
  89. package/dist/components/MatomoConnect/Matomo.js +0 -228
  90. package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -387
  91. package/dist/components/Modal/Modal.stories.js +0 -75
  92. package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +0 -150
  93. package/dist/components/Modal/PaymentModal.stories.js +0 -57
  94. package/dist/components/Modal/SideModal.stories.js +0 -342
  95. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -67
  96. package/dist/components/Newsletter/Newsletter.stories.js +0 -16
  97. package/dist/components/NotificationContext/NotificationContext.js +0 -141
  98. package/dist/components/Number/Number.stories.js +0 -92
  99. package/dist/components/Pagination/Pagination.stories.js +0 -83
  100. package/dist/components/Pagination/PaginationControls.stories.js +0 -112
  101. package/dist/components/Payment/PaymentDetailsCard.stories.js +0 -198
  102. package/dist/components/Payment/PaymentDisplay.stories.js +0 -302
  103. package/dist/components/Payment/TimerComponent.stories.js +0 -236
  104. package/dist/components/Process/Process.stories.js +0 -42
  105. package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -45
  106. package/dist/components/ProfileBox/ProfileBox.stories.js +0 -35
  107. package/dist/components/ProfileHeader/ProfileHeader.js +0 -252
  108. package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -65
  109. package/dist/components/ProfileStat/ProfileStat.stories.js +0 -66
  110. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -53
  111. package/dist/components/QRCode/QRCode.stories.js +0 -104
  112. package/dist/components/Radio/Radio.stories.js +0 -73
  113. package/dist/components/RefreshButton/RefreshButton.stories.js +0 -38
  114. package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
  115. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -443
  116. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
  117. package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
  118. package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -80
  119. package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
  120. package/dist/components/RegisterAlgorand/SelectProject.js +0 -89
  121. package/dist/components/RegisterAlgorand/_styles.js +0 -28
  122. package/dist/components/RegisterAlgorand/flow.js +0 -409
  123. package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
  124. package/dist/components/RegisterAlgorand/index.js +0 -48
  125. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -41
  126. package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -226
  127. package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -204
  128. package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
  129. package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
  130. package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
  131. package/dist/components/RegisterEthereum/EthFinish.js +0 -41
  132. package/dist/components/RegisterEthereum/EthIntro.js +0 -95
  133. package/dist/components/RegisterEthereum/_styles.js +0 -28
  134. package/dist/components/RegisterEthereum/index.js +0 -68
  135. package/dist/components/RegisterModal/RegisterModal.stories.js +0 -49
  136. package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -37
  137. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
  138. package/dist/components/RiskQuestionnaire/_styles.js +0 -15
  139. package/dist/components/SEO/SEO.stories.js +0 -60
  140. package/dist/components/SideLine/SideLine.stories.js +0 -28
  141. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
  142. package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
  143. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
  144. package/dist/components/SigningSubflow/SignSubIntro.js +0 -55
  145. package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
  146. package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
  147. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
  148. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
  149. package/dist/components/SigningSubflow/_styles.js +0 -34
  150. package/dist/components/SigningSubflow/index.js +0 -32
  151. package/dist/components/Slider/Slider.stories.js +0 -68
  152. package/dist/components/Snackbar/Snackbar.stories.js +0 -292
  153. package/dist/components/StatusTag/StatusTag.stories.js +0 -262
  154. package/dist/components/StepController/StepController.stories.js +0 -60
  155. package/dist/components/StepController/StepControllerProgress.stories.js +0 -49
  156. package/dist/components/StepsProgress/StepIndicator.stories.js +0 -153
  157. package/dist/components/StepsProgress/StepsProgress.stories.js +0 -49
  158. package/dist/components/Switch/Switch.stories.js +0 -81
  159. package/dist/components/Tabs/Tabs.stories.js +0 -36
  160. package/dist/components/TabsNav/TabNav.stories.js +0 -40
  161. package/dist/components/TabsNav/TabsNav.stories.js +0 -37
  162. package/dist/components/TeamOverview/TeamOverview.stories.js +0 -76
  163. package/dist/components/TermsModal/TermsModal.stories.js +0 -31
  164. package/dist/components/Text/Headline.stories.js +0 -48
  165. package/dist/components/Text/Text.stories.js +0 -70
  166. package/dist/components/TextLink/TextLink.stories.js +0 -35
  167. package/dist/components/Timeline/Timeline.stories.js +0 -393
  168. package/dist/components/ToDoList/ToDoList.stories.js +0 -133
  169. package/dist/components/ToDoList/ToDoListTask.stories.js +0 -70
  170. package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -55
  171. package/dist/components/TransactionDetails/TransactionDetailsTable.stories.js +0 -305
  172. package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -61
  173. package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -100
  174. package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +0 -59
  175. package/dist/components/headerHo/HeaderHo.stories.js +0 -35
  176. package/dist/components/icons/Arrow.stories.js +0 -42
  177. package/dist/components/icons/ArrowSimple.stories.js +0 -48
  178. package/dist/components/icons/Check.stories.js +0 -22
  179. package/dist/components/icons/Facebook.stories.js +0 -21
  180. package/dist/components/icons/Facebook_Logo.png +0 -0
  181. package/dist/components/icons/Info.stories.js +0 -16
  182. package/dist/components/icons/Instagram.stories.js +0 -21
  183. package/dist/components/icons/LI-In-Bug.png +0 -0
  184. package/dist/components/icons/LinkIcon.stories.js +0 -21
  185. package/dist/components/icons/LinkedIn.stories.js +0 -16
  186. package/dist/components/icons/Medium.stories.js +0 -16
  187. package/dist/components/icons/Reddit.stories.js +0 -21
  188. package/dist/components/icons/Share.stories.js +0 -16
  189. package/dist/components/icons/Telegram-Logo.png +0 -0
  190. package/dist/components/icons/Telegram.stories.js +0 -16
  191. package/dist/components/icons/Twitter.stories.js +0 -21
  192. package/dist/components/icons/X-logo-black.png +0 -0
  193. package/dist/components/icons/X.stories.js +0 -16
  194. package/dist/components/icons/Youtube.stories.js +0 -21
  195. package/dist/components/icons/youtube_social_circle_red.png +0 -0
  196. package/dist/components/logo/Logo.stories.js +0 -260
  197. package/dist/components/taxId/TaxId.stories.js +0 -50
  198. package/dist/components/video/Video.stories.js +0 -52
@@ -1,393 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.WithoutTooltips = exports.SimpleTimeline = exports.PendingState = exports.PayoutDeclined = exports.PayoutConfirmed = exports.LongCaptions = exports.InitiatedState = exports.DeclinedState = exports.CustomWidth = exports.CustomStyling = exports.CancelledState = exports.AllStates = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _Timeline = require("./Timeline");
9
- var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
- var _global = _interopRequireDefault(require("../../styles/global"));
11
- var _moment = require("../../utils/moment");
12
- var _colors = _interopRequireDefault(require("../../styles/colors"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- var _default = exports.default = {
15
- title: 'Components Library/Timeline',
16
- component: _Timeline.Timeline,
17
- argTypes: {
18
- steps: {
19
- control: 'object',
20
- description: 'Array of step objects with state, date, title, tooltip, and caption'
21
- },
22
- maxWidth: {
23
- control: 'text',
24
- description: 'Maximum width of the timeline container'
25
- },
26
- showInfoIcons: {
27
- control: 'boolean',
28
- description: 'Show/hide info icons for tooltips',
29
- defaultValue: true
30
- },
31
- infoIconPosition: {
32
- control: 'select',
33
- options: ['top', 'bottom', 'left', 'right'],
34
- description: 'Position of tooltip relative to info icon'
35
- },
36
- containerStyle: {
37
- control: 'object',
38
- description: 'Style object for the timeline container'
39
- }
40
- },
41
- 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)))]
42
- };
43
- const Template = args => /*#__PURE__*/_react.default.createElement(_Timeline.Timeline, args);
44
-
45
- // Pending state (first step active)
46
- const PendingState = exports.PendingState = Template.bind({});
47
- PendingState.args = {
48
- steps: [{
49
- id: 'pending',
50
- date: '2025-08-10T11:57:00',
51
- title: 'Pending',
52
- tooltip: 'Payout is pending your confirmation',
53
- caption: 'Payout is pending your confirmation.'
54
- }, {
55
- id: 'initiated',
56
- state: 'inactive',
57
- title: 'Initiated',
58
- tooltip: 'Payout initiation information'
59
- }, {
60
- id: 'payout-confirmed',
61
- state: 'inactive',
62
- title: 'Payout Confirmed',
63
- tooltip: 'Payout confirmation information'
64
- }, {
65
- id: 'paid-out',
66
- state: 'inactive',
67
- title: 'Paid out',
68
- tooltip: 'Payout completion information'
69
- }]
70
- };
71
-
72
- // Initiated state (first two steps completed/active)
73
- const InitiatedState = exports.InitiatedState = Template.bind({});
74
- InitiatedState.args = {
75
- steps: [{
76
- id: 'pending',
77
- state: 'completed',
78
- date: '2025-08-10T11:57:00',
79
- title: 'Pending',
80
- tooltip: 'Payout was pending'
81
- }, {
82
- id: 'initiated',
83
- date: '2025-08-12T11:57:00',
84
- title: 'Initiated',
85
- tooltip: 'Awaiting your confirmation',
86
- caption: 'Awaiting your confirmation.'
87
- }, {
88
- id: 'transferee-notified',
89
- state: 'inactive',
90
- title: 'Transferee notified',
91
- tooltip: 'Transferee notification information'
92
- }, {
93
- id: 'payout-confirmed',
94
- state: 'inactive',
95
- title: 'Payout Confirmed',
96
- tooltip: 'Payout confirmation information'
97
- }, {
98
- id: 'paid-out',
99
- state: 'inactive',
100
- title: 'Paid out',
101
- tooltip: 'Payout completion information'
102
- }]
103
- };
104
-
105
- // Payout Declined (failed state)
106
- const PayoutDeclined = exports.PayoutDeclined = Template.bind({});
107
- PayoutDeclined.args = {
108
- steps: [{
109
- id: 'pending',
110
- state: 'completed',
111
- date: '2025-08-10T11:57:00',
112
- title: 'Pending',
113
- tooltip: 'Payout was pending'
114
- }, {
115
- id: 'initiated',
116
- state: 'completed',
117
- date: '2025-08-12T11:57:00',
118
- title: 'Initiated',
119
- tooltip: 'Payout was initiated'
120
- }, {
121
- id: 'transferee-notified',
122
- state: 'completed',
123
- date: '2025-08-14T07:12:00',
124
- title: 'Transferee notified',
125
- tooltip: 'Transferee was notified',
126
- caption: 'Change text'
127
- }, {
128
- id: 'payout-declined',
129
- state: 'failed',
130
- date: '2025-08-16T21:39:00',
131
- title: 'Payout Declined',
132
- tooltip: 'Payout was declined',
133
- caption: 'Transferee declined the payout.'
134
- }, {
135
- id: 'paid-out',
136
- state: 'inactive',
137
- title: 'Paid out',
138
- tooltip: 'Payout completion information'
139
- }]
140
- };
141
-
142
- // Payout Confirmed (successful flow)
143
- const PayoutConfirmed = exports.PayoutConfirmed = Template.bind({});
144
- PayoutConfirmed.args = {
145
- steps: [{
146
- id: 'pending',
147
- state: 'completed',
148
- date: '2025-08-10T11:57:00',
149
- title: 'Pending',
150
- tooltip: 'Payout was pending'
151
- }, {
152
- id: 'initiated',
153
- state: 'completed',
154
- date: '2025-08-12T11:57:00',
155
- title: 'Initiated',
156
- tooltip: 'Payout was initiated'
157
- }, {
158
- id: 'transferee-notified',
159
- state: 'completed',
160
- date: '2025-08-14T07:12:00',
161
- title: 'Transferee notified',
162
- tooltip: 'Transferee was notified',
163
- caption: 'Change text'
164
- }, {
165
- id: 'payout-confirmed',
166
- state: 'completed',
167
- date: '2025-08-16T21:39:00',
168
- title: 'Payout Confirmed',
169
- tooltip: 'Payout was confirmed',
170
- caption: 'Transferee has confirmed the payout.'
171
- }, {
172
- id: 'paid-out',
173
- state: 'inactive',
174
- title: 'Paid out',
175
- tooltip: 'Payout completion information'
176
- }]
177
- };
178
-
179
- // All states example
180
- const AllStates = exports.AllStates = Template.bind({});
181
- AllStates.args = {
182
- steps: [{
183
- id: 'completed',
184
- state: 'completed',
185
- date: '2025-08-10T11:57:00',
186
- title: 'Completed Step',
187
- tooltip: 'This step is completed',
188
- caption: 'This step has been successfully completed.'
189
- }, {
190
- id: 'active',
191
- date: '2025-08-12T11:57:00',
192
- title: 'Active Step',
193
- tooltip: 'This step is currently active',
194
- caption: 'This step is currently in progress.'
195
- }, {
196
- id: 'pending',
197
- state: 'pending',
198
- date: '2025-08-14T07:12:00',
199
- title: 'Pending Step',
200
- tooltip: 'This step is pending',
201
- caption: 'This step is waiting to be processed.'
202
- }, {
203
- id: 'failed',
204
- state: 'failed',
205
- date: '2025-08-16T21:39:00',
206
- title: 'Failed Step',
207
- tooltip: 'This step has failed',
208
- caption: 'This step encountered an error.'
209
- }, {
210
- id: 'inactive',
211
- state: 'inactive',
212
- title: 'Inactive Step',
213
- tooltip: 'This step is not yet started'
214
- }]
215
- };
216
-
217
- // Simple timeline without dates
218
- const SimpleTimeline = exports.SimpleTimeline = Template.bind({});
219
- SimpleTimeline.args = {
220
- steps: [{
221
- id: 'step1',
222
- state: 'completed',
223
- title: 'Step 1',
224
- tooltip: 'First step completed'
225
- }, {
226
- id: 'step2',
227
- title: 'Step 2',
228
- tooltip: 'Second step in progress',
229
- caption: 'Currently working on this step.'
230
- }, {
231
- id: 'step3',
232
- state: 'inactive',
233
- title: 'Step 3',
234
- tooltip: 'Third step not started'
235
- }]
236
- };
237
-
238
- // Without tooltips
239
- const WithoutTooltips = exports.WithoutTooltips = Template.bind({});
240
- WithoutTooltips.args = {
241
- steps: [{
242
- id: 'step1',
243
- state: 'completed',
244
- date: '2025-08-10T11:57:00',
245
- title: 'Completed',
246
- caption: 'This step is done.'
247
- }, {
248
- id: 'step2',
249
- date: '2025-08-12T11:57:00',
250
- title: 'Active',
251
- caption: 'This step is in progress.'
252
- }, {
253
- id: 'step3',
254
- state: 'inactive',
255
- title: 'Upcoming'
256
- }],
257
- showInfoIcons: false
258
- };
259
-
260
- // Custom width
261
- const CustomWidth = exports.CustomWidth = Template.bind({});
262
- CustomWidth.args = {
263
- steps: [{
264
- id: 'step1',
265
- state: 'completed',
266
- date: '2025-08-10T11:57:00',
267
- title: 'Step 1',
268
- tooltip: 'First step'
269
- }, {
270
- id: 'step2',
271
- date: '2025-08-12T11:57:00',
272
- title: 'Step 2',
273
- tooltip: 'Second step'
274
- }, {
275
- id: 'step3',
276
- state: 'inactive',
277
- title: 'Step 3',
278
- tooltip: 'Third step'
279
- }],
280
- maxWidth: '600px'
281
- };
282
-
283
- // Long captions
284
- const LongCaptions = exports.LongCaptions = Template.bind({});
285
- LongCaptions.args = {
286
- steps: [{
287
- id: 'step1',
288
- state: 'completed',
289
- date: '2025-08-10T11:57:00',
290
- title: 'Document Upload',
291
- tooltip: 'Document upload information',
292
- caption: 'All required documents have been successfully uploaded and verified by our team. The verification process took approximately 2 business days.'
293
- }, {
294
- id: 'step2',
295
- date: '2025-08-12T11:57:00',
296
- title: 'Review Process',
297
- tooltip: 'Review process information',
298
- caption: 'Your application is currently under review. Our compliance team is examining all submitted documents to ensure they meet our requirements. This typically takes 3-5 business days.'
299
- }, {
300
- id: 'step3',
301
- state: 'inactive',
302
- title: 'Approval',
303
- tooltip: 'Approval information',
304
- caption: 'Once the review is complete, you will receive a notification about the approval status of your application.'
305
- }]
306
- };
307
-
308
- // Custom styling
309
- const CustomStyling = exports.CustomStyling = Template.bind({});
310
- CustomStyling.args = {
311
- steps: [{
312
- id: 'step1',
313
- state: 'completed',
314
- date: '2025-08-10T11:57:00',
315
- title: 'Step 1',
316
- tooltip: 'First step'
317
- }, {
318
- id: 'step2',
319
- date: '2025-08-12T11:57:00',
320
- title: 'Step 2',
321
- tooltip: 'Second step'
322
- }, {
323
- id: 'step3',
324
- state: 'inactive',
325
- title: 'Step 3',
326
- tooltip: 'Third step'
327
- }],
328
- containerStyle: {
329
- padding: '20px',
330
- backgroundColor: _colors.default.grey3,
331
- borderRadius: '8px'
332
- }
333
- };
334
-
335
- // Cancelled state
336
- const CancelledState = exports.CancelledState = Template.bind({});
337
- CancelledState.args = {
338
- steps: [{
339
- id: 'step1',
340
- state: 'completed',
341
- date: '2025-08-10T11:57:00',
342
- title: 'Started',
343
- tooltip: 'Process started'
344
- }, {
345
- id: 'step2',
346
- state: 'completed',
347
- date: '2025-08-12T11:57:00',
348
- title: 'In Progress',
349
- tooltip: 'Process in progress'
350
- }, {
351
- id: 'step3',
352
- state: 'cancelled',
353
- date: '2025-08-14T07:12:00',
354
- title: 'Cancelled',
355
- tooltip: 'Process was cancelled',
356
- caption: 'The process was cancelled by the user.'
357
- }, {
358
- id: 'step4',
359
- state: 'inactive',
360
- title: 'Completed',
361
- tooltip: 'Completion information'
362
- }]
363
- };
364
-
365
- // Declined state
366
- const DeclinedState = exports.DeclinedState = Template.bind({});
367
- DeclinedState.args = {
368
- steps: [{
369
- id: 'step1',
370
- state: 'completed',
371
- date: '2025-08-10T11:57:00',
372
- title: 'Submitted',
373
- tooltip: 'Application submitted'
374
- }, {
375
- id: 'step2',
376
- state: 'completed',
377
- date: '2025-08-12T11:57:00',
378
- title: 'Under Review',
379
- tooltip: 'Application under review'
380
- }, {
381
- id: 'step3',
382
- state: 'declined',
383
- date: '2025-08-14T07:12:00',
384
- title: 'Declined',
385
- tooltip: 'Application declined',
386
- caption: 'Your application was declined due to incomplete information.'
387
- }, {
388
- id: 'step4',
389
- state: 'inactive',
390
- title: 'Approved',
391
- tooltip: 'Approval information'
392
- }]
393
- };
@@ -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?