sevago-library 1.3.6 → 1.3.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.esm.js CHANGED
@@ -77326,7 +77326,7 @@ const AppGridItem = ({
77326
77326
  showTitleApps = true,
77327
77327
  direction = "column"
77328
77328
  }) => {
77329
- return /* @__PURE__ */ jsxs(StackAlignCenterJustCenter, { sx: { gap: PADDING_GAP_ITEM_SMALL }, children: [
77329
+ return /* @__PURE__ */ jsxs(StackRowAlignCenterJustCenter, { sx: { flexDirection: direction, gap: PADDING_GAP_ITEM }, children: [
77330
77330
  showIconApps && /* @__PURE__ */ jsx(ImageElement, { sx: { width: iconSize, height: iconSize }, url: app.icon, sizeType: "SQUARE" }),
77331
77331
  showTitleApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.semiBold }, children: app.title }),
77332
77332
  showNameApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.regular }, children: app.content })
@@ -78247,6 +78247,7 @@ const SystemMonitorSidebarPart = ({
78247
78247
  onClickApp,
78248
78248
  showNameApps,
78249
78249
  showIconApps,
78250
+ showTitleApps,
78250
78251
  direction = "row",
78251
78252
  isLongSubDomain = false
78252
78253
  }) => {
@@ -78260,10 +78261,11 @@ const SystemMonitorSidebarPart = ({
78260
78261
  AppGridItem,
78261
78262
  {
78262
78263
  app,
78263
- iconSize: 32,
78264
+ iconSize: 45,
78264
78265
  iconRadius: 3,
78265
78266
  showNameApps,
78266
78267
  showIconApps,
78268
+ showTitleApps,
78267
78269
  direction
78268
78270
  }
78269
78271
  ),
@@ -78281,7 +78283,6 @@ const SystemMonitorSidebarPart = ({
78281
78283
  )
78282
78284
  ] });
78283
78285
  };
78284
- const normalizeSearchText = (value) => value.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase().trim();
78285
78286
  const SystemMonitorScreen = ({
78286
78287
  blacklist,
78287
78288
  onClickApp,
@@ -78291,8 +78292,6 @@ const SystemMonitorScreen = ({
78291
78292
  }) => {
78292
78293
  const theme = useTheme();
78293
78294
  const [tab, setTab] = useState(AppGroup.ALL);
78294
- const currentSearchText = searchText;
78295
- const normalizedSearchText = normalizeSearchText(currentSearchText);
78296
78295
  const availableApps = React__default.useMemo(
78297
78296
  () => Object.entries(APP_OBJ).filter(([key]) => !(blacklist == null ? void 0 : blacklist.includes(key))).map(([, app]) => {
78298
78297
  const appInfo = app;
@@ -78315,13 +78314,13 @@ const SystemMonitorScreen = ({
78315
78314
  if (tab !== AppGroup.ALL && app.group !== tab) {
78316
78315
  return false;
78317
78316
  }
78318
- if (!normalizedSearchText) {
78317
+ if (!searchText.trim()) {
78319
78318
  return true;
78320
78319
  }
78321
- const searchableText = normalizeSearchText(`${app.title ?? ""} ${app.content}`);
78322
- return searchableText.includes(normalizedSearchText);
78320
+ const searchableText = `${app.title ?? ""} ${app.content}`.toLocaleLowerCase();
78321
+ return searchableText.includes(searchText.toLocaleLowerCase().trim());
78323
78322
  }),
78324
- [availableApps, normalizedSearchText, tab]
78323
+ [availableApps, searchText, tab]
78325
78324
  );
78326
78325
  const availableGroups = React__default.useMemo(
78327
78326
  () => Object.values(AppGroup).filter(
@@ -78385,13 +78384,13 @@ const SystemMonitorScreen = ({
78385
78384
  {
78386
78385
  apps: appsByGroup,
78387
78386
  columns: 5,
78388
- rows: 2,
78387
+ rows: 3,
78389
78388
  iconSize: 120,
78390
78389
  iconRadius: 7,
78391
78390
  onClickApp,
78392
78391
  isShowAppHidden: true
78393
78392
  },
78394
- `${tab}-${normalizedSearchText}`
78393
+ `${tab}-${searchText}`
78395
78394
  ) : /* @__PURE__ */ jsx(EmptyComponent, { content: "Không tìm thấy ứng dụng phù hợp" }) })
78396
78395
  ]
78397
78396
  }