@vendorflow/components 4.0.22 → 4.0.26
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/lib/index.es.js +6 -2
- package/lib/index.es.js.map +1 -1
- package/lib/index.umd.js +3 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -218,10 +218,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
218
218
|
flex: 0 0 auto;
|
|
219
219
|
padding: 0.25rem 0 0 0;
|
|
220
220
|
align-self: self-start;
|
|
221
|
-
`,Bb=V.css`
|
|
221
|
+
`,Bb=t=>{var o,n;return V.css`
|
|
222
222
|
font-size: 0.75rem;
|
|
223
223
|
text-align: right;
|
|
224
|
-
|
|
224
|
+
color: ${(n=(o=t==null?void 0:t.palette)==null?void 0:o.text)==null?void 0:n.primary};
|
|
225
|
+
`},Gb=t=>{var o,n;return V.css`
|
|
225
226
|
color: ${(n=(o=t==null?void 0:t.palette)==null?void 0:o.text)==null?void 0:n.primary};
|
|
226
227
|
`};function fp(t){const{changeValidator:o,charLimit:n,className:e,hideCharCounter:s,enableDebouncedOnChange:a=!1,fullWidth:l=!0,multiline:c,error:p,label:d,name:y,onChange:g,placeholder:_,helperText:E,variant:I="outlined",style:S,value:N,size:B="small",...q}=t,X=ve.useRef(ei()),[ie,K]=ve.useState("");ve.useEffect(()=>{N!==ie&&K(N||"")},[N]);const ne=ve.useCallback($n.debounce(L=>{g&&g(L)},300),[]);function D(L){const Y={target:{name:L.target.name,value:L.target.value}};(!n||n&&L.target.value.length<=n)&&(!o||o(L.target.value))&&(K(L.target.value),g&&(a?ne(Y):g(Y)))}return At.jsxs(_e.Box,{className:Ui("input-group",e),style:S,children:[At.jsx(_e.TextField,{id:X.current,error:p,label:d,name:y,onChange:D,placeholder:_,value:ie,variant:I,multiline:c,size:B,fullWidth:l,...q}),At.jsx(dp,{caption:E,counter:n!==void 0&&!s?{current:ie.length,limit:n}:void 0,error:p})]})}function Wb({name:t,value:o,onChange:n,...e}){const[s,a]=ve.useState(null),[l,c]=Ab(o||"#000"),p=ve.useMemo(()=>`color-picker-popover-${$n.random(0,9999999)}`,[]),d=!!s;ve.useEffect(()=>{o&&o!=l.hex&&c(zr("hex",o))},[o,c]);const y=ve.useCallback($n.debounce(_=>{n&&n({target:{name:t,value:_}})},300),[n,t]);function g(_){c(_),y(_.hex)}return V.jsx(ve.Fragment,null,V.jsx(fp,{...e,"area-describedby":p,onClick:_=>{a(_.currentTarget)},onFocus:_=>{a(_.currentTarget)},value:l.hex,onChange:n}),V.jsx(_e.Popover,{id:p,open:d,anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,disableEnforceFocus:!0,onClose:()=>a(null)},V.jsx("div",{css:Mb},V.jsx(Ib,{width:280,height:200,color:l,onChange:g,hideHSV:!0,hideRGB:!0,alpha:!1}))))}function Bn(t){for(var o=arguments.length,n=Array(o>1?o-1:0),e=1;e<o;e++)n[e-1]=arguments[e];if(process.env.NODE_ENV!=="production"){var s=Yb[t],a=s?typeof s=="function"?s.apply(null,n):s:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ki(t){return!!t&&!!t[ar]}function ti(t){var o;return!!t&&(function(n){if(!n||typeof n!="object")return!1;var e=Object.getPrototypeOf(n);if(e===null)return!0;var s=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===Xb}(t)||Array.isArray(t)||!!t[_p]||!!(!((o=t.constructor)===null||o===void 0)&&o[_p])||wc(t)||Sc(t))}function dl(t,o,n){n===void 0&&(n=!1),Yi(t)===0?(n?Object.keys:zc)(t).forEach(function(e){n&&typeof e=="symbol"||o(e,t[e],t)}):t.forEach(function(e,s){return o(s,e,t)})}function Yi(t){var o=t[ar];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:wc(t)?2:Sc(t)?3:0}function bc(t,o){return Yi(t)===2?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function $b(t,o){return Yi(t)===2?t.get(o):t[o]}function pp(t,o,n){var e=Yi(t);e===2?t.set(o,n):e===3?t.add(n):t[o]=n}function Hb(t,o){return t===o?t!==0||1/t==1/o:t!=t&&o!=o}function wc(t){return Ub&&t instanceof Map}function Sc(t){return Kb&&t instanceof Set}function ni(t){return t.o||t.t}function _c(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Jb(t);delete o[ar];for(var n=zc(o),e=0;e<n.length;e++){var s=n[e],a=o[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(o[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[s]})}return Object.create(Object.getPrototypeOf(t),o)}function Cc(t,o){return o===void 0&&(o=!1),Rc(t)||Ki(t)||!ti(t)||(Yi(t)>1&&(t.set=t.add=t.clear=t.delete=jb),Object.freeze(t),o&&dl(t,function(n,e){return Cc(e,!0)},!0)),t}function jb(){Bn(2)}function Rc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function $r(t){var o=Zb[t];return o||Bn(18,t),o}function hp(){return process.env.NODE_ENV==="production"||Xi||Bn(0),Xi}function xc(t,o){o&&($r("Patches"),t.u=[],t.s=[],t.v=o)}function Ea(t){Tc(t),t.p.forEach(qb),t.p=null}function Tc(t){t===Xi&&(Xi=t.l)}function gp(t){return Xi={p:[],l:Xi,h:t,m:!0,_:0}}function qb(t){var o=t[ar];o.i===0||o.i===1?o.j():o.g=!0}function Ec(t,o){o._=o.p.length;var n=o.p[0],e=t!==void 0&&t!==n;return o.h.O||$r("ES5").S(o,t,e),e?(n[ar].P&&(Ea(o),Bn(4)),ti(t)&&(t=Pa(o,t),o.l||Oa(o,t)),o.u&&$r("Patches").M(n[ar].t,t,o.u,o.s)):t=Pa(o,n,[]),Ea(o),o.u&&o.v(o.u,o.s),t!==Sp?t:void 0}function Pa(t,o,n){if(Rc(o))return o;var e=o[ar];if(!e)return dl(o,function(c,p){return mp(t,e,o,c,p,n)},!0),o;if(e.A!==t)return o;if(!e.P)return Oa(t,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var s=e.i===4||e.i===5?e.o=_c(e.k):e.o,a=s,l=!1;e.i===3&&(a=new Set(s),s.clear(),l=!0),dl(a,function(c,p){return mp(t,e,s,c,p,n,l)}),Oa(t,s,!1),n&&t.u&&$r("Patches").N(e,n,t.u,t.s)}return e.o}function mp(t,o,n,e,s,a,l){if(process.env.NODE_ENV!=="production"&&s===n&&Bn(5),Ki(s)){var c=Pa(t,s,a&&o&&o.i!==3&&!bc(o.R,e)?a.concat(e):void 0);if(pp(n,e,c),!Ki(c))return;t.m=!1}else l&&n.add(s);if(ti(s)&&!Rc(s)){if(!t.h.D&&t._<1)return;Pa(t,s),o&&o.A.l||Oa(t,s)}}function Oa(t,o,n){n===void 0&&(n=!1),!t.l&&t.h.D&&t.m&&Cc(o,n)}function Pc(t,o){var n=t[ar];return(n?ni(n):t)[o]}function vp(t,o){if(o in t)for(var n=Object.getPrototypeOf(t);n;){var e=Object.getOwnPropertyDescriptor(n,o);if(e)return e;n=Object.getPrototypeOf(n)}}function Oc(t){t.P||(t.P=!0,t.l&&Oc(t.l))}function Ic(t){t.o||(t.o=_c(t.t))}function Ac(t,o,n){var e=wc(o)?$r("MapSet").F(o,n):Sc(o)?$r("MapSet").T(o,n):t.O?function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:hp(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},p=c,d=Lc;l&&(p=[c],d=fl);var y=Proxy.revocable(p,d),g=y.revoke,_=y.proxy;return c.k=_,c.j=g,_}(o,n):$r("ES5").J(o,n);return(n?n.A:hp()).p.push(e),e}function Vb(t){return Ki(t)||Bn(22,t),function o(n){if(!ti(n))return n;var e,s=n[ar],a=Yi(n);if(s){if(!s.P&&(s.i<4||!$r("ES5").K(s)))return s.t;s.I=!0,e=yp(n,a),s.I=!1}else e=yp(n,a);return dl(e,function(l,c){s&&$b(s.t,l)===c||pp(e,l,o(c))}),a===3?new Set(e):e}(t)}function yp(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return _c(t)}var bp,Xi,Mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ub=typeof Map<"u",Kb=typeof Set<"u",wp=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sp=Mc?Symbol.for("immer-nothing"):((bp={})["immer-nothing"]=!0,bp),_p=Mc?Symbol.for("immer-draftable"):"__$immer_draftable",ar=Mc?Symbol.for("immer-state"):"__$immer_state",Yb={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Xb=""+Object.prototype.constructor,zc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jb=Object.getOwnPropertyDescriptors||function(t){var o={};return zc(t).forEach(function(n){o[n]=Object.getOwnPropertyDescriptor(t,n)}),o},Zb={},Lc={get:function(t,o){if(o===ar)return t;var n=ni(t);if(!bc(n,o))return function(s,a,l){var c,p=vp(a,l);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(s.k):void 0}(t,n,o);var e=n[o];return t.I||!ti(e)?e:e===Pc(t.t,o)?(Ic(t),t.o[o]=Ac(t.A.h,e,t)):e},has:function(t,o){return o in ni(t)},ownKeys:function(t){return Reflect.ownKeys(ni(t))},set:function(t,o,n){var e=vp(ni(t),o);if(e!=null&&e.set)return e.set.call(t.k,n),!0;if(!t.P){var s=Pc(ni(t),o),a=s==null?void 0:s[ar];if(a&&a.t===n)return t.o[o]=n,t.R[o]=!1,!0;if(Hb(n,s)&&(n!==void 0||bc(t.t,o)))return!0;Ic(t),Oc(t)}return t.o[o]===n&&(n!==void 0||o in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[o])||(t.o[o]=n,t.R[o]=!0),!0},deleteProperty:function(t,o){return Pc(t.t,o)!==void 0||o in t.t?(t.R[o]=!1,Ic(t),Oc(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var n=ni(t),e=Reflect.getOwnPropertyDescriptor(n,o);return e&&{writable:!0,configurable:t.i!==1||o!=="length",enumerable:e.enumerable,value:n[o]}},defineProperty:function(){Bn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Bn(12)}},fl={};dl(Lc,function(t,o){fl[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),fl.deleteProperty=function(t,o){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(o))&&Bn(13),fl.set.call(this,t,o,void 0)},fl.set=function(t,o,n){return process.env.NODE_ENV!=="production"&&o!=="length"&&isNaN(parseInt(o))&&Bn(14),Lc.set.call(this,t[0],o,n,t[0])};var Qb=function(){function t(n){var e=this;this.O=wp,this.D=!0,this.produce=function(s,a,l){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var p=e;return function(S){var N=this;S===void 0&&(S=c);for(var B=arguments.length,q=Array(B>1?B-1:0),X=1;X<B;X++)q[X-1]=arguments[X];return p.produce(S,function(ie){var K;return(K=a).call.apply(K,[N,ie].concat(q))})}}var d;if(typeof a!="function"&&Bn(6),l!==void 0&&typeof l!="function"&&Bn(7),ti(s)){var y=gp(e),g=Ac(e,s,void 0),_=!0;try{d=a(g),_=!1}finally{_?Ea(y):Tc(y)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(S){return xc(y,l),Ec(S,y)},function(S){throw Ea(y),S}):(xc(y,l),Ec(d,y))}if(!s||typeof s!="object"){if((d=a(s))===void 0&&(d=s),d===Sp&&(d=void 0),e.D&&Cc(d,!0),l){var E=[],I=[];$r("Patches").M(s,d,E,I),l(E,I)}return d}Bn(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(d){for(var y=arguments.length,g=Array(y>1?y-1:0),_=1;_<y;_++)g[_-1]=arguments[_];return e.produceWithPatches(d,function(E){return s.apply(void 0,[E].concat(g))})};var l,c,p=e.produce(s,a,function(d,y){l=d,c=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(d){return[d,l,c]}):[p,l,c]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var o=t.prototype;return o.createDraft=function(n){ti(n)||Bn(8),Ki(n)&&(n=Vb(n));var e=gp(this),s=Ac(this,n,void 0);return s[ar].C=!0,Tc(e),s},o.finishDraft=function(n,e){var s=n&&n[ar];process.env.NODE_ENV!=="production"&&(s&&s.C||Bn(9),s.I&&Bn(10));var a=s.A;return xc(a,e),Ec(void 0,a)},o.setAutoFreeze=function(n){this.D=n},o.setUseProxies=function(n){n&&!wp&&Bn(20),this.O=n},o.applyPatches=function(n,e){var s;for(s=e.length-1;s>=0;s--){var a=e[s];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}s>-1&&(e=e.slice(s+1));var l=$r("Patches").$;return Ki(n)?l(n,e):this.produce(n,function(c){return l(c,e)})},t}(),ur=new Qb,Ji=ur.produce;ur.produceWithPatches.bind(ur),ur.setAutoFreeze.bind(ur),ur.setUseProxies.bind(ur),ur.applyPatches.bind(ur),ur.createDraft.bind(ur),ur.finishDraft.bind(ur);function rn(){return rn=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var e in n)({}).hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},rn.apply(null,arguments)}function Eo(t){if(typeof t!="object"||t===null)return!1;const o=Object.getPrototypeOf(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Cp(t){if(re.isValidElement(t)||!Eo(t))return t;const o={};return Object.keys(t).forEach(n=>{o[n]=Cp(t[n])}),o}function Hr(t,o,n={clone:!0}){const e=n.clone?rn({},t):t;return Eo(t)&&Eo(o)&&Object.keys(o).forEach(s=>{re.isValidElement(o[s])?e[s]=o[s]:Eo(o[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Eo(t[s])?e[s]=Hr(t[s],o[s],n):n.clone?e[s]=Eo(o[s])?Cp(o[s]):o[s]:e[s]=o[s]}),e}const ew=Object.freeze(Object.defineProperty({__proto__:null,default:Hr,isPlainObject:Eo},Symbol.toStringTag,{value:"Module"}));var Ia={exports:{}},Aa={exports:{}},Zt={};/** @license React v16.13.1
|
|
227
228
|
* react-is.production.min.js
|