import{makeGlobalSize as t,filterTruthyStyles as e}from"@gem-sdk/core";import{makeFontSize as r,makeFontWeight as o,makeTextColor as a}from"../../common/helper.js";let l=t=>e(t),i=({styles:e})=>{let{globalSize:r}=e??{},o=t(r);return l({...o?.width?.["--w"]?o.width:{"--w":"100%"},...o.padding,"--ta":e?.textAlign})},n=({styles:t})=>{let{horizontalSpacing:e}=t??{};return{"--w":t?.width,justifyContent:"start",alignItems:"start",gridTemplate:`"checkbox gap label" auto / auto ${e??"9px"} auto`}},g=({styles:t})=>{let{typo:l}=t??{},i={display:"block",maxWidth:"100%",gridArea:"label",overflowWrap:"break-word"};if(!l)return e({...i});let n={"text-transform":l.textTransform,color:a(l.textColor,l.fontWeight),"font-weight":o(l.fontWeight),"font-size":r(l.fontSize)};return e({...i,...n})};export{n as getContainerStyles,g as getTextStyle,i as getWrapperStyles};
