{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/94NZI0Nr0Ly54xxm1Y9y/NDClgRRIDTvYmLH95n2J/Rows.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerIntrinsicWidth 1200\n * @framerSupportedLayoutHeight auto\n */export default function PortfolioDirectory(props){const{entries,backgroundColor,textColor,lineColor,lineThickness,clientFont,yearFont,descriptionFont,hoverBackgroundColor,hoverTextColor,rowHeight,style}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const[activeIndex,setActiveIndex]=useState(null);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor,...style},children:entries.map((entry,index)=>{const isHovered=hoveredIndex===index;const isActive=activeIndex===index;return /*#__PURE__*/_jsx(motion.div,{onMouseEnter:()=>setHoveredIndex(index),onMouseLeave:()=>setHoveredIndex(null),onClick:()=>setActiveIndex(isActive?null:index),animate:{backgroundColor:isHovered?hoverBackgroundColor:backgroundColor,color:isHovered?hoverTextColor:textColor,transition:{duration:.2}},style:{position:\"relative\",height:rowHeight,display:\"flex\",alignItems:\"center\",padding:\"12px 16px\",borderBottom:index!==entries.length-1?`${lineThickness}px solid ${lineColor}`:\"none\",cursor:\"pointer\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(AnimatePresence,{mode:\"wait\",children:!isActive?/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.3},style:{position:\"absolute\",left:16,right:16,display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...clientFont},children:entry.client}),/*#__PURE__*/_jsx(\"span\",{style:{...yearFont},children:entry.time})]},\"meta\"):/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.3},style:{position:\"absolute\",left:16,right:16,...descriptionFont,pointerEvents:\"none\"},children:entry.details},\"desc\")})},index);})});}PortfolioDirectory.displayName=\"Portfolio Directory\";addPropertyControls(PortfolioDirectory,{entries:{type:ControlType.Array,control:{type:ControlType.Object,controls:{client:{type:ControlType.String,defaultValue:\"Client Name\"},time:{type:ControlType.String,defaultValue:\"Jan 2024 \u2013 Mar 2024\"},details:{type:ControlType.String,defaultValue:\"Project description goes here.\",displayTextArea:true}}},defaultValue:[{client:\"Client A\",time:\"Jan 2024 \u2013 Mar 2024\",details:\"Designed brand identity and website.\"},{client:\"Client B\",time:\"Apr 2024 \u2013 Jun 2024\",details:\"UX/UI for e-commerce platform.\"}]},backgroundColor:{type:ControlType.Color,defaultValue:\"#ffffff\"},hoverBackgroundColor:{type:ControlType.Color,defaultValue:\"#f0f0f0\"},textColor:{type:ControlType.Color,defaultValue:\"#000000\"},hoverTextColor:{type:ControlType.Color,defaultValue:\"#000000\"},lineColor:{type:ControlType.Color,defaultValue:\"#dddddd\"},lineThickness:{type:ControlType.Number,defaultValue:1,min:0,max:10,step:.5,displayStepper:true,unit:\"px\"},rowHeight:{type:ControlType.Number,title:\"Row Height\",defaultValue:60,min:24,max:200,step:1,displayStepper:true,unit:\"px\"},clientFont:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1.4}},yearFont:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4}},descriptionFont:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.5}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PortfolioDirectory\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framer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AAqB,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,eAAe,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,aAAa,SAAS,EAAE,cAAc,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,eAAe,GAAK,KAAK,IAAI,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,aAAa,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,EAAE,eAAe,GAAK,KAAK,IAAI,EAAE,WAAW,CAAC,KAAK,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,gBAAgB,CAAC,KAAK,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC",
  "names": ["PortfolioDirectory", "props", "entries", "backgroundColor", "textColor", "lineColor", "lineThickness", "clientFont", "yearFont", "descriptionFont", "hoverBackgroundColor", "hoverTextColor", "rowHeight", "style", "hoveredIndex", "setHoveredIndex", "ye", "activeIndex", "setActiveIndex", "p", "entry", "index", "isHovered", "isActive", "motion", "AnimatePresence", "u", "addPropertyControls", "ControlType"]
}
