@tap-payments/os-micro-frontend-shared 0.1.113 → 0.1.114-test.2
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/components/NestedDropdown/Dropdown.js +2 -2
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.d.ts +14 -0
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.js +21 -0
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.d.ts +1 -0
- package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.js +1 -0
- package/build/components/TableCells/SheetViewCells/index.d.ts +1 -0
- package/build/components/TableCells/SheetViewCells/index.js +1 -0
- package/build/components/VirtualTables/components/ColumnFilter/List/List.js +1 -1
- package/build/constants/table/cell/authorizationTableCellWidth.d.ts +7 -2
- package/build/constants/table/cell/authorizationTableCellWidth.js +7 -2
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/chargeTableCellWidth.js +3 -3
- package/build/constants/table/cell/destinationsTableCellWidth.d.ts +2 -2
- package/build/constants/table/cell/destinationsTableCellWidth.js +2 -2
- package/build/constants/table/cell/refundTableCellWidth.d.ts +2 -2
- package/build/constants/table/cell/refundTableCellWidth.js +2 -2
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Tap Payments
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tap Payments
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# os-micro-frontend-shared
|
|
2
|
-
|
|
3
|
-
## Publishing Workflow
|
|
4
|
-
|
|
5
|
-
1. Update version in package.json
|
|
6
|
-
2. Commit changes
|
|
7
|
-
3. Create and push a tag:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm version patch # or minor, major
|
|
11
|
-
git push origin main --tags
|
|
12
|
-
```
|
|
1
|
+
# os-micro-frontend-shared
|
|
2
|
+
|
|
3
|
+
## Publishing Workflow
|
|
4
|
+
|
|
5
|
+
1. Update version in package.json
|
|
6
|
+
2. Commit changes
|
|
7
|
+
3. Create and push a tag:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm version patch # or minor, major
|
|
11
|
+
git push origin main --tags
|
|
12
|
+
```
|
|
@@ -47,11 +47,11 @@ function Dropdown(_a) {
|
|
|
47
47
|
onSelect(changedChildren);
|
|
48
48
|
}
|
|
49
49
|
}, [selectedItem]);
|
|
50
|
-
return (_jsxs(DropdownStyled, Object.assign({ component: "article", className: `tap-dropdown ${className || ''}` }, props, { children: [_jsx(HeaderWrapper, { children: title && _jsx(TitleStyled, Object.assign({ component: "p" }, { children: title })) }), _jsx(ListWrapper, { children: list === null || list === void 0 ? void 0 : list.map((item) => (_jsx(MenuItem, Object.assign({ setSelected: ({ name, selected }) => {
|
|
50
|
+
return (_jsxs(DropdownStyled, Object.assign({ component: "article", className: `tap-dropdown ${className || ''}` }, props, { children: [_jsx(HeaderWrapper, { children: title && _jsx(TitleStyled, Object.assign({ component: "p" }, { children: title })) }), _jsx(ListWrapper, { children: list === null || list === void 0 ? void 0 : list.map((item, idx) => (_jsx(MenuItem, Object.assign({ setSelected: ({ name, selected }) => {
|
|
51
51
|
setSelected({ name, selected });
|
|
52
52
|
}, onSelect: (selectedChildren) => {
|
|
53
53
|
if (onSelect)
|
|
54
54
|
onSelect(selectedChildren);
|
|
55
|
-
}, placement: placement }, item), `${item.name}`))) }), footer && footer] })));
|
|
55
|
+
}, placement: placement }, item), `${item.name}-${idx}`))) }), footer && footer] })));
|
|
56
56
|
}
|
|
57
57
|
export default memo(Dropdown);
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CustomerSheetCell } from './CustomerSheetCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CustomerSheetCell } from './CustomerSheetCell';
|
|
@@ -56,6 +56,6 @@ function List({ onCloseDropdown, filter, styles }) {
|
|
|
56
56
|
bottom: 0,
|
|
57
57
|
backgroundColor: 'white',
|
|
58
58
|
zIndex: 99999,
|
|
59
|
-
} }, { children: [_jsx(CancelButton, Object.assign({ onClick: onClickCancel }, { children: t('cancel') })), _jsx(OkayButton, Object.assign({ onClick: onClickOkay }, { children: t('okay') }))] })) }));
|
|
59
|
+
} }, { children: [_jsx(CancelButton, Object.assign({ onClick: onClickCancel }, { children: t('cancel') }), "nested-dropdown-cancel"), _jsx(OkayButton, Object.assign({ onClick: onClickOkay }, { children: t('okay') }), "nested-dropdown-ok")] })) }));
|
|
60
60
|
}
|
|
61
61
|
export default memo(List);
|
|
@@ -37,7 +37,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
37
37
|
readonly customer: {
|
|
38
38
|
readonly default: "170px";
|
|
39
39
|
readonly text: "180px";
|
|
40
|
-
readonly sheet: "
|
|
40
|
+
readonly sheet: "600px";
|
|
41
41
|
};
|
|
42
42
|
readonly reference: {
|
|
43
43
|
readonly default: "95px";
|
|
@@ -172,7 +172,12 @@ export declare const authorizationTableCellWidth: {
|
|
|
172
172
|
readonly payment_issuers: {
|
|
173
173
|
readonly default: "150px";
|
|
174
174
|
readonly text: "150px";
|
|
175
|
-
readonly sheet: "
|
|
175
|
+
readonly sheet: "404px";
|
|
176
|
+
};
|
|
177
|
+
readonly issuer_response: {
|
|
178
|
+
readonly default: "70px";
|
|
179
|
+
readonly text: "70px";
|
|
180
|
+
readonly sheet: "270px";
|
|
176
181
|
};
|
|
177
182
|
readonly card_number: {
|
|
178
183
|
readonly default: "120px";
|
|
@@ -37,7 +37,7 @@ export const authorizationTableCellWidth = {
|
|
|
37
37
|
customer: {
|
|
38
38
|
default: '170px',
|
|
39
39
|
text: '180px',
|
|
40
|
-
sheet: '
|
|
40
|
+
sheet: '600px',
|
|
41
41
|
},
|
|
42
42
|
reference: {
|
|
43
43
|
default: '95px',
|
|
@@ -172,7 +172,12 @@ export const authorizationTableCellWidth = {
|
|
|
172
172
|
payment_issuers: {
|
|
173
173
|
default: '150px',
|
|
174
174
|
text: '150px',
|
|
175
|
-
sheet: '
|
|
175
|
+
sheet: '404px',
|
|
176
|
+
},
|
|
177
|
+
issuer_response: {
|
|
178
|
+
default: '70px',
|
|
179
|
+
text: '70px',
|
|
180
|
+
sheet: '270px',
|
|
176
181
|
},
|
|
177
182
|
card_number: {
|
|
178
183
|
default: '120px',
|
|
@@ -37,7 +37,7 @@ export declare const chargeTableCellWidth: {
|
|
|
37
37
|
readonly customer: {
|
|
38
38
|
readonly default: "180px";
|
|
39
39
|
readonly text: "180px";
|
|
40
|
-
readonly sheet: "
|
|
40
|
+
readonly sheet: "600px";
|
|
41
41
|
};
|
|
42
42
|
readonly source: {
|
|
43
43
|
readonly default: "114px";
|
|
@@ -62,7 +62,7 @@ export declare const chargeTableCellWidth: {
|
|
|
62
62
|
readonly payment_issuers: {
|
|
63
63
|
readonly default: "150px";
|
|
64
64
|
readonly text: "150px";
|
|
65
|
-
readonly sheet: "
|
|
65
|
+
readonly sheet: "404px";
|
|
66
66
|
};
|
|
67
67
|
readonly payment_method: {
|
|
68
68
|
readonly default: "150px";
|
|
@@ -117,7 +117,7 @@ export declare const chargeTableCellWidth: {
|
|
|
117
117
|
readonly issuer_response: {
|
|
118
118
|
readonly default: "70px";
|
|
119
119
|
readonly text: "70px";
|
|
120
|
-
readonly sheet: "
|
|
120
|
+
readonly sheet: "270px";
|
|
121
121
|
};
|
|
122
122
|
readonly acquirer_response: {
|
|
123
123
|
readonly default: "70px";
|
|
@@ -37,7 +37,7 @@ export const chargeTableCellWidth = {
|
|
|
37
37
|
customer: {
|
|
38
38
|
default: '180px',
|
|
39
39
|
text: '180px',
|
|
40
|
-
sheet: '
|
|
40
|
+
sheet: '600px',
|
|
41
41
|
},
|
|
42
42
|
source: {
|
|
43
43
|
default: '114px',
|
|
@@ -62,7 +62,7 @@ export const chargeTableCellWidth = {
|
|
|
62
62
|
payment_issuers: {
|
|
63
63
|
default: '150px',
|
|
64
64
|
text: '150px',
|
|
65
|
-
sheet: '
|
|
65
|
+
sheet: '404px',
|
|
66
66
|
},
|
|
67
67
|
payment_method: {
|
|
68
68
|
default: '150px',
|
|
@@ -117,7 +117,7 @@ export const chargeTableCellWidth = {
|
|
|
117
117
|
issuer_response: {
|
|
118
118
|
default: '70px',
|
|
119
119
|
text: '70px',
|
|
120
|
-
sheet: '
|
|
120
|
+
sheet: '270px',
|
|
121
121
|
},
|
|
122
122
|
acquirer_response: {
|
|
123
123
|
default: '70px',
|
|
@@ -32,7 +32,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
32
32
|
readonly customer: {
|
|
33
33
|
readonly default: "180px";
|
|
34
34
|
readonly text: "180px";
|
|
35
|
-
readonly sheet: "
|
|
35
|
+
readonly sheet: "600px";
|
|
36
36
|
};
|
|
37
37
|
readonly chargeId: {
|
|
38
38
|
readonly default: "225px";
|
|
@@ -117,7 +117,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
117
117
|
readonly payment_issuers: {
|
|
118
118
|
readonly default: "150px";
|
|
119
119
|
readonly text: "150px";
|
|
120
|
-
readonly sheet: "
|
|
120
|
+
readonly sheet: "404px";
|
|
121
121
|
};
|
|
122
122
|
readonly card_number: {
|
|
123
123
|
readonly default: "120px";
|
|
@@ -32,7 +32,7 @@ export const destinationsTableCellWidth = {
|
|
|
32
32
|
customer: {
|
|
33
33
|
default: '180px',
|
|
34
34
|
text: '180px',
|
|
35
|
-
sheet: '
|
|
35
|
+
sheet: '600px',
|
|
36
36
|
},
|
|
37
37
|
chargeId: {
|
|
38
38
|
default: '225px',
|
|
@@ -117,7 +117,7 @@ export const destinationsTableCellWidth = {
|
|
|
117
117
|
payment_issuers: {
|
|
118
118
|
default: '150px',
|
|
119
119
|
text: '150px',
|
|
120
|
-
sheet: '
|
|
120
|
+
sheet: '404px',
|
|
121
121
|
},
|
|
122
122
|
card_number: {
|
|
123
123
|
default: '120px',
|
|
@@ -27,7 +27,7 @@ export declare const refundTableCellWidth: {
|
|
|
27
27
|
readonly customer: {
|
|
28
28
|
readonly default: "180px";
|
|
29
29
|
readonly text: "180px";
|
|
30
|
-
readonly sheet: "
|
|
30
|
+
readonly sheet: "600px";
|
|
31
31
|
};
|
|
32
32
|
readonly device: {
|
|
33
33
|
readonly default: "100px";
|
|
@@ -57,7 +57,7 @@ export declare const refundTableCellWidth: {
|
|
|
57
57
|
readonly payment_issuers: {
|
|
58
58
|
readonly default: "150px";
|
|
59
59
|
readonly text: "150px";
|
|
60
|
-
readonly sheet: "
|
|
60
|
+
readonly sheet: "404px";
|
|
61
61
|
};
|
|
62
62
|
readonly payment_method: {
|
|
63
63
|
readonly default: "150px";
|
|
@@ -27,7 +27,7 @@ export const refundTableCellWidth = {
|
|
|
27
27
|
customer: {
|
|
28
28
|
default: '180px',
|
|
29
29
|
text: '180px',
|
|
30
|
-
sheet: '
|
|
30
|
+
sheet: '600px',
|
|
31
31
|
},
|
|
32
32
|
device: {
|
|
33
33
|
default: '100px',
|
|
@@ -57,7 +57,7 @@ export const refundTableCellWidth = {
|
|
|
57
57
|
payment_issuers: {
|
|
58
58
|
default: '150px',
|
|
59
59
|
text: '150px',
|
|
60
|
-
sheet: '
|
|
60
|
+
sheet: '404px',
|
|
61
61
|
},
|
|
62
62
|
payment_method: {
|
|
63
63
|
default: '150px',
|
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.114-test.2",
|
|
5
|
+
"testVersion": 2,
|
|
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
|
+
}
|