{"version":3,"file":"Examples.asotdOGf.mjs","names":["AnimatedCounter","useRef","React.useId","RichText","React.Fragment","useRef"],"sources":["https:/framerusercontent.com/modules/AtgRO1gmpsuYczv3JeT5/Kd6LSGoZGR7vCMfSAoI0/Examples.js","https:/framerusercontent.com/modules/iQlGajnjx7woUPbjtuks/Q13wDppKCPaod8mu9E5B/hCH67XDFw.js","https:/framerusercontent.com/modules/j5d1mjuEWrsvazrPlTPe/Pnspgm3PXqu1XglC4kSV/Examples.js"],"sourcesContent":["/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ import{jsx as _jsx}from\"react/jsx-runtime\";import{animate,motion,useInView,useMotionValue,useTransform}from\"framer-motion\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function AnimatedCounter({from,to,duration,fontFamily,fontSize,color,fontWeight}){const count=useMotionValue(from);const rounded=useTransform(count,latest=>{return Math.round(latest);});const ref=useRef(null);const inView=useInView(ref);// while in view animate the count\nuseEffect(()=>{if(inView){animate(count,to,{duration,ease:\"easeOut\"});}},[count,inView,to,duration]);return /*#__PURE__*/ _jsx(motion.span,{ref:ref,style:{fontFamily,fontSize,color,fontWeight},children:rounded});}AnimatedCounter.defaultProps={from:0,to:15,duration:2.5,fontFamily:\"Poppins\",fontSize:48,color:\"#5514B4\",fontWeight:\"bold\"};addPropertyControls(AnimatedCounter,{from:{type:ControlType.Number,title:\"From\",defaultValue:0,min:0,step:1},to:{type:ControlType.Number,title:\"To\",defaultValue:15,min:0,step:1},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2.5,min:0,step:.1,displayStepper:true},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Poppins\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:48,min:12,max:72,step:1},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",defaultValue:\"bold\",options:[\"normal\",\"bold\",\"lighter\",\"bolder\"],optionTitles:[\"Normal\",\"Bold\",\"Lighter\",\"Bolder\"]},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#5514B4\"}});export default AnimatedCounter;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map","// Generated by Framer (de9b242)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion}from\"framer-motion\";import*as React from\"react\";const cycleOrder=[\"PoEcGsRSC\"];const variantClassNames={PoEcGsRSC:\"framer-v-1rtk5li\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const humanReadableVariantMap={};const transitions={default:{damping:60,delay:0,duration:.3,ease:[.44,0,.56,1],mass:1,stiffness:500,type:\"spring\"}};const Component=/*#__PURE__*/ React.forwardRef(function({id,style,className,width,height,layoutId,variant:outerVariant=\"PoEcGsRSC\",title:ZCsLXUICt=\"Tag\",...restProps},ref){const outerVariantId=humanReadableVariantMap[outerVariant];const variant=outerVariantId||outerVariant;const{baseVariant,classNames,gestureVariant,setGestureState,setVariant,transition,variants}=useVariantState({cycleOrder,defaultVariant:\"PoEcGsRSC\",transitions,variant,variantClassNames});const layoutDependency=variants.join(\"-\")+restProps.layoutDependency;const defaultLayoutId=React.useId();return /*#__PURE__*/ _jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/ _jsx(motion.div,{initial:variant,animate:variants,onHoverStart:()=>setGestureState({isHovered:true}),onHoverEnd:()=>setGestureState({isHovered:false}),onTapStart:()=>setGestureState({isPressed:true}),onTap:()=>setGestureState({isPressed:false}),onTapCancel:()=>setGestureState({isPressed:false}),className:cx(\"framer-fkk1n\",classNames),style:{display:\"contents\"},children:/*#__PURE__*/ _jsx(motion.div,{...restProps,className:cx(\"framer-1rtk5li\",className),\"data-border\":true,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"PoEcGsRSC\",ref:ref,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgb(216, 223, 242)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgb(245, 247, 255)\",borderBottomLeftRadius:4,borderBottomRightRadius:4,borderTopLeftRadius:4,borderTopRightRadius:4,...style},transition:transition,children:/*#__PURE__*/ _jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/ _jsx(React.Fragment,{children:/*#__PURE__*/ _jsx(motion.p,{style:{\"--framer-font-size\":\"12px\",\"--framer-line-height\":\"16px\",\"--framer-text-color\":\"var(--extracted-r6o4lv)\"},children:\"QA Engineer\"})}),className:\"framer-qd8udr\",\"data-framer-name\":\"Tag\",layoutDependency:layoutDependency,layoutId:\"zKHIUhFFo\",style:{\"--extracted-r6o4lv\":\"rgb(26, 29, 35)\",\"--framer-paragraph-spacing\":\"0px\"},text:ZCsLXUICt,transition:transition,verticalAlignment:\"top\",withExternalLayout:true})})})});});const css=['.framer-fkk1n [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }',\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-fkk1n .framer-iu4sx9 { display: block; }\",\".framer-fkk1n .framer-1rtk5li { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: center; overflow: hidden; padding: 4px 8px 4px 8px; position: relative; width: min-content; will-change: transform; }\",\".framer-fkk1n .framer-qd8udr { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-fkk1n .framer-1rtk5li { gap: 0px; } .framer-fkk1n .framer-1rtk5li > * { margin: 0px; margin-left: calc(4px / 2); margin-right: calc(4px / 2); } .framer-fkk1n .framer-1rtk5li > :first-child { margin-left: 0px; } .framer-fkk1n .framer-1rtk5li > :last-child { margin-right: 0px; } }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 24\n * @framerIntrinsicWidth 37\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"ZCsLXUICt\":\"title\"}\n */ const FramerhCH67XDFw=withCSS(Component,css,\"framer-fkk1n\");export default FramerhCH67XDFw;FramerhCH67XDFw.displayName=\"Tag\";FramerhCH67XDFw.defaultProps={height:24,width:37};addPropertyControls(FramerhCH67XDFw,{ZCsLXUICt:{defaultValue:\"Tag\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramerhCH67XDFw,[]);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerhCH67XDFw\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"37\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"ZCsLXUICt\\\":\\\"title\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./hCH67XDFw.map","/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ import{jsx as _jsx}from\"react/jsx-runtime\";import{animate,motion,useInView,useMotionValue,useTransform}from\"framer-motion\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function AnimatedCounter({from,to,duration,fontFamily,fontSize,color,fontWeight}){const count=useMotionValue(from);const rounded=useTransform(count,latest=>{return Math.round(latest);});const ref=useRef(null);const inView=useInView(ref);// while in view animate the count\nuseEffect(()=>{if(inView){animate(count,to,{duration,ease:\"easeOut\"});}},[count,inView,to,duration]);return /*#__PURE__*/ _jsx(motion.span,{ref:ref,style:{fontFamily,fontSize,color,fontWeight},children:rounded});}AnimatedCounter.defaultProps={from:0,to:15,duration:2.5,fontFamily:\"Poppins\",fontSize:48,color:\"#5514B4\",fontWeight:\"bold\"};addPropertyControls(AnimatedCounter,{from:{type:ControlType.Number,title:\"From\",defaultValue:0,min:0,step:1},to:{type:ControlType.Number,title:\"To\",defaultValue:15,min:0,step:1},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2.5,min:0,step:.1,displayStepper:true},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Poppins\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:48,min:12,max:72,step:1},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",defaultValue:\"bold\",options:[\"normal\",\"bold\",\"lighter\",\"bolder\"],optionTitles:[\"Normal\",\"Bold\",\"Lighter\",\"Bolder\"]},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#5514B4\"}});export default AnimatedCounter;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"+TAGuN,SAASA,EAAgB,CAAC,OAAK,KAAG,WAAS,aAAW,WAAS,QAAM,cAAY,CAAC,IAAM,EAAM,EAAe,EAAK,CAAO,EAAQ,EAAa,EAAM,GAAgB,KAAK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