@fixefy/fixefy-ui-components 0.3.30 → 0.3.31
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/dist/FxCheckbox/FxCheckbox.d.ts +9 -0
- package/dist/FxCheckbox/FxCheckbox.js +76 -0
- package/dist/FxCheckbox/index.d.ts +1 -0
- package/dist/{src/FxIcon → FxCheckbox}/index.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
- package/dist/FxActionButton/FxActionButton.d.ts +0 -7
- package/dist/FxActionButton/FxActionButton.js +0 -82
- package/dist/FxActionButton/index.d.ts +0 -1
- package/dist/FxActionButton/index.js +0 -11
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
- package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
- package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
- package/dist/FxFilterActionButton/index.d.ts +0 -1
- package/dist/FxFilterActionButton/index.js +0 -11
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
- package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/FxFilterSortButton/index.d.ts +0 -1
- package/dist/FxFilterSortButton/index.js +0 -11
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
- package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
- package/dist/FxModalWithButton/index.d.ts +0 -1
- package/dist/FxModalWithButton/index.js +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
- package/dist/FxModalWithComponent/index.d.ts +0 -1
- package/dist/FxModalWithComponent/index.js +0 -11
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
- package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
- package/dist/FxModalWithMenu/index.d.ts +0 -1
- package/dist/FxModalWithMenu/index.js +0 -11
- package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
- package/dist/FxPopper/styles/makeStyles.js +0 -23
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
- package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
- package/dist/FxWizard/FxWizard/index.d.ts +0 -2
- package/dist/FxWizard/FxWizard/index.js +0 -19
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
- package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/index.js +0 -18
- package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
- package/dist/FxWizard/pages/wizard/[step].js +0 -112
- package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
- package/dist/FxWizard/pages/wizard/index.js +0 -18
- package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
- package/dist/src/FxActionsTray/index.js +0 -19
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
- package/dist/src/FxAggregationsBar/index.js +0 -22
- package/dist/src/FxAggregationsBar/operations/query.js +0 -73
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
- package/dist/src/FxAsyncDropdown/index.js +0 -25
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
- package/dist/src/FxAvatar/FxAvatar.js +0 -145
- package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
- package/dist/src/FxAvatar/index.js +0 -22
- package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
- package/dist/src/FxButton/FxButton.js +0 -106
- package/dist/src/FxButton/index.js +0 -19
- package/dist/src/FxButton/styles/button.styles.js +0 -23
- package/dist/src/FxChip/FxChip.js +0 -45
- package/dist/src/FxChip/index.js +0 -19
- package/dist/src/FxChip/styles/chip.styles.js +0 -61
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/src/FxFilterSortButton/index.js +0 -11
- package/dist/src/FxIcon/FxIcon.js +0 -107
- package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
- package/dist/src/FxIcon/content/index.js +0 -20
- package/dist/src/FxIcon/content/lazy_icon.js +0 -137
- package/dist/src/FxModal/FxModal.js +0 -170
- package/dist/src/FxModal/index.js +0 -19
- package/dist/src/FxModal/styles/modal.style.js +0 -59
- package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
- package/dist/src/FxModalWithButton/index.js +0 -11
- package/dist/src/FxNotes/FxNotes.js +0 -216
- package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
- package/dist/src/FxNotes/index.js +0 -22
- package/dist/src/FxNotes/operations/queries.js +0 -35
- package/dist/src/FxNotes/styles/notes.styles.js +0 -168
- package/dist/src/FxNumberField/FxNumberField.js +0 -109
- package/dist/src/FxNumberField/index.js +0 -19
- package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
- package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
- package/dist/src/FxProgressCircle/index.js +0 -19
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
- package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
- package/dist/src/FxProgressCounter/index.js +0 -19
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
- package/dist/src/FxScore/FxScore.js +0 -207
- package/dist/src/FxScore/index.js +0 -19
- package/dist/src/FxScore/styles/score.styles.js +0 -97
- package/dist/src/FxShowMore/FxShowMore.js +0 -80
- package/dist/src/FxShowMore/index.js +0 -19
- package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
- package/dist/src/FxSlider/FxSlider.js +0 -49
- package/dist/src/FxSlider/index.js +0 -19
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
- package/dist/src/FxStatisticsBar/index.js +0 -19
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
- package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
- package/dist/src/FxStatusBar/helpers/constants.js +0 -22
- package/dist/src/FxStatusBar/index.js +0 -22
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
- package/dist/src/FxStyledComponents/index.js +0 -310
- package/dist/src/FxTag/FxTag.js +0 -41
- package/dist/src/FxTag/index.js +0 -19
- package/dist/src/FxTag/styles/tag.styles.js +0 -100
- package/dist/src/FxTextField/FxTextField.js +0 -208
- package/dist/src/FxTextField/index.js +0 -19
- package/dist/src/FxTodo/FxTodo.js +0 -95
- package/dist/src/FxTodo/index.js +0 -22
- package/dist/src/FxTodo/styles/todo.styles.js +0 -183
- package/dist/src/index.js +0 -215
|
@@ -1,192 +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
|
-
AvatarGroup: function() {
|
|
13
|
-
return AvatarGroup;
|
|
14
|
-
},
|
|
15
|
-
AvatarWrapper: function() {
|
|
16
|
-
return AvatarWrapper;
|
|
17
|
-
},
|
|
18
|
-
EditIcon: function() {
|
|
19
|
-
return EditIcon;
|
|
20
|
-
},
|
|
21
|
-
FxTooltip: function() {
|
|
22
|
-
return FxTooltip;
|
|
23
|
-
},
|
|
24
|
-
StyledAvatar: function() {
|
|
25
|
-
return StyledAvatar;
|
|
26
|
-
},
|
|
27
|
-
StyledMoreAvatar: function() {
|
|
28
|
-
return StyledMoreAvatar;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
32
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
33
|
-
const _styles = require("@mui/material/styles");
|
|
34
|
-
const _material = require("@mui/material");
|
|
35
|
-
const _Tooltip = /*#__PURE__*/ _interop_require_default(require("@mui/material/Tooltip"));
|
|
36
|
-
const _EditOutlined = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/EditOutlined"));
|
|
37
|
-
function _define_property(obj, key, value) {
|
|
38
|
-
if (key in obj) {
|
|
39
|
-
Object.defineProperty(obj, key, {
|
|
40
|
-
value: value,
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
obj[key] = value;
|
|
47
|
-
}
|
|
48
|
-
return obj;
|
|
49
|
-
}
|
|
50
|
-
function _interop_require_default(obj) {
|
|
51
|
-
return obj && obj.__esModule ? obj : {
|
|
52
|
-
default: obj
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function _object_spread(target) {
|
|
56
|
-
for(var i = 1; i < arguments.length; i++){
|
|
57
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
58
|
-
var ownKeys = Object.keys(source);
|
|
59
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
60
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
61
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
ownKeys.forEach(function(key) {
|
|
65
|
-
_define_property(target, key, source[key]);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return target;
|
|
69
|
-
}
|
|
70
|
-
function ownKeys(object, enumerableOnly) {
|
|
71
|
-
var keys = Object.keys(object);
|
|
72
|
-
if (Object.getOwnPropertySymbols) {
|
|
73
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
74
|
-
if (enumerableOnly) {
|
|
75
|
-
symbols = symbols.filter(function(sym) {
|
|
76
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
keys.push.apply(keys, symbols);
|
|
80
|
-
}
|
|
81
|
-
return keys;
|
|
82
|
-
}
|
|
83
|
-
function _object_spread_props(target, source) {
|
|
84
|
-
source = source != null ? source : {};
|
|
85
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
86
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
87
|
-
} else {
|
|
88
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
89
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
function _object_without_properties(source, excluded) {
|
|
95
|
-
if (source == null) return {};
|
|
96
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
97
|
-
var key, i;
|
|
98
|
-
if (Object.getOwnPropertySymbols) {
|
|
99
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
100
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
101
|
-
key = sourceSymbolKeys[i];
|
|
102
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
103
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
104
|
-
target[key] = source[key];
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return target;
|
|
108
|
-
}
|
|
109
|
-
function _object_without_properties_loose(source, excluded) {
|
|
110
|
-
if (source == null) return {};
|
|
111
|
-
var target = {};
|
|
112
|
-
var sourceKeys = Object.keys(source);
|
|
113
|
-
var key, i;
|
|
114
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
115
|
-
key = sourceKeys[i];
|
|
116
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
117
|
-
target[key] = source[key];
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
const AvatarWrapper = (0, _styles.styled)("div")(()=>({
|
|
122
|
-
display: "flex",
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
justifyContent: "space-between",
|
|
125
|
-
flexDirection: "row"
|
|
126
|
-
}));
|
|
127
|
-
const AvatarGroup = (0, _styles.styled)("div")(()=>({
|
|
128
|
-
display: "flex",
|
|
129
|
-
alignItems: "center",
|
|
130
|
-
justifyContent: "space-between",
|
|
131
|
-
flexDirection: "row",
|
|
132
|
-
"&>:first-of-type": {
|
|
133
|
-
marginLeft: 0
|
|
134
|
-
}
|
|
135
|
-
}));
|
|
136
|
-
const StyledAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
|
|
137
|
-
width: 32,
|
|
138
|
-
height: 32,
|
|
139
|
-
border: `2px solid ${theme.palette.common.white}`,
|
|
140
|
-
marginLeft: "-8px",
|
|
141
|
-
fontFamily: "Open Sans",
|
|
142
|
-
fontStyle: "normal",
|
|
143
|
-
fontWeight: "normal",
|
|
144
|
-
fontSize: 14,
|
|
145
|
-
lineHeight: "20px",
|
|
146
|
-
letterSpacing: "0.15px"
|
|
147
|
-
}));
|
|
148
|
-
const StyledMoreAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
|
|
149
|
-
width: 32,
|
|
150
|
-
height: 32,
|
|
151
|
-
border: `2px solid ${theme.palette.common.white}`,
|
|
152
|
-
marginLeft: "-8px",
|
|
153
|
-
fontFamily: "Open Sans",
|
|
154
|
-
fontStyle: "normal",
|
|
155
|
-
fontWeight: "normal",
|
|
156
|
-
fontSize: 11,
|
|
157
|
-
lineHeight: "16px",
|
|
158
|
-
letterSpacing: "0.1px",
|
|
159
|
-
color: theme.palette.greyscale.dark,
|
|
160
|
-
backgroundColor: theme.palette.greyscale.light
|
|
161
|
-
}));
|
|
162
|
-
const EditIcon = (0, _styles.styled)(_EditOutlined.default)(({ theme })=>({
|
|
163
|
-
cursor: "pointer",
|
|
164
|
-
color: theme.palette.primary.light
|
|
165
|
-
}));
|
|
166
|
-
const FxTooltip = (0, _styles.styled)((_param)=>{
|
|
167
|
-
var { className } = _param, props = _object_without_properties(_param, [
|
|
168
|
-
"className"
|
|
169
|
-
]);
|
|
170
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Tooltip.default, _object_spread_props(_object_spread({}, props), {
|
|
171
|
-
placement: "top",
|
|
172
|
-
arrow: true,
|
|
173
|
-
classes: {
|
|
174
|
-
popper: className
|
|
175
|
-
}
|
|
176
|
-
}));
|
|
177
|
-
})(({ theme })=>({
|
|
178
|
-
[`& .${_material.tooltipClasses.arrow}`]: {
|
|
179
|
-
color: theme.palette.primary.main
|
|
180
|
-
},
|
|
181
|
-
[`& .${_material.tooltipClasses.tooltip}`]: {
|
|
182
|
-
backgroundColor: theme.palette.primary.main,
|
|
183
|
-
padding: 12,
|
|
184
|
-
fontFamily: "Open Sans",
|
|
185
|
-
fontStyle: "normal",
|
|
186
|
-
fontWeight: "normal",
|
|
187
|
-
fontSize: 14,
|
|
188
|
-
lineHeight: "20px",
|
|
189
|
-
textAlign: "center",
|
|
190
|
-
letterSpacing: "0.15px"
|
|
191
|
-
}
|
|
192
|
-
}));
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const _buttonstyles = require("./styles/button.styles");
|
|
14
|
-
function _define_property(obj, key, value) {
|
|
15
|
-
if (key in obj) {
|
|
16
|
-
Object.defineProperty(obj, key, {
|
|
17
|
-
value: value,
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
obj[key] = value;
|
|
24
|
-
}
|
|
25
|
-
return obj;
|
|
26
|
-
}
|
|
27
|
-
function _interop_require_default(obj) {
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _object_spread(target) {
|
|
33
|
-
for(var i = 1; i < arguments.length; i++){
|
|
34
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35
|
-
var ownKeys = Object.keys(source);
|
|
36
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
37
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
38
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
ownKeys.forEach(function(key) {
|
|
42
|
-
_define_property(target, key, source[key]);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return target;
|
|
46
|
-
}
|
|
47
|
-
function ownKeys(object, enumerableOnly) {
|
|
48
|
-
var keys = Object.keys(object);
|
|
49
|
-
if (Object.getOwnPropertySymbols) {
|
|
50
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
51
|
-
if (enumerableOnly) {
|
|
52
|
-
symbols = symbols.filter(function(sym) {
|
|
53
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
keys.push.apply(keys, symbols);
|
|
57
|
-
}
|
|
58
|
-
return keys;
|
|
59
|
-
}
|
|
60
|
-
function _object_spread_props(target, source) {
|
|
61
|
-
source = source != null ? source : {};
|
|
62
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
63
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
64
|
-
} else {
|
|
65
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
66
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return target;
|
|
70
|
-
}
|
|
71
|
-
function _object_without_properties(source, excluded) {
|
|
72
|
-
if (source == null) return {};
|
|
73
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
74
|
-
var key, i;
|
|
75
|
-
if (Object.getOwnPropertySymbols) {
|
|
76
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
77
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
78
|
-
key = sourceSymbolKeys[i];
|
|
79
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
80
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
81
|
-
target[key] = source[key];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return target;
|
|
85
|
-
}
|
|
86
|
-
function _object_without_properties_loose(source, excluded) {
|
|
87
|
-
if (source == null) return {};
|
|
88
|
-
var target = {};
|
|
89
|
-
var sourceKeys = Object.keys(source);
|
|
90
|
-
var key, i;
|
|
91
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
92
|
-
key = sourceKeys[i];
|
|
93
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
94
|
-
target[key] = source[key];
|
|
95
|
-
}
|
|
96
|
-
return target;
|
|
97
|
-
}
|
|
98
|
-
function FxButton(_param) {
|
|
99
|
-
var { type = 'primary', children } = _param, rest = _object_without_properties(_param, [
|
|
100
|
-
"type",
|
|
101
|
-
"children"
|
|
102
|
-
]);
|
|
103
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_buttonstyles.ButtonStyled, _object_spread_props(_object_spread({}, rest), {
|
|
104
|
-
children: children
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
@@ -1,19 +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
|
-
ButtonPropsType: function() {
|
|
13
|
-
return _FxButton.ButtonPropsType;
|
|
14
|
-
},
|
|
15
|
-
FxButton: function() {
|
|
16
|
-
return _FxButton.FxButton;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _FxButton = require("./FxButton");
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "ButtonStyled", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return ButtonStyled;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _material = require("@mui/material");
|
|
12
|
-
const _styles = require("@mui/material/styles");
|
|
13
|
-
const ButtonStyled = (0, _styles.styled)(_material.Button)(({ theme, variant })=>{
|
|
14
|
-
const border = variant === 'text' ? `0px solid #0000` : `1px solid ${theme.palette.primary.main}`;
|
|
15
|
-
return {
|
|
16
|
-
border,
|
|
17
|
-
minHeight: '40px',
|
|
18
|
-
borderRadius: '100px',
|
|
19
|
-
minWidth: '87px',
|
|
20
|
-
fontSize: '12px',
|
|
21
|
-
letterSpacing: '0.5px'
|
|
22
|
-
};
|
|
23
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxChip", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxChip;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
14
|
-
const _iconsmaterial = require("@mui/icons-material");
|
|
15
|
-
const _chipstyles = require("./styles/chip.styles");
|
|
16
|
-
function _interop_require_default(obj) {
|
|
17
|
-
return obj && obj.__esModule ? obj : {
|
|
18
|
-
default: obj
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const FxChip = (props)=>{
|
|
22
|
-
const { status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete } = props;
|
|
23
|
-
const newStatus = status ? status.split(' ').join('_') : status;
|
|
24
|
-
const value = typeof label === 'number' ? label.toFixed(2) : label;
|
|
25
|
-
return type === 'status' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.StatusChipStyled, {
|
|
26
|
-
status: newStatus,
|
|
27
|
-
label: (0, _fixefyuiutils.titleCase)(value),
|
|
28
|
-
variant: variant,
|
|
29
|
-
onClick: onClick,
|
|
30
|
-
onDelete: onDelete,
|
|
31
|
-
deleteIcon: onDelete ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_iconsmaterial.CloseRounded, {
|
|
32
|
-
sx: {
|
|
33
|
-
width: 11,
|
|
34
|
-
height: 11
|
|
35
|
-
}
|
|
36
|
-
}) : null
|
|
37
|
-
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_chipstyles.ScoreChipStyled, {
|
|
38
|
-
score: scoreValue,
|
|
39
|
-
scoreLabel: (0, _fixefyuiutils.getScoreColor)(scoreValue),
|
|
40
|
-
label: (0, _fixefyuiutils.titleCase)(value),
|
|
41
|
-
minimized: minimized,
|
|
42
|
-
variant: variant,
|
|
43
|
-
onClick: onClick
|
|
44
|
-
});
|
|
45
|
-
};
|
package/dist/src/FxChip/index.js
DELETED
|
@@ -1,19 +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
|
-
ChipPropsType: function() {
|
|
13
|
-
return _FxChip.ChipPropsType;
|
|
14
|
-
},
|
|
15
|
-
FxChip: function() {
|
|
16
|
-
return _FxChip.FxChip;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _FxChip = require("./FxChip");
|
|
@@ -1,61 +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
|
-
ScoreChipStyled: function() {
|
|
13
|
-
return ScoreChipStyled;
|
|
14
|
-
},
|
|
15
|
-
StatusChipStyled: function() {
|
|
16
|
-
return StatusChipStyled;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _material = require("@mui/material");
|
|
20
|
-
const _styles = require("@mui/material/styles");
|
|
21
|
-
const ScoreChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, scoreLabel, minimized })=>{
|
|
22
|
-
const color = theme.palette.score[scoreLabel];
|
|
23
|
-
return {
|
|
24
|
-
height: 20,
|
|
25
|
-
minWidth: minimized ? 35 : 80,
|
|
26
|
-
maxWidth: 120,
|
|
27
|
-
backgroundColor: color,
|
|
28
|
-
['& .MuiChip-label']: {
|
|
29
|
-
color: theme.palette.common.white,
|
|
30
|
-
fontSize: 9,
|
|
31
|
-
fontWeight: 600,
|
|
32
|
-
paddingLeft: minimized ? 0 : 'inherit',
|
|
33
|
-
paddingRight: minimized ? 0 : 'inherit'
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
const StatusChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, status, variant })=>{
|
|
38
|
-
let backgroundColor, border, labelColor;
|
|
39
|
-
if (theme.palette.status[status]) {
|
|
40
|
-
if (variant === 'filled') {
|
|
41
|
-
backgroundColor = theme.palette.status[status]['border'];
|
|
42
|
-
labelColor = theme.palette.common.white;
|
|
43
|
-
} else {
|
|
44
|
-
backgroundColor = theme.palette.status[status]['background'];
|
|
45
|
-
}
|
|
46
|
-
border = theme.palette.status[status]['border'];
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
height: 20,
|
|
50
|
-
minWidth: 80,
|
|
51
|
-
maxWidth: 120,
|
|
52
|
-
['& .MuiChip-label']: {
|
|
53
|
-
fontSize: 9,
|
|
54
|
-
fontWeight: 600,
|
|
55
|
-
lineHeight: '12px',
|
|
56
|
-
color: labelColor ? labelColor : theme.palette.statistics.label
|
|
57
|
-
},
|
|
58
|
-
backgroundColor,
|
|
59
|
-
border: `1px solid ${border}`
|
|
60
|
-
};
|
|
61
|
-
});
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxFilterSortButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxFilterSortButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
const _material = require("@mui/material");
|
|
14
|
-
function _define_property(obj, key, value) {
|
|
15
|
-
if (key in obj) {
|
|
16
|
-
Object.defineProperty(obj, key, {
|
|
17
|
-
value: value,
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
obj[key] = value;
|
|
24
|
-
}
|
|
25
|
-
return obj;
|
|
26
|
-
}
|
|
27
|
-
function _interop_require_default(obj) {
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _object_spread(target) {
|
|
33
|
-
for(var i = 1; i < arguments.length; i++){
|
|
34
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
35
|
-
var ownKeys = Object.keys(source);
|
|
36
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
37
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
38
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
ownKeys.forEach(function(key) {
|
|
42
|
-
_define_property(target, key, source[key]);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return target;
|
|
46
|
-
}
|
|
47
|
-
function ownKeys(object, enumerableOnly) {
|
|
48
|
-
var keys = Object.keys(object);
|
|
49
|
-
if (Object.getOwnPropertySymbols) {
|
|
50
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
51
|
-
if (enumerableOnly) {
|
|
52
|
-
symbols = symbols.filter(function(sym) {
|
|
53
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
keys.push.apply(keys, symbols);
|
|
57
|
-
}
|
|
58
|
-
return keys;
|
|
59
|
-
}
|
|
60
|
-
function _object_spread_props(target, source) {
|
|
61
|
-
source = source != null ? source : {};
|
|
62
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
63
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
64
|
-
} else {
|
|
65
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
66
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return target;
|
|
70
|
-
}
|
|
71
|
-
const FxFilterSortButton = ({ btnValue, onClick, startIcon, sx })=>{
|
|
72
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
73
|
-
id: "fade-button",
|
|
74
|
-
sx: _object_spread_props(_object_spread({}, sx), {
|
|
75
|
-
fontWeight: 'normal'
|
|
76
|
-
}),
|
|
77
|
-
"aria-haspopup": "true",
|
|
78
|
-
startIcon: startIcon,
|
|
79
|
-
onClick: onClick,
|
|
80
|
-
children: btnValue
|
|
81
|
-
});
|
|
82
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxFilterSortButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _FxFilterSortButton.FxFilterSortButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _FxFilterSortButton = require("./FxFilterSortButton");
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxIcon", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxIcon;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const _material = require("@mui/material");
|
|
14
|
-
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
15
|
-
const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
|
|
16
|
-
function _interop_require_default(obj) {
|
|
17
|
-
return obj && obj.__esModule ? obj : {
|
|
18
|
-
default: obj
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
22
|
-
if (typeof WeakMap !== "function") return null;
|
|
23
|
-
var cacheBabelInterop = new WeakMap();
|
|
24
|
-
var cacheNodeInterop = new WeakMap();
|
|
25
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
26
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
27
|
-
})(nodeInterop);
|
|
28
|
-
}
|
|
29
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
30
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
31
|
-
return obj;
|
|
32
|
-
}
|
|
33
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
34
|
-
return {
|
|
35
|
-
default: obj
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
39
|
-
if (cache && cache.has(obj)) {
|
|
40
|
-
return cache.get(obj);
|
|
41
|
-
}
|
|
42
|
-
var newObj = {
|
|
43
|
-
__proto__: null
|
|
44
|
-
};
|
|
45
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
46
|
-
for(var key in obj){
|
|
47
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
48
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
49
|
-
if (desc && (desc.get || desc.set)) {
|
|
50
|
-
Object.defineProperty(newObj, key, desc);
|
|
51
|
-
} else {
|
|
52
|
-
newObj[key] = obj[key];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
newObj.default = obj;
|
|
57
|
-
if (cache) {
|
|
58
|
-
cache.set(obj, newObj);
|
|
59
|
-
}
|
|
60
|
-
return newObj;
|
|
61
|
-
}
|
|
62
|
-
const PublicIcon = ({ icon, width, height, onClick })=>{
|
|
63
|
-
const [isError, setError] = (0, _react.useState)(false);
|
|
64
|
-
const handleError = (isError)=>setError(isError);
|
|
65
|
-
if (isError) {
|
|
66
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Avatar, {
|
|
67
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
68
|
-
fontSize: 29,
|
|
69
|
-
fontWeight: 600,
|
|
70
|
-
children: (0, _fixefyuiutils.toInitials)(icon)
|
|
71
|
-
})
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
|
|
75
|
-
alt: "",
|
|
76
|
-
width: width,
|
|
77
|
-
height: height,
|
|
78
|
-
loader: imageLoader,
|
|
79
|
-
src: icon,
|
|
80
|
-
onLoad: ()=>handleError(false),
|
|
81
|
-
onError: ()=>handleError(true),
|
|
82
|
-
onClick: onClick
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const FxIcon = ({ icon, width, height, onClick })=>{
|
|
86
|
-
if (!icon) throw Error('Provide a property `icon`');
|
|
87
|
-
return parseIconFromLibrary({
|
|
88
|
-
icon,
|
|
89
|
-
width,
|
|
90
|
-
height,
|
|
91
|
-
onClick
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const parseIconFromLibrary = ({ icon, width, height, onClick })=>{
|
|
95
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(PublicIcon, {
|
|
96
|
-
icon: icon,
|
|
97
|
-
width: width,
|
|
98
|
-
height: height,
|
|
99
|
-
onClick: onClick
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
const imageLoader = ({ src })=>{
|
|
103
|
-
const transformedSrc = src.split('/');
|
|
104
|
-
transformedSrc.splice(transformedSrc.length - 1, 1, transformedSrc[transformedSrc.length - 1].split(/(?=[A-Z])/).join('_').toLowerCase());
|
|
105
|
-
const url = transformedSrc.join('/');
|
|
106
|
-
return `${process.env.NEXT_PUBLIC_ASSET_URL}/${url}`;
|
|
107
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "DynamicIcon", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return DynamicIcon;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
-
function _interop_require_default(obj) {
|
|
14
|
-
return obj && obj.__esModule ? obj : {
|
|
15
|
-
default: obj
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const DynamicIcon = ({ icon: IconComponent, sx })=>IconComponent ? /*#__PURE__*/ (0, _jsxruntime.jsx)(IconComponent, {
|
|
19
|
-
sx: sx
|
|
20
|
-
}) : null;
|