@nutui/nutui-react-taro 2.5.2 → 2.6.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 +29 -5
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/AvatarCropper.js +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Cell.js +1 -1
- package/dist/esm/CellGroup.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +2 -2
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.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/PullToRefresh.js +1 -1
- package/dist/esm/Range.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Swipe.js +1 -1
- package/dist/esm/Swiper/style/index.js +0 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +14 -8
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/{actionsheet.taro-C5BqWoML.js → actionsheet.taro-Dpjoa3xo.js} +1 -1
- package/dist/esm/{address.taro-CQmN9x1W.js → address.taro-C7tIIp3x.js} +2 -2
- package/dist/esm/{audio.taro-BEskw47C.js → audio.taro-2hRKQ2Lk.js} +1 -1
- package/dist/esm/{avatarcropper.taro-CsVKBnvS.js → avatarcropper.taro-Dd4pAR3N.js} +1 -1
- package/dist/esm/{calendar.taro-DbHJEx4G.js → calendar.taro-DEsLc-lS.js} +1 -1
- package/dist/esm/{cascader.taro-7Xhq98L4.js → cascader.taro-CFcAyFL-.js} +1 -1
- package/dist/esm/{cell.taro-CCnLF6RC.js → cell.taro-CmI4m0SC.js} +1 -1
- package/dist/esm/{cellgroup.taro-Dz69kT6e.js → cellgroup.taro-CYsSk-Bt.js} +1 -1
- package/dist/esm/{datepicker.taro-FiLalMAA.js → datepicker.taro-Bgq3ZNDe.js} +1 -1
- package/dist/esm/{dialog.taro-B8Usf0kl.js → dialog.taro-x_jRYew5.js} +1 -1
- package/dist/esm/{fixednav.taro-WTBxWxOo.js → fixednav.taro-CJUDQcX1.js} +1 -1
- package/dist/esm/{formitem.taro-Brz5dj_8.js → formitem.taro-DDNlpN_O.js} +1 -1
- package/dist/esm/{imagepreview.taro-Bb1TkBCV.js → imagepreview.taro-BMlwAhT0.js} +1 -1
- package/dist/esm/{input.taro-Dh6zXTLQ.js → input.taro-CAZ-rRMH.js} +2 -1
- package/dist/esm/{menu.taro-BAiJPGR7.js → menu.taro-J7oZoaGM.js} +1 -1
- package/dist/esm/{menuitem.taro-oLv6ZYC5.js → menuitem.taro-CaI5vTha.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-B9rMgy7D.js → numberkeyboard.taro-DjxjkImT.js} +1 -1
- package/dist/esm/nutui-react.es.js +29 -29
- package/dist/esm/{overlay.taro-BaBu-3-F.js → overlay.taro--1Kf1D7C.js} +1 -1
- package/dist/esm/{picker.taro-Cmng9GW9.js → picker.taro-DR2HAkv6.js} +3 -3
- package/dist/esm/{popover.taro-BG0msyw5.js → popover.taro-MnR5htLt.js} +1 -1
- package/dist/esm/{popup.taro-Iy_WQZ-m.js → popup.taro-B7_iPgl4.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-DfVmOGuo.js → pulltorefresh.taro-Ck1i2xRr.js} +1 -1
- package/dist/esm/{range.taro-GsWDprz5.js → range.taro-CsC41L60.js} +1 -1
- package/dist/esm/{shortpassword.taro-BXsxku33.js → shortpassword.taro-GkcE-e__.js} +1 -1
- package/dist/esm/{sidenavbar.taro-eK5vaZPR.js → sidenavbar.taro-5d-6iiNq.js} +1 -1
- package/dist/esm/{swipe.taro-aEnunftO.js → swipe.taro-CavqgBEb.js} +1 -1
- package/dist/esm/{timeselect.taro-BXq4APSJ.js → timeselect.taro-DkdpBJlT.js} +1 -1
- package/dist/esm/{toast.taro-BVXqvjNJ.js → toast.taro-B0YEmeDn.js} +1 -1
- package/dist/esm/{tour.taro-BqlNfxdD.js → tour.taro-CdX6pugO.js} +1 -1
- package/dist/esm/{use-touch-OfEaR5qi.js → use-touch-BeiLHDO9.js} +13 -3
- 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 +30 -13
- package/dist/nutui.react.umd.js +30 -13
- package/dist/packages/form/form.scss +0 -3
- package/dist/packages/swiper/swiper.scss +30 -16
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/input/input.taro.d.ts +1 -1
- package/dist/types/packages/swiper/effects/default.d.ts +11 -0
- package/dist/types/packages/swiper/effects/focus.d.ts +21 -0
- package/dist/types/packages/swiper/index.d.ts +4 -2
- package/dist/types/packages/swiper/swiper.d.ts +12 -15
- package/dist/types/packages/swiper/types.d.ts +6 -0
- package/dist/types/packages/swiperitem/swiperitem.d.ts +8 -4
- package/dist/types/utils/use-lock-fn.d.ts +2 -0
- package/dist/types/utils/use-ref-state.d.ts +3 -0
- package/dist/types/utils/use-touch.d.ts +3 -1
- package/package.json +1 -1
- package/dist/types/packages/picker/doc.en.d.ts +0 -145
|
@@ -3,7 +3,7 @@ import React__default, { useMemo, useState } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { B } from "./button.taro-CjH840d8.js";
|
|
2
|
-
import { C } from "./cell.taro-
|
|
3
|
-
import { C as C2 } from "./cellgroup.taro-
|
|
2
|
+
import { C } from "./cell.taro-CmI4m0SC.js";
|
|
3
|
+
import { C as C2 } from "./cellgroup.taro-CYsSk-Bt.js";
|
|
4
4
|
import { C as C3, g, s, u, a } from "./configprovider.taro-CyU_tvNJ.js";
|
|
5
5
|
import { I } from "./image.taro-BLz2WCva.js";
|
|
6
|
-
import { O } from "./overlay.taro
|
|
6
|
+
import { O } from "./overlay.taro--1Kf1D7C.js";
|
|
7
7
|
import { C as C4 } from "./col.taro-C8DUuJYh.js";
|
|
8
8
|
import { D } from "./divider.taro-DRcO_m9e.js";
|
|
9
9
|
import { G } from "./grid.taro-BA76RrgT.js";
|
|
@@ -15,57 +15,57 @@ import { S as S2 } from "./sticky.taro-DRBk3gkQ.js";
|
|
|
15
15
|
import { S as S3 } from "./safearea.taro-BMQHr7tu.js";
|
|
16
16
|
import { B as B2 } from "./backtop.taro-X1X5Uzz5.js";
|
|
17
17
|
import { E } from "./elevator.taro-uhrF7ChY.js";
|
|
18
|
-
import { F } from "./fixednav.taro-
|
|
18
|
+
import { F } from "./fixednav.taro-CJUDQcX1.js";
|
|
19
19
|
import { N } from "./navbar.taro-B8u3DOE4.js";
|
|
20
|
-
import { S as S4 } from "./sidenavbar.taro-
|
|
20
|
+
import { S as S4 } from "./sidenavbar.taro-5d-6iiNq.js";
|
|
21
21
|
import { S as S5 } from "./sidenavbaritem.taro-L7HbsCLn.js";
|
|
22
22
|
import { S as S6 } from "./subsidenavbar.taro-ByxYpgfP.js";
|
|
23
23
|
import { T } from "./tabbar.taro-CVp3ZaqP.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-C_90fvMh.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
26
|
import { T as T4 } from "./tabs.taro-A7pOK9IM.js";
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
27
|
+
import { A } from "./address.taro-C7tIIp3x.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-DEsLc-lS.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-B8tN2DYa.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-C7P3oqAL.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-CFcAyFL-.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-CUpF7Afr.js";
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-Bgq3ZNDe.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
|
-
import { F as F2 } from "./formitem.taro-
|
|
36
|
-
import { I as I2 } from "./input.taro-
|
|
35
|
+
import { F as F2 } from "./formitem.taro-DDNlpN_O.js";
|
|
36
|
+
import { I as I2 } from "./input.taro-CAZ-rRMH.js";
|
|
37
37
|
import { I as I3 } from "./inputnumber.taro-CQiAPZgS.js";
|
|
38
|
-
import { M } from "./menu.taro-
|
|
39
|
-
import { M as M2 } from "./menuitem.taro-
|
|
40
|
-
import { N as N2 } from "./numberkeyboard.taro-
|
|
41
|
-
import { P } from "./picker.taro-
|
|
38
|
+
import { M } from "./menu.taro-J7oZoaGM.js";
|
|
39
|
+
import { M as M2 } from "./menuitem.taro-CaI5vTha.js";
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-DjxjkImT.js";
|
|
41
|
+
import { P } from "./picker.taro-DR2HAkv6.js";
|
|
42
42
|
import { R as R2, a as a3 } from "./radio.taro-CjJgX9o2.js";
|
|
43
|
-
import { R as R3 } from "./range.taro-
|
|
43
|
+
import { R as R3 } from "./range.taro-CsC41L60.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-BABLqt4h.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-PfVx6o-6.js";
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-GkcE-e__.js";
|
|
47
47
|
import { S as S9 } from "./signature.taro-KPm_xs66.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-D1HgJoJz.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-BJIFCpKb.js";
|
|
50
50
|
import { U } from "./uploader.taro-DMmTl0Cp.js";
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-Dpjoa3xo.js";
|
|
52
52
|
import { B as B3 } from "./badge.taro-B0spW6jr.js";
|
|
53
|
-
import { B as B4 } from "./dialog.taro-
|
|
53
|
+
import { B as B4 } from "./dialog.taro-x_jRYew5.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-CcHIO07Y.js";
|
|
55
55
|
import { E as E2 } from "./empty.taro-C61QNHep.js";
|
|
56
56
|
import { I as I4 } from "./infiniteloading.taro-WiMpG-fU.js";
|
|
57
57
|
import { L as L2 } from "./loading.taro-CRF1z5wQ.js";
|
|
58
58
|
import { N as N3 } from "./noticebar.taro-BtudzdMD.js";
|
|
59
59
|
import { N as N4 } from "./notify.taro-jP7y9zMU.js";
|
|
60
|
-
import { P as P2 } from "./popover.taro-
|
|
61
|
-
import { P as P3 } from "./popup.taro-
|
|
62
|
-
import { P as P4 } from "./pulltorefresh.taro-
|
|
60
|
+
import { P as P2 } from "./popover.taro-MnR5htLt.js";
|
|
61
|
+
import { P as P3 } from "./popup.taro-B7_iPgl4.js";
|
|
62
|
+
import { P as P4 } from "./pulltorefresh.taro-Ck1i2xRr.js";
|
|
63
63
|
import { S as S11 } from "./skeleton.taro-BwIDIf2p.js";
|
|
64
|
-
import { S as S12 } from "./swipe.taro-
|
|
65
|
-
import { T as T6 } from "./toast.taro-
|
|
64
|
+
import { S as S12 } from "./swipe.taro-CavqgBEb.js";
|
|
65
|
+
import { T as T6 } from "./toast.taro-B0YEmeDn.js";
|
|
66
66
|
import { A as A3 } from "./animate.taro-Dg9jxZEu.js";
|
|
67
67
|
import { default as default3 } from "./AnimatingNumbers.js";
|
|
68
|
-
import { A as A4 } from "./audio.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-2hRKQ2Lk.js";
|
|
69
69
|
import { A as A5 } from "./avatar.taro-a6CX3kxV.js";
|
|
70
70
|
import { A as A6 } from "./avatargroup.taro-bpT5kPbf.js";
|
|
71
71
|
import { C as C10 } from "./circleprogress.taro-CKSrzt8Q.js";
|
|
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-BM0BsN30.js";
|
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-D_m4VEdG.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-wopKr1Il.js";
|
|
75
75
|
import { E as E3 } from "./ellipsis.taro-uVc3En9l.js";
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-BMlwAhT0.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-CpHZtD9p.js";
|
|
78
78
|
import { P as P5 } from "./pagination.taro-DAK6ddag.js";
|
|
79
79
|
import { P as P6 } from "./price.taro-UVRHPHRD.js";
|
|
@@ -84,16 +84,16 @@ import { default as default4 } from "./Swiper.js";
|
|
|
84
84
|
import { S as S15 } from "./swiperitem.taro-8JXI24f0.js";
|
|
85
85
|
import { T as T7 } from "./table.taro-ClLmfqz3.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-rKMK0jan.js";
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
87
|
+
import { T as T9 } from "./tour.taro-CdX6pugO.js";
|
|
88
88
|
import { V } from "./video.taro-DJQeroOH.js";
|
|
89
89
|
import { V as V2 } from "./virtuallist.taro-Cl08vfdg.js";
|
|
90
90
|
import { B as B5 } from "./barrage.taro-BNOcZsJ1.js";
|
|
91
91
|
import { C as C14 } from "./card.taro-FRirz5pW.js";
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-x6Zey1xi.js";
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-DkdpBJlT.js";
|
|
94
94
|
import { T as T12 } from "./trendarrow.taro-BHUetKSS.js";
|
|
95
95
|
import { W } from "./watermark.taro-BxM8VfXb.js";
|
|
96
|
-
import { A as A7 } from "./avatarcropper.taro-
|
|
96
|
+
import { A as A7 } from "./avatarcropper.taro-Dd4pAR3N.js";
|
|
97
97
|
export {
|
|
98
98
|
A2 as ActionSheet,
|
|
99
99
|
A as Address,
|
|
@@ -5,7 +5,7 @@ import classNames from "classnames";
|
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { getEnv } from "@tarojs/taro";
|
|
8
|
-
import { u as useTouch } from "./use-touch-
|
|
8
|
+
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
9
9
|
import { c as canUseDom, g as getScrollParent } from "./get-scroll-parent-DB1VRg11.js";
|
|
10
10
|
let passiveSupported = false;
|
|
11
11
|
if (canUseDom) {
|
|
@@ -3,10 +3,10 @@ import React__default, { useState, useRef, useEffect, useImperativeHandle } from
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro from "@tarojs/taro";
|
|
5
5
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
7
|
-
import { u as useTouch } from "./use-touch-
|
|
6
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
7
|
+
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
9
|
-
import { p as passiveSupported } from "./overlay.taro
|
|
9
|
+
import { p as passiveSupported } from "./overlay.taro--1Kf1D7C.js";
|
|
10
10
|
import { u as useRefs } from "./use-refs-BeEmziIR.js";
|
|
11
11
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
12
12
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest, a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
6
6
|
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { a as useRtl } from "./configprovider.taro-CyU_tvNJ.js";
|
|
@@ -4,7 +4,7 @@ import { CSSTransition } from "react-transition-group";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
6
|
import { View } from "@tarojs/components";
|
|
7
|
-
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro
|
|
7
|
+
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro--1Kf1D7C.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign(Object.assign({}, ComponentDefaults), { position: "center", transition: "", overlayStyle: {}, overlayClassName: "", closeable: false, closeIconPosition: "top-right", closeIcon: "close", destroyOnClose: false, portal: null, overlay: true, round: false, onOpen: () => {
|
|
10
10
|
}, onClose: () => {
|
|
@@ -5,7 +5,7 @@ import { View } from "@tarojs/components";
|
|
|
5
5
|
import { Loading, More } from "@nutui/icons-react-taro";
|
|
6
6
|
import Taro from "@tarojs/taro";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
|
-
import { u as useTouch } from "./use-touch-
|
|
8
|
+
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
function bound(position, min, max) {
|
|
11
11
|
let ret = position;
|
|
@@ -2,7 +2,7 @@ import { a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { u as useTouch } from "./use-touch-
|
|
5
|
+
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { Tips } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
5
5
|
import { O as OffsetContext } from "./context-4T-L2x0_.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useRef, useState, useImperativeHandle, useE
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
5
|
import { useReady, nextTick } from "@tarojs/taro";
|
|
6
|
-
import { u as useTouch } from "./use-touch-
|
|
6
|
+
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
7
7
|
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
function preventDefault(event, isStopPropagation) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-B7_iPgl4.js";
|
|
5
5
|
import { T as TimeDetail } from "./timedetail.taro-x6Zey1xi.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-react-taro";
|
|
4
|
-
import { O as Overlay } from "./overlay.taro
|
|
4
|
+
import { O as Overlay } from "./overlay.taro--1Kf1D7C.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-MnR5htLt.js";
|
|
6
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { useConfig } from "./ConfigProvider.js";
|
|
@@ -18,16 +18,20 @@ function useTouch() {
|
|
|
18
18
|
const offsetX = useRef(0);
|
|
19
19
|
const offsetY = useRef(0);
|
|
20
20
|
const direction = useRef("");
|
|
21
|
-
const
|
|
21
|
+
const last = useRef(false);
|
|
22
|
+
const velocity = useRef(0);
|
|
23
|
+
const touchTime = useRef(Date.now());
|
|
22
24
|
const isVertical = () => direction.current === "vertical";
|
|
23
25
|
const isHorizontal = () => direction.current === "horizontal";
|
|
24
26
|
const reset = () => {
|
|
25
|
-
touchTime.current =
|
|
27
|
+
touchTime.current = Date.now();
|
|
26
28
|
deltaX.current = 0;
|
|
27
29
|
deltaY.current = 0;
|
|
28
30
|
offsetX.current = 0;
|
|
29
31
|
offsetY.current = 0;
|
|
32
|
+
delta.current = 0;
|
|
30
33
|
direction.current = "";
|
|
34
|
+
last.current = false;
|
|
31
35
|
};
|
|
32
36
|
const start = (event) => {
|
|
33
37
|
reset();
|
|
@@ -46,7 +50,12 @@ function useTouch() {
|
|
|
46
50
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
47
51
|
}
|
|
48
52
|
};
|
|
53
|
+
const end = (event) => {
|
|
54
|
+
last.current = true;
|
|
55
|
+
velocity.current = Math.sqrt(Math.pow(deltaX.current, 2) + Math.pow(deltaY.current, 2)) / (Date.now() - touchTime.current);
|
|
56
|
+
};
|
|
49
57
|
return {
|
|
58
|
+
end,
|
|
50
59
|
move,
|
|
51
60
|
start,
|
|
52
61
|
reset,
|
|
@@ -60,7 +69,8 @@ function useTouch() {
|
|
|
60
69
|
offsetY,
|
|
61
70
|
direction,
|
|
62
71
|
isVertical,
|
|
63
|
-
isHorizontal
|
|
72
|
+
isHorizontal,
|
|
73
|
+
last
|
|
64
74
|
};
|
|
65
75
|
}
|
|
66
76
|
export {
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
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.6.1 Fri Apr 19 2024 14:47:10 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -305,7 +305,7 @@ const defaultProps$1v = {
|
|
|
305
305
|
};
|
|
306
306
|
const classPrefix$r = "nut-cell-group";
|
|
307
307
|
const CellGroup = (props) => {
|
|
308
|
-
const { children, className,
|
|
308
|
+
const { children, className, title, description, divider, ...rest } = {
|
|
309
309
|
...defaultProps$1v,
|
|
310
310
|
...props
|
|
311
311
|
};
|
|
@@ -3348,16 +3348,20 @@ function useTouch() {
|
|
|
3348
3348
|
const offsetX = useRef(0);
|
|
3349
3349
|
const offsetY = useRef(0);
|
|
3350
3350
|
const direction = useRef("");
|
|
3351
|
-
const
|
|
3351
|
+
const last = useRef(false);
|
|
3352
|
+
const velocity = useRef(0);
|
|
3353
|
+
const touchTime = useRef(Date.now());
|
|
3352
3354
|
const isVertical = () => direction.current === "vertical";
|
|
3353
3355
|
const isHorizontal = () => direction.current === "horizontal";
|
|
3354
3356
|
const reset = () => {
|
|
3355
|
-
touchTime.current =
|
|
3357
|
+
touchTime.current = Date.now();
|
|
3356
3358
|
deltaX.current = 0;
|
|
3357
3359
|
deltaY.current = 0;
|
|
3358
3360
|
offsetX.current = 0;
|
|
3359
3361
|
offsetY.current = 0;
|
|
3362
|
+
delta.current = 0;
|
|
3360
3363
|
direction.current = "";
|
|
3364
|
+
last.current = false;
|
|
3361
3365
|
};
|
|
3362
3366
|
const start = (event) => {
|
|
3363
3367
|
reset();
|
|
@@ -3376,7 +3380,12 @@ function useTouch() {
|
|
|
3376
3380
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
3377
3381
|
}
|
|
3378
3382
|
};
|
|
3383
|
+
const end = (event) => {
|
|
3384
|
+
last.current = true;
|
|
3385
|
+
velocity.current = Math.sqrt(deltaX.current ** 2 + deltaY.current ** 2) / (Date.now() - touchTime.current);
|
|
3386
|
+
};
|
|
3379
3387
|
return {
|
|
3388
|
+
end,
|
|
3380
3389
|
move,
|
|
3381
3390
|
start,
|
|
3382
3391
|
reset,
|
|
@@ -3390,7 +3399,8 @@ function useTouch() {
|
|
|
3390
3399
|
offsetY,
|
|
3391
3400
|
direction,
|
|
3392
3401
|
isVertical,
|
|
3393
|
-
isHorizontal
|
|
3402
|
+
isHorizontal,
|
|
3403
|
+
last
|
|
3394
3404
|
};
|
|
3395
3405
|
}
|
|
3396
3406
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
@@ -10394,7 +10404,8 @@ const Input = forwardRef(
|
|
|
10394
10404
|
const val = event.target.value;
|
|
10395
10405
|
onFocus && onFocus(val);
|
|
10396
10406
|
} else {
|
|
10397
|
-
|
|
10407
|
+
const height = (event.detail || {}).height;
|
|
10408
|
+
onFocus == null ? void 0 : onFocus(value, height);
|
|
10398
10409
|
}
|
|
10399
10410
|
setActive(true);
|
|
10400
10411
|
};
|
|
@@ -16808,14 +16819,20 @@ const Swiper = forwardRef((props, ref) => {
|
|
|
16808
16819
|
...props
|
|
16809
16820
|
};
|
|
16810
16821
|
const [current, setCurrent] = useState(defaultValue);
|
|
16811
|
-
const childrenCount =
|
|
16822
|
+
const childrenCount = useMemo$1(() => {
|
|
16823
|
+
let c2 = 0;
|
|
16824
|
+
React__default.Children.map(children, (child, index) => {
|
|
16825
|
+
c2 += 1;
|
|
16826
|
+
});
|
|
16827
|
+
return c2;
|
|
16828
|
+
}, [children]);
|
|
16812
16829
|
useEffect(() => {
|
|
16813
16830
|
setCurrent(defaultValue);
|
|
16814
16831
|
}, [defaultValue]);
|
|
16815
16832
|
const renderIndicator = () => {
|
|
16816
16833
|
if (React__default.isValidElement(indicator))
|
|
16817
16834
|
return indicator;
|
|
16818
|
-
if (indicator
|
|
16835
|
+
if (indicator) {
|
|
16819
16836
|
return /* @__PURE__ */ React__default.createElement(
|
|
16820
16837
|
"div",
|
|
16821
16838
|
{
|
|
@@ -16828,7 +16845,7 @@ const Swiper = forwardRef((props, ref) => {
|
|
|
16828
16845
|
Indicator,
|
|
16829
16846
|
{
|
|
16830
16847
|
current,
|
|
16831
|
-
total: childrenCount
|
|
16848
|
+
total: childrenCount,
|
|
16832
16849
|
direction
|
|
16833
16850
|
}
|
|
16834
16851
|
)
|
|
@@ -16845,16 +16862,16 @@ const Swiper = forwardRef((props, ref) => {
|
|
|
16845
16862
|
},
|
|
16846
16863
|
next: () => {
|
|
16847
16864
|
if (loop) {
|
|
16848
|
-
setCurrent((current + 1) % childrenCount
|
|
16865
|
+
setCurrent((current + 1) % childrenCount);
|
|
16849
16866
|
} else {
|
|
16850
|
-
setCurrent(current + 1 >= childrenCount
|
|
16867
|
+
setCurrent(current + 1 >= childrenCount ? current : current + 1);
|
|
16851
16868
|
}
|
|
16852
16869
|
},
|
|
16853
16870
|
prev: () => {
|
|
16854
16871
|
if (loop) {
|
|
16855
16872
|
let next = current - 1;
|
|
16856
|
-
next = next < 0 ? childrenCount
|
|
16857
|
-
setCurrent(next % childrenCount
|
|
16873
|
+
next = next < 0 ? childrenCount + next : next;
|
|
16874
|
+
setCurrent(next % childrenCount);
|
|
16858
16875
|
} else {
|
|
16859
16876
|
setCurrent(current - 1 <= 0 ? 0 : current - 1);
|
|
16860
16877
|
}
|
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.6.1 Fri Apr 19 2024 14:47:10 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
};
|
|
322
322
|
const classPrefix$r = "nut-cell-group";
|
|
323
323
|
const CellGroup = (props) => {
|
|
324
|
-
const { children, className,
|
|
324
|
+
const { children, className, title, description, divider, ...rest } = {
|
|
325
325
|
...defaultProps$1v,
|
|
326
326
|
...props
|
|
327
327
|
};
|
|
@@ -3364,16 +3364,20 @@
|
|
|
3364
3364
|
const offsetX = React.useRef(0);
|
|
3365
3365
|
const offsetY = React.useRef(0);
|
|
3366
3366
|
const direction = React.useRef("");
|
|
3367
|
-
const
|
|
3367
|
+
const last = React.useRef(false);
|
|
3368
|
+
const velocity = React.useRef(0);
|
|
3369
|
+
const touchTime = React.useRef(Date.now());
|
|
3368
3370
|
const isVertical = () => direction.current === "vertical";
|
|
3369
3371
|
const isHorizontal = () => direction.current === "horizontal";
|
|
3370
3372
|
const reset = () => {
|
|
3371
|
-
touchTime.current =
|
|
3373
|
+
touchTime.current = Date.now();
|
|
3372
3374
|
deltaX.current = 0;
|
|
3373
3375
|
deltaY.current = 0;
|
|
3374
3376
|
offsetX.current = 0;
|
|
3375
3377
|
offsetY.current = 0;
|
|
3378
|
+
delta.current = 0;
|
|
3376
3379
|
direction.current = "";
|
|
3380
|
+
last.current = false;
|
|
3377
3381
|
};
|
|
3378
3382
|
const start = (event) => {
|
|
3379
3383
|
reset();
|
|
@@ -3392,7 +3396,12 @@
|
|
|
3392
3396
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
3393
3397
|
}
|
|
3394
3398
|
};
|
|
3399
|
+
const end = (event) => {
|
|
3400
|
+
last.current = true;
|
|
3401
|
+
velocity.current = Math.sqrt(deltaX.current ** 2 + deltaY.current ** 2) / (Date.now() - touchTime.current);
|
|
3402
|
+
};
|
|
3395
3403
|
return {
|
|
3404
|
+
end,
|
|
3396
3405
|
move,
|
|
3397
3406
|
start,
|
|
3398
3407
|
reset,
|
|
@@ -3406,7 +3415,8 @@
|
|
|
3406
3415
|
offsetY,
|
|
3407
3416
|
direction,
|
|
3408
3417
|
isVertical,
|
|
3409
|
-
isHorizontal
|
|
3418
|
+
isHorizontal,
|
|
3419
|
+
last
|
|
3410
3420
|
};
|
|
3411
3421
|
}
|
|
3412
3422
|
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
@@ -10410,7 +10420,8 @@
|
|
|
10410
10420
|
const val = event.target.value;
|
|
10411
10421
|
onFocus && onFocus(val);
|
|
10412
10422
|
} else {
|
|
10413
|
-
|
|
10423
|
+
const height = (event.detail || {}).height;
|
|
10424
|
+
onFocus == null ? void 0 : onFocus(value, height);
|
|
10414
10425
|
}
|
|
10415
10426
|
setActive(true);
|
|
10416
10427
|
};
|
|
@@ -16824,14 +16835,20 @@
|
|
|
16824
16835
|
...props
|
|
16825
16836
|
};
|
|
16826
16837
|
const [current, setCurrent] = React.useState(defaultValue);
|
|
16827
|
-
const childrenCount = React.
|
|
16838
|
+
const childrenCount = React.useMemo(() => {
|
|
16839
|
+
let c2 = 0;
|
|
16840
|
+
React.Children.map(children, (child, index) => {
|
|
16841
|
+
c2 += 1;
|
|
16842
|
+
});
|
|
16843
|
+
return c2;
|
|
16844
|
+
}, [children]);
|
|
16828
16845
|
React.useEffect(() => {
|
|
16829
16846
|
setCurrent(defaultValue);
|
|
16830
16847
|
}, [defaultValue]);
|
|
16831
16848
|
const renderIndicator = () => {
|
|
16832
16849
|
if (React.isValidElement(indicator))
|
|
16833
16850
|
return indicator;
|
|
16834
|
-
if (indicator
|
|
16851
|
+
if (indicator) {
|
|
16835
16852
|
return /* @__PURE__ */ React.createElement(
|
|
16836
16853
|
"div",
|
|
16837
16854
|
{
|
|
@@ -16844,7 +16861,7 @@
|
|
|
16844
16861
|
Indicator,
|
|
16845
16862
|
{
|
|
16846
16863
|
current,
|
|
16847
|
-
total: childrenCount
|
|
16864
|
+
total: childrenCount,
|
|
16848
16865
|
direction
|
|
16849
16866
|
}
|
|
16850
16867
|
)
|
|
@@ -16861,16 +16878,16 @@
|
|
|
16861
16878
|
},
|
|
16862
16879
|
next: () => {
|
|
16863
16880
|
if (loop) {
|
|
16864
|
-
setCurrent((current + 1) % childrenCount
|
|
16881
|
+
setCurrent((current + 1) % childrenCount);
|
|
16865
16882
|
} else {
|
|
16866
|
-
setCurrent(current + 1 >= childrenCount
|
|
16883
|
+
setCurrent(current + 1 >= childrenCount ? current : current + 1);
|
|
16867
16884
|
}
|
|
16868
16885
|
},
|
|
16869
16886
|
prev: () => {
|
|
16870
16887
|
if (loop) {
|
|
16871
16888
|
let next = current - 1;
|
|
16872
|
-
next = next < 0 ? childrenCount
|
|
16873
|
-
setCurrent(next % childrenCount
|
|
16889
|
+
next = next < 0 ? childrenCount + next : next;
|
|
16890
|
+
setCurrent(next % childrenCount);
|
|
16874
16891
|
} else {
|
|
16875
16892
|
setCurrent(current - 1 <= 0 ? 0 : current - 1);
|
|
16876
16893
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
.form-layout-right .nut-form-item-label {
|
|
3
3
|
text-align: right;
|
|
4
|
-
font-size: 14px;
|
|
5
4
|
padding-right: 24px;
|
|
6
5
|
white-space: nowrap;
|
|
7
6
|
}
|
|
@@ -9,7 +8,6 @@
|
|
|
9
8
|
.form-layout-left .nut-form-item-label {
|
|
10
9
|
position: relative;
|
|
11
10
|
text-align: left;
|
|
12
|
-
font-size: 14px;
|
|
13
11
|
padding-left: 12px;
|
|
14
12
|
white-space: nowrap;
|
|
15
13
|
|
|
@@ -30,7 +28,6 @@
|
|
|
30
28
|
.form-layout-top .nut-form-item-label {
|
|
31
29
|
padding-bottom: 4px;
|
|
32
30
|
display: block;
|
|
33
|
-
font-size: 14px;
|
|
34
31
|
padding-right: 24px;
|
|
35
32
|
}
|
|
36
33
|
|