@tap-payments/os-micro-frontend-shared 0.1.33-test.1 → 0.1.33-test.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon, searchIcon, chevronDownIcon, unAuthorizedIcon, settlementInitiatedIcon, unCapturedIcon, capturedIcon, authorizedIcon, openFlagIcon, closedFlagIcon, reverseActionIcon, authenticatedIcon, unauthenticatedIcon, paidOutFilterIcon, scheduledFilterIcon,
|
|
1
|
+
import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon, searchIcon, chevronDownIcon, unAuthorizedIcon, settlementInitiatedIcon, unCapturedIcon, capturedIcon, authorizedIcon, openFlagIcon, closedFlagIcon, reverseActionIcon, authenticatedIcon, unauthenticatedIcon, paidOutFilterIcon, scheduledFilterIcon, } from '../../constants/index.js';
|
|
2
2
|
export const statusButtonIcons = {
|
|
3
3
|
inProgress: initiatedIcon,
|
|
4
4
|
initiated: initiatedIcon,
|
|
@@ -19,5 +19,4 @@ export const statusButtonIcons = {
|
|
|
19
19
|
authenticated: authenticatedIcon,
|
|
20
20
|
paidOut: paidOutFilterIcon,
|
|
21
21
|
scheduled: scheduledFilterIcon,
|
|
22
|
-
checked: capturedDropdownIcon,
|
|
23
22
|
};
|
|
@@ -20,7 +20,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
|
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
22
22
|
variant: StatusButtonVariant;
|
|
23
|
-
icon?: "search" | "scheduled" | "paidOut" | "reversed" | "
|
|
23
|
+
icon?: "search" | "scheduled" | "paidOut" | "reversed" | "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "authorized" | "unauthenticated" | "authenticated" | "unSettled" | "reports" | "chevronDown" | "unAuthorized" | "openFlag" | "closedFlag" | undefined;
|
|
24
24
|
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
25
25
|
export declare const StyledFilterName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
26
26
|
export declare const StyledDropdown: import("@emotion/styled").StyledComponent<import("../DropdownMenu").IProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
@@ -35,5 +35,5 @@ export declare const LabelWrapper: import("@emotion/styled").StyledComponent<imp
|
|
|
35
35
|
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
36
36
|
export declare const StyledStatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
37
37
|
variant: StatusButtonVariant;
|
|
38
|
-
icon?: "search" | "scheduled" | "paidOut" | "reversed" | "
|
|
38
|
+
icon?: "search" | "scheduled" | "paidOut" | "reversed" | "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "authorized" | "unauthenticated" | "authenticated" | "unSettled" | "reports" | "chevronDown" | "unAuthorized" | "openFlag" | "closedFlag" | undefined;
|
|
39
39
|
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
@@ -5,7 +5,7 @@ import { Resizable } from 're-resizable';
|
|
|
5
5
|
import { APP_WINDOW_Z_INDEX, FOOTER_HEIGHT, HEADER_HEIGHT } from '../../constants/index.js';
|
|
6
6
|
import { contentStyle, ContentWrapper, initalStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
|
|
7
7
|
function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, }) {
|
|
8
|
-
var _a, _b
|
|
8
|
+
var _a, _b;
|
|
9
9
|
const [isDrag, setIsDrag] = useState(true);
|
|
10
10
|
const modalRef = useRef(null);
|
|
11
11
|
const constraintsRef = useRef(null);
|
|
@@ -21,18 +21,14 @@ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragC
|
|
|
21
21
|
top: 0,
|
|
22
22
|
}))), [isMaximized, width]);
|
|
23
23
|
const dragConstraints = useMemo(() => {
|
|
24
|
-
var _a, _b, _c, _d
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
25
|
return ({
|
|
26
|
-
|
|
27
|
-
left:
|
|
28
|
-
|
|
29
|
-
bottom:
|
|
30
|
-
Number((_j = (_h = constraintsRef.current) === null || _h === void 0 ? void 0 : _h.parentElement) === null || _j === void 0 ? void 0 : _j.offsetHeight) -
|
|
31
|
-
Number((_k = constraintsRef.current) === null || _k === void 0 ? void 0 : _k.offsetTop) -
|
|
32
|
-
Number((_l = modalRef.current) === null || _l === void 0 ? void 0 : _l.offsetHeight) -
|
|
33
|
-
10,
|
|
26
|
+
top: 0,
|
|
27
|
+
left: 0,
|
|
28
|
+
right: window.innerWidth - ((_b = (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) !== null && _b !== void 0 ? _b : 0) - 10,
|
|
29
|
+
bottom: window.innerHeight - ((_d = (_c = modalRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0) - 10,
|
|
34
30
|
});
|
|
35
|
-
}, [(_a =
|
|
31
|
+
}, [(_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth, (_b = modalRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight]);
|
|
36
32
|
useEffect(() => {
|
|
37
33
|
var _a;
|
|
38
34
|
(_a = resizableRef.current) === null || _a === void 0 ? void 0 : _a.updateSize({
|
package/build/types/table.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface TableStatus<T> {
|
|
|
19
19
|
filterStatus: T;
|
|
20
20
|
totalCount?: number;
|
|
21
21
|
}
|
|
22
|
-
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' |
|
|
22
|
+
export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | (string & {}) | undefined;
|
|
23
23
|
export interface IColumnProps<R = any> {
|
|
24
24
|
header?: string | (() => React.ReactNode);
|
|
25
25
|
render?: (props: IRenderAttr<R, IColumnProps<R>>) => React.ReactNode;
|
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.33-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.33-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|