{"version":3,"file":"TestCard.BBDAU3si.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8prv7rMVae3eXs9kOHCv/G2SJplLOnH1inQ9TOpk5/TestCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function prettifyLabel(value){return String(value??\"\").replaceAll(\"_\",\" \").trim();}function titleCase(label){return label.split(\" \").filter(Boolean).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join(\" \");}function typeStyles(typeRaw){const t=String(typeRaw??\"\").toLowerCase().trim();// Material-ish accents that read well on dark backgrounds\nswitch(t){case\"smoke\":return{bg:\"rgba(33,150,243,0.18)\",fg:\"#90CAF9\"}// Blue\n;case\"happy path\":case\"happy_path\":return{bg:\"rgba(156,39,176,0.18)\",fg:\"#CE93D8\"}// Purple\n;default:return{bg:\"rgba(255,255,255,0.08)\",fg:\"#c7c7c7\"};}}function priorityColors(priorityRaw){const p=String(priorityRaw??\"\").toLowerCase().trim();// Material Design 500-ish shades\nswitch(p){case\"critical\":return{bg:\"rgba(244,67,54,0.16)\",fg:\"#F44336\"}// Red 500\n;case\"high\":return{bg:\"rgba(255,152,0,0.18)\",fg:\"#FF9800\"}// Orange 500\n;case\"medium\":return{bg:\"rgba(255,235,59,0.16)\",fg:\"#F7DA59\"}// Yellow 500-ish\n;case\"low\":return{bg:\"rgba(76,175,80,0.18)\",fg:\"#4CAF50\"}// Green 500\n;default:return{bg:\"rgba(255,255,255,0.08)\",fg:\"#bbb\"};}}export default function TestCard(props){const{title,description,type,priority,showDescription,density,background,titleColor,descriptionColor}=props;const typeLabel=titleCase(prettifyLabel(type));const priorityLabel=prettifyLabel(priority);const typePill=typeStyles(typeLabel);const prio=priorityColors(priority);const compact=density===\"compact\";const isFeatured=!!showDescription&&!compact;const paddingY=compact?14:isFeatured?20:16;const gap=compact?8:isFeatured?10:8;const titleSize=compact?14:isFeatured?18:15;const titleWeight=isFeatured?600:500;return /*#__PURE__*/_jsxs(\"div\",{style:{padding:`${paddingY}px 20px`,borderRadius:16,background,display:\"flex\",flexDirection:\"column\",gap,width:\"100%\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",justifyContent:\"space-between\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:titleSize,fontWeight:titleWeight,flex:1,minWidth:0,wordBreak:\"break-word\",overflowWrap:\"anywhere\",lineHeight:1.25,color:titleColor},children:title}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8,flexWrap:\"nowrap\",alignItems:\"center\",flexShrink:0},children:[/*#__PURE__*/_jsx(Pill,{background:typePill.bg,color:typePill.fg,dotColor:typePill.fg,children:typeLabel}),/*#__PURE__*/_jsx(Pill,{background:prio.bg,color:prio.fg,children:priorityLabel})]})]}),showDescription?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,opacity:.8,lineHeight:1.6,color:descriptionColor},children:description}):null]});}function Pill({children,background=\"rgba(255,255,255,0.08)\",color=\"#bbb\",dotColor}){return /*#__PURE__*/_jsxs(\"div\",{style:{fontSize:12,padding:\"4px 10px\",borderRadius:999,background,color,fontWeight:600,whiteSpace:\"nowrap\",width:\"fit-content\",lineHeight:1.2,display:\"inline-flex\",alignItems:\"center\",gap:6},children:[dotColor?/*#__PURE__*/_jsx(\"span\",{style:{width:6,height:6,borderRadius:999,background:dotColor,opacity:.9,display:\"inline-block\"}}):null,children]});}TestCard.defaultProps={title:\"Title\",description:\"Description\",type:\"smoke\",priority:\"high\",showDescription:true,density:\"comfortable\",background:\"#171a1c\",titleColor:\"#ddd\",descriptionColor:\"#a5a6a8\"};addPropertyControls(TestCard,{title:{type:ControlType.String,title:\"Title\"},description:{type:ControlType.String,title:\"Description\"},type:{type:ControlType.String,title:\"Type\"},priority:{type:ControlType.String,title:\"Priority\"},showDescription:{type:ControlType.Boolean,title:\"Show desc\"},density:{type:ControlType.Enum,title:\"Density\",options:[\"comfortable\",\"compact\"],optionTitles:[\"Comfortable\",\"Compact\"]},background:{type:ControlType.Color,title:\"BG\"},titleColor:{type:ControlType.Color,title:\"Title\"},descriptionColor:{type:ControlType.Color,title:\"Desc\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TestCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TestCard.map"],"mappings":"mKAA6G,SAAS,EAAc,EAAM,CAAC,OAAO,OAAO,GAAO,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,CAAE,SAAS,EAAU,EAAM,CAAC,OAAO,EAAM,MAAM,IAAI,CAAC,OAAO,QAAQ,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,IAAI,CAAE,SAAS,EAAW,EAAQ,CACtV,OAD+V,OAAO,GAAS,GAAG,CAAC,aAAa,CAAC,MAAM,CACvY,CAAU,IAAI,QAAQ,MAAM,CAAC,GAAG,wBAAwB,GAAG,UAAU,CACpE,IAAI,aAAa,IAAI,aAAa,MAAM,CAAC,GAAG,wBAAwB,GAAG,UAAU,CACjF,QAAQ,MAAM,CAAC,GAAG,yBAAyB,GAAG,UAAU,EAAG,SAAS,EAAe,EAAY,CAChG,OADyG,OAAO,GAAa,GAAG,CAAC,aAAa,CAAC,MAAM,CACrJ,CAAU,IAAI,WAAW,MAAM,CAAC,GAAG,uBAAuB,GAAG,UAAU,CACtE,IAAI,OAAO,MAAM,CAAC,GAAG,uBAAuB,GAAG,UAAU,CACzD,IAAI,SAAS,MAAM,CAAC,GAAG,wBAAwB,GAAG,UAAU,CAC5D,IAAI,MAAM,MAAM,CAAC,GAAG,uBAAuB,GAAG,UAAU,CACxD,QAAQ,MAAM,CAAC,GAAG,yBAAyB,GAAG,OAAO,EAAG,SAAwB,EAAS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