ish-ui 1.1.1 → 1.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useStyles, withStyles } from 'tss-react/mui';
2
+ import { withStyles } from 'tss-react/mui';
3
3
  import HelpOutline from '@mui/icons-material/HelpOutline';
4
4
  import IconButton from '@mui/material/IconButton';
5
5
  import Typography from '@mui/material/Typography';
@@ -8,6 +8,7 @@ import MenuItem from '@mui/material/MenuItem';
8
8
  import Tooltip from '@mui/material/Tooltip';
9
9
  import { format as formatDate } from 'date-fns';
10
10
  import { III_DD_MMM_YYYY_HH_MM_SPECIAL, openInternalLink } from '../utils';
11
+ import clsx from 'clsx';
11
12
  const styles = theme => ({
12
13
  button: {
13
14
  color: theme.appBarButton.helpMenu.color,
@@ -47,7 +48,6 @@ class AppBarHelpMenu extends React.Component {
47
48
  render() {
48
49
  const { anchorEl } = this.state;
49
50
  const { classes, created, modified, iconClasses, auditsUrl } = this.props;
50
- const { cx } = useStyles();
51
51
  return (React.createElement(React.Fragment, null,
52
52
  React.createElement(Menu, { id: "form-help-menu", anchorEl: anchorEl, open: Boolean(anchorEl), onClose: this.handleClose, marginThreshold: 16, transformOrigin: {
53
53
  vertical: 'center',
@@ -67,7 +67,7 @@ class AppBarHelpMenu extends React.Component {
67
67
  auditsUrl && (React.createElement(MenuItem, { onClick: this.openAudits }, "View audit trail"))),
68
68
  React.createElement(Tooltip, { title: "Additional information" },
69
69
  React.createElement("div", null,
70
- React.createElement(IconButton, { type: "button", "aria-owns": anchorEl ? 'form-help-menu' : null, "aria-haspopup": "true", onClick: this.handleAddFieldClick, size: "large", className: cx({
70
+ React.createElement(IconButton, { type: "button", "aria-owns": anchorEl ? 'form-help-menu' : null, "aria-haspopup": "true", onClick: this.handleAddFieldClick, size: "large", className: clsx({
71
71
  [classes.button]: !iconClasses,
72
72
  [iconClasses]: !!iconClasses
73
73
  }) },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ish-ui",
3
3
  "sideEffects": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "description": "UI elements for onCourse and other ish apps",
6
6
  "main": "main.ts",
7
7
  "devDependencies": {