@nutui/nutui-react 3.0.0-beta.12 → 3.0.0-beta.13
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/dist/cjs/{utils → hooks}/use-click-away.js +2 -2
- package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
- package/dist/cjs/{utils → hooks}/use-lock-scroll.js +2 -2
- package/dist/cjs/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/address.js +1 -1
- package/dist/cjs/packages/address/customRender.d.ts +1 -1
- package/dist/cjs/packages/animate/animate.d.ts +1 -1
- package/dist/cjs/packages/animate/animate.js +5 -6
- package/dist/cjs/packages/animate/style/animate.scss +63 -105
- package/dist/cjs/packages/animate/style/style.css +45 -44
- package/dist/cjs/packages/animatingnumbers/countup.d.ts +1 -1
- package/dist/cjs/packages/audio/audio.d.ts +1 -1
- package/dist/cjs/packages/avatar/avatar.d.ts +2 -2
- package/dist/cjs/packages/avatarcropper/avatarcropper.d.ts +1 -1
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +2 -2
- package/dist/cjs/packages/avatargroup/avatargroup.d.ts +1 -1
- package/dist/cjs/packages/backtop/backtop.d.ts +1 -1
- package/dist/cjs/packages/badge/badge.js +13 -15
- package/dist/cjs/packages/badge/types.d.ts +1 -1
- package/dist/cjs/packages/barrage/barrage.d.ts +1 -1
- package/dist/cjs/packages/button/button.d.ts +1 -1
- package/dist/cjs/packages/calendar/style/calendar.scss +25 -31
- package/dist/cjs/packages/calendar/style/style.css +14 -20
- package/dist/cjs/packages/calendarcard/calendarcard.d.ts +1 -1
- package/dist/cjs/packages/calendarcard/calendarcard.js +1 -1
- package/dist/cjs/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/cjs/packages/calendaritem/calendaritem.js +1 -1
- package/dist/cjs/packages/card/card.d.ts +1 -1
- package/dist/cjs/packages/cascader/cascader.d.ts +1 -1
- package/dist/cjs/packages/cascader/cascader.js +1 -1
- package/dist/cjs/packages/cell/cell.d.ts +1 -1
- package/dist/cjs/packages/cell/types.d.ts +1 -1
- package/dist/cjs/packages/cellgroup/cellgroup.d.ts +1 -1
- package/dist/cjs/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/cjs/packages/checkbox/checkbox.js +1 -1
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +1 -1
- package/dist/cjs/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/cjs/packages/col/col.d.ts +1 -1
- package/dist/cjs/packages/collapse/collapse.d.ts +1 -1
- package/dist/cjs/packages/collapse/collapse.js +1 -1
- package/dist/cjs/packages/collapseitem/collapseitem.d.ts +1 -1
- package/dist/cjs/packages/configprovider/configprovider.d.ts +2 -2
- package/dist/cjs/packages/configprovider/configprovider.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/cjs/packages/datepicker/datepicker.js +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +2 -2
- package/dist/cjs/packages/dialog/types.d.ts +2 -2
- package/dist/cjs/packages/divider/divider.d.ts +1 -1
- package/dist/cjs/packages/drag/drag.d.ts +1 -1
- package/dist/cjs/packages/elevator/elevator.d.ts +1 -1
- package/dist/cjs/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
- package/dist/cjs/packages/empty/empty.d.ts +1 -1
- package/dist/cjs/packages/fixednav/types.d.ts +1 -1
- package/dist/cjs/packages/form/form.d.ts +2 -2
- package/dist/cjs/packages/form/index.d.ts +1 -1
- package/dist/cjs/packages/formitem/formitem.d.ts +1 -1
- package/dist/cjs/packages/griditem/griditem.d.ts +1 -1
- package/dist/cjs/packages/hoverbutton/hoverbutton.d.ts +2 -2
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.d.ts +1 -1
- package/dist/cjs/packages/image/image.d.ts +4 -3
- package/dist/cjs/packages/imagepreview/imagepreview.d.ts +1 -1
- package/dist/cjs/packages/imagepreview/imagepreview.js +1 -1
- package/dist/cjs/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/dist/cjs/packages/input/input.d.ts +1 -1
- package/dist/cjs/packages/input/input.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.d.ts +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
- package/dist/cjs/packages/loading/types.d.ts +1 -1
- package/dist/cjs/packages/lottie/types.d.ts +1 -1
- package/dist/cjs/packages/menu/menu.d.ts +2 -2
- package/dist/cjs/packages/menuitem/menuitem.d.ts +1 -1
- package/dist/cjs/packages/menuitem/menuitem.js +2 -2
- package/dist/cjs/packages/navbar/navbar.d.ts +1 -1
- package/dist/cjs/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/cjs/packages/noticebar/noticebar.js +1 -1
- package/dist/cjs/packages/notify/Notification.d.ts +1 -1
- package/dist/cjs/packages/notify/notify.d.ts +1 -1
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/cjs/packages/nutui.react.build.d.ts +107 -105
- package/dist/cjs/packages/nutui.react.build.js +4 -0
- package/dist/cjs/packages/nutui.react.d.ts +212 -209
- package/dist/cjs/packages/nutui.react.js +5 -0
- package/dist/cjs/packages/nutui.react.scss.d.ts +105 -104
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +1 -1
- package/dist/cjs/packages/overlay/types.d.ts +1 -1
- package/dist/cjs/packages/pagination/pagination.d.ts +1 -1
- package/dist/cjs/packages/pagination/pagination.js +1 -1
- package/dist/cjs/packages/picker/picker.d.ts +2 -2
- package/dist/cjs/packages/picker/picker.js +2 -2
- package/dist/cjs/packages/picker/pickerpanel.js +1 -1
- package/dist/cjs/packages/picker/style/style.css +2 -2
- package/dist/cjs/packages/pickerview/index.d.ts +3 -0
- package/dist/cjs/packages/pickerview/index.js +13 -0
- package/dist/cjs/packages/pickerview/pickerroller.d.ts +7 -0
- package/dist/cjs/packages/pickerview/pickerroller.js +183 -0
- package/dist/cjs/packages/pickerview/pickerview.d.ts +4 -0
- package/dist/cjs/packages/pickerview/pickerview.js +200 -0
- package/dist/cjs/packages/pickerview/style/css.js +1 -0
- package/dist/cjs/packages/pickerview/style/index.js +1 -0
- package/dist/cjs/packages/pickerview/style/pickerview.scss +79 -0
- package/dist/cjs/packages/pickerview/style/style.css +73 -0
- package/dist/cjs/packages/pickerview/types.d.ts +32 -0
- package/dist/cjs/packages/pickerview/types.js +4 -0
- package/dist/cjs/packages/pickerview/utils.d.ts +14 -0
- package/dist/cjs/packages/pickerview/utils.js +46 -0
- package/dist/cjs/packages/popover/popover.d.ts +3 -3
- package/dist/cjs/packages/popover/popover.js +2 -2
- package/dist/cjs/packages/popover/types.d.ts +3 -2
- package/dist/cjs/packages/popup/popup.js +1 -1
- package/dist/cjs/packages/popup/types.d.ts +1 -1
- package/dist/cjs/packages/price/types.d.ts +1 -1
- package/dist/cjs/packages/progress/progress.d.ts +1 -1
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
- package/dist/cjs/packages/radio/radio.d.ts +2 -2
- package/dist/cjs/packages/radio/radio.js +1 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
- package/dist/cjs/packages/range/range.d.ts +1 -1
- package/dist/cjs/packages/range/range.js +3 -3
- package/dist/cjs/packages/rate/rate.js +3 -3
- package/dist/cjs/packages/rate/types.d.ts +1 -1
- package/dist/cjs/packages/resultpage/resultpage.d.ts +1 -1
- package/dist/cjs/packages/row/row.d.ts +1 -1
- package/dist/cjs/packages/safearea/safearea.d.ts +1 -1
- package/dist/cjs/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/cjs/packages/segmented/segmented.js +1 -1
- package/dist/cjs/packages/segmented/types.d.ts +1 -1
- package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
- package/dist/cjs/packages/sidebar/sidebar.d.ts +1 -1
- package/dist/cjs/packages/sidebar/sidebar.js +2 -2
- package/dist/cjs/packages/sidebar/types.d.ts +1 -1
- package/dist/cjs/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/cjs/packages/signature/signature.d.ts +1 -1
- package/dist/cjs/packages/skeleton/skeleton.d.ts +1 -1
- package/dist/cjs/packages/space/space.d.ts +1 -1
- package/dist/cjs/packages/step/step.d.ts +1 -1
- package/dist/cjs/packages/steps/steps.d.ts +1 -1
- package/dist/cjs/packages/sticky/sticky.d.ts +1 -1
- package/dist/cjs/packages/sticky/sticky.js +2 -2
- package/dist/cjs/packages/swipe/swipe.d.ts +1 -1
- package/dist/cjs/packages/swipe/swipe.js +2 -2
- package/dist/cjs/packages/swiper/effects/focus.js +1 -1
- package/dist/cjs/packages/swiper/index.d.ts +2 -2
- package/dist/cjs/packages/swiper/swiper.d.ts +2 -2
- package/dist/cjs/packages/swiper/swiper.js +1 -1
- package/dist/cjs/packages/swiperitem/swiperitem.d.ts +1 -1
- package/dist/cjs/packages/switch/switch.d.ts +1 -1
- package/dist/cjs/packages/switch/switch.js +1 -1
- package/dist/cjs/packages/tabbar/style/style.css +2 -9
- package/dist/cjs/packages/tabbar/tabbar.d.ts +1 -1
- package/dist/cjs/packages/tabbar/tabbar.js +1 -1
- package/dist/cjs/packages/tabbaritem/style/style.css +2 -9
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +2 -10
- package/dist/cjs/packages/tabbaritem/tabbaritem.d.ts +1 -1
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +6 -5
- package/dist/cjs/packages/table/table.js +1 -1
- package/dist/cjs/packages/table/types.d.ts +1 -1
- package/dist/cjs/packages/tabs/tabs.d.ts +2 -2
- package/dist/cjs/packages/tabs/tabs.js +2 -2
- package/dist/cjs/packages/tag/tag.d.ts +1 -1
- package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
- package/dist/cjs/packages/textarea/textarea.js +20 -25
- package/dist/cjs/packages/timedetail/timedetail.d.ts +2 -2
- package/dist/cjs/packages/timeselect/timeselect.d.ts +1 -1
- package/dist/cjs/packages/toast/types.d.ts +1 -1
- package/dist/cjs/packages/tour/tour.d.ts +3 -3
- package/dist/cjs/packages/tour/tour.js +1 -1
- package/dist/cjs/packages/trendarrow/trendarrow.d.ts +1 -1
- package/dist/cjs/packages/uploader/types.d.ts +2 -1
- package/dist/cjs/packages/uploader/uploader.d.ts +1 -1
- package/dist/cjs/packages/uploader/uploader.js +1 -1
- package/dist/cjs/packages/video/video.d.ts +1 -1
- package/dist/cjs/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/cjs/packages/watermark/watermark.d.ts +1 -1
- package/dist/cjs/types/fix-string-literal-union.d.ts +1 -0
- package/dist/cjs/utils/get-rect-by-taro.js +1 -1
- package/dist/cjs/utils/get-system-info.d.ts +19 -0
- package/dist/cjs/utils/get-system-info.js +32 -0
- package/dist/es/{utils → hooks}/use-click-away.js +3 -2
- package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
- package/dist/es/{utils → hooks}/use-lock-scroll.js +2 -2
- package/dist/es/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/address.js +1 -1
- package/dist/es/packages/address/customRender.d.ts +1 -1
- package/dist/es/packages/animate/animate.d.ts +1 -1
- package/dist/es/packages/animate/animate.js +5 -6
- package/dist/es/packages/animate/style/animate.scss +63 -105
- package/dist/es/packages/animate/style/style.css +45 -44
- package/dist/es/packages/animatingnumbers/countup.d.ts +1 -1
- package/dist/es/packages/audio/audio.d.ts +1 -1
- package/dist/es/packages/avatar/avatar.d.ts +2 -2
- package/dist/es/packages/avatarcropper/avatarcropper.d.ts +1 -1
- package/dist/es/packages/avatarcropper/avatarcropper.js +2 -2
- package/dist/es/packages/avatargroup/avatargroup.d.ts +1 -1
- package/dist/es/packages/backtop/backtop.d.ts +1 -1
- package/dist/es/packages/badge/badge.js +13 -15
- package/dist/es/packages/badge/types.d.ts +1 -1
- package/dist/es/packages/barrage/barrage.d.ts +1 -1
- package/dist/es/packages/button/button.d.ts +1 -1
- package/dist/es/packages/calendar/calendar.d.ts +27 -135
- package/dist/es/packages/calendar/style/calendar.scss +25 -31
- package/dist/es/packages/calendar/style/style.css +14 -20
- package/dist/es/packages/calendarcard/calendarcard.d.ts +1 -1
- package/dist/es/packages/calendarcard/calendarcard.js +1 -1
- package/dist/es/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/es/packages/calendaritem/calendaritem.js +1 -1
- package/dist/es/packages/card/card.d.ts +1 -1
- package/dist/es/packages/cascader/cascader.d.ts +1 -1
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/cell/cell.d.ts +1 -1
- package/dist/es/packages/cell/types.d.ts +1 -1
- package/dist/es/packages/cellgroup/cellgroup.d.ts +1 -1
- package/dist/es/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/es/packages/checkbox/checkbox.js +1 -1
- package/dist/es/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/es/packages/checkboxgroup/checkboxgroup.js +1 -1
- package/dist/es/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/es/packages/col/col.d.ts +1 -1
- package/dist/es/packages/collapse/collapse.d.ts +1 -1
- package/dist/es/packages/collapse/collapse.js +1 -1
- package/dist/es/packages/collapseitem/collapseitem.d.ts +1 -1
- package/dist/es/packages/configprovider/configprovider.d.ts +2 -2
- package/dist/es/packages/configprovider/configprovider.js +1 -1
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/types.d.ts +1 -1
- package/dist/es/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/es/packages/datepicker/datepicker.js +1 -1
- package/dist/es/packages/datepicker/style/style.css +2 -2
- package/dist/es/packages/dialog/types.d.ts +2 -2
- package/dist/es/packages/divider/divider.d.ts +1 -1
- package/dist/es/packages/drag/drag.d.ts +1 -1
- package/dist/es/packages/elevator/elevator.d.ts +1 -1
- package/dist/es/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/es/packages/ellipsis/ellipsis.js +1 -1
- package/dist/es/packages/empty/empty.d.ts +1 -1
- package/dist/es/packages/fixednav/types.d.ts +1 -1
- package/dist/es/packages/form/form.d.ts +2 -2
- package/dist/es/packages/form/index.d.ts +1 -1
- package/dist/es/packages/formitem/formitem.d.ts +1 -1
- package/dist/es/packages/griditem/griditem.d.ts +1 -1
- package/dist/es/packages/hoverbutton/hoverbutton.d.ts +2 -2
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.d.ts +1 -1
- package/dist/es/packages/image/image.d.ts +4 -3
- package/dist/es/packages/imagepreview/imagepreview.d.ts +1 -1
- package/dist/es/packages/imagepreview/imagepreview.js +1 -1
- package/dist/es/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/dist/es/packages/input/input.d.ts +1 -1
- package/dist/es/packages/input/input.js +1 -1
- package/dist/es/packages/inputnumber/inputnumber.d.ts +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +1 -1
- package/dist/es/packages/loading/types.d.ts +1 -1
- package/dist/es/packages/lottie/types.d.ts +1 -1
- package/dist/es/packages/menu/menu.d.ts +2 -2
- package/dist/es/packages/menuitem/menuitem.d.ts +1 -1
- package/dist/es/packages/menuitem/menuitem.js +2 -2
- package/dist/es/packages/navbar/navbar.d.ts +1 -1
- package/dist/es/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/es/packages/noticebar/noticebar.js +1 -1
- package/dist/es/packages/notify/Notification.d.ts +1 -1
- package/dist/es/packages/notify/notify.d.ts +1 -1
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/es/packages/nutui.react.build.d.ts +107 -105
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +1 -1
- package/dist/es/packages/overlay/types.d.ts +1 -1
- package/dist/es/packages/pagination/pagination.d.ts +1 -1
- package/dist/es/packages/pagination/pagination.js +1 -1
- package/dist/es/packages/picker/picker.d.ts +2 -2
- package/dist/es/packages/picker/picker.js +2 -2
- package/dist/es/packages/picker/pickerpanel.js +1 -1
- package/dist/es/packages/picker/style/style.css +2 -2
- package/dist/es/packages/pickerview/index.d.ts +3 -0
- package/dist/es/packages/pickerview/index.js +2 -0
- package/dist/es/packages/pickerview/pickerroller.d.ts +7 -0
- package/dist/es/packages/pickerview/pickerroller.js +172 -0
- package/dist/es/packages/pickerview/pickerview.d.ts +4 -0
- package/dist/es/packages/pickerview/pickerview.js +188 -0
- package/dist/es/packages/pickerview/style/css.js +1 -0
- package/dist/es/packages/pickerview/style/index.js +1 -0
- package/dist/es/packages/pickerview/style/pickerview.scss +79 -0
- package/dist/es/packages/pickerview/style/style.css +73 -0
- package/dist/es/packages/pickerview/types.d.ts +32 -0
- package/dist/es/packages/pickerview/types.js +1 -0
- package/dist/es/packages/pickerview/utils.d.ts +14 -0
- package/dist/es/packages/pickerview/utils.js +28 -0
- package/dist/es/packages/popover/popover.d.ts +3 -3
- package/dist/es/packages/popover/popover.js +2 -2
- package/dist/es/packages/popover/types.d.ts +3 -2
- package/dist/es/packages/popup/popup.js +1 -1
- package/dist/es/packages/popup/types.d.ts +1 -1
- package/dist/es/packages/price/types.d.ts +1 -1
- package/dist/es/packages/progress/progress.d.ts +1 -1
- package/dist/es/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
- package/dist/es/packages/radio/radio.d.ts +2 -2
- package/dist/es/packages/radio/radio.js +1 -1
- package/dist/es/packages/radiogroup/radiogroup.js +1 -1
- package/dist/es/packages/range/range.d.ts +1 -1
- package/dist/es/packages/range/range.js +3 -3
- package/dist/es/packages/rate/rate.js +3 -3
- package/dist/es/packages/rate/types.d.ts +1 -1
- package/dist/es/packages/resultpage/resultpage.d.ts +1 -1
- package/dist/es/packages/row/row.d.ts +1 -1
- package/dist/es/packages/safearea/safearea.d.ts +1 -1
- package/dist/es/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/es/packages/segmented/segmented.js +1 -1
- package/dist/es/packages/segmented/types.d.ts +1 -1
- package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/es/packages/shortpassword/shortpassword.js +1 -1
- package/dist/es/packages/sidebar/sidebar.d.ts +1 -1
- package/dist/es/packages/sidebar/sidebar.js +2 -2
- package/dist/es/packages/sidebar/types.d.ts +1 -1
- package/dist/es/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/es/packages/signature/signature.d.ts +1 -1
- package/dist/es/packages/skeleton/skeleton.d.ts +1 -1
- package/dist/es/packages/space/space.d.ts +1 -1
- package/dist/es/packages/step/step.d.ts +1 -1
- package/dist/es/packages/steps/steps.d.ts +1 -1
- package/dist/es/packages/sticky/sticky.d.ts +1 -1
- package/dist/es/packages/sticky/sticky.js +2 -2
- package/dist/es/packages/swipe/swipe.d.ts +1 -1
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/swiper/effects/focus.js +1 -1
- package/dist/es/packages/swiper/index.d.ts +2 -2
- package/dist/es/packages/swiper/swiper.d.ts +2 -2
- package/dist/es/packages/swiper/swiper.js +1 -1
- package/dist/es/packages/swiperitem/swiperitem.d.ts +1 -1
- package/dist/es/packages/switch/switch.d.ts +1 -1
- package/dist/es/packages/switch/switch.js +1 -1
- package/dist/es/packages/tabbar/style/style.css +2 -9
- package/dist/es/packages/tabbar/tabbar.d.ts +1 -1
- package/dist/es/packages/tabbar/tabbar.js +1 -1
- package/dist/es/packages/tabbaritem/style/style.css +2 -9
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +2 -10
- package/dist/es/packages/tabbaritem/tabbaritem.d.ts +1 -1
- package/dist/es/packages/tabbaritem/tabbaritem.js +6 -5
- package/dist/es/packages/table/table.js +1 -1
- package/dist/es/packages/table/types.d.ts +1 -1
- package/dist/es/packages/tabs/tabs.d.ts +2 -2
- package/dist/es/packages/tabs/tabs.js +2 -2
- package/dist/es/packages/tag/tag.d.ts +1 -1
- package/dist/es/packages/textarea/textarea.d.ts +2 -2
- package/dist/es/packages/textarea/textarea.js +20 -25
- package/dist/es/packages/timedetail/timedetail.d.ts +2 -2
- package/dist/es/packages/timeselect/timeselect.d.ts +1 -1
- package/dist/es/packages/toast/types.d.ts +1 -1
- package/dist/es/packages/tour/tour.d.ts +3 -3
- package/dist/es/packages/tour/tour.js +1 -1
- package/dist/es/packages/trendarrow/trendarrow.d.ts +1 -1
- package/dist/es/packages/uploader/types.d.ts +2 -1
- package/dist/es/packages/uploader/uploader.d.ts +1 -1
- package/dist/es/packages/uploader/uploader.js +1 -1
- package/dist/es/packages/video/video.d.ts +1 -1
- package/dist/es/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/es/packages/watermark/watermark.d.ts +1 -1
- package/dist/es/types/fix-string-literal-union.d.ts +1 -0
- package/dist/es/utils/get-rect-by-taro.js +1 -1
- package/dist/es/utils/get-system-info.d.ts +19 -0
- package/dist/es/utils/get-system-info.js +19 -0
- package/dist/nutui.react.umd.js +493 -142
- package/dist/style.css +1 -1
- package/dist/style.scss +36 -35
- package/dist/styles/variables.scss +3 -1
- package/package.json +1 -80
- /package/dist/cjs/{utils → hooks}/use-click-away.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-client-rect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-client-rect.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-custom-event.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-custom-event.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-force-update.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-force-update.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scroll.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-memo.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-memo.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-props-value.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-props-value.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-ref-state.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-ref-state.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-refs.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-refs.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-taro-rect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-taro-rect.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-touch.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-touch.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-uuid.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-uuid.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-watch.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-watch.js +0 -0
- /package/dist/es/{utils → hooks}/use-click-away.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-client-rect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-client-rect.js +0 -0
- /package/dist/es/{utils → hooks}/use-custom-event.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-custom-event.js +0 -0
- /package/dist/es/{utils → hooks}/use-force-update.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-force-update.js +0 -0
- /package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scoll-taro.js +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scroll.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-memo.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-memo.js +0 -0
- /package/dist/es/{utils → hooks}/use-props-value.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-props-value.js +0 -0
- /package/dist/es/{utils → hooks}/use-ref-state.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-ref-state.js +0 -0
- /package/dist/es/{utils → hooks}/use-refs.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-refs.js +0 -0
- /package/dist/es/{utils → hooks}/use-taro-rect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-taro-rect.js +0 -0
- /package/dist/es/{utils → hooks}/use-touch.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-touch.js +0 -0
- /package/dist/es/{utils → hooks}/use-uuid.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-uuid.js +0 -0
- /package/dist/es/{utils → hooks}/use-watch.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-watch.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export interface ProgressProps extends BasicComponent {
|
|
4
4
|
percent: number;
|
|
5
5
|
background: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
import { PullToRefreshType } from './types';
|
|
4
4
|
export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
|
|
5
5
|
export interface PullToRefreshProps extends BasicComponent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
3
|
-
import { RadioPosition, RadioShape } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
|
+
import { RadioPosition, RadioShape } from "../../../../src/packages/radio/types";
|
|
4
4
|
export interface RadioProps extends BasicComponent {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
checked: boolean;
|
|
@@ -8,7 +8,7 @@ import { CheckChecked, CheckNormal, CheckDisabled } from "@nutui/icons-react";
|
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import RadioContext from "../radiogroup/context";
|
|
10
10
|
import { ComponentDefaults } from "../../utils/typings";
|
|
11
|
-
import { usePropsValue } from "../../
|
|
11
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
disabled: false,
|
|
14
14
|
shape: 'round',
|
|
@@ -7,7 +7,7 @@ import React, { useCallback } from "react";
|
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import RadioContext from "./context";
|
|
9
9
|
import Radio from "../radio/index";
|
|
10
|
-
import { usePropsValue } from "../../
|
|
10
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
11
11
|
var defaultProps = {
|
|
12
12
|
labelPosition: 'right',
|
|
13
13
|
onChange: function(value) {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
import { RangeMark, RangeValue } from './types';
|
|
4
4
|
export interface RangeProps extends BasicComponent {
|
|
5
5
|
value: RangeValue;
|
|
@@ -4,10 +4,10 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
|
4
4
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
5
5
|
import React, { useEffect, useState, useCallback, useMemo, useRef } from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
|
-
import { useTouch } from "../../
|
|
8
|
-
import { getRect } from "../../
|
|
7
|
+
import { useTouch } from "../../hooks/use-touch";
|
|
8
|
+
import { getRect } from "../../hooks/use-client-rect";
|
|
9
9
|
import { ComponentDefaults } from "../../utils/typings";
|
|
10
|
-
import { usePropsValue } from "../../
|
|
10
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
11
11
|
import { useRtl } from "../configprovider";
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
range: false,
|
|
@@ -6,9 +6,9 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { StarFill } from "@nutui/icons-react";
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
|
-
import { usePropsValue } from "../../
|
|
10
|
-
import { getRect } from "../../
|
|
11
|
-
import useRefs from "../../
|
|
9
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
10
|
+
import { getRect } from "../../hooks/use-client-rect";
|
|
11
|
+
import useRefs from "../../hooks/use-refs";
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
size: 'normal',
|
|
14
14
|
showScore: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
import { ButtonFill, ButtonSize, ButtonType } from '../button/button';
|
|
4
4
|
import { ResultPageStatus } from './types';
|
|
5
5
|
export type ResultPageAction = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { BasicComponent } from "
|
|
3
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
4
4
|
export type RowEventType = 'row' | 'col';
|
|
5
5
|
export interface RowProps extends BasicComponent {
|
|
6
6
|
type: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
|
|
3
|
-
import { BasicComponent } from "
|
|
3
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
4
4
|
export interface SearchBarProps extends BasicComponent {
|
|
5
5
|
value?: number | string;
|
|
6
6
|
placeholder?: string;
|
|
@@ -3,7 +3,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
3
3
|
import { _ as _type_of } from "@swc/helpers/_/_type_of";
|
|
4
4
|
import React, { useCallback } from "react";
|
|
5
5
|
import classNames from "classnames";
|
|
6
|
-
import { usePropsValue } from "../../
|
|
6
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
7
7
|
import { mergeProps } from "../../utils/merge-props";
|
|
8
8
|
var defaultProps = {
|
|
9
9
|
options: [],
|
|
@@ -9,7 +9,7 @@ import classNames from "classnames";
|
|
|
9
9
|
import Popup from "../popup/index";
|
|
10
10
|
import { useConfig } from "../configprovider";
|
|
11
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
|
-
import { usePropsValue } from "../../
|
|
12
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
13
13
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14
14
|
value: '',
|
|
15
15
|
visible: false,
|
|
@@ -8,8 +8,8 @@ import classNames from "classnames";
|
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
9
|
import SideBarItem from "../sidebaritem";
|
|
10
10
|
import raf from "../../utils/raf";
|
|
11
|
-
import { usePropsValue } from "../../
|
|
12
|
-
import { useForceUpdate } from "../../
|
|
11
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
12
|
+
import { useForceUpdate } from "../../hooks/use-force-update";
|
|
13
13
|
import { mergeProps } from "../../utils/merge-props";
|
|
14
14
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
15
15
|
contentDuration: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export type SignatureType = 'jpg' | 'png';
|
|
4
4
|
export interface SignatureProps extends BasicComponent {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
type avatarShape = 'round' | 'square';
|
|
4
4
|
export interface SkeletonProps extends BasicComponent {
|
|
5
5
|
animated: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export interface SpaceProps extends BasicComponent {
|
|
4
4
|
direction: 'horizontal' | 'vertical';
|
|
5
5
|
align: 'start' | 'end' | 'center' | 'baseline';
|
|
@@ -6,8 +6,8 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
6
6
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { getScrollParent } from "../../utils/get-scroll-parent";
|
|
9
|
-
import { getRect } from "../../
|
|
10
|
-
import useWatch from "../../
|
|
9
|
+
import { getRect } from "../../hooks/use-client-rect";
|
|
10
|
+
import useWatch from "../../hooks/use-watch";
|
|
11
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
position: 'top',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TouchEvent, MouseEvent } from 'react';
|
|
3
|
-
import { BasicComponent } from "
|
|
3
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
4
4
|
export type SwipeSide = 'left' | 'right';
|
|
5
5
|
export interface SwipeInstance {
|
|
6
6
|
open: (side: SwipeSide) => void;
|
|
@@ -3,8 +3,8 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
|
3
3
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
4
4
|
import React, { useRef, forwardRef, useState, useCallback, useImperativeHandle, useEffect } from "react";
|
|
5
5
|
import classNames from "classnames";
|
|
6
|
-
import { useTouch } from "../../
|
|
7
|
-
import { getRect } from "../../
|
|
6
|
+
import { useTouch } from "../../hooks/use-touch";
|
|
7
|
+
import { getRect } from "../../hooks/use-client-rect";
|
|
8
8
|
function preventDefault(event, isStopPropagation) {
|
|
9
9
|
if (typeof event.cancelable !== 'boolean' || event.cancelable) {
|
|
10
10
|
event.preventDefault();
|
|
@@ -2,7 +2,7 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
|
2
2
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
3
3
|
import React, { useEffect } from "react";
|
|
4
4
|
import { animated } from "@react-spring/web";
|
|
5
|
-
import { getRefValue, useRefState } from "../../../
|
|
5
|
+
import { getRefValue, useRefState } from "../../../hooks/use-ref-state";
|
|
6
6
|
import { useRtl } from "../../configprovider";
|
|
7
7
|
var getPerSlidePosition = function(index, position, loop, count) {
|
|
8
8
|
var currentPosition = index * 100 + position;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwiperProps } from './swiper';
|
|
3
|
-
import SwiperItem from "
|
|
4
|
-
import { SwiperRef } from "
|
|
3
|
+
import SwiperItem from "../../../../src/packages/swiperitem";
|
|
4
|
+
import { SwiperRef } from "../../../../src/packages/swiper/types";
|
|
5
5
|
export type { SwiperProps } from './swiper';
|
|
6
6
|
export type { SwiperRef } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<SwiperRef>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
3
|
-
import { SwiperRef } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
|
+
import { SwiperRef } from "../../../../src/packages/swiper/types";
|
|
4
4
|
export interface FocusEffect {
|
|
5
5
|
name: 'focus';
|
|
6
6
|
scale: number;
|
|
@@ -6,7 +6,7 @@ import { useDrag } from "@use-gesture/react";
|
|
|
6
6
|
import { useSpring } from "@react-spring/web";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import Indicator from "../indicator";
|
|
9
|
-
import { getRefValue, useRefState } from "../../
|
|
9
|
+
import { getRefValue, useRefState } from "../../hooks/use-ref-state";
|
|
10
10
|
import { defaultEffect } from "./effects/default";
|
|
11
11
|
import { focusEffect, updateTransform, useList } from "./effects/focus";
|
|
12
12
|
var defaultProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export interface SwiperItemProps extends BasicComponent {
|
|
4
4
|
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export interface SwitchProps extends BasicComponent {
|
|
4
4
|
checked: boolean;
|
|
5
5
|
defaultChecked: boolean;
|
|
@@ -6,7 +6,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
|
-
import { usePropsValue } from "../../
|
|
9
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
10
10
|
import { useRtl } from "../configprovider";
|
|
11
11
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12
12
|
disabled: false,
|
|
@@ -138,15 +138,8 @@
|
|
|
138
138
|
.nut-tabbar-item-active {
|
|
139
139
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
140
140
|
}
|
|
141
|
-
.nut-tabbar-item-active .nut-tabbar-item-icon-box
|
|
142
|
-
|
|
143
|
-
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
144
|
-
/* #endif*/
|
|
145
|
-
/* #ifndef harmony*/
|
|
146
|
-
color: inherit;
|
|
147
|
-
/* #endif*/
|
|
148
|
-
}
|
|
149
|
-
.nut-tabbar-item-active .nut-tabbar-item-icon-box .nut-icon {
|
|
141
|
+
.nut-tabbar-item-active .nut-tabbar-item-icon-box,
|
|
142
|
+
.nut-tabbar-item-active .nut-icon {
|
|
150
143
|
/* #ifdef harmony*/
|
|
151
144
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
152
145
|
/* #endif*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
import TabbarItem from '../tabbaritem';
|
|
4
4
|
export interface TabbarProps extends BasicComponent {
|
|
5
5
|
defaultValue: number;
|
|
@@ -5,7 +5,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { ComponentDefaults } from "../../utils/typings";
|
|
8
|
-
import { usePropsValue } from "../../
|
|
8
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
9
9
|
import TabbarItem from "../tabbaritem";
|
|
10
10
|
import TabbarContext from "./context";
|
|
11
11
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
@@ -138,15 +138,8 @@
|
|
|
138
138
|
.nut-tabbar-item-active {
|
|
139
139
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
140
140
|
}
|
|
141
|
-
.nut-tabbar-item-active .nut-tabbar-item-icon-box
|
|
142
|
-
|
|
143
|
-
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
144
|
-
/* #endif*/
|
|
145
|
-
/* #ifndef harmony*/
|
|
146
|
-
color: inherit;
|
|
147
|
-
/* #endif*/
|
|
148
|
-
}
|
|
149
|
-
.nut-tabbar-item-active .nut-tabbar-item-icon-box .nut-icon {
|
|
141
|
+
.nut-tabbar-item-active .nut-tabbar-item-icon-box,
|
|
142
|
+
.nut-tabbar-item-active .nut-icon {
|
|
150
143
|
/* #ifdef harmony*/
|
|
151
144
|
color: var(--nutui-tabbar-active-color, var(--nutui-color-primary, #ff0f23));
|
|
152
145
|
/* #endif*/
|
|
@@ -41,22 +41,14 @@
|
|
|
41
41
|
&-active {
|
|
42
42
|
color: $tabbar-active-color;
|
|
43
43
|
|
|
44
|
-
.nut-tabbar-item-icon-box
|
|
44
|
+
.nut-tabbar-item-icon-box,
|
|
45
|
+
.nut-icon {
|
|
45
46
|
/* #ifdef harmony*/
|
|
46
47
|
color: $tabbar-active-color;
|
|
47
48
|
/* #endif*/
|
|
48
49
|
/* #ifndef harmony*/
|
|
49
50
|
color: inherit;
|
|
50
51
|
/* #endif*/
|
|
51
|
-
|
|
52
|
-
.nut-icon {
|
|
53
|
-
/* #ifdef harmony*/
|
|
54
|
-
color: $tabbar-active-color;
|
|
55
|
-
/* #endif*/
|
|
56
|
-
/* #ifndef harmony*/
|
|
57
|
-
color: inherit;
|
|
58
|
-
/* #endif*/
|
|
59
|
-
}
|
|
60
52
|
}
|
|
61
53
|
}
|
|
62
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
3
|
export interface TabbarItemProps extends BasicComponent {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
icon: ReactNode;
|
|
@@ -44,6 +44,11 @@ export var TabbarItem = function(props) {
|
|
|
44
44
|
right: right,
|
|
45
45
|
color: ctx === null || ctx === void 0 ? void 0 : ctx.activeColor
|
|
46
46
|
};
|
|
47
|
+
var renderTitleText = function() {
|
|
48
|
+
return title && /*#__PURE__*/ React.createElement("div", {
|
|
49
|
+
className: titleClass
|
|
50
|
+
}, title);
|
|
51
|
+
};
|
|
47
52
|
return /*#__PURE__*/ React.createElement("div", _object_spread({
|
|
48
53
|
className: tabbarItemClass,
|
|
49
54
|
style: _object_spread({
|
|
@@ -54,9 +59,5 @@ export var TabbarItem = function(props) {
|
|
|
54
59
|
}
|
|
55
60
|
}, rest), icon ? /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Badge, badgeProps, /*#__PURE__*/ React.createElement("div", {
|
|
56
61
|
className: boxPrefix
|
|
57
|
-
}, icon)), /*#__PURE__*/ React.createElement(
|
|
58
|
-
className: titleClass
|
|
59
|
-
}, title)) : /*#__PURE__*/ React.createElement(Badge, badgeProps, /*#__PURE__*/ React.createElement("div", {
|
|
60
|
-
className: titleClass
|
|
61
|
-
}, title)));
|
|
62
|
+
}, icon)), renderTitleText()) : /*#__PURE__*/ React.createElement(Badge, badgeProps, renderTitleText()));
|
|
62
63
|
};
|
|
@@ -9,7 +9,7 @@ import classNames from "classnames";
|
|
|
9
9
|
import { ArrowDown } from "@nutui/icons-react";
|
|
10
10
|
import { useConfig, useRtl } from "../configprovider";
|
|
11
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
|
-
import { usePropsValue } from "../../
|
|
12
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
13
13
|
import { useTableSticky } from "./utils";
|
|
14
14
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
15
15
|
columns: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { BasicComponent } from "
|
|
3
|
-
import TabPane from "
|
|
2
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
3
|
+
import TabPane from "../../../../src/packages/tabpane";
|
|
4
4
|
export type TabsTitle = {
|
|
5
5
|
title: string;
|
|
6
6
|
disabled: boolean;
|
|
@@ -9,8 +9,8 @@ import { JoySmile } from "@nutui/icons-react";
|
|
|
9
9
|
import { ComponentDefaults } from "../../utils/typings";
|
|
10
10
|
import TabPane from "../tabpane";
|
|
11
11
|
import raf from "../../utils/raf";
|
|
12
|
-
import { usePropsValue } from "../../
|
|
13
|
-
import { useForceUpdate } from "../../
|
|
12
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
13
|
+
import { useForceUpdate } from "../../hooks/use-force-update";
|
|
14
14
|
import { useRtl } from "../configprovider";
|
|
15
15
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
16
16
|
tabStyle: {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { BasicComponent } from "
|
|
3
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
4
4
|
export type TagType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
5
5
|
export interface TagProps extends BasicComponent {
|
|
6
6
|
type: TagType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
1
|
import type { FocusEvent } from 'react';
|
|
3
|
-
import {
|
|
2
|
+
import React, { FunctionComponent } from 'react';
|
|
3
|
+
import { BasicComponent } from "../../../../src/utils/typings";
|
|
4
4
|
export interface TextAreaProps extends BasicComponent {
|
|
5
5
|
value: string;
|
|
6
6
|
defaultValue: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
1
2
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
4
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
@@ -6,7 +7,7 @@ import React, { useEffect, useRef } from "react";
|
|
|
6
7
|
import classNames from "classnames";
|
|
7
8
|
import { useConfig, useRtl } from "../configprovider";
|
|
8
9
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
|
-
import { usePropsValue } from "../../
|
|
10
|
+
import { usePropsValue } from "../../hooks/use-props-value";
|
|
10
11
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11
12
|
defaultValue: '',
|
|
12
13
|
showCount: false,
|
|
@@ -56,9 +57,7 @@ export var TextArea = function(props) {
|
|
|
56
57
|
onChange: onChange
|
|
57
58
|
}), 2), inputValue = _usePropsValue[0], setInputValue = _usePropsValue[1];
|
|
58
59
|
useEffect(function() {
|
|
59
|
-
if (autoSize)
|
|
60
|
-
setContentHeight();
|
|
61
|
-
}
|
|
60
|
+
if (autoSize) setContentHeight();
|
|
62
61
|
}, [
|
|
63
62
|
autoSize,
|
|
64
63
|
defaultValue,
|
|
@@ -79,34 +78,30 @@ export var TextArea = function(props) {
|
|
|
79
78
|
var value = compositionRef.current ? text.value : format(text.value);
|
|
80
79
|
setInputValue(value);
|
|
81
80
|
};
|
|
81
|
+
var isDisabled = function() {
|
|
82
|
+
return disabled || readOnly;
|
|
83
|
+
};
|
|
82
84
|
var handleFocus = function(event) {
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
onFocus && onFocus(event);
|
|
85
|
+
if (isDisabled()) return;
|
|
86
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
86
87
|
};
|
|
87
88
|
var handleBlur = function(event) {
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
onBlur && onBlur(event);
|
|
89
|
+
if (isDisabled()) return;
|
|
90
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
91
91
|
};
|
|
92
|
+
var _obj;
|
|
92
93
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
|
|
93
|
-
className: classNames(classPrefix,
|
|
94
|
-
}, /*#__PURE__*/ React.createElement("textarea", _object_spread({
|
|
94
|
+
className: classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix, "-plain"), plain), _define_property(_obj, "".concat(classPrefix, "-container"), !plain), _define_property(_obj, "".concat(classPrefix, "-").concat(status), status), _obj), className)
|
|
95
|
+
}, /*#__PURE__*/ React.createElement("textarea", _object_spread_props(_object_spread({}, rest), {
|
|
95
96
|
ref: textareaRef,
|
|
96
|
-
className: "".concat(classPrefix, "-textarea
|
|
97
|
+
className: classNames("".concat(classPrefix, "-textarea"), _define_property({}, "".concat(classPrefix, "-textarea-disabled"), disabled)),
|
|
97
98
|
style: style,
|
|
98
99
|
disabled: disabled,
|
|
99
100
|
readOnly: readOnly,
|
|
100
101
|
value: inputValue,
|
|
101
|
-
onChange:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
onBlur: function(e) {
|
|
105
|
-
return handleBlur(e);
|
|
106
|
-
},
|
|
107
|
-
onFocus: function(e) {
|
|
108
|
-
return handleFocus(e);
|
|
109
|
-
},
|
|
102
|
+
onChange: handleChange,
|
|
103
|
+
onBlur: handleBlur,
|
|
104
|
+
onFocus: handleFocus,
|
|
110
105
|
onCompositionEnd: function() {
|
|
111
106
|
compositionRef.current = false;
|
|
112
107
|
},
|
|
@@ -115,9 +110,9 @@ export var TextArea = function(props) {
|
|
|
115
110
|
},
|
|
116
111
|
rows: rows,
|
|
117
112
|
maxLength: maxLength === -1 ? undefined : maxLength,
|
|
118
|
-
placeholder: placeholder
|
|
119
|
-
}
|
|
120
|
-
className: "".concat(classPrefix, "-limit
|
|
113
|
+
placeholder: placeholder !== undefined ? placeholder : locale.placeholder
|
|
114
|
+
})), showCount && /*#__PURE__*/ React.createElement("div", {
|
|
115
|
+
className: classNames("".concat(classPrefix, "-limit"), _define_property({}, "".concat(classPrefix, "-limit-disabled"), disabled))
|
|
121
116
|
}, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)));
|
|
122
117
|
};
|
|
123
118
|
TextArea.displayName = 'NutTextArea';
|