- Created TypeScript configuration files for library and React applications. - Added ESLint configurations for library, React, and Storybook. - Implemented a basic Button component in the UI package. - Set up Vite for the docs development environment.
10 lines
8.6 KiB
JavaScript
10 lines
8.6 KiB
JavaScript
function $(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const u in n)if(u!=="default"&&!(u in t)){const s=Object.getOwnPropertyDescriptor(n,u);s&&Object.defineProperty(t,u,s.get?s:{enumerable:!0,get:()=>n[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tt(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,u.get?u:{enumerable:!0,get:function(){return t[n]}})}),r}var w={exports:{}},o={};/**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var v=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),x=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),g=Symbol.iterator;function B(t){return t===null||typeof t!="object"?null:(t=g&&t[g]||t["@@iterator"],typeof t=="function"?t:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,P={};function l(t,e,r){this.props=t,this.context=e,this.refs=P,this.updater=r||j}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function b(){}b.prototype=l.prototype;function m(t,e,r){this.props=t,this.context=e,this.refs=P,this.updater=r||j}var T=m.prototype=new b;T.constructor=m;S(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var i={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function d(t,e,r){var n=r.ref;return{$$typeof:v,type:t,key:e,ref:n!==void 0?n:null,props:r}}function W(t,e){return d(t.type,e,t.props)}function R(t){return typeof t=="object"&&t!==null&&t.$$typeof===v}function Q(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var A=/\/+/g;function _(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Q(""+t.key):e.toString(36)}function X(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function a(t,e,r,n,u){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var f=!1;if(t===null)f=!0;else switch(s){case"bigint":case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case v:case I:f=!0;break;case h:return f=t._init,a(f(t._payload),e,r,n,u)}}if(f)return u=u(t),f=n===""?"."+_(t,0):n,C(u)?(r="",f!=null&&(r=f.replace(A,"$&/")+"/"),a(u,e,r,"",function(N){return N})):u!=null&&(R(u)&&(u=W(u,r+(u.key==null||t&&t.key===u.key?"":(""+u.key).replace(A,"$&/")+"/")+f)),e.push(u)),1;f=0;var p=n===""?".":n+":";if(C(t))for(var c=0;c<t.length;c++)n=t[c],s=p+_(n,c),f+=a(n,e,r,s,u);else if(c=B(t),typeof c=="function")for(t=c.call(t),c=0;!(n=t.next()).done;)n=n.value,s=p+_(n,c++),f+=a(n,e,r,s,u);else if(s==="object"){if(typeof t.then=="function")return a(X(t),e,r,n,u);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return f}function y(t,e,r){if(t==null)return t;var n=[],u=0;return a(t,n,"","",function(s){return e.call(r,s,u++)}),n}function Z(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var O=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},J={map:y,forEach:function(t,e,r){y(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return y(t,function(){e++}),e},toArray:function(t){return y(t,function(e){return e})||[]},only:function(t){if(!R(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};o.Activity=K;o.Children=J;o.Component=l;o.Fragment=L;o.Profiler=D;o.PureComponent=m;o.StrictMode=k;o.Suspense=z;o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i;o.__COMPILER_RUNTIME={__proto__:null,c:function(t){return i.H.useMemoCache(t)}};o.cache=function(t){return function(){return t.apply(null,arguments)}};o.cacheSignal=function(){return null};o.cloneElement=function(t,e,r){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=S({},t.props),u=t.key;if(e!=null)for(s in e.key!==void 0&&(u=""+e.key),e)!H.call(e,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&e.ref===void 0||(n[s]=e[s]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var f=Array(s),p=0;p<s;p++)f[p]=arguments[p+2];n.children=f}return d(t.type,u,n)};o.createContext=function(t){return t={$$typeof:x,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:U,_context:t},t};o.createElement=function(t,e,r){var n,u={},s=null;if(e!=null)for(n in e.key!==void 0&&(s=""+e.key),e)H.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(u[n]=e[n]);var f=arguments.length-2;if(f===1)u.children=r;else if(1<f){for(var p=Array(f),c=0;c<f;c++)p[c]=arguments[c+2];u.children=p}if(t&&t.defaultProps)for(n in f=t.defaultProps,f)u[n]===void 0&&(u[n]=f[n]);return d(t,s,u)};o.createRef=function(){return{current:null}};o.forwardRef=function(t){return{$$typeof:q,render:t}};o.isValidElement=R;o.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:Z}};o.memo=function(t,e){return{$$typeof:G,type:t,compare:e===void 0?null:e}};o.startTransition=function(t){var e=i.T,r={};i.T=r;try{var n=t(),u=i.S;u!==null&&u(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(E,O)}catch(s){O(s)}finally{e!==null&&r.types!==null&&(e.types=r.types),i.T=e}};o.unstable_useCacheRefresh=function(){return i.H.useCacheRefresh()};o.use=function(t){return i.H.use(t)};o.useActionState=function(t,e,r){return i.H.useActionState(t,e,r)};o.useCallback=function(t,e){return i.H.useCallback(t,e)};o.useContext=function(t){return i.H.useContext(t)};o.useDebugValue=function(){};o.useDeferredValue=function(t,e){return i.H.useDeferredValue(t,e)};o.useEffect=function(t,e){return i.H.useEffect(t,e)};o.useEffectEvent=function(t){return i.H.useEffectEvent(t)};o.useId=function(){return i.H.useId()};o.useImperativeHandle=function(t,e,r){return i.H.useImperativeHandle(t,e,r)};o.useInsertionEffect=function(t,e){return i.H.useInsertionEffect(t,e)};o.useLayoutEffect=function(t,e){return i.H.useLayoutEffect(t,e)};o.useMemo=function(t,e){return i.H.useMemo(t,e)};o.useOptimistic=function(t,e){return i.H.useOptimistic(t,e)};o.useReducer=function(t,e,r){return i.H.useReducer(t,e,r)};o.useRef=function(t){return i.H.useRef(t)};o.useState=function(t){return i.H.useState(t)};o.useSyncExternalStore=function(t,e,r){return i.H.useSyncExternalStore(t,e,r)};o.useTransition=function(){return i.H.useTransition()};o.version="19.2.3";w.exports=o;var M=w.exports;const V=Y(M),et=$({__proto__:null,default:V},[M]);export{V as R,tt as a,et as b,F as c,Y as g,M as r};
|