artode-icons 0.1.3 → 0.1.5
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/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -294,6 +294,9 @@ var ArtodeIcon = ({
|
|
|
294
294
|
customCanvasSize,
|
|
295
295
|
viewBoxSize = 24
|
|
296
296
|
}) => {
|
|
297
|
+
const canvasRef = (0, import_react2.useRef)(null);
|
|
298
|
+
const [internalHover, setInternalHover] = import_react2.default.useState(false);
|
|
299
|
+
const isHovered = forceHover || internalHover;
|
|
297
300
|
if (interactive) {
|
|
298
301
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
299
302
|
InteractiveArtodeIcon,
|
|
@@ -309,9 +312,6 @@ var ArtodeIcon = ({
|
|
|
309
312
|
}
|
|
310
313
|
);
|
|
311
314
|
}
|
|
312
|
-
const canvasRef = (0, import_react2.useRef)(null);
|
|
313
|
-
const [internalHover, setInternalHover] = import_react2.default.useState(false);
|
|
314
|
-
const isHovered = forceHover || internalHover;
|
|
315
315
|
(0, import_react2.useEffect)(() => {
|
|
316
316
|
const canvas = canvasRef.current;
|
|
317
317
|
if (!canvas) return;
|