@tidbcloud/uikit 2.2.4 → 2.2.6

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.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(FormRadioGroup): set max width for tooltip dropdown ([#505](https://github.com/tidbcloud/tidbcloud-uikit/pull/505))
8
+
9
+ ## 2.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - fix(ProTable): wrapperProps missing ([#503](https://github.com/tidbcloud/tidbcloud-uikit/pull/503))
14
+
3
15
  ## 2.2.4
4
16
 
5
17
  ### Patch Changes
@@ -49,7 +49,7 @@ const FormRadioGroup = ({
49
49
  const radioProps = lodashEs.omit(i, "tooltipProps", "tooltip");
50
50
  return /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: i.tooltip ? ((_a = i.tooltipProps) == null ? void 0 : _a.useTooltip) ? /* @__PURE__ */ jsxRuntime.jsx(Tooltip.Tooltip, { label: i.tooltip, withArrow: true, refProp: "rootRef", children: /* @__PURE__ */ jsxRuntime.jsx(Radio.Radio, { ...radioProps }) }) : /* @__PURE__ */ jsxRuntime.jsxs(HoverCard.HoverCard, { withArrow: true, shadow: "md", withinPortal: true, ...i.tooltipProps, children: [
51
51
  /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(Radio.Radio, { ...radioProps }) }) }),
52
- /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Dropdown, { children: i.tooltip })
52
+ /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Dropdown, { maw: 400, children: i.tooltip })
53
53
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(Radio.Radio, { ...radioProps }) }, i.value);
54
54
  }) })
55
55
  }
@@ -47,7 +47,7 @@ const FormRadioGroup = ({
47
47
  const radioProps = omit(i, "tooltipProps", "tooltip");
48
48
  return /* @__PURE__ */ jsx(Fragment, { children: i.tooltip ? ((_a = i.tooltipProps) == null ? void 0 : _a.useTooltip) ? /* @__PURE__ */ jsx(Tooltip, { label: i.tooltip, withArrow: true, refProp: "rootRef", children: /* @__PURE__ */ jsx(Radio, { ...radioProps }) }) : /* @__PURE__ */ jsxs(HoverCard, { withArrow: true, shadow: "md", withinPortal: true, ...i.tooltipProps, children: [
49
49
  /* @__PURE__ */ jsx(HoverCard.Target, { children: /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Radio, { ...radioProps }) }) }),
50
- /* @__PURE__ */ jsx(HoverCard.Dropdown, { children: i.tooltip })
50
+ /* @__PURE__ */ jsx(HoverCard.Dropdown, { maw: 400, children: i.tooltip })
51
51
  ] }) : /* @__PURE__ */ jsx(Radio, { ...radioProps }) }, i.value);
52
52
  }) })
53
53
  }
@@ -18,7 +18,7 @@ const ProTable = (props) => {
18
18
  if (isInstance) {
19
19
  table = props.table;
20
20
  }
21
- return /* @__PURE__ */ jsxRuntime.jsxs(Box.Box, { ...props.wrapperProps, children: [
21
+ return /* @__PURE__ */ jsxRuntime.jsxs(Box.Box, { ...props.wrapperProps || table.wrapperProps, children: [
22
22
  /* @__PURE__ */ jsxRuntime.jsx(index_esm.MantineReactTable, { table }),
23
23
  table.options.enablePagination && /* @__PURE__ */ jsxRuntime.jsx(TablePagination.ProTablePagination, { table, ...table.pagination || props.pagination })
24
24
  ] });
@@ -16,7 +16,7 @@ const ProTable = (props) => {
16
16
  if (isInstance) {
17
17
  table = props.table;
18
18
  }
19
- return /* @__PURE__ */ jsxs(Box, { ...props.wrapperProps, children: [
19
+ return /* @__PURE__ */ jsxs(Box, { ...props.wrapperProps || table.wrapperProps, children: [
20
20
  /* @__PURE__ */ jsx(MantineReactTable, { table }),
21
21
  table.options.enablePagination && /* @__PURE__ */ jsx(ProTablePagination, { table, ...table.pagination || props.pagination })
22
22
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",