@tap-payments/os-micro-frontend-shared 0.1.344-test.7 → 0.1.345-test.1
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/MFWidgetLoader/MFWidgetLoader.d.ts +1 -4
- package/build/components/MFWidgetLoader/MFWidgetLoader.js +10 -8
- package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.js +1 -1
- package/build/types/entity.d.ts +2 -1
- package/package.json +2 -2
- package/build/components/MFWidgetLoader/DefaultMFWidgetLoader.d.ts +0 -1
- package/build/components/MFWidgetLoader/DefaultMFWidgetLoader.js +0 -12
- package/build/components/MFWidgetLoader/ReportsMFWidgetLoader.d.ts +0 -1
- package/build/components/MFWidgetLoader/ReportsMFWidgetLoader.js +0 -7
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
appCode?: string;
|
|
3
|
-
}
|
|
4
|
-
declare const MFWidgetLoader: ({ appCode }: MFWidgetLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const MFWidgetLoader: () => import("react/jsx-runtime").JSX.Element;
|
|
5
2
|
export default MFWidgetLoader;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Stack } from '@mui/material';
|
|
3
|
+
import Skeleton from '@mui/material/Skeleton';
|
|
4
|
+
const MFWidgetLoader = () => {
|
|
5
|
+
return (_jsxs(Stack, Object.assign({ height: "100%", borderRadius: "0 0 12px 12px", overflow: "hidden" }, { children: [_jsxs(Stack, Object.assign({ direction: "row", spacing: 1, height: "4.1875rem", sx: {
|
|
6
|
+
pb: '1.2rem',
|
|
7
|
+
paddingInline: '32px',
|
|
8
|
+
pt: '10px',
|
|
9
|
+
background: (theme) => theme.palette.background.transparent[0],
|
|
10
|
+
} }, { children: [_jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 }), _jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 }), _jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 })] })), _jsx(Box, { flex: 1, bgcolor: "#fff" })] })));
|
|
9
11
|
};
|
|
10
12
|
export default MFWidgetLoader;
|
|
@@ -6,7 +6,7 @@ import { StatusChip, StatusChipWithCopy, Text } from '../../../index.js';
|
|
|
6
6
|
export function OrdersCellSheet({ items, selectionProps = {} }) {
|
|
7
7
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
8
8
|
const open = Boolean(anchorEl);
|
|
9
|
-
const orderLabel = useCallback(({ quantity, currency, amount, name }) => `${quantity ? `Qty ${quantity}` : ''} ${name
|
|
9
|
+
const orderLabel = useCallback(({ quantity, currency, amount, name }) => `${quantity ? `Qty ${quantity}` : ''} ${name ? `- ${name}` : ''} ${currency || amount ? '-' : ''} ${currency || ''} ${amount || ''}`, []);
|
|
10
10
|
if (!items || !items.length)
|
|
11
11
|
return null;
|
|
12
12
|
const [firstOrder, ...resetOrders] = items;
|
package/build/types/entity.d.ts
CHANGED
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.345-test.1",
|
|
5
|
+
"testVersion": 1,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function DefaultMFWidgetLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Stack from '@mui/material/Stack';
|
|
3
|
-
import Box from '@mui/material/Box';
|
|
4
|
-
import Skeleton from '@mui/material/Skeleton';
|
|
5
|
-
export function DefaultMFWidgetLoader() {
|
|
6
|
-
return (_jsxs(Stack, Object.assign({ height: "100%", borderRadius: "0 0 12px 12px", overflow: "hidden" }, { children: [_jsxs(Stack, Object.assign({ direction: "row", spacing: 1, height: "4.1875rem", sx: {
|
|
7
|
-
pb: '1.2rem',
|
|
8
|
-
paddingInline: '32px',
|
|
9
|
-
pt: '10px',
|
|
10
|
-
background: (theme) => theme.palette.background.transparent[0],
|
|
11
|
-
} }, { children: [_jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 }), _jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 }), _jsx(Skeleton, { sx: { bgcolor: 'gray.300' }, variant: "rounded", width: 60, height: 31 })] })), _jsx(Box, { flex: 1, bgcolor: "#fff" })] })));
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ReportsMFWidgetLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Stack from '@mui/material/Stack';
|
|
3
|
-
import Box from '@mui/material/Box';
|
|
4
|
-
import Skeleton from '@mui/material/Skeleton';
|
|
5
|
-
export function ReportsMFWidgetLoader() {
|
|
6
|
-
return (_jsx(Stack, Object.assign({ height: "100%", borderRadius: "0 0 12px 12px", overflow: "hidden", sx: { padding: '8px 32px' } }, { children: [...Array(4)].map(() => (_jsxs(Stack, Object.assign({ direction: "row", spacing: 1, sx: { padding: '8px 0', height: 56 }, className: "report-loading" }, { children: [_jsx(Skeleton, { variant: "rounded", width: 32, height: 32 }), _jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'column', gap: '4px' } }, { children: [_jsx(Skeleton, { width: 80, height: 12.29 }), _jsxs(Box, Object.assign({ sx: { display: 'flex', gap: '4px' } }, { children: [_jsx(Skeleton, { width: 50, height: 12.29 }), _jsx(Skeleton, { width: 125, height: 12.29 })] }))] }))] })))) })));
|
|
7
|
-
}
|