@animateicons/react 0.7.0 → 0.7.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @animateicons/react
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed the TypeScript types for CommonJS consumers. The `require` condition now points to `.d.cts` declarations, so `require("@animateicons/react")` under `node16` or `nodenext` resolution no longer gets ESM types for a CJS file. ESM and bundler resolution are unchanged.
8
+ - Fixed the `HistoryIcon` hover animation. Both clock hands used to turn together as one rigid shape. Now only the minute hand makes the full turn and the hour hand stays put, like the other clock icons. No API changes.
9
+
3
10
  ## 0.7.0
4
11
 
5
12
  ### Minor Changes
@@ -0,0 +1 @@
1
+ import{a as d,b as p,c as v,d as y,e as f,f as e}from"./chunk-VEXIWKDQ.js";import{forwardRef as w,useCallback as M,useImperativeHandle as E,useRef as b}from"react";import{jsx as n,jsxs as k}from"react/jsx-runtime";var D=w(({onMouseEnter:i,onMouseLeave:s,className:H,size:m=24,duration:l=1,isAnimated:c=!0,color:h,...u},g)=>{let t=f(),o=y(),r=b(!1);E(g,()=>(r.current=!0,{startAnimation:()=>o?t.start("normal"):t.start("animate"),stopAnimation:()=>t.start("normal")}));let x=M(a=>{!c||o||(r.current?i?.(a):t.start("animate"))},[t,o,c,i]),L=M(a=>{r.current?s?.(a):t.start("normal")},[t,s]),A={normal:{rotate:0,transition:{duration:0}},animate:{rotate:[0,-360],transition:{duration:.9*l,ease:"easeInOut"}}},I={normal:{x:0,y:0},animate:{x:[0,-1.5,.5,0],y:[0,-1.5,.5,0],transition:{duration:.6*l,ease:"easeInOut",times:[0,.35,.7,1]}}};return n(p,{features:v,strict:!0,children:n(e.div,{className:d("inline-flex items-center justify-center",H),onMouseEnter:x,onMouseLeave:L,...u,style:{color:h,...u.style},children:k(e.svg,{xmlns:"http://www.w3.org/2000/svg",width:m,height:m,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",animate:t,initial:"normal",children:[n("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),n(e.path,{d:"M3 3v5h5",variants:I}),n(e.path,{d:"M12 7v5",variants:A,style:{transformBox:"view-box",originX:"12px",originY:"12px"}}),n("path",{d:"M12 12l4 2"})]})})})});D.displayName="HistoryIcon";export{D as a};
@@ -1 +1 @@
1
- "use client";import{a}from"../../chunk-JUC4L462.js";import"../../chunk-VEXIWKDQ.js";export{a as HistoryIcon};
1
+ "use client";import{a}from"../../chunk-GGDHQ5TP.js";import"../../chunk-VEXIWKDQ.js";export{a as HistoryIcon};