@nutui/nutui-react-taro 2.3.11 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -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/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- package/dist/esm/Checkbox.js +1 -7
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- 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/style/style.css +1 -1
- package/dist/esm/Collapse.js +1 -8
- package/dist/esm/CollapseItem/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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/style/style.css +1 -1
- package/dist/esm/Tabbar.js +1 -8
- package/dist/esm/TabbarItem/style/style.css +1 -1
- 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/style/style.css +1 -1
- 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-CgkCHDYZ.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-D7Yn5zJi.js} +8 -16
- 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-BMp2mI0W.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-CUpF7Afr.js} +40 -32
- 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-D-H9erkV.js} +9 -19
- package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DqR52Ivo.js} +14 -26
- package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-Dk0QQMn_.js} +31 -23
- 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-CQiAPZgS.js} +17 -28
- 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-CRPbZenq.js} +40 -51
- 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-BsOaXoWp.js} +29 -45
- 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-LAPQoOva.js} +7 -18
- package/dist/esm/tabbaritem.taro-C4AZbQMG.js +58 -0
- package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-ClLmfqz3.js} +14 -24
- package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
- package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-DRmZR3Xu.js} +19 -35
- 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-BVXqvjNJ.js} +9 -27
- package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-wfXuUebD.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/cell/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/cell/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/cell/demos/h5/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/checkboxgroup/context.d.ts +1 -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/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +3 -3
- package/dist/esm/types/src/packages/dialog/index.d.ts +1 -1
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/types.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -12
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -12
- package/dist/esm/types/src/packages/popover/types.d.ts +14 -0
- package/dist/esm/types/src/packages/table/useTableSticky.d.ts +1 -1
- package/dist/esm/types/src/packages/toast/toast.taro.d.ts +7 -3
- package/dist/esm/types/src/packages/tour/tour.d.ts +1 -1
- package/dist/esm/types/src/packages/tour/tour.taro.d.ts +1 -1
- package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-DdJ-sOK4.js} +49 -101
- 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-Cl08vfdg.js} +10 -19
- 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 +403 -382
- package/dist/nutui.react.umd.js +404 -383
- package/dist/packages/animatingnumbers/countup.scss +1 -0
- package/dist/packages/badge/badge.scss +2 -0
- package/dist/packages/checkbox/checkbox.scss +19 -0
- package/dist/packages/checkboxgroup/checkboxgroup.scss +25 -0
- package/dist/packages/collapseitem/collapseitem.scss +1 -6
- package/dist/packages/dialog/dialog.scss +8 -1
- package/dist/packages/noticebar/noticebar.scss +19 -1
- package/dist/packages/popover/popover.scss +21 -0
- package/dist/packages/swipe/swipe.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +17 -0
- package/dist/styles/variables.scss +19 -12
- package/dist/types/packages/badge/badge.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/cell/demos/h5/demo1.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo2.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo3.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo4.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo5.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo6.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo7.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo1.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo2.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo3.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo4.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo5.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo6.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo7.d.ts +3 -0
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
- package/dist/types/packages/checkboxgroup/context.d.ts +1 -0
- 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/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +3 -3
- package/dist/types/packages/dialog/index.d.ts +1 -1
- package/dist/types/packages/empty/empty.taro.d.ts +15 -3
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +6 -0
- package/dist/types/packages/noticebar/index.d.ts +1 -0
- package/dist/types/packages/noticebar/noticebar.d.ts +2 -0
- package/dist/types/packages/noticebar/noticebar.taro.d.ts +6 -0
- package/dist/types/packages/noticebar/types.d.ts +1 -0
- package/dist/types/packages/popover/index.d.ts +2 -1
- package/dist/types/packages/popover/index.taro.d.ts +2 -1
- package/dist/types/packages/popover/popover.d.ts +2 -12
- package/dist/types/packages/popover/popover.taro.d.ts +2 -12
- package/dist/types/packages/popover/types.d.ts +14 -0
- package/dist/types/packages/table/useTableSticky.d.ts +1 -1
- package/dist/types/packages/toast/toast.taro.d.ts +8 -4
- 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,27 +1,12 @@
|
|
|
1
1
|
import React__default, { useState } from "react";
|
|
2
2
|
import { Close } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { C as ComponentDefaults } from "./typings-
|
|
5
|
-
const defaultProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
background: "",
|
|
9
|
-
color: "",
|
|
10
|
-
plain: false,
|
|
11
|
-
round: false,
|
|
12
|
-
mark: false,
|
|
13
|
-
closeable: false,
|
|
14
|
-
closeIcon: null,
|
|
15
|
-
onClose: (e) => {
|
|
16
|
-
},
|
|
17
|
-
onClick: (e) => {
|
|
18
|
-
}
|
|
19
|
-
};
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "default", background: "", color: "", plain: false, round: false, mark: false, closeable: false, closeIcon: null, onClose: (e) => {
|
|
6
|
+
}, onClick: (e) => {
|
|
7
|
+
} });
|
|
20
8
|
const Tag = (props) => {
|
|
21
|
-
const { className, style, background, plain, type, round, children, mark, closeable, closeIcon, color, onClick, onClose } = {
|
|
22
|
-
...defaultProps,
|
|
23
|
-
...props
|
|
24
|
-
};
|
|
9
|
+
const { className, style, background, plain, type, round, children, mark, closeable, closeIcon, color, onClick, onClose } = Object.assign(Object.assign({}, defaultProps), props);
|
|
25
10
|
const [visible, setVisible] = useState(true);
|
|
26
11
|
const classPrefix = "nut-tag";
|
|
27
12
|
const classes = classNames({
|
|
@@ -52,7 +37,7 @@ const Tag = (props) => {
|
|
|
52
37
|
};
|
|
53
38
|
return React__default.createElement(React__default.Fragment, null, closeable ? visible && React__default.createElement(
|
|
54
39
|
"div",
|
|
55
|
-
{ className: classes, style: {
|
|
40
|
+
{ className: classes, style: Object.assign(Object.assign({}, style), getStyle()), onClick: (e) => handleClick(e) },
|
|
56
41
|
children && React__default.createElement("span", { className: `${classPrefix}-text` }, children),
|
|
57
42
|
React__default.isValidElement(closeIcon) ? React__default.createElement("i", { className: `${classPrefix}-custom-icon`, onClick: (e) => {
|
|
58
43
|
setVisible(false);
|
|
@@ -61,7 +46,7 @@ const Tag = (props) => {
|
|
|
61
46
|
setVisible(false);
|
|
62
47
|
onClose && onClose(e);
|
|
63
48
|
} })
|
|
64
|
-
) : React__default.createElement("div", { className: classes, style: {
|
|
49
|
+
) : React__default.createElement("div", { className: classes, style: Object.assign(Object.assign({}, style), getStyle()), onClick: (e) => handleClick(e) }, children && React__default.createElement("span", { className: `${classPrefix}-text` }, children)));
|
|
65
50
|
};
|
|
66
51
|
Tag.defaultProps = defaultProps;
|
|
67
52
|
Tag.displayName = "NutTag";
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useRef } from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import Taro from "@tarojs/taro";
|
|
4
5
|
import { Textarea } from "@tarojs/components";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
8
|
-
const defaultProps = {
|
|
9
|
-
...ComponentDefaults,
|
|
10
|
-
defaultValue: "",
|
|
11
|
-
showCount: false,
|
|
12
|
-
maxLength: 140,
|
|
13
|
-
placeholder: "",
|
|
14
|
-
readOnly: false,
|
|
15
|
-
disabled: false,
|
|
16
|
-
autoSize: false
|
|
17
|
-
};
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
|
+
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, maxLength: 140, placeholder: "", readOnly: false, disabled: false, autoSize: false });
|
|
18
10
|
const TextArea = (props) => {
|
|
19
11
|
const { locale } = useConfig();
|
|
20
|
-
const { className, value, defaultValue, showCount, maxLength, rows, placeholder, readOnly, disabled, autoSize, style, onChange, onBlur, onFocus,
|
|
12
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { className, value, defaultValue, showCount, maxLength, rows, placeholder, readOnly, disabled, autoSize, style, onChange, onBlur, onFocus } = _a, rest = __rest(_a, ["className", "value", "defaultValue", "showCount", "maxLength", "rows", "placeholder", "readOnly", "disabled", "autoSize", "style", "onChange", "onBlur", "onFocus"]);
|
|
21
13
|
const classPrefix = "nut-textarea";
|
|
22
14
|
const compositionRef = useRef(false);
|
|
23
15
|
const format = (value2) => {
|
|
@@ -33,8 +25,8 @@ const TextArea = (props) => {
|
|
|
33
25
|
onChange
|
|
34
26
|
});
|
|
35
27
|
const handleChange = (event) => {
|
|
36
|
-
var
|
|
37
|
-
const text = (
|
|
28
|
+
var _a2;
|
|
29
|
+
const text = (_a2 = event === null || event === void 0 ? void 0 : event.detail) === null || _a2 === void 0 ? void 0 : _a2.value;
|
|
38
30
|
if (text) {
|
|
39
31
|
const value2 = compositionRef.current ? text : format(text);
|
|
40
32
|
setInputValue(value2);
|
|
@@ -61,7 +53,7 @@ const TextArea = (props) => {
|
|
|
61
53
|
{ className: classNames(classPrefix, {
|
|
62
54
|
[`${classPrefix}-disabled`]: disabled
|
|
63
55
|
}, className) },
|
|
64
|
-
React__default.createElement(Textarea, {
|
|
56
|
+
React__default.createElement(Textarea, Object.assign({
|
|
65
57
|
nativeProps: {
|
|
66
58
|
style,
|
|
67
59
|
readOnly,
|
|
@@ -83,9 +75,8 @@ const TextArea = (props) => {
|
|
|
83
75
|
onFocus: (e) => handleFocus(e),
|
|
84
76
|
autoHeight: autoSize,
|
|
85
77
|
maxlength: maxLength,
|
|
86
|
-
placeholder: placeholder || locale.placeholder
|
|
87
|
-
|
|
88
|
-
}),
|
|
78
|
+
placeholder: placeholder || locale.placeholder
|
|
79
|
+
}, rest)),
|
|
89
80
|
showCount && React__default.createElement(
|
|
90
81
|
"div",
|
|
91
82
|
{ className: `${classPrefix}-limit` },
|
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
import React__default, { useMemo, useCallback } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
valueKey: "value",
|
|
11
|
-
textKey: "text",
|
|
12
|
-
childrenKey: "children"
|
|
13
|
-
},
|
|
14
|
-
onSelect: () => {
|
|
15
|
-
}
|
|
16
|
-
};
|
|
3
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeDate: "", activeTime: [], options: [], optionKey: {
|
|
5
|
+
valueKey: "value",
|
|
6
|
+
textKey: "text",
|
|
7
|
+
childrenKey: "children"
|
|
8
|
+
}, onSelect: () => {
|
|
9
|
+
} });
|
|
17
10
|
const TimeDetail = (props) => {
|
|
18
|
-
const { options, optionKey, className, activeDate, activeTime, onSelect } = {
|
|
19
|
-
...defaultProps,
|
|
20
|
-
...props
|
|
21
|
-
};
|
|
11
|
+
const { options, optionKey, className, activeDate, activeTime, onSelect } = Object.assign(Object.assign({}, defaultProps), props);
|
|
22
12
|
const classPrefix = "nut-timedetail";
|
|
23
13
|
const timeList = useMemo(() => {
|
|
24
|
-
return (options
|
|
14
|
+
return (options === null || options === void 0 ? void 0 : options.find((item) => item[optionKey.valueKey] === activeDate)) || {
|
|
25
15
|
[optionKey.childrenKey]: []
|
|
26
16
|
};
|
|
27
17
|
}, [options, optionKey, activeDate]);
|
|
@@ -29,8 +19,8 @@ const TimeDetail = (props) => {
|
|
|
29
19
|
const date = activeTime.find((item) => {
|
|
30
20
|
return item[optionKey.valueKey] === activeDate;
|
|
31
21
|
});
|
|
32
|
-
if (date
|
|
33
|
-
const time = date
|
|
22
|
+
if (date === null || date === void 0 ? void 0 : date[optionKey.childrenKey]) {
|
|
23
|
+
const time = date === null || date === void 0 ? void 0 : date[optionKey.childrenKey].find((time2) => {
|
|
34
24
|
return time2[optionKey.valueKey] === timeKey;
|
|
35
25
|
});
|
|
36
26
|
return time;
|
|
@@ -1,32 +1,23 @@
|
|
|
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 { P as Popup } from "./popup.taro-
|
|
4
|
-
import { T as TimeDetail } from "./timedetail.taro-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
-
const defaultProps = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
options: [],
|
|
13
|
-
optionKey: {
|
|
14
|
-
valueKey: "value",
|
|
15
|
-
textKey: "text",
|
|
16
|
-
childrenKey: "children"
|
|
17
|
-
}
|
|
18
|
-
};
|
|
4
|
+
import { P as Popup } from "./popup.taro-Iy_WQZ-m.js";
|
|
5
|
+
import { T as TimeDetail } from "./timedetail.taro-x6Zey1xi.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, multiple: false, defaultValue: [], options: [], optionKey: {
|
|
9
|
+
valueKey: "value",
|
|
10
|
+
textKey: "text",
|
|
11
|
+
childrenKey: "children"
|
|
12
|
+
} });
|
|
19
13
|
const TimeSelect = (props) => {
|
|
20
14
|
const { locale } = useConfig();
|
|
21
|
-
const { visible, className, style, title, defaultValue, options, optionKey, multiple, onSelect, onDateChange, onTimeChange,
|
|
22
|
-
...defaultProps,
|
|
23
|
-
...props
|
|
24
|
-
};
|
|
15
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { visible, className, style, title, defaultValue, options, optionKey, multiple, onSelect, onDateChange, onTimeChange } = _a, rest = __rest(_a, ["visible", "className", "style", "title", "defaultValue", "options", "optionKey", "multiple", "onSelect", "onDateChange", "onTimeChange"]);
|
|
25
16
|
const [activeDate, setActiveDate] = useState(() => {
|
|
26
|
-
if (defaultValue
|
|
17
|
+
if (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) {
|
|
27
18
|
return defaultValue[0][optionKey.valueKey];
|
|
28
19
|
}
|
|
29
|
-
if (options
|
|
20
|
+
if (options === null || options === void 0 ? void 0 : options.length) {
|
|
30
21
|
return options[0][optionKey.valueKey];
|
|
31
22
|
}
|
|
32
23
|
return "";
|
|
@@ -52,31 +43,31 @@ const TimeSelect = (props) => {
|
|
|
52
43
|
newActiveTime = [];
|
|
53
44
|
}
|
|
54
45
|
} else if (multiple) {
|
|
55
|
-
date[optionKey.childrenKey].push({
|
|
46
|
+
date[optionKey.childrenKey].push(Object.assign({}, selectTime));
|
|
56
47
|
} else {
|
|
57
48
|
newActiveTime = [
|
|
58
49
|
{
|
|
59
50
|
[optionKey.valueKey]: activeDate,
|
|
60
|
-
[optionKey.childrenKey]: [{
|
|
51
|
+
[optionKey.childrenKey]: [Object.assign({}, selectTime)]
|
|
61
52
|
}
|
|
62
53
|
];
|
|
63
54
|
}
|
|
64
55
|
} else if (multiple) {
|
|
65
56
|
newActiveTime.push({
|
|
66
57
|
[optionKey.valueKey]: activeDate,
|
|
67
|
-
[optionKey.childrenKey]: [{
|
|
58
|
+
[optionKey.childrenKey]: [Object.assign({}, selectTime)]
|
|
68
59
|
});
|
|
69
60
|
} else {
|
|
70
61
|
newActiveTime = [
|
|
71
62
|
{
|
|
72
63
|
[optionKey.valueKey]: activeDate,
|
|
73
|
-
[optionKey.childrenKey]: [{
|
|
64
|
+
[optionKey.childrenKey]: [Object.assign({}, selectTime)]
|
|
74
65
|
}
|
|
75
66
|
];
|
|
76
67
|
}
|
|
77
68
|
newActiveTime = newActiveTime.filter((item) => {
|
|
78
|
-
var
|
|
79
|
-
return ((
|
|
69
|
+
var _a2;
|
|
70
|
+
return ((_a2 = item[optionKey.childrenKey]) === null || _a2 === void 0 ? void 0 : _a2.length) > 0;
|
|
80
71
|
});
|
|
81
72
|
setActiveTime(newActiveTime);
|
|
82
73
|
onTimeChange && onTimeChange(selectTime, newActiveTime);
|
|
@@ -87,11 +78,7 @@ const TimeSelect = (props) => {
|
|
|
87
78
|
};
|
|
88
79
|
return React__default.createElement(
|
|
89
80
|
Popup,
|
|
90
|
-
{ closeable: true, round: true, visible, position: "bottom", title: title || locale.timeselect.pickupTime, style: {
|
|
91
|
-
width: "100%",
|
|
92
|
-
height: "20%",
|
|
93
|
-
...style
|
|
94
|
-
}, onClose: closeFun, ...rest },
|
|
81
|
+
Object.assign({ closeable: true, round: true, visible, position: "bottom", title: title || locale.timeselect.pickupTime, style: Object.assign({ width: "100%", height: "20%" }, style), onClose: closeFun }, rest),
|
|
95
82
|
React__default.createElement(
|
|
96
83
|
"div",
|
|
97
84
|
{ className: classNames(classPrefix, className) },
|
|
@@ -1,40 +1,22 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-react-taro";
|
|
4
|
-
import { O as Overlay } from "./overlay.taro-
|
|
5
|
-
import { C as ComponentDefaults } from "./typings-
|
|
6
|
-
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
8
|
-
const defaultProps = {
|
|
9
|
-
|
|
10
|
-
id: "",
|
|
11
|
-
icon: null,
|
|
12
|
-
iconSize: "20",
|
|
13
|
-
msg: "",
|
|
14
|
-
duration: 2,
|
|
15
|
-
position: "center",
|
|
16
|
-
type: "text",
|
|
17
|
-
title: "",
|
|
18
|
-
closeOnOverlayClick: false,
|
|
19
|
-
lockScroll: false,
|
|
20
|
-
contentClassName: "",
|
|
21
|
-
size: "base",
|
|
22
|
-
visible: false,
|
|
23
|
-
wordBreak: "break-all",
|
|
24
|
-
onClose: () => {
|
|
25
|
-
}
|
|
26
|
-
// 未实现
|
|
27
|
-
};
|
|
4
|
+
import { O as Overlay } from "./overlay.taro-BaBu-3-F.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
|
+
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
8
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { id: "", icon: null, iconSize: "20", content: "", msg: "", duration: 2, position: "center", type: "text", title: "", closeOnOverlayClick: false, lockScroll: false, contentClassName: "", size: "base", visible: false, wordBreak: "break-all", onClose: () => {
|
|
9
|
+
} });
|
|
28
10
|
const classPrefix = "nut-toast";
|
|
29
11
|
const Toast = (props) => {
|
|
30
|
-
const { params: { id, position, contentStyle, icon, iconSize, msg, duration, type, title, closeOnOverlayClick, lockScroll, contentClassName, visible, size, className, style, onClose, wordBreak }, setParams } = useParams({
|
|
12
|
+
const { params: { id, position, contentStyle, icon, iconSize, content, msg, duration, type, title, closeOnOverlayClick, lockScroll, contentClassName, visible, size, className, style, onClose, wordBreak }, setParams } = useParams(Object.assign(Object.assign({}, defaultProps), props));
|
|
31
13
|
const timer = useRef(-1);
|
|
32
14
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
33
15
|
value: visible,
|
|
34
16
|
defaultValue: void 0,
|
|
35
17
|
finalValue: false,
|
|
36
18
|
onChange: (v) => {
|
|
37
|
-
!v && (onClose
|
|
19
|
+
!v && (onClose === null || onClose === void 0 ? void 0 : onClose());
|
|
38
20
|
}
|
|
39
21
|
});
|
|
40
22
|
useEffect(() => {
|
|
@@ -113,7 +95,7 @@ const Toast = (props) => {
|
|
|
113
95
|
{ className: `${classPrefix}-inner ${classPrefix}-${position} ${contentClassName} ${wordBreak}`, style: contentStyle },
|
|
114
96
|
hasIcon() ? React__default.createElement("p", { className: `${classPrefix}-icon-wrapper` }, iconName()) : null,
|
|
115
97
|
title ? React__default.createElement("div", { className: `${classPrefix}-title` }, title) : null,
|
|
116
|
-
React__default.createElement("span", { className: `${classPrefix}-text` }, msg)
|
|
98
|
+
React__default.createElement("span", { className: `${classPrefix}-text` }, content || msg)
|
|
117
99
|
)
|
|
118
100
|
)
|
|
119
101
|
) : null);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useState, useEffect } from "react";
|
|
2
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
3
4
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-BsOaXoWp.js";
|
|
5
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
6
|
-
import { C as ComponentDefaults } from "./typings-
|
|
7
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
8
|
import { useConfig } from "./ConfigProvider.js";
|
|
8
9
|
const getTaroRectById = (id) => {
|
|
9
10
|
return new Promise((resolve, reject) => {
|
|
10
11
|
if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
|
|
11
12
|
const t = document ? document.querySelector(`#${id}`) : "";
|
|
12
13
|
if (t) {
|
|
13
|
-
resolve(t
|
|
14
|
+
resolve(t === null || t === void 0 ? void 0 : t.getBoundingClientRect());
|
|
14
15
|
}
|
|
15
16
|
reject();
|
|
16
17
|
} else {
|
|
@@ -25,29 +26,11 @@ const getTaroRectById = (id) => {
|
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
};
|
|
28
|
-
const defaultProps = {
|
|
29
|
-
...ComponentDefaults,
|
|
30
|
-
visible: false,
|
|
31
|
-
type: "step",
|
|
32
|
-
location: "bottom",
|
|
33
|
-
mask: true,
|
|
34
|
-
maskWidth: "",
|
|
35
|
-
maskHeight: "",
|
|
36
|
-
offset: [8, 10],
|
|
37
|
-
title: "",
|
|
38
|
-
next: "",
|
|
39
|
-
prev: "",
|
|
40
|
-
complete: "",
|
|
41
|
-
showPrev: true,
|
|
42
|
-
closeOnOverlayClick: true
|
|
43
|
-
};
|
|
29
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, type: "step", location: "bottom", mask: true, maskWidth: "", maskHeight: "", offset: [8, 10], title: "", next: "", prev: "", complete: "", showPrev: true, closeOnOverlayClick: true });
|
|
44
30
|
const classPrefix = "nut-tour";
|
|
45
31
|
const Tour = (props) => {
|
|
46
32
|
const { locale } = useConfig();
|
|
47
|
-
const { children, className, title, closeOnOverlayClick, showPrev, list, type, location, visible, mask, maskWidth, maskHeight, offset, next, prev, complete, onClose, onChange,
|
|
48
|
-
...defaultProps,
|
|
49
|
-
...props
|
|
50
|
-
};
|
|
33
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, className, title, closeOnOverlayClick, showPrev, list, type, location, visible, mask, maskWidth, maskHeight, offset, next, prev, complete, onClose, onChange } = _a, rest = __rest(_a, ["children", "className", "title", "closeOnOverlayClick", "showPrev", "list", "type", "location", "visible", "mask", "maskWidth", "maskHeight", "offset", "next", "prev", "complete", "onClose", "onChange"]);
|
|
51
34
|
const [showTour, setShowTour] = useState(false);
|
|
52
35
|
const [showPopup, setShowPopup] = useState(false);
|
|
53
36
|
const [active, setActive] = useState(0);
|
|
@@ -120,7 +103,7 @@ const Tour = (props) => {
|
|
|
120
103
|
};
|
|
121
104
|
return React__default.createElement(
|
|
122
105
|
"div",
|
|
123
|
-
{ className: classes,
|
|
106
|
+
Object.assign({ className: classes }, rest),
|
|
124
107
|
React__default.createElement("div", { className: "nut-tour-masked", style: { display: showTour ? "block" : "none" }, onClick: handleClickMask }),
|
|
125
108
|
list.map((item, index) => {
|
|
126
109
|
return React__default.createElement("div", { key: index, style: { height: 0 } }, index === active && React__default.createElement(
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
+
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
1
2
|
import React__default, { useRef } from "react";
|
|
2
3
|
import { TriangleUp, TriangleDown } from "@nutui/icons-react-taro";
|
|
3
|
-
import { C as ComponentDefaults } from "./typings-
|
|
4
|
-
const defaultProps = {
|
|
5
|
-
...ComponentDefaults,
|
|
6
|
-
value: 0,
|
|
7
|
-
digits: 2,
|
|
8
|
-
symbol: false,
|
|
9
|
-
zero: false,
|
|
10
|
-
left: false,
|
|
11
|
-
sync: true,
|
|
12
|
-
color: "#333",
|
|
13
|
-
riseColor: "var(--nutui-brand-6)",
|
|
14
|
-
dropColor: "var(--nutui-secondary-1)",
|
|
15
|
-
riseIcon: null,
|
|
16
|
-
dropIcon: null
|
|
17
|
-
};
|
|
4
|
+
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: 0, digits: 2, symbol: false, zero: false, left: false, sync: true, color: "#333", riseColor: "var(--nutui-brand-6)", dropColor: "var(--nutui-secondary-1)", riseIcon: null, dropIcon: null });
|
|
18
6
|
const TrendArrow = (props) => {
|
|
19
|
-
const { value, digits, symbol, zero, left, sync, color, riseColor, dropColor, riseIcon, dropIcon, className, style, children,
|
|
7
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { value, digits, symbol, zero, left, sync, color, riseColor, dropColor, riseIcon, dropIcon, className, style, children } = _a, rest = __rest(_a, ["value", "digits", "symbol", "zero", "left", "sync", "color", "riseColor", "dropColor", "riseIcon", "dropIcon", "className", "style", "children"]);
|
|
20
8
|
const classPrefix = "nut-trendarrow";
|
|
21
9
|
const rateTrend = useRef(value > 0);
|
|
22
10
|
const myFixed = (num, digit = 2) => {
|
|
@@ -24,7 +12,7 @@ const TrendArrow = (props) => {
|
|
|
24
12
|
return console.warn(`传入的值:${num}不是一个数字`);
|
|
25
13
|
}
|
|
26
14
|
num = parseFloat(num);
|
|
27
|
-
const numPow = 10
|
|
15
|
+
const numPow = Math.pow(10, digit);
|
|
28
16
|
return (Math.round((num + Number.EPSILON) * numPow) / numPow).toFixed(digit);
|
|
29
17
|
};
|
|
30
18
|
const calcStyle = (() => {
|
|
@@ -57,7 +45,7 @@ const TrendArrow = (props) => {
|
|
|
57
45
|
};
|
|
58
46
|
return React__default.createElement(
|
|
59
47
|
"div",
|
|
60
|
-
{ className: `${classPrefix} ${className}`, style,
|
|
48
|
+
Object.assign({ className: `${classPrefix} ${className}`, style }, rest),
|
|
61
49
|
!left && renderContent(!left),
|
|
62
50
|
Number(value) !== 0 && React__default.createElement(React__default.Fragment, null, rateTrend.current ? React__default.createElement(React__default.Fragment, null, riseIcon || React__default.createElement(TriangleUp, { color: calcIconProps.color })) : React__default.createElement(React__default.Fragment, null, dropIcon || React__default.createElement(TriangleDown, { color: calcIconProps.color }))),
|
|
63
51
|
left && renderContent(!left)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function __rest(s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) {
|
|
15
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
16
|
+
resolve(value);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
20
|
+
function fulfilled(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator.next(value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function rejected(value) {
|
|
28
|
+
try {
|
|
29
|
+
step(generator["throw"](value));
|
|
30
|
+
} catch (e) {
|
|
31
|
+
reject(e);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function step(result) {
|
|
35
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
36
|
+
}
|
|
37
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
41
|
+
var e = new Error(message);
|
|
42
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
__rest as _,
|
|
46
|
+
__awaiter as a
|
|
47
|
+
};
|