@tap-payments/os-micro-frontend-shared 0.0.129 → 0.0.131

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 (72) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/DeviceIcon/DeviceIcon.d.ts +1 -3
  4. package/build/components/DeviceIcon/DeviceIcon.js +3 -3
  5. package/build/components/DeviceIcon/style.d.ts +1 -4
  6. package/build/components/DeviceIcon/style.js +1 -4
  7. package/build/components/StatusButton/StatusButton.js +4 -10
  8. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +1 -3
  9. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +4 -4
  10. package/build/components/StatusIcons/DeviceIcon/DeviceIcon.d.ts +1 -3
  11. package/build/components/StatusIcons/DeviceIcon/DeviceIcon.js +2 -2
  12. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.d.ts +1 -1
  13. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +2 -2
  14. package/build/components/StatusIcons/IssuerIcon/style.d.ts +1 -4
  15. package/build/components/StatusIcons/IssuerIcon/style.js +4 -3
  16. package/build/components/StatusIcons/IssuerIcon/type.d.ts +0 -2
  17. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +1 -3
  18. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +4 -5
  19. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -4
  20. package/build/components/TableCells/CustomCells/ActionCell/style.js +2 -4
  21. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.d.ts +1 -1
  22. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +2 -3
  23. package/build/components/TableCells/CustomCells/DestinationCell/styled.d.ts +1 -4
  24. package/build/components/TableCells/CustomCells/DestinationCell/styled.js +2 -4
  25. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.d.ts +1 -2
  26. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +1 -4
  27. package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.d.ts +1 -1
  28. package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.js +1 -5
  29. package/build/components/TableCells/CustomCells/ReferenceCell/type.d.ts +2 -5
  30. package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.d.ts +1 -1
  31. package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.js +2 -28
  32. package/build/components/TableCells/CustomCells/SourceMergedCell/type.d.ts +1 -2
  33. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.d.ts +1 -1
  34. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +2 -6
  35. package/build/components/TableCells/CustomCells/StatusCell/style.js +0 -1
  36. package/build/components/TableCells/CustomCells/StatusCell/type.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/index.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/index.js +0 -1
  39. package/build/components/TableCells/CustomCells/style.d.ts +1 -4
  40. package/build/components/TableCells/CustomCells/style.js +9 -6
  41. package/build/components/TableCells/CustomCells/type.d.ts +1 -2
  42. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.d.ts +1 -1
  43. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.js +1 -1
  44. package/build/components/VirtualTable/style.js +3 -3
  45. package/build/components/index.d.ts +0 -2
  46. package/build/components/index.js +0 -2
  47. package/build/constants/assets.d.ts +0 -1
  48. package/build/constants/assets.js +0 -1
  49. package/build/constants/table/cell/chargeTableCellWidth.d.ts +13 -13
  50. package/build/constants/table/cell/chargeTableCellWidth.js +13 -13
  51. package/build/types/table.d.ts +1 -2
  52. package/package.json +132 -132
  53. package/build/components/MaskedText/MaskedText.d.ts +0 -3
  54. package/build/components/MaskedText/MaskedText.js +0 -11
  55. package/build/components/MaskedText/index.d.ts +0 -3
  56. package/build/components/MaskedText/index.js +0 -2
  57. package/build/components/MaskedText/type.d.ts +0 -7
  58. package/build/components/MaskedText/type.js +0 -1
  59. package/build/components/StatusChip/StatusChip.d.ts +0 -4
  60. package/build/components/StatusChip/StatusChip.js +0 -19
  61. package/build/components/StatusChip/index.d.ts +0 -3
  62. package/build/components/StatusChip/index.js +0 -2
  63. package/build/components/StatusChip/style.d.ts +0 -14
  64. package/build/components/StatusChip/style.js +0 -32
  65. package/build/components/StatusChip/type.d.ts +0 -9
  66. package/build/components/StatusChip/type.js +0 -1
  67. package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.d.ts +0 -7
  68. package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.js +0 -35
  69. package/build/components/TableCells/CustomCells/SheetViewIDButton/index.d.ts +0 -1
  70. package/build/components/TableCells/CustomCells/SheetViewIDButton/index.js +0 -1
  71. package/build/components/TableCells/CustomCells/SheetViewIDButton/style.d.ts +0 -3
  72. package/build/components/TableCells/CustomCells/SheetViewIDButton/style.js +0 -22
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -1,12 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  import { DEVICE_ICON } from './constants';
4
- import { TableMode } from '../../types/index.js';
5
4
  interface DeviceIconProps extends BoxProps {
6
5
  type?: keyof typeof DEVICE_ICON;
7
6
  isTextShown?: boolean;
8
- tableMode?: TableMode;
9
7
  }
10
- declare function DeviceIcon({ type, isTextShown, tableMode, ...props }: DeviceIconProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function DeviceIcon({ type, isTextShown, ...props }: DeviceIconProps): import("react/jsx-runtime").JSX.Element;
11
9
  declare const _default: import("react").MemoExoticComponent<typeof DeviceIcon>;
12
10
  export default _default;
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { memo } from 'react';
14
14
  import Box from '@mui/material/Box';
15
15
  import capitalize from 'lodash/capitalize';
@@ -21,9 +21,9 @@ import Tooltip from '../Tooltip';
21
21
  import { DEVICE_ICON } from './constants';
22
22
  import { isDeviceIconShown } from './utils';
23
23
  function DeviceIcon(_a) {
24
- var { type, isTextShown, tableMode } = _a, props = __rest(_a, ["type", "isTextShown", "tableMode"]);
24
+ var { type, isTextShown } = _a, props = __rest(_a, ["type", "isTextShown"]);
25
25
  const { t } = useTranslation();
26
26
  const icon = isDeviceIconShown(type) ? DEVICE_ICON[type] : null;
27
- return (_jsx(Tooltip, Object.assign({ title: icon ? capitalizeFirstLetter((type !== null && type !== void 0 ? type : '').toLowerCase()) : t('unKnown') }, { children: isTextShown ? (_jsxs(TextLabel, Object.assign({ tableMode: tableMode }, { children: [" ", type ? capitalize(type) : 'Unknown'] }))) : (_jsx(Box, Object.assign({}, props, { component: "img", src: type ? icon || defaultDeviceIcon : defaultDeviceIcon, alt: type }))) })));
27
+ return (_jsx(Tooltip, Object.assign({ title: icon ? capitalizeFirstLetter((type !== null && type !== void 0 ? type : '').toLowerCase()) : t('unKnown') }, { children: isTextShown ? (_jsx(TextLabel, { children: type ? capitalize(type) : 'Unknown' })) : (_jsx(Box, Object.assign({}, props, { component: "img", src: type ? icon || defaultDeviceIcon : defaultDeviceIcon, alt: type }))) })));
28
28
  }
29
29
  export default memo(DeviceIcon);
@@ -1,7 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { TableMode } from '../../types/index.js';
3
2
  export declare const TextLabel: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
6
- tableMode?: TableMode | undefined;
7
- }, {}, {}>;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,8 +1,6 @@
1
1
  import Box from '@mui/material/Box';
2
2
  import { styled } from '@mui/material/styles';
3
- export const TextLabel = styled(Box, {
4
- shouldForwardProp: (prop) => prop !== 'tableMode',
5
- })(({ theme, tableMode }) => ({
3
+ export const TextLabel = styled(Box)(({ theme }) => ({
6
4
  fontSize: '11px',
7
5
  display: 'flex',
8
6
  alignItems: 'center',
@@ -14,5 +12,4 @@ export const TextLabel = styled(Box, {
14
12
  borderRadius: '24px',
15
13
  border: `1px solid ${theme.palette.divider}`,
16
14
  color: theme.palette.text.primary,
17
- height: tableMode === 'sheet' ? '18px' : '24px',
18
15
  }));
@@ -35,20 +35,14 @@ function StatusButton(_a) {
35
35
  const dropdownIcon = hasDropdown ? _jsx(ChevronIcon, { isActive: variant === 'active' }) : null;
36
36
  return (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ "data-testid": "StatusButton" }, props, { ref: buttonRef, onClick: (e) => {
37
37
  var _a, _b;
38
+ if (hasDropdown) {
39
+ setAnchorEl(e.currentTarget);
40
+ }
38
41
  (_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
39
42
  onButtonBodyClick === null || onButtonBodyClick === void 0 ? void 0 : onButtonBodyClick(lastActiveStatus || ((_b = dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions[0]) === null || _b === void 0 ? void 0 : _b.status) || 'all');
40
43
  }, sx: Object.assign({}, (hasDropdown && {
41
44
  paddingInlineEnd: '27px',
42
- })) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, lastActiveStatus ? t(lastActiveStatus) : label, statusBadge] })), dropdownIcon && (_jsx(ChevronContainer, Object.assign({ onClick: (e) => {
43
- if (showDropdownIcon) {
44
- return;
45
- }
46
- e.stopPropagation();
47
- e.preventDefault();
48
- if (hasDropdown) {
49
- setAnchorEl(buttonRef.current);
50
- }
51
- } }, { children: dropdownIcon })))] }) })), open && !showDropdownIcon && (_jsx(StyledDropdown, { open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: (_c = (dropdownOptions || [])) === null || _c === void 0 ? void 0 : _c.map((item) => (Object.assign(Object.assign({}, item), { onClick: (e) => {
45
+ })) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, lastActiveStatus ? t(lastActiveStatus) : label, statusBadge] })), dropdownIcon && _jsx(ChevronContainer, { children: dropdownIcon })] }) })), open && !showDropdownIcon && (_jsx(StyledDropdown, { open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: (_c = (dropdownOptions || [])) === null || _c === void 0 ? void 0 : _c.map((item) => (Object.assign(Object.assign({}, item), { onClick: (e) => {
52
46
  var _a;
53
47
  (_a = item === null || item === void 0 ? void 0 : item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, e);
54
48
  setLastActiveStatus(item.status);
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { type AuthorizedStatusType } from '../../TableCells';
3
- import { TableMode } from '../../../types/index.js';
4
3
  type AuthorizedIconProps = {
5
4
  iconStyles?: React.CSSProperties;
6
5
  authorizedStatus?: AuthorizedStatusType;
7
6
  isTextShown?: boolean;
8
- tableMode?: TableMode;
9
7
  };
10
- export declare const AuthorizedIcon: ({ authorizedStatus, isTextShown, iconStyles, tableMode }: AuthorizedIconProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AuthorizedIcon: ({ authorizedStatus, isTextShown, iconStyles }: AuthorizedIconProps) => import("react/jsx-runtime").JSX.Element;
11
9
  export {};
@@ -6,10 +6,10 @@ import Tooltip from '../../Tooltip';
6
6
  import { authorizedStatusIcons } from '../../TableCells/CustomCells/StatusCell/constant';
7
7
  import Icon from '../../Icon';
8
8
  import { TextLabel } from '../../TableCells/CustomCells/style';
9
- export const AuthorizedIcon = ({ authorizedStatus, isTextShown, iconStyles, tableMode }) => {
9
+ export const AuthorizedIcon = ({ authorizedStatus, isTextShown, iconStyles }) => {
10
10
  const { t } = useTranslation();
11
11
  const theme = useTheme();
12
- return (_jsx(Tooltip, Object.assign({ title: t(camelCase(authorizedStatus)) }, { children: isTextShown ? (_jsx(TextLabel, Object.assign({ "data-testid": "StatusCell_AuthorizedStatusLabel", sx: Object.assign({ color: theme.palette.info.dark }, (tableMode === 'sheet' && {
13
- height: '18px',
14
- })) }, { children: t(camelCase(authorizedStatus)) }))) : (_jsx(Icon, { src: authorizedStatusIcons[authorizedStatus], alt: "authorized-icon", "data-testid": "StatusCell_AuthorizedStatusIcon", sx: iconStyles })) })));
12
+ return (_jsx(Tooltip, Object.assign({ title: t(camelCase(authorizedStatus)) }, { children: isTextShown ? (_jsx(TextLabel, Object.assign({ "data-testid": "StatusCell_AuthorizedStatusLabel", sx: {
13
+ color: theme.palette.info.dark,
14
+ } }, { children: t(camelCase(authorizedStatus)) }))) : (_jsx(Icon, { src: authorizedStatusIcons[authorizedStatus], alt: "authorized-icon", "data-testid": "StatusCell_AuthorizedStatusIcon", sx: iconStyles })) })));
15
15
  };
@@ -1,10 +1,8 @@
1
- import { TableMode } from '../../../types/index.js';
2
1
  interface DeviceIconChipProps {
3
2
  geographyVariant?: 'G' | 'L' | 'R';
4
3
  isTextShown?: boolean;
5
4
  deviceCountry?: string;
6
5
  deviceType?: 'DESKTOP' | 'PHONE' | 'TABLET';
7
- tableMode?: TableMode;
8
6
  }
9
- export declare const DeviceIconChip: ({ geographyVariant, isTextShown, deviceCountry, deviceType, tableMode }: DeviceIconChipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const DeviceIconChip: ({ geographyVariant, isTextShown, deviceCountry, deviceType }: DeviceIconChipProps) => import("react/jsx-runtime").JSX.Element;
10
8
  export {};
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box } from '@mui/material';
3
3
  import DeviceIcon from '../../DeviceIcon';
4
4
  import { GeographyIcon } from '../GeographyIcon/GeographyIcon';
5
- export const DeviceIconChip = ({ geographyVariant, isTextShown, deviceCountry, deviceType, tableMode }) => {
6
- return (_jsxs(Box, Object.assign({ sx: Object.assign({ display: 'flex', gap: '8px', alignItems: 'center' }, (tableMode === 'sheet' && { height: '18px' })) }, { children: [_jsx(GeographyIcon, { geographyVariant: geographyVariant, isTextShown: isTextShown, countryCode: deviceCountry }), _jsx(DeviceIcon, { type: deviceType, isTextShown: isTextShown, tableMode: tableMode })] })));
5
+ export const DeviceIconChip = ({ geographyVariant, isTextShown, deviceCountry, deviceType }) => {
6
+ return (_jsxs(Box, Object.assign({ sx: { display: 'flex', gap: '8px', alignItems: 'center' } }, { children: [_jsx(GeographyIcon, { geographyVariant: geographyVariant, isTextShown: isTextShown, countryCode: deviceCountry }), _jsx(DeviceIcon, { type: deviceType, isTextShown: isTextShown })] })));
7
7
  };
@@ -1,2 +1,2 @@
1
1
  import { IssuerIconProps } from './type';
2
- export default function IssuerIcon({ countryCode, isTextShown, cardNumber, bankName, tableMode }: IssuerIconProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function IssuerIcon({ countryCode, isTextShown, cardNumber, bankName }: IssuerIconProps): import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { GeographyIcon } from '../GeographyIcon/GeographyIcon';
3
3
  import { IssuerIconContainer, CardNumber } from './style';
4
4
  import Tooltip from '../../Tooltip';
5
- export default function IssuerIcon({ countryCode, isTextShown, cardNumber, bankName, tableMode }) {
5
+ export default function IssuerIcon({ countryCode, isTextShown, cardNumber, bankName }) {
6
6
  const firstFourDigits = cardNumber === null || cardNumber === void 0 ? void 0 : cardNumber.slice(0, 4);
7
7
  const lastFourDigits = cardNumber === null || cardNumber === void 0 ? void 0 : cardNumber.slice(-4);
8
- return (_jsxs(IssuerIconContainer, Object.assign({ tableMode: tableMode }, { children: [countryCode && _jsx(GeographyIcon, { countryCode: countryCode, isTextShown: isTextShown }), _jsx(Tooltip, Object.assign({ title: bankName }, { children: _jsx(CardNumber, { children: `${firstFourDigits || ''} ${lastFourDigits || ''}` }) }))] })));
8
+ return (_jsxs(IssuerIconContainer, { children: [countryCode && _jsx(GeographyIcon, { countryCode: countryCode, isTextShown: isTextShown }), _jsx(Tooltip, Object.assign({ title: bankName }, { children: _jsx(CardNumber, { children: `${firstFourDigits || ''} ${lastFourDigits || ''}` }) }))] }));
9
9
  }
@@ -1,8 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TableMode } from '../../../types/index.js';
3
2
  export declare const IssuerIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
6
- tableMode?: TableMode | undefined;
7
- }, {}, {}>;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
5
  export declare const CardNumber: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,8 +1,9 @@
1
1
  import { Box } from '@mui/material';
2
2
  import { styled } from '@mui/material/styles';
3
- export const IssuerIconContainer = styled(Box, {
4
- shouldForwardProp: (prop) => prop !== 'tableMode',
5
- })(({ theme, tableMode }) => (Object.assign(Object.assign({ display: 'flex', gap: theme.spacing(0.5) }, (tableMode === 'sheet' && { height: '18px' })), { alignItems: 'center' })));
3
+ export const IssuerIconContainer = styled(Box)(({ theme }) => ({
4
+ display: 'flex',
5
+ gap: theme.spacing(0.5),
6
+ }));
6
7
  export const CardNumber = styled('span')(({ theme }) => ({
7
8
  fontSize: '10px',
8
9
  fontWeight: 500,
@@ -1,8 +1,6 @@
1
- import { TableMode } from '../../../types/index.js';
2
1
  export type IssuerIconProps = {
3
2
  countryCode?: string;
4
3
  isTextShown?: boolean;
5
4
  cardNumber?: string;
6
5
  bankName?: string;
7
- tableMode?: TableMode;
8
6
  };
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { ActionCellProps } from '../type';
3
- import { TableMode } from '../../../../types/index.js';
4
3
  type Props = Readonly<ActionCellProps> & {
5
4
  onJsonViewClick?: () => void;
6
- tableMode?: TableMode;
7
5
  };
8
- declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, tableMode, ...props }: Props): import("react/jsx-runtime").JSX.Element;
6
+ declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, ...props }: Props): import("react/jsx-runtime").JSX.Element;
9
7
  declare const _default: React.MemoExoticComponent<typeof ActionCell>;
10
8
  export default _default;
@@ -24,15 +24,14 @@ import { useActionCell } from './hooks/useActionCell';
24
24
  import { ActionCellContainer, ActionIcon, ActionsIconContainer } from './style';
25
25
  import { IDButton } from '../IDButton';
26
26
  import { BadgeWrapper, IdButtonContainer, TextLabel, TransparentButton } from '../style';
27
- import SheetViewIDButton from '../SheetViewIDButton/SheetViewIDButton';
28
27
  function ActionCell(_a) {
29
28
  var _b, _c;
30
- var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, tableMode } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "tableMode"]);
29
+ var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick"]);
31
30
  const { t } = useTranslation();
32
31
  const { open, anchorEl, filteredActions, isAnyActionLoading, isAnyActionHasError, isAnyActionSuccessful, areThereAnyShownActions, handleClick, handleClose, } = useActionCell({ actions, isDropdownShown, onCloseDropdown });
33
32
  return (_jsx(TableCell, Object.assign({}, props, { sx: {
34
33
  overflow: 'visible',
35
- } }, { children: _jsxs(ActionCellContainer, Object.assign({ "data-testid": "ActionCell_ActionCellContainer", tableMode: tableMode }, { children: [flag && (_jsx(_Fragment, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsx(TextLabel, Object.assign({ "data-testid": "ActionCell_FlagLabel", sx: {
34
+ } }, { children: _jsxs(ActionCellContainer, Object.assign({ "data-testid": "ActionCell_ActionCellContainer" }, { children: [flag && (_jsx(_Fragment, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsx(TextLabel, Object.assign({ "data-testid": "ActionCell_FlagLabel", sx: {
36
35
  textAlign: 'left',
37
36
  justifyContent: 'flex-start',
38
37
  } }, { children: flagTooltip })) }))) : (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsxs(BadgeWrapper, Object.assign({ "data-testid": "ActionCell_FlagBadge", sx: {
@@ -72,12 +71,12 @@ function ActionCell(_a) {
72
71
  },
73
72
  opacity: 1,
74
73
  },
75
- } }, { children: _jsxs(StyledBadge, Object.assign({ compact: true, variant: colorToVariant[(_c = flags[flag]) === null || _c === void 0 ? void 0 : _c.color] || BadgeVariants.ORANGE, "data-testid": "ActionCell_StyledBadge" }, { children: [flagsCount, "x"] })) })))] })) }))) })), showIdButton ? (tableMode === 'sheet' ? (_jsx(SheetViewIDButton, { rowId: rowId || row.id })) : (_jsx(IDButton, { rowId: rowId || row.id }))) : null, _jsxs("div", Object.assign({ "data-testid": "ActionCell_IconsContainer", style: {
74
+ } }, { children: _jsxs(StyledBadge, Object.assign({ compact: true, variant: colorToVariant[(_c = flags[flag]) === null || _c === void 0 ? void 0 : _c.color] || BadgeVariants.ORANGE, "data-testid": "ActionCell_StyledBadge" }, { children: [flagsCount, "x"] })) })))] })) }))) })), showIdButton && _jsx(IDButton, { rowId: rowId || row.id }), _jsxs("div", Object.assign({ "data-testid": "ActionCell_IconsContainer", style: {
76
75
  display: 'flex',
77
76
  alignItems: 'center',
78
77
  justifyContent: 'center',
79
78
  gap: '5px',
80
- } }, { children: [showJsonViewer && (_jsx(_Fragment, { children: _jsx(TransparentButton, Object.assign({ onClick: onJsonViewClick, type: "button", "data-testid": "ActionCell_TransparentButton" }, { children: _jsx(Tooltip, Object.assign({ title: t('jsonViewer') }, { children: _jsx(IdButtonContainer, Object.assign({ tableMode: tableMode, "data-testid": "ActionCell_IdButtonContainer" }, { children: tableMode === 'sheet' ? (_jsx("span", Object.assign({ style: { fontSize: '11px', fontWeight: 400 } }, { children: "View API" }))) : (_jsx(motion.img, { src: jsonBlackIcon, alt: "icon" }, "id-icon")) })) })) })) })), _jsxs(ActionsIconContainer, Object.assign({ id: "styled-popover", selected: !!dropdownAction || open, "data-testid": "ActionCell_ActionsIconContainer", "data-is-active": areThereAnyShownActions, sx: Object.assign({}, (!areThereAnyShownActions && {
79
+ } }, { children: [showJsonViewer && (_jsx(_Fragment, { children: _jsx(TransparentButton, Object.assign({ onClick: onJsonViewClick, type: "button", "data-testid": "ActionCell_TransparentButton" }, { children: _jsx(Tooltip, Object.assign({ title: t('jsonViewer') }, { children: _jsx(IdButtonContainer, Object.assign({ "data-testid": "ActionCell_IdButtonContainer" }, { children: _jsx(motion.img, { src: jsonBlackIcon, alt: "icon" }, "id-icon") })) })) })) })), _jsxs(ActionsIconContainer, Object.assign({ id: "styled-popover", selected: !!dropdownAction || open, "data-testid": "ActionCell_ActionsIconContainer", "data-is-active": areThereAnyShownActions, sx: Object.assign({}, (!areThereAnyShownActions && {
81
80
  pointerEvents: 'none',
82
81
  })) }, { children: [_jsx(TransparentButton, Object.assign({ onClick: handleClick, "data-testid": "ActionCell_ActionsIconContainer_TransparentButton", "data-is-active": areThereAnyShownActions, sx: Object.assign({}, (!areThereAnyShownActions && {
83
82
  pointerEvents: 'none',
@@ -1,8 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TableMode } from '../../../../types/index.js';
3
- export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
- tableMode?: TableMode | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
2
+ export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
6
3
  export declare const ActionsIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
7
4
  selected: boolean;
8
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,14 +1,12 @@
1
1
  import { styled } from '@mui/material/styles';
2
2
  import { motion } from 'framer-motion';
3
- export const ActionCellContainer = styled('section', {
4
- shouldForwardProp: (props) => props !== 'tableMode',
5
- })(({ theme, tableMode }) => ({
3
+ export const ActionCellContainer = styled('section')(({ theme }) => ({
6
4
  display: 'flex',
7
5
  alignItems: 'center',
8
6
  justifyContent: 'flex-end',
9
7
  textAlign: 'center',
10
8
  borderRadius: '50%',
11
- gap: tableMode === 'sheet' ? '4px' : theme.spacing(1),
9
+ gap: theme.spacing(1),
12
10
  overflow: 'visible',
13
11
  }));
14
12
  export const ActionsIconContainer = styled('span')(({ selected }) => (Object.assign(Object.assign({ overflow: 'visible', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center', '&:hover': {
@@ -1,3 +1,3 @@
1
1
  import { DestinationCellProps } from '../type';
2
- declare function DestinationCell({ destinationsCount, destinationsTooltip, isTextShown, destination, destinationsAmount, hidden, iconDirection, tableMode, ...props }: DestinationCellProps): import("react/jsx-runtime").JSX.Element | null;
2
+ declare function DestinationCell({ destinationsCount, destinationsTooltip, isTextShown, destination, destinationsAmount, hidden, iconDirection, ...props }: DestinationCellProps): import("react/jsx-runtime").JSX.Element | null;
3
3
  export default DestinationCell;
@@ -19,7 +19,7 @@ import { TextLabel } from '../style';
19
19
  import { CurrencyIcon } from '../../../index.js';
20
20
  function DestinationCell(_a) {
21
21
  var _b, _c, _d, _e, _f;
22
- var { destinationsCount, destinationsTooltip, isTextShown, destination, destinationsAmount, hidden, iconDirection, tableMode } = _a, props = __rest(_a, ["destinationsCount", "destinationsTooltip", "isTextShown", "destination", "destinationsAmount", "hidden", "iconDirection", "tableMode"]);
22
+ var { destinationsCount, destinationsTooltip, isTextShown, destination, destinationsAmount, hidden, iconDirection } = _a, props = __rest(_a, ["destinationsCount", "destinationsTooltip", "isTextShown", "destination", "destinationsAmount", "hidden", "iconDirection"]);
23
23
  if (!destinationsCount || hidden) {
24
24
  return null;
25
25
  }
@@ -29,11 +29,10 @@ function DestinationCell(_a) {
29
29
  const textView = (_jsx(TextLabel, Object.assign({ sx: {
30
30
  textAlign: 'left',
31
31
  justifyContent: 'flex-start',
32
- height: tableMode === 'sheet' ? '18px' : 'auto',
33
32
  } }, { children: destinationsCount > 1 ? (_jsxs("div", { children: ["Destination ", (_c = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _c === void 0 ? void 0 : _c.id, " - ", _jsx(CurrencyIcon, { currency: (_d = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _d === void 0 ? void 0 : _d.currency }), ' ', firstDestinationFormattedAmount.integerAmount, ".", firstDestinationFormattedAmount.decimalAmount, " +", destinationsCount - 1] })) : (_jsxs("div", { children: ["Destination ", (_e = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _e === void 0 ? void 0 : _e.id, " - ", _jsx(CurrencyIcon, { currency: (_f = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _f === void 0 ? void 0 : _f.currency }), " ", formattedAmount.integerAmount, ".", formattedAmount.decimalAmount] })) })));
34
33
  return (_jsx(TableCell, Object.assign({ sx: {
35
34
  width: 'fit-content',
36
35
  overflow: 'visible',
37
- } }, props, { children: _jsx(Tooltip, Object.assign({ title: destinationsTooltip }, { children: !isTextShown ? (_jsxs(StyledDestinationCell, Object.assign({ tableMode: tableMode }, { children: [_jsx(StyledDestinationIcon, { src: destinationSolidIcon, pointLeft: iconDirection === 'left' }), destinationsCount > 1 && (_jsx(DestinationCellContainer, Object.assign({ destinationsCount: 1 }, { children: _jsx(DestinationCount, { children: destinationsCount }) })))] }))) : (textView) })) })));
36
+ } }, props, { children: _jsx(Tooltip, Object.assign({ title: destinationsTooltip }, { children: !isTextShown ? (_jsxs(StyledDestinationCell, { children: [_jsx(StyledDestinationIcon, { src: destinationSolidIcon, pointLeft: iconDirection === 'left' }), destinationsCount > 1 && (_jsx(DestinationCellContainer, Object.assign({ destinationsCount: 1 }, { children: _jsx(DestinationCount, { children: destinationsCount }) })))] })) : (textView) })) })));
38
37
  }
39
38
  export default DestinationCell;
@@ -1,12 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { TableMode } from '../../../../types/index.js';
3
2
  export declare const DestinationCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  destinationsCount: number;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
5
  export declare const DestinationCount: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
- export declare const StyledDestinationCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
- tableMode?: TableMode | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
+ export declare const StyledDestinationCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
10
7
  export declare const StyledDestinationImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
11
8
  order: number;
12
9
  }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -19,9 +19,7 @@ export const DestinationCount = styled('span')(({ theme }) => ({
19
19
  justifyContent: 'center',
20
20
  backgroundColor: `${theme.palette.info.dark}1A`,
21
21
  }));
22
- export const StyledDestinationCell = styled('span', {
23
- shouldForwardProp: (prop) => prop !== 'tableMode',
24
- })(({ theme, tableMode }) => ({
22
+ export const StyledDestinationCell = styled('span')(({ theme }) => ({
25
23
  display: 'flex',
26
24
  alignItems: 'center',
27
25
  justifyContent: 'flex-start',
@@ -30,7 +28,7 @@ export const StyledDestinationCell = styled('span', {
30
28
  border: `1px solid ${theme.palette.divider}`,
31
29
  paddingInline: theme.spacing(1),
32
30
  borderRadius: '56px',
33
- height: tableMode === 'sheet' ? '18px' : '24px',
31
+ height: '24px',
34
32
  }));
35
33
  export const StyledDestinationImage = styled('img')(({ theme, order }) => ({
36
34
  borderRadius: '50%',
@@ -1,5 +1,4 @@
1
- export declare const ReceiptCell: ({ receiptId, isTextShown, tableMode, }: {
1
+ export declare const ReceiptCell: ({ receiptId, isTextShown }: {
2
2
  receiptId: string;
3
3
  isTextShown?: boolean | undefined;
4
- tableMode?: "text" | "sheet" | "default" | undefined;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -4,10 +4,7 @@ import { TextTableCell } from '..';
4
4
  import { TextLabel } from '../style';
5
5
  import Tooltip from '../../../Tooltip';
6
6
  import { receiptBillIcon } from '../../../../constants/index.js';
7
- export const ReceiptCell = ({ receiptId, isTextShown, tableMode, }) => {
8
- if (tableMode === 'sheet') {
9
- return (_jsx(TextTableCell, { children: _jsx("span", { children: receiptId }) }));
10
- }
7
+ export const ReceiptCell = ({ receiptId, isTextShown }) => {
11
8
  return isTextShown ? (_jsx(TextTableCell, { children: _jsx("span", { children: receiptId }) })) : (_jsx(TableCell, Object.assign({ component: "div" }, { children: _jsx(Tooltip, Object.assign({ title: `Receipt - ${receiptId}` }, { children: _jsx(TextLabel, Object.assign({ sx: {
12
9
  padding: '3px 8px',
13
10
  maxWidth: '50px',
@@ -1,3 +1,3 @@
1
1
  import type { ReferenceCellProps } from './type';
2
- declare function ReferenceCell({ isTextShown, tableMode, ...props }: ReferenceCellProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function ReferenceCell({ isTextShown, ...props }: ReferenceCellProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default ReferenceCell;
@@ -16,11 +16,10 @@ import startCase from 'lodash/startCase';
16
16
  import Tooltip from '../../../Tooltip';
17
17
  import { ImageWrapper } from '../../../index.js';
18
18
  import { TableCell } from '../../../TableCells';
19
- import StatusChip from '../../../StatusChip';
20
19
  import { referenceIcons } from './constant';
21
20
  import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell, StyledSourceImage, referenceSourceAnimation, } from './style';
22
21
  function ReferenceCell(_a) {
23
- var { isTextShown, tableMode } = _a, props = __rest(_a, ["isTextShown", "tableMode"]);
22
+ var { isTextShown } = _a, props = __rest(_a, ["isTextShown"]);
24
23
  const [isTooltipOpen, setIsTooltipOpen] = useState(false);
25
24
  const theme = useTheme();
26
25
  const references = useMemo(() => Object.keys(referenceIcons).filter((key) => !!props[key]), [props]);
@@ -35,9 +34,6 @@ function ReferenceCell(_a) {
35
34
  } }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(reference) }) })) : (_jsx(StyledSourceImage, { src: referenceIcons[reference], alt: reference, sx: Object.assign({}, (reference === 'order' && { width: '11.82px' })) })) })) }), `${reference}-${index}`));
36
35
  }), [props, references, isTextShown, theme]);
37
36
  const referenceSourcesCount = (ReferenceSources === null || ReferenceSources === void 0 ? void 0 : ReferenceSources.length) || 0;
38
- if (tableMode === 'sheet') {
39
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, { children: references.map((reference) => (_jsx(StatusChip, { children: `${startCase(reference)}: ${props[reference]}` }, reference))) }) })));
40
- }
41
37
  return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, { children: referenceSourcesCount > 0 ? (_jsx(ReferenceSourcesContainer, Object.assign({ layout: true, className: "reference-sources-container", whileHover: "animate", animate: isTooltipOpen ? 'animate' : 'start', sourcesCount: referenceSourcesCount, variants: { animate: { width: referenceSourcesCount * (6 + 32) } }, style: {
42
38
  zIndex: 29,
43
39
  } }, { children: ReferenceSources }))) : null }) })));
@@ -2,12 +2,9 @@ import { TableCellProps } from '@mui/material/TableCell';
2
2
  import { referenceIcons } from './constant';
3
3
  export type ReferenceType = keyof typeof referenceIcons;
4
4
  export interface ReferenceCellProps extends TableCellProps {
5
- order?: string;
6
- merchant?: string;
7
- customer?: string;
8
- acquirer?: string;
9
5
  generic?: string;
6
+ acquirer?: string;
7
+ order?: string;
10
8
  payment?: string;
11
9
  isTextShown?: boolean;
12
- tableMode?: 'default' | 'text' | 'sheet';
13
10
  }
@@ -1,3 +1,3 @@
1
1
  import { SourceMergedCellProps } from './type';
2
- declare function SourceMergedCell({ icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed, tableMode, ...props }: Readonly<SourceMergedCellProps>): import("react/jsx-runtime").JSX.Element;
2
+ declare function SourceMergedCell({ icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed, ...props }: Readonly<SourceMergedCellProps>): import("react/jsx-runtime").JSX.Element;
3
3
  export default SourceMergedCell;
@@ -16,16 +16,13 @@ import { StatusContainer, StatusWrapper, StatusIcon } from './style';
16
16
  import { getIconXTranslation } from './utils';
17
17
  import CollapsedViewIcon from './CollapsedViewIcon';
18
18
  function SourceMergedCell(_a) {
19
- var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false, tableMode } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed", "tableMode"]);
19
+ var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed"]);
20
20
  const iconsList = useMemo(() => icons.filter((icon) => Boolean(icon.icon)), [icons]);
21
21
  const [isHovering, setIsHovering] = useState(false);
22
22
  const centerIconIndex = Math.max(centerIconKey ? iconsList.findIndex((icon) => icon.key === centerIconKey) : 0, 0);
23
23
  const iconRefs = useRef([]);
24
24
  const [iconMeasurements, setIconMeasurements] = useState(new Map());
25
- const isSheetMode = tableMode === 'sheet';
26
25
  useEffect(() => {
27
- if (isSheetMode)
28
- return;
29
26
  setTimeout(() => {
30
27
  const tableMode = isTextShown ? 'text' : 'default';
31
28
  const newMeasurements = new Map();
@@ -38,32 +35,9 @@ function SourceMergedCell(_a) {
38
35
  });
39
36
  setIconMeasurements(new Map([...iconMeasurements, ...newMeasurements]));
40
37
  }, 50);
41
- }, [iconsList, isTextShown, isHovering, isSheetMode]);
38
+ }, [iconsList, isTextShown, isHovering]);
42
39
  const hasPreviousIcon = (isReversed && iconsList.length > 1) || centerIconIndex > 0;
43
40
  const hasNextIcon = !isReversed && centerIconIndex < iconsList.length - 1;
44
- if (isSheetMode) {
45
- return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
46
- position: 'relative',
47
- overflow: 'visible',
48
- zIndex: 101,
49
- } }, { children: _jsx("div", Object.assign({ style: {
50
- display: 'flex',
51
- alignItems: 'center',
52
- gap: '4px',
53
- height: '18px',
54
- } }, { children: iconsList === null || iconsList === void 0 ? void 0 : iconsList.map((icon, index) => (_jsx("div", Object.assign({ "data-testid": `StatusWrapper-${icon.key}`, style: {
55
- display: 'flex',
56
- alignItems: 'center',
57
- opacity: 1,
58
- border: '1px solid #F2F2F2',
59
- borderRadius: '24px',
60
- padding: '0px 8px',
61
- } }, { children: _jsx("div", Object.assign({ style: {
62
- display: 'flex',
63
- alignItems: 'center',
64
- opacity: 1,
65
- } }, { children: icon.icon })) }), `StatusWrapper-${icon.key}-${index}`))) })) })));
66
- }
67
41
  return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
68
42
  position: 'relative',
69
43
  overflow: 'visible',
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import type { TableCellProps } from '@mui/material/TableCell';
3
- import { SourceMergedCellIcons, TableMode } from '../../../../types/index.js';
3
+ import { SourceMergedCellIcons } from '../../../../types/index.js';
4
4
  import type { SxProps } from '@mui/material';
5
5
  export interface SourceMergedCellProps extends TableCellProps {
6
6
  icons: {
@@ -15,5 +15,4 @@ export interface SourceMergedCellProps extends TableCellProps {
15
15
  };
16
16
  isReversed?: boolean;
17
17
  sx?: SxProps;
18
- tableMode?: TableMode;
19
18
  }
@@ -1,5 +1,5 @@
1
1
  import type { StatusCellProps } from './type';
2
- declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, tableMode, ...props }: Readonly<StatusCellProps & {
2
+ declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, ...props }: Readonly<StatusCellProps & {
3
3
  isChargesService?: boolean;
4
4
  isAuthorizationsService?: boolean;
5
5
  }>): import("react/jsx-runtime").JSX.Element;
@@ -11,16 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { TableCell } from '../../../TableCells';
14
- import StatusChip from '../../../StatusChip';
15
14
  import { StatusIcon, StatusContainer, StatusWrapper } from './style';
16
15
  import { getStatusesFilteredObject } from './utils';
17
16
  function StatusCell(_a) {
18
- var { statuses, isTextShown, centerIconKey, xGap, tableMode } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap", "tableMode"]);
19
- const statusesFilteredObject = statuses ? getStatusesFilteredObject(statuses) : {};
17
+ var { statuses, isTextShown, centerIconKey, xGap } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap"]);
18
+ const statusesFilteredObject = getStatusesFilteredObject(statuses);
20
19
  const statusesList = Object.values(statusesFilteredObject).filter(Boolean);
21
- if (tableMode === 'sheet') {
22
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StatusContainer, { children: statusesList.map((status, index) => (_jsx(StatusChip, Object.assign({ borderColor: "transparent", padding: '0px' }, { children: status }), index))) }) })));
23
- }
24
20
  const xGapValue = isTextShown ? xGap || 120 : 40;
25
21
  const centerIconIndex = centerIconKey ? Object.entries(statusesFilteredObject).findIndex(([key]) => key === centerIconKey) : 0;
26
22
  return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {