From f0fedcccad42e31b24413e69aee92cb200fbe22a Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Sun, 9 Jul 2023 19:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20and=20update=20import?= =?UTF-8?q?s,=20configurations,=20and=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add and modify imports, update configurations, add new files, and fix bugs in the CHANGELOG.md file, package.json file, and style.ts files. This commit includes changes for versions 1.2.0, 1.1.1, 1.1.0, and 1.0.0. Description of changes: - Added and updated imports - Updated configurations - Added new files - Fixed bugs --- CHANGELOG.md | 48 +++++++++--------------------------- package.json | 9 ++++--- src/slots/SearchBar/style.ts | 20 +++++++-------- src/slots/Sidebar/style.ts | 3 ++- 4 files changed, 28 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1070a20..59ef6eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,124 +2,100 @@ # Changelog -## [Version 1.2.0](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.1.1...v1.2.0) -Released on **2023-07-09** +## [Version 1.2.0](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.1.1...v1.2.0) +Released on **2023-07-09** #### ✨ Features - **misc**: Add or modify imports, update configurations, and add new files. -
- -
Improvements and Fixes - - #### What's improved -* **misc**: Add or modify imports, update configurations, and add new files ([465b9a5](https://github.com/lobehub/dumi-theme-lobehub/commit/465b9a5)) +- **misc**: Add or modify imports, update configurations, and add new files ([465b9a5](https://github.com/lobehub/dumi-theme-lobehub/commit/465b9a5))
-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
-### [Version 1.1.1](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.1.0...v1.1.1) -Released on **2023-07-09** +### [Version 1.1.1](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.1.0...v1.1.1) +Released on **2023-07-09** #### 🐛 Bug Fixes - **misc**: Modify import statement for "SourceCode" component. -
- -
Improvements and Fixes - - #### What's fixed -* **misc**: Modify import statement for "SourceCode" component ([b8748a5](https://github.com/lobehub/dumi-theme-lobehub/commit/b8748a5)) +- **misc**: Modify import statement for "SourceCode" component ([b8748a5](https://github.com/lobehub/dumi-theme-lobehub/commit/b8748a5))
-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
-## [Version 1.1.0](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.0.0...v1.1.0) -Released on **2023-07-09** +## [Version 1.1.0](https://github.com/lobehub/dumi-theme-lobehub/compare/v1.0.0...v1.1.0) +Released on **2023-07-09** #### ✨ Features - **misc**: Update README.md and package.json. -
- -
Improvements and Fixes - - #### What's improved -* **misc**: Update README.md and package.json ([685cca5](https://github.com/lobehub/dumi-theme-lobehub/commit/685cca5)) +- **misc**: Update README.md and package.json ([685cca5](https://github.com/lobehub/dumi-theme-lobehub/commit/685cca5))
-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
-## Version 1.0.0 -Released on **2023-07-09** +## Version 1.0.0 +Released on **2023-07-09** #### ✨ Features - **misc**: Root. -
- -
Improvements and Fixes - - #### What's improved -* **misc**: Root ([6e60bc5](https://github.com/lobehub/dumi-theme-lobehub/commit/6e60bc5)) +- **misc**: Root ([6e60bc5](https://github.com/lobehub/dumi-theme-lobehub/commit/6e60bc5))
-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) diff --git a/package.json b/package.json index 254231a..b3b421e 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "lint": "eslint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix", "lint:md": "remark . --quiet --frail --output", "lint:style": "stylelint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix", + "prepack": "npm run build && clean-pkg-json", "prepare": "husky install && father link-dev-theme", "prepublishOnly": "npm run build", "prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"", @@ -71,6 +72,7 @@ "antd-style": "^3", "chalk": "^4", "fast-deep-equal": "^3", + "history": "^5", "lodash-es": "^4", "lucide-react": "latest", "polished": "^4", @@ -87,8 +89,8 @@ "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", - "@vitest/coverage-c8": "latest", - "antd-style": "^3", + "@vitest/coverage-v8": "latest", + "clean-pkg-json": "^1", "commitlint": "^17", "concurrently": "^8", "dumi": "^2", @@ -96,12 +98,11 @@ "eslint": "^8", "father": "^4", "father-plugin-dumi-theme": "latest", - "history": "^5", "husky": "^8", "jsdom": "^22", "leva": "^0", "lint-staged": "^13", - "prettier": "^2", + "prettier": "^3", "react": "^18", "react-dom": "^18", "remark": "^14", diff --git a/src/slots/SearchBar/style.ts b/src/slots/SearchBar/style.ts index 55a837d..18dca41 100644 --- a/src/slots/SearchBar/style.ts +++ b/src/slots/SearchBar/style.ts @@ -127,18 +127,16 @@ export const useStyles = createStyles(({ token, responsive, css, cx }) => { } `, ), - svg: cx( - css` - position: absolute; - top: 50%; - inset-inline-start: 16px; - transform: translateY(-50%); + svg: cx(css` + position: absolute; + top: 50%; + inset-inline-start: 16px; + transform: translateY(-50%); - width: 16px; - margin-top: 1px; + width: 16px; + margin-top: 1px; - color: ${token.colorTextPlaceholder}; - `, - ), + color: ${token.colorTextPlaceholder}; + `), }; }); diff --git a/src/slots/Sidebar/style.ts b/src/slots/Sidebar/style.ts index 815e506..428b4c9 100644 --- a/src/slots/Sidebar/style.ts +++ b/src/slots/Sidebar/style.ts @@ -46,7 +46,8 @@ export const useStyles = createStyles(({ css, token }) => ({ border-radius: 6px; - transition: color 600ms ${token.motionEaseOut}, + transition: + color 600ms ${token.motionEaseOut}, background-color 100ms ${token.motionEaseOut}; &:hover {