@tap-payments/os-micro-frontend-shared 0.1.148 → 0.1.150
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/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.d.ts +3 -0
- package/build/components/TableCells/{SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js → CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.js} +3 -8
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.d.ts +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.js +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +6 -0
- package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.js +1 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.js +1 -0
- package/build/components/TableCells/index.d.ts +0 -1
- package/build/components/TableCells/index.js +0 -1
- package/package.json +1 -1
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +0 -13
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +0 -1
- package/build/components/TableCells/SheetViewCells/index.d.ts +0 -1
- package/build/components/TableCells/SheetViewCells/index.js +0 -1
|
@@ -12,15 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Box } from '@mui/material';
|
|
14
14
|
import { StatusChipWithCopy } from '../../../index.js';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ORDER: 'Order',
|
|
18
|
-
SUBSCRIPTION: 'Subscription',
|
|
19
|
-
INSTALLMENT: 'Installment',
|
|
20
|
-
};
|
|
21
|
-
function PaymentAgreementCell(_a) {
|
|
15
|
+
import { paymentAgreementTypes } from './constant';
|
|
16
|
+
function PaymentAgreementCellSheet(_a) {
|
|
22
17
|
var { type, count } = _a, props = __rest(_a, ["type", "count"]);
|
|
23
18
|
const countText = count === null || count === void 0 ? void 0 : count.toString();
|
|
24
19
|
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 })), countText && (_jsx(StatusChipWithCopy, Object.assign({ copyText: countText }, props, { chipIndex: 1, minWidth: "38px" }, { children: countText })))] })));
|
|
25
20
|
}
|
|
26
|
-
export default
|
|
21
|
+
export default PaymentAgreementCellSheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCellSheet } from './PaymentAgreementCellSheet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCellSheet } from './PaymentAgreementCellSheet';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { paymentAgreementTypes } from './constant';
|
|
2
|
+
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
3
|
+
export interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
|
|
4
|
+
type?: keyof typeof paymentAgreementTypes;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
2
|
-
interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
|
|
3
|
-
type?: keyof typeof paymentAgreementTypes;
|
|
4
|
-
count?: number;
|
|
5
|
-
}
|
|
6
|
-
declare const paymentAgreementTypes: {
|
|
7
|
-
SAVED_CARD: string;
|
|
8
|
-
ORDER: string;
|
|
9
|
-
SUBSCRIPTION: string;
|
|
10
|
-
INSTALLMENT: string;
|
|
11
|
-
};
|
|
12
|
-
declare function PaymentAgreementCell({ type, count, ...props }: PaymentAgreementCellProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default PaymentAgreementCell;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreementCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreementCell';
|