{"version":3,"file":"New_cms_tags.CVo7QddL.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_CKT6jEEQ","ControlType","TagComponent","props","tags","text","tag","containerStyle","gap","tagBackgroundColor","textColor","tagBorderRadius","font","borderWidth","borderStyle","borderColor","index","init_New_cms_tags"],"sources":["https:/framerusercontent.com/modules/jYO26jB3AINyfySsTgNO/PUa80b5WJGHT2OYKuFbe/New_cms_tags.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// @framerIntrinsicWidth auto\n// @framerIntrinsicHeight auto\n// @framerSupportedLayoutWidth auto\n// @framerSupportedLayoutHeight auto\n// @framerDisableUnlink\nexport default function TagComponent(props){const{text,font,fontSize,textColor,tagBackgroundColor,tagBorderRadius,borderWidth,borderColor,borderStyle,gap}=props;const tags=text.split(\",\").map(tag=>tag.trim());const containerStyle={display:\"flex\",flexWrap:\"wrap\",gap:`${gap}px`};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:tags.map((tag,index)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",padding:\"4px 8px\",backgroundColor:tagBackgroundColor,color:textColor,borderRadius:tagBorderRadius,fontFamily:font.fontFamily,fontWeight:font.fontWeight,fontSize:fontSize,border:`${borderWidth}px ${borderStyle} ${borderColor}`},children:tag},index))});}TagComponent.defaultProps={text:\"Example Tag, Another Tag\",font:{fontFamily:\"Urbanist\",fontWeight:\"Regular\"},fontSize:16,textColor:\"#ffffff\",tagBackgroundColor:\"#000000\",tagBorderRadius:4,borderWidth:1,borderColor:\"#222222\",borderStyle:\"solid\",gap:8};addPropertyControls(TagComponent,{text:{type:ControlType.String,title:\"Text\"},font:{title:\"Font\",type:ControlType.Font,defaultValue:TagComponent.defaultProps.font},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:14,min:8,max:36},textColor:{type:ControlType.Color,title:\"Text Color\"},tagBackgroundColor:{type:ControlType.Color,title:\"Background Color\"},tagBorderRadius:{type:ControlType.FusedNumber,title:\"Border Radius\",defaultValue:4,toggleKey:\"isMixed\",toggleTitles:[\"Uniform\",\"Individual\"],valueKeys:[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:10,step:1},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000000\"},borderStyle:{type:ControlType.Enum,title:\"Border Style\",defaultValue:\"solid\",options:[\"solid\",\"dashed\"],optionTitles:[\"Solid\",\"Dashed\"]},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:50,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TagComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"\",\"framerDisableUnlink\":\"\",\"framerIntrinsicHeight\":\"\",\"framerSupportedLayoutWidth\":\"\",\"framerIntrinsicWidth\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./New_cms_tags.map"],"mappings":"A,4JAKA,SAAwBM,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,WAAS,YAAU,qBAAmB,kBAAgB,cAAY,cAAY,cAAY,OAAKC,EAAYC,EAAKC,EAAK,MAAM,GAAG,CAAC,CAAC,IAAI,GAAKC,EAAI,KAAK,CAAC,EAAQC,EAAe,CAAC,QAAQ,OAAO,SAAS,OAAO,IAAI,GAAGC,EAAI,GAAG,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAMD,EAAe,SAASH,EAAK,KAAK,EAAI,IAAqB,gBAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,eAAe,QAAQ,UAAU,gBAAgBK,EAAmB,MAAMC,EAAU,aAAaC,EAAgB,WAAWC,EAAK,WAAW,WAAWA,EAAK,WAAoB,WAAS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