@xyo-network/react-appbar 2.37.17 → 2.37.18
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/cjs/components/SiteMenu/MenuSection.d.ts +1 -0
- package/dist/cjs/components/SiteMenu/MenuSection.d.ts.map +1 -1
- package/dist/cjs/components/SiteMenu/MenuSection.js +2 -2
- package/dist/cjs/components/SiteMenu/MenuSection.js.map +1 -1
- package/dist/docs.json +619 -597
- package/dist/esm/components/SiteMenu/MenuSection.d.ts +1 -0
- package/dist/esm/components/SiteMenu/MenuSection.d.ts.map +1 -1
- package/dist/esm/components/SiteMenu/MenuSection.js +2 -2
- package/dist/esm/components/SiteMenu/MenuSection.js.map +1 -1
- package/package.json +6 -6
- package/src/components/SiteMenu/MenuSection.tsx +3 -2
@@ -5,6 +5,7 @@ export interface MenuSectionProps extends FlexBoxProps {
|
|
5
5
|
title: string;
|
6
6
|
listItems: MenuListItemProps[];
|
7
7
|
showTitle?: boolean;
|
8
|
+
iconMenuTextSpacing?: string;
|
8
9
|
}
|
9
10
|
export declare const MenuSection: React.FC<MenuSectionProps>;
|
10
11
|
//# sourceMappingURL=MenuSection.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MenuSection.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAyB,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEzE,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"MenuSection.d.ts","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAyB,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEzE,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYlD,CAAA"}
|
@@ -7,8 +7,8 @@ const material_1 = require("@mui/material");
|
|
7
7
|
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
8
|
const MenuListItem_1 = require("./MenuListItem");
|
9
9
|
const MenuSection = (_a) => {
|
10
|
-
var { title, listItems, showTitle = true } = _a, props = tslib_1.__rest(_a, ["title", "listItems", "showTitle"]);
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: showTitle, timeout: 700 }, { children: (0, jsx_runtime_1.jsx)(material_1.ListSubheader, { children: title }) })), listItems.map((item, index) => ((0, jsx_runtime_1.jsx)(MenuListItem_1.MenuListItemContainer, Object.assign({}, item), index)))] })));
|
10
|
+
var { title, listItems, iconMenuTextSpacing, showTitle = true } = _a, props = tslib_1.__rest(_a, ["title", "listItems", "iconMenuTextSpacing", "showTitle"]);
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: showTitle, timeout: 700 }, { children: (0, jsx_runtime_1.jsx)(material_1.ListSubheader, { children: title }) })), listItems.map((item, index) => ((0, jsx_runtime_1.jsx)(MenuListItem_1.MenuListItemContainer, Object.assign({ iconMenuTextSpacing: iconMenuTextSpacing }, item), index)))] })));
|
12
12
|
};
|
13
13
|
exports.MenuSection = MenuSection;
|
14
14
|
//# sourceMappingURL=MenuSection.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MenuSection.js","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AACvD,yDAA6D;AAE7D,iDAAyE;
|
1
|
+
{"version":3,"file":"MenuSection.js","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AACvD,yDAA6D;AAE7D,iDAAyE;AASlE,MAAM,WAAW,GAA+B,CAAC,EAAqE,EAAE,EAAE;QAAzE,EAAE,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,SAAS,GAAG,IAAI,OAAY,EAAP,KAAK,sBAAnE,0DAAqE,CAAF;IACzH,OAAO,CACL,wBAAC,uBAAO,kBAAC,UAAU,EAAC,SAAS,IAAK,KAAK,eACrC,uBAAC,mBAAQ,kBAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,gBACnC,uBAAC,wBAAa,cAAE,KAAK,GAAiB,IAC7B,EAEV,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,uBAAC,oCAAqB,kBAAa,mBAAmB,EAAE,mBAAmB,IAAM,IAAI,GAAzD,KAAK,CAA8E,CAChH,CAAC,KACM,CACX,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,WAAW,eAYvB"}
|