viconic-react-icons 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -56,7 +56,6 @@ export default App;
56
56
  | `name` | `string` | `undefined` | **Required.** The unique icon ID (e.g. `lucide:activity`, `h2:0`). |
57
57
  | `className` | `string` | `""` | Standard CSS class names (great for Tailwind). |
58
58
  | `style` | `React.CSSProperties` | `{}` | Inline CSS styling. |
59
- | `animate` | `string` | `undefined` | Optional built-in animation keyword. |
60
59
  | `...props` | `HTMLAttributes` | | Spread standard HTML attributes (e.g. `onClick`, `title`). |
61
60
 
62
61
  ## Architecture
@@ -68,4 +67,4 @@ Because we fetch SVGs in parallel and cache them across user sessions, your fron
68
67
  ## License
69
68
 
70
69
  This project is licensed under the MIT License. Icon licenses depend on the specific icon families you request.
71
-
70
+
package/dist/index.js CHANGED
@@ -1934,19 +1934,18 @@ var import_react = __toESM(require("react"));
1934
1934
  })();
1935
1935
 
1936
1936
  // src/index.jsx
1937
- var ViconicIcon = ({ name, animate, className, style, ...props }) => {
1937
+ var ViconicIcon = ({ name, className, style, ...props }) => {
1938
1938
  const iconRef = (0, import_react.useRef)(null);
1939
1939
  (0, import_react.useEffect)(() => {
1940
1940
  if (window.CopyIcons && iconRef.current) {
1941
1941
  window.CopyIcons.forceProcess(iconRef.current);
1942
1942
  }
1943
- }, [name, animate, className]);
1943
+ }, [name, className]);
1944
1944
  return /* @__PURE__ */ import_react.default.createElement(
1945
1945
  "viconic-icon",
1946
1946
  {
1947
1947
  ref: iconRef,
1948
1948
  icon: name,
1949
- animate,
1950
1949
  class: className,
1951
1950
  style,
1952
1951
  ...props
package/dist/index.mjs CHANGED
@@ -1900,19 +1900,18 @@ import React, { useEffect, useRef } from "react";
1900
1900
  })();
1901
1901
 
1902
1902
  // src/index.jsx
1903
- var ViconicIcon = ({ name, animate, className, style, ...props }) => {
1903
+ var ViconicIcon = ({ name, className, style, ...props }) => {
1904
1904
  const iconRef = useRef(null);
1905
1905
  useEffect(() => {
1906
1906
  if (window.CopyIcons && iconRef.current) {
1907
1907
  window.CopyIcons.forceProcess(iconRef.current);
1908
1908
  }
1909
- }, [name, animate, className]);
1909
+ }, [name, className]);
1910
1910
  return /* @__PURE__ */ React.createElement(
1911
1911
  "viconic-icon",
1912
1912
  {
1913
1913
  ref: iconRef,
1914
1914
  icon: name,
1915
- animate,
1916
1915
  class: className,
1917
1916
  style,
1918
1917
  ...props
package/index.d.ts CHANGED
@@ -3,14 +3,10 @@ import * as React from 'react';
3
3
  export interface ViconicIconProps extends React.HTMLAttributes<HTMLElement> {
4
4
  /** The unique icon ID (e.g., 'lucide:activity', 'h2:0'). Required. */
5
5
  name: string;
6
- /** Optional built-in animation keyword. */
7
- animate?: string;
8
- /** Standard CSS class names. */
9
- className?: string;
10
- /** Inline CSS styling. */
6
+
11
7
  style?: React.CSSProperties;
12
8
  }
13
9
 
14
10
  export const ViconicIcon: React.FC<ViconicIconProps>;
15
11
  export default ViconicIcon;
16
-
12
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viconic-react-icons",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Viconic Smart Icons loader for React",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1783,7 +1783,7 @@
1783
1783
  line-height: 1;
1784
1784
  width: 1em;
1785
1785
  height: 1em;
1786
- opacity: 0;
1786
+
1787
1787
  }
1788
1788
  :where(viconic-icon).svg-loaded {
1789
1789
  display: inline-flex !important;
@@ -1791,7 +1791,7 @@
1791
1791
  justify-content: center;
1792
1792
  background: none !important;
1793
1793
  background-color: transparent !important;
1794
- opacity: 1;
1794
+
1795
1795
  }
1796
1796
  :where(viconic-icon).svg-loaded:not(.ci-multicolor) svg {
1797
1797
  width: 1em;
@@ -1802,21 +1802,21 @@
1802
1802
  width: 1em;
1803
1803
  height: 1em;
1804
1804
  }
1805
- @keyframes ci-appear { from { opacity: 0; } to { opacity: 1; } }
1806
- :where(viconic-icon).svg-loaded:not(.cache-hit) { animation: ci-appear 0.12s ease-out; }
1807
- :where(viconic-icon).cache-hit { opacity: 1 !important; animation: none !important; }
1808
- i.cache-hit { animation: none !important; }
1805
+ to { } }
1806
+
1807
+
1808
+
1809
1809
  /* --- ANIMATION COMMENTED OUT START ---
1810
1810
  @keyframes ci-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
1811
- @keyframes ci-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
1811
+ @keyframes ci-pulse { 0%, 100% { } 50% { opacity: 0.4; } }
1812
1812
  @keyframes ci-bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-0.4em); } 60% { transform: translateY(-0.2em); } }
1813
1813
  @keyframes ci-shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-0.1em); } 20%, 40%, 60%, 80% { transform: translateX(0.1em); } }
1814
1814
  @keyframes ci-flip { 0%, 100% { transform: perspective(400px) rotateY(0deg); } 50% { transform: perspective(400px) rotateY(180deg); } }
1815
1815
  @keyframes ci-heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.25); } 70% { transform: scale(1); } }
1816
- @keyframes ci-fade { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
1816
+ @keyframes ci-fade { 0%, 100% { } 50% { opacity: 0.3; } }
1817
1817
  @keyframes ci-wobble { 0%, 100% { transform: rotate(0deg); } 15% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
1818
1818
  @keyframes ci-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.3em); } }
1819
- @keyframes ci-trace { 0% { fill-opacity: 0; stroke: currentColor; stroke-width: var(--trace-stroke-width, 1px); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: var(--path-len, 400); } 50%, 60% { fill-opacity: 0; stroke: currentColor; stroke-width: var(--trace-stroke-width, 1px); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: 0; } 100% { fill-opacity: 1; stroke: var(--trace-end-stroke, transparent); stroke-width: var(--trace-end-stroke-width, 0); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: 0; } }
1819
+ @keyframes ci-trace { 0% { fill- stroke: currentColor; stroke-width: var(--trace-stroke-width, 1px); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: var(--path-len, 400); } 50%, 60% { fill- stroke: currentColor; stroke-width: var(--trace-stroke-width, 1px); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: 0; } 100% { fill- stroke: var(--trace-end-stroke, transparent); stroke-width: var(--trace-end-stroke-width, 0); stroke-dasharray: var(--path-len, 400); stroke-dashoffset: 0; } }
1820
1820
  :where(viconic-icon)[animate="spin"] { animation: ci-spin 1.5s linear infinite !important; }
1821
1821
  :where(viconic-icon)[animate="pulse"] { animation: ci-pulse 2s ease-in-out infinite !important; }
1822
1822
  :where(viconic-icon)[animate="bounce"] { animation: ci-bounce 1s ease infinite !important; }
package/src/index.jsx CHANGED
@@ -1,20 +1,19 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
2
  import './copyicons-smart-loader.js';
3
3
 
4
- export const ViconicIcon = ({ name, animate, className, style, ...props }) => {
4
+ export const ViconicIcon = ({ name, className, style, ...props }) => {
5
5
  const iconRef = useRef(null);
6
6
 
7
7
  useEffect(() => {
8
8
  if (window.CopyIcons && iconRef.current) {
9
9
  window.CopyIcons.forceProcess(iconRef.current);
10
10
  }
11
- }, [name, animate, className]);
11
+ }, [name, className]);
12
12
 
13
13
  return (
14
14
  <viconic-icon
15
15
  ref={iconRef}
16
16
  icon={name}
17
- animate={animate}
18
17
  class={className}
19
18
  style={style}
20
19
  {...props}
@@ -22,4 +21,4 @@ export const ViconicIcon = ({ name, animate, className, style, ...props }) => {
22
21
  );
23
22
  };
24
23
 
25
- export default ViconicIcon;
24
+ export default ViconicIcon;