@tidbcloud/uikit 2.1.3 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(uikit/theme): adjust Menu component hover and active background colors ([#477](https://github.com/tidbcloud/tidbcloud-uikit/pull/477))
8
+ - chore(uikit): move react-hook-form to peer dependencies ([#476](https://github.com/tidbcloud/tidbcloud-uikit/pull/476))
9
+
3
10
  ## 2.1.3
4
11
 
5
12
  ### Patch Changes
@@ -393,10 +393,10 @@ const theme = createTheme.createTheme({
393
393
  }
394
394
  },
395
395
  Menu: {
396
- styles: (theme2, props) => {
396
+ styles: (theme2) => {
397
397
  const textColor = themeColor(theme2, "carbon", 8);
398
- const bgHoverColor = themeColor(theme2, "carbon", 2);
399
- const bgActiveColor = themeColor(theme2, "carbon", 3);
398
+ const bgHoverColor = themeColor(theme2, "carbon", 3);
399
+ const bgActiveColor = themeColor(theme2, "carbon", 4);
400
400
  const disabledColor = themeColor(theme2, "carbon", 6);
401
401
  return {
402
402
  dropdown: {
@@ -391,10 +391,10 @@ const theme = createTheme({
391
391
  }
392
392
  },
393
393
  Menu: {
394
- styles: (theme2, props) => {
394
+ styles: (theme2) => {
395
395
  const textColor = themeColor(theme2, "carbon", 8);
396
- const bgHoverColor = themeColor(theme2, "carbon", 2);
397
- const bgActiveColor = themeColor(theme2, "carbon", 3);
396
+ const bgHoverColor = themeColor(theme2, "carbon", 3);
397
+ const bgActiveColor = themeColor(theme2, "carbon", 4);
398
398
  const disabledColor = themeColor(theme2, "carbon", 6);
399
399
  return {
400
400
  dropdown: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",
@@ -79,7 +79,6 @@
79
79
  "pretty-ms": "^9.1.0",
80
80
  "prism-react-renderer": "^1.2.1",
81
81
  "rc-tree": "^5.8.2",
82
- "react-hook-form": "^7.51.5",
83
82
  "react-phone-input-2": "^2.15.1",
84
83
  "react-table": "^7.8.0",
85
84
  "react-table-sticky": "^1.1.3",
@@ -88,7 +87,8 @@
88
87
  },
89
88
  "peerDependencies": {
90
89
  "react": "^18.x || ^19.x",
91
- "react-dom": "^18.x || ^19.x"
90
+ "react-dom": "^18.x || ^19.x",
91
+ "react-hook-form": "^7.x"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@svgr/babel-plugin-add-jsx-attribute": "^8.0.0",
@@ -103,6 +103,7 @@
103
103
  "@vitejs/plugin-react": "^4.3.3",
104
104
  "cpy-cli": "^5.0.0",
105
105
  "ora": "8.1.0",
106
+ "react-hook-form": "^7.51.5",
106
107
  "typescript": "^5.4.2",
107
108
  "vite": "^5.4.10",
108
109
  "vite-plugin-dts": "^4.3.0"