dumi-theme-lobehub 1.1.1 → 1.3.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.
|
@@ -2,7 +2,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
var toCamelCase = function toCamelCase(string_) {
|
|
5
|
-
return string_.
|
|
5
|
+
return string_.replace(/( |^)[a-z]/g, function (L) {
|
|
6
6
|
return L.toUpperCase();
|
|
7
7
|
});
|
|
8
8
|
};
|
|
@@ -11,6 +11,6 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
11
11
|
input: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: 280px;\n height: ", "px;\n padding: 0;\n padding-inline-start: 40px;\n padding-inline-end: 12px;\n\n font-size: 14px;\n color: ", ";\n\n background-color: transparent;\n border: 1px solid ", ";\n border-radius: 20px;\n outline: none;\n\n transition: all 0.3s;\n\n &::input-placeholder {\n color: ", ";\n }\n\n &:focus {\n background: ", ";\n border-color: ", ";\n\n ~ .site-header-shortcut {\n opacity: 0;\n }\n }\n "])), token.controlHeightLG, token.colorTextSecondary, token.colorBorder, token.colorTextPlaceholder, token.colorBgElevated, token.colorBorderSecondary),
|
|
12
12
|
popover: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n inset-inline-end: 0;\n\n overflow: auto;\n overscroll-behavior: contain;\n flex: 1;\n\n width: 540px;\n min-height: 60px;\n max-height: 400px;\n margin-top: 8px;\n\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n\n -webkit-overflow-scrolling: touch;\n\n .dumi-default-search-result {\n > dl {\n > dt {\n color: ", ";\n background: ", ";\n }\n\n > dd {\n > a {\n > h4 {\n color: ", ";\n }\n\n > p {\n color: ", ";\n }\n\n &:hover {\n background: ", ";\n }\n }\n\n + dd {\n border-color: ", ";\n }\n }\n }\n\n mark {\n color: #000;\n background: ", ";\n }\n }\n "])), token.colorBgElevated, token.colorBorder, token.borderRadiusLG, token.boxShadow, token.colorText, token.colorFillTertiary, token.colorTextSecondary, token.colorTextDescription, token.colorFillSecondary, token.colorBorderSecondary, token.yellow9),
|
|
13
13
|
shortcut: cx('site-header-shortcut', css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n pointer-events: none;\n\n position: absolute;\n top: 50%;\n inset-inline-end: 11px;\n transform: translateY(-50%);\n\n display: inline-block;\n\n padding: 4px 8px;\n\n font-size: 12px;\n line-height: 1;\n color: ", ";\n white-space: nowrap;\n\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 11px;\n\n transition: all 0.3s;\n\n ", " {\n display: none;\n }\n "])), token.colorTextDescription, token.colorFillSecondary, token.colorBorderSecondary, responsive.mobile)),
|
|
14
|
-
svg: cx(css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
14
|
+
svg: cx(css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n top: 50%;\n inset-inline-start: 16px;\n transform: translateY(-50%);\n\n width: 16px;\n margin-top: 1px;\n\n color: ", ";\n "])), token.colorTextPlaceholder))
|
|
15
15
|
};
|
|
16
16
|
});
|
|
@@ -6,6 +6,6 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
6
6
|
token = _ref.token;
|
|
7
7
|
return {
|
|
8
8
|
sidebar: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: ", "px;\n "])), token.headerHeight),
|
|
9
|
-
sidebarInner: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n overflow: auto;\n width: 100%;\n height: 100%;\n padding: 16px;\n\n dl {\n margin: 0;\n padding: 0;\n line-height: 1;\n\n > dt {\n overflow: hidden;\n\n margin: 8px 0;\n\n font-weight: 500;\n color: ", ";\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n }\n\n > dd {\n margin: 0;\n padding: 2px 0;\n\n > a {\n overflow: hidden;\n display: block;\n\n padding: 6px 12px;\n\n font-size: ", "px;\n line-height: ", ";\n color: ", ";\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n border-radius: 6px;\n\n transition
|
|
9
|
+
sidebarInner: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n overflow: auto;\n width: 100%;\n height: 100%;\n padding: 16px;\n\n dl {\n margin: 0;\n padding: 0;\n line-height: 1;\n\n > dt {\n overflow: hidden;\n\n margin: 8px 0;\n\n font-weight: 500;\n color: ", ";\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n }\n\n > dd {\n margin: 0;\n padding: 2px 0;\n\n > a {\n overflow: hidden;\n display: block;\n\n padding: 6px 12px;\n\n font-size: ", "px;\n line-height: ", ";\n color: ", ";\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n border-radius: 6px;\n\n transition:\n color 600ms ", ",\n background-color 100ms ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n }\n\n &.active {\n color: ", ";\n background-color: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n }\n }\n }\n }\n\n + dl {\n margin-top: 16px;\n padding-top: 16px;\n border-top: 1px dashed ", ";\n }\n }\n "])), token.colorText, token.fontSize, token.lineHeight, token.colorTextSecondary, token.motionEaseOut, token.motionEaseOut, token.colorText, token.colorFillTertiary, token.colorText, token.colorFill, token.colorText, token.colorFillSecondary, token.colorText, token.colorFillSecondary, token.colorText, token.colorFill, token.colorBorder)
|
|
10
10
|
};
|
|
11
11
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
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
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -24,42 +24,6 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "father build",
|
|
29
|
-
"build:docs": "npm run build && npm run build --prefix=example",
|
|
30
|
-
"ci": "npm run test",
|
|
31
|
-
"dev": "father dev",
|
|
32
|
-
"dev:docs": "npm run start --prefix=example",
|
|
33
|
-
"lint": "eslint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
34
|
-
"lint:md": "remark . --quiet --frail --output",
|
|
35
|
-
"lint:style": "stylelint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
36
|
-
"prepare": "husky install && father link-dev-theme",
|
|
37
|
-
"prepublishOnly": "npm run build",
|
|
38
|
-
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
39
|
-
"release": "semantic-release",
|
|
40
|
-
"start": "concurrently \"npm run dev\" \"npm run dev:docs\"",
|
|
41
|
-
"test": "npm run type-check && npm run lint",
|
|
42
|
-
"type-check": "tsc -p tsconfig-check.json"
|
|
43
|
-
},
|
|
44
|
-
"lint-staged": {
|
|
45
|
-
"*.md": [
|
|
46
|
-
"remark --quiet --output --",
|
|
47
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
48
|
-
],
|
|
49
|
-
"*.json": [
|
|
50
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
51
|
-
],
|
|
52
|
-
"*.{js,jsx}": [
|
|
53
|
-
"prettier --write",
|
|
54
|
-
"stylelint --fix",
|
|
55
|
-
"eslint --fix"
|
|
56
|
-
],
|
|
57
|
-
"*.{ts,tsx}": [
|
|
58
|
-
"prettier --parser=typescript --write",
|
|
59
|
-
"stylelint --fix",
|
|
60
|
-
"eslint --fix"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
27
|
"dependencies": {
|
|
64
28
|
"@floating-ui/react": "^0",
|
|
65
29
|
"@giscus/react": "^2",
|
|
@@ -79,33 +43,6 @@
|
|
|
79
43
|
"use-merge-value": "^1",
|
|
80
44
|
"zustand": "^4"
|
|
81
45
|
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@commitlint/cli": "^17",
|
|
84
|
-
"@lobehub/lint": "latest",
|
|
85
|
-
"@types/lodash-es": "^4",
|
|
86
|
-
"@types/node": "^20",
|
|
87
|
-
"@types/react": "^18",
|
|
88
|
-
"@types/react-dom": "^18",
|
|
89
|
-
"antd-style": "^3",
|
|
90
|
-
"commitlint": "^17",
|
|
91
|
-
"concurrently": "^8",
|
|
92
|
-
"dumi": "^2",
|
|
93
|
-
"dumi-assets-types": "^1",
|
|
94
|
-
"eslint": "^8",
|
|
95
|
-
"father": "^4",
|
|
96
|
-
"father-plugin-dumi-theme": "latest",
|
|
97
|
-
"husky": "^8",
|
|
98
|
-
"leva": "^0",
|
|
99
|
-
"lint-staged": "^13",
|
|
100
|
-
"prettier": "^2",
|
|
101
|
-
"react": "^18",
|
|
102
|
-
"react-dom": "^18",
|
|
103
|
-
"remark": "^14",
|
|
104
|
-
"remark-cli": "^11",
|
|
105
|
-
"semantic-release": "^21",
|
|
106
|
-
"stylelint": "^15",
|
|
107
|
-
"typescript": "^5"
|
|
108
|
-
},
|
|
109
46
|
"peerDependencies": {
|
|
110
47
|
"antd": ">=5",
|
|
111
48
|
"antd-style": ">=3",
|
|
@@ -117,4 +54,4 @@
|
|
|
117
54
|
"access": "public",
|
|
118
55
|
"registry": "https://registry.npmjs.org"
|
|
119
56
|
}
|
|
120
|
-
}
|
|
57
|
+
}
|