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

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.0-beta.54
4
+
5
+ ### Patch Changes
6
+
7
+ - fix table scroll
8
+
9
+ ## 2.0.0-beta.53
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix PasswordInput border style when validate fail
14
+
3
15
  ## 2.0.0-beta.52
4
16
 
5
17
  ### Minor Changes
@@ -50,7 +50,6 @@ const ProTable = ({
50
50
  },
51
51
  mantinePaperProps
52
52
  );
53
- const pinned = initialState && !!initialState.columnPinning;
54
53
  const mTableProps = helpers.mergeMProps(
55
54
  {
56
55
  highlightOnHover: true,
@@ -91,14 +90,6 @@ const ProTable = ({
91
90
  },
92
91
  mantineTableProps
93
92
  );
94
- const mTableContainerProps = helpers.mergeMProps(
95
- () => ({
96
- sx: {
97
- overflow: pinned ? "auto" : "unset"
98
- }
99
- }),
100
- mantineTableContainerProps
101
- );
102
93
  const mTableBodyProps = helpers.mergeMProps((args) => {
103
94
  var _a, _b, _c;
104
95
  if (!(data == null ? void 0 : data.length)) {
@@ -153,7 +144,7 @@ const ProTable = ({
153
144
  mantineTableProps: mTableProps,
154
145
  mantineSkeletonProps: mTabelSkeletonProps,
155
146
  mantineTableBodyProps: mTableBodyProps,
156
- mantineTableContainerProps: mTableContainerProps,
147
+ mantineTableContainerProps,
157
148
  mantineBottomToolbarProps: mBottomToolbarProps,
158
149
  mantineTableBodyCellProps: mTableBodyCellProps,
159
150
  mantinePaginationProps: {},
@@ -48,7 +48,6 @@ const ProTable = ({
48
48
  },
49
49
  mantinePaperProps
50
50
  );
51
- const pinned = initialState && !!initialState.columnPinning;
52
51
  const mTableProps = mergeMProps(
53
52
  {
54
53
  highlightOnHover: true,
@@ -89,14 +88,6 @@ const ProTable = ({
89
88
  },
90
89
  mantineTableProps
91
90
  );
92
- const mTableContainerProps = mergeMProps(
93
- () => ({
94
- sx: {
95
- overflow: pinned ? "auto" : "unset"
96
- }
97
- }),
98
- mantineTableContainerProps
99
- );
100
91
  const mTableBodyProps = mergeMProps((args) => {
101
92
  var _a, _b, _c;
102
93
  if (!(data == null ? void 0 : data.length)) {
@@ -151,7 +142,7 @@ const ProTable = ({
151
142
  mantineTableProps: mTableProps,
152
143
  mantineSkeletonProps: mTabelSkeletonProps,
153
144
  mantineTableBodyProps: mTableBodyProps,
154
- mantineTableContainerProps: mTableContainerProps,
145
+ mantineTableContainerProps,
155
146
  mantineBottomToolbarProps: mBottomToolbarProps,
156
147
  mantineTableBodyCellProps: mTableBodyCellProps,
157
148
  mantinePaginationProps: {},
@@ -203,10 +203,13 @@ const getInputStyles = (theme2, params) => {
203
203
  },
204
204
  invalid: {
205
205
  borderColor: theme2.colors.red[4],
206
+ "& .mantine-PasswordInput-innerInput": {
207
+ borderColor: "transparent"
208
+ },
206
209
  "&:hover": {
207
210
  borderColor: theme2.colors.red[4]
208
211
  },
209
- "&:focus": {
212
+ "&:focus, &:focus-within": {
210
213
  borderColor: theme2.colors.red[4]
211
214
  },
212
215
  "&::placeholder": {
@@ -201,10 +201,13 @@ const getInputStyles = (theme2, params) => {
201
201
  },
202
202
  invalid: {
203
203
  borderColor: theme2.colors.red[4],
204
+ "& .mantine-PasswordInput-innerInput": {
205
+ borderColor: "transparent"
206
+ },
204
207
  "&:hover": {
205
208
  borderColor: theme2.colors.red[4]
206
209
  },
207
- "&:focus": {
210
+ "&:focus, &:focus-within": {
208
211
  borderColor: theme2.colors.red[4]
209
212
  },
210
213
  "&::placeholder": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.52",
3
+ "version": "2.0.0-beta.54",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",