diditui 0.0.1
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/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/diditui.d.ts +16 -0
- package/dist/diditui.js +3057 -0
- package/dist/diditui.umd.cjs +30 -0
- package/package.json +113 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
(function(D,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],q):(D=typeof globalThis<"u"?globalThis:D||self,q(D.diditui={},D.React))})(this,function(D,q){"use strict";var we={exports:{}},ee={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ze;function sr(){if(ze)return ee;ze=1;var r=q,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,p,m){var b,h={},x=null,P=null;m!==void 0&&(x=""+m),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(P=p.ref);for(b in p)a.call(p,b)&&!s.hasOwnProperty(b)&&(h[b]=p[b]);if(u&&u.defaultProps)for(b in p=u.defaultProps,p)h[b]===void 0&&(h[b]=p[b]);return{$$typeof:t,type:u,key:x,ref:P,props:h,_owner:c.current}}return ee.Fragment=n,ee.jsx=l,ee.jsxs=l,ee}var re={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ie;function lr(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var r=q,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),F=Symbol.iterator,j="@@iterator";function _(e){if(e===null||typeof e!="object")return null;var o=F&&e[F]||e[j];return typeof o=="function"?o:null}var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),d=1;d<o;d++)i[d-1]=arguments[d];fe("error",e,i)}}function fe(e,o,i){{var d=S.ReactDebugCurrentFrame,y=d.getStackAddendum();y!==""&&(o+="%s",i=i.concat([y]));var R=i.map(function(v){return String(v)});R.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,R)}}var oe=!1,pe=!1,be=!1,ge=!1,me=!1,X;X=Symbol.for("react.module.reference");function ae(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===s||me||e===c||e===m||e===b||ge||e===P||oe||pe||be||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===X||e.getModuleId!==void 0))}function ie(e,o,i){var d=e.displayName;if(d)return d;var y=o.displayName||o.name||"";return y!==""?i+"("+y+")":i}function w(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 a:return"Fragment";case n:return"Portal";case s:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var o=e;return w(o)+".Consumer";case l:var i=e;return w(i._context)+".Provider";case p:return ie(e,e.render,"ForwardRef");case h:var d=e.displayName||null;return d!==null?d:z(e.type)||"Memo";case x:{var y=e,R=y._payload,v=y._init;try{return z(v(R))}catch{return null}}}return null}var I=Object.assign,G=0,U,se,H,L,le,$,B;function Be(){}Be.__reactDisabledLog=!0;function Jr(){{if(G===0){U=console.log,se=console.info,H=console.warn,L=console.error,le=console.group,$=console.groupCollapsed,B=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function qr(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:U}),info:I({},e,{value:se}),warn:I({},e,{value:H}),error:I({},e,{value:L}),group:I({},e,{value:le}),groupCollapsed:I({},e,{value:$}),groupEnd:I({},e,{value:B})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=S.ReactCurrentDispatcher,_e;function ve(e,o,i){{if(_e===void 0)try{throw Error()}catch(y){var d=y.stack.trim().match(/\n( *(at )?)/);_e=d&&d[1]||""}return`
|
|
18
|
+
`+_e+e}}var ke=!1,he;{var Kr=typeof WeakMap=="function"?WeakMap:Map;he=new Kr}function Je(e,o){if(!e||ke)return"";{var i=he.get(e);if(i!==void 0)return i}var d;ke=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Ce.current,Ce.current=null,Jr();try{if(o){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(A){d=A}Reflect.construct(e,[],v)}else{try{v.call()}catch(A){d=A}e.call(v.prototype)}}else{try{throw Error()}catch(A){d=A}e()}}catch(A){if(A&&d&&typeof A.stack=="string"){for(var g=A.stack.split(`
|
|
19
|
+
`),O=d.stack.split(`
|
|
20
|
+
`),k=g.length-1,T=O.length-1;k>=1&&T>=0&&g[k]!==O[T];)T--;for(;k>=1&&T>=0;k--,T--)if(g[k]!==O[T]){if(k!==1||T!==1)do if(k--,T--,T<0||g[k]!==O[T]){var M=`
|
|
21
|
+
`+g[k].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&he.set(e,M),M}while(k>=1&&T>=0);break}}}finally{ke=!1,Ce.current=R,qr(),Error.prepareStackTrace=y}var Q=e?e.displayName||e.name:"",J=Q?ve(Q):"";return typeof e=="function"&&he.set(e,J),J}function Xr(e,o,i){return Je(e,!1)}function Hr(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ye(e,o,i){if(e==null)return"";if(typeof e=="function")return Je(e,Hr(e));if(typeof e=="string")return ve(e);switch(e){case m:return ve("Suspense");case b:return ve("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Xr(e.render);case h:return ye(e.type,o,i);case x:{var d=e,y=d._payload,R=d._init;try{return ye(R(y),o,i)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,qe={},Ke=S.ReactDebugCurrentFrame;function xe(e){if(e){var o=e._owner,i=ye(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(i)}else Ke.setExtraStackFrame(null)}function Zr(e,o,i,d,y){{var R=Function.call.bind(ce);for(var v in e)if(R(e,v)){var g=void 0;try{if(typeof e[v]!="function"){var O=Error((d||"React class")+": "+i+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[v](o,v,d,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){g=k}g&&!(g instanceof Error)&&(xe(y),E("%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).",d||"React class",i,v,typeof g),xe(null)),g instanceof Error&&!(g.message in qe)&&(qe[g.message]=!0,xe(y),E("Failed %s type: %s",i,g.message),xe(null))}}}var Qr=Array.isArray;function Se(e){return Qr(e)}function et(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function rt(e){try{return Xe(e),!1}catch{return!0}}function Xe(e){return""+e}function He(e){if(rt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(e)),Xe(e)}var ue=S.ReactCurrentOwner,tt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Qe,Te;Te={};function nt(e){if(ce.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function ot(e){if(ce.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function at(e,o){if(typeof e.ref=="string"&&ue.current&&o&&ue.current.stateNode!==o){var i=z(ue.current.type);Te[i]||(E('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',z(ue.current.type),e.ref),Te[i]=!0)}}function it(e,o){{var i=function(){Ze||(Ze=!0,E("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function st(e,o){{var i=function(){Qe||(Qe=!0,E("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var lt=function(e,o,i,d,y,R,v){var g={$$typeof:t,type:e,key:o,ref:i,props:v,_owner:R};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function ct(e,o,i,d,y){{var R,v={},g=null,O=null;i!==void 0&&(He(i),g=""+i),ot(o)&&(He(o.key),g=""+o.key),nt(o)&&(O=o.ref,at(o,y));for(R in o)ce.call(o,R)&&!tt.hasOwnProperty(R)&&(v[R]=o[R]);if(e&&e.defaultProps){var k=e.defaultProps;for(R in k)v[R]===void 0&&(v[R]=k[R])}if(g||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&it(v,T),O&&st(v,T)}return lt(e,g,O,y,d,ue.current,v)}}var Pe=S.ReactCurrentOwner,er=S.ReactDebugCurrentFrame;function Z(e){if(e){var o=e._owner,i=ye(e.type,e._source,o?o.type:null);er.setExtraStackFrame(i)}else er.setExtraStackFrame(null)}var je;je=!1;function Oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function rr(){{if(Pe.current){var e=z(Pe.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ut(e){return""}var tr={};function dt(e){{var o=rr();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+i+">.")}return o}}function nr(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=dt(o);if(tr[i])return;tr[i]=!0;var d="";e&&e._owner&&e._owner!==Pe.current&&(d=" It was passed a child from "+z(e._owner.type)+"."),Z(e),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,d),Z(null)}}function or(e,o){{if(typeof e!="object")return;if(Se(e))for(var i=0;i<e.length;i++){var d=e[i];Oe(d)&&nr(d,o)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var y=_(e);if(typeof y=="function"&&y!==e.entries)for(var R=y.call(e),v;!(v=R.next()).done;)Oe(v.value)&&nr(v.value,o)}}}function ft(e){{var o=e.type;if(o==null||typeof o=="string")return;var i;if(typeof o=="function")i=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===p||o.$$typeof===h))i=o.propTypes;else return;if(i){var d=z(o);Zr(i,e.props,"prop",d,e)}else if(o.PropTypes!==void 0&&!je){je=!0;var y=z(o);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pt(e){{for(var o=Object.keys(e.props),i=0;i<o.length;i++){var d=o[i];if(d!=="children"&&d!=="key"){Z(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),Z(null);break}}e.ref!==null&&(Z(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Z(null))}}var ar={};function ir(e,o,i,d,y,R){{var v=ae(e);if(!v){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" 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 O=ut();O?g+=O:g+=rr();var k;e===null?k="null":Se(e)?k="array":e!==void 0&&e.$$typeof===t?(k="<"+(z(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,g)}var T=ct(e,o,i,y,R);if(T==null)return T;if(v){var M=o.children;if(M!==void 0)if(d)if(Se(M)){for(var Q=0;Q<M.length;Q++)or(M[Q],e);Object.freeze&&Object.freeze(M)}else E("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 or(M,e)}if(ce.call(o,"key")){var J=z(e),A=Object.keys(o).filter(function(yt){return yt!=="key"}),Ae=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!ar[J+Ae]){var ht=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,Ae,J,ht,J),ar[J+Ae]=!0}}return e===a?pt(T):ft(T),T}}function bt(e,o,i){return ir(e,o,i,!0)}function gt(e,o,i){return ir(e,o,i,!1)}var mt=gt,vt=bt;re.Fragment=a,re.jsx=mt,re.jsxs=vt}()),re}process.env.NODE_ENV==="production"?we.exports=sr():we.exports=lr();var cr=we.exports;function Me(r){var t,n,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(t=0;t<c;t++)r[t]&&(n=Me(r[t]))&&(a&&(a+=" "),a+=n)}else for(n in r)r[n]&&(a&&(a+=" "),a+=n);return a}function ur(){for(var r,t,n=0,a="",c=arguments.length;n<c;n++)(r=arguments[n])&&(t=Me(r))&&(a&&(a+=" "),a+=t);return a}const Re="-";function dr(r){const t=pr(r),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=r;function c(l){const u=l.split(Re);return u[0]===""&&u.length!==1&&u.shift(),Fe(u,t)||fr(l)}function s(l,u){const p=n[l]||[];return u&&a[l]?[...p,...a[l]]:p}return{getClassGroupId:c,getConflictingClassGroupIds:s}}function Fe(r,t){var l;if(r.length===0)return t.classGroupId;const n=r[0],a=t.nextPart.get(n),c=a?Fe(r.slice(1),a):void 0;if(c)return c;if(t.validators.length===0)return;const s=r.join(Re);return(l=t.validators.find(({validator:u})=>u(s)))==null?void 0:l.classGroupId}const We=/^\[(.+)\]$/;function fr(r){if(We.test(r)){const t=We.exec(r)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function pr(r){const{theme:t,prefix:n}=r,a={nextPart:new Map,validators:[]};return gr(Object.entries(r.classGroups),n).forEach(([s,l])=>{Ee(l,a,s,t)}),a}function Ee(r,t,n,a){r.forEach(c=>{if(typeof c=="string"){const s=c===""?t:Ne(t,c);s.classGroupId=n;return}if(typeof c=="function"){if(br(c)){Ee(c(a),t,n,a);return}t.validators.push({validator:c,classGroupId:n});return}Object.entries(c).forEach(([s,l])=>{Ee(l,Ne(t,s),n,a)})})}function Ne(r,t){let n=r;return t.split(Re).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n}function br(r){return r.isThemeGetter}function gr(r,t){return t?r.map(([n,a])=>{const c=a.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,u])=>[t+l,u])):s);return[n,c]}):r}function mr(r){if(r<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;function c(s,l){n.set(s,l),t++,t>r&&(t=0,a=n,n=new Map)}return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=a.get(s))!==void 0)return c(s,l),l},set(s,l){n.has(s)?n.set(s,l):c(s,l)}}}const Ve="!";function vr(r){const{separator:t,experimentalParseClassName:n}=r,a=t.length===1,c=t[0],s=t.length;function l(u){const p=[];let m=0,b=0,h;for(let _=0;_<u.length;_++){let S=u[_];if(m===0){if(S===c&&(a||u.slice(_,_+s)===t)){p.push(u.slice(b,_)),b=_+s;continue}if(S==="/"){h=_;continue}}S==="["?m++:S==="]"&&m--}const x=p.length===0?u:u.substring(b),P=x.startsWith(Ve),F=P?x.substring(1):x,j=h&&h>b?h-b:void 0;return{modifiers:p,hasImportantModifier:P,baseClassName:F,maybePostfixModifierPosition:j}}return n?function(p){return n({className:p,parseClassName:l})}:l}function hr(r){if(r.length<=1)return r;const t=[];let n=[];return r.forEach(a=>{a[0]==="["?(t.push(...n.sort(),a),n=[]):n.push(a)}),t.push(...n.sort()),t}function yr(r){return{cache:mr(r.cacheSize),parseClassName:vr(r),...dr(r)}}const xr=/\s+/;function wr(r,t){const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:c}=t,s=new Set;return r.trim().split(xr).map(l=>{const{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:b}=n(l);let h=!!b,x=a(h?m.substring(0,b):m);if(!x){if(!h)return{isTailwindClass:!1,originalClassName:l};if(x=a(m),!x)return{isTailwindClass:!1,originalClassName:l};h=!1}const P=hr(u).join(":");return{isTailwindClass:!0,modifierId:p?P+Ve:P,classGroupId:x,originalClassName:l,hasPostfixModifier:h}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:u,classGroupId:p,hasPostfixModifier:m}=l,b=u+p;return s.has(b)?!1:(s.add(b),c(p,m).forEach(h=>s.add(u+h)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function Rr(){let r=0,t,n,a="";for(;r<arguments.length;)(t=arguments[r++])&&(n=Ge(t))&&(a&&(a+=" "),a+=n);return a}function Ge(r){if(typeof r=="string")return r;let t,n="";for(let a=0;a<r.length;a++)r[a]&&(t=Ge(r[a]))&&(n&&(n+=" "),n+=t);return n}function Er(r,...t){let n,a,c,s=l;function l(p){const m=t.reduce((b,h)=>h(b),r());return n=yr(m),a=n.cache.get,c=n.cache.set,s=u,u(p)}function u(p){const m=a(p);if(m)return m;const b=wr(p,n);return c(p,b),b}return function(){return s(Rr.apply(null,arguments))}}function C(r){const t=n=>n[r]||[];return t.isThemeGetter=!0,t}const Le=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),kr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function W(r){return Y(r)||_r.has(r)||Cr.test(r)}function N(r){return K(r,"length",Nr)}function Y(r){return!!r&&!Number.isNaN(Number(r))}function de(r){return K(r,"number",Y)}function te(r){return!!r&&Number.isInteger(Number(r))}function Or(r){return r.endsWith("%")&&Y(r.slice(0,-1))}function f(r){return Le.test(r)}function V(r){return kr.test(r)}const Ar=new Set(["length","size","percentage"]);function zr(r){return K(r,Ar,$e)}function Ir(r){return K(r,"position",$e)}const Mr=new Set(["image","url"]);function Fr(r){return K(r,Mr,Gr)}function Wr(r){return K(r,"",Vr)}function ne(){return!0}function K(r,t,n){const a=Le.exec(r);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):n(a[2]):!1}function Nr(r){return Sr.test(r)&&!Tr.test(r)}function $e(){return!1}function Vr(r){return Pr.test(r)}function Gr(r){return jr.test(r)}function Lr(){const r=C("colors"),t=C("spacing"),n=C("blur"),a=C("brightness"),c=C("borderColor"),s=C("borderRadius"),l=C("borderSpacing"),u=C("borderWidth"),p=C("contrast"),m=C("grayscale"),b=C("hueRotate"),h=C("invert"),x=C("gap"),P=C("gradientColorStops"),F=C("gradientColorStopPositions"),j=C("inset"),_=C("margin"),S=C("opacity"),E=C("padding"),fe=C("saturate"),oe=C("scale"),pe=C("sepia"),be=C("skew"),ge=C("space"),me=C("translate"),X=()=>["auto","contain","none"],ae=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",f,t],w=()=>[f,t],z=()=>["",W,N],I=()=>["auto",Y,f],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",f],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Y,de],B=()=>[Y,f];return{cacheSize:500,separator:":",theme:{colors:[ne],spacing:[W,N],blur:["none","",V,f],brightness:$(),borderColor:[r],borderRadius:["none","","full",V,f],borderSpacing:w(),borderWidth:z(),contrast:$(),grayscale:L(),hueRotate:B(),invert:L(),gap:w(),gradientColorStops:[r],gradientColorStopPositions:[Or,N],inset:ie(),margin:ie(),opacity:$(),padding:w(),saturate:$(),scale:$(),sepia:L(),skew:B(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),f]}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,f]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",te,f]}],"grid-cols":[{"grid-cols":[ne]}],"col-start-end":[{col:["auto",{span:["full",te,f]},f]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ne]}],"row-start-end":[{row:["auto",{span:[te,f]},f]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",de]}],"font-family":[{font:[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",f]}],"line-clamp":[{"line-clamp":["none",Y,de]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,N]}],"underline-offset":[{"underline-offset":["auto",W,f]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fr]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[F]}],"gradient-via-pos":[{via:[F]}],"gradient-to-pos":[{to:[F]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:U()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[W,f]}],"outline-w":[{outline:[W,N]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[W,N]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",V,Wr]}],"shadow-color":[{shadow:[ne]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",V,f]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[h]}],saturate:[{saturate:[fe]}],sepia:[{sepia:[pe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[fe]}],"backdrop-sepia":[{"backdrop-sepia":[pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[oe]}],"scale-x":[{"scale-x":[oe]}],"scale-y":[{"scale-y":[oe]}],rotate:[{rotate:[te,f]}],"translate-x":[{"translate-x":[me]}],"translate-y":[{"translate-y":[me]}],"skew-x":[{"skew-x":[be]}],"skew-y":[{"skew-y":[be]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[W,N,de]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const $r=Er(Lr);function Dr(...r){return $r(ur(r))}function De(r){var t,n,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=De(r[t]))&&(a&&(a+=" "),a+=n);else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function Yr(){for(var r,t,n=0,a="";n<arguments.length;)(r=arguments[n++])&&(t=De(r))&&(a&&(a+=" "),a+=t);return a}const Ye=r=>typeof r=="boolean"?"".concat(r):r===0?"0":r,Ue=Yr,Ur=((r,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return Ue(r,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:c,defaultVariants:s}=t,l=Object.keys(c).map(m=>{const b=n==null?void 0:n[m],h=s==null?void 0:s[m];if(b===null)return null;const x=Ye(b)||Ye(h);return c[m][x]}),u=n&&Object.entries(n).reduce((m,b)=>{let[h,x]=b;return x===void 0||(m[h]=x),m},{}),p=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((m,b)=>{let{class:h,className:x,...P}=b;return Object.entries(P).every(F=>{let[j,_]=F;return Array.isArray(_)?_.includes({...s,...u}[j]):{...s,...u}[j]===_})?[...m,h,x]:m},[]);return Ue(r,l,p,n==null?void 0:n.class,n==null?void 0:n.className)})(["w-full","rounded-md","font-semibold","focus:outline-none","disabled:cursor-not-allowed"],{variants:{variant:{solid:"",outline:"",ghost:"transition-colors duration-300"},size:{sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-lg"},colorScheme:{primary:"bg-blue-500 text-white",secondary:"bg-gray-500 text-white",danger:"bg-red-500 text-white"}},compoundVariants:[{variant:"solid",colorScheme:"primary",className:"hover:bg-blue-600"}],defaultVariants:{variant:"solid",size:"md",colorScheme:"primary"}});function Br({size:r,variant:t,colorScheme:n,className:a,children:c,...s}){return cr.jsx("button",{className:Dr(Ur({className:a,variant:t,size:r,colorScheme:n})),...s,children:c})}D.Button=Br,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "diditui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "dist/diditui.umd.js",
|
|
9
|
+
"module": "dist/diditui.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/diditui.js",
|
|
13
|
+
"require": "./dist/diditui.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"private": false,
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"didit",
|
|
22
|
+
"web3",
|
|
23
|
+
"ui"
|
|
24
|
+
],
|
|
25
|
+
"author": "Didit <didit.me>",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"homepage": "https://didit.me",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/Keddib/diditui.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "git+https://github.com/Keddib/diditui/issues"
|
|
34
|
+
},
|
|
35
|
+
"volta": {
|
|
36
|
+
"node": "20.14.0",
|
|
37
|
+
"pnpm": "9.1.3"
|
|
38
|
+
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"react": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"react-dom": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"class-variance-authority": "^0.7.0",
|
|
49
|
+
"clsx": "^2.1.1",
|
|
50
|
+
"react": "^18.3.1",
|
|
51
|
+
"react-dom": "^18.3.1",
|
|
52
|
+
"tailwind-merge": "^2.4.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@changesets/cli": "^2.27.4",
|
|
56
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
57
|
+
"@manypkg/cli": "^0.21.4",
|
|
58
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
59
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
60
|
+
"@storybook/addon-links": "^8.2.4",
|
|
61
|
+
"@storybook/addon-onboarding": "^8.2.4",
|
|
62
|
+
"@storybook/blocks": "^8.2.4",
|
|
63
|
+
"@storybook/react": "^8.2.4",
|
|
64
|
+
"@storybook/react-vite": "^8.2.4",
|
|
65
|
+
"@storybook/test": "^8.2.4",
|
|
66
|
+
"@types/node": "^20.14.10",
|
|
67
|
+
"@types/react": "^18.3.3",
|
|
68
|
+
"@types/react-dom": "^18.3.0",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
70
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
71
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
72
|
+
"autoprefixer": "^10.4.19",
|
|
73
|
+
"eslint": "^8.57.0",
|
|
74
|
+
"eslint-config-prettier": "^9.1.0",
|
|
75
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
76
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
77
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
78
|
+
"eslint-plugin-require-extensions": "^0.1.3",
|
|
79
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
80
|
+
"postcss": "^8.4.39",
|
|
81
|
+
"prettier": "3.1.1",
|
|
82
|
+
"storybook": "^8.2.4",
|
|
83
|
+
"tailwindcss": "^3.4.6",
|
|
84
|
+
"typescript": "^5.2.2",
|
|
85
|
+
"vite": "^5.3.4",
|
|
86
|
+
"vite-plugin-dts": "^3.9.1",
|
|
87
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"dev": "vite",
|
|
91
|
+
"build": "tsc -b && vite build",
|
|
92
|
+
"preview": "vite preview",
|
|
93
|
+
"storybook": "storybook dev -p 6006",
|
|
94
|
+
"build-storybook": "storybook build",
|
|
95
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
96
|
+
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
|
|
97
|
+
"typecheck": "tsc --noEmit",
|
|
98
|
+
"prettier": "prettier --check .",
|
|
99
|
+
"prettier:format": "prettier --write .",
|
|
100
|
+
"build:clean": "rm -rf dist",
|
|
101
|
+
"CI": "pnpm build; pnpm lint; pnpm typecheck",
|
|
102
|
+
"changeset:pre": "changeset pre enter",
|
|
103
|
+
"changeset:pre:exit": "changeset pre exit",
|
|
104
|
+
"changeset:add": "changeset",
|
|
105
|
+
"changeset:v": "changeset; changeset version",
|
|
106
|
+
"publish:latest": "pnpm install; pnpm build; changeset publish",
|
|
107
|
+
"publish:alpha": "pnpm install; pnpm build; changeset publish --tag alpha",
|
|
108
|
+
"publish:beta": "pnpm install; pnpm build; changeset publish --tag beta",
|
|
109
|
+
"publish:test": "pnpm install; pnpm build; changeset publish --tag test",
|
|
110
|
+
"manypkg:check": "manypkg check",
|
|
111
|
+
"manypkg:fix": "manypkg fix"
|
|
112
|
+
}
|
|
113
|
+
}
|