@tap-payments/os-micro-frontend-shared 0.1.18-test.5 → 0.1.18-test.7
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/LeadStatusCell/LeadStatusCell.d.ts +2 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/LeadStatusCell.js +25 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/constant.d.ts +7 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/constant.js +8 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/style.d.ts +2 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/style.js +12 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/type.d.ts +6 -0
- package/build/components/TableCells/CustomCells/LeadStatusCell/type.js +1 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.js +1 -0
- package/build/constants/assets.d.ts +5 -0
- package/build/constants/assets.js +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
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 { useTranslation } from 'react-i18next';
|
|
14
|
+
import camelCase from 'lodash/camelCase';
|
|
15
|
+
import capitalize from 'lodash/capitalize';
|
|
16
|
+
import Tooltip from '../../../Tooltip';
|
|
17
|
+
import { TableCell } from '../../../TableCells';
|
|
18
|
+
import IconWithBadge from '../../../IconWithBadge';
|
|
19
|
+
import { statusIcons } from './constant';
|
|
20
|
+
import { StatusIconWrapper } from './style';
|
|
21
|
+
export default function LeadStatusCell(_a) {
|
|
22
|
+
var { status } = _a, props = __rest(_a, ["status"]);
|
|
23
|
+
const { t } = useTranslation();
|
|
24
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: status && statusIcons[status] && (_jsx(Tooltip, Object.assign({ title: t(capitalize(camelCase(status))) }, { children: _jsx(StatusIconWrapper, { children: _jsx(IconWithBadge, { mainIcon: statusIcons[status], mainIconSize: 16, containerSize: 16, borderColor: "transparent" }) }) }))) })));
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { activeLeadStatusIcon, completedLeadStatusIcon, closedLeadStatusIcon, expiredLeadStatusIcon, readyLeadStatusIcon } from '../../../../constants/index.js';
|
|
2
|
+
export const statusIcons = {
|
|
3
|
+
active: activeLeadStatusIcon,
|
|
4
|
+
completed: completedLeadStatusIcon,
|
|
5
|
+
closed: closedLeadStatusIcon,
|
|
6
|
+
expired: expiredLeadStatusIcon,
|
|
7
|
+
ready: readyLeadStatusIcon,
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LeadStatusCell } from './LeadStatusCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LeadStatusCell } from './LeadStatusCell';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StatusIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from '@mui/material';
|
|
2
|
+
export const StatusIconWrapper = styled('span')(({ theme }) => ({
|
|
3
|
+
width: '36px',
|
|
4
|
+
height: '24px',
|
|
5
|
+
borderRadius: '24px',
|
|
6
|
+
backgroundColor: 'transparent',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
flexShrink: 0,
|
|
11
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
12
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -256,6 +256,11 @@ export declare const savedStatusIcon: string;
|
|
|
256
256
|
export declare const scheduledStatusIcon: string;
|
|
257
257
|
export declare const pendingStatusIcon: string;
|
|
258
258
|
export declare const refundedStatusIcon: string;
|
|
259
|
+
export declare const activeLeadStatusIcon: string;
|
|
260
|
+
export declare const completedLeadStatusIcon: string;
|
|
261
|
+
export declare const closedLeadStatusIcon: string;
|
|
262
|
+
export declare const expiredLeadStatusIcon: string;
|
|
263
|
+
export declare const readyLeadStatusIcon: string;
|
|
259
264
|
export declare const newFileIcon: string;
|
|
260
265
|
export declare const teamWindowIcon: string;
|
|
261
266
|
export declare const blueAppsIcon: string;
|
|
@@ -260,6 +260,11 @@ export const savedStatusIcon = `${appBaseUrl}/savedStatus1.svg`;
|
|
|
260
260
|
export const scheduledStatusIcon = `${appBaseUrl}/scheduledStatus1.svg`;
|
|
261
261
|
export const pendingStatusIcon = `${appBaseUrl}/invoicePendingStatus2.svg`;
|
|
262
262
|
export const refundedStatusIcon = `${appBaseUrl}/invoiceRefundedStatus2.svg`;
|
|
263
|
+
export const activeLeadStatusIcon = `${lightUrl}/activeLeadStatus.svg`;
|
|
264
|
+
export const completedLeadStatusIcon = `${lightUrl}/completedLeadStatus.svg`;
|
|
265
|
+
export const closedLeadStatusIcon = `${lightUrl}/closedLeadStatus.svg`;
|
|
266
|
+
export const expiredLeadStatusIcon = `${lightUrl}/expiredLeadStatus.svg`;
|
|
267
|
+
export const readyLeadStatusIcon = `${lightUrl}/readyLeadStatus.svg`;
|
|
263
268
|
export const newFileIcon = `${lightUrl}/newFileIcon.svg`;
|
|
264
269
|
export const teamWindowIcon = `${lightUrl}/teamWindowIcon.svg`;
|
|
265
270
|
export const blueAppsIcon = `${lightUrl}/blueAppsIcon.svg`;
|
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.18-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.18-test.7",
|
|
5
|
+
"testVersion": 7,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|