@tidbcloud/uikit 2.0.0-beta.30 → 2.0.0-beta.31
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 +6 -0
- package/dist/biz/CodeBlock/index.cjs +1 -1
- package/dist/biz/CodeBlock/index.js +1 -1
- package/dist/biz/TimeRangePicker/index.cjs +3 -3
- package/dist/biz/TimeRangePicker/index.js +3 -3
- package/dist/theme/theme.cjs +13 -1
- package/dist/theme/theme.js +13 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -65,10 +65,10 @@ const TimeRangePicker = ({
|
|
|
65
65
|
root: {
|
|
66
66
|
paddingLeft: "12px",
|
|
67
67
|
paddingRight: "12px",
|
|
68
|
-
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[
|
|
68
|
+
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[5],
|
|
69
69
|
"&:hover": {
|
|
70
70
|
backgroundColor: theme.colors.carbon[0],
|
|
71
|
-
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[
|
|
71
|
+
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[5]
|
|
72
72
|
},
|
|
73
73
|
"&:active": { transform: "none" }
|
|
74
74
|
},
|
|
@@ -145,7 +145,7 @@ const DurationBadge = ({ children }) => {
|
|
|
145
145
|
display: "inline-block",
|
|
146
146
|
w: 35,
|
|
147
147
|
py: 3,
|
|
148
|
-
bg: "carbon.
|
|
148
|
+
bg: "carbon.3",
|
|
149
149
|
c: "carbon.8",
|
|
150
150
|
fz: 10,
|
|
151
151
|
lh: "14px",
|
|
@@ -64,10 +64,10 @@ const TimeRangePicker = ({
|
|
|
64
64
|
root: {
|
|
65
65
|
paddingLeft: "12px",
|
|
66
66
|
paddingRight: "12px",
|
|
67
|
-
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[
|
|
67
|
+
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[5],
|
|
68
68
|
"&:hover": {
|
|
69
69
|
backgroundColor: theme.colors.carbon[0],
|
|
70
|
-
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[
|
|
70
|
+
borderColor: opened ? theme.colors.carbon[9] : theme.colors.carbon[5]
|
|
71
71
|
},
|
|
72
72
|
"&:active": { transform: "none" }
|
|
73
73
|
},
|
|
@@ -144,7 +144,7 @@ const DurationBadge = ({ children }) => {
|
|
|
144
144
|
display: "inline-block",
|
|
145
145
|
w: 35,
|
|
146
146
|
py: 3,
|
|
147
|
-
bg: "carbon.
|
|
147
|
+
bg: "carbon.3",
|
|
148
148
|
c: "carbon.8",
|
|
149
149
|
fz: 10,
|
|
150
150
|
lh: "14px",
|
package/dist/theme/theme.cjs
CHANGED
|
@@ -938,9 +938,21 @@ const theme = {
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
|
+
const sizes = {
|
|
942
|
+
xs: 16,
|
|
943
|
+
sm: 20,
|
|
944
|
+
md: 28,
|
|
945
|
+
lg: 32,
|
|
946
|
+
xl: 40
|
|
947
|
+
};
|
|
948
|
+
const size = theme2.fn.size({ size: params.size, sizes });
|
|
941
949
|
return {
|
|
942
950
|
root: {
|
|
943
|
-
...variantStyles[params.variant]
|
|
951
|
+
...variantStyles[params.variant],
|
|
952
|
+
width: size,
|
|
953
|
+
height: size,
|
|
954
|
+
minWidth: size,
|
|
955
|
+
minHeight: size
|
|
944
956
|
}
|
|
945
957
|
};
|
|
946
958
|
}
|
package/dist/theme/theme.js
CHANGED
|
@@ -936,9 +936,21 @@ const theme = {
|
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
+
const sizes = {
|
|
940
|
+
xs: 16,
|
|
941
|
+
sm: 20,
|
|
942
|
+
md: 28,
|
|
943
|
+
lg: 32,
|
|
944
|
+
xl: 40
|
|
945
|
+
};
|
|
946
|
+
const size = theme2.fn.size({ size: params.size, sizes });
|
|
939
947
|
return {
|
|
940
948
|
root: {
|
|
941
|
-
...variantStyles[params.variant]
|
|
949
|
+
...variantStyles[params.variant],
|
|
950
|
+
width: size,
|
|
951
|
+
height: size,
|
|
952
|
+
minWidth: size,
|
|
953
|
+
minHeight: size
|
|
942
954
|
}
|
|
943
955
|
};
|
|
944
956
|
}
|