Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

chore: publish

thecodrra1c043f94369
diff --git a/packages/editor/dist/cjs/toolbar/components/icon.js b/packages/editor/dist/cjs/toolbar/components/icon.js
index 2e9b5bd4e..8a2b85403 100644
--- a/packages/editor/dist/cjs/toolbar/components/icon.js
+++ b/packages/editor/dist/cjs/toolbar/components/icon.js
@@ -18,9 +18,9 @@ exports.Icon = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("@mdi/react"));
const rebass_1 = require("rebass");
-const toolbarstore_1 = require("../stores/toolbarstore");
-function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate }) {
- const theme = (0, toolbarstore_1.useTheme)();
+const emotion_theming_1 = require("emotion-theming");
+function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate, }) {
+ const theme = (0, emotion_theming_1.useTheme)();
const themedColor = (theme === null || theme === void 0 ? void 0 : theme.colors)
? theme.colors[color]
: color;
@@ -28,7 +28,7 @@ function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate
? `${(theme === null || theme === void 0 ? void 0 : theme.iconSizes[size]) || 24}px`
: `${size}px`, style: {
strokeWidth: stroke || "0px",
- stroke: themedColor
+ stroke: themedColor,
}, color: themedColor, spin: rotate }));
}
function Icon(props) {
diff --git a/packages/editor/dist/es/toolbar/components/icon.js b/packages/editor/dist/es/toolbar/components/icon.js
index 64c7f6e38..50190b301 100644
--- a/packages/editor/dist/es/toolbar/components/icon.js
+++ b/packages/editor/dist/es/toolbar/components/icon.js
@@ -12,8 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
import { jsx as _jsx } from "react/jsx-runtime";
import MDIIcon from "@mdi/react";
import { Flex } from "rebass";
-import { useTheme } from "../stores/toolbar-store";
-function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate }) {
+import { useTheme } from "emotion-theming";
+function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate, }) {
const theme = useTheme();
const themedColor = (theme === null || theme === void 0 ? void 0 : theme.colors)
? theme.colors[color]
@@ -22,7 +22,7 @@ function MDIIconWrapper({ title, path, size = 24, color = "icon", stroke, rotate
? `${(theme === null || theme === void 0 ? void 0 : theme.iconSizes[size]) || 24}px`
: `${size}px`, style: {
strokeWidth: stroke || "0px",
- stroke: themedColor
+ stroke: themedColor,
}, color: themedColor, spin: rotate }));
}
export function Icon(props) {