import{filterTruthyStyles as t,makeStyleResponsive as e,makeStyle as r}from"@gem-sdk/core";import{makeFontSize as o,makeFontWeight as n,makeTextColor as i}from"../../common/helper.js";let f=({style:e})=>{if(!e)return{};let r=JSON.parse(JSON.stringify(e));return t(r)},l=({styles:r})=>t(e("w",r?.width)),s=({textAlign:e,typo:f})=>{let l={"word-break":"break-word",...r({ta:e})};if(!f)return t(l);let s={"text-transform":f.textTransform,color:i(f.textColor,f.fontWeight),"font-weight":n(f.fontWeight),"font-size":o(f.fontSize)};return t({...l,...s})};export{f as getContainerStyles,s as getTextStyles,l as getWrapperStyles};
