bitz-react-admin-ui 2.3.3 → 2.3.5

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.
@@ -91,7 +91,7 @@ function E({
91
91
  }
92
92
  function K(l) {
93
93
  var m;
94
- const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 : 181, [s, x]);
94
+ const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 : 141, [s, x]);
95
95
  return u(() => ({
96
96
  width: Math.floor(i),
97
97
  mobileHide: !0,
@@ -14,9 +14,9 @@ import { BitzTableContext as T } from "../Store/index.mjs";
14
14
  import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
15
  import E from "../../BitzTheme/index.mjs";
16
16
  const O = () => {
17
- const { tableSize: s } = z(T);
18
- H(() => s ?? "lg", [s]);
19
- const { theme: B, hashId: r, token: i } = E.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", h = (t, o) => [
17
+ const { tableSize: i } = z(T);
18
+ H(() => i ?? "lg", [i]);
19
+ const { theme: B, hashId: r, token: s } = E.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", h = (t, o) => [
20
20
  {
21
21
  [`.${t}`]: {
22
22
  fontSize: "inherit",
@@ -36,6 +36,7 @@ const O = () => {
36
36
  },
37
37
  {
38
38
  [`.${o}`]: {
39
+ cursor: "default",
39
40
  position: "absolute",
40
41
  insetBlock: -1,
41
42
  insetInline: 0,
@@ -101,15 +102,15 @@ const O = () => {
101
102
  N(
102
103
  {
103
104
  theme: B,
104
- token: i,
105
+ token: s,
105
106
  hashId: r,
106
107
  path: [e]
107
108
  },
108
109
  () => [
109
110
  h(e, d),
110
- u(a, i),
111
- g(l, i),
112
- C(c, i),
111
+ u(a, s),
112
+ g(l, s),
113
+ C(c, s),
113
114
  v(m, p)
114
115
  ]
115
116
  );
@@ -1,34 +1,26 @@
1
- import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Space as i } from "antd";
3
- import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
- import { useContext as p, useMemo as f, useEffect as x } from "react";
5
- import { BitzTableContext as C } from "../Store/index.mjs";
1
+ import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { Space as c } from "antd";
3
+ import i from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { useContext as n, useMemo as p } from "react";
5
+ import { BitzTableContext as x } from "../Store/index.mjs";
6
6
  import d from "./style.mjs";
7
- const v = ({ show: t, children: a }) => {
8
- const {
9
- blockClassName: o,
10
- showCls: r,
11
- btnClassName: u,
12
- batchOperationClassName: l,
13
- alertContentClassName: N
14
- } = d(), { setSelected: m, toolbarWidth: s } = p(C), c = f(() => n(o, {
15
- [`${r}`]: t
16
- }), [t]);
17
- return x(() => {
18
- m(t ?? !1);
19
- }, [t]), /* @__PURE__ */ e.jsx("div", { className: c, children: /* @__PURE__ */ e.jsx(
20
- i.Compact,
7
+ const N = ({ children: o }) => {
8
+ const { blockClassName: r, showCls: a, batchOperationClassName: m } = d(), { selected: s, toolbarWidth: e } = n(x), l = p(() => i(r, {
9
+ [`${a}`]: s
10
+ }), [s]);
11
+ return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
12
+ c.Compact,
21
13
  {
22
- className: l,
14
+ className: m,
23
15
  style: {
24
- ...s && {
25
- width: `calc(100% - 50px - ${s}px)`
16
+ ...e && {
17
+ width: `calc(100% - 50px - ${e}px)`
26
18
  }
27
19
  },
28
- children: a || /* @__PURE__ */ e.jsx("div", {})
20
+ children: o || /* @__PURE__ */ t.jsx("div", {})
29
21
  }
30
22
  ) });
31
23
  };
32
24
  export {
33
- v as default
25
+ N as default
34
26
  };