@nutui/nutui-react 1.1.4-beta.4 → 1.1.4

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## v1.1.4
2
+ `2022-05-23`
3
+
4
+ * :zap: feat(upload): upload 组件上传失败时希望可以自定义是否显示图片(#114 ) @junjun666
5
+ * :zap: feat(tabbar): tabbar 组件支持路由跳转,文档更新(#123 ) @allan2coder
6
+ * :zap: feat(circleprogress): circleprogress 组件 strokeInnerWidth 属性重命名为 strokeWidth,移除 isAuto、progressOption 属性(#121 ) @junjun666
7
+ * :zap: feat(avatar): avatar 组件 src 属性重命名为 url,增加 avatargroup 子组件(#121 ) @junjun666
8
+ * :zap: feat(skeleton): skeleton 组件 width、height 属性的类型修改为 string(#121 ) @junjun666
9
+ * :bug: fix(dialog): 修复 swiper 组件在 Next.js 环境下提示 window not defined 问题 @oasis-cloud
10
+ * :bug: fix(backtop): 修复 backtop 组件在 Next.js 环境下提示 document not defined 的问题 @oasis-cloud
11
+ * :zap: feat: NutUI-React 官网增加 issue 入口,以及组件文档更新。
12
+
1
13
  ## v1.1.3
2
14
  `2022-04-18`
3
15
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:10:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:10:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:10:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:10:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -34,7 +34,7 @@ var __publicField = (obj, key, value) => {
34
34
  return value;
35
35
  };
36
36
  /*!
37
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:09:58 GMT+0800 (China Standard Time)
37
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:27 GMT+0800 (China Standard Time)
38
38
  * (c) 2022 @jdf2e.
39
39
  * Released under the MIT License.
40
40
  */
@@ -1,5 +1,5 @@
1
1
  var id=Object.defineProperty,ld=Object.defineProperties;var cd=Object.getOwnPropertyDescriptors;var Jn=Object.getOwnPropertySymbols;var ml=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var Rr=(z,m,xe)=>m in z?id(z,m,{enumerable:!0,configurable:!0,writable:!0,value:xe}):z[m]=xe,C=(z,m)=>{for(var xe in m||(m={}))ml.call(m,xe)&&Rr(z,xe,m[xe]);if(Jn)for(var xe of Jn(m))hl.call(m,xe)&&Rr(z,xe,m[xe]);return z},be=(z,m)=>ld(z,cd(m));var ie=(z,m)=>{var xe={};for(var Be in z)ml.call(z,Be)&&m.indexOf(Be)<0&&(xe[Be]=z[Be]);if(z!=null&&Jn)for(var Be of Jn(z))m.indexOf(Be)<0&&hl.call(z,Be)&&(xe[Be]=z[Be]);return xe};var he=(z,m,xe)=>(Rr(z,typeof m!="symbol"?m+"":m,xe),xe);/*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:09:58 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:27 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */(function(z,m){typeof exports=="object"&&typeof module!="undefined"?m(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],m):(z=typeof globalThis!="undefined"?globalThis:z||self,m((z.nutui=z.nutui||{},z.nutui.react={}),z.React,z.ReactDOM))})(this,function(z,m,xe){"use strict";function Be(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function qr(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 o=Be(m),we=qr(m),mt=Be(xe),rn=qr(xe),Wr={exports:{}},an={};function Gr(e){function t(r,a,i,l){var u=a?n+r+e.e+a:n+r,c=u;if(i){var f=" "+c+e.m;for(var d in i)if(i.hasOwnProperty(d)){var p=i[d];p===!0?c+=f+d:p&&(c+=f+d+s+p)}}if(l!==void 0)for(var y=0,v=l.length;y<v;y++){var b=l[y];if(b&&typeof b.valueOf()=="string")for(var S=b.valueOf().split(" "),g=0;g<S.length;g++){var w=S[g];w!==u&&(c+=" "+w)}}return c}var n=e.n||"",s=e.v||e.m;return function(r,a){return function(i,l,u){return typeof i=="string"?Array.isArray(l)?t(r,i,void 0,l):t(r,i,l,u):t(r,a,i,l)}}}Object.defineProperty(an,"__esModule",{value:!0});var pl=Gr({e:"-",m:"_"});an.cn=pl,an.withNaming=Gr,Wr.exports=an;const Z=Wr.exports.withNaming({n:"nut-",e:"__",m:"--",v:"-"}),Kr={name:"",size:"",classPrefix:"nutui-iconfont",color:"",tag:"i",click:e=>{},className:""};function Zn(e){return Number.isNaN(Number(e))?String(e):`${e}px`}const re=e=>{const S=C(C({},Kr),e),{name:t,size:n,classPrefix:s,color:r,tag:a,children:i,className:l,style:u,click:c}=S,f=ie(S,["name","size","classPrefix","color","tag","children","className","style","click"]),d=t?t.indexOf("/")!==-1:!1,p=d?"img":a,y=Z("icon"),v=g=>{e.click&&e.click(g)},b=()=>d?{src:t}:{};return o.default.createElement(p,C(be(C({className:d?`${l||""} ${y("img")}`:`${l||""} ${y(null,[s])} nut-icon-${t} `,style:C({color:r,fontSize:Zn(n),width:Zn(n),height:Zn(n)},u)},f),{onClick:v}),b()),i)};re.defaultProps=Kr,re.displayName="NutIcon";const Xr={className:"",color:"",shape:"round",plain:!1,loading:!1,disabled:!1,type:"default",size:"normal",block:!1,icon:"",style:{},children:void 0,onClick:e=>{}},ot=e=>{const x=C(C({},Xr),e),{color:t,shape:n,plain:s,loading:r,disabled:a,type:i,size:l,block:u,icon:c,children:f,onClick:d,className:p,style:y}=x,v=ie(x,["color","shape","plain","loading","disabled","type","size","block","icon","children","onClick","className","style"]),[b,S]=m.useState(""),[g,w]=m.useState({});m.useEffect(()=>{S(h()),w($())},[p,t,n,s,r,a,y,i,l,u,c,f,d]);const h=()=>{const T="nut-button";return`${T} ${i?`${T}--${i}`:""}
package/dist/style.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.1.4-beta.4 Mon May 23 2022 16:10:06 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.1.4 Tue May 24 2022 15:09:37 GMT+0800 (China Standard Time)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "1.1.4-beta.4",
3
+ "version": "1.1.4",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",