@fixefy/fixefy-ui-components 0.3.89 → 0.3.91
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/FxActionsTray/FxActionsTray.d.ts +2 -1
- package/dist/FxActionsTray/FxActionsTray.js +5 -3
- package/dist/FxAsyncDropdown/components/ChipOption.js +2 -0
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +2 -1
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +2 -1
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +2 -1
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +3 -1
- package/dist/FxChip/FxChip.d.ts +1 -0
- package/dist/FxChip/FxChip.js +3 -2
- package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.d.ts +2 -1
- package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +3 -2
- package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +7 -2
- package/dist/FxStatusBar/FxStatusBar.d.ts +2 -1
- package/dist/FxStatusBar/FxStatusBar.js +2 -1
- package/dist/FxStrStaticDropdown/FxStrStaticDropdown.d.ts +1 -0
- package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +6 -2
- package/dist/FxUserImage/FxUserImage.d.ts +2 -1
- package/dist/FxUserImage/FxUserImage.js +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const FxActionsTray: ({ ctx, entityType, show, actions, onClose, onClick, }: {
|
|
2
|
+
export declare const FxActionsTray: ({ assetUrl, ctx, entityType, show, actions, onClose, onClick, }: {
|
|
3
|
+
assetUrl?: string;
|
|
3
4
|
ctx: any;
|
|
4
5
|
entityType?: string;
|
|
5
6
|
show: boolean;
|
|
@@ -25,7 +25,7 @@ function _interop_require_default(obj) {
|
|
|
25
25
|
default: obj
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], onClose, onClick })=>{
|
|
28
|
+
const FxActionsTray = ({ assetUrl, ctx, entityType = 'item', show = false, actions = [], onClose, onClick })=>{
|
|
29
29
|
const { classes } = (0, _actionsTraystyle.useStyles)();
|
|
30
30
|
const { selection = [], selectAll, ultraSelectAll, totalCount } = ctx;
|
|
31
31
|
const selectedCount = selectAll === true && ultraSelectAll === true ? totalCount : selection.length;
|
|
@@ -63,6 +63,7 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
|
|
|
63
63
|
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
64
64
|
className: classes.actions,
|
|
65
65
|
children: actions.map((action, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(ActionButton, {
|
|
66
|
+
assetUrl: assetUrl,
|
|
66
67
|
title: action.title,
|
|
67
68
|
name: action.name,
|
|
68
69
|
icon: action.extended.icon,
|
|
@@ -87,7 +88,7 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
|
|
|
87
88
|
})
|
|
88
89
|
});
|
|
89
90
|
};
|
|
90
|
-
const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Button.default, {
|
|
91
|
+
const ActionButton = ({ assetUrl, title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Button.default, {
|
|
91
92
|
id: name,
|
|
92
93
|
className: classes.actionButton,
|
|
93
94
|
title: (0, _fixefyuiutils.titleCase)(title),
|
|
@@ -99,7 +100,8 @@ const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0
|
|
|
99
100
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
100
101
|
width: 16,
|
|
101
102
|
height: 16,
|
|
102
|
-
icon: `actions/${icon}.svg
|
|
103
|
+
icon: `actions/${icon}.svg`,
|
|
104
|
+
assetUrl: assetUrl
|
|
103
105
|
})
|
|
104
106
|
}),
|
|
105
107
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
@@ -19,6 +19,7 @@ function _interop_require_default(obj) {
|
|
|
19
19
|
}
|
|
20
20
|
const ChipOption = ({ option, curValue, modal, fetchedProps, displayed, setDisplayed })=>{
|
|
21
21
|
return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
22
|
+
assetUrl: fetchedProps.assetUrl,
|
|
22
23
|
status: curValue,
|
|
23
24
|
label: (0, _helpers.titleCase)(curValue),
|
|
24
25
|
variant: "outlined",
|
|
@@ -26,6 +27,7 @@ const ChipOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
|
|
|
26
27
|
(0, _helpers.deleteOneItem)(option, fetchedProps, displayed, setDisplayed);
|
|
27
28
|
}
|
|
28
29
|
}, option._id) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
30
|
+
assetUrl: fetchedProps.assetUrl,
|
|
29
31
|
status: curValue,
|
|
30
32
|
label: (0, _helpers.titleCase)(curValue),
|
|
31
33
|
variant: "outlined"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
|
|
2
|
+
export declare const FxButtonModalWithComponent: ({ assetUrl, btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
|
|
3
|
+
assetUrl?: string;
|
|
3
4
|
btnType?: "text" | "icon";
|
|
4
5
|
btnValue?: string;
|
|
5
6
|
modalData: any;
|
|
@@ -60,7 +60,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
60
60
|
}
|
|
61
61
|
return newObj;
|
|
62
62
|
}
|
|
63
|
-
const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
|
|
63
|
+
const FxButtonModalWithComponent = ({ assetUrl, btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
|
|
64
64
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
65
65
|
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
66
66
|
const handleClick = (e)=>{
|
|
@@ -85,6 +85,7 @@ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onC
|
|
|
85
85
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
86
86
|
children: [
|
|
87
87
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
88
|
+
assetUrl: assetUrl,
|
|
88
89
|
sx: sx,
|
|
89
90
|
btnType: btnType,
|
|
90
91
|
btnValue: btnValue,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const FxButtonModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, }: {
|
|
2
|
+
export declare const FxButtonModalWithMenu: ({ assetUrl, btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, }: {
|
|
3
|
+
assetUrl?: string;
|
|
3
4
|
btnType?: "text" | "icon";
|
|
4
5
|
btnValue?: string;
|
|
5
6
|
modalData: any;
|
|
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
61
61
|
}
|
|
62
62
|
return newObj;
|
|
63
63
|
}
|
|
64
|
-
const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize })=>{
|
|
64
|
+
const FxButtonModalWithMenu = ({ assetUrl, btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize })=>{
|
|
65
65
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
66
66
|
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
67
67
|
const handleClick = (e)=>{
|
|
@@ -86,6 +86,7 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
|
|
|
86
86
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
87
87
|
children: [
|
|
88
88
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
89
|
+
assetUrl: assetUrl,
|
|
89
90
|
sx: buttonSx,
|
|
90
91
|
btnType: btnType,
|
|
91
92
|
btnValue: btnValue,
|
|
@@ -109,6 +110,7 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
|
|
|
109
110
|
TransitionComponent: _Fade.default,
|
|
110
111
|
children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
|
|
111
112
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
|
|
113
|
+
assetUrl: assetUrl,
|
|
112
114
|
icon: item.icon,
|
|
113
115
|
title: item.title,
|
|
114
116
|
onClick: ()=>{
|
package/dist/FxChip/FxChip.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityStatusType, ChargeStateType, InvoiceStateType, RecoStateType } from '@fixefy/fixefy-ui-utils';
|
|
3
3
|
export interface ChipPropsType {
|
|
4
|
+
assetUrl?: string;
|
|
4
5
|
type?: 'status' | 'priority' | 'score' | 'dimension' | 'reco';
|
|
5
6
|
status?: EntityStatusType | ChargeStateType | InvoiceStateType | RecoStateType;
|
|
6
7
|
label: string | number;
|
package/dist/FxChip/FxChip.js
CHANGED
|
@@ -20,7 +20,7 @@ function _interop_require_default(obj) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
const FxChip = (props)=>{
|
|
23
|
-
const { status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete, icon } = props;
|
|
23
|
+
const { assetUrl, status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete, icon } = props;
|
|
24
24
|
const newStatus = status ? status.split(' ').join('_') : status;
|
|
25
25
|
const value = typeof label === 'number' ? label.toFixed(2) : label;
|
|
26
26
|
switch(type){
|
|
@@ -58,7 +58,8 @@ const FxChip = (props)=>{
|
|
|
58
58
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
59
59
|
icon: `${icon}.svg`,
|
|
60
60
|
width: 15,
|
|
61
|
-
height: 15
|
|
61
|
+
height: 15,
|
|
62
|
+
assetUrl: assetUrl
|
|
62
63
|
})
|
|
63
64
|
});
|
|
64
65
|
default:
|
|
@@ -48,7 +48,7 @@ function _object_spread(target) {
|
|
|
48
48
|
}
|
|
49
49
|
return target;
|
|
50
50
|
}
|
|
51
|
-
const FxMenuItemWithIcon = ({ title, icon, onClick, sx = {} })=>{
|
|
51
|
+
const FxMenuItemWithIcon = ({ assetUrl, title, icon, onClick, sx = {} })=>{
|
|
52
52
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_MenuItem.default, {
|
|
53
53
|
sx: {
|
|
54
54
|
width: '197px',
|
|
@@ -68,7 +68,8 @@ const FxMenuItemWithIcon = ({ title, icon, onClick, sx = {} })=>{
|
|
|
68
68
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
69
69
|
width: 16,
|
|
70
70
|
height: 16,
|
|
71
|
-
icon: icon
|
|
71
|
+
icon: icon,
|
|
72
|
+
assetUrl: assetUrl
|
|
72
73
|
})
|
|
73
74
|
}),
|
|
74
75
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_ListItemText.default, {
|
|
@@ -76,7 +76,7 @@ const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
|
|
|
76
76
|
fontSize: "small"
|
|
77
77
|
});
|
|
78
78
|
const FxObjStaticDropdown = (props)=>{
|
|
79
|
-
const { onAdd, onRemoveOne, onRemoveAll, onUnselectAll, disabled, type = 'text', search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, logo_placeholder, logo_folder_name, _id, data, defaultValue } = props;
|
|
79
|
+
const { assetUrl, onAdd, onRemoveOne, onRemoveAll, onUnselectAll, disabled, type = 'text', search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, logo_placeholder, logo_folder_name, _id, data, defaultValue } = props;
|
|
80
80
|
const ref = (0, _react.useRef)(null);
|
|
81
81
|
const theme = (0, _styles.useTheme)();
|
|
82
82
|
const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
|
|
@@ -394,7 +394,8 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
394
394
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
395
395
|
width: 16,
|
|
396
396
|
height: 16,
|
|
397
|
-
icon: 'filters/chosen_icon.svg'
|
|
397
|
+
icon: 'filters/chosen_icon.svg',
|
|
398
|
+
assetUrl: assetUrl
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
401
|
return null;
|
|
@@ -406,6 +407,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
406
407
|
width: '70px'
|
|
407
408
|
},
|
|
408
409
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
410
|
+
assetUrl: assetUrl,
|
|
409
411
|
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'}`,
|
|
410
412
|
width: 70,
|
|
411
413
|
height: 16,
|
|
@@ -417,6 +419,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
417
419
|
};
|
|
418
420
|
const Chip = ({ option, curValue, modal })=>{
|
|
419
421
|
return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
422
|
+
assetUrl: assetUrl,
|
|
420
423
|
status: curValue,
|
|
421
424
|
label: (0, _fixefyuiutils.titleCase)(curValue),
|
|
422
425
|
variant: "outlined",
|
|
@@ -424,6 +427,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
424
427
|
deleteOneItem(option);
|
|
425
428
|
}
|
|
426
429
|
}, option === null || option === void 0 ? void 0 : option._id) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
430
|
+
assetUrl: assetUrl,
|
|
427
431
|
status: curValue,
|
|
428
432
|
label: (0, _fixefyuiutils.titleCase)(curValue),
|
|
429
433
|
variant: "outlined"
|
|
@@ -487,6 +491,7 @@ const FxObjStaticDropdown = (props)=>{
|
|
|
487
491
|
paddingLeft: '3px'
|
|
488
492
|
},
|
|
489
493
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
494
|
+
assetUrl: assetUrl,
|
|
490
495
|
onClick: ()=>{
|
|
491
496
|
setDisplayed([]);
|
|
492
497
|
onRemoveAll();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityStatusType, ChargeStateType, InvoiceStateType, RecoStateType } from '@fixefy/fixefy-ui-utils';
|
|
3
3
|
export type StatusBarPropsType = {
|
|
4
|
+
assetUrl?: string;
|
|
4
5
|
onSearch?: (searchValue: string) => void;
|
|
5
6
|
onChangeStatus: (statuses: string[]) => void;
|
|
6
7
|
defaultStatus?: string | string[];
|
|
@@ -11,4 +12,4 @@ export type StatusBarPropsType = {
|
|
|
11
12
|
export type Options = {
|
|
12
13
|
[x: string]: keyof EntityStatusType | keyof ChargeStateType | keyof InvoiceStateType | keyof RecoStateType | string;
|
|
13
14
|
};
|
|
14
|
-
export declare const FxStatusBar: ({ onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant, }: StatusBarPropsType) => React.JSX.Element;
|
|
15
|
+
export declare const FxStatusBar: ({ assetUrl, onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant, }: StatusBarPropsType) => React.JSX.Element;
|
|
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
61
61
|
}
|
|
62
62
|
return newObj;
|
|
63
63
|
}
|
|
64
|
-
const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
|
|
64
|
+
const FxStatusBar = ({ assetUrl, onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
|
|
65
65
|
const [selectedStatus, setSelectedStatus] = (0, _react.useState)([]);
|
|
66
66
|
const [searchValue] = (0, _react.useState)('');
|
|
67
67
|
(0, _react.useEffect)(()=>{
|
|
@@ -135,6 +135,7 @@ const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options,
|
|
|
135
135
|
}),
|
|
136
136
|
Object.keys(__options).map((key, index)=>{
|
|
137
137
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
138
|
+
assetUrl: assetUrl,
|
|
138
139
|
onClick: ()=>onStatusClick(__options[key]),
|
|
139
140
|
label: (0, _fixefyuiutils.titleCase)(key),
|
|
140
141
|
variant: chipsVariant,
|
|
@@ -74,7 +74,7 @@ const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
|
|
|
74
74
|
fontSize: "small"
|
|
75
75
|
});
|
|
76
76
|
const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
77
|
-
const { onAdd, onRemoveOne, onRemoveAll, type = 'text', modal_type, multiple, name, query, isInitialOpen, placeholder, data, rootStylesOverride } = props;
|
|
77
|
+
const { assetUrl, onAdd, onRemoveOne, onRemoveAll, type = 'text', modal_type, multiple, name, query, isInitialOpen, placeholder, data, rootStylesOverride } = props;
|
|
78
78
|
const ref = (0, _react.useRef)(null);
|
|
79
79
|
const theme = (0, _styles.useTheme)();
|
|
80
80
|
const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
|
|
@@ -224,6 +224,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
224
224
|
};
|
|
225
225
|
const Chip = ({ option, modal })=>{
|
|
226
226
|
return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
227
|
+
assetUrl: assetUrl,
|
|
227
228
|
status: option,
|
|
228
229
|
label: (0, _helpers.titleCase)(option),
|
|
229
230
|
variant: "outlined",
|
|
@@ -231,6 +232,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
231
232
|
deleteOneItem(option);
|
|
232
233
|
}
|
|
233
234
|
}, option) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
235
|
+
assetUrl: assetUrl,
|
|
234
236
|
status: option,
|
|
235
237
|
label: (0, _helpers.titleCase)(option),
|
|
236
238
|
variant: "outlined"
|
|
@@ -241,7 +243,8 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
241
243
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
242
244
|
width: 16,
|
|
243
245
|
height: 16,
|
|
244
|
-
icon: 'filters/chosen_icon.svg'
|
|
246
|
+
icon: 'filters/chosen_icon.svg',
|
|
247
|
+
assetUrl: assetUrl
|
|
245
248
|
});
|
|
246
249
|
}
|
|
247
250
|
return null;
|
|
@@ -333,6 +336,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
333
336
|
paddingLeft: '3px'
|
|
334
337
|
},
|
|
335
338
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
339
|
+
assetUrl: assetUrl,
|
|
336
340
|
onClick: ()=>{
|
|
337
341
|
setDisplayed([]);
|
|
338
342
|
onRemoveAll && onRemoveAll();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading }: {
|
|
1
|
+
export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading, assetUrl }: {
|
|
2
2
|
bucketAddress: string;
|
|
3
3
|
user: any;
|
|
4
4
|
loading: boolean;
|
|
5
5
|
setLoading: (loading: boolean) => void;
|
|
6
|
+
assetUrl?: string;
|
|
6
7
|
}) => any;
|
|
@@ -92,7 +92,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
92
92
|
}
|
|
93
93
|
return newObj;
|
|
94
94
|
}
|
|
95
|
-
const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
|
|
95
|
+
const FxUserImage = ({ bucketAddress, user, loading, setLoading, assetUrl })=>{
|
|
96
96
|
const getRandomColor = (0, _fixefyhooks.useRandomColor)();
|
|
97
97
|
const { listS3Bucket } = (0, _nexts3upload.useS3ListBucket)();
|
|
98
98
|
const { downloadFromS3 } = (0, _nexts3upload.useS3Download)('download-bytearray');
|
|
@@ -190,6 +190,7 @@ const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
|
|
|
190
190
|
size: 24
|
|
191
191
|
});
|
|
192
192
|
if (!file && !loading) return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
193
|
+
assetUrl: assetUrl,
|
|
193
194
|
icon: 'users',
|
|
194
195
|
width: 24,
|
|
195
196
|
height: 24,
|
package/package.json
CHANGED