aliveicon 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +13 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -9
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2966,6 +2966,18 @@ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
|
2966
2966
|
function cn(...inputs) {
|
|
2967
2967
|
return twMerge(clsx(inputs));
|
|
2968
2968
|
}
|
|
2969
|
+
const squareVariants = {
|
|
2970
|
+
normal: {
|
|
2971
|
+
scale: 1,
|
|
2972
|
+
opacity: 1,
|
|
2973
|
+
transition: { duration: 0.4 },
|
|
2974
|
+
},
|
|
2975
|
+
animate: {
|
|
2976
|
+
scale: 1.1,
|
|
2977
|
+
opacity: 0.8,
|
|
2978
|
+
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
2979
|
+
},
|
|
2980
|
+
};
|
|
2969
2981
|
const pathVariants = {
|
|
2970
2982
|
normal: {
|
|
2971
2983
|
opacity: 1,
|
|
@@ -2987,14 +2999,6 @@ const pathVariants = {
|
|
|
2987
2999
|
},
|
|
2988
3000
|
},
|
|
2989
3001
|
};
|
|
2990
|
-
const squareVariants = {
|
|
2991
|
-
normal: {
|
|
2992
|
-
transition: { duration: 0.4 },
|
|
2993
|
-
},
|
|
2994
|
-
animate: {
|
|
2995
|
-
transition: { duration: 0.6, ease: 'easeInOut' },
|
|
2996
|
-
},
|
|
2997
|
-
};
|
|
2998
3002
|
function SquareActivity({ size = 28, className, style, autoAnimateOnLoad = false, hoverable = true, loopOnHover = false, animateOnClick = false, onMouseEnter, onMouseLeave, onClick, ...props }) {
|
|
2999
3003
|
const controls = framerMotion.useAnimation();
|
|
3000
3004
|
const loopRef = react.useRef(loopOnHover);
|
|
@@ -3032,7 +3036,7 @@ function SquareActivity({ size = 28, className, style, autoAnimateOnLoad = false
|
|
|
3032
3036
|
height: size,
|
|
3033
3037
|
display: 'inline-block',
|
|
3034
3038
|
...style,
|
|
3035
|
-
}, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onClick: handleClick, ...props, children: jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "100%", height: "100%", children: [jsxRuntime.jsx(framerMotion.motion.rect, { width: "18", height: "18", x: "3", y: "3", rx: "2", variants: squareVariants, animate: controls, initial: "normal" }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M17 12h-2l-2 5-2-10-2 5H7", variants: pathVariants, animate: controls, initial: "normal" })] }) }));
|
|
3039
|
+
}, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onClick: handleClick, ...props, children: jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "100%", height: "100%", children: [jsxRuntime.jsx(framerMotion.motion.rect, { width: "18", height: "18", x: "3", y: "3", rx: "2", variants: squareVariants, animate: controls, initial: "normal" }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M17 12h-2l-2 5-2-10-2 5H7", variants: pathVariants, animate: controls, initial: "normal", style: { strokeDasharray: 1 } })] }) }));
|
|
3036
3040
|
}
|
|
3037
3041
|
|
|
3038
3042
|
exports.SquareActivity = SquareActivity;
|