sevago-library 1.3.14 → 1.3.16
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +48 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +49 -30
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { createTheme as createTheme$2, Stack, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$4, Skeleton, Box, styled as styled$3, InputLabel as InputLabel$1, Link, Paper as Paper$1, Typography as Typography$1, ClickAwayListener, Tooltip, Icon, Badge, Tabs as Tabs$1, Tab as Tab$1, Divider as Divider$1, tooltipClasses, Avatar, AvatarGroup, Popover as Popover$1, CircularProgress as CircularProgress$1, Button as Button$1, Chip as Chip$1, TextField as TextField$1, GlobalStyles as GlobalStyles$2, InputAdornment as InputAdornment$1, debounce as debounce$3, Fade as Fade$1, MenuItem as MenuItem$1, FormControl as FormControl$1, FormHelperText as FormHelperText$1, IconButton as IconButton$1, FormControlLabel, Checkbox, Collapse, Dialog as Dialog$1, DialogTitle, DialogContent as DialogContent$1, DialogActions as DialogActions$1, List as List$2, ListItem as ListItem$1, Pagination, RadioGroup, Radio, TableRow, TableContainer, TableHead, Table, TableBody, Card, CardHeader, CardContent, Select as Select$1, Autocomplete as Autocomplete$1 } from "@mui/material";
|
|
4
|
+
import { createTheme as createTheme$2, Stack, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$4, Skeleton, Box, styled as styled$3, InputLabel as InputLabel$1, Link, Paper as Paper$1, Typography as Typography$1, ClickAwayListener, Tooltip, Icon, Badge, Tabs as Tabs$1, Tab as Tab$1, Divider as Divider$1, tooltipClasses, Avatar, AvatarGroup, Popover as Popover$1, CircularProgress as CircularProgress$1, Button as Button$1, Chip as Chip$1, TextField as TextField$1, GlobalStyles as GlobalStyles$2, InputAdornment as InputAdornment$1, debounce as debounce$3, Fade as Fade$1, MenuItem as MenuItem$1, FormControl as FormControl$1, FormHelperText as FormHelperText$1, IconButton as IconButton$1, FormControlLabel, Checkbox, Collapse, Dialog as Dialog$1, DialogTitle, DialogContent as DialogContent$1, DialogActions as DialogActions$1, List as List$2, ListItem as ListItem$1, Pagination, RadioGroup, Radio, TableRow, TableContainer, TableHead, Table, TableBody, useMediaQuery as useMediaQuery$1, Card, CardHeader, CardContent, Select as Select$1, Autocomplete as Autocomplete$1 } from "@mui/material";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
7
|
import * as React from "react";
|
|
@@ -33402,21 +33402,41 @@ const TypographyGridInfoRow = ({
|
|
|
33402
33402
|
label,
|
|
33403
33403
|
value,
|
|
33404
33404
|
sx,
|
|
33405
|
+
lineLimit,
|
|
33405
33406
|
columns = "1fr 2fr",
|
|
33406
33407
|
layout = "vertical",
|
|
33407
33408
|
sxValue,
|
|
33408
33409
|
sxLabel
|
|
33409
33410
|
}) => {
|
|
33410
|
-
|
|
33411
|
-
|
|
33412
|
-
|
|
33413
|
-
|
|
33414
|
-
|
|
33415
|
-
|
|
33416
|
-
|
|
33417
|
-
|
|
33418
|
-
|
|
33419
|
-
|
|
33411
|
+
const isGridLayout = layout === "vertical";
|
|
33412
|
+
return /* @__PURE__ */ jsxs(
|
|
33413
|
+
StackRow,
|
|
33414
|
+
{
|
|
33415
|
+
sx: {
|
|
33416
|
+
...isGridLayout ? { display: "grid", gridTemplateColumns: columns } : { flexDirection: "column", gap: 0.5 },
|
|
33417
|
+
...sx
|
|
33418
|
+
},
|
|
33419
|
+
children: [
|
|
33420
|
+
/* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textSm.semiBold, color: GRAY[500], ...sxLabel }, children: label }),
|
|
33421
|
+
/* @__PURE__ */ jsx(
|
|
33422
|
+
Typography$1,
|
|
33423
|
+
{
|
|
33424
|
+
sx: {
|
|
33425
|
+
...TYPOGRAPHY.textSm.regular,
|
|
33426
|
+
...lineLimit && {
|
|
33427
|
+
display: "-webkit-box",
|
|
33428
|
+
overflow: "hidden",
|
|
33429
|
+
WebkitBoxOrient: "vertical",
|
|
33430
|
+
WebkitLineClamp: lineLimit
|
|
33431
|
+
},
|
|
33432
|
+
...sxValue
|
|
33433
|
+
},
|
|
33434
|
+
children: checkEmptyText(value)
|
|
33435
|
+
}
|
|
33436
|
+
)
|
|
33437
|
+
]
|
|
33438
|
+
}
|
|
33439
|
+
);
|
|
33420
33440
|
};
|
|
33421
33441
|
const TypographyInfoRow = ({
|
|
33422
33442
|
label,
|
|
@@ -33426,20 +33446,13 @@ const TypographyInfoRow = ({
|
|
|
33426
33446
|
lineLimit = 1,
|
|
33427
33447
|
isColumn = false
|
|
33428
33448
|
}) => {
|
|
33429
|
-
return /* @__PURE__ */ jsxs(
|
|
33430
|
-
|
|
33431
|
-
|
|
33432
|
-
|
|
33433
|
-
|
|
33434
|
-
|
|
33435
|
-
|
|
33436
|
-
label,
|
|
33437
|
-
":"
|
|
33438
|
-
] }),
|
|
33439
|
-
/* @__PURE__ */ jsx(Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsx(Typography$1, { children: checkEmptyText(value) }) })
|
|
33440
|
-
]
|
|
33441
|
-
}
|
|
33442
|
-
);
|
|
33449
|
+
return /* @__PURE__ */ jsxs(StackAlignCenter, { direction: isColumn ? "column" : "row", sx: { gap: PADDING_GAP_ITEM_SMALL, ...sx }, children: [
|
|
33450
|
+
label && /* @__PURE__ */ jsxs(Typography$1, { sx: { color: GRAY[500], ...labelSx }, children: [
|
|
33451
|
+
label,
|
|
33452
|
+
":"
|
|
33453
|
+
] }),
|
|
33454
|
+
/* @__PURE__ */ jsx(Stack, { sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsx(Typography$1, { children: checkEmptyText(value) }) })
|
|
33455
|
+
] });
|
|
33443
33456
|
};
|
|
33444
33457
|
function _extends() {
|
|
33445
33458
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -78328,6 +78341,10 @@ const SystemMonitorScreen = ({
|
|
|
78328
78341
|
}) => {
|
|
78329
78342
|
const theme = useTheme();
|
|
78330
78343
|
const [tab, setTab] = useState(AppGroup.ALL);
|
|
78344
|
+
const isBelowSm = useMediaQuery$1(theme.breakpoints.down("sm"));
|
|
78345
|
+
const isBelowMd = useMediaQuery$1(theme.breakpoints.down("md"));
|
|
78346
|
+
const isBelowLg = useMediaQuery$1(theme.breakpoints.down("lg"));
|
|
78347
|
+
const appGridColumns = isBelowSm ? 2 : isBelowMd ? 3 : isBelowLg ? 4 : 5;
|
|
78331
78348
|
const availableApps = React__default.useMemo(
|
|
78332
78349
|
() => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
|
|
78333
78350
|
const appInfo = app;
|
|
@@ -78370,7 +78387,7 @@ const SystemMonitorScreen = ({
|
|
|
78370
78387
|
component: MotionBox,
|
|
78371
78388
|
preset: "fadeInUp",
|
|
78372
78389
|
sx: {
|
|
78373
|
-
flexDirection:
|
|
78390
|
+
flexDirection: "row",
|
|
78374
78391
|
alignItems: "stretch",
|
|
78375
78392
|
width: "100%",
|
|
78376
78393
|
minHeight: "100%",
|
|
@@ -78381,7 +78398,8 @@ const SystemMonitorScreen = ({
|
|
|
78381
78398
|
Stack,
|
|
78382
78399
|
{
|
|
78383
78400
|
sx: {
|
|
78384
|
-
width: { xs:
|
|
78401
|
+
width: { xs: 72, sm: 180, md: 240 },
|
|
78402
|
+
flexShrink: 0,
|
|
78385
78403
|
gap: 0
|
|
78386
78404
|
},
|
|
78387
78405
|
children: availableGroups.map((group) => {
|
|
@@ -78393,6 +78411,7 @@ const SystemMonitorScreen = ({
|
|
|
78393
78411
|
"aria-pressed": isActive,
|
|
78394
78412
|
sx: {
|
|
78395
78413
|
p: PADDING_GAP_ITEM,
|
|
78414
|
+
justifyContent: { xs: "center", sm: "flex-start" },
|
|
78396
78415
|
border: 0,
|
|
78397
78416
|
borderLeft: { md: `3px solid ${isActive ? theme.palette.primary.main : "transparent"}` },
|
|
78398
78417
|
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
@@ -78407,7 +78426,7 @@ const SystemMonitorScreen = ({
|
|
|
78407
78426
|
},
|
|
78408
78427
|
children: [
|
|
78409
78428
|
/* @__PURE__ */ jsx(IconElement, { icon: GROUP_ICONS[group] }),
|
|
78410
|
-
/* @__PURE__ */ jsx(Typography$1, { sx: { ...TYPOGRAPHY.textMd.regular }, children: group })
|
|
78429
|
+
/* @__PURE__ */ jsx(Typography$1, { sx: { display: { xs: "none", sm: "block" }, ...TYPOGRAPHY.textMd.regular }, children: group })
|
|
78411
78430
|
]
|
|
78412
78431
|
},
|
|
78413
78432
|
group
|
|
@@ -78419,9 +78438,9 @@ const SystemMonitorScreen = ({
|
|
|
78419
78438
|
AppGrid,
|
|
78420
78439
|
{
|
|
78421
78440
|
apps: appsByGroup,
|
|
78422
|
-
columns:
|
|
78441
|
+
columns: appGridColumns,
|
|
78423
78442
|
rows: 3,
|
|
78424
|
-
iconSize:
|
|
78443
|
+
iconSize: 60,
|
|
78425
78444
|
iconRadius: 7,
|
|
78426
78445
|
onClickApp,
|
|
78427
78446
|
isShowAppHidden: true
|