amssui 2.0.81 → 2.0.82
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/es/button-modal/index.d.ts +1 -1
- package/es/button-modal/index.js +22 -61
- package/es/menu-nav-icon-button/index.d.ts +1 -2
- package/es/menu-nav-icon-button/index.js +19 -41
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +25 -101
- package/lib/index.js +3 -7
- package/lib/menu-nav-icon-button/index.d.ts +1 -2
- package/lib/menu-nav-icon-button/index.js +22 -48
- package/package.json +11 -6
|
@@ -10,5 +10,5 @@ export interface ButtonModalProps extends Omit<DialogProps, 'children'> {
|
|
|
10
10
|
trigger?: React.ReactElement;
|
|
11
11
|
children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
|
|
12
12
|
}
|
|
13
|
-
declare const ForwardRefButtonModal: React.
|
|
13
|
+
declare const ForwardRefButtonModal: React.ForwardRefRenderFunction<ModalAction, ButtonModalProps>;
|
|
14
14
|
export default ForwardRefButtonModal;
|
package/es/button-modal/index.js
CHANGED
|
@@ -1,63 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (var p in s) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) {
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
17
|
-
}
|
|
18
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
var __read = this && this.__read || function (o, n) {
|
|
24
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25
|
-
if (!m) return o;
|
|
26
|
-
var i = m.call(o),
|
|
27
|
-
r,
|
|
28
|
-
ar = [],
|
|
29
|
-
e;
|
|
30
|
-
try {
|
|
31
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
32
|
-
ar.push(r.value);
|
|
33
|
-
}
|
|
34
|
-
} catch (error) {
|
|
35
|
-
e = {
|
|
36
|
-
error: error
|
|
37
|
-
};
|
|
38
|
-
} finally {
|
|
39
|
-
try {
|
|
40
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
41
|
-
} finally {
|
|
42
|
-
if (e) throw e.error;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return ar;
|
|
46
|
-
};
|
|
1
|
+
var _excluded = ["children", "trigger", "onOpen", "onClose", "onConfirm", "onCancel"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
47
5
|
import * as React from 'react';
|
|
48
6
|
import isFunction from 'lodash/isFunction';
|
|
49
|
-
import Dialog from
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
visible =
|
|
53
|
-
setModalVisible =
|
|
7
|
+
import { Dialog } from 'react-vant';
|
|
8
|
+
var ForwardRefButtonModal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
|
+
var _React$useState = React.useState(false),
|
|
10
|
+
visible = _React$useState[0],
|
|
11
|
+
setModalVisible = _React$useState[1];
|
|
54
12
|
var children = props.children,
|
|
55
13
|
trigger = props.trigger,
|
|
56
14
|
onOpen = props.onOpen,
|
|
57
15
|
onClose = props.onClose,
|
|
58
16
|
onConfirm = props.onConfirm,
|
|
59
17
|
onCancel = props.onCancel,
|
|
60
|
-
restModalProps =
|
|
18
|
+
restModalProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
61
19
|
var openModal = function openModal() {
|
|
62
20
|
if (onOpen) {
|
|
63
21
|
onOpen();
|
|
@@ -93,13 +51,16 @@ var ButtonModal = function ButtonModal(props, ref) {
|
|
|
93
51
|
var buttonNode = trigger && /*#__PURE__*/React.cloneElement(trigger, {
|
|
94
52
|
onClick: openModal
|
|
95
53
|
});
|
|
96
|
-
return
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
54
|
+
return _jsxs(_Fragment, {
|
|
55
|
+
children: [buttonNode, _jsx(Dialog, _extends({
|
|
56
|
+
visible: visible,
|
|
57
|
+
onConfirm: handleModalOk,
|
|
58
|
+
onCancel: handleModalCancel
|
|
59
|
+
}, restModalProps, {
|
|
60
|
+
children: isFunction(children) ? children(modalActionRef.current) : /*#__PURE__*/React.cloneElement(children, {
|
|
61
|
+
modalAction: modalActionRef.current
|
|
62
|
+
})
|
|
63
|
+
}))]
|
|
64
|
+
});
|
|
65
|
+
});
|
|
105
66
|
export default ForwardRefButtonModal;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export type MenuNavIconProps = {
|
|
3
2
|
onChange?: (status: boolean) => void;
|
|
4
3
|
onClick?: () => void;
|
|
5
4
|
status?: boolean;
|
|
6
5
|
className?: string;
|
|
7
6
|
};
|
|
8
|
-
declare const MenuNavIconButton:
|
|
7
|
+
declare const MenuNavIconButton: (props: MenuNavIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default MenuNavIconButton;
|
|
@@ -1,55 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3
|
-
if (!m) return o;
|
|
4
|
-
var i = m.call(o),
|
|
5
|
-
r,
|
|
6
|
-
ar = [],
|
|
7
|
-
e;
|
|
8
|
-
try {
|
|
9
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
10
|
-
ar.push(r.value);
|
|
11
|
-
}
|
|
12
|
-
} catch (error) {
|
|
13
|
-
e = {
|
|
14
|
-
error: error
|
|
15
|
-
};
|
|
16
|
-
} finally {
|
|
17
|
-
try {
|
|
18
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
19
|
-
} finally {
|
|
20
|
-
if (e) throw e.error;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
2
|
import useControllableValue from "ahooks/es/useControllableValue";
|
|
26
3
|
import classNames from 'classnames';
|
|
27
|
-
import React from 'react';
|
|
28
4
|
var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
29
5
|
var _onClick = props.onClick,
|
|
30
6
|
className = props.className;
|
|
31
|
-
var
|
|
7
|
+
var _useControllableValue = useControllableValue(props, {
|
|
32
8
|
valuePropName: 'status'
|
|
33
|
-
}),
|
|
34
|
-
status =
|
|
35
|
-
setStatus =
|
|
36
|
-
return
|
|
9
|
+
}),
|
|
10
|
+
status = _useControllableValue[0],
|
|
11
|
+
setStatus = _useControllableValue[1];
|
|
12
|
+
return _jsx("div", {
|
|
37
13
|
className: classNames('menu-nav-icon', {
|
|
38
14
|
open: status
|
|
39
15
|
}, className),
|
|
40
16
|
onClick: function onClick() {
|
|
41
17
|
var nextStatus = !status;
|
|
42
18
|
setStatus(nextStatus);
|
|
43
|
-
_onClick
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
19
|
+
_onClick == null || _onClick();
|
|
20
|
+
},
|
|
21
|
+
children: _jsxs("div", {
|
|
22
|
+
className: "menu-nav-icon-wrap",
|
|
23
|
+
children: [_jsx("span", {
|
|
24
|
+
className: "menu-nav-icon-bar"
|
|
25
|
+
}), _jsx("span", {
|
|
26
|
+
className: "menu-nav-icon-bar"
|
|
27
|
+
}), _jsx("span", {
|
|
28
|
+
className: "menu-nav-icon-bar"
|
|
29
|
+
})]
|
|
30
|
+
})
|
|
31
|
+
});
|
|
54
32
|
};
|
|
55
33
|
export default MenuNavIconButton;
|
|
@@ -10,5 +10,5 @@ export interface ButtonModalProps extends Omit<DialogProps, 'children'> {
|
|
|
10
10
|
trigger?: React.ReactElement;
|
|
11
11
|
children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
|
|
12
12
|
}
|
|
13
|
-
declare const ForwardRefButtonModal: React.
|
|
13
|
+
declare const ForwardRefButtonModal: React.ForwardRefRenderFunction<ModalAction, ButtonModalProps>;
|
|
14
14
|
export default ForwardRefButtonModal;
|
|
@@ -1,106 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return m[k];
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(o, k2, desc);
|
|
27
|
-
} : function (o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
o[k2] = m[k];
|
|
30
|
-
});
|
|
31
|
-
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
32
|
-
Object.defineProperty(o, "default", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
value: v
|
|
35
|
-
});
|
|
36
|
-
} : function (o, v) {
|
|
37
|
-
o["default"] = v;
|
|
38
|
-
});
|
|
39
|
-
var __importStar = this && this.__importStar || function (mod) {
|
|
40
|
-
if (mod && mod.__esModule) return mod;
|
|
41
|
-
var result = {};
|
|
42
|
-
if (mod != null) for (var k in mod) {
|
|
43
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
-
}
|
|
45
|
-
__setModuleDefault(result, mod);
|
|
46
|
-
return result;
|
|
47
|
-
};
|
|
48
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
49
|
-
var t = {};
|
|
50
|
-
for (var p in s) {
|
|
51
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
52
|
-
}
|
|
53
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
|
-
var __read = this && this.__read || function (o, n) {
|
|
59
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
60
|
-
if (!m) return o;
|
|
61
|
-
var i = m.call(o),
|
|
62
|
-
r,
|
|
63
|
-
ar = [],
|
|
64
|
-
e;
|
|
65
|
-
try {
|
|
66
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
67
|
-
ar.push(r.value);
|
|
68
|
-
}
|
|
69
|
-
} catch (error) {
|
|
70
|
-
e = {
|
|
71
|
-
error: error
|
|
72
|
-
};
|
|
73
|
-
} finally {
|
|
74
|
-
try {
|
|
75
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
76
|
-
} finally {
|
|
77
|
-
if (e) throw e.error;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return ar;
|
|
81
|
-
};
|
|
82
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
83
|
-
return mod && mod.__esModule ? mod : {
|
|
84
|
-
"default": mod
|
|
85
|
-
};
|
|
86
|
-
};
|
|
3
|
+
var _excluded = ["children", "trigger", "onOpen", "onClose", "onConfirm", "onCancel"];
|
|
4
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
87
6
|
Object.defineProperty(exports, "__esModule", {
|
|
88
7
|
value: true
|
|
89
8
|
});
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var React = tslib_1.__importStar(require("react"));
|
|
12
|
+
var isFunction_1 = tslib_1.__importDefault(require("lodash/isFunction"));
|
|
13
|
+
var react_vant_1 = require("react-vant");
|
|
14
|
+
var ForwardRefButtonModal = React.forwardRef(function (props, ref) {
|
|
15
|
+
var _React$useState = React.useState(false),
|
|
16
|
+
visible = _React$useState[0],
|
|
17
|
+
setModalVisible = _React$useState[1];
|
|
97
18
|
var children = props.children,
|
|
98
19
|
trigger = props.trigger,
|
|
99
20
|
onOpen = props.onOpen,
|
|
100
21
|
onClose = props.onClose,
|
|
101
22
|
onConfirm = props.onConfirm,
|
|
102
23
|
onCancel = props.onCancel,
|
|
103
|
-
restModalProps =
|
|
24
|
+
restModalProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
104
25
|
var openModal = function openModal() {
|
|
105
26
|
if (onOpen) {
|
|
106
27
|
onOpen();
|
|
@@ -136,13 +57,16 @@ var ButtonModal = function ButtonModal(props, ref) {
|
|
|
136
57
|
var buttonNode = trigger && React.cloneElement(trigger, {
|
|
137
58
|
onClick: openModal
|
|
138
59
|
});
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
60
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, {
|
|
61
|
+
children: [buttonNode, (0, jsx_runtime_1.jsx)(react_vant_1.Dialog, _extends({
|
|
62
|
+
visible: visible,
|
|
63
|
+
onConfirm: handleModalOk,
|
|
64
|
+
onCancel: handleModalCancel
|
|
65
|
+
}, restModalProps, {
|
|
66
|
+
children: (0, isFunction_1["default"])(children) ? children(modalActionRef.current) : React.cloneElement(children, {
|
|
67
|
+
modalAction: modalActionRef.current
|
|
68
|
+
})
|
|
69
|
+
}))]
|
|
70
|
+
});
|
|
71
|
+
});
|
|
148
72
|
exports["default"] = ForwardRefButtonModal;
|
package/lib/index.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
3
|
Object.defineProperty(exports, "__esModule", {
|
|
9
4
|
value: true
|
|
10
5
|
});
|
|
11
6
|
exports.MenuNavIconButton = exports.ButtonModal = void 0;
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
12
8
|
var button_modal_1 = require("./button-modal");
|
|
13
9
|
Object.defineProperty(exports, "ButtonModal", {
|
|
14
10
|
enumerable: true,
|
|
15
11
|
get: function get() {
|
|
16
|
-
return __importDefault(button_modal_1)["default"];
|
|
12
|
+
return tslib_1.__importDefault(button_modal_1)["default"];
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
var menu_nav_icon_button_1 = require("./menu-nav-icon-button");
|
|
20
16
|
Object.defineProperty(exports, "MenuNavIconButton", {
|
|
21
17
|
enumerable: true,
|
|
22
18
|
get: function get() {
|
|
23
|
-
return __importDefault(menu_nav_icon_button_1)["default"];
|
|
19
|
+
return tslib_1.__importDefault(menu_nav_icon_button_1)["default"];
|
|
24
20
|
}
|
|
25
21
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export type MenuNavIconProps = {
|
|
3
2
|
onChange?: (status: boolean) => void;
|
|
4
3
|
onClick?: () => void;
|
|
5
4
|
status?: boolean;
|
|
6
5
|
className?: string;
|
|
7
6
|
};
|
|
8
|
-
declare const MenuNavIconButton:
|
|
7
|
+
declare const MenuNavIconButton: (props: MenuNavIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default MenuNavIconButton;
|
|
@@ -1,65 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __read = this && this.__read || function (o, n) {
|
|
4
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5
|
-
if (!m) return o;
|
|
6
|
-
var i = m.call(o),
|
|
7
|
-
r,
|
|
8
|
-
ar = [],
|
|
9
|
-
e;
|
|
10
|
-
try {
|
|
11
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
12
|
-
ar.push(r.value);
|
|
13
|
-
}
|
|
14
|
-
} catch (error) {
|
|
15
|
-
e = {
|
|
16
|
-
error: error
|
|
17
|
-
};
|
|
18
|
-
} finally {
|
|
19
|
-
try {
|
|
20
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
21
|
-
} finally {
|
|
22
|
-
if (e) throw e.error;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return ar;
|
|
26
|
-
};
|
|
27
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
28
|
-
return mod && mod.__esModule ? mod : {
|
|
29
|
-
"default": mod
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
3
|
Object.defineProperty(exports, "__esModule", {
|
|
33
4
|
value: true
|
|
34
5
|
});
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
6
|
+
var tslib_1 = require("tslib");
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var useControllableValue_1 = tslib_1.__importDefault(require("ahooks/lib/useControllableValue"));
|
|
9
|
+
var classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
38
10
|
var MenuNavIconButton = function MenuNavIconButton(props) {
|
|
39
11
|
var _onClick = props.onClick,
|
|
40
12
|
className = props.className;
|
|
41
|
-
var
|
|
13
|
+
var _ref = (0, useControllableValue_1["default"])(props, {
|
|
42
14
|
valuePropName: 'status'
|
|
43
|
-
}),
|
|
44
|
-
status =
|
|
45
|
-
setStatus =
|
|
46
|
-
return
|
|
15
|
+
}),
|
|
16
|
+
status = _ref[0],
|
|
17
|
+
setStatus = _ref[1];
|
|
18
|
+
return (0, jsx_runtime_1.jsx)("div", {
|
|
47
19
|
className: (0, classnames_1["default"])('menu-nav-icon', {
|
|
48
20
|
open: status
|
|
49
21
|
}, className),
|
|
50
22
|
onClick: function onClick() {
|
|
51
23
|
var nextStatus = !status;
|
|
52
24
|
setStatus(nextStatus);
|
|
53
|
-
_onClick
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
25
|
+
_onClick == null || _onClick();
|
|
26
|
+
},
|
|
27
|
+
children: (0, jsx_runtime_1.jsxs)("div", {
|
|
28
|
+
className: "menu-nav-icon-wrap",
|
|
29
|
+
children: [(0, jsx_runtime_1.jsx)("span", {
|
|
30
|
+
className: "menu-nav-icon-bar"
|
|
31
|
+
}), (0, jsx_runtime_1.jsx)("span", {
|
|
32
|
+
className: "menu-nav-icon-bar"
|
|
33
|
+
}), (0, jsx_runtime_1.jsx)("span", {
|
|
34
|
+
className: "menu-nav-icon-bar"
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
64
38
|
};
|
|
65
39
|
exports["default"] = MenuNavIconButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amssui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.82",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -30,22 +30,27 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"a-icons": "^1.2.
|
|
33
|
+
"a-icons": "^1.2.82",
|
|
34
34
|
"ahooks": "^3.9.5",
|
|
35
|
-
"react-vant": "3.
|
|
35
|
+
"react-vant": "^3.3.5"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "^16.8.6 || ^17.0 || ^18.0",
|
|
39
|
-
"react-vant": "^
|
|
39
|
+
"react-vant": "^3.3.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/
|
|
42
|
+
"@types/react": "18.3.1",
|
|
43
|
+
"@types/react-dom": "18.3.1",
|
|
43
44
|
"jest-websocket-mock": "^2.1.0",
|
|
44
45
|
"mock-socket": "^9.0.3"
|
|
45
46
|
},
|
|
47
|
+
"resolutions": {
|
|
48
|
+
"@types/react": "18.3.1",
|
|
49
|
+
"@types/react-dom": "18.3.1"
|
|
50
|
+
},
|
|
46
51
|
"engines": {
|
|
47
52
|
"node": ">=10.0.0"
|
|
48
53
|
},
|
|
49
54
|
"license": "MIT",
|
|
50
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "fd9f99a26c499e8d2c4d84387638459fc30af3ff"
|
|
51
56
|
}
|