{"version":3,"file":"FigureSteps.CE3mPBZL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cDGCw4gxGp4F7p7iHiAv/mDI7XVRi3HxpuD9jPhGz/FigureSteps.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * FigureSteps: a numbered process figure (2–5 steps) in the eng blog figure frame.\n * Reusable for any post: everything is set from props, no code changes needed.\n * Steps: one per line, \"Title | Description\".\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function FigureSteps(props){const{number,kicker,title,steps,footer,sansFont,monoFont,spaceAbove,spaceBelow,style}=props;const list=String(steps||\"\").split(\"\\n\").map(l=>l.trim()).filter(Boolean).map(l=>{const[t,...d]=l.split(\"|\");return[t.trim(),d.join(\"|\").trim()];});const sans=`\"${sansFont}\", Arial, sans-serif`;const mono=`\"${monoFont}\", ui-monospace, monospace`;return /*#__PURE__*/_jsx(\"div\",{style:{...style,boxSizing:\"border-box\",paddingTop:spaceAbove,paddingBottom:spaceBelow},children:/*#__PURE__*/_jsxs(\"figure\",{className:\"sfig\",style:{[\"--sans\"]:sans,[\"--mono\"]:mono},children:[/*#__PURE__*/_jsx(\"style\",{children:FIG_CSS+CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfig-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sfig-kicker\",children:kicker}),/*#__PURE__*/_jsxs(\"span\",{className:\"sfig-num\",children:[\"Fig. \",String(number).padStart(2,\"0\")]})]}),/*#__PURE__*/_jsx(\"p\",{className:\"sfig-title\",children:title}),/*#__PURE__*/_jsx(\"ol\",{className:\"fs-steps\",style:{gridTemplateColumns:`repeat(${Math.max(1,list.length)}, minmax(0, 1fr))`},children:list.map(([t,d],i)=>/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{className:\"fs-n\",children:String(i+1).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"strong\",{children:t}),/*#__PURE__*/_jsx(\"span\",{className:\"fs-d\",children:d})]},i))}),footer?/*#__PURE__*/_jsx(\"p\",{className:\"fs-foot\",children:footer}):/*#__PURE__*/_jsx(\"div\",{className:\"fs-close\"})]})});}const FIG_CSS=`\n.sfig{box-sizing:border-box;width:100%;margin:0;padding:24px;border:1px solid rgba(255,255,255,.10);border-radius:4px;background:rgba(255,255,255,.025);font-family:var(--sans);font-size:15px;line-height:1.5;color:#C4CAD5}\n.sfig *{box-sizing:border-box}\n.sfig-head{display:flex;justify-content:space-between;gap:16px}\n.sfig-kicker,.sfig-num{font:500 12px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#8E97A8}\n.sfig-num{color:#8FB3D9}\n.sfig-title{margin:8px 0 20px;font:600 18px/1.4 var(--sans);letter-spacing:-.01em;color:#F3F5F9}\n.sfig-label{display:block;font:500 12px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#8E97A8;margin-bottom:12px}\n.sfig-cap{display:block;font:400 12px/1.4 var(--mono);color:#8FB3D9;margin-top:12px}\n`;const CSS=`\n.fs-steps{list-style:none;margin:0;padding:0;display:grid;border:1px solid rgba(255,255,255,.10);border-bottom:0}\n.fs-steps li{margin:0;padding:16px;border-left:1px solid rgba(255,255,255,.10);display:flex;flex-direction:column;gap:6px}\n.fs-steps li:first-child{border-left:0}\n.fs-n{font:400 12px/1.2 var(--mono);color:#8E97A8;margin-bottom:6px}\n.fs-steps strong{font:700 16px/1.3 var(--sans);color:#F3F5F9}\n.fs-d{font-size:14px;color:#C4CAD5}\n.fs-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:10px 14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.02);font:400 12px/1.4 var(--mono);color:#8E97A8;text-align:center}\n.fs-close{border-top:1px solid rgba(255,255,255,.10)}\n@media (max-width:640px){.sfig{padding:16px}.fs-steps{grid-template-columns:1fr 1fr!important}.fs-steps li:nth-child(odd){border-left:0}.fs-steps li:nth-child(n+3){border-top:1px solid rgba(255,255,255,.10)}}\n`;FigureSteps.defaultProps={number:1,kicker:\"Kicker\",title:\"Figure title.\",steps:\"Step one | What happens first.\\nStep two | What happens next.\",footer:\"\",sansFont:\"Aileron\",monoFont:\"IBM Plex Mono\",spaceAbove:40,spaceBelow:40};addPropertyControls(FigureSteps,{number:{type:ControlType.Number,title:\"Fig. number\",min:1,max:20,step:1},kicker:{type:ControlType.String,title:\"Kicker\"},title:{type:ControlType.String,title:\"Title\"},steps:{type:ControlType.String,title:\"Steps\",displayTextArea:true,description:\"One per line: Title | Description\"},footer:{type:ControlType.String,title:\"Footer\",description:\"Optional line under the steps\"},spaceAbove:{type:ControlType.Number,title:\"Space above\",min:0,max:160,unit:\"px\"},spaceBelow:{type:ControlType.Number,title:\"Space below\",min:0,max:160,unit:\"px\"},sansFont:{type:ControlType.String,title:\"Sans font\"},monoFont:{type:ControlType.String,title:\"Mono font\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FigureSteps\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FigureSteps.map"],"mappings":"8JAQG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,QAAM,QAAM,SAAO,WAAS,WAAS,aAAW,aAAW,SAAO,EAAY,EAAK,OAAO,GAAO,EAAE,CAAC,CAAC,MAAM;CAAI,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,GAAK,CAAC,EAAE,GAAG,GAAG,EAAE,MAAM,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,KAA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