+
- {enitityManager instanceof PaletteManager && (
-
- )}
- {enitityManager instanceof ConfigletManager && (
-
- )}
+
+ {enitityManager instanceof PaletteManager && (
+
+ )}
+ {enitityManager instanceof ConfigletManager && (
+
+ )}
+
);
};
diff --git a/modules/colorset-creator/modal/palette.tsx b/modules/colorset-creator/modal/palette.tsx
index c7ce506..fdd6d04 100644
--- a/modules/colorset-creator/modal/palette.tsx
+++ b/modules/colorset-creator/modal/palette.tsx
@@ -11,7 +11,7 @@ export interface PaletteColorSetsProps {
}
export const PaletteColorSets = ({ palette, paletteManager }: PaletteColorSetsProps) => {
return (
-
+
{Object.entries(palette.data.getColors()).map(([set, colors]) => (
{
return (
-
{
);
};
-const ExampleToolbar = () => {
- return (
-
-
-
- );
-};
-
-const CodeBlockButton = () => {
- const editor = useSlateStatic();
- const handleClick = () => {
- Transforms.wrapNodes(
- editor,
- { type: CodeBlockType, language: "html", children: [] },
- {
- match: (n) => Element.isElement(n) && n.type === ParagraphType,
- split: true,
- },
- );
- Transforms.setNodes(
- editor,
- { type: CodeLineType },
- { match: (n) => Element.isElement(n) && n.type === ParagraphType },
- );
- };
-
- return (
-
- );
-};
-
const renderLeaf = (props: RenderLeafProps) => {
const { attributes, children, leaf } = props;
const { text, ...rest } = leaf;
diff --git a/modules/colorset-creator/slate/components.tsx b/modules/colorset-creator/slate/components.tsx
index 7b1aaa7..d8d7202 100644
--- a/modules/colorset-creator/slate/components.tsx
+++ b/modules/colorset-creator/slate/components.tsx
@@ -7,7 +7,6 @@ interface BaseProps {
className: string;
[key: string]: unknown;
}
-type OrNull = T | null;
export const Button = React.forwardRef(
(