@galaxy-ds/core 1.1.71 → 1.1.73

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.
@@ -3,6 +3,7 @@ export interface ActivityLogProps {
3
3
  name?: string;
4
4
  nameRef?: React.MutableRefObject<any>;
5
5
  time?: string;
6
+ cost?: string;
6
7
  ext?: string;
7
8
  iconURL?: string;
8
9
  users?: any;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@material-ui/core/SvgIcon';
3
+ export default function ReceiptIcon(props: SvgIconProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@material-ui/core/SvgIcon';
3
+ export default function RecieptIcon(props: SvgIconProps): JSX.Element;
@@ -44,3 +44,4 @@ export { default as CoinEuroIcon } from './CoinEuroIcon';
44
44
  export { default as CurrencyEuroIcon } from './CurrencyEuroIcon';
45
45
  export { default as CurrencyPoundIcon } from './CurrencyPoundIcon';
46
46
  export { default as CurrencyIcon } from './CurrencyIcon';
47
+ export { default as ReceiptIcon } from './Receipt';
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({