@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
package/dist/esm/Switch.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { S as Switch } from "./switch.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "./typings-buMpDfSR.js";
|
|
4
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
5
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
1
|
+
import { S as Switch } from "./switch.taro-D1HgJoJz.js";
|
|
6
2
|
export {
|
|
7
3
|
Switch as default
|
|
8
4
|
};
|
package/dist/esm/TabPane.js
CHANGED
package/dist/esm/Tabbar.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { T as Tabbar } from "./tabbar.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "./typings-buMpDfSR.js";
|
|
5
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
6
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
7
|
-
import "./tabbaritem.taro-t9C07OYX.js";
|
|
8
|
-
import "./badge.taro-993L861f.js";
|
|
1
|
+
import { T as Tabbar } from "./tabbar.taro-8_SmJofa.js";
|
|
9
2
|
export {
|
|
10
3
|
Tabbar as default
|
|
11
4
|
};
|
package/dist/esm/TabbarItem.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { T as TabbarItem } from "./tabbaritem.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "./typings-buMpDfSR.js";
|
|
5
|
-
import "./badge.taro-993L861f.js";
|
|
1
|
+
import { T as TabbarItem } from "./tabbaritem.taro-Cb-yfOln.js";
|
|
6
2
|
export {
|
|
7
3
|
TabbarItem as default
|
|
8
4
|
};
|
package/dist/esm/Table.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { T as Table } from "./table.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "@nutui/icons-react-taro";
|
|
5
|
-
import "./configprovider.taro-q5J2gQbi.js";
|
|
6
|
-
import "./index-oitVOJp9.js";
|
|
7
|
-
import "./typings-buMpDfSR.js";
|
|
8
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
9
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
1
|
+
import { T as Table } from "./table.taro-0BcEBB0F.js";
|
|
10
2
|
export {
|
|
11
3
|
Table as default
|
|
12
4
|
};
|
package/dist/esm/Tabs.js
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import { T as Tabs } from "./tabs.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "@tarojs/components";
|
|
4
|
-
import "classnames";
|
|
5
|
-
import "@nutui/icons-react-taro";
|
|
6
|
-
import "@tarojs/taro";
|
|
7
|
-
import "./typings-buMpDfSR.js";
|
|
8
|
-
import "./tabpane.taro-5k7wWimS.js";
|
|
9
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
10
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
11
|
-
import "./raf-UzmDvMUW.js";
|
|
1
|
+
import { T as Tabs } from "./tabs.taro-HgAoKBAc.js";
|
|
12
2
|
export {
|
|
13
3
|
Tabs as default
|
|
14
4
|
};
|
package/dist/esm/Tag.js
CHANGED
package/dist/esm/TextArea.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { T as TextArea } from "./textarea.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "@tarojs/taro";
|
|
5
|
-
import "@tarojs/components";
|
|
6
|
-
import "./configprovider.taro-q5J2gQbi.js";
|
|
7
|
-
import "./index-oitVOJp9.js";
|
|
8
|
-
import "./typings-buMpDfSR.js";
|
|
9
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
10
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
1
|
+
import { T as TextArea } from "./textarea.taro-BJIFCpKb.js";
|
|
11
2
|
export {
|
|
12
3
|
TextArea as default
|
|
13
4
|
};
|
package/dist/esm/TimeDetail.js
CHANGED
package/dist/esm/TimeSelect.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import { T as TimeSelect } from "./timeselect.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "./popup.taro-ObEUml4r.js";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "react-transition-group";
|
|
7
|
-
import "@nutui/icons-react-taro";
|
|
8
|
-
import "@tarojs/components";
|
|
9
|
-
import "./overlay.taro-HsGeVyPh.js";
|
|
10
|
-
import "./typings-buMpDfSR.js";
|
|
11
|
-
import "@tarojs/taro";
|
|
12
|
-
import "./use-touch-BUFdkOSA.js";
|
|
13
|
-
import "./get-scroll-parent-uywvoQMl.js";
|
|
14
|
-
import "./timedetail.taro-TF9Wcblh.js";
|
|
15
|
-
import "./configprovider.taro-q5J2gQbi.js";
|
|
16
|
-
import "./index-oitVOJp9.js";
|
|
1
|
+
import { T as TimeSelect } from "./timeselect.taro-BXq4APSJ.js";
|
|
17
2
|
export {
|
|
18
3
|
TimeSelect as default
|
|
19
4
|
};
|
package/dist/esm/Toast.js
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import { T as Toast } from "./toast.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "@nutui/icons-react-taro";
|
|
5
|
-
import "./overlay.taro-HsGeVyPh.js";
|
|
6
|
-
import "react-transition-group";
|
|
7
|
-
import "@tarojs/components";
|
|
8
|
-
import "./typings-buMpDfSR.js";
|
|
9
|
-
import "@tarojs/taro";
|
|
10
|
-
import "./use-touch-BUFdkOSA.js";
|
|
11
|
-
import "./get-scroll-parent-uywvoQMl.js";
|
|
12
|
-
import "./use-custom-event-XvsODK8c.js";
|
|
13
|
-
import "./index-oitVOJp9.js";
|
|
14
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
15
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
1
|
+
import { T as Toast } from "./toast.taro-BIR_7Wgb.js";
|
|
16
2
|
export {
|
|
17
3
|
Toast as default
|
|
18
4
|
};
|
package/dist/esm/Tour.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import { T as Tour } from "./tour.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "@nutui/icons-react-taro";
|
|
4
|
-
import "classnames";
|
|
5
|
-
import "./popover.taro-qldQwLPC.js";
|
|
6
|
-
import "@tarojs/taro";
|
|
7
|
-
import "./popup.taro-ObEUml4r.js";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
import "react-transition-group";
|
|
10
|
-
import "@tarojs/components";
|
|
11
|
-
import "./overlay.taro-HsGeVyPh.js";
|
|
12
|
-
import "./typings-buMpDfSR.js";
|
|
13
|
-
import "./use-touch-BUFdkOSA.js";
|
|
14
|
-
import "./get-scroll-parent-uywvoQMl.js";
|
|
15
|
-
import "./get-rect-by-taro-piSHvCGp.js";
|
|
16
|
-
import "./ConfigProvider.js";
|
|
1
|
+
import { T as Tour } from "./tour.taro-CMagdKcp.js";
|
|
17
2
|
export {
|
|
18
3
|
Tour as default
|
|
19
4
|
};
|
package/dist/esm/TrendArrow.js
CHANGED
package/dist/esm/Uploader.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import { U as Uploader } from "./uploader.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "@tarojs/taro";
|
|
5
|
-
import "@nutui/icons-react-taro";
|
|
6
|
-
import "./button.taro-3IIFy1M2.js";
|
|
7
|
-
import "./typings-buMpDfSR.js";
|
|
8
|
-
import "./configprovider.taro-q5J2gQbi.js";
|
|
9
|
-
import "./index-oitVOJp9.js";
|
|
10
|
-
import "./index-YvHA__3D.js";
|
|
11
|
-
import "./use-props-value-vKr0R0AX.js";
|
|
12
|
-
import "./use-force-update-0oEVD8Nr.js";
|
|
13
|
-
import "@tarojs/components";
|
|
14
|
-
import "./progress.taro-pStvlrbA.js";
|
|
1
|
+
import { U as Uploader } from "./uploader.taro-CuaIVvya.js";
|
|
15
2
|
export {
|
|
16
3
|
Uploader as default
|
|
17
4
|
};
|
package/dist/esm/Video.js
CHANGED
package/dist/esm/VirtualList.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { V as VirtualList } from "./virtuallist.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "@tarojs/components";
|
|
4
|
-
import "@tarojs/taro";
|
|
5
|
-
import "classnames";
|
|
6
|
-
import "./typings-buMpDfSR.js";
|
|
1
|
+
import { V as VirtualList } from "./virtuallist.taro-C5vZAyza.js";
|
|
7
2
|
export {
|
|
8
3
|
VirtualList as default
|
|
9
4
|
};
|
package/dist/esm/WaterMark.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { W as WaterMark } from "./watermark.taro-
|
|
2
|
-
import "react";
|
|
3
|
-
import "@tarojs/taro";
|
|
4
|
-
import "classnames";
|
|
5
|
-
import "./configprovider.taro-q5J2gQbi.js";
|
|
6
|
-
import "./index-oitVOJp9.js";
|
|
7
|
-
import "./typings-buMpDfSR.js";
|
|
1
|
+
import { W as WaterMark } from "./watermark.taro-BxM8VfXb.js";
|
|
8
2
|
export {
|
|
9
3
|
WaterMark as default
|
|
10
4
|
};
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default from "react";
|
|
2
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
description: "",
|
|
8
|
-
options: [],
|
|
9
|
-
optionKey: { name: "name", description: "description" },
|
|
10
|
-
cancelText: "",
|
|
11
|
-
onCancel: () => {
|
|
12
|
-
},
|
|
13
|
-
onSelect: () => {
|
|
14
|
-
}
|
|
15
|
-
};
|
|
3
|
+
import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, description: "", options: [], optionKey: { name: "name", description: "description" }, cancelText: "", onCancel: () => {
|
|
6
|
+
}, onSelect: () => {
|
|
7
|
+
} });
|
|
16
8
|
const ActionSheet = (props) => {
|
|
17
|
-
const { children, cancelText, optionKey, title, description, options, onCancel, onSelect, visible, className, style,
|
|
9
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, cancelText, optionKey, title, description, options, onCancel, onSelect, visible, className, style } = _a, rest = __rest(_a, ["children", "cancelText", "optionKey", "title", "description", "options", "onCancel", "onSelect", "visible", "className", "style"]);
|
|
18
10
|
const classPrefix = "nut-actionsheet";
|
|
19
11
|
const cancelActionSheet = () => {
|
|
20
12
|
onCancel && onCancel();
|
|
@@ -26,9 +18,9 @@ const ActionSheet = (props) => {
|
|
|
26
18
|
};
|
|
27
19
|
return React__default.createElement(
|
|
28
20
|
Popup,
|
|
29
|
-
{
|
|
21
|
+
Object.assign({}, rest, { round: true, visible, position: "bottom", title, description, className: classPrefix, onClose: () => {
|
|
30
22
|
onCancel && onCancel();
|
|
31
|
-
} },
|
|
23
|
+
} }),
|
|
32
24
|
React__default.createElement(
|
|
33
25
|
"div",
|
|
34
26
|
{ className: `${className}`, style },
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { forwardRef, useState, useImperativeHandle } from "react";
|
|
2
3
|
import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
|
|
3
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
|
|
4
5
|
import { ScrollView } from "@tarojs/components";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
-
import { C as Cascader } from "./cascader.taro-
|
|
7
|
-
import { C as ComponentDefaults } from "./typings-
|
|
8
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
|
+
import { C as Cascader } from "./cascader.taro-CpofskUL.js";
|
|
8
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
|
+
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
10
|
const defaultProps$2 = {
|
|
10
11
|
type: "custom",
|
|
11
12
|
existList: [],
|
|
@@ -15,7 +16,8 @@ const defaultProps$2 = {
|
|
|
15
16
|
};
|
|
16
17
|
const ExistRender = (props) => {
|
|
17
18
|
const { locale } = useConfig();
|
|
18
|
-
const { children, type, existList, selectIcon, defaultIcon, custom, onSelect, onSwitch
|
|
19
|
+
const _a = Object.assign(Object.assign({}, defaultProps$2), props), { children, type, existList, selectIcon, defaultIcon, custom, onSelect, onSwitch } = _a;
|
|
20
|
+
__rest(_a, ["children", "type", "existList", "selectIcon", "defaultIcon", "custom", "onSelect", "onSwitch"]);
|
|
19
21
|
const classPrefix = "nut-address";
|
|
20
22
|
const selectedExist = (item) => {
|
|
21
23
|
existList.forEach((list, index) => {
|
|
@@ -63,47 +65,20 @@ const ExistRender = (props) => {
|
|
|
63
65
|
)
|
|
64
66
|
);
|
|
65
67
|
};
|
|
66
|
-
const defaultProps$1 = {
|
|
67
|
-
...ComponentDefaults,
|
|
68
|
-
visible: false,
|
|
69
|
-
type: "custom",
|
|
70
|
-
options: [],
|
|
71
|
-
optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
|
|
72
|
-
format: {},
|
|
73
|
-
height: "200px"
|
|
74
|
-
};
|
|
68
|
+
const defaultProps$1 = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, type: "custom", options: [], optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" }, format: {}, height: "200px" });
|
|
75
69
|
const CustomRender = (props) => {
|
|
76
|
-
const { children, visible, type, height, options, title, left, value, defaultValue, optionKey, format, onClose, onChange, onPathChange,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
-
return React__default.createElement(React__default.Fragment, null, type === "custom" && React__default.createElement(Cascader, { visible, value, defaultValue, title, left, options, format, optionKey, onClose: () => {
|
|
81
|
-
onClose == null ? void 0 : onClose();
|
|
70
|
+
const _a = Object.assign(Object.assign({}, defaultProps$1), props), { children, visible, type, height, options, title, left, value, defaultValue, optionKey, format, onClose, onChange, onPathChange } = _a, rest = __rest(_a, ["children", "visible", "type", "height", "options", "title", "left", "value", "defaultValue", "optionKey", "format", "onClose", "onChange", "onPathChange"]);
|
|
71
|
+
return React__default.createElement(React__default.Fragment, null, type === "custom" && React__default.createElement(Cascader, Object.assign({ visible, value, defaultValue, title, left, options, format, optionKey, onClose: () => {
|
|
72
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
82
73
|
}, onChange: (val) => {
|
|
83
|
-
onChange
|
|
84
|
-
}, onPathChange,
|
|
85
|
-
};
|
|
86
|
-
const defaultProps = {
|
|
87
|
-
...ComponentDefaults,
|
|
88
|
-
defaultValue: [],
|
|
89
|
-
type: "custom",
|
|
90
|
-
options: [],
|
|
91
|
-
optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
|
|
92
|
-
format: {},
|
|
93
|
-
custom: false,
|
|
94
|
-
existList: [],
|
|
95
|
-
height: "200px",
|
|
96
|
-
defaultIcon: null,
|
|
97
|
-
selectIcon: null,
|
|
98
|
-
closeIcon: null,
|
|
99
|
-
backIcon: null
|
|
74
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
75
|
+
}, onPathChange }, rest)));
|
|
100
76
|
};
|
|
77
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: [], type: "custom", options: [], optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" }, format: {}, custom: false, existList: [], height: "200px", defaultIcon: null, selectIcon: null, closeIcon: null, backIcon: null });
|
|
101
78
|
const InternalAddress = (props, ref) => {
|
|
102
79
|
const { locale } = useConfig();
|
|
103
|
-
const { style, className, visible, defaultVisible, defaultValue, children, type, options, optionKey, format, height, title, existList, custom, selectIcon, defaultIcon, closeIcon, backIcon, onChange, onExistSelect, onClose, onSwitch
|
|
104
|
-
|
|
105
|
-
...props
|
|
106
|
-
};
|
|
80
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { style, className, visible, defaultVisible, defaultValue, children, type, options, optionKey, format, height, title, existList, custom, selectIcon, defaultIcon, closeIcon, backIcon, onChange, onExistSelect, onClose, onSwitch } = _a;
|
|
81
|
+
__rest(_a, ["style", "className", "visible", "defaultVisible", "defaultValue", "children", "type", "options", "optionKey", "format", "height", "title", "existList", "custom", "selectIcon", "defaultIcon", "closeIcon", "backIcon", "onChange", "onExistSelect", "onClose", "onSwitch"]);
|
|
107
82
|
const classPrefix = "nut-address";
|
|
108
83
|
const [currentType, setCurrentType] = useState(type);
|
|
109
84
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
@@ -141,13 +116,13 @@ const InternalAddress = (props, ref) => {
|
|
|
141
116
|
onSwitch && onSwitch({ type: currentType });
|
|
142
117
|
};
|
|
143
118
|
return React__default.createElement(React__default.Fragment, null, currentType === "custom" || currentType === "custom2" ? React__default.createElement(CustomRender, { visible: innerVisible, closeable: true, title: title || locale.address.selectRegion, left: renderLeftOnCustomSwitch(), defaultValue, closeIcon, options, format, optionKey, type: currentType, height, onClose: handleClose, onChange: (val, params) => {
|
|
144
|
-
onChange
|
|
119
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val, params);
|
|
145
120
|
} }) : React__default.createElement(
|
|
146
121
|
Popup,
|
|
147
122
|
{ visible: innerVisible, position: "bottom", round: true, closeable: true, closeIcon, title: title || locale.address.selectRegion, onClose: handleClose },
|
|
148
123
|
React__default.createElement(
|
|
149
124
|
"div",
|
|
150
|
-
{ className: `${classPrefix} ${className || ""}`, style: {
|
|
125
|
+
{ className: `${classPrefix} ${className || ""}`, style: Object.assign({}, style) },
|
|
151
126
|
// 不需要 close,选中切换即关闭弹框。可手动关闭弹框,只关闭弹框不处理逻辑。
|
|
152
127
|
React__default.createElement(ExistRender, { type: currentType, existList, selectIcon, defaultIcon, custom, onSelect: selectedExistItem, onSwitch: onSwitchModule })
|
|
153
128
|
)
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useState } from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
|
|
6
|
-
type: "shake",
|
|
7
|
-
action: "initial",
|
|
8
|
-
loop: false,
|
|
9
|
-
onClick: (event) => {
|
|
10
|
-
}
|
|
11
|
-
};
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "shake", action: "initial", loop: false, onClick: (event) => {
|
|
6
|
+
} });
|
|
12
7
|
const classPrefix = `nut-animate`;
|
|
13
8
|
const Animate = (props) => {
|
|
14
|
-
const { className, type, action, loop, onClick, children,
|
|
15
|
-
...defaultProps,
|
|
16
|
-
...props
|
|
17
|
-
};
|
|
9
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { className, type, action, loop, onClick, children } = _a, rest = __rest(_a, ["className", "type", "action", "loop", "onClick", "children"]);
|
|
18
10
|
const [clicked, setClicked] = useState(false);
|
|
19
11
|
const classes = classNames({
|
|
20
12
|
"nut-ani-container": true,
|
|
@@ -34,7 +26,7 @@ const Animate = (props) => {
|
|
|
34
26
|
return React__default.createElement(
|
|
35
27
|
"div",
|
|
36
28
|
{ className: "nut-animate" },
|
|
37
|
-
React__default.createElement("div", { className: cls, onClick: handleClick,
|
|
29
|
+
React__default.createElement("div", Object.assign({ className: cls, onClick: handleClick }, rest), children)
|
|
38
30
|
);
|
|
39
31
|
};
|
|
40
32
|
Animate.defaultProps = defaultProps;
|
|
@@ -1,38 +1,22 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useState, useRef } from "react";
|
|
2
3
|
import { createInnerAudioContext } from "@tarojs/taro";
|
|
3
4
|
import { Service } from "@nutui/icons-react-taro";
|
|
4
|
-
import { R as Range } from "./range.taro-
|
|
5
|
-
import { B as Button } from "./button.taro-
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
-
import { C as ComponentDefaults } from "./typings-
|
|
8
|
-
const defaultProps = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: "progress",
|
|
16
|
-
onFastBack: (ctx) => {
|
|
17
|
-
},
|
|
18
|
-
onForward: (ctx) => {
|
|
19
|
-
},
|
|
20
|
-
onPause: (ctx) => {
|
|
21
|
-
},
|
|
22
|
-
onPlay: (ctx) => {
|
|
23
|
-
},
|
|
24
|
-
onPlayEnd: (ctx) => {
|
|
25
|
-
},
|
|
26
|
-
onCanPlay: (ctx) => {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
5
|
+
import { R as Range } from "./range.taro-BxMDs5Cy.js";
|
|
6
|
+
import { B as Button } from "./button.taro-OKGsDVW7.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), { className: "", url: "", style: {}, autoplay: false, loop: false, type: "progress", onFastBack: (ctx) => {
|
|
10
|
+
}, onForward: (ctx) => {
|
|
11
|
+
}, onPause: (ctx) => {
|
|
12
|
+
}, onPlay: (ctx) => {
|
|
13
|
+
}, onPlayEnd: (ctx) => {
|
|
14
|
+
}, onCanPlay: (ctx) => {
|
|
15
|
+
} });
|
|
29
16
|
const Audio = (props) => {
|
|
30
17
|
const classPrefix = "nut-audio";
|
|
31
18
|
const { locale } = useConfig();
|
|
32
|
-
const { className, url, style, autoplay, loop, type, onFastBack, onForward, onPause, onPlay, onPlayEnd, onCanPlay, children, iconClassPrefix, iconFontClassName,
|
|
33
|
-
...defaultProps,
|
|
34
|
-
...props
|
|
35
|
-
};
|
|
19
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { className, url, style, autoplay, loop, type, onFastBack, onForward, onPause, onPlay, onPlayEnd, onCanPlay, children, iconClassPrefix, iconFontClassName } = _a, rest = __rest(_a, ["className", "url", "style", "autoplay", "loop", "type", "onFastBack", "onForward", "onPause", "onPlay", "onPlayEnd", "onCanPlay", "children", "iconClassPrefix", "iconFontClassName"]);
|
|
36
20
|
const [playing, setPlaying] = useState(false);
|
|
37
21
|
const [totalSeconds, setTotalSeconds] = useState(0);
|
|
38
22
|
const [percent, setPercent] = useState(0);
|
|
@@ -174,7 +158,7 @@ const Audio = (props) => {
|
|
|
174
158
|
return null;
|
|
175
159
|
}
|
|
176
160
|
};
|
|
177
|
-
return React__default.createElement("div", { className: `${classPrefix} ${className}`, style,
|
|
161
|
+
return React__default.createElement("div", Object.assign({ className: `${classPrefix} ${className}`, style }, rest), renderAudio());
|
|
178
162
|
};
|
|
179
163
|
Audio.defaultProps = defaultProps;
|
|
180
164
|
Audio.displayName = "NutAudio";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
|
+
import React__default, { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
+
import Taro, { getEnv } from "@tarojs/taro";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { User } from "@nutui/icons-react-taro";
|
|
6
|
+
import { I as Image } from "./image.taro-BLz2WCva.js";
|
|
7
|
+
import { a as AvatarContext, A as AvatarGroup } from "./avatargroup.taro-bpT5kPbf.js";
|
|
8
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { size: "", shape: "round", icon: "", fit: "cover", background: "#eee", color: "#666", src: "", alt: "" });
|
|
10
|
+
const classPrefix = `nut-avatar`;
|
|
11
|
+
const Avatar = (props) => {
|
|
12
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
13
|
+
const _q = Object.assign(Object.assign({}, defaultProps), props), { children, size, shape, background, color, src, icon, fit, alt, className, style, onClick, onError } = _q, rest = __rest(_q, ["children", "size", "shape", "background", "color", "src", "icon", "fit", "alt", "className", "style", "onClick", "onError"]);
|
|
14
|
+
const [maxSum, setMaxSum] = useState(0);
|
|
15
|
+
const [showMax, setShowMax] = useState(false);
|
|
16
|
+
const [avatarIndex, setAvatarIndex] = useState(1);
|
|
17
|
+
const avatarRef = useRef(null);
|
|
18
|
+
const parent = useContext(AvatarContext);
|
|
19
|
+
const sizeValue = ["large", "normal", "small"];
|
|
20
|
+
const classes = classNames({
|
|
21
|
+
[`nut-avatar-${((_a = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _a === void 0 ? void 0 : _a.size) || size || "normal"}`]: true,
|
|
22
|
+
[`nut-avatar-${((_b = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _b === void 0 ? void 0 : _b.shape) || shape}`]: true
|
|
23
|
+
});
|
|
24
|
+
const cls = classNames(classPrefix, classes, className);
|
|
25
|
+
const styles = Object.assign({ width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`, height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`, backgroundColor: `${background}`, color, marginLeft: avatarIndex !== 1 && ((_c = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _c === void 0 ? void 0 : _c.gap) ? `${(_d = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _d === void 0 ? void 0 : _d.gap}px` : "", zIndex: ((_e = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _e === void 0 ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "" }, style);
|
|
26
|
+
const maxStyles = {
|
|
27
|
+
backgroundColor: `${(_f = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _f === void 0 ? void 0 : _f.maxBackground}`,
|
|
28
|
+
color: `${(_g = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _g === void 0 ? void 0 : _g.maxColor}`
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
var _a2;
|
|
32
|
+
const avatarChildren = (_a2 = parent === null || parent === void 0 ? void 0 : parent.avatarGroupRef) === null || _a2 === void 0 ? void 0 : _a2.current.children;
|
|
33
|
+
if (avatarChildren) {
|
|
34
|
+
avatarLength(avatarChildren);
|
|
35
|
+
}
|
|
36
|
+
}, []);
|
|
37
|
+
const isAvatarInClassList = (element) => {
|
|
38
|
+
var _a2, _b2;
|
|
39
|
+
if (getEnv() === Taro.ENV_TYPE.WEB) {
|
|
40
|
+
return element.classList[0] === "nut-avatar" || element.classList.values().next().value === "nut-avatar";
|
|
41
|
+
}
|
|
42
|
+
return ((_a2 = element.classList) === null || _a2 === void 0 ? void 0 : _a2.tokenList[0]) === "nut-avatar" || ((_b2 = element.classList) === null || _b2 === void 0 ? void 0 : _b2.tokenList.values().next().value) === "nut-avatar";
|
|
43
|
+
};
|
|
44
|
+
const avatarLength = (children2) => {
|
|
45
|
+
var _a2, _b2, _c2;
|
|
46
|
+
for (let i = 0; i < children2.length; i++) {
|
|
47
|
+
if (children2[i] && children2[i].classList && isAvatarInClassList(children2[i])) {
|
|
48
|
+
children2[i].setAttribute("data-index", i + 1);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const index = (_b2 = (_a2 = avatarRef === null || avatarRef === void 0 ? void 0 : avatarRef.current) === null || _a2 === void 0 ? void 0 : _a2.dataset) === null || _b2 === void 0 ? void 0 : _b2.index;
|
|
52
|
+
const maxCount = (_c2 = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _c2 === void 0 ? void 0 : _c2.max;
|
|
53
|
+
setMaxSum(children2.length);
|
|
54
|
+
setAvatarIndex(index);
|
|
55
|
+
if (index === children2.length && index !== maxCount && children2.length > maxCount) {
|
|
56
|
+
setShowMax(true);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const errorEvent = () => {
|
|
60
|
+
if (props.onError) {
|
|
61
|
+
props.onError();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const clickAvatar = (e) => {
|
|
65
|
+
onClick && onClick(e);
|
|
66
|
+
};
|
|
67
|
+
return React__default.createElement(React__default.Fragment, null, (showMax || !((_h = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _h === void 0 ? void 0 : _h.max) || avatarIndex <= ((_j = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _j === void 0 ? void 0 : _j.max)) && React__default.createElement(
|
|
68
|
+
"div",
|
|
69
|
+
Object.assign({ className: cls }, rest, { style: !showMax ? styles : maxStyles, onClick: clickAvatar, ref: avatarRef }),
|
|
70
|
+
(!((_k = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _k === void 0 ? void 0 : _k.max) || avatarIndex <= ((_l = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _l === void 0 ? void 0 : _l.max)) && React__default.createElement(
|
|
71
|
+
React__default.Fragment,
|
|
72
|
+
null,
|
|
73
|
+
src && React__default.createElement(Image, { className: "avatar-img", src, style: { objectFit: fit }, onError: errorEvent }),
|
|
74
|
+
React__default.isValidElement(icon) ? React__default.cloneElement(icon, Object.assign(Object.assign({}, icon.props), { className: `${icon.props.className || ""} icon` })) : null,
|
|
75
|
+
children && React__default.createElement("span", { className: "text" }, children),
|
|
76
|
+
!src && !icon && !children && React__default.createElement(User, { className: "icon" })
|
|
77
|
+
),
|
|
78
|
+
showMax && React__default.createElement("div", { className: "text" }, ((_m = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _m === void 0 ? void 0 : _m.maxContent) ? (_o = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _o === void 0 ? void 0 : _o.maxContent : `+ ${avatarIndex - Number(((_p = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _p === void 0 ? void 0 : _p.max) || 0)}`)
|
|
79
|
+
));
|
|
80
|
+
};
|
|
81
|
+
Avatar.defaultProps = defaultProps;
|
|
82
|
+
Avatar.displayName = "NutAvatar";
|
|
83
|
+
Avatar.Group = AvatarGroup;
|
|
84
|
+
export {
|
|
85
|
+
Avatar as A
|
|
86
|
+
};
|