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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.16
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: update value color
8
+
9
+ ## 1.3.15
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: enhance responsiveness and layout adjustments in SystemMonitorScreen
14
+
3
15
  ## 1.3.14
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -33420,21 +33420,41 @@ const TypographyGridInfoRow = ({
33420
33420
  label,
33421
33421
  value,
33422
33422
  sx,
33423
+ lineLimit,
33423
33424
  columns = "1fr 2fr",
33424
33425
  layout = "vertical",
33425
33426
  sxValue,
33426
33427
  sxLabel
33427
33428
  }) => {
33428
- if (layout === "vertical") {
33429
- return /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(StackRow, { sx: { display: "grid", gridTemplateColumns: columns, ...sx }, children: [
33430
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }) }),
33431
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
33432
- ] }) });
33433
- }
33434
- return /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { sx: { gap: 0.5, ...sx }, children: [
33435
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, ...sxLabel }, children: label }),
33436
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...TYPOGRAPHY.textSm.regular, ...sxValue }, children: value || "Không có" })
33437
- ] }) });
33429
+ const isGridLayout = layout === "vertical";
33430
+ return /* @__PURE__ */ jsxRuntime.jsxs(
33431
+ StackRow,
33432
+ {
33433
+ sx: {
33434
+ ...isGridLayout ? { display: "grid", gridTemplateColumns: columns } : { flexDirection: "column", gap: 0.5 },
33435
+ ...sx
33436
+ },
33437
+ children: [
33438
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textSm.semiBold, color: GRAY[500], ...sxLabel }, children: label }),
33439
+ /* @__PURE__ */ jsxRuntime.jsx(
33440
+ material.Typography,
33441
+ {
33442
+ sx: {
33443
+ ...TYPOGRAPHY.textSm.regular,
33444
+ ...lineLimit && {
33445
+ display: "-webkit-box",
33446
+ overflow: "hidden",
33447
+ WebkitBoxOrient: "vertical",
33448
+ WebkitLineClamp: lineLimit
33449
+ },
33450
+ ...sxValue
33451
+ },
33452
+ children: checkEmptyText(value)
33453
+ }
33454
+ )
33455
+ ]
33456
+ }
33457
+ );
33438
33458
  };
33439
33459
  const TypographyInfoRow = ({
33440
33460
  label,
@@ -33444,20 +33464,13 @@ const TypographyInfoRow = ({
33444
33464
  lineLimit = 1,
33445
33465
  isColumn = false
33446
33466
  }) => {
33447
- return /* @__PURE__ */ jsxRuntime.jsxs(
33448
- material.Stack,
33449
- {
33450
- direction: isColumn ? "column" : "row",
33451
- sx: { alignItems: "center", gap: PADDING_GAP_ITEM_SMALL, ...sx },
33452
- children: [
33453
- label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { ...labelSx }, variant: "subtitle1", children: [
33454
- label,
33455
- ":"
33456
- ] }),
33457
- /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { color: "text.secondary", sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
33458
- ]
33459
- }
33460
- );
33467
+ return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenter, { direction: isColumn ? "column" : "row", sx: { gap: PADDING_GAP_ITEM_SMALL, ...sx }, children: [
33468
+ label && /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { sx: { color: GRAY[500], ...labelSx }, children: [
33469
+ label,
33470
+ ":"
33471
+ ] }),
33472
+ /* @__PURE__ */ jsxRuntime.jsx(material.Stack, { sx: { ...getLimitLineCss(lineLimit), flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: checkEmptyText(value) }) })
33473
+ ] });
33461
33474
  };
33462
33475
  function _extends() {
33463
33476
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
@@ -78346,6 +78359,10 @@ const SystemMonitorScreen = ({
78346
78359
  }) => {
78347
78360
  const theme = useTheme();
78348
78361
  const [tab, setTab] = React.useState(AppGroup.ALL);
78362
+ const isBelowSm = material.useMediaQuery(theme.breakpoints.down("sm"));
78363
+ const isBelowMd = material.useMediaQuery(theme.breakpoints.down("md"));
78364
+ const isBelowLg = material.useMediaQuery(theme.breakpoints.down("lg"));
78365
+ const appGridColumns = isBelowSm ? 2 : isBelowMd ? 3 : isBelowLg ? 4 : 5;
78349
78366
  const availableApps = React.useMemo(
78350
78367
  () => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
78351
78368
  const appInfo = app;
@@ -78388,7 +78405,7 @@ const SystemMonitorScreen = ({
78388
78405
  component: MotionBox,
78389
78406
  preset: "fadeInUp",
78390
78407
  sx: {
78391
- flexDirection: { xs: "column", md: "row" },
78408
+ flexDirection: "row",
78392
78409
  alignItems: "stretch",
78393
78410
  width: "100%",
78394
78411
  minHeight: "100%",
@@ -78399,7 +78416,8 @@ const SystemMonitorScreen = ({
78399
78416
  material.Stack,
78400
78417
  {
78401
78418
  sx: {
78402
- width: { xs: "100%", md: 240 },
78419
+ width: { xs: 72, sm: 180, md: 240 },
78420
+ flexShrink: 0,
78403
78421
  gap: 0
78404
78422
  },
78405
78423
  children: availableGroups.map((group) => {
@@ -78411,6 +78429,7 @@ const SystemMonitorScreen = ({
78411
78429
  "aria-pressed": isActive,
78412
78430
  sx: {
78413
78431
  p: PADDING_GAP_ITEM,
78432
+ justifyContent: { xs: "center", sm: "flex-start" },
78414
78433
  border: 0,
78415
78434
  borderLeft: { md: `3px solid ${isActive ? theme.palette.primary.main : "transparent"}` },
78416
78435
  borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
@@ -78425,7 +78444,7 @@ const SystemMonitorScreen = ({
78425
78444
  },
78426
78445
  children: [
78427
78446
  /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: GROUP_ICONS[group] }),
78428
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY.textMd.regular }, children: group })
78447
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { display: { xs: "none", sm: "block" }, ...TYPOGRAPHY.textMd.regular }, children: group })
78429
78448
  ]
78430
78449
  },
78431
78450
  group
@@ -78437,9 +78456,9 @@ const SystemMonitorScreen = ({
78437
78456
  AppGrid,
78438
78457
  {
78439
78458
  apps: appsByGroup,
78440
- columns: 5,
78459
+ columns: appGridColumns,
78441
78460
  rows: 3,
78442
- iconSize: 120,
78461
+ iconSize: 60,
78443
78462
  iconRadius: 7,
78444
78463
  onClickApp,
78445
78464
  isShowAppHidden: true