@revotech-group/revotech-ui-kit 0.1.31 → 0.1.32
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/rtg-ui-kit.js +9 -8
- package/dist/rtg-ui-kit.umd.cjs +4 -3
- package/package.json +1 -1
package/dist/rtg-ui-kit.js
CHANGED
|
@@ -12464,7 +12464,11 @@ let er = class extends h {
|
|
|
12464
12464
|
aria-selected=${this.defaultValue === this.value ? "true" : "false"}
|
|
12465
12465
|
aria-controls=${this.value}
|
|
12466
12466
|
data-state=${this.defaultValue === this.value ? "active" : "inactive"}
|
|
12467
|
-
class
|
|
12467
|
+
class=${g(
|
|
12468
|
+
"rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm",
|
|
12469
|
+
t
|
|
12470
|
+
)}
|
|
12471
|
+
style="${e}"
|
|
12468
12472
|
tabindex="-1"
|
|
12469
12473
|
data-orientation=${this.orientation}
|
|
12470
12474
|
data-radix-collection-item=""
|
|
@@ -15760,7 +15764,7 @@ function $v() {
|
|
|
15760
15764
|
);
|
|
15761
15765
|
}, O.useTransition = function() {
|
|
15762
15766
|
return N.H.useTransition();
|
|
15763
|
-
}, O.version = "19.1.
|
|
15767
|
+
}, O.version = "19.1.0", O;
|
|
15764
15768
|
}
|
|
15765
15769
|
var Yt = { exports: {} };
|
|
15766
15770
|
/**
|
|
@@ -16243,14 +16247,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
16243
16247
|
return null;
|
|
16244
16248
|
};
|
|
16245
16249
|
le = {
|
|
16246
|
-
|
|
16250
|
+
"react-stack-bottom-frame": function(a) {
|
|
16247
16251
|
return a();
|
|
16248
16252
|
}
|
|
16249
16253
|
};
|
|
16250
|
-
var wo, xo, _o = {}, Bi = le.
|
|
16251
|
-
le,
|
|
16252
|
-
G
|
|
16253
|
-
)(), Fi = yo(T(G)), Co = !1, $o = /\/+/g, Eo = typeof reportError == "function" ? reportError : function(a) {
|
|
16254
|
+
var wo, xo, _o = {}, Bi = le["react-stack-bottom-frame"].bind(le, G)(), Fi = yo(T(G)), Co = !1, $o = /\/+/g, Eo = typeof reportError == "function" ? reportError : function(a) {
|
|
16254
16255
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
16255
16256
|
var u = new window.ErrorEvent("error", {
|
|
16256
16257
|
bubbles: !0,
|
|
@@ -16593,7 +16594,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
16593
16594
|
);
|
|
16594
16595
|
}, t.useTransition = function() {
|
|
16595
16596
|
return V().useTransition();
|
|
16596
|
-
}, t.version = "19.1.
|
|
16597
|
+
}, t.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
16597
16598
|
}();
|
|
16598
16599
|
}(Yt, Yt.exports)), Yt.exports;
|
|
16599
16600
|
}
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -4409,7 +4409,8 @@ body {
|
|
|
4409
4409
|
aria-selected=${this.defaultValue===this.value?"true":"false"}
|
|
4410
4410
|
aria-controls=${this.value}
|
|
4411
4411
|
data-state=${this.defaultValue===this.value?"active":"inactive"}
|
|
4412
|
-
class
|
|
4412
|
+
class=${p("rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm",r)}
|
|
4413
|
+
style="${e}"
|
|
4413
4414
|
tabindex="-1"
|
|
4414
4415
|
data-orientation=${this.orientation}
|
|
4415
4416
|
data-radix-collection-item=""
|
|
@@ -5184,7 +5185,7 @@ body {
|
|
|
5184
5185
|
*
|
|
5185
5186
|
* This source code is licensed under the MIT license found in the
|
|
5186
5187
|
* LICENSE file in the root directory of this source tree.
|
|
5187
|
-
*/var $n;function Cg(){if($n)return O;$n=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=E&&u[E]||u["@@iterator"],typeof u=="function"?u:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||G}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||G}var j=W.prototype=new L;j.constructor=W,M(j,P.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,x,T,Y){return $=Y.ref,{$$typeof:i,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function te(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var V=/\/+/g;function z(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function ce(){}function re(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(ce,ce):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,x,T){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case e:R=!0;break;case C:return R=u._init,X(R(u._payload),v,$,x,T)}}if(R)return T=T(u),R=x===""?"."+z(u,0):x,ee(T)?($="",R!=null&&($=R.replace(V,"$&/")+"/"),X(T,v,$,"",function(Ye){return Ye})):T!=null&&(te(T)&&(T=ae(T,$+(T.key==null||u&&u.key===T.key?"":(""+T.key).replace(V,"$&/")+"/")+R)),v.push(T)),1;R=0;var ge=x===""?".":x+":";if(ee(u))for(var K=0;K<u.length;K++)x=u[K],Y=ge+z(x,K),R+=X(x,v,$,Y,T);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(x=u.next()).done;)x=x.value,Y=ge+z(x,K++),R+=X(x,v,$,Y,T);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,x,T);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var x=[],T=0;return X(u,x,"","",function(Y){return v.call($,Y,T++)}),x}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var de=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function ue(){}return O.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!te(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},O.Component=P,O.Fragment=r,O.Profiler=t,O.PureComponent=W,O.StrictMode=n,O.Suspense=w,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,O.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},O.cache=function(u){return function(){return u.apply(null,arguments)}},O.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var x=M({},u.props),T=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(T=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(x[R]=v[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];x.children=ge}return be(u.type,T,void 0,void 0,Y,x)},O.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},O.createElement=function(u,v,$){var x,T={},Y=null;if(v!=null)for(x in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(T[x]=v[x]);var R=arguments.length-2;if(R===1)T.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];T.children=ge}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)T[x]===void 0&&(T[x]=R[x]);return be(u,Y,void 0,void 0,null,T)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:C,_payload:{_status:-1,_result:u},_init:ye}},O.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},O.startTransition=function(u){var v=B.T,$={};B.T=$;try{var x=u(),T=B.S;T!==null&&T($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(ue,de)}catch(Y){de(Y)}finally{B.T=v}},O.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},O.use=function(u){return B.H.use(u)},O.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},O.useCallback=function(u,v){return B.H.useCallback(u,v)},O.useContext=function(u){return B.H.useContext(u)},O.useDebugValue=function(){},O.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},O.useEffect=function(u,v,$){var x=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(u,v)},O.useId=function(){return B.H.useId()},O.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},O.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},O.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},O.useMemo=function(u,v){return B.H.useMemo(u,v)},O.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},O.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},O.useRef=function(u){return B.H.useRef(u)},O.useState=function(u){return B.H.useState(u)},O.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},O.useTransition=function(){return B.H.useTransition()},O.version="19.1.
|
|
5188
|
+
*/var $n;function Cg(){if($n)return O;$n=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=E&&u[E]||u["@@iterator"],typeof u=="function"?u:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||G}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||G}var j=W.prototype=new L;j.constructor=W,M(j,P.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,x,T,Y){return $=Y.ref,{$$typeof:i,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function te(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var V=/\/+/g;function z(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function ce(){}function re(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(ce,ce):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,x,T){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case e:R=!0;break;case C:return R=u._init,X(R(u._payload),v,$,x,T)}}if(R)return T=T(u),R=x===""?"."+z(u,0):x,ee(T)?($="",R!=null&&($=R.replace(V,"$&/")+"/"),X(T,v,$,"",function(Ye){return Ye})):T!=null&&(te(T)&&(T=ae(T,$+(T.key==null||u&&u.key===T.key?"":(""+T.key).replace(V,"$&/")+"/")+R)),v.push(T)),1;R=0;var ge=x===""?".":x+":";if(ee(u))for(var K=0;K<u.length;K++)x=u[K],Y=ge+z(x,K),R+=X(x,v,$,Y,T);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(x=u.next()).done;)x=x.value,Y=ge+z(x,K++),R+=X(x,v,$,Y,T);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,x,T);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var x=[],T=0;return X(u,x,"","",function(Y){return v.call($,Y,T++)}),x}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var de=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function ue(){}return O.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!te(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},O.Component=P,O.Fragment=r,O.Profiler=t,O.PureComponent=W,O.StrictMode=n,O.Suspense=w,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,O.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},O.cache=function(u){return function(){return u.apply(null,arguments)}},O.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var x=M({},u.props),T=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(T=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(x[R]=v[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];x.children=ge}return be(u.type,T,void 0,void 0,Y,x)},O.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},O.createElement=function(u,v,$){var x,T={},Y=null;if(v!=null)for(x in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(T[x]=v[x]);var R=arguments.length-2;if(R===1)T.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];T.children=ge}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)T[x]===void 0&&(T[x]=R[x]);return be(u,Y,void 0,void 0,null,T)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:C,_payload:{_status:-1,_result:u},_init:ye}},O.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},O.startTransition=function(u){var v=B.T,$={};B.T=$;try{var x=u(),T=B.S;T!==null&&T($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(ue,de)}catch(Y){de(Y)}finally{B.T=v}},O.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},O.use=function(u){return B.H.use(u)},O.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},O.useCallback=function(u,v){return B.H.useCallback(u,v)},O.useContext=function(u){return B.H.useContext(u)},O.useDebugValue=function(){},O.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},O.useEffect=function(u,v,$){var x=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(u,v)},O.useId=function(){return B.H.useId()},O.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},O.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},O.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},O.useMemo=function(u,v){return B.H.useMemo(u,v)},O.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},O.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},O.useRef=function(u){return B.H.useRef(u)},O.useState=function(u){return B.H.useState(u)},O.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},O.useTransition=function(){return B.H.useTransition()},O.version="19.1.0",O}var st={exports:{}};/**
|
|
5188
5189
|
* @license React
|
|
5189
5190
|
* react.development.js
|
|
5190
5191
|
*
|
|
@@ -5204,4 +5205,4 @@ Your code should look like:
|
|
|
5204
5205
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
5205
5206
|
2. You might be breaking the Rules of Hooks
|
|
5206
5207
|
3. You might have more than one copy of React in the same app
|
|
5207
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function z(){}function ce(c){if(_t===null)try{var g=("require"+Math.random()).slice(0,7);_t=(i&&i[g]).call(i,"timers").setImmediate}catch{_t=function(y){zn===!1&&(zn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return _t(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==xt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),xt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!sr){sr=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{sr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),Og=Symbol.for("react.activity"),Dn=Symbol.iterator,Rn={},In={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},kn=Object.assign,ar={};Object.freeze(ar),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},wt;for(wt in ne)ne.hasOwnProperty(wt)&&r(wt,ne[wt]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,kn(ne,a.prototype),ne.isPureReactComponent=!0;var An=Array.isArray,Pg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ct=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};ne={react_stack_bottom_frame:function(c){return c()}};var Mn,Ln,Nn={},Dg=ne.react_stack_bottom_frame.bind(ne,G)(),Rg=Tn(E(G)),Bn=!1,qn=/\/+/g,Un=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},zn=!1,_t=null,xt=0,Et=!1,sr=!1,Fn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return V().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=xt;xt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var A=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var D=A;return Fn(function(){_||Et||(Et=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(kg){k.thrownErrors.push(kg)}if(0<k.thrownErrors.length){var Ig=re(k.thrownErrors);k.thrownErrors.length=0,we(Ig)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var F=A;if(X(g,f),f===0&&(ye(y),y.length!==0&&Fn(function(){_||Et||(Et=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(F,I,we)})):I(F)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=kn({},c.props),_=c.key,A=c._owner;if(g!=null){var D;e:{if(Ct.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(A=N()),M(g)&&(b(g.key),_=""+g.key);for(F in g)!Ct.call(g,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&g.ref===void 0||(y[F]=g[F])}var F=arguments.length-2;if(F===1)y.children=f;else if(1<F){D=Array(F);for(var I=0;I<F;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,A,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)A=arguments[_],j(A)&&A._store&&(A._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:T,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Ln||!("__self"in g)||"key"in g||(Ln=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)Ct.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var A=arguments.length-2;if(A===1)y.children=f;else if(1<A){for(var D=Array(A),F=0;F<A;F++)D[F]=arguments[F+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in A=c.defaultProps,A)y[I]===void 0&&(y[I]=A[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):Dg,I?Tn(E(c)):Rg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(z,Un)}catch(A){Un(A)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},e.use=function(c){return V().use(c)},e.useActionState=function(c,g,f){return V().useActionState(c,g,f)},e.useCallback=function(c,g){return V().useCallback(c,g)},e.useContext=function(c){var g=V();return c.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return V().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return V().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=V();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return V().useId()},e.useImperativeHandle=function(c,g,f){return V().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(c,g)},e.useMemo=function(c,g){return V().useMemo(c,g)},e.useOptimistic=function(c,g){return V().useOptimistic(c,g)},e.useReducer=function(c,g,f){return V().useReducer(c,g,f)},e.useRef=function(c){return V().useRef(c)},e.useState=function(c){return V().useState(c)},e.useSyncExternalStore=function(c,g,f){return V().useSyncExternalStore(c,g,f)},e.useTransition=function(){return V().useTransition()},e.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var On;function xg(){return On||(On=1,process.env.NODE_ENV==="production"?yt.exports=Cg():yt.exports=_g()),yt.exports}var Eg=xg();const Pn=wg(Eg),$g=En({tagName:"rtg-button",elementClass:o.Button,react:Pn}),Sg=En({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Pn});o.ButtonReact=$g,o.CheckboxReact=Sg,o.TOGGLE_GROUP_SIZE=mt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ht,o.TOGGLE_SIZE=Jt,o.TOGGLE_VARIANT=er,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
5208
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function z(){}function ce(c){if(_t===null)try{var g=("require"+Math.random()).slice(0,7);_t=(i&&i[g]).call(i,"timers").setImmediate}catch{_t=function(y){zn===!1&&(zn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return _t(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==xt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),xt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!sr){sr=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{sr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),Og=Symbol.for("react.activity"),Dn=Symbol.iterator,Rn={},In={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},kn=Object.assign,ar={};Object.freeze(ar),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},wt;for(wt in ne)ne.hasOwnProperty(wt)&&r(wt,ne[wt]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,kn(ne,a.prototype),ne.isPureReactComponent=!0;var An=Array.isArray,Pg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ct=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};ne={"react-stack-bottom-frame":function(c){return c()}};var Mn,Ln,Nn={},Dg=ne["react-stack-bottom-frame"].bind(ne,G)(),Rg=Tn(E(G)),Bn=!1,qn=/\/+/g,Un=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},zn=!1,_t=null,xt=0,Et=!1,sr=!1,Fn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return V().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=xt;xt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var A=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var D=A;return Fn(function(){_||Et||(Et=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(kg){k.thrownErrors.push(kg)}if(0<k.thrownErrors.length){var Ig=re(k.thrownErrors);k.thrownErrors.length=0,we(Ig)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var F=A;if(X(g,f),f===0&&(ye(y),y.length!==0&&Fn(function(){_||Et||(Et=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(F,I,we)})):I(F)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=kn({},c.props),_=c.key,A=c._owner;if(g!=null){var D;e:{if(Ct.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(A=N()),M(g)&&(b(g.key),_=""+g.key);for(F in g)!Ct.call(g,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&g.ref===void 0||(y[F]=g[F])}var F=arguments.length-2;if(F===1)y.children=f;else if(1<F){D=Array(F);for(var I=0;I<F;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,A,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)A=arguments[_],j(A)&&A._store&&(A._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:T,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Ln||!("__self"in g)||"key"in g||(Ln=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)Ct.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var A=arguments.length-2;if(A===1)y.children=f;else if(1<A){for(var D=Array(A),F=0;F<A;F++)D[F]=arguments[F+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in A=c.defaultProps,A)y[I]===void 0&&(y[I]=A[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):Dg,I?Tn(E(c)):Rg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(z,Un)}catch(A){Un(A)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},e.use=function(c){return V().use(c)},e.useActionState=function(c,g,f){return V().useActionState(c,g,f)},e.useCallback=function(c,g){return V().useCallback(c,g)},e.useContext=function(c){var g=V();return c.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return V().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return V().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=V();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return V().useId()},e.useImperativeHandle=function(c,g,f){return V().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(c,g)},e.useMemo=function(c,g){return V().useMemo(c,g)},e.useOptimistic=function(c,g){return V().useOptimistic(c,g)},e.useReducer=function(c,g,f){return V().useReducer(c,g,f)},e.useRef=function(c){return V().useRef(c)},e.useState=function(c){return V().useState(c)},e.useSyncExternalStore=function(c,g,f){return V().useSyncExternalStore(c,g,f)},e.useTransition=function(){return V().useTransition()},e.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var On;function xg(){return On||(On=1,process.env.NODE_ENV==="production"?yt.exports=Cg():yt.exports=_g()),yt.exports}var Eg=xg();const Pn=wg(Eg),$g=En({tagName:"rtg-button",elementClass:o.Button,react:Pn}),Sg=En({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Pn});o.ButtonReact=$g,o.CheckboxReact=Sg,o.TOGGLE_GROUP_SIZE=mt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ht,o.TOGGLE_SIZE=Jt,o.TOGGLE_VARIANT=er,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED