@fixefy/fixefy-ui-components 0.0.46 → 0.0.47
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/package.json +3 -3
- package/build/FxRaaya/FxRaaya.js +0 -126
- package/build/FxRaaya/index.js +0 -11
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@apollo/client": "^3.8.4",
|
|
8
|
-
"@fixefy/fixefy-ui-utils": "
|
|
8
|
+
"@fixefy/fixefy-ui-utils": "0.0.15",
|
|
9
9
|
"@mui/icons-material": "^5.14.11",
|
|
10
10
|
"@mui/material": "^5.14.11",
|
|
11
11
|
"@mui/styled-engine": "^5.14.11",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"url": "https://github.com/Fixefy/fixefy-ui-components.git"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
-
|
|
45
|
+
"build": "swc src -d dist && tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
46
46
|
"build:copy": "node ../../scripts/copy-files-ex.js",
|
|
47
47
|
"pre_release": "yarn clean && yarn && yarn build",
|
|
48
48
|
"r": "yarn release",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"require": "./build/index.js"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"version": "0.0.
|
|
71
|
+
"version": "0.0.47"
|
|
72
72
|
}
|
package/build/FxRaaya/FxRaaya.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
FxRaaya: function() {
|
|
13
|
-
return FxRaaya;
|
|
14
|
-
},
|
|
15
|
-
StyledCount: function() {
|
|
16
|
-
return StyledCount;
|
|
17
|
-
},
|
|
18
|
-
StyledLabel: function() {
|
|
19
|
-
return StyledLabel;
|
|
20
|
-
},
|
|
21
|
-
StyledTag: function() {
|
|
22
|
-
return StyledTag;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
26
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
27
|
-
const _material = require("@mui/material");
|
|
28
|
-
const _ = require("@fixefy/fixefy-ui-utils/");
|
|
29
|
-
const _styles = require("@mui/material/styles");
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
if (key in obj) {
|
|
32
|
-
Object.defineProperty(obj, key, {
|
|
33
|
-
value: value,
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
function _interop_require_default(obj) {
|
|
44
|
-
return obj && obj.__esModule ? obj : {
|
|
45
|
-
default: obj
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function _object_spread(target) {
|
|
49
|
-
for(var i = 1; i < arguments.length; i++){
|
|
50
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
51
|
-
var ownKeys = Object.keys(source);
|
|
52
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
53
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
ownKeys.forEach(function(key) {
|
|
58
|
-
_define_property(target, key, source[key]);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return target;
|
|
62
|
-
}
|
|
63
|
-
function ownKeys(object, enumerableOnly) {
|
|
64
|
-
var keys = Object.keys(object);
|
|
65
|
-
if (Object.getOwnPropertySymbols) {
|
|
66
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
67
|
-
if (enumerableOnly) {
|
|
68
|
-
symbols = symbols.filter(function(sym) {
|
|
69
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
keys.push.apply(keys, symbols);
|
|
73
|
-
}
|
|
74
|
-
return keys;
|
|
75
|
-
}
|
|
76
|
-
function _object_spread_props(target, source) {
|
|
77
|
-
source = source != null ? source : {};
|
|
78
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
79
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
80
|
-
} else {
|
|
81
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
82
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return target;
|
|
86
|
-
}
|
|
87
|
-
const StyledTag = (0, _styles.styled)(_material.Box)(({ theme, name })=>({
|
|
88
|
-
background: name === 'in_dispute' ? '#56CCF2' : name === '' ? '#BB6BD9' : theme.palette.reconcilation[name].background,
|
|
89
|
-
borderRadius: 8,
|
|
90
|
-
padding: '2px 8px',
|
|
91
|
-
border: `1px solid ${name === 'in_dispute' ? '#56CCF2' : name === '' ? '#BB6BD9' : theme.palette.reconcilation[name].border}`,
|
|
92
|
-
display: 'flex',
|
|
93
|
-
alignItems: 'center',
|
|
94
|
-
width: 'fit-content'
|
|
95
|
-
}));
|
|
96
|
-
const StyledLabel = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
97
|
-
lineHeight: '20px',
|
|
98
|
-
color: theme.palette.common.white
|
|
99
|
-
}));
|
|
100
|
-
const StyledCount = (0, _styles.styled)(_material.Typography)(({ theme, name })=>_object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
101
|
-
lineHeight: '16px',
|
|
102
|
-
fontWeight: 700,
|
|
103
|
-
color: name === 'in_dispute' ? '#56CCF2' : name === '' ? '#BB6BD9' : theme.palette.reconcilation[name].background,
|
|
104
|
-
marginLeft: 8
|
|
105
|
-
}));
|
|
106
|
-
const FxRaaya = ({ name, count = 0 })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
107
|
-
display: "flex",
|
|
108
|
-
alignItems: "center",
|
|
109
|
-
justifyContent: "center",
|
|
110
|
-
sx: {
|
|
111
|
-
maxWidth: 'fit-content',
|
|
112
|
-
mb: 1
|
|
113
|
-
},
|
|
114
|
-
children: [
|
|
115
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(StyledTag, {
|
|
116
|
-
name: name,
|
|
117
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(StyledLabel, {
|
|
118
|
-
children: (0, _.titleCase)(name)
|
|
119
|
-
})
|
|
120
|
-
}),
|
|
121
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(StyledCount, {
|
|
122
|
-
name: name,
|
|
123
|
-
children: count
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
});
|
package/build/FxRaaya/index.js
DELETED