@tap-payments/os-micro-frontend-shared 0.1.427 → 0.1.429
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/Checkbox/Checkbox.js +2 -2
- package/build/components/MenuItem/style.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/AuthenticationMode.d.ts +6 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/AuthenticationMode.js +10 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/constant.d.ts +5 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/constant.js +9 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/index.d.ts +2 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/index.js +2 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/components/index.js +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/constant.d.ts +2 -2
- package/build/components/TableCells/CustomCells/SourceCell/constant.js +1 -1
- package/build/components/TableCells/CustomCells/SourceCell/type.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/type.js +1 -0
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/svgIcons.d.ts +2 -0
- package/build/constants/svgIcons.js +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { Checkbox } from '@mui/material';
|
|
4
|
-
import {
|
|
4
|
+
import { CHECKED_ICON, UNCHECKED_ICON } from '../../constants/index.js';
|
|
5
5
|
function CheckboxInput(props) {
|
|
6
6
|
return (_jsx(Checkbox, Object.assign({ disableRipple: true, sx: (theme) => ({
|
|
7
7
|
'[data-testid="IndeterminateCheckBoxIcon"]': {
|
|
@@ -9,6 +9,6 @@ function CheckboxInput(props) {
|
|
|
9
9
|
width: '14px !important',
|
|
10
10
|
height: '16px !important',
|
|
11
11
|
},
|
|
12
|
-
}), checkedIcon:
|
|
12
|
+
}), checkedIcon: props.disabled ? UNCHECKED_ICON : CHECKED_ICON }, props)));
|
|
13
13
|
}
|
|
14
14
|
export default memo(CheckboxInput);
|
|
@@ -17,7 +17,6 @@ export const MenuItemStyled = styled(Box, { shouldForwardProp: (props) => props
|
|
|
17
17
|
}));
|
|
18
18
|
export const CheckboxStyled = styled(Checkbox)(({ theme }) => ({
|
|
19
19
|
padding: 0,
|
|
20
|
-
paddingRight: '4px',
|
|
21
20
|
width: '14px !important',
|
|
22
21
|
svg: {
|
|
23
22
|
width: '12px !important',
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AuthenticationMode } from './constant';
|
|
2
|
+
interface AuthenticationModeBadgeProps {
|
|
3
|
+
mode: AuthenticationMode;
|
|
4
|
+
}
|
|
5
|
+
export declare const AuthenticationModeBadge: ({ mode }: AuthenticationModeBadgeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Box from '@mui/material/Box';
|
|
3
|
+
import Tooltip from '../../../../../Tooltip';
|
|
4
|
+
import { ChallengeIcon, FrictionlessIcon } from '../../../../../../constants/index.js';
|
|
5
|
+
import { AuthenticationMode, AUTHENTICATION_LABEL } from './constant';
|
|
6
|
+
export const AuthenticationModeBadge = ({ mode }) => {
|
|
7
|
+
if (!mode)
|
|
8
|
+
return null;
|
|
9
|
+
return (_jsx(Tooltip, Object.assign({ title: AUTHENTICATION_LABEL[mode] }, { children: _jsx(Box, { component: "img", src: mode === AuthenticationMode.Challenge ? ChallengeIcon : FrictionlessIcon }) })));
|
|
10
|
+
};
|
package/build/components/TableCells/CustomCells/SourceCell/components/AuthenticationMode/constant.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var AuthenticationMode;
|
|
2
|
+
(function (AuthenticationMode) {
|
|
3
|
+
AuthenticationMode["Challenge"] = "C";
|
|
4
|
+
AuthenticationMode["Frictionless"] = "F";
|
|
5
|
+
})(AuthenticationMode || (AuthenticationMode = {}));
|
|
6
|
+
export const AUTHENTICATION_LABEL = {
|
|
7
|
+
[AuthenticationMode.Challenge]: 'Challenge',
|
|
8
|
+
[AuthenticationMode.Frictionless]: 'Frictionless',
|
|
9
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CENTER_ICON_KEY } from './type';
|
|
2
|
-
export declare const RIGHT_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
2
|
+
export declare const RIGHT_ICON_PRIORITY: readonly [CENTER_ICON_KEY.AUTHENTICATION_MODE, CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
3
3
|
export declare const LEFT_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE];
|
|
4
|
-
export declare const CENTER_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_METHOD, CENTER_ICON_KEY.PAYMENT_TYPE, CENTER_ICON_KEY.PAYMENT_SCHEME, CENTER_ICON_KEY.PAYMENT_CARD_NUMBER, CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE, CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
4
|
+
export declare const CENTER_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_METHOD, CENTER_ICON_KEY.PAYMENT_TYPE, CENTER_ICON_KEY.PAYMENT_SCHEME, CENTER_ICON_KEY.PAYMENT_CARD_NUMBER, CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE, CENTER_ICON_KEY.AUTHENTICATION_MODE, CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CENTER_ICON_KEY } from './type';
|
|
2
|
-
export const RIGHT_ICON_PRIORITY = [CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
2
|
+
export const RIGHT_ICON_PRIORITY = [CENTER_ICON_KEY.AUTHENTICATION_MODE, CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
3
3
|
export const LEFT_ICON_PRIORITY = [CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE];
|
|
4
4
|
export const CENTER_ICON_PRIORITY = [
|
|
5
5
|
CENTER_ICON_KEY.PAYMENT_METHOD,
|
|
@@ -8,6 +8,7 @@ export declare enum CENTER_ICON_KEY {
|
|
|
8
8
|
PAYMENT_ISSUER = "paymentIssuer",
|
|
9
9
|
PAYMENT_INITIATED = "paymentInitiated",
|
|
10
10
|
PAYMENT_DEVICE = "paymentDevice",
|
|
11
|
+
AUTHENTICATION_MODE = "authenticationMode",
|
|
11
12
|
PAYMENT_AUTH = "paymentAuth",
|
|
12
13
|
PAYMENT_AGREEMENT = "paymentAgreement"
|
|
13
14
|
}
|
|
@@ -7,6 +7,7 @@ export var CENTER_ICON_KEY;
|
|
|
7
7
|
CENTER_ICON_KEY["PAYMENT_ISSUER"] = "paymentIssuer";
|
|
8
8
|
CENTER_ICON_KEY["PAYMENT_INITIATED"] = "paymentInitiated";
|
|
9
9
|
CENTER_ICON_KEY["PAYMENT_DEVICE"] = "paymentDevice";
|
|
10
|
+
CENTER_ICON_KEY["AUTHENTICATION_MODE"] = "authenticationMode";
|
|
10
11
|
CENTER_ICON_KEY["PAYMENT_AUTH"] = "paymentAuth";
|
|
11
12
|
CENTER_ICON_KEY["PAYMENT_AGREEMENT"] = "paymentAgreement";
|
|
12
13
|
})(CENTER_ICON_KEY || (CENTER_ICON_KEY = {}));
|
|
@@ -46,6 +46,8 @@ export declare const passThruWalletIcon: string;
|
|
|
46
46
|
export declare const storedValueWalletIcon: string;
|
|
47
47
|
export declare const buyNowPayLaterIcon: string;
|
|
48
48
|
export declare const openBankingIcon: string;
|
|
49
|
+
export declare const FrictionlessIcon: string;
|
|
50
|
+
export declare const ChallengeIcon: string;
|
|
49
51
|
export declare const visaIcon: string;
|
|
50
52
|
export declare const completedIcon: string;
|
|
51
53
|
export declare const chargeBackRequestedIcon: string;
|
|
@@ -51,6 +51,8 @@ export const passThruWalletIcon = `${lightUrl}/passThruWallet.svg`;
|
|
|
51
51
|
export const storedValueWalletIcon = `${lightUrl}/storedValueWallet.svg`;
|
|
52
52
|
export const buyNowPayLaterIcon = `${lightUrl}/buyNowPayLater.svg`;
|
|
53
53
|
export const openBankingIcon = `${lightUrl}/openBanking.svg`;
|
|
54
|
+
export const FrictionlessIcon = `${lightUrl}/FrictionlessIcon.svg`;
|
|
55
|
+
export const ChallengeIcon = `${lightUrl}/ChallengeIcon.svg`;
|
|
54
56
|
export const visaIcon = `${lightUrl}/visa.svg`;
|
|
55
57
|
export const completedIcon = `${lightUrl}/completed.svg`;
|
|
56
58
|
export const chargeBackRequestedIcon = `${lightUrl}/chargebackRequested.svg`;
|
package/build/constants/index.js
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const CHECKED_ICON = (_jsxs("svg", Object.assign({ width: "14", height: "14", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "0.600098", y: "0.599998", width: "10.8", height: "10.8", rx: "2.4", fill: "#1F88D0" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z", fill: "white" })] })));
|
|
3
|
+
export const UNCHECKED_ICON = (_jsxs("svg", Object.assign({ width: "14", height: "14", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("rect", { x: "1.19998", y: "1.19998", width: "9.6", height: "9.6", rx: "1.8", fill: "#FAFBFB", stroke: "#D2D5D8", strokeWidth: "1.2" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.83391 3.74242C9.04243 3.94467 9.05652 4.28748 8.86537 4.50811L5.64586 8.22424C5.55146 8.3332 5.41909 8.39664 5.27942 8.39985C5.13975 8.40306 5.0049 8.34577 4.90612 8.24125L3.15002 6.38318C2.94999 6.17154 2.94999 5.82841 3.15002 5.61677C3.35004 5.40513 3.67435 5.40513 3.87437 5.61677L5.2522 7.07461L8.11024 3.77571C8.30138 3.55508 8.62538 3.54018 8.83391 3.74242Z", fill: "#D2D5D8" })] })));
|
package/package.json
CHANGED