@tap-payments/os-micro-frontend-shared 0.1.123-test.1 → 0.1.123-test.11
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/BrandsCell/BrandsCell.js +1 -1
- package/build/components/TableCells/CustomCells/IndividualsCell/IndividualsCell.js +1 -1
- package/build/components/TableCells/CustomCells/MarketPlaceCell/MarketPlaceCell.js +3 -5
- package/build/components/TableCells/CustomCells/MarketPlaceCell/type.d.ts +2 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCell.js +4 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/constants.d.ts +2 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/constants.js +2 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/Inputs.js +3 -1
- package/build/constants/table/cell/merchantsTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/merchantsTableCellWidth.js +3 -3
- package/build/types/merchant.d.ts +1 -0
- package/package.json +2 -2
|
@@ -19,5 +19,5 @@ import IconWithBadge from '../../../IconWithBadge';
|
|
|
19
19
|
export default function BrandsCell(_a) {
|
|
20
20
|
var { brand, verificationStatus, hideStatus } = _a, props = __rest(_a, ["brand", "verificationStatus", "hideStatus"]);
|
|
21
21
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
22
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, Object.assign({ sx: { cursor: props.onClick ? 'pointer' : 'default' } }, { children:
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsx(BrandsWrapper, Object.assign({ sx: { cursor: props.onClick ? 'pointer' : 'default' } }, { children: _jsxs(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px', sx: { overflow: 'hidden', width: '100%' } }, { children: [_jsx(IconWithBadge, { mainIcon: brand.logo, mainIconSize: 16, containerSize: 16, borderColor: "transparent" }), _jsx(Label, Object.assign({ sx: Object.assign({}, (!brand.name && { color: '#B1B1B1' })) }, { children: brand.name || 'Not Available' })), !hideStatus && (_jsx(IconWithBadge, { mainIcon: icon, mainIconSize: 10, containerSize: 10, borderColor: "transparent", containerSx: { marginLeft: 'auto' } }))] })) })) })) })));
|
|
23
23
|
}
|
|
@@ -17,5 +17,5 @@ import Tooltip from '../../../Tooltip';
|
|
|
17
17
|
export default function IndividualsCell(_a) {
|
|
18
18
|
var { id, status, count, name } = _a, props = __rest(_a, ["id", "status", "count", "name"]);
|
|
19
19
|
const icon = verificationIcons[status !== null && status !== void 0 ? status : 'incomplete'];
|
|
20
|
-
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(
|
|
20
|
+
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(Tooltip, Object.assign({ title: name }, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(IndividualContainer, { children: [_jsx(IndividualName, { children: id }), _jsxs(VerificationContainer, { children: [_jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count - 1] }) }))] })] })) : (_jsx(EmptyCell, { children: "Not Available" })) }) })) })));
|
|
21
21
|
}
|
|
@@ -16,10 +16,8 @@ import { Box } from '@mui/material';
|
|
|
16
16
|
import { marketPlaceBlueIcon } from '../../../../constants/index.js';
|
|
17
17
|
export default function MarketPlaceCell(_a) {
|
|
18
18
|
var { marketPlaceIcon, marketPlaceName } = _a, props = __rest(_a, ["marketPlaceIcon", "marketPlaceName"]);
|
|
19
|
-
const logo = marketPlaceIcon !== null && marketPlaceIcon !== void 0 ? marketPlaceIcon : (_jsx("img", { src: marketPlaceBlueIcon, alt: "marketplace", style: { maxWidth: '18px', maxHeight: '18px', objectFit: 'cover' }
|
|
20
|
-
|
|
21
|
-
} }));
|
|
22
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', gap: 1 } }, { children: _jsx(Tooltip, Object.assign({ title: marketPlaceName }, { children: _jsx(Box, Object.assign({ sx: {
|
|
19
|
+
const logo = marketPlaceIcon !== null && marketPlaceIcon !== void 0 ? marketPlaceIcon : (_jsx("img", { src: marketPlaceBlueIcon, alt: "marketplace", style: { maxWidth: '18px', maxHeight: '18px', objectFit: 'cover' } }));
|
|
20
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', gap: 1 } }, { children: marketPlaceName && (_jsx(Tooltip, Object.assign({ title: marketPlaceName }, { children: _jsx(Box, Object.assign({ sx: {
|
|
23
21
|
width: '24px',
|
|
24
22
|
height: '24px',
|
|
25
23
|
border: '1px solid #F2F2F2',
|
|
@@ -27,5 +25,5 @@ export default function MarketPlaceCell(_a) {
|
|
|
27
25
|
display: 'flex',
|
|
28
26
|
alignItems: 'center',
|
|
29
27
|
justifyContent: 'center',
|
|
30
|
-
} }, { children: logo })) })) })) })));
|
|
28
|
+
} }, { children: logo })) }))) })) })));
|
|
31
29
|
}
|
|
@@ -15,6 +15,7 @@ import { ImageWrapper } from '../../../index.js';
|
|
|
15
15
|
import { TableCell } from '../../../TableCells';
|
|
16
16
|
import { openUrl } from '../../../../utils/index.js';
|
|
17
17
|
import { ChannelTextLabel, ChannelTextWrapper, salesChannelAnimation, SalesChannelsContainer, StyledSourceCell, StyledSourceImage } from './style';
|
|
18
|
+
import { NON_CLICKABLE_CHANNELS } from './constants';
|
|
18
19
|
function SalesChannelCell(_a) {
|
|
19
20
|
var _b;
|
|
20
21
|
var { channels, isTextShown } = _a, props = __rest(_a, ["channels", "isTextShown"]);
|
|
@@ -23,9 +24,11 @@ function SalesChannelCell(_a) {
|
|
|
23
24
|
const sourceTooltip = channel.address;
|
|
24
25
|
const channelCode = (_a = channel.code) === null || _a === void 0 ? void 0 : _a.replace(/_/g, '');
|
|
25
26
|
const isLastChannel = index === (channels === null || channels === void 0 ? void 0 : channels.length) - 1;
|
|
26
|
-
return (_jsx(Tooltip, Object.assign({ title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: salesChannelAnimation(index, isTextShown ? 74 : 0), sx: Object.assign({ width: isTextShown ? '70px' : '36px', cursor: 'pointer' }, (isLastChannel && {
|
|
27
|
+
return (_jsx(Tooltip, Object.assign({ title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: salesChannelAnimation(index, isTextShown ? 74 : 0), sx: Object.assign({ width: isTextShown ? '70px' : '36px', cursor: NON_CLICKABLE_CHANNELS.includes(channel.code) ? 'default' : 'pointer' }, (isLastChannel && {
|
|
27
28
|
boxShadow: '7px 0px 8px 0px #F2F2F2',
|
|
28
29
|
})), onClick: () => {
|
|
30
|
+
if (NON_CLICKABLE_CHANNELS.includes(channel.code))
|
|
31
|
+
return;
|
|
29
32
|
if (channel === null || channel === void 0 ? void 0 : channel.address)
|
|
30
33
|
openUrl(channel.address);
|
|
31
34
|
} }, { children: isTextShown ? (_jsx(ChannelTextWrapper, { children: _jsx(ChannelTextLabel, { children: channelCode }) })) : (_jsx(StyledSourceImage, { src: channel.logo, alt: channelCode })) })) }), `${channel}-${index}`));
|
|
@@ -23,7 +23,7 @@ function SegmentsCell(_a) {
|
|
|
23
23
|
var { isTextShown, segments } = _a, props = __rest(_a, ["isTextShown", "segments"]);
|
|
24
24
|
const [isTooltipOpen, setIsTooltipOpen] = useState(false);
|
|
25
25
|
const theme = useTheme();
|
|
26
|
-
const ReferenceSources = useMemo(() => segments.map((segment, index) => {
|
|
26
|
+
const ReferenceSources = useMemo(() => segments === null || segments === void 0 ? void 0 : segments.filter((segment) => !!segment.name).map((segment, index) => {
|
|
27
27
|
const prefixKey = ['technology', 'institution'].includes(segment.type) ? 'Payment' : '';
|
|
28
28
|
const sourceTooltip = segment.tooltip || `${prefixKey} ${startCase(segment.type)} - ${segment.name}`;
|
|
29
29
|
return (_jsx(Tooltip, Object.assign({ onOpen: () => {
|
|
@@ -43,6 +43,8 @@ function Inputs({ onCloseDropdown, filter: { options = [], onConfirm, data, isOn
|
|
|
43
43
|
setValues(Object.assign(Object.assign({}, values), { [apiKey]: e.target.value }));
|
|
44
44
|
}, disabled: isDisabled || isInputDisabled(apiKey, filterGroup), value: getInputValue(apiKey), inputProps: { autoComplete: 'off', 'data-testid': 'ColumnFilterInputs_input' }, endAdornment: _jsx(Box, { component: "img", "data-testid": "ColumnFilterInputs_icon", "data-icon": isInputHasValue(apiKey) ? 'close' : 'search', src: isInputHasValue(apiKey) ? grayCloseIcon : searchIcon, alt: "search", className: "icon", sx: { cursor: isInputHasValue(apiKey) ? 'pointer' : 'default' }, onClick: () => {
|
|
45
45
|
onClickResetInput(apiKey);
|
|
46
|
-
} }) })) }, apiKey))) })), _jsx(Collapse, Object.assign({ in: showClearButton, component: "section", "data-testid": "ColumnFilterInputs_Collapse"
|
|
46
|
+
} }) })) }, apiKey))) })), _jsx(Collapse, Object.assign({ in: showClearButton, component: "section", "data-testid": "ColumnFilterInputs_Collapse", sx: {
|
|
47
|
+
borderTop: '0',
|
|
48
|
+
} }, { children: _jsx(ClearWrapper, Object.assign({ "data-testid": "ColumnFilterInputs_ClearWrapper" }, { children: _jsx(ClearButton, Object.assign({ type: "button", onClick: onClickClear, "data-testid": "ColumnFilterInputs_ClearButton" }, { children: t('clear') })) })) })), _jsxs(Footer, Object.assign({ component: "footer", "data-testid": "ColumnFilterInputs_footer" }, { children: [_jsx(CancelButton, Object.assign({ type: "button", onClick: onClickCancel, "data-testid": "ColumnFilterInputs_CancelButton" }, { children: t('cancel') })), _jsx(OkayButton, Object.assign({ type: "button", onClick: onClickOkay, "data-testid": "ColumnFilterInputs_OkayButton" }, { children: t('okay') }))] }))] })));
|
|
47
49
|
}
|
|
48
50
|
export default Inputs;
|
|
@@ -5,12 +5,12 @@ export declare const merchantsTableCellWidth: {
|
|
|
5
5
|
readonly sheet: "225px";
|
|
6
6
|
};
|
|
7
7
|
readonly entity: {
|
|
8
|
-
readonly default: "
|
|
8
|
+
readonly default: "137px";
|
|
9
9
|
readonly text: "180px";
|
|
10
10
|
readonly sheet: "180px";
|
|
11
11
|
};
|
|
12
12
|
readonly created: {
|
|
13
|
-
readonly default: "
|
|
13
|
+
readonly default: "144px";
|
|
14
14
|
readonly text: "170px";
|
|
15
15
|
readonly sheet: "170px";
|
|
16
16
|
};
|
|
@@ -25,7 +25,7 @@ export declare const merchantsTableCellWidth: {
|
|
|
25
25
|
readonly sheet: "110px";
|
|
26
26
|
};
|
|
27
27
|
readonly individuals: {
|
|
28
|
-
readonly default: "
|
|
28
|
+
readonly default: "147px";
|
|
29
29
|
readonly text: "185px";
|
|
30
30
|
readonly sheet: "185px";
|
|
31
31
|
};
|
|
@@ -5,12 +5,12 @@ export const merchantsTableCellWidth = {
|
|
|
5
5
|
sheet: '225px',
|
|
6
6
|
},
|
|
7
7
|
entity: {
|
|
8
|
-
default: '
|
|
8
|
+
default: '137px',
|
|
9
9
|
text: '180px',
|
|
10
10
|
sheet: '180px',
|
|
11
11
|
},
|
|
12
12
|
created: {
|
|
13
|
-
default: '
|
|
13
|
+
default: '144px',
|
|
14
14
|
text: '170px',
|
|
15
15
|
sheet: '170px',
|
|
16
16
|
},
|
|
@@ -25,7 +25,7 @@ export const merchantsTableCellWidth = {
|
|
|
25
25
|
sheet: '110px',
|
|
26
26
|
},
|
|
27
27
|
individuals: {
|
|
28
|
-
default: '
|
|
28
|
+
default: '147px',
|
|
29
29
|
text: '185px',
|
|
30
30
|
sheet: '185px',
|
|
31
31
|
},
|
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.123-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.123-test.11",
|
|
5
|
+
"testVersion": 11,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|