@starasia/progress 1.0.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 +57 -0
- package/dist/Progress.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/progress.es.js +1174 -0
- package/dist/progress.umd.js +400 -0
- package/dist/types.d.ts +34 -0
- package/package.json +44 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
(function(m,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(m=typeof globalThis<"u"?globalThis:m||self,S(m.Progress={},m.React))})(this,function(m,S){"use strict";var G={exports:{}},D={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.development.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 or;function jr(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){var k=S,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),R=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),tr=Symbol.iterator,Wr="@@iterator";function Yr(r){if(r===null||typeof r!="object")return null;var a=tr&&r[tr]||r[Wr];return typeof a=="function"?a:null}var x=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(r){{for(var a=arguments.length,o=new Array(a>1?a-1:0),e=1;e<a;e++)o[e-1]=arguments[e];$r("error",r,o)}}function $r(r,a,o){{var e=x.ReactDebugCurrentFrame,t=e.getStackAddendum();t!==""&&(a+="%s",o=o.concat([t]));var i=o.map(function(s){return String(s)});i.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,i)}}var Lr=!1,Nr=!1,Mr=!1,Vr=!1,Ur=!1,ir;ir=Symbol.for("react.module.reference");function Br(r){return!!(typeof r=="string"||typeof r=="function"||r===E||r===N||Ur||r===P||r===O||r===p||Vr||r===M||Lr||Nr||Mr||typeof r=="object"&&r!==null&&(r.$$typeof===_||r.$$typeof===h||r.$$typeof===W||r.$$typeof===R||r.$$typeof===g||r.$$typeof===ir||r.getModuleId!==void 0))}function Jr(r,a,o){var e=r.displayName;if(e)return e;var t=a.displayName||a.name||"";return t!==""?o+"("+t+")":o}function ur(r){return r.displayName||"Context"}function y(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case w:return"Portal";case N:return"Profiler";case P:return"StrictMode";case O:return"Suspense";case p:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case R:var a=r;return ur(a)+".Consumer";case W:var o=r;return ur(o._context)+".Provider";case g:return Jr(r,r.render,"ForwardRef");case h:var e=r.displayName||null;return e!==null?e:y(r.type)||"Memo";case _:{var t=r,i=t._payload,s=t._init;try{return y(s(i))}catch{return null}}}return null}var T=Object.assign,Y=0,lr,cr,gr,dr,fr,pr,br;function vr(){}vr.__reactDisabledLog=!0;function Gr(){{if(Y===0){lr=console.log,cr=console.info,gr=console.warn,dr=console.error,fr=console.group,pr=console.groupCollapsed,br=console.groupEnd;var r={configurable:!0,enumerable:!0,value:vr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Y++}}function Kr(){{if(Y--,Y===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},r,{value:lr}),info:T({},r,{value:cr}),warn:T({},r,{value:gr}),error:T({},r,{value:dr}),group:T({},r,{value:fr}),groupCollapsed:T({},r,{value:pr}),groupEnd:T({},r,{value:br})})}Y<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=x.ReactCurrentDispatcher,q;function V(r,a,o){{if(q===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);q=e&&e[1]||""}return`
|
|
10
|
+
`+q+r}}var z=!1,U;{var qr=typeof WeakMap=="function"?WeakMap:Map;U=new qr}function yr(r,a){if(!r||z)return"";{var o=U.get(r);if(o!==void 0)return o}var e;z=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=K.current,K.current=null,Gr();try{if(a){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(f){e=f}Reflect.construct(r,[],s)}else{try{s.call()}catch(f){e=f}r.call(s.prototype)}}else{try{throw Error()}catch(f){e=f}r()}}catch(f){if(f&&e&&typeof f.stack=="string"){for(var n=f.stack.split(`
|
|
11
|
+
`),d=e.stack.split(`
|
|
12
|
+
`),u=n.length-1,l=d.length-1;u>=1&&l>=0&&n[u]!==d[l];)l--;for(;u>=1&&l>=0;u--,l--)if(n[u]!==d[l]){if(u!==1||l!==1)do if(u--,l--,l<0||n[u]!==d[l]){var v=`
|
|
13
|
+
`+n[u].replace(" at new "," at ");return r.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",r.displayName)),typeof r=="function"&&U.set(r,v),v}while(u>=1&&l>=0);break}}}finally{z=!1,K.current=i,Kr(),Error.prepareStackTrace=t}var A=r?r.displayName||r.name:"",C=A?V(A):"";return typeof r=="function"&&U.set(r,C),C}function zr(r,a,o){return yr(r,!1)}function Xr(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function B(r,a,o){if(r==null)return"";if(typeof r=="function")return yr(r,Xr(r));if(typeof r=="string")return V(r);switch(r){case O:return V("Suspense");case p:return V("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case g:return zr(r.render);case h:return B(r.type,a,o);case _:{var e=r,t=e._payload,i=e._init;try{return B(i(t),a,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,mr={},kr=x.ReactDebugCurrentFrame;function J(r){if(r){var a=r._owner,o=B(r.type,r._source,a?a.type:null);kr.setExtraStackFrame(o)}else kr.setExtraStackFrame(null)}function Hr(r,a,o,e,t){{var i=Function.call.bind($);for(var s in r)if(i(r,s)){var n=void 0;try{if(typeof r[s]!="function"){var d=Error((e||"React class")+": "+o+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}n=r[s](a,s,e,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){n=u}n&&!(n instanceof Error)&&(J(t),c("%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).",e||"React class",o,s,typeof n),J(null)),n instanceof Error&&!(n.message in mr)&&(mr[n.message]=!0,J(t),c("Failed %s type: %s",o,n.message),J(null))}}}var Zr=Array.isArray;function X(r){return Zr(r)}function Qr(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,o=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return o}}function ra(r){try{return hr(r),!1}catch{return!0}}function hr(r){return""+r}function wr(r){if(ra(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qr(r)),hr(r)}var L=x.ReactCurrentOwner,aa={key:!0,ref:!0,__self:!0,__source:!0},Er,Rr,H;H={};function oa(r){if($.call(r,"ref")){var a=Object.getOwnPropertyDescriptor(r,"ref").get;if(a&&a.isReactWarning)return!1}return r.ref!==void 0}function ea(r){if($.call(r,"key")){var a=Object.getOwnPropertyDescriptor(r,"key").get;if(a&&a.isReactWarning)return!1}return r.key!==void 0}function na(r,a){if(typeof r.ref=="string"&&L.current&&a&&L.current.stateNode!==a){var o=y(L.current.type);H[o]||(c('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',y(L.current.type),r.ref),H[o]=!0)}}function sa(r,a){{var o=function(){Er||(Er=!0,c("%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)",a))};o.isReactWarning=!0,Object.defineProperty(r,"key",{get:o,configurable:!0})}}function ta(r,a){{var o=function(){Rr||(Rr=!0,c("%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)",a))};o.isReactWarning=!0,Object.defineProperty(r,"ref",{get:o,configurable:!0})}}var ia=function(r,a,o,e,t,i,s){var n={$$typeof:b,type:r,key:a,ref:o,props:s,_owner:i};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:e}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function ua(r,a,o,e,t){{var i,s={},n=null,d=null;o!==void 0&&(wr(o),n=""+o),ea(a)&&(wr(a.key),n=""+a.key),oa(a)&&(d=a.ref,na(a,t));for(i in a)$.call(a,i)&&!aa.hasOwnProperty(i)&&(s[i]=a[i]);if(r&&r.defaultProps){var u=r.defaultProps;for(i in u)s[i]===void 0&&(s[i]=u[i])}if(n||d){var l=typeof r=="function"?r.displayName||r.name||"Unknown":r;n&&sa(s,l),d&&ta(s,l)}return ia(r,n,d,t,e,L.current,s)}}var Z=x.ReactCurrentOwner,_r=x.ReactDebugCurrentFrame;function j(r){if(r){var a=r._owner,o=B(r.type,r._source,a?a.type:null);_r.setExtraStackFrame(o)}else _r.setExtraStackFrame(null)}var Q;Q=!1;function rr(r){return typeof r=="object"&&r!==null&&r.$$typeof===b}function Tr(){{if(Z.current){var r=y(Z.current.type);if(r)return`
|
|
14
|
+
|
|
15
|
+
Check the render method of \``+r+"`."}return""}}function la(r){{if(r!==void 0){var a=r.fileName.replace(/^.*[\\\/]/,""),o=r.lineNumber;return`
|
|
16
|
+
|
|
17
|
+
Check your code at `+a+":"+o+"."}return""}}var Cr={};function ca(r){{var a=Tr();if(!a){var o=typeof r=="string"?r:r.displayName||r.name;o&&(a=`
|
|
18
|
+
|
|
19
|
+
Check the top-level render call using <`+o+">.")}return a}}function Sr(r,a){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var o=ca(a);if(Cr[o])return;Cr[o]=!0;var e="";r&&r._owner&&r._owner!==Z.current&&(e=" It was passed a child from "+y(r._owner.type)+"."),j(r),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,e),j(null)}}function Pr(r,a){{if(typeof r!="object")return;if(X(r))for(var o=0;o<r.length;o++){var e=r[o];rr(e)&&Sr(e,a)}else if(rr(r))r._store&&(r._store.validated=!0);else if(r){var t=Yr(r);if(typeof t=="function"&&t!==r.entries)for(var i=t.call(r),s;!(s=i.next()).done;)rr(s.value)&&Sr(s.value,a)}}}function ga(r){{var a=r.type;if(a==null||typeof a=="string")return;var o;if(typeof a=="function")o=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===g||a.$$typeof===h))o=a.propTypes;else return;if(o){var e=y(a);Hr(o,r.props,"prop",e,r)}else if(a.PropTypes!==void 0&&!Q){Q=!0;var t=y(a);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",t||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function da(r){{for(var a=Object.keys(r.props),o=0;o<a.length;o++){var e=a[o];if(e!=="children"&&e!=="key"){j(r),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e),j(null);break}}r.ref!==null&&(j(r),c("Invalid attribute `ref` supplied to `React.Fragment`."),j(null))}}var Or={};function xr(r,a,o,e,t,i){{var s=Br(r);if(!s){var n="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(n+=" 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 d=la(t);d?n+=d:n+=Tr();var u;r===null?u="null":X(r)?u="array":r!==void 0&&r.$$typeof===b?(u="<"+(y(r.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,n)}var l=ua(r,a,o,t,i);if(l==null)return l;if(s){var v=a.children;if(v!==void 0)if(e)if(X(v)){for(var A=0;A<v.length;A++)Pr(v[A],r);Object.freeze&&Object.freeze(v)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(v,r)}if($.call(a,"key")){var C=y(r),f=Object.keys(a).filter(function(ma){return ma!=="key"}),ar=f.length>0?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[C+ar]){var ya=f.length>0?"{"+f.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
20
|
+
let props = %s;
|
|
21
|
+
<%s {...props} />
|
|
22
|
+
React keys must be passed directly to JSX without using spread:
|
|
23
|
+
let props = %s;
|
|
24
|
+
<%s key={someKey} {...props} />`,ar,C,ya,C),Or[C+ar]=!0}}return r===E?da(l):ga(l),l}}function fa(r,a,o){return xr(r,a,o,!0)}function pa(r,a,o){return xr(r,a,o,!1)}var ba=pa,va=fa;D.Fragment=E,D.jsx=ba,D.jsxs=va}()),D}var F={};/**
|
|
25
|
+
* @license React
|
|
26
|
+
* react-jsx-runtime.production.min.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var er;function Ar(){if(er)return F;er=1;var k=S,b=Symbol.for("react.element"),w=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,P=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N={key:!0,ref:!0,__self:!0,__source:!0};function W(R,g,O){var p,h={},_=null,M=null;O!==void 0&&(_=""+O),g.key!==void 0&&(_=""+g.key),g.ref!==void 0&&(M=g.ref);for(p in g)E.call(g,p)&&!N.hasOwnProperty(p)&&(h[p]=g[p]);if(R&&R.defaultProps)for(p in g=R.defaultProps,g)h[p]===void 0&&(h[p]=g[p]);return{$$typeof:b,type:R,key:_,ref:M,props:h,_owner:P.current}}return F.Fragment=w,F.jsx=W,F.jsxs=W,F}process.env.NODE_ENV==="production"?G.exports=Ar():G.exports=jr();var I=G.exports;const Dr=`@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
33
|
+
|
|
34
|
+
:root {
|
|
35
|
+
/* gray */
|
|
36
|
+
--starasia-ui-color-gray-50: #f9fafb;
|
|
37
|
+
--starasia-ui-color-gray-100: #f3f4f6;
|
|
38
|
+
--starasia-ui-color-gray-200: #e5e7eb;
|
|
39
|
+
--starasia-ui-color-gray-300: #d1d5db;
|
|
40
|
+
--starasia-ui-color-gray-400: #9ca3af;
|
|
41
|
+
--starasia-ui-color-gray-500: #6b7280;
|
|
42
|
+
--starasia-ui-color-gray-600: #4b5563;
|
|
43
|
+
--starasia-ui-color-gray-700: #374151;
|
|
44
|
+
--starasia-ui-color-gray-800: #1f2937;
|
|
45
|
+
--starasia-ui-color-gray-900: #111827;
|
|
46
|
+
--starasia-ui-color-gray-950: #030712;
|
|
47
|
+
|
|
48
|
+
/* red */
|
|
49
|
+
--starasia-ui-color-red-50: #fef2f2;
|
|
50
|
+
--starasia-ui-color-red-100: #fee2e2;
|
|
51
|
+
--starasia-ui-color-red-200: #fecaca;
|
|
52
|
+
--starasia-ui-color-red-300: #fca5a5;
|
|
53
|
+
--starasia-ui-color-red-400: #f87171;
|
|
54
|
+
--starasia-ui-color-red-500: #ef4444;
|
|
55
|
+
--starasia-ui-color-red-600: rgb(220, 38, 38);
|
|
56
|
+
--starasia-ui-color-red-700: #b91c1c;
|
|
57
|
+
--starasia-ui-color-red-800: #991b1b;
|
|
58
|
+
--starasia-ui-color-red-900: #7f1d1d;
|
|
59
|
+
--starasia-ui-color-red-950: #450a0a;
|
|
60
|
+
|
|
61
|
+
/* orange */
|
|
62
|
+
--starasia-ui-color-orange-50: #fff7ed;
|
|
63
|
+
--starasia-ui-color-orange-100: #ffedd5;
|
|
64
|
+
--starasia-ui-color-orange-200: #fed7aa;
|
|
65
|
+
--starasia-ui-color-orange-300: #fdba74;
|
|
66
|
+
--starasia-ui-color-orange-400: #fb923c;
|
|
67
|
+
--starasia-ui-color-orange-500: #f97316;
|
|
68
|
+
--starasia-ui-color-orange-600: #ea580c;
|
|
69
|
+
--starasia-ui-color-orange-700: #c2410c;
|
|
70
|
+
--starasia-ui-color-orange-800: #9a3412;
|
|
71
|
+
--starasia-ui-color-orange-900: #7c2d12;
|
|
72
|
+
--starasia-ui-color-orange-950: #431407;
|
|
73
|
+
|
|
74
|
+
/* yellow */
|
|
75
|
+
--starasia-ui-color-yellow-50: #fefce8;
|
|
76
|
+
--starasia-ui-color-yellow-100: #fef9c3;
|
|
77
|
+
--starasia-ui-color-yellow-200: #fef08a;
|
|
78
|
+
--starasia-ui-color-yellow-300: #fde047;
|
|
79
|
+
--starasia-ui-color-yellow-400: #facc15;
|
|
80
|
+
--starasia-ui-color-yellow-500: #eab308;
|
|
81
|
+
--starasia-ui-color-yellow-600: rgb(202, 138, 4);
|
|
82
|
+
--starasia-ui-color-yellow-700: #a16207;
|
|
83
|
+
--starasia-ui-color-yellow-800: #854d0e;
|
|
84
|
+
--starasia-ui-color-yellow-900: #713f12;
|
|
85
|
+
--starasia-ui-color-yellow-950: #422006;
|
|
86
|
+
|
|
87
|
+
/* green */
|
|
88
|
+
--starasia-ui-color-green-50: #f0fdf4;
|
|
89
|
+
--starasia-ui-color-green-100: #dcfce7;
|
|
90
|
+
--starasia-ui-color-green-200: #bbf7d0;
|
|
91
|
+
--starasia-ui-color-green-300: #86efac;
|
|
92
|
+
--starasia-ui-color-green-400: #4ade80;
|
|
93
|
+
--starasia-ui-color-green-500: #22c55e;
|
|
94
|
+
--starasia-ui-color-green-600: #16a34a;
|
|
95
|
+
--starasia-ui-color-green-700: #15803d;
|
|
96
|
+
--starasia-ui-color-green-800: #166534;
|
|
97
|
+
--starasia-ui-color-green-900: #14532d;
|
|
98
|
+
--starasia-ui-color-green-950: #052e16;
|
|
99
|
+
|
|
100
|
+
/* blue */
|
|
101
|
+
--starasia-ui-color-blue-50: #eff6ff;
|
|
102
|
+
--starasia-ui-color-blue-100: #dbeafe;
|
|
103
|
+
--starasia-ui-color-blue-200: #bfdbfe;
|
|
104
|
+
--starasia-ui-color-blue-300: #93c5fd;
|
|
105
|
+
--starasia-ui-color-blue-400: #60a5fa;
|
|
106
|
+
--starasia-ui-color-blue-500: #3b82f6;
|
|
107
|
+
--starasia-ui-color-blue-600: #2563eb;
|
|
108
|
+
--starasia-ui-color-blue-700: #1d4ed8;
|
|
109
|
+
--starasia-ui-color-blue-800: #1e40af;
|
|
110
|
+
--starasia-ui-color-blue-900: #1e3a8a;
|
|
111
|
+
--starasia-ui-color-blue-950: #172554;
|
|
112
|
+
|
|
113
|
+
/* purple */
|
|
114
|
+
--starasia-ui-color-purple-50: #f5f3ff;
|
|
115
|
+
--starasia-ui-color-purple-100: #f3e8ff;
|
|
116
|
+
--starasia-ui-color-purple-200: #e9d5ff;
|
|
117
|
+
--starasia-ui-color-purple-300: #d8b4fe;
|
|
118
|
+
--starasia-ui-color-purple-400: #c084fc;
|
|
119
|
+
--starasia-ui-color-purple-500: #a855f7;
|
|
120
|
+
--starasia-ui-color-purple-600: #9333ea;
|
|
121
|
+
--starasia-ui-color-purple-700: #7e22ce;
|
|
122
|
+
--starasia-ui-color-purple-800: #6b21a8;
|
|
123
|
+
--starasia-ui-color-purple-900: #581c87;
|
|
124
|
+
--starasia-ui-color-purple-950: #3b0764;
|
|
125
|
+
|
|
126
|
+
/* height */
|
|
127
|
+
--starasia-ui-h-1: 0.25rem; /* 4px */
|
|
128
|
+
--starasia-ui-h-2: 0.5rem; /* 8px */
|
|
129
|
+
|
|
130
|
+
/* radius */
|
|
131
|
+
--starasia-ui-radii-lg: 0.5rem; /* 8px */
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.starasia-progress-border {
|
|
135
|
+
background-color: var(--starasia-ui-color-blue-100);
|
|
136
|
+
width: 100%;
|
|
137
|
+
border-radius: var(--starasia-ui-radii-lg);
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
}
|
|
140
|
+
.starasia-progress-border-sm {
|
|
141
|
+
height: var(--starasia-ui-h-1);
|
|
142
|
+
}
|
|
143
|
+
.starasia-progress-border-md {
|
|
144
|
+
height: var(--starasia-ui-h-2);
|
|
145
|
+
}
|
|
146
|
+
.starasia-progress-value {
|
|
147
|
+
height: 100%;
|
|
148
|
+
background-color: var(--starasia-ui-color-blue-800);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.starasia-progress-label {
|
|
152
|
+
font-family: "Poppins", serif;
|
|
153
|
+
font-size: var(--starasia-ui-fontSizes-md, 14px);
|
|
154
|
+
font-style: normal;
|
|
155
|
+
font-weight: var(--starasia-ui-fontWeights-medium, 400);
|
|
156
|
+
line-height: normal;
|
|
157
|
+
letter-spacing: 0.21px;
|
|
158
|
+
margin-top: var(--starasia-ui-spacing-xs, 4px);
|
|
159
|
+
color: var(--starasia-ui-color-gray-500);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* starasia progress COLOR */
|
|
163
|
+
.starasia-progress-background-gray-50 {
|
|
164
|
+
background-color: var(--starasia-ui-color-gray-50) !important;
|
|
165
|
+
}
|
|
166
|
+
.starasia-progress-background-gray-100 {
|
|
167
|
+
background-color: var(--starasia-ui-color-gray-100) !important;
|
|
168
|
+
}
|
|
169
|
+
.starasia-progress-background-gray-200 {
|
|
170
|
+
background-color: var(--starasia-ui-color-gray-200) !important;
|
|
171
|
+
}
|
|
172
|
+
.starasia-progress-background-gray-300 {
|
|
173
|
+
background-color: var(--starasia-ui-color-gray-300) !important;
|
|
174
|
+
}
|
|
175
|
+
.starasia-progress-background-gray-400 {
|
|
176
|
+
background-color: var(--starasia-ui-color-gray-400) !important;
|
|
177
|
+
}
|
|
178
|
+
.starasia-progress-background-gray-500 {
|
|
179
|
+
background-color: var(--starasia-ui-color-gray-500) !important;
|
|
180
|
+
}
|
|
181
|
+
.starasia-progress-background-gray-600 {
|
|
182
|
+
background-color: var(--starasia-ui-color-gray-600) !important;
|
|
183
|
+
}
|
|
184
|
+
.starasia-progress-background-gray-700 {
|
|
185
|
+
background-color: var(--starasia-ui-color-gray-700) !important;
|
|
186
|
+
}
|
|
187
|
+
.starasia-progress-background-gray-800 {
|
|
188
|
+
background-color: var(--starasia-ui-color-gray-800) !important;
|
|
189
|
+
}
|
|
190
|
+
.starasia-progress-background-gray-900 {
|
|
191
|
+
background-color: var(--starasia-ui-color-gray-900) !important;
|
|
192
|
+
}
|
|
193
|
+
.starasia-progress-background-gray-950 {
|
|
194
|
+
background-color: var(--starasia-ui-color-gray-950) !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.starasia-progress-background-red-50 {
|
|
198
|
+
background-color: var(--starasia-ui-color-red-50) !important;
|
|
199
|
+
}
|
|
200
|
+
.starasia-progress-background-red-100 {
|
|
201
|
+
background-color: var(--starasia-ui-color-red-100) !important;
|
|
202
|
+
}
|
|
203
|
+
.starasia-progress-background-red-200 {
|
|
204
|
+
background-color: var(--starasia-ui-color-red-200) !important;
|
|
205
|
+
}
|
|
206
|
+
.starasia-progress-background-red-300 {
|
|
207
|
+
background-color: var(--starasia-ui-color-red-300) !important;
|
|
208
|
+
}
|
|
209
|
+
.starasia-progress-background-red-400 {
|
|
210
|
+
background-color: var(--starasia-ui-color-red-400) !important;
|
|
211
|
+
}
|
|
212
|
+
.starasia-progress-background-red-500 {
|
|
213
|
+
background-color: var(--starasia-ui-color-red-500) !important;
|
|
214
|
+
}
|
|
215
|
+
.starasia-progress-background-red-600 {
|
|
216
|
+
background-color: var(--starasia-ui-color-red-600) !important;
|
|
217
|
+
}
|
|
218
|
+
.starasia-progress-background-red-700 {
|
|
219
|
+
background-color: var(--starasia-ui-color-red-700) !important;
|
|
220
|
+
}
|
|
221
|
+
.starasia-progress-background-red-800 {
|
|
222
|
+
background-color: var(--starasia-ui-color-red-800) !important;
|
|
223
|
+
}
|
|
224
|
+
.starasia-progress-background-red-900 {
|
|
225
|
+
background-color: var(--starasia-ui-color-red-900) !important;
|
|
226
|
+
}
|
|
227
|
+
.starasia-progress-background-red-950 {
|
|
228
|
+
background-color: var(--starasia-ui-color-red-950) !important;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.starasia-progress-background-orange-50 {
|
|
232
|
+
background-color: var(--starasia-ui-color-orange-50) !important;
|
|
233
|
+
}
|
|
234
|
+
.starasia-progress-background-orange-100 {
|
|
235
|
+
background-color: var(--starasia-ui-color-orange-100) !important;
|
|
236
|
+
}
|
|
237
|
+
.starasia-progress-background-orange-200 {
|
|
238
|
+
background-color: var(--starasia-ui-color-orange-200) !important;
|
|
239
|
+
}
|
|
240
|
+
.starasia-progress-background-orange-300 {
|
|
241
|
+
background-color: var(--starasia-ui-color-orange-300) !important;
|
|
242
|
+
}
|
|
243
|
+
.starasia-progress-background-orange-400 {
|
|
244
|
+
background-color: var(--starasia-ui-color-orange-400) !important;
|
|
245
|
+
}
|
|
246
|
+
.starasia-progress-background-orange-500 {
|
|
247
|
+
background-color: var(--starasia-ui-color-orange-500) !important;
|
|
248
|
+
}
|
|
249
|
+
.starasia-progress-background-orange-600 {
|
|
250
|
+
background-color: var(--starasia-ui-color-orange-600) !important;
|
|
251
|
+
}
|
|
252
|
+
.starasia-progress-background-orange-700 {
|
|
253
|
+
background-color: var(--starasia-ui-color-orange-700) !important;
|
|
254
|
+
}
|
|
255
|
+
.starasia-progress-background-orange-800 {
|
|
256
|
+
background-color: var(--starasia-ui-color-orange-800) !important;
|
|
257
|
+
}
|
|
258
|
+
.starasia-progress-background-orange-900 {
|
|
259
|
+
background-color: var(--starasia-ui-color-orange-900) !important;
|
|
260
|
+
}
|
|
261
|
+
.starasia-progress-background-orange-950 {
|
|
262
|
+
background-color: var(--starasia-ui-color-orange-950) !important;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.starasia-progress-background-yellow-50 {
|
|
266
|
+
background-color: var(--starasia-ui-color-yellow-50) !important;
|
|
267
|
+
}
|
|
268
|
+
.starasia-progress-background-yellow-100 {
|
|
269
|
+
background-color: var(--starasia-ui-color-yellow-100) !important;
|
|
270
|
+
}
|
|
271
|
+
.starasia-progress-background-yellow-200 {
|
|
272
|
+
background-color: var(--starasia-ui-color-yellow-200) !important;
|
|
273
|
+
}
|
|
274
|
+
.starasia-progress-background-yellow-300 {
|
|
275
|
+
background-color: var(--starasia-ui-color-yellow-300) !important;
|
|
276
|
+
}
|
|
277
|
+
.starasia-progress-background-yellow-400 {
|
|
278
|
+
background-color: var(--starasia-ui-color-yellow-400) !important;
|
|
279
|
+
}
|
|
280
|
+
.starasia-progress-background-yellow-500 {
|
|
281
|
+
background-color: var(--starasia-ui-color-yellow-500) !important;
|
|
282
|
+
}
|
|
283
|
+
.starasia-progress-background-yellow-600 {
|
|
284
|
+
background-color: var(--starasia-ui-color-yellow-600) !important;
|
|
285
|
+
}
|
|
286
|
+
.starasia-progress-background-yellow-700 {
|
|
287
|
+
background-color: var(--starasia-ui-color-yellow-700) !important;
|
|
288
|
+
}
|
|
289
|
+
.starasia-progress-background-yellow-800 {
|
|
290
|
+
background-color: var(--starasia-ui-color-yellow-800) !important;
|
|
291
|
+
}
|
|
292
|
+
.starasia-progress-background-yellow-900 {
|
|
293
|
+
background-color: var(--starasia-ui-color-yellow-900) !important;
|
|
294
|
+
}
|
|
295
|
+
.starasia-progress-background-yellow-950 {
|
|
296
|
+
background-color: var(--starasia-ui-color-yellow-950) !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.starasia-progress-background-green-50 {
|
|
300
|
+
background-color: var(--starasia-ui-color-green-50) !important;
|
|
301
|
+
}
|
|
302
|
+
.starasia-progress-background-green-100 {
|
|
303
|
+
background-color: var(--starasia-ui-color-green-100) !important;
|
|
304
|
+
}
|
|
305
|
+
.starasia-progress-background-green-200 {
|
|
306
|
+
background-color: var(--starasia-ui-color-green-200) !important;
|
|
307
|
+
}
|
|
308
|
+
.starasia-progress-background-green-300 {
|
|
309
|
+
background-color: var(--starasia-ui-color-green-300) !important;
|
|
310
|
+
}
|
|
311
|
+
.starasia-progress-background-green-400 {
|
|
312
|
+
background-color: var(--starasia-ui-color-green-400) !important;
|
|
313
|
+
}
|
|
314
|
+
.starasia-progress-background-green-500 {
|
|
315
|
+
background-color: var(--starasia-ui-color-green-500) !important;
|
|
316
|
+
}
|
|
317
|
+
.starasia-progress-background-green-600 {
|
|
318
|
+
background-color: var(--starasia-ui-color-green-600) !important;
|
|
319
|
+
}
|
|
320
|
+
.starasia-progress-background-green-700 {
|
|
321
|
+
background-color: var(--starasia-ui-color-green-700) !important;
|
|
322
|
+
}
|
|
323
|
+
.starasia-progress-background-green-800 {
|
|
324
|
+
background-color: var(--starasia-ui-color-green-800) !important;
|
|
325
|
+
}
|
|
326
|
+
.starasia-progress-background-green-900 {
|
|
327
|
+
background-color: var(--starasia-ui-color-green-900) !important;
|
|
328
|
+
}
|
|
329
|
+
.starasia-progress-background-green-950 {
|
|
330
|
+
background-color: var(--starasia-ui-color-green-950) !important;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.starasia-progress-background-blue-50 {
|
|
334
|
+
background-color: var(--starasia-ui-color-blue-50) !important;
|
|
335
|
+
}
|
|
336
|
+
.starasia-progress-background-blue-100 {
|
|
337
|
+
background-color: var(--starasia-ui-color-blue-100) !important;
|
|
338
|
+
}
|
|
339
|
+
.starasia-progress-background-blue-200 {
|
|
340
|
+
background-color: var(--starasia-ui-color-blue-200) !important;
|
|
341
|
+
}
|
|
342
|
+
.starasia-progress-background-blue-300 {
|
|
343
|
+
background-color: var(--starasia-ui-color-blue-300) !important;
|
|
344
|
+
}
|
|
345
|
+
.starasia-progress-background-blue-400 {
|
|
346
|
+
background-color: var(--starasia-ui-color-blue-400) !important;
|
|
347
|
+
}
|
|
348
|
+
.starasia-progress-background-blue-500 {
|
|
349
|
+
background-color: var(--starasia-ui-color-blue-500) !important;
|
|
350
|
+
}
|
|
351
|
+
.starasia-progress-background-blue-600 {
|
|
352
|
+
background-color: var(--starasia-ui-color-blue-600) !important;
|
|
353
|
+
}
|
|
354
|
+
.starasia-progress-background-blue-700 {
|
|
355
|
+
background-color: var(--starasia-ui-color-blue-700) !important;
|
|
356
|
+
}
|
|
357
|
+
.starasia-progress-background-blue-800 {
|
|
358
|
+
background-color: var(--starasia-ui-color-blue-800) !important;
|
|
359
|
+
}
|
|
360
|
+
.starasia-progress-background-blue-900 {
|
|
361
|
+
background-color: var(--starasia-ui-color-blue-900) !important;
|
|
362
|
+
}
|
|
363
|
+
.starasia-progress-background-blue-950 {
|
|
364
|
+
background-color: var(--starasia-ui-color-blue-950) !important;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.starasia-progress-background-purple-50 {
|
|
368
|
+
background-color: var(--starasia-ui-color-purple-50) !important;
|
|
369
|
+
}
|
|
370
|
+
.starasia-progress-background-purple-100 {
|
|
371
|
+
background-color: var(--starasia-ui-color-purple-100) !important;
|
|
372
|
+
}
|
|
373
|
+
.starasia-progress-background-purple-200 {
|
|
374
|
+
background-color: var(--starasia-ui-color-purple-200) !important;
|
|
375
|
+
}
|
|
376
|
+
.starasia-progress-background-purple-300 {
|
|
377
|
+
background-color: var(--starasia-ui-color-purple-300) !important;
|
|
378
|
+
}
|
|
379
|
+
.starasia-progress-background-purple-400 {
|
|
380
|
+
background-color: var(--starasia-ui-color-purple-400) !important;
|
|
381
|
+
}
|
|
382
|
+
.starasia-progress-background-purple-500 {
|
|
383
|
+
background-color: var(--starasia-ui-color-purple-500) !important;
|
|
384
|
+
}
|
|
385
|
+
.starasia-progress-background-purple-600 {
|
|
386
|
+
background-color: var(--starasia-ui-color-purple-600) !important;
|
|
387
|
+
}
|
|
388
|
+
.starasia-progress-background-purple-700 {
|
|
389
|
+
background-color: var(--starasia-ui-color-purple-700) !important;
|
|
390
|
+
}
|
|
391
|
+
.starasia-progress-background-purple-800 {
|
|
392
|
+
background-color: var(--starasia-ui-color-purple-800) !important;
|
|
393
|
+
}
|
|
394
|
+
.starasia-progress-background-purple-900 {
|
|
395
|
+
background-color: var(--starasia-ui-color-purple-900) !important;
|
|
396
|
+
}
|
|
397
|
+
.starasia-progress-background-purple-950 {
|
|
398
|
+
background-color: var(--starasia-ui-color-purple-950) !important;
|
|
399
|
+
}
|
|
400
|
+
`,nr="starasia-progress-styles";(k=>{if(!document.getElementById(nr)){const b=document.createElement("style");b.id=nr,b.textContent=k,document.head.appendChild(b)}})(Dr);const Fr=({value:k="10%",labelPosition:b="left",label:w,color:E,size:P="md"})=>I.jsxs("div",{children:[I.jsx("div",{className:`starasia-progress-border ${P==="md"?"starasia-progress-border-md":"starasia-progress-border-sm"}`,children:I.jsx("div",{className:`starasia-progress-value starasia-progress-background-${E}`,style:{width:k,backgroundColor:""}})}),w?typeof w=="string"?I.jsx("p",{className:"starasia-progress-label",style:{textAlign:b},children:w}):I.jsx("div",{className:"starasia-progress-label",style:{textAlign:b},children:w}):null]}),sr=[{name:"gray",colors:["gray-50","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900","gray-950"]},{name:"red",colors:["red-50","red-100","red-200","red-300","red-400","red-500","red-600","red-700","red-800","red-900","red-950"]},{name:"orange",colors:["orange-50","orange-100","orange-200","orange-300","orange-400","orange-500","orange-600","orange-700","orange-800","orange-900","orange-950"]},{name:"yellow",colors:["yellow-50","yellow-100","yellow-200","yellow-300","yellow-400","yellow-500","yellow-600","yellow-700","yellow-800","yellow-900","yellow-950"]},{name:"green",colors:["green-50","green-100","green-200","green-300","green-400","green-500","green-600","green-700","green-800","green-900","green-950"]},{name:"blue",colors:["blue-50","blue-100","blue-200","blue-300","blue-400","blue-500","blue-600","blue-700","blue-800","blue-900","blue-950"]},{name:"purple",colors:["purple-50","purple-100","purple-200","purple-300","purple-400","purple-500","purple-600","purple-700","purple-800","purple-900","purple-950"]}],Ir=sr.map(k=>k.colors).flat();m.ColorConstProgress=Ir,m.ColorSchemeGeneratorProgress=sr,m.Progress=Fr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare const arrProgress: readonly ["0%", "1%", "2%", "3%", "4%", "5%", "6%", "7%", "8%", "9%", "10%", "11%", "12%", "13%", "14%", "15%", "16%", "17%", "18%", "19%", "20%", "21%", "22%", "23%", "24%", "25%", "26%", "27%", "28%", "29%", "30%", "31%", "32%", "33%", "34%", "35%", "36%", "37%", "38%", "39%", "40%", "41%", "42%", "43%", "44%", "45%", "46%", "47%", "48%", "49%", "50%", "51%", "52%", "53%", "54%", "55%", "56%", "57%", "58%", "59%", "60%", "61%", "62%", "63%", "64%", "65%", "66%", "67%", "68%", "69%", "70%", "71%", "72%", "73%", "74%", "75%", "76%", "77%", "78%", "79%", "80%", "81%", "82%", "83%", "84%", "85%", "86%", "87%", "88%", "89%", "90%", "91%", "92%", "93%", "94%", "95%", "96%", "97%", "98%", "99%", "100%"];
|
|
3
|
+
export declare const ColorSchemeGeneratorProgress: readonly [{
|
|
4
|
+
readonly name: "gray";
|
|
5
|
+
readonly colors: readonly ["gray-50", "gray-100", "gray-200", "gray-300", "gray-400", "gray-500", "gray-600", "gray-700", "gray-800", "gray-900", "gray-950"];
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "red";
|
|
8
|
+
readonly colors: readonly ["red-50", "red-100", "red-200", "red-300", "red-400", "red-500", "red-600", "red-700", "red-800", "red-900", "red-950"];
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "orange";
|
|
11
|
+
readonly colors: readonly ["orange-50", "orange-100", "orange-200", "orange-300", "orange-400", "orange-500", "orange-600", "orange-700", "orange-800", "orange-900", "orange-950"];
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "yellow";
|
|
14
|
+
readonly colors: readonly ["yellow-50", "yellow-100", "yellow-200", "yellow-300", "yellow-400", "yellow-500", "yellow-600", "yellow-700", "yellow-800", "yellow-900", "yellow-950"];
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "green";
|
|
17
|
+
readonly colors: readonly ["green-50", "green-100", "green-200", "green-300", "green-400", "green-500", "green-600", "green-700", "green-800", "green-900", "green-950"];
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "blue";
|
|
20
|
+
readonly colors: readonly ["blue-50", "blue-100", "blue-200", "blue-300", "blue-400", "blue-500", "blue-600", "blue-700", "blue-800", "blue-900", "blue-950"];
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "purple";
|
|
23
|
+
readonly colors: readonly ["purple-50", "purple-100", "purple-200", "purple-300", "purple-400", "purple-500", "purple-600", "purple-700", "purple-800", "purple-900", "purple-950"];
|
|
24
|
+
}];
|
|
25
|
+
export declare const ColorConstProgress: ("gray-50" | "gray-100" | "gray-200" | "gray-300" | "gray-400" | "gray-500" | "gray-600" | "gray-700" | "gray-800" | "gray-900" | "gray-950" | "red-50" | "red-100" | "red-200" | "red-300" | "red-400" | "red-500" | "red-600" | "red-700" | "red-800" | "red-900" | "red-950" | "orange-50" | "orange-100" | "orange-200" | "orange-300" | "orange-400" | "orange-500" | "orange-600" | "orange-700" | "orange-800" | "orange-900" | "orange-950" | "yellow-50" | "yellow-100" | "yellow-200" | "yellow-300" | "yellow-400" | "yellow-500" | "yellow-600" | "yellow-700" | "yellow-800" | "yellow-900" | "yellow-950" | "green-50" | "green-100" | "green-200" | "green-300" | "green-400" | "green-500" | "green-600" | "green-700" | "green-800" | "green-900" | "green-950" | "blue-50" | "blue-100" | "blue-200" | "blue-300" | "blue-400" | "blue-500" | "blue-600" | "blue-700" | "blue-800" | "blue-900" | "blue-950" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "purple-950")[];
|
|
26
|
+
export type ColorProgress = (typeof ColorConstProgress)[number];
|
|
27
|
+
export interface IProgressProps {
|
|
28
|
+
value: (typeof arrProgress)[number];
|
|
29
|
+
labelPosition?: "left" | "center" | "right";
|
|
30
|
+
label?: string | ReactNode;
|
|
31
|
+
color?: ColorProgress;
|
|
32
|
+
size?: "sm" | "md";
|
|
33
|
+
}
|
|
34
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@starasia/progress",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Progress component for starasia UI",
|
|
5
|
+
"author": "Prawito Hudoro",
|
|
6
|
+
"main": "dist/progress.umd.js",
|
|
7
|
+
"module": "dist/progress.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/*.js",
|
|
11
|
+
"dist/*.d.ts",
|
|
12
|
+
"dist/*.map",
|
|
13
|
+
"dist/*.css"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite --config vite.config.ts --port 3000",
|
|
17
|
+
"build": "vite build --config vite.config.ts"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^20.11.5",
|
|
27
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
28
|
+
"tsconfig-paths": "^4.2.0",
|
|
29
|
+
"typescript": "^5.3.3",
|
|
30
|
+
"vite": "^5.0.11",
|
|
31
|
+
"vite-plugin-dts": "^3.7.1",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-dom": "^18.2.0",
|
|
34
|
+
"@types/react": "^18.2.55",
|
|
35
|
+
"@types/react-dom": "^18.2.19"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": ">=18.2.0",
|
|
42
|
+
"react-dom": ">=18.2.0"
|
|
43
|
+
}
|
|
44
|
+
}
|