revdev-components 0.25.0 → 0.27.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>;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  interface Props {
3
3
  className?: string;
4
4
  submitText?: string;
5
+ loading?: boolean;
5
6
  }
6
7
  export declare const FormButton: React.FC<Props>;
7
8
  export {};
package/build/index.js CHANGED
@@ -4764,9 +4764,9 @@ var DivisionRow = function (_a) {
4764
4764
  var s$c = {"root":"index-module_root__xH-TN"};
4765
4765
 
4766
4766
  var FormButton = function (_a) {
4767
- var className = _a.className, _b = _a.submitText, submitText = _b === void 0 ? "Save" : _b;
4767
+ var className = _a.className, _b = _a.submitText, submitText = _b === void 0 ? "Save" : _b, loading = _a.loading;
4768
4768
  return (React.createElement("div", { className: classNames(s$c.root, className) },
4769
- React.createElement(antd.Button, { htmlType: "submit", type: "primary" }, submitText)));
4769
+ React.createElement(antd.Button, { htmlType: "submit", type: "primary", loading: loading }, submitText)));
4770
4770
  };
4771
4771
 
4772
4772
  var s$b = {"root":"index-module_root__Xj8zb"};
@@ -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.27.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {