@m4l/components 9.2.62-B08072025beta.1 → 9.2.62-B08072025beta.2
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/components/SideBar/constants.d.ts +1 -0
- package/components/SideBar/constants.js +5 -3
- package/components/SideBar/subcomponents/ContentComponent/style.js +8 -4
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/ArrowIcon/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +3 -2
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +1 -1
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -30,3 +30,4 @@ export declare const CLASS_NAME_IS_ROOT = "is-root";
|
|
|
30
30
|
export declare const CLASS_NAME_MENU_ACTIVE = "menu-active";
|
|
31
31
|
export declare const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
|
|
32
32
|
export declare const CLASS_NAME_HAS_CHILDREN = "has-children";
|
|
33
|
+
export declare const CLASS_NAME_ITEM_CLOSED = "item-closed";
|
|
@@ -15,6 +15,7 @@ const CLASS_NAME_IS_ROOT = "is-root";
|
|
|
15
15
|
const CLASS_NAME_MENU_ACTIVE = "menu-active";
|
|
16
16
|
const CLASS_NAME_ITEM_IN_TREE_ACTIVE = "item-in-tree-active";
|
|
17
17
|
const CLASS_NAME_HAS_CHILDREN = "has-children";
|
|
18
|
+
const CLASS_NAME_ITEM_CLOSED = "item-closed";
|
|
18
19
|
export {
|
|
19
20
|
ALL_SIDEBAR_SLOTS as A,
|
|
20
21
|
CLASS_NAME_IS_ROOT as C,
|
|
@@ -22,7 +23,8 @@ export {
|
|
|
22
23
|
SIDEBAR_KEY_COMPONENT as S,
|
|
23
24
|
CLASS_NAME_MENU_ACTIVE as a,
|
|
24
25
|
CLASS_NAME_HAS_CHILDREN as b,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
CLASS_NAME_ITEM_CLOSED as c,
|
|
27
|
+
CLASS_NAME_ITEM_IN_TREE_ACTIVE as d,
|
|
28
|
+
PATH_ARROW_RIGHT_ICON as e,
|
|
29
|
+
PATH_ARROW_DOWN_ICON as f
|
|
28
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CLASS_NAME_IS_ROOT, a as CLASS_NAME_MENU_ACTIVE, b as CLASS_NAME_HAS_CHILDREN, c as CLASS_NAME_ITEM_IN_TREE_ACTIVE } from "../../constants.js";
|
|
1
|
+
import { C as CLASS_NAME_IS_ROOT, a as CLASS_NAME_MENU_ACTIVE, b as CLASS_NAME_HAS_CHILDREN, c as CLASS_NAME_ITEM_CLOSED, d as CLASS_NAME_ITEM_IN_TREE_ACTIVE } from "../../constants.js";
|
|
2
2
|
import { g as getTypographyStyles } from "../../../../utils/getTypographyStyles.js";
|
|
3
3
|
const contentComponentStyles = {
|
|
4
4
|
/**
|
|
@@ -75,13 +75,16 @@ const contentComponentStyles = {
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
[`&.${CLASS_NAME_IS_ROOT}`]: {
|
|
78
|
-
margin: "unset"
|
|
78
|
+
margin: "unset",
|
|
79
|
+
"& > .MuiCollapse-root": {
|
|
80
|
+
paddingRight: theme.vars.size.baseSpacings["sp0-5"]
|
|
81
|
+
}
|
|
79
82
|
},
|
|
80
83
|
[`&.M4LSidebar-containerNodeMenuItem > .M4LMenuItem-root[class*="${CLASS_NAME_ITEM_IN_TREE_ACTIVE}"] .M4LIconClass-root`]: {
|
|
81
84
|
background: theme.vars.palette.text.primary
|
|
82
85
|
},
|
|
83
86
|
[`& > .M4LMenuItem-root:not(.${CLASS_NAME_IS_ROOT}).${CLASS_NAME_MENU_ACTIVE}`]: {
|
|
84
|
-
[`&.${CLASS_NAME_HAS_CHILDREN}`]: {
|
|
87
|
+
[`&.${CLASS_NAME_HAS_CHILDREN}:not(.${CLASS_NAME_ITEM_CLOSED})`]: {
|
|
85
88
|
'& [class*="M4LMenuItem-menuItemContainer"]:before': {
|
|
86
89
|
content: '""',
|
|
87
90
|
borderLeft: "3px solid",
|
|
@@ -122,7 +125,8 @@ const contentComponentStyles = {
|
|
|
122
125
|
[`& > .M4LMenuItem-root.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}`]: {
|
|
123
126
|
backgroundColor: theme.vars.palette.primary.opacity,
|
|
124
127
|
borderBottomLeftRadius: 0,
|
|
125
|
-
borderBottomRightRadius: 0
|
|
128
|
+
borderBottomRightRadius: 0,
|
|
129
|
+
paddingRight: "9px"
|
|
126
130
|
},
|
|
127
131
|
"& .MuiCollapse-wrapperInner": {
|
|
128
132
|
display: "flex",
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { u as useSideBar } from "../../hooks/useSideBar/index.js";
|
|
3
3
|
import { H as HeaderContainerComponentStyled, B as ButtonAnchoredStyled } from "../../slots/SideBarSlots.js";
|
|
4
4
|
import { useEnvironment } from "@m4l/core";
|
|
5
|
-
import {
|
|
5
|
+
import { e as PATH_ARROW_RIGHT_ICON } from "../../constants.js";
|
|
6
6
|
import { useIsMobile } from "@m4l/graphics";
|
|
7
7
|
const HeaderComponent = () => {
|
|
8
8
|
const {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../../../test/constants_no_mock.js";
|
|
4
4
|
import { g as getNameDataTestId } from "../../../../tests/utils.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as PATH_ARROW_DOWN_ICON } from "../../../../constants.js";
|
|
6
6
|
import { k as ContainerArrowIconRootStyled } from "../../../../slots/SideBarSlots.js";
|
|
7
7
|
import { u as useSideBar } from "../../../../hooks/useSideBar/index.js";
|
|
8
8
|
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
@@ -6,7 +6,7 @@ import { T as TEST_PROP_ID } from "../../../../../../test/constants_no_mock.js";
|
|
|
6
6
|
import { g as getNameDataTestId } from "../../../../tests/utils.js";
|
|
7
7
|
import { A as ArrowIcon } from "../ArrowIcon/index.js";
|
|
8
8
|
import { l as ContainerNodeMenuItemStyled } from "../../../../slots/SideBarSlots.js";
|
|
9
|
-
import { a as CLASS_NAME_MENU_ACTIVE,
|
|
9
|
+
import { a as CLASS_NAME_MENU_ACTIVE, d as CLASS_NAME_ITEM_IN_TREE_ACTIVE, b as CLASS_NAME_HAS_CHILDREN, c as CLASS_NAME_ITEM_CLOSED } from "../../../../constants.js";
|
|
10
10
|
import { useModuleSkeleton } from "@m4l/core";
|
|
11
11
|
import { A as AdornmentIcon } from "../AdormentIcon/AdormentIcon.js";
|
|
12
12
|
import { u as useCollapse } from "../../../../hooks/useCollapse/useCollapse.js";
|
|
@@ -41,7 +41,8 @@ function NodeMenuItem(props) {
|
|
|
41
41
|
CLASS_NAME_ITEM_STATE,
|
|
42
42
|
className,
|
|
43
43
|
item.children && item.children.length > 0 && CLASS_NAME_HAS_CHILDREN,
|
|
44
|
-
item.itemInTreeActive && CLASS_NAME_ITEM_IN_TREE_ACTIVE
|
|
44
|
+
item.itemInTreeActive && CLASS_NAME_ITEM_IN_TREE_ACTIVE,
|
|
45
|
+
!isOpen && CLASS_NAME_ITEM_CLOSED
|
|
45
46
|
),
|
|
46
47
|
label: item.title,
|
|
47
48
|
selected: item.active,
|
|
@@ -3,9 +3,9 @@ import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.j
|
|
|
3
3
|
import { T as TAB_CONTENT_KEY_COMPONENT } from "./constants.js";
|
|
4
4
|
import { T as TabContentRootStyled } from "./slots/TabContentSlots.js";
|
|
5
5
|
const TabContent = (props) => {
|
|
6
|
-
const { children, className,
|
|
6
|
+
const { children, className, hasBackground = false, ...others } = props;
|
|
7
7
|
const root = getComponentSlotRoot(TAB_CONTENT_KEY_COMPONENT);
|
|
8
|
-
return /* @__PURE__ */ jsx(TabContentRootStyled, { className: root, ownerState: {
|
|
8
|
+
return /* @__PURE__ */ jsx(TabContentRootStyled, { className: root, ownerState: { hasBackground }, ...others, children });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
TabContent as T
|
|
@@ -20,7 +20,7 @@ const tabContentStyles = {
|
|
|
20
20
|
boxSizing: "border-box",
|
|
21
21
|
zIndex: "0",
|
|
22
22
|
top: "-1px",
|
|
23
|
-
...ownerState?.
|
|
23
|
+
...ownerState?.hasBackground ? {
|
|
24
24
|
backgroundColor: theme.vars.palette.background.base,
|
|
25
25
|
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
26
26
|
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
@@ -7,6 +7,6 @@ export interface TabContentProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
key?: Key | null | undefined;
|
|
10
|
-
|
|
10
|
+
hasBackground?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export type TabContentStyles = M4LOverridesStyleRules<keyof typeof TabContentSlots, typeof TABS_KEY_COMPONENT, Theme>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.2.62-B08072025beta.
|
|
3
|
+
"version": "9.2.62-B08072025beta.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
12
12
|
"@hookform/resolvers": "2.9.11",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
|
-
"@m4l/graphics": "7.1.2-B08072025beta.
|
|
15
|
-
"@m4l/styles": "7.1.30-B08072025beta.
|
|
14
|
+
"@m4l/graphics": "7.1.2-B08072025beta.2",
|
|
15
|
+
"@m4l/styles": "7.1.30-B08072025beta.2",
|
|
16
16
|
"@microlink/react-json-view": "^1.23.3",
|
|
17
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
18
18
|
"@mui/material": "5.16.7",
|