revdev-components 0.25.0 → 0.26.0

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.
@@ -7,5 +7,6 @@ export interface BackSidebarProps {
7
7
  top?: React.ReactNode;
8
8
  shortMode?: boolean;
9
9
  activePath?: string;
10
+ defaultPath?: string;
10
11
  }
11
12
  export declare const BackSidebar: React.FC<BackSidebarProps>;
package/build/index.js CHANGED
@@ -4951,11 +4951,12 @@ var s$2 = {"root":"index-module_root__oQRmx"};
4951
4951
 
4952
4952
  // https://www.einfosoft.com/templates/admin/spice/source/edit_booking.html#
4953
4953
  var BackSidebar = function (_a) {
4954
- var className = _a.className, options = _a.options, top = _a.top, shortMode = _a.shortMode, activePath = _a.activePath;
4954
+ var className = _a.className, options = _a.options, top = _a.top, shortMode = _a.shortMode, activePath = _a.activePath, defaultPath = _a.defaultPath;
4955
+ var path = (activePath || "").replace("/", "") ? activePath : defaultPath;
4955
4956
  return (React.createElement("div", { className: classNames(s$2.root, className) },
4956
4957
  top ? React.createElement("div", { className: classNames(s$2.top) }, top) : null,
4957
4958
  React.createElement("div", { className: s$2.menu }, options.map(function (option, i) {
4958
- return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, option: option, activePath: activePath })) : (React.createElement(BackSidebarMenuItem, { key: i, option: option, activePath: activePath }));
4959
+ return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, option: option, activePath: path })) : (React.createElement(BackSidebarMenuItem, { key: i, option: option, activePath: path }));
4959
4960
  }))));
4960
4961
  };
4961
4962
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {