@tidbcloud/uikit 2.0.0-beta.97 → 2.0.0-beta.99

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,21 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.99
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(MultiSelect): remove padding from input styles in MultiSelect ([#373](https://github.com/tidbcloud/tidbcloud-uikit/pull/373))
8
+
9
+ ## 2.0.0-beta.98
10
+
11
+ ### Patch Changes
12
+
13
+ - fix(TextInput): fix a typo that uses rightLabel, should be rightSection ([#371](https://github.com/tidbcloud/tidbcloud-uikit/pull/371))
14
+ - docs(contribution): refine release process and changeset instructions ([#370](https://github.com/tidbcloud/tidbcloud-uikit/pull/370))
15
+ - docs(contribution): update contribution guidelines for changeset usage ([#369](https://github.com/tidbcloud/tidbcloud-uikit/pull/369))
16
+ - fix(changeset): enhance changelog generation from git tags ([#368](https://github.com/tidbcloud/tidbcloud-uikit/pull/368))
17
+ - fix(ProTable): pagination missing in hook ([#360](https://github.com/tidbcloud/tidbcloud-uikit/pull/360))
18
+
3
19
  ## 2.0.0-beta.97
4
20
 
5
21
  ### Patch Changes
@@ -21,7 +21,7 @@ const ProTable = (props) => {
21
21
  }
22
22
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Box.Box, { ...props.wrapperProps, children: [
23
23
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index_esm.MantineReactTable, { table }),
24
- table.options.enablePagination && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TablePagination.ProTablePagination, { table, ...props.pagination })
24
+ table.options.enablePagination && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(TablePagination.ProTablePagination, { table, ...table.pagination || props.pagination })
25
25
  ] });
26
26
  };
27
27
  exports.ProTable = ProTable;
@@ -19,7 +19,7 @@ const ProTable = (props) => {
19
19
  }
20
20
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { ...props.wrapperProps, children: [
21
21
  /* @__PURE__ */ jsxRuntimeExports.jsx(MantineReactTable, { table }),
22
- table.options.enablePagination && /* @__PURE__ */ jsxRuntimeExports.jsx(ProTablePagination, { table, ...props.pagination })
22
+ table.options.enablePagination && /* @__PURE__ */ jsxRuntimeExports.jsx(ProTablePagination, { table, ...table.pagination || props.pagination })
23
23
  ] });
24
24
  };
25
25
  export {
@@ -276,6 +276,7 @@ function mergeProTableProps(props) {
276
276
  ...state,
277
277
  columnVisibility: { ...enableExpanding ? { "mrt-row-expand": false } : void 0, ...state == null ? void 0 : state.columnVisibility }
278
278
  },
279
+ pagination,
279
280
  ...rest
280
281
  };
281
282
  }
@@ -274,6 +274,7 @@ function mergeProTableProps(props) {
274
274
  ...state,
275
275
  columnVisibility: { ...enableExpanding ? { "mrt-row-expand": false } : void 0, ...state == null ? void 0 : state.columnVisibility }
276
276
  },
277
+ pagination,
277
278
  ...rest
278
279
  };
279
280
  }
@@ -72,7 +72,7 @@ const TextInput = React.forwardRef((props, ref) => {
72
72
  props.styles
73
73
  ]),
74
74
  leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", ...leftLabelProps, children: leftLabel }) : leftSection,
75
- rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightLabel,
75
+ rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(index.Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightSection,
76
76
  ref
77
77
  }
78
78
  );
@@ -70,7 +70,7 @@ const TextInput = forwardRef((props, ref) => {
70
70
  props.styles
71
71
  ]),
72
72
  leftSection: !!leftLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", ...leftLabelProps, children: leftLabel }) : leftSection,
73
- rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightLabel,
73
+ rightSection: !!rightLabel ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "label-lg", ...rightLabelProps, children: rightLabel }) : rightSection,
74
74
  ref
75
75
  }
76
76
  );
@@ -621,10 +621,6 @@ const theme = createTheme.createTheme({
621
621
  fontSize: 14,
622
622
  marginBottom: 6
623
623
  },
624
- input: {
625
- paddingTop: 8,
626
- paddingBottom: 8
627
- },
628
624
  inputField: {
629
625
  "&::placeholder": {
630
626
  color: themeColor(theme2, "carbon", 6)
@@ -619,10 +619,6 @@ const theme = createTheme({
619
619
  fontSize: 14,
620
620
  marginBottom: 6
621
621
  },
622
- input: {
623
- paddingTop: 8,
624
- paddingBottom: 8
625
- },
626
622
  inputField: {
627
623
  "&::placeholder": {
628
624
  color: themeColor(theme2, "carbon", 6)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.97",
3
+ "version": "2.0.0-beta.99",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",