@fixefy/fixefy-ui-components 0.3.103 → 0.3.105
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,5 +1,8 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const useStyles: (params: void, muiStyleOverridesParams?:
|
|
2
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
3
|
+
props: Record<string, unknown>;
|
|
4
|
+
ownerState?: Record<string, unknown> | undefined;
|
|
5
|
+
} | undefined) => {
|
|
3
6
|
classes: Record<"container" | "approveButton" | "paper" | "selected" | "divider" | "actions" | "close" | "actionButton", string>;
|
|
4
7
|
theme: import("@mui/material/styles").Theme;
|
|
5
8
|
css: import("tss-react").Css;
|
package/dist/FxTag/FxTag.js
CHANGED
|
@@ -18,6 +18,13 @@ function _interop_require_default(obj) {
|
|
|
18
18
|
default: obj
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
const getDisplayName = (name)=>{
|
|
22
|
+
// Special case mapping for state names
|
|
23
|
+
if (name === 'pending_refund') {
|
|
24
|
+
return 'Pending Credit';
|
|
25
|
+
}
|
|
26
|
+
return (0, _fixefyuiutils.titleCase)(name);
|
|
27
|
+
};
|
|
21
28
|
const FxTag = ({ name, count = 0, type })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
22
29
|
display: "flex",
|
|
23
30
|
alignItems: "center",
|
|
@@ -31,7 +38,7 @@ const FxTag = ({ name, count = 0, type })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_
|
|
|
31
38
|
name: name,
|
|
32
39
|
type: type,
|
|
33
40
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_tagstyles.StyledLabel, {
|
|
34
|
-
children: (
|
|
41
|
+
children: getDisplayName(name)
|
|
35
42
|
})
|
|
36
43
|
}),
|
|
37
44
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_tagstyles.StyledCount, {
|
package/package.json
CHANGED