@tap-payments/os-micro-frontend-shared 0.1.106-test.1-test.2 → 0.1.106-test.1-test.2-test.3-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/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
2
2
|
interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
|
|
3
|
-
type
|
|
4
|
-
count
|
|
3
|
+
type?: keyof typeof paymentAgreementTypes;
|
|
4
|
+
count?: number;
|
|
5
5
|
}
|
|
6
|
+
declare const paymentAgreementTypes: {
|
|
7
|
+
SAVED_CARD: string;
|
|
8
|
+
ORDER: string;
|
|
9
|
+
SUBSCRIPTION: string;
|
|
10
|
+
INSTALLMENT: string;
|
|
11
|
+
};
|
|
6
12
|
declare function PaymentAgreementCell({ type, count, ...props }: PaymentAgreementCellProps): import("react/jsx-runtime").JSX.Element;
|
|
7
13
|
export default PaymentAgreementCell;
|
package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js
CHANGED
|
@@ -20,6 +20,6 @@ const paymentAgreementTypes = {
|
|
|
20
20
|
};
|
|
21
21
|
function PaymentAgreementCell(_a) {
|
|
22
22
|
var { type, count } = _a, props = __rest(_a, ["type", "count"]);
|
|
23
|
-
return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [_jsx(StatusChipWithCopy, Object.assign({ copyText: type, unknownText: "noPaymentAgreement" }, props, { chipIndex: 0 }, { children: paymentAgreementTypes[type]
|
|
23
|
+
return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [_jsx(StatusChipWithCopy, Object.assign({ copyText: type, unknownText: "noPaymentAgreement" }, props, { chipIndex: 0 }, { children: type ? paymentAgreementTypes[type] : type })), count && (_jsx(StatusChipWithCopy, Object.assign({ copyText: count.toString() }, props, { chipIndex: 1, minWidth: "20px" }, { children: count })))] })));
|
|
24
24
|
}
|
|
25
25
|
export default PaymentAgreementCell;
|
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.106-test.1-test.2",
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.106-test.1-test.2-test.3-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|