@baishuyun/ui-base 6.8.2 → 6.9.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 +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-DnQrN8KB.js → Calendar-MghsGFZ0.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Calendar/subcomponents/AllDaySection/index.js +1 -1
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
- package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
- 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-CL57cSDG.js → ColorPicker-t1uBeATW.js} +14 -12
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-C0XbZmrZ.js → DatePicker-uizefM92.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-BEn16cat.js → DatePickerPanel-bbGVwlo7.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/index.js +1 -1
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-BivKInBV.js → Buttons-BhStZyIa.js} +2 -2
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +3 -3
- package/dist/Editor/constants/index.js +1 -1
- package/dist/Editor/index.js +215 -187
- package/dist/Gantt/GanttChart/index.js +1 -1
- package/dist/Gantt/GanttTable/index.js +1 -1
- package/dist/Gantt/GanttToolBar/index.js +1 -1
- package/dist/Gantt/index.js +1 -1
- 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/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/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/index.js +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +1 -1
- package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +2 -3
- package/dist/components/Editor/context/EditorContainerContext.d.ts +1 -0
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +26 -8
- package/dist/components/Editor/utils/resolveFloatingToolbarStyle.d.ts +3 -0
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/vendors/{version-4HBYLKDL.js → version-D76DufO-.js} +1 -1
- package/package.json +1 -1
package/dist/Gantt/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-D76DufO-.js";
|
|
2
2
|
import { a as e, c as t, d as n, i as r, l as i, o as a, p as o, s, u as c } from "../constants-LIz5jwed.js";
|
|
3
3
|
import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-jG0Wy2PC.js";
|
|
4
4
|
import { n as h, r as g, t as _ } from "../highlightTarget-BpkYTonb.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-D76DufO-.js";
|
|
2
2
|
import { i as e, n as t, r as n, t as r } from "../../theme-DLNvgM9X.js";
|
|
3
3
|
export { t as mapGanttThemeToCssVars, e as resolveGanttTheme, n as resolveGanttThemeVars, r as resolveTableThemeFromGantt };
|
package/dist/Icon/index.js
CHANGED
package/dist/InputTag/index.js
CHANGED
package/dist/Loading/index.js
CHANGED
package/dist/Modal/index.js
CHANGED
package/dist/Radio/index.js
CHANGED
package/dist/ScrollBar/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED
package/dist/Select/index.js
CHANGED
package/dist/Table/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-D76DufO-.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 };
|
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
package/dist/Tree/utils/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EditorToolbarTheme } from '../interface';
|
|
2
|
-
|
|
3
|
-
type ToolbarProps = ToolbarButtonProps & {
|
|
1
|
+
import { EditorToolbarProps, EditorToolbarTheme } from '../interface';
|
|
2
|
+
type ToolbarProps = EditorToolbarProps & {
|
|
4
3
|
theme?: EditorToolbarTheme;
|
|
5
4
|
};
|
|
6
5
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
interface EditorContainerContextType {
|
|
3
3
|
containerRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
toolbarRef: RefObject<HTMLDivElement>;
|
|
4
5
|
getPopupContainer: () => HTMLElement;
|
|
5
6
|
}
|
|
6
7
|
declare const EditorContainerContext: import('react').Context<EditorContainerContextType | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Editor as default } from './Editor';
|
|
2
|
-
export type { EditorProps, EditorTheme, EditorToolbarTheme } from './interface';
|
|
2
|
+
export type { EditorProps, EditorTheme, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarTheme, } from './interface';
|
|
3
3
|
export { registerToolbarButton, unregisterToolbarButton, listRegisteredToolbarButtons, } from './ToolbarPlugin/Buttons';
|
|
4
4
|
export type { ToolbarButtonName } from './ToolbarPlugin/Buttons';
|
|
5
5
|
export { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
@@ -43,6 +43,31 @@ export interface EditorTheme {
|
|
|
43
43
|
toolbar?: EditorToolbarTheme;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export type EditorToolbarMode = 'embedded' | 'floating';
|
|
47
|
+
|
|
48
|
+
export type EditorToolbarPlacement = 'top' | 'bottom';
|
|
49
|
+
|
|
50
|
+
export type EditorToolbarOffset = number | { x?: number; y?: number };
|
|
51
|
+
|
|
52
|
+
export interface EditorToolbarFloating {
|
|
53
|
+
/** 相对编辑器的落点;默认 `top`(贴上沿) */
|
|
54
|
+
placement?: EditorToolbarPlacement;
|
|
55
|
+
/**
|
|
56
|
+
* 相对 placement 的偏移。
|
|
57
|
+
* number 只表示主轴间距(上/下);`{ x, y }` 为额外平移。
|
|
58
|
+
*/
|
|
59
|
+
offset?: EditorToolbarOffset;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface EditorToolbarProps {
|
|
63
|
+
config?: ToolbarButtonProps['config'];
|
|
64
|
+
/** 覆盖工具栏视觉样式;floating 下 `left`/`top` 等定位字段会被忽略,`width` 可覆盖默认宽度(自定义后靠左) */
|
|
65
|
+
style?: React.CSSProperties;
|
|
66
|
+
/** @default 'embedded' */
|
|
67
|
+
mode?: EditorToolbarMode;
|
|
68
|
+
floating?: EditorToolbarFloating;
|
|
69
|
+
}
|
|
70
|
+
|
|
46
71
|
export type EditorProps = {
|
|
47
72
|
/**
|
|
48
73
|
* 编辑器容器高度
|
|
@@ -61,14 +86,7 @@ export type EditorProps = {
|
|
|
61
86
|
*/
|
|
62
87
|
theme?: EditorTheme;
|
|
63
88
|
|
|
64
|
-
toolbar?:
|
|
65
|
-
/**
|
|
66
|
-
* toolbar 配置
|
|
67
|
-
*/
|
|
68
|
-
config?: ToolbarButtonProps['config'];
|
|
69
|
-
|
|
70
|
-
style?: React.CSSProperties;
|
|
71
|
-
};
|
|
89
|
+
toolbar?: EditorToolbarProps;
|
|
72
90
|
|
|
73
91
|
/**
|
|
74
92
|
* 编辑器受控内容
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-D76DufO-.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-BBDcb-yw.js";
|
|
4
4
|
import "./vendors/LocaleContext-Dcw6C1LX.js";
|
|
@@ -13,7 +13,7 @@ import { t as c } from "./Amap/AmapMarker-CdoPWdff.js";
|
|
|
13
13
|
import { t as l } from "./Amap/AmapMarkerCluster-CSIxiVC5.js";
|
|
14
14
|
import { t as u } from "./Card/Card-CtKLNh3n.js";
|
|
15
15
|
import { t as d } from "./Modal/Modal-LiztSF7x.js";
|
|
16
|
-
import { t as f } from "./ColorPicker/ColorPicker-
|
|
16
|
+
import { t as f } from "./ColorPicker/ColorPicker-t1uBeATW.js";
|
|
17
17
|
import "./vendors/useFloatingOverlay-BApqkHSu.js";
|
|
18
18
|
import "./vendors/useLocale-BKZX2_zw.js";
|
|
19
19
|
import "./vendors/color-D6XBXROa.js";
|
|
@@ -37,8 +37,8 @@ import { t as T } from "./Loading/Loading-DiywS7ex.js";
|
|
|
37
37
|
import "./NotFoundContent/index.js";
|
|
38
38
|
import { t as E } from "./InputTag/InputTag-hzCCJQ1z.js";
|
|
39
39
|
import "./Calendar/context-4tCN5X33.js";
|
|
40
|
-
import { t as D } from "./Calendar/Calendar-
|
|
41
|
-
import { t as O } from "./DatePicker/DatePicker-
|
|
40
|
+
import { t as D } from "./Calendar/Calendar-MghsGFZ0.js";
|
|
41
|
+
import { t as O } from "./DatePicker/DatePicker-uizefM92.js";
|
|
42
42
|
import "./DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
43
43
|
import "./DatePicker/pickerLocale-BRnNjLcv.js";
|
|
44
44
|
import "./DatePicker/style-CNtPPsZp.js";
|