odin-system 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 +54 -0
- package/dist/odin-system.css +1 -0
- package/dist/odin-system.js +2881 -0
- package/dist/odin-system.umd.cjs +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(P,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],E):(P=typeof globalThis<"u"?globalThis:P||self,E(P["odin-system"]={},P.jsxRuntime,P.React))})(this,function(P,E,Ne){"use strict";function Oe(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const v=Oe(Ne);function ce(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function _e(...e){return o=>{let r=!1;const t=e.map(n=>{const i=ce(n,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<t.length;n++){const i=t[n];typeof i=="function"?i():ce(e[n],null)}}}}function Le(e){const o=Be(e),r=v.forwardRef((t,n)=>{const{children:i,...l}=t,p=v.Children.toArray(i),d=p.find($e);if(d){const f=d.props.children,g=p.map(y=>y===d?v.Children.count(f)>1?v.Children.only(null):v.isValidElement(f)?f.props.children:null:y);return E.jsx(o,{...l,ref:n,children:v.isValidElement(f)?v.cloneElement(f,void 0,g):null})}return E.jsx(o,{...l,ref:n,children:i})});return r.displayName=`${e}.Slot`,r}var We=Le("Slot");function Be(e){const o=v.forwardRef((r,t)=>{const{children:n,...i}=r;if(v.isValidElement(n)){const l=De(n),p=Ue(i,n.props);return n.type!==v.Fragment&&(p.ref=t?_e(t,l):l),v.cloneElement(n,p)}return v.Children.count(n)>1?v.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var Fe=Symbol("radix.slottable");function $e(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fe}function Ue(e,o){const r={...o};for(const t in o){const n=e[t],i=o[t];/^on[A-Z]/.test(t)?n&&i?r[t]=(...p)=>{const d=i(...p);return n(...p),d}:n&&(r[t]=n):t==="style"?r[t]={...n,...i}:t==="className"&&(r[t]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}function De(e){var t,n;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?e.ref:(o=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function de(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(r=de(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function ue(){for(var e,o,r=0,t="",n=arguments.length;r<n;r++)(e=arguments[r])&&(o=de(e))&&(t&&(t+=" "),t+=o);return t}const ee="-",qe=e=>{const o=Je(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:l=>{const p=l.split(ee);return p[0]===""&&p.length!==1&&p.shift(),me(p,o)||He(l)},getConflictingClassGroupIds:(l,p)=>{const d=r[l]||[];return p&&t[l]?[...d,...t[l]]:d}}},me=(e,o)=>{var l;if(e.length===0)return o.classGroupId;const r=e[0],t=o.nextPart.get(r),n=t?me(e.slice(1),t):void 0;if(n)return n;if(o.validators.length===0)return;const i=e.join(ee);return(l=o.validators.find(({validator:p})=>p(i)))==null?void 0:l.classGroupId},pe=/^\[(.+)\]$/,He=e=>{if(pe.test(e)){const o=pe.exec(e)[1],r=o==null?void 0:o.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},Je=e=>{const{theme:o,classGroups:r}=e,t={nextPart:new Map,validators:[]};for(const n in r)re(r[n],t,n,o);return t},re=(e,o,r,t)=>{e.forEach(n=>{if(typeof n=="string"){const i=n===""?o:fe(o,n);i.classGroupId=r;return}if(typeof n=="function"){if(Ke(n)){re(n(t),o,r,t);return}o.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([i,l])=>{re(l,fe(o,i),r,t)})})},fe=(e,o)=>{let r=e;return o.split(ee).forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},Ke=e=>e.isThemeGetter,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,t=new Map;const n=(i,l)=>{r.set(i,l),o++,o>e&&(o=0,t=r,r=new Map)};return{get(i){let l=r.get(i);if(l!==void 0)return l;if((l=t.get(i))!==void 0)return n(i,l),l},set(i,l){r.has(i)?r.set(i,l):n(i,l)}}},te="!",oe=":",Ze=oe.length,Qe=e=>{const{prefix:o,experimentalParseClassName:r}=e;let t=n=>{const i=[];let l=0,p=0,d=0,f;for(let w=0;w<n.length;w++){let k=n[w];if(l===0&&p===0){if(k===oe){i.push(n.slice(d,w)),d=w+Ze;continue}if(k==="/"){f=w;continue}}k==="["?l++:k==="]"?l--:k==="("?p++:k===")"&&p--}const g=i.length===0?n:n.substring(d),y=Ye(g),C=y!==g,T=f&&f>d?f-d:void 0;return{modifiers:i,hasImportantModifier:C,baseClassName:y,maybePostfixModifierPosition:T}};if(o){const n=o+oe,i=t;t=l=>l.startsWith(n)?i(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(r){const n=t;t=i=>r({className:i,parseClassName:n})}return t},Ye=e=>e.endsWith(te)?e.substring(0,e.length-1):e.startsWith(te)?e.substring(1):e,er=e=>{const o=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;const n=[];let i=[];return t.forEach(l=>{l[0]==="["||o[l]?(n.push(...i.sort(),l),i=[]):i.push(l)}),n.push(...i.sort()),n}},rr=e=>({cache:Xe(e.cacheSize),parseClassName:Qe(e),sortModifiers:er(e),...qe(e)}),tr=/\s+/,or=(e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:i}=o,l=[],p=e.trim().split(tr);let d="";for(let f=p.length-1;f>=0;f-=1){const g=p[f],{isExternal:y,modifiers:C,hasImportantModifier:T,baseClassName:w,maybePostfixModifierPosition:k}=r(g);if(y){d=g+(d.length>0?" "+d:d);continue}let S=!!k,G=t(S?w.substring(0,k):w);if(!G){if(!S){d=g+(d.length>0?" "+d:d);continue}if(G=t(w),!G){d=g+(d.length>0?" "+d:d);continue}S=!1}const J=i(C).join(":"),U=T?J+te:J,W=U+G;if(l.includes(W))continue;l.push(W);const B=n(G,S);for(let V=0;V<B.length;++V){const D=B[V];l.push(U+D)}d=g+(d.length>0?" "+d:d)}return d};function nr(){let e=0,o,r,t="";for(;e<arguments.length;)(o=arguments[e++])&&(r=ge(o))&&(t&&(t+=" "),t+=r);return t}const ge=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=ge(e[t]))&&(r&&(r+=" "),r+=o);return r};function sr(e,...o){let r,t,n,i=l;function l(d){const f=o.reduce((g,y)=>y(g),e());return r=rr(f),t=r.cache.get,n=r.cache.set,i=p,p(d)}function p(d){const f=t(d);if(f)return f;const g=or(d,r);return n(d,g),g}return function(){return i(nr.apply(null,arguments))}}const b=e=>{const o=r=>r[e]||[];return o.isThemeGetter=!0,o},be=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,he=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ar=/^\d+\/\d+$/,ir=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lr=/\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$/,cr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ur=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>ar.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&m(e.slice(0,-1)),A=e=>ir.test(e),mr=()=>!0,pr=e=>lr.test(e)&&!cr.test(e),ye=()=>!1,fr=e=>dr.test(e),gr=e=>ur.test(e),br=e=>!s(e)&&!a(e),hr=e=>_(e,ze,ye),s=e=>be.test(e),j=e=>_(e,Ce,pr),se=e=>_(e,kr,m),xe=e=>_(e,we,ye),yr=e=>_(e,ke,gr),q=e=>_(e,Se,fr),a=e=>he.test(e),$=e=>L(e,Ce),xr=e=>L(e,zr),ve=e=>L(e,we),vr=e=>L(e,ze),wr=e=>L(e,ke),H=e=>L(e,Se,!0),_=(e,o,r)=>{const t=be.exec(e);return t?t[1]?o(t[1]):r(t[2]):!1},L=(e,o,r=!1)=>{const t=he.exec(e);return t?t[1]?o(t[1]):r:!1},we=e=>e==="position"||e==="percentage",ke=e=>e==="image"||e==="url",ze=e=>e==="length"||e==="size"||e==="bg-size",Ce=e=>e==="length",kr=e=>e==="number",zr=e=>e==="family-name",Se=e=>e==="shadow",Cr=sr(()=>{const e=b("color"),o=b("font"),r=b("text"),t=b("font-weight"),n=b("tracking"),i=b("leading"),l=b("breakpoint"),p=b("container"),d=b("spacing"),f=b("radius"),g=b("shadow"),y=b("inset-shadow"),C=b("text-shadow"),T=b("drop-shadow"),w=b("blur"),k=b("perspective"),S=b("aspect"),G=b("ease"),J=b("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...W(),a,s],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],u=()=>[a,s,d],M=()=>[O,"full","auto",...u()],Re=()=>[I,"none","subgrid",a,s],Pe=()=>["auto",{span:["full",I,a,s]},I,a,s],K=()=>[I,"auto",a,s],Ie=()=>["auto","min","max","fr",a,s],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...u()],N=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],c=()=>[e,a,s],Ee=()=>[...W(),ve,xe,{position:[a,s]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",vr,hr,{size:[a,s]}],ie=()=>[ne,$,j],x=()=>["","none","full",f,a,s],z=()=>["",m,$,j],X=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[m,ne,ve,xe],Ve=()=>["","none",w,a,s],Z=()=>["none",m,a,s],Q=()=>["none",m,a,s],le=()=>[m,a,s],Y=()=>[O,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A],breakpoint:[A],color:[mr],container:[A],"drop-shadow":[A],ease:["in","out","in-out"],font:[br],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A],shadow:[A],spacing:["px",m],text:[A],"text-shadow":[A],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,s,a,S]}],container:["container"],columns:[{columns:[m,s,a,p]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",a,s]}],basis:[{basis:[O,"full","auto",p,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,O,"auto","initial","none",s]}],grow:[{grow:["",m,a,s]}],shrink:[{shrink:["",m,a,s]}],order:[{order:[I,"first","last","none",a,s]}],"grid-cols":[{"grid-cols":Re()}],"col-start-end":[{col:Pe()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":Re()}],"row-start-end":[{row:Pe()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[p,"screen",...N()]}],"min-w":[{"min-w":[p,"screen","none",...N()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[l]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,$,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,a,se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ne,s]}],"font-family":[{font:[xr,s,o]}],"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-fractions"],tracking:[{tracking:[n,a,s]}],"line-clamp":[{"line-clamp":[m,"none",a,se]}],leading:[{leading:[i,...u()]}],"list-image":[{"list-image":["none",a,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",a,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",a,j]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[m,"auto",a,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,a,s],radial:["",a,s],conic:[I,a,s]},wr,yr]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":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:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,a,s]}],"outline-w":[{outline:["",m,$,j]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",g,H,q]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",y,H,q]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[m,j]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",C,H,q]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[m,a,s]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[a,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",a,s]}],filter:[{filter:["","none",a,s]}],blur:[{blur:Ve()}],brightness:[{brightness:[m,a,s]}],contrast:[{contrast:[m,a,s]}],"drop-shadow":[{"drop-shadow":["","none",T,H,q]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",m,a,s]}],"hue-rotate":[{"hue-rotate":[m,a,s]}],invert:[{invert:["",m,a,s]}],saturate:[{saturate:[m,a,s]}],sepia:[{sepia:["",m,a,s]}],"backdrop-filter":[{"backdrop-filter":["","none",a,s]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[m,a,s]}],"backdrop-contrast":[{"backdrop-contrast":[m,a,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,a,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,a,s]}],"backdrop-invert":[{"backdrop-invert":["",m,a,s]}],"backdrop-opacity":[{"backdrop-opacity":[m,a,s]}],"backdrop-saturate":[{"backdrop-saturate":[m,a,s]}],"backdrop-sepia":[{"backdrop-sepia":["",m,a,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",a,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",a,s]}],ease:[{ease:["linear","initial",G,a,s]}],delay:[{delay:[m,a,s]}],animate:[{animate:["none",J,a,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,a,s]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[a,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",a,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",a,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[m,$,j,se]}],stroke:[{stroke:["none",...c()]}],"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-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Sr(...e){return Cr(ue(e))}const Ae=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Me=ue,Ar=((e,o)=>r=>{var t;if((o==null?void 0:o.variants)==null)return Me(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:i}=o,l=Object.keys(n).map(f=>{const g=r==null?void 0:r[f],y=i==null?void 0:i[f];if(g===null)return null;const C=Ae(g)||Ae(y);return n[f][C]}),p=r&&Object.entries(r).reduce((f,g)=>{let[y,C]=g;return C===void 0||(f[y]=C),f},{}),d=o==null||(t=o.compoundVariants)===null||t===void 0?void 0:t.reduce((f,g)=>{let{class:y,className:C,...T}=g;return Object.entries(T).every(w=>{let[k,S]=w;return Array.isArray(S)?S.includes({...i,...p}[k]):{...i,...p}[k]===S})?[...f,y,C]:f},[]);return Me(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Mr({className:e,variant:o,size:r,asChild:t=!1,...n}){const i=t?We:"button";return E.jsx(i,{"data-slot":"button",className:Sr(Ar({variant:o,size:r,className:e})),...n})}P.Button=Mr,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "odin-system",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/odin-system.umd.cjs",
|
|
9
|
+
"module": "./dist/odin-system.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/odin-system.js",
|
|
13
|
+
"require": "./dist/odin-system.umd.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/odin-system.css"
|
|
16
|
+
},
|
|
17
|
+
"style": "./dist/odin-system.css",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc -b && vite build",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"preview": "vite preview"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^18.0.0",
|
|
26
|
+
"react-dom": "^18.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@eslint/js": "^9.25.0",
|
|
30
|
+
"@tailwindcss/vite": "^4.1.7",
|
|
31
|
+
"@types/node": "^22.15.21",
|
|
32
|
+
"@types/react": "^18.2.0",
|
|
33
|
+
"@types/react-dom": "^18.2.0",
|
|
34
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
35
|
+
"eslint": "^9.25.0",
|
|
36
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
38
|
+
"globals": "^16.0.0",
|
|
39
|
+
"react": "^18.2.0",
|
|
40
|
+
"react-dom": "^18.2.0",
|
|
41
|
+
"tailwindcss": "^4.1.7",
|
|
42
|
+
"typescript": "~5.8.3",
|
|
43
|
+
"typescript-eslint": "^8.30.1",
|
|
44
|
+
"vite": "^6.3.5"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@mui/icons-material": "^7.1.0",
|
|
48
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
49
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
50
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
51
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
52
|
+
"class-variance-authority": "^0.7.1",
|
|
53
|
+
"clsx": "^2.1.1",
|
|
54
|
+
"cmdk": "^1.1.1",
|
|
55
|
+
"lucide-react": "^0.511.0",
|
|
56
|
+
"tailwind-merge": "^3.3.0"
|
|
57
|
+
}
|
|
58
|
+
}
|