@tap-payments/os-micro-frontend-shared 0.1.149 → 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.
Files changed (19) hide show
  1. package/build/components/AppServices/AppServices.js +2 -2
  2. package/build/components/TableCells/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.d.ts +3 -0
  3. package/build/components/TableCells/{SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js → CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.js} +3 -8
  4. package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.d.ts +6 -0
  5. package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.js +6 -0
  6. package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.d.ts +1 -0
  7. package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.js +1 -0
  8. package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +6 -0
  9. package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.js +1 -0
  10. package/build/components/TableCells/CustomCells/index.d.ts +1 -0
  11. package/build/components/TableCells/CustomCells/index.js +1 -0
  12. package/build/components/TableCells/index.d.ts +0 -1
  13. package/build/components/TableCells/index.js +0 -1
  14. package/package.json +2 -2
  15. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +0 -13
  16. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +0 -1
  17. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +0 -1
  18. package/build/components/TableCells/SheetViewCells/index.d.ts +0 -1
  19. package/build/components/TableCells/SheetViewCells/index.js +0 -1
@@ -54,7 +54,7 @@ function AppServices({ isMaximized, serviceCode, dimensions, appCode, services,
54
54
  setOpenDropdown(false);
55
55
  };
56
56
  const renderValue = (selected) => _jsx(StyledSelectComponent, { children: selected });
57
- return (_jsxs(Wrapper, Object.assign({ maximized: isMaximized }, { children: [!!(servicesList === null || servicesList === void 0 ? void 0 : servicesList.length) && !isDropdown && (_jsx(Box, Object.assign({ ref: servicesRef, display: "flex", gap: "8px", flexDirection: "row", sx: { userSelect: 'none' } }, { children: servicesList.map((service, idx) => (_jsx(ServiceItem, { activeCode: serviceCode, onClickServiceItem: onClickServiceItem, navigateToMenuItem: navigateToService, name: getNameText(service.name, i18n.language) || '', code: service.code }, `service-item-${service.code}-${idx}`))) }))), !!(servicesList === null || servicesList === void 0 ? void 0 : servicesList.length) && isDropdown && (_jsx(StyledSelect, Object.assign({ open: openDropdown, onClick: handleOpenDropdown, displayEmpty: true, inputProps: { 'aria-label': 'Without label' }, MenuProps: {
57
+ return (_jsxs(Wrapper, Object.assign({ maximized: isMaximized }, { children: [!!(services === null || services === void 0 ? void 0 : services.length) && !isDropdown && (_jsx(Box, Object.assign({ ref: servicesRef, display: "flex", gap: "8px", flexDirection: "row", sx: { userSelect: 'none' } }, { children: services.map((service, idx) => (_jsx(ServiceItem, { activeCode: serviceCode, onClickServiceItem: onClickServiceItem, navigateToMenuItem: navigateToService, name: getNameText(service.name, i18n.language) || '', code: service.code }, `service-item-${service.code}-${idx}`))) }))), !!(services === null || services === void 0 ? void 0 : services.length) && isDropdown && (_jsx(StyledSelect, Object.assign({ open: openDropdown, onClick: handleOpenDropdown, displayEmpty: true, inputProps: { 'aria-label': 'Without label' }, MenuProps: {
58
58
  anchorOrigin: {
59
59
  vertical: 40,
60
60
  horizontal: 83,
@@ -74,7 +74,7 @@ function AppServices({ isMaximized, serviceCode, dimensions, appCode, services,
74
74
  paddingTop: '0px !important',
75
75
  paddingBottom: '0px !important',
76
76
  },
77
- } }, { children: servicesList.map((service, idx) => {
77
+ } }, { children: services.map((service, idx) => {
78
78
  var _a;
79
79
  if (((_a = getNameText(service.name, i18n.language)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.toLowerCase())) {
80
80
  return null;
@@ -0,0 +1,3 @@
1
+ import { PaymentAgreementCellProps } from './type';
2
+ declare function PaymentAgreementCellSheet({ type, count, ...props }: PaymentAgreementCellProps): import("react/jsx-runtime").JSX.Element;
3
+ export default PaymentAgreementCellSheet;
@@ -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
- const paymentAgreementTypes = {
16
- SAVED_CARD: 'Card Agreement',
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 PaymentAgreementCell;
21
+ export default PaymentAgreementCellSheet;
@@ -0,0 +1,6 @@
1
+ export declare const paymentAgreementTypes: {
2
+ SAVED_CARD: string;
3
+ ORDER: string;
4
+ SUBSCRIPTION: string;
5
+ INSTALLMENT: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export const paymentAgreementTypes = {
2
+ SAVED_CARD: 'Card Agreement',
3
+ ORDER: 'Order',
4
+ SUBSCRIPTION: 'Subscription',
5
+ INSTALLMENT: 'Installment',
6
+ };
@@ -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
+ }
@@ -49,3 +49,4 @@ export * from './AppsCell';
49
49
  export * from './type';
50
50
  export * from './style';
51
51
  export * from './LeadStatusCell';
52
+ export * from './PaymentAgreementCell';
@@ -49,3 +49,4 @@ export * from './AppsCell';
49
49
  export * from './type';
50
50
  export * from './style';
51
51
  export * from './LeadStatusCell';
52
+ export * from './PaymentAgreementCell';
@@ -1,4 +1,3 @@
1
1
  export { default as TableCell } from './TableCell';
2
2
  export * from './CustomCells';
3
- export * from './SheetViewCells';
4
3
  export * from './type';
@@ -1,4 +1,3 @@
1
1
  export { default as TableCell } from './TableCell';
2
2
  export * from './CustomCells';
3
- export * from './SheetViewCells';
4
3
  export * from './type';
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.149",
5
- "testVersion": 2,
4
+ "version": "0.1.150",
5
+ "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -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';