@m4l/components 9.1.121 → 9.1.122

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.
@@ -1,10 +1,6 @@
1
1
  import { ScrollBarProps } from './types';
2
2
  /**
3
- * TODO: Documentar
4
- * @author Diego Betancur - automatic
5
- * @createdAt 2025-02-10 11:27:50 - automatic
6
- * @updatedAt 2025-02-10 11:27:50 - automatic
7
- * @updatedUser Diego Betancur - automatic
3
+ * Componente que permite agregar una barra de desplazamiento personalizada.
8
4
  */
9
5
  export declare function ScrollBar(props: ScrollBarProps): import("react/jsx-runtime").JSX.Element;
10
6
  export default ScrollBar;
@@ -1,9 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import "simplebar-react/dist/simplebar.min.css";
3
+ import clsx from "clsx";
2
4
  import { Box } from "@mui/material";
3
5
  import { useIsMobile } from "@m4l/graphics";
4
- import clsx from "clsx";
5
- import { c as classScrollRoot, S as SCROLL_KEY_COMPONENT } from "./constants.js";
6
6
  import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
7
+ import { c as classScrollRoot, S as SCROLL_KEY_COMPONENT } from "./constants.js";
7
8
  import { R as RootScrollBar, S as SimpleBarStyled } from "./slots/ScrollBarSlots.js";
8
9
  import { S as ScrollBarSlots } from "./slots/ScrollBarEnum.js";
9
10
  function ScrollBar(props) {
@@ -1,24 +1,15 @@
1
- import "simplebar-react/dist/simplebar.min.css";
2
1
  const scrollBarStyles = {
3
2
  /**
4
- * 👾 Estilos para el Componente ScrollBar 👾
5
- * @updatedUser Diego Betancur - automatic
6
- * @updatedAt 2025-02-10 11:27:50 - automatic
7
- * @createdAt 2025-02-10 11:27:50 - automatic
8
- * @author Diego Betancur - automatic
9
- * @author Diego Betancur - automatic
10
- * @createdAt 2025-02-10 11:27:50 - automatic
11
- * @updatedAt 2025-02-10 11:27:50 - automatic
12
- * @updatedUser Diego Betancur - automatic
3
+ * Root element
13
4
  */
14
5
  root: ({ theme }) => ({
15
- flexGrow: "1",
6
+ flexGrow: 1,
16
7
  width: "100%",
17
8
  height: "100%",
18
9
  overflow: "hidden",
19
10
  minHeight: "inherit",
20
11
  "& .simplebar-scrollbar.simplebar-visible:before": {
21
- opacity: "1"
12
+ opacity: 1
22
13
  },
23
14
  '& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] .simplebar-content': {},
24
15
  '& .simplebar-content-wrapper[style*="overflow: scroll hidden;"] .simplebar-content': {
@@ -35,13 +26,13 @@ const scrollBarStyles = {
35
26
  }
36
27
  }),
37
28
  /**
38
- * 👾 Estilos para el Componente ScrollBar 👾
29
+ * Scroll bar
39
30
  */
40
- scrollBar: () => ({
31
+ scrollBar: ({ theme }) => ({
41
32
  height: "100%",
42
33
  "& .simplebar-scrollbar": {
43
34
  "&:before": {
44
- // backgroundColor: alpha(theme.colorSchemes.finalTheme.palette.grey[600], 0.48),
35
+ background: theme.vars.palette.general.scrollBar
45
36
  },
46
37
  "&.simplebar-visible:before": {
47
38
  opacity: 1
@@ -61,10 +52,8 @@ const scrollBarStyles = {
61
52
  flexDirection: "column",
62
53
  height: "100%"
63
54
  },
64
- '& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] ': {
65
- "& .simplebar-content": {
66
- marginRight: "12px"
67
- }
55
+ '& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] .simplebar-content': {
56
+ marginRight: "12px"
68
57
  }
69
58
  })
70
59
  };
@@ -1,4 +1,4 @@
1
- import { M4LOverridesStyleRules } from 'src/@types/augmentations';
1
+ import { M4LOverridesStyleRules } from '../../../../../src/@types/augmentations';
2
2
  import { AreasViewerSlots } from './slots/AreasViewerEnum';
3
3
  import { Theme } from '@mui/material';
4
4
  import { AREAS_VIEWER_KEY_COMPONENT } from './constants';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.121",
3
+ "version": "9.1.122",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"