@tap-payments/os-micro-frontend-shared 0.0.170 → 0.0.171
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/Button/StyledButton/StyledButton.d.ts +2 -1
- package/build/components/Button/StyledButton/StyledButton.js +3 -2
- package/build/components/Button/StyledButton/style.js +4 -2
- package/build/components/StatusButton/constant.d.ts +0 -1
- package/build/components/StatusButton/constant.js +1 -2
- package/build/components/StatusButton/style.d.ts +1 -1
- package/build/components/TableHeader_V2/components/StatusButtons/constant.d.ts +0 -1
- package/build/components/TableHeader_V2/components/StatusButtons/constant.js +1 -2
- package/build/components/TableHeader_V2/components/StatusButtons/style.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
3
|
export interface StyledButtonProps extends BoxProps {
|
|
4
|
+
title?: string;
|
|
4
5
|
isActive?: boolean;
|
|
5
6
|
isDisabled?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare function StyledButton({ children, ...props }: StyledButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function StyledButton({ children, title, ...props }: StyledButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
declare const _default: import("react").MemoExoticComponent<typeof StyledButton>;
|
|
9
10
|
export default _default;
|
|
@@ -12,8 +12,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo } from 'react';
|
|
14
14
|
import { Button } from './style';
|
|
15
|
+
import Tooltip from '../../Tooltip';
|
|
15
16
|
function StyledButton(_a) {
|
|
16
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
-
return _jsx(Button, Object.assign({}, props, { children: children }));
|
|
17
|
+
var { children, title } = _a, props = __rest(_a, ["children", "title"]);
|
|
18
|
+
return (_jsx(Tooltip, Object.assign({ title: title }, { children: _jsx(Button, Object.assign({}, props, { children: children })) })));
|
|
18
19
|
}
|
|
19
20
|
export default memo(StyledButton);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
|
-
export const Button = styled(Box)(({ isActive, isDisabled, theme }) => (Object.assign(Object.assign({ minWidth: 32, height: 32, width: 'fit-content', borderRadius: '4px', padding: '9px 8px', display: 'flex', alignItems: 'center', justifyContent: 'center', border: `1px solid ${theme.palette.divider}`, cursor: 'pointer' }, (isActive && {
|
|
3
|
+
export const Button = styled(Box)(({ isActive, isDisabled, theme }) => (Object.assign(Object.assign(Object.assign({ minWidth: 32, height: 32, width: 'fit-content', borderRadius: '4px', padding: '9px 8px', display: 'flex', alignItems: 'center', justifyContent: 'center', border: `1px solid ${theme.palette.divider}`, cursor: 'pointer' }, (isActive && {
|
|
4
4
|
boxShadow: theme.shadows[7],
|
|
5
5
|
borderColor: theme.palette.info.dark,
|
|
6
6
|
})), (isDisabled && {
|
|
7
7
|
opacity: 0.5,
|
|
8
8
|
pointerEvents: 'none',
|
|
9
|
-
}))
|
|
9
|
+
})), { img: {
|
|
10
|
+
filter: 'brightness(0) invert(0)',
|
|
11
|
+
} })));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon,
|
|
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,
|
|
@@ -6,7 +6,6 @@ export const statusButtonIcons = {
|
|
|
6
6
|
cancelled: cancelledIcon,
|
|
7
7
|
reversed: reverseActionIcon,
|
|
8
8
|
reports: reportsIcon,
|
|
9
|
-
view: viewIcon,
|
|
10
9
|
search: searchIcon,
|
|
11
10
|
chevronDown: chevronDownIcon,
|
|
12
11
|
unAuthorized: unAuthorizedIcon,
|
|
@@ -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?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "
|
|
23
|
+
icon?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "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>, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon,
|
|
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,
|
|
@@ -6,7 +6,6 @@ export const statusButtonIcons = {
|
|
|
6
6
|
cancelled: cancelledIcon,
|
|
7
7
|
reversed: reverseActionIcon,
|
|
8
8
|
reports: reportsIcon,
|
|
9
|
-
view: viewIcon,
|
|
10
9
|
search: searchIcon,
|
|
11
10
|
chevronDown: chevronDownIcon,
|
|
12
11
|
unAuthorized: unAuthorizedIcon,
|
|
@@ -20,7 +20,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
|
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export declare const StyledStatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
22
22
|
variant: StatusButtonVariant;
|
|
23
|
-
icon?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "
|
|
23
|
+
icon?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "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("../../..").IProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
package/package.json
CHANGED