@kashifd/jwero-components 0.1.10 → 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/dist/jwero-components.es.js +683 -0
- package/dist/vite.svg +1 -0
- package/package.json +9 -2
- package/vite.config.ts +1 -0
|
@@ -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;
|
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import ke from "react";
|
|
2
|
+
import { Stack as mr, CircularProgress as Ce, Typography as hr } from "@mui/material";
|
|
3
|
+
var re = { exports: {} }, $ = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var xe;
|
|
14
|
+
function yr() {
|
|
15
|
+
if (xe) return $;
|
|
16
|
+
xe = 1;
|
|
17
|
+
var A = ke, _ = Symbol.for("react.element"), o = Symbol.for("react.fragment"), R = 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 };
|
|
18
|
+
function g(T, d, x) {
|
|
19
|
+
var y, E = {}, S = null, L = null;
|
|
20
|
+
x !== void 0 && (S = "" + x), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (L = d.ref);
|
|
21
|
+
for (y in d) R.call(d, y) && !c.hasOwnProperty(y) && (E[y] = d[y]);
|
|
22
|
+
if (T && T.defaultProps) for (y in d = T.defaultProps, d) E[y] === void 0 && (E[y] = d[y]);
|
|
23
|
+
return { $$typeof: _, type: T, key: S, ref: L, props: E, _owner: C.current };
|
|
24
|
+
}
|
|
25
|
+
return $.Fragment = o, $.jsx = g, $.jsxs = g, $;
|
|
26
|
+
}
|
|
27
|
+
var Y = {};
|
|
28
|
+
/**
|
|
29
|
+
* @license React
|
|
30
|
+
* react-jsx-runtime.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/
|
|
37
|
+
var je;
|
|
38
|
+
function br() {
|
|
39
|
+
return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var A = ke, _ = Symbol.for("react.element"), o = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), T = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), te = Symbol.iterator, De = "@@iterator";
|
|
41
|
+
function Ae(e) {
|
|
42
|
+
if (e === null || typeof e != "object")
|
|
43
|
+
return null;
|
|
44
|
+
var r = te && e[te] || e[De];
|
|
45
|
+
return typeof r == "function" ? r : null;
|
|
46
|
+
}
|
|
47
|
+
var j = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function v(e) {
|
|
49
|
+
{
|
|
50
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
51
|
+
t[n - 1] = arguments[n];
|
|
52
|
+
Fe("error", e, t);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function Fe(e, r, t) {
|
|
56
|
+
{
|
|
57
|
+
var n = j.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
58
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
|
59
|
+
var f = t.map(function(i) {
|
|
60
|
+
return String(i);
|
|
61
|
+
});
|
|
62
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var Ie = !1, We = !1, $e = !1, Ye = !1, Le = !1, ne;
|
|
66
|
+
ne = Symbol.for("react.module.reference");
|
|
67
|
+
function Ve(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === c || Le || e === C || e === x || e === y || Ye || e === L || Ie || We || $e || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === E || e.$$typeof === g || e.$$typeof === T || e.$$typeof === d || // This needs to include all possible module reference object
|
|
69
|
+
// types supported by any Flight configuration anywhere since
|
|
70
|
+
// we don't know which Flight build this will end up being used
|
|
71
|
+
// with.
|
|
72
|
+
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
73
|
+
}
|
|
74
|
+
function Me(e, r, t) {
|
|
75
|
+
var n = e.displayName;
|
|
76
|
+
if (n)
|
|
77
|
+
return n;
|
|
78
|
+
var u = r.displayName || r.name || "";
|
|
79
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
|
80
|
+
}
|
|
81
|
+
function ae(e) {
|
|
82
|
+
return e.displayName || "Context";
|
|
83
|
+
}
|
|
84
|
+
function p(e) {
|
|
85
|
+
if (e == null)
|
|
86
|
+
return null;
|
|
87
|
+
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")
|
|
88
|
+
return e.displayName || e.name || null;
|
|
89
|
+
if (typeof e == "string")
|
|
90
|
+
return e;
|
|
91
|
+
switch (e) {
|
|
92
|
+
case R:
|
|
93
|
+
return "Fragment";
|
|
94
|
+
case o:
|
|
95
|
+
return "Portal";
|
|
96
|
+
case c:
|
|
97
|
+
return "Profiler";
|
|
98
|
+
case C:
|
|
99
|
+
return "StrictMode";
|
|
100
|
+
case x:
|
|
101
|
+
return "Suspense";
|
|
102
|
+
case y:
|
|
103
|
+
return "SuspenseList";
|
|
104
|
+
}
|
|
105
|
+
if (typeof e == "object")
|
|
106
|
+
switch (e.$$typeof) {
|
|
107
|
+
case T:
|
|
108
|
+
var r = e;
|
|
109
|
+
return ae(r) + ".Consumer";
|
|
110
|
+
case g:
|
|
111
|
+
var t = e;
|
|
112
|
+
return ae(t._context) + ".Provider";
|
|
113
|
+
case d:
|
|
114
|
+
return Me(e, e.render, "ForwardRef");
|
|
115
|
+
case E:
|
|
116
|
+
var n = e.displayName || null;
|
|
117
|
+
return n !== null ? n : p(e.type) || "Memo";
|
|
118
|
+
case S: {
|
|
119
|
+
var u = e, f = u._payload, i = u._init;
|
|
120
|
+
try {
|
|
121
|
+
return p(i(f));
|
|
122
|
+
} catch {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
var O = Object.assign, F = 0, ie, ue, oe, fe, le, se, ce;
|
|
130
|
+
function ve() {
|
|
131
|
+
}
|
|
132
|
+
ve.__reactDisabledLog = !0;
|
|
133
|
+
function Ne() {
|
|
134
|
+
{
|
|
135
|
+
if (F === 0) {
|
|
136
|
+
ie = console.log, ue = console.info, oe = console.warn, fe = console.error, le = console.group, se = console.groupCollapsed, ce = console.groupEnd;
|
|
137
|
+
var e = {
|
|
138
|
+
configurable: !0,
|
|
139
|
+
enumerable: !0,
|
|
140
|
+
value: ve,
|
|
141
|
+
writable: !0
|
|
142
|
+
};
|
|
143
|
+
Object.defineProperties(console, {
|
|
144
|
+
info: e,
|
|
145
|
+
log: e,
|
|
146
|
+
warn: e,
|
|
147
|
+
error: e,
|
|
148
|
+
group: e,
|
|
149
|
+
groupCollapsed: e,
|
|
150
|
+
groupEnd: e
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
F++;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function Ue() {
|
|
157
|
+
{
|
|
158
|
+
if (F--, F === 0) {
|
|
159
|
+
var e = {
|
|
160
|
+
configurable: !0,
|
|
161
|
+
enumerable: !0,
|
|
162
|
+
writable: !0
|
|
163
|
+
};
|
|
164
|
+
Object.defineProperties(console, {
|
|
165
|
+
log: O({}, e, {
|
|
166
|
+
value: ie
|
|
167
|
+
}),
|
|
168
|
+
info: O({}, e, {
|
|
169
|
+
value: ue
|
|
170
|
+
}),
|
|
171
|
+
warn: O({}, e, {
|
|
172
|
+
value: oe
|
|
173
|
+
}),
|
|
174
|
+
error: O({}, e, {
|
|
175
|
+
value: fe
|
|
176
|
+
}),
|
|
177
|
+
group: O({}, e, {
|
|
178
|
+
value: le
|
|
179
|
+
}),
|
|
180
|
+
groupCollapsed: O({}, e, {
|
|
181
|
+
value: se
|
|
182
|
+
}),
|
|
183
|
+
groupEnd: O({}, e, {
|
|
184
|
+
value: ce
|
|
185
|
+
})
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
F < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
var q = j.ReactCurrentDispatcher, z;
|
|
192
|
+
function V(e, r, t) {
|
|
193
|
+
{
|
|
194
|
+
if (z === void 0)
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (u) {
|
|
198
|
+
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
z = n && n[1] || "";
|
|
200
|
+
}
|
|
201
|
+
return `
|
|
202
|
+
` + z + e;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
var K = !1, M;
|
|
206
|
+
{
|
|
207
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
M = new Be();
|
|
209
|
+
}
|
|
210
|
+
function de(e, r) {
|
|
211
|
+
if (!e || K)
|
|
212
|
+
return "";
|
|
213
|
+
{
|
|
214
|
+
var t = M.get(e);
|
|
215
|
+
if (t !== void 0)
|
|
216
|
+
return t;
|
|
217
|
+
}
|
|
218
|
+
var n;
|
|
219
|
+
K = !0;
|
|
220
|
+
var u = Error.prepareStackTrace;
|
|
221
|
+
Error.prepareStackTrace = void 0;
|
|
222
|
+
var f;
|
|
223
|
+
f = q.current, q.current = null, Ne();
|
|
224
|
+
try {
|
|
225
|
+
if (r) {
|
|
226
|
+
var i = function() {
|
|
227
|
+
throw Error();
|
|
228
|
+
};
|
|
229
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
230
|
+
set: function() {
|
|
231
|
+
throw Error();
|
|
232
|
+
}
|
|
233
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
+
try {
|
|
235
|
+
Reflect.construct(i, []);
|
|
236
|
+
} catch (h) {
|
|
237
|
+
n = h;
|
|
238
|
+
}
|
|
239
|
+
Reflect.construct(e, [], i);
|
|
240
|
+
} else {
|
|
241
|
+
try {
|
|
242
|
+
i.call();
|
|
243
|
+
} catch (h) {
|
|
244
|
+
n = h;
|
|
245
|
+
}
|
|
246
|
+
e.call(i.prototype);
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
try {
|
|
250
|
+
throw Error();
|
|
251
|
+
} catch (h) {
|
|
252
|
+
n = h;
|
|
253
|
+
}
|
|
254
|
+
e();
|
|
255
|
+
}
|
|
256
|
+
} catch (h) {
|
|
257
|
+
if (h && n && typeof h.stack == "string") {
|
|
258
|
+
for (var a = h.stack.split(`
|
|
259
|
+
`), m = n.stack.split(`
|
|
260
|
+
`), l = a.length - 1, s = m.length - 1; l >= 1 && s >= 0 && a[l] !== m[s]; )
|
|
261
|
+
s--;
|
|
262
|
+
for (; l >= 1 && s >= 0; l--, s--)
|
|
263
|
+
if (a[l] !== m[s]) {
|
|
264
|
+
if (l !== 1 || s !== 1)
|
|
265
|
+
do
|
|
266
|
+
if (l--, s--, s < 0 || a[l] !== m[s]) {
|
|
267
|
+
var b = `
|
|
268
|
+
` + a[l].replace(" at new ", " at ");
|
|
269
|
+
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, b), b;
|
|
270
|
+
}
|
|
271
|
+
while (l >= 1 && s >= 0);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
} finally {
|
|
276
|
+
K = !1, q.current = f, Ue(), Error.prepareStackTrace = u;
|
|
277
|
+
}
|
|
278
|
+
var D = e ? e.displayName || e.name : "", w = D ? V(D) : "";
|
|
279
|
+
return typeof e == "function" && M.set(e, w), w;
|
|
280
|
+
}
|
|
281
|
+
function Je(e, r, t) {
|
|
282
|
+
return de(e, !1);
|
|
283
|
+
}
|
|
284
|
+
function qe(e) {
|
|
285
|
+
var r = e.prototype;
|
|
286
|
+
return !!(r && r.isReactComponent);
|
|
287
|
+
}
|
|
288
|
+
function N(e, r, t) {
|
|
289
|
+
if (e == null)
|
|
290
|
+
return "";
|
|
291
|
+
if (typeof e == "function")
|
|
292
|
+
return de(e, qe(e));
|
|
293
|
+
if (typeof e == "string")
|
|
294
|
+
return V(e);
|
|
295
|
+
switch (e) {
|
|
296
|
+
case x:
|
|
297
|
+
return V("Suspense");
|
|
298
|
+
case y:
|
|
299
|
+
return V("SuspenseList");
|
|
300
|
+
}
|
|
301
|
+
if (typeof e == "object")
|
|
302
|
+
switch (e.$$typeof) {
|
|
303
|
+
case d:
|
|
304
|
+
return Je(e.render);
|
|
305
|
+
case E:
|
|
306
|
+
return N(e.type, r, t);
|
|
307
|
+
case S: {
|
|
308
|
+
var n = e, u = n._payload, f = n._init;
|
|
309
|
+
try {
|
|
310
|
+
return N(f(u), r, t);
|
|
311
|
+
} catch {
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return "";
|
|
316
|
+
}
|
|
317
|
+
var I = Object.prototype.hasOwnProperty, me = {}, he = j.ReactDebugCurrentFrame;
|
|
318
|
+
function U(e) {
|
|
319
|
+
if (e) {
|
|
320
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
321
|
+
he.setExtraStackFrame(t);
|
|
322
|
+
} else
|
|
323
|
+
he.setExtraStackFrame(null);
|
|
324
|
+
}
|
|
325
|
+
function ze(e, r, t, n, u) {
|
|
326
|
+
{
|
|
327
|
+
var f = Function.call.bind(I);
|
|
328
|
+
for (var i in e)
|
|
329
|
+
if (f(e, i)) {
|
|
330
|
+
var a = void 0;
|
|
331
|
+
try {
|
|
332
|
+
if (typeof e[i] != "function") {
|
|
333
|
+
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`.");
|
|
334
|
+
throw m.name = "Invariant Violation", m;
|
|
335
|
+
}
|
|
336
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (l) {
|
|
338
|
+
a = l;
|
|
339
|
+
}
|
|
340
|
+
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 me) && (me[a.message] = !0, U(u), v("Failed %s type: %s", t, a.message), U(null));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
var Ke = Array.isArray;
|
|
345
|
+
function P(e) {
|
|
346
|
+
return Ke(e);
|
|
347
|
+
}
|
|
348
|
+
function Pe(e) {
|
|
349
|
+
{
|
|
350
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
|
+
return t;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function Ge(e) {
|
|
355
|
+
try {
|
|
356
|
+
return ye(e), !1;
|
|
357
|
+
} catch {
|
|
358
|
+
return !0;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function ye(e) {
|
|
362
|
+
return "" + e;
|
|
363
|
+
}
|
|
364
|
+
function be(e) {
|
|
365
|
+
if (Ge(e))
|
|
366
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pe(e)), ye(e);
|
|
367
|
+
}
|
|
368
|
+
var W = j.ReactCurrentOwner, Xe = {
|
|
369
|
+
key: !0,
|
|
370
|
+
ref: !0,
|
|
371
|
+
__self: !0,
|
|
372
|
+
__source: !0
|
|
373
|
+
}, pe, Ee, G;
|
|
374
|
+
G = {};
|
|
375
|
+
function He(e) {
|
|
376
|
+
if (I.call(e, "ref")) {
|
|
377
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
378
|
+
if (r && r.isReactWarning)
|
|
379
|
+
return !1;
|
|
380
|
+
}
|
|
381
|
+
return e.ref !== void 0;
|
|
382
|
+
}
|
|
383
|
+
function Ze(e) {
|
|
384
|
+
if (I.call(e, "key")) {
|
|
385
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
386
|
+
if (r && r.isReactWarning)
|
|
387
|
+
return !1;
|
|
388
|
+
}
|
|
389
|
+
return e.key !== void 0;
|
|
390
|
+
}
|
|
391
|
+
function Qe(e, r) {
|
|
392
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
393
|
+
var t = p(W.current.type);
|
|
394
|
+
G[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', p(W.current.type), e.ref), G[t] = !0);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
function er(e, r) {
|
|
398
|
+
{
|
|
399
|
+
var t = function() {
|
|
400
|
+
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));
|
|
401
|
+
};
|
|
402
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
|
+
get: t,
|
|
404
|
+
configurable: !0
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
function rr(e, r) {
|
|
409
|
+
{
|
|
410
|
+
var t = function() {
|
|
411
|
+
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));
|
|
412
|
+
};
|
|
413
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
|
+
get: t,
|
|
415
|
+
configurable: !0
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
var tr = function(e, r, t, n, u, f, i) {
|
|
420
|
+
var a = {
|
|
421
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
+
$$typeof: _,
|
|
423
|
+
// Built-in properties that belong on the element
|
|
424
|
+
type: e,
|
|
425
|
+
key: r,
|
|
426
|
+
ref: t,
|
|
427
|
+
props: i,
|
|
428
|
+
// Record the component responsible for creating this element.
|
|
429
|
+
_owner: f
|
|
430
|
+
};
|
|
431
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
432
|
+
configurable: !1,
|
|
433
|
+
enumerable: !1,
|
|
434
|
+
writable: !0,
|
|
435
|
+
value: !1
|
|
436
|
+
}), Object.defineProperty(a, "_self", {
|
|
437
|
+
configurable: !1,
|
|
438
|
+
enumerable: !1,
|
|
439
|
+
writable: !1,
|
|
440
|
+
value: n
|
|
441
|
+
}), Object.defineProperty(a, "_source", {
|
|
442
|
+
configurable: !1,
|
|
443
|
+
enumerable: !1,
|
|
444
|
+
writable: !1,
|
|
445
|
+
value: u
|
|
446
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
447
|
+
};
|
|
448
|
+
function nr(e, r, t, n, u) {
|
|
449
|
+
{
|
|
450
|
+
var f, i = {}, a = null, m = null;
|
|
451
|
+
t !== void 0 && (be(t), a = "" + t), Ze(r) && (be(r.key), a = "" + r.key), He(r) && (m = r.ref, Qe(r, u));
|
|
452
|
+
for (f in r)
|
|
453
|
+
I.call(r, f) && !Xe.hasOwnProperty(f) && (i[f] = r[f]);
|
|
454
|
+
if (e && e.defaultProps) {
|
|
455
|
+
var l = e.defaultProps;
|
|
456
|
+
for (f in l)
|
|
457
|
+
i[f] === void 0 && (i[f] = l[f]);
|
|
458
|
+
}
|
|
459
|
+
if (a || m) {
|
|
460
|
+
var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
a && er(i, s), m && rr(i, s);
|
|
462
|
+
}
|
|
463
|
+
return tr(e, a, m, u, n, W.current, i);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
var X = j.ReactCurrentOwner, Re = j.ReactDebugCurrentFrame;
|
|
467
|
+
function k(e) {
|
|
468
|
+
if (e) {
|
|
469
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
470
|
+
Re.setExtraStackFrame(t);
|
|
471
|
+
} else
|
|
472
|
+
Re.setExtraStackFrame(null);
|
|
473
|
+
}
|
|
474
|
+
var H;
|
|
475
|
+
H = !1;
|
|
476
|
+
function Z(e) {
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
478
|
+
}
|
|
479
|
+
function _e() {
|
|
480
|
+
{
|
|
481
|
+
if (X.current) {
|
|
482
|
+
var e = p(X.current.type);
|
|
483
|
+
if (e)
|
|
484
|
+
return `
|
|
485
|
+
|
|
486
|
+
Check the render method of \`` + e + "`.";
|
|
487
|
+
}
|
|
488
|
+
return "";
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
function ar(e) {
|
|
492
|
+
return "";
|
|
493
|
+
}
|
|
494
|
+
var ge = {};
|
|
495
|
+
function ir(e) {
|
|
496
|
+
{
|
|
497
|
+
var r = _e();
|
|
498
|
+
if (!r) {
|
|
499
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
|
+
t && (r = `
|
|
501
|
+
|
|
502
|
+
Check the top-level render call using <` + t + ">.");
|
|
503
|
+
}
|
|
504
|
+
return r;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
function Te(e, r) {
|
|
508
|
+
{
|
|
509
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
510
|
+
return;
|
|
511
|
+
e._store.validated = !0;
|
|
512
|
+
var t = ir(r);
|
|
513
|
+
if (ge[t])
|
|
514
|
+
return;
|
|
515
|
+
ge[t] = !0;
|
|
516
|
+
var n = "";
|
|
517
|
+
e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + p(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);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function Se(e, r) {
|
|
521
|
+
{
|
|
522
|
+
if (typeof e != "object")
|
|
523
|
+
return;
|
|
524
|
+
if (P(e))
|
|
525
|
+
for (var t = 0; t < e.length; t++) {
|
|
526
|
+
var n = e[t];
|
|
527
|
+
Z(n) && Te(n, r);
|
|
528
|
+
}
|
|
529
|
+
else if (Z(e))
|
|
530
|
+
e._store && (e._store.validated = !0);
|
|
531
|
+
else if (e) {
|
|
532
|
+
var u = Ae(e);
|
|
533
|
+
if (typeof u == "function" && u !== e.entries)
|
|
534
|
+
for (var f = u.call(e), i; !(i = f.next()).done; )
|
|
535
|
+
Z(i.value) && Te(i.value, r);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function ur(e) {
|
|
540
|
+
{
|
|
541
|
+
var r = e.type;
|
|
542
|
+
if (r == null || typeof r == "string")
|
|
543
|
+
return;
|
|
544
|
+
var t;
|
|
545
|
+
if (typeof r == "function")
|
|
546
|
+
t = r.propTypes;
|
|
547
|
+
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
|
+
// Inner props are checked in the reconciler.
|
|
549
|
+
r.$$typeof === E))
|
|
550
|
+
t = r.propTypes;
|
|
551
|
+
else
|
|
552
|
+
return;
|
|
553
|
+
if (t) {
|
|
554
|
+
var n = p(r);
|
|
555
|
+
ze(t, e.props, "prop", n, e);
|
|
556
|
+
} else if (r.PropTypes !== void 0 && !H) {
|
|
557
|
+
H = !0;
|
|
558
|
+
var u = p(r);
|
|
559
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
560
|
+
}
|
|
561
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function or(e) {
|
|
565
|
+
{
|
|
566
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
567
|
+
var n = r[t];
|
|
568
|
+
if (n !== "children" && n !== "key") {
|
|
569
|
+
k(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
e.ref !== null && (k(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
var Oe = {};
|
|
577
|
+
function we(e, r, t, n, u, f) {
|
|
578
|
+
{
|
|
579
|
+
var i = Ve(e);
|
|
580
|
+
if (!i) {
|
|
581
|
+
var a = "";
|
|
582
|
+
(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.");
|
|
583
|
+
var m = ar();
|
|
584
|
+
m ? a += m : a += _e();
|
|
585
|
+
var l;
|
|
586
|
+
e === null ? l = "null" : P(e) ? l = "array" : e !== void 0 && e.$$typeof === _ ? (l = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = 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", l, a);
|
|
587
|
+
}
|
|
588
|
+
var s = nr(e, r, t, u, f);
|
|
589
|
+
if (s == null)
|
|
590
|
+
return s;
|
|
591
|
+
if (i) {
|
|
592
|
+
var b = r.children;
|
|
593
|
+
if (b !== void 0)
|
|
594
|
+
if (n)
|
|
595
|
+
if (P(b)) {
|
|
596
|
+
for (var D = 0; D < b.length; D++)
|
|
597
|
+
Se(b[D], e);
|
|
598
|
+
Object.freeze && Object.freeze(b);
|
|
599
|
+
} else
|
|
600
|
+
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.");
|
|
601
|
+
else
|
|
602
|
+
Se(b, e);
|
|
603
|
+
}
|
|
604
|
+
if (I.call(r, "key")) {
|
|
605
|
+
var w = p(e), h = Object.keys(r).filter(function(dr) {
|
|
606
|
+
return dr !== "key";
|
|
607
|
+
}), Q = h.length > 0 ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!Oe[w + Q]) {
|
|
609
|
+
var vr = h.length > 0 ? "{" + h.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
611
|
+
let props = %s;
|
|
612
|
+
<%s {...props} />
|
|
613
|
+
React keys must be passed directly to JSX without using spread:
|
|
614
|
+
let props = %s;
|
|
615
|
+
<%s key={someKey} {...props} />`, Q, w, vr, w), Oe[w + Q] = !0;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return e === R ? or(s) : ur(s), s;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function fr(e, r, t) {
|
|
622
|
+
return we(e, r, t, !0);
|
|
623
|
+
}
|
|
624
|
+
function lr(e, r, t) {
|
|
625
|
+
return we(e, r, t, !1);
|
|
626
|
+
}
|
|
627
|
+
var sr = lr, cr = fr;
|
|
628
|
+
Y.Fragment = R, Y.jsx = sr, Y.jsxs = cr;
|
|
629
|
+
}()), Y;
|
|
630
|
+
}
|
|
631
|
+
process.env.NODE_ENV === "production" ? re.exports = yr() : re.exports = br();
|
|
632
|
+
var B = re.exports;
|
|
633
|
+
const J = "start", ee = "end", Rr = ({
|
|
634
|
+
title: A,
|
|
635
|
+
onClickFunction: _,
|
|
636
|
+
iconProps: o,
|
|
637
|
+
boxSx: R,
|
|
638
|
+
textSx: C,
|
|
639
|
+
loadingProps: c,
|
|
640
|
+
disabled: g
|
|
641
|
+
}) => /* @__PURE__ */ B.jsxs(
|
|
642
|
+
mr,
|
|
643
|
+
{
|
|
644
|
+
onClick: _,
|
|
645
|
+
direction: "row",
|
|
646
|
+
alignItems: "center",
|
|
647
|
+
justifyContent: "center",
|
|
648
|
+
sx: {
|
|
649
|
+
gap: (o == null ? void 0 : o.position) === J ? "0.35rem" : "0.2rem",
|
|
650
|
+
padding: (o == null ? void 0 : o.position) === J ? "0.5rem 0.65rem 0.5rem 0.5rem" : (o == null ? void 0 : o.position) === ee ? "0.5rem 0.6rem 0.5rem 0.65rem" : "0.5rem 0.75rem",
|
|
651
|
+
cursor: g ? "not-allowed" : "pointer",
|
|
652
|
+
backgroundColor: "blue",
|
|
653
|
+
borderRadius: "0.625rem",
|
|
654
|
+
width: "fit-content",
|
|
655
|
+
"&:hover": {
|
|
656
|
+
boxShadow: "0px 2px 4px 0px (0,0,0,0.40)"
|
|
657
|
+
},
|
|
658
|
+
...R
|
|
659
|
+
},
|
|
660
|
+
children: [
|
|
661
|
+
c != null && c.loading && c.position === J ? /* @__PURE__ */ B.jsx(Ce, { size: 24 }) : !(c != null && c.loading) && (o != null && o.icon) && (o == null ? void 0 : o.position) === J ? o.icon : null,
|
|
662
|
+
/* @__PURE__ */ B.jsx(
|
|
663
|
+
hr,
|
|
664
|
+
{
|
|
665
|
+
sx: {
|
|
666
|
+
fontSize: "0.875rem",
|
|
667
|
+
fontWeight: 600,
|
|
668
|
+
letterSpacing: "0.025rem",
|
|
669
|
+
lineHeight: "normal",
|
|
670
|
+
color: "white",
|
|
671
|
+
userSelect: "none",
|
|
672
|
+
...C
|
|
673
|
+
},
|
|
674
|
+
children: A
|
|
675
|
+
}
|
|
676
|
+
),
|
|
677
|
+
c != null && c.loading && c.position === ee ? /* @__PURE__ */ B.jsx(Ce, { size: 24 }) : !(c != null && c.loading) && (o != null && o.icon) && (o == null ? void 0 : o.position) === ee ? o.icon : null
|
|
678
|
+
]
|
|
679
|
+
}
|
|
680
|
+
);
|
|
681
|
+
export {
|
|
682
|
+
Rr as JweroPrimaryButton
|
|
683
|
+
};
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
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"
|