bitz-react-admin-ui 2.6.9 → 2.7.1

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.
@@ -1,67 +1,61 @@
1
- import { j as e } from "../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useMemo as u } from "react";
3
- import { theme as x } from "antd";
4
- import { css as c } from "../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
5
- import h from "../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs";
1
+ import { j as r } from "../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useMemo as c } from "react";
3
+ import { theme as g } from "antd";
4
+ import { css as f } from "../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
5
+ import b from "../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs";
6
6
  import "../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/lodash.default.mjs";
7
7
  import p from "../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/wrapperLodash.mjs";
8
- const f = (o) => p.isBoolean(o) ? !0 : p.isArray(o) ? !!(o != null && o.length) : !!o;
9
- function B(o) {
8
+ const u = (t) => p.isBoolean(t) ? !0 : p.isArray(t) ? !!(t != null && t.length) : !!t;
9
+ function M(t) {
10
10
  return (m) => {
11
- const { token: r } = x.useToken(), { children: s, placeholder: t, hideFluent: d, ...i } = m, { value: n, defaultValue: l } = i, a = u(
12
- () => f(n) || f(l),
13
- [n, l]
14
- );
15
- return d ? s : /* @__PURE__ */ e.jsxs(
16
- "div",
17
- {
18
- className: c`
19
- position: relative;
20
- width: 100%;
21
- &:focus-within {
22
- label {
23
- top: 0;
24
- background-color: ${r.colorBgBase};
25
- font-size: ${r.fontSizeSM}px;
26
- color: ${r.colorTextPlaceholder};
27
- }
28
- }
29
- `,
30
- children: [
31
- /* @__PURE__ */ e.jsx(o, { allowClear: !0, ...i, children: s }),
32
- /* @__PURE__ */ e.jsx(
33
- "label",
34
- {
35
- className: c`
36
- position: absolute;
37
- top: ${a ? 0 : "50%"};
38
- left: 7px;
39
- z-index: 10;
40
- white-space: nowrap;
41
- overflow: hidden;
42
- text-overflow: ellipsis;
43
- transform: translateY(-50%);
44
- pointer-events: none;
45
- transition: all 0.1s 0.3s ease-out;
46
- font-size: ${a ? r.fontSizeSM : r.fontSize}px;
47
- background-color: ${r.colorBgBase};
48
- color: ${r.colorTextPlaceholder};
49
- padding: 0 2px;
50
- border-radius: 2px;
51
- max-width: 190px;
52
- `,
53
- children: typeof t == "string" ? t : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
54
- t == null ? void 0 : t[0],
55
- /* @__PURE__ */ e.jsx(h, {}),
56
- t == null ? void 0 : t[1]
57
- ] })
58
- }
59
- )
60
- ]
11
+ const { token: e } = g.useToken(), {
12
+ children: n,
13
+ placeholder: o,
14
+ hideFluent: d,
15
+ fluentStyle: x,
16
+ ...s
17
+ } = m, { value: i, defaultValue: l } = s, a = c(
18
+ () => u(i) || u(l),
19
+ [i, l]
20
+ ), h = f`
21
+ position: absolute;
22
+ top: ${a ? 0 : "50%"};
23
+ left: 7px;
24
+ z-index: 10;
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ transform: translateY(-50%);
29
+ pointer-events: none;
30
+ transition: all 0.1s 0.3s ease-out;
31
+ font-size: ${a ? e.fontSizeSM : e.fontSize}px;
32
+ background-color: ${e.colorBgBase};
33
+ color: ${e.colorTextPlaceholder};
34
+ padding: 0 2px;
35
+ border-radius: 2px;
36
+ max-width: 190px;
37
+ `, w = f`
38
+ position: relative;
39
+ width: 100%;
40
+ &:focus-within {
41
+ label {
42
+ top: 0;
43
+ background-color: ${e.colorBgBase};
44
+ font-size: ${e.fontSizeSM}px;
45
+ color: ${e.colorTextPlaceholder};
46
+ }
61
47
  }
62
- );
48
+ `, S = c(() => typeof o == "string" ? o : [
49
+ o == null ? void 0 : o[0],
50
+ /* @__PURE__ */ r.jsx(b, {}, "icon"),
51
+ o == null ? void 0 : o[1]
52
+ ], [o]);
53
+ return d ? n : /* @__PURE__ */ r.jsxs("div", { style: x, className: w, children: [
54
+ /* @__PURE__ */ r.jsx(t, { allowClear: !0, ...s, children: n }),
55
+ /* @__PURE__ */ r.jsx("label", { className: h, children: S })
56
+ ] });
63
57
  };
64
58
  }
65
59
  export {
66
- B as default
60
+ M as default
67
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitz-react-admin-ui",
3
- "version": "2.6.9",
3
+ "version": "2.7.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",