{"version":3,"file":"Examples.C58QEkHM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/HLiaHPZe6ciGTcvk0tZq/PFTL0oNKqNsSnmvrgcBM/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";// 16:9 横图比例，适合 Hannah 那种 work card\nexport function withAspectRatio16x9(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,width:\"100%\",aspectRatio:\"16 / 9\",height:\"auto\",overflow:\"hidden\"}});});}// 16:10，稍微高一点，适合 portfolio thumbnail\nexport function withAspectRatio16x10(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,width:\"100%\",aspectRatio:\"16 / 10\",height:\"auto\",overflow:\"hidden\"}});});}// 图片填满卡片，不拉伸，只裁切\nexport function withImageCover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,width:\"100%\",height:\"100%\",objectFit:\"cover\"}});});}// Hover 轻微放大，高级一点\nexport function withSoftHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.015},transition:{duration:.25,ease:\"easeOut\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAspectRatio16x10\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatio16x10\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withImageCover\":{\"type\":\"reactHoc\",\"name\":\"withImageCover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSoftHover\":{\"type\":\"reactHoc\",\"name\":\"withSoftHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAspectRatio16x9\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatio16x9\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"kHACA,SAAgB,EAAoB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,OAAO,YAAY,SAAS,OAAO,OAAO,SAAS,SAAS,CAAC,CAAC,CAAG,CAC9O,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,OAAO,YAAY,UAAU,OAAO,OAAO,SAAS,SAAS,CAAC,CAAC,CAAG,kBAFrM,IAA8B"}