@tidbcloud/uikit 2.1.2 → 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,18 @@
|
|
|
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
|
+
|
|
10
|
+
## 2.1.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- fix(Select): fix value prop handling ([#473](https://github.com/tidbcloud/tidbcloud-uikit/pull/473))
|
|
15
|
+
|
|
3
16
|
## 2.1.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -75,7 +75,7 @@ function useCreateableSelect(props) {
|
|
|
75
75
|
}
|
|
76
76
|
function Select(props) {
|
|
77
77
|
const allProps = useCreateableSelect(props);
|
|
78
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Select$1.Select, { ...allProps, value:
|
|
78
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Select$1.Select, { ...allProps, value: allProps.value || null });
|
|
79
79
|
}
|
|
80
80
|
function MultiSelect(props) {
|
|
81
81
|
const allProps = useCreateableSelect(props);
|
|
@@ -73,7 +73,7 @@ function useCreateableSelect(props) {
|
|
|
73
73
|
}
|
|
74
74
|
function Select(props) {
|
|
75
75
|
const allProps = useCreateableSelect(props);
|
|
76
|
-
return /* @__PURE__ */ jsx(Select$1, { ...allProps, value:
|
|
76
|
+
return /* @__PURE__ */ jsx(Select$1, { ...allProps, value: allProps.value || null });
|
|
77
77
|
}
|
|
78
78
|
function MultiSelect(props) {
|
|
79
79
|
const allProps = useCreateableSelect(props);
|
package/dist/theme/theme.cjs
CHANGED
|
@@ -393,10 +393,10 @@ const theme = createTheme.createTheme({
|
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
395
|
Menu: {
|
|
396
|
-
styles: (theme2
|
|
396
|
+
styles: (theme2) => {
|
|
397
397
|
const textColor = themeColor(theme2, "carbon", 8);
|
|
398
|
-
const bgHoverColor = themeColor(theme2, "carbon",
|
|
399
|
-
const bgActiveColor = themeColor(theme2, "carbon",
|
|
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: {
|
package/dist/theme/theme.mjs
CHANGED
|
@@ -391,10 +391,10 @@ const theme = createTheme({
|
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
393
|
Menu: {
|
|
394
|
-
styles: (theme2
|
|
394
|
+
styles: (theme2) => {
|
|
395
395
|
const textColor = themeColor(theme2, "carbon", 8);
|
|
396
|
-
const bgHoverColor = themeColor(theme2, "carbon",
|
|
397
|
-
const bgActiveColor = themeColor(theme2, "carbon",
|
|
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
|
+
"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"
|