@fixefy/fixefy-ui-components 0.2.35 → 0.2.36
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.
|
@@ -414,7 +414,8 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
414
414
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
415
415
|
icon: `${option.logo ? `${logo_folder_name}/${option.logo}` : logo_placeholder ? logo_placeholder : (_option_name = option === null || option === void 0 ? void 0 : option[name]) !== null && _option_name !== void 0 ? _option_name : 'x'}`,
|
|
416
416
|
width: 70,
|
|
417
|
-
height: 16
|
|
417
|
+
height: 16,
|
|
418
|
+
variant: "square"
|
|
418
419
|
})
|
|
419
420
|
}),
|
|
420
421
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
@@ -178,7 +178,8 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>{
|
|
|
178
178
|
['& div']: {
|
|
179
179
|
textOverflow: 'ellipsis',
|
|
180
180
|
whiteSpace: 'nowrap',
|
|
181
|
-
overflow: 'hidden'
|
|
181
|
+
overflow: 'hidden',
|
|
182
|
+
margin: 'auto 0'
|
|
182
183
|
},
|
|
183
184
|
['& li']: {
|
|
184
185
|
display: 'flex',
|
|
@@ -190,7 +191,8 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>{
|
|
|
190
191
|
whiteSpace: 'nowrap',
|
|
191
192
|
overflow: 'hidden',
|
|
192
193
|
width: '100%',
|
|
193
|
-
minWidth: 270
|
|
194
|
+
minWidth: 270,
|
|
195
|
+
marginBottom: 2
|
|
194
196
|
},
|
|
195
197
|
['& li:hover']: {
|
|
196
198
|
backgroundColor: '#F6F9FA'
|
package/dist/FxIcon/FxIcon.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const FxIcon: ({ icon, width, height, onClick, variant, }: {
|
|
1
|
+
export declare const FxIcon: ({ icon, width, height, onClick, variant, fontSize, }: {
|
|
2
2
|
icon: string;
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
variant?: "circular" | "rounded" | "square";
|
|
7
|
+
fontSize?: number;
|
|
7
8
|
}) => JSX.Element;
|
package/dist/FxIcon/FxIcon.js
CHANGED
|
@@ -59,14 +59,14 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
59
59
|
}
|
|
60
60
|
return newObj;
|
|
61
61
|
}
|
|
62
|
-
const PublicIcon = ({ icon, width, height, onClick, variant })=>{
|
|
62
|
+
const PublicIcon = ({ icon, width, height, onClick, variant, fontSize })=>{
|
|
63
63
|
const [isError, setError] = (0, _react.useState)(false);
|
|
64
64
|
const handleError = (isError)=>setError(isError);
|
|
65
65
|
if (isError) {
|
|
66
66
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Avatar, {
|
|
67
67
|
variant: variant || 'circular',
|
|
68
68
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
69
|
-
fontSize: 29,
|
|
69
|
+
fontSize: fontSize || 29,
|
|
70
70
|
fontWeight: 600,
|
|
71
71
|
children: (0, _fixefyuiutils.toInitials)(icon)
|
|
72
72
|
})
|
|
@@ -83,23 +83,25 @@ const PublicIcon = ({ icon, width, height, onClick, variant })=>{
|
|
|
83
83
|
onClick: onClick
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
const FxIcon = ({ icon, width, height, onClick, variant })=>{
|
|
86
|
+
const FxIcon = ({ icon, width, height, onClick, variant, fontSize })=>{
|
|
87
87
|
if (!icon) throw Error('Provide a property `icon`');
|
|
88
88
|
return parseIconFromLibrary({
|
|
89
89
|
icon,
|
|
90
90
|
width,
|
|
91
91
|
height,
|
|
92
92
|
onClick,
|
|
93
|
-
variant
|
|
93
|
+
variant,
|
|
94
|
+
fontSize
|
|
94
95
|
});
|
|
95
96
|
};
|
|
96
|
-
const parseIconFromLibrary = ({ icon, width, height, onClick, variant })=>{
|
|
97
|
+
const parseIconFromLibrary = ({ icon, width, height, onClick, variant, fontSize })=>{
|
|
97
98
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(PublicIcon, {
|
|
98
99
|
icon: icon,
|
|
99
100
|
width: width,
|
|
100
101
|
height: height,
|
|
101
102
|
onClick: onClick,
|
|
102
|
-
variant: variant
|
|
103
|
+
variant: variant,
|
|
104
|
+
fontSize: fontSize
|
|
103
105
|
});
|
|
104
106
|
};
|
|
105
107
|
const imageLoader = ({ src })=>{
|
package/package.json
CHANGED