"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index-BywbRDsb.cjs"),s=require("../colors-BI0YhONJ.cjs");function l(){return Object.fromEntries(s.semanticColorNames.map(e=>[e,Object.fromEntries(s.colorShades.map(t=>[t,`var(--color-${e}-${t})`]))]))}function u(e){const{includeCoreTokens:t=!0,includeSemanticTokens:n=!0}=e,a={};if(t){const r=i.generateCoreTokenVariables();e.baseSpacing&&(r[i.getSpacingVarName("base")]=e.baseSpacing),e.baseFontSize&&(r[i.getBaseFontSizeVarName()]=e.baseFontSize),e.baseMotionDuration&&(r[i.getMotionDurationVarName("base")]=e.baseMotionDuration),a[":root"]=r}return n&&(a[":root"]={...a[":root"]??{},...i.generateSemanticTokenVariables({colors:e.semanticColors,fonts:e.semanticFonts,radii:e.semanticRadii,shadows:e.semanticShadows,motion:e.semanticMotion,spacing:e.semanticSpacing,textShadows:e.semanticTextShadows})}),e.fontFamilies&&(a[":root"]={...a[":root"]??{},...i.generateFontFamilyOverrideVariables(e.fontFamilies)}),a}const o=Object.assign((e,t)=>({handler:e,config:t}),{withOptions(e,t=()=>({})){const n=a=>({handler:e(a),config:t(a)});return n.__isOptionsFunction=!0,n}});function c(e={}){const t=u(e);return{darkMode:"class",theme:{extend:e.extendTheme??!0?{colors:l()}:{}},plugins:[o(({addBase:r})=>{Object.keys(t).length>0&&r(t)}),o(({addVariant:r})=>{r("beatui-light",".light &"),r("beatui-rtl",".b-rtl &"),r("beatui-ltr",".b-ltr &")})]}}const b=c();exports.beatuiPreset=b;exports.createBeatuiPreset=c;
