@tomehq/theme 0.6.3 → 0.6.4
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/entry.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/Shell.tsx +0 -2
- package/src/entry.test.tsx +0 -22
- package/src/entry.tsx +0 -1
- /package/dist/{chunk-26CZLWVW.js → chunk-XTCRYWCB.js} +0 -0
package/dist/entry.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomehq/theme",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Tome default theme and React app shell",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.tsx",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"./entry": "./src/entry.tsx"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@tomehq/components": "0.6.
|
|
13
|
-
"@tomehq/core": "0.6.
|
|
12
|
+
"@tomehq/components": "0.6.4",
|
|
13
|
+
"@tomehq/core": "0.6.4"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^18.0.0 || ^19.0.0",
|
package/src/Shell.tsx
CHANGED
|
@@ -36,8 +36,6 @@ const Icon = ({ d, size = 16 }: { d: string; size?: number }) => (
|
|
|
36
36
|
const SearchIcon = () => <Icon d="M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM21 21l-4.3-4.3" />;
|
|
37
37
|
const ChevRight = () => <Icon d="M9 18l6-6-6-6" size={14} />;
|
|
38
38
|
const ChevDown = () => <Icon d="M6 9l6 6 6-6" size={14} />;
|
|
39
|
-
const CopyIcon = () => <Icon d="M9 9h13v13H9zM5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" size={14} />;
|
|
40
|
-
const CheckIcon = () => <Icon d="M20 6L9 17l-5-5" size={14} />;
|
|
41
39
|
const MenuIcon = () => <Icon d="M3 12h18M3 6h18M3 18h18" size={20} />;
|
|
42
40
|
const XIcon = () => <Icon d="M18 6L6 18M6 6l12 12" size={18} />;
|
|
43
41
|
const MoonIcon = () => <Icon d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />;
|
package/src/entry.test.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
3
2
|
import { render, act } from "@testing-library/react";
|
|
4
3
|
|
|
@@ -31,27 +30,6 @@ vi.mock("virtual:tome/config", () => ({
|
|
|
31
30
|
},
|
|
32
31
|
}));
|
|
33
32
|
|
|
34
|
-
const mockRoutes = [
|
|
35
|
-
{
|
|
36
|
-
id: "index",
|
|
37
|
-
urlPath: "/",
|
|
38
|
-
filePath: "pages/index.md",
|
|
39
|
-
frontmatter: { title: "Home", description: "Welcome" },
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: "quickstart",
|
|
43
|
-
urlPath: "/quickstart",
|
|
44
|
-
filePath: "pages/quickstart.md",
|
|
45
|
-
frontmatter: { title: "Quick Start", description: "Get started" },
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "api-reference",
|
|
49
|
-
urlPath: "/api",
|
|
50
|
-
filePath: "__api-reference__",
|
|
51
|
-
frontmatter: { title: "API Reference", description: "API docs" },
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
|
|
55
33
|
const mockNavigation = [
|
|
56
34
|
{ section: "Guide", pages: [{ id: "index", title: "Home", urlPath: "/" }] },
|
|
57
35
|
];
|
package/src/entry.tsx
CHANGED
|
File without changes
|