@tap-payments/os-micro-frontend-shared 0.1.111-test.2 → 0.1.111-test.4
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/build/components/ReceiptViewer/ReceiptViewer.js +234 -1
- package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/constant.js +2 -1
- package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/package.json +2 -2
|
@@ -118,5 +118,238 @@ export default function ReceiptViewer({ index, isWindowMinimized, windowOrder, o
|
|
|
118
118
|
background: 'transparent',
|
|
119
119
|
position: 'fixed',
|
|
120
120
|
width: '100%',
|
|
121
|
-
} }, { children: _jsx(Box, Object.assign({ sx: (theme) => ({ background: theme.palette.common.white, width: '100%', height: '100%' }) }, { children: "
|
|
121
|
+
} }, { children: _jsx(Box, Object.assign({ sx: (theme) => ({ background: theme.palette.common.white, width: '100%', height: '100%' }) }, { children: _jsx("div", { dangerouslySetInnerHTML: {
|
|
122
|
+
__html: `<!DOCTYPE html>
|
|
123
|
+
<html lang="en">
|
|
124
|
+
<head>
|
|
125
|
+
<meta charset="UTF-8" />
|
|
126
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
127
|
+
<title>Receipt - 204723251031076213</title>
|
|
128
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
129
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
130
|
+
<link
|
|
131
|
+
rel="stylesheet"
|
|
132
|
+
id="ls-google-fonts-css"
|
|
133
|
+
href="http://fonts.googleapis.com/css?family=Lato:100,300,regular,700,900"
|
|
134
|
+
type="text/css"
|
|
135
|
+
media="all"
|
|
136
|
+
/>
|
|
137
|
+
<style>
|
|
138
|
+
* {
|
|
139
|
+
padding: 0;
|
|
140
|
+
margin: 0;
|
|
141
|
+
font-family: inherit;
|
|
142
|
+
-webkit-text-size-adjust: 100%;
|
|
143
|
+
-ms-text-size-adjust: 100%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
body {
|
|
147
|
+
display: block;
|
|
148
|
+
margin: 0 auto;
|
|
149
|
+
clear: both;
|
|
150
|
+
font-family: Helvetica, Arial, sans-serif;
|
|
151
|
+
color: #4b4847;
|
|
152
|
+
background-color: #f6f6f6;
|
|
153
|
+
font-size: 14px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.root {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.app-container {
|
|
164
|
+
max-width: 502px;
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
min-height: 1vh;
|
|
169
|
+
margin: 16px auto;
|
|
170
|
+
transform: translateX(16px);
|
|
171
|
+
padding: 0 15px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media screen and (max-width: 600px) {
|
|
175
|
+
.app-container {
|
|
176
|
+
margin: 15px auto;
|
|
177
|
+
transform: translateX(0);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.d-flex {
|
|
182
|
+
display: flex;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.d-flex-center {
|
|
186
|
+
display: flex;
|
|
187
|
+
justify-content: center;
|
|
188
|
+
align-items: center;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.flex-column {
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.items-center {
|
|
196
|
+
align-items: center;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.justify-content-center {
|
|
200
|
+
justify-content: center;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.justify-content-between {
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.flex-center {
|
|
208
|
+
display: flex;
|
|
209
|
+
justify-content: center;
|
|
210
|
+
align-items: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.text-center {
|
|
214
|
+
text-align: center;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.status-panel {
|
|
218
|
+
background-color: #7702fe;
|
|
219
|
+
padding: 10px 0px;
|
|
220
|
+
border-radius: 3px;
|
|
221
|
+
font-size: 14px;
|
|
222
|
+
line-height: 18px;
|
|
223
|
+
font-family: Lato, Helvetica, Arial, sans-serif;
|
|
224
|
+
color: #f6f6f6;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.lined-row {
|
|
228
|
+
display: flex;
|
|
229
|
+
justify-content: space-between;
|
|
230
|
+
align-items: center;
|
|
231
|
+
padding: 10px 0;
|
|
232
|
+
border-bottom: 1px solid #4b4847;
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
}
|
|
235
|
+
</style>
|
|
236
|
+
</head>
|
|
237
|
+
<body>
|
|
238
|
+
<div class="root">
|
|
239
|
+
<main class="app-container">
|
|
240
|
+
<div
|
|
241
|
+
class="d-flex justify-content-between items-center"
|
|
242
|
+
style="padding: 15px 10px; font-size: 14px"
|
|
243
|
+
>
|
|
244
|
+
<span>Receipt 204723251031076213</span>
|
|
245
|
+
<span>1753627703467</span>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<div
|
|
249
|
+
class="status-panel d-flex-center"
|
|
250
|
+
style="font-family: Helvetica, Arial, sans-serif"
|
|
251
|
+
>
|
|
252
|
+
REFUNDED - VISA 46 SAR 2227251448073436099
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div
|
|
256
|
+
class="d-flex-center"
|
|
257
|
+
style="
|
|
258
|
+
padding: 10px 0px;
|
|
259
|
+
margin: 10px 0;
|
|
260
|
+
line-height: 18px;
|
|
261
|
+
color: black;
|
|
262
|
+
"
|
|
263
|
+
>
|
|
264
|
+
Reference ID - 2227251448073436099, Authorize ID - 255316
|
|
265
|
+
</div>
|
|
266
|
+
<!-- Paper -->
|
|
267
|
+
<section
|
|
268
|
+
style="
|
|
269
|
+
border-left: 1px solid #e9e9e9;
|
|
270
|
+
border-right: 1px solid #e9e9e9;
|
|
271
|
+
"
|
|
272
|
+
>
|
|
273
|
+
<!-- Total + Logo -->
|
|
274
|
+
<div
|
|
275
|
+
style="background-color: #e9e9e9"
|
|
276
|
+
class="d-flex flex-column items-center"
|
|
277
|
+
>
|
|
278
|
+
<div class="d-flex-center" style="padding-top: 30px">
|
|
279
|
+
<img
|
|
280
|
+
alt="Merchant Logo"
|
|
281
|
+
src=""
|
|
282
|
+
width="70"
|
|
283
|
+
height="70"
|
|
284
|
+
/>
|
|
285
|
+
</div>
|
|
286
|
+
<p style="font-size: 16px; padding-top: 5px"></p>
|
|
287
|
+
<p style="font-size: 36px; font-weight: 300; padding-top: 10px">
|
|
288
|
+
46 SAR
|
|
289
|
+
</p>
|
|
290
|
+
</div>
|
|
291
|
+
<div style="padding: 25px 5% 0 5%; background-color: #ffffff">
|
|
292
|
+
<!-- Total details + other info -->
|
|
293
|
+
<div class="d-flex flex-column">
|
|
294
|
+
<div class="lined-row">
|
|
295
|
+
<span>Refunded Amount </span>
|
|
296
|
+
<span>46 SAR</span>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<p
|
|
301
|
+
class="d-flex-center flex-column text-center"
|
|
302
|
+
style="margin-top: 40px"
|
|
303
|
+
>
|
|
304
|
+
<span
|
|
305
|
+
>Please retain this refund reference for your records.
|
|
306
|
+
</span>
|
|
307
|
+
<span>
|
|
308
|
+
Payers will get the refunded amount in their card bank account
|
|
309
|
+
within 3 to 15 business day(s) and in case there is any delay,
|
|
310
|
+
payers has to contact the bank using this refund reference ID.
|
|
311
|
+
</span>
|
|
312
|
+
</p>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="d-flex">
|
|
315
|
+
<img
|
|
316
|
+
class="img-max"
|
|
317
|
+
width="100%"
|
|
318
|
+
src="https://www.gotapnow.com/web/tmem/zigzag.png"
|
|
319
|
+
/>
|
|
320
|
+
</div>
|
|
321
|
+
</section>
|
|
322
|
+
<section
|
|
323
|
+
style="
|
|
324
|
+
font-size: 12px;
|
|
325
|
+
line-height: 18px;
|
|
326
|
+
color: #aaaaaa;
|
|
327
|
+
padding: 5px;
|
|
328
|
+
"
|
|
329
|
+
>
|
|
330
|
+
<p style="padding: 5px 0; text-align: center">
|
|
331
|
+
Please do not reply to this email. This mailbox is not monitored &
|
|
332
|
+
you will not receive a reply.
|
|
333
|
+
</p>
|
|
334
|
+
<p style="text-align: center">
|
|
335
|
+
<span style="display: block">
|
|
336
|
+
Tap is a brand of the International Trading Group.
|
|
337
|
+
</span>
|
|
338
|
+
<span style="display: block"> TM and copyright © 2025. </span>
|
|
339
|
+
<span style="display: block">All Rights Reserved. </span>
|
|
340
|
+
</p>
|
|
341
|
+
<div class="d-flex-center" style="padding: 10px 0 20px 0">
|
|
342
|
+
<a href="https://www.gotapnow.com"
|
|
343
|
+
><img
|
|
344
|
+
src="https://www.gotapnow.com/web/tmem/tap_gray.png"
|
|
345
|
+
height="50"
|
|
346
|
+
width="50"
|
|
347
|
+
/></a>
|
|
348
|
+
</div>
|
|
349
|
+
</section>
|
|
350
|
+
</main>
|
|
351
|
+
</div>
|
|
352
|
+
</body>
|
|
353
|
+
</html>`,
|
|
354
|
+
} }) })) }))] }) })) })) })));
|
|
122
355
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BadgeVariants } from '../../../CountBadge';
|
|
2
|
-
import { flagIcon, clockIcon, disputeIcon, redFlagIcon, cancelledIcon, closedFlagIcon, orangeFlagIcon, refundInitiatedIcon, viewInvoiceIcon, reverseActionIcon, voidedIcon, capturedDropdownIcon, destinationReversedTableIcon, brandPlaceholderIcon, usersIcon, clipboardIcon, jsonBlackIcon, } from '../../../../constants/index.js';
|
|
2
|
+
import { flagIcon, clockIcon, disputeIcon, redFlagIcon, cancelledIcon, closedFlagIcon, orangeFlagIcon, refundInitiatedIcon, viewInvoiceIcon, reverseActionIcon, voidedIcon, capturedDropdownIcon, destinationReversedTableIcon, brandPlaceholderIcon, usersIcon, clipboardIcon, jsonBlackIcon, receiptBillIcon, } from '../../../../constants/index.js';
|
|
3
3
|
export const flags = {
|
|
4
4
|
GRAY: { icon: closedFlagIcon, color: '#CFCFCF' },
|
|
5
5
|
ORANGE: { icon: orangeFlagIcon, color: '#FFD503' },
|
|
@@ -25,4 +25,5 @@ export const actionIcons = {
|
|
|
25
25
|
brand: brandPlaceholderIcon,
|
|
26
26
|
clipboard: clipboardIcon,
|
|
27
27
|
viewApi: jsonBlackIcon,
|
|
28
|
+
viewReceipt: receiptBillIcon,
|
|
28
29
|
};
|
|
@@ -13,7 +13,7 @@ export declare function useActionCell({ actions, isDropdownShown, onCloseDropdow
|
|
|
13
13
|
label: string;
|
|
14
14
|
onClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
15
15
|
onRightClick?: ((e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void) | undefined;
|
|
16
|
-
icon: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi";
|
|
16
|
+
icon: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | "viewReceipt";
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
isError?: boolean | undefined;
|
|
19
19
|
isSuccess?: boolean | undefined;
|
|
@@ -283,5 +283,5 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
283
283
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
284
284
|
srcSet?: string | undefined;
|
|
285
285
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
286
|
-
icon?: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | undefined;
|
|
286
|
+
icon?: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | "viewReceipt" | undefined;
|
|
287
287
|
}, {}, {}>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.111-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.111-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|