@nutui/nutui-react-taro 2.6.23 → 2.7.1
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/CHANGELOG.md +33 -7
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/{actionsheet.taro-CgfXnK1M.js → actionsheet.taro-kMhbV73n.js} +1 -1
- package/dist/esm/{address.taro-Ai6DQF3D.js → address.taro-C8CsajMW.js} +2 -2
- package/dist/esm/{calendar.taro-MkErd99P.js → calendar.taro-CM4yWFlF.js} +1 -1
- package/dist/esm/{cascader.taro-CMOCzo0m.js → cascader.taro-DRE3asjI.js} +2 -2
- package/dist/esm/{datepicker.taro-DibmSueg.js → datepicker.taro-DU4OSraL.js} +1 -1
- package/dist/esm/{imagepreview.taro-C0yMREHT.js → imagepreview.taro-BE4mZT-S.js} +1 -1
- package/dist/esm/{inputnumber.taro-DPRZtV42.js → inputnumber.taro-CZourWz-.js} +4 -4
- package/dist/esm/{numberkeyboard.taro-CIlStObb.js → numberkeyboard.taro-BvVO_MyJ.js} +1 -1
- package/dist/esm/nutui-react.es.js +17 -17
- package/dist/esm/{picker.taro-mCnxpFCY.js → picker.taro-CYNZBTE4.js} +1 -1
- package/dist/esm/{popover.taro-BHcidbZG.js → popover.taro-o5vHvHsm.js} +1 -1
- package/dist/esm/{popup.taro-DV32k5dP.js → popup.taro-JynjcLCn.js} +3 -3
- package/dist/esm/{shortpassword.taro-ByEtEDDl.js → shortpassword.taro-CUnXqjab.js} +1 -1
- package/dist/esm/{sidenavbar.taro-DNwoQw9u.js → sidenavbar.taro-C-AoUXLA.js} +1 -1
- package/dist/esm/{tabs.taro-D8bDfm4x.js → tabs.taro-CY1VxgF-.js} +1 -4
- package/dist/esm/{textarea.taro-EJQxRHZR.js → textarea.taro-PsaohYay.js} +2 -2
- package/dist/esm/{timeselect.taro-DE_a87DT.js → timeselect.taro-FIl91wiO.js} +1 -1
- package/dist/esm/{tour.taro-BvBZa8nq.js → tour.taro-DfOfyyte.js} +1 -1
- 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 +10 -11
- package/dist/nutui.react.umd.js +10 -11
- package/dist/packages/avatarcropper/avatarcropper.scss +1 -1
- package/dist/packages/divider/divider.scss +1 -2
- package/dist/packages/toast/toast.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -0
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -0
- package/package.json +2 -1
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.
|
|
2
|
+
* @nutui/nutui-react-taro v2.7.1 Fri Nov 22 2024 15:43:06 GMT+0800 (Central Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4779,7 +4779,7 @@ const Popup = (props) => {
|
|
|
4779
4779
|
);
|
|
4780
4780
|
};
|
|
4781
4781
|
const renderNode = () => {
|
|
4782
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
4782
|
+
return /* @__PURE__ */ React__default.createElement(View, { catchMove: true }, overlay ? /* @__PURE__ */ React__default.createElement(
|
|
4783
4783
|
Overlay,
|
|
4784
4784
|
{
|
|
4785
4785
|
style: overlayStyles,
|
|
@@ -4790,7 +4790,7 @@ const Popup = (props) => {
|
|
|
4790
4790
|
duration,
|
|
4791
4791
|
onClick: onHandleClickOverlay
|
|
4792
4792
|
}
|
|
4793
|
-
) : null,
|
|
4793
|
+
) : null, renderPop());
|
|
4794
4794
|
};
|
|
4795
4795
|
useEffect(() => {
|
|
4796
4796
|
visible && open2();
|
|
@@ -5358,9 +5358,7 @@ const Tabs = (props) => {
|
|
|
5358
5358
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
5359
5359
|
} else {
|
|
5360
5360
|
const left2 = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
5361
|
-
to =
|
|
5362
|
-
if (to < 0) return;
|
|
5363
|
-
to = rtl ? -to : to;
|
|
5361
|
+
to = rtl ? -left2 : left2;
|
|
5364
5362
|
}
|
|
5365
5363
|
nextTick(() => {
|
|
5366
5364
|
scrollWithAnimation.current = true;
|
|
@@ -10507,7 +10505,8 @@ const defaultProps$V = {
|
|
|
10507
10505
|
type: "digit",
|
|
10508
10506
|
step: 1,
|
|
10509
10507
|
digits: 0,
|
|
10510
|
-
async: false
|
|
10508
|
+
async: false,
|
|
10509
|
+
select: true
|
|
10511
10510
|
};
|
|
10512
10511
|
const classPrefix$h = `nut-inputnumber`;
|
|
10513
10512
|
const InputNumber = (props) => {
|
|
@@ -10524,6 +10523,7 @@ const InputNumber = (props) => {
|
|
|
10524
10523
|
digits,
|
|
10525
10524
|
step,
|
|
10526
10525
|
async,
|
|
10526
|
+
select,
|
|
10527
10527
|
className,
|
|
10528
10528
|
style,
|
|
10529
10529
|
formatter,
|
|
@@ -10545,10 +10545,10 @@ const InputNumber = (props) => {
|
|
|
10545
10545
|
const inputRef = useRef(null);
|
|
10546
10546
|
useEffect(() => {
|
|
10547
10547
|
var _a, _b;
|
|
10548
|
-
if (focused) {
|
|
10548
|
+
if (select && focused) {
|
|
10549
10549
|
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
10550
10550
|
}
|
|
10551
|
-
}, [focused]);
|
|
10551
|
+
}, [select, focused]);
|
|
10552
10552
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10553
10553
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10554
10554
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
@@ -12416,7 +12416,6 @@ const defaultProps$J = {
|
|
|
12416
12416
|
defaultValue: "",
|
|
12417
12417
|
showCount: false,
|
|
12418
12418
|
maxLength: 140,
|
|
12419
|
-
placeholder: "",
|
|
12420
12419
|
readOnly: false,
|
|
12421
12420
|
disabled: false,
|
|
12422
12421
|
autoSize: false
|
|
@@ -12508,7 +12507,7 @@ const TextArea = (props) => {
|
|
|
12508
12507
|
onFocus: (e2) => handleFocus(e2),
|
|
12509
12508
|
autoHeight: autoSize,
|
|
12510
12509
|
maxlength: maxLength,
|
|
12511
|
-
placeholder: placeholder
|
|
12510
|
+
placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
|
|
12512
12511
|
...rest
|
|
12513
12512
|
}
|
|
12514
12513
|
),
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.
|
|
5
|
+
* @nutui/nutui-react-taro v2.7.1 Fri Nov 22 2024 15:43:06 GMT+0800 (Central Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -4795,7 +4795,7 @@
|
|
|
4795
4795
|
);
|
|
4796
4796
|
};
|
|
4797
4797
|
const renderNode = () => {
|
|
4798
|
-
return /* @__PURE__ */ React.createElement(
|
|
4798
|
+
return /* @__PURE__ */ React.createElement(components.View, { catchMove: true }, overlay ? /* @__PURE__ */ React.createElement(
|
|
4799
4799
|
Overlay,
|
|
4800
4800
|
{
|
|
4801
4801
|
style: overlayStyles,
|
|
@@ -4806,7 +4806,7 @@
|
|
|
4806
4806
|
duration,
|
|
4807
4807
|
onClick: onHandleClickOverlay
|
|
4808
4808
|
}
|
|
4809
|
-
) : null,
|
|
4809
|
+
) : null, renderPop());
|
|
4810
4810
|
};
|
|
4811
4811
|
React.useEffect(() => {
|
|
4812
4812
|
visible && open2();
|
|
@@ -5374,9 +5374,7 @@
|
|
|
5374
5374
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
5375
5375
|
} else {
|
|
5376
5376
|
const left2 = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
5377
|
-
to =
|
|
5378
|
-
if (to < 0) return;
|
|
5379
|
-
to = rtl ? -to : to;
|
|
5377
|
+
to = rtl ? -left2 : left2;
|
|
5380
5378
|
}
|
|
5381
5379
|
Taro.nextTick(() => {
|
|
5382
5380
|
scrollWithAnimation.current = true;
|
|
@@ -10523,7 +10521,8 @@
|
|
|
10523
10521
|
type: "digit",
|
|
10524
10522
|
step: 1,
|
|
10525
10523
|
digits: 0,
|
|
10526
|
-
async: false
|
|
10524
|
+
async: false,
|
|
10525
|
+
select: true
|
|
10527
10526
|
};
|
|
10528
10527
|
const classPrefix$h = `nut-inputnumber`;
|
|
10529
10528
|
const InputNumber = (props) => {
|
|
@@ -10540,6 +10539,7 @@
|
|
|
10540
10539
|
digits,
|
|
10541
10540
|
step,
|
|
10542
10541
|
async,
|
|
10542
|
+
select,
|
|
10543
10543
|
className,
|
|
10544
10544
|
style,
|
|
10545
10545
|
formatter,
|
|
@@ -10561,10 +10561,10 @@
|
|
|
10561
10561
|
const inputRef = React.useRef(null);
|
|
10562
10562
|
React.useEffect(() => {
|
|
10563
10563
|
var _a, _b;
|
|
10564
|
-
if (focused) {
|
|
10564
|
+
if (select && focused) {
|
|
10565
10565
|
(_b = (_a = inputRef.current) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
|
|
10566
10566
|
}
|
|
10567
|
-
}, [focused]);
|
|
10567
|
+
}, [select, focused]);
|
|
10568
10568
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10569
10569
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10570
10570
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
@@ -12432,7 +12432,6 @@
|
|
|
12432
12432
|
defaultValue: "",
|
|
12433
12433
|
showCount: false,
|
|
12434
12434
|
maxLength: 140,
|
|
12435
|
-
placeholder: "",
|
|
12436
12435
|
readOnly: false,
|
|
12437
12436
|
disabled: false,
|
|
12438
12437
|
autoSize: false
|
|
@@ -12524,7 +12523,7 @@
|
|
|
12524
12523
|
onFocus: (e2) => handleFocus(e2),
|
|
12525
12524
|
autoHeight: autoSize,
|
|
12526
12525
|
maxlength: maxLength,
|
|
12527
|
-
placeholder: placeholder
|
|
12526
|
+
placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
|
|
12528
12527
|
...rest
|
|
12529
12528
|
}
|
|
12530
12529
|
),
|
|
@@ -49,13 +49,12 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&-vertical {
|
|
52
|
-
position: relative;
|
|
53
|
-
top: $divider-vertical-top;
|
|
54
52
|
display: inline-block;
|
|
55
53
|
width: auto;
|
|
56
54
|
height: $divider-vertical-height;
|
|
57
55
|
border-left: 1px solid $divider-border-color;
|
|
58
56
|
margin: $divider-vertical-margin;
|
|
57
|
+
vertical-align: middle;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|