{"version":3,"file":"TagList.C7LMNbfh.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/ePSVu1ARi2rRF0puGOfa/UqPgysP7Cz92LPZLWphh/TagList.js"],"sourcesContent":["// List component that renders text items as chips or bullet points with custom separators\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TagList(props){const{text=\"Design, Development, Marketing, Sales\",useNewline=true,separator=\",\",displayMode=\"chips\",customSVG='<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M19 3H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-7.933 13.481-3.774-3.774 1.414-1.414 2.226 2.226 4.299-5.159 1.537 1.28-5.702 6.841z\"/></svg>',chipBackground=\"#F5F5F5\",chipBorder=\"#EEEEEE\",chipBorderWidth=1,chipBorderRadius=20,chipPadding=\"8px 16px\",bulletColor=\"#000000\",bulletSize=16,chipGap=12,bulletGap=12,textColor=\"#000000\",font,style}=props;const items=useMemo(()=>{if(!text)return[];const actualSeparator=useNewline?\"\\n\":separator;return text.split(actualSeparator).map(item=>item.trim()).filter(item=>item.length>0);},[text,separator,useNewline]);const isFixedWidth=style?.width===\"100%\";if(displayMode===\"chips\"){return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",flexWrap:\"wrap\",gap:chipGap,alignItems:\"flex-start\",...isFixedWidth?{}:{width:\"max-content\"}},children:items.map((item,index)=>/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:chipBackground,border:`${chipBorderWidth}px solid ${chipBorder}`,borderRadius:chipBorderRadius,padding:chipPadding,color:textColor,...font,whiteSpace:\"nowrap\"},children:item},index))});}return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",flexDirection:\"column\",gap:bulletGap,...isFixedWidth?{}:{width:\"max-content\"}},children:items.map((item,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:bulletSize,height:bulletSize,flexShrink:0,color:bulletColor},dangerouslySetInnerHTML:{__html:customSVG}}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...font},children:item})]},index))});}addPropertyControls(TagList,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Design, Development, Marketing, Sales\",displayTextArea:true},useNewline:{type:ControlType.Boolean,title:\"Separator\",defaultValue:true,enabledTitle:\"Newline\",disabledTitle:\"Custom\"},separator:{type:ControlType.String,title:\"Custom Separator\",defaultValue:\",\",placeholder:\"e.g., , or ; or |\",displayTextArea:true,hidden:({useNewline})=>useNewline},displayMode:{type:ControlType.Enum,title:\"Display Mode\",options:[\"chips\",\"bullets\"],optionTitles:[\"Chips\",\"Bullets\"],defaultValue:\"chips\",displaySegmentedControl:true},chipBackground:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\",hidden:({displayMode})=>displayMode!==\"chips\"},chipBorder:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\",hidden:({displayMode})=>displayMode!==\"chips\"},chipBorderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:10,step:1,unit:\"px\",hidden:({displayMode})=>displayMode!==\"chips\"},chipBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:20,min:0,max:50,step:1,unit:\"px\",hidden:({displayMode})=>displayMode!==\"chips\"},chipPadding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 16px\",hidden:({displayMode})=>displayMode!==\"chips\"},chipGap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:48,step:1,unit:\"px\",hidden:({displayMode})=>displayMode!==\"chips\"},customSVG:{type:ControlType.String,title:\"Custom SVG\",defaultValue:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M19 3H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-7.933 13.481-3.774-3.774 1.414-1.414 2.226 2.226 4.299-5.159 1.537 1.28-5.702 6.841z\"/></svg>',displayTextArea:true,hidden:({displayMode})=>displayMode!==\"bullets\"},bulletColor:{type:ControlType.Color,title:\"Bullet Color\",defaultValue:\"#000000\",hidden:({displayMode})=>displayMode!==\"bullets\"},bulletSize:{type:ControlType.Number,title:\"Bullet Size\",defaultValue:16,min:8,max:48,step:1,unit:\"px\",hidden:({displayMode})=>displayMode!==\"bullets\"},bulletGap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:48,step:1,unit:\"px\",hidden:({displayMode})=>displayMode!==\"bullets\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TagList\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TagList.map"],"mappings":"iLAIG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,OAAK,wCAAwC,aAAW,GAAK,YAAU,IAAI,cAAY,QAAQ,YAAU,kTAAkT,iBAAe,UAAU,aAAW,UAAU,kBAAgB,EAAE,mBAAiB,GAAG,cAAY,WAAW,cAAY,UAAU,aAAW,GAAG,UAAQ,GAAG,YAAU,GAAG,Y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