@nutui/nutui-react-taro 3.0.0-beta.11 → 3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/packages/actionsheet/style/style.css +13 -18
- package/dist/cjs/packages/address/style/style.css +45 -57
- package/dist/cjs/packages/animatingnumbers/style/style.css +3 -3
- package/dist/cjs/packages/audio/style/style.css +55 -55
- package/dist/cjs/packages/avatar/avatar.js +2 -2
- package/dist/cjs/packages/avatar/style/style.css +2 -2
- package/dist/cjs/packages/backtop/backtop.js +1 -3
- package/dist/cjs/packages/backtop/style/backtop.scss +0 -4
- package/dist/cjs/packages/backtop/style/style.css +8 -14
- package/dist/cjs/packages/backtop/style/style.harmony.css +0 -3
- package/dist/cjs/packages/badge/style/style.css +4 -4
- package/dist/cjs/packages/barrage/style/style.css +2 -2
- package/dist/cjs/packages/button/button.js +20 -13
- package/dist/cjs/packages/button/style/button.scss +3 -3
- package/dist/cjs/packages/button/style/style.css +43 -43
- package/dist/cjs/packages/button/style/style.harmony.css +3 -3
- package/dist/cjs/packages/calendar/style/style.css +16 -21
- package/dist/cjs/packages/calendarcard/style/style.css +8 -8
- package/dist/cjs/packages/card/style/style.css +8 -8
- package/dist/cjs/packages/cascader/cascader.d.ts +2 -2
- package/dist/cjs/packages/cascader/cascader.js +4 -4
- package/dist/cjs/packages/cascader/style/style.css +35 -47
- package/dist/cjs/packages/cell/style/style.css +8 -8
- package/dist/cjs/packages/cellgroup/style/style.css +3 -3
- package/dist/cjs/packages/checkbox/style/style.css +29 -29
- package/dist/cjs/packages/checkboxgroup/style/style.css +7 -7
- package/dist/cjs/packages/circleprogress/style/style.css +3 -3
- package/dist/cjs/packages/col/style/col.scss +0 -1
- package/dist/cjs/packages/collapse/style/style.css +11 -11
- package/dist/cjs/packages/collapseitem/style/style.css +11 -11
- package/dist/cjs/packages/configprovider/configprovider.js +2 -2
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/style.css +7 -7
- package/dist/cjs/packages/countup/style/style.css +3 -3
- package/dist/cjs/packages/datepicker/style/style.css +14 -19
- package/dist/cjs/packages/dialog/content.d.ts +3 -13
- package/dist/cjs/packages/dialog/content.js +27 -9
- package/dist/cjs/packages/dialog/dialog.d.ts +3 -5
- package/dist/cjs/packages/dialog/dialog.js +21 -21
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/dialog.scss +0 -4
- package/dist/cjs/packages/dialog/style/style.css +49 -57
- package/dist/cjs/packages/dialog/types.d.ts +57 -0
- package/dist/cjs/packages/dialog/types.js +4 -0
- package/dist/cjs/packages/dialog/types.taro.d.ts +10 -0
- package/dist/cjs/packages/divider/style/style.css +4 -4
- package/dist/cjs/packages/elevator/style/style.css +8 -8
- package/dist/cjs/packages/empty/empty.js +1 -3
- package/dist/cjs/packages/empty/style/style.css +3 -3
- package/dist/cjs/packages/fixednav/fixednav.d.ts +2 -15
- package/dist/cjs/packages/fixednav/fixednav.js +15 -34
- package/dist/cjs/packages/fixednav/index.d.ts +1 -2
- package/dist/cjs/packages/fixednav/style/style.css +3 -8
- package/dist/cjs/packages/fixednav/types.d.ts +12 -0
- package/dist/cjs/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/cjs/packages/form/style/style.css +15 -15
- package/dist/cjs/packages/formitem/style/style.css +4 -4
- package/dist/cjs/packages/grid/style/style.css +6 -6
- package/dist/cjs/packages/griditem/style/style.css +5 -5
- package/dist/cjs/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/cjs/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/cjs/packages/hoverbutton/style/style.css +4 -7
- package/dist/cjs/packages/hoverbutton/style/style.harmony.css +0 -3
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +4 -5
- package/dist/cjs/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/cjs/packages/image/image.js +1 -1
- package/dist/cjs/packages/image/style/style.css +2 -2
- package/dist/cjs/packages/imagepreview/style/style.css +11 -27
- package/dist/cjs/packages/indicator/style/style.css +4 -4
- package/dist/cjs/packages/infiniteloading/style/style.css +4 -4
- package/dist/cjs/packages/input/style/input.scss +0 -6
- package/dist/cjs/packages/input/style/style.css +8 -14
- package/dist/cjs/packages/input/style/style.harmony.css +0 -6
- package/dist/cjs/packages/inputnumber/inputnumber.js +4 -14
- package/dist/cjs/packages/inputnumber/style/style.css +7 -7
- package/dist/cjs/packages/loading/style/style.css +2 -2
- package/dist/cjs/packages/menu/style/style.css +8 -13
- package/dist/cjs/packages/menuitem/style/style.css +4 -9
- package/dist/cjs/packages/navbar/style/navbar.scss +1 -1
- package/dist/cjs/packages/navbar/style/style.css +3 -3
- package/dist/cjs/packages/navbar/style/style.harmony.css +1 -1
- package/dist/cjs/packages/notify/notify.js +2 -9
- package/dist/cjs/packages/notify/style/style.css +4 -4
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +13 -18
- package/dist/cjs/packages/overlay/index.d.ts +1 -1
- package/dist/cjs/packages/overlay/overlay.d.ts +1 -12
- package/dist/cjs/packages/overlay/overlay.js +21 -34
- package/dist/cjs/packages/overlay/style/overlay.scss +0 -5
- package/dist/cjs/packages/overlay/style/style.css +1 -6
- package/dist/cjs/packages/overlay/style/style.harmony.css +0 -5
- package/dist/cjs/packages/overlay/types.d.ts +11 -0
- package/dist/cjs/packages/overlay/types.js +4 -0
- package/dist/cjs/packages/overlay/types.taro.d.ts +5 -0
- package/dist/cjs/packages/pagination/style/style.css +7 -7
- package/dist/cjs/packages/picker/picker.d.ts +1 -1
- package/dist/cjs/packages/picker/picker.js +4 -4
- package/dist/cjs/packages/picker/style/style.css +14 -19
- package/dist/cjs/packages/popover/popover.d.ts +1 -1
- package/dist/cjs/packages/popover/popover.js +1 -1
- package/dist/cjs/packages/popover/style/style.css +12 -17
- package/dist/cjs/packages/popup/index.d.ts +1 -1
- package/dist/cjs/packages/popup/popup.d.ts +2 -25
- package/dist/cjs/packages/popup/popup.js +23 -39
- package/dist/cjs/packages/popup/style/style.css +5 -10
- package/dist/cjs/packages/popup/types.d.ts +25 -0
- package/dist/cjs/packages/popup/types.js +4 -0
- package/dist/cjs/packages/popup/types.taro.d.ts +8 -0
- package/dist/cjs/packages/price/style/style.css +1 -1
- package/dist/cjs/packages/progress/progress.js +3 -6
- package/dist/cjs/packages/progress/style/style.css +1 -1
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +0 -6
- package/dist/cjs/packages/pulltorefresh/style/style.css +4 -4
- package/dist/cjs/packages/radio/style/style.css +19 -19
- package/dist/cjs/packages/radiogroup/style/style.css +6 -6
- package/dist/cjs/packages/range/range.js +6 -40
- package/dist/cjs/packages/range/style/style.css +9 -9
- package/dist/cjs/packages/resultpage/style/style.css +2 -2
- package/dist/cjs/packages/searchbar/style/style.css +5 -5
- package/dist/cjs/packages/segmented/style/style.css +2 -2
- package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/cjs/packages/shortpassword/style/style.css +15 -20
- package/dist/cjs/packages/sidebar/style/style.css +5 -5
- package/dist/cjs/packages/sidebaritem/style/style.css +1 -1
- package/dist/cjs/packages/sidenavbar/style/style.css +9 -14
- package/dist/cjs/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/cjs/packages/signature/style/style.css +2 -2
- package/dist/cjs/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/cjs/packages/skeleton/style/style.css +5 -11
- package/dist/cjs/packages/skeleton/style/style.harmony.css +0 -6
- package/dist/cjs/packages/step/style/style.css +19 -19
- package/dist/cjs/packages/steps/style/style.css +19 -19
- package/dist/cjs/packages/subsidenavbar/style/style.css +2 -2
- package/dist/cjs/packages/swipe/swipe.js +1 -1
- package/dist/cjs/packages/swiper/style/style.css +4 -15
- package/dist/cjs/packages/swiper/style/style.harmony.css +0 -11
- package/dist/cjs/packages/swiper/style/swiper.scss +0 -11
- package/dist/cjs/packages/switch/style/style.css +6 -6
- package/dist/cjs/packages/tabbar/style/style.css +10 -10
- package/dist/cjs/packages/tabbaritem/style/style.css +9 -9
- package/dist/cjs/packages/table/style/style.css +11 -11
- package/dist/cjs/packages/tabpane/style/style.css +1 -1
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/tabs/style/style.css +25 -32
- package/dist/cjs/packages/tabs/style/style.harmony.css +4 -11
- package/dist/cjs/packages/tabs/style/tabs.scss +4 -9
- package/dist/cjs/packages/tabs/tabs.js +30 -49
- package/dist/cjs/packages/tag/style/style.css +5 -5
- package/dist/cjs/packages/tag/style/tag.scss +0 -2
- package/dist/cjs/packages/textarea/style/style.css +13 -13
- package/dist/cjs/packages/timedetail/style/style.css +4 -4
- package/dist/cjs/packages/timeselect/style/style.css +14 -19
- package/dist/cjs/packages/toast/index.d.ts +2 -1
- package/dist/cjs/packages/toast/style/style.css +2 -20
- package/dist/cjs/packages/toast/style/style.harmony.css +0 -11
- package/dist/cjs/packages/toast/style/toast.scss +0 -13
- package/dist/cjs/packages/toast/toast.d.ts +1 -22
- package/dist/cjs/packages/toast/toast.js +26 -24
- package/dist/cjs/packages/toast/types.d.ts +17 -0
- package/dist/cjs/packages/toast/types.js +4 -0
- package/dist/cjs/packages/tour/style/style.css +16 -21
- package/dist/cjs/packages/trendarrow/style/style.css +1 -1
- package/dist/cjs/packages/uploader/style/style.css +12 -12
- package/dist/cjs/packages/virtuallist/style/style.css +4 -4
- package/dist/cjs/utils/get-rect-by-taro.js +0 -14
- package/dist/cjs/utils/platform-taro.d.ts +0 -2
- package/dist/cjs/utils/platform-taro.js +0 -21
- package/dist/cjs/utils/px-transform.js +0 -1
- package/dist/cjs/utils/use-custom-event.js +2 -2
- package/dist/es/packages/actionsheet/style/style.css +13 -18
- package/dist/es/packages/address/style/style.css +45 -57
- package/dist/es/packages/animatingnumbers/style/style.css +3 -3
- package/dist/es/packages/audio/style/style.css +55 -55
- package/dist/es/packages/avatar/avatar.js +3 -3
- package/dist/es/packages/avatar/style/style.css +2 -2
- package/dist/es/packages/backtop/backtop.js +1 -3
- package/dist/es/packages/backtop/style/backtop.scss +0 -4
- package/dist/es/packages/backtop/style/style.css +8 -14
- package/dist/es/packages/backtop/style/style.harmony.css +0 -3
- package/dist/es/packages/badge/style/style.css +4 -4
- package/dist/es/packages/barrage/style/style.css +2 -2
- package/dist/es/packages/button/button.js +22 -15
- package/dist/es/packages/button/style/button.scss +3 -3
- package/dist/es/packages/button/style/style.css +43 -43
- package/dist/es/packages/button/style/style.harmony.css +3 -3
- package/dist/es/packages/calendar/style/style.css +16 -21
- package/dist/es/packages/calendarcard/style/style.css +8 -8
- package/dist/es/packages/card/style/style.css +8 -8
- package/dist/es/packages/cascader/cascader.d.ts +2 -2
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/cascader/style/style.css +35 -47
- package/dist/es/packages/cell/style/style.css +8 -8
- package/dist/es/packages/cellgroup/style/style.css +3 -3
- package/dist/es/packages/checkbox/style/style.css +29 -29
- package/dist/es/packages/checkboxgroup/style/style.css +7 -7
- package/dist/es/packages/circleprogress/style/style.css +3 -3
- package/dist/es/packages/col/style/col.scss +0 -1
- package/dist/es/packages/collapse/style/style.css +11 -11
- package/dist/es/packages/collapseitem/style/style.css +11 -11
- package/dist/es/packages/configprovider/configprovider.js +2 -2
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/style.css +7 -7
- package/dist/es/packages/countup/style/style.css +3 -3
- package/dist/es/packages/datepicker/style/style.css +14 -19
- package/dist/es/packages/dialog/content.d.ts +3 -13
- package/dist/es/packages/dialog/content.js +16 -6
- package/dist/es/packages/dialog/dialog.d.ts +3 -5
- package/dist/es/packages/dialog/dialog.js +22 -22
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/dialog.scss +0 -4
- package/dist/es/packages/dialog/style/style.css +49 -57
- package/dist/es/packages/dialog/types.d.ts +57 -0
- package/dist/es/packages/dialog/types.js +1 -0
- package/dist/es/packages/dialog/types.taro.d.ts +10 -0
- package/dist/es/packages/divider/style/style.css +4 -4
- package/dist/es/packages/elevator/style/style.css +8 -8
- package/dist/es/packages/empty/empty.js +1 -3
- package/dist/es/packages/empty/style/style.css +3 -3
- package/dist/es/packages/fixednav/fixednav.d.ts +2 -55
- package/dist/es/packages/fixednav/fixednav.js +15 -34
- package/dist/es/packages/fixednav/index.d.ts +1 -2
- package/dist/es/packages/fixednav/style/style.css +3 -8
- package/dist/es/packages/fixednav/types.d.ts +12 -0
- package/dist/es/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/es/packages/form/style/style.css +15 -15
- package/dist/es/packages/formitem/style/style.css +4 -4
- package/dist/es/packages/grid/style/style.css +6 -6
- package/dist/es/packages/griditem/style/style.css +5 -5
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/es/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/es/packages/hoverbutton/style/style.css +4 -7
- package/dist/es/packages/hoverbutton/style/style.harmony.css +0 -3
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +5 -6
- package/dist/es/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/es/packages/image/image.js +1 -1
- package/dist/es/packages/image/style/style.css +2 -2
- package/dist/es/packages/imagepreview/style/style.css +11 -27
- package/dist/es/packages/indicator/style/style.css +4 -4
- package/dist/es/packages/infiniteloading/style/style.css +4 -4
- package/dist/es/packages/input/style/input.scss +0 -6
- package/dist/es/packages/input/style/style.css +8 -14
- package/dist/es/packages/input/style/style.harmony.css +0 -6
- package/dist/es/packages/inputnumber/inputnumber.js +6 -16
- package/dist/es/packages/inputnumber/style/style.css +7 -7
- package/dist/es/packages/loading/style/style.css +2 -2
- package/dist/es/packages/menu/style/style.css +8 -13
- package/dist/es/packages/menuitem/style/style.css +4 -9
- package/dist/es/packages/navbar/style/navbar.scss +1 -1
- package/dist/es/packages/navbar/style/style.css +3 -3
- package/dist/es/packages/navbar/style/style.harmony.css +1 -1
- package/dist/es/packages/notify/notify.js +2 -9
- package/dist/es/packages/notify/style/style.css +4 -4
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/es/packages/numberkeyboard/style/style.css +13 -18
- package/dist/es/packages/overlay/index.d.ts +1 -1
- package/dist/es/packages/overlay/overlay.d.ts +1 -12
- package/dist/es/packages/overlay/overlay.js +22 -35
- package/dist/es/packages/overlay/style/overlay.scss +0 -5
- package/dist/es/packages/overlay/style/style.css +1 -6
- package/dist/es/packages/overlay/style/style.harmony.css +0 -5
- package/dist/es/packages/overlay/types.d.ts +11 -0
- package/dist/es/packages/overlay/types.js +1 -0
- package/dist/es/packages/overlay/types.taro.d.ts +5 -0
- package/dist/es/packages/pagination/style/style.css +7 -7
- package/dist/es/packages/picker/picker.d.ts +1 -1
- package/dist/es/packages/picker/picker.js +1 -1
- package/dist/es/packages/picker/style/style.css +14 -19
- package/dist/es/packages/popover/popover.d.ts +1 -1
- package/dist/es/packages/popover/popover.js +1 -1
- package/dist/es/packages/popover/style/style.css +12 -17
- package/dist/es/packages/popup/index.d.ts +1 -1
- package/dist/es/packages/popup/popup.d.ts +2 -25
- package/dist/es/packages/popup/popup.js +23 -39
- package/dist/es/packages/popup/style/style.css +5 -10
- package/dist/es/packages/popup/types.d.ts +25 -0
- package/dist/es/packages/popup/types.js +1 -0
- package/dist/es/packages/popup/types.taro.d.ts +8 -0
- package/dist/es/packages/price/style/style.css +1 -1
- package/dist/es/packages/progress/progress.js +4 -7
- package/dist/es/packages/progress/style/style.css +1 -1
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +0 -6
- package/dist/es/packages/pulltorefresh/style/style.css +4 -4
- package/dist/es/packages/radio/style/style.css +19 -19
- package/dist/es/packages/radiogroup/style/style.css +6 -6
- package/dist/es/packages/range/range.js +7 -41
- package/dist/es/packages/range/style/style.css +9 -9
- package/dist/es/packages/resultpage/style/style.css +2 -2
- package/dist/es/packages/searchbar/style/style.css +5 -5
- package/dist/es/packages/segmented/style/style.css +2 -2
- package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/es/packages/shortpassword/style/style.css +15 -20
- package/dist/es/packages/sidebar/style/style.css +5 -5
- package/dist/es/packages/sidebaritem/style/style.css +1 -1
- package/dist/es/packages/sidenavbar/style/style.css +9 -14
- package/dist/es/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/es/packages/signature/style/style.css +2 -2
- package/dist/es/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/es/packages/skeleton/style/style.css +5 -11
- package/dist/es/packages/skeleton/style/style.harmony.css +0 -6
- package/dist/es/packages/step/style/style.css +19 -19
- package/dist/es/packages/steps/style/style.css +19 -19
- package/dist/es/packages/subsidenavbar/style/style.css +2 -2
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/swiper/style/style.css +4 -15
- package/dist/es/packages/swiper/style/style.harmony.css +0 -11
- package/dist/es/packages/swiper/style/swiper.scss +0 -11
- package/dist/es/packages/switch/style/style.css +6 -6
- package/dist/es/packages/tabbar/style/style.css +10 -10
- package/dist/es/packages/tabbaritem/style/style.css +9 -9
- package/dist/es/packages/table/style/style.css +11 -11
- package/dist/es/packages/tabpane/style/style.css +1 -1
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/tabs/style/style.css +25 -32
- package/dist/es/packages/tabs/style/style.harmony.css +4 -11
- package/dist/es/packages/tabs/style/tabs.scss +4 -9
- package/dist/es/packages/tabs/tabs.js +30 -49
- package/dist/es/packages/tag/style/style.css +5 -5
- package/dist/es/packages/tag/style/tag.scss +0 -2
- package/dist/es/packages/textarea/style/style.css +13 -13
- package/dist/es/packages/timedetail/style/style.css +4 -4
- package/dist/es/packages/timeselect/style/style.css +14 -19
- package/dist/es/packages/toast/index.d.ts +2 -1
- package/dist/es/packages/toast/style/style.css +2 -20
- package/dist/es/packages/toast/style/style.harmony.css +0 -11
- package/dist/es/packages/toast/style/toast.scss +0 -13
- package/dist/es/packages/toast/toast.d.ts +1 -22
- package/dist/es/packages/toast/toast.js +26 -25
- package/dist/es/packages/toast/types.d.ts +17 -0
- package/dist/es/packages/toast/types.js +1 -0
- package/dist/es/packages/tour/style/style.css +16 -21
- package/dist/es/packages/trendarrow/style/style.css +1 -1
- package/dist/es/packages/uploader/style/style.css +12 -12
- package/dist/es/packages/virtuallist/style/style.css +4 -4
- package/dist/es/utils/get-rect-by-taro.js +0 -14
- package/dist/es/utils/platform-taro.d.ts +0 -2
- package/dist/es/utils/platform-taro.js +0 -15
- package/dist/es/utils/px-transform.js +1 -2
- package/dist/es/utils/use-custom-event.js +1 -1
- package/dist/nutui.react.umd.js +420 -1118
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/variables.scss +68 -32
- package/package.json +2 -2
|
@@ -4,19 +4,14 @@
|
|
|
4
4
|
/* #ifndef harmony */
|
|
5
5
|
/* #endif */
|
|
6
6
|
.nut-overlay {
|
|
7
|
-
/* #ifdef rn */
|
|
8
|
-
position: absolute;
|
|
9
|
-
/* #endif */
|
|
10
|
-
/* #ifndef rn */
|
|
11
7
|
position: fixed;
|
|
12
|
-
/* #endif */
|
|
13
8
|
top: 0;
|
|
14
9
|
left: 0;
|
|
15
10
|
bottom: 0;
|
|
16
11
|
right: 0;
|
|
17
12
|
width: 100%;
|
|
18
13
|
height: 100%;
|
|
19
|
-
background-color: var(--nutui-overlay-bg-color, var(--nutui-
|
|
14
|
+
background-color: var(--nutui-overlay-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
20
15
|
z-index: var(--nutui-overlay-zIndex, 1000);
|
|
21
16
|
}
|
|
22
17
|
|
|
@@ -67,7 +62,7 @@
|
|
|
67
62
|
position: fixed;
|
|
68
63
|
min-height: 46%;
|
|
69
64
|
max-height: 100%;
|
|
70
|
-
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-
|
|
65
|
+
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-color-background-overlay, #ffffff));
|
|
71
66
|
-webkit-overflow-scrolling: touch;
|
|
72
67
|
font-size: var(--nutui-font-size-base, 14px);
|
|
73
68
|
}
|
|
@@ -87,13 +82,13 @@
|
|
|
87
82
|
align-items: center;
|
|
88
83
|
}
|
|
89
84
|
.nut-popup-title-title {
|
|
90
|
-
color: var(--nutui-
|
|
85
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
91
86
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
92
87
|
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-l, 16px));
|
|
93
88
|
line-height: var(--nutui-popup-title-font-size, var(--nutui-font-size-l, 16px));
|
|
94
89
|
}
|
|
95
90
|
.nut-popup-title-description {
|
|
96
|
-
color: var(--nutui-
|
|
91
|
+
color: var(--nutui-color-text, #505259);
|
|
97
92
|
font-size: var(--nutui-popup-description-font-size, var(--nutui-font-size-base, 14px));
|
|
98
93
|
font-weight: var(--nutui-font-weight, 400);
|
|
99
94
|
}
|
|
@@ -112,7 +107,7 @@
|
|
|
112
107
|
z-index: 1;
|
|
113
108
|
width: var(--nutui-popup-icon-size, 20px);
|
|
114
109
|
height: var(--nutui-popup-icon-size, 20px);
|
|
115
|
-
color: var(--nutui-
|
|
110
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
116
111
|
cursor: pointer;
|
|
117
112
|
}
|
|
118
113
|
.nut-popup-title-right:active {
|
|
@@ -377,7 +372,7 @@
|
|
|
377
372
|
}
|
|
378
373
|
|
|
379
374
|
.nut-picker {
|
|
380
|
-
background-color: var(--nutui-
|
|
375
|
+
background-color: var(--nutui-color-background-overlay, #ffffff);
|
|
381
376
|
width: 100%;
|
|
382
377
|
}
|
|
383
378
|
.nut-picker-control {
|
|
@@ -389,11 +384,11 @@
|
|
|
389
384
|
padding: var(--nutui-popup-title-padding, 16px);
|
|
390
385
|
}
|
|
391
386
|
.nut-picker-cancel-btn {
|
|
392
|
-
color: var(--nutui-picker-title-cancel-color, var(--nutui-
|
|
387
|
+
color: var(--nutui-picker-title-cancel-color, var(--nutui-color-text, #505259));
|
|
393
388
|
font-size: var(--nutui-picker-title-cancel-font-size, var(--nutui-font-size-base, 14px));
|
|
394
389
|
}
|
|
395
390
|
.nut-picker-confirm-btn {
|
|
396
|
-
color: var(--nutui-picker-title-ok-color, var(--nutui-
|
|
391
|
+
color: var(--nutui-picker-title-ok-color, var(--nutui-color-primary, #ff0f23));
|
|
397
392
|
font-size: var(--nutui-picker-title-ok-font-size, var(--nutui-font-size-base, 14px));
|
|
398
393
|
}
|
|
399
394
|
.nut-picker-title {
|
|
@@ -402,7 +397,7 @@
|
|
|
402
397
|
text-overflow: ellipsis;
|
|
403
398
|
white-space: nowrap;
|
|
404
399
|
text-align: center;
|
|
405
|
-
color: var(--nutui-
|
|
400
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
406
401
|
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-l, 16px));
|
|
407
402
|
font-weight: var(--nutui-popup-title-font-weight, var(--nutui-font-weight-bold, 600));
|
|
408
403
|
}
|
|
@@ -415,10 +410,10 @@
|
|
|
415
410
|
top: 108px;
|
|
416
411
|
height: var(--nutui-picker-item-height, 36px);
|
|
417
412
|
width: 100%;
|
|
418
|
-
border: var(--nutui-picker-item-active-line-border, 1px solid var(--nutui-
|
|
413
|
+
border: var(--nutui-picker-item-active-line-border, 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
419
414
|
border-left: 0;
|
|
420
415
|
border-right: 0;
|
|
421
|
-
color: var(--nutui-picker-item-text-color, var(--nutui-
|
|
416
|
+
color: var(--nutui-picker-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
422
417
|
font-size: var(--nutui-picker-item-text-font-size, var(--nutui-font-size-base, 14px));
|
|
423
418
|
z-index: 3;
|
|
424
419
|
}
|
|
@@ -427,7 +422,7 @@
|
|
|
427
422
|
border: 0;
|
|
428
423
|
}
|
|
429
424
|
.nut-picker-indicator-taro::before, .nut-picker-indicator-taro::after {
|
|
430
|
-
border: var(--nutui-picker-item-active-line-border, 1px solid var(--nutui-
|
|
425
|
+
border: var(--nutui-picker-item-active-line-border, 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
431
426
|
border-left: 0;
|
|
432
427
|
border-right: 0;
|
|
433
428
|
}
|
|
@@ -475,7 +470,7 @@
|
|
|
475
470
|
text-overflow: ellipsis;
|
|
476
471
|
height: var(--nutui-picker-item-height, 36px);
|
|
477
472
|
line-height: var(--nutui-picker-item-height, 36px);
|
|
478
|
-
color: var(--nutui-picker-item-text-color, var(--nutui-
|
|
473
|
+
color: var(--nutui-picker-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
479
474
|
font-size: var(--nutui-picker-item-text-font-size, var(--nutui-font-size-base, 14px));
|
|
480
475
|
text-align: center;
|
|
481
476
|
}
|
|
@@ -501,7 +496,7 @@
|
|
|
501
496
|
height: var(--nutui-picker-item-height, 36px);
|
|
502
497
|
line-height: var(--nutui-picker-item-height, 36px);
|
|
503
498
|
text-align: center;
|
|
504
|
-
color: var(--nutui-
|
|
499
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
505
500
|
font-size: var(--nutui-font-size-base, 14px);
|
|
506
501
|
}
|
|
507
502
|
.nut-picker-roller-item-hidden {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
interface ContentProps extends BasicComponent {
|
|
5
|
-
visible: boolean;
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
header: ReactNode;
|
|
8
|
-
footer: ReactNode;
|
|
9
|
-
close: ReactNode;
|
|
10
|
-
footerDirection: string;
|
|
11
|
-
onClick: (event: ITouchEvent) => void;
|
|
12
|
-
}
|
|
1
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2
|
+
import { ContentProps } from './types.taro';
|
|
3
|
+
export declare const defaultContentProps: ContentProps;
|
|
13
4
|
export declare const Content: FunctionComponent<Partial<ContentProps> & Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'>>;
|
|
14
|
-
export {};
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
2
|
+
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { View } from "@tarojs/components";
|
|
6
|
+
export var defaultContentProps = {
|
|
7
|
+
visible: false,
|
|
8
|
+
title: '',
|
|
9
|
+
header: '',
|
|
10
|
+
footer: '',
|
|
11
|
+
close: '',
|
|
12
|
+
footerDirection: 'horizontal',
|
|
13
|
+
onClick: function() {}
|
|
14
|
+
};
|
|
5
15
|
export var Content = function(props) {
|
|
6
|
-
var visible =
|
|
16
|
+
var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, onClick = _$_object_spread.onClick;
|
|
7
17
|
var classPrefix = 'nut-dialog';
|
|
8
18
|
var renderHeader = function() {
|
|
9
|
-
return title
|
|
19
|
+
return title && /*#__PURE__*/ React.createElement(View, {
|
|
10
20
|
className: "".concat(classPrefix, "-header")
|
|
11
|
-
}, title)
|
|
21
|
+
}, title);
|
|
12
22
|
};
|
|
13
23
|
var renderFooter = function() {
|
|
14
|
-
return footer
|
|
24
|
+
return footer && /*#__PURE__*/ React.createElement(View, {
|
|
15
25
|
className: classNames("".concat(classPrefix, "-footer"), _define_property({}, footerDirection, footerDirection))
|
|
16
|
-
}, footer)
|
|
26
|
+
}, footer);
|
|
17
27
|
};
|
|
18
28
|
var handleClick = function(e) {
|
|
19
29
|
onClick && onClick(e);
|
|
@@ -31,6 +41,6 @@ export var Content = function(props) {
|
|
|
31
41
|
}
|
|
32
42
|
}, renderHeader(), /*#__PURE__*/ React.createElement(View, {
|
|
33
43
|
className: "".concat(classPrefix, "-content")
|
|
34
|
-
},
|
|
44
|
+
}, children), renderFooter()));
|
|
35
45
|
};
|
|
36
46
|
Content.displayName = 'NutContent';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { DialogBasicProps } from './
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
declare const defaultProps: DialogProps;
|
|
6
|
-
export declare const BaseDialog: FunctionComponent<Partial<DialogProps>> & {
|
|
2
|
+
import { DialogBasicProps } from './types.taro';
|
|
3
|
+
declare const defaultProps: DialogBasicProps;
|
|
4
|
+
export declare const BaseDialog: FunctionComponent<Partial<DialogBasicProps>> & {
|
|
7
5
|
open: typeof open;
|
|
8
6
|
close: typeof close;
|
|
9
7
|
};
|
|
@@ -10,13 +10,14 @@ import { CSSTransition } from "react-transition-group";
|
|
|
10
10
|
import { View } from "@tarojs/components";
|
|
11
11
|
import { Failure, Close } from "@nutui/icons-react-taro";
|
|
12
12
|
import Button from "../button/index";
|
|
13
|
-
import { Content } from "./content";
|
|
13
|
+
import { Content, defaultContentProps } from "./content";
|
|
14
14
|
import { useConfig } from "../configprovider/configprovider";
|
|
15
15
|
import Overlay from "../overlay/index";
|
|
16
16
|
import { customEvents, useCustomEvent, useCustomEventsPath, useParams } from "../../utils/use-custom-event";
|
|
17
17
|
import { useLockScrollTaro } from "../../utils/use-lock-scoll-taro";
|
|
18
18
|
import { mergeProps } from "../../utils/merge-props";
|
|
19
|
-
|
|
19
|
+
import { defaultOverlayProps } from "../overlay/overlay";
|
|
20
|
+
var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps, defaultContentProps), {
|
|
20
21
|
title: '',
|
|
21
22
|
content: '',
|
|
22
23
|
header: '',
|
|
@@ -24,40 +25,37 @@ var defaultProps = {
|
|
|
24
25
|
confirmText: '',
|
|
25
26
|
cancelText: '',
|
|
26
27
|
overlay: true,
|
|
27
|
-
|
|
28
|
+
overlayStyle: {},
|
|
29
|
+
overlayClassName: 'nut-dialog-overlay',
|
|
28
30
|
hideConfirmButton: false,
|
|
29
31
|
hideCancelButton: false,
|
|
30
32
|
disableConfirmButton: false,
|
|
31
33
|
footerDirection: 'horizontal',
|
|
32
|
-
lockScroll: true,
|
|
33
34
|
closeIconPosition: 'bottom',
|
|
34
35
|
closeIcon: false,
|
|
36
|
+
zIndex: 1200,
|
|
35
37
|
beforeCancel: function() {
|
|
36
38
|
return true;
|
|
37
39
|
},
|
|
38
40
|
beforeClose: function() {
|
|
39
41
|
return true;
|
|
40
42
|
},
|
|
43
|
+
onCancel: function() {},
|
|
44
|
+
onClose: function() {},
|
|
41
45
|
onOverlayClick: function() {
|
|
42
46
|
return true;
|
|
43
47
|
}
|
|
44
|
-
};
|
|
48
|
+
});
|
|
45
49
|
export var BaseDialog = function(props) {
|
|
46
50
|
var classPrefix = 'nut-dialog';
|
|
47
51
|
var locale = useConfig().locale;
|
|
48
52
|
var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1];
|
|
49
|
-
var _useParams = useParams(mergeProps(defaultProps, props)), _useParams_params = _useParams.params, id = _useParams_params.id, className = _useParams_params.className, style = _useParams_params.style, visible = _useParams_params.visible, footer = _useParams_params.footer, title = _useParams_params.title, header = _useParams_params.header, content = _useParams_params.content, children = _useParams_params.children, footerDirection = _useParams_params.footerDirection, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, disableConfirmButton = _useParams_params.disableConfirmButton, closeOnOverlayClick = _useParams_params.closeOnOverlayClick,
|
|
53
|
+
var _useParams = useParams(mergeProps(defaultProps, props)), _useParams_params = _useParams.params, id = _useParams_params.id, className = _useParams_params.className, style = _useParams_params.style, visible = _useParams_params.visible, footer = _useParams_params.footer, title = _useParams_params.title, header = _useParams_params.header, content = _useParams_params.content, children = _useParams_params.children, footerDirection = _useParams_params.footerDirection, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, disableConfirmButton = _useParams_params.disableConfirmButton, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
50
54
|
useCustomEvent(id, function(param) {
|
|
51
55
|
var status = param.status, options = param.options;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}));
|
|
56
|
-
} else {
|
|
57
|
-
setParams(_object_spread_props(_object_spread({}, options), {
|
|
58
|
-
visible: false
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
56
|
+
setParams(_object_spread_props(_object_spread({}, options), {
|
|
57
|
+
visible: status
|
|
58
|
+
}));
|
|
61
59
|
});
|
|
62
60
|
var refObject = useLockScrollTaro(!!(visible && lockScroll));
|
|
63
61
|
var renderFooter = function() {
|
|
@@ -159,9 +157,9 @@ export var BaseDialog = function(props) {
|
|
|
159
157
|
};
|
|
160
158
|
var onHandleClickOverlay = function(e) {
|
|
161
159
|
if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
|
|
162
|
-
var closed = onOverlayClick && onOverlayClick();
|
|
163
|
-
closed &&
|
|
164
|
-
closed &&
|
|
160
|
+
var closed = onOverlayClick && onOverlayClick(e);
|
|
161
|
+
closed && onClose && onClose();
|
|
162
|
+
closed && onCancel && onCancel();
|
|
165
163
|
}
|
|
166
164
|
};
|
|
167
165
|
return /*#__PURE__*/ React.createElement(View, {
|
|
@@ -170,13 +168,15 @@ export var BaseDialog = function(props) {
|
|
|
170
168
|
},
|
|
171
169
|
ref: refObject,
|
|
172
170
|
catchMove: lockScroll
|
|
173
|
-
}, /*#__PURE__*/ React.createElement(React.Fragment, null, overlay
|
|
171
|
+
}, /*#__PURE__*/ React.createElement(React.Fragment, null, overlay && /*#__PURE__*/ React.createElement(Overlay, {
|
|
172
|
+
zIndex: zIndex,
|
|
174
173
|
visible: visible,
|
|
174
|
+
style: overlayStyle,
|
|
175
|
+
className: overlayClassName,
|
|
175
176
|
closeOnOverlayClick: closeOnOverlayClick,
|
|
176
177
|
lockScroll: lockScroll,
|
|
177
|
-
onClick: onHandleClickOverlay
|
|
178
|
-
|
|
179
|
-
}) : null, /*#__PURE__*/ React.createElement(CSSTransition, {
|
|
178
|
+
onClick: onHandleClickOverlay
|
|
179
|
+
}), /*#__PURE__*/ React.createElement(CSSTransition, {
|
|
180
180
|
in: visible,
|
|
181
181
|
timeout: 300,
|
|
182
182
|
classNames: "fadeDialog",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BaseDialog } from "./dialog";
|
|
2
|
-
export type {
|
|
2
|
+
export type { DialogConfigType, DialogCloseIconPosition, DialogFooterDirection, ContentProps, DialogWrapProps, DialogBasicProps, DialogConfirmProps, DialogReturnProps, } from './types.taro';
|
|
3
3
|
export default BaseDialog;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
display: flex;
|
|
8
8
|
display: inline-block;
|
|
9
|
-
/* #ifdef
|
|
9
|
+
/* #ifdef harmony*/
|
|
10
10
|
width: 80px;
|
|
11
11
|
/* #endif */
|
|
12
|
-
/* #ifndef
|
|
12
|
+
/* #ifndef harmony*/
|
|
13
13
|
width: auto;
|
|
14
14
|
/* #endif */
|
|
15
15
|
flex-direction: row;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
touch-action: manipulation;
|
|
30
30
|
-webkit-appearance: none;
|
|
31
31
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
32
|
-
color: var(--nutui-button-default-color, var(--nutui-
|
|
32
|
+
color: var(--nutui-button-default-color, var(--nutui-color-title, #1a1a1a));
|
|
33
33
|
background: var(--nutui-button-default-background-color, transparent);
|
|
34
34
|
border-width: var(--nutui-button-border-width, 0.5px);
|
|
35
35
|
}
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
left: 50%;
|
|
51
51
|
width: 100%;
|
|
52
52
|
height: 100%;
|
|
53
|
-
background-color: var(--nutui-
|
|
53
|
+
background-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
54
54
|
border: inherit;
|
|
55
|
-
border-color: var(--nutui-
|
|
55
|
+
border-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
56
56
|
border-radius: inherit;
|
|
57
57
|
transform: translate(-50%, -50%);
|
|
58
58
|
opacity: 0;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
flex-direction: row;
|
|
72
72
|
align-items: center;
|
|
73
73
|
justify-content: center;
|
|
74
|
-
/* #ifndef
|
|
74
|
+
/* #ifndef harmony */
|
|
75
75
|
background: initial;
|
|
76
76
|
/* #endif */
|
|
77
77
|
}
|
|
@@ -109,20 +109,20 @@
|
|
|
109
109
|
.nut-button-default {
|
|
110
110
|
padding: var(--nutui-button-default-padding, 0px 12px);
|
|
111
111
|
border-style: solid;
|
|
112
|
-
border-color: var(--nutui-button-default-border-color, var(--nutui-
|
|
112
|
+
border-color: var(--nutui-button-default-border-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
113
113
|
}
|
|
114
114
|
.nut-button-default-disabled, .nut-button-default-solid-disabled {
|
|
115
115
|
color: var(--nutui-button-primary-color, #ffffff);
|
|
116
|
-
background: var(--nutui-button-default-disabled, var(--nutui-
|
|
117
|
-
border-color: var(--nutui-button-default-disabled, var(--nutui-
|
|
116
|
+
background: var(--nutui-button-default-disabled, var(--nutui-color-text-disabled, #c2c4cc));
|
|
117
|
+
border-color: var(--nutui-button-default-disabled, var(--nutui-color-text-disabled, #c2c4cc));
|
|
118
118
|
}
|
|
119
119
|
.nut-button-default-none-disabled {
|
|
120
|
-
color: var(--nutui-button-default-disabled-color, var(--nutui-
|
|
120
|
+
color: var(--nutui-button-default-disabled-color, var(--nutui-color-text-help, #888b94));
|
|
121
121
|
}
|
|
122
122
|
.nut-button-default-outline-disabled, .nut-button-default-dashed-disabled {
|
|
123
123
|
background: transparent;
|
|
124
|
-
color: var(--nutui-button-default-disabled, var(--nutui-
|
|
125
|
-
border-color: var(--nutui-button-default-disabled, var(--nutui-
|
|
124
|
+
color: var(--nutui-button-default-disabled, var(--nutui-color-text-disabled, #c2c4cc));
|
|
125
|
+
border-color: var(--nutui-button-default-disabled, var(--nutui-color-text-disabled, #c2c4cc));
|
|
126
126
|
}
|
|
127
127
|
.nut-button-normal {
|
|
128
128
|
padding: var(--nutui-button-normal-padding, 0px 12px);
|
|
@@ -214,37 +214,37 @@
|
|
|
214
214
|
}
|
|
215
215
|
.nut-button-primary-disabled, .nut-button-primary-solid-disabled {
|
|
216
216
|
color: var(--nutui-button-primary-color, #ffffff);
|
|
217
|
-
background: var(--nutui-button-primary-disabled, var(--nutui-
|
|
218
|
-
border-color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
217
|
+
background: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
218
|
+
border-color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
219
219
|
}
|
|
220
220
|
.nut-button-primary-none {
|
|
221
|
-
color: var(--nutui-button-primary-border-color, var(--nutui-
|
|
221
|
+
color: var(--nutui-button-primary-border-color, var(--nutui-color-primary, #ff0f23));
|
|
222
222
|
}
|
|
223
223
|
.nut-button-primary-none-disabled {
|
|
224
|
-
color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
224
|
+
color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
225
225
|
}
|
|
226
226
|
.nut-button-primary-outline {
|
|
227
|
-
color: var(--nutui-button-primary-border-color, var(--nutui-
|
|
228
|
-
border-color: var(--nutui-button-primary-border-color, var(--nutui-
|
|
227
|
+
color: var(--nutui-button-primary-border-color, var(--nutui-color-primary, #ff0f23));
|
|
228
|
+
border-color: var(--nutui-button-primary-border-color, var(--nutui-color-primary, #ff0f23));
|
|
229
229
|
}
|
|
230
230
|
.nut-button-primary-outline-disabled {
|
|
231
|
-
color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
232
|
-
border-color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
231
|
+
color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
232
|
+
border-color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
233
233
|
}
|
|
234
234
|
.nut-button-primary-dashed {
|
|
235
|
-
color: var(--nutui-button-primary-border-color, var(--nutui-
|
|
236
|
-
border-color: var(--nutui-button-primary-border-color, var(--nutui-
|
|
235
|
+
color: var(--nutui-button-primary-border-color, var(--nutui-color-primary, #ff0f23));
|
|
236
|
+
border-color: var(--nutui-button-primary-border-color, var(--nutui-color-primary, #ff0f23));
|
|
237
237
|
}
|
|
238
238
|
.nut-button-primary-dashed-disabled {
|
|
239
|
-
color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
240
|
-
border-color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
239
|
+
color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
240
|
+
border-color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
241
241
|
}
|
|
242
242
|
.nut-button-primary.nut-button-solid.nut-button-normal {
|
|
243
243
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
244
244
|
}
|
|
245
245
|
.nut-button-success {
|
|
246
246
|
color: var(--nutui-button-success-color, #ffffff);
|
|
247
|
-
background: var(--nutui-button-success-background-color, var(--nutui-
|
|
247
|
+
background: var(--nutui-button-success-background-color, var(--nutui-color-success, #00d900));
|
|
248
248
|
background-origin: border-box;
|
|
249
249
|
border-color: transparent;
|
|
250
250
|
}
|
|
@@ -256,15 +256,15 @@
|
|
|
256
256
|
border-color: var(--nutui-button-success-disabled, var(--nutui-color-success-disabled, #b2f0ae));
|
|
257
257
|
}
|
|
258
258
|
.nut-button-success-outline, .nut-button-success-dashed {
|
|
259
|
-
color: var(--nutui-button-success-border-color, var(--nutui-
|
|
260
|
-
border-color: var(--nutui-button-success-border-color, var(--nutui-
|
|
259
|
+
color: var(--nutui-button-success-border-color, var(--nutui-color-success, #00d900));
|
|
260
|
+
border-color: var(--nutui-button-success-border-color, var(--nutui-color-success, #00d900));
|
|
261
261
|
}
|
|
262
262
|
.nut-button-success-outline-disabled, .nut-button-success-dashed-disabled {
|
|
263
|
-
color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
264
|
-
border-color: var(--nutui-button-primary-disabled, var(--nutui-
|
|
263
|
+
color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
264
|
+
border-color: var(--nutui-button-primary-disabled, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
265
265
|
}
|
|
266
266
|
.nut-button-success-none {
|
|
267
|
-
color: var(--nutui-button-success-border-color, var(--nutui-
|
|
267
|
+
color: var(--nutui-button-success-border-color, var(--nutui-color-success, #00d900));
|
|
268
268
|
}
|
|
269
269
|
.nut-button-success-none-disabled {
|
|
270
270
|
color: var(--nutui-button-success-disabled, var(--nutui-color-success-disabled, #b2f0ae));
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
}
|
|
299
299
|
.nut-button-danger {
|
|
300
300
|
color: var(--nutui-button-danger-color, #ffffff);
|
|
301
|
-
background: var(--nutui-button-danger-background-color, var(--nutui-
|
|
301
|
+
background: var(--nutui-button-danger-background-color, var(--nutui-color-danger, #ff0f23));
|
|
302
302
|
background-origin: border-box;
|
|
303
303
|
border-color: transparent;
|
|
304
304
|
}
|
|
@@ -306,26 +306,26 @@
|
|
|
306
306
|
color: var(--nutui-button-danger-color, #ffffff);
|
|
307
307
|
}
|
|
308
308
|
.nut-button-danger-solid-disabled {
|
|
309
|
-
background: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-
|
|
310
|
-
border-color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-
|
|
309
|
+
background: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-color-primary-disabled-special, #ffadbe)));
|
|
310
|
+
border-color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-color-primary-disabled-special, #ffadbe)));
|
|
311
311
|
}
|
|
312
312
|
.nut-button-danger-outline, .nut-button-danger-dashed {
|
|
313
|
-
color: var(--nutui-button-danger-border-color, var(--nutui-
|
|
314
|
-
border-color: var(--nutui-button-danger-border-color, var(--nutui-
|
|
313
|
+
color: var(--nutui-button-danger-border-color, var(--nutui-color-danger, #ff0f23));
|
|
314
|
+
border-color: var(--nutui-button-danger-border-color, var(--nutui-color-danger, #ff0f23));
|
|
315
315
|
}
|
|
316
316
|
.nut-button-danger-outline-disabled, .nut-button-danger-dashed-disabled {
|
|
317
|
-
color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-
|
|
318
|
-
border-color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-
|
|
317
|
+
color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-color-primary-disabled-special, #ffadbe)));
|
|
318
|
+
border-color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-color-primary-disabled-special, #ffadbe)));
|
|
319
319
|
}
|
|
320
320
|
.nut-button-danger-none {
|
|
321
|
-
color: var(--nutui-button-danger-border-color, var(--nutui-
|
|
321
|
+
color: var(--nutui-button-danger-border-color, var(--nutui-color-danger, #ff0f23));
|
|
322
322
|
}
|
|
323
323
|
.nut-button-danger-none-disabled {
|
|
324
|
-
color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-
|
|
324
|
+
color: var(--nutui-button-danger-disabled, var(--nutui-color-danger-disabled, var(--nutui-color-primary-disabled-special, #ffadbe)));
|
|
325
325
|
}
|
|
326
326
|
.nut-button-warning {
|
|
327
327
|
color: var(--nutui-button-warning-color, #ffffff);
|
|
328
|
-
background: var(--nutui-button-warning-background-color, var(--nutui-
|
|
328
|
+
background: var(--nutui-button-warning-background-color, var(--nutui-color-warning, #ffbf00));
|
|
329
329
|
background-origin: border-box;
|
|
330
330
|
border-color: transparent;
|
|
331
331
|
}
|
|
@@ -338,15 +338,15 @@
|
|
|
338
338
|
border-color: var(--nutui-button-warning-disabled, var(--nutui-color-warning-disabled, #fdd3b9));
|
|
339
339
|
}
|
|
340
340
|
.nut-button-warning-outline, .nut-button-warning-dashed {
|
|
341
|
-
color: var(--nutui-button-warning-border-color, var(--nutui-
|
|
342
|
-
border-color: var(--nutui-button-warning-border-color, var(--nutui-
|
|
341
|
+
color: var(--nutui-button-warning-border-color, var(--nutui-color-warning, #ffbf00));
|
|
342
|
+
border-color: var(--nutui-button-warning-border-color, var(--nutui-color-warning, #ffbf00));
|
|
343
343
|
}
|
|
344
344
|
.nut-button-warning-outline-disabled, .nut-button-warning-dashed-disabled {
|
|
345
345
|
color: var(--nutui-button-warning-disabled, var(--nutui-color-warning-disabled, #fdd3b9));
|
|
346
346
|
border-color: var(--nutui-button-warning-disabled, var(--nutui-color-warning-disabled, #fdd3b9));
|
|
347
347
|
}
|
|
348
348
|
.nut-button-warning-none {
|
|
349
|
-
color: var(--nutui-button-warning-border-color, var(--nutui-
|
|
349
|
+
color: var(--nutui-button-warning-border-color, var(--nutui-color-warning, #ffbf00));
|
|
350
350
|
}
|
|
351
351
|
.nut-button-warning-none-disabled {
|
|
352
352
|
color: var(--nutui-button-warning-disabled, var(--nutui-color-warning-disabled, #fdd3b9));
|
|
@@ -392,19 +392,14 @@
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
.nut-overlay {
|
|
395
|
-
/* #ifdef rn */
|
|
396
|
-
position: absolute;
|
|
397
|
-
/* #endif */
|
|
398
|
-
/* #ifndef rn */
|
|
399
395
|
position: fixed;
|
|
400
|
-
/* #endif */
|
|
401
396
|
top: 0;
|
|
402
397
|
left: 0;
|
|
403
398
|
bottom: 0;
|
|
404
399
|
right: 0;
|
|
405
400
|
width: 100%;
|
|
406
401
|
height: 100%;
|
|
407
|
-
background-color: var(--nutui-overlay-bg-color, var(--nutui-
|
|
402
|
+
background-color: var(--nutui-overlay-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
408
403
|
z-index: var(--nutui-overlay-zIndex, 1000);
|
|
409
404
|
}
|
|
410
405
|
|
|
@@ -462,9 +457,6 @@
|
|
|
462
457
|
padding: var(--nutui-dialog-padding, 24px);
|
|
463
458
|
box-sizing: border-box;
|
|
464
459
|
}
|
|
465
|
-
.nut-dialog-overlay {
|
|
466
|
-
--nutui-overlay-zIndex: 1200;
|
|
467
|
-
}
|
|
468
460
|
.nut-dialog-outer {
|
|
469
461
|
position: fixed;
|
|
470
462
|
max-height: 100%;
|
|
@@ -511,8 +503,8 @@
|
|
|
511
503
|
transform: translateX(-50%);
|
|
512
504
|
}
|
|
513
505
|
.nut-dialog-close-bottom .nut-icon {
|
|
514
|
-
color: var(--nutui-
|
|
515
|
-
background-color: var(--nutui-
|
|
506
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
507
|
+
background-color: var(--nutui-color-mask-part, rgba(0, 0, 0, 0.4));
|
|
516
508
|
border-radius: 50%;
|
|
517
509
|
width: var(--nutui-dialog-bottom-close-icon-size, 24px);
|
|
518
510
|
height: var(--nutui-dialog-bottom-close-icon-size, 24px);
|
|
@@ -525,7 +517,7 @@
|
|
|
525
517
|
text-align: center;
|
|
526
518
|
font-size: var(--nutui-dialog-header-font-size, var(--nutui-font-size-l, 16px));
|
|
527
519
|
font-weight: var(--nutui-dialog-header-font-weight, var(--nutui-font-weight-bold, 600));
|
|
528
|
-
color: var(--nutui-
|
|
520
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
529
521
|
width: 100%;
|
|
530
522
|
overflow: hidden;
|
|
531
523
|
text-overflow: ellipsis;
|
|
@@ -537,7 +529,7 @@
|
|
|
537
529
|
max-height: var(--nutui-dialog-content-max-height, 268px);
|
|
538
530
|
line-height: var(--nutui-dialog-content-line-height, 20px);
|
|
539
531
|
font-size: var(--nutui-font-size-base, 14px);
|
|
540
|
-
color: var(--nutui-
|
|
532
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
541
533
|
word-wrap: break-word;
|
|
542
534
|
word-break: break-all;
|
|
543
535
|
white-space: pre-wrap;
|
|
@@ -561,7 +553,7 @@
|
|
|
561
553
|
}
|
|
562
554
|
.nut-dialog-footer.vertical .nut-dialog-footer-cancel {
|
|
563
555
|
margin: 0;
|
|
564
|
-
color: var(--nutui-
|
|
556
|
+
color: var(--nutui-color-text, #505259);
|
|
565
557
|
font-size: var(--nutui-font-size-base, 14px);
|
|
566
558
|
order: 2;
|
|
567
559
|
display: flex;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import type { MouseEvent, CSSProperties } from 'react';
|
|
3
|
+
import { OverlayProps } from "../overlay/types";
|
|
4
|
+
import { BasicComponent } from "../../utils/typings";
|
|
5
|
+
export type DialogConfigType = {
|
|
6
|
+
prefixCls?: string;
|
|
7
|
+
simple?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type DialogCloseIconPosition = 'top-right' | 'top-left' | 'bottom';
|
|
10
|
+
export type DialogFooterDirection = 'horizontal' | 'vertical';
|
|
11
|
+
export interface ContentProps extends BasicComponent {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
header: ReactNode;
|
|
15
|
+
footer: ReactNode;
|
|
16
|
+
close: ReactNode;
|
|
17
|
+
footerDirection: DialogFooterDirection;
|
|
18
|
+
onClick: (event: MouseEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface DialogWrapProps extends OverlayProps, Omit<ContentProps, 'onClick'> {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
overlay: boolean;
|
|
23
|
+
overlayStyle: CSSProperties;
|
|
24
|
+
overlayClassName: string;
|
|
25
|
+
onCancel: () => void;
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
onOverlayClick: (e: MouseEvent) => boolean | void;
|
|
28
|
+
}
|
|
29
|
+
export interface DialogBasicProps extends DialogWrapProps {
|
|
30
|
+
content?: ReactNode;
|
|
31
|
+
confirmText?: ReactNode;
|
|
32
|
+
cancelText?: ReactNode;
|
|
33
|
+
hideConfirmButton?: boolean;
|
|
34
|
+
hideCancelButton?: boolean;
|
|
35
|
+
disableConfirmButton?: boolean;
|
|
36
|
+
closeIconPosition?: DialogCloseIconPosition;
|
|
37
|
+
closeIcon?: boolean | ReactNode;
|
|
38
|
+
beforeClose?: () => boolean;
|
|
39
|
+
beforeCancel?: () => boolean;
|
|
40
|
+
onConfirm?: (e?: MouseEvent<HTMLButtonElement>) => PromiseLike<any> | void;
|
|
41
|
+
}
|
|
42
|
+
export interface DialogConfirmProps extends DialogBasicProps {
|
|
43
|
+
content: ReactNode;
|
|
44
|
+
isNotice: boolean;
|
|
45
|
+
noticeType: string;
|
|
46
|
+
}
|
|
47
|
+
export type DialogReturnProps = {
|
|
48
|
+
update: (newConfig: Partial<DialogConfirmProps>) => void;
|
|
49
|
+
close: () => void;
|
|
50
|
+
};
|
|
51
|
+
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<Partial<DialogBasicProps>>> {
|
|
52
|
+
confirm: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
53
|
+
alert: (props: Partial<DialogConfirmProps>) => DialogReturnProps;
|
|
54
|
+
config: (config: DialogConfigType) => void;
|
|
55
|
+
destroyAll: () => void;
|
|
56
|
+
}
|
|
57
|
+
export declare const destroyList: Array<() => void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|