@galaxy-ds/core 1.1.71 → 1.1.72
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/ActivityLog/ActivityLog.types.d.ts +1 -0
- package/dist/index.esm.js +12 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -46726,6 +46726,13 @@ var useStyles = makeStyles(function (theme) { return ({
|
|
|
46726
46726
|
textAlign: 'right',
|
|
46727
46727
|
whiteSpace: 'nowrap'
|
|
46728
46728
|
},
|
|
46729
|
+
cost: {
|
|
46730
|
+
maxWidth: 80,
|
|
46731
|
+
minWidth: 80,
|
|
46732
|
+
marginLeft: 12,
|
|
46733
|
+
textAlign: 'right',
|
|
46734
|
+
whiteSpace: 'nowrap'
|
|
46735
|
+
},
|
|
46729
46736
|
marginTop: {
|
|
46730
46737
|
marginTop: 4,
|
|
46731
46738
|
},
|
|
@@ -46749,21 +46756,23 @@ var useStyles = makeStyles(function (theme) { return ({
|
|
|
46749
46756
|
}); });
|
|
46750
46757
|
var ActivityLog = function (props) {
|
|
46751
46758
|
var classes = useStyles();
|
|
46752
|
-
var name = props.name, time = props.time, ext = props.ext, iconURL = props.iconURL, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "iconURL", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
|
|
46759
|
+
var name = props.name, time = props.time, ext = props.ext, cost = props.cost, iconURL = props.iconURL, onAttach = props.onAttach, onClick = props.onClick, users = props.users, attachment = props.attachment, action = props.action, avatarGroupTooltip = props.avatarGroupTooltip, _a = props.insertIconTooltip, insertIconTooltip = _a === void 0 ? 'Insert' : _a, hover = props.hover, _b = props.tooltip, tooltip = _b === void 0 ? 'Preview' : _b, _c = props.nameRef, nameRef = _c === void 0 ? undefined : _c, defaultProps = __rest(props, ["name", "time", "ext", "cost", "iconURL", "onAttach", "onClick", "users", "attachment", "action", "avatarGroupTooltip", "insertIconTooltip", "hover", "tooltip", "nameRef"]);
|
|
46753
46760
|
var chipGroup;
|
|
46754
46761
|
action ? chipGroup = classes.chipGroup : chipGroup = '';
|
|
46755
46762
|
return (React__default.createElement(MuiListItem, __assign$1({ className: classes.root }, defaultProps),
|
|
46756
46763
|
React__default.createElement(ListItemIcon$2, { className: clsx(classes.prependIcon, chipGroup, action ? classes.marginTop : '') }, attachment ? (React__default.createElement(Tooltip, { title: insertIconTooltip },
|
|
46757
46764
|
React__default.createElement(IconButton, { onClick: onAttach },
|
|
46758
46765
|
React__default.createElement(InsertLinkIcon, null)))) : ('')),
|
|
46759
|
-
React__default.createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) }, iconURL ? (React__default.createElement("img", { src: iconURL, className: classes.activityIcon })) : (React__default.createElement(AttachmentIcon, { ext: ext }))),
|
|
46766
|
+
(iconURL || ext) ? (React__default.createElement(ListItemIcon$2, { className: clsx(classes.docTypeIcon, chipGroup) }, iconURL ? (React__default.createElement("img", { src: iconURL, className: classes.activityIcon })) : (React__default.createElement(AttachmentIcon, { ext: ext })))) : '',
|
|
46760
46767
|
React__default.createElement(ListItemText$2, { classes: { root: classes.name, primary: classes.primary }, onClick: onClick, secondaryTypographyProps: { component: 'div' }, secondary: action && (React__default.createElement("div", { className: classes.chips }, action.map(function (tag) { return (React__default.createElement(Chip, { label: tag.label, key: tag.label, variant: tag.variant })); }))) },
|
|
46761
46768
|
hover ? (React__default.createElement(Tooltip, { title: tooltip },
|
|
46762
46769
|
React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name))) : (React__default.createElement(Typography$2, { ref: nameRef, noWrap: true, variant: "subtitle1", color: "primary", className: classes.mainName }, name)),
|
|
46763
46770
|
users ? (React__default.createElement("div", { className: clsx(chipGroup) },
|
|
46764
46771
|
React__default.createElement(AvatarsGroup, { max: 2, size: "small", tooltip: avatarGroupTooltip, tooltipPlacement: "bottom-end" }, users.map(function (person) { return (React__default.createElement(Avatar, { color: "default", size: "small", tooltip: person.name, key: person.initials }, person.initials)); })))) : (''),
|
|
46765
46772
|
React__default.createElement("div", { className: clsx(classes.time, chipGroup) },
|
|
46766
|
-
React__default.createElement(Typography$2, { variant: "body1" }, time))
|
|
46773
|
+
React__default.createElement(Typography$2, { variant: "body1" }, time)),
|
|
46774
|
+
cost && (React__default.createElement("div", { className: clsx(classes.cost) },
|
|
46775
|
+
React__default.createElement(Typography$2, { variant: "body1" }, cost))))));
|
|
46767
46776
|
};
|
|
46768
46777
|
|
|
46769
46778
|
var generateClassName = createGenerateClassName({
|