@harvard-lts/mirador-pdf-plugin 0.0.1 → 0.0.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.
- package/dist/es/index.js +15 -3
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
3
|
+
import ListItemIcon from '@material-ui/core/ListItemIcon';
|
|
4
|
+
import ListItemText from '@material-ui/core/ListItemText';
|
|
3
5
|
import { getManifestoInstance } from 'mirador/dist/es/src/state/selectors/manifests';
|
|
6
|
+
import PDFIcon from '@material-ui/icons/PictureAsPdf';
|
|
4
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
8
|
import { withStyles } from '@material-ui/core/styles';
|
|
6
9
|
import Button from '@material-ui/core/Button';
|
|
@@ -149,9 +152,18 @@ var MiradorPdfMenuItem = function MiradorPdfMenuItem(_ref3) {
|
|
|
149
152
|
openDialog();
|
|
150
153
|
handleClose();
|
|
151
154
|
};
|
|
152
|
-
return /*#__PURE__*/jsx(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
return /*#__PURE__*/jsx("div", {
|
|
156
|
+
children: /*#__PURE__*/jsxs(MenuItem, {
|
|
157
|
+
onClick: handleClick,
|
|
158
|
+
children: [/*#__PURE__*/jsx(ListItemIcon, {
|
|
159
|
+
children: /*#__PURE__*/jsx(PDFIcon, {})
|
|
160
|
+
}), /*#__PURE__*/jsx(ListItemText, {
|
|
161
|
+
primaryTypographyProps: {
|
|
162
|
+
variant: "body1"
|
|
163
|
+
},
|
|
164
|
+
children: "Download PDF"
|
|
165
|
+
})]
|
|
166
|
+
})
|
|
155
167
|
});
|
|
156
168
|
};
|
|
157
169
|
MiradorPdfMenuItem.defaultProps = {
|