@tap-payments/os-micro-frontend-shared 0.0.256 → 0.0.257

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.
@@ -554,9 +554,9 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
554
554
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
555
555
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
556
556
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
557
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
557
558
  src?: string | undefined;
558
559
  alt?: string | undefined;
559
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
560
560
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
561
561
  useMap?: string | undefined;
562
562
  loading?: "eager" | "lazy" | undefined;
@@ -272,9 +272,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
272
272
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
273
273
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
274
274
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
275
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
275
276
  src?: string | undefined;
276
277
  alt?: string | undefined;
277
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
278
278
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
279
279
  useMap?: string | undefined;
280
280
  loading?: "eager" | "lazy" | undefined;
@@ -273,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
273
273
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
274
274
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
275
275
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
276
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
276
277
  src?: string | undefined;
277
278
  alt?: string | undefined;
278
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
279
279
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
280
280
  useMap?: string | undefined;
281
281
  loading?: "eager" | "lazy" | undefined;
@@ -262,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
262
262
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
263
263
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
264
264
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
265
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
265
266
  src?: string | undefined;
266
267
  alt?: string | undefined;
267
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
268
268
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
269
269
  useMap?: string | undefined;
270
270
  loading?: "eager" | "lazy" | undefined;
@@ -25,7 +25,7 @@ function TableRow({ row, columns, index, rowProps, isSheetView, selectedCell = n
25
25
  isColumnSelected,
26
26
  isLastRow,
27
27
  });
28
- return (_jsx(StyledCell, Object.assign({ component: "div", "data-testid": "TableRow_TableCell", "data-column-id": column.id, "data-column-width": column.width, "data-column-width-used": column.width, "data-column-align": column.align, "data-column-order": column.order, "data-column-header": typeof column.header === 'string' ? column.header : 'component', "data-column-sortable": !!column.sortable, "data-column-filterable": !!column.filter, isFirst: column.id === columns[0].id, isLast: column.id === columns[columns.length - 1].id, onClick: (event) => onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(index, columnIdStr, event), sx: Object.assign(Object.assign({ width: column.width, minWidth: column.width, textAlign: column.align, justifyContent: column.align === 'right' ? 'flex-end' : 'flex-start', cursor: onCellClick ? 'pointer' : 'default' }, selectionStyles), column.cellStyle), isSheetView: isSheetView, isSelected: isCellSelected }, { children: renderCell(column) }), `${column.id}-${colIndex}`));
28
+ return (_jsx(StyledCell, Object.assign({ component: "div", "data-testid": "TableRow_TableCell", "data-column-id": column.id, "data-column-width": column.width, "data-column-width-used": column.width, "data-column-align": column.align, "data-column-order": column.order, "data-column-header": typeof column.header === 'string' ? column.header : 'component', "data-column-sortable": !!column.sortable, "data-column-filterable": !!column.filter, isFirst: column.id === columns[0].id, isLast: column.id === columns[columns.length - 1].id, onClick: (event) => onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(index, columnIdStr, event), sx: Object.assign(Object.assign({ width: column.width, minWidth: column.width, textAlign: column.align, justifyContent: column.align === 'right' ? 'flex-end' : 'flex-start', cursor: onCellClick ? 'pointer' : 'default' }, selectionStyles), column.cellStyle), isSheetView: isSheetView, isSelected: isCellSelected && (column === null || column === void 0 ? void 0 : column.isDefaultPinned) }, { children: renderCell(column) }), `${column.id}-${colIndex}`));
29
29
  }) })), [columns, row, index, selectedCell, selectedColumn, onCellClick, isLastRow]);
30
30
  return (_createElement(StyledTableRow, Object.assign({ "data-testid": "TableRow", onClick: rowProps === null || rowProps === void 0 ? void 0 : rowProps.onRowClick, showShadowHighlight: rowProps === null || rowProps === void 0 ? void 0 : rowProps.showShadowHighlight, showLoadedStyle: rowProps === null || rowProps === void 0 ? void 0 : rowProps.showLoadedStyle, component: "article" }, rowProps, { key: index, isSheetView: isSheetView }), content));
31
31
  }
@@ -307,9 +307,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
307
307
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
308
308
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
309
309
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
310
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
310
311
  src?: string | undefined;
311
312
  alt?: string | undefined;
312
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
313
313
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
314
314
  useMap?: string | undefined;
315
315
  loading?: "eager" | "lazy" | undefined;
@@ -10,3 +10,4 @@ export * from './timezones';
10
10
  export * from './currency';
11
11
  export * from './table';
12
12
  export * from './toggleOptions';
13
+ export * from './payment';
@@ -10,3 +10,4 @@ export * from './timezones';
10
10
  export * from './currency';
11
11
  export * from './table';
12
12
  export * from './toggleOptions';
13
+ export * from './payment';
@@ -0,0 +1,5 @@
1
+ export declare const PAYMENT_TYPES: {
2
+ name: string;
3
+ label: string;
4
+ icon: string;
5
+ }[];
@@ -0,0 +1,38 @@
1
+ import { lightUrl } from './assets';
2
+ export const PAYMENT_TYPES = [
3
+ {
4
+ name: 'CARD',
5
+ label: 'Card',
6
+ icon: `${lightUrl}/payment-method/card.svg`,
7
+ },
8
+ {
9
+ name: 'EXPRESS',
10
+ label: 'Express Checkout',
11
+ icon: `${lightUrl}/express_checkout.svg`,
12
+ },
13
+ {
14
+ name: 'DEVICE',
15
+ label: 'Device',
16
+ icon: `${lightUrl}/device.svg`,
17
+ },
18
+ {
19
+ name: 'PT_WALLET',
20
+ label: 'Pass-Thru Wallet',
21
+ icon: `${lightUrl}/passThruWallet.svg`,
22
+ },
23
+ {
24
+ name: 'SV_WALLET',
25
+ label: 'Stored Value Wallet',
26
+ icon: `${lightUrl}/storedValueWallet.svg`,
27
+ },
28
+ {
29
+ name: 'BNPL',
30
+ label: 'Buy Now Pay Later',
31
+ icon: `${lightUrl}/buyNowPayLater.svg`,
32
+ },
33
+ {
34
+ name: 'CASH',
35
+ label: 'Cash Wallet',
36
+ icon: `${lightUrl}/cash.svg`,
37
+ },
38
+ ];
@@ -27,5 +27,6 @@ export interface AnalyticsDetails {
27
27
  export declare enum ChargeBreakDownType {
28
28
  PaymentMethod = "PAYMENT_METHOD",
29
29
  PaymentCurrency = "PAYMENT_CURRENCY",
30
- PaymentScheme = "PAYMENT_SCHEME"
30
+ PaymentScheme = "PAYMENT_SCHEME",
31
+ PaymentType = "PAYMENT_TYPE"
31
32
  }
@@ -3,4 +3,5 @@ export var ChargeBreakDownType;
3
3
  ChargeBreakDownType["PaymentMethod"] = "PAYMENT_METHOD";
4
4
  ChargeBreakDownType["PaymentCurrency"] = "PAYMENT_CURRENCY";
5
5
  ChargeBreakDownType["PaymentScheme"] = "PAYMENT_SCHEME";
6
+ ChargeBreakDownType["PaymentType"] = "PAYMENT_TYPE";
6
7
  })(ChargeBreakDownType || (ChargeBreakDownType = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.0.256",
4
+ "version": "0.0.257",
5
5
  "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",