@zac-apps/helium 1.2.6 → 1.3.0-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +31 -31
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import React, { useState, createContext, useContext, useEffect } from 'react';
4
4
  import moment from 'moment';
5
5
  import { useImmer } from 'use-immer';
6
6
  import useMediaQuery from '@mui/material/useMediaQuery';
7
- import Grid from '@mui/material/Unstable_Grid2';
7
+ import Grid2 from '@mui/material/Grid2';
8
8
  import TableBody from '@mui/material/TableBody';
9
9
  import TableCell from '@mui/material/TableCell';
10
10
  import TableHead from '@mui/material/TableHead';
@@ -242,7 +242,7 @@ function HeliumTable(_ref2) {
242
242
  // Catch if no data present
243
243
 
244
244
  if (heliumData.helium.length === 0) {
245
- return /*#__PURE__*/jsx(Grid, {
245
+ return /*#__PURE__*/jsx(Grid2, {
246
246
  children: /*#__PURE__*/jsx("em", {
247
247
  children: "No Helium data found."
248
248
  })
@@ -578,7 +578,7 @@ function AddPrognoEntry(_ref5) {
578
578
  children: /*#__PURE__*/jsx("strong", {
579
579
  children: "Add prediction row"
580
580
  })
581
- }), /*#__PURE__*/jsxs(Grid, {
581
+ }), /*#__PURE__*/jsxs(Grid2, {
582
582
  children: [/*#__PURE__*/jsx(NumField, {
583
583
  input: input,
584
584
  SetInput: SetInput,
@@ -631,25 +631,25 @@ function HePrognosis(_ref6) {
631
631
  d.setDate(d.getDate() + increments[i]);
632
632
  dates = _objectSpread$3(_objectSpread$3({}, dates), {}, _defineProperty({}, increments[i], moment(d).format("ll")));
633
633
  }
634
- return /*#__PURE__*/jsxs(Grid, {
634
+ return /*#__PURE__*/jsxs(Grid2, {
635
635
  container: true,
636
636
  columns: {
637
637
  xs: 6,
638
638
  sm: 12
639
639
  },
640
- children: [/*#__PURE__*/jsx(Grid, {
640
+ children: [/*#__PURE__*/jsx(Grid2, {
641
641
  xs: 6,
642
642
  children: /*#__PURE__*/jsx(SelectSpecs, {
643
643
  specs: specs,
644
644
  SetSpecs: SetSpecs
645
645
  })
646
- }), /*#__PURE__*/jsx(Grid, {
646
+ }), /*#__PURE__*/jsx(Grid2, {
647
647
  xs: 6,
648
648
  children: /*#__PURE__*/jsx(AddPrognoEntry, {
649
649
  increments: increments,
650
650
  SetIncrements: SetIncrements
651
651
  })
652
- }), /*#__PURE__*/jsx(Grid, {
652
+ }), /*#__PURE__*/jsx(Grid2, {
653
653
  xs: 12,
654
654
  children: /*#__PURE__*/jsxs(AppTable, {
655
655
  children: [/*#__PURE__*/jsxs(TableHead, {
@@ -679,7 +679,7 @@ function HePrognosis(_ref6) {
679
679
  })
680
680
  })]
681
681
  })
682
- }), /*#__PURE__*/jsxs(Grid, {
682
+ }), /*#__PURE__*/jsxs(Grid2, {
683
683
  xs: 12,
684
684
  sx: {
685
685
  display: "flex",
@@ -925,7 +925,7 @@ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t
925
925
  function TupleResult(_ref) {
926
926
  var children = _ref.children,
927
927
  title = _ref.title;
928
- return /*#__PURE__*/jsx(Grid, {
928
+ return /*#__PURE__*/jsx(Grid2, {
929
929
  children: /*#__PURE__*/jsxs(AppTable, {
930
930
  children: [/*#__PURE__*/jsx(TableHead, {
931
931
  children: /*#__PURE__*/jsx(TableRow, {
@@ -1036,13 +1036,13 @@ function PairWizard(_ref4) {
1036
1036
  limit: limit
1037
1037
  }));
1038
1038
  return /*#__PURE__*/jsx(React.Fragment, {
1039
- children: /*#__PURE__*/jsxs(Grid, {
1039
+ children: /*#__PURE__*/jsxs(Grid2, {
1040
1040
  container: true,
1041
1041
  columns: {
1042
1042
  xs: 6,
1043
1043
  md: 12
1044
1044
  },
1045
- children: [/*#__PURE__*/jsxs(Grid, {
1045
+ children: [/*#__PURE__*/jsxs(Grid2, {
1046
1046
  xs: 6,
1047
1047
  sx: {
1048
1048
  px: 2
@@ -1052,7 +1052,7 @@ function PairWizard(_ref4) {
1052
1052
  children: /*#__PURE__*/jsx("strong", {
1053
1053
  children: "Find earliest set of spectrometers requiring"
1054
1054
  })
1055
- }), /*#__PURE__*/jsx(Grid, {
1055
+ }), /*#__PURE__*/jsx(Grid2, {
1056
1056
  sx: {
1057
1057
  padding: 2,
1058
1058
  display: "flex",
@@ -1067,13 +1067,13 @@ function PairWizard(_ref4) {
1067
1067
  SetError: SetError
1068
1068
  })
1069
1069
  })
1070
- }), /*#__PURE__*/jsx(Grid, {
1070
+ }), /*#__PURE__*/jsx(Grid2, {
1071
1071
  children: /*#__PURE__*/jsx(SelectSpecs, {
1072
1072
  specs: specs,
1073
1073
  SetSpecs: SetSpecs
1074
1074
  })
1075
1075
  })]
1076
- }), /*#__PURE__*/jsxs(Grid, {
1076
+ }), /*#__PURE__*/jsxs(Grid2, {
1077
1077
  xs: 6,
1078
1078
  sx: {
1079
1079
  px: 2
@@ -1083,7 +1083,7 @@ function PairWizard(_ref4) {
1083
1083
  children: /*#__PURE__*/jsx("strong", {
1084
1084
  children: "Result"
1085
1085
  })
1086
- }), /*#__PURE__*/jsxs(Grid, {
1086
+ }), /*#__PURE__*/jsxs(Grid2, {
1087
1087
  sx: {
1088
1088
  px: 3
1089
1089
  },
@@ -1126,13 +1126,13 @@ function FillTarget(_ref) {
1126
1126
  spec: spec
1127
1127
  });
1128
1128
  return /*#__PURE__*/jsx(React.Fragment, {
1129
- children: /*#__PURE__*/jsxs(Grid, {
1129
+ children: /*#__PURE__*/jsxs(Grid2, {
1130
1130
  container: true,
1131
1131
  columns: {
1132
1132
  xs: 6,
1133
1133
  md: 12
1134
1134
  },
1135
- children: [/*#__PURE__*/jsxs(Grid, {
1135
+ children: [/*#__PURE__*/jsxs(Grid2, {
1136
1136
  xs: 6,
1137
1137
  sx: {
1138
1138
  px: 2
@@ -1142,7 +1142,7 @@ function FillTarget(_ref) {
1142
1142
  children: /*#__PURE__*/jsx("strong", {
1143
1143
  children: "Select Spectrometer"
1144
1144
  })
1145
- }), /*#__PURE__*/jsx(Grid, {
1145
+ }), /*#__PURE__*/jsx(Grid2, {
1146
1146
  sx: {
1147
1147
  padding: 2,
1148
1148
  display: "flex",
@@ -1154,7 +1154,7 @@ function FillTarget(_ref) {
1154
1154
  SetSpec: SetSpec
1155
1155
  })
1156
1156
  })]
1157
- }), /*#__PURE__*/jsxs(Grid, {
1157
+ }), /*#__PURE__*/jsxs(Grid2, {
1158
1158
  xs: 6,
1159
1159
  sx: {
1160
1160
  px: 2
@@ -1164,7 +1164,7 @@ function FillTarget(_ref) {
1164
1164
  children: /*#__PURE__*/jsx("strong", {
1165
1165
  children: "Current status"
1166
1166
  })
1167
- }), /*#__PURE__*/jsx(Grid, {
1167
+ }), /*#__PURE__*/jsx(Grid2, {
1168
1168
  sx: {
1169
1169
  padding: 2,
1170
1170
  display: "flex",
@@ -1175,7 +1175,7 @@ function FillTarget(_ref) {
1175
1175
  children: [currLevel, " % (", currLiter, " L)"]
1176
1176
  })
1177
1177
  })]
1178
- }), /*#__PURE__*/jsxs(Grid, {
1178
+ }), /*#__PURE__*/jsxs(Grid2, {
1179
1179
  xs: 6,
1180
1180
  sx: {
1181
1181
  px: 2
@@ -1185,7 +1185,7 @@ function FillTarget(_ref) {
1185
1185
  children: /*#__PURE__*/jsx("strong", {
1186
1186
  children: "Helium fill amount"
1187
1187
  })
1188
- }), /*#__PURE__*/jsx(Grid, {
1188
+ }), /*#__PURE__*/jsx(Grid2, {
1189
1189
  sx: {
1190
1190
  padding: 2,
1191
1191
  display: "flex",
@@ -1201,7 +1201,7 @@ function FillTarget(_ref) {
1201
1201
  })
1202
1202
  })
1203
1203
  })]
1204
- }), /*#__PURE__*/jsxs(Grid, {
1204
+ }), /*#__PURE__*/jsxs(Grid2, {
1205
1205
  xs: 6,
1206
1206
  sx: {
1207
1207
  px: 2
@@ -1211,7 +1211,7 @@ function FillTarget(_ref) {
1211
1211
  children: /*#__PURE__*/jsx("strong", {
1212
1212
  children: "After filling"
1213
1213
  })
1214
- }), /*#__PURE__*/jsx(Grid, {
1214
+ }), /*#__PURE__*/jsx(Grid2, {
1215
1215
  sx: {
1216
1216
  padding: 2,
1217
1217
  display: "flex",
@@ -1509,7 +1509,7 @@ function HeliumGraph(_ref4) {
1509
1509
  children: /*#__PURE__*/jsx("strong", {
1510
1510
  children: "Helium level monitoring"
1511
1511
  })
1512
- }), /*#__PURE__*/jsx(Grid, {
1512
+ }), /*#__PURE__*/jsx(Grid2, {
1513
1513
  sx: {
1514
1514
  display: "flex",
1515
1515
  justifyContent: "center"
@@ -1530,7 +1530,7 @@ function HeliumGraph(_ref4) {
1530
1530
  }), " ", /*#__PURE__*/jsxs("em", {
1531
1531
  children: ["(updated ", moment(graphDataMeta.date).fromNow(), ")"]
1532
1532
  })]
1533
- }), /*#__PURE__*/jsx(Grid, {
1533
+ }), /*#__PURE__*/jsx(Grid2, {
1534
1534
  container: true,
1535
1535
  sx: {
1536
1536
  display: "flex",
@@ -1658,7 +1658,7 @@ function Helium(props) {
1658
1658
  graphDataMeta: graphDataMeta,
1659
1659
  matches: matches
1660
1660
  })
1661
- }) : null, /*#__PURE__*/jsxs(Grid, {
1661
+ }) : null, /*#__PURE__*/jsxs(Grid2, {
1662
1662
  sx: {
1663
1663
  display: "flex",
1664
1664
  flexFlow: "column wrap",
@@ -1668,7 +1668,7 @@ function Helium(props) {
1668
1668
  title: "Helium Calculator",
1669
1669
  size: cardSize,
1670
1670
  collapsed: collapsed,
1671
- children: [/*#__PURE__*/jsx(Grid, {
1671
+ children: [/*#__PURE__*/jsx(Grid2, {
1672
1672
  children: /*#__PURE__*/jsxs(DivTitle, {
1673
1673
  children: [/*#__PURE__*/jsx("strong", {
1674
1674
  children: "Current levels"
@@ -1678,7 +1678,7 @@ function Helium(props) {
1678
1678
  })]
1679
1679
  })]
1680
1680
  })
1681
- }), /*#__PURE__*/jsx(Grid, {
1681
+ }), /*#__PURE__*/jsx(Grid2, {
1682
1682
  children: /*#__PURE__*/jsx(HeliumTable, {
1683
1683
  heliumLookupData: heliumLookupData,
1684
1684
  heliumData: heliumData,
@@ -1690,7 +1690,7 @@ function Helium(props) {
1690
1690
  title: "Spectrometer Set",
1691
1691
  size: cardSize,
1692
1692
  collapsed: collapsed,
1693
- children: /*#__PURE__*/jsx(Grid, {
1693
+ children: /*#__PURE__*/jsx(Grid2, {
1694
1694
  children: /*#__PURE__*/jsx(PairWizard, {
1695
1695
  heliumData: heliumData
1696
1696
  })
@@ -1699,7 +1699,7 @@ function Helium(props) {
1699
1699
  title: "Estimated Consumption",
1700
1700
  size: cardSize,
1701
1701
  collapsed: collapsed,
1702
- children: /*#__PURE__*/jsx(Grid, {
1702
+ children: /*#__PURE__*/jsx(Grid2, {
1703
1703
  children: /*#__PURE__*/jsx(EstimateConsumption, {})
1704
1704
  })
1705
1705
  }), /*#__PURE__*/jsx(AppCard, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zac-apps/helium",
3
- "version": "1.2.6",
3
+ "version": "1.3.0-beta.1",
4
4
  "scripts": {
5
5
  "rollup": "node_modules/rollup/dist/rollup.js",
6
6
  "dev": "next dev",