bitz-react-admin-ui 2.1.3 → 2.1.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.
Files changed (48) hide show
  1. package/dist/assets/iconfont/IconColumnCancelFixed.d.ts +7 -0
  2. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +35 -0
  3. package/dist/assets/iconfont/IconColumnFixedLeft.d.ts +7 -0
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +35 -0
  5. package/dist/assets/iconfont/IconColumnFixedRight.d.ts +7 -0
  6. package/dist/assets/iconfont/IconColumnFixedRight.mjs +35 -0
  7. package/dist/assets/iconfont/IconDragOrder.d.ts +7 -0
  8. package/dist/assets/iconfont/IconDragOrder.mjs +35 -0
  9. package/dist/assets/iconfont/index.d.ts +5 -1
  10. package/dist/assets/iconfont/index.mjs +105 -89
  11. package/dist/components/BitzFluentInput/index.d.ts +2 -5
  12. package/dist/components/BitzFluentInput/index.mjs +4 -58
  13. package/dist/components/BitzFluentSelect/index.d.ts +4 -5
  14. package/dist/components/BitzFluentSelect/index.mjs +4 -58
  15. package/dist/components/BitzFluentTreeSelect/index.mjs +6 -0
  16. package/dist/components/BitzTable/Dropdown/index.mjs +16 -15
  17. package/dist/components/BitzTable/Select/index.d.ts +4 -0
  18. package/dist/components/BitzTable/Select/index.mjs +11 -0
  19. package/dist/components/BitzTable/Select/style.d.ts +4 -0
  20. package/dist/components/BitzTable/Select/style.mjs +66 -0
  21. package/dist/components/BitzTable/Store/index.d.ts +52 -9
  22. package/dist/components/BitzTable/Store/index.mjs +276 -156
  23. package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
  24. package/dist/components/BitzTable/Table/index.mjs +226 -229
  25. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -67
  26. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +118 -61
  27. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +4 -3
  28. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +48 -47
  29. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +5 -1
  30. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +84 -15
  31. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +59 -50
  32. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +1 -1
  33. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +47 -21
  34. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +11 -0
  35. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +97 -0
  36. package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -6
  37. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +63 -32
  38. package/dist/components/BitzTable/ToolBar/index.d.ts +9 -3
  39. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +148 -123
  40. package/dist/components/BitzTableSelect/TextBlock/index.mjs +21 -18
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.mjs +94 -92
  43. package/dist/style.css +1 -1
  44. package/dist/utils/WithFluent.d.ts +9 -0
  45. package/dist/utils/WithFluent.mjs +58 -0
  46. package/package.json +2 -1
  47. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
  48. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
@@ -1,174 +1,199 @@
1
1
  import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useRef as ee, useState as y, useMemo as g, useCallback as te, useEffect as re } from "react";
3
- import { Row as m, Col as c, Space as k, Form as d, Select as M, Spin as oe, Typography as le, Flex as se, Empty as K } from "antd";
4
- import ce from "../../BitzPagination/index.mjs";
5
- import ie from "../../BitzTable/index.mjs";
6
- import F from "../../BitzButton/index.mjs";
7
- import { getColumns as ne, getExpandable as ae, getLayoutConfig as de } from "./getData.mjs";
8
- import pe from "../TextBlock/index.mjs";
9
- import ue from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
10
- import xe from "../../BitzTheme/index.mjs";
11
- import me from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
2
+ import { useRef as le, useState as g, useMemo as P, useCallback as oe, useEffect as se } from "react";
3
+ import { Row as f, Col as a, Space as A, Form as m, Select as F, Spin as ce, Typography as ne, Flex as ie, Empty as G } from "antd";
4
+ import ae from "../../BitzPagination/index.mjs";
5
+ import pe from "../../BitzTable/index.mjs";
6
+ import H from "../../BitzButton/index.mjs";
7
+ import { getColumns as ue, getExpandable as de, getLayoutConfig as xe } from "./getData.mjs";
8
+ import he from "../TextBlock/index.mjs";
9
+ import me from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
10
+ import je from "../../BitzTheme/index.mjs";
11
+ import Se from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
12
12
  import "./index.less.mjs";
13
- import he from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
14
- import je from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
15
- function Ce({
16
- columns: T,
17
- tableData: h,
18
- total: N,
19
- loading: i,
20
- loadingFailed: p,
21
- loadAgain: _,
22
- page: w,
23
- onPageChange: A,
24
- searchInput: G,
25
- showToolTagSelect: v,
26
- toolTags: H,
27
- onToolTagChange: j,
28
- lrLayout: b,
29
- parentRender: P,
30
- keys: R,
31
- rows: B,
32
- fieldNames: l,
33
- onChange: u,
34
- onDropdownVisibleChange: x
13
+ import be from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
14
+ import fe from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
15
+ function Ke({
16
+ columns: B,
17
+ tableData: y,
18
+ total: L,
19
+ loading: p,
20
+ loadingFailed: j,
21
+ loadAgain: O,
22
+ page: E,
23
+ onPageChange: W,
24
+ searchInput: $,
25
+ showToolTagSelect: I,
26
+ toolTags: q,
27
+ onToolTagChange: w,
28
+ lrLayout: T,
29
+ parentRender: R,
30
+ keys: z,
31
+ rows: k,
32
+ fieldNames: t,
33
+ onChange: x,
34
+ onDropdownVisibleChange: S
35
35
  }) {
36
- var z, C;
37
- const E = ee(null), f = ue(E), { token: t } = xe.useToken(), I = ((z = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : z.tableSpaceBetweenPage) ?? 10, [a, L] = y([]), [n, O] = y([]), [W, $] = y(void 0), q = (o, r) => {
38
- $(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
39
- x(!1);
36
+ var K, _;
37
+ const C = le(null), v = me(C), { token: s } = je.useToken(), M = ((K = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, [c, J] = g([]), [r, Q] = g([]), [U, X] = g(void 0), Y = (l, o) => {
38
+ X(l), w == null || w(l, o), l || (S(!0), setTimeout(() => {
39
+ S(!1);
40
40
  }, 0));
41
- }, J = g(() => ne(T, h, w), [T]), Q = {
42
- selectedRowKeys: a,
43
- preserveSelectedRowKeys: !0,
44
- onChange(o, r) {
45
- u(o, r);
41
+ }, Z = P(() => ue(B, y, E), [B]), D = {
42
+ selectedRowKeys: c,
43
+ onSelect: (l, o) => {
44
+ if (o)
45
+ c.push(l[t.value]), r.push(l), x(c, r);
46
+ else {
47
+ const u = r.filter(
48
+ (d) => d[t.value] !== l[t.value]
49
+ );
50
+ x(
51
+ u.map((d) => d[t.value]),
52
+ u
53
+ );
54
+ }
55
+ },
56
+ onSelectAll: (l, o, u) => {
57
+ const d = u.map((i) => i[t.value]);
58
+ if (l) {
59
+ const i = c.concat(d), b = r.concat(u);
60
+ x(i, b);
61
+ } else {
62
+ const i = c == null ? void 0 : c.filter((h) => !d.includes(h)), b = /* @__PURE__ */ new Map();
63
+ u.forEach((h) => {
64
+ b.set(h[t.value], h);
65
+ });
66
+ const re = r == null ? void 0 : r.filter(
67
+ (h) => !b.has(h[t.value])
68
+ );
69
+ x(i, re);
70
+ }
46
71
  }
47
- }, U = te(() => ae(l.items, i), [l.items]), X = (o, r) => /* @__PURE__ */ e.jsxs("span", { style: { color: t.colorText }, children: [
48
- o[0],
72
+ }, V = oe(() => de(t.items, p), [t.items, p]), N = (l, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
73
+ l[0],
49
74
  " ",
50
- /* @__PURE__ */ e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }),
75
+ /* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: o }),
51
76
  " ",
52
- o[1]
53
- ] }), Y = () => {
54
- const o = (r) => {
55
- const D = n.findIndex(
56
- (S) => S[l.value] === r[l.value]
57
- ), V = a.findIndex(
58
- (S) => S === r[l.value]
77
+ l[1]
78
+ ] }), ee = () => {
79
+ const l = (o) => {
80
+ const u = r.findIndex(
81
+ (i) => i[t.value] === o[t.value]
82
+ ), d = c.findIndex(
83
+ (i) => i === o[t.value]
59
84
  );
60
- n.splice(D, 1), a.splice(V, 1), u(a, n);
85
+ r.splice(u, 1), c.splice(d, 1), x(c, r);
61
86
  };
62
87
  return /* @__PURE__ */ e.jsxs(
63
- k,
88
+ A,
64
89
  {
65
90
  direction: "vertical",
66
91
  style: {
67
92
  width: "calc(100% - 5px)",
68
93
  paddingRight: 5,
69
- maxHeight: n.length ? 220 : "auto",
94
+ maxHeight: r.length ? 220 : "auto",
70
95
  overflow: "hidden auto"
71
96
  },
72
97
  children: [
73
- n.map((r) => /* @__PURE__ */ e.jsxs(
74
- se,
98
+ r.map((o) => /* @__PURE__ */ e.jsxs(
99
+ ie,
75
100
  {
76
101
  justify: "space-between",
77
102
  style: {
78
103
  padding: "4px 8px",
79
- border: `1px solid ${t.colorBorder}`,
104
+ border: `1px solid ${s.colorBorder}`,
80
105
  backgroundColor: "#f5f5f5",
81
- borderRadius: t.borderRadiusSM,
106
+ borderRadius: s.borderRadiusSM,
82
107
  overflow: "hidden"
83
108
  },
84
109
  children: [
85
- /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(pe, { value: r[l.label] }) }),
110
+ /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(he, { value: o[t.label] }) }),
86
111
  /* @__PURE__ */ e.jsx(
87
- je,
112
+ fe,
88
113
  {
89
114
  style: {
90
- color: t.colorError,
115
+ color: s.colorError,
91
116
  fontSize: 13,
92
117
  cursor: "pointer"
93
118
  },
94
- onClick: () => o(r)
119
+ onClick: () => l(o)
95
120
  }
96
121
  )
97
122
  ]
98
123
  },
99
- r[l.value]
124
+ o[t.value]
100
125
  )),
101
- !n.length && /* @__PURE__ */ e.jsx(K, { image: K.PRESENTED_IMAGE_SIMPLE })
126
+ !r.length && /* @__PURE__ */ e.jsx(G, { image: G.PRESENTED_IMAGE_SIMPLE })
102
127
  ]
103
128
  }
104
129
  );
105
- }, s = g(() => de(b, v), [b, v]), Z = g(() => me(
106
- { loadingTable: i },
107
- { loadingFailedTable: p },
130
+ }, n = P(() => xe(T, I), [T, I]), te = P(() => Se(
131
+ { loadingTable: p },
132
+ { loadingFailedTable: j },
108
133
  "bitzSelectTable"
109
- ), [p, i]);
110
- return re(() => {
111
- L(R ?? []), O(B ?? []);
112
- }, [R, B]), /* @__PURE__ */ e.jsxs(m, { gutter: s.gutter, children: [
113
- /* @__PURE__ */ e.jsx(c, { span: s.left.span, children: b && P && P(I, f == null ? void 0 : f.height) }),
114
- /* @__PURE__ */ e.jsx(c, { span: s.right.span, children: /* @__PURE__ */ e.jsxs(k, { direction: "vertical", size: I, style: { width: "100%" }, children: [
115
- /* @__PURE__ */ e.jsx(d, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(m, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(c, { span: 24, children: /* @__PURE__ */ e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [
116
- /* @__PURE__ */ e.jsx(c, { span: s.right.search, children: /* @__PURE__ */ e.jsx(d.Item, { children: G }) }),
117
- /* @__PURE__ */ e.jsx(c, { span: s.right.operation, children: /* @__PURE__ */ e.jsxs(m, { justify: "end", gutter: 8, children: [
118
- /* @__PURE__ */ e.jsx(c, { span: s.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsx(
119
- M,
134
+ ), [j, p]);
135
+ return se(() => {
136
+ J(z ?? []), Q(k ?? []);
137
+ }, [z, k]), /* @__PURE__ */ e.jsxs(f, { gutter: n.gutter, children: [
138
+ /* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && R && R(M, v == null ? void 0 : v.height) }),
139
+ /* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(A, { direction: "vertical", size: M, style: { width: "100%" }, children: [
140
+ /* @__PURE__ */ e.jsx(m, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(f, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(f, { justify: "space-between", gutter: [16, 16], children: [
141
+ /* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(m.Item, { children: $ }) }),
142
+ /* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(f, { justify: "end", gutter: 8, children: [
143
+ /* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(m.Item, { children: /* @__PURE__ */ e.jsx(
144
+ F,
120
145
  {
121
146
  allowClear: !0,
122
147
  className: "tableSelectPopupToolTagSelect",
123
148
  style: {
124
149
  width: "100%",
125
- "--toolTagSelect-color": i ? t.colorTextDisabled : t.colorText
150
+ "--toolTagSelect-color": p ? s.colorTextDisabled : s.colorText
126
151
  },
127
152
  placeholder: "常用标签",
128
153
  showSearch: !1,
129
- disabled: i,
130
- options: H,
131
- value: W,
132
- onChange: q,
133
- onDropdownVisibleChange: x
154
+ disabled: p,
155
+ options: q,
156
+ value: U,
157
+ onChange: Y,
158
+ onDropdownVisibleChange: S
134
159
  }
135
160
  ) }) }),
136
- /* @__PURE__ */ e.jsx(c, { span: s.right.totalSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
161
+ /* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(m.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
137
162
  /* @__PURE__ */ e.jsx(
138
- M,
163
+ F,
139
164
  {
140
165
  style: { width: "100%" },
141
166
  mode: "multiple",
142
167
  placeholder: "",
143
168
  showSearch: !1,
144
- options: n,
145
- value: a,
146
- fieldNames: l,
169
+ options: r,
170
+ value: c,
171
+ fieldNames: t,
147
172
  popupClassName: "tableSelectPopupTotalPopup",
148
- dropdownRender: Y,
173
+ dropdownRender: ee,
149
174
  tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
150
- onDropdownVisibleChange: x
175
+ onDropdownVisibleChange: S
151
176
  }
152
177
  ),
153
- /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: X(
178
+ /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: N(
154
179
  ["已选择", "条数据"],
155
- a.length || 0
180
+ c.length || 0
156
181
  ) })
157
182
  ] }) }) }),
158
- /* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
159
- F,
183
+ /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
184
+ H,
160
185
  {
161
186
  type: "primary",
162
187
  danger: !0,
163
- onClick: () => u([], [], "clear"),
188
+ onClick: () => x([], [], "clear"),
164
189
  children: "清空"
165
190
  }
166
191
  ) }),
167
- /* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
168
- F,
192
+ /* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
193
+ H,
169
194
  {
170
195
  type: "primary",
171
- onClick: () => u([], [], "confirm"),
196
+ onClick: () => x([], [], "confirm"),
172
197
  children: "确认"
173
198
  }
174
199
  ) })
@@ -177,34 +202,34 @@ function Ce({
177
202
  /* @__PURE__ */ e.jsx(
178
203
  "div",
179
204
  {
180
- ref: E,
181
- ...p && {
205
+ ref: C,
206
+ ...j && {
182
207
  className: "pointerMouse",
183
- onClick: () => _()
208
+ onClick: () => O()
184
209
  },
185
210
  children: /* @__PURE__ */ e.jsx(
186
- oe,
211
+ ce,
187
212
  {
188
- spinning: p,
189
- indicator: /* @__PURE__ */ e.jsx(he, {}),
190
- tip: /* @__PURE__ */ e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }),
213
+ spinning: j,
214
+ indicator: /* @__PURE__ */ e.jsx(be, {}),
215
+ tip: /* @__PURE__ */ e.jsx(ne.Text, { type: "danger", children: "加载失败,点击重试" }),
191
216
  children: /* @__PURE__ */ e.jsx(
192
- ie,
217
+ pe,
193
218
  {
194
- rowKey: l.value,
195
- loading: i,
219
+ rowKey: t.value,
220
+ loading: p,
196
221
  bordered: "row-column",
197
222
  tableLayout: "fixed",
198
223
  scroll: { x: 1, y: 400 },
199
224
  showPagination: !1,
200
225
  showTableTool: !1,
201
- rowSelection: Q,
202
- columns: J,
203
- dataSource: h,
204
- className: Z,
205
- ...U(),
226
+ rowSelection: D,
227
+ columns: Z,
228
+ dataSource: y,
229
+ className: te,
230
+ ...V(),
206
231
  style: {
207
- "--tableBody-bootomBorderColor": ((C = t.Table) == null ? void 0 : C.borderColor) || t.colorBorderSecondary
232
+ "--tableBody-bootomBorderColor": ((_ = s.Table) == null ? void 0 : _.borderColor) || s.colorBorderSecondary
208
233
  }
209
234
  }
210
235
  )
@@ -212,22 +237,22 @@ function Ce({
212
237
  )
213
238
  }
214
239
  ),
215
- /* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx(d.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
216
- ce,
240
+ /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(m.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
241
+ ae,
217
242
  {
218
- disabled: i,
243
+ disabled: p,
219
244
  className: "tableSelectPopupTablePagination",
220
245
  size: "small",
221
246
  enableControl: !0,
222
- pagination: w,
223
- total: N,
224
- dataSource: h,
225
- paginationEmit: A
247
+ pagination: E,
248
+ total: L,
249
+ dataSource: y,
250
+ paginationEmit: W
226
251
  }
227
252
  ) }) })
228
253
  ] }) })
229
254
  ] });
230
255
  }
231
256
  export {
232
- Ce as default
257
+ Ke as default
233
258
  };
@@ -1,37 +1,40 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Input as l } from "antd";
3
- import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
2
+ import { Input as a } from "antd";
3
+ import l from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
4
  import "./index.less.mjs";
5
- const { TextArea: n } = l, u = ({
6
- maxRows: t = 1,
5
+ const { TextArea: m } = a, d = ({
6
+ maxRows: e = 1,
7
7
  minRows: o,
8
- bold: e,
9
- value: s,
8
+ bold: s,
9
+ value: t,
10
10
  className: r
11
11
  }) => {
12
- const a = {
13
- "--cell-text-maxRows": t,
14
- ...e && {
15
- fontWeight: e
12
+ const n = {
13
+ "--cell-text-maxRows": e,
14
+ ...s && {
15
+ fontWeight: s
16
+ },
17
+ ...!t && !["number", "boolean"].includes(typeof t) && {
18
+ paddingInline: 24
16
19
  }
17
20
  };
18
21
  return /* @__PURE__ */ i.jsx(
19
- n,
22
+ m,
20
23
  {
21
- className: m("textBlock", r),
22
- title: s,
23
- value: s,
24
+ className: l("textBlock", r),
25
+ title: t,
26
+ value: t,
24
27
  readOnly: !0,
25
28
  size: "small",
26
29
  variant: "borderless",
27
30
  autoSize: {
28
- minRows: o ?? t,
29
- maxRows: t
31
+ minRows: o ?? e,
32
+ maxRows: e
30
33
  },
31
- style: a
34
+ style: n
32
35
  }
33
36
  );
34
37
  };
35
38
  export {
36
- u as default
39
+ d as default
37
40
  };
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ export { default as BitzException } from './components/BitzException';
18
18
  export { default as BitzFloatLayout } from './components/BitzFloatLayout';
19
19
  export { default as BitzFluentInput } from './components/BitzFluentInput';
20
20
  export { default as BitzFluentSelect } from './components/BitzFluentSelect';
21
+ export { default as BitzFluentTreeSelect } from './components/BitzFluentTreeSelect';
21
22
  export { default as BitzFuiCalendar } from './components/BitzFuiCalendar';
22
23
  export { default as BitzFullScreen } from './components/BitzFullScreen';
23
24
  export { default as BitzHighlight } from './components/BitzHighlight';