aliveicon 1.2.0 → 1.2.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.
@@ -10,7 +10,7 @@ var cn = require('../../lib/cn.js');
10
10
  var useAnimatedIcon = require('../../lib/use-animated-icon.js');
11
11
 
12
12
  const Anchor = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
13
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props);
13
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { animate: 'animate1' });
14
14
  const pathVariants = {
15
15
  normal: {
16
16
  opacity: 1,
@@ -26,7 +26,10 @@ const pathVariants = {
26
26
  },
27
27
  };
28
28
  const ArchiveRestore = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
29
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { rest: 'initial' });
29
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, {
30
+ rest: 'initial',
31
+ animate: 'draw',
32
+ });
30
33
  return (jsxRuntime.jsx("div", { className: cn.cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxRuntime.jsxs("svg", { "aria-hidden": "true", 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, { x: "2", y: "3", width: "20", height: "5", rx: "1", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M4 8v11a2 2 0 0 0 2 2h2", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M20 8v11a2 2 0 0 1-2 2h-2", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "m9 15 3-3 3 3", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M12 12v9", variants: pathVariants, initial: "initial", animate: controls })] }) }));
31
34
  });
32
35
  ArchiveRestore.displayName = 'ArchiveRestore';
@@ -1 +1 @@
1
- {"version":3,"file":"ArchiveRestore.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ArchiveRestore.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -26,7 +26,10 @@ const pathVariants = {
26
26
  },
27
27
  };
28
28
  const ArchiveX = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
29
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { rest: 'initial' });
29
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, {
30
+ rest: 'initial',
31
+ animate: 'draw',
32
+ });
30
33
  return (jsxRuntime.jsx("div", { className: cn.cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxRuntime.jsxs("svg", { "aria-hidden": "true", 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, { x: "2", y: "3", width: "20", height: "5", rx: "1", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "m9.5 17 5-5", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "m9.5 12 5 5", variants: pathVariants, initial: "initial", animate: controls })] }) }));
31
34
  });
32
35
  ArchiveX.displayName = 'ArchiveX';
@@ -1 +1 @@
1
- {"version":3,"file":"ArchiveX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ArchiveX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -26,7 +26,10 @@ const pathVariants = {
26
26
  },
27
27
  };
28
28
  const Armchair = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
29
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { rest: 'initial' });
29
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, {
30
+ rest: 'initial',
31
+ animate: 'draw',
32
+ });
30
33
  return (jsxRuntime.jsx("div", { className: cn.cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxRuntime.jsxs("svg", { "aria-hidden": "true", 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.path, { d: "M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M5 18v2", variants: pathVariants, initial: "initial", animate: controls }), jsxRuntime.jsx(framerMotion.motion.path, { d: "M19 18v2", variants: pathVariants, initial: "initial", animate: controls })] }) }));
31
34
  });
32
35
  Armchair.displayName = 'Armchair';
@@ -1 +1 @@
1
- {"version":3,"file":"Armchair.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Armchair.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -10,7 +10,7 @@ var cn = require('../../lib/cn.js');
10
10
  var useAnimatedIcon = require('../../lib/use-animated-icon.js');
11
11
 
12
12
  const Bicep = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
13
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { rest: 'relax' });
13
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { rest: 'relax', animate: 'flex' });
14
14
  const pathVariants = {
15
15
  relax: { pathLength: 1, opacity: 1, rotate: 0 },
16
16
  flex: {
@@ -111,7 +111,10 @@ const bodyVariants = {
111
111
  },
112
112
  };
113
113
  const BoomBox = React.forwardRef(({ className, size = 28, style, ...props }, ref) => {
114
- const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, { cycleMs: 1000 });
114
+ const { controls, iconProps } = useAnimatedIcon.useAnimatedIcon(ref, props, {
115
+ animate: 'playing',
116
+ cycleMs: 1000,
117
+ });
115
118
  return (jsxRuntime.jsx("div", { className: cn.cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxRuntime.jsxs(framerMotion.motion.svg, { "aria-hidden": "true", 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%", variants: boomBoxVariants, initial: "normal", animate: controls, children: [jsxRuntime.jsx(framerMotion.motion.path, { d: "M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4", variants: {
116
119
  normal: { opacity: 1 },
117
120
  playing: { opacity: 1 },
@@ -1 +1 @@
1
- {"version":3,"file":"BoomBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BoomBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ import { cn } from '../../lib/cn.js';
6
6
  import { useAnimatedIcon } from '../../lib/use-animated-icon.js';
7
7
 
8
8
  const Anchor = forwardRef(({ className, size = 28, style, ...props }, ref) => {
9
- const { controls, iconProps } = useAnimatedIcon(ref, props);
9
+ const { controls, iconProps } = useAnimatedIcon(ref, props, { animate: 'animate1' });
10
10
  const pathVariants = {
11
11
  normal: {
12
12
  opacity: 1,
@@ -22,7 +22,10 @@ const pathVariants = {
22
22
  },
23
23
  };
24
24
  const ArchiveRestore = forwardRef(({ className, size = 28, style, ...props }, ref) => {
25
- const { controls, iconProps } = useAnimatedIcon(ref, props, { rest: 'initial' });
25
+ const { controls, iconProps } = useAnimatedIcon(ref, props, {
26
+ rest: 'initial',
27
+ animate: 'draw',
28
+ });
26
29
  return (jsx("div", { className: cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxs("svg", { "aria-hidden": "true", 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: [jsx(motion.rect, { x: "2", y: "3", width: "20", height: "5", rx: "1", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M4 8v11a2 2 0 0 0 2 2h2", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M20 8v11a2 2 0 0 1-2 2h-2", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "m9 15 3-3 3 3", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M12 12v9", variants: pathVariants, initial: "initial", animate: controls })] }) }));
27
30
  });
28
31
  ArchiveRestore.displayName = 'ArchiveRestore';
@@ -1 +1 @@
1
- {"version":3,"file":"ArchiveRestore.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ArchiveRestore.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -22,7 +22,10 @@ const pathVariants = {
22
22
  },
23
23
  };
24
24
  const ArchiveX = forwardRef(({ className, size = 28, style, ...props }, ref) => {
25
- const { controls, iconProps } = useAnimatedIcon(ref, props, { rest: 'initial' });
25
+ const { controls, iconProps } = useAnimatedIcon(ref, props, {
26
+ rest: 'initial',
27
+ animate: 'draw',
28
+ });
26
29
  return (jsx("div", { className: cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxs("svg", { "aria-hidden": "true", 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: [jsx(motion.rect, { x: "2", y: "3", width: "20", height: "5", rx: "1", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "m9.5 17 5-5", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "m9.5 12 5 5", variants: pathVariants, initial: "initial", animate: controls })] }) }));
27
30
  });
28
31
  ArchiveX.displayName = 'ArchiveX';
@@ -1 +1 @@
1
- {"version":3,"file":"ArchiveX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ArchiveX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -22,7 +22,10 @@ const pathVariants = {
22
22
  },
23
23
  };
24
24
  const Armchair = forwardRef(({ className, size = 28, style, ...props }, ref) => {
25
- const { controls, iconProps } = useAnimatedIcon(ref, props, { rest: 'initial' });
25
+ const { controls, iconProps } = useAnimatedIcon(ref, props, {
26
+ rest: 'initial',
27
+ animate: 'draw',
28
+ });
26
29
  return (jsx("div", { className: cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxs("svg", { "aria-hidden": "true", 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: [jsx(motion.path, { d: "M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M5 18v2", variants: pathVariants, initial: "initial", animate: controls }), jsx(motion.path, { d: "M19 18v2", variants: pathVariants, initial: "initial", animate: controls })] }) }));
27
30
  });
28
31
  Armchair.displayName = 'Armchair';
@@ -1 +1 @@
1
- {"version":3,"file":"Armchair.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Armchair.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ import { cn } from '../../lib/cn.js';
6
6
  import { useAnimatedIcon } from '../../lib/use-animated-icon.js';
7
7
 
8
8
  const Bicep = forwardRef(({ className, size = 28, style, ...props }, ref) => {
9
- const { controls, iconProps } = useAnimatedIcon(ref, props, { rest: 'relax' });
9
+ const { controls, iconProps } = useAnimatedIcon(ref, props, { rest: 'relax', animate: 'flex' });
10
10
  const pathVariants = {
11
11
  relax: { pathLength: 1, opacity: 1, rotate: 0 },
12
12
  flex: {
@@ -107,7 +107,10 @@ const bodyVariants = {
107
107
  },
108
108
  };
109
109
  const BoomBox = forwardRef(({ className, size = 28, style, ...props }, ref) => {
110
- const { controls, iconProps } = useAnimatedIcon(ref, props, { cycleMs: 1000 });
110
+ const { controls, iconProps } = useAnimatedIcon(ref, props, {
111
+ animate: 'playing',
112
+ cycleMs: 1000,
113
+ });
111
114
  return (jsx("div", { className: cn('inline-block', className), style: { width: size, height: size, ...style }, ...iconProps, children: jsxs(motion.svg, { "aria-hidden": "true", 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%", variants: boomBoxVariants, initial: "normal", animate: controls, children: [jsx(motion.path, { d: "M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4", variants: {
112
115
  normal: { opacity: 1 },
113
116
  playing: { opacity: 1 },
@@ -1 +1 @@
1
- {"version":3,"file":"BoomBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BoomBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aliveicon",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "500+ animated SVG icons for React that draw themselves on hover, click, or load.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",