@nutui/nutui-react-taro 1.3.0-beta.5 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- 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/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +1 -1
- package/dist/nutui.react.umd.js +1 -1
- package/dist/style.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## v1.3.0
|
|
2
|
+
`2022-08-24`
|
|
3
|
+
|
|
4
|
+
* :sparkles: chore: Taro support (#240) @xiaoyatong
|
|
5
|
+
* :sparkles: chore: support react18 (#224) @oasis-cloud
|
|
6
|
+
* :sparkles: chore: noticebar (#233) @vickyYe
|
|
7
|
+
* :sparkles: feat: add SideNavBar (#198) @mangov587
|
|
8
|
+
* :sparkles: feat: add Table (#185) @yangjinjun3
|
|
9
|
+
* :sparkles: feat: popover 功能补齐与单元测试 (#219) @yangxiaolu1993
|
|
10
|
+
* :sparkles: feat: notify 增加props+国际化文档 (#221) @vickyYe
|
|
11
|
+
* :sparkles: feat: icon 组件增加自定义字体新方案,增加 fontClassName 属性 (#232) @oasis-cloud
|
|
12
|
+
* :sparkles: feat: toast 组件props补齐+国际化,input组件issue问题修改 (#214) @vickyYe
|
|
13
|
+
* :sparkles: feat: shortpassword 优化demo,增加单元测试,增加国际化 (#222) @Drjingfubo
|
|
14
|
+
* :sparkles: feat: fixednav 单元测试 (#217) @Ymm0008
|
|
15
|
+
* :sparkles: feat: timeselect (#216) @shadow-Fiend
|
|
16
|
+
* :sparkles: feat: layout props补齐,单元测试 (#208) @Ymm0008
|
|
17
|
+
* :sparkles: feat: Address 组件功能补齐-添加默认选中项;单元测试添加 (#207) @yangxiaolu1993
|
|
18
|
+
* :sparkles: feat: popup 增加指定节点挂载与多层堆叠功能 (#197) @love_forever
|
|
19
|
+
* :sparkles: feat: Swiper 组件能力补齐,新增demo,添加国际化文档 (#196) @lkjh3214
|
|
20
|
+
* :bug: fix: checkbox 组件的全选 demo 无法高亮全选按钮 (#239) @oasis-cloud
|
|
21
|
+
* :bug: fix: 解决Picker滚动结束延迟触发事件问题 (#218) @yangxiaolu1993
|
|
22
|
+
* :bug: fix: radio 组件 demo 中自定义尺寸文案错误 (#231) @oasis-cloud
|
|
23
|
+
* :bug: fix: radio 组件 demo 中自定义图标展示错误 (#230) @oasis-cloud
|
|
24
|
+
* :bug: fix: checkbox 全选 demo 中的错误 (#229) @oasis-cloud
|
|
25
|
+
* :bug: fix: vite 构建 umd 文件时 banner 插入错误 @oasis-cloud
|
|
26
|
+
* :bug: fix: 修复Infiniteloading 组件 pullTxt、loadTxt 和 loadMoreTxt 参数无效 (#227) @junjun666
|
|
27
|
+
* :bug: fix: radio 组件选中后可以取消的问题 (#211) @oasis-cloud
|
|
28
|
+
|
|
1
29
|
## v1.2.2
|
|
2
30
|
`2022-08-10`
|
|
3
31
|
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
package/dist/nutui.react.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.3.0
|
|
2
|
+
* @nutui/nutui-react-taro v1.3.0 Wed Aug 24 2022 16:48:08 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
(function(te,h){typeof exports=="object"&&typeof module!="undefined"?h(exports,require("react"),require("@tarojs/taro"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@tarojs/taro","react-dom"],h):(te=typeof globalThis!="undefined"?globalThis:te||self,h((te.nutui=te.nutui||{},te.nutui.react={}),te.React,te.Taro,te.ReactDOM))})(this,function(te,h,fc,At){"use strict";*/function ns(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Dr(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r=ns(h),$e=Dr(h),an=ns(fc),ft=ns(At),rn=Dr(At),Pr={exports:{}},on={};function Ar(e){function t(a,o,i,c){var d=o?n+a+e.e+o:n+a,u=d;if(i){var f=" "+u+e.m;for(var p in i)if(i.hasOwnProperty(p)){var m=i[p];m===!0?u+=f+p:m&&(u+=f+p+s+m)}}if(c!==void 0)for(var y=0,v=c.length;y<v;y++){var C=c[y];if(C&&typeof C.valueOf()=="string")for(var b=C.valueOf().split(" "),E=0;E<b.length;E++){var N=b[E];N!==d&&(u+=" "+N)}}return u}var n=e.n||"",s=e.v||e.m;return function(a,o){return function(i,c,d){return typeof i=="string"?Array.isArray(c)?t(a,i,void 0,c):t(a,i,c,d):t(a,o,i,c)}}}Object.defineProperty(on,"__esModule",{value:!0});var mc=Ar({e:"-",m:"_"});on.cn=mc,on.withNaming=Ar,Pr.exports=on;const oe=Pr.exports.withNaming({n:"nut-",e:"__",m:"--",v:"-"}),Ir={name:"",size:"",classPrefix:"nut-icon",fontClassName:"nutui-iconfont",color:"",tag:"i",onClick:e=>{},className:""};function ss(e){return Number.isNaN(Number(e))?String(e):`${e}px`}function fe(e){const{name:t,size:n,classPrefix:s,color:a,tag:o,children:i,className:c,fontClassName:d,style:u,onClick:f,...p}={...Ir,...e},m=t?t.indexOf("/")!==-1:!1,y=m?"img":o,v=oe("icon"),C=E=>{f&&f(E)},b=()=>m?{src:t}:{};return r.default.createElement(y,{className:m?`${v("img")} ${c||""} `:`${d} ${v(null)} ${s}-${t} ${c||""}`,style:{color:a,fontSize:ss(n),width:ss(n),height:ss(n),...u},...p,onClick:C,...b()},i)}fe.defaultProps=Ir,fe.displayName="NutIcon";const Fr={className:"",color:"",shape:"round",plain:!1,loading:!1,disabled:!1,type:"default",size:"normal",block:!1,icon:"",style:{},children:void 0,onClick:e=>{}},as=e=>{const{color:t,shape:n,plain:s,loading:a,disabled:o,type:i,size:c,block:d,icon:u,children:f,onClick:p,className:m,style:y,...v}={...Fr,...e},C=h.useCallback(()=>{const g={};return t&&(s?(g.color=t,g.background="#fff",t!=null&&t.includes("gradient")||(g.borderColor=t)):(g.color="#fff",g.background=t)),g},[t,s]),b=h.useCallback(()=>{const g="nut-button";return[g,`${i?`${g}--${i}`:""}`,`${c?`${g}--${c}`:""}`,`${n?`${g}--${n}`:""}`,`${s?`${g}--plain`:""}`,`${d?`${g}--block`:""}`,`${o?`${g}--disabled`:""}`,`${a?`${g}--loading`:""}`].filter(Boolean).join(" ")},[d,o,a,s,n,c,i]),[E,N]=h.useState(b()),[l,x]=h.useState(C());h.useEffect(()=>{N(b()),x(C())},[m,t,n,s,a,o,y,i,c,d,u,f,p,b,C]);const _=g=>{!a&&!o&&p&&p(g)};return r.default.createElement("div",{className:`${E} ${m}`,style:{...l,...y},...v,onClick:g=>_(g)},r.default.createElement("div",{className:"nut-button__warp",style:C()},a&&r.default.createElement(fe,{name:"loading"}),!a&&u?r.default.createElement(fe,{name:u}):"",f))};as.defaultProps=Fr,as.displayName="NutButton";function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},rs(e,t)}function Ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rs(e,t)}var Or={exports:{}},hc="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pc=hc,gc=pc;function Mr(){}function Lr(){}Lr.resetWarningCache=Mr;var vc=function(){function e(s,a,o,i,c,d){if(d!==gc){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Lr,resetWarningCache:Mr};return n.PropTypes=n,n};Or.exports=vc();var Br=Or.exports;function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},We.apply(this,arguments)}function ln(e){return e.charAt(0)==="/"}function os(e,t){for(var n=t,s=n+1,a=e.length;s<a;n+=1,s+=1)e[n]=e[s];e.pop()}function yc(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],s=t&&t.split("/")||[],a=e&&ln(e),o=t&&ln(t),i=a||o;if(e&&ln(e)?s=n:n.length&&(s.pop(),s=s.concat(n)),!s.length)return"/";var c;if(s.length){var d=s[s.length-1];c=d==="."||d===".."||d===""}else c=!1;for(var u=0,f=s.length;f>=0;f--){var p=s[f];p==="."?os(s,f):p===".."?(os(s,f),u++):u&&(os(s,f),u--)}if(!i)for(;u--;u)s.unshift("..");i&&s[0]!==""&&(!s[0]||!ln(s[0]))&&s.unshift("");var m=s.join("/");return c&&m.substr(-1)!=="/"&&(m+="/"),m}var bc=!0,is="Invariant failed";function ls(e,t){if(!e){if(bc)throw new Error(is);var n=typeof t=="function"?t():t,s=n?is+": "+n:is;throw new Error(s)}}function Ec(e){var t=e||"/",n="",s="",a=t.indexOf("#");a!==-1&&(s=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return o!==-1&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:n==="?"?"":n,hash:s==="#"?"":s}}function zr(e){var t=e.pathname,n=e.search,s=e.hash,a=t||"/";return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function mt(e,t,n,s){var a;typeof e=="string"?(a=Ec(e),a.state=t):(a=We({},e),a.pathname===void 0&&(a.pathname=""),a.search?a.search.charAt(0)!=="?"&&(a.search="?"+a.search):a.search="",a.hash?a.hash.charAt(0)!=="#"&&(a.hash="#"+a.hash):a.hash="",t!==void 0&&a.state===void 0&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(a.key=n),s?a.pathname?a.pathname.charAt(0)!=="/"&&(a.pathname=yc(a.pathname,s.pathname)):a.pathname=s.pathname:a.pathname||(a.pathname="/"),a}function Cc(){var e=null;function t(i){return e=i,function(){e===i&&(e=null)}}function n(i,c,d,u){if(e!=null){var f=typeof e=="function"?e(i,c):e;typeof f=="string"?typeof d=="function"?d(f,u):u(!0):u(f!==!1)}else u(!0)}var s=[];function a(i){var c=!0;function d(){c&&i.apply(void 0,arguments)}return s.push(d),function(){c=!1,s=s.filter(function(u){return u!==d})}}function o(){for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];s.forEach(function(u){return u.apply(void 0,c)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:a,notifyListeners:o}}function Vr(e,t,n){return Math.min(Math.max(e,t),n)}function Nc(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,s=t.initialEntries,a=s===void 0?["/"]:s,o=t.initialIndex,i=o===void 0?0:o,c=t.keyLength,d=c===void 0?6:c,u=Cc();function f(F){We(D,F),D.length=D.entries.length,u.notifyListeners(D.location,D.action)}function p(){return Math.random().toString(36).substr(2,d)}var m=Vr(i,0,a.length-1),y=a.map(function(F){return typeof F=="string"?mt(F,void 0,p()):mt(F,void 0,F.key||p())}),v=zr;function C(F,P){var T="PUSH",w=mt(F,P,p(),D.location);u.confirmTransitionTo(w,T,n,function(S){if(!!S){var z=D.index,I=z+1,V=D.entries.slice(0);V.length>I?V.splice(I,V.length-I,w):V.push(w),f({action:T,location:w,index:I,entries:V})}})}function b(F,P){var T="REPLACE",w=mt(F,P,p(),D.location);u.confirmTransitionTo(w,T,n,function(S){!S||(D.entries[D.index]=w,f({action:T,location:w}))})}function E(F){var P=Vr(D.index+F,0,D.entries.length-1),T="POP",w=D.entries[P];u.confirmTransitionTo(w,T,n,function(S){S?f({action:T,location:w,index:P}):f()})}function N(){E(-1)}function l(){E(1)}function x(F){var P=D.index+F;return P>=0&&P<D.entries.length}function _(F){return F===void 0&&(F=!1),u.setPrompt(F)}function g(F){return u.appendListener(F)}var D={length:y.length,action:"POP",location:y[m],index:m,entries:y,createHref:v,push:C,replace:b,go:E,goBack:N,goForward:l,canGo:x,block:_,listen:g};return D}var cs=1073741823,Ur=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};function xc(){var e="__global_unique_id__";return Ur[e]=(Ur[e]||0)+1}function Sc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $c(e){var t=[];return{on:function(s){t.push(s)},off:function(s){t=t.filter(function(a){return a!==s})},get:function(){return e},set:function(s,a){e=s,t.forEach(function(o){return o(e,a)})}}}function wc(e){return Array.isArray(e)?e[0]:e}function _c(e,t){var n,s,a="__create-react-context-"+xc()+"__",o=function(c){Ye(d,c);function d(){var f;return f=c.apply(this,arguments)||this,f.emitter=$c(f.props.value),f}var u=d.prototype;return u.getChildContext=function(){var p;return p={},p[a]=this.emitter,p},u.componentWillReceiveProps=function(p){if(this.props.value!==p.value){var m=this.props.value,y=p.value,v;Sc(m,y)?v=0:(v=typeof t=="function"?t(m,y):cs,v|=0,v!==0&&this.emitter.set(p.value,v))}},u.render=function(){return this.props.children},d}(h.Component);o.childContextTypes=(n={},n[a]=Br.object.isRequired,n);var i=function(c){Ye(d,c);function d(){var f;return f=c.apply(this,arguments)||this,f.state={value:f.getValue()},f.onUpdate=function(p,m){var y=f.observedBits|0;(y&m)!==0&&f.setState({value:f.getValue()})},f}var u=d.prototype;return u.componentWillReceiveProps=function(p){var m=p.observedBits;this.observedBits=m==null?cs:m},u.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var p=this.props.observedBits;this.observedBits=p==null?cs:p},u.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},u.getValue=function(){return this.context[a]?this.context[a].get():e},u.render=function(){return wc(this.props.children)(this.state.value)},d}(h.Component);return i.contextTypes=(s={},s[a]=Br.object,s),{Provider:o,Consumer:i}}var kc=r.default.createContext||_c,ht={exports:{}},Tc=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},cn=Tc;ht.exports=Yr,ht.exports.parse=us,ht.exports.compile=Pc,ht.exports.tokensToFunction=jr,ht.exports.tokensToRegExp=Hr;var Dc=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function us(e,t){for(var n=[],s=0,a=0,o="",i=t&&t.delimiter||"/",c;(c=Dc.exec(e))!=null;){var d=c[0],u=c[1],f=c.index;if(o+=e.slice(a,f),a=f+d.length,u){o+=u[1];continue}var p=e[a],m=c[2],y=c[3],v=c[4],C=c[5],b=c[6],E=c[7];o&&(n.push(o),o="");var N=m!=null&&p!=null&&p!==m,l=b==="+"||b==="*",x=b==="?"||b==="*",_=c[2]||i,g=v||C;n.push({name:y||s++,prefix:m||"",delimiter:_,optional:x,repeat:l,partial:N,asterisk:!!E,pattern:g?Fc(g):E?".*":"[^"+un(_)+"]+?"})}return a<e.length&&(o+=e.substr(a)),o&&n.push(o),n}function Pc(e,t){return jr(us(e,t),t)}function Ac(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Ic(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function jr(e,t){for(var n=new Array(e.length),s=0;s<e.length;s++)typeof e[s]=="object"&&(n[s]=new RegExp("^(?:"+e[s].pattern+")$",fs(t)));return function(a,o){for(var i="",c=a||{},d=o||{},u=d.pretty?Ac:encodeURIComponent,f=0;f<e.length;f++){var p=e[f];if(typeof p=="string"){i+=p;continue}var m=c[p.name],y;if(m==null)if(p.optional){p.partial&&(i+=p.prefix);continue}else throw new TypeError('Expected "'+p.name+'" to be defined');if(cn(m)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(m)+"`");if(m.length===0){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var v=0;v<m.length;v++){if(y=u(m[v]),!n[f].test(y))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(y)+"`");i+=(v===0?p.prefix:p.delimiter)+y}continue}if(y=p.asterisk?Ic(m):u(m),!n[f].test(y))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+y+'"');i+=p.prefix+y}return i}}function un(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Fc(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function ds(e,t){return e.keys=t,e}function fs(e){return e&&e.sensitive?"":"i"}function Oc(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var s=0;s<n.length;s++)t.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return ds(e,t)}function Mc(e,t,n){for(var s=[],a=0;a<e.length;a++)s.push(Yr(e[a],t,n).source);var o=new RegExp("(?:"+s.join("|")+")",fs(n));return ds(o,t)}function Lc(e,t,n){return Hr(us(e,n),t,n)}function Hr(e,t,n){cn(t)||(n=t||n,t=[]),n=n||{};for(var s=n.strict,a=n.end!==!1,o="",i=0;i<e.length;i++){var c=e[i];if(typeof c=="string")o+=un(c);else{var d=un(c.prefix),u="(?:"+c.pattern+")";t.push(c),c.repeat&&(u+="(?:"+d+u+")*"),c.optional?c.partial?u=d+"("+u+")?":u="(?:"+d+"("+u+"))?":u=d+"("+u+")",o+=u}}var f=un(n.delimiter||"/"),p=o.slice(-f.length)===f;return s||(o=(p?o.slice(0,-f.length):o)+"(?:"+f+"(?=$))?"),a?o+="$":o+=s&&p?"":"(?="+f+"|$)",ds(new RegExp("^"+o,fs(n)),t)}function Yr(e,t,n){return cn(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Oc(e,t):cn(e)?Mc(e,t,n):Lc(e,t,n)}var Bc=ht.exports,Wr={exports:{}},Ne={};/** @license React v16.13.1
|
package/dist/style.es.js
CHANGED