bitz-react-admin-ui 2.6.4 → 2.6.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.
Files changed (26) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/_virtual/index.mjs +2 -2
  4. package/dist/_virtual/index2.mjs +2 -2
  5. package/dist/components/BitzCalendar/index.mjs +1 -1
  6. package/dist/components/BitzDayJs/index.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  13. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  14. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  15. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  16. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  17. package/dist/components/BitzTooltip/index.mjs +67 -55
  18. package/dist/components/BitzTooltip/style.d.ts +1 -0
  19. package/dist/components/BitzTooltip/style.mjs +25 -14
  20. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  21. package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs +292 -292
  22. package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  23. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/utils/time.mjs +1 -1
  26. package/package.json +1 -1
@@ -1,4 +1,7 @@
1
- var a = { exports: {} };
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
2
+ import { __require as o } from "../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- a as __module
6
+ s as default
4
7
  };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -1,4 +1,4 @@
1
- var p = { exports: {} };
1
+ var s = { exports: {} };
2
2
  export {
3
- p as __module
3
+ s as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var s = { exports: {} };
1
+ var p = { exports: {} };
2
2
  export {
3
- s as __module
3
+ p as __module
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as O, useEffect as R } from "react";
3
3
  import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
4
- import N from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
4
+ import N from "../../_virtual/dayjs.min.mjs";
5
5
  import B from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/weekOfYear.mjs";
6
6
  import "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs";
7
7
  N.extend(B);
@@ -1,4 +1,4 @@
1
- import t from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
1
+ import t from "../../_virtual/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -1,5 +1,5 @@
1
1
  import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
2
- import o from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
2
+ import o from "../../_virtual/dayjs.min.mjs";
3
3
  var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
4
4
  const i = a((e, k) => ({
5
5
  colHeight: 0,
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as y, useEffect as g, useMemo as j } from "react";
3
3
  import D from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isToday.mjs";
4
- import n from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
4
+ import n from "../../_virtual/dayjs.min.mjs";
5
5
  import { useBitzFuiCalendarStore as M, CalendarTypeEnum as S } from "./BitzFuiCalendarStore.mjs";
6
6
  import C from "./CalendarAgendumItem.mjs";
7
7
  import x from "./CalendarAgendum.module.less.mjs";
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as c } from "react";
3
3
  import e from "./CalendarAgendum.module.less.mjs";
4
- import r from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
4
+ import r from "../../_virtual/dayjs.min.mjs";
5
5
  import { Button as a } from "antd";
6
6
  const d = (_, s) => {
7
7
  const t = s.diff(_, "minute");
@@ -2,7 +2,7 @@ import { j as a } from "../../node_modules/.store/react@18.3.1/node_modules/reac
2
2
  import { useState as _, useEffect as y, useMemo as f } from "react";
3
3
  import C from "./ColumnData.mjs";
4
4
  import { useBitzFuiCalendarStore as h, CalendarTypeEnum as o } from "./BitzFuiCalendarStore.mjs";
5
- import j from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
5
+ import j from "../../_virtual/dayjs.min.mjs";
6
6
  import x from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isoWeek.mjs";
7
7
  j.extend(x);
8
8
  const N = (n) => {
@@ -2,7 +2,7 @@ import { j as i } from "../../node_modules/.store/react@18.3.1/node_modules/reac
2
2
  import m from "./CalendarHeadItem.mjs";
3
3
  import { useMemo as d } from "react";
4
4
  import { useBitzFuiCalendarStore as u, CalendarTypeEnum as s } from "./BitzFuiCalendarStore.mjs";
5
- import f from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
5
+ import f from "../../_virtual/dayjs.min.mjs";
6
6
  import p from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isoWeek.mjs";
7
7
  f.extend(p);
8
8
  const j = () => {
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { memo as m, useMemo as r } from "react";
3
- import d from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
3
+ import d from "../../_virtual/dayjs.min.mjs";
4
4
  import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const n = (t) => {
6
6
  const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.3.1/node_modules/reac
2
2
  import { useMemo as s } from "react";
3
3
  import { Space as c, Button as i, DatePicker as h, Dropdown as C } from "antd";
4
4
  import { useBitzFuiCalendarStore as b, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
5
- import w from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
5
+ import w from "../../_virtual/dayjs.min.mjs";
6
6
  import g from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import T from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
4
4
  import b from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import F from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.mjs";
6
6
  import M from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/utc.mjs";
7
- import r from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
7
+ import r from "../../_virtual/dayjs.min.mjs";
8
8
  import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
9
9
  r.extend(M);
10
10
  r.extend(F);
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
3
3
  import A from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import H from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import D from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/utc.mjs";
6
- import e from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
6
+ import e from "../../_virtual/dayjs.min.mjs";
7
7
  import "./index.less.mjs";
8
8
  e.extend(A);
9
9
  e.extend(H);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.3.1/node_modules/reac
2
2
  import { useMemo as d } from "react";
3
3
  import p from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import T from "./BitzMeetingTimeItem.mjs";
5
- import m from "../../node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs";
5
+ import m from "../../_virtual/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -1,96 +1,108 @@
1
- import { j as s } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import g, { useRef as m, useState as E, useEffect as w, useMemo as x } from "react";
1
+ import { j as o } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import v, { useRef as d, useState as w, useEffect as x, useMemo as y } from "react";
3
3
  import { theme as $ } from "antd";
4
4
  import A from "react-dom";
5
- import { isNotFalsly as k } from "./utils.mjs";
5
+ import { isNotFalsly as E } from "./utils.mjs";
6
6
  import D from "../../hooks/useMergedState.mjs";
7
7
  import G from "../../node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useClickAway/index.mjs";
8
8
  import H from "./style.mjs";
9
9
  import I from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
10
- const ee = ({
10
+ const te = ({
11
11
  wrapper: n,
12
- defaultOpen: R,
13
- open: b,
14
- tip: l,
15
- children: t,
12
+ defaultOpen: C,
13
+ open: k,
14
+ tip: c,
15
+ children: s,
16
16
  placement: P = "top",
17
- trigger: c = "hover",
18
- overlayClassName: y,
19
- overlayStyle: C,
20
- getContainer: a
17
+ trigger: i = "hover",
18
+ overlayClassName: N,
19
+ overlayStyle: R,
20
+ getContainer: p
21
21
  }) => {
22
- const { token: d } = $.useToken(), { blockClassName: N, blockContentCls: T } = H(), i = m(null), r = m(null), f = m(document.createElement("div")), [j, B] = E(0), [L, M] = E(0), [o, u] = D(R ?? !1, {
23
- value: b
22
+ const { token: f } = $.useToken(), { blockClassName: j, blockContentCls: T, arrowCls: z } = H(), u = d(null), r = d(null), a = d(document.createElement("div")), [B, S] = w(0), [L, M] = w(0), [t, m] = D(C ?? !1, {
23
+ value: k
24
24
  });
25
- w(() => {
26
- o && k(l) && setTimeout(() => {
27
- document.body.appendChild(f.current);
28
- const e = n ?? i.current;
25
+ x(() => {
26
+ if (t && E(c)) {
27
+ const e = n ?? u.current;
29
28
  if (e && r.current) {
30
- const { top: _, left: F, width: O } = e.getBoundingClientRect(), z = window.pageXOffset || document.documentElement.scrollLeft, V = window.pageYOffset || document.documentElement.scrollTop;
31
- B(
32
- F - (r.current.offsetWidth - O) / 2 + z
33
- ), M(_ - r.current.clientHeight - 10 + V);
29
+ const { top: l, left: _, width: F } = e.getBoundingClientRect(), V = window.pageXOffset || document.documentElement.scrollLeft, W = window.pageYOffset || document.documentElement.scrollTop;
30
+ S(
31
+ _ - (r.current.offsetWidth - F) / 2 + V
32
+ ), M(l - r.current.clientHeight - 10 + W);
34
33
  }
35
- }, 0);
36
- }, [o, l]), G(() => {
37
- o && u(!1);
38
- }, i);
39
- const p = (e) => {
34
+ }
35
+ }, [t, c]), G(() => {
36
+ t && m(!1);
37
+ }, u);
38
+ const h = (e) => {
39
+ var l;
40
40
  if (e) {
41
- if (!k(l))
41
+ if (!E(c))
42
42
  return;
43
- u(!o);
43
+ e && !((l = r.current) != null && l.offsetWidth) && document.body.appendChild(a.current), m(!t);
44
44
  } else
45
- u(!1);
46
- }, h = x(() => {
45
+ m(!1);
46
+ }, b = y(() => {
47
47
  let e = {
48
48
  show: "onMouseEnter",
49
49
  hide: "onMouseLeave"
50
50
  };
51
- return c === "click" ? e = {
51
+ return i === "click" ? e = {
52
52
  show: "onClick",
53
53
  hide: "onBlur"
54
- } : c === "focus" && (e = {
54
+ } : i === "focus" && (e = {
55
55
  show: "onFocus",
56
56
  hide: "onBlur"
57
57
  }), e;
58
- }, [c]), S = x(() => typeof t == "string" ? /* @__PURE__ */ s.jsx("span", { children: t }) : t, [t]);
59
- let v = t;
60
- return n || (v = g.Children.map(
61
- S,
62
- (e) => g.cloneElement(e, {
63
- [`${h.show}`]: () => p(!0),
64
- [`${h.hide}`]: () => p(!1),
65
- ref: i
58
+ }, [i]), O = y(() => typeof s == "string" ? /* @__PURE__ */ o.jsx("span", { children: s }) : s, [s]);
59
+ let g = s;
60
+ return n || (g = v.Children.map(
61
+ O,
62
+ (e) => v.cloneElement(e, {
63
+ [`${b.show}`]: () => h(!0),
64
+ [`${b.hide}`]: () => h(!1),
65
+ ref: u
66
66
  })
67
- )), w(() => () => {
67
+ )), x(() => () => {
68
68
  var e;
69
- (e = f.current) == null || e.remove();
70
- }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
71
- v,
69
+ (e = a.current) == null || e.remove();
70
+ }, []), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
71
+ g,
72
72
  A.createPortal(
73
- /* @__PURE__ */ s.jsx(
73
+ /* @__PURE__ */ o.jsxs(
74
74
  "div",
75
75
  {
76
- className: I(N, y),
76
+ className: I(j, N),
77
77
  ref: r,
78
78
  style: {
79
- left: j,
79
+ left: B,
80
80
  top: L,
81
81
  zIndex: 1070,
82
- background: d.colorBgSpotlight,
83
- color: d.colorTextLightSolid,
84
- opacity: o ? 1 : 0,
85
- ...C
82
+ background: f.colorBgSpotlight,
83
+ color: f.colorTextLightSolid,
84
+ opacity: t ? 1 : 0,
85
+ transformOrigin: "bottom",
86
+ transform: t ? "scale(1)" : "scale(0.8)",
87
+ transition: t ? "transform 0.1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)" : "transform 0.1s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s cubic-bezier(0.215, 0.61, 0.355, 1)",
88
+ ...R
86
89
  },
87
- children: /* @__PURE__ */ s.jsx("div", { className: T, children: l })
90
+ children: [
91
+ /* @__PURE__ */ o.jsx(
92
+ "div",
93
+ {
94
+ className: z,
95
+ style: { borderTopColor: f.colorBgSpotlight }
96
+ }
97
+ ),
98
+ /* @__PURE__ */ o.jsx("div", { className: T, children: c })
99
+ ]
88
100
  }
89
101
  ),
90
- a && n ? a(n) : f.current
102
+ p && n ? p(n) : a.current
91
103
  )
92
104
  ] });
93
105
  };
94
106
  export {
95
- ee as default
107
+ te as default
96
108
  };
@@ -1,5 +1,6 @@
1
1
  declare const useGenStyle: () => {
2
2
  blockClassName: string;
3
3
  blockContentCls: string;
4
+ arrowCls: string;
4
5
  };
5
6
  export default useGenStyle;
@@ -1,4 +1,4 @@
1
- import { theme as p } from "antd";
1
+ import { theme as d } from "antd";
2
2
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
3
3
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
4
4
  import "react";
@@ -9,13 +9,13 @@ import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-d
9
9
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
10
10
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
11
11
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
12
- import l from "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
12
+ import b from "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
13
13
  import "../../node_modules/.store/@ant-design_cssinjs@1.21.0/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
14
- import b from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
- const T = () => {
16
- const { theme: n, hashId: e, token: i } = p.useToken(), o = "bitzTooltipBlock", r = "bitzTooltipContent", s = (m, a, t) => [
14
+ import c from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
15
+ const N = () => {
16
+ const { theme: s, hashId: e, token: r } = d.useToken(), o = "bitzTooltipBlock", i = "bitzTooltipContent", n = "bitzTooltipArrow", p = (a, l, m, t) => [
17
17
  {
18
- [`.${m}`]: {
18
+ [`.${a}`]: {
19
19
  position: "absolute",
20
20
  pointerEvents: "none",
21
21
  borderRadius: t.borderRadius,
@@ -28,23 +28,34 @@ const T = () => {
28
28
  textDecoration: "none",
29
29
  boxShadow: t.boxShadowSecondary,
30
30
  boxSizing: "border-box",
31
- transition: "opacity 0.2s",
32
- [`.${a}`]: {
31
+ [`.${l}`]: {
33
32
  position: "relative"
33
+ },
34
+ [`.${m}`]: {
35
+ position: "absolute",
36
+ left: "calc(50% - 6px)",
37
+ bottom: -8,
38
+ pointerEvents: "none",
39
+ width: 0,
40
+ height: 0,
41
+ borderLeft: "6px solid transparent",
42
+ borderRight: "6px solid transparent",
43
+ borderTopWidth: 8,
44
+ borderTopStyle: "solid"
34
45
  }
35
46
  }
36
47
  }
37
48
  ];
38
- return l(
49
+ return b(
39
50
  {
40
- theme: n,
41
- token: i,
51
+ theme: s,
52
+ token: r,
42
53
  hashId: e,
43
54
  path: [o]
44
55
  },
45
- () => [s(o, r, i)]
46
- ), { blockClassName: b(o, e), blockContentCls: r };
56
+ () => [p(o, i, n, r)]
57
+ ), { blockClassName: c(o, e), blockContentCls: i, arrowCls: n };
47
58
  };
48
59
  export {
49
- T as default
60
+ N as default
50
61
  };
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as i } from "../../../../../_virtual/index2.mjs";
2
+ import { __module as i } from "../../../../../_virtual/index.mjs";
3
3
  /*!
4
4
  Copyright (c) 2018 Jed Watson.
5
5
  Licensed under the MIT License (MIT), see