@nutui/nutui-react-taro 2.3.11 → 2.3.12
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 +18 -0
- package/dist/esm/ActionSheet.js +1 -13
- package/dist/esm/Address.js +1 -21
- package/dist/esm/Animate.js +1 -4
- package/dist/esm/AnimatingNumbers.js +8 -22
- package/dist/esm/Audio.js +1 -15
- package/dist/esm/Avatar.js +1 -10
- package/dist/esm/AvatarCropper.js +1 -10
- package/dist/esm/AvatarGroup.js +1 -4
- package/dist/esm/BackTop.js +1 -6
- package/dist/esm/Badge.js +1 -4
- package/dist/esm/Barrage.js +1 -7
- package/dist/esm/Button.js +1 -6
- package/dist/esm/Calendar.js +1 -20
- package/dist/esm/CalendarCard.js +1 -8
- package/dist/esm/CalendarItem.js +1 -12
- package/dist/esm/Card.js +1 -7
- package/dist/esm/Cascader.js +1 -18
- package/dist/esm/Cell.js +1 -5
- package/dist/esm/CellGroup.js +1 -4
- package/dist/esm/Checkbox.js +1 -7
- package/dist/esm/CheckboxGroup.js +1 -7
- package/dist/esm/CircleProgress.js +1 -6
- package/dist/esm/Col.js +1 -5
- package/dist/esm/Collapse.js +1 -8
- package/dist/esm/CollapseItem.js +1 -5
- package/dist/esm/ConfigProvider.js +4 -6
- package/dist/esm/CountDown.js +1 -7
- package/dist/esm/DatePicker.js +1 -21
- package/dist/esm/Dialog.js +1 -16
- package/dist/esm/Divider.js +1 -4
- package/dist/esm/Drag.js +1 -4
- package/dist/esm/Elevator.js +1 -6
- package/dist/esm/Ellipsis.js +1 -7
- package/dist/esm/Empty.js +1 -9
- package/dist/esm/FixedNav.js +1 -13
- package/dist/esm/Form.js +7 -18
- package/dist/esm/FormItem.js +1 -6
- package/dist/esm/Grid.js +1 -7
- package/dist/esm/GridItem.js +1 -6
- package/dist/esm/Image.js +1 -7
- package/dist/esm/ImagePreview.js +1 -20
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/InfiniteLoading.js +1 -8
- package/dist/esm/Input.js +1 -11
- package/dist/esm/InputNumber.js +1 -7
- package/dist/esm/Layout.js +1 -2
- package/dist/esm/Loading.js +1 -5
- package/dist/esm/Menu.js +1 -15
- package/dist/esm/MenuItem.js +1 -14
- package/dist/esm/NavBar.js +1 -7
- package/dist/esm/NoticeBar.js +1 -7
- package/dist/esm/Notify.js +1 -9
- package/dist/esm/NumberKeyboard.js +1 -15
- package/dist/esm/Overlay.js +1 -9
- package/dist/esm/Pagination.js +1 -8
- package/dist/esm/Picker.js +1 -19
- package/dist/esm/Popover.js +1 -14
- package/dist/esm/Popup.js +1 -12
- package/dist/esm/Price.js +1 -3
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/PullToRefresh.js +1 -10
- package/dist/esm/Radio.js +1 -7
- package/dist/esm/RadioGroup.js +1 -7
- package/dist/esm/Range.js +1 -10
- package/dist/esm/Rate.js +1 -11
- package/dist/esm/Row.js +1 -5
- package/dist/esm/SafeArea.js +1 -3
- package/dist/esm/SearchBar.js +1 -7
- package/dist/esm/ShortPassword.js +1 -17
- package/dist/esm/SideNavBar.js +1 -14
- package/dist/esm/SideNavBarItem.js +1 -2
- package/dist/esm/Signature.js +1 -4
- package/dist/esm/Skeleton.js +1 -11
- package/dist/esm/Space.js +1 -3
- package/dist/esm/Step.js +1 -6
- package/dist/esm/Steps.js +1 -5
- package/dist/esm/Sticky.js +1 -7
- package/dist/esm/SubSideNavBar.js +1 -3
- package/dist/esm/Swipe.js +1 -8
- package/dist/esm/Swiper.js +9 -11
- package/dist/esm/SwiperItem.js +1 -2
- package/dist/esm/Switch.js +1 -5
- package/dist/esm/TabPane.js +1 -3
- package/dist/esm/Tabbar.js +1 -8
- package/dist/esm/TabbarItem.js +1 -5
- package/dist/esm/Table.js +1 -9
- package/dist/esm/Tabs.js +1 -11
- package/dist/esm/Tag.js +1 -5
- package/dist/esm/TextArea.js +1 -10
- package/dist/esm/TimeDetail.js +1 -4
- package/dist/esm/TimeSelect.js +1 -16
- package/dist/esm/Toast.js +1 -15
- package/dist/esm/Tour.js +1 -16
- package/dist/esm/TrendArrow.js +1 -4
- package/dist/esm/Uploader.js +1 -14
- package/dist/esm/Video.js +1 -4
- package/dist/esm/VirtualList.js +1 -6
- package/dist/esm/WaterMark.js +1 -7
- package/dist/esm/{actionsheet.taro-kKhb0Vwt.js → actionsheet.taro-C5BqWoML.js} +9 -17
- package/dist/esm/{address.taro-zQuxQEce.js → address.taro-DjlXNWie.js} +19 -44
- package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
- package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
- package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
- package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
- package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
- package/dist/esm/{backtop.taro-Cfld7ina.js → backtop.taro-B-zl6AEC.js} +4 -15
- package/dist/esm/{badge.taro-993L861f.js → badge.taro-CyDqBb9Z.js} +4 -15
- package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
- package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
- package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
- package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
- package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
- package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
- package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-CpofskUL.js} +47 -83
- package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
- package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
- package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-D9F_HM7f.js} +19 -29
- package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
- package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
- package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
- package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
- package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
- package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-Dfa9kpmZ.js} +8 -18
- package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DshCn7Rn.js} +13 -25
- package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-xsQhsC1V.js} +19 -19
- package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
- package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
- package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
- package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
- package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
- package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
- package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
- package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
- package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
- package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
- package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
- package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
- package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
- package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
- package/dist/esm/{input.taro-xCoGdppk.js → input.taro-BVC8gEuk.js} +14 -31
- package/dist/esm/{inputnumber.taro-WPpS0Xl9.js → inputnumber.taro-F3jNGr_V.js} +16 -27
- package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
- package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
- package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
- package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
- package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
- package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CMdfOp2g.js} +16 -32
- package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
- package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
- package/dist/esm/nutui-react.es.js +93 -118
- package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
- package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
- package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
- package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-CcKwnX27.js} +23 -41
- package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
- package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
- package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
- package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
- package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
- package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
- package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
- package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
- package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
- package/dist/esm/{shortpassword.taro-JBWXzk6I.js → shortpassword.taro-BXsxku33.js} +9 -19
- package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
- package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
- package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
- package/dist/esm/{skeleton.taro--AtiA7MK.js → skeleton.taro-BwIDIf2p.js} +6 -17
- package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
- package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
- package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
- package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
- package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
- package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
- package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
- package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
- package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-8_SmJofa.js} +7 -18
- package/dist/esm/tabbaritem.taro-Cb-yfOln.js +58 -0
- package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-0BcEBB0F.js} +7 -18
- package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
- package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-HgAoKBAc.js} +14 -30
- package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
- package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
- package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
- package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
- package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BIR_7Wgb.js} +8 -26
- package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-CMagdKcp.js} +7 -24
- package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
- package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
- package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
- package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-CuaIVvya.js} +47 -99
- package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
- package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
- package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
- package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-C5vZAyza.js} +7 -17
- package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
- 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 +305 -332
- package/dist/nutui.react.umd.js +306 -333
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +4 -0
- 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/button/demos/h5/demo1.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
- 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/configprovider/configprovider.d.ts +1 -0
- package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
- package/dist/types/packages/configprovider/index.d.ts +2 -2
- package/dist/types/packages/configprovider/index.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/empty/empty.taro.d.ts +15 -3
- 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/inputnumber/inputnumber.taro.d.ts +6 -0
- 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.build.d.ts +98 -98
- 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/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 +5 -1
- package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
- package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
- package/dist/esm/formitem.taro-viaUkMmm.js +0 -1435
- package/dist/esm/index-oitVOJp9.js +0 -661
- package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
- package/dist/esm/steps.taro-PH0qWPla.js +0 -32
- package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
- /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
- /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
- /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
- /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
- /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
- /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
- /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
- /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
- /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
- /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
- /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
- /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
- /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
- /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
|
@@ -1,23 +1,16 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useMemo, useState } from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
4
5
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
-
import { C as ComponentDefaults } from "./typings-
|
|
8
|
-
const defaultProps = {
|
|
9
|
-
|
|
10
|
-
visible: false,
|
|
11
|
-
rightActions: "",
|
|
12
|
-
type: "default",
|
|
13
|
-
custom: [],
|
|
14
|
-
random: false,
|
|
15
|
-
onClose: () => {
|
|
16
|
-
}
|
|
17
|
-
};
|
|
6
|
+
import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
|
|
10
|
+
} });
|
|
18
11
|
const NumberKeyboard = (props) => {
|
|
19
12
|
const { locale } = useConfig();
|
|
20
|
-
const { title, rightActions, confirmText, visible, type, custom, random, style, className, onChange, onDelete, onClose, onConfirm,
|
|
13
|
+
const { title, rightActions, confirmText, visible, type, custom, random, style, className, onChange, onDelete, onClose, onConfirm } = props, rest = __rest(props, ["title", "rightActions", "confirmText", "visible", "type", "custom", "random", "style", "className", "onChange", "onDelete", "onClose", "onConfirm"]);
|
|
21
14
|
const classPrefix = "nut-numberkeyboard";
|
|
22
15
|
const getBasicKeys = () => {
|
|
23
16
|
const keys = new Array(9).fill(0).map((_, index) => {
|
|
@@ -98,7 +91,7 @@ const NumberKeyboard = (props) => {
|
|
|
98
91
|
};
|
|
99
92
|
return React__default.createElement(
|
|
100
93
|
Popup,
|
|
101
|
-
{ visible, position: "bottom", onOverlayClick: onClose, onCloseIconClick: onClose, zIndex: 9999, overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" },
|
|
94
|
+
Object.assign({ visible, position: "bottom", onOverlayClick: onClose, onCloseIconClick: onClose, zIndex: 9999, overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" } }, rest),
|
|
102
95
|
React__default.createElement(
|
|
103
96
|
"div",
|
|
104
97
|
{ className: classNames(classPrefix, className), style },
|
|
@@ -111,7 +104,7 @@ const NumberKeyboard = (props) => {
|
|
|
111
104
|
React__default.createElement(
|
|
112
105
|
"div",
|
|
113
106
|
{ className: `${classPrefix}-body` },
|
|
114
|
-
React__default.createElement("div", { className: `${classPrefix}-body-keys` }, keysList
|
|
107
|
+
React__default.createElement("div", { className: `${classPrefix}-body-keys` }, keysList === null || keysList === void 0 ? void 0 : keysList.map((item) => {
|
|
115
108
|
return React__default.createElement(NumberKeyboardKey, { key: item.id, item });
|
|
116
109
|
})),
|
|
117
110
|
type === "rightColumn" && React__default.createElement(
|
|
@@ -1,124 +1,99 @@
|
|
|
1
|
-
import { B } from "./button.taro-
|
|
2
|
-
import { C } from "./cell.taro-
|
|
3
|
-
import { C as C2 } from "./cellgroup.taro-
|
|
4
|
-
import { C as C3 } from "./configprovider.taro-
|
|
5
|
-
import { I } from "./image.taro-
|
|
6
|
-
import { O } from "./overlay.taro-
|
|
7
|
-
import { C as C4 } from "./col.taro-
|
|
8
|
-
import { D } from "./divider.taro-
|
|
9
|
-
import { G } from "./grid.taro-
|
|
10
|
-
import { G as G2 } from "./griditem.taro-
|
|
11
|
-
import { L } from "./layout.taro-
|
|
12
|
-
import { R } from "./row.taro-
|
|
13
|
-
import { S } from "./space.taro-
|
|
14
|
-
import { S as S2 } from "./sticky.taro-
|
|
15
|
-
import { S as S3 } from "./safearea.taro-
|
|
16
|
-
import { B as B2 } from "./backtop.taro-
|
|
17
|
-
import { E } from "./elevator.taro-
|
|
18
|
-
import { F } from "./fixednav.taro-
|
|
19
|
-
import { N } from "./navbar.taro-
|
|
20
|
-
import { S as S4 } from "./sidenavbar.taro-
|
|
21
|
-
import { S as S5 } from "./sidenavbaritem.taro-
|
|
22
|
-
import { S as S6 } from "./subsidenavbar.taro-
|
|
23
|
-
import { T } from "./tabbar.taro-
|
|
24
|
-
import { T as T2 } from "./tabbaritem.taro-
|
|
25
|
-
import { T as T3 } from "./tabpane.taro-
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
29
|
-
import { C as C6 } from "./calendaritem.taro-
|
|
30
|
-
import { C as C7 } from "./calendarcard.taro-
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
32
|
-
import { C as C9, a } from "./checkbox.taro-
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
1
|
+
import { B } from "./button.taro-OKGsDVW7.js";
|
|
2
|
+
import { C } from "./cell.taro-CCnLF6RC.js";
|
|
3
|
+
import { C as C2 } from "./cellgroup.taro-Dz69kT6e.js";
|
|
4
|
+
import { C as C3 } from "./configprovider.taro-CyU_tvNJ.js";
|
|
5
|
+
import { I } from "./image.taro-BLz2WCva.js";
|
|
6
|
+
import { O } from "./overlay.taro-BaBu-3-F.js";
|
|
7
|
+
import { C as C4 } from "./col.taro-C8DUuJYh.js";
|
|
8
|
+
import { D } from "./divider.taro-DRcO_m9e.js";
|
|
9
|
+
import { G } from "./grid.taro-BA76RrgT.js";
|
|
10
|
+
import { G as G2 } from "./griditem.taro-JLddv9zD.js";
|
|
11
|
+
import { L } from "./layout.taro-BE2868d6.js";
|
|
12
|
+
import { R } from "./row.taro-D8chDydP.js";
|
|
13
|
+
import { S } from "./space.taro-CZ999etm.js";
|
|
14
|
+
import { S as S2 } from "./sticky.taro-DRBk3gkQ.js";
|
|
15
|
+
import { S as S3 } from "./safearea.taro-BMQHr7tu.js";
|
|
16
|
+
import { B as B2 } from "./backtop.taro-B-zl6AEC.js";
|
|
17
|
+
import { E } from "./elevator.taro-uhrF7ChY.js";
|
|
18
|
+
import { F } from "./fixednav.taro-WTBxWxOo.js";
|
|
19
|
+
import { N } from "./navbar.taro-B8u3DOE4.js";
|
|
20
|
+
import { S as S4 } from "./sidenavbar.taro-eK5vaZPR.js";
|
|
21
|
+
import { S as S5 } from "./sidenavbaritem.taro-L7HbsCLn.js";
|
|
22
|
+
import { S as S6 } from "./subsidenavbar.taro-ByxYpgfP.js";
|
|
23
|
+
import { T } from "./tabbar.taro-8_SmJofa.js";
|
|
24
|
+
import { T as T2 } from "./tabbaritem.taro-Cb-yfOln.js";
|
|
25
|
+
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
|
+
import { T as T4 } from "./tabs.taro-HgAoKBAc.js";
|
|
27
|
+
import { A } from "./address.taro-DjlXNWie.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-DbHJEx4G.js";
|
|
29
|
+
import { C as C6 } from "./calendaritem.taro-B8tN2DYa.js";
|
|
30
|
+
import { C as C7 } from "./calendarcard.taro-BHGCq5zX.js";
|
|
31
|
+
import { C as C8 } from "./cascader.taro-CpofskUL.js";
|
|
32
|
+
import { C as C9, a } from "./checkbox.taro-D9F_HM7f.js";
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-DshCn7Rn.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-
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
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-
|
|
42
|
-
import { R as R2, a as a2 } from "./radio.taro-
|
|
43
|
-
import { R as R3 } from "./range.taro-
|
|
44
|
-
import { R as R4 } from "./rate.taro-
|
|
45
|
-
import { S as S7 } from "./searchbar.taro-
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
47
|
-
import { S as S9 } from "./signature.taro-
|
|
48
|
-
import { S as S10 } from "./switch.taro-
|
|
49
|
-
import { T as T5 } from "./textarea.taro-
|
|
50
|
-
import { U } from "./uploader.taro-
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
52
|
-
import { B as B3 } from "./badge.taro-
|
|
53
|
-
import { B as B4 } from "./dialog.taro-
|
|
54
|
-
import { D as D3 } from "./drag.taro-
|
|
55
|
-
import { E as E2 } from "./empty.taro-
|
|
56
|
-
import { I as I4 } from "./infiniteloading.taro-
|
|
57
|
-
import { L as L2 } from "./loading.taro-
|
|
58
|
-
import { N as N3 } from "./noticebar.taro-
|
|
59
|
-
import { N as N4 } from "./notify.taro-
|
|
60
|
-
import { P as P2 } from "./popover.taro-
|
|
61
|
-
import { P as P3 } from "./popup.taro-
|
|
62
|
-
import { P as P4 } from "./pulltorefresh.taro-
|
|
63
|
-
import { S as S11 } from "./skeleton.taro
|
|
64
|
-
import { S as S12 } from "./swipe.taro-
|
|
65
|
-
import { T as T6 } from "./toast.taro-
|
|
66
|
-
import { A as A3 } from "./animate.taro-
|
|
35
|
+
import { F as F2 } from "./formitem.taro-Brz5dj_8.js";
|
|
36
|
+
import { I as I2 } from "./input.taro-BVC8gEuk.js";
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-F3jNGr_V.js";
|
|
38
|
+
import { M } from "./menu.taro-BAiJPGR7.js";
|
|
39
|
+
import { M as M2 } from "./menuitem.taro-oLv6ZYC5.js";
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-B9rMgy7D.js";
|
|
41
|
+
import { P } from "./picker.taro-Cmng9GW9.js";
|
|
42
|
+
import { R as R2, a as a2 } from "./radio.taro-CjJgX9o2.js";
|
|
43
|
+
import { R as R3 } from "./range.taro-BxMDs5Cy.js";
|
|
44
|
+
import { R as R4 } from "./rate.taro-BABLqt4h.js";
|
|
45
|
+
import { S as S7 } from "./searchbar.taro-PfVx6o-6.js";
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-BXsxku33.js";
|
|
47
|
+
import { S as S9 } from "./signature.taro-KPm_xs66.js";
|
|
48
|
+
import { S as S10 } from "./switch.taro-D1HgJoJz.js";
|
|
49
|
+
import { T as T5 } from "./textarea.taro-BJIFCpKb.js";
|
|
50
|
+
import { U } from "./uploader.taro-CuaIVvya.js";
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-C5BqWoML.js";
|
|
52
|
+
import { B as B3 } from "./badge.taro-CyDqBb9Z.js";
|
|
53
|
+
import { B as B4 } from "./dialog.taro-xsQhsC1V.js";
|
|
54
|
+
import { D as D3 } from "./drag.taro-CcHIO07Y.js";
|
|
55
|
+
import { E as E2 } from "./empty.taro-Brkv6B2Z.js";
|
|
56
|
+
import { I as I4 } from "./infiniteloading.taro-Ccq4bEzk.js";
|
|
57
|
+
import { L as L2 } from "./loading.taro-CRF1z5wQ.js";
|
|
58
|
+
import { N as N3 } from "./noticebar.taro-CMdfOp2g.js";
|
|
59
|
+
import { N as N4 } from "./notify.taro-jP7y9zMU.js";
|
|
60
|
+
import { P as P2 } from "./popover.taro-CcKwnX27.js";
|
|
61
|
+
import { P as P3 } from "./popup.taro-Iy_WQZ-m.js";
|
|
62
|
+
import { P as P4 } from "./pulltorefresh.taro-BJdQj5sL.js";
|
|
63
|
+
import { S as S11 } from "./skeleton.taro-BwIDIf2p.js";
|
|
64
|
+
import { S as S12 } from "./swipe.taro-wm7YWwaj.js";
|
|
65
|
+
import { T as T6 } from "./toast.taro-BIR_7Wgb.js";
|
|
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-
|
|
69
|
-
import { A as A5 } from "./avatar.taro-
|
|
70
|
-
import { A as A6 } from "./avatargroup.taro-
|
|
71
|
-
import { C as C10 } from "./circleprogress.taro-
|
|
72
|
-
import { C as C11 } from "./collapse.taro-
|
|
73
|
-
import { C as C12 } from "./collapseitem.taro-
|
|
74
|
-
import { C as C13 } from "./countdown.taro-
|
|
75
|
-
import { E as E3 } from "./ellipsis.taro-
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro
|
|
77
|
-
import { I as I6 } from "./indicator.taro-
|
|
78
|
-
import { P as P5 } from "./pagination.taro-
|
|
79
|
-
import { P as P6 } from "./price.taro-
|
|
80
|
-
import { P as P7 } from "./progress.taro-
|
|
81
|
-
import { S as S13 } from "./step.taro-
|
|
82
|
-
import { S as S14 } from "./steps.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-DXxWGngO.js";
|
|
69
|
+
import { A as A5 } from "./avatar.taro-a6CX3kxV.js";
|
|
70
|
+
import { A as A6 } from "./avatargroup.taro-bpT5kPbf.js";
|
|
71
|
+
import { C as C10 } from "./circleprogress.taro-CKSrzt8Q.js";
|
|
72
|
+
import { C as C11 } from "./collapse.taro-BM0BsN30.js";
|
|
73
|
+
import { C as C12 } from "./collapseitem.taro-D_m4VEdG.js";
|
|
74
|
+
import { C as C13 } from "./countdown.taro-Dfa9kpmZ.js";
|
|
75
|
+
import { E as E3 } from "./ellipsis.taro-B_mTyNyk.js";
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-Bb1TkBCV.js";
|
|
77
|
+
import { I as I6 } from "./indicator.taro-CpHZtD9p.js";
|
|
78
|
+
import { P as P5 } from "./pagination.taro-DAK6ddag.js";
|
|
79
|
+
import { P as P6 } from "./price.taro-UVRHPHRD.js";
|
|
80
|
+
import { P as P7 } from "./progress.taro-BOHykt7X.js";
|
|
81
|
+
import { S as S13 } from "./step.taro-DLr2GzYk.js";
|
|
82
|
+
import { S as S14 } from "./steps.taro-C8Yg1Sns.js";
|
|
83
83
|
import { default as default4 } from "./Swiper.js";
|
|
84
|
-
import { S as S15 } from "./swiperitem.taro-
|
|
85
|
-
import { T as T7 } from "./table.taro-
|
|
86
|
-
import { T as T8 } from "./tag.taro-
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
88
|
-
import { V } from "./video.taro-
|
|
89
|
-
import { V as V2 } from "./virtuallist.taro-
|
|
90
|
-
import { B as B5 } from "./barrage.taro-
|
|
91
|
-
import { C as C14 } from "./card.taro-
|
|
92
|
-
import { T as T10 } from "./timedetail.taro-
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
94
|
-
import { T as T12 } from "./trendarrow.taro-
|
|
95
|
-
import { W } from "./watermark.taro-
|
|
96
|
-
import { A as A7 } from "./avatarcropper.taro-
|
|
97
|
-
import "react";
|
|
98
|
-
import "classnames";
|
|
99
|
-
import "@nutui/icons-react-taro";
|
|
100
|
-
import "@tarojs/taro";
|
|
101
|
-
import "./typings-buMpDfSR.js";
|
|
102
|
-
import "./index-oitVOJp9.js";
|
|
103
|
-
import "@tarojs/components";
|
|
104
|
-
import "./px-check-JiWLYN2v.js";
|
|
105
|
-
import "react-transition-group";
|
|
106
|
-
import "./use-touch-BUFdkOSA.js";
|
|
107
|
-
import "./get-scroll-parent-uywvoQMl.js";
|
|
108
|
-
import "./UserContext-9BL0cq8w.js";
|
|
109
|
-
import "./get-rect-by-taro-piSHvCGp.js";
|
|
110
|
-
import "./context-6mGEMLsx.js";
|
|
111
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
112
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
113
|
-
import "./raf-UzmDvMUW.js";
|
|
114
|
-
import "./date-nxKOxj5-.js";
|
|
115
|
-
import "./pad-zero-iY-0-oys.js";
|
|
116
|
-
import "./use-refs-IdrY0ww3.js";
|
|
117
|
-
import "./index-YvHA__3D.js";
|
|
118
|
-
import "./use-custom-event-XvsODK8c.js";
|
|
119
|
-
import "react-dom";
|
|
120
|
-
import "./context-9BL0cq8w.js";
|
|
121
|
-
import "./ConfigProvider.js";
|
|
84
|
+
import { S as S15 } from "./swiperitem.taro-8JXI24f0.js";
|
|
85
|
+
import { T as T7 } from "./table.taro-0BcEBB0F.js";
|
|
86
|
+
import { T as T8 } from "./tag.taro-BsmY5QfN.js";
|
|
87
|
+
import { T as T9 } from "./tour.taro-CMagdKcp.js";
|
|
88
|
+
import { V } from "./video.taro-CEMVfhCS.js";
|
|
89
|
+
import { V as V2 } from "./virtuallist.taro-C5vZAyza.js";
|
|
90
|
+
import { B as B5 } from "./barrage.taro-BNOcZsJ1.js";
|
|
91
|
+
import { C as C14 } from "./card.taro-uLorQW97.js";
|
|
92
|
+
import { T as T10 } from "./timedetail.taro-x6Zey1xi.js";
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-BXq4APSJ.js";
|
|
94
|
+
import { T as T12 } from "./trendarrow.taro-BHUetKSS.js";
|
|
95
|
+
import { W } from "./watermark.taro-BxM8VfXb.js";
|
|
96
|
+
import { A as A7 } from "./avatarcropper.taro-BFvFmK4t.js";
|
|
122
97
|
export {
|
|
123
98
|
A2 as ActionSheet,
|
|
124
99
|
A as Address,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useEffect, useRef, useState } from "react";
|
|
2
3
|
import { CSSTransition } from "react-transition-group";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { View } from "@tarojs/components";
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
7
|
import { getEnv } from "@tarojs/taro";
|
|
7
|
-
import { u as useTouch } from "./use-touch-
|
|
8
|
-
import { c as canUseDom, g as getScrollParent } from "./get-scroll-parent-
|
|
8
|
+
import { u as useTouch } from "./use-touch-OfEaR5qi.js";
|
|
9
|
+
import { c as canUseDom, g as getScrollParent } from "./get-scroll-parent-DB1VRg11.js";
|
|
9
10
|
let passiveSupported = false;
|
|
10
11
|
if (canUseDom) {
|
|
11
12
|
try {
|
|
@@ -22,7 +23,7 @@ if (canUseDom) {
|
|
|
22
23
|
let totalLockCount = 0;
|
|
23
24
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
24
25
|
function getScrollableElement(el) {
|
|
25
|
-
let current = el
|
|
26
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
26
27
|
while (current) {
|
|
27
28
|
if (current.clientHeight < current.scrollHeight) {
|
|
28
29
|
return current;
|
|
@@ -93,21 +94,10 @@ const useLockScrollTaro = (shouldLock) => {
|
|
|
93
94
|
}
|
|
94
95
|
return refObject;
|
|
95
96
|
};
|
|
96
|
-
const defaultOverlayProps = {
|
|
97
|
-
|
|
98
|
-
zIndex: 1e3,
|
|
99
|
-
duration: 300,
|
|
100
|
-
closeOnOverlayClick: true,
|
|
101
|
-
visible: false,
|
|
102
|
-
lockScroll: true,
|
|
103
|
-
onClick: (event) => {
|
|
104
|
-
}
|
|
105
|
-
};
|
|
97
|
+
const defaultOverlayProps = Object.assign(Object.assign({}, ComponentDefaults), { zIndex: 1e3, duration: 300, closeOnOverlayClick: true, visible: false, lockScroll: true, onClick: (event) => {
|
|
98
|
+
} });
|
|
106
99
|
const Overlay = (props) => {
|
|
107
|
-
const { children, zIndex, duration, className, closeOnOverlayClick, visible, lockScroll, style, afterShow, afterClose, onClick,
|
|
108
|
-
...defaultOverlayProps,
|
|
109
|
-
...props
|
|
110
|
-
};
|
|
100
|
+
const _a = Object.assign(Object.assign({}, defaultOverlayProps), props), { children, zIndex, duration, className, closeOnOverlayClick, visible, lockScroll, style, afterShow, afterClose, onClick } = _a, rest = __rest(_a, ["children", "zIndex", "duration", "className", "closeOnOverlayClick", "visible", "lockScroll", "style", "afterShow", "afterClose", "onClick"]);
|
|
111
101
|
const classPrefix = `nut-overlay`;
|
|
112
102
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
113
103
|
const nodeRef = useLockScrollTaro(!!props.lockScroll && innerVisible);
|
|
@@ -119,9 +109,7 @@ const Overlay = (props) => {
|
|
|
119
109
|
}
|
|
120
110
|
}, [visible]);
|
|
121
111
|
const classes = classNames(classPrefix, className);
|
|
122
|
-
const styles = {
|
|
123
|
-
...style
|
|
124
|
-
};
|
|
112
|
+
const styles = Object.assign({}, style);
|
|
125
113
|
const handleClick = (e) => {
|
|
126
114
|
if (closeOnOverlayClick) {
|
|
127
115
|
onClick && onClick(e);
|
|
@@ -139,7 +127,7 @@ const Overlay = (props) => {
|
|
|
139
127
|
React__default.createElement(
|
|
140
128
|
CSSTransition,
|
|
141
129
|
{ nodeRef, classNames: `${classPrefix}-slide`, unmountOnExit: true, timeout: duration, in: innerVisible, onEntered: onHandleOpened, onExited: onHandleClosed },
|
|
142
|
-
React__default.createElement(View, { ref: nodeRef, className: classes, style: styles,
|
|
130
|
+
React__default.createElement(View, Object.assign({ ref: nodeRef, className: classes, style: styles }, rest, { catchMove: lockScroll, onClick: handleClick }), children)
|
|
143
131
|
)
|
|
144
132
|
);
|
|
145
133
|
};
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useMemo } from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
6
|
-
const defaultProps = {
|
|
7
|
-
...ComponentDefaults,
|
|
8
|
-
defaultValue: 1,
|
|
9
|
-
mode: "multi",
|
|
10
|
-
prev: null,
|
|
11
|
-
next: null,
|
|
12
|
-
total: 50,
|
|
13
|
-
pageSize: 10,
|
|
14
|
-
itemSize: 5,
|
|
15
|
-
ellipse: false
|
|
16
|
-
};
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: 1, mode: "multi", prev: null, next: null, total: 50, pageSize: 10, itemSize: 5, ellipse: false });
|
|
17
8
|
const Pagination = (props) => {
|
|
18
9
|
const { locale } = useConfig();
|
|
19
|
-
const { value, mode, prev, next, total, pageSize, itemSize, onChange, ellipse, itemRender, defaultValue, className,
|
|
20
|
-
...defaultProps,
|
|
21
|
-
...props
|
|
22
|
-
};
|
|
10
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { value, mode, prev, next, total, pageSize, itemSize, onChange, ellipse, itemRender, defaultValue, className } = _a, rest = __rest(_a, ["value", "mode", "prev", "next", "total", "pageSize", "itemSize", "onChange", "ellipse", "itemRender", "defaultValue", "className"]);
|
|
23
11
|
const classPrefix = "nut-pagination";
|
|
24
12
|
const [currentPage, setCurrentPage] = usePropsValue({
|
|
25
13
|
value,
|
|
@@ -64,7 +52,7 @@ const Pagination = (props) => {
|
|
|
64
52
|
};
|
|
65
53
|
return React__default.createElement(
|
|
66
54
|
"div",
|
|
67
|
-
{ className: classNames(classPrefix, className),
|
|
55
|
+
Object.assign({ className: classNames(classPrefix, className) }, rest),
|
|
68
56
|
(mode === "multi" || mode === "simple") && React__default.createElement(
|
|
69
57
|
React__default.Fragment,
|
|
70
58
|
null,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { a as __awaiter, _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useState, useRef, useEffect, useImperativeHandle } from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import Taro from "@tarojs/taro";
|
|
4
5
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
-
import { u as useTouch } from "./use-touch-
|
|
7
|
-
import { g as getRectByTaro } from "./get-rect-by-taro-
|
|
8
|
-
import { p as passiveSupported } from "./overlay.taro-
|
|
9
|
-
import { u as useRefs } from "./use-refs-
|
|
10
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
11
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
12
|
-
import { C as ComponentDefaults } from "./typings-
|
|
6
|
+
import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
|
|
7
|
+
import { u as useTouch } from "./use-touch-OfEaR5qi.js";
|
|
8
|
+
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
9
|
+
import { p as passiveSupported } from "./overlay.taro-BaBu-3-F.js";
|
|
10
|
+
import { u as useRefs } from "./use-refs-BeEmziIR.js";
|
|
11
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
12
|
+
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
13
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
13
14
|
const InternalPickerPanel = (props, ref) => {
|
|
14
15
|
const { keyIndex = 0, defaultValue, options = [], threeDimensional = true, duration = 1e3, itemShow = false, chooseItem } = props;
|
|
15
16
|
const touch = useTouch();
|
|
@@ -71,7 +72,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
74
|
const setChooseValue = (move) => {
|
|
74
|
-
chooseItem
|
|
75
|
+
chooseItem === null || chooseItem === void 0 ? void 0 : chooseItem(options === null || options === void 0 ? void 0 : options[Math.round(-move / lineSpacing.current)], keyIndex);
|
|
75
76
|
};
|
|
76
77
|
const touchStart = (event) => {
|
|
77
78
|
touch.start(event);
|
|
@@ -143,11 +144,11 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
143
144
|
event.stopPropagation();
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
|
-
const getReference =
|
|
147
|
-
const refe =
|
|
147
|
+
const getReference = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
148
|
+
const refe = yield getRectByTaro(listRef === null || listRef === void 0 ? void 0 : listRef.current);
|
|
148
149
|
lineSpacing.current = refe.height ? refe.height : 36;
|
|
149
150
|
modifyStatus(true);
|
|
150
|
-
};
|
|
151
|
+
});
|
|
151
152
|
const touchRollerStyle = () => {
|
|
152
153
|
return {
|
|
153
154
|
transition: `transform ${touchTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,
|
|
@@ -225,20 +226,10 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
225
226
|
};
|
|
226
227
|
const PickerPanel = React__default.forwardRef(InternalPickerPanel);
|
|
227
228
|
const PickerPanel$1 = PickerPanel;
|
|
228
|
-
const defaultProps = {
|
|
229
|
-
...ComponentDefaults,
|
|
230
|
-
visible: false,
|
|
231
|
-
title: "",
|
|
232
|
-
options: [],
|
|
233
|
-
value: [],
|
|
234
|
-
defaultValue: [],
|
|
235
|
-
threeDimensional: true,
|
|
236
|
-
closeOnOverlayClick: true,
|
|
237
|
-
duration: 1e3
|
|
238
|
-
};
|
|
229
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, title: "", options: [], value: [], defaultValue: [], threeDimensional: true, closeOnOverlayClick: true, duration: 1e3 });
|
|
239
230
|
const InternalPicker = (props, ref) => {
|
|
240
231
|
const { locale } = useConfig();
|
|
241
|
-
const { children, visible, title, options = [], closeOnOverlayClick, popupProps = {}, defaultValue = [], className, style, threeDimensional, duration, onConfirm, onCancel, onClose, afterClose, onChange,
|
|
232
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, visible, title, options = [], closeOnOverlayClick, popupProps = {}, defaultValue = [], className, style, threeDimensional, duration, onConfirm, onCancel, onClose, afterClose, onChange } = _a, rest = __rest(_a, ["children", "visible", "title", "options", "closeOnOverlayClick", "popupProps", "defaultValue", "className", "style", "threeDimensional", "duration", "onConfirm", "onCancel", "onClose", "afterClose", "onChange"]);
|
|
242
233
|
const classPrefix = "nut-picker";
|
|
243
234
|
const classes = classNames(classPrefix, className);
|
|
244
235
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -246,8 +237,8 @@ const InternalPicker = (props, ref) => {
|
|
|
246
237
|
defaultValue: [...defaultValue],
|
|
247
238
|
finalValue: [...defaultValue],
|
|
248
239
|
onChange: (val) => {
|
|
249
|
-
var
|
|
250
|
-
(
|
|
240
|
+
var _a2;
|
|
241
|
+
(_a2 = props.onConfirm) === null || _a2 === void 0 ? void 0 : _a2.call(props, setSelectedOptions(), val);
|
|
251
242
|
}
|
|
252
243
|
});
|
|
253
244
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
@@ -255,8 +246,8 @@ const InternalPicker = (props, ref) => {
|
|
|
255
246
|
defaultValue: false,
|
|
256
247
|
finalValue: false,
|
|
257
248
|
onChange: (val) => {
|
|
258
|
-
var
|
|
259
|
-
(
|
|
249
|
+
var _a2;
|
|
250
|
+
(_a2 = props.onClose) === null || _a2 === void 0 ? void 0 : _a2.call(props, setSelectedOptions(), innerValue);
|
|
260
251
|
}
|
|
261
252
|
});
|
|
262
253
|
const [innerValue, setInnerValue] = useState(selectedValue);
|
|
@@ -362,8 +353,8 @@ const InternalPicker = (props, ref) => {
|
|
|
362
353
|
const defaultIndexs = [];
|
|
363
354
|
if (innerValue.length > 0) {
|
|
364
355
|
innerValue.forEach((value, index) => {
|
|
365
|
-
var
|
|
366
|
-
for (let i = 0; i < ((
|
|
356
|
+
var _a2;
|
|
357
|
+
for (let i = 0; i < ((_a2 = columnsList === null || columnsList === void 0 ? void 0 : columnsList[index]) === null || _a2 === void 0 ? void 0 : _a2.length); i++) {
|
|
367
358
|
if (columnsList[index][i].value === value) {
|
|
368
359
|
defaultIndexs.push(i);
|
|
369
360
|
break;
|
|
@@ -379,19 +370,19 @@ const InternalPicker = (props, ref) => {
|
|
|
379
370
|
return defaultIndexs;
|
|
380
371
|
};
|
|
381
372
|
const chooseItem = (columnOptions, columnIndex2) => {
|
|
382
|
-
var
|
|
373
|
+
var _a2, _b;
|
|
383
374
|
const values = [];
|
|
384
375
|
const start = columnIndex2;
|
|
385
376
|
if (columnOptions && Object.keys(columnOptions).length) {
|
|
386
377
|
if (values[columnIndex2] !== columnOptions.value) {
|
|
387
378
|
if (columnsType() === "cascade") {
|
|
388
379
|
values[columnIndex2] = columnOptions.value || "";
|
|
389
|
-
while ((
|
|
380
|
+
while ((_a2 = columnOptions === null || columnOptions === void 0 ? void 0 : columnOptions.children) === null || _a2 === void 0 ? void 0 : _a2[0]) {
|
|
390
381
|
values[columnIndex2 + 1] = columnOptions.children[0].value;
|
|
391
382
|
columnIndex2++;
|
|
392
383
|
columnOptions = columnOptions.children[0];
|
|
393
384
|
}
|
|
394
|
-
if ((_b = columnOptions
|
|
385
|
+
if ((_b = columnOptions === null || columnOptions === void 0 ? void 0 : columnOptions.children) === null || _b === void 0 ? void 0 : _b.length) {
|
|
395
386
|
values[columnIndex2 + 1] = "";
|
|
396
387
|
}
|
|
397
388
|
const combineResult = [
|
|
@@ -434,7 +425,7 @@ const InternalPicker = (props, ref) => {
|
|
|
434
425
|
{ className: `${classPrefix}-control` },
|
|
435
426
|
React__default.createElement("span", { className: `${classPrefix}-cancel-btn`, onClick: (e) => {
|
|
436
427
|
e.stopPropagation();
|
|
437
|
-
onCancel
|
|
428
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
438
429
|
setInnerVisible(false);
|
|
439
430
|
} }, locale.cancel),
|
|
440
431
|
React__default.createElement("div", { className: `${classPrefix}-title` }, title || ""),
|
|
@@ -469,23 +460,23 @@ const InternalPicker = (props, ref) => {
|
|
|
469
460
|
typeof children === "function" && children(selectedValue),
|
|
470
461
|
React__default.createElement(
|
|
471
462
|
Popup,
|
|
472
|
-
{
|
|
473
|
-
var
|
|
463
|
+
Object.assign({}, popupProps, { visible: innerVisible, position: "bottom", onOverlayClick: () => {
|
|
464
|
+
var _a2;
|
|
474
465
|
if (closeOnOverlayClick) {
|
|
475
|
-
(
|
|
466
|
+
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
476
467
|
setInnerVisible(false);
|
|
477
468
|
}
|
|
478
469
|
}, afterClose: () => {
|
|
479
|
-
afterClose
|
|
480
|
-
} },
|
|
470
|
+
afterClose === null || afterClose === void 0 ? void 0 : afterClose(setSelectedOptions(), innerValue, pickerRef);
|
|
471
|
+
} }),
|
|
481
472
|
React__default.createElement(
|
|
482
473
|
View,
|
|
483
|
-
{ className: classes, style,
|
|
474
|
+
Object.assign({ className: classes, style }, rest, { catchMove: true }),
|
|
484
475
|
renderTitleBar(),
|
|
485
476
|
typeof children !== "function" && children,
|
|
486
|
-
React__default.createElement("div", { className: `${classPrefix}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList
|
|
487
|
-
return React__default.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue
|
|
488
|
-
}) : React__default.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, indicatorClass: "nut-picker-indicator-taro", className: "nut-picker-view-panel" }, columnsList
|
|
477
|
+
React__default.createElement("div", { className: `${classPrefix}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList === null || columnsList === void 0 ? void 0 : columnsList.map((item, index) => {
|
|
478
|
+
return React__default.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue === null || innerValue === void 0 ? void 0 : innerValue[index], options: item, threeDimensional, chooseItem: (value, index2) => chooseItem(value, index2), duration, key: index, keyIndex: index, itemShow: visible });
|
|
479
|
+
}) : React__default.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, indicatorClass: "nut-picker-indicator-taro", className: "nut-picker-view-panel" }, columnsList === null || columnsList === void 0 ? void 0 : columnsList.map((columnOptions, index) => {
|
|
489
480
|
return React__default.createElement(PickerViewColumn, { key: `col${index}` }, columnOptions.map((item, index2) => {
|
|
490
481
|
return React__default.createElement(
|
|
491
482
|
View,
|