bitz-react-admin-ui 1.9.6 → 1.9.8

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,33 +1,33 @@
1
1
  import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { css as n } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
- import { theme as d, Input as s } from "antd";
4
- import { useMemo as f } from "react";
2
+ import { css as a } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
+ import { theme as f, Input as i } from "antd";
4
+ import { useMemo as d } from "react";
5
5
  const w = ({
6
- placeholder: a,
7
- hideFluent: i,
8
- ...e
6
+ placeholder: n,
7
+ hideFluent: s,
8
+ ...o
9
9
  }) => {
10
- const u = e.value, c = e.defaultValue, { token: o } = d.useToken(), t = u || c, r = f(() => !(t === void 0 || t === "" || t === null), [t]);
11
- return i ? /* @__PURE__ */ l.jsx(s, { allowClear: !0, placeholder: a, ...e }) : /* @__PURE__ */ l.jsxs(
10
+ const u = o.value, c = o.defaultValue, { token: e } = f.useToken(), t = u || c, r = d(() => !(t === void 0 || t === "" || t === null), [t]);
11
+ return s ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: n, ...o }) : /* @__PURE__ */ l.jsxs(
12
12
  "div",
13
13
  {
14
- className: n`
14
+ className: a`
15
15
  position: relative;
16
16
  &:focus-within {
17
17
  label {
18
18
  top: 0;
19
- background-color: ${o.colorBgBase};
20
- font-size: 10px;
21
- color: ${o.colorTextPlaceholder};
19
+ background-color: ${e.colorBgBase};
20
+ font-size: ${e.fontSizeSM}px;
21
+ color: ${e.colorTextPlaceholder};
22
22
  }
23
23
  }
24
24
  `,
25
25
  children: [
26
- /* @__PURE__ */ l.jsx(s, { allowClear: !0, ...e }),
26
+ /* @__PURE__ */ l.jsx(i, { allowClear: !0, ...o }),
27
27
  /* @__PURE__ */ l.jsx(
28
28
  "label",
29
29
  {
30
- className: n`
30
+ className: a`
31
31
  position: absolute;
32
32
  top: ${r ? 0 : "50%"};
33
33
  left: 7px;
@@ -38,13 +38,13 @@ const w = ({
38
38
  transform: translateY(-50%);
39
39
  pointer-events: none;
40
40
  transition: all 0.1s ease-out;
41
- font-size: ${r ? "10px" : "12px"};
42
- background-color: ${r ? o.colorBgBase : "transparent"};
43
- color: ${o.colorTextPlaceholder};
41
+ font-size: ${r ? e.fontSizeSM : e.fontSize}px;
42
+ background-color: ${r ? e.colorBgBase : "transparent"};
43
+ color: ${e.colorTextPlaceholder};
44
44
  padding: 0 2px;
45
45
  border-radius: 2px;
46
46
  `,
47
- children: a
47
+ children: n
48
48
  }
49
49
  )
50
50
  ]
@@ -1,14 +1,14 @@
1
1
  import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { css as n } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
- import { theme as d, Select as s } from "antd";
4
- import { useMemo as f } from "react";
3
+ import { theme as f, Select as i } from "antd";
4
+ import { useMemo as d } from "react";
5
5
  const w = ({
6
6
  placeholder: a,
7
- hideFluent: i,
8
- ...e
7
+ hideFluent: s,
8
+ ...o
9
9
  }) => {
10
- const c = e.value, u = e.defaultValue, { token: o } = d.useToken(), t = c || u, r = f(() => !(t === void 0 || t === "" || t === null), [t]);
11
- return i ? /* @__PURE__ */ l.jsx(s, { allowClear: !0, placeholder: a, ...e }) : /* @__PURE__ */ l.jsxs(
10
+ const c = o.value, u = o.defaultValue, { token: e } = f.useToken(), t = c || u, r = d(() => !(t === void 0 || t === "" || t === null), [t]);
11
+ return s ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: a, ...o }) : /* @__PURE__ */ l.jsxs(
12
12
  "div",
13
13
  {
14
14
  className: n`
@@ -16,14 +16,14 @@ const w = ({
16
16
  &:focus-within {
17
17
  label {
18
18
  top: 0;
19
- background-color: ${o.colorBgBase};
20
- font-size: 10px;
21
- color: ${o.colorTextPlaceholder};
19
+ background-color: ${e.colorBgBase};
20
+ font-size: ${e.fontSizeSM}px;
21
+ color: ${e.colorTextPlaceholder};
22
22
  }
23
23
  }
24
24
  `,
25
25
  children: [
26
- /* @__PURE__ */ l.jsx(s, { allowClear: !0, ...e }),
26
+ /* @__PURE__ */ l.jsx(i, { allowClear: !0, ...o }),
27
27
  /* @__PURE__ */ l.jsx(
28
28
  "label",
29
29
  {
@@ -38,9 +38,9 @@ const w = ({
38
38
  transform: translateY(-50%);
39
39
  pointer-events: none;
40
40
  transition: all 0.1s ease-out;
41
- font-size: ${r ? "10px" : "12px"};
42
- background-color: ${r ? o.colorBgBase : "transparent"};
43
- color: ${o.colorTextPlaceholder};
41
+ font-size: ${r ? e.fontSizeSM : e.fontSize}px;
42
+ background-color: ${r ? e.colorBgBase : "transparent"};
43
+ color: ${e.colorTextPlaceholder};
44
44
  padding: 0 2px;
45
45
  border-radius: 2px;
46
46
  `,
@@ -71,14 +71,16 @@ function Z(e) {
71
71
  if ((i = e == null ? void 0 : e.columnsState) != null && i.defaultValue)
72
72
  return e.columnsState.defaultValue;
73
73
  const t = {};
74
- return (u = e.columns) == null || u.forEach(({ key: n, dataIndex: c, fixed: a, disable: l }, o) => {
75
- const s = W(n ?? c, o);
76
- s && (t[s] = {
77
- show: !0,
78
- fixed: a,
79
- disable: l
80
- });
81
- }), t;
74
+ return (u = e.columns) == null || u.forEach(
75
+ ({ key: n, dataIndex: c, fixed: a, disable: l }, o) => {
76
+ const s = W(n ?? c, o);
77
+ s && (t[s] = {
78
+ show: !0,
79
+ fixed: a,
80
+ disable: l
81
+ });
82
+ }
83
+ ), t;
82
84
  }, [e.columns]), [y, f] = G(
83
85
  () => {
84
86
  var n, c, a, l;