@tap-payments/os-micro-frontend-shared 0.1.147 → 0.1.148-test.1
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.
- package/build/components/AppServices/AppServices.js +1 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/constant.d.ts +1 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/constant.js +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +8 -4
- package/build/components/TableCells/CustomCells/SegmentsCell/type.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/utils.d.ts +2 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/utils.js +14 -0
- package/build/components/TableCells/CustomCells/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/index.js +0 -1
- package/build/types/index.d.ts +0 -1
- package/build/types/index.js +0 -1
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +4 -1
- package/package.json +3 -3
- package/build/components/TableCells/CustomCells/SourceMergedCell/CollapsedViewIcon.d.ts +0 -11
- package/build/components/TableCells/CustomCells/SourceMergedCell/CollapsedViewIcon.js +0 -51
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.d.ts +0 -3
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.js +0 -105
- package/build/components/TableCells/CustomCells/SourceMergedCell/index.d.ts +0 -3
- package/build/components/TableCells/CustomCells/SourceMergedCell/index.js +0 -3
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +0 -1622
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.js +0 -95
- package/build/components/TableCells/CustomCells/SourceMergedCell/type.d.ts +0 -19
- package/build/components/TableCells/CustomCells/SourceMergedCell/type.js +0 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/utils.d.ts +0 -12
- package/build/components/TableCells/CustomCells/SourceMergedCell/utils.js +0 -12
- package/build/types/source.d.ts +0 -1
- package/build/types/source.js +0 -1
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { styled } from '@mui/material/styles';
|
|
2
|
-
import { motion } from 'framer-motion';
|
|
3
|
-
export const collapsedViewIconVariants = {
|
|
4
|
-
default: { duration: 1, type: 'tween', ease: 'easeInOut' },
|
|
5
|
-
opacity: { duration: 0.0, ease: 'linear' },
|
|
6
|
-
};
|
|
7
|
-
export const MultiRefundIcon = styled(motion.img)(() => ({
|
|
8
|
-
width: '14px',
|
|
9
|
-
height: '14px',
|
|
10
|
-
}));
|
|
11
|
-
export const RefundsCountBadge = styled(motion.span)(({ theme }) => ({
|
|
12
|
-
color: theme.palette.common.white,
|
|
13
|
-
borderRadius: theme.spacing(0.5),
|
|
14
|
-
height: '12px',
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
justifyContent: 'center',
|
|
18
|
-
fontSize: '9.782px',
|
|
19
|
-
fontWeight: 600,
|
|
20
|
-
backgroundColor: theme.palette.secondary.main,
|
|
21
|
-
}));
|
|
22
|
-
export const MultiRefundContainer = styled(motion.div)(({ theme }) => ({
|
|
23
|
-
height: '16px',
|
|
24
|
-
display: 'flex',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
justifyContent: 'center',
|
|
27
|
-
backgroundColor: `${theme.palette.secondary.main}1A`,
|
|
28
|
-
paddingInline: theme.spacing(0.5),
|
|
29
|
-
borderRadius: '56px',
|
|
30
|
-
}));
|
|
31
|
-
export const statusAnimation = (index, shadow, xDelta) => ({
|
|
32
|
-
start: {
|
|
33
|
-
x: index * 6,
|
|
34
|
-
transition: {
|
|
35
|
-
duration: 0.3,
|
|
36
|
-
type: 'tween',
|
|
37
|
-
ease: 'easeIn',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
animate: {
|
|
41
|
-
x: xDelta ? index * xDelta : index * 49,
|
|
42
|
-
transition: {
|
|
43
|
-
duration: 0.3,
|
|
44
|
-
type: 'tween',
|
|
45
|
-
ease: 'easeOut',
|
|
46
|
-
},
|
|
47
|
-
boxShadow: shadow,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
export const StatusIcon = styled(motion.span)(({ isTextShown, theme }) => ({
|
|
51
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
52
|
-
borderRadius: '12px',
|
|
53
|
-
backgroundColor: theme.palette.background.paper,
|
|
54
|
-
paddingInline: '8px',
|
|
55
|
-
height: '24px',
|
|
56
|
-
display: 'flex',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
justifyContent: 'center',
|
|
59
|
-
minWidth: isTextShown ? 'auto' : '36px',
|
|
60
|
-
}));
|
|
61
|
-
export const StatusWrapper = styled(motion.div)(() => ({
|
|
62
|
-
display: 'flex',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
justifyContent: 'center',
|
|
65
|
-
position: 'absolute',
|
|
66
|
-
minHeight: '24px',
|
|
67
|
-
cursor: 'pointer',
|
|
68
|
-
borderRadius: '16px',
|
|
69
|
-
}));
|
|
70
|
-
export const StatusContainer = styled(motion.div)(({ isReversed }) => ({
|
|
71
|
-
display: 'flex',
|
|
72
|
-
justifyContent: isReversed ? 'flex-end' : 'flex-start',
|
|
73
|
-
alignItems: 'center',
|
|
74
|
-
position: 'relative',
|
|
75
|
-
overflow: 'visible',
|
|
76
|
-
}));
|
|
77
|
-
export const SheetModeContainer = styled('div')(() => ({
|
|
78
|
-
display: 'flex',
|
|
79
|
-
alignItems: 'center',
|
|
80
|
-
gap: '4px',
|
|
81
|
-
height: '18px',
|
|
82
|
-
}));
|
|
83
|
-
export const SheetModeStatusWrapper = styled('div')(() => ({
|
|
84
|
-
display: 'flex',
|
|
85
|
-
alignItems: 'center',
|
|
86
|
-
opacity: 1,
|
|
87
|
-
border: '1px solid #F2F2F2',
|
|
88
|
-
borderRadius: '24px',
|
|
89
|
-
padding: '0px 8px',
|
|
90
|
-
}));
|
|
91
|
-
export const SheetModeIconContainer = styled('div')(() => ({
|
|
92
|
-
display: 'flex',
|
|
93
|
-
alignItems: 'center',
|
|
94
|
-
opacity: 1,
|
|
95
|
-
}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { TableCellProps } from '@mui/material/TableCell';
|
|
3
|
-
import { SourceMergedCellIcons, TableMode } from '../../../../types/index.js';
|
|
4
|
-
import type { SxProps } from '@mui/material';
|
|
5
|
-
export interface SourceMergedCellProps extends TableCellProps {
|
|
6
|
-
icons: {
|
|
7
|
-
key: SourceMergedCellIcons;
|
|
8
|
-
icon: React.ReactNode;
|
|
9
|
-
}[];
|
|
10
|
-
isTextShown?: boolean;
|
|
11
|
-
centerIconKey?: SourceMergedCellIcons;
|
|
12
|
-
collapsedViewIcon?: {
|
|
13
|
-
key: SourceMergedCellIcons;
|
|
14
|
-
icon: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
isReversed?: boolean;
|
|
17
|
-
sx?: SxProps;
|
|
18
|
-
tableMode?: TableMode;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SourceMergedCellProps } from './type';
|
|
2
|
-
export declare const getIconXTranslation: ({ iconsList, tableMode, centerIndex, iconIndex, }: {
|
|
3
|
-
iconsList: (SourceMergedCellProps['icons']['0'] & {
|
|
4
|
-
width: {
|
|
5
|
-
default: number;
|
|
6
|
-
text: number;
|
|
7
|
-
};
|
|
8
|
-
})[];
|
|
9
|
-
tableMode: 'text' | 'default';
|
|
10
|
-
centerIndex: number;
|
|
11
|
-
iconIndex: number;
|
|
12
|
-
}) => number;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const getIconXTranslation = ({ iconsList, tableMode, centerIndex, iconIndex, }) => {
|
|
2
|
-
const chipsGap = 4;
|
|
3
|
-
if (iconIndex === centerIndex) {
|
|
4
|
-
return 0;
|
|
5
|
-
}
|
|
6
|
-
const isIconBeforeCenterIcon = iconIndex < centerIndex;
|
|
7
|
-
const previousIcons = isIconBeforeCenterIcon ? iconsList === null || iconsList === void 0 ? void 0 : iconsList.slice(iconIndex, centerIndex) : iconsList === null || iconsList === void 0 ? void 0 : iconsList.slice(centerIndex, iconIndex);
|
|
8
|
-
const xDirection = isIconBeforeCenterIcon ? -1 : 1;
|
|
9
|
-
return (previousIcons.reduce((acc, previousIcon) => {
|
|
10
|
-
return acc + previousIcon.width[tableMode] + chipsGap;
|
|
11
|
-
}, 0) * xDirection);
|
|
12
|
-
};
|
package/build/types/source.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SourceMergedCellIcons = 'device' | 'source' | 'auth' | 'agreement' | 'customerInitiated' | 'issuer';
|
package/build/types/source.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|