@nutui/nutui-react 2.3.11 → 2.3.12-beta.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.
- package/dist/esm/ActionSheet.js +0 -10
- package/dist/esm/Address.js +0 -13
- package/dist/esm/AnimatingNumbers.js +9 -25
- package/dist/esm/Badge.js +0 -3
- package/dist/esm/Button.js +0 -4
- package/dist/esm/Cascader.js +0 -17
- package/dist/esm/Checkbox.js +0 -6
- package/dist/esm/CheckboxGroup.js +0 -3
- package/dist/esm/CollapseItem.js +0 -3
- package/dist/esm/ConfigProvider.js +0 -2
- package/dist/esm/Dialog.js +2 -8
- package/dist/esm/Elevator.js +2 -1
- package/dist/esm/Empty.js +0 -1
- package/dist/esm/FormItem.js +0 -3
- package/dist/esm/Grid.js +0 -1
- package/dist/esm/GridItem.js +0 -4
- package/dist/esm/Indicator.js +0 -2
- package/dist/esm/Menu.js +0 -9
- package/dist/esm/MenuItem.js +0 -13
- package/dist/esm/Notify.js +10 -27
- package/dist/esm/Overlay.js +0 -8
- package/dist/esm/Picker.js +0 -7
- package/dist/esm/Popover.js +0 -1
- package/dist/esm/Popup.js +0 -12
- package/dist/esm/PullToRefresh.js +0 -1
- package/dist/esm/Radio.js +0 -6
- package/dist/esm/RadioGroup.js +0 -3
- package/dist/esm/SafeArea.js +0 -2
- package/dist/esm/Sticky.js +0 -1
- package/dist/esm/Tabbar.js +0 -1
- package/dist/esm/TabbarItem.js +0 -4
- package/dist/esm/Tabs.js +0 -7
- package/dist/esm/Toast.js +10 -32
- package/dist/esm/cascader2.js +14 -15
- package/dist/esm/formitem2.js +10 -26
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +224 -202
- package/dist/nutui.react.umd.js +224 -202
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +98 -98
- package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
- package/dist/types/packages/address/address.d.ts +1 -1
- package/dist/types/packages/address/address.taro.d.ts +1 -1
- package/dist/types/packages/address/customRender.d.ts +1 -1
- package/dist/types/packages/address/customRender.taro.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
- package/dist/types/packages/cell/cell.d.ts +1 -1
- package/dist/types/packages/cell/cell.taro.d.ts +1 -1
- package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
- package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
- package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
- package/dist/types/packages/form/form.d.ts +1 -1
- package/dist/types/packages/form/form.taro.d.ts +1 -1
- package/dist/types/packages/form/index.d.ts +1 -1
- package/dist/types/packages/form/index.taro.d.ts +1 -1
- package/dist/types/packages/menu/menu.d.ts +1 -1
- package/dist/types/packages/menu/menu.taro.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
- package/dist/types/packages/nutui.react.d.ts +98 -98
- package/dist/types/packages/nutui.react.taro.d.ts +98 -98
- package/dist/types/packages/nutui.taro.react.build.d.ts +98 -98
- package/dist/types/packages/picker/picker.d.ts +1 -1
- package/dist/types/packages/picker/picker.taro.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +1 -1
- package/dist/types/packages/popover/popover.taro.d.ts +1 -1
- package/dist/types/packages/popup/popup.d.ts +1 -1
- package/dist/types/packages/popup/popup.taro.d.ts +1 -1
- package/dist/types/packages/radio/radio.d.ts +2 -2
- package/dist/types/packages/radio/radio.taro.d.ts +2 -2
- package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
- package/dist/types/packages/swiper/index.d.ts +1 -1
- package/dist/types/packages/swiper/index.taro.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
- package/dist/types/packages/tour/tour.d.ts +1 -1
- package/dist/types/packages/tour/tour.taro.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/ActionSheet.js
CHANGED
|
@@ -25,16 +25,6 @@ function _objectSpread(e) {
|
|
|
25
25
|
import React__default from "react";
|
|
26
26
|
import { P as Popup } from "./popup2.js";
|
|
27
27
|
import { C as ComponentDefaults } from "./typings.js";
|
|
28
|
-
import "react-dom";
|
|
29
|
-
import "react-transition-group";
|
|
30
|
-
import "classnames";
|
|
31
|
-
import "@nutui/icons-react";
|
|
32
|
-
import "./overlay2.js";
|
|
33
|
-
import "./use-touch.js";
|
|
34
|
-
import "./get-scroll-parent.js";
|
|
35
|
-
import "./can-use-dom.js";
|
|
36
|
-
import "./supports-passive.js";
|
|
37
|
-
import "./Overlay.js";
|
|
38
28
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
39
29
|
visible: false,
|
|
40
30
|
description: "",
|
package/dist/esm/Address.js
CHANGED
|
@@ -30,19 +30,6 @@ import { C as Cascader } from "./cascader2.js";
|
|
|
30
30
|
import { C as ComponentDefaults } from "./typings.js";
|
|
31
31
|
import { useConfig } from "./ConfigProvider.js";
|
|
32
32
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
33
|
-
import "classnames";
|
|
34
|
-
import "./popup2.js";
|
|
35
|
-
import "react-dom";
|
|
36
|
-
import "react-transition-group";
|
|
37
|
-
import "./overlay2.js";
|
|
38
|
-
import "./use-touch.js";
|
|
39
|
-
import "./get-scroll-parent.js";
|
|
40
|
-
import "./can-use-dom.js";
|
|
41
|
-
import "./supports-passive.js";
|
|
42
|
-
import "./Overlay.js";
|
|
43
|
-
import "./tabs2.js";
|
|
44
|
-
import "./TabPane.js";
|
|
45
|
-
import "./raf.js";
|
|
46
33
|
var defaultProps$2 = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
47
34
|
visible: false,
|
|
48
35
|
type: "custom",
|
|
@@ -1,38 +1,23 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
var _excluded = ["length", "value", "delay", "duration", "className", "thousands", "style"];
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
return function _createSuperInternal() {
|
|
12
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
13
|
-
if (hasNativeReflectConstruct) {
|
|
14
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
15
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
16
|
-
} else {
|
|
17
|
-
result = Super.apply(this, arguments);
|
|
18
|
-
}
|
|
19
|
-
return _possibleConstructorReturn(this, result);
|
|
20
|
-
};
|
|
9
|
+
function _callSuper(t, o, e) {
|
|
10
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
21
11
|
}
|
|
22
12
|
function _isNativeReflectConstruct() {
|
|
23
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
24
|
-
return false;
|
|
25
|
-
if (Reflect.construct.sham)
|
|
26
|
-
return false;
|
|
27
|
-
if (typeof Proxy === "function")
|
|
28
|
-
return true;
|
|
29
13
|
try {
|
|
30
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
31
15
|
}));
|
|
32
|
-
|
|
33
|
-
} catch (e) {
|
|
34
|
-
return false;
|
|
16
|
+
} catch (t2) {
|
|
35
17
|
}
|
|
18
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
19
|
+
return !!t;
|
|
20
|
+
})();
|
|
36
21
|
}
|
|
37
22
|
function ownKeys(e, r) {
|
|
38
23
|
var t = Object.keys(e);
|
|
@@ -135,11 +120,10 @@ CountUp.displayName = "NutCountUp";
|
|
|
135
120
|
var defaultProps = {};
|
|
136
121
|
var AnimatingNumbers = /* @__PURE__ */ function(_Component) {
|
|
137
122
|
_inherits(AnimatingNumbers2, _Component);
|
|
138
|
-
var _super = _createSuper(AnimatingNumbers2);
|
|
139
123
|
function AnimatingNumbers2(props) {
|
|
140
124
|
var _this;
|
|
141
125
|
_classCallCheck(this, AnimatingNumbers2);
|
|
142
|
-
_this =
|
|
126
|
+
_this = _callSuper(this, AnimatingNumbers2, [props]);
|
|
143
127
|
_this.state = {};
|
|
144
128
|
return _this;
|
|
145
129
|
}
|
package/dist/esm/Badge.js
CHANGED
package/dist/esm/Button.js
CHANGED
package/dist/esm/Cascader.js
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { C as Cascader } from "./cascader2.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "@nutui/icons-react";
|
|
5
|
-
import "./popup2.js";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "react-transition-group";
|
|
8
|
-
import "./overlay2.js";
|
|
9
|
-
import "./typings.js";
|
|
10
|
-
import "./use-touch.js";
|
|
11
|
-
import "./get-scroll-parent.js";
|
|
12
|
-
import "./can-use-dom.js";
|
|
13
|
-
import "./supports-passive.js";
|
|
14
|
-
import "./Overlay.js";
|
|
15
|
-
import "./tabs2.js";
|
|
16
|
-
import "./TabPane.js";
|
|
17
|
-
import "./raf.js";
|
|
18
|
-
import "./use-props-value.js";
|
|
19
2
|
export {
|
|
20
3
|
Cascader as default
|
|
21
4
|
};
|
package/dist/esm/Checkbox.js
CHANGED
|
@@ -28,9 +28,6 @@ import React__default, { useImperativeHandle, useCallback } from "react";
|
|
|
28
28
|
import classNames from "classnames";
|
|
29
29
|
import { C as Checkbox, a as Context } from "./checkbox2.js";
|
|
30
30
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
31
|
-
import "@nutui/icons-react";
|
|
32
|
-
import "./CheckboxGroup.js";
|
|
33
|
-
import "./typings.js";
|
|
34
31
|
var defaultProps = {
|
|
35
32
|
max: void 0,
|
|
36
33
|
min: void 0,
|
package/dist/esm/CollapseItem.js
CHANGED
package/dist/esm/Dialog.js
CHANGED
|
@@ -32,11 +32,6 @@ import { d as defaultOverlayProps } from "./overlay2.js";
|
|
|
32
32
|
import { C as ComponentDefaults } from "./typings.js";
|
|
33
33
|
import Overlay from "./Overlay.js";
|
|
34
34
|
import { useConfig } from "./ConfigProvider.js";
|
|
35
|
-
import "react-dom";
|
|
36
|
-
import "./use-touch.js";
|
|
37
|
-
import "./get-scroll-parent.js";
|
|
38
|
-
import "./can-use-dom.js";
|
|
39
|
-
import "./supports-passive.js";
|
|
40
35
|
function ConfirmDialog(props) {
|
|
41
36
|
return React__default.createElement(Dialog, _objectSpread({}, props), props.content);
|
|
42
37
|
}
|
|
@@ -125,7 +120,6 @@ var confirm = function confirm2(config, renderFunc) {
|
|
|
125
120
|
update
|
|
126
121
|
};
|
|
127
122
|
};
|
|
128
|
-
var confirm$1 = confirm;
|
|
129
123
|
var Content = function Content2(props) {
|
|
130
124
|
var visible = props.visible, title = props.title, header = props.header, footer = props.footer, close = props.close, footerDirection = props.footerDirection, onClick = props.onClick, children = props.children;
|
|
131
125
|
var classPrefix = "nut-dialog";
|
|
@@ -287,11 +281,11 @@ var BaseDialog = function BaseDialog2(props, ref) {
|
|
|
287
281
|
};
|
|
288
282
|
var Dialog = forwardRef(BaseDialog);
|
|
289
283
|
Dialog.confirm = function(props) {
|
|
290
|
-
return confirm
|
|
284
|
+
return confirm(props);
|
|
291
285
|
};
|
|
292
286
|
["alert"].forEach(function(type) {
|
|
293
287
|
Dialog[type] = function(props) {
|
|
294
|
-
return confirm
|
|
288
|
+
return confirm(_objectSpread(_objectSpread({}, props), {}, {
|
|
295
289
|
isNotice: false,
|
|
296
290
|
noticeType: type
|
|
297
291
|
}));
|
package/dist/esm/Elevator.js
CHANGED
|
@@ -110,7 +110,7 @@ var Elevator = function Elevator2(props) {
|
|
|
110
110
|
var offset = _ref2.offset;
|
|
111
111
|
touchState.current.y2 = offset[1];
|
|
112
112
|
var delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0;
|
|
113
|
-
var cacheIndex = state.current.anchorIndex + Math.
|
|
113
|
+
var cacheIndex = state.current.anchorIndex + Math.round(delta);
|
|
114
114
|
setCodeIndex(cacheIndex);
|
|
115
115
|
scrollTo(cacheIndex);
|
|
116
116
|
resetScrollState();
|
|
@@ -141,6 +141,7 @@ var Elevator = function Elevator2(props) {
|
|
|
141
141
|
}
|
|
142
142
|
var target = e.target;
|
|
143
143
|
var scrollTop = target.scrollTop;
|
|
144
|
+
scrollTop = Math.ceil(scrollTop);
|
|
144
145
|
state.current.scrollY = scrollTop;
|
|
145
146
|
setScrollY(scrollTop);
|
|
146
147
|
for (var i = 0; i < listHeight.length - 1; i++) {
|
package/dist/esm/Empty.js
CHANGED
|
@@ -28,7 +28,6 @@ import classNames from "classnames";
|
|
|
28
28
|
import { useConfig } from "./ConfigProvider.js";
|
|
29
29
|
import { C as ComponentDefaults } from "./typings.js";
|
|
30
30
|
import { B as Button } from "./button2.js";
|
|
31
|
-
import "@nutui/icons-react";
|
|
32
31
|
var defaultStatus = {
|
|
33
32
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
34
33
|
error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
|
package/dist/esm/FormItem.js
CHANGED
package/dist/esm/Grid.js
CHANGED
|
@@ -26,7 +26,6 @@ import React__default from "react";
|
|
|
26
26
|
import classNames from "classnames";
|
|
27
27
|
import { a as GridContext, G as GridItem } from "./griditem2.js";
|
|
28
28
|
import { p as pxCheck } from "./px-check.js";
|
|
29
|
-
import "./ConfigProvider.js";
|
|
30
29
|
var defaultProps = {
|
|
31
30
|
columns: 4,
|
|
32
31
|
gap: 0,
|
package/dist/esm/GridItem.js
CHANGED
package/dist/esm/Indicator.js
CHANGED
package/dist/esm/Menu.js
CHANGED
|
@@ -29,15 +29,6 @@ import classNames from "classnames";
|
|
|
29
29
|
import { ArrowUp, ArrowDown } from "@nutui/icons-react";
|
|
30
30
|
import { M as MenuItem } from "./menuitem2.js";
|
|
31
31
|
import { C as ComponentDefaults } from "./typings.js";
|
|
32
|
-
import "react-transition-group";
|
|
33
|
-
import "./overlay2.js";
|
|
34
|
-
import "./use-touch.js";
|
|
35
|
-
import "./get-scroll-parent.js";
|
|
36
|
-
import "./can-use-dom.js";
|
|
37
|
-
import "./supports-passive.js";
|
|
38
|
-
import "./use-click-away.js";
|
|
39
|
-
import "./index.js";
|
|
40
|
-
import "./use-props-value.js";
|
|
41
32
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
42
33
|
activeColor: "",
|
|
43
34
|
closeOnOverlayClick: true,
|
package/dist/esm/MenuItem.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { M as MenuItem } from "./menuitem2.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "react-transition-group";
|
|
5
|
-
import "@nutui/icons-react";
|
|
6
|
-
import "./overlay2.js";
|
|
7
|
-
import "./typings.js";
|
|
8
|
-
import "./use-touch.js";
|
|
9
|
-
import "./get-scroll-parent.js";
|
|
10
|
-
import "./can-use-dom.js";
|
|
11
|
-
import "./supports-passive.js";
|
|
12
|
-
import "./use-click-away.js";
|
|
13
|
-
import "./index.js";
|
|
14
|
-
import "./use-props-value.js";
|
|
15
2
|
export {
|
|
16
3
|
MenuItem as default
|
|
17
4
|
};
|
package/dist/esm/Notify.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) {
|
|
9
9
|
var t = Object.keys(e);
|
|
@@ -26,48 +26,31 @@ function _objectSpread(e) {
|
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
return function _createSuperInternal() {
|
|
32
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
33
|
-
if (hasNativeReflectConstruct) {
|
|
34
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
35
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
36
|
-
} else {
|
|
37
|
-
result = Super.apply(this, arguments);
|
|
38
|
-
}
|
|
39
|
-
return _possibleConstructorReturn(this, result);
|
|
40
|
-
};
|
|
29
|
+
function _callSuper(t, o, e) {
|
|
30
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
41
31
|
}
|
|
42
32
|
function _isNativeReflectConstruct() {
|
|
43
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
44
|
-
return false;
|
|
45
|
-
if (Reflect.construct.sham)
|
|
46
|
-
return false;
|
|
47
|
-
if (typeof Proxy === "function")
|
|
48
|
-
return true;
|
|
49
33
|
try {
|
|
50
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
34
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
51
35
|
}));
|
|
52
|
-
|
|
53
|
-
} catch (e) {
|
|
54
|
-
return false;
|
|
36
|
+
} catch (t2) {
|
|
55
37
|
}
|
|
38
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
39
|
+
return !!t;
|
|
40
|
+
})();
|
|
56
41
|
}
|
|
57
42
|
import * as React from "react";
|
|
58
43
|
import classNames from "classnames";
|
|
59
44
|
import { CSSTransition } from "react-transition-group";
|
|
60
45
|
import { r as render, u as unmount } from "./render.js";
|
|
61
46
|
import { C as ComponentDefaults } from "./typings.js";
|
|
62
|
-
import "react-dom";
|
|
63
47
|
var classPrefix = "nut-notify";
|
|
64
48
|
var Notification = /* @__PURE__ */ function(_React$PureComponent) {
|
|
65
49
|
_inherits(Notification2, _React$PureComponent);
|
|
66
|
-
var _super = _createSuper(Notification2);
|
|
67
50
|
function Notification2(props) {
|
|
68
51
|
var _this;
|
|
69
52
|
_classCallCheck(this, Notification2);
|
|
70
|
-
_this =
|
|
53
|
+
_this = _callSuper(this, Notification2, [props]);
|
|
71
54
|
_defineProperty(_assertThisInitialized(_this), "closeTimer", void 0);
|
|
72
55
|
_this.close = _this.close.bind(_assertThisInitialized(_this));
|
|
73
56
|
_this.startCloseTimer = _this.startCloseTimer.bind(_assertThisInitialized(_this));
|
package/dist/esm/Overlay.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { O as Overlay } from "./overlay2.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-transition-group";
|
|
4
|
-
import "classnames";
|
|
5
|
-
import "./typings.js";
|
|
6
|
-
import "./use-touch.js";
|
|
7
|
-
import "./get-scroll-parent.js";
|
|
8
|
-
import "./can-use-dom.js";
|
|
9
|
-
import "./supports-passive.js";
|
|
10
2
|
export {
|
|
11
3
|
Overlay as default
|
|
12
4
|
};
|
package/dist/esm/Picker.js
CHANGED
|
@@ -34,13 +34,6 @@ import { u as useRefs } from "./use-refs.js";
|
|
|
34
34
|
import { useConfig } from "./ConfigProvider.js";
|
|
35
35
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
36
36
|
import { C as ComponentDefaults } from "./typings.js";
|
|
37
|
-
import "react-dom";
|
|
38
|
-
import "react-transition-group";
|
|
39
|
-
import "@nutui/icons-react";
|
|
40
|
-
import "./overlay2.js";
|
|
41
|
-
import "./get-scroll-parent.js";
|
|
42
|
-
import "./can-use-dom.js";
|
|
43
|
-
import "./Overlay.js";
|
|
44
37
|
var InternalPickerPanel = function InternalPickerPanel2(props, ref) {
|
|
45
38
|
var _props$keyIndex = props.keyIndex, keyIndex = _props$keyIndex === void 0 ? 0 : _props$keyIndex, defaultValue = props.defaultValue, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, _props$threeDimension = props.threeDimensional, threeDimensional = _props$threeDimension === void 0 ? true : _props$threeDimension, _props$duration = props.duration, duration = _props$duration === void 0 ? 1e3 : _props$duration, chooseItem = props.chooseItem;
|
|
46
39
|
var touch = useTouch();
|
package/dist/esm/Popover.js
CHANGED
|
@@ -32,7 +32,6 @@ import { C as ComponentDefaults } from "./typings.js";
|
|
|
32
32
|
import { u as useClickAway } from "./use-click-away.js";
|
|
33
33
|
import { c as canUseDom } from "./can-use-dom.js";
|
|
34
34
|
import { a as getAllScrollableParents } from "./get-scroll-parent.js";
|
|
35
|
-
import "./index.js";
|
|
36
35
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
37
36
|
list: [],
|
|
38
37
|
location: "bottom",
|
package/dist/esm/Popup.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { P as Popup } from "./popup2.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
import "react-transition-group";
|
|
5
|
-
import "classnames";
|
|
6
|
-
import "@nutui/icons-react";
|
|
7
|
-
import "./overlay2.js";
|
|
8
|
-
import "./typings.js";
|
|
9
|
-
import "./use-touch.js";
|
|
10
|
-
import "./get-scroll-parent.js";
|
|
11
|
-
import "./can-use-dom.js";
|
|
12
|
-
import "./supports-passive.js";
|
|
13
|
-
import "./Overlay.js";
|
|
14
2
|
export {
|
|
15
3
|
Popup as default
|
|
16
4
|
};
|
|
@@ -31,7 +31,6 @@ import { useConfig } from "./ConfigProvider.js";
|
|
|
31
31
|
import { g as getScrollParent } from "./get-scroll-parent.js";
|
|
32
32
|
import { p as passiveSupported } from "./supports-passive.js";
|
|
33
33
|
import { C as ComponentDefaults } from "./typings.js";
|
|
34
|
-
import "./can-use-dom.js";
|
|
35
34
|
function bound(position, min, max) {
|
|
36
35
|
var ret = position;
|
|
37
36
|
if (min !== void 0) {
|
package/dist/esm/Radio.js
CHANGED
package/dist/esm/RadioGroup.js
CHANGED
|
@@ -27,9 +27,6 @@ import React__default, { useCallback } from "react";
|
|
|
27
27
|
import classNames from "classnames";
|
|
28
28
|
import { R as Radio, a as RadioContext } from "./radio2.js";
|
|
29
29
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
30
|
-
import "@nutui/icons-react";
|
|
31
|
-
import "./RadioGroup.js";
|
|
32
|
-
import "./typings.js";
|
|
33
30
|
var defaultProps = {
|
|
34
31
|
labelPosition: "right",
|
|
35
32
|
onChange: function onChange(value) {
|
package/dist/esm/SafeArea.js
CHANGED
package/dist/esm/Sticky.js
CHANGED
|
@@ -28,7 +28,6 @@ import classNames from "classnames";
|
|
|
28
28
|
import { g as getScrollParent } from "./get-scroll-parent.js";
|
|
29
29
|
import { g as getRect } from "./use-client-rect.js";
|
|
30
30
|
import { C as ComponentDefaults } from "./typings.js";
|
|
31
|
-
import "./can-use-dom.js";
|
|
32
31
|
function useWatch(dep, callback) {
|
|
33
32
|
var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
34
33
|
immediate: false
|
package/dist/esm/Tabbar.js
CHANGED
|
@@ -26,7 +26,6 @@ import classNames from "classnames";
|
|
|
26
26
|
import { C as ComponentDefaults } from "./typings.js";
|
|
27
27
|
import { u as usePropsValue } from "./use-props-value.js";
|
|
28
28
|
import { a as TabbarContext, T as TabbarItem } from "./tabbaritem2.js";
|
|
29
|
-
import "./badge2.js";
|
|
30
29
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
31
30
|
defaultValue: 0,
|
|
32
31
|
fixed: false,
|
package/dist/esm/TabbarItem.js
CHANGED
package/dist/esm/Tabs.js
CHANGED
package/dist/esm/Toast.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function ownKeys(e, r) {
|
|
9
9
|
var t = Object.keys(e);
|
|
@@ -26,33 +26,18 @@ function _objectSpread(e) {
|
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
return function _createSuperInternal() {
|
|
32
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
33
|
-
if (hasNativeReflectConstruct) {
|
|
34
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
35
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
36
|
-
} else {
|
|
37
|
-
result = Super.apply(this, arguments);
|
|
38
|
-
}
|
|
39
|
-
return _possibleConstructorReturn(this, result);
|
|
40
|
-
};
|
|
29
|
+
function _callSuper(t, o, e) {
|
|
30
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
41
31
|
}
|
|
42
32
|
function _isNativeReflectConstruct() {
|
|
43
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
44
|
-
return false;
|
|
45
|
-
if (Reflect.construct.sham)
|
|
46
|
-
return false;
|
|
47
|
-
if (typeof Proxy === "function")
|
|
48
|
-
return true;
|
|
49
33
|
try {
|
|
50
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
34
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
51
35
|
}));
|
|
52
|
-
|
|
53
|
-
} catch (e) {
|
|
54
|
-
return false;
|
|
36
|
+
} catch (t2) {
|
|
55
37
|
}
|
|
38
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
39
|
+
return !!t;
|
|
40
|
+
})();
|
|
56
41
|
}
|
|
57
42
|
import * as React from "react";
|
|
58
43
|
import classNames from "classnames";
|
|
@@ -60,20 +45,13 @@ import { Tips, Failure, Loading, Check } from "@nutui/icons-react";
|
|
|
60
45
|
import { r as render, u as unmount } from "./render.js";
|
|
61
46
|
import { O as Overlay } from "./overlay2.js";
|
|
62
47
|
import { C as ComponentDefaults } from "./typings.js";
|
|
63
|
-
import "react-dom";
|
|
64
|
-
import "react-transition-group";
|
|
65
|
-
import "./use-touch.js";
|
|
66
|
-
import "./get-scroll-parent.js";
|
|
67
|
-
import "./can-use-dom.js";
|
|
68
|
-
import "./supports-passive.js";
|
|
69
48
|
var classPrefix = "nut-toast";
|
|
70
49
|
var Notification = /* @__PURE__ */ function(_React$PureComponent) {
|
|
71
50
|
_inherits(Notification2, _React$PureComponent);
|
|
72
|
-
var _super = _createSuper(Notification2);
|
|
73
51
|
function Notification2(props) {
|
|
74
52
|
var _this;
|
|
75
53
|
_classCallCheck(this, Notification2);
|
|
76
|
-
_this =
|
|
54
|
+
_this = _callSuper(this, Notification2, [props]);
|
|
77
55
|
_defineProperty(_assertThisInitialized(_this), "closeTimer", void 0);
|
|
78
56
|
_this.close = _this.close.bind(_assertThisInitialized(_this));
|
|
79
57
|
_this.startCloseTimer = _this.startCloseTimer.bind(_assertThisInitialized(_this));
|
package/dist/esm/cascader2.js
CHANGED
|
@@ -27,21 +27,21 @@ function _objectSpread(e) {
|
|
|
27
27
|
}
|
|
28
28
|
return e;
|
|
29
29
|
}
|
|
30
|
-
function _toPropertyKey(
|
|
31
|
-
var
|
|
32
|
-
return _typeof(
|
|
30
|
+
function _toPropertyKey(t) {
|
|
31
|
+
var i = _toPrimitive(t, "string");
|
|
32
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
33
33
|
}
|
|
34
|
-
function _toPrimitive(
|
|
35
|
-
if (
|
|
36
|
-
return
|
|
37
|
-
var
|
|
38
|
-
if (
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
return
|
|
34
|
+
function _toPrimitive(t, r) {
|
|
35
|
+
if ("object" != _typeof(t) || !t)
|
|
36
|
+
return t;
|
|
37
|
+
var e = t[Symbol.toPrimitive];
|
|
38
|
+
if (void 0 !== e) {
|
|
39
|
+
var i = e.call(t, r || "default");
|
|
40
|
+
if ("object" != _typeof(i))
|
|
41
|
+
return i;
|
|
42
42
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
43
|
}
|
|
44
|
-
return (
|
|
44
|
+
return ("string" === r ? String : Number)(t);
|
|
45
45
|
}
|
|
46
46
|
import React__default, { useState, useImperativeHandle, useEffect, isValidElement } from "react";
|
|
47
47
|
import classNames from "classnames";
|
|
@@ -186,7 +186,6 @@ var Tree = /* @__PURE__ */ function() {
|
|
|
186
186
|
}]);
|
|
187
187
|
return Tree2;
|
|
188
188
|
}();
|
|
189
|
-
var Tree$1 = Tree;
|
|
190
189
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
191
190
|
activeColor: "",
|
|
192
191
|
activeIcon: "checklist",
|
|
@@ -246,7 +245,7 @@ var InternalCascader = function InternalCascader2(props, ref) {
|
|
|
246
245
|
selectedNode: [],
|
|
247
246
|
paneKey: ""
|
|
248
247
|
}],
|
|
249
|
-
tree: new Tree
|
|
248
|
+
tree: new Tree([], {}),
|
|
250
249
|
tabsCursor: 0,
|
|
251
250
|
initLoading: false,
|
|
252
251
|
currentProcessNode: [],
|
|
@@ -275,7 +274,7 @@ var InternalCascader = function InternalCascader2(props, ref) {
|
|
|
275
274
|
} else {
|
|
276
275
|
state.optionsData = options;
|
|
277
276
|
}
|
|
278
|
-
state.tree = new Tree
|
|
277
|
+
state.tree = new Tree(state.optionsData, {
|
|
279
278
|
value: state.configs.optionKey.valueKey,
|
|
280
279
|
text: state.configs.optionKey.textKey,
|
|
281
280
|
children: state.configs.optionKey.childrenKey
|