@zac-apps/commons 2.0.0-beta.7 → 2.0.0-beta.8
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/index.js +40 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,11 +10,8 @@ import AccordionSummary from '@mui/material/AccordionSummary';
|
|
|
10
10
|
import AccordionDetails from '@mui/material/AccordionDetails';
|
|
11
11
|
import Typography from '@mui/material/Typography';
|
|
12
12
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
13
|
-
import { createTheme } from '@mui/material';
|
|
13
|
+
import { createTheme, ThemeProvider, CssBaseline } from '@mui/material';
|
|
14
14
|
import { green, yellow, pink, lightGreen, red } from '@mui/material/colors';
|
|
15
|
-
import Table from '@mui/material/Table';
|
|
16
|
-
import TableContainer from '@mui/material/TableContainer';
|
|
17
|
-
import Paper from '@mui/material/Paper';
|
|
18
15
|
import { Link } from 'next/link';
|
|
19
16
|
import Link$1 from '@mui/material/Link';
|
|
20
17
|
import Box from '@mui/material/Box';
|
|
@@ -28,6 +25,9 @@ import Menu from '@mui/material/Menu';
|
|
|
28
25
|
import Divider from '@mui/material/Divider';
|
|
29
26
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
30
27
|
import MenuOpenIcon from '@mui/icons-material/MenuOpen';
|
|
28
|
+
import Table from '@mui/material/Table';
|
|
29
|
+
import TableContainer from '@mui/material/TableContainer';
|
|
30
|
+
import Paper from '@mui/material/Paper';
|
|
31
31
|
import TextField from '@mui/material/TextField';
|
|
32
32
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
33
33
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
@@ -154,18 +154,6 @@ function AppGrid(_ref) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
function AppTable(_ref) {
|
|
158
|
-
var children = _ref.children;
|
|
159
|
-
return /*#__PURE__*/jsx(TableContainer, {
|
|
160
|
-
component: Paper,
|
|
161
|
-
children: /*#__PURE__*/jsx(Table, {
|
|
162
|
-
size: "small",
|
|
163
|
-
"aria-label": "a dense table",
|
|
164
|
-
children: children
|
|
165
|
-
})
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
|
|
169
157
|
function AppMenu(_ref) {
|
|
170
158
|
var title = _ref.title,
|
|
171
159
|
iconUrl = _ref.iconUrl,
|
|
@@ -338,6 +326,41 @@ function AppWrapper(_ref) {
|
|
|
338
326
|
});
|
|
339
327
|
}
|
|
340
328
|
|
|
329
|
+
function AppRoot(_ref) {
|
|
330
|
+
var title = _ref.title,
|
|
331
|
+
availApps = _ref.availApps,
|
|
332
|
+
footerContent = _ref.footerContent,
|
|
333
|
+
basePath = _ref.basePath,
|
|
334
|
+
iconUrl = _ref.iconUrl,
|
|
335
|
+
iconAlt = _ref.iconAlt,
|
|
336
|
+
children = _ref.children;
|
|
337
|
+
return /*#__PURE__*/jsxs(ThemeProvider, {
|
|
338
|
+
theme: AppTheme,
|
|
339
|
+
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(AppWrapper, {
|
|
340
|
+
title: title,
|
|
341
|
+
availApps: availApps,
|
|
342
|
+
footerContent: footerContent,
|
|
343
|
+
basePath: basePath,
|
|
344
|
+
iconUrl: iconUrl,
|
|
345
|
+
iconAlt: iconAlt,
|
|
346
|
+
menu: true,
|
|
347
|
+
children: children
|
|
348
|
+
})]
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function AppTable(_ref) {
|
|
353
|
+
var children = _ref.children;
|
|
354
|
+
return /*#__PURE__*/jsx(TableContainer, {
|
|
355
|
+
component: Paper,
|
|
356
|
+
children: /*#__PURE__*/jsx(Table, {
|
|
357
|
+
size: "small",
|
|
358
|
+
"aria-label": "a dense table",
|
|
359
|
+
children: children
|
|
360
|
+
})
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
341
364
|
function DivTitle(_ref) {
|
|
342
365
|
var children = _ref.children;
|
|
343
366
|
return /*#__PURE__*/jsx(Divider, {
|
|
@@ -707,4 +730,4 @@ function AppDrawer(_ref) {
|
|
|
707
730
|
});
|
|
708
731
|
}
|
|
709
732
|
|
|
710
|
-
export { AppCard, AppDrawer, AppGrid, AppMenu, AppTable, AppTheme, AppWrapper, DivTitle, ErrorAlert, Footer, MenuButton, NextListMenu, NumField, Percentage, Progress, PublicFetch, RespGrid, SpecSwitch, Start, TableHeadCell, useFetch };
|
|
733
|
+
export { AppCard, AppDrawer, AppGrid, AppMenu, AppRoot, AppTable, AppTheme, AppWrapper, DivTitle, ErrorAlert, Footer, MenuButton, NextListMenu, NumField, Percentage, Progress, PublicFetch, RespGrid, SpecSwitch, Start, TableHeadCell, useFetch };
|