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

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,15 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.98
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(TextInput): fix a typo that uses rightLabel, should be rightSection ([#371](https://github.com/tidbcloud/tidbcloud-uikit/pull/371))
8
+ - docs(contribution): refine release process and changeset instructions ([#370](https://github.com/tidbcloud/tidbcloud-uikit/pull/370))
9
+ - docs(contribution): update contribution guidelines for changeset usage ([#369](https://github.com/tidbcloud/tidbcloud-uikit/pull/369))
10
+ - fix(changeset): enhance changelog generation from git tags ([#368](https://github.com/tidbcloud/tidbcloud-uikit/pull/368))
11
+ - fix(ProTable): pagination missing in hook ([#360](https://github.com/tidbcloud/tidbcloud-uikit/pull/360))
12
+
3
13
  ## 2.0.0-beta.97
4
14
 
5
15
  ### 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
  );
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.98",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",