@baishuyun/ui-base 6.14.0 → 6.15.0
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.
- package/dist/Amap/AmapCircle/index.js +1 -1
- package/dist/Amap/AmapMarker/index.js +1 -1
- package/dist/Amap/AmapMarkerCluster/index.js +1 -1
- package/dist/Amap/AmapProvider/index.js +4 -4
- package/dist/Amap/{AmapProvider-BwyzXpEj.js → AmapProvider-B-R2DrkJ.js} +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +4 -4
- package/dist/Calendar/{AllDaySection-D9YHhwIa.js → AllDaySection-b3li9ovR.js} +1 -1
- package/dist/Calendar/{Calendar-DpANgMxX.js → Calendar-DbQvgTzh.js} +7 -7
- package/dist/Calendar/{CurrentTimeIndicator-dRYot1Rk.js → CurrentTimeIndicator-BZLQps2m.js} +1 -1
- package/dist/Calendar/{EventCard-Di5UX4pB.js → EventCard-DkJoyxI3.js} +1 -1
- package/dist/Calendar/{TimeGrid-5zMy9Hks.js → TimeGrid-Qjvt-eum.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +10 -10
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/{ColorPicker-Cm_-e0Hz.js → ColorPicker-BGduOQbR.js} +2 -2
- package/dist/ColorPicker/index.js +4 -4
- package/dist/ConfigProvider/index.js +3 -3
- package/dist/DatePicker/{DatePicker-Sl-c8f3e.js → DatePicker-CvOPih1m.js} +3 -3
- package/dist/DatePicker/{DatePickerPanel-Bbz1ISVO.js → DatePickerPanel-CrpZidbJ.js} +3 -3
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/{DropDown-DV1IuuQD.js → DropDown-CtiUrlqk.js} +4 -4
- package/dist/DropDown/index.js +6 -6
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-C6whbXgn.js → Buttons-BhGuyTzy.js} +595 -558
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +9 -8
- package/dist/Editor/constants/index.js +1 -1
- package/dist/Editor/index.js +91 -76
- package/dist/Gantt/GanttChart/index.js +9 -9
- package/dist/Gantt/{GanttChart-DEGOIgRD.js → GanttChart-C_bxX0_A.js} +3 -3
- package/dist/Gantt/GanttTable/index.js +5 -5
- package/dist/Gantt/{GanttTable-Dwb00N8Z.js → GanttTable-T7ZHce4a.js} +1 -1
- package/dist/Gantt/GanttToolBar/index.js +7 -7
- package/dist/Gantt/{GanttToolBar-BcJB6sKY.js → GanttToolBar-jhhCjBn-.js} +2 -2
- package/dist/Gantt/index.js +11 -11
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-CBnG1R7g.js → InputTag-BcywA_86.js} +1 -1
- package/dist/InputTag/index.js +4 -4
- package/dist/Loading/{Loading-DYayeRbT.js → Loading-D1QxBrOq.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-CG5wFTL4.js → Select-DWXMgoud.js} +145 -145
- package/dist/Select/{SelectInputSearch-DiuwwOWz.js → SelectInputSearch-BUWOQCgT.js} +1 -1
- package/dist/Select/index.js +6 -6
- package/dist/Table/{Table-B7J-IK2_.js → Table-BjLvTorz.js} +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +4 -4
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-CObQtF37.js → Tabs-DezpnxP1.js} +3 -3
- package/dist/Tabs/index.js +5 -5
- package/dist/Tooltip/Tooltip-nJU13gX4.js +175 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/utils/index.js +1 -1
- package/dist/animations/index.d.ts +1 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +4 -18
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +3 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/registry.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +9 -11
- package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
- package/dist/components/Editor/index.d.ts +2 -1
- package/dist/components/Editor/interface.d.ts +1 -1
- package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +6 -2
- package/dist/components/Select/interface.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -2
- package/dist/hooks/resolvePopupMatchSelectWidth.d.ts +4 -0
- package/dist/hooks/useFloatingPortal.d.ts +1 -0
- package/dist/hooks/useLatchedPopupPortalRoot.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/locale/lang/en-US.json.d.ts +2 -1
- package/dist/locale/lang/zh-CN.json.d.ts +2 -1
- package/dist/locale/lang/zh-TW.json.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-BDyxjj6K.js → ConfigProvider-gZYvcwIQ.js} +5 -3
- package/dist/vendors/{LocaleContext-w5ODGcJX.js → LocaleContext-DXQoOKM2.js} +2 -1
- package/dist/vendors/{animations-rwUbyoT0.js → animations-Dn_5xJ7B.js} +9 -1
- package/dist/vendors/useFloatingPortal-VpzL-EPh.js +75 -0
- package/dist/vendors/{useLocale-CEDl6cUK.js → useLocale-D31qCCff.js} +1 -1
- package/dist/vendors/{version-D17a2Lcy.js → version-DuQW7jtS.js} +1 -1
- package/package.json +1 -1
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +0 -172
- package/dist/vendors/useFloatingPortal-B3N1viK2.js +0 -47
package/dist/Select/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "../vendors/LocaleContext-
|
|
4
|
+
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
5
5
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../vendors/useLocale-
|
|
6
|
+
import "../vendors/useLocale-D31qCCff.js";
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
8
|
-
import { n as e, r as t, t as n } from "./Select-
|
|
9
|
-
import "./SelectInputSearch-
|
|
8
|
+
import { n as e, r as t, t as n } from "./Select-DWXMgoud.js";
|
|
9
|
+
import "./SelectInputSearch-BUWOQCgT.js";
|
|
10
10
|
import "../vendors/Tree-B7XeC9Mi.js";
|
|
11
11
|
import "../CheckBox/CheckBox-DFfNiPGM.js";
|
|
12
12
|
import "../CheckBox/CheckBox-CwfrMEFb.js";
|
|
13
13
|
import "../Radio/Radio-CX9cUqb7.js";
|
|
14
14
|
import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
|
|
15
15
|
import "../ScrollBar/ScrollBar-N2pOLv-8.js";
|
|
16
|
-
import "../vendors/useFloatingPortal-
|
|
16
|
+
import "../vendors/useFloatingPortal-VpzL-EPh.js";
|
|
17
17
|
export { e as Mode, n as Select, t as SelectType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useLocale-
|
|
1
|
+
import { t as e } from "../vendors/useLocale-D31qCCff.js";
|
|
2
2
|
import { n as t, o as n, t as r } from "./constants-kRpjsoet.js";
|
|
3
3
|
import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-B0WELhG2.js";
|
|
4
4
|
import { n as p, t as m } from "./hooks-BceUZQQm.js";
|
package/dist/Table/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
|
-
import "../vendors/LocaleContext-
|
|
4
|
-
import "../vendors/useLocale-
|
|
3
|
+
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
|
+
import "../vendors/useLocale-D31qCCff.js";
|
|
5
5
|
import { a as e, n as t, t as n } from "./constants-kRpjsoet.js";
|
|
6
6
|
import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-B0WELhG2.js";
|
|
7
|
-
import { n as f, t as p } from "./Table-
|
|
7
|
+
import { n as f, t as p } from "./Table-BjLvTorz.js";
|
|
8
8
|
import { n as m, t as h } from "./hooks-BceUZQQm.js";
|
|
9
9
|
import { t as g } from "./style-C4wp0IOM.js";
|
|
10
10
|
export { n as COLUMN_DEFAULTS, t as DEFAULT_CONFIG, e as TABLE_DOM, p as Table, p as default, f as TableBody, r as calculateFixedOffset, c as expandLeafColumns, u as getCellRowspan, i as getColumnsWidth, d as getRowKey, s as processRowspan, g as resolveTableThemeVars, l as shouldRenderCell, a as sortData, o as splitFixedColumns, h as useColumnResize, m as useTableVirtual };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-B0WELhG2.js";
|
|
3
3
|
export { e as calculateFixedOffset, s as expandLeafColumns, l as findFlatColumnIndex, i as flattenColumns, u as getCellRowspan, t as getColumnsWidth, a as getFixedStickyStyle, d as getRowKey, o as processRowspan, c as shouldRenderCell, n as sortData, r as splitFixedColumns };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-DDHx0R18.js";
|
|
2
2
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import { t as r } from "../vendors/useLocale-
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "../vendors/useFloatingPortal-
|
|
3
|
+
import { t as r } from "../vendors/useLocale-D31qCCff.js";
|
|
4
|
+
import { r as i } from "../vendors/animations-Dn_5xJ7B.js";
|
|
5
|
+
import { t as a } from "../vendors/useFloatingPortal-VpzL-EPh.js";
|
|
6
6
|
import { isString as o } from "lodash-es";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { createContext as l, useCallback as u, useContext as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../Icon/Icon-DDHx0R18.js";
|
|
3
|
-
import "../vendors/LocaleContext-
|
|
3
|
+
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
-
import "../vendors/useLocale-
|
|
6
|
-
import "../vendors/useFloatingPortal-
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
5
|
+
import "../vendors/useLocale-D31qCCff.js";
|
|
6
|
+
import "../vendors/useFloatingPortal-VpzL-EPh.js";
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-DezpnxP1.js";
|
|
8
8
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
2
|
+
import { t as n } from "../vendors/animations-Dn_5xJ7B.js";
|
|
3
|
+
import { t as r } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
4
|
+
import { n as i } from "../vendors/mergeRefs-TiJ0xjUN.js";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as c, cloneElement as l, createContext as u, isValidElement as d, useCallback as f, useEffect as ee, useMemo as p, useRef as te, useState as ne } from "react";
|
|
7
|
+
import { useControllableValue as re } from "ahooks";
|
|
8
|
+
import { AnimatePresence as m, motion as ie } from "motion/react";
|
|
9
|
+
import { FloatingArrow as ae, FloatingPortal as oe, arrow as h, autoUpdate as g, flip as _, offset as v, safePolygon as y, shift as b, size as x, useClick as se, useDismiss as ce, useFloating as le, useHover as ue, useInteractions as de, useRole as fe } from "@floating-ui/react";
|
|
10
|
+
//#region src/components/Tooltip/context/TooltipFloatingContext.ts
|
|
11
|
+
var S = u(null), C = {
|
|
12
|
+
"bsy-tooltip__trigger": "_bsy-tooltip__trigger_g8t54_1",
|
|
13
|
+
"bsy-tooltip__content": "_bsy-tooltip__content_g8t54_5"
|
|
14
|
+
}, pe = "M0 14C0 14 1.44834 13.9879 4.14272 10.7864C5.24990 9.46652 6.28557 8.66663 7.0002 8.66663C7.71415 8.66663 8.73670 9.55158 9.85697 10.8831C12.5664 14.1005 14 14 14 14H0Z", me = "#525867", w = (e, t) => e ? t ? (n) => {
|
|
15
|
+
e(n), t(n);
|
|
16
|
+
} : e : t, T = (e) => {
|
|
17
|
+
if (!(e === "auto" || e === void 0)) return typeof e == "number" ? `${e}px` : e;
|
|
18
|
+
}, E = (e) => e.type === c || (e.type?.toString().includes("Fragment") ?? !1), D = ({ children: c, content: u, trigger: D = "hover", style: O, zIndex: k, showArrow: A = !0, placement: j = "bottom", onClose: M, hoverDelay: N = 500, getPopupContainer: P, moveToFloatingKeepOpen: F = !1, widthMode: I = "content", width: L, minWidth: R = 60, maxWidth: z = 340, offset: B = 10, fallbackPlacements: V, virtualReference: H, flipBoundary: U, animated: he = !0, ...ge }) => {
|
|
19
|
+
let W = te(null), [_e, ve] = ne(null), G = e(k), [K, q] = re(ge, {
|
|
20
|
+
valuePropName: "visible",
|
|
21
|
+
trigger: "onVisibleChange",
|
|
22
|
+
defaultValue: !1
|
|
23
|
+
}), ye = f((e) => {
|
|
24
|
+
!e && K && M && M(), q(e);
|
|
25
|
+
}, [
|
|
26
|
+
K,
|
|
27
|
+
M,
|
|
28
|
+
q
|
|
29
|
+
]), be = p(() => {
|
|
30
|
+
let e = V ? { fallbackPlacements: V } : {};
|
|
31
|
+
U && (e.boundary = U);
|
|
32
|
+
let t = [
|
|
33
|
+
v(B),
|
|
34
|
+
_(e),
|
|
35
|
+
b({ padding: 8 })
|
|
36
|
+
];
|
|
37
|
+
return A && t.push(h({ element: W })), I === "reference" && t.push(x({ apply({ rects: e, elements: t }) {
|
|
38
|
+
t.floating.style.width = `${e.reference.width}px`;
|
|
39
|
+
let n = T(R);
|
|
40
|
+
n && (t.floating.style.minWidth = n);
|
|
41
|
+
let r = T(z);
|
|
42
|
+
r && (t.floating.style.maxWidth = r);
|
|
43
|
+
} })), t;
|
|
44
|
+
}, [
|
|
45
|
+
I,
|
|
46
|
+
R,
|
|
47
|
+
z,
|
|
48
|
+
B,
|
|
49
|
+
V,
|
|
50
|
+
U,
|
|
51
|
+
A
|
|
52
|
+
]), { refs: J, floatingStyles: Y, context: X } = le({
|
|
53
|
+
open: K,
|
|
54
|
+
onOpenChange: ye,
|
|
55
|
+
whileElementsMounted: K ? (e, t, n) => g(e, t, n, {
|
|
56
|
+
animationFrame: !1,
|
|
57
|
+
ancestorScroll: !0,
|
|
58
|
+
ancestorResize: !0,
|
|
59
|
+
elementResize: !0,
|
|
60
|
+
layoutShift: !1
|
|
61
|
+
}) : void 0,
|
|
62
|
+
placement: j,
|
|
63
|
+
middleware: be,
|
|
64
|
+
transform: !1
|
|
65
|
+
}), { portalRoot: xe, portalMountKey: Se, handleExitComplete: Ce } = r(K, P), we = p(() => {
|
|
66
|
+
let e = {
|
|
67
|
+
...Y,
|
|
68
|
+
...O,
|
|
69
|
+
"--bsy-tooltip-z-index": G
|
|
70
|
+
};
|
|
71
|
+
switch (I) {
|
|
72
|
+
case "content":
|
|
73
|
+
e.width = "auto";
|
|
74
|
+
break;
|
|
75
|
+
case "manual":
|
|
76
|
+
L !== void 0 && (e.width = T(L));
|
|
77
|
+
break;
|
|
78
|
+
case "reference": break;
|
|
79
|
+
default: e.width = "max-content";
|
|
80
|
+
}
|
|
81
|
+
return I !== "reference" && (R !== void 0 && (e.minWidth = T(R)), z !== void 0 && (e.maxWidth = T(z))), e;
|
|
82
|
+
}, [
|
|
83
|
+
Y,
|
|
84
|
+
O,
|
|
85
|
+
G,
|
|
86
|
+
I,
|
|
87
|
+
L,
|
|
88
|
+
R,
|
|
89
|
+
z
|
|
90
|
+
]);
|
|
91
|
+
ee(() => {
|
|
92
|
+
H && J.setPositionReference(H);
|
|
93
|
+
}, [H, J]);
|
|
94
|
+
let { getReferenceProps: Te, getFloatingProps: Ee } = de([
|
|
95
|
+
ue(X, {
|
|
96
|
+
enabled: D === "hover",
|
|
97
|
+
delay: { open: N },
|
|
98
|
+
handleClose: F ? y() : void 0
|
|
99
|
+
}),
|
|
100
|
+
se(X, { enabled: D === "click" }),
|
|
101
|
+
ce(X),
|
|
102
|
+
fe(X, { role: "tooltip" })
|
|
103
|
+
]), Z = Te(), Q = {
|
|
104
|
+
...Z,
|
|
105
|
+
onClick: (e) => {
|
|
106
|
+
D === "click" && e.stopPropagation(), Z.onClick?.(e);
|
|
107
|
+
},
|
|
108
|
+
onMouseEnter: (e) => {
|
|
109
|
+
D === "hover" && e.stopPropagation(), Z.onMouseEnter?.(e);
|
|
110
|
+
},
|
|
111
|
+
onMouseLeave: (e) => {
|
|
112
|
+
D === "hover" && e.stopPropagation(), Z.onMouseLeave?.(e);
|
|
113
|
+
},
|
|
114
|
+
onMouseMove: (e) => {
|
|
115
|
+
Z.onMouseMove?.(e);
|
|
116
|
+
}
|
|
117
|
+
}, De = typeof O?.background == "string" ? O.background : me, Oe = i(J.setFloating, ve), $ = /* @__PURE__ */ o(oe, {
|
|
118
|
+
root: xe,
|
|
119
|
+
children: /* @__PURE__ */ o(t, {
|
|
120
|
+
zIndex: G,
|
|
121
|
+
children: /* @__PURE__ */ o(m, {
|
|
122
|
+
onExitComplete: Ce,
|
|
123
|
+
children: K ? /* @__PURE__ */ s(ie.div, {
|
|
124
|
+
ref: Oe,
|
|
125
|
+
style: we,
|
|
126
|
+
...Ee(),
|
|
127
|
+
className: C["bsy-tooltip__content"],
|
|
128
|
+
onClick: (e) => e.stopPropagation(),
|
|
129
|
+
...he ? n : {},
|
|
130
|
+
children: [A ? /* @__PURE__ */ o(ae, {
|
|
131
|
+
ref: W,
|
|
132
|
+
context: X,
|
|
133
|
+
width: 14,
|
|
134
|
+
height: 14,
|
|
135
|
+
tipRadius: 2,
|
|
136
|
+
fill: De,
|
|
137
|
+
d: pe
|
|
138
|
+
}) : null, /* @__PURE__ */ o(S.Provider, {
|
|
139
|
+
value: _e,
|
|
140
|
+
children: u
|
|
141
|
+
})]
|
|
142
|
+
}, "bsy-tooltip-content") : null
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
}, Se);
|
|
146
|
+
if (d(c) && !E(c)) {
|
|
147
|
+
let e = c.props, t = c.ref;
|
|
148
|
+
return /* @__PURE__ */ s(a, { children: [l(c, {
|
|
149
|
+
...e,
|
|
150
|
+
...Q,
|
|
151
|
+
ref: t ? i(J.setReference, t) : J.setReference,
|
|
152
|
+
style: e.style,
|
|
153
|
+
onClick: w(e.onClick, Q.onClick),
|
|
154
|
+
onMouseEnter: w(e.onMouseEnter, Q.onMouseEnter),
|
|
155
|
+
onMouseLeave: w(e.onMouseLeave, Q.onMouseLeave),
|
|
156
|
+
onMouseMove: w(e.onMouseMove, Q.onMouseMove)
|
|
157
|
+
}), $] });
|
|
158
|
+
}
|
|
159
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("div", {
|
|
160
|
+
className: C["bsy-tooltip"],
|
|
161
|
+
children: /* @__PURE__ */ o("div", {
|
|
162
|
+
ref: J.setReference,
|
|
163
|
+
...Q,
|
|
164
|
+
className: C["bsy-tooltip__trigger"],
|
|
165
|
+
children: c
|
|
166
|
+
})
|
|
167
|
+
}), $] });
|
|
168
|
+
}, O = ({ content: e, children: t, ...n }) => e ? /* @__PURE__ */ o(D, {
|
|
169
|
+
content: e,
|
|
170
|
+
...n,
|
|
171
|
+
children: t
|
|
172
|
+
}) : /* @__PURE__ */ o(a, { children: t });
|
|
173
|
+
O.displayName = "BsyTooltip";
|
|
174
|
+
//#endregion
|
|
175
|
+
export { S as n, O as t };
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import
|
|
3
|
+
import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
4
|
+
import { n as e, t } from "./Tooltip-nJU13gX4.js";
|
|
4
5
|
export { e as TooltipFloatingContext, t as default };
|
package/dist/Tree/index.js
CHANGED
package/dist/Tree/utils/index.js
CHANGED
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface ToolbarButtonProps {
|
|
3
|
-
/**
|
|
4
|
-
* 图标名称
|
|
5
|
-
*/
|
|
6
3
|
icon: string | React.ReactNode;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
tooltip: string;
|
|
11
|
-
/**
|
|
12
|
-
* 点击事件
|
|
13
|
-
*/
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
showDisabledTooltip?: boolean;
|
|
14
6
|
onClick?: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* 禁用
|
|
17
|
-
*/
|
|
18
7
|
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 是否激活
|
|
21
|
-
*/
|
|
22
8
|
active?: boolean;
|
|
23
9
|
/**
|
|
24
10
|
* 强调色(如「更多」展开);只改图标色,不加灰底
|
|
25
11
|
*/
|
|
26
12
|
highlight?: boolean;
|
|
27
13
|
/**
|
|
28
|
-
*
|
|
14
|
+
* 未传时使用 toolbar theme.iconSize(跟 size 档位,default 为 16)
|
|
29
15
|
*/
|
|
30
16
|
size?: number;
|
|
31
17
|
}
|
|
32
|
-
declare const BaseButton: React.
|
|
18
|
+
declare const BaseButton: ({ icon, tooltip, onClick, disabled, showDisabledTooltip, active, highlight, size, }: ToolbarButtonProps) => React.JSX.Element;
|
|
33
19
|
export default BaseButton;
|
|
@@ -27,6 +27,8 @@ declare const builtinButtons: {
|
|
|
27
27
|
ai: import('react').FC<import('./registry').RegisteredToolbarButtonProps>;
|
|
28
28
|
};
|
|
29
29
|
export type BuiltinButtonName = keyof typeof builtinButtons;
|
|
30
|
+
export type TextToolbarButtonName = 'heading' | 'ai';
|
|
31
|
+
export type IconToolbarButtonName = Exclude<BuiltinButtonName, TextToolbarButtonName>;
|
|
30
32
|
export type ToolbarButtonName = BuiltinButtonName | (string & {});
|
|
31
33
|
export { registerToolbarButton, unregisterToolbarButton, getToolbarButton, listRegisteredToolbarButtons, };
|
|
32
34
|
export type { RegisteredToolbarButtonProps } from './registry';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
export type RegisteredToolbarButtonProps = {
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
showDisabledTooltip?: boolean;
|
|
4
6
|
};
|
|
5
7
|
export type ToolbarButtonComponent = ComponentType<RegisteredToolbarButtonProps & Record<string, any>>;
|
|
6
8
|
export declare const registerToolbarButton: (name: string, component: ToolbarButtonComponent) => void;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { ToolbarButtonName } from './Buttons';
|
|
1
|
+
import { RegisteredToolbarButtonProps, ToolbarButtonName } from './Buttons';
|
|
2
|
+
export type ToolbarConfigButton =
|
|
3
|
+
| ToolbarButtonName
|
|
4
|
+
| {
|
|
5
|
+
name: ToolbarButtonName;
|
|
6
|
+
props?: RegisteredToolbarButtonProps & Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
|
|
2
9
|
export interface ToolbarButtonProps {
|
|
3
10
|
/**
|
|
4
11
|
* @description 根据外部配置传入你想要渲染的 toolbar 按钮
|
|
@@ -13,16 +20,7 @@ export interface ToolbarButtonProps {
|
|
|
13
20
|
* @description 按钮组名称
|
|
14
21
|
* @description 自定义按钮名称需要通过 registerToolbarButton 先注册
|
|
15
22
|
*/
|
|
16
|
-
buttons: Array<
|
|
17
|
-
| ToolbarButtonName
|
|
18
|
-
| {
|
|
19
|
-
name: ToolbarButtonName;
|
|
20
|
-
/**
|
|
21
|
-
* 传给按钮的 props。内置按钮目前只认 `disabled`,与内部禁用或运算。
|
|
22
|
-
*/
|
|
23
|
-
props?: { disabled?: boolean } & Record<string, any>;
|
|
24
|
-
}
|
|
25
|
-
>;
|
|
23
|
+
buttons: Array<ToolbarConfigButton>;
|
|
26
24
|
}>;
|
|
27
25
|
/**
|
|
28
26
|
* @description 自定义样式
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { Editor as default } from './Editor';
|
|
2
2
|
export type { EditorUpload, EditorUploadContext, EditorUploadResult, EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorProps, EditorTheme, EditorContainerTheme, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarSize, EditorToolbarTheme, } from './interface';
|
|
3
3
|
export { registerToolbarButton, unregisterToolbarButton, listRegisteredToolbarButtons, } from './ToolbarPlugin/Buttons';
|
|
4
|
-
export type { ToolbarButtonName, RegisteredToolbarButtonProps } from './ToolbarPlugin/Buttons';
|
|
4
|
+
export type { IconToolbarButtonName, TextToolbarButtonName, ToolbarButtonName, RegisteredToolbarButtonProps, } from './ToolbarPlugin/Buttons';
|
|
5
|
+
export type { ToolbarConfigButton } from './ToolbarPlugin/interface.d';
|
|
5
6
|
export { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
6
7
|
export { $getRoot } from 'lexical';
|
|
7
8
|
export { default as BaseButton } from './ToolbarPlugin/BaseButton/BaseButton';
|
|
@@ -194,7 +194,7 @@ export type EditorUploadContext = {
|
|
|
194
194
|
export type EditorUploadResult = {
|
|
195
195
|
url: string;
|
|
196
196
|
/** 厂商原始文件对象(如接口 `data.file`),原样回传到 onChange.attachment */
|
|
197
|
-
attachment?:
|
|
197
|
+
attachment?: { _id: string };
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
export type EditorUpload = {
|
|
@@ -5,6 +5,7 @@ export interface ImagePayload {
|
|
|
5
5
|
altText?: string;
|
|
6
6
|
width?: number;
|
|
7
7
|
height?: number;
|
|
8
|
+
dataId?: string;
|
|
8
9
|
key?: NodeKey;
|
|
9
10
|
}
|
|
10
11
|
export type SerializedImageNode = Spread<{
|
|
@@ -12,15 +13,17 @@ export type SerializedImageNode = Spread<{
|
|
|
12
13
|
altText?: string;
|
|
13
14
|
width?: number;
|
|
14
15
|
height?: number;
|
|
16
|
+
dataId?: string;
|
|
15
17
|
}, SerializedLexicalNode>;
|
|
16
18
|
export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
17
19
|
__src: string;
|
|
18
20
|
__altText: string;
|
|
19
21
|
__width?: number;
|
|
20
22
|
__height?: number;
|
|
23
|
+
__dataId?: string;
|
|
21
24
|
static getType(): string;
|
|
22
25
|
static clone(node: ImageNode): ImageNode;
|
|
23
|
-
constructor(src: string, altText?: string, width?: number, height?: number, key?: NodeKey);
|
|
26
|
+
constructor(src: string, altText?: string, width?: number, height?: number, key?: NodeKey, dataId?: string);
|
|
24
27
|
createDOM(): HTMLElement;
|
|
25
28
|
updateDOM(): false;
|
|
26
29
|
exportDOM(): {
|
|
@@ -30,6 +33,7 @@ export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
|
30
33
|
getAltText(): string;
|
|
31
34
|
getWidth(): number | undefined;
|
|
32
35
|
getHeight(): number | undefined;
|
|
36
|
+
getDataId(): string | undefined;
|
|
33
37
|
setSrc(src: string): void;
|
|
34
38
|
setAltText(altText: string): void;
|
|
35
39
|
setWidthAndHeight(width: number, height: number): void;
|
|
@@ -44,7 +48,7 @@ export declare class ImageNode extends DecoratorNode<ReactNode> {
|
|
|
44
48
|
exportJSON(): SerializedImageNode;
|
|
45
49
|
isInline(): boolean;
|
|
46
50
|
}
|
|
47
|
-
export declare function $createImageNode({ src, altText, width, height, key }: ImagePayload): ImageNode;
|
|
51
|
+
export declare function $createImageNode({ src, altText, width, height, dataId, key, }: ImagePayload): ImageNode;
|
|
48
52
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
49
53
|
declare function convertImageElement(domNode: Node): null | DOMConversionOutput;
|
|
50
54
|
export {};
|
|
@@ -175,6 +175,13 @@ export interface SelectProps<ValueType = any, OptionType extends DefaultOptionTy
|
|
|
175
175
|
*/
|
|
176
176
|
otherInputPosition?: 'bottom' | 'inline';
|
|
177
177
|
/**
|
|
178
|
+
* @description 下拉浮层宽度。`true` 时与选择器同宽且不被内容撑开;传数字时浮层就是该宽度(可小于选择器);`false` 时不锁宽、随内容
|
|
179
|
+
* @default true
|
|
180
|
+
* @default true
|
|
181
|
+
*/
|
|
182
|
+
popupMatchSelectWidth?: boolean | number;
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated 请使用 `popupMatchSelectWidth`。传 `'240px'` 时等同于 `popupMatchSelectWidth={240}`
|
|
178
185
|
* @description 自定义浮层的最小宽度
|
|
179
186
|
*/
|
|
180
187
|
popupMinWidth?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { Boundary, Placement
|
|
2
|
+
import { Boundary, Placement } from '@floating-ui/react';
|
|
3
3
|
export type TooltipTrigger = 'hover' | 'click';
|
|
4
4
|
export type TooltipWidthMode = 'content' | 'manual' | 'reference';
|
|
5
5
|
export type VirtualReference = {
|
|
@@ -29,7 +29,6 @@ export type TooltipProps = {
|
|
|
29
29
|
virtualReference?: VirtualReference | null;
|
|
30
30
|
flipBoundary?: Boundary;
|
|
31
31
|
animated?: boolean;
|
|
32
|
-
animationConfig?: UseTransitionStylesProps;
|
|
33
32
|
visible?: boolean;
|
|
34
33
|
onVisibleChange?: (visible: boolean) => void;
|
|
35
34
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* 避免关闭瞬间切换 FloatingPortal root/key 导致 AnimatePresence exit 被打断,
|
|
4
4
|
* 也避免异步 latch 造成首帧挂到错误容器。
|
|
5
5
|
*/
|
|
6
|
-
declare const useLatchedPopupPortalRoot: (isOpen: boolean, getPopupContainer?: () => HTMLElement) => {
|
|
6
|
+
declare const useLatchedPopupPortalRoot: (isOpen: boolean, getPopupContainer?: () => HTMLElement | null | undefined) => {
|
|
7
7
|
portalRoot: HTMLElement | undefined;
|
|
8
8
|
portalMountKey: string;
|
|
9
9
|
handleExitComplete: () => void;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-DuQW7jtS.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-DDHx0R18.js";
|
|
4
|
-
import "./vendors/LocaleContext-
|
|
5
|
-
import { r as t, t as n } from "./vendors/ConfigProvider-
|
|
4
|
+
import "./vendors/LocaleContext-DXQoOKM2.js";
|
|
5
|
+
import { r as t, t as n } from "./vendors/ConfigProvider-gZYvcwIQ.js";
|
|
6
6
|
import { a as r, i, n as a, t as o } from "./Overlay/OverlayContext-CVSFoyqN.js";
|
|
7
7
|
import "./Amap/AmapContext-CJBe6lld.js";
|
|
8
|
-
import { t as s } from "./Amap/AmapProvider-
|
|
8
|
+
import { t as s } from "./Amap/AmapProvider-B-R2DrkJ.js";
|
|
9
9
|
import { t as c } from "./Amap/Amap-BLSziesG.js";
|
|
10
10
|
import { n as l, t as u } from "./Amap/hooks-BTcFpdd0.js";
|
|
11
11
|
import { t as d } from "./Amap/AmapCircle-2qupysHe.js";
|
|
@@ -15,43 +15,43 @@ import { t as p } from "./Amap/AmapMarkerCluster-CvEQa3o9.js";
|
|
|
15
15
|
import "./Overlay/index.js";
|
|
16
16
|
import { t as m } from "./Card/Card-DDbQQsCc.js";
|
|
17
17
|
import { t as h } from "./Modal/Modal-BnF6CUrn.js";
|
|
18
|
-
import { t as g } from "./ColorPicker/ColorPicker-
|
|
18
|
+
import { t as g } from "./ColorPicker/ColorPicker-BGduOQbR.js";
|
|
19
19
|
import "./vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
20
|
-
import "./vendors/useLocale-
|
|
20
|
+
import "./vendors/useLocale-D31qCCff.js";
|
|
21
21
|
import "./vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
22
22
|
import { t as _ } from "./Segmented/Segmented-BCQRrc65.js";
|
|
23
|
-
import { n as v, t as y } from "./Tooltip/Tooltip-
|
|
24
|
-
import { t as b } from "./Select/Select-
|
|
25
|
-
import "./Select/SelectInputSearch-
|
|
23
|
+
import { n as v, t as y } from "./Tooltip/Tooltip-nJU13gX4.js";
|
|
24
|
+
import { t as b } from "./Select/Select-DWXMgoud.js";
|
|
25
|
+
import "./Select/SelectInputSearch-BUWOQCgT.js";
|
|
26
26
|
import { t as x } from "./vendors/Tree-B7XeC9Mi.js";
|
|
27
27
|
import "./CheckBox/CheckBox-DFfNiPGM.js";
|
|
28
28
|
import { t as S } from "./CheckBox/CheckBox-CwfrMEFb.js";
|
|
29
29
|
import { t as C } from "./Radio/Radio-CX9cUqb7.js";
|
|
30
30
|
import { t as w } from "./NotFoundContent/NotFoundContent-BLmzWNBi.js";
|
|
31
31
|
import { t as T } from "./ScrollBar/ScrollBar-N2pOLv-8.js";
|
|
32
|
-
import "./vendors/useFloatingPortal-
|
|
32
|
+
import "./vendors/useFloatingPortal-VpzL-EPh.js";
|
|
33
33
|
import "./Tree/index.js";
|
|
34
|
-
import { n as E, t as D } from "./Tabs/Tabs-
|
|
35
|
-
import { t as O } from "./DropDown/DropDown-
|
|
34
|
+
import { n as E, t as D } from "./Tabs/Tabs-DezpnxP1.js";
|
|
35
|
+
import { t as O } from "./DropDown/DropDown-CtiUrlqk.js";
|
|
36
36
|
import "./DropDown/style-LLDVPpPa.js";
|
|
37
|
-
import { t as k } from "./Loading/Loading-
|
|
37
|
+
import { t as k } from "./Loading/Loading-D1QxBrOq.js";
|
|
38
38
|
import "./NotFoundContent/index.js";
|
|
39
|
-
import { t as A } from "./InputTag/InputTag-
|
|
39
|
+
import { t as A } from "./InputTag/InputTag-BcywA_86.js";
|
|
40
40
|
import "./Calendar/context-4tCN5X33.js";
|
|
41
|
-
import { t as j } from "./Calendar/Calendar-
|
|
42
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
41
|
+
import { t as j } from "./Calendar/Calendar-DbQvgTzh.js";
|
|
42
|
+
import { t as M } from "./DatePicker/DatePicker-CvOPih1m.js";
|
|
43
43
|
import "./DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
44
44
|
import "./DatePicker/pickerLocale-BRnNjLcv.js";
|
|
45
45
|
import "./DatePicker/style-UKXn1N_p.js";
|
|
46
46
|
import "./Calendar/layout-Dz-grtu9.js";
|
|
47
47
|
import "./Calendar/TimeAxis-C9e2BdYs.js";
|
|
48
|
-
import "./Calendar/TimeGrid-
|
|
49
|
-
import "./Calendar/CurrentTimeIndicator-
|
|
50
|
-
import "./Calendar/EventCard-
|
|
51
|
-
import "./Calendar/AllDaySection-
|
|
48
|
+
import "./Calendar/TimeGrid-Qjvt-eum.js";
|
|
49
|
+
import "./Calendar/CurrentTimeIndicator-BZLQps2m.js";
|
|
50
|
+
import "./Calendar/EventCard-DkJoyxI3.js";
|
|
51
|
+
import "./Calendar/AllDaySection-b3li9ovR.js";
|
|
52
52
|
import "./Calendar/theme-i60ueO92.js";
|
|
53
53
|
import { a as N, c as P, d as F, f as I, n as L, o as R, r as z, t as B, u as V } from "./Table/processRowspan-B0WELhG2.js";
|
|
54
|
-
import { t as H } from "./Table/Table-
|
|
54
|
+
import { t as H } from "./Table/Table-BjLvTorz.js";
|
|
55
55
|
import { n as U, t as W } from "./Table/hooks-BceUZQQm.js";
|
|
56
56
|
import { t as G } from "./Table/style-C4wp0IOM.js";
|
|
57
57
|
import "overlayscrollbars/overlayscrollbars.css";
|
|
@@ -89,7 +89,8 @@ declare const _default: {
|
|
|
89
89
|
"pleaseEnterImageUrl": "Please enter image URL",
|
|
90
90
|
"pleaseEnterValidImageUrl": "Please enter a valid image URL",
|
|
91
91
|
"linkAddressEmpty": "Link address cannot be empty",
|
|
92
|
-
"
|
|
92
|
+
"expand": "Expand",
|
|
93
|
+
"collapse": "Collapse",
|
|
93
94
|
"aiTypeset": "Smart typeset",
|
|
94
95
|
"aiPolish": "Smart polish",
|
|
95
96
|
"aiPreview": "Preview",
|
|
@@ -89,7 +89,8 @@ declare const _default: {
|
|
|
89
89
|
"pleaseEnterImageUrl": "请输入图片URL",
|
|
90
90
|
"pleaseEnterValidImageUrl": "请输入有效的图片URL",
|
|
91
91
|
"linkAddressEmpty": "链接地址不能为空",
|
|
92
|
-
"
|
|
92
|
+
"expand": "展开",
|
|
93
|
+
"collapse": "收起",
|
|
93
94
|
"aiTypeset": "智能排版",
|
|
94
95
|
"aiPolish": "智能润色",
|
|
95
96
|
"aiPreview": "效果预览",
|