@tap-payments/os-micro-frontend-shared 0.1.117 → 0.1.119-test.1
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/TableCells/SheetViewCells/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/index.js +0 -1
- package/build/constants/apps.d.ts +3 -0
- package/build/constants/apps.js +1 -0
- package/build/constants/table/cell/authorizationTableCellWidth.d.ts +20 -0
- package/build/constants/table/cell/authorizationTableCellWidth.js +20 -0
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +20 -0
- package/build/constants/table/cell/chargeTableCellWidth.js +20 -0
- package/build/constants/table/cell/destinationsTableCellWidth.d.ts +20 -0
- package/build/constants/table/cell/destinationsTableCellWidth.js +20 -0
- package/build/constants/table/cell/refundTableCellWidth.d.ts +20 -0
- package/build/constants/table/cell/refundTableCellWidth.js +20 -0
- package/package.json +3 -3
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.d.ts +0 -14
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.js +0 -21
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.js +0 -1
package/build/constants/apps.js
CHANGED
|
@@ -39,6 +39,26 @@ export declare const authorizationTableCellWidth: {
|
|
|
39
39
|
readonly text: "180px";
|
|
40
40
|
readonly sheet: "600px";
|
|
41
41
|
};
|
|
42
|
+
readonly customer_id: {
|
|
43
|
+
readonly default: "180px";
|
|
44
|
+
readonly text: "180px";
|
|
45
|
+
readonly sheet: "270px";
|
|
46
|
+
};
|
|
47
|
+
readonly customer_name: {
|
|
48
|
+
readonly default: "180px";
|
|
49
|
+
readonly text: "180px";
|
|
50
|
+
readonly sheet: "155px";
|
|
51
|
+
};
|
|
52
|
+
readonly customer_email: {
|
|
53
|
+
readonly default: "180px";
|
|
54
|
+
readonly text: "180px";
|
|
55
|
+
readonly sheet: "200px";
|
|
56
|
+
};
|
|
57
|
+
readonly customer_phone: {
|
|
58
|
+
readonly default: "180px";
|
|
59
|
+
readonly text: "180px";
|
|
60
|
+
readonly sheet: "150px";
|
|
61
|
+
};
|
|
42
62
|
readonly reference: {
|
|
43
63
|
readonly default: "95px";
|
|
44
64
|
readonly text: "180px";
|
|
@@ -39,6 +39,26 @@ export const authorizationTableCellWidth = {
|
|
|
39
39
|
text: '180px',
|
|
40
40
|
sheet: '600px',
|
|
41
41
|
},
|
|
42
|
+
customer_id: {
|
|
43
|
+
default: '180px',
|
|
44
|
+
text: '180px',
|
|
45
|
+
sheet: '270px',
|
|
46
|
+
},
|
|
47
|
+
customer_name: {
|
|
48
|
+
default: '180px',
|
|
49
|
+
text: '180px',
|
|
50
|
+
sheet: '155px',
|
|
51
|
+
},
|
|
52
|
+
customer_email: {
|
|
53
|
+
default: '180px',
|
|
54
|
+
text: '180px',
|
|
55
|
+
sheet: '200px',
|
|
56
|
+
},
|
|
57
|
+
customer_phone: {
|
|
58
|
+
default: '180px',
|
|
59
|
+
text: '180px',
|
|
60
|
+
sheet: '150px',
|
|
61
|
+
},
|
|
42
62
|
reference: {
|
|
43
63
|
default: '95px',
|
|
44
64
|
text: '180px',
|
|
@@ -39,6 +39,26 @@ export declare const chargeTableCellWidth: {
|
|
|
39
39
|
readonly text: "180px";
|
|
40
40
|
readonly sheet: "600px";
|
|
41
41
|
};
|
|
42
|
+
readonly customer_id: {
|
|
43
|
+
readonly default: "180px";
|
|
44
|
+
readonly text: "180px";
|
|
45
|
+
readonly sheet: "270px";
|
|
46
|
+
};
|
|
47
|
+
readonly customer_name: {
|
|
48
|
+
readonly default: "180px";
|
|
49
|
+
readonly text: "180px";
|
|
50
|
+
readonly sheet: "155px";
|
|
51
|
+
};
|
|
52
|
+
readonly customer_email: {
|
|
53
|
+
readonly default: "180px";
|
|
54
|
+
readonly text: "180px";
|
|
55
|
+
readonly sheet: "200px";
|
|
56
|
+
};
|
|
57
|
+
readonly customer_phone: {
|
|
58
|
+
readonly default: "180px";
|
|
59
|
+
readonly text: "180px";
|
|
60
|
+
readonly sheet: "150px";
|
|
61
|
+
};
|
|
42
62
|
readonly source: {
|
|
43
63
|
readonly default: "114px";
|
|
44
64
|
readonly text: "125px";
|
|
@@ -39,6 +39,26 @@ export const chargeTableCellWidth = {
|
|
|
39
39
|
text: '180px',
|
|
40
40
|
sheet: '600px',
|
|
41
41
|
},
|
|
42
|
+
customer_id: {
|
|
43
|
+
default: '180px',
|
|
44
|
+
text: '180px',
|
|
45
|
+
sheet: '270px',
|
|
46
|
+
},
|
|
47
|
+
customer_name: {
|
|
48
|
+
default: '180px',
|
|
49
|
+
text: '180px',
|
|
50
|
+
sheet: '155px',
|
|
51
|
+
},
|
|
52
|
+
customer_email: {
|
|
53
|
+
default: '180px',
|
|
54
|
+
text: '180px',
|
|
55
|
+
sheet: '200px',
|
|
56
|
+
},
|
|
57
|
+
customer_phone: {
|
|
58
|
+
default: '180px',
|
|
59
|
+
text: '180px',
|
|
60
|
+
sheet: '150px',
|
|
61
|
+
},
|
|
42
62
|
source: {
|
|
43
63
|
default: '114px',
|
|
44
64
|
text: '125px',
|
|
@@ -34,6 +34,26 @@ export declare const destinationsTableCellWidth: {
|
|
|
34
34
|
readonly text: "180px";
|
|
35
35
|
readonly sheet: "600px";
|
|
36
36
|
};
|
|
37
|
+
readonly customer_id: {
|
|
38
|
+
readonly default: "180px";
|
|
39
|
+
readonly text: "180px";
|
|
40
|
+
readonly sheet: "270px";
|
|
41
|
+
};
|
|
42
|
+
readonly customer_name: {
|
|
43
|
+
readonly default: "180px";
|
|
44
|
+
readonly text: "180px";
|
|
45
|
+
readonly sheet: "155px";
|
|
46
|
+
};
|
|
47
|
+
readonly customer_email: {
|
|
48
|
+
readonly default: "180px";
|
|
49
|
+
readonly text: "180px";
|
|
50
|
+
readonly sheet: "200px";
|
|
51
|
+
};
|
|
52
|
+
readonly customer_phone: {
|
|
53
|
+
readonly default: "180px";
|
|
54
|
+
readonly text: "180px";
|
|
55
|
+
readonly sheet: "150px";
|
|
56
|
+
};
|
|
37
57
|
readonly chargeId: {
|
|
38
58
|
readonly default: "225px";
|
|
39
59
|
readonly text: "225px";
|
|
@@ -34,6 +34,26 @@ export const destinationsTableCellWidth = {
|
|
|
34
34
|
text: '180px',
|
|
35
35
|
sheet: '600px',
|
|
36
36
|
},
|
|
37
|
+
customer_id: {
|
|
38
|
+
default: '180px',
|
|
39
|
+
text: '180px',
|
|
40
|
+
sheet: '270px',
|
|
41
|
+
},
|
|
42
|
+
customer_name: {
|
|
43
|
+
default: '180px',
|
|
44
|
+
text: '180px',
|
|
45
|
+
sheet: '155px',
|
|
46
|
+
},
|
|
47
|
+
customer_email: {
|
|
48
|
+
default: '180px',
|
|
49
|
+
text: '180px',
|
|
50
|
+
sheet: '200px',
|
|
51
|
+
},
|
|
52
|
+
customer_phone: {
|
|
53
|
+
default: '180px',
|
|
54
|
+
text: '180px',
|
|
55
|
+
sheet: '150px',
|
|
56
|
+
},
|
|
37
57
|
chargeId: {
|
|
38
58
|
default: '225px',
|
|
39
59
|
text: '225px',
|
|
@@ -29,6 +29,26 @@ export declare const refundTableCellWidth: {
|
|
|
29
29
|
readonly text: "180px";
|
|
30
30
|
readonly sheet: "600px";
|
|
31
31
|
};
|
|
32
|
+
readonly customer_id: {
|
|
33
|
+
readonly default: "180px";
|
|
34
|
+
readonly text: "180px";
|
|
35
|
+
readonly sheet: "270px";
|
|
36
|
+
};
|
|
37
|
+
readonly customer_name: {
|
|
38
|
+
readonly default: "180px";
|
|
39
|
+
readonly text: "180px";
|
|
40
|
+
readonly sheet: "155px";
|
|
41
|
+
};
|
|
42
|
+
readonly customer_email: {
|
|
43
|
+
readonly default: "180px";
|
|
44
|
+
readonly text: "180px";
|
|
45
|
+
readonly sheet: "200px";
|
|
46
|
+
};
|
|
47
|
+
readonly customer_phone: {
|
|
48
|
+
readonly default: "180px";
|
|
49
|
+
readonly text: "180px";
|
|
50
|
+
readonly sheet: "150px";
|
|
51
|
+
};
|
|
32
52
|
readonly device: {
|
|
33
53
|
readonly default: "100px";
|
|
34
54
|
readonly text: "200px";
|
|
@@ -29,6 +29,26 @@ export const refundTableCellWidth = {
|
|
|
29
29
|
text: '180px',
|
|
30
30
|
sheet: '600px',
|
|
31
31
|
},
|
|
32
|
+
customer_id: {
|
|
33
|
+
default: '180px',
|
|
34
|
+
text: '180px',
|
|
35
|
+
sheet: '270px',
|
|
36
|
+
},
|
|
37
|
+
customer_name: {
|
|
38
|
+
default: '180px',
|
|
39
|
+
text: '180px',
|
|
40
|
+
sheet: '155px',
|
|
41
|
+
},
|
|
42
|
+
customer_email: {
|
|
43
|
+
default: '180px',
|
|
44
|
+
text: '180px',
|
|
45
|
+
sheet: '200px',
|
|
46
|
+
},
|
|
47
|
+
customer_phone: {
|
|
48
|
+
default: '180px',
|
|
49
|
+
text: '180px',
|
|
50
|
+
sheet: '150px',
|
|
51
|
+
},
|
|
32
52
|
device: {
|
|
33
53
|
default: '100px',
|
|
34
54
|
text: '200px',
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.119-test.1",
|
|
5
|
+
"testVersion": 1,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -136,4 +136,4 @@
|
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"registry": "https://registry.npmjs.org/"
|
|
138
138
|
}
|
|
139
|
-
}
|
|
139
|
+
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
2
|
-
interface CustomerSheetCellProps extends Pick<StatusChipWithCopyProps, 'selectionProps'> {
|
|
3
|
-
id?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
phone?: string;
|
|
7
|
-
isFirstNameShown?: boolean;
|
|
8
|
-
isLastNameShown?: boolean;
|
|
9
|
-
isEmailShown?: boolean;
|
|
10
|
-
isPhoneShown?: boolean;
|
|
11
|
-
isIdShown?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare function CustomerSheetCell({ id, name, email, phone, isFirstNameShown, isLastNameShown, isEmailShown, isPhoneShown, isIdShown, ...props }: CustomerSheetCellProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default CustomerSheetCell;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box } from '@mui/material';
|
|
14
|
-
import { StatusChipWithCopy } from '../../../index.js';
|
|
15
|
-
import { isArabic } from '../../../../utils/index.js';
|
|
16
|
-
function CustomerSheetCell(_a) {
|
|
17
|
-
var { id, name, email, phone, isFirstNameShown = true, isLastNameShown = true, isEmailShown = true, isPhoneShown = true, isIdShown = true } = _a, props = __rest(_a, ["id", "name", "email", "phone", "isFirstNameShown", "isLastNameShown", "isEmailShown", "isPhoneShown", "isIdShown"]);
|
|
18
|
-
const isArabicname = isArabic(name);
|
|
19
|
-
return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [name && (isFirstNameShown || isLastNameShown) && (_jsx(StatusChipWithCopy, Object.assign({ disableAnimation: true, copyText: name, chipIndex: 0 }, props, { children: _jsx("span", Object.assign({ "data-is-arabic": isArabicname }, { children: name })) }))), isEmailShown && email && (_jsx(StatusChipWithCopy, Object.assign({ copyText: email, chipIndex: 1 }, props, { children: email }))), isPhoneShown && phone && (_jsx(StatusChipWithCopy, Object.assign({ copyText: phone, chipIndex: 2 }, props, { children: phone }))), isIdShown && id && (_jsx(StatusChipWithCopy, Object.assign({ copyText: id, chipIndex: 3 }, props, { children: id })))] })));
|
|
20
|
-
}
|
|
21
|
-
export default CustomerSheetCell;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CustomerSheetCell } from './CustomerSheetCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CustomerSheetCell } from './CustomerSheetCell';
|