@nutui/nutui-react-taro 2.6.23 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -7
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/{actionsheet.taro-CgfXnK1M.js → actionsheet.taro-kMhbV73n.js} +1 -1
- package/dist/esm/{address.taro-Ai6DQF3D.js → address.taro-C8CsajMW.js} +2 -2
- package/dist/esm/{calendar.taro-MkErd99P.js → calendar.taro-CM4yWFlF.js} +1 -1
- package/dist/esm/{cascader.taro-CMOCzo0m.js → cascader.taro-DRE3asjI.js} +2 -2
- package/dist/esm/{datepicker.taro-DibmSueg.js → datepicker.taro-DU4OSraL.js} +1 -1
- package/dist/esm/{imagepreview.taro-C0yMREHT.js → imagepreview.taro-BE4mZT-S.js} +1 -1
- package/dist/esm/{inputnumber.taro-DPRZtV42.js → inputnumber.taro-CZourWz-.js} +4 -4
- package/dist/esm/{numberkeyboard.taro-CIlStObb.js → numberkeyboard.taro-BvVO_MyJ.js} +1 -1
- package/dist/esm/nutui-react.es.js +17 -17
- package/dist/esm/{picker.taro-mCnxpFCY.js → picker.taro-CYNZBTE4.js} +1 -1
- package/dist/esm/{popover.taro-BHcidbZG.js → popover.taro-o5vHvHsm.js} +1 -1
- package/dist/esm/{popup.taro-DV32k5dP.js → popup.taro-JynjcLCn.js} +3 -3
- package/dist/esm/{shortpassword.taro-ByEtEDDl.js → shortpassword.taro-CUnXqjab.js} +1 -1
- package/dist/esm/{sidenavbar.taro-DNwoQw9u.js → sidenavbar.taro-C-AoUXLA.js} +1 -1
- package/dist/esm/{tabs.taro-D8bDfm4x.js → tabs.taro-CY1VxgF-.js} +1 -4
- package/dist/esm/{textarea.taro-EJQxRHZR.js → textarea.taro-PsaohYay.js} +2 -2
- package/dist/esm/{timeselect.taro-DE_a87DT.js → timeselect.taro-FIl91wiO.js} +1 -1
- package/dist/esm/{tour.taro-BvBZa8nq.js → tour.taro-DfOfyyte.js} +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +10 -11
- package/dist/nutui.react.umd.js +10 -11
- package/dist/packages/avatarcropper/avatarcropper.scss +1 -1
- package/dist/packages/divider/divider.scss +1 -2
- package/dist/packages/toast/toast.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -0
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
|
-
# v2.
|
|
2
|
-
`2024-
|
|
1
|
+
# v2.7.1
|
|
2
|
+
`2024-11-22`
|
|
3
|
+
|
|
4
|
+
* :bug: fix(popup): display should not trigger the scrollview to update (#2773)
|
|
5
|
+
* :bug: fix(toast): load dependent CSS (#2776)
|
|
6
|
+
* :bug: fix(Form): Form 组件文档 demo 中 Switch 组件使用问题 (#2774)
|
|
7
|
+
* :bug: fix(textarea): handle undefined placeholder explicitly (#2748)
|
|
8
|
+
* 🏡 chore: jdesign 主题 (#2703)
|
|
9
|
+
* 🏡 chore: ci optimize (#2692)
|
|
10
|
+
* 🏡 chore: ci (#2690)
|
|
11
|
+
* 📖 docs(infiniteLoading): optimize target description (#2770)
|
|
12
|
+
* 📖 docs: 官方主题入口 (#2634)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# v2.7.0
|
|
3
16
|
|
|
17
|
+
`2024-11-01`
|
|
4
18
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
19
|
+
- :sparkles: feat: add plugin to remove rtl (#2673)
|
|
20
|
+
- :sparkles: feat: replacing the css paths imported from a specified package (#2675)
|
|
21
|
+
- :sparkles: feat(replace icon): jmapp icon (#2672)
|
|
22
|
+
- :sparkles: feat: add plugin to replace icons (#2671)
|
|
23
|
+
- :bug: fix(tabs): clicked tabs should be entirely visible (#2685)
|
|
24
|
+
- :bug: fix(avatarcropper): multi-language support (#2666)
|
|
25
|
+
- :bug: fix: optimize vertical type syntax for divider (#2664)
|
|
26
|
+
- :bug: fix: @nutui/icons-react changed to @nutui/icons-react-taro (#2651)
|
|
27
|
+
|
|
28
|
+
# v2.6.23
|
|
29
|
+
|
|
30
|
+
`2024-10-18`
|
|
10
31
|
|
|
32
|
+
- :sparkles: feat(calendar): support renderBottomButton props (#2645)
|
|
33
|
+
- :sparkles: feat(calendar): support deleteIcon props (#2644)
|
|
34
|
+
- :bug: fix(overlay): tour position offset in tour.taro (#2631)
|
|
35
|
+
- :bug: fix: import error (#2648)
|
|
36
|
+
- :bug: fix(dialog): remove defaultprops (#2639)
|
|
11
37
|
|
|
12
38
|
# v2.6.22
|
|
13
39
|
|
package/dist/esm/ActionSheet.js
CHANGED
package/dist/esm/Address.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-avatar-cropper{position:relative;display:flex}.nut-avatar-cropper-edit-text{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000004d;z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, .7));z-index:1000}.nut-avatar-cropper-popup-canvas,.nut-avatar-cropper-popup-cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-avatar-cropper-popup-cut-canvas{z-index:0}.nut-avatar-cropper-popup-toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-avatar-cropper-popup-toolbar.top{top:0;bottom:inherit}.nut-avatar-cropper-popup-toolbar-flex{width:100%;display:flex;justify-content:space-between}.nut-avatar-cropper-popup-toolbar-item{color:#fff;
|
|
1
|
+
.nut-avatar-cropper{position:relative;display:flex}.nut-avatar-cropper-edit-text{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000004d;z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, .7));z-index:1000}.nut-avatar-cropper-popup-canvas,.nut-avatar-cropper-popup-cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-avatar-cropper-popup-cut-canvas{z-index:0}.nut-avatar-cropper-popup-toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-avatar-cropper-popup-toolbar.top{top:0;bottom:inherit}.nut-avatar-cropper-popup-toolbar-flex{width:100%;display:flex;justify-content:space-between;padding:15px}.nut-avatar-cropper-popup-toolbar-item{color:#fff;cursor:pointer;display:flex;align-items:center}.nut-avatar-cropper-popup-toolbar-item .nut-button{color:#fff}.nut-avatar-cropper-popup-highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:transparent}.nut-avatar-cropper-popup-highlight .highlight{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-color:transparent;box-shadow:0 0 1000px 1000px #0009}.nut-avatar-cropper.round .nut-avatar-cropper-edit-text{border-radius:50%}[dir=rtl] .nut-avatar-cropper-edit-text,.nut-rtl .nut-avatar-cropper-edit-text,[dir=rtl] .nut-avatar-cropper-input,.nut-rtl .nut-avatar-cropper-input,[dir=rtl] .nut-avatar-cropper-popup,.nut-rtl .nut-avatar-cropper-popup,[dir=rtl] .nut-avatar-cropper-popup-canvas,[dir=rtl] .nut-avatar-cropper-popup-cut-canvas,.nut-rtl .nut-avatar-cropper-popup-canvas,.nut-rtl .nut-avatar-cropper-popup-cut-canvas,[dir=rtl] .nut-avatar-cropper-popup-toolbar,.nut-rtl .nut-avatar-cropper-popup-toolbar,[dir=rtl] .nut-avatar-cropper-popup-highlight,.nut-rtl .nut-avatar-cropper-popup-highlight{left:auto;right:0}[dir=rtl] .nut-avatar-cropper-popup-highlight .highlight,.nut-rtl .nut-avatar-cropper-popup-highlight .highlight{left:auto;right:50%;transform:translate(50%,-50%)}
|
package/dist/esm/Calendar.js
CHANGED
package/dist/esm/Cascader.js
CHANGED
package/dist/esm/DatePicker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-divider{display:flex;align-items:center;font-size:var(--nutui-divider-text-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-divider-text-color, var(--nutui-gray-6, #595959));margin:var(--nutui-divider-margin, 16px 0);border:0 solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));width:100%}.nut-divider:before,.nut-divider:after{content:"";border-style:inherit;border-color:inherit;border-width:var(--nutui-divider-line-height, 2px) 0 0;height:var(--nutui-divider-line-height, 2px);flex:1}.nut-divider-center:before,.nut-divider-left:before,.nut-divider-right:before{margin-right:var(--nutui-divider-spacing, 8px)}.nut-divider-center:after,.nut-divider-left:after,.nut-divider-right:after{margin-left:var(--nutui-divider-spacing, 8px)}.nut-divider-left:before{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-right:after{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-hairline:before,.nut-divider-hairline:after{transform:scaleY(.5)}.nut-divider-vertical{
|
|
1
|
+
.nut-divider{display:flex;align-items:center;font-size:var(--nutui-divider-text-font-size, var(--nutui-font-size-3, 14px));color:var(--nutui-divider-text-color, var(--nutui-gray-6, #595959));margin:var(--nutui-divider-margin, 16px 0);border:0 solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));width:100%}.nut-divider:before,.nut-divider:after{content:"";border-style:inherit;border-color:inherit;border-width:var(--nutui-divider-line-height, 2px) 0 0;height:var(--nutui-divider-line-height, 2px);flex:1}.nut-divider-center:before,.nut-divider-left:before,.nut-divider-right:before{margin-right:var(--nutui-divider-spacing, 8px)}.nut-divider-center:after,.nut-divider-left:after,.nut-divider-right:after{margin-left:var(--nutui-divider-spacing, 8px)}.nut-divider-left:before{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-right:after{max-width:var(--nutui-divider-side-width, 10%)}.nut-divider-hairline:before,.nut-divider-hairline:after{transform:scaleY(.5)}.nut-divider-vertical{display:inline-block;width:auto;height:var(--nutui-divider-vertical-height, 12px);border-left:1px solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));margin:var(--nutui-divider-vertical-margin, 0 8px);vertical-align:middle}[dir=rtl] .nut-divider-center:before,[dir=rtl] .nut-divider-left:before,[dir=rtl] .nut-divider-right:before,.nut-rtl .nut-divider-center:before,.nut-rtl .nut-divider-left:before,.nut-rtl .nut-divider-right:before{margin-right:0;margin-left:var(--nutui-divider-spacing, 8px)}[dir=rtl] .nut-divider-center:after,[dir=rtl] .nut-divider-left:after,[dir=rtl] .nut-divider-right:after,.nut-rtl .nut-divider-center:after,.nut-rtl .nut-divider-left:after,.nut-rtl .nut-divider-right:after{margin-left:0;margin-right:var(--nutui-divider-spacing, 8px)}[dir=rtl] .nut-divider-vertical,.nut-rtl .nut-divider-vertical{border-left:none;border-right:1px solid var(--nutui-divider-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}
|
package/dist/esm/ImagePreview.js
CHANGED
package/dist/esm/InputNumber.js
CHANGED
package/dist/esm/Picker.js
CHANGED
package/dist/esm/Popover.js
CHANGED
package/dist/esm/Popup.js
CHANGED
package/dist/esm/SideNavBar.js
CHANGED
package/dist/esm/Tabs.js
CHANGED
package/dist/esm/TextArea.js
CHANGED
package/dist/esm/TimeSelect.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../Overlay/style'
|
|
2
2
|
import '../../../packages/toast/toast.scss'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-toast-overlay-default{--nutui-overlay-bg-color: rgba(0, 0, 0, 0);--nutui-overlay-zIndex: 1300}.nut-toast-small .nut-toast-inner{font-size:var(--nutui-font-size-2, 12px)}.nut-toast-large .nut-toast-inner{font-size:var(--nutui-font-size-4, 16px)}.nut-toast-inner{display:inline-block;position:absolute;left:50%;top:var(--nutui-toast-inner-top, 50%);min-width:30%;max-width:95.7%;font-size:var(--nutui-toast-text-font-size, 14px);text-align:var(--nutui-toast-inner-text-align, center);padding:var(--nutui-toast-inner-padding, 16px 24px);word-break:break-all;background:var(--nutui-toast-inner-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-toast-inner-border-radius, 16px);color:var(--nutui-toast-font-color, #ffffff);transform:translate(-50%,-50%)}.nut-toast-inner.normal{word-break:normal;word-wrap:normal}.nut-toast-inner.break-word{word-break:normal;word-wrap:break-word}.nut-toast-center{top:var(--nutui-toast-inner-top, 50%)}.nut-toast-bottom{top:var(--nutui-toast-inner-top, 80%)}.nut-toast-top{top:var(--nutui-toast-inner-top, 20%)}.nut-toast-text:empty{margin-bottom:-8px}.nut-toast-title{font-size:var(--nutui-toast-title-font-size, 16px);font-weight:500}.nut-toast-title:empty{margin-bottom:-8px}.nut-toast-has-icon .nut-toast-icon-wrapper{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.nut-toast-has-icon .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.nut-toast-loading .nut-toast-inner{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.nut-toast-loading .nut-toast-icon-wrapper{animation:rotation 2s linear infinite}.nut-toast-loading .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}[dir=rtl] .nut-toast,.nut-rtl .nut-toast{left:auto;right:0}[dir=rtl] .nut-toast-inner,.nut-rtl .nut-toast-inner{left:auto;right:50%;transform:translate(50%,-50%)}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s}.toast-fade-enter-from,.toast-fade-leave-to{opacity: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)}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-toast-overlay-default{--nutui-overlay-bg-color: rgba(0, 0, 0, 0);--nutui-overlay-zIndex: 1300}.nut-toast-small .nut-toast-inner{font-size:var(--nutui-font-size-2, 12px)}.nut-toast-large .nut-toast-inner{font-size:var(--nutui-font-size-4, 16px)}.nut-toast-inner{display:inline-block;position:absolute;left:50%;top:var(--nutui-toast-inner-top, 50%);min-width:30%;max-width:95.7%;font-size:var(--nutui-toast-text-font-size, 14px);text-align:var(--nutui-toast-inner-text-align, center);padding:var(--nutui-toast-inner-padding, 16px 24px);word-break:break-all;background:var(--nutui-toast-inner-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-toast-inner-border-radius, 16px);color:var(--nutui-toast-font-color, #ffffff);transform:translate(-50%,-50%)}.nut-toast-inner.normal{word-break:normal;word-wrap:normal}.nut-toast-inner.break-word{word-break:normal;word-wrap:break-word}.nut-toast-center{top:var(--nutui-toast-inner-top, 50%)}.nut-toast-bottom{top:var(--nutui-toast-inner-top, 80%)}.nut-toast-top{top:var(--nutui-toast-inner-top, 20%)}.nut-toast-text:empty{margin-bottom:-8px}.nut-toast-title{font-size:var(--nutui-toast-title-font-size, 16px);font-weight:500}.nut-toast-title:empty{margin-bottom:-8px}.nut-toast-has-icon .nut-toast-icon-wrapper{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.nut-toast-has-icon .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.nut-toast-loading .nut-toast-inner{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.nut-toast-loading .nut-toast-icon-wrapper{animation:rotation 2s linear infinite}.nut-toast-loading .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}[dir=rtl] .nut-toast,.nut-rtl .nut-toast{left:auto;right:0}[dir=rtl] .nut-toast-inner,.nut-rtl .nut-toast-inner{left:auto;right:50%;transform:translate(50%,-50%)}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s}.toast-fade-enter-from,.toast-fade-leave-to{opacity:0}
|
package/dist/esm/Tour.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
5
|
import { m as mergeProps } from "./merge-props-2rRqFlJz.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, description: "", options: [], optionKey: { name: "name", description: "description" }, cancelText: "", onCancel: () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { forwardRef, useState, useImperativeHandle } from "react";
|
|
3
3
|
import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
|
-
import { C as Cascader } from "./cascader.taro-
|
|
7
|
+
import { C as Cascader } from "./cascader.taro-DRE3asjI.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
const defaultProps$2 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef } from "react";
|
|
2
|
-
import { P as Popup } from "./popup.taro-
|
|
2
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
3
3
|
import { C as CalendarItem } from "./calendaritem.taro-BGbbuJOS.js";
|
|
4
4
|
import { U as Utils } from "./date-CYwRNlGq.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
@@ -3,8 +3,8 @@ import React__default, { useState, useImperativeHandle, useEffect, isValidElemen
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Loading, Checklist } from "@nutui/icons-react-taro";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
7
|
-
import { T as Tabs } from "./tabs.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
7
|
+
import { T as Tabs } from "./tabs.taro-CY1VxgF-.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
|
-
import { P as Picker } from "./picker.taro-
|
|
4
|
+
import { P as Picker } from "./picker.taro-CYNZBTE4.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
6
6
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -3,7 +3,7 @@ import Taro from "@tarojs/taro";
|
|
|
3
3
|
import { Video, Image } from "@tarojs/components";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
7
7
|
import InnerSwiper from "./Swiper.js";
|
|
8
8
|
import { S as SwiperItem } from "./swiperitem.taro-BleF1EOs.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -4,10 +4,10 @@ import { Minus, Plus } from "@nutui/icons-react-taro";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
-
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, readOnly: false, allowEmpty: false, min: 1, max: 9999, type: "digit", step: 1, digits: 0, async: false });
|
|
7
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, readOnly: false, allowEmpty: false, min: 1, max: 9999, type: "digit", step: 1, digits: 0, async: false, select: true });
|
|
8
8
|
const classPrefix = `nut-inputnumber`;
|
|
9
9
|
const InputNumber = (props) => {
|
|
10
|
-
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, disabled, min, max, type, readOnly, value, defaultValue, allowEmpty, digits, step, async, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange } = _a, restProps = __rest(_a, ["children", "disabled", "min", "max", "type", "readOnly", "value", "defaultValue", "allowEmpty", "digits", "step", "async", "className", "style", "formatter", "onPlus", "onMinus", "onOverlimit", "onBlur", "onFocus", "onChange"]);
|
|
10
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, disabled, min, max, type, readOnly, value, defaultValue, allowEmpty, digits, step, async, select, className, style, formatter, onPlus, onMinus, onOverlimit, onBlur, onFocus, onChange } = _a, restProps = __rest(_a, ["children", "disabled", "min", "max", "type", "readOnly", "value", "defaultValue", "allowEmpty", "digits", "step", "async", "select", "className", "style", "formatter", "onPlus", "onMinus", "onOverlimit", "onBlur", "onFocus", "onChange"]);
|
|
11
11
|
const classes = classNames(classPrefix, className, {
|
|
12
12
|
[`${classPrefix}-disabled`]: disabled
|
|
13
13
|
});
|
|
@@ -15,10 +15,10 @@ const InputNumber = (props) => {
|
|
|
15
15
|
const inputRef = useRef(null);
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
var _a2, _b;
|
|
18
|
-
if (focused) {
|
|
18
|
+
if (select && focused) {
|
|
19
19
|
(_b = (_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.select) === null || _b === void 0 ? void 0 : _b.call(_a2);
|
|
20
20
|
}
|
|
21
|
-
}, [focused]);
|
|
21
|
+
}, [select, focused]);
|
|
22
22
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
23
23
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
24
24
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
@@ -3,7 +3,7 @@ import React__default, { useMemo, useState } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
|
|
@@ -17,38 +17,38 @@ import { B as B2 } from "./backtop.taro-D3Lo3jFO.js";
|
|
|
17
17
|
import { E } from "./elevator.taro-Bsc8PcT0.js";
|
|
18
18
|
import { F } from "./fixednav.taro-BodErnYy.js";
|
|
19
19
|
import { N } from "./navbar.taro-HRFRDGii.js";
|
|
20
|
-
import { S as S4 } from "./sidenavbar.taro-
|
|
20
|
+
import { S as S4 } from "./sidenavbar.taro-C-AoUXLA.js";
|
|
21
21
|
import { S as S5 } from "./sidenavbaritem.taro-BKpzXpzG.js";
|
|
22
22
|
import { S as S6 } from "./subsidenavbar.taro-CSU3DhNq.js";
|
|
23
23
|
import { T } from "./tabbar.taro-BiQDgZQF.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-BiIVucQz.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
26
|
+
import { T as T4 } from "./tabs.taro-CY1VxgF-.js";
|
|
27
|
+
import { A } from "./address.taro-C8CsajMW.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-CM4yWFlF.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-BGbbuJOS.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-CvWyBqnr.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-DRE3asjI.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-CgqJyhrh.js";
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-DU4OSraL.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-CEWRz5EJ.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-CA9ZpM9a.js";
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-CZourWz-.js";
|
|
38
38
|
import { M } from "./menu.taro-BmjnA_YM.js";
|
|
39
39
|
import { M as M2 } from "./menuitem.taro-DCqPC4Nu.js";
|
|
40
|
-
import { N as N2 } from "./numberkeyboard.taro-
|
|
41
|
-
import { P } from "./picker.taro-
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-BvVO_MyJ.js";
|
|
41
|
+
import { P } from "./picker.taro-CYNZBTE4.js";
|
|
42
42
|
import { R as R2, a as a3 } from "./radio.taro-M2in687s.js";
|
|
43
43
|
import { R as R3 } from "./range.taro-D4U2Q7Wx.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-CPGkjYYu.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-LaO2Xr2t.js";
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-CUnXqjab.js";
|
|
47
47
|
import { S as S9 } from "./signature.taro-BW4eiGIR.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-CdBmDo18.js";
|
|
49
|
-
import { T as T5 } from "./textarea.taro-
|
|
49
|
+
import { T as T5 } from "./textarea.taro-PsaohYay.js";
|
|
50
50
|
import { U } from "./uploader.taro-CceZ5Y4t.js";
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-kMhbV73n.js";
|
|
52
52
|
import { B as B3 } from "./badge.taro-B42_7q8v.js";
|
|
53
53
|
import { B as B4 } from "./dialog.taro-yjDaaRHA.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-B_sfzmtW.js";
|
|
@@ -57,8 +57,8 @@ import { I as I4 } from "./infiniteloading.taro-DzIrZvc0.js";
|
|
|
57
57
|
import { L as L2 } from "./loading.taro-n_qoNgCW.js";
|
|
58
58
|
import { N as N3 } from "./noticebar.taro-BjKDC7We.js";
|
|
59
59
|
import { N as N4 } from "./notify.taro-BVXg7xTI.js";
|
|
60
|
-
import { P as P2 } from "./popover.taro-
|
|
61
|
-
import { P as P3 } from "./popup.taro-
|
|
60
|
+
import { P as P2 } from "./popover.taro-o5vHvHsm.js";
|
|
61
|
+
import { P as P3 } from "./popup.taro-JynjcLCn.js";
|
|
62
62
|
import { P as P4 } from "./pulltorefresh.taro-BiSDwLpA.js";
|
|
63
63
|
import { S as S11 } from "./skeleton.taro-D9Vkgsyx.js";
|
|
64
64
|
import { S as S12 } from "./swipe.taro-Bsk2fnEl.js";
|
|
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-wqL6MWZr.js";
|
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-DjUx5Nx8.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-Dyryl4pq.js";
|
|
75
75
|
import { E as E3 } from "./ellipsis.taro-fvcP85Ir.js";
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-BE4mZT-S.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-k8bxJf86.js";
|
|
78
78
|
import { P as P5 } from "./pagination.taro-BSwytb0-.js";
|
|
79
79
|
import { P as P6 } from "./price.taro-DUW-OR83.js";
|
|
@@ -84,13 +84,13 @@ import { default as default4 } from "./Swiper.js";
|
|
|
84
84
|
import { S as S15 } from "./swiperitem.taro-BleF1EOs.js";
|
|
85
85
|
import { T as T7 } from "./table.taro-1nFkDxbh.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-CFt28RLm.js";
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
87
|
+
import { T as T9 } from "./tour.taro-DfOfyyte.js";
|
|
88
88
|
import { V } from "./video.taro-CecLv4sr.js";
|
|
89
89
|
import { V as V2 } from "./virtuallist.taro-BlPW8ibd.js";
|
|
90
90
|
import { B as B5 } from "./barrage.taro-D2lmvcB-.js";
|
|
91
91
|
import { C as C14 } from "./card.taro-DxcIi5qH.js";
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-ya5JNy2L.js";
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-FIl91wiO.js";
|
|
94
94
|
import { T as T12 } from "./trendarrow.taro-DKx5cGIh.js";
|
|
95
95
|
import { W } from "./watermark.taro-CbO7mKFD.js";
|
|
96
96
|
import { A as A7 } from "./avatarcropper.taro-meD2sizv.js";
|
|
@@ -3,7 +3,7 @@ import React__default, { useState, useRef, useEffect, useImperativeHandle } from
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro from "@tarojs/taro";
|
|
5
5
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
7
7
|
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-THaHH07X.js";
|
|
9
9
|
import { p as passiveSupported } from "./overlay.taro-C8eXSsJH.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest, a as __awaiter } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
6
6
|
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-THaHH07X.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { a as useRtl } from "./configprovider.taro-C3WyeHSO.js";
|
|
@@ -122,10 +122,10 @@ const Popup = (props) => {
|
|
|
122
122
|
};
|
|
123
123
|
const renderNode = () => {
|
|
124
124
|
return React__default.createElement(
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
View,
|
|
126
|
+
{ catchMove: true },
|
|
127
127
|
overlay ? React__default.createElement(Overlay, { style: overlayStyles, className: overlayClassName, visible: innerVisible, closeOnOverlayClick, lockScroll, duration, onClick: onHandleClickOverlay }) : null,
|
|
128
|
-
|
|
128
|
+
renderPop()
|
|
129
129
|
);
|
|
130
130
|
};
|
|
131
131
|
useEffect(() => {
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { Tips } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
5
5
|
import { O as OffsetContext } from "./context-4T-L2x0_.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
|
|
@@ -118,10 +118,7 @@ const Tabs = (props) => {
|
|
|
118
118
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
119
119
|
} else {
|
|
120
120
|
const left = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
121
|
-
to =
|
|
122
|
-
if (to < 0)
|
|
123
|
-
return;
|
|
124
|
-
to = rtl ? -to : to;
|
|
121
|
+
to = rtl ? -left : left;
|
|
125
122
|
}
|
|
126
123
|
nextTick(() => {
|
|
127
124
|
scrollWithAnimation.current = true;
|
|
@@ -6,7 +6,7 @@ import { Textarea } from "@tarojs/components";
|
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
|
-
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, maxLength: 140,
|
|
9
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, maxLength: 140, readOnly: false, disabled: false, autoSize: false });
|
|
10
10
|
const TextArea = (props) => {
|
|
11
11
|
const { locale } = useConfig();
|
|
12
12
|
const _a = Object.assign(Object.assign({}, defaultProps), props), { className, value, defaultValue, showCount, maxLength, rows, placeholder, readOnly, disabled, autoSize, style, onChange, onBlur, onFocus } = _a, rest = __rest(_a, ["className", "value", "defaultValue", "showCount", "maxLength", "rows", "placeholder", "readOnly", "disabled", "autoSize", "style", "onChange", "onBlur", "onFocus"]);
|
|
@@ -75,7 +75,7 @@ const TextArea = (props) => {
|
|
|
75
75
|
onFocus: (e) => handleFocus(e),
|
|
76
76
|
autoHeight: autoSize,
|
|
77
77
|
maxlength: maxLength,
|
|
78
|
-
placeholder: placeholder
|
|
78
|
+
placeholder: placeholder === void 0 ? locale.placeholder : placeholder
|
|
79
79
|
}, rest)),
|
|
80
80
|
showCount && React__default.createElement(
|
|
81
81
|
"div",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
5
5
|
import { T as TimeDetail } from "./timedetail.taro-ya5JNy2L.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-o5vHvHsm.js";
|
|
6
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { useConfig } from "./ConfigProvider.js";
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED