{"version":3,"file":"New_Negative_Gap.CZMNPCv1.mjs","names":["React.isValidElement","React.cloneElement","_jsx","__esmMin","z","j","K","c","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","ControlType","init_framer_BWzg2IRg","motion","AnimatePresence","init_framer_motion_1EwlFBEG","NegativeGap","props","gap","direction","children","enableHoverEffect","hoverScale","hoverRotate","animationDuration","animationEase","enableEntranceEffect","entranceAnimationMode","entranceAnimationSpeed","slideDirection","reverseOrder","opacity","containerStyle","entranceVariants","initialOpacity","i","slideValues","stackValues","sortedChildren","a","b","adjustedChildren","child","index","isLastChild","marginStyle","childWithStyle","init_New_Negative_Gap"],"sources":["https:/framerusercontent.com/modules/P3zsvJtMFY37ockOjy8z/BAtGIuKwpm76nOUIPE25/New_Negative_Gap.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n *\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function NegativeGap(props){const{gap,direction,children,enableHoverEffect,hoverScale,hoverRotate,animationDuration,animationEase,enableEntranceEffect,entranceAnimationMode,entranceAnimationSpeed,slideDirection,reverseOrder,opacity}=props;const containerStyle={display:\"flex\",flexDirection:direction===\"horizontal\"?\"row\":\"column\",alignItems:\"center\",justifyContent:\"flex-start\"};const getEntranceVariants=()=>{const initialOpacity=opacity// Use the passed opacity for initial state\n;switch(entranceAnimationMode){case\"fadeIn\":return i=>({initial:{opacity:initialOpacity},animate:{opacity:1,transition:{delay:i*.1}}});case\"fadeInScale\":return i=>({initial:{opacity:initialOpacity,scale:.5},animate:{opacity:1,scale:1,transition:{delay:i*.1}}});case\"slideIn\":const slideValues={up:{y:100},down:{y:-100},left:{x:100},right:{x:-100}};return i=>({initial:{...slideValues[slideDirection],opacity:initialOpacity},animate:{x:0,y:0,opacity:1,transition:{delay:i*.1}}});case\"stack\":const stackValues={up:{y:50},down:{y:-50},left:{x:50},right:{x:-50}};return i=>({initial:{...stackValues[slideDirection],opacity:initialOpacity},animate:{x:0,y:0,opacity:1,transition:{delay:i*.2}}});default:return i=>({initial:{opacity:initialOpacity},animate:{opacity:1,transition:{delay:i*.1}}});}};const entranceVariants=getEntranceVariants();const sortedChildren=React.Children.toArray(children).sort((a,b)=>reverseOrder?-1:1);const adjustedChildren=sortedChildren.map((child,index)=>{if(!/*#__PURE__*/React.isValidElement(child))return child;const isLastChild=index===sortedChildren.length-1;const marginStyle=direction===\"horizontal\"?{marginRight:isLastChild?0:gap}:{marginBottom:isLastChild?0:gap};const childWithStyle=/*#__PURE__*/React.cloneElement(child,{style:{...child.props.style,...marginStyle}});return /*#__PURE__*/_jsx(motion.div,{variants:entranceVariants(index),initial:\"initial\",animate:\"animate\",exit:\"initial\",transition:{duration:entranceAnimationSpeed,ease:animationEase},style:{display:\"inline-block\"},whileHover:enableHoverEffect?{scale:hoverScale,zIndex:10,rotate:hoverRotate,transition:{duration:animationDuration,ease:animationEase}}:{},children:childWithStyle},index);});return /*#__PURE__*/_jsx(\"div\",{style:{overflow:\"visible\"},children:/*#__PURE__*/_jsx(AnimatePresence,{children:/*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:adjustedChildren})})});}NegativeGap.defaultProps={gap:-10,direction:\"horizontal\",enableHoverEffect:false,hoverScale:1.2,hoverRotate:0,animationDuration:.05,animationEase:\"easeInOut\",enableEntranceEffect:false,entranceAnimationMode:\"fadeIn\",entranceAnimationSpeed:.5,slideDirection:\"up\",reverseOrder:false,opacity:0};addPropertyControls(NegativeGap,{gap:{type:ControlType.Number,title:\"Gap\",defaultValue:-10,min:-50,max:0,step:1},direction:{type:ControlType.SegmentedEnum,title:\"Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"→\",\"↓\"]},enableHoverEffect:{type:ControlType.Boolean,title:\"Hover Effect\",defaultValue:false},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.2,min:1,max:2,step:.1,hidden:({enableHoverEffect})=>!enableHoverEffect},hoverRotate:{type:ControlType.Number,title:\"Hover Rotate\",defaultValue:0,min:0,max:360,step:1,hidden:({enableHoverEffect})=>!enableHoverEffect},animationDuration:{type:ControlType.Number,title:\"Anim Duration\",defaultValue:.05,min:.01,max:1,step:.01,hidden:({enableHoverEffect})=>!enableHoverEffect},animationEase:{type:ControlType.Enum,title:\"Anim Ease\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In-Out\"],defaultValue:\"easeInOut\",hidden:({enableHoverEffect})=>!enableHoverEffect},enableEntranceEffect:{type:ControlType.Boolean,title:\"Entrance Effect\",defaultValue:false},entranceAnimationMode:{type:ControlType.Enum,title:\"Entrance Mode\",options:[\"fadeIn\",\"fadeInScale\",\"slideIn\",\"stack\"],optionTitles:[\"Fade In\",\"Fade In & Scale\",\"Slide In\",\"Stack\"],defaultValue:\"fadeIn\",hidden:({enableEntranceEffect})=>!enableEntranceEffect},entranceAnimationSpeed:{type:ControlType.Number,title:\"Anim Speed\",defaultValue:.5,min:.1,max:2,step:.1,hidden:({enableEntranceEffect})=>!enableEntranceEffect},slideDirection:{type:ControlType.Enum,title:\"Slide Direction\",options:[\"up\",\"down\",\"left\",\"right\"],optionTitles:[\"Up\",\"Down\",\"Left\",\"Right\"],defaultValue:\"up\",hidden:({entranceAnimationMode})=>![\"slideIn\",\"stack\"].includes(entranceAnimationMode)},reverseOrder:{type:ControlType.Boolean,title:\"Reverse Order\",defaultValue:false},children:{type:ControlType.Array,control:{type:ControlType.ComponentInstance},title:\"Elements\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:1,description:\"When using effects, set to 0 after configuring properties. \\n\\nBuilt by FramerFuel\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NegativeGap\",\"slots\":[],\"annotations\":{\"framerContract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