@tap-payments/os-micro-frontend-shared 0.0.47 → 0.0.49
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/Chip/GroupIconChips.js +5 -1
- package/build/components/Chip/style.js +2 -2
- package/build/components/TableHeader_V2/index.d.ts +1 -0
- package/build/components/TableHeader_V2/index.js +1 -0
- package/build/components/TableHeader_V2/type.d.ts +2 -2
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/types/table.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,11 @@ const GroupIconChips = ({ children, className, getSourceAnimation, expandDirecti
|
|
|
24
24
|
getSourceAnimation,
|
|
25
25
|
expandDirection }));
|
|
26
26
|
}), [children, getSourceAnimation, sourceCount, expandDirection]);
|
|
27
|
-
return (_jsx(StyledSourceCell, Object.assign({ "data-testid": "styled-source-cell", sx: Object.assign({}, cellDimentions) }, { children: _jsx(SourcesContainer, Object.assign({ ref: animationContainerRef,
|
|
27
|
+
return (_jsx(StyledSourceCell, Object.assign({ "data-testid": "styled-source-cell", sx: Object.assign({}, cellDimentions) }, { children: _jsx(SourcesContainer, Object.assign({ ref: animationContainerRef, layout: true, className: className, whileHover: "animate", animate: "start", sourcesCount: sourceCount, variants: {
|
|
28
|
+
animate: {
|
|
29
|
+
width: sourceCount * (6 + 32),
|
|
30
|
+
},
|
|
31
|
+
}, style: {
|
|
28
32
|
zIndex: 29,
|
|
29
33
|
} }, { children: overrideChildren })) })));
|
|
30
34
|
};
|
|
@@ -39,7 +39,7 @@ export const StyledSourceCell = styled('span')(({ theme }) => ({
|
|
|
39
39
|
gap: theme.spacing(1),
|
|
40
40
|
position: 'relative',
|
|
41
41
|
}));
|
|
42
|
-
export const SourcesContainer = styled(motion.span)(({
|
|
42
|
+
export const SourcesContainer = styled(motion.span)(({ sourcesCount }) => ({
|
|
43
43
|
display: 'flex',
|
|
44
44
|
alignItems: 'center',
|
|
45
45
|
justifyContent: 'flex-start',
|
|
@@ -47,7 +47,7 @@ export const SourcesContainer = styled(motion.span)(({ theme, sourcesCount }) =>
|
|
|
47
47
|
minWidth: `${sourcesCount * 6 + 36}px `,
|
|
48
48
|
minHeight: '24px',
|
|
49
49
|
cursor: 'pointer',
|
|
50
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: 'transparent',
|
|
51
51
|
borderRadius: '16px',
|
|
52
52
|
}));
|
|
53
53
|
export const defaultGetSourceAnimation = (params) => {
|
|
@@ -9,8 +9,8 @@ declare const viewsOptions: {
|
|
|
9
9
|
custom: {};
|
|
10
10
|
};
|
|
11
11
|
export type View = keyof typeof viewsOptions;
|
|
12
|
-
export type AvailableStatus = StatusButtonProps & {
|
|
13
|
-
status: TableHeaderStatus | TableHeaderStatus[];
|
|
12
|
+
export type AvailableStatus<T = undefined> = StatusButtonProps & {
|
|
13
|
+
status: T | TableHeaderStatus | (TableHeaderStatus | T)[];
|
|
14
14
|
};
|
|
15
15
|
export interface TableHeaderProps {
|
|
16
16
|
availableStatuses?: AvailableStatus[];
|
|
@@ -477,3 +477,4 @@ export const babyBlueCheckIcon = `${lightUrl}/babyBlueCheckIcon.svg`;
|
|
|
477
477
|
export const digitalReceiptIcon = `${lightUrl}/digitalReceiptIcon.svg`;
|
|
478
478
|
export const bankNoteIcon = `${lightUrl}/bankNoteIcon.svg`;
|
|
479
479
|
export const terminalDeviceFrame = `${lightUrl}/terminalDeviceFrame.svg`;
|
|
480
|
+
export const blackBrushIcon = `${lightUrl}/blackBrushIcon.svg`;
|
package/build/types/table.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface TableStatus<T> {
|
|
|
17
17
|
filterStatus: T;
|
|
18
18
|
totalCount?: number;
|
|
19
19
|
}
|
|
20
|
-
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | undefined;
|
|
20
|
+
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | (string & {}) | undefined;
|
|
21
21
|
export interface IColumnProps<R = any> {
|
|
22
22
|
header?: string | (() => React.ReactNode);
|
|
23
23
|
render?: (props: IRenderAttr<R, IColumnProps<R>>) => React.ReactNode;
|
package/package.json
CHANGED