@tidbcloud/uikit 2.1.1 → 2.1.3
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,17 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(Select): fix value prop handling ([#473](https://github.com/tidbcloud/tidbcloud-uikit/pull/473))
|
|
8
|
+
|
|
9
|
+
## 2.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(uikit/theme): fix separator styles with data attributes ([#471](https://github.com/tidbcloud/tidbcloud-uikit/pull/471))
|
|
14
|
+
|
|
3
15
|
## 2.1.1
|
|
4
16
|
|
|
5
17
|
### 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
|
@@ -504,16 +504,16 @@ const theme = createTheme.createTheme({
|
|
|
504
504
|
}
|
|
505
505
|
},
|
|
506
506
|
separator: {
|
|
507
|
-
backgroundColor: themeColor(theme2, color, 4)
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
507
|
+
backgroundColor: themeColor(theme2, color, 4),
|
|
508
|
+
"&[data-active]": {
|
|
509
|
+
backgroundColor: themeColor(theme2, color, 9)
|
|
510
|
+
}
|
|
511
511
|
},
|
|
512
512
|
verticalSeparator: {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
513
|
+
borderColor: themeColor(theme2, color, 4),
|
|
514
|
+
"&[data-active]": {
|
|
515
|
+
borderColor: themeColor(theme2, color, 9)
|
|
516
|
+
}
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
}
|
package/dist/theme/theme.mjs
CHANGED
|
@@ -502,16 +502,16 @@ const theme = createTheme({
|
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
separator: {
|
|
505
|
-
backgroundColor: themeColor(theme2, color, 4)
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
505
|
+
backgroundColor: themeColor(theme2, color, 4),
|
|
506
|
+
"&[data-active]": {
|
|
507
|
+
backgroundColor: themeColor(theme2, color, 9)
|
|
508
|
+
}
|
|
509
509
|
},
|
|
510
510
|
verticalSeparator: {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
borderColor: themeColor(theme2, color, 4),
|
|
512
|
+
"&[data-active]": {
|
|
513
|
+
borderColor: themeColor(theme2, color, 9)
|
|
514
|
+
}
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
}
|