@tap-payments/os-micro-frontend-shared 0.0.307 → 0.0.309
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/TableCells/CustomCells/ActionCell/ActionCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +2 -2
- package/build/components/TableCells/CustomCells/type.d.ts +0 -1
- package/build/components/VirtualTable/style.js +1 -1
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +16 -1
- package/build/constants/table/cell/chargeTableCellWidth.js +16 -1
- package/package.json +1 -1
|
@@ -3,6 +3,6 @@ import type { ActionCellProps } from '../type';
|
|
|
3
3
|
type Props = Readonly<ActionCellProps> & {
|
|
4
4
|
onJsonViewClick?: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown,
|
|
6
|
+
declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: React.MemoExoticComponent<typeof ActionCell>;
|
|
8
8
|
export default _default;
|
|
@@ -26,12 +26,12 @@ import { IDButton } from '../IDButton';
|
|
|
26
26
|
import { BadgeWrapper, IdButtonContainer, TextLabel, TransparentButton } from '../style';
|
|
27
27
|
function ActionCell(_a) {
|
|
28
28
|
var _b, _c;
|
|
29
|
-
var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, renderDropdown
|
|
29
|
+
var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, renderDropdown } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "renderDropdown"]);
|
|
30
30
|
const { t } = useTranslation();
|
|
31
31
|
const { open, anchorEl, filteredActions, isAnyActionLoading, isAnyActionHasError, isAnyActionSuccessful, areThereAnyShownActions, handleClick, handleClose, setAnchorEl, } = useActionCell({ actions, isDropdownShown, onCloseDropdown, renderDropdown });
|
|
32
32
|
return (_jsx(TableCell, Object.assign({}, props, { sx: {
|
|
33
33
|
overflow: 'visible',
|
|
34
|
-
} }, { children: _jsxs(ActionCellContainer, Object.assign({ "data-testid": "ActionCell_ActionCellContainer" }, { children: [
|
|
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: {
|
|
35
35
|
textAlign: 'left',
|
|
36
36
|
justifyContent: 'flex-start',
|
|
37
37
|
} }, { children: flagTooltip })) }))) : (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsxs(BadgeWrapper, Object.assign({ "data-testid": "ActionCell_FlagBadge", sx: {
|
|
@@ -116,7 +116,6 @@ export interface ActionCellProps extends TableCellProps {
|
|
|
116
116
|
isTextShown?: boolean;
|
|
117
117
|
showIdButton?: boolean;
|
|
118
118
|
renderDropdown?: (anchorEl: HTMLElement | null, setAnchorEl: (anchorEl: HTMLElement | null) => void) => React.ReactNode;
|
|
119
|
-
render?: JSX.Element;
|
|
120
119
|
}
|
|
121
120
|
export interface DeviceCellProps extends TableCellProps {
|
|
122
121
|
deviceType?: 'DESKTOP' | 'PHONE' | 'TABLET';
|
|
@@ -30,7 +30,7 @@ export const StyledSolidBackground = styled(Box)(({ theme }) => ({
|
|
|
30
30
|
}));
|
|
31
31
|
export const StyledCell = styled(TableCell, {
|
|
32
32
|
shouldForwardProp: (prop) => !['isLast', 'isFirst', 'isSheetView', 'isSelected'].includes(prop),
|
|
33
|
-
})(({ theme, isLast, isFirst, isSheetView, isSelected }) => (Object.assign(Object.assign({ paddingBlock: '0', paddingInline: '0.3875rem !important', paddingLeft: isFirst ? '0 !important' : '0.3875rem !important', paddingRight: isLast ? '0 !important' : '0.3875rem !important', color: isSheetView ? theme.palette.text.primary : theme.palette.grey[700], fontSize: isSheetView ? theme.typography.subtitle1.fontSize : theme.typography.caption.fontSize, height: '100%', fontWeight: isSheetView ? 400 : theme.typography.fontWeightRegular, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center' }, (isSheetView && {
|
|
33
|
+
})(({ theme, isLast, isFirst, isSheetView, isSelected }) => (Object.assign(Object.assign({ paddingBlock: '0', paddingInline: '0.3875rem !important', paddingLeft: isFirst ? '0 !important' : '0.3875rem !important', paddingRight: isLast ? '0 !important' : '0.3875rem !important', color: isSheetView ? theme.palette.text.primary : theme.palette.grey[700], fontSize: isSheetView ? theme.typography.subtitle1.fontSize : theme.typography.caption.fontSize, height: '100%', fontWeight: isSheetView ? 400 : theme.typography.fontWeightRegular, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center', cursor: 'pointer' }, (isSheetView && {
|
|
34
34
|
borderRight: isLast ? 'none' : `1px solid ${theme.palette.divider}`,
|
|
35
35
|
paddingInline: '8px !important',
|
|
36
36
|
paddingLeft: '8px !important',
|
|
@@ -72,7 +72,22 @@ export declare const chargeTableCellWidth: {
|
|
|
72
72
|
readonly status: {
|
|
73
73
|
readonly default: "70px";
|
|
74
74
|
readonly text: "300px";
|
|
75
|
-
readonly sheet: "
|
|
75
|
+
readonly sheet: "170px";
|
|
76
|
+
};
|
|
77
|
+
readonly issuer_status: {
|
|
78
|
+
readonly default: "70px";
|
|
79
|
+
readonly text: "70px";
|
|
80
|
+
readonly sheet: "175px";
|
|
81
|
+
};
|
|
82
|
+
readonly gateway_status: {
|
|
83
|
+
readonly default: "70px";
|
|
84
|
+
readonly text: "70px";
|
|
85
|
+
readonly sheet: "225px";
|
|
86
|
+
};
|
|
87
|
+
readonly payout_status: {
|
|
88
|
+
readonly default: "70px";
|
|
89
|
+
readonly text: "70px";
|
|
90
|
+
readonly sheet: "130px";
|
|
76
91
|
};
|
|
77
92
|
readonly merchant: {
|
|
78
93
|
readonly default: "100px";
|
|
@@ -72,7 +72,22 @@ export const chargeTableCellWidth = {
|
|
|
72
72
|
status: {
|
|
73
73
|
default: '70px',
|
|
74
74
|
text: '300px',
|
|
75
|
-
sheet: '
|
|
75
|
+
sheet: '170px',
|
|
76
|
+
},
|
|
77
|
+
issuer_status: {
|
|
78
|
+
default: '70px',
|
|
79
|
+
text: '70px',
|
|
80
|
+
sheet: '175px',
|
|
81
|
+
},
|
|
82
|
+
gateway_status: {
|
|
83
|
+
default: '70px',
|
|
84
|
+
text: '70px',
|
|
85
|
+
sheet: '225px',
|
|
86
|
+
},
|
|
87
|
+
payout_status: {
|
|
88
|
+
default: '70px',
|
|
89
|
+
text: '70px',
|
|
90
|
+
sheet: '130px',
|
|
76
91
|
},
|
|
77
92
|
merchant: {
|
|
78
93
|
default: '100px',
|
package/package.json
CHANGED