@tidbcloud/uikit 2.0.0-beta.85 → 2.0.0-beta.86
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
|
@@ -40,6 +40,7 @@ function mergeProTableProps(props) {
|
|
|
40
40
|
mantineTableFooterRowProps = {},
|
|
41
41
|
mantineTableFooterProps = {},
|
|
42
42
|
mantineLoadingOverlayProps = {},
|
|
43
|
+
layoutMode,
|
|
43
44
|
withBorder = true,
|
|
44
45
|
loading = false,
|
|
45
46
|
enableExpanding = false,
|
|
@@ -152,7 +153,12 @@ function mergeProTableProps(props) {
|
|
|
152
153
|
sx: {
|
|
153
154
|
"&:where([data-with-row-border]):not(:last-of-type)": {
|
|
154
155
|
td: {
|
|
155
|
-
borderBottom: enableRowVirtualization ? "none !important" : void 0
|
|
156
|
+
borderBottom: enableRowVirtualization || layoutMode && layoutMode !== "semantic" ? "none !important" : void 0
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"&[data-hover]": {
|
|
160
|
+
"&:hover": {
|
|
161
|
+
"--mrt-row-hover-background-color": theme.colors.carbon[3]
|
|
156
162
|
}
|
|
157
163
|
},
|
|
158
164
|
"&:not([data-striped], [data-striped='false'])": {
|
|
@@ -202,7 +208,7 @@ function mergeProTableProps(props) {
|
|
|
202
208
|
);
|
|
203
209
|
const mTableFooterProps = mergeMProps(
|
|
204
210
|
{
|
|
205
|
-
sx: { outline: enableStickyFooter ? "none" : void 0 }
|
|
211
|
+
sx: { outline: enableStickyFooter ? "none !important" : void 0 }
|
|
206
212
|
},
|
|
207
213
|
mantineTableFooterProps
|
|
208
214
|
);
|
|
@@ -229,6 +235,7 @@ function mergeProTableProps(props) {
|
|
|
229
235
|
mantineTableFooterCellProps: mTableFooterCellProps,
|
|
230
236
|
mantineTableFooterRowProps: mTableFooterRowProps,
|
|
231
237
|
mantineTableFooterProps: mTableFooterProps,
|
|
238
|
+
layoutMode,
|
|
232
239
|
data,
|
|
233
240
|
icons: {
|
|
234
241
|
IconArrowsSort: (props2) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.IconSwitchVertical02, { size: 14, ...props2 }),
|
|
@@ -38,6 +38,7 @@ function mergeProTableProps(props) {
|
|
|
38
38
|
mantineTableFooterRowProps = {},
|
|
39
39
|
mantineTableFooterProps = {},
|
|
40
40
|
mantineLoadingOverlayProps = {},
|
|
41
|
+
layoutMode,
|
|
41
42
|
withBorder = true,
|
|
42
43
|
loading = false,
|
|
43
44
|
enableExpanding = false,
|
|
@@ -150,7 +151,12 @@ function mergeProTableProps(props) {
|
|
|
150
151
|
sx: {
|
|
151
152
|
"&:where([data-with-row-border]):not(:last-of-type)": {
|
|
152
153
|
td: {
|
|
153
|
-
borderBottom: enableRowVirtualization ? "none !important" : void 0
|
|
154
|
+
borderBottom: enableRowVirtualization || layoutMode && layoutMode !== "semantic" ? "none !important" : void 0
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"&[data-hover]": {
|
|
158
|
+
"&:hover": {
|
|
159
|
+
"--mrt-row-hover-background-color": theme.colors.carbon[3]
|
|
154
160
|
}
|
|
155
161
|
},
|
|
156
162
|
"&:not([data-striped], [data-striped='false'])": {
|
|
@@ -200,7 +206,7 @@ function mergeProTableProps(props) {
|
|
|
200
206
|
);
|
|
201
207
|
const mTableFooterProps = mergeMProps(
|
|
202
208
|
{
|
|
203
|
-
sx: { outline: enableStickyFooter ? "none" : void 0 }
|
|
209
|
+
sx: { outline: enableStickyFooter ? "none !important" : void 0 }
|
|
204
210
|
},
|
|
205
211
|
mantineTableFooterProps
|
|
206
212
|
);
|
|
@@ -227,6 +233,7 @@ function mergeProTableProps(props) {
|
|
|
227
233
|
mantineTableFooterCellProps: mTableFooterCellProps,
|
|
228
234
|
mantineTableFooterRowProps: mTableFooterRowProps,
|
|
229
235
|
mantineTableFooterProps: mTableFooterProps,
|
|
236
|
+
layoutMode,
|
|
230
237
|
data,
|
|
231
238
|
icons: {
|
|
232
239
|
IconArrowsSort: (props2) => /* @__PURE__ */ jsxRuntimeExports.jsx(IconSwitchVertical02, { size: 14, ...props2 }),
|