@tap-payments/os-micro-frontend-shared 0.0.247 → 0.0.248-test.2
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/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeader.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeader.js +23 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.js +20 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/index.d.ts +4 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/index.js +4 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +25 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.js +1 -0
- package/build/components/AppWindowWrapper/index.d.ts +2 -0
- package/build/components/AppWindowWrapper/index.js +2 -0
- package/build/components/SourceChips/AuthenticationChip/AuthenticationChip.d.ts +7 -0
- package/build/components/SourceChips/AuthenticationChip/AuthenticationChip.js +31 -0
- package/build/components/SourceChips/AuthenticationChip/constants.d.ts +30 -0
- package/build/components/SourceChips/AuthenticationChip/constants.js +25 -0
- package/build/components/SourceChips/AuthenticationChip/index.d.ts +3 -0
- package/build/components/SourceChips/AuthenticationChip/index.js +2 -0
- package/build/components/SourceChips/GeographyChip/GeographyChip.d.ts +7 -0
- package/build/components/SourceChips/GeographyChip/GeographyChip.js +22 -0
- package/build/components/SourceChips/GeographyChip/constants.d.ts +16 -0
- package/build/components/SourceChips/GeographyChip/constants.js +11 -0
- package/build/components/SourceChips/GeographyChip/index.d.ts +2 -0
- package/build/components/SourceChips/GeographyChip/index.js +2 -0
- package/build/components/SourceChips/PaymentAgreementChip/PaymentAgreementChip.d.ts +7 -0
- package/build/components/SourceChips/PaymentAgreementChip/PaymentAgreementChip.js +21 -0
- package/build/components/SourceChips/PaymentAgreementChip/constants.d.ts +21 -0
- package/build/components/SourceChips/PaymentAgreementChip/constants.js +16 -0
- package/build/components/SourceChips/PaymentAgreementChip/index.d.ts +3 -0
- package/build/components/SourceChips/PaymentAgreementChip/index.js +2 -0
- package/build/components/SourceChips/index.d.ts +3 -0
- package/build/components/SourceChips/index.js +3 -0
- package/build/components/StatusChip/StatusChip.d.ts +1 -2
- package/build/components/StatusChip/StatusChip.js +10 -5
- package/build/components/StatusChip/constants.d.ts +5 -0
- package/build/components/StatusChip/constants.js +5 -0
- package/build/components/StatusChip/style.d.ts +1 -0
- package/build/components/StatusChip/type.d.ts +1 -0
- package/build/components/StatusGroupChips/style.d.ts +12 -1
- package/build/components/StatusIcons/GeographyIcon/GeographyIcon.d.ts +1 -1
- package/build/components/StatusIcons/index.d.ts +0 -1
- package/build/components/StatusIcons/index.js +0 -1
- package/build/components/Toolbar/style.d.ts +4 -4
- package/build/components/ToolbarIcon/MaximizeIcon/MaximizeIcon.d.ts +1 -1
- package/build/components/index.d.ts +2 -1
- package/build/components/index.js +2 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +1 -1
- package/build/constants/table/cell/chargeTableCellWidth.js +1 -1
- package/build/types/user.d.ts +1 -0
- package/package.json +134 -134
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AppWindowHeaderProps } from './type';
|
|
3
|
+
declare function AppWindowHeader({ isMaximized, id, isToolbarAnimationDisabled, title, leftActions, onClose, onMaximize, sx }: AppWindowHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<typeof AppWindowHeader>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { motion } from 'framer-motion';
|
|
4
|
+
import { useMouseState } from '../../../../hooks/index.js';
|
|
5
|
+
import { animationDuration } from '../../AppWindow/constant';
|
|
6
|
+
import AppWindowHeaderBase from './AppWindowHeaderBase';
|
|
7
|
+
import { CloseIcon, MaximizeIcon } from '../../../ToolbarIcon';
|
|
8
|
+
function AppWindowHeader({ isMaximized, id, isToolbarAnimationDisabled, title, leftActions, onClose, onMaximize, sx }) {
|
|
9
|
+
const { isHovered, onMouseEnter, onMouseLeave } = useMouseState();
|
|
10
|
+
return (_jsx(motion.div, Object.assign({ style: Object.assign({}, (isMaximized && {
|
|
11
|
+
height: 0,
|
|
12
|
+
zIndex: 1000,
|
|
13
|
+
position: 'relative',
|
|
14
|
+
})), animate: Object.assign(Object.assign({}, (isMaximized && {
|
|
15
|
+
width: '100vw',
|
|
16
|
+
})), (!isMaximized && {
|
|
17
|
+
transform: 'translateX(0px)',
|
|
18
|
+
width: '100%',
|
|
19
|
+
})), transition: Object.assign({ duration: animationDuration }, (isToolbarAnimationDisabled && {
|
|
20
|
+
duration: 0,
|
|
21
|
+
})) }, { children: _jsx(AppWindowHeaderBase, { title: title, maximized: isMaximized, id: id || 'draggable-dialog-title', isHovered: isHovered, onMouseHover: onMouseEnter, onMouseLeave: onMouseLeave, leftActions: leftActions || (_jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: isMaximized, onClick: () => onMaximize === null || onMaximize === void 0 ? void 0 : onMaximize(!isMaximized) })] })), sx: sx }) })));
|
|
22
|
+
}
|
|
23
|
+
export default memo(AppWindowHeader);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AppWindowHeaderBaseProps } from './type';
|
|
3
|
+
declare function AppWindowHeaderBase({ title, maximized, id, isHovered, onMouseHover, onMouseLeave, leftActions, sandboxMode, titleIconSrc, sx, ...rootProps }: AppWindowHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<typeof AppWindowHeaderBase>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { memo } from 'react';
|
|
14
|
+
import Toolbar from '../../../Toolbar';
|
|
15
|
+
import { StyledHeaderWrapperStyled } from '../../../Toolbar/style';
|
|
16
|
+
function AppWindowHeaderBase(_a) {
|
|
17
|
+
var { title, maximized = false, id, isHovered = false, onMouseHover, onMouseLeave, leftActions, sandboxMode = false, titleIconSrc, sx } = _a, rootProps = __rest(_a, ["title", "maximized", "id", "isHovered", "onMouseHover", "onMouseLeave", "leftActions", "sandboxMode", "titleIconSrc", "sx"]);
|
|
18
|
+
return (_jsx(StyledHeaderWrapperStyled, Object.assign({ className: "header-wrapper", id: id, maximized: maximized || false, sandboxMode: sandboxMode, sx: sx }, rootProps, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title || '', icon: titleIconSrc, leftActions: leftActions }) })));
|
|
19
|
+
}
|
|
20
|
+
export default memo(AppWindowHeaderBase);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyledHeaderWrapperStyled, ToolbarProps } from '../../../Toolbar';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
4
|
+
export type AppWindowHeaderBaseProps = React.ComponentProps<typeof StyledHeaderWrapperStyled> & {
|
|
5
|
+
title?: string;
|
|
6
|
+
maximized?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
isHovered?: boolean;
|
|
9
|
+
onMouseHover?: (e: SyntheticEvent) => void;
|
|
10
|
+
onMouseLeave?: (e: SyntheticEvent) => void;
|
|
11
|
+
leftActions?: ToolbarProps['leftActions'];
|
|
12
|
+
titleIconSrc?: ToolbarProps['icon'];
|
|
13
|
+
};
|
|
14
|
+
export type AppWindowHeaderProps = {
|
|
15
|
+
id?: string;
|
|
16
|
+
isToolbarAnimationDisabled?: boolean;
|
|
17
|
+
isMaximized?: boolean;
|
|
18
|
+
title?: string;
|
|
19
|
+
leftActions?: ReactNode;
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
onMaximize?: (isMaximized: boolean) => void;
|
|
22
|
+
headerBaseProps?: Partial<AppWindowHeaderBaseProps>;
|
|
23
|
+
headerBaseStyles?: SxProps<Theme>;
|
|
24
|
+
sx?: AppWindowHeaderBaseProps['sx'];
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
2
|
export { default as AppWindow, type WindowProps, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
|
+
export * from './headers/AppWindowHeader';
|
|
5
|
+
export { default as AppWindowHeader } from './headers/AppWindowHeader';
|
|
4
6
|
export * from './context';
|
|
5
7
|
export type { AppWindowProps } from './type';
|
|
6
8
|
export default AppWindowWrapper;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
2
|
export { default as AppWindow, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
|
+
export * from './headers/AppWindowHeader';
|
|
5
|
+
export { default as AppWindowHeader } from './headers/AppWindowHeader';
|
|
4
6
|
export * from './context';
|
|
5
7
|
export default AppWindowWrapper;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusChipProps } from '../../StatusChip';
|
|
2
|
+
export type AuthenticationChipType = 'issuer' | 'scheme' | 'device' | 'app' | 'wallet' | '3DS' | 'Device Biometric' | 'Non-3DS';
|
|
3
|
+
interface AuthenticationChipProps extends Omit<StatusChipProps, 'children'> {
|
|
4
|
+
authenticationType?: AuthenticationChipType;
|
|
5
|
+
}
|
|
6
|
+
declare const AuthenticationChip: ({ authenticationType, unknownText, ...props }: AuthenticationChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AuthenticationChip;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import StatusChip from '../../StatusChip';
|
|
14
|
+
import { authenticationColors } from './constants';
|
|
15
|
+
const authenticationTypeMap = {
|
|
16
|
+
issuer: 'Issuer',
|
|
17
|
+
scheme: 'Scheme',
|
|
18
|
+
device: 'Device',
|
|
19
|
+
app: 'App',
|
|
20
|
+
wallet: 'Wallet',
|
|
21
|
+
'Device Biometric': 'Biometric',
|
|
22
|
+
'3DS': '3DS',
|
|
23
|
+
'Non-3DS': 'Non-3DS',
|
|
24
|
+
};
|
|
25
|
+
const AuthenticationChip = (_a) => {
|
|
26
|
+
var { authenticationType, unknownText = 'noAuth' } = _a, props = __rest(_a, ["authenticationType", "unknownText"]);
|
|
27
|
+
const statusText = authenticationType && authenticationTypeMap[authenticationType];
|
|
28
|
+
const chipColors = authenticationType && authenticationColors[authenticationType];
|
|
29
|
+
return (_jsx(StatusChip, Object.assign({}, chipColors, { unknownText: unknownText }, props, { children: statusText })));
|
|
30
|
+
};
|
|
31
|
+
export default AuthenticationChip;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface AuthenticationColors {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
borderColor?: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const authenticationColors: {
|
|
7
|
+
issuer: {
|
|
8
|
+
bgColor: string;
|
|
9
|
+
textColor: string;
|
|
10
|
+
};
|
|
11
|
+
scheme: {
|
|
12
|
+
bgColor: string;
|
|
13
|
+
textColor: string;
|
|
14
|
+
};
|
|
15
|
+
app: {
|
|
16
|
+
bgColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
};
|
|
19
|
+
wallet: {
|
|
20
|
+
bgColor: string;
|
|
21
|
+
textColor: string;
|
|
22
|
+
};
|
|
23
|
+
device: {};
|
|
24
|
+
'Device Biometric': {
|
|
25
|
+
bgColor: string;
|
|
26
|
+
textColor: string;
|
|
27
|
+
};
|
|
28
|
+
'3DS': {};
|
|
29
|
+
'Non-3DS': {};
|
|
30
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const authenticationColors = {
|
|
2
|
+
issuer: {
|
|
3
|
+
bgColor: '#1F88D033',
|
|
4
|
+
textColor: '#1F88D0',
|
|
5
|
+
},
|
|
6
|
+
scheme: {
|
|
7
|
+
bgColor: '#5E30EB33',
|
|
8
|
+
textColor: '#5E30EB',
|
|
9
|
+
},
|
|
10
|
+
app: {
|
|
11
|
+
bgColor: '#AF2D6F33',
|
|
12
|
+
textColor: '#AF2D6F',
|
|
13
|
+
},
|
|
14
|
+
wallet: {
|
|
15
|
+
bgColor: '#18AA3333',
|
|
16
|
+
textColor: '#18AA33',
|
|
17
|
+
},
|
|
18
|
+
device: {},
|
|
19
|
+
'Device Biometric': {
|
|
20
|
+
bgColor: '#F0820033',
|
|
21
|
+
textColor: '#F08200',
|
|
22
|
+
},
|
|
23
|
+
'3DS': {},
|
|
24
|
+
'Non-3DS': {},
|
|
25
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusChipProps } from '../../StatusChip';
|
|
2
|
+
import { GeographyVariant } from '../../../types/index.js';
|
|
3
|
+
interface GeographyChipProps extends Omit<StatusChipProps, 'children'> {
|
|
4
|
+
geographyVariant?: GeographyVariant;
|
|
5
|
+
}
|
|
6
|
+
declare const GeographyChip: ({ geographyVariant, ...props }: GeographyChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default GeographyChip;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import StatusChip from '../../StatusChip';
|
|
14
|
+
import { geographyMap } from '../../../utils/index.js';
|
|
15
|
+
import { geographyColors } from './constants';
|
|
16
|
+
const GeographyChip = (_a) => {
|
|
17
|
+
var { geographyVariant } = _a, props = __rest(_a, ["geographyVariant"]);
|
|
18
|
+
const statusText = geographyVariant && geographyMap[geographyVariant];
|
|
19
|
+
const chipColors = geographyVariant && geographyColors[geographyVariant];
|
|
20
|
+
return (_jsx(StatusChip, Object.assign({}, chipColors, props, { children: statusText })));
|
|
21
|
+
};
|
|
22
|
+
export default GeographyChip;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusChipProps } from '../../StatusChip';
|
|
2
|
+
export type PaymentAgreementType = 'ORDER' | 'SAVED_CARD' | 'SUBSCRIPTION' | 'INSTALLMENT' | undefined;
|
|
3
|
+
interface PaymentAgreementChipProps extends Omit<StatusChipProps, 'children'> {
|
|
4
|
+
agreementType?: PaymentAgreementType;
|
|
5
|
+
}
|
|
6
|
+
declare const PaymentAgreementChip: ({ agreementType, unknownText, ...props }: PaymentAgreementChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PaymentAgreementChip;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import StatusChip from '../../StatusChip';
|
|
14
|
+
import { agreementTypeMap, paymentAgreementColors } from './constants';
|
|
15
|
+
const PaymentAgreementChip = (_a) => {
|
|
16
|
+
var { agreementType, unknownText = 'noAgreement' } = _a, props = __rest(_a, ["agreementType", "unknownText"]);
|
|
17
|
+
const statusText = agreementType && agreementTypeMap[agreementType];
|
|
18
|
+
const chipColors = agreementType && paymentAgreementColors[agreementType];
|
|
19
|
+
return (_jsx(StatusChip, Object.assign({}, chipColors, { unknownText: unknownText }, props, { children: statusText })));
|
|
20
|
+
};
|
|
21
|
+
export default PaymentAgreementChip;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PaymentAgreementColors {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
borderColor?: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const paymentAgreementColors: {
|
|
7
|
+
ORDER: {
|
|
8
|
+
bgColor: string;
|
|
9
|
+
textColor: string;
|
|
10
|
+
};
|
|
11
|
+
SAVED_CARD: {
|
|
12
|
+
bgColor: string;
|
|
13
|
+
textColor: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const agreementTypeMap: {
|
|
17
|
+
ORDER: string;
|
|
18
|
+
SAVED_CARD: string;
|
|
19
|
+
SUBSCRIPTION: string;
|
|
20
|
+
INSTALLMENT: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const paymentAgreementColors = {
|
|
2
|
+
ORDER: {
|
|
3
|
+
bgColor: '#5E30EB33',
|
|
4
|
+
textColor: '#5E30EB',
|
|
5
|
+
},
|
|
6
|
+
SAVED_CARD: {
|
|
7
|
+
bgColor: '#76BB4033',
|
|
8
|
+
textColor: '#76BB40',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export const agreementTypeMap = {
|
|
12
|
+
ORDER: 'Order',
|
|
13
|
+
SAVED_CARD: 'Saved card',
|
|
14
|
+
SUBSCRIPTION: 'Subscription',
|
|
15
|
+
INSTALLMENT: 'Installment',
|
|
16
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ChipProps } from './type';
|
|
3
|
-
declare const StatusChip:
|
|
2
|
+
declare const StatusChip: ({ children, unknownText, ...props }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default StatusChip;
|
|
@@ -10,10 +10,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { useTranslation } from 'react-i18next';
|
|
14
|
+
import { unknownGeographyColors } from './constants';
|
|
14
15
|
import { ChipStyled } from './style';
|
|
15
|
-
const StatusChip =
|
|
16
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const StatusChip = (_a) => {
|
|
17
|
+
var { children, unknownText } = _a, props = __rest(_a, ["children", "unknownText"]);
|
|
18
|
+
const { t } = useTranslation();
|
|
19
|
+
if (!children) {
|
|
20
|
+
return (_jsx(ChipStyled, Object.assign({}, unknownGeographyColors, props, { children: unknownText ? t(unknownText) : t('unknown') })));
|
|
21
|
+
}
|
|
22
|
+
return _jsx(ChipStyled, Object.assign({}, props, { children: children }));
|
|
23
|
+
};
|
|
19
24
|
export default StatusChip;
|
|
@@ -7,6 +7,7 @@ export declare const ChipStyled: import("@emotion/styled").StyledComponent<impor
|
|
|
7
7
|
borderColor?: string | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
padding?: string | undefined;
|
|
10
|
+
unknownText?: string | undefined;
|
|
10
11
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
12
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
13
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
|
@@ -2,4 +2,15 @@
|
|
|
2
2
|
export declare const StyledContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
4
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
-
export declare const StyledStatusChip: import("@emotion/styled").StyledComponent<
|
|
5
|
+
export declare const StyledStatusChip: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
textColor?: string | undefined;
|
|
7
|
+
bgColor?: string | undefined;
|
|
8
|
+
borderColor?: string | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
padding?: string | undefined;
|
|
11
|
+
unknownText?: string | undefined;
|
|
12
|
+
} & import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const GeographyIcon: ({ geographyVariant, countryCode, isTextShown, }: {
|
|
2
|
-
geographyVariant?: "
|
|
2
|
+
geographyVariant?: "G" | "L" | "R" | undefined;
|
|
3
3
|
countryCode?: string | undefined;
|
|
4
4
|
isTextShown?: boolean | undefined;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as AgreementIcon, type AgreementIconProps } from './AgreementIcon';
|
|
2
2
|
export { default as AuthIcons, type AuthIconsProps, AuthSourceAnimation } from './AuthIcons';
|
|
3
|
-
export { default as AuthorizationAutoIcons, VoidAutoIcon } from './AuthorizationAutoIcons';
|
|
4
3
|
export { AuthorizedIcon } from './AuthorizedIcon';
|
|
5
4
|
export { ChargeStatusIcon } from './ChargeStatusIcon';
|
|
6
5
|
export { CustomerInitiatedIcon } from './CustomerInitiated';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as AgreementIcon } from './AgreementIcon';
|
|
2
2
|
export { default as AuthIcons, AuthSourceAnimation } from './AuthIcons';
|
|
3
|
-
export { default as AuthorizationAutoIcons, VoidAutoIcon } from './AuthorizationAutoIcons';
|
|
4
3
|
export { AuthorizedIcon } from './AuthorizedIcon';
|
|
5
4
|
export { ChargeStatusIcon } from './ChargeStatusIcon';
|
|
6
5
|
export { CustomerInitiatedIcon } from './CustomerInitiated';
|
|
@@ -9,8 +9,8 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
10
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
11
|
export declare const StyledHeaderWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
12
|
-
sandboxMode
|
|
13
|
-
maximized
|
|
12
|
+
sandboxMode?: boolean | undefined;
|
|
13
|
+
maximized?: boolean | undefined;
|
|
14
14
|
isDragging?: boolean | undefined;
|
|
15
15
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
16
|
export declare const ToolbarStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -20,7 +20,7 @@ export declare const ToolbarStyled: import("@emotion/styled").StyledComponent<im
|
|
|
20
20
|
isHovered?: boolean | undefined;
|
|
21
21
|
}, {}, {}>;
|
|
22
22
|
export declare const StyledHeaderWrapperStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
23
|
-
sandboxMode
|
|
24
|
-
maximized
|
|
23
|
+
sandboxMode?: boolean | undefined;
|
|
24
|
+
maximized?: boolean | undefined;
|
|
25
25
|
isDragging?: boolean | undefined;
|
|
26
26
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BoxProps } from '@mui/material/Box';
|
|
2
2
|
interface MaximizeIconProps extends BoxProps {
|
|
3
|
-
isMaximized
|
|
3
|
+
isMaximized?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare function MaximizeIcon({ isMaximized, ...props }: MaximizeIconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as AccordionAdapter } from './AccordionAdapter';
|
|
2
2
|
export { default as ActionMenu, ActionMenuDropDown, ActionMenuItem, type ActionMenuProps } from './ActionMenu';
|
|
3
3
|
export { default as ActivityAreaChart, type ActivityAreaChartProps, type ChartDataPoint, ChartTooltip, type ChartTooltipProps, LoadingChart, type PayloadItem, } from './ActivityAreaChart';
|
|
4
|
-
export { default as AppWindowWrapper, type AccountHeaderProps, AccountHeaderTitle, AppWindow, type AccountHeaderTitleProps, type AppWindowProps, type WindowProps, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
4
|
+
export { default as AppWindowWrapper, type AccountHeaderProps, AccountHeaderTitle, AppWindowHeader, type AppWindowHeaderProps, type AppWindowHeaderBaseProps, AppWindow, type AccountHeaderTitleProps, type AppWindowProps, type WindowProps, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
5
5
|
export { default as BackgroundAnimation, type BlobGradient, type Blob } from './BackgroundAnimation';
|
|
6
6
|
export { default as Button, PlusButton, StyledButton } from './Button';
|
|
7
7
|
export { default as Calender, type CalenderProps, type DateObject } from './Calender';
|
|
@@ -94,3 +94,4 @@ export * from './StatusGroupChips';
|
|
|
94
94
|
export * from './TableHeader';
|
|
95
95
|
export { default as RangeCalender } from './RangeCalender';
|
|
96
96
|
export { default as AppServices } from './AppServices';
|
|
97
|
+
export * from './SourceChips';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as AccordionAdapter } from './AccordionAdapter';
|
|
2
2
|
export { default as ActionMenu, ActionMenuDropDown, ActionMenuItem } from './ActionMenu';
|
|
3
3
|
export { default as ActivityAreaChart, ChartTooltip, LoadingChart, } from './ActivityAreaChart';
|
|
4
|
-
export { default as AppWindowWrapper, AccountHeaderTitle, AppWindow, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
4
|
+
export { default as AppWindowWrapper, AccountHeaderTitle, AppWindowHeader, AppWindow, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
5
5
|
export { default as BackgroundAnimation } from './BackgroundAnimation';
|
|
6
6
|
export { default as Button, PlusButton, StyledButton } from './Button';
|
|
7
7
|
export { default as Calender } from './Calender';
|
|
@@ -94,3 +94,4 @@ export * from './StatusGroupChips';
|
|
|
94
94
|
export * from './TableHeader';
|
|
95
95
|
export { default as RangeCalender } from './RangeCalender';
|
|
96
96
|
export { default as AppServices } from './AppServices';
|
|
97
|
+
export * from './SourceChips';
|
|
@@ -515,3 +515,4 @@ export const dashedOutlinedCircle = `${lightUrl}/dashedOutlinedCircle.svg`;
|
|
|
515
515
|
export const deactivatedCircle = `${lightUrl}/deactivatedCircle.svg`;
|
|
516
516
|
export const exclamationOutlinedCircle = `${lightUrl}/exclamationOutlinedCircle.svg`;
|
|
517
517
|
export const outlinedCircle = `${lightUrl}/outlinedCircle.svg`;
|
|
518
|
+
export const greenCheck2ACE00 = `${lightUrl}/greenCheck2ACE00.svg`;
|
package/build/types/user.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
-
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"testVersion":
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "build/index.js",
|
|
8
|
-
"module": "build/index.js",
|
|
9
|
-
"types": "build/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./build/index.d.ts",
|
|
13
|
-
"import": "./build/index.js",
|
|
14
|
-
"require": "./build/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./constants": {
|
|
17
|
-
"types": "./build/constants/index.d.ts",
|
|
18
|
-
"import": "./build/constants/index.js",
|
|
19
|
-
"require": "./build/constants/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./components": {
|
|
22
|
-
"types": "./build/components/index.d.ts",
|
|
23
|
-
"import": "./build/components/index.js",
|
|
24
|
-
"require": "./build/components/index.js"
|
|
25
|
-
},
|
|
26
|
-
"./components/*": {
|
|
27
|
-
"types": "./build/components/*/index.d.ts",
|
|
28
|
-
"import": "./build/components/*/index.js",
|
|
29
|
-
"require": "./build/components/*/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./hooks": {
|
|
32
|
-
"types": "./build/hooks/index.d.ts",
|
|
33
|
-
"import": "./build/hooks/index.js",
|
|
34
|
-
"require": "./build/hooks/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./utils": {
|
|
37
|
-
"types": "./build/utils/index.d.ts",
|
|
38
|
-
"import": "./build/utils/index.js",
|
|
39
|
-
"require": "./build/utils/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./theme": {
|
|
42
|
-
"types": "./build/theme/index.d.ts",
|
|
43
|
-
"import": "./build/theme/index.js",
|
|
44
|
-
"require": "./build/theme/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./types": {
|
|
47
|
-
"types": "./build/types/index.d.ts",
|
|
48
|
-
"import": "./build/types/index.js",
|
|
49
|
-
"require": "./build/types/index.js"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"license": "MIT",
|
|
53
|
-
"author": {
|
|
54
|
-
"name": "Ahmed Sharkawy",
|
|
55
|
-
"email": "a.elsharkawy@tap.company"
|
|
56
|
-
},
|
|
57
|
-
"files": [
|
|
58
|
-
"build",
|
|
59
|
-
"readme.md"
|
|
60
|
-
],
|
|
61
|
-
"scripts": {
|
|
62
|
-
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
63
|
-
"push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
|
|
64
|
-
"push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
|
|
65
|
-
"dev": "vite",
|
|
66
|
-
"build": "tsc -b && vite build ",
|
|
67
|
-
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
68
|
-
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
69
|
-
"lint": "eslint . --color",
|
|
70
|
-
"lint:fix": "eslint src --fix --color",
|
|
71
|
-
"preview": "vite preview",
|
|
72
|
-
"prepare": "husky"
|
|
73
|
-
},
|
|
74
|
-
"dependencies": {
|
|
75
|
-
"@emotion/react": "^11.11.0",
|
|
76
|
-
"@emotion/styled": "^11.11.0",
|
|
77
|
-
"@hookform/resolvers": "^3.3.1",
|
|
78
|
-
"@mui/material": "^5.12.3",
|
|
79
|
-
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
80
|
-
"axios": "^1.4.0",
|
|
81
|
-
"dayjs": "^1.11.8",
|
|
82
|
-
"framer-motion": "10.11.0",
|
|
83
|
-
"i18next": "^22.4.15",
|
|
84
|
-
"memoize-one": "^6.0.0",
|
|
85
|
-
"re-resizable": "^6.9.9",
|
|
86
|
-
"react": "^18.2.0",
|
|
87
|
-
"react-currency-input-field": "^3.6.11",
|
|
88
|
-
"react-dom": "^18.2.0",
|
|
89
|
-
"react-draggable": "^4.4.6",
|
|
90
|
-
"react-dropzone": "^14.2.3",
|
|
91
|
-
"react-hook-form": "^7.45.4",
|
|
92
|
-
"react-hot-toast": "^2.4.1",
|
|
93
|
-
"react-i18next": "^12.2.2",
|
|
94
|
-
"react-multi-date-picker": "^4.1.2",
|
|
95
|
-
"react-router-dom": "^7.7.0",
|
|
96
|
-
"react-virtualized-auto-sizer": "^1.0.20",
|
|
97
|
-
"react-window": "^1.8.9",
|
|
98
|
-
"react-window-infinite-loader": "^1.0.9",
|
|
99
|
-
"react18-input-otp": "^1.1.4",
|
|
100
|
-
"recharts": "^2.15.1"
|
|
101
|
-
},
|
|
102
|
-
"devDependencies": {
|
|
103
|
-
"@eslint/js": "^9.17.0",
|
|
104
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
105
|
-
"@types/lodash": "^4.17.15",
|
|
106
|
-
"@types/react": "^18.2.6",
|
|
107
|
-
"@types/react-dom": "^18.3.5",
|
|
108
|
-
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
109
|
-
"@types/react-window": "^1.8.5",
|
|
110
|
-
"@types/react-window-infinite-loader": "^1.0.6",
|
|
111
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
112
|
-
"eslint": "^9.17.0",
|
|
113
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
114
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
115
|
-
"globals": "^15.14.0",
|
|
116
|
-
"husky": "^8.0.3",
|
|
117
|
-
"lint-staged": "^13.2.2",
|
|
118
|
-
"prettier": "^2.8.8",
|
|
119
|
-
"tsc-alias": "^1.8.16",
|
|
120
|
-
"typescript": "5.0.2",
|
|
121
|
-
"typescript-eslint": "^8.18.2",
|
|
122
|
-
"vite": "6.0.5",
|
|
123
|
-
"vite-tsconfig-paths": "^4.2.0"
|
|
124
|
-
},
|
|
125
|
-
"lint-staged": {
|
|
126
|
-
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
127
|
-
"yarn run prettier:fix",
|
|
128
|
-
"yarn run lint"
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
"publishConfig": {
|
|
132
|
-
"registry": "https://registry.npmjs.org/"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
+
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
+
"version": "0.0.248-test.2",
|
|
5
|
+
"testVersion": 2,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "build/index.js",
|
|
8
|
+
"module": "build/index.js",
|
|
9
|
+
"types": "build/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./build/index.d.ts",
|
|
13
|
+
"import": "./build/index.js",
|
|
14
|
+
"require": "./build/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./constants": {
|
|
17
|
+
"types": "./build/constants/index.d.ts",
|
|
18
|
+
"import": "./build/constants/index.js",
|
|
19
|
+
"require": "./build/constants/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./components": {
|
|
22
|
+
"types": "./build/components/index.d.ts",
|
|
23
|
+
"import": "./build/components/index.js",
|
|
24
|
+
"require": "./build/components/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./components/*": {
|
|
27
|
+
"types": "./build/components/*/index.d.ts",
|
|
28
|
+
"import": "./build/components/*/index.js",
|
|
29
|
+
"require": "./build/components/*/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./hooks": {
|
|
32
|
+
"types": "./build/hooks/index.d.ts",
|
|
33
|
+
"import": "./build/hooks/index.js",
|
|
34
|
+
"require": "./build/hooks/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./utils": {
|
|
37
|
+
"types": "./build/utils/index.d.ts",
|
|
38
|
+
"import": "./build/utils/index.js",
|
|
39
|
+
"require": "./build/utils/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./theme": {
|
|
42
|
+
"types": "./build/theme/index.d.ts",
|
|
43
|
+
"import": "./build/theme/index.js",
|
|
44
|
+
"require": "./build/theme/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./types": {
|
|
47
|
+
"types": "./build/types/index.d.ts",
|
|
48
|
+
"import": "./build/types/index.js",
|
|
49
|
+
"require": "./build/types/index.js"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"author": {
|
|
54
|
+
"name": "Ahmed Sharkawy",
|
|
55
|
+
"email": "a.elsharkawy@tap.company"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"build",
|
|
59
|
+
"readme.md"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
63
|
+
"push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
|
|
64
|
+
"push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
|
|
65
|
+
"dev": "vite",
|
|
66
|
+
"build": "tsc -b && vite build ",
|
|
67
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
68
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
69
|
+
"lint": "eslint . --color",
|
|
70
|
+
"lint:fix": "eslint src --fix --color",
|
|
71
|
+
"preview": "vite preview",
|
|
72
|
+
"prepare": "husky"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@emotion/react": "^11.11.0",
|
|
76
|
+
"@emotion/styled": "^11.11.0",
|
|
77
|
+
"@hookform/resolvers": "^3.3.1",
|
|
78
|
+
"@mui/material": "^5.12.3",
|
|
79
|
+
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
80
|
+
"axios": "^1.4.0",
|
|
81
|
+
"dayjs": "^1.11.8",
|
|
82
|
+
"framer-motion": "10.11.0",
|
|
83
|
+
"i18next": "^22.4.15",
|
|
84
|
+
"memoize-one": "^6.0.0",
|
|
85
|
+
"re-resizable": "^6.9.9",
|
|
86
|
+
"react": "^18.2.0",
|
|
87
|
+
"react-currency-input-field": "^3.6.11",
|
|
88
|
+
"react-dom": "^18.2.0",
|
|
89
|
+
"react-draggable": "^4.4.6",
|
|
90
|
+
"react-dropzone": "^14.2.3",
|
|
91
|
+
"react-hook-form": "^7.45.4",
|
|
92
|
+
"react-hot-toast": "^2.4.1",
|
|
93
|
+
"react-i18next": "^12.2.2",
|
|
94
|
+
"react-multi-date-picker": "^4.1.2",
|
|
95
|
+
"react-router-dom": "^7.7.0",
|
|
96
|
+
"react-virtualized-auto-sizer": "^1.0.20",
|
|
97
|
+
"react-window": "^1.8.9",
|
|
98
|
+
"react-window-infinite-loader": "^1.0.9",
|
|
99
|
+
"react18-input-otp": "^1.1.4",
|
|
100
|
+
"recharts": "^2.15.1"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@eslint/js": "^9.17.0",
|
|
104
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
105
|
+
"@types/lodash": "^4.17.15",
|
|
106
|
+
"@types/react": "^18.2.6",
|
|
107
|
+
"@types/react-dom": "^18.3.5",
|
|
108
|
+
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
109
|
+
"@types/react-window": "^1.8.5",
|
|
110
|
+
"@types/react-window-infinite-loader": "^1.0.6",
|
|
111
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
112
|
+
"eslint": "^9.17.0",
|
|
113
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
114
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
115
|
+
"globals": "^15.14.0",
|
|
116
|
+
"husky": "^8.0.3",
|
|
117
|
+
"lint-staged": "^13.2.2",
|
|
118
|
+
"prettier": "^2.8.8",
|
|
119
|
+
"tsc-alias": "^1.8.16",
|
|
120
|
+
"typescript": "5.0.2",
|
|
121
|
+
"typescript-eslint": "^8.18.2",
|
|
122
|
+
"vite": "6.0.5",
|
|
123
|
+
"vite-tsconfig-paths": "^4.2.0"
|
|
124
|
+
},
|
|
125
|
+
"lint-staged": {
|
|
126
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
127
|
+
"yarn run prettier:fix",
|
|
128
|
+
"yarn run lint"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"publishConfig": {
|
|
132
|
+
"registry": "https://registry.npmjs.org/"
|
|
133
|
+
}
|
|
134
|
+
}
|