@hemia/lume-vue 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/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # @hemia/lume-vue
2
+
3
+ Vue 3 adapter for Lume UI system. Provides runtime utilities and acts as the primary dependency for Vue projects using Lume components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @hemia/lume-vue
9
+ ```
10
+
11
+ ## What's included
12
+
13
+ Re-exports everything from `@hemia/lume-core`:
14
+
15
+ - **`cn()`** — Smart Tailwind class merger
16
+ - **`cva()` & `VariantProps`** — Type-safe component variants
17
+ - **Tokens** — Colors, radius, theme values
18
+
19
+ Plus Vue-specific utilities.
20
+
21
+ ## Usage in Vue components
22
+
23
+ ```vue
24
+ <script setup lang="ts">
25
+ import { cn, cva, type VariantProps } from "@hemia/lume-vue"
26
+
27
+ const buttonVariants = cva('rounded px-4 py-2', {
28
+ variants: {
29
+ variant: {
30
+ default: 'bg-primary text-white',
31
+ outline: 'border border-primary'
32
+ }
33
+ },
34
+ defaultVariants: { variant: 'default' }
35
+ })
36
+
37
+ type ButtonVariants = VariantProps<typeof buttonVariants>
38
+
39
+ const props = defineProps<{
40
+ variant?: ButtonVariants['variant']
41
+ class?: string
42
+ }>()
43
+ </script>
44
+
45
+ <template>
46
+ <button :class="cn(buttonVariants({ variant }), props.class)">
47
+ <slot />
48
+ </button>
49
+ </template>
50
+ ```
51
+
52
+ ## Adding components
53
+
54
+ Use the Lume CLI to add components to your project:
55
+
56
+ ```bash
57
+ bunx @hemia/lume@latest init # Initialize config
58
+ bunx @hemia/lume@latest add button card # Add components
59
+ ```
60
+
61
+ Components are copied to your project (not imported from node_modules).
62
+
63
+ ## Note
64
+
65
+ Always import from `@hemia/lume-vue` in Vue projects, not from `@hemia/lume-core` directly.
66
+
67
+ ## License
68
+
69
+ MIT
@@ -0,0 +1 @@
1
+ export * from './resolve-registry';
@@ -0,0 +1 @@
1
+ export declare function resolveRegistryPath(framework?: string): string;
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ee(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(o=0;o<l;o++)e[o]&&(r=ee(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function re(){for(var e,o,r=0,t="",l=arguments.length;r<l;r++)(e=arguments[r])&&(o=ee(e))&&(t&&(t+=" "),t+=o);return t}const L="-",ae=e=>{const o=ce(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:l=>{const n=l.split(L);return n[0]===""&&n.length!==1&&n.shift(),oe(n,o)||ie(l)},getConflictingClassGroupIds:(l,n)=>{const i=r[l]||[];return n&&t[l]?[...i,...t[l]]:i}}},oe=(e,o)=>{var r;if(e.length===0)return o.classGroupId;const t=e[0],l=o.nextPart.get(t),n=l?oe(e.slice(1),l):void 0;if(n)return n;if(o.validators.length===0)return;const i=e.join(L);return(r=o.validators.find(({validator:s})=>s(i)))==null?void 0:r.classGroupId},Q=/^\[(.+)\]$/,ie=e=>{if(Q.test(e)){const o=Q.exec(e)[1],r=o==null?void 0:o.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},ce=e=>{const{theme:o,prefix:r}=e,t={nextPart:new Map,validators:[]};return pe(Object.entries(e.classGroups),r).forEach(([l,n])=>{q(n,t,l,o)}),t},q=(e,o,r,t)=>{e.forEach(l=>{if(typeof l=="string"){const n=l===""?o:X(o,l);n.classGroupId=r;return}if(typeof l=="function"){if(de(l)){q(l(t),o,r,t);return}o.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,i])=>{q(i,X(o,n),r,t)})})},X=(e,o)=>{let r=e;return o.split(L).forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},de=e=>e.isThemeGetter,pe=(e,o)=>o?e.map(([r,t])=>{const l=t.map(n=>typeof n=="string"?o+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[o+i,s])):n);return[r,l]}):e,ue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,t=new Map;const l=(n,i)=>{r.set(n,i),o++,o>e&&(o=0,t=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=t.get(n))!==void 0)return l(n,i),i},set(n,i){r.has(n)?r.set(n,i):l(n,i)}}},te="!",be=e=>{const{separator:o,experimentalParseClassName:r}=e,t=o.length===1,l=o[0],n=o.length,i=s=>{const f=[];let c=0,b=0,h;for(let d=0;d<s.length;d++){let v=s[d];if(c===0){if(v===l&&(t||s.slice(d,d+n)===o)){f.push(s.slice(b,d)),b=d+n;continue}if(v==="/"){h=d;continue}}v==="["?c++:v==="]"&&c--}const g=f.length===0?s:s.substring(b),w=g.startsWith(te),y=w?g.substring(1):g,m=h&&h>b?h-b:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:m}};return r?s=>r({className:s,parseClassName:i}):i},me=e=>{if(e.length<=1)return e;const o=[];let r=[];return e.forEach(t=>{t[0]==="["?(o.push(...r.sort(),t),r=[]):r.push(t)}),o.push(...r.sort()),o},fe=e=>({cache:ue(e.cacheSize),parseClassName:be(e),...ae(e)}),ge=/\s+/,he=(e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:l}=o,n=[],i=e.trim().split(ge);let s="";for(let f=i.length-1;f>=0;f-=1){const c=i[f],{modifiers:b,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:w}=r(c);let y=!!w,m=t(y?g.substring(0,w):g);if(!m){if(!y){s=c+(s.length>0?" "+s:s);continue}if(m=t(g),!m){s=c+(s.length>0?" "+s:s);continue}y=!1}const d=me(b).join(":"),v=h?d+te:d,x=v+m;if(n.includes(x))continue;n.push(x);const S=l(m,y);for(let G=0;G<S.length;++G){const $=S[G];n.push(v+$)}s=c+(s.length>0?" "+s:s)}return s};function ve(){let e=0,o,r,t="";for(;e<arguments.length;)(o=arguments[e++])&&(r=ne(o))&&(t&&(t+=" "),t+=r);return t}const ne=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=ne(e[t]))&&(r&&(r+=" "),r+=o);return r};function ye(e,...o){let r,t,l,n=i;function i(f){const c=o.reduce((b,h)=>h(b),e());return r=fe(c),t=r.cache.get,l=r.cache.set,n=s,s(f)}function s(f){const c=t(f);if(c)return c;const b=he(f,r);return l(f,b),b}return function(){return n(ve.apply(null,arguments))}}const p=e=>{const o=r=>r[e]||[];return o.isThemeGetter=!0,o},le=/^\[(?:([a-z-]+):)?(.+)\]$/i,xe=/^\d+\/\d+$/,we=new Set(["px","full","screen"]),ke=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ze=/\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$/,je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>N(e)||we.has(e)||xe.test(e),j=e=>P(e,"length",Ee),N=e=>!!e&&!Number.isNaN(Number(e)),_=e=>P(e,"number",N),I=e=>!!e&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&N(e.slice(0,-1)),a=e=>le.test(e),C=e=>ke.test(e),Pe=new Set(["length","size","percentage"]),Se=e=>P(e,Pe,se),Me=e=>P(e,"position",se),Ie=new Set(["image","url"]),Oe=e=>P(e,Ie,Ae),$e=e=>P(e,"",Re),O=()=>!0,P=(e,o,r)=>{const t=le.exec(e);return t?t[1]?typeof o=="string"?t[1]===o:o.has(t[1]):r(t[2]):!1},Ee=e=>ze.test(e)&&!je.test(e),se=()=>!1,Re=e=>Ce.test(e),Ae=e=>Ge.test(e),We=()=>{const e=p("colors"),o=p("spacing"),r=p("blur"),t=p("brightness"),l=p("borderColor"),n=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),f=p("contrast"),c=p("grayscale"),b=p("hueRotate"),h=p("invert"),g=p("gap"),w=p("gradientColorStops"),y=p("gradientColorStopPositions"),m=p("inset"),d=p("margin"),v=p("opacity"),x=p("padding"),S=p("saturate"),G=p("scale"),$=p("sepia"),U=p("skew"),B=p("space"),D=p("translate"),A=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",a,o],u=()=>[a,o],F=()=>["",z,j],E=()=>["auto",N,a],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",a],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[N,a];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[z,j],blur:["none","",C,a],brightness:k(),borderColor:[e],borderRadius:["none","","full",C,a],borderSpacing:u(),borderWidth:F(),contrast:k(),grayscale:M(),hueRotate:k(),invert:M(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Ne,j],inset:T(),margin:T(),opacity:k(),padding:u(),saturate:k(),scale:k(),sepia:M(),skew:k(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",a]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:[...H(),a]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],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:["auto",I,a]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",a]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",I,a]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",I,a]},a]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[I,a]},a]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",a]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",a]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",a,o]}],"min-w":[{"min-w":[a,o,"min","max","fit"]}],"max-w":[{"max-w":[a,o,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[a,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[a,o,"auto","min","max","fit"]}],"font-size":[{text:["base",C,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[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:["tighter","tight","normal","wide","wider","widest",a]}],"line-clamp":[{"line-clamp":["none",N,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,a]}],"list-image":[{"list-image":["none",a]}],"list-style-type":[{list:["none","disc","decimal",a]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,j]}],"underline-offset":[{"underline-offset":["auto",z,a]}],"text-decoration-color":[{decoration:[e]}],"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]}],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",a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Me]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Se]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Oe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:R()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[z,a]}],"outline-w":[{outline:[z,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[z,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,$e]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[t]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",C,a]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",a]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",a]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",a]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[I,a]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",a]}],accent:[{accent:["auto",e]}],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",a]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,j,_]}],stroke:[{stroke:[e,"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-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"],"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"]}}},Te=ye(We);function Ve(...e){return Te(re(e))}const Y=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Z=re,_e=(e,o)=>r=>{var t;if((o==null?void 0:o.variants)==null)return Z(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:l,defaultVariants:n}=o,i=Object.keys(l).map(c=>{const b=r==null?void 0:r[c],h=n==null?void 0:n[c];if(b===null)return null;const g=Y(b)||Y(h);return l[c][g]}),s=r&&Object.entries(r).reduce((c,b)=>{let[h,g]=b;return g===void 0||(c[h]=g),c},{}),f=o==null||(t=o.compoundVariants)===null||t===void 0?void 0:t.reduce((c,b)=>{let{class:h,className:g,...w}=b;return Object.entries(w).every(y=>{let[m,d]=y;return Array.isArray(d)?d.includes({...n,...s}[m]):{...n,...s}[m]===d})?[...c,h,g]:c},[]);return Z(e,i,f,r==null?void 0:r.class,r==null?void 0:r.className)},qe={primary:"hsl(var(--primary))",secondary:"hsl(var(--secondary))",destructive:"hsl(var(--destructive))",muted:"hsl(var(--muted))",accent:"hsl(var(--accent))"},Le={sm:"var(--radius-sm)",md:"var(--radius-md)",lg:"var(--radius-lg)"};exports.cn=Ve;exports.colors=qe;exports.cva=_e;exports.radius=Le;
@@ -0,0 +1 @@
1
+ export * from '@hemia/lume-core';