@nutui/nutui-react-taro 3.0.20-beta.0 → 3.0.20-cpp
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 +28 -70
- package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
- package/dist/cjs/hooks/use-ref-state.js +3 -3
- package/dist/cjs/hooks/use-touch.js +1 -2
- package/dist/cjs/locales/base.d.ts +9 -0
- package/dist/cjs/locales/en-US.js +21 -2
- package/dist/cjs/locales/id-ID.js +21 -2
- package/dist/cjs/locales/ja-JP.js +19 -2
- package/dist/cjs/locales/tr-TR.js +21 -2
- package/dist/cjs/locales/zh-CN.js +19 -2
- package/dist/cjs/locales/zh-TW.js +19 -2
- package/dist/cjs/locales/zh-UG.js +21 -2
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
- package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
- package/dist/cjs/packages/avatar/avatar.js +32 -6
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +18 -34
- package/dist/cjs/packages/badge/badge.js +20 -10
- package/dist/cjs/packages/barrage/barrage.js +14 -24
- package/dist/cjs/packages/button/button.d.ts +2 -24
- package/dist/cjs/packages/button/button.js +9 -12
- package/dist/cjs/packages/button/index.d.ts +0 -1
- package/dist/cjs/packages/button/style/button.scss +0 -3
- package/dist/cjs/packages/button/style/style.css +0 -3
- package/dist/cjs/packages/button/style/style.harmony.css +0 -3
- package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
- package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
- package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
- package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
- package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style/style.css +21 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
- package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
- package/dist/cjs/packages/calendarcard/icon.js +17 -28
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/card/style/style.harmony.css +1 -1
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
- package/dist/cjs/packages/configprovider/configprovider.js +7 -7
- package/dist/cjs/packages/configprovider/index.js +6 -6
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -2
- package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/datepicker/utils.js +9 -9
- package/dist/cjs/packages/dialog/content.js +3 -3
- package/dist/cjs/packages/dialog/dialog.js +26 -23
- package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style/style.css +1 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/divider/divider.js +2 -2
- package/dist/cjs/packages/drag/drag.js +4 -7
- package/dist/cjs/packages/elevator/elevator.js +7 -10
- package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
- package/dist/cjs/packages/empty/empty.d.ts +4 -4
- package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
- package/dist/cjs/packages/form/index.js +0 -2
- package/dist/cjs/packages/form/style/style.harmony.css +0 -5
- package/dist/cjs/packages/form/useform.js +50 -57
- package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style/style.css +0 -5
- package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/cjs/packages/image/image.js +11 -3
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/input/input.js +10 -3
- package/dist/cjs/packages/inputnumber/inputnumber.js +17 -29
- package/dist/cjs/packages/lottie/lottiemp.js +10 -18
- package/dist/cjs/packages/lottie/types.js +0 -2
- package/dist/cjs/packages/menuitem/menuitem.js +24 -22
- package/dist/cjs/packages/noticebar/noticebar.js +74 -70
- package/dist/cjs/packages/notify/notify.js +4 -4
- package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +123 -119
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +124 -119
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +6 -6
- package/dist/cjs/packages/picker/style/style.css +1 -1
- package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
- package/dist/cjs/packages/pickerview/pickerview.js +1 -2
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/popover/popover.js +75 -77
- package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/popup.js +192 -113
- package/dist/cjs/packages/popup/style/popup.scss +22 -1
- package/dist/cjs/packages/popup/style/style.css +38 -17
- package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
- package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
- package/dist/cjs/packages/price/price.js +52 -13
- package/dist/cjs/packages/progress/progress.js +2 -4
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/cjs/packages/quickenter/index.d.ts +3 -0
- package/dist/cjs/packages/quickenter/index.js +13 -0
- package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/cjs/packages/quickenter/quickenter.js +153 -0
- package/dist/cjs/packages/quickenter/style/css.js +2 -0
- package/dist/cjs/packages/quickenter/style/index.js +2 -0
- package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style/style.css +106 -0
- package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/cjs/packages/radio/index.js +0 -2
- package/dist/cjs/packages/range/range.js +44 -28
- package/dist/cjs/packages/rate/rate.js +5 -8
- package/dist/cjs/packages/resultpage/resultpage.js +2 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/cjs/packages/safearea/safearea.js +3 -12
- package/dist/cjs/packages/safearea/style/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style/style.css +0 -2
- package/dist/cjs/packages/safearea/style/style.harmony.css +0 -2
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/cjs/packages/step/step.js +3 -8
- package/dist/cjs/packages/step/style/step.scss +0 -2
- package/dist/cjs/packages/step/style/style.css +0 -2
- package/dist/cjs/packages/step/style/style.harmony.css +0 -2
- package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
- package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
- package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/steps/style/steps.scss +10 -3
- package/dist/cjs/packages/steps/style/style.css +13 -7
- package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
- package/dist/cjs/packages/sticky/sticky.js +4 -7
- package/dist/cjs/packages/swipe/swipe.js +84 -122
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- package/dist/cjs/packages/table/style/style.css +1 -1
- package/dist/cjs/packages/table/style/style.harmony.css +1 -1
- package/dist/cjs/packages/table/style/table.scss +1 -1
- package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
- package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
- package/dist/cjs/packages/tabs/tabs.js +12 -5
- package/dist/cjs/packages/tag/style/style.css +1 -1
- package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
- package/dist/cjs/packages/tag/style/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/cjs/packages/toast/style/style.css +2 -4
- package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
- package/dist/cjs/packages/toast/style/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/cjs/packages/toast/toast.js +5 -5
- package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
- package/dist/cjs/packages/uploader/uploader.js +38 -51
- package/dist/cjs/packages/virtuallist/utils.js +6 -6
- package/dist/cjs/packages/watermark/watermark.js +4 -8
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/spec/address/base.js +0 -2
- package/dist/cjs/types/spec/button/base.d.ts +2 -1
- package/dist/cjs/types/spec/button/taro.d.ts +5 -1
- package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
- package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
- package/dist/cjs/types/spec/popup/base.d.ts +2 -0
- package/dist/cjs/types/spec/price/base.d.ts +1 -0
- package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
- package/dist/cjs/types/spec/quickenter/base.js +4 -0
- package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/h5.js +4 -0
- package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/taro.js +4 -0
- package/dist/cjs/utils/date.js +5 -5
- package/dist/cjs/utils/event-mocker.js +10 -18
- package/dist/cjs/utils/get-rect.js +4 -4
- package/dist/cjs/utils/get-scroll-parent.js +3 -3
- package/dist/cjs/utils/merge-props.js +3 -3
- package/dist/cjs/utils/merge.js +6 -6
- package/dist/cjs/utils/raf.js +3 -3
- package/dist/cjs/utils/render.js +5 -9
- package/dist/cjs/utils/rubberband.js +3 -3
- package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
- package/dist/cjs/utils/should-render-price-raw.js +46 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
- package/dist/cjs/utils/taro/get-rect.js +18 -26
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +5 -10
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/taro/use-custom-event.js +1 -0
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/locales/base.d.ts +9 -0
- package/dist/es/locales/en-US.js +21 -2
- package/dist/es/locales/id-ID.js +21 -2
- package/dist/es/locales/ja-JP.js +19 -2
- package/dist/es/locales/tr-TR.js +21 -2
- package/dist/es/locales/zh-CN.js +19 -2
- package/dist/es/locales/zh-TW.js +19 -2
- package/dist/es/locales/zh-UG.js +21 -2
- package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/style/style.harmony.css +38 -17
- package/dist/es/packages/animatingnumbers/countup.js +3 -1
- package/dist/es/packages/audio/style/style.harmony.css +0 -3
- package/dist/es/packages/avatar/avatar.js +32 -6
- package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
- package/dist/es/packages/badge/badge.js +20 -10
- package/dist/es/packages/barrage/barrage.js +14 -24
- package/dist/es/packages/button/button.d.ts +2 -24
- package/dist/es/packages/button/button.js +10 -12
- package/dist/es/packages/button/index.d.ts +0 -1
- package/dist/es/packages/button/style/button.scss +0 -3
- package/dist/es/packages/button/style/style.css +0 -3
- package/dist/es/packages/button/style/style.harmony.css +0 -3
- package/dist/es/packages/button/style-jmapp/button.scss +0 -3
- package/dist/es/packages/button/style-jmapp/style.css +0 -3
- package/dist/es/packages/button/style-jrkf/button.scss +0 -3
- package/dist/es/packages/button/style-jrkf/style.css +0 -3
- package/dist/es/packages/calendar/style/calendar.scss +32 -1
- package/dist/es/packages/calendar/style/style.css +21 -1
- package/dist/es/packages/calendar/style/style.harmony.css +59 -18
- package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/es/packages/calendarcard/calendarcard.js +31 -9
- package/dist/es/packages/calendarcard/icon.js +13 -24
- package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style/style.css +13 -0
- package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/es/packages/card/style/style.harmony.css +1 -1
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/cascader/style/style.harmony.css +38 -17
- package/dist/es/packages/collapseitem/collapseitem.js +4 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +1 -2
- package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/es/packages/dialog/dialog.js +33 -28
- package/dist/es/packages/dialog/style/dialog.scss +1 -1
- package/dist/es/packages/dialog/style/style.css +1 -1
- package/dist/es/packages/dialog/style/style.harmony.css +1 -4
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/es/packages/divider/divider.js +1 -1
- package/dist/es/packages/drag/drag.js +4 -7
- package/dist/es/packages/elevator/elevator.js +4 -7
- package/dist/es/packages/ellipsis/ellipsis.js +17 -30
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/empty/style/style.harmony.css +0 -3
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/style/style.harmony.css +0 -5
- package/dist/es/packages/form/useform.js +46 -53
- package/dist/es/packages/formitem/style/formitem.scss +4 -4
- package/dist/es/packages/formitem/style/style.css +0 -5
- package/dist/es/packages/formitem/style/style.harmony.css +0 -5
- package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/es/packages/image/image.js +11 -3
- package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/input/input.js +10 -3
- package/dist/es/packages/inputnumber/inputnumber.js +17 -29
- package/dist/es/packages/lottie/lottiemp.js +12 -20
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/menuitem/menuitem.js +24 -22
- package/dist/es/packages/noticebar/noticebar.js +74 -70
- package/dist/es/packages/numberkeyboard/style/style.css +1 -1
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +3 -3
- package/dist/es/packages/picker/style/style.css +1 -1
- package/dist/es/packages/picker/style/style.harmony.css +39 -18
- package/dist/es/packages/pickerview/pickerroller.js +4 -7
- package/dist/es/packages/pickerview/pickerview.js +1 -2
- package/dist/es/packages/popover/popover.js +75 -77
- package/dist/es/packages/popover/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/popup.js +193 -114
- package/dist/es/packages/popup/style/popup.scss +22 -1
- package/dist/es/packages/popup/style/style.css +38 -17
- package/dist/es/packages/popup/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/es/packages/popup/style-jmapp/style.css +22 -1
- package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/es/packages/popup/style-jrkf/style.css +22 -1
- package/dist/es/packages/price/price.js +53 -14
- package/dist/es/packages/progress/progress.js +2 -4
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/es/packages/quickenter/index.d.ts +3 -0
- package/dist/es/packages/quickenter/index.js +2 -0
- package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/es/packages/quickenter/quickenter.js +141 -0
- package/dist/es/packages/quickenter/style/css.js +2 -0
- package/dist/es/packages/quickenter/style/index.js +2 -0
- package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style/style.css +106 -0
- package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/es/packages/radio/index.js +0 -1
- package/dist/es/packages/range/range.js +45 -29
- package/dist/es/packages/rate/rate.js +6 -9
- package/dist/es/packages/resultpage/resultpage.js +2 -1
- package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/es/packages/safearea/safearea.js +3 -12
- package/dist/es/packages/safearea/style/safearea.scss +0 -6
- package/dist/es/packages/safearea/style/style.css +0 -2
- package/dist/es/packages/safearea/style/style.harmony.css +0 -2
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/es/packages/searchbar/searchbar.js +23 -9
- package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/es/packages/step/step.js +3 -8
- package/dist/es/packages/step/style/step.scss +0 -2
- package/dist/es/packages/step/style/style.css +0 -2
- package/dist/es/packages/step/style/style.harmony.css +0 -2
- package/dist/es/packages/step/style-jmapp/step.scss +0 -2
- package/dist/es/packages/step/style-jmapp/style.css +0 -2
- package/dist/es/packages/step/style-jrkf/step.scss +0 -2
- package/dist/es/packages/step/style-jrkf/style.css +0 -2
- package/dist/es/packages/steps/style/steps.scss +10 -3
- package/dist/es/packages/steps/style/style.css +13 -7
- package/dist/es/packages/steps/style/style.harmony.css +13 -9
- package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/es/packages/steps/style-jmapp/style.css +9 -3
- package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/es/packages/steps/style-jrkf/style.css +9 -3
- package/dist/es/packages/sticky/sticky.js +4 -7
- package/dist/es/packages/swipe/swipe.js +85 -123
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- package/dist/es/packages/table/style/style.css +1 -1
- package/dist/es/packages/table/style/style.harmony.css +1 -1
- package/dist/es/packages/table/style/table.scss +1 -1
- package/dist/es/packages/table/style-jmapp/style.css +1 -1
- package/dist/es/packages/table/style-jmapp/table.scss +1 -1
- package/dist/es/packages/table/style-jrkf/style.css +1 -1
- package/dist/es/packages/table/style-jrkf/table.scss +1 -1
- package/dist/es/packages/tabs/tabs.js +12 -5
- package/dist/es/packages/tag/style/style.css +1 -1
- package/dist/es/packages/tag/style/style.harmony.css +1 -1
- package/dist/es/packages/tag/style/tag.scss +1 -1
- package/dist/es/packages/tag/style-jmapp/style.css +1 -1
- package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/es/packages/tag/style-jrkf/style.css +1 -1
- package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/es/packages/toast/style/style.css +2 -4
- package/dist/es/packages/toast/style/style.harmony.css +2 -4
- package/dist/es/packages/toast/style/toast.scss +2 -4
- package/dist/es/packages/toast/style-jmapp/style.css +2 -4
- package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/es/packages/toast/style-jrkf/style.css +2 -4
- package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/es/packages/toast/toast.js +1 -1
- package/dist/es/packages/tour/style/style.harmony.css +38 -17
- package/dist/es/packages/uploader/uploader.js +38 -51
- package/dist/es/packages/watermark/watermark.js +4 -8
- package/dist/es/types/index.d.ts +3 -0
- package/dist/es/types/index.js +3 -0
- package/dist/es/types/spec/address/base.js +1 -1
- package/dist/es/types/spec/button/base.d.ts +2 -1
- package/dist/es/types/spec/button/taro.d.ts +5 -1
- package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/es/types/spec/dialog/base.d.ts +3 -8
- package/dist/es/types/spec/dialog/h5.d.ts +2 -0
- package/dist/es/types/spec/dialog/taro.d.ts +2 -0
- package/dist/es/types/spec/overlay/base.d.ts +1 -0
- package/dist/es/types/spec/popup/base.d.ts +4 -5
- package/dist/es/types/spec/price/base.d.ts +4 -0
- package/dist/es/types/spec/quickenter/base.d.ts +45 -0
- package/dist/es/types/spec/quickenter/base.js +1 -0
- package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/es/types/spec/quickenter/h5.js +1 -0
- package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/es/types/spec/quickenter/taro.js +1 -0
- package/dist/es/utils/event-mocker.js +4 -12
- package/dist/es/utils/render.js +2 -6
- package/dist/es/utils/should-render-price-raw.d.ts +2 -0
- package/dist/es/utils/should-render-price-raw.js +30 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
- package/dist/es/utils/taro/get-rect.js +14 -22
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +8 -7
- package/dist/nutui.react.umd.js +8698 -7529
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +47 -46
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +31 -30
- package/dist/style.css +1 -1
- package/dist/style.scss +34 -33
- package/dist/styles/jd-font.scss +2 -2
- package/dist/styles/theme-dark.scss +1 -2
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-daojia.scss +41 -0
- package/dist/styles/variables-jmapp.scss +41 -0
- package/dist/styles/variables-jrkf.scss +41 -0
- package/dist/styles/variables.scss +49 -4
- package/package.json +1 -1
- package/dist/cjs/locales/vi-VN.d.ts +0 -3
- package/dist/cjs/locales/vi-VN.js +0 -170
- package/dist/es/locales/vi-VN.d.ts +0 -3
- package/dist/es/locales/vi-VN.js +0 -160
- package/postinstall.js +0 -9
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* #ifdef harmony */
|
|
3
|
+
/* #endif */
|
|
4
|
+
/* #ifndef harmony */
|
|
5
|
+
/* #endif */
|
|
6
|
+
.nut-overlay {
|
|
7
|
+
position: fixed;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background-color: var(--nutui-overlay-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nut-overflow-hidden {
|
|
18
|
+
overflow: hidden !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes nut-fade-in {
|
|
22
|
+
0% {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
1% {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
100% {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@keyframes nut-fade-out {
|
|
33
|
+
0% {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
1% {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.nut-overlay-slide-enter-active, .nut-overlay-slide-appear-active {
|
|
44
|
+
animation-fill-mode: both;
|
|
45
|
+
animation-name: nut-fade-in;
|
|
46
|
+
animation-duration: var(--nutui-overlay-animation-duration, 0.3s);
|
|
47
|
+
}
|
|
48
|
+
.nut-overlay-slide-exit-active {
|
|
49
|
+
animation-fill-mode: both;
|
|
50
|
+
animation-name: nut-fade-out;
|
|
51
|
+
animation-duration: var(--nutui-overlay-animation-duration, 0.3s);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[dir=rtl] .nut-overlay,
|
|
55
|
+
.nut-rtl .nut-overlay {
|
|
56
|
+
left: auto;
|
|
57
|
+
right: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nut-popup {
|
|
61
|
+
position: fixed;
|
|
62
|
+
min-height: 26%;
|
|
63
|
+
max-height: 100%;
|
|
64
|
+
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-color-background-overlay, #ffffff));
|
|
65
|
+
-webkit-overflow-scrolling: touch;
|
|
66
|
+
font-size: var(--nutui-font-size-base, 14px);
|
|
67
|
+
}
|
|
68
|
+
.nut-popup-title {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
border-bottom: var(--nutui-popup-title-border-bottom, 0);
|
|
74
|
+
padding: var(--nutui-popup-title-padding, 11px);
|
|
75
|
+
position: relative;
|
|
76
|
+
}
|
|
77
|
+
.nut-popup-title-wrapper {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
.nut-popup-title-title {
|
|
84
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
85
|
+
font-weight: var(--nutui-font-weight-bold, 600);
|
|
86
|
+
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
87
|
+
}
|
|
88
|
+
.nut-popup-title-description {
|
|
89
|
+
color: var(--nutui-color-text, #505259);
|
|
90
|
+
font-size: var(--nutui-popup-description-font-size, var(--nutui-font-size-base, 14px));
|
|
91
|
+
font-weight: var(--nutui-font-weight, 400);
|
|
92
|
+
}
|
|
93
|
+
.nut-popup-title-description-gap {
|
|
94
|
+
margin-top: var(--nutui-popup-description-spacing, var(--nutui-spacing-base, 8px));
|
|
95
|
+
}
|
|
96
|
+
.nut-popup-title-left {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
99
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
100
|
+
}
|
|
101
|
+
.nut-popup-title-right {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
104
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
105
|
+
z-index: 1;
|
|
106
|
+
width: var(--nutui-popup-icon-size, 20px);
|
|
107
|
+
height: var(--nutui-popup-icon-size, 20px);
|
|
108
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
}
|
|
111
|
+
.nut-popup-title-right:active {
|
|
112
|
+
opacity: 0.7;
|
|
113
|
+
}
|
|
114
|
+
.nut-popup-title-right-top-left {
|
|
115
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
116
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
117
|
+
}
|
|
118
|
+
.nut-popup-title-right-bottom-left {
|
|
119
|
+
bottom: var(--nutui-popup-title-padding, 11px);
|
|
120
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
121
|
+
}
|
|
122
|
+
.nut-popup-title-right-bottom-right {
|
|
123
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
124
|
+
bottom: var(--nutui-popup-title-padding, 11px);
|
|
125
|
+
}
|
|
126
|
+
.nut-popup-center {
|
|
127
|
+
top: 50%;
|
|
128
|
+
left: 50%;
|
|
129
|
+
right: auto;
|
|
130
|
+
bottom: auto;
|
|
131
|
+
min-height: 10%;
|
|
132
|
+
max-width: 295px;
|
|
133
|
+
transform: translate(-50%, -50%);
|
|
134
|
+
}
|
|
135
|
+
.nut-popup-center.nut-popup-round {
|
|
136
|
+
border-radius: var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px));
|
|
137
|
+
}
|
|
138
|
+
.nut-popup-bottom {
|
|
139
|
+
bottom: 0;
|
|
140
|
+
left: 0;
|
|
141
|
+
right: auto;
|
|
142
|
+
top: auto;
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
.nut-popup-bottom.nut-popup-round {
|
|
146
|
+
border-radius: var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) 0 0;
|
|
147
|
+
}
|
|
148
|
+
.nut-popup-bottom-top {
|
|
149
|
+
position: absolute;
|
|
150
|
+
}
|
|
151
|
+
.nut-popup-right {
|
|
152
|
+
top: 0;
|
|
153
|
+
right: 0;
|
|
154
|
+
left: auto;
|
|
155
|
+
bottom: auto;
|
|
156
|
+
width: 100px;
|
|
157
|
+
height: 100%;
|
|
158
|
+
}
|
|
159
|
+
.nut-popup-right.nut-popup-round {
|
|
160
|
+
border-radius: var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) 0 0 var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px));
|
|
161
|
+
}
|
|
162
|
+
.nut-popup-left {
|
|
163
|
+
top: 0;
|
|
164
|
+
left: 0;
|
|
165
|
+
right: auto;
|
|
166
|
+
bottom: auto;
|
|
167
|
+
width: 100px;
|
|
168
|
+
height: 100%;
|
|
169
|
+
}
|
|
170
|
+
.nut-popup-left.nut-popup-round {
|
|
171
|
+
border-radius: 0 var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) 0;
|
|
172
|
+
}
|
|
173
|
+
.nut-popup-top {
|
|
174
|
+
top: 0;
|
|
175
|
+
left: 0;
|
|
176
|
+
right: auto;
|
|
177
|
+
bottom: auto;
|
|
178
|
+
width: 100%;
|
|
179
|
+
}
|
|
180
|
+
.nut-popup-top.nut-popup-round {
|
|
181
|
+
border-radius: 0 0 var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px)) var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px));
|
|
182
|
+
}
|
|
183
|
+
.nut-popup-slide {
|
|
184
|
+
/* 从顶部滑出 */
|
|
185
|
+
/* 从右侧滑出 */
|
|
186
|
+
/* 从底部滑出 */
|
|
187
|
+
/* 从左侧滑出 */
|
|
188
|
+
}
|
|
189
|
+
@keyframes popup-scale-fade-in {
|
|
190
|
+
from {
|
|
191
|
+
opacity: 0;
|
|
192
|
+
transform: scale(0.8);
|
|
193
|
+
}
|
|
194
|
+
to {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
transform: scale(1);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
@keyframes popup-scale-fade-out {
|
|
200
|
+
from {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
transform: scale(1);
|
|
203
|
+
}
|
|
204
|
+
to {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
transform: scale(0.8);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
.nut-popup-slide-none-enter-active {
|
|
210
|
+
animation-fill-mode: both;
|
|
211
|
+
animation-name: popup-scale-fade-in;
|
|
212
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
213
|
+
}
|
|
214
|
+
.nut-popup-slide-none-exit-active {
|
|
215
|
+
animation-fill-mode: both;
|
|
216
|
+
animation-name: popup-scale-fade-out;
|
|
217
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
218
|
+
}
|
|
219
|
+
@keyframes popup-fade-in {
|
|
220
|
+
from {
|
|
221
|
+
opacity: 0;
|
|
222
|
+
}
|
|
223
|
+
to {
|
|
224
|
+
opacity: 1;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
@keyframes popup-fade-out {
|
|
228
|
+
from {
|
|
229
|
+
opacity: 1;
|
|
230
|
+
}
|
|
231
|
+
to {
|
|
232
|
+
opacity: 0;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.nut-popup-slide-center-enter-active {
|
|
236
|
+
animation-fill-mode: both;
|
|
237
|
+
animation-name: popup-fade-in;
|
|
238
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
239
|
+
}
|
|
240
|
+
.nut-popup-slide-center-exit-active {
|
|
241
|
+
animation-fill-mode: both;
|
|
242
|
+
animation-name: popup-fade-out;
|
|
243
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
244
|
+
}
|
|
245
|
+
@keyframes popup-slide-top-enter {
|
|
246
|
+
from {
|
|
247
|
+
transform: translate3d(0, -100%, 0);
|
|
248
|
+
}
|
|
249
|
+
to {
|
|
250
|
+
transform: translate3d(0, 0%, 0);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
@keyframes popup-slide-top-exit {
|
|
254
|
+
from {
|
|
255
|
+
transform: translate3d(0, 0%, 0);
|
|
256
|
+
}
|
|
257
|
+
to {
|
|
258
|
+
transform: translate3d(0, -100%, 0);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
.nut-popup-slide-top-enter-active, .nut-popup-slide-top-appear-active {
|
|
262
|
+
transform: translate3d(0, 0%, 0);
|
|
263
|
+
animation-fill-mode: both;
|
|
264
|
+
animation-name: popup-slide-top-enter;
|
|
265
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
266
|
+
}
|
|
267
|
+
.nut-popup-slide-top-exit-active {
|
|
268
|
+
animation-fill-mode: both;
|
|
269
|
+
animation-name: popup-slide-top-exit;
|
|
270
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
271
|
+
}
|
|
272
|
+
@keyframes popup-slide-right-enter {
|
|
273
|
+
from {
|
|
274
|
+
transform: translate3d(100%, 0, 0);
|
|
275
|
+
}
|
|
276
|
+
to {
|
|
277
|
+
transform: translate3d(0%, 0, 0);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
@keyframes popup-slide-right-exit {
|
|
281
|
+
from {
|
|
282
|
+
transform: translate3d(0%, 0, 0);
|
|
283
|
+
}
|
|
284
|
+
to {
|
|
285
|
+
transform: translate3d(100%, 0, 0);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
.nut-popup-slide-right-enter-active, .nut-popup-slide-right-appear-active {
|
|
289
|
+
transform: translate3d(0, 0, 0);
|
|
290
|
+
animation-fill-mode: both;
|
|
291
|
+
animation-name: popup-slide-right-enter;
|
|
292
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
|
+
}
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
|
+
animation-fill-mode: both;
|
|
296
|
+
animation-name: popup-slide-right-exit;
|
|
297
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
298
|
+
}
|
|
299
|
+
@keyframes popup-slide-bottom-enter {
|
|
300
|
+
from {
|
|
301
|
+
transform: translate3d(0, 100%, 0);
|
|
302
|
+
}
|
|
303
|
+
to {
|
|
304
|
+
transform: translate3d(0, 0%, 0);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
|
+
from {
|
|
309
|
+
transform: translate3d(0, 0%, 0);
|
|
310
|
+
}
|
|
311
|
+
to {
|
|
312
|
+
transform: translate3d(0, 100%, 0);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
+
transform: translate(0, 0);
|
|
317
|
+
animation-fill-mode: both;
|
|
318
|
+
animation-name: popup-slide-bottom-enter;
|
|
319
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
|
+
}
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
|
+
animation-fill-mode: both;
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
|
+
}
|
|
326
|
+
@keyframes popup-slide-left-enter {
|
|
327
|
+
from {
|
|
328
|
+
transform: translate3d(-100%, 0, 0);
|
|
329
|
+
}
|
|
330
|
+
to {
|
|
331
|
+
transform: translate3d(0%, 0, 0);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
@keyframes popup-slide-left-exit {
|
|
335
|
+
from {
|
|
336
|
+
transform: translate3d(0%, 0, 0);
|
|
337
|
+
}
|
|
338
|
+
to {
|
|
339
|
+
transform: translate3d(-100%, 0, 0);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
+
transform: translate(0, 0);
|
|
344
|
+
animation-fill-mode: both;
|
|
345
|
+
animation-name: popup-slide-left-enter;
|
|
346
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
|
+
}
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
|
+
animation-fill-mode: both;
|
|
350
|
+
animation-name: popup-slide-left-exit;
|
|
351
|
+
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
352
|
+
}
|
|
353
|
+
.nut-popup-slide-none-exit-done.nut-popup, .nut-popup-slide-center-exit-done.nut-popup, .nut-popup-slide-left-exit-done.nut-popup, .nut-popup-slide-right-exit-done.nut-popup, .nut-popup-slide-top-exit-done.nut-popup, .nut-popup-slide-bottom-exit-done.nut-popup {
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
.nut-popup .nut-overflow-hidden {
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
[dir=rtl] .nut-popup-title-left,
|
|
361
|
+
.nut-rtl .nut-popup-title-left {
|
|
362
|
+
left: auto;
|
|
363
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
364
|
+
}
|
|
365
|
+
[dir=rtl] .nut-popup-title-right,
|
|
366
|
+
.nut-rtl .nut-popup-title-right {
|
|
367
|
+
right: auto;
|
|
368
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
369
|
+
}
|
|
370
|
+
[dir=rtl] .nut-popup-title-right-top-left,
|
|
371
|
+
.nut-rtl .nut-popup-title-right-top-left {
|
|
372
|
+
left: auto;
|
|
373
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
374
|
+
}
|
|
375
|
+
[dir=rtl] .nut-popup-title-right-bottom-left,
|
|
376
|
+
.nut-rtl .nut-popup-title-right-bottom-left {
|
|
377
|
+
left: auto;
|
|
378
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
379
|
+
}
|
|
380
|
+
[dir=rtl] .nut-popup-title-right-bottom-right,
|
|
381
|
+
.nut-rtl .nut-popup-title-right-bottom-right {
|
|
382
|
+
right: auto;
|
|
383
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
384
|
+
}
|
|
385
|
+
[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,
|
|
386
|
+
.nut-rtl .nut-popup-title .nut-icon-ArrowLeft {
|
|
387
|
+
transform: rotate(180deg);
|
|
388
|
+
}
|
|
389
|
+
[dir=rtl] .nut-popup-center,
|
|
390
|
+
.nut-rtl .nut-popup-center {
|
|
391
|
+
left: auto;
|
|
392
|
+
right: 50%;
|
|
393
|
+
transform: translate(50%, -50%);
|
|
394
|
+
}
|
|
395
|
+
[dir=rtl] .nut-popup-bottom,
|
|
396
|
+
.nut-rtl .nut-popup-bottom {
|
|
397
|
+
left: auto;
|
|
398
|
+
right: 0;
|
|
399
|
+
}
|
|
400
|
+
[dir=rtl] .nut-popup-top,
|
|
401
|
+
.nut-rtl .nut-popup-top {
|
|
402
|
+
left: auto;
|
|
403
|
+
right: 0;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.nut-quickenter {
|
|
407
|
+
width: 100%;
|
|
408
|
+
/* 限制弹层最大高度,包含安全区 */
|
|
409
|
+
max-height: calc(var(--nutui-quickenter-max-height, 256px) + env(safe-area-inset-top, 0));
|
|
410
|
+
background: var(--nutui-quickenter-bg-color, #f5f5f5);
|
|
411
|
+
border-radius: 0 0 12px 12px;
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
box-sizing: border-box;
|
|
414
|
+
display: flex;
|
|
415
|
+
flex-direction: column;
|
|
416
|
+
box-shadow: var(--nutui-quickenter-box-shadow, 0px 8px 16px rgba(141, 153, 167, 0.2), 0px -0.5px 0px rgba(0, 0, 0, 0.05) inset);
|
|
417
|
+
}
|
|
418
|
+
.nut-quickenter.safe-area-top {
|
|
419
|
+
/* 使用 env fallback,确保旧浏览器返回 0 */
|
|
420
|
+
padding-top: calc(env(safe-area-inset-top, 0) * var(--nutui-safe-area-multiple, 1));
|
|
421
|
+
}
|
|
422
|
+
.nut-quickenter-control {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: space-between;
|
|
426
|
+
padding: 30px 16px 0;
|
|
427
|
+
box-sizing: border-box;
|
|
428
|
+
}
|
|
429
|
+
.nut-quickenter-title {
|
|
430
|
+
flex: 1;
|
|
431
|
+
overflow: hidden;
|
|
432
|
+
text-overflow: ellipsis;
|
|
433
|
+
white-space: nowrap;
|
|
434
|
+
text-align: left;
|
|
435
|
+
color: var(--nutui-quickenter-title-color, var(--nutui-color-title, #1a1a1a));
|
|
436
|
+
font-size: var(--nutui-quickenter-title-font-size, var(--nutui-font-size-base, 14px));
|
|
437
|
+
}
|
|
438
|
+
.nut-quickenter-close-btn {
|
|
439
|
+
color: var(--nutui-quickenter-close-icon-color, #808080);
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
442
|
+
justify-content: center;
|
|
443
|
+
}
|
|
444
|
+
.nut-quickenter-close-btn svg,
|
|
445
|
+
.nut-quickenter-close-btn .nut-icon {
|
|
446
|
+
width: var(--nutui-quickenter-close-icon-size, 12px);
|
|
447
|
+
height: var(--nutui-quickenter-close-icon-size, 12px);
|
|
448
|
+
}
|
|
449
|
+
.nut-quickenter-content {
|
|
450
|
+
flex: 1;
|
|
451
|
+
padding: 10px 28px;
|
|
452
|
+
overflow-y: hidden;
|
|
453
|
+
box-sizing: border-box;
|
|
454
|
+
}
|
|
455
|
+
.nut-quickenter-content-scrollable {
|
|
456
|
+
overflow-y: auto;
|
|
457
|
+
-webkit-overflow-scrolling: touch;
|
|
458
|
+
}
|
|
459
|
+
.nut-quickenter-list {
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-wrap: wrap;
|
|
462
|
+
align-items: flex-start;
|
|
463
|
+
width: 100%;
|
|
464
|
+
}
|
|
465
|
+
.nut-quickenter-item {
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: column;
|
|
468
|
+
align-items: center;
|
|
469
|
+
justify-content: flex-start;
|
|
470
|
+
width: 56px;
|
|
471
|
+
padding: 0 0 12px 0;
|
|
472
|
+
box-sizing: border-box;
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
margin-right: calc((100% - 224px) / 3);
|
|
475
|
+
}
|
|
476
|
+
.nut-quickenter-item:nth-child(4n) {
|
|
477
|
+
margin-right: 0;
|
|
478
|
+
}
|
|
479
|
+
.nut-quickenter-item-icon {
|
|
480
|
+
width: 56px;
|
|
481
|
+
height: 56px;
|
|
482
|
+
display: flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
border-radius: 50%;
|
|
486
|
+
background: var(--nutui-quickenter-item-icon-bg-color, #ffffff);
|
|
487
|
+
color: var(--nutui-quickenter-item-icon-color, var(--nutui-color-title, #1a1a1a));
|
|
488
|
+
margin-bottom: 8px;
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
}
|
|
491
|
+
.nut-quickenter-item-icon svg,
|
|
492
|
+
.nut-quickenter-item-icon .nut-icon {
|
|
493
|
+
width: 22px;
|
|
494
|
+
height: 22px;
|
|
495
|
+
}
|
|
496
|
+
.nut-quickenter-item-title {
|
|
497
|
+
font-size: var(--nutui-quickenter-item-title-font-size, var(--nutui-font-size-s, 12px));
|
|
498
|
+
color: var(--nutui-quickenter-item-title-color, var(--nutui-color-title, #1a1a1a));
|
|
499
|
+
text-align: center;
|
|
500
|
+
line-height: 1.4;
|
|
501
|
+
white-space: normal;
|
|
502
|
+
word-wrap: break-word;
|
|
503
|
+
width: 72px;
|
|
504
|
+
margin-left: -8px;
|
|
505
|
+
margin-right: -8px;
|
|
506
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.nut-quickenter {
|
|
2
|
+
width: 100%;
|
|
3
|
+
/* 限制弹层最大高度,包含安全区 */
|
|
4
|
+
max-height: calc(#{$quickenter-max-height} + env(safe-area-inset-top, 0));
|
|
5
|
+
background: $quickenter-bg-color;
|
|
6
|
+
border-radius: 0 0 12px 12px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
box-shadow: $quickenter-box-shadow;
|
|
12
|
+
// backdrop-filter: $quickenter-backdrop-filter;
|
|
13
|
+
|
|
14
|
+
&.safe-area-top {
|
|
15
|
+
/* 使用 env fallback,确保旧浏览器返回 0 */
|
|
16
|
+
padding-top: calc(
|
|
17
|
+
env(safe-area-inset-top, 0) * var(--nutui-safe-area-multiple, 1)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-control {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
padding: 30px 16px 0;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-title {
|
|
30
|
+
flex: 1;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
text-align: left;
|
|
35
|
+
color: $quickenter-title-color;
|
|
36
|
+
font-size: $quickenter-title-font-size;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-close-btn {
|
|
40
|
+
color: $quickenter-close-icon-color;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
|
|
45
|
+
svg,
|
|
46
|
+
.nut-icon {
|
|
47
|
+
width: $quickenter-close-icon-size;
|
|
48
|
+
height: $quickenter-close-icon-size;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-content {
|
|
53
|
+
flex: 1;
|
|
54
|
+
padding: 10px 28px;
|
|
55
|
+
overflow-y: hidden; // 始终可滚动,防止内容被遮挡
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
|
|
58
|
+
&-scrollable {
|
|
59
|
+
overflow-y: auto; // Only scroll when > 8 items
|
|
60
|
+
-webkit-overflow-scrolling: touch;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-list {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-wrap: wrap;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-item {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: flex-start;
|
|
76
|
+
width: 56px;
|
|
77
|
+
padding: 0 0 12px 0; // Reduced from 16px to ensure 2 rows fit in 256px
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
|
|
81
|
+
// Calculate gap for 4 items per row: (100% - 4 * 56px) / 3
|
|
82
|
+
margin-right: calc((100% - 224px) / 3);
|
|
83
|
+
|
|
84
|
+
&:nth-child(4n) {
|
|
85
|
+
margin-right: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-icon {
|
|
89
|
+
width: 56px;
|
|
90
|
+
height: 56px;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background: $quickenter-item-icon-bg-color;
|
|
96
|
+
color: $quickenter-item-icon-color;
|
|
97
|
+
margin-bottom: 8px;
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
|
|
100
|
+
svg,
|
|
101
|
+
.nut-icon {
|
|
102
|
+
width: 22px;
|
|
103
|
+
height: 22px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-title {
|
|
108
|
+
font-size: $quickenter-item-title-font-size;
|
|
109
|
+
color: $quickenter-item-title-color;
|
|
110
|
+
text-align: center;
|
|
111
|
+
line-height: 1.4;
|
|
112
|
+
// Allow multi-line if text is long, preventing truncation
|
|
113
|
+
white-space: normal;
|
|
114
|
+
word-wrap: break-word;
|
|
115
|
+
width: 72px; // Allow text to be slightly wider than icon
|
|
116
|
+
margin-left: -8px; // Center 72px title over 56px icon
|
|
117
|
+
margin-right: -8px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|