@tidbcloud/uikit 2.0.6 → 2.0.8

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.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(uikit): adjust Select component null value handling ([#456](https://github.com/tidbcloud/tidbcloud-uikit/pull/456))
8
+
9
+ ## 2.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - fix(uikit): pass null value for Select when value is empty string ([#454](https://github.com/tidbcloud/tidbcloud-uikit/pull/454))
14
+
3
15
  ## 2.0.6
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 });
78
+ return /* @__PURE__ */ jsxRuntime.jsx(Select$1.Select, { ...allProps, value: props.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 });
76
+ return /* @__PURE__ */ jsx(Select$1, { ...allProps, value: props.value || null });
77
77
  }
78
78
  function MultiSelect(props) {
79
79
  const allProps = useCreateableSelect(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",