@protonradio/proton-ui 0.1.0
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/README.md +3 -0
- package/dist/proton-ui.es.js +2548 -0
- package/dist/proton-ui.umd.js +39 -0
- package/package.json +54 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(function(ge,_e){typeof exports=="object"&&typeof module<"u"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(ge=typeof globalThis<"u"?globalThis:ge||self,_e(ge["proton-ui"]={}))})(this,function(ge){"use strict";function _e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xe={exports:{}},_={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.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 Et;function Or(){if(Et)return _;Et=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),p=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),F=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.iterator;function oe(o){return o===null||typeof o!="object"?null:(o=ae&&o[ae]||o["@@iterator"],typeof o=="function"?o:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ne=Object.assign,te={};function B(o,v,P){this.props=o,this.context=v,this.refs=te,this.updater=P||ee}B.prototype.isReactComponent={},B.prototype.setState=function(o,v){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,v,"setState")},B.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function re(){}re.prototype=B.prototype;function z(o,v,P){this.props=o,this.context=v,this.refs=te,this.updater=P||ee}var W=z.prototype=new re;W.constructor=z,ne(W,B.prototype),W.isPureReactComponent=!0;var G=Array.isArray,O=Object.prototype.hasOwnProperty,q={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function s(o,v,P){var x,S={},A=null,V=null;if(v!=null)for(x in v.ref!==void 0&&(V=v.ref),v.key!==void 0&&(A=""+v.key),v)O.call(v,x)&&!ie.hasOwnProperty(x)&&(S[x]=v[x]);var I=arguments.length-2;if(I===1)S.children=P;else if(1<I){for(var j=Array(I),J=0;J<I;J++)j[J]=arguments[J+2];S.children=j}if(o&&o.defaultProps)for(x in I=o.defaultProps,I)S[x]===void 0&&(S[x]=I[x]);return{$$typeof:t,type:o,key:A,ref:V,props:S,_owner:q.current}}function w(o,v){return{$$typeof:t,type:o.type,key:v,ref:o.ref,props:o.props,_owner:o._owner}}function X(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function h(o){var v={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(P){return v[P]})}var M=/\/+/g;function f(o,v){return typeof o=="object"&&o!==null&&o.key!=null?h(""+o.key):v.toString(36)}function g(o,v,P,x,S){var A=typeof o;(A==="undefined"||A==="boolean")&&(o=null);var V=!1;if(o===null)V=!0;else switch(A){case"string":case"number":V=!0;break;case"object":switch(o.$$typeof){case t:case r:V=!0}}if(V)return V=o,S=S(V),o=x===""?"."+f(V,0):x,G(S)?(P="",o!=null&&(P=o.replace(M,"$&/")+"/"),g(S,v,P,"",function(J){return J})):S!=null&&(X(S)&&(S=w(S,P+(!S.key||V&&V.key===S.key?"":(""+S.key).replace(M,"$&/")+"/")+o)),v.push(S)),1;if(V=0,x=x===""?".":x+":",G(o))for(var I=0;I<o.length;I++){A=o[I];var j=x+f(A,I);V+=g(A,v,P,j,S)}else if(j=oe(o),typeof j=="function")for(o=j.call(o),I=0;!(A=o.next()).done;)A=A.value,j=x+f(A,I++),V+=g(A,v,P,j,S);else if(A==="object")throw v=String(o),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.");return V}function L(o,v,P){if(o==null)return o;var x=[],S=0;return g(o,x,"","",function(A){return v.call(P,A,S++)}),x}function le(o){if(o._status===-1){var v=o._result;v=v(),v.then(function(P){(o._status===0||o._status===-1)&&(o._status=1,o._result=P)},function(P){(o._status===0||o._status===-1)&&(o._status=2,o._result=P)}),o._status===-1&&(o._status=0,o._result=v)}if(o._status===1)return o._result.default;throw o._result}var $={current:null},ye={transition:null},je={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:ye,ReactCurrentOwner:q};return _.Children={map:L,forEach:function(o,v,P){L(o,function(){v.apply(this,arguments)},P)},count:function(o){var v=0;return L(o,function(){v++}),v},toArray:function(o){return L(o,function(v){return v})||[]},only:function(o){if(!X(o))throw Error("React.Children.only expected to receive a single React element child.");return o}},_.Component=B,_.Fragment=a,_.Profiler=c,_.PureComponent=z,_.StrictMode=u,_.Suspense=T,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,_.cloneElement=function(o,v,P){if(o==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+o+".");var x=ne({},o.props),S=o.key,A=o.ref,V=o._owner;if(v!=null){if(v.ref!==void 0&&(A=v.ref,V=q.current),v.key!==void 0&&(S=""+v.key),o.type&&o.type.defaultProps)var I=o.type.defaultProps;for(j in v)O.call(v,j)&&!ie.hasOwnProperty(j)&&(x[j]=v[j]===void 0&&I!==void 0?I[j]:v[j])}var j=arguments.length-2;if(j===1)x.children=P;else if(1<j){I=Array(j);for(var J=0;J<j;J++)I[J]=arguments[J+2];x.children=I}return{$$typeof:t,type:o.type,key:S,ref:A,props:x,_owner:V}},_.createContext=function(o){return o={$$typeof:p,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},o.Provider={$$typeof:y,_context:o},o.Consumer=o},_.createElement=s,_.createFactory=function(o){var v=s.bind(null,o);return v.type=o,v},_.createRef=function(){return{current:null}},_.forwardRef=function(o){return{$$typeof:C,render:o}},_.isValidElement=X,_.lazy=function(o){return{$$typeof:Y,_payload:{_status:-1,_result:o},_init:le}},_.memo=function(o,v){return{$$typeof:F,type:o,compare:v===void 0?null:v}},_.startTransition=function(o){var v=ye.transition;ye.transition={};try{o()}finally{ye.transition=v}},_.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},_.useCallback=function(o,v){return $.current.useCallback(o,v)},_.useContext=function(o){return $.current.useContext(o)},_.useDebugValue=function(){},_.useDeferredValue=function(o){return $.current.useDeferredValue(o)},_.useEffect=function(o,v){return $.current.useEffect(o,v)},_.useId=function(){return $.current.useId()},_.useImperativeHandle=function(o,v,P){return $.current.useImperativeHandle(o,v,P)},_.useInsertionEffect=function(o,v){return $.current.useInsertionEffect(o,v)},_.useLayoutEffect=function(o,v){return $.current.useLayoutEffect(o,v)},_.useMemo=function(o,v){return $.current.useMemo(o,v)},_.useReducer=function(o,v,P){return $.current.useReducer(o,v,P)},_.useRef=function(o){return $.current.useRef(o)},_.useState=function(o){return $.current.useState(o)},_.useSyncExternalStore=function(o,v,P){return $.current.useSyncExternalStore(o,v,P)},_.useTransition=function(){return $.current.useTransition()},_.version="18.2.0",_}var we={exports:{}};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.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
|
+
*/we.exports;var Pt;function Lr(){return Pt||(Pt=1,function(t,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a="18.2.0",u=Symbol.for("react.element"),c=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),F=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),B=Symbol.iterator,re="@@iterator";function z(e){if(e===null||typeof e!="object")return null;var n=B&&e[B]||e[re];return typeof n=="function"?n:null}var W={current:null},G={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},ie={},s=null;function w(e){s=e}ie.setExtraStackFrame=function(e){s=e},ie.getCurrentStack=null,ie.getStackAddendum=function(){var e="";s&&(e+=s);var n=ie.getCurrentStack;return n&&(e+=n()||""),e};var X=!1,h=!1,M=!1,f=!1,g=!1,L={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:G,ReactCurrentOwner:q};L.ReactDebugCurrentFrame=ie,L.ReactCurrentActQueue=O;function le(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];ye("warn",e,i)}}function $(e){{for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];ye("error",e,i)}}function ye(e,n,i){{var l=L.ReactDebugCurrentFrame,d=l.getStackAddendum();d!==""&&(n+="%s",i=i.concat([d]));var m=i.map(function(b){return String(b)});m.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,m)}}var je={};function o(e,n){{var i=e.constructor,l=i&&(i.displayName||i.name)||"ReactClass",d=l+"."+n;if(je[d])return;$("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,l),je[d]=!0}}var v={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,i){o(e,"forceUpdate")},enqueueReplaceState:function(e,n,i,l){o(e,"replaceState")},enqueueSetState:function(e,n,i,l){o(e,"setState")}},P=Object.assign,x={};Object.freeze(x);function S(e,n,i){this.props=e,this.context=n,this.refs=x,this.updater=i||v}S.prototype.isReactComponent={},S.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var A={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)."]},V=function(e,n){Object.defineProperty(S.prototype,e,{get:function(){le("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})};for(var I in A)A.hasOwnProperty(I)&&V(I,A[I])}function j(){}j.prototype=S.prototype;function J(e,n,i){this.props=e,this.context=n,this.refs=x,this.updater=i||v}var ut=J.prototype=new j;ut.constructor=J,P(ut,S.prototype),ut.isPureReactComponent=!0;function Cn(){var e={current:null};return Object.seal(e),e}var kn=Array.isArray;function Ke(e){return kn(e)}function On(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,i=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Ln(e){try{return Gt(e),!1}catch{return!0}}function Gt(e){return""+e}function Ne(e){if(Ln(e))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",On(e)),Gt(e)}function xn(e,n,i){var l=e.displayName;if(l)return l;var d=n.displayName||n.name||"";return d!==""?i+"("+d+")":i}function qt(e){return e.displayName||"Context"}function ce(e){if(e==null)return null;if(typeof e.tag=="number"&&$("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 y:return"Fragment";case c:return"Portal";case C:return"Profiler";case p:return"StrictMode";case ae:return"Suspense";case oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F:var n=e;return qt(n)+".Consumer";case T:var i=e;return qt(i._context)+".Provider";case Y:return xn(e,e.render,"ForwardRef");case ee:var l=e.displayName||null;return l!==null?l:ce(e.type)||"Memo";case ne:{var d=e,m=d._payload,b=d._init;try{return ce(b(m))}catch{return null}}}return null}var ke=Object.prototype.hasOwnProperty,Xt={key:!0,ref:!0,__self:!0,__source:!0},Qt,Jt,lt;lt={};function Zt(e){if(ke.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(ke.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Dn(e,n){var i=function(){Qt||(Qt=!0,$("%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)",n))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}function Mn(e,n){var i=function(){Jt||(Jt=!0,$("%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)",n))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}function Fn(e){if(typeof e.ref=="string"&&q.current&&e.__self&&q.current.stateNode!==e.__self){var n=ce(q.current.type);lt[n]||($('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',n,e.ref),lt[n]=!0)}}var ct=function(e,n,i,l,d,m,b){var E={$$typeof:u,type:e,key:n,ref:i,props:b,_owner:m};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function An(e,n,i){var l,d={},m=null,b=null,E=null,R=null;if(n!=null){Zt(n)&&(b=n.ref,Fn(n)),er(n)&&(Ne(n.key),m=""+n.key),E=n.__self===void 0?null:n.__self,R=n.__source===void 0?null:n.__source;for(l in n)ke.call(n,l)&&!Xt.hasOwnProperty(l)&&(d[l]=n[l])}var D=arguments.length-2;if(D===1)d.children=i;else if(D>1){for(var K=Array(D),N=0;N<D;N++)K[N]=arguments[N+2];Object.freeze&&Object.freeze(K),d.children=K}if(e&&e.defaultProps){var U=e.defaultProps;for(l in U)d[l]===void 0&&(d[l]=U[l])}if(m||b){var H=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&Dn(d,H),b&&Mn(d,H)}return ct(e,m,b,E,R,q.current,d)}function In(e,n){var i=ct(e.type,n,e.ref,e._self,e._source,e._owner,e.props);return i}function jn(e,n,i){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l,d=P({},e.props),m=e.key,b=e.ref,E=e._self,R=e._source,D=e._owner;if(n!=null){Zt(n)&&(b=n.ref,D=q.current),er(n)&&(Ne(n.key),m=""+n.key);var K;e.type&&e.type.defaultProps&&(K=e.type.defaultProps);for(l in n)ke.call(n,l)&&!Xt.hasOwnProperty(l)&&(n[l]===void 0&&K!==void 0?d[l]=K[l]:d[l]=n[l])}var N=arguments.length-2;if(N===1)d.children=i;else if(N>1){for(var U=Array(N),H=0;H<N;H++)U[H]=arguments[H+2];d.children=U}return ct(e.type,m,b,E,R,D,d)}function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}var tr=".",Kn=":";function Nn(e){var n=/[=:]/g,i={"=":"=0",":":"=2"},l=e.replace(n,function(d){return i[d]});return"$"+l}var rr=!1,Un=/\/+/g;function nr(e){return e.replace(Un,"$&/")}function ft(e,n){return typeof e=="object"&&e!==null&&e.key!=null?(Ne(e.key),Nn(""+e.key)):n.toString(36)}function Ue(e,n,i,l,d){var m=typeof e;(m==="undefined"||m==="boolean")&&(e=null);var b=!1;if(e===null)b=!0;else switch(m){case"string":case"number":b=!0;break;case"object":switch(e.$$typeof){case u:case c:b=!0}}if(b){var E=e,R=d(E),D=l===""?tr+ft(E,0):l;if(Ke(R)){var K="";D!=null&&(K=nr(D)+"/"),Ue(R,n,K,"",function(Ma){return Ma})}else R!=null&&(Ee(R)&&(R.key&&(!E||E.key!==R.key)&&Ne(R.key),R=In(R,i+(R.key&&(!E||E.key!==R.key)?nr(""+R.key)+"/":"")+D)),n.push(R));return 1}var N,U,H=0,Q=l===""?tr:l+Kn;if(Ke(e))for(var qe=0;qe<e.length;qe++)N=e[qe],U=Q+ft(N,qe),H+=Ue(N,n,i,U,d);else{var $t=z(e);if(typeof $t=="function"){var Rr=e;$t===Rr.entries&&(rr||le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),rr=!0);for(var xa=$t.call(Rr),Cr,Da=0;!(Cr=xa.next()).done;)N=Cr.value,U=Q+ft(N,Da++),H+=Ue(N,n,i,U,d)}else if(m==="object"){var kr=String(e);throw new Error("Objects are not valid as a React child (found: "+(kr==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":kr)+"). If you meant to render a collection of children, use an array instead.")}}return H}function We(e,n,i){if(e==null)return e;var l=[],d=0;return Ue(e,l,"","",function(m){return n.call(i,m,d++)}),l}function Wn(e){var n=0;return We(e,function(){n++}),n}function Vn(e,n,i){We(e,function(){n.apply(this,arguments)},i)}function Hn(e){return We(e,function(n){return n})||[]}function Bn(e){if(!Ee(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function Yn(e){var n={$$typeof:F,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};n.Provider={$$typeof:T,_context:n};var i=!1,l=!1,d=!1;{var m={$$typeof:F,_context:n};Object.defineProperties(m,{Provider:{get:function(){return l||(l=!0,$("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(b){n.Provider=b}},_currentValue:{get:function(){return n._currentValue},set:function(b){n._currentValue=b}},_currentValue2:{get:function(){return n._currentValue2},set:function(b){n._currentValue2=b}},_threadCount:{get:function(){return n._threadCount},set:function(b){n._threadCount=b}},Consumer:{get:function(){return i||(i=!0,$("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}},displayName:{get:function(){return n.displayName},set:function(b){d||(le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",b),d=!0)}}}),n.Consumer=m}return n._currentRenderer=null,n._currentRenderer2=null,n}var Oe=-1,dt=0,ar=1,zn=2;function Gn(e){if(e._status===Oe){var n=e._result,i=n();if(i.then(function(m){if(e._status===dt||e._status===Oe){var b=e;b._status=ar,b._result=m}},function(m){if(e._status===dt||e._status===Oe){var b=e;b._status=zn,b._result=m}}),e._status===Oe){var l=e;l._status=dt,l._result=i}}if(e._status===ar){var d=e._result;return d===void 0&&$(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
+
|
|
19
|
+
Your code should look like:
|
|
20
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
21
|
+
|
|
22
|
+
Did you accidentally put curly braces around the import?`,d),"default"in d||$(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
|
+
|
|
24
|
+
Your code should look like:
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,d),d.default}else throw e._result}function qn(e){var n={_status:Oe,_result:e},i={$$typeof:ne,_payload:n,_init:Gn};{var l,d;Object.defineProperties(i,{defaultProps:{configurable:!0,get:function(){return l},set:function(m){$("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),l=m,Object.defineProperty(i,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return d},set:function(m){$("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),d=m,Object.defineProperty(i,"propTypes",{enumerable:!0})}}})}return i}function Xn(e){e!=null&&e.$$typeof===ee?$("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?$("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&$("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&$("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var n={$$typeof:Y,render:e};{var i;Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(l){i=l,!e.name&&!e.displayName&&(e.displayName=l)}})}return n}var or;or=Symbol.for("react.module.reference");function ir(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===C||g||e===p||e===ae||e===oe||f||e===te||X||h||M||typeof e=="object"&&e!==null&&(e.$$typeof===ne||e.$$typeof===ee||e.$$typeof===T||e.$$typeof===F||e.$$typeof===Y||e.$$typeof===or||e.getModuleId!==void 0))}function Qn(e,n){ir(e)||$("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var i={$$typeof:ee,type:e,compare:n===void 0?null:n};{var l;Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(d){l=d,!e.name&&!e.displayName&&(e.displayName=d)}})}return i}function Z(){var e=W.current;return e===null&&$(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
+
2. You might be breaking the Rules of Hooks
|
|
28
|
+
3. You might have more than one copy of React in the same app
|
|
29
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function Jn(e){var n=Z();if(e._context!==void 0){var i=e._context;i.Consumer===e?$("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):i.Provider===e&&$("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e)}function Zn(e){var n=Z();return n.useState(e)}function ea(e,n,i){var l=Z();return l.useReducer(e,n,i)}function ta(e){var n=Z();return n.useRef(e)}function ra(e,n){var i=Z();return i.useEffect(e,n)}function na(e,n){var i=Z();return i.useInsertionEffect(e,n)}function aa(e,n){var i=Z();return i.useLayoutEffect(e,n)}function oa(e,n){var i=Z();return i.useCallback(e,n)}function ia(e,n){var i=Z();return i.useMemo(e,n)}function sa(e,n,i){var l=Z();return l.useImperativeHandle(e,n,i)}function ua(e,n){{var i=Z();return i.useDebugValue(e,n)}}function la(){var e=Z();return e.useTransition()}function ca(e){var n=Z();return n.useDeferredValue(e)}function fa(){var e=Z();return e.useId()}function da(e,n,i){var l=Z();return l.useSyncExternalStore(e,n,i)}var Le=0,sr,ur,lr,cr,fr,dr,pr;function vr(){}vr.__reactDisabledLog=!0;function pa(){{if(Le===0){sr=console.log,ur=console.info,lr=console.warn,cr=console.error,fr=console.group,dr=console.groupCollapsed,pr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:vr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Le++}}function va(){{if(Le--,Le===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:sr}),info:P({},e,{value:ur}),warn:P({},e,{value:lr}),error:P({},e,{value:cr}),group:P({},e,{value:fr}),groupCollapsed:P({},e,{value:dr}),groupEnd:P({},e,{value:pr})})}Le<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pt=L.ReactCurrentDispatcher,vt;function Ve(e,n,i){{if(vt===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);vt=l&&l[1]||""}return`
|
|
30
|
+
`+vt+e}}var yt=!1,He;{var ya=typeof WeakMap=="function"?WeakMap:Map;He=new ya}function yr(e,n){if(!e||yt)return"";{var i=He.get(e);if(i!==void 0)return i}var l;yt=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=pt.current,pt.current=null,pa();try{if(n){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Q){l=Q}Reflect.construct(e,[],b)}else{try{b.call()}catch(Q){l=Q}e.call(b.prototype)}}else{try{throw Error()}catch(Q){l=Q}e()}}catch(Q){if(Q&&l&&typeof Q.stack=="string"){for(var E=Q.stack.split(`
|
|
31
|
+
`),R=l.stack.split(`
|
|
32
|
+
`),D=E.length-1,K=R.length-1;D>=1&&K>=0&&E[D]!==R[K];)K--;for(;D>=1&&K>=0;D--,K--)if(E[D]!==R[K]){if(D!==1||K!==1)do if(D--,K--,K<0||E[D]!==R[K]){var N=`
|
|
33
|
+
`+E[D].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&He.set(e,N),N}while(D>=1&&K>=0);break}}}finally{yt=!1,pt.current=m,va(),Error.prepareStackTrace=d}var U=e?e.displayName||e.name:"",H=U?Ve(U):"";return typeof e=="function"&&He.set(e,H),H}function ga(e,n,i){return yr(e,!1)}function ha(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Be(e,n,i){if(e==null)return"";if(typeof e=="function")return yr(e,ha(e));if(typeof e=="string")return Ve(e);switch(e){case ae:return Ve("Suspense");case oe:return Ve("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Y:return ga(e.render);case ee:return Be(e.type,n,i);case ne:{var l=e,d=l._payload,m=l._init;try{return Be(m(d),n,i)}catch{}}}return""}var gr={},hr=L.ReactDebugCurrentFrame;function Ye(e){if(e){var n=e._owner,i=Be(e.type,e._source,n?n.type:null);hr.setExtraStackFrame(i)}else hr.setExtraStackFrame(null)}function ba(e,n,i,l,d){{var m=Function.call.bind(ke);for(var b in e)if(m(e,b)){var E=void 0;try{if(typeof e[b]!="function"){var R=Error((l||"React class")+": "+i+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}E=e[b](n,b,l,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){E=D}E&&!(E instanceof Error)&&(Ye(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).",l||"React class",i,b,typeof E),Ye(null)),E instanceof Error&&!(E.message in gr)&&(gr[E.message]=!0,Ye(d),$("Failed %s type: %s",i,E.message),Ye(null))}}}function Pe(e){if(e){var n=e._owner,i=Be(e.type,e._source,n?n.type:null);w(i)}else w(null)}var gt;gt=!1;function br(){if(q.current){var e=ce(q.current.type);if(e)return`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+e+"`."}return""}function ma(e){if(e!==void 0){var n=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
|
|
36
|
+
|
|
37
|
+
Check your code at `+n+":"+i+"."}return""}function $a(e){return e!=null?ma(e.__source):""}var mr={};function Ea(e){var n=br();if(!n){var i=typeof e=="string"?e:e.displayName||e.name;i&&(n=`
|
|
38
|
+
|
|
39
|
+
Check the top-level render call using <`+i+">.")}return n}function $r(e,n){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var i=Ea(n);if(!mr[i]){mr[i]=!0;var l="";e&&e._owner&&e._owner!==q.current&&(l=" It was passed a child from "+ce(e._owner.type)+"."),Pe(e),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,l),Pe(null)}}}function Er(e,n){if(typeof e=="object"){if(Ke(e))for(var i=0;i<e.length;i++){var l=e[i];Ee(l)&&$r(l,n)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var d=z(e);if(typeof d=="function"&&d!==e.entries)for(var m=d.call(e),b;!(b=m.next()).done;)Ee(b.value)&&$r(b.value,n)}}}function Pr(e){{var n=e.type;if(n==null||typeof n=="string")return;var i;if(typeof n=="function")i=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===Y||n.$$typeof===ee))i=n.propTypes;else return;if(i){var l=ce(n);ba(i,e.props,"prop",l,e)}else if(n.PropTypes!==void 0&&!gt){gt=!0;var d=ce(n);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pa(e){{for(var n=Object.keys(e.props),i=0;i<n.length;i++){var l=n[i];if(l!=="children"&&l!=="key"){Pe(e),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),Pe(null);break}}e.ref!==null&&(Pe(e),$("Invalid attribute `ref` supplied to `React.Fragment`."),Pe(null))}}function Tr(e,n,i){var l=ir(e);if(!l){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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=$a(n);m?d+=m:d+=br();var b;e===null?b="null":Ke(e)?b="array":e!==void 0&&e.$$typeof===u?(b="<"+(ce(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,$("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,d)}var E=An.apply(this,arguments);if(E==null)return E;if(l)for(var R=2;R<arguments.length;R++)Er(arguments[R],e);return e===y?Pa(E):Pr(E),E}var _r=!1;function Ta(e){var n=Tr.bind(null,e);return n.type=e,_r||(_r=!0,le("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(n,"type",{enumerable:!1,get:function(){return le("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n}function _a(e,n,i){for(var l=jn.apply(this,arguments),d=2;d<arguments.length;d++)Er(arguments[d],l.type);return Pr(l),l}function wa(e,n){var i=G.transition;G.transition={};var l=G.transition;G.transition._updatedFibers=new Set;try{e()}finally{if(G.transition=i,i===null&&l._updatedFibers){var d=l._updatedFibers.size;d>10&&le("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."),l._updatedFibers.clear()}}}var wr=!1,ze=null;function Sa(e){if(ze===null)try{var n=("require"+Math.random()).slice(0,7),i=t&&t[n];ze=i.call(t,"timers").setImmediate}catch{ze=function(d){wr===!1&&(wr=!0,typeof MessageChannel>"u"&&$("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 m=new MessageChannel;m.port1.onmessage=d,m.port2.postMessage(void 0)}}return ze(e)}var Te=0,Sr=!1;function Ra(e){{var n=Te;Te++,O.current===null&&(O.current=[]);var i=O.isBatchingLegacy,l;try{if(O.isBatchingLegacy=!0,l=e(),!i&&O.didScheduleLegacyUpdate){var d=O.current;d!==null&&(O.didScheduleLegacyUpdate=!1,mt(d))}}catch(U){throw Ge(n),U}finally{O.isBatchingLegacy=i}if(l!==null&&typeof l=="object"&&typeof l.then=="function"){var m=l,b=!1,E={then:function(U,H){b=!0,m.then(function(Q){Ge(n),Te===0?ht(Q,U,H):U(Q)},function(Q){Ge(n),H(Q)})}};return!Sr&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){b||(Sr=!0,$("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 () => ...);"))}),E}else{var R=l;if(Ge(n),Te===0){var D=O.current;D!==null&&(mt(D),O.current=null);var K={then:function(U,H){O.current===null?(O.current=[],ht(R,U,H)):U(R)}};return K}else{var N={then:function(U,H){U(R)}};return N}}}}function Ge(e){e!==Te-1&&$("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Te=e}function ht(e,n,i){{var l=O.current;if(l!==null)try{mt(l),Sa(function(){l.length===0?(O.current=null,n(e)):ht(e,n,i)})}catch(d){i(d)}else n(e)}}var bt=!1;function mt(e){if(!bt){bt=!0;var n=0;try{for(;n<e.length;n++){var i=e[n];do i=i(!0);while(i!==null)}e.length=0}catch(l){throw e=e.slice(n+1),l}finally{bt=!1}}}var Ca=Tr,ka=_a,Oa=Ta,La={map:We,forEach:Vn,count:Wn,toArray:Hn,only:Bn};r.Children=La,r.Component=S,r.Fragment=y,r.Profiler=C,r.PureComponent=J,r.StrictMode=p,r.Suspense=ae,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,r.cloneElement=ka,r.createContext=Yn,r.createElement=Ca,r.createFactory=Oa,r.createRef=Cn,r.forwardRef=Xn,r.isValidElement=Ee,r.lazy=qn,r.memo=Qn,r.startTransition=wa,r.unstable_act=Ra,r.useCallback=oa,r.useContext=Jn,r.useDebugValue=ua,r.useDeferredValue=ca,r.useEffect=ra,r.useId=fa,r.useImperativeHandle=sa,r.useInsertionEffect=na,r.useLayoutEffect=aa,r.useMemo=ia,r.useReducer=ea,r.useRef=ta,r.useState=Zn,r.useSyncExternalStore=da,r.useTransition=la,r.version=a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(we,we.exports)),we.exports}process.env.NODE_ENV==="production"?Xe.exports=Or():Xe.exports=Lr();var k=Xe.exports;const se=_e(k);function Tt(t){var r,a,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(a=Tt(t[r]))&&(u&&(u+=" "),u+=a);else for(r in t)t[r]&&(u&&(u+=" "),u+=r);return u}function xr(){for(var t,r,a=0,u="";a<arguments.length;)(t=arguments[a++])&&(r=Tt(t))&&(u&&(u+=" "),u+=r);return u}const Qe=typeof document<"u"?se.useLayoutEffect:()=>{};function fe(t){const r=k.useRef(null);return Qe(()=>{r.current=t},[t]),k.useCallback((...a)=>{const u=r.current;return u(...a)},[])}let _t=new Map;function Dr(t,r){if(t===r)return t;let a=_t.get(t);if(a)return a(r),r;let u=_t.get(r);return u?(u(t),t):r}function Mr(...t){return(...r)=>{for(let a of t)typeof a=="function"&&a(...r)}}function de(...t){let r={...t[0]};for(let a=1;a<t.length;a++){let u=t[a];for(let c in u){let y=r[c],p=u[c];typeof y=="function"&&typeof p=="function"&&c[0]==="o"&&c[1]==="n"&&c.charCodeAt(2)>=65&&c.charCodeAt(2)<=90?r[c]=Mr(y,p):(c==="className"||c==="UNSAFE_className")&&typeof y=="string"&&typeof p=="string"?r[c]=xr(y,p):c==="id"&&y&&p?r.id=Dr(y,p):r[c]=p!==void 0?p:y}}return r}const Fr=new Set(["id"]),Ar=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ir=new Set(["href","target","rel","download","ping","referrerPolicy"]),jr=/^(data-.*)$/;function Kr(t,r={}){let{labelable:a,isLink:u,propNames:c}=r,y={};for(const p in t)Object.prototype.hasOwnProperty.call(t,p)&&(Fr.has(p)||a&&Ar.has(p)||u&&Ir.has(p)||c!=null&&c.has(p)||jr.test(p))&&(y[p]=t[p]);return y}function pe(t){if(Nr())t.focus({preventScroll:!0});else{let r=Ur(t);t.focus(),Wr(r)}}let xe=null;function Nr(){if(xe==null){xe=!1;try{var t=document.createElement("div");t.focus({get preventScroll(){return xe=!0,!0}})}catch{}}return xe}function Ur(t){for(var r=t.parentNode,a=[],u=document.scrollingElement||document.documentElement;r instanceof HTMLElement&&r!==u;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&a.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return u instanceof HTMLElement&&a.push({element:u,scrollTop:u.scrollTop,scrollLeft:u.scrollLeft}),a}function Wr(t){for(let{element:r,scrollTop:a,scrollLeft:u}of t)r.scrollTop=a,r.scrollLeft=u}function De(t){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(a=>t.test(a.brand)))||t.test(window.navigator.userAgent)}function Je(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function Se(){return Je(/^Mac/i)}function Vr(){return Je(/^iPhone/i)}function wt(){return Je(/^iPad/i)||Se()&&navigator.maxTouchPoints>1}function St(){return Vr()||wt()}function Hr(){return De(/AppleWebKit/i)&&!Br()}function Br(){return De(/Chrome/i)}function Rt(){return De(/Android/i)}function Yr(){return De(/Firefox/i)}function Re(t,r,a=!0){var u,c;let{metaKey:y,ctrlKey:p,altKey:C,shiftKey:T}=r;Yr()&&(!((u=window.event)===null||u===void 0||(c=u.type)===null||c===void 0)&&c.startsWith("key"))&&t.target==="_blank"&&(Se()?y=!0:p=!0);let F=Hr()&&Se()&&!wt()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:y,ctrlKey:p,altKey:C,shiftKey:T}):new MouseEvent("click",{metaKey:y,ctrlKey:p,altKey:C,shiftKey:T,bubbles:!0,cancelable:!0});Re.isOpening=a,pe(t),t.dispatchEvent(F),Re.isOpening=!1}Re.isOpening=!1;let he=new Map,Ze=new Set;function Ct(){if(typeof window>"u")return;let t=a=>{let u=he.get(a.target);u||(u=new Set,he.set(a.target,u),a.target.addEventListener("transitioncancel",r)),u.add(a.propertyName)},r=a=>{let u=he.get(a.target);if(u&&(u.delete(a.propertyName),u.size===0&&(a.target.removeEventListener("transitioncancel",r),he.delete(a.target)),he.size===0)){for(let c of Ze)c();Ze.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Ct():document.addEventListener("DOMContentLoaded",Ct));function kt(t){requestAnimationFrame(()=>{he.size===0?t():Ze.add(t)})}function zr(){let t=k.useRef(new Map),r=k.useCallback((c,y,p,C)=>{let T=C!=null&&C.once?(...F)=>{t.current.delete(p),p(...F)}:p;t.current.set(p,{type:y,eventTarget:c,fn:T,options:C}),c.addEventListener(y,p,C)},[]),a=k.useCallback((c,y,p,C)=>{var T;let F=((T=t.current.get(p))===null||T===void 0?void 0:T.fn)||p;c.removeEventListener(y,F,C),t.current.delete(p)},[]),u=k.useCallback(()=>{t.current.forEach((c,y)=>{a(c.eventTarget,c.type,y,c.options)})},[a]);return k.useEffect(()=>u,[u]),{addGlobalListener:r,removeGlobalListener:a,removeAllGlobalListeners:u}}function Ot(t,r){Qe(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref.current=null}})}function et(t){return t.mozInputSource===0&&t.isTrusted?!0:Rt()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Gr(t){return!Rt()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function qr(t,r,a){let u=k.useRef(r),c=fe(()=>{a&&a(u.current)});k.useEffect(()=>{var y;let p=t==null||(y=t.current)===null||y===void 0?void 0:y.form;return p==null||p.addEventListener("reset",c),()=>{p==null||p.removeEventListener("reset",c)}},[t,c])}function Xr(t,r){return r.get?r.get.call(t):r.value}function Lt(t,r,a){if(!r.has(t))throw new TypeError("attempted to "+a+" private field on non-instance");return r.get(t)}function Qr(t,r){var a=Lt(t,r,"get");return Xr(t,a)}function Jr(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Zr(t,r,a){Jr(t,r),r.set(t,a)}function en(t,r,a){if(r.set)r.set.call(t,a);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=a}}function xt(t,r,a){var u=Lt(t,r,"set");return en(t,u,a),a}let be="default",tt="",Me=new WeakMap;function Dt(t){St()?(be==="default"&&(tt=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),be="disabled"):(t instanceof HTMLElement||t instanceof SVGElement)&&(Me.set(t,t.style.userSelect),t.style.userSelect="none")}function Fe(t){if(St()){if(be!=="disabled")return;be="restoring",setTimeout(()=>{kt(()=>{be==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=tt||""),tt="",be="default")})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Me.has(t)){let r=Me.get(t);t.style.userSelect==="none"&&(t.style.userSelect=r),t.getAttribute("style")===""&&t.removeAttribute("style"),Me.delete(t)}}const Mt=se.createContext(null);Mt.displayName="PressResponderContext";function tn(t){let r=k.useContext(Mt);if(r){let{register:a,...u}=r;t=de(u,t),a()}return Ot(r,t.ref),t}var Ae=new WeakMap;class Ie{continuePropagation(){xt(this,Ae,!1)}get shouldStopPropagation(){return Qr(this,Ae)}constructor(r,a,u){Zr(this,Ae,{writable:!0,value:void 0}),xt(this,Ae,!0),this.type=r,this.pointerType=a,this.target=u.currentTarget,this.shiftKey=u.shiftKey,this.metaKey=u.metaKey,this.ctrlKey=u.ctrlKey,this.altKey=u.altKey}}const Ft=Symbol("linkClicked");function rn(t){let{onPress:r,onPressChange:a,onPressStart:u,onPressEnd:c,onPressUp:y,isDisabled:p,isPressed:C,preventFocusOnPress:T,shouldCancelOnPointerExit:F,allowTextSelectionOnPress:Y,ref:ae,...oe}=tn(t),[ee,ne]=k.useState(!1),te=k.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:B,removeAllGlobalListeners:re}=zr(),z=fe((s,w)=>{let X=te.current;if(p||X.didFirePressStart)return;let h=!0;if(X.isTriggeringEvent=!0,u){let M=new Ie("pressstart",w,s);u(M),h=M.shouldStopPropagation}return a&&a(!0),X.isTriggeringEvent=!1,X.didFirePressStart=!0,ne(!0),h}),W=fe((s,w,X=!0)=>{let h=te.current;if(!h.didFirePressStart)return;h.ignoreClickAfterPress=!0,h.didFirePressStart=!1,h.isTriggeringEvent=!0;let M=!0;if(c){let f=new Ie("pressend",w,s);c(f),M=f.shouldStopPropagation}if(a&&a(!1),ne(!1),r&&X&&!p){let f=new Ie("press",w,s);r(f),M&&(M=f.shouldStopPropagation)}return h.isTriggeringEvent=!1,M}),G=fe((s,w)=>{let X=te.current;if(!p){if(y){X.isTriggeringEvent=!0;let h=new Ie("pressup",w,s);return y(h),X.isTriggeringEvent=!1,h.shouldStopPropagation}return!0}}),O=fe(s=>{let w=te.current;w.isPressed&&(w.isOverTarget&&W(ue(w.target,s),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,re(),Y||Fe(w.target))}),q=fe(s=>{F&&O(s)}),ie=k.useMemo(()=>{let s=te.current,w={onKeyDown(h){if(nt(h.nativeEvent,h.currentTarget)&&h.currentTarget.contains(h.target)){It(h.target,h.key)&&h.preventDefault();let M=!0;!s.isPressed&&!h.repeat&&(s.target=h.currentTarget,s.isPressed=!0,M=z(h,"keyboard"),B(document,"keyup",X,!1)),M&&h.stopPropagation(),h.metaKey&&Se()&&s.metaKeyEvents.set(h.key,h.nativeEvent)}else h.key==="Meta"&&(s.metaKeyEvents=new Map)},onKeyUp(h){nt(h.nativeEvent,h.currentTarget)&&!h.repeat&&h.currentTarget.contains(h.target)&&G(ue(s.target,h),"keyboard")},onClick(h){if(!(h&&!h.currentTarget.contains(h.target))&&h&&h.button===0&&!s.isTriggeringEvent&&!Re.isOpening){let M=!0;if(p&&h.preventDefault(),!s.ignoreClickAfterPress&&!s.ignoreEmulatedMouseEvents&&!s.isPressed&&(s.pointerType==="virtual"||et(h.nativeEvent))){!p&&!T&&pe(h.currentTarget);let f=z(h,"virtual"),g=G(h,"virtual"),L=W(h,"virtual");M=f&&g&&L}s.ignoreEmulatedMouseEvents=!1,s.ignoreClickAfterPress=!1,M&&h.stopPropagation()}}},X=h=>{var M;if(s.isPressed&&nt(h,s.target)){var f;It(h.target,h.key)&&h.preventDefault();let g=h.target,L=W(ue(s.target,h),"keyboard",s.target.contains(g));re(),L&&h.stopPropagation(),h.key!=="Enter"&&rt(s.target)&&s.target.contains(g)&&!h[Ft]&&(h[Ft]=!0,Re(s.target,h,!1)),s.isPressed=!1,(f=s.metaKeyEvents)===null||f===void 0||f.delete(h.key)}else if(h.key==="Meta"&&(!((M=s.metaKeyEvents)===null||M===void 0)&&M.size)){let g=s.metaKeyEvents;s.metaKeyEvents=null;for(let L of g.values())s.target.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){w.onPointerDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if(Gr(g.nativeEvent)){s.pointerType="virtual";return}at(g.currentTarget)&&g.preventDefault(),s.pointerType=g.pointerType;let L=!0;s.isPressed||(s.isPressed=!0,s.isOverTarget=!0,s.activePointerId=g.pointerId,s.target=g.currentTarget,!p&&!T&&pe(g.currentTarget),Y||Dt(s.target),L=z(g,s.pointerType),B(document,"pointermove",h,!1),B(document,"pointerup",M,!1),B(document,"pointercancel",f,!1)),L&&g.stopPropagation()},w.onMouseDown=g=>{g.currentTarget.contains(g.target)&&g.button===0&&(at(g.currentTarget)&&g.preventDefault(),g.stopPropagation())},w.onPointerUp=g=>{!g.currentTarget.contains(g.target)||s.pointerType==="virtual"||g.button===0&&me(g,g.currentTarget)&&G(g,s.pointerType||g.pointerType)};let h=g=>{g.pointerId===s.activePointerId&&(me(g,s.target)?s.isOverTarget||(s.isOverTarget=!0,z(ue(s.target,g),s.pointerType)):s.isOverTarget&&(s.isOverTarget=!1,W(ue(s.target,g),s.pointerType,!1),q(g)))},M=g=>{g.pointerId===s.activePointerId&&s.isPressed&&g.button===0&&(me(g,s.target)?W(ue(s.target,g),s.pointerType):s.isOverTarget&&W(ue(s.target,g),s.pointerType,!1),s.isPressed=!1,s.isOverTarget=!1,s.activePointerId=null,s.pointerType=null,re(),Y||Fe(s.target))},f=g=>{O(g)};w.onDragStart=g=>{g.currentTarget.contains(g.target)&&O(g)}}else{w.onMouseDown=f=>{if(f.button!==0||!f.currentTarget.contains(f.target))return;if(at(f.currentTarget)&&f.preventDefault(),s.ignoreEmulatedMouseEvents){f.stopPropagation();return}s.isPressed=!0,s.isOverTarget=!0,s.target=f.currentTarget,s.pointerType=et(f.nativeEvent)?"virtual":"mouse",!p&&!T&&pe(f.currentTarget),z(f,s.pointerType)&&f.stopPropagation(),B(document,"mouseup",h,!1)},w.onMouseEnter=f=>{if(!f.currentTarget.contains(f.target))return;let g=!0;s.isPressed&&!s.ignoreEmulatedMouseEvents&&(s.isOverTarget=!0,g=z(f,s.pointerType)),g&&f.stopPropagation()},w.onMouseLeave=f=>{if(!f.currentTarget.contains(f.target))return;let g=!0;s.isPressed&&!s.ignoreEmulatedMouseEvents&&(s.isOverTarget=!1,g=W(f,s.pointerType,!1),q(f)),g&&f.stopPropagation()},w.onMouseUp=f=>{f.currentTarget.contains(f.target)&&!s.ignoreEmulatedMouseEvents&&f.button===0&&G(f,s.pointerType||"mouse")};let h=f=>{if(f.button===0){if(s.isPressed=!1,re(),s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}me(f,s.target)?W(ue(s.target,f),s.pointerType):s.isOverTarget&&W(ue(s.target,f),s.pointerType,!1),s.isOverTarget=!1}};w.onTouchStart=f=>{if(!f.currentTarget.contains(f.target))return;let g=nn(f.nativeEvent);if(!g)return;s.activePointerId=g.identifier,s.ignoreEmulatedMouseEvents=!0,s.isOverTarget=!0,s.isPressed=!0,s.target=f.currentTarget,s.pointerType="touch",!p&&!T&&pe(f.currentTarget),Y||Dt(s.target),z(f,s.pointerType)&&f.stopPropagation(),B(window,"scroll",M,!0)},w.onTouchMove=f=>{if(!f.currentTarget.contains(f.target))return;if(!s.isPressed){f.stopPropagation();return}let g=At(f.nativeEvent,s.activePointerId),L=!0;g&&me(g,f.currentTarget)?s.isOverTarget||(s.isOverTarget=!0,L=z(f,s.pointerType)):s.isOverTarget&&(s.isOverTarget=!1,L=W(f,s.pointerType,!1),q(f)),L&&f.stopPropagation()},w.onTouchEnd=f=>{if(!f.currentTarget.contains(f.target))return;if(!s.isPressed){f.stopPropagation();return}let g=At(f.nativeEvent,s.activePointerId),L=!0;g&&me(g,f.currentTarget)?(G(f,s.pointerType),L=W(f,s.pointerType)):s.isOverTarget&&(L=W(f,s.pointerType,!1)),L&&f.stopPropagation(),s.isPressed=!1,s.activePointerId=null,s.isOverTarget=!1,s.ignoreEmulatedMouseEvents=!0,Y||Fe(s.target),re()},w.onTouchCancel=f=>{f.currentTarget.contains(f.target)&&(f.stopPropagation(),s.isPressed&&O(f))};let M=f=>{s.isPressed&&f.target.contains(s.target)&&O({currentTarget:s.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=f=>{f.currentTarget.contains(f.target)&&O(f)}}return w},[B,p,T,re,Y,O,q,W,z,G]);return k.useEffect(()=>()=>{Y||Fe(te.current.target)},[Y]),{isPressed:C||ee,pressProps:de(oe,ie)}}function rt(t){return t.tagName==="A"&&t.hasAttribute("href")}function nt(t,r){const{key:a,code:u}=t,c=r,y=c.getAttribute("role");return(a==="Enter"||a===" "||a==="Spacebar"||u==="Space")&&!(c instanceof HTMLInputElement&&!jt(c,a)||c instanceof HTMLTextAreaElement||c.isContentEditable)&&!((y==="link"||!y&&rt(c))&&a!=="Enter")}function nn(t){const{targetTouches:r}=t;return r.length>0?r[0]:null}function At(t,r){const a=t.changedTouches;for(let u=0;u<a.length;u++){const c=a[u];if(c.identifier===r)return c}return null}function ue(t,r){return{currentTarget:t,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function an(t){let r=t.width/2||t.radiusX||0,a=t.height/2||t.radiusY||0;return{top:t.clientY-a,right:t.clientX+r,bottom:t.clientY+a,left:t.clientX-r}}function on(t,r){return!(t.left>r.right||r.left>t.right||t.top>r.bottom||r.top>t.bottom)}function me(t,r){let a=r.getBoundingClientRect(),u=an(t);return on(a,u)}function at(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function It(t,r){return t instanceof HTMLInputElement?!jt(t,r):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!rt(t)}const sn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jt(t,r){return t.type==="checkbox"||t.type==="radio"?r===" ":sn.has(t.type)}class un{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,a){this.nativeEvent=a,this.target=a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget,this.bubbles=a.bubbles,this.cancelable=a.cancelable,this.defaultPrevented=a.defaultPrevented,this.eventPhase=a.eventPhase,this.isTrusted=a.isTrusted,this.timeStamp=a.timeStamp,this.type=r}}function Kt(t){let r=k.useRef({isFocused:!1,observer:null});Qe(()=>{const u=r.current;return()=>{u.observer&&(u.observer.disconnect(),u.observer=null)}},[]);let a=fe(u=>{t==null||t(u)});return k.useCallback(u=>{if(u.target instanceof HTMLButtonElement||u.target instanceof HTMLInputElement||u.target instanceof HTMLTextAreaElement||u.target instanceof HTMLSelectElement){r.current.isFocused=!0;let c=u.target,y=p=>{r.current.isFocused=!1,c.disabled&&a(new un("blur",p)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};c.addEventListener("focusout",y,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&c.disabled){r.current.observer.disconnect();let p=c===document.activeElement?null:document.activeElement;c.dispatchEvent(new FocusEvent("blur",{relatedTarget:p})),c.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:p}))}}),r.current.observer.observe(c,{attributes:!0,attributeFilter:["disabled"]})}},[a])}function ln(t){let{isDisabled:r,onFocus:a,onBlur:u,onFocusChange:c}=t;const y=k.useCallback(T=>{if(T.target===T.currentTarget)return u&&u(T),c&&c(!1),!0},[u,c]),p=Kt(y),C=k.useCallback(T=>{T.target===T.currentTarget&&document.activeElement===T.target&&(a&&a(T),c&&c(!0),p(T))},[c,a,p]);return{focusProps:{onFocus:!r&&(a||c||u)?C:void 0,onBlur:!r&&(u||c)?y:void 0}}}let Ce=null,cn=new Set,Nt=!1,ve=!1,ot=!1;function it(t,r){for(let a of cn)a(t,r)}function fn(t){return!(t.metaKey||!Se()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ut(t){ve=!0,fn(t)&&(Ce="keyboard",it("keyboard",t))}function $e(t){Ce="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(ve=!0,it("pointer",t))}function dn(t){et(t)&&(ve=!0,Ce="virtual")}function pn(t){t.target===window||t.target===document||(!ve&&!ot&&(Ce="virtual",it("virtual",t)),ve=!1,ot=!1)}function vn(){ve=!1,ot=!0}function Wt(){if(typeof window>"u"||Nt)return;let t=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ve=!0,t.apply(this,arguments)},document.addEventListener("keydown",Ut,!0),document.addEventListener("keyup",Ut,!0),document.addEventListener("click",dn,!0),window.addEventListener("focus",pn,!0),window.addEventListener("blur",vn,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",$e,!0),document.addEventListener("pointermove",$e,!0),document.addEventListener("pointerup",$e,!0)):(document.addEventListener("mousedown",$e,!0),document.addEventListener("mousemove",$e,!0),document.addEventListener("mouseup",$e,!0)),Nt=!0}typeof document<"u"&&(document.readyState!=="loading"?Wt():document.addEventListener("DOMContentLoaded",Wt));function yn(){return Ce}function gn(t){let{isDisabled:r,onBlurWithin:a,onFocusWithin:u,onFocusWithinChange:c}=t,y=k.useRef({isFocusWithin:!1}),p=k.useCallback(F=>{y.current.isFocusWithin&&!F.currentTarget.contains(F.relatedTarget)&&(y.current.isFocusWithin=!1,a&&a(F),c&&c(!1))},[a,c,y]),C=Kt(p),T=k.useCallback(F=>{!y.current.isFocusWithin&&document.activeElement===F.target&&(u&&u(F),c&&c(!0),y.current.isFocusWithin=!0,C(F))},[u,c,C]);return r?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:T,onBlur:p}}}function Vt(t){if(!t)return;let r=!0;return a=>{let u={...a,preventDefault(){a.preventDefault()},isDefaultPrevented(){return a.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){r=!1}};t(u),r&&a.stopPropagation()}}function hn(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Vt(t.onKeyDown),onKeyUp:Vt(t.onKeyUp)}}}function bn(t){if(yn()==="virtual"){let r=document.activeElement;kt(()=>{document.activeElement===r&&document.contains(t)&&pe(t)})}else pe(t)}function mn(t,r){return r.some(a=>a.contains(t))}class st{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,a,u){let c=this.fastMap.get(a??null),y=new Ht({scopeRef:r});c.addChild(y),y.parent=c,this.fastMap.set(r,y),u&&(y.nodeToRestore=u)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(r===null)return;let a=this.fastMap.get(r),u=a.parent;for(let y of this.traverse())y!==a&&a.nodeToRestore&&y.nodeToRestore&&a.scopeRef.current&&mn(y.nodeToRestore,a.scopeRef.current)&&(y.nodeToRestore=a.nodeToRestore);let c=a.children;u.removeChild(a),c.size>0&&c.forEach(y=>u.addChild(y)),this.fastMap.delete(a.scopeRef)}*traverse(r=this.root){if(r.scopeRef!=null&&(yield r),r.children.size>0)for(let a of r.children)yield*this.traverse(a)}clone(){let r=new st;for(let a of this.traverse())r.addTreeNode(a.scopeRef,a.parent.scopeRef,a.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Ht({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ht{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}new st;let $n=se.createContext(null);function En(t){let r=k.useContext($n)||{};Ot(r,t);let{ref:a,...u}=r;return u}function Pn(t,r){let{focusProps:a}=ln(t),{keyboardProps:u}=hn(t),c=de(a,u),y=En(r),p=t.isDisabled?{}:y,C=k.useRef(t.autoFocus);return k.useEffect(()=>{C.current&&r.current&&bn(r.current),C.current=!1},[r]),{focusableProps:de({...c,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},p)}}function Tn(t,r,a){let{isDisabled:u=!1,isRequired:c=!1,isReadOnly:y=!1,value:p,name:C,children:T,"aria-label":F,"aria-labelledby":Y,validationState:ae="valid",isInvalid:oe}=t,ee=O=>{O.stopPropagation(),r.setSelected(O.target.checked)},ne=T!=null,te=F!=null||Y!=null;!ne&&!te&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:B,isPressed:re}=rn({isDisabled:u}),{focusableProps:z}=Pn(t,a),W=de(B,z),G=Kr(t,{labelable:!0});return qr(a,r.isSelected,r.setSelected),{inputProps:de(G,{"aria-invalid":oe||ae==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":y||void 0,"aria-required":c||void 0,onChange:ee,disabled:u,...p==null?{}:{value:p},name:C,type:"checkbox",...W}),isSelected:r.isSelected,isPressed:re,isDisabled:u,isReadOnly:y,isInvalid:oe||ae==="invalid"}}const Bt={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function _n(t={}){let{style:r,isFocusable:a}=t,[u,c]=k.useState(!1),{focusWithinProps:y}=gn({isDisabled:!a,onFocusWithinChange:C=>c(C)}),p=k.useMemo(()=>u?r:r?{...Bt,...r}:Bt,[u]);return{visuallyHiddenProps:{...y,style:p}}}function wn(t){let{children:r,elementType:a="div",isFocusable:u,style:c,...y}=t,{visuallyHiddenProps:p}=_n(t);return se.createElement(a,de(y,p),r)}function Sn(t,r,a){let{inputProps:u,isSelected:c,isPressed:y,isDisabled:p,isReadOnly:C}=Tn(t,r,a);return{inputProps:{...u,role:"switch",checked:c},isSelected:c,isPressed:y,isDisabled:p,isReadOnly:C}}const Yt={Primary:"#e26014",Grey:"#dddddd"};function Rn(t,r,a){const u=t!==void 0,[c,y]=k.useState(t||r);let p=u?t:c;return[p,T=>{a&&(Object.is(p,T)||a(T)),u||y(T)}]}zt.defaultProps={defaultOn:!1,isDisabled:!1};function zt(t){let r=k.useRef(null),[a,u]=Rn(t.isOn,t.defaultOn,t.onChange),c={isSelected:a,setSelected:u,toggle:()=>u(!a)},{inputProps:y}=Sn(t,c,r);return se.createElement("label",{"data-on":a||void 0,"data-disabled":t.isDisabled||void 0,style:{display:"flex",alignItems:"center",opacity:t.isDisabled?.4:1}},se.createElement(wn,null,se.createElement("input",{...y,ref:r})),se.createElement("div",{style:{position:"relative",width:50,height:26,borderRadius:50,backgroundColor:c.isSelected?Yt.Primary:Yt.Grey,cursor:t.isDisabled?"not-allowed":"pointer"}},se.createElement("div",{style:{position:"absolute",width:22,height:22,borderRadius:22,backgroundColor:"white",top:2,left:c.isSelected?26:2,transition:"left .2s ease"}})))}ge.Switch=zt,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@protonradio/proton-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./dist/proton-ui.umd.js",
|
|
6
|
+
"module": "./dist/proton-ui.es.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/proton-ui.es.js",
|
|
10
|
+
"require": "./dist/proton-ui.umd.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"preview": "vite preview",
|
|
17
|
+
"storybook": "storybook dev -p 6006",
|
|
18
|
+
"build-storybook": "storybook build",
|
|
19
|
+
"test": "jest"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"author": "",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-aria": "^3.29.1",
|
|
29
|
+
"react-dom": "^18.2.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@storybook/addon-essentials": "^7.5.2",
|
|
33
|
+
"@storybook/addon-interactions": "^7.5.2",
|
|
34
|
+
"@storybook/addon-links": "^7.5.2",
|
|
35
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
36
|
+
"@storybook/blocks": "^7.5.2",
|
|
37
|
+
"@storybook/react": "^7.5.2",
|
|
38
|
+
"@storybook/react-vite": "^7.5.2",
|
|
39
|
+
"@storybook/testing-library": "^0.2.2",
|
|
40
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
41
|
+
"@testing-library/react": "^14.0.0",
|
|
42
|
+
"@testing-library/user-event": "^14.5.1",
|
|
43
|
+
"@types/jest": "^29.5.7",
|
|
44
|
+
"jest": "^29.7.0",
|
|
45
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
46
|
+
"lightningcss": "^1.22.0",
|
|
47
|
+
"prop-types": "^15.8.1",
|
|
48
|
+
"react-docgen-typescript": "^2.2.2",
|
|
49
|
+
"storybook": "^7.5.2",
|
|
50
|
+
"ts-jest": "^29.1.1",
|
|
51
|
+
"ts-node": "^10.9.1",
|
|
52
|
+
"vite": "^4.5.0"
|
|
53
|
+
}
|
|
54
|
+
}
|