@nutui/nutui-react 2.6.22 → 2.6.23

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +24 -14
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/Address/style/style.css +1 -1
  4. package/dist/esm/AvatarCropper.js +1 -1
  5. package/dist/esm/Calendar/style/style.css +1 -1
  6. package/dist/esm/Calendar.js +3 -3
  7. package/dist/esm/CalendarCard.js +1 -1
  8. package/dist/esm/CalendarItem.js +3 -3
  9. package/dist/esm/Cascader/style/style.css +1 -1
  10. package/dist/esm/DatePicker/style/style.css +1 -1
  11. package/dist/esm/Dialog/style/style.css +1 -1
  12. package/dist/esm/Dialog.js +2 -3
  13. package/dist/esm/FixedNav/style/style.css +1 -1
  14. package/dist/esm/ImagePreview/style/style.css +1 -1
  15. package/dist/esm/Menu/style/style.css +1 -1
  16. package/dist/esm/MenuItem/style/style.css +1 -1
  17. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  18. package/dist/esm/Overlay/style/style.css +1 -1
  19. package/dist/esm/Picker/style/style.css +1 -1
  20. package/dist/esm/Popover/style/style.css +1 -1
  21. package/dist/esm/Popup/style/style.css +1 -1
  22. package/dist/esm/ShortPassword/style/style.css +1 -1
  23. package/dist/esm/SideNavBar/style/style.css +1 -1
  24. package/dist/esm/TimeSelect/style/style.css +1 -1
  25. package/dist/esm/Tour/style/style.css +1 -1
  26. package/dist/esm/cascader2.js +1 -1
  27. package/dist/esm/configprovider2.js +138 -1
  28. package/dist/locales/base.js +1 -1
  29. package/dist/locales/en-US.js +1 -1
  30. package/dist/locales/id-ID.js +1 -1
  31. package/dist/locales/tr-TR.js +1 -1
  32. package/dist/locales/zh-CN.js +1 -1
  33. package/dist/locales/zh-TW.js +1 -1
  34. package/dist/locales/zh-UG.js +1 -1
  35. package/dist/nutui.react.es.js +44 -53
  36. package/dist/nutui.react.umd.js +44 -53
  37. package/dist/packages/overlay/overlay.scss +0 -4
  38. package/dist/style.css +1 -1
  39. package/dist/types/packages/calendar/calendar.d.ts +10 -0
  40. package/dist/types/packages/calendar/calendar.taro.d.ts +2 -0
  41. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -0
  42. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -0
  43. package/package.json +1 -1
  44. package/dist/esm/configprovider.taro.js +0 -23
  45. package/dist/esm/zh-CN.js +0 -141
@@ -1 +1 @@
1
- .nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-popup{position:fixed;min-height:26%;max-height:100%;overflow-y:auto;background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-gray-7, #1a1a1a);-webkit-overflow-scrolling:touch;font-size:var(--nutui-font-size-3, 14px)}.nut-popup-title{display:flex;align-items:center;justify-content:center;border-bottom:var(--nutui-popup-title-border-bottom, 0);padding:var(--nutui-popup-title-padding, 16px);position:relative}.nut-popup-title-left{position:absolute;left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-title{font-weight:var(--nutui-font-weight-bold, 500);font-size:var(--nutui-popup-title-font-size, var(--nutui-font-size-5, 18px))}.nut-popup-title-description{color:var(--nutui-gray-5, #8c8c8c);font-size:var(--nutui-popup-description-font-size, var(--nutui-font-size-1, 10px));font-weight:var(--nutui-font-weight, 400)}.nut-popup-title-right{position:absolute!important;z-index:1;cursor:pointer;width:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));height:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));display:flex;justify-content:center;align-items:center;top:var(--nutui-popup-title-padding, 16px);right:var(--nutui-popup-title-padding, 16px);color:var(--nutui-gray-5, #8c8c8c)}.nut-popup-title-right:active{opacity:.7}.nut-popup-title-right-top-left{top:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-left{bottom:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-right{right:var(--nutui-popup-title-padding, 16px);bottom:var(--nutui-popup-title-padding, 16px)}.nut-popup-center{top:50%;left:50%;min-height:10%;transform:translate(-50%,-50%)}.nut-popup-center.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px)}.nut-popup-bottom,.nut-popup-top{max-height:83%}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) 0 0 var(--nutui-popup-border-radius, 24px)}.nut-popup-left{top:0;left:0}.nut-popup-left.nut-popup-round{border-radius:0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.nut-popup-round{border-radius:0 0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px)}@keyframes popup-scale-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes popup-scale-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.nut-popup-slide-default-enter-active{animation-fill-mode:both;animation-name:popup-scale-fade-in;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-fade-in{0%{opacity:0}to{opacity:1}}@keyframes popup-fade-out{0%{opacity:1}to{opacity:0}}.nut-popup-slide-center-enter-active{animation-fill-mode:both;animation-name:popup-fade-in;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-top-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes popup-slide-top-exit{to{transform:translate3d(0,-100%,0)}}.nut-popup-slide-top-enter-active,.nut-popup-slide-top-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-top-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes popup-slide-right-exit{to{transform:translate3d(100%,0,0)}}.nut-popup-slide-right-enter-active,.nut-popup-slide-right-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-right-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-bottom-enter{0%{transform:translate3d(0,100%,0)}}@keyframes slide-bottom-exit{to{transform:translate3d(0,100%,0)}}.nut-popup-slide-bottom-enter-active,.nut-popup-slide-bottom-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-bottom-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes popup-slide-left-exit{to{transform:translate3d(-100%,0,0)}}.nut-popup-slide-left-enter-active,.nut-popup-slide-left-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-left-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-left-exit-active,.nut-popup-slide-left-exit-done{animation-fill-mode:both;animation-name:popup-slide-left-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-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{display:none}.nut-popup .nut-overflow-hidden{overflow:hidden!important}[dir=rtl] .nut-popup-title-left,.nut-rtl .nut-popup-title-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right,.nut-rtl .nut-popup-title-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-top-left,.nut-rtl .nut-popup-title-right-top-left,[dir=rtl] .nut-popup-title-right-bottom-left,.nut-rtl .nut-popup-title-right-bottom-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-bottom-right,.nut-rtl .nut-popup-title-right-bottom-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,.nut-rtl .nut-popup-title .nut-icon-ArrowLeft{transform:rotate(180deg)}[dir=rtl] .nut-popup-center,.nut-rtl .nut-popup-center{left:auto;right:50%;transform:translate(50%,-50%)}[dir=rtl] .nut-popup-bottom,.nut-rtl .nut-popup-bottom,[dir=rtl] .nut-popup-top,.nut-rtl .nut-popup-top{left:auto;right:0}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid transparent}.nut-popover-arrow-top{bottom:0;border-top-color:var(--nutui-popover-border-color, #ffffff);border-bottom-width:0;margin-bottom:-8px}.nut-popover-arrow-bottom{top:0;border-bottom-color:var(--nutui-popover-border-color, #ffffff);border-top-width:0;margin-top:-8px}.nut-popover-arrow-left{right:0;border-left-color:var(--nutui-popover-border-color, #ffffff);border-right-width:0;margin-right:-8px}.nut-popover-arrow-left.nut-popover-arrow-left{top:50%;transform:translateY(-50%)}.nut-popover-arrow-left.nut-popover-arrow-left-start{top:16px;transform:translateY(0)}.nut-popover-arrow-left.nut-popover-arrow-left-end{bottom:16px;transform:translateY(0)}.nut-popover-arrow-right{left:0;border-right-color:var(--nutui-popover-border-color, #ffffff);border-left-width:0;margin-left:-8px}.nut-popover-arrow-right.nut-popover-arrow-right{top:50%;transform:translateY(-50%)}.nut-popover-arrow-right.nut-popover-arrow-right-start{top:16px;transform:translateY(0)}.nut-popover-arrow-right.nut-popover-arrow-right-end{bottom:16px;transform:translateY(0)}.nut-popover .nut-popover-content{position:absolute;background-color:var(--nutui-popover-content-background-color, #ffffff);border-radius:var(--nutui-popover-border-radius, 8px);font-size:var(--nutui-popover-font-size, var(--nutui-font-size-2, 12px));font-family:PingFangSC;font-weight:400;color:var(--nutui-popover-text-color, #1a1a1a);box-shadow:0 2px 12px #3232331f;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--nutui-popover-menu-item-padding, 8px);border-bottom:1px solid var(--nutui-popover-divider-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:0;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:nth-of-type(2){border-radius:8px 8px 0 0}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:last-of-type{border-radius:0 0 8px 8px}.nut-popover .nut-popover-content .nut-popover-menu-item-icon{display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px}.nut-popover .nut-popover-content .nut-popover-menu-item-icon .nut-icon{width:12px;height:12px;font-size:12px}.nut-popover .nut-popover-content .nut-popover-menu-item-name{width:100%;word-break:keep-all;margin:0 6px 0 4px}.nut-popover .nut-popover-content .nut-popover-menu-item-action-icon{display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px;color:var(--nutui-gray-6, #595959)}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nutui-popover-disable-color, var(--nutui-color-text-disabled, #bfbfbf));cursor:not-allowed}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-taroitem{display:flex}.nut-popover .nut-popover-content-top .nut-popover-arrow-top{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content-top-end{right:0}.nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content-top-start{left:0}.nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content-bottom-end{right:0}.nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content-bottom-start{left:0}.nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content-left-end{bottom:0}.nut-popover .nut-popover-content-left-start{top:0}.nut-popover .nut-popover-content-right-end{bottom:0}.nut-popover .nut-popover-content-right-start{top:0}.nut-popover-dark{background:var(--nutui-popover-text-color, #1a1a1a);color:var(--nutui-popover-content-background-color, #ffffff)}.nut-popover-dark .nut-popover-arrow{border-bottom-color:var(--nutui-popover-text-color, #1a1a1a)}.nut-popover-dark .nut-popover-content{background:var(--nutui-popover-text-color, #1a1a1a)!important;color:var(--nutui-popover-content-background-color, #ffffff)!important}.nut-popover-dark .nut-popover-content .nut-popover-menu-item{border-bottom-color:var(--nutui-popover-content-background-color, #ffffff)}.nut-popover-dark .nut-popover-content .nut-popover-menu-item:hover{color:var(--nutui-popover-content-background-color, #ffffff);background-color:var(--nutui-popover-text-color, #1a1a1a)}[dir=rtl] .nut-popover .nut-popover-content .nut-popover-menu-item-name,.nut-rtl .nut-popover .nut-popover-content .nut-popover-menu-item-name{margin-left:0;margin-right:4px}[dir=rtl] .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon,.nut-rtl .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon{right:auto;left:var(--nutui-popover-menu-item-padding, 8px)}[dir=rtl] .nut-popover .nut-popover-content-top .nut-popover-arrow-top,.nut-rtl .nut-popover .nut-popover-content-top .nut-popover-arrow-top{left:auto;right:50%;transform:translate(50%)}[dir=rtl] .nut-popover .nut-popover-content-top-end,.nut-rtl .nut-popover .nut-popover-content-top-end{right:auto;left:0}[dir=rtl] .nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end,.nut-rtl .nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end{right:auto;left:16px}[dir=rtl] .nut-popover .nut-popover-content-top-start,.nut-rtl .nut-popover .nut-popover-content-top-start{left:auto;right:0}[dir=rtl] .nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start,.nut-rtl .nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start{left:auto;right:16px}[dir=rtl] .nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom,.nut-rtl .nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom{left:auto;right:50%;transform:translate(50%)}[dir=rtl] .nut-popover .nut-popover-content-bottom-end,.nut-rtl .nut-popover .nut-popover-content-bottom-end{right:auto;left:0}[dir=rtl] .nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end,.nut-rtl .nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end{right:auto;left:16px}[dir=rtl] .nut-popover .nut-popover-content-bottom-start,.nut-rtl .nut-popover .nut-popover-content-bottom-start{left:auto;right:0}[dir=rtl] .nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start,.nut-rtl .nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start{left:auto;right:16px}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:transparent;z-index:999}[dir=rtl] .nut-popover-content-bg,.nut-rtl .nut-popover-content-bg{left:auto;right:0}.nut-popover-wrapper{display:inline-block}.nut-popover-content-copy{position:absolute;top:-99999px}.nut-tour-mask{position:fixed;box-shadow:0 0 0 150vh var(--nutui-black-10, rgba(0, 0, 0, .7));border-radius:var(--nutui-tour-mask-border-radius, 10px);z-index:999}.nut-tour-mask-none{box-shadow:none}.nut-tour-mask-hidden{opacity:0}.nut-tour-content{display:block;padding:var(--nutui-tour-content-padding, 10px 12px);min-width:var(--nutui-tour-content-min-width, 200px);box-sizing:content-box}.nut-tour-content-top{display:block;text-align:end}.nut-tour-content-top-close{--nut-icon-width: 10px;--nut-icon-height: 10px}.nut-tour-content-inner{margin:var(--nutui-tour-content-inner-margin, 10px 0px);font-size:var(--nutui-tour-content-inner-font-size, 14px);white-space:nowrap}.nut-tour-content-bottom{margin-top:var(--nutui-tour-content-bottom-margin-top, 10px);display:flex;justify-content:space-between}.nut-tour-content-bottom-operate{display:flex;justify-content:flex-end}.nut-tour-content-bottom-operate-btn{display:inline-block;border:1px solid var(--nutui-color-text-disabled, #bfbfbf);margin-left:var(--nutui-tour-content-bottom-btn-margin-left, 4px);padding:var(--nutui-tour-content-bottom-btn-padding, 2px 4px);font-size:var(--nutui-tour-content-bottom-btn-font-size, 12px);border-radius:var(--nutui-tour-content-bottom-btn-border-radius, 4px);color:var(--nutui-gray-6, #595959);cursor:pointer}.nut-tour-content-bottom-operate-btn.active{color:#fff;border:0;background:var(--nutui-color-primary, #fa2c19)}.nut-tour-content-tile .nut-tour-content-inner{margin:0}.nut-tour-masked{position:fixed;width:100vh;height:100vh;z-index:1000;top:0;left:0;background:transparent}[dir=rtl] .nut-tour-content-bottom-operate-btn,.nut-rtl .nut-tour-content-bottom-operate-btn{margin-left:0;margin-right:var(--nutui-tour-content-bottom-btn-margin-left, 4px)}[dir=rtl] .nut-tour-masked,.nut-rtl .nut-tour-masked{left:auto;right:0}
1
+ .nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-popup{position:fixed;min-height:26%;max-height:100%;overflow-y:auto;background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-gray-7, #1a1a1a);-webkit-overflow-scrolling:touch;font-size:var(--nutui-font-size-3, 14px)}.nut-popup-title{display:flex;align-items:center;justify-content:center;border-bottom:var(--nutui-popup-title-border-bottom, 0);padding:var(--nutui-popup-title-padding, 16px);position:relative}.nut-popup-title-left{position:absolute;left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-title{font-weight:var(--nutui-font-weight-bold, 500);font-size:var(--nutui-popup-title-font-size, var(--nutui-font-size-5, 18px))}.nut-popup-title-description{color:var(--nutui-gray-5, #8c8c8c);font-size:var(--nutui-popup-description-font-size, var(--nutui-font-size-1, 10px));font-weight:var(--nutui-font-weight, 400)}.nut-popup-title-right{position:absolute!important;z-index:1;cursor:pointer;width:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));height:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));display:flex;justify-content:center;align-items:center;top:var(--nutui-popup-title-padding, 16px);right:var(--nutui-popup-title-padding, 16px);color:var(--nutui-gray-5, #8c8c8c)}.nut-popup-title-right:active{opacity:.7}.nut-popup-title-right-top-left{top:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-left{bottom:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-right{right:var(--nutui-popup-title-padding, 16px);bottom:var(--nutui-popup-title-padding, 16px)}.nut-popup-center{top:50%;left:50%;min-height:10%;transform:translate(-50%,-50%)}.nut-popup-center.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px)}.nut-popup-bottom,.nut-popup-top{max-height:83%}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) 0 0 var(--nutui-popup-border-radius, 24px)}.nut-popup-left{top:0;left:0}.nut-popup-left.nut-popup-round{border-radius:0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.nut-popup-round{border-radius:0 0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px)}@keyframes popup-scale-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes popup-scale-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.nut-popup-slide-default-enter-active{animation-fill-mode:both;animation-name:popup-scale-fade-in;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-fade-in{0%{opacity:0}to{opacity:1}}@keyframes popup-fade-out{0%{opacity:1}to{opacity:0}}.nut-popup-slide-center-enter-active{animation-fill-mode:both;animation-name:popup-fade-in;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-top-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes popup-slide-top-exit{to{transform:translate3d(0,-100%,0)}}.nut-popup-slide-top-enter-active,.nut-popup-slide-top-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-top-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes popup-slide-right-exit{to{transform:translate3d(100%,0,0)}}.nut-popup-slide-right-enter-active,.nut-popup-slide-right-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-right-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-bottom-enter{0%{transform:translate3d(0,100%,0)}}@keyframes slide-bottom-exit{to{transform:translate3d(0,100%,0)}}.nut-popup-slide-bottom-enter-active,.nut-popup-slide-bottom-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-bottom-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}@keyframes popup-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes popup-slide-left-exit{to{transform:translate3d(-100%,0,0)}}.nut-popup-slide-left-enter-active,.nut-popup-slide-left-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-left-enter;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-left-exit-active,.nut-popup-slide-left-exit-done{animation-fill-mode:both;animation-name:popup-slide-left-exit;animation-duration:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-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{display:none}.nut-popup .nut-overflow-hidden{overflow:hidden!important}[dir=rtl] .nut-popup-title-left,.nut-rtl .nut-popup-title-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right,.nut-rtl .nut-popup-title-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-top-left,.nut-rtl .nut-popup-title-right-top-left,[dir=rtl] .nut-popup-title-right-bottom-left,.nut-rtl .nut-popup-title-right-bottom-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-bottom-right,.nut-rtl .nut-popup-title-right-bottom-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,.nut-rtl .nut-popup-title .nut-icon-ArrowLeft{transform:rotate(180deg)}[dir=rtl] .nut-popup-center,.nut-rtl .nut-popup-center{left:auto;right:50%;transform:translate(50%,-50%)}[dir=rtl] .nut-popup-bottom,.nut-rtl .nut-popup-bottom,[dir=rtl] .nut-popup-top,.nut-rtl .nut-popup-top{left:auto;right:0}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid transparent}.nut-popover-arrow-top{bottom:0;border-top-color:var(--nutui-popover-border-color, #ffffff);border-bottom-width:0;margin-bottom:-8px}.nut-popover-arrow-bottom{top:0;border-bottom-color:var(--nutui-popover-border-color, #ffffff);border-top-width:0;margin-top:-8px}.nut-popover-arrow-left{right:0;border-left-color:var(--nutui-popover-border-color, #ffffff);border-right-width:0;margin-right:-8px}.nut-popover-arrow-left.nut-popover-arrow-left{top:50%;transform:translateY(-50%)}.nut-popover-arrow-left.nut-popover-arrow-left-start{top:16px;transform:translateY(0)}.nut-popover-arrow-left.nut-popover-arrow-left-end{bottom:16px;transform:translateY(0)}.nut-popover-arrow-right{left:0;border-right-color:var(--nutui-popover-border-color, #ffffff);border-left-width:0;margin-left:-8px}.nut-popover-arrow-right.nut-popover-arrow-right{top:50%;transform:translateY(-50%)}.nut-popover-arrow-right.nut-popover-arrow-right-start{top:16px;transform:translateY(0)}.nut-popover-arrow-right.nut-popover-arrow-right-end{bottom:16px;transform:translateY(0)}.nut-popover .nut-popover-content{position:absolute;background-color:var(--nutui-popover-content-background-color, #ffffff);border-radius:var(--nutui-popover-border-radius, 8px);font-size:var(--nutui-popover-font-size, var(--nutui-font-size-2, 12px));font-family:PingFangSC;font-weight:400;color:var(--nutui-popover-text-color, #1a1a1a);box-shadow:0 2px 12px #3232331f;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--nutui-popover-menu-item-padding, 8px);border-bottom:1px solid var(--nutui-popover-divider-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:0;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:nth-of-type(2){border-radius:8px 8px 0 0}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:last-of-type{border-radius:0 0 8px 8px}.nut-popover .nut-popover-content .nut-popover-menu-item-icon{display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px}.nut-popover .nut-popover-content .nut-popover-menu-item-icon .nut-icon{width:12px;height:12px;font-size:12px}.nut-popover .nut-popover-content .nut-popover-menu-item-name{width:100%;word-break:keep-all;margin:0 6px 0 4px}.nut-popover .nut-popover-content .nut-popover-menu-item-action-icon{display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px;color:var(--nutui-gray-6, #595959)}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nutui-popover-disable-color, var(--nutui-color-text-disabled, #bfbfbf));cursor:not-allowed}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-taroitem{display:flex}.nut-popover .nut-popover-content-top .nut-popover-arrow-top{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content-top-end{right:0}.nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content-top-start{left:0}.nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content-bottom-end{right:0}.nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content-bottom-start{left:0}.nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content-left-end{bottom:0}.nut-popover .nut-popover-content-left-start{top:0}.nut-popover .nut-popover-content-right-end{bottom:0}.nut-popover .nut-popover-content-right-start{top:0}.nut-popover-dark{background:var(--nutui-popover-text-color, #1a1a1a);color:var(--nutui-popover-content-background-color, #ffffff)}.nut-popover-dark .nut-popover-arrow{border-bottom-color:var(--nutui-popover-text-color, #1a1a1a)}.nut-popover-dark .nut-popover-content{background:var(--nutui-popover-text-color, #1a1a1a)!important;color:var(--nutui-popover-content-background-color, #ffffff)!important}.nut-popover-dark .nut-popover-content .nut-popover-menu-item{border-bottom-color:var(--nutui-popover-content-background-color, #ffffff)}.nut-popover-dark .nut-popover-content .nut-popover-menu-item:hover{color:var(--nutui-popover-content-background-color, #ffffff);background-color:var(--nutui-popover-text-color, #1a1a1a)}[dir=rtl] .nut-popover .nut-popover-content .nut-popover-menu-item-name,.nut-rtl .nut-popover .nut-popover-content .nut-popover-menu-item-name{margin-left:0;margin-right:4px}[dir=rtl] .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon,.nut-rtl .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon{right:auto;left:var(--nutui-popover-menu-item-padding, 8px)}[dir=rtl] .nut-popover .nut-popover-content-top .nut-popover-arrow-top,.nut-rtl .nut-popover .nut-popover-content-top .nut-popover-arrow-top{left:auto;right:50%;transform:translate(50%)}[dir=rtl] .nut-popover .nut-popover-content-top-end,.nut-rtl .nut-popover .nut-popover-content-top-end{right:auto;left:0}[dir=rtl] .nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end,.nut-rtl .nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end{right:auto;left:16px}[dir=rtl] .nut-popover .nut-popover-content-top-start,.nut-rtl .nut-popover .nut-popover-content-top-start{left:auto;right:0}[dir=rtl] .nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start,.nut-rtl .nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start{left:auto;right:16px}[dir=rtl] .nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom,.nut-rtl .nut-popover .nut-popover-content-bottom .nut-popover-arrow-bottom{left:auto;right:50%;transform:translate(50%)}[dir=rtl] .nut-popover .nut-popover-content-bottom-end,.nut-rtl .nut-popover .nut-popover-content-bottom-end{right:auto;left:0}[dir=rtl] .nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end,.nut-rtl .nut-popover .nut-popover-content-bottom-end .nut-popover-arrow-bottom-end{right:auto;left:16px}[dir=rtl] .nut-popover .nut-popover-content-bottom-start,.nut-rtl .nut-popover .nut-popover-content-bottom-start{left:auto;right:0}[dir=rtl] .nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start,.nut-rtl .nut-popover .nut-popover-content-bottom-start .nut-popover-arrow-bottom-start{left:auto;right:16px}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:transparent;z-index:999}[dir=rtl] .nut-popover-content-bg,.nut-rtl .nut-popover-content-bg{left:auto;right:0}.nut-popover-wrapper{display:inline-block}.nut-popover-content-copy{position:absolute;top:-99999px}.nut-tour-mask{position:fixed;box-shadow:0 0 0 150vh var(--nutui-black-10, rgba(0, 0, 0, .7));border-radius:var(--nutui-tour-mask-border-radius, 10px);z-index:999}.nut-tour-mask-none{box-shadow:none}.nut-tour-mask-hidden{opacity:0}.nut-tour-content{display:block;padding:var(--nutui-tour-content-padding, 10px 12px);min-width:var(--nutui-tour-content-min-width, 200px);box-sizing:content-box}.nut-tour-content-top{display:block;text-align:end}.nut-tour-content-top-close{--nut-icon-width: 10px;--nut-icon-height: 10px}.nut-tour-content-inner{margin:var(--nutui-tour-content-inner-margin, 10px 0px);font-size:var(--nutui-tour-content-inner-font-size, 14px);white-space:nowrap}.nut-tour-content-bottom{margin-top:var(--nutui-tour-content-bottom-margin-top, 10px);display:flex;justify-content:space-between}.nut-tour-content-bottom-operate{display:flex;justify-content:flex-end}.nut-tour-content-bottom-operate-btn{display:inline-block;border:1px solid var(--nutui-color-text-disabled, #bfbfbf);margin-left:var(--nutui-tour-content-bottom-btn-margin-left, 4px);padding:var(--nutui-tour-content-bottom-btn-padding, 2px 4px);font-size:var(--nutui-tour-content-bottom-btn-font-size, 12px);border-radius:var(--nutui-tour-content-bottom-btn-border-radius, 4px);color:var(--nutui-gray-6, #595959);cursor:pointer}.nut-tour-content-bottom-operate-btn.active{color:#fff;border:0;background:var(--nutui-color-primary, #fa2c19)}.nut-tour-content-tile .nut-tour-content-inner{margin:0}.nut-tour-masked{position:fixed;width:100vh;height:100vh;z-index:1000;top:0;left:0;background:transparent}[dir=rtl] .nut-tour-content-bottom-operate-btn,.nut-rtl .nut-tour-content-bottom-operate-btn{margin-left:0;margin-right:var(--nutui-tour-content-bottom-btn-margin-left, 4px)}[dir=rtl] .nut-tour-masked,.nut-rtl .nut-tour-masked{left:auto;right:0}
@@ -6,7 +6,7 @@ import { P as Popup } from "./popup2.js";
6
6
  import { T as Tabs } from "./tabs2.js";
7
7
  import { C as ComponentDefaults } from "./typings.js";
8
8
  import { u as usePropsValue } from "./use-props-value.js";
9
- import { u as useConfig } from "./configprovider.taro.js";
9
+ import { useConfig } from "./ConfigProvider.js";
10
10
  const formatTree = (tree, parent, config) => tree.map((node) => {
11
11
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
12
12
  const _a = node, _b = valueKey, value = _a[_b], _c = textKey, text = _a[_c], _d = childrenKey, children = _a[_d], others = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", typeof _d === "symbol" ? _d : _d + ""]);
@@ -4,7 +4,6 @@ import React__default, { createContext, useContext } from "react";
4
4
  import classNames from "classnames";
5
5
  import kebabCase from "lodash.kebabcase";
6
6
  import isequal from "lodash.isequal";
7
- import { z as zhCN } from "./zh-CN.js";
8
7
  import { i as inBrowser } from "./raf.js";
9
8
  function useMemo(getValue, condition, shouldUpdate) {
10
9
  const cacheRef = React.useRef({});
@@ -14,6 +13,144 @@ function useMemo(getValue, condition, shouldUpdate) {
14
13
  }
15
14
  return cacheRef.current.value;
16
15
  }
16
+ const zhCN = {
17
+ save: "保存",
18
+ confirm: "确认",
19
+ cancel: "取消",
20
+ done: "完成",
21
+ noData: "暂无数据",
22
+ placeholder: "请输入内容",
23
+ select: "请选择",
24
+ edit: "编辑",
25
+ reset: "重置",
26
+ video: {
27
+ errorTip: "视频加载失败",
28
+ clickRetry: "点击重试"
29
+ },
30
+ fixednav: {
31
+ activeText: "收起导航",
32
+ inactiveText: "快速导航"
33
+ },
34
+ infiniteloading: {
35
+ pullRefreshText: "松开刷新",
36
+ loadText: "加载中",
37
+ loadMoreText: "没有更多了"
38
+ },
39
+ pagination: {
40
+ prev: "上一页",
41
+ next: "下一页"
42
+ },
43
+ range: {
44
+ rangeText: "不在该区间内"
45
+ },
46
+ calendaritem: {
47
+ weekdays: ["日", "一", "二", "三", "四", "五", "六"],
48
+ end: "结束",
49
+ start: "开始",
50
+ confirm: "确认",
51
+ title: "日历选择",
52
+ monthTitle: (year, month) => `${year}年${Number(month) < 10 ? `0${Number(month)}` : month}月`,
53
+ today: "今天",
54
+ loadPreviousMonth: "加载上一个月",
55
+ noEarlierMonth: "没有更早月份"
56
+ },
57
+ shortpassword: {
58
+ title: "请输入密码",
59
+ description: "您使用了虚拟资产,请进行验证",
60
+ tips: "忘记密码"
61
+ },
62
+ uploader: {
63
+ list: "上传文件",
64
+ ready: "准备完成",
65
+ readyUpload: "准备上传",
66
+ waitingUpload: "等待上传",
67
+ uploading: "上传中...",
68
+ success: "上传成功",
69
+ error: "上传失败",
70
+ deleteWord: "用户阻止了删除!"
71
+ },
72
+ countdown: {
73
+ day: "天",
74
+ hour: "时",
75
+ minute: "分",
76
+ second: "秒"
77
+ },
78
+ address: {
79
+ selectRegion: "请选择地址",
80
+ deliveryTo: "配送至",
81
+ chooseAnotherAddress: "选择其他地址"
82
+ },
83
+ signature: {
84
+ reSign: "重签",
85
+ unsupported: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
86
+ },
87
+ ecard: {
88
+ chooseText: "请选择电子卡面值",
89
+ otherValueText: "其他面值",
90
+ placeholder: "请输入1-5000整数"
91
+ },
92
+ timeselect: {
93
+ pickupTime: "取件时间"
94
+ },
95
+ sku: {
96
+ buyNow: "立即购买",
97
+ buyNumber: "购买数量",
98
+ addToCard: "加入购物车"
99
+ },
100
+ skuheader: {
101
+ skuId: "商品编号"
102
+ },
103
+ addresslist: {
104
+ addAddress: "新建地址"
105
+ },
106
+ comment: {
107
+ complaintsText: "我要投诉",
108
+ additionalReview: (day) => `购买${day}天后追评`,
109
+ additionalImages: (length) => `${length}张追评图片`
110
+ },
111
+ searchbar: {
112
+ basePlaceholder: "上京东,购好物",
113
+ text: "文本",
114
+ test: "测试",
115
+ title1: "基础用法",
116
+ title2: "搜索框形状及最大长度",
117
+ title3: "搜索框内外背景设置",
118
+ title4: "搜索框文本设置",
119
+ title5: "自定义图标设置",
120
+ title6: "数据改变监听"
121
+ },
122
+ audio: {
123
+ back: "快退",
124
+ forward: "快进",
125
+ pause: "暂停",
126
+ start: "开始",
127
+ mute: "静音",
128
+ tips: "onPlayEnd事件在loop=false时才会触发"
129
+ },
130
+ avatarCropper: { rotate: "旋转", selectImage: "选择图片" },
131
+ datepicker: {
132
+ year: "年",
133
+ month: "月",
134
+ day: "日",
135
+ hour: "时",
136
+ min: "分",
137
+ seconds: "秒"
138
+ },
139
+ pullToRefresh: {
140
+ pullingText: "下拉刷新",
141
+ canReleaseText: "松手刷新",
142
+ refreshingText: "刷新中",
143
+ completeText: "刷新成功"
144
+ },
145
+ tour: {
146
+ prevStepText: "上一步",
147
+ completeText: "完成",
148
+ nextStepText: "下一步"
149
+ },
150
+ watermark: {
151
+ errorCanvasTips: "当前环境不支持Canvas"
152
+ }
153
+ };
17
154
  const classPrefix = "nut-configprovider";
18
155
  const defaultConfigRef = {
19
156
  current: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:59:23 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.22 Sat Oct 12 2024 14:58:54 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.23 Fri Oct 18 2024 14:16:05 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1874,20 +1874,20 @@ function cancelRaf(id) {
1874
1874
  }
1875
1875
  const requestAniFrame$1 = requestAniFrame();
1876
1876
  const classPrefix$p = "nut-configprovider";
1877
- const defaultConfigRef$1 = {
1877
+ const defaultConfigRef = {
1878
1878
  current: {
1879
1879
  locale: zhCN
1880
1880
  }
1881
1881
  };
1882
1882
  const setDefaultConfig = (config2) => {
1883
- defaultConfigRef$1.current = config2;
1883
+ defaultConfigRef.current = config2;
1884
1884
  };
1885
- const getDefaultConfig$1 = () => {
1886
- return defaultConfigRef$1.current;
1885
+ const getDefaultConfig = () => {
1886
+ return defaultConfigRef.current;
1887
1887
  };
1888
- const ConfigContext$1 = createContext(null);
1889
- const useConfig$1 = () => {
1890
- return useContext(ConfigContext$1) ?? getDefaultConfig$1();
1888
+ const ConfigContext = createContext(null);
1889
+ const useConfig = () => {
1890
+ return useContext(ConfigContext) ?? getDefaultConfig();
1891
1891
  };
1892
1892
  function convertThemeVarsToCSSVars(themeVars) {
1893
1893
  const cssVars = {};
@@ -1897,7 +1897,7 @@ function convertThemeVarsToCSSVars(themeVars) {
1897
1897
  return cssVars;
1898
1898
  }
1899
1899
  const useRtl = () => {
1900
- const { direction } = useConfig$1();
1900
+ const { direction } = useConfig();
1901
1901
  if (direction) {
1902
1902
  return direction === "rtl";
1903
1903
  }
@@ -1908,7 +1908,7 @@ const ConfigProvider = (props) => {
1908
1908
  const mergedConfig = useMemo(
1909
1909
  () => {
1910
1910
  return {
1911
- ...getDefaultConfig$1(),
1911
+ ...getDefaultConfig(),
1912
1912
  ...config2,
1913
1913
  direction
1914
1914
  };
@@ -1922,7 +1922,7 @@ const ConfigProvider = (props) => {
1922
1922
  const cssVarStyle = React__default.useMemo(() => {
1923
1923
  return convertThemeVarsToCSSVars(mergedConfig.theme || {});
1924
1924
  }, [mergedConfig.theme]);
1925
- return /* @__PURE__ */ React__default.createElement(ConfigContext$1.Provider, { value: mergedConfig }, /* @__PURE__ */ React__default.createElement(
1925
+ return /* @__PURE__ */ React__default.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React__default.createElement(
1926
1926
  "div",
1927
1927
  {
1928
1928
  className: classNames(classPrefix$p, className),
@@ -8445,7 +8445,7 @@ const defaultProps$1g = {
8445
8445
  }
8446
8446
  };
8447
8447
  const FixedNav = (props) => {
8448
- const { locale } = useConfig$1();
8448
+ const { locale } = useConfig();
8449
8449
  const {
8450
8450
  className,
8451
8451
  overlay,
@@ -9543,19 +9543,6 @@ class Tree {
9543
9543
  return pathNodes;
9544
9544
  }
9545
9545
  }
9546
- const defaultConfigRef = {
9547
- current: {
9548
- locale: zhCN,
9549
- direction: "ltr"
9550
- }
9551
- };
9552
- const getDefaultConfig = () => {
9553
- return defaultConfigRef.current;
9554
- };
9555
- const ConfigContext = createContext(null);
9556
- const useConfig = () => {
9557
- return useContext(ConfigContext) ?? getDefaultConfig();
9558
- };
9559
9546
  const defaultProps$16 = {
9560
9547
  ...ComponentDefaults,
9561
9548
  activeColor: "",
@@ -9972,7 +9959,7 @@ const defaultProps$14 = {
9972
9959
  custom: false
9973
9960
  };
9974
9961
  const ExistRender = (props) => {
9975
- const { locale } = useConfig$1();
9962
+ const { locale } = useConfig();
9976
9963
  const {
9977
9964
  children,
9978
9965
  type: type4,
@@ -10028,7 +10015,7 @@ const defaultProps$13 = {
10028
10015
  backIcon: null
10029
10016
  };
10030
10017
  const InternalAddress = (props, ref) => {
10031
- const { locale } = useConfig$1();
10018
+ const { locale } = useConfig();
10032
10019
  const {
10033
10020
  style,
10034
10021
  className,
@@ -10423,7 +10410,7 @@ const defaultProps$12 = {
10423
10410
  }
10424
10411
  };
10425
10412
  const CalendarItem = React__default.forwardRef((props, ref) => {
10426
- const { locale } = useConfig$1();
10413
+ const { locale } = useConfig();
10427
10414
  const {
10428
10415
  style,
10429
10416
  className,
@@ -10445,6 +10432,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10445
10432
  firstDayOfWeek,
10446
10433
  disableDate,
10447
10434
  renderHeaderButtons,
10435
+ renderBottomButton,
10448
10436
  renderDay,
10449
10437
  renderDayTop,
10450
10438
  renderDayBottom,
@@ -10987,7 +10975,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10987
10975
  );
10988
10976
  };
10989
10977
  const renderFooter = () => {
10990
- return /* @__PURE__ */ React__default.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React__default.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
10978
+ return /* @__PURE__ */ React__default.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React__default.createElement("div", { onClick: confirm2 }, renderBottomButton ? renderBottomButton() : /* @__PURE__ */ React__default.createElement("div", { className: "calendar-confirm-btn" }, confirmText || locale.confirm)));
10991
10979
  };
10992
10980
  return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : "");
10993
10981
  });
@@ -11025,7 +11013,7 @@ const defaultProps$11 = {
11025
11013
  }
11026
11014
  };
11027
11015
  const Calendar = React__default.forwardRef((props, ref) => {
11028
- const { locale } = useConfig$1();
11016
+ const { locale } = useConfig();
11029
11017
  const {
11030
11018
  style,
11031
11019
  className,
@@ -11046,8 +11034,10 @@ const Calendar = React__default.forwardRef((props, ref) => {
11046
11034
  showSubTitle,
11047
11035
  scrollAnimation,
11048
11036
  firstDayOfWeek,
11037
+ closeIcon,
11049
11038
  disableDate,
11050
11039
  renderHeaderButtons,
11040
+ renderBottomButton,
11051
11041
  renderDay,
11052
11042
  renderDayTop,
11053
11043
  renderDayBottom,
@@ -11090,6 +11080,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
11090
11080
  children,
11091
11081
  type: type4,
11092
11082
  autoBackfill,
11083
+ renderBottomButton,
11093
11084
  popup,
11094
11085
  title: title || locale.calendaritem.title,
11095
11086
  defaultValue,
@@ -11122,6 +11113,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
11122
11113
  position: "bottom",
11123
11114
  round: true,
11124
11115
  closeable: true,
11116
+ closeIcon,
11125
11117
  destroyOnClose: true,
11126
11118
  onOverlayClick: closePopup,
11127
11119
  onCloseIconClick: closePopup,
@@ -11242,7 +11234,7 @@ const defaultProps$10 = {
11242
11234
  };
11243
11235
  const prefixCls = "nut-calendarcard";
11244
11236
  const CalendarCard = React__default.forwardRef((props, ref) => {
11245
- const { locale } = useConfig$1();
11237
+ const { locale } = useConfig();
11246
11238
  const {
11247
11239
  style,
11248
11240
  className,
@@ -12088,7 +12080,7 @@ const defaultProps$Z = {
12088
12080
  duration: 1e3
12089
12081
  };
12090
12082
  const InternalPicker = (props, ref) => {
12091
- const { locale } = useConfig$1();
12083
+ const { locale } = useConfig();
12092
12084
  const {
12093
12085
  children,
12094
12086
  visible,
@@ -12384,7 +12376,7 @@ const DatePicker = (props) => {
12384
12376
  ...defaultProps$Y,
12385
12377
  ...props
12386
12378
  };
12387
- const { locale } = useConfig$1();
12379
+ const { locale } = useConfig();
12388
12380
  const lang = locale.datepicker;
12389
12381
  const zhCNType = {
12390
12382
  day: lang.day,
@@ -14191,7 +14183,7 @@ const defaultProps$V = {
14191
14183
  const Input = forwardRef(
14192
14184
  (props, ref) => {
14193
14185
  const rtl = useRtl();
14194
- const { locale } = useConfig$1();
14186
+ const { locale } = useConfig();
14195
14187
  const {
14196
14188
  type: type4,
14197
14189
  name,
@@ -14998,7 +14990,7 @@ const defaultProps$R = {
14998
14990
  }
14999
14991
  };
15000
14992
  const NumberKeyboard = (props) => {
15001
- const { locale } = useConfig$1();
14993
+ const { locale } = useConfig();
15002
14994
  const {
15003
14995
  title,
15004
14996
  rightActions,
@@ -15864,7 +15856,7 @@ const defaultProps$M = {
15864
15856
  };
15865
15857
  const SearchBar = (props) => {
15866
15858
  const classPrefix2 = "nut-searchbar";
15867
- const { locale } = useConfig$1();
15859
+ const { locale } = useConfig();
15868
15860
  const searchRef = useRef(null);
15869
15861
  const {
15870
15862
  value: outerValue,
@@ -16017,7 +16009,7 @@ const defaultProps$L = {
16017
16009
  autoFocus: false
16018
16010
  };
16019
16011
  const InternalShortPassword = (props, ref) => {
16020
- const { locale } = useConfig$1();
16012
+ const { locale } = useConfig();
16021
16013
  const {
16022
16014
  title,
16023
16015
  description,
@@ -16115,7 +16107,7 @@ const defaultProps$K = {
16115
16107
  unsupported: ""
16116
16108
  };
16117
16109
  const InternalSignature = (props, ref) => {
16118
- const { locale } = useConfig$1();
16110
+ const { locale } = useConfig();
16119
16111
  const {
16120
16112
  type: type4,
16121
16113
  lineWidth,
@@ -16296,7 +16288,7 @@ const defaultProps$I = {
16296
16288
  autoSize: false
16297
16289
  };
16298
16290
  const TextArea = (props) => {
16299
- const { locale } = useConfig$1();
16291
+ const { locale } = useConfig();
16300
16292
  const {
16301
16293
  className,
16302
16294
  value,
@@ -16720,7 +16712,7 @@ const defaultProps$G = {
16720
16712
  }
16721
16713
  };
16722
16714
  const InternalUploader = (props, ref) => {
16723
- const { locale } = useConfig$1();
16715
+ const { locale } = useConfig();
16724
16716
  const fileListRef = useRef([]);
16725
16717
  const {
16726
16718
  children,
@@ -17324,7 +17316,7 @@ const DialogWrap = (props) => {
17324
17316
  onClose,
17325
17317
  onCancel,
17326
17318
  onOverlayClick
17327
- } = props;
17319
+ } = mergeProps(defaultDialogProps, props);
17328
17320
  const onHandleClickOverlay = (e) => {
17329
17321
  if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
17330
17322
  const closed = onOverlayClick && onOverlayClick(e);
@@ -17354,7 +17346,6 @@ const DialogWrap = (props) => {
17354
17346
  /* @__PURE__ */ React__default.createElement(Content, { ...props, visible })
17355
17347
  ));
17356
17348
  };
17357
- DialogWrap.defaultProps = defaultDialogProps;
17358
17349
  DialogWrap.displayName = "NutDialogWrap";
17359
17350
  const defaultProps$E = {
17360
17351
  ...ComponentDefaults,
@@ -17373,7 +17364,7 @@ const defaultProps$E = {
17373
17364
  beforeClose: () => true
17374
17365
  };
17375
17366
  const BaseDialog = (props, ref) => {
17376
- const { locale } = useConfig$1();
17367
+ const { locale } = useConfig();
17377
17368
  const {
17378
17369
  visible,
17379
17370
  footer,
@@ -17670,7 +17661,7 @@ const defaultProps$B = {
17670
17661
  };
17671
17662
  const classPrefix$d = `nut-infiniteloading`;
17672
17663
  const InfiniteLoading = (props) => {
17673
- const { locale } = useConfig$1();
17664
+ const { locale } = useConfig();
17674
17665
  const {
17675
17666
  children,
17676
17667
  type: type4,
@@ -18740,7 +18731,7 @@ const defaultProps$x = {
18740
18731
  };
18741
18732
  const PullToRefresh = (p2) => {
18742
18733
  const classPrefix2 = "nut-pulltorefresh";
18743
- const { locale } = useConfig$1();
18734
+ const { locale } = useConfig();
18744
18735
  const props = {
18745
18736
  ...defaultProps$x,
18746
18737
  ...p2,
@@ -19629,7 +19620,7 @@ const defaultProps$p = {
19629
19620
  }
19630
19621
  };
19631
19622
  const Audio = (props) => {
19632
- const { locale } = useConfig$1();
19623
+ const { locale } = useConfig();
19633
19624
  const {
19634
19625
  className,
19635
19626
  src,
@@ -21318,7 +21309,7 @@ const defaultProps$e = {
21318
21309
  ellipse: false
21319
21310
  };
21320
21311
  const Pagination = (props) => {
21321
- const { locale } = useConfig$1();
21312
+ const { locale } = useConfig();
21322
21313
  const {
21323
21314
  value,
21324
21315
  mode,
@@ -21665,7 +21656,7 @@ const defaultProps$a = {
21665
21656
  showHeader: true
21666
21657
  };
21667
21658
  const Table = (props) => {
21668
- const { locale } = useConfig$1();
21659
+ const { locale } = useConfig();
21669
21660
  const rtl = useRtl();
21670
21661
  defaultProps$a.noData = locale.noData;
21671
21662
  const {
@@ -21935,7 +21926,7 @@ const defaultProps$8 = {
21935
21926
  };
21936
21927
  const classPrefix$2 = "nut-tour";
21937
21928
  const Tour = (props) => {
21938
- const { locale } = useConfig$1();
21929
+ const { locale } = useConfig();
21939
21930
  const {
21940
21931
  children,
21941
21932
  className,
@@ -22590,7 +22581,7 @@ const defaultProps$3 = {
22590
22581
  }
22591
22582
  };
22592
22583
  const TimeSelect = (props) => {
22593
- const { locale } = useConfig$1();
22584
+ const { locale } = useConfig();
22594
22585
  const {
22595
22586
  visible,
22596
22587
  className,
@@ -22815,7 +22806,7 @@ const defaultProps$1 = {
22815
22806
  fontSize: 14
22816
22807
  };
22817
22808
  const WaterMark = (props) => {
22818
- const { locale } = useConfig$1();
22809
+ const { locale } = useConfig();
22819
22810
  const {
22820
22811
  content,
22821
22812
  fullPage,
@@ -23374,8 +23365,8 @@ export {
23374
23365
  Video,
23375
23366
  VirtualList,
23376
23367
  WaterMark,
23377
- getDefaultConfig$1 as getDefaultConfig,
23368
+ getDefaultConfig,
23378
23369
  setDefaultConfig,
23379
- useConfig$1 as useConfig,
23370
+ useConfig,
23380
23371
  useRtl
23381
23372
  };