@tidbcloud/uikit 2.0.0-beta.23 → 2.0.0-beta.24

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.24
4
+
5
+ ### Minor Changes
6
+
7
+ - ActionIcon default to subtle, Anchor default to peacock, ProTable row hover to bg caron.3
8
+
3
9
  ## 2.0.0-beta.23
4
10
 
5
11
  ### Minor Changes
@@ -71,6 +71,9 @@ const ProTable = ({
71
71
  transition: "none",
72
72
  backgroundColor: theme.colors.carbon[0],
73
73
  color: theme.colors.carbon[8],
74
+ "&:hover": {
75
+ backgroundColor: `${theme.colors.carbon[3]} !important`
76
+ },
74
77
  td: {
75
78
  borderColor: theme.colors.carbon[2]
76
79
  },
@@ -69,6 +69,9 @@ const ProTable = ({
69
69
  transition: "none",
70
70
  backgroundColor: theme.colors.carbon[0],
71
71
  color: theme.colors.carbon[8],
72
+ "&:hover": {
73
+ backgroundColor: `${theme.colors.carbon[3]} !important`
74
+ },
72
75
  td: {
73
76
  borderColor: theme.colors.carbon[2]
74
77
  },
@@ -826,7 +826,6 @@ const theme = {
826
826
  },
827
827
  ActionIcon: {
828
828
  defaultProps: {
829
- variant: "default",
830
829
  color: "carbon"
831
830
  },
832
831
  styles(theme2, params) {
@@ -913,6 +912,20 @@ const theme = {
913
912
  }
914
913
  }
915
914
  })
915
+ },
916
+ Anchor: {
917
+ styles: (theme2, params) => {
918
+ const color = params.color ?? "peacock";
919
+ const shade = color.includes("carbon") ? 9 : theme2.fn.primaryShade();
920
+ return {
921
+ root: {
922
+ color: theme2.fn.themeColor(color, shade),
923
+ "&:hover": {
924
+ color: theme2.fn.themeColor(color, shade)
925
+ }
926
+ }
927
+ };
928
+ }
916
929
  }
917
930
  }
918
931
  };
@@ -824,7 +824,6 @@ const theme = {
824
824
  },
825
825
  ActionIcon: {
826
826
  defaultProps: {
827
- variant: "default",
828
827
  color: "carbon"
829
828
  },
830
829
  styles(theme2, params) {
@@ -911,6 +910,20 @@ const theme = {
911
910
  }
912
911
  }
913
912
  })
913
+ },
914
+ Anchor: {
915
+ styles: (theme2, params) => {
916
+ const color = params.color ?? "peacock";
917
+ const shade = color.includes("carbon") ? 9 : theme2.fn.primaryShade();
918
+ return {
919
+ root: {
920
+ color: theme2.fn.themeColor(color, shade),
921
+ "&:hover": {
922
+ color: theme2.fn.themeColor(color, shade)
923
+ }
924
+ }
925
+ };
926
+ }
914
927
  }
915
928
  }
916
929
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.23",
3
+ "version": "2.0.0-beta.24",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",