import{filterTruthy as e}from"../../../common/helpers.js";import{composeAdvanceStyle as t,makeStyleResponsive as o,composeTypographyStyle as r,makeGlobalSize as s,getStyleShadow as i,makeStyle as a,getSingleColorVariable as l,composeSize as n,getGlobalColorStyle as p}from"@gem-sdk/core";let m=t=>e(t),c=(e,r)=>{let{pos:s,d:i,op:a,right:l,top:n,left:p,bottom:c,z:d,padding:g,margin:h}=e??{},w=e?.["spacing-setting"],y=t({pos:s,d:i,op:a,right:l,top:n,left:p,bottom:c,z:d,padding:g,margin:h,"spacing-setting":w});return m({...y,...o("ta",r?.align)})},d=(e,o,c)=>{let{border:d,rounded:g,hasBoxShadow:h,boxShadow:w}=e??{},{typography:y}=o??{},{globalSize:u}=c??{},b=r(o?.typo,y),f=t({border:d,rounded:g,hasBoxShadow:h,boxShadow:w}),x=s(u);return m({...x?.width?.["--w"]?x.width:{},...x.padding,...p(o?.color),...o?.size?.type?{}:n(o?.size?.custom),...a({tt:o?.transform}),...b,...f,...a({bc:l(d?.color)}),...i({value:w,styleAppliedFor:"box-shadow",isEnableShadow:h})})};export{c as composeContainerStyles,d as composeTextareaStyles};
