@tap-payments/os-micro-frontend-shared 0.1.139-test.21 → 0.1.139-test.22

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.
@@ -1,3 +1,3 @@
1
1
  import { AmountCellSheetProps } from './type';
2
- declare function AmountCell({ conversionType, amount, currency, selectionProps, chipIndex }: AmountCellSheetProps): import("react/jsx-runtime").JSX.Element;
3
- export default AmountCell;
2
+ declare function AmountCellSheet({ conversionType, amount, currency, selectionProps, chipIndex }: AmountCellSheetProps): import("react/jsx-runtime").JSX.Element;
3
+ export default AmountCellSheet;
@@ -3,8 +3,8 @@ import { StatusChipWithCopy } from '../../../index.js';
3
3
  import { formatAmountWithCurrency } from '../../../../utils/index.js';
4
4
  import { ConversionTypeLabel, CurrencyInfo } from './components';
5
5
  const tableMode = 'sheet';
6
- function AmountCell({ conversionType, amount, currency, selectionProps = {}, chipIndex = 0 }) {
6
+ function AmountCellSheet({ conversionType, amount, currency, selectionProps = {}, chipIndex = 0 }) {
7
7
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(amount, currency);
8
8
  return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: chipIndex, copyText: amount ? `${integerAmount}.${decimalAmount}` : '-', selectionProps: selectionProps }, { children: [_jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }), _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency })] })));
9
9
  }
10
- export default AmountCell;
10
+ export default AmountCellSheet;
@@ -1,3 +1,3 @@
1
1
  import { AmountCellProps } from './type';
2
- declare function AmountCell({ conversionType, amount, currency, tooltipLabel, amountTooltipLabel, ...props }: AmountCellProps): import("react/jsx-runtime").JSX.Element;
3
- export default AmountCell;
2
+ declare function AmountCellText({ conversionType, amount, currency, tooltipLabel, amountTooltipLabel, ...props }: AmountCellProps): import("react/jsx-runtime").JSX.Element;
3
+ export default AmountCellText;
@@ -16,8 +16,8 @@ import { CurrencyIcon } from '../../../index.js';
16
16
  import { AmountCellContainer } from './style';
17
17
  import { ConversionTypeLabel, CurrencyInfo } from './components';
18
18
  const tableMode = 'text';
19
- function AmountCell(_a) {
19
+ function AmountCellText(_a) {
20
20
  var { conversionType, amount, currency, tooltipLabel, amountTooltipLabel } = _a, props = __rest(_a, ["conversionType", "amount", "currency", "tooltipLabel", "amountTooltipLabel"]);
21
21
  return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: _jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }) })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencyIcon, { currency: currency }) }, { children: _jsx("span", {}) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
22
22
  }
23
- export default AmountCell;
23
+ export default AmountCellText;
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.139-test.21",
5
- "testVersion": 21,
4
+ "version": "0.1.139-test.22",
5
+ "testVersion": 22,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",