@kashifd/jwero-components 0.1.11 → 0.1.12
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/dist/jwero-components.cjs.js +30 -0
- package/package.json +9 -2
- package/vite.config.ts +1 -0
- package/dist/jwero-components.umd.js +0 -30
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("react"),B=require("@mui/material");var te={exports:{}},$={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var je;function yr(){if(je)return $;je=1;var A=ke,R=Symbol.for("react.element"),o=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,C=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function _(T,d,j){var m,p={},S=null,L=null;j!==void 0&&(S=""+j),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(L=d.ref);for(m in d)E.call(d,m)&&!c.hasOwnProperty(m)&&(p[m]=d[m]);if(T&&T.defaultProps)for(m in d=T.defaultProps,d)p[m]===void 0&&(p[m]=d[m]);return{$$typeof:R,type:T,key:S,ref:L,props:p,_owner:C.current}}return $.Fragment=o,$.jsx=_,$.jsxs=_,$}var Y={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var xe;function hr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){var A=ke,R=Symbol.for("react.element"),o=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),T=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ne=Symbol.iterator,De="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[De];return typeof r=="function"?r:null}var x=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=x.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ie=!1,We=!1,$e=!1,Ye=!1,Le=!1,ae;ae=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===c||Le||e===C||e===j||e===m||Ye||e===L||Ie||We||$e||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===p||e.$$typeof===_||e.$$typeof===T||e.$$typeof===d||e.$$typeof===ae||e.getModuleId!==void 0))}function Ve(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function ie(e){return e.displayName||"Context"}function g(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case o:return"Portal";case c:return"Profiler";case C:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:var r=e;return ie(r)+".Consumer";case _:var t=e;return ie(t._context)+".Provider";case d:return Ve(e,e.render,"ForwardRef");case p:var n=e.displayName||null;return n!==null?n:g(e.type)||"Memo";case S:{var u=e,s=u._payload,i=u._init;try{return g(i(s))}catch{return null}}}return null}var O=Object.assign,F=0,ue,oe,se,fe,le,ce,ve;function de(){}de.__reactDisabledLog=!0;function Ne(){{if(F===0){ue=console.log,oe=console.info,se=console.warn,fe=console.error,le=console.group,ce=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ue(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:ue}),info:O({},e,{value:oe}),warn:O({},e,{value:se}),error:O({},e,{value:fe}),group:O({},e,{value:le}),groupCollapsed:O({},e,{value:ce}),groupEnd:O({},e,{value:ve})})}F<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=x.ReactCurrentDispatcher,z;function M(e,r,t){{if(z===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
|
|
18
|
+
`+z+e}}var K=!1,V;{var Be=typeof WeakMap=="function"?WeakMap:Map;V=new Be}function ye(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=q.current,q.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(h){n=h}Reflect.construct(e,[],i)}else{try{i.call()}catch(h){n=h}e.call(i.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var a=h.stack.split(`
|
|
19
|
+
`),y=n.stack.split(`
|
|
20
|
+
`),f=a.length-1,l=y.length-1;f>=1&&l>=0&&a[f]!==y[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==y[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==y[l]){var b=`
|
|
21
|
+
`+a[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(f>=1&&l>=0);break}}}finally{K=!1,q.current=s,Ue(),Error.prepareStackTrace=u}var D=e?e.displayName||e.name:"",w=D?M(D):"";return typeof e=="function"&&V.set(e,w),w}function Je(e,r,t){return ye(e,!1)}function Pe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Pe(e));if(typeof e=="string")return M(e);switch(e){case j:return M("Suspense");case m:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Je(e.render);case p:return N(e.type,r,t);case S:{var n=e,u=n._payload,s=n._init;try{return N(s(u),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,he={},me=x.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function qe(e,r,t,n,u){{var s=Function.call.bind(I);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var y=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(U(u),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),U(null)),a instanceof Error&&!(a.message in he)&&(he[a.message]=!0,U(u),v("Failed %s type: %s",t,a.message),U(null))}}}var ze=Array.isArray;function G(e){return ze(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ge(e){if(Ge(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),be(e)}var W=x.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},pe,Ee,X;X={};function He(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){if(typeof e.ref=="string"&&W.current&&r&&W.current.stateNode!==r){var t=g(W.current.type);X[t]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',g(W.current.type),e.ref),X[t]=!0)}}function er(e,r){{var t=function(){pe||(pe=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Ee||(Ee=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,u,s,i){var a={$$typeof:R,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function nr(e,r,t,n,u){{var s,i={},a=null,y=null;t!==void 0&&(ge(t),a=""+t),Ze(r)&&(ge(r.key),a=""+r.key),He(r)&&(y=r.ref,Qe(r,u));for(s in r)I.call(r,s)&&!Xe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var f=e.defaultProps;for(s in f)i[s]===void 0&&(i[s]=f[s])}if(a||y){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,l),y&&rr(i,l)}return tr(e,a,y,u,n,W.current,i)}}var H=x.ReactCurrentOwner,Re=x.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function _e(){{if(H.current){var e=g(H.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ar(e){return""}var Te={};function ir(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+g(e._owner.type)+"."),k(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),k(null)}}function Oe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Se(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var u=Ae(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)Q(i.value)&&Se(i.value,r)}}}function ur(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===p))t=r.propTypes;else return;if(t){var n=g(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var u=g(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}var we={};function Ce(e,r,t,n,u,s){{var i=Me(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var y=ar();y?a+=y:a+=_e();var f;e===null?f="null":G(e)?f="array":e!==void 0&&e.$$typeof===R?(f="<"+(g(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var l=nr(e,r,t,u,s);if(l==null)return l;if(i){var b=r.children;if(b!==void 0)if(n)if(G(b)){for(var D=0;D<b.length;D++)Oe(b[D],e);Object.freeze&&Object.freeze(b)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oe(b,e)}if(I.call(r,"key")){var w=g(e),h=Object.keys(r).filter(function(dr){return dr!=="key"}),ee=h.length>0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!we[w+ee]){var vr=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,ee,w,vr,w),we[w+ee]=!0}}return e===E?or(l):ur(l),l}}function sr(e,r,t){return Ce(e,r,t,!0)}function fr(e,r,t){return Ce(e,r,t,!1)}var lr=fr,cr=sr;Y.Fragment=E,Y.jsx=lr,Y.jsxs=cr}()),Y}process.env.NODE_ENV==="production"?te.exports=yr():te.exports=hr();var J=te.exports;const P="start",re="end",mr=({title:A,onClickFunction:R,iconProps:o,boxSx:E,textSx:C,loadingProps:c,disabled:_})=>J.jsxs(B.Stack,{onClick:R,direction:"row",alignItems:"center",justifyContent:"center",sx:{gap:(o==null?void 0:o.position)===P?"0.35rem":"0.2rem",padding:(o==null?void 0:o.position)===P?"0.5rem 0.65rem 0.5rem 0.5rem":(o==null?void 0:o.position)===re?"0.5rem 0.6rem 0.5rem 0.65rem":"0.5rem 0.75rem",cursor:_?"not-allowed":"pointer",backgroundColor:"blue",borderRadius:"0.625rem",width:"fit-content","&:hover":{boxShadow:"0px 2px 4px 0px (0,0,0,0.40)"},...E},children:[c!=null&&c.loading&&c.position===P?J.jsx(B.CircularProgress,{size:24}):!(c!=null&&c.loading)&&(o!=null&&o.icon)&&(o==null?void 0:o.position)===P?o.icon:null,J.jsx(B.Typography,{sx:{fontSize:"0.875rem",fontWeight:600,letterSpacing:"0.025rem",lineHeight:"normal",color:"white",userSelect:"none",...C},children:A}),c!=null&&c.loading&&c.position===re?J.jsx(B.CircularProgress,{size:24}):!(c!=null&&c.loading)&&(o!=null&&o.icon)&&(o==null?void 0:o.position)===re?o.icon:null]});exports.JweroPrimaryButton=mr;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kashifd/jwero-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -43,9 +43,16 @@
|
|
|
43
43
|
"vite": "^5.3.1"
|
|
44
44
|
},
|
|
45
45
|
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
46
|
-
"main": "./dist/jwero-components.
|
|
46
|
+
"main": "./dist/jwero-components.cjs.js",
|
|
47
47
|
"module": "./dist/jwero-components.es.js",
|
|
48
48
|
"types": "./dist/types/index.d.ts",
|
|
49
|
+
"exports": {
|
|
50
|
+
".": {
|
|
51
|
+
"import": "./dist/jwero-components.es.js",
|
|
52
|
+
"require": "./dist/jwero-components.cjs.js"
|
|
53
|
+
},
|
|
54
|
+
"./types": "./dist/types/index.d.ts"
|
|
55
|
+
},
|
|
49
56
|
"repository": {
|
|
50
57
|
"type": "git",
|
|
51
58
|
"url": "git+https://github.com/kashifkd/jwero-components.git"
|
package/vite.config.ts
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
(function(g,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material"],x):(g=typeof globalThis<"u"?globalThis:g||self,x(g.JweroComponents={},g.React,g.muiMaterial))})(this,function(g,x,V){"use strict";var K={exports:{}},I={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ie;function Ae(){if(ie)return I;ie=1;var Y=x,_=Symbol.for("react.element"),o=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,j=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function T(S,v,k){var h,R={},O=null,J=null;k!==void 0&&(O=""+k),v.key!==void 0&&(O=""+v.key),v.ref!==void 0&&(J=v.ref);for(h in v)E.call(v,h)&&!c.hasOwnProperty(h)&&(R[h]=v[h]);if(S&&S.defaultProps)for(h in v=S.defaultProps,v)R[h]===void 0&&(R[h]=v[h]);return{$$typeof:_,type:S,key:O,ref:J,props:R,_owner:j.current}}return I.Fragment=o,I.jsx=T,I.jsxs=T,I}var W={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ue;function Fe(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var Y=x,_=Symbol.for("react.element"),o=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),S=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),oe=Symbol.iterator,We="@@iterator";function Ye(e){if(e===null||typeof e!="object")return null;var r=oe&&e[oe]||e[We];return typeof r=="function"?r:null}var D=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];$e("error",e,t)}}function $e(e,r,t){{var n=D.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var f=t.map(function(i){return String(i)});f.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,f)}}var Le=!1,Me=!1,Ve=!1,Ne=!1,Ue=!1,fe;fe=Symbol.for("react.module.reference");function Je(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===c||Ue||e===j||e===k||e===h||Ne||e===J||Le||Me||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===R||e.$$typeof===T||e.$$typeof===S||e.$$typeof===v||e.$$typeof===fe||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function se(e){return e.displayName||"Context"}function b(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case o:return"Portal";case c:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return se(r)+".Consumer";case T:var t=e;return se(t._context)+".Provider";case v:return Be(e,e.render,"ForwardRef");case R:var n=e.displayName||null;return n!==null?n:b(e.type)||"Memo";case O:{var u=e,f=u._payload,i=u._init;try{return b(i(f))}catch{return null}}}return null}var w=Object.assign,$=0,le,ce,de,ve,me,ye,he;function pe(){}pe.__reactDisabledLog=!0;function Pe(){{if($===0){le=console.log,ce=console.info,de=console.warn,ve=console.error,me=console.group,ye=console.groupCollapsed,he=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function qe(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:le}),info:w({},e,{value:ce}),warn:w({},e,{value:de}),error:w({},e,{value:ve}),group:w({},e,{value:me}),groupCollapsed:w({},e,{value:ye}),groupEnd:w({},e,{value:he})})}$<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,H;function B(e,r,t){{if(H===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);H=n&&n[1]||""}return`
|
|
18
|
-
`+H+e}}var Z=!1,P;{var ze=typeof WeakMap=="function"?WeakMap:Map;P=new ze}function be(e,r){if(!e||Z)return"";{var t=P.get(e);if(t!==void 0)return t}var n;Z=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=X.current,X.current=null,Pe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(y){n=y}Reflect.construct(e,[],i)}else{try{i.call()}catch(y){n=y}e.call(i.prototype)}}else{try{throw Error()}catch(y){n=y}e()}}catch(y){if(y&&n&&typeof y.stack=="string"){for(var a=y.stack.split(`
|
|
19
|
-
`),m=n.stack.split(`
|
|
20
|
-
`),s=a.length-1,l=m.length-1;s>=1&&l>=0&&a[s]!==m[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==m[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==m[l]){var p=`
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&P.set(e,p),p}while(s>=1&&l>=0);break}}}finally{Z=!1,X.current=f,qe(),Error.prepareStackTrace=u}var F=e?e.displayName||e.name:"",C=F?B(F):"";return typeof e=="function"&&P.set(e,C),C}function Ke(e,r,t){return be(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return be(e,Ge(e));if(typeof e=="string")return B(e);switch(e){case k:return B("Suspense");case h:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Ke(e.render);case R:return q(e.type,r,t);case O:{var n=e,u=n._payload,f=n._init;try{return q(f(u),r,t)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,Re={},ge=D.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Xe(e,r,t,n,u){{var f=Function.call.bind(L);for(var i in e)if(f(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(z(u),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),z(null)),a instanceof Error&&!(a.message in Re)&&(Re[a.message]=!0,z(u),d("Failed %s type: %s",t,a.message),z(null))}}}var He=Array.isArray;function Q(e){return He(e)}function Ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(Qe(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),Ee(e)}var M=D.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},Te,Se,ee;ee={};function rr(e){if(L.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){if(typeof e.ref=="string"&&M.current&&r&&M.current.stateNode!==r){var t=b(M.current.type);ee[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(M.current.type),e.ref),ee[t]=!0)}}function ar(e,r){{var t=function(){Te||(Te=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){Se||(Se=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,u,f,i){var a={$$typeof:_,type:e,key:r,ref:t,props:i,_owner:f};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,u){{var f,i={},a=null,m=null;t!==void 0&&(_e(t),a=""+t),tr(r)&&(_e(r.key),a=""+r.key),rr(r)&&(m=r.ref,nr(r,u));for(f in r)L.call(r,f)&&!er.hasOwnProperty(f)&&(i[f]=r[f]);if(e&&e.defaultProps){var s=e.defaultProps;for(f in s)i[f]===void 0&&(i[f]=s[f])}if(a||m){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,l),m&&ir(i,l)}return ur(e,a,m,u,n,M.current,i)}}var re=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var te;te=!1;function ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function we(){{if(re.current){var e=b(re.current.type);if(e)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function fr(e){return""}var Ce={};function sr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==re.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),A(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function je(e,r){{if(typeof e!="object")return;if(Q(e))for(var t=0;t<e.length;t++){var n=e[t];ne(n)&&xe(n,r)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var u=Ye(e);if(typeof u=="function"&&u!==e.entries)for(var f=u.call(e),i;!(i=f.next()).done;)ne(i.value)&&xe(i.value,r)}}}function lr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=b(r);Xe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!te){te=!0;var u=b(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var ke={};function De(e,r,t,n,u,f){{var i=Je(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=fr();m?a+=m:a+=we();var s;e===null?s="null":Q(e)?s="array":e!==void 0&&e.$$typeof===_?(s="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=or(e,r,t,u,f);if(l==null)return l;if(i){var p=r.children;if(p!==void 0)if(n)if(Q(p)){for(var F=0;F<p.length;F++)je(p[F],e);Object.freeze&&Object.freeze(p)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else je(p,e)}if(L.call(r,"key")){var C=b(e),y=Object.keys(r).filter(function(pr){return pr!=="key"}),ae=y.length>0?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}";if(!ke[C+ae]){var hr=y.length>0?"{"+y.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,ae,C,hr,C),ke[C+ae]=!0}}return e===E?cr(l):lr(l),l}}function dr(e,r,t){return De(e,r,t,!0)}function vr(e,r,t){return De(e,r,t,!1)}var mr=vr,yr=dr;W.Fragment=E,W.jsx=mr,W.jsxs=yr}()),W}process.env.NODE_ENV==="production"?K.exports=Ae():K.exports=Fe();var N=K.exports;const U="start",G="end",Ie=({title:Y,onClickFunction:_,iconProps:o,boxSx:E,textSx:j,loadingProps:c,disabled:T})=>N.jsxs(V.Stack,{onClick:_,direction:"row",alignItems:"center",justifyContent:"center",sx:{gap:(o==null?void 0:o.position)===U?"0.35rem":"0.2rem",padding:(o==null?void 0:o.position)===U?"0.5rem 0.65rem 0.5rem 0.5rem":(o==null?void 0:o.position)===G?"0.5rem 0.6rem 0.5rem 0.65rem":"0.5rem 0.75rem",cursor:T?"not-allowed":"pointer",backgroundColor:"blue",borderRadius:"0.625rem",width:"fit-content","&:hover":{boxShadow:"0px 2px 4px 0px (0,0,0,0.40)"},...E},children:[c!=null&&c.loading&&c.position===U?N.jsx(V.CircularProgress,{size:24}):!(c!=null&&c.loading)&&(o!=null&&o.icon)&&(o==null?void 0:o.position)===U?o.icon:null,N.jsx(V.Typography,{sx:{fontSize:"0.875rem",fontWeight:600,letterSpacing:"0.025rem",lineHeight:"normal",color:"white",userSelect:"none",...j},children:Y}),c!=null&&c.loading&&c.position===G?N.jsx(V.CircularProgress,{size:24}):!(c!=null&&c.loading)&&(o!=null&&o.icon)&&(o==null?void 0:o.position)===G?o.icon:null]});g.JweroPrimaryButton=Ie,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|