@tap-payments/os-micro-frontend-shared 0.1.381-test.5 → 0.1.381-test.6

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.
@@ -17,7 +17,7 @@ import Dropdown from '../../../DropdownMenu';
17
17
  import Tooltip from '../../../Tooltip';
18
18
  import { TableCell } from '../../../TableCells';
19
19
  import StyledBadge, { BadgeVariants } from '../../../CountBadge';
20
- import { idIcon, jsonBlackIcon } from '../../../../constants/index.js';
20
+ import { jsonBlackIcon, rowIdIcon } from '../../../../constants/index.js';
21
21
  import ActionIconsVariants from './components/ActionIconsVariants';
22
22
  import { actionIcons, colorToVariant, flags } from './constant';
23
23
  import { useActionCell } from './hooks/useActionCell';
@@ -71,7 +71,7 @@ export const ActionCell = memo((_a) => {
71
71
  },
72
72
  opacity: 1,
73
73
  },
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, { id: rowId || row.id, icon: idIcon }), _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, { id: rowId || row.id, icon: rowIdIcon }), _jsxs("div", Object.assign({ "data-testid": "ActionCell_IconsContainer", style: {
75
75
  display: 'flex',
76
76
  alignItems: 'center',
77
77
  justifyContent: 'center',
@@ -30,8 +30,8 @@ function IDButton({ icon, id }) {
30
30
  if (isHover)
31
31
  setIsHover(false);
32
32
  };
33
- return (_jsx(Tooltip, Object.assign({ title: t('copy') }, { children: _jsx(Box, Object.assign({ sx: { position: 'relative', minWidth: '20px', height: '26px', cursor: 'pointer' } }, { children: _jsxs(Button, Object.assign({ onClick: handleCopyRowId, onMouseEnter: onShow, onMouseLeave: onHide, isHover: isHover, initial: { width: '20px' }, animate: {
34
- width: isHover ? 'auto' : '20px',
33
+ return (_jsx(Tooltip, Object.assign({ title: t('copy') }, { children: _jsx(Box, Object.assign({ sx: { position: 'relative', minWidth: '24px', height: '26px', cursor: 'pointer' } }, { children: _jsxs(Button, Object.assign({ onClick: handleCopyRowId, onMouseEnter: onShow, onMouseLeave: onHide, isHover: isHover, initial: { width: '24px' }, style: Object.assign({}, (showCopy && { padding: '4px' })), animate: {
34
+ width: isHover ? 'auto' : '24px',
35
35
  position: isHover ? 'absolute' : 'static',
36
36
  } }, { children: [isHover && (_jsx(RowId, Object.assign({ initial: {
37
37
  opacity: 0,
@@ -1,6 +1,6 @@
1
1
  import { styled } from '@mui/material/styles';
2
2
  import { motion } from 'framer-motion';
3
- export const Button = styled(motion.div, { shouldForwardProp: (props) => props !== 'isHover' })(({ theme, isHover }) => (Object.assign({ padding: '4px', paddingInlineStart: '8px', border: '1px solid transparent', display: 'flex', gap: '4px', alignItems: 'center', justifyContent: 'flex-end', backgroundColor: theme.palette.common.white, float: 'right', borderRadius: '56px' }, (isHover && {
3
+ export const Button = styled(motion.div, { shouldForwardProp: (props) => props !== 'isHover' })(({ theme, isHover }) => (Object.assign({ paddingInlineStart: '8px', border: '1px solid transparent', display: 'flex', gap: '4px', alignItems: 'center', justifyContent: 'flex-end', backgroundColor: theme.palette.common.white, float: 'right', borderRadius: '56px' }, (isHover && {
4
4
  borderColor: 'rgba(92, 92, 92, 0.05)',
5
5
  boxShadow: '-7px 0px 8px 0px #F2F2F2',
6
6
  position: 'absolute',
@@ -55,6 +55,7 @@ export declare const reversePayoutIcon: string;
55
55
  export declare const ellipsisHorizontalIcon: string;
56
56
  export declare const threeDsIcon: string;
57
57
  export declare const invoiceIdIcon: string;
58
+ export declare const rowIdIcon: string;
58
59
  export declare const idIcon: string;
59
60
  export declare const copyIcon: string;
60
61
  export declare const codeIcon: string;
@@ -59,7 +59,8 @@ export const disputeResolvedIcon = `${lightUrl}/disputeResolved.svg`;
59
59
  export const reversePayoutIcon = `${lightUrl}/reversePayout.svg`;
60
60
  export const ellipsisHorizontalIcon = `${lightUrl}/ellipsisHorizontal.svg`;
61
61
  export const threeDsIcon = `${lightUrl}/3ds.svg`;
62
- export const invoiceIdIcon = `${lightUrl}/invoiceId.svg`;
62
+ export const invoiceIdIcon = `${lightUrl}/invoiceIdIcon3.svg`;
63
+ export const rowIdIcon = `${lightUrl}/idIcon3.svg`;
63
64
  export const idIcon = `${lightUrl}/id.svg`;
64
65
  export const copyIcon = `${appBaseUrl}/copyIcon.svg`;
65
66
  export const codeIcon = `${appBaseUrl}/codeIcon.svg`;
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.381-test.5",
5
- "testVersion": 5,
4
+ "version": "0.1.381-test.6",
5
+ "testVersion": 6,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",