dumi-theme-lobehub 1.2.0 → 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.
|
@@ -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,44 +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 lint && npm run type-check && 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": "vitest --passWithNoTests",
|
|
42
|
-
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
43
|
-
"test:update": "vitest -u",
|
|
44
|
-
"type-check": "tsc -p tsconfig-check.json"
|
|
45
|
-
},
|
|
46
|
-
"lint-staged": {
|
|
47
|
-
"*.md": [
|
|
48
|
-
"remark --quiet --output --",
|
|
49
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
50
|
-
],
|
|
51
|
-
"*.json": [
|
|
52
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
53
|
-
],
|
|
54
|
-
"*.{js,jsx}": [
|
|
55
|
-
"prettier --write",
|
|
56
|
-
"stylelint --fix",
|
|
57
|
-
"eslint --fix"
|
|
58
|
-
],
|
|
59
|
-
"*.{ts,tsx}": [
|
|
60
|
-
"prettier --parser=typescript --write",
|
|
61
|
-
"stylelint --fix",
|
|
62
|
-
"eslint --fix"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
27
|
"dependencies": {
|
|
66
28
|
"@floating-ui/react": "^0",
|
|
67
29
|
"@giscus/react": "^2",
|
|
@@ -71,6 +33,7 @@
|
|
|
71
33
|
"antd-style": "^3",
|
|
72
34
|
"chalk": "^4",
|
|
73
35
|
"fast-deep-equal": "^3",
|
|
36
|
+
"history": "^5",
|
|
74
37
|
"lodash-es": "^4",
|
|
75
38
|
"lucide-react": "latest",
|
|
76
39
|
"polished": "^4",
|
|
@@ -80,37 +43,6 @@
|
|
|
80
43
|
"use-merge-value": "^1",
|
|
81
44
|
"zustand": "^4"
|
|
82
45
|
},
|
|
83
|
-
"devDependencies": {
|
|
84
|
-
"@commitlint/cli": "^17",
|
|
85
|
-
"@lobehub/lint": "latest",
|
|
86
|
-
"@types/lodash-es": "^4",
|
|
87
|
-
"@types/node": "^20",
|
|
88
|
-
"@types/react": "^18",
|
|
89
|
-
"@types/react-dom": "^18",
|
|
90
|
-
"@vitest/coverage-c8": "latest",
|
|
91
|
-
"antd-style": "^3",
|
|
92
|
-
"commitlint": "^17",
|
|
93
|
-
"concurrently": "^8",
|
|
94
|
-
"dumi": "^2",
|
|
95
|
-
"dumi-assets-types": "^1",
|
|
96
|
-
"eslint": "^8",
|
|
97
|
-
"father": "^4",
|
|
98
|
-
"father-plugin-dumi-theme": "latest",
|
|
99
|
-
"history": "^5",
|
|
100
|
-
"husky": "^8",
|
|
101
|
-
"jsdom": "^22",
|
|
102
|
-
"leva": "^0",
|
|
103
|
-
"lint-staged": "^13",
|
|
104
|
-
"prettier": "^2",
|
|
105
|
-
"react": "^18",
|
|
106
|
-
"react-dom": "^18",
|
|
107
|
-
"remark": "^14",
|
|
108
|
-
"remark-cli": "^11",
|
|
109
|
-
"semantic-release": "^21",
|
|
110
|
-
"stylelint": "^15",
|
|
111
|
-
"typescript": "^5",
|
|
112
|
-
"vitest": "latest"
|
|
113
|
-
},
|
|
114
46
|
"peerDependencies": {
|
|
115
47
|
"antd": ">=5",
|
|
116
48
|
"antd-style": ">=3",
|
|
@@ -122,4 +54,4 @@
|
|
|
122
54
|
"access": "public",
|
|
123
55
|
"registry": "https://registry.npmjs.org"
|
|
124
56
|
}
|
|
125
|
-
}
|
|
57
|
+
}
|