dumi-theme-lobehub 1.0.0
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/LICENSE +21 -0
- package/README.md +162 -0
- package/dist/builtins/Container/index.d.ts +7 -0
- package/dist/builtins/Container/index.js +28 -0
- package/dist/builtins/Container/style.d.ts +5 -0
- package/dist/builtins/Container/style.js +27 -0
- package/dist/builtins/Features/index.d.ts +2 -0
- package/dist/builtins/Features/index.js +19 -0
- package/dist/builtins/Previewer/index.d.ts +8 -0
- package/dist/builtins/Previewer/index.js +26 -0
- package/dist/builtins/Previewer/style.d.ts +9 -0
- package/dist/builtins/Previewer/style.js +18 -0
- package/dist/builtins/SourceCode/index.d.ts +7 -0
- package/dist/builtins/SourceCode/index.js +17 -0
- package/dist/components/ApiHeader/index.d.ts +77 -0
- package/dist/components/ApiHeader/index.js +124 -0
- package/dist/components/ApiHeader/style.d.ts +7 -0
- package/dist/components/ApiHeader/style.js +16 -0
- package/dist/components/Favicons/index.d.ts +3 -0
- package/dist/components/Favicons/index.js +43 -0
- package/dist/components/NativeSelect/SelectItem/index.d.ts +12 -0
- package/dist/components/NativeSelect/SelectItem/index.js +37 -0
- package/dist/components/NativeSelect/SelectItem/style.d.ts +5 -0
- package/dist/components/NativeSelect/SelectItem/style.js +13 -0
- package/dist/components/NativeSelect/index.d.ts +17 -0
- package/dist/components/NativeSelect/index.js +248 -0
- package/dist/components/NativeSelect/style.d.ts +4 -0
- package/dist/components/NativeSelect/style.js +13 -0
- package/dist/components/StoreUpdater/index.d.ts +1 -0
- package/dist/components/StoreUpdater/index.js +91 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +3 -0
- package/dist/hooks/useCopied.d.ts +4 -0
- package/dist/hooks/useCopied.js +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/layouts/DemoLayout/index.d.ts +3 -0
- package/dist/layouts/DemoLayout/index.js +21 -0
- package/dist/layouts/DocLayout/GlobalStyle.d.ts +3 -0
- package/dist/layouts/DocLayout/GlobalStyle.js +8 -0
- package/dist/layouts/DocLayout/index.d.ts +3 -0
- package/dist/layouts/DocLayout/index.js +130 -0
- package/dist/pages/Changelog/index.d.ts +3 -0
- package/dist/pages/Changelog/index.js +58 -0
- package/dist/pages/Docs/index.d.ts +3 -0
- package/dist/pages/Docs/index.js +52 -0
- package/dist/pages/Docs/styles.d.ts +5 -0
- package/dist/pages/Docs/styles.js +14 -0
- package/dist/pages/Home/index.d.ts +3 -0
- package/dist/pages/Home/index.js +20 -0
- package/dist/plugin/index.d.ts +3 -0
- package/dist/plugin/index.js +77 -0
- package/dist/plugin/utils.d.ts +1 -0
- package/dist/plugin/utils.js +30 -0
- package/dist/slots/ApiHeader/BundlephobiaFilled.d.ts +3 -0
- package/dist/slots/ApiHeader/BundlephobiaFilled.js +15 -0
- package/dist/slots/ApiHeader/Graph.d.ts +3 -0
- package/dist/slots/ApiHeader/Graph.js +14 -0
- package/dist/slots/ApiHeader/NpmFilled.d.ts +3 -0
- package/dist/slots/ApiHeader/NpmFilled.js +16 -0
- package/dist/slots/ApiHeader/PackagePhobia.d.ts +3 -0
- package/dist/slots/ApiHeader/PackagePhobia.js +27 -0
- package/dist/slots/ApiHeader/Unpkg.d.ts +3 -0
- package/dist/slots/ApiHeader/Unpkg.js +14 -0
- package/dist/slots/ApiHeader/index.d.ts +3 -0
- package/dist/slots/ApiHeader/index.js +53 -0
- package/dist/slots/Content/index.d.ts +4 -0
- package/dist/slots/Content/index.js +49 -0
- package/dist/slots/Content/style.d.ts +3 -0
- package/dist/slots/Content/style.js +12 -0
- package/dist/slots/ContentFooter/Linker.d.ts +8 -0
- package/dist/slots/ContentFooter/Linker.js +65 -0
- package/dist/slots/ContentFooter/Linker.style.d.ts +6 -0
- package/dist/slots/ContentFooter/Linker.style.js +13 -0
- package/dist/slots/ContentFooter/index.d.ts +3 -0
- package/dist/slots/ContentFooter/index.js +35 -0
- package/dist/slots/ContentTabs/index.d.ts +10 -0
- package/dist/slots/ContentTabs/index.js +49 -0
- package/dist/slots/ContentTabs/style.d.ts +3 -0
- package/dist/slots/ContentTabs/style.js +13 -0
- package/dist/slots/Features/index.d.ts +3 -0
- package/dist/slots/Features/index.js +19 -0
- package/dist/slots/Footer/columns.d.ts +6 -0
- package/dist/slots/Footer/columns.js +81 -0
- package/dist/slots/Footer/index.d.ts +3 -0
- package/dist/slots/Footer/index.js +56 -0
- package/dist/slots/Footer/style.d.ts +4 -0
- package/dist/slots/Footer/style.js +13 -0
- package/dist/slots/Header/Burger.d.ts +3 -0
- package/dist/slots/Header/Burger.js +72 -0
- package/dist/slots/Header/GithubButton.d.ts +3 -0
- package/dist/slots/Header/GithubButton.js +18 -0
- package/dist/slots/Header/LangSwitch.d.ts +3 -0
- package/dist/slots/Header/LangSwitch.js +133 -0
- package/dist/slots/Header/ThemeSwitch.d.ts +3 -0
- package/dist/slots/Header/ThemeSwitch.js +18 -0
- package/dist/slots/Header/index.d.ts +3 -0
- package/dist/slots/Header/index.js +30 -0
- package/dist/slots/Hero/index.d.ts +3 -0
- package/dist/slots/Hero/index.js +15 -0
- package/dist/slots/Logo/index.d.ts +3 -0
- package/dist/slots/Logo/index.js +38 -0
- package/dist/slots/Logo/style.d.ts +1 -0
- package/dist/slots/Logo/style.js +9 -0
- package/dist/slots/Navbar/index.d.ts +3 -0
- package/dist/slots/Navbar/index.js +55 -0
- package/dist/slots/PreviewerActions/index.d.ts +13 -0
- package/dist/slots/PreviewerActions/index.js +109 -0
- package/dist/slots/PreviewerActions/style.d.ts +4 -0
- package/dist/slots/PreviewerActions/style.js +11 -0
- package/dist/slots/SearchBar/index.d.ts +3 -0
- package/dist/slots/SearchBar/index.js +51 -0
- package/dist/slots/SearchBar/style.d.ts +7 -0
- package/dist/slots/SearchBar/style.js +16 -0
- package/dist/slots/Sidebar/index.d.ts +3 -0
- package/dist/slots/Sidebar/index.js +35 -0
- package/dist/slots/Sidebar/style.d.ts +4 -0
- package/dist/slots/Sidebar/style.js +11 -0
- package/dist/slots/Toc/index.d.ts +3 -0
- package/dist/slots/Toc/index.js +46 -0
- package/dist/store/index.d.ts +17 -0
- package/dist/store/index.js +19 -0
- package/dist/store/selectors/apiHeader.d.ts +5 -0
- package/dist/store/selectors/apiHeader.js +62 -0
- package/dist/store/selectors/hero.d.ts +22 -0
- package/dist/store/selectors/hero.js +59 -0
- package/dist/store/selectors/index.d.ts +23 -0
- package/dist/store/selectors/index.js +71 -0
- package/dist/store/selectors/siteBasicInfo.d.ts +6 -0
- package/dist/store/selectors/siteBasicInfo.js +14 -0
- package/dist/store/selectors/token.d.ts +2 -0
- package/dist/store/selectors/token.js +5 -0
- package/dist/store/useSiteStore.d.ts +36 -0
- package/dist/store/useSiteStore.js +48 -0
- package/dist/store/useThemeStore.d.ts +20 -0
- package/dist/store/useThemeStore.js +9 -0
- package/dist/styles/customToken.d.ts +10 -0
- package/dist/styles/customToken.js +10 -0
- package/dist/types/config.d.ts +101 -0
- package/dist/types/config.js +1 -0
- package/dist/types/global.d.ts +16 -0
- package/dist/types/hero.d.ts +8 -0
- package/dist/types/hero.js +1 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/index.js +7 -0
- package/package.json +119 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export * from './config';
|
|
3
|
+
export * from './hero';
|
|
4
|
+
/**
|
|
5
|
+
* @title 锚点项
|
|
6
|
+
*/
|
|
7
|
+
export interface AnchorItem {
|
|
8
|
+
/**
|
|
9
|
+
* @title 子锚点项
|
|
10
|
+
* @description 若存在子锚点项,则该锚点项为父锚点项
|
|
11
|
+
*/
|
|
12
|
+
children?: AnchorItem[];
|
|
13
|
+
/**
|
|
14
|
+
* @title 锚点项 ID
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* @title 锚点项标题
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
}
|
|
22
|
+
export declare type DivProps = HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
export declare type SvgProps = HTMLAttributes<SVGSVGElement>;
|
|
24
|
+
export declare type ImgProps = HTMLAttributes<HTMLImageElement>;
|
|
25
|
+
export declare type InputProps = HTMLAttributes<HTMLInputElement>;
|
|
26
|
+
export declare type TextAreaProps = HTMLAttributes<HTMLTextAreaElement>;
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dumi-theme-lobehub",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"lobehub",
|
|
7
|
+
"dumi",
|
|
8
|
+
"dumi theme"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/lobehub/dumi-theme-lobehub",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/lobehub/dumi-theme-lobehub/issues/new"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/lobehub/dumi-theme-lobehub.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "LobeHub <i@lobehub.com>",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"module": "dist/index.js",
|
|
23
|
+
"types": "dist/index.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "father build",
|
|
29
|
+
"build:docs": "npm run build && npm run build --prefix=example",
|
|
30
|
+
"dev": "father dev",
|
|
31
|
+
"dev:docs": "npm run start --prefix=example",
|
|
32
|
+
"lint": "eslint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
33
|
+
"lint:md": "remark . --quiet --frail --output",
|
|
34
|
+
"lint:style": "stylelint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
35
|
+
"prepare": "husky install && father link-dev-theme",
|
|
36
|
+
"prepublishOnly": "npm run build",
|
|
37
|
+
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
38
|
+
"release": "semantic-release",
|
|
39
|
+
"start": "concurrently \"npm run dev\" \"npm run dev:docs\"",
|
|
40
|
+
"test": "npm run type-check && npm run lint",
|
|
41
|
+
"type-check": "tsc -p tsconfig-check.json"
|
|
42
|
+
},
|
|
43
|
+
"lint-staged": {
|
|
44
|
+
"*.md": [
|
|
45
|
+
"remark --quiet --output --",
|
|
46
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
47
|
+
],
|
|
48
|
+
"*.json": [
|
|
49
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
50
|
+
],
|
|
51
|
+
"*.{js,jsx}": [
|
|
52
|
+
"prettier --write",
|
|
53
|
+
"stylelint --fix",
|
|
54
|
+
"eslint --fix"
|
|
55
|
+
],
|
|
56
|
+
"*.{ts,tsx}": [
|
|
57
|
+
"prettier --parser=typescript --write",
|
|
58
|
+
"stylelint --fix",
|
|
59
|
+
"eslint --fix"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@floating-ui/react": "^0",
|
|
64
|
+
"@giscus/react": "^2",
|
|
65
|
+
"@lobehub/ui": "latest",
|
|
66
|
+
"ahooks": "^3",
|
|
67
|
+
"antd": "^5",
|
|
68
|
+
"antd-style": "^3",
|
|
69
|
+
"chalk": "^4",
|
|
70
|
+
"fast-deep-equal": "^3",
|
|
71
|
+
"history": "^5",
|
|
72
|
+
"lodash-es": "^4",
|
|
73
|
+
"lucide-react": "latest",
|
|
74
|
+
"polished": "^4",
|
|
75
|
+
"rc-footer": "^0",
|
|
76
|
+
"react-layout-kit": "^1",
|
|
77
|
+
"styled-components": "latest",
|
|
78
|
+
"use-merge-value": "^1",
|
|
79
|
+
"zustand": "^4"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@commitlint/cli": "^17",
|
|
83
|
+
"@lobehub/lint": "latest",
|
|
84
|
+
"@types/lodash-es": "^4",
|
|
85
|
+
"@types/node": "^20",
|
|
86
|
+
"@types/react": "^18",
|
|
87
|
+
"@types/react-dom": "^18",
|
|
88
|
+
"antd-style": "^3",
|
|
89
|
+
"commitlint": "^17",
|
|
90
|
+
"concurrently": "^8",
|
|
91
|
+
"dumi": "^2",
|
|
92
|
+
"dumi-assets-types": "^1",
|
|
93
|
+
"eslint": "^8",
|
|
94
|
+
"father": "^4",
|
|
95
|
+
"father-plugin-dumi-theme": "latest",
|
|
96
|
+
"husky": "^8",
|
|
97
|
+
"leva": "^0",
|
|
98
|
+
"lint-staged": "^13",
|
|
99
|
+
"prettier": "^2",
|
|
100
|
+
"react": "^18",
|
|
101
|
+
"react-dom": "^18",
|
|
102
|
+
"remark": "^14",
|
|
103
|
+
"remark-cli": "^11",
|
|
104
|
+
"semantic-release": "^21",
|
|
105
|
+
"stylelint": "^15",
|
|
106
|
+
"typescript": "^5"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"antd": ">=5",
|
|
110
|
+
"antd-style": ">=3",
|
|
111
|
+
"dumi": ">=2",
|
|
112
|
+
"react": ">=18",
|
|
113
|
+
"react-dom": ">=18"
|
|
114
|
+
},
|
|
115
|
+
"publishConfig": {
|
|
116
|
+
"access": "public",
|
|
117
|
+
"registry": "https://registry.npmjs.org"
|
|
118
|
+
}
|
|
119
|
+
}
|