amssui 1.0.22 → 1.0.23
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.
|
@@ -30,7 +30,8 @@ import classNames from 'classnames';
|
|
|
30
30
|
import React from 'react';
|
|
31
31
|
|
|
32
32
|
var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
33
|
-
var _onClick = props.onClick
|
|
33
|
+
var _onClick = props.onClick,
|
|
34
|
+
className = props.className;
|
|
34
35
|
|
|
35
36
|
var _a = __read(useControllableValue(props, {
|
|
36
37
|
valuePropName: 'status'
|
|
@@ -41,7 +42,7 @@ var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
|
41
42
|
return /*#__PURE__*/React.createElement("div", {
|
|
42
43
|
className: classNames('menu-nav-icon', {
|
|
43
44
|
open: status
|
|
44
|
-
}),
|
|
45
|
+
}, className),
|
|
45
46
|
onClick: function onClick() {
|
|
46
47
|
var nextStatus = !status;
|
|
47
48
|
setStatus(nextStatus);
|
|
@@ -44,7 +44,8 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
44
44
|
var react_1 = __importDefault(require("react"));
|
|
45
45
|
|
|
46
46
|
var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
47
|
-
var _onClick = props.onClick
|
|
47
|
+
var _onClick = props.onClick,
|
|
48
|
+
className = props.className;
|
|
48
49
|
|
|
49
50
|
var _a = __read((0, ahooks_1.useControllableValue)(props, {
|
|
50
51
|
valuePropName: 'status'
|
|
@@ -55,7 +56,7 @@ var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
|
55
56
|
return react_1["default"].createElement("div", {
|
|
56
57
|
className: (0, classnames_1["default"])('menu-nav-icon', {
|
|
57
58
|
open: status
|
|
58
|
-
}),
|
|
59
|
+
}, className),
|
|
59
60
|
onClick: function onClick() {
|
|
60
61
|
var nextStatus = !status;
|
|
61
62
|
setStatus(nextStatus);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amssui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"node": ">=10.0.0"
|
|
49
49
|
},
|
|
50
50
|
"license": "MIT",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d1be031cfc531f5bb10742f2aea82051b0ca6c60"
|
|
52
52
|
}
|