@tidbcloud/uikit 2.0.0-beta.51 → 2.0.0-beta.52

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,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.52
4
+
5
+ ### Minor Changes
6
+
7
+ - adjust Dot and DotBadge color
8
+
3
9
  ## 2.0.0-beta.51
4
10
 
5
11
  ### Patch Changes
@@ -9,7 +9,7 @@ const Dot = ({ color, size = 8, ...rest }) => {
9
9
  sx: (theme) => {
10
10
  var _a;
11
11
  return {
12
- backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.carbon[6],
12
+ backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[7]) ?? theme.colors.carbon[6],
13
13
  height: size,
14
14
  width: size,
15
15
  borderRadius: "50%"
@@ -7,7 +7,7 @@ const Dot = ({ color, size = 8, ...rest }) => {
7
7
  sx: (theme) => {
8
8
  var _a;
9
9
  return {
10
- backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[5]) ?? theme.colors.carbon[6],
10
+ backgroundColor: ((_a = theme.colors[color]) == null ? void 0 : _a[7]) ?? theme.colors.carbon[6],
11
11
  height: size,
12
12
  width: size,
13
13
  borderRadius: "50%"
@@ -11,7 +11,7 @@ const DotBadge = ({ color = "green", children, ...rest }) => {
11
11
  variant: "light",
12
12
  styles: (theme) => ({
13
13
  root: {
14
- backgroundColor: theme.colors[color][0],
14
+ backgroundColor: theme.colors[color][1],
15
15
  borderRadius: theme.defaultRadius,
16
16
  textTransform: "none",
17
17
  height: 28
@@ -19,7 +19,7 @@ const DotBadge = ({ color = "green", children, ...rest }) => {
19
19
  }),
20
20
  leftSection: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Dot, { color, size: 8 }),
21
21
  ...rest,
22
- children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.Typography, { variant: "body3", c: `${color}.6`, children })
22
+ children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index$1.Typography, { size: 14, fw: 500, c: `${color}.8`, children })
23
23
  }
24
24
  );
25
25
  };
@@ -9,7 +9,7 @@ const DotBadge = ({ color = "green", children, ...rest }) => {
9
9
  variant: "light",
10
10
  styles: (theme) => ({
11
11
  root: {
12
- backgroundColor: theme.colors[color][0],
12
+ backgroundColor: theme.colors[color][1],
13
13
  borderRadius: theme.defaultRadius,
14
14
  textTransform: "none",
15
15
  height: 28
@@ -17,7 +17,7 @@ const DotBadge = ({ color = "green", children, ...rest }) => {
17
17
  }),
18
18
  leftSection: /* @__PURE__ */ jsxRuntimeExports.jsx(Dot, { color, size: 8 }),
19
19
  ...rest,
20
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body3", c: `${color}.6`, children })
20
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { size: 14, fw: 500, c: `${color}.8`, children })
21
21
  }
22
22
  );
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.51",
3
+ "version": "2.0.0-beta.52",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",