@baishuyun/ui-base 6.15.0 → 6.16.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.
Files changed (113) hide show
  1. package/dist/Amap/AmapCircle/index.js +1 -1
  2. package/dist/Amap/AmapMarker/index.js +1 -1
  3. package/dist/Amap/AmapMarkerCluster/index.js +1 -1
  4. package/dist/Amap/AmapProvider/index.js +1 -1
  5. package/dist/Amap/hooks/index.js +1 -1
  6. package/dist/Amap/index.js +1 -1
  7. package/dist/Calendar/{AllDaySection-b3li9ovR.js → AllDaySection-pO7suGJM.js} +4 -4
  8. package/dist/Calendar/{Calendar-DbQvgTzh.js → Calendar-DUD4iffO.js} +10 -10
  9. package/dist/Calendar/{EventCard-DkJoyxI3.js → EventCard-DKEZQRTp.js} +2 -2
  10. package/dist/Calendar/{TimeGrid-Qjvt-eum.js → TimeGrid-BV8x9VnF.js} +1 -1
  11. package/dist/Calendar/context/index.js +2 -2
  12. package/dist/Calendar/index.js +15 -15
  13. package/dist/Calendar/subcomponents/AllDaySection/index.js +7 -7
  14. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
  15. package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
  16. package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -4
  17. package/dist/Calendar/subcomponents/TimeGrid/index.js +3 -3
  18. package/dist/Calendar/{theme-i60ueO92.js → theme-Dc8hjcdo.js} +1 -1
  19. package/dist/Calendar/utils/index.js +4 -4
  20. package/dist/Calendar/utils/layout/index.js +3 -3
  21. package/dist/Calendar/utils/theme/index.js +2 -2
  22. package/dist/Card/{Card-DDbQQsCc.js → Card-rJeWgxu5.js} +1 -1
  23. package/dist/Card/index.js +3 -3
  24. package/dist/CheckBox/{CheckBox-CwfrMEFb.js → CheckBox-B92dxWNo.js} +1 -1
  25. package/dist/CheckBox/{CheckBox-DFfNiPGM.js → CheckBox-DOK5N7z6.js} +1 -1
  26. package/dist/CheckBox/index.js +4 -4
  27. package/dist/ColorPicker/{ColorPicker-BGduOQbR.js → ColorPicker-CPr5j6ZN.js} +1 -1
  28. package/dist/ColorPicker/index.js +3 -3
  29. package/dist/ConfigProvider/index.js +1 -1
  30. package/dist/DatePicker/{DatePicker-CvOPih1m.js → DatePicker-BWMmI6rl.js} +3 -3
  31. package/dist/DatePicker/{DatePickerPanel-CrpZidbJ.js → DatePickerPanel-CRnLvIwc.js} +4 -4
  32. package/dist/DatePicker/index.js +5 -5
  33. package/dist/DatePicker/style/index.js +2 -2
  34. package/dist/DropDown/{DropDown-CtiUrlqk.js → DropDown-CvG9IFVk.js} +3 -3
  35. package/dist/DropDown/index.js +5 -5
  36. package/dist/DropDown/style/index.js +2 -2
  37. package/dist/Editor/{Buttons-BhGuyTzy.js → Buttons-vt3gwedu.js} +533 -469
  38. package/dist/Editor/ToolbarPlugin/Buttons/index.js +10 -10
  39. package/dist/Editor/constants/index.js +1 -1
  40. package/dist/Editor/index.js +57 -52
  41. package/dist/Gantt/GanttChart/index.js +11 -11
  42. package/dist/Gantt/{GanttChart-C_bxX0_A.js → GanttChart-DRzJdEm-.js} +7 -7
  43. package/dist/Gantt/GanttTable/index.js +9 -9
  44. package/dist/Gantt/{GanttTable-T7ZHce4a.js → GanttTable-fOv1Zn2-.js} +5 -5
  45. package/dist/Gantt/GanttToolBar/index.js +8 -8
  46. package/dist/Gantt/{GanttToolBar-jhhCjBn-.js → GanttToolBar-4kxZP6oS.js} +3 -3
  47. package/dist/Gantt/{collapseKeys-B4SOVHjd.js → collapseKeys-BV_8sIA-.js} +2 -2
  48. package/dist/Gantt/index.js +19 -19
  49. package/dist/Gantt/{timelineViewConfig-9HArvbmb.js → timelineViewConfig-DNt7yi83.js} +1 -1
  50. package/dist/Gantt/utils/index.js +6 -6
  51. package/dist/Gantt/utils/theme/index.js +2 -2
  52. package/dist/Icon/{Icon-DDHx0R18.js → Icon-DrdQOEJE.js} +1 -1
  53. package/dist/Icon/index.js +2 -2
  54. package/dist/InputTag/{InputTag-BcywA_86.js → InputTag-BfZycXw4.js} +1 -1
  55. package/dist/InputTag/index.js +3 -3
  56. package/dist/Loading/index.js +2 -2
  57. package/dist/Modal/{Modal-BnF6CUrn.js → Modal-CRKitOOj.js} +1 -1
  58. package/dist/Modal/index.js +3 -3
  59. package/dist/NotFoundContent/index.js +1 -1
  60. package/dist/Overlay/index.js +1 -1
  61. package/dist/Radio/index.js +1 -1
  62. package/dist/ScrollBar/index.js +1 -1
  63. package/dist/Segmented/index.js +1 -1
  64. package/dist/Select/Select-Bla1mQ8v.js +767 -0
  65. package/dist/Select/{SelectInputSearch-BUWOQCgT.js → SelectInputSearch-CRgBcsq2.js} +2 -5
  66. package/dist/Select/index.js +8 -7
  67. package/dist/Select/style/index.js +3 -0
  68. package/dist/Select/style-C4A8kUd1.js +9 -0
  69. package/dist/Table/{Table-BjLvTorz.js → Table-3LSO0xSH.js} +4 -4
  70. package/dist/Table/hooks/index.js +2 -2
  71. package/dist/Table/{hooks-BceUZQQm.js → hooks-DSBl2e4O.js} +1 -1
  72. package/dist/Table/index.js +6 -6
  73. package/dist/Table/{processRowspan-B0WELhG2.js → processRowspan-B6HMqw0Q.js} +1 -1
  74. package/dist/Table/style/index.js +2 -2
  75. package/dist/Table/utils/index.js +2 -2
  76. package/dist/Tabs/{Tabs-DezpnxP1.js → Tabs-B9uCGlxM.js} +1 -1
  77. package/dist/Tabs/index.js +3 -3
  78. package/dist/Tooltip/index.js +1 -1
  79. package/dist/Tree/index.js +4 -4
  80. package/dist/Tree/utils/index.js +1 -1
  81. package/dist/components/Editor/ToolbarPlugin/Buttons/ToolbarColorGlyph.d.ts +8 -0
  82. package/dist/components/Editor/interface.d.ts +8 -3
  83. package/dist/components/Editor/utils/fillRootFromHtml.d.ts +1 -1
  84. package/dist/components/Select/SelectPanel/SelectPanel.d.ts +4 -1
  85. package/dist/components/Select/index.d.ts +1 -1
  86. package/dist/components/Select/interface.d.ts +54 -0
  87. package/dist/components/Select/style/index.d.ts +1 -0
  88. package/dist/components/Select/style/resolveSelectThemeVars.d.ts +2 -0
  89. package/dist/components/Table/interface.d.ts +2 -2
  90. package/dist/components/index.d.ts +1 -0
  91. package/dist/index.js +33 -32
  92. package/dist/style.css +1 -1
  93. package/dist/vendors/{Tree-B7XeC9Mi.js → Tree-DSl4lDjx.js} +3 -3
  94. package/dist/vendors/{version-DuQW7jtS.js → version-CFii9VTt.js} +1 -1
  95. package/package.json +2 -2
  96. package/dist/Select/Select-DWXMgoud.js +0 -753
  97. /package/dist/Calendar/{CurrentTimeIndicator-BZLQps2m.js → CurrentTimeIndicator-BF3_INSL.js} +0 -0
  98. /package/dist/Calendar/{TimeAxis-C9e2BdYs.js → TimeAxis-DUc6EL-j.js} +0 -0
  99. /package/dist/Calendar/{colorUtils-CBLTsDX0.js → colorUtils-BbeSMnOs.js} +0 -0
  100. /package/dist/Calendar/{context-4tCN5X33.js → context-CamSpkj3.js} +0 -0
  101. /package/dist/Calendar/{layout-Dz-grtu9.js → layout-CpOabFQ2.js} +0 -0
  102. /package/dist/DatePicker/{ensureDayjsPlugins-Cn9Bkjkj.js → ensureDayjsPlugins-CSqhjLS7.js} +0 -0
  103. /package/dist/DatePicker/{pickerLocale-BRnNjLcv.js → pickerLocale-CcPLUbZO.js} +0 -0
  104. /package/dist/DatePicker/{style-UKXn1N_p.js → style-W7f5wyUb.js} +0 -0
  105. /package/dist/DropDown/{style-LLDVPpPa.js → style-DZpkarne.js} +0 -0
  106. /package/dist/Gantt/{GanttHighlightContext-ChThr8ia.js → GanttHighlightContext-dtyoq-oj.js} +0 -0
  107. /package/dist/Gantt/{columnResize-jG0Wy2PC.js → columnResize-Bkenlbab.js} +0 -0
  108. /package/dist/Gantt/{constants-LIz5jwed.js → constants-mEGQ1U1Q.js} +0 -0
  109. /package/dist/Gantt/{highlightTarget-BpkYTonb.js → highlightTarget-D3Nf9_7S.js} +0 -0
  110. /package/dist/Gantt/{theme-2LyXJRDe.js → theme-B7Iap-tZ.js} +0 -0
  111. /package/dist/Loading/{Loading-D1QxBrOq.js → Loading-DpbJSRYf.js} +0 -0
  112. /package/dist/Table/{constants-kRpjsoet.js → constants-D7wLH8Qy.js} +0 -0
  113. /package/dist/Table/{style-C4wp0IOM.js → style-B8Cw8HJe.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as e } from "../Icon/Icon-DDHx0R18.js";
1
+ import { t as e } from "../Icon/Icon-DrdQOEJE.js";
2
2
  import { t } from "../vendors/useLocale-D31qCCff.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
@@ -13,10 +13,7 @@ var i = (i) => {
13
13
  className: "bsy-select-input-search-input__icon flex items-center justify-center",
14
14
  children: /* @__PURE__ */ n(e, {
15
15
  name: "search",
16
- style: {
17
- color: "#666",
18
- fontSize: 16
19
- }
16
+ style: { fontSize: 16 }
20
17
  })
21
18
  }),
22
19
  /* @__PURE__ */ n("div", {
@@ -1,17 +1,18 @@
1
- import "../vendors/version-DuQW7jtS.js";
1
+ import "../vendors/version-CFii9VTt.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
- import "../Icon/Icon-DDHx0R18.js";
3
+ import "../Icon/Icon-DrdQOEJE.js";
4
4
  import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
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-DWXMgoud.js";
9
- import "./SelectInputSearch-BUWOQCgT.js";
10
- import "../vendors/Tree-B7XeC9Mi.js";
11
- import "../CheckBox/CheckBox-DFfNiPGM.js";
12
- import "../CheckBox/CheckBox-CwfrMEFb.js";
8
+ import { n as e, r as t, t as n } from "./Select-Bla1mQ8v.js";
9
+ import "./SelectInputSearch-CRgBcsq2.js";
10
+ import "../vendors/Tree-DSl4lDjx.js";
11
+ import "../CheckBox/CheckBox-DOK5N7z6.js";
12
+ import "../CheckBox/CheckBox-B92dxWNo.js";
13
13
  import "../Radio/Radio-CX9cUqb7.js";
14
14
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
15
15
  import "../ScrollBar/ScrollBar-N2pOLv-8.js";
16
16
  import "../vendors/useFloatingPortal-VpzL-EPh.js";
17
+ import "./style-C4A8kUd1.js";
17
18
  export { e as Mode, n as Select, t as SelectType };
@@ -0,0 +1,3 @@
1
+ import "../../vendors/version-CFii9VTt.js";
2
+ import { t as e } from "../style-C4A8kUd1.js";
3
+ export { e as resolveSelectThemeVars };
@@ -0,0 +1,9 @@
1
+ import { t as e } from "../vendors/cssVars-l4-kP_14.js";
2
+ //#region src/components/Select/style/resolveSelectThemeVars.ts
3
+ var t = (t) => {
4
+ if (!t) return {};
5
+ let n = {}, r = t.colorPrimary;
6
+ return e(n, "--bsy-select-color-bg", t.colorBgContainer), e(n, "--bsy-select-color-bg-elevated", t.colorBgElevated ?? t.colorBgContainer), e(n, "--bsy-select-color-text", t.colorText), e(n, "--bsy-select-color-text-placeholder", t.colorTextPlaceholder), e(n, "--bsy-select-color-icon", t.colorIcon), e(n, "--bsy-select-color-icon-hover", t.colorIconHover ?? r), e(n, "--bsy-select-color-border", t.colorBorder), e(n, "--bsy-select-color-border-hover", t.colorBorderHover ?? r), e(n, "--bsy-select-color-bg-disabled", t.colorBgDisabled), e(n, "--bsy-select-color-text-disabled", t.colorTextDisabled), e(n, "--bsy-select-color-border-disabled", t.colorBorderDisabled), e(n, "--bsy-select-item-hover-bg", t.itemHoverBg), e(n, "--bsy-select-item-active-bg", t.itemActiveBg), e(n, "--bsy-select-item-active-color", t.itemActiveColor ?? r), e(n, "--bsy-select-item-color-disabled", t.itemColorDisabled), e(n, "--bsy-select-item-system-color", t.itemSystemColor), e(n, "--bsy-select-color-highlight", t.colorHighlight ?? r), e(n, "--bsy-select-tag-bg", t.tagBg), e(n, "--bsy-select-tag-color", t.tagColor), e(n, "--bsy-select-tag-bg-disabled", t.tagBgDisabled), e(n, "--bsy-select-tag-color-disabled", t.tagColorDisabled), n;
7
+ };
8
+ //#endregion
9
+ export { t };
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "../vendors/useLocale-D31qCCff.js";
2
- import { n as t, o as n, t as r } from "./constants-kRpjsoet.js";
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
- import { n as p, t as m } from "./hooks-BceUZQQm.js";
5
- import { t as h } from "./style-C4wp0IOM.js";
2
+ import { n as t, o as n, t as r } from "./constants-D7wLH8Qy.js";
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-B6HMqw0Q.js";
4
+ import { n as p, t as m } from "./hooks-DSBl2e4O.js";
5
+ import { t as h } from "./style-B8Cw8HJe.js";
6
6
  import { sumBy as g } from "lodash-es";
7
7
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
8
  import y, { forwardRef as b, memo as x, useCallback as S, useEffect as ee, useImperativeHandle as te, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DuQW7jtS.js";
2
- import { n as e, t } from "../hooks-BceUZQQm.js";
1
+ import "../../vendors/version-CFii9VTt.js";
2
+ import { n as e, t } from "../hooks-DSBl2e4O.js";
3
3
  export { t as useColumnResize, e as useTableVirtual };
@@ -1,4 +1,4 @@
1
- import { o as e, r as t, t as n } from "./constants-kRpjsoet.js";
1
+ import { o as e, r as t, t as n } from "./constants-D7wLH8Qy.js";
2
2
  import { clamp as r } from "lodash-es";
3
3
  import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
4
4
  import { useEventListener as l, useLatest as u, useMemoizedFn as d } from "ahooks";
@@ -1,10 +1,10 @@
1
- import "../vendors/version-DuQW7jtS.js";
1
+ import "../vendors/version-CFii9VTt.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../vendors/useLocale-D31qCCff.js";
5
- import { a as e, n as t, t as n } from "./constants-kRpjsoet.js";
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-BjLvTorz.js";
8
- import { n as m, t as h } from "./hooks-BceUZQQm.js";
9
- import { t as g } from "./style-C4wp0IOM.js";
5
+ import { a as e, n as t, t as n } from "./constants-D7wLH8Qy.js";
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-B6HMqw0Q.js";
7
+ import { n as f, t as p } from "./Table-3LSO0xSH.js";
8
+ import { n as m, t as h } from "./hooks-DSBl2e4O.js";
9
+ import { t as g } from "./style-B8Cw8HJe.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,4 +1,4 @@
1
- import { i as e, t } from "./constants-kRpjsoet.js";
1
+ import { i as e, t } from "./constants-D7wLH8Qy.js";
2
2
  import { groupBy as n, sumBy as r } from "lodash-es";
3
3
  //#region src/components/Table/utils/tableUtils.ts
4
4
  var i = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), a = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), o = (e, n, i, a = t.DEFAULT_WIDTH) => r(i === "left" ? n.slice(0, e) : n.slice(e + 1), (e) => e.width || a), s = (e, t, n) => n !== "left" && n !== "right" ? null : {
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DuQW7jtS.js";
2
- import { t as e } from "../style-C4wp0IOM.js";
1
+ import "../../vendors/version-CFii9VTt.js";
2
+ import { t as e } from "../style-B8Cw8HJe.js";
3
3
  export { e as resolveTableThemeVars };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DuQW7jtS.js";
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";
1
+ import "../../vendors/version-CFii9VTt.js";
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-B6HMqw0Q.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,4 +1,4 @@
1
- import { t as e } from "../Icon/Icon-DDHx0R18.js";
1
+ import { t as e } from "../Icon/Icon-DrdQOEJE.js";
2
2
  import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import { t as r } from "../vendors/useLocale-D31qCCff.js";
4
4
  import { r as i } from "../vendors/animations-Dn_5xJ7B.js";
@@ -1,8 +1,8 @@
1
- import "../vendors/version-DuQW7jtS.js";
2
- import "../Icon/Icon-DDHx0R18.js";
1
+ import "../vendors/version-CFii9VTt.js";
2
+ import "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
5
5
  import "../vendors/useLocale-D31qCCff.js";
6
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";
7
+ import { i as e, n as t, r as n, t as r } from "./Tabs-B9uCGlxM.js";
8
8
  export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-DuQW7jtS.js";
1
+ import "../vendors/version-CFii9VTt.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
4
4
  import { n as e, t } from "./Tooltip-nJU13gX4.js";
@@ -1,6 +1,6 @@
1
- import "../vendors/version-DuQW7jtS.js";
2
- import "../Icon/Icon-DDHx0R18.js";
3
- import { t as e } from "../vendors/Tree-B7XeC9Mi.js";
4
- import "../CheckBox/CheckBox-DFfNiPGM.js";
1
+ import "../vendors/version-CFii9VTt.js";
2
+ import "../Icon/Icon-DrdQOEJE.js";
3
+ import { t as e } from "../vendors/Tree-DSl4lDjx.js";
4
+ import "../CheckBox/CheckBox-DOK5N7z6.js";
5
5
  import "../Radio/Radio-CX9cUqb7.js";
6
6
  export { e as Tree };
@@ -1,4 +1,4 @@
1
- import "../../vendors/version-DuQW7jtS.js";
1
+ import "../../vendors/version-CFii9VTt.js";
2
2
  import { isString as e } from "lodash-es";
3
3
  //#region src/components/Tree/utils/index.ts
4
4
  var t = (e, n, r, i = []) => {
@@ -0,0 +1,8 @@
1
+ type ToolbarColorGlyphVariant = 'fontColor' | 'fill';
2
+ interface ToolbarColorGlyphProps {
3
+ variant: ToolbarColorGlyphVariant;
4
+ barColor: string;
5
+ size: number;
6
+ }
7
+ export declare const ToolbarColorGlyph: React.FC<ToolbarColorGlyphProps>;
8
+ export {};
@@ -86,6 +86,11 @@ export interface EditorToolbarProps {
86
86
  /** @default 'embedded' */
87
87
  mode?: EditorToolbarMode;
88
88
  floating?: EditorToolbarFloating;
89
+ /**
90
+ * 传入后开启吸顶,值为相对视口顶的偏移 px(`0` 贴视口顶)。
91
+ * 不传不吸顶。数字 `height`、`floating` 时忽略。祖先 `overflow` 不为 visible 时不生效。
92
+ */
93
+ stickyOffset?: number;
89
94
  }
90
95
 
91
96
  export type EditorProps = {
@@ -104,7 +109,7 @@ export type EditorProps = {
104
109
  * 编辑器内容变化回调
105
110
  */
106
111
  onChange: (
107
- { text, html, attachment }: { text: string; html: string | null; attachment: unknown[] },
112
+ { text, html, attachments }: { text: string; html: string | null; attachments: unknown[] },
108
113
  editorState: EditorState
109
114
  ) => void;
110
115
 
@@ -193,11 +198,11 @@ export type EditorUploadContext = {
193
198
 
194
199
  export type EditorUploadResult = {
195
200
  url: string;
196
- /** 厂商原始文件对象(如接口 `data.file`),原样回传到 onChange.attachment */
201
+ /** 厂商原始文件对象(如接口 `data.file`),原样回传到 onChange.attachments */
197
202
  attachment?: { _id: string };
198
203
  };
199
204
 
200
205
  export type EditorUpload = {
201
- /** 业务上传:成功返回 URL,或 `{ url, attachment }` 以便 onChange 带回原始文件对象 */
206
+ /** 业务上传:成功返回 URL,或 `{ url, attachment }` 以便 onChange.attachments 带回原始文件对象 */
202
207
  customRequest?: (file: File, ctx: EditorUploadContext) => Promise<string | EditorUploadResult>;
203
208
  };
@@ -1,2 +1,2 @@
1
1
  import { LexicalEditor } from 'lexical';
2
- export declare function $fillRootFromHtml(editor: LexicalEditor, html: string): void;
2
+ export declare const $fillRootFromHtml: (editor: LexicalEditor, html: string) => void;
@@ -1,3 +1,6 @@
1
+ import { CSSProperties } from 'react';
1
2
  import { SelectProps } from '../interface';
2
- declare const SelectPanel: React.FC<SelectProps>;
3
+ declare const SelectPanel: React.FC<SelectProps & {
4
+ themeStyle?: CSSProperties;
5
+ }>;
3
6
  export default SelectPanel;
@@ -1,3 +1,3 @@
1
1
  export { default as Select } from './Select';
2
2
  export { SelectType, Mode } from './constants';
3
- export type { BaseOptionType, DefaultOptionType, FieldNames, BaseSelectProps, SelectProps, SelectRef, } from './interface';
3
+ export type { BaseOptionType, DefaultOptionType, FieldNames, BaseSelectProps, SelectTheme, SelectProps, SelectRef, } from './interface';
@@ -26,6 +26,53 @@ export interface FieldNames {
26
26
  value: string;
27
27
  children: string;
28
28
  }
29
+ /** Select 组件级颜色 token。全部可选;未传保持现有默认色。 */
30
+ export interface SelectTheme {
31
+ /** 主色,默认 #0265ff。未单独指定的强调色可回退到此值 */
32
+ colorPrimary?: string;
33
+ /** 输入框背景,默认 #fff。未传 colorBgElevated 时面板也用它 */
34
+ colorBgContainer?: string;
35
+ /** 浮层面板背景,默认 #fff */
36
+ colorBgElevated?: string;
37
+ /** 输入框 / 面板 / 搜索框默认文字,默认 #121212 */
38
+ colorText?: string;
39
+ /** 占位(输入框、搜索、底部其他),默认 #999 */
40
+ colorTextPlaceholder?: string;
41
+ /** 箭头、清除、搜索图标、tag 关闭、省略号,默认 #666 */
42
+ colorIcon?: string;
43
+ /** 图标 hover(清除、搜索清空、tag 关闭),默认跟随 colorPrimary */
44
+ colorIconHover?: string;
45
+ /** 默认边框(输入框、搜索框、底部其他),默认 #e0e0e0 */
46
+ colorBorder?: string;
47
+ /** 输入框 / 搜索框 hover、展开描边,默认跟随 colorPrimary */
48
+ colorBorderHover?: string;
49
+ /** 输入框禁用背景,默认 #f0f0f0 */
50
+ colorBgDisabled?: string;
51
+ /** 输入框禁用文字 / 占位 / 箭头,默认 #c2c2c2 */
52
+ colorTextDisabled?: string;
53
+ /** 输入框禁用边框,默认 transparent */
54
+ colorBorderDisabled?: string;
55
+ /** 选项悬停背景,默认 #eff0f6 */
56
+ itemHoverBg?: string;
57
+ /** 单选选中背景,默认 #f0f6ff。不要套到多选 li */
58
+ itemActiveBg?: string;
59
+ /** 单选选中文字、多选「全选」文字,默认跟随 colorPrimary */
60
+ itemActiveColor?: string;
61
+ /** 禁用选项文字,默认 #999 */
62
+ itemColorDisabled?: string;
63
+ /** systemField 未选中文字,默认 #4d609f */
64
+ itemSystemColor?: string;
65
+ /** 搜索关键字高亮,默认跟随 colorPrimary */
66
+ colorHighlight?: string;
67
+ /** Tag 背景,默认 #eee */
68
+ tagBg?: string;
69
+ /** Tag 文字,默认 #121111 */
70
+ tagColor?: string;
71
+ /** 禁用 Tag 背景,默认 #e7e7e7 */
72
+ tagBgDisabled?: string;
73
+ /** 禁用 Tag 文字,默认 #adadad */
74
+ tagColorDisabled?: string;
75
+ }
29
76
  export interface BaseSelectProps {
30
77
  /**
31
78
  * @description 选择框的占位符
@@ -145,14 +192,21 @@ export interface SelectProps<ValueType = any, OptionType extends DefaultOptionTy
145
192
  index: number;
146
193
  }, isSelected: boolean) => React.ReactNode;
147
194
  /**
195
+ * @description 组件级颜色 token
196
+ */
197
+ theme?: SelectTheme;
198
+ /**
199
+ * @deprecated 请使用 `theme.itemHoverBg` / `theme.itemActiveBg` 等 token
148
200
  * @description 下拉选项的容器样式覆盖
149
201
  */
150
202
  optionStyle?: React.CSSProperties;
151
203
  /**
204
+ * @deprecated 请使用 `theme.colorText`
152
205
  * @description 自定义输入框的值的样式覆盖
153
206
  */
154
207
  inputValueStyle?: React.CSSProperties;
155
208
  /**
209
+ * @deprecated 请使用 `theme.tagBg` / `theme.tagColor`
156
210
  * @description 自定义标签的样式覆盖
157
211
  */
158
212
  tagStyle?: React.CSSProperties;
@@ -0,0 +1 @@
1
+ export { resolveSelectThemeVars } from './resolveSelectThemeVars';
@@ -0,0 +1,2 @@
1
+ import { SelectTheme } from '../interface';
2
+ export declare const resolveSelectThemeVars: (theme?: SelectTheme) => Record<string, string>;
@@ -45,9 +45,9 @@ export interface TableTheme {
45
45
  colorBgHeader?: string;
46
46
  /** tbody 单元格背景,默认 #fff */
47
47
  colorBgContainer?: string;
48
- /** tbody 文字颜色,默认 #000 */
48
+ /** tbody 文字颜色,默认 #121111 */
49
49
  colorText?: string;
50
- /** 表头文字颜色,默认 #000 */
50
+ /** 表头文字颜色,默认 #121111 */
51
51
  colorTextHeading?: string;
52
52
  /** 行 hover / 左右联动高亮背景,默认 #f4f6fc(与 Gantt 左表一致) */
53
53
  colorBgRowHover?: string;
@@ -14,6 +14,7 @@ export type { SegmentedOption, SegmentedProps, SegmentedTheme } from './Segmente
14
14
  export { default as Tooltip, TooltipFloatingContext } from './Tooltip';
15
15
  export type { TooltipProps, TooltipTrigger, TooltipWidthMode, VirtualReference } from './Tooltip';
16
16
  export { Select } from './Select';
17
+ export type { BaseOptionType, DefaultOptionType, FieldNames, BaseSelectProps, SelectTheme, SelectProps, SelectRef, } from './Select';
17
18
  export { Tree } from './Tree';
18
19
  export { default as Checkbox } from './CheckBox';
19
20
  export { default as Radio } from './Radio';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./vendors/version-DuQW7jtS.js";
1
+ import "./vendors/version-CFii9VTt.js";
2
2
  import "./ScrollBar/style-D26azwz6.js";
3
- import { t as e } from "./Icon/Icon-DDHx0R18.js";
3
+ import { t as e } from "./Icon/Icon-DrdQOEJE.js";
4
4
  import "./vendors/LocaleContext-DXQoOKM2.js";
5
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";
@@ -13,46 +13,47 @@ import "./Amap/useMarkerInfoWindowController-Cjx0xQXw.js";
13
13
  import { t as f } from "./Amap/AmapMarker-xEqoVnFR.js";
14
14
  import { t as p } from "./Amap/AmapMarkerCluster-CvEQa3o9.js";
15
15
  import "./Overlay/index.js";
16
- import { t as m } from "./Card/Card-DDbQQsCc.js";
17
- import { t as h } from "./Modal/Modal-BnF6CUrn.js";
18
- import { t as g } from "./ColorPicker/ColorPicker-BGduOQbR.js";
16
+ import { t as m } from "./Card/Card-rJeWgxu5.js";
17
+ import { t as h } from "./Modal/Modal-CRKitOOj.js";
18
+ import { t as g } from "./ColorPicker/ColorPicker-CPr5j6ZN.js";
19
19
  import "./vendors/useFloatingOverlay-B3M9k8nj.js";
20
20
  import "./vendors/useLocale-D31qCCff.js";
21
21
  import "./vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
22
22
  import { t as _ } from "./Segmented/Segmented-BCQRrc65.js";
23
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
- import { t as x } from "./vendors/Tree-B7XeC9Mi.js";
27
- import "./CheckBox/CheckBox-DFfNiPGM.js";
28
- import { t as S } from "./CheckBox/CheckBox-CwfrMEFb.js";
24
+ import { t as b } from "./Select/Select-Bla1mQ8v.js";
25
+ import "./Select/SelectInputSearch-CRgBcsq2.js";
26
+ import { t as x } from "./vendors/Tree-DSl4lDjx.js";
27
+ import "./CheckBox/CheckBox-DOK5N7z6.js";
28
+ import { t as S } from "./CheckBox/CheckBox-B92dxWNo.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
32
  import "./vendors/useFloatingPortal-VpzL-EPh.js";
33
+ import "./Select/style-C4A8kUd1.js";
33
34
  import "./Tree/index.js";
34
- import { n as E, t as D } from "./Tabs/Tabs-DezpnxP1.js";
35
- import { t as O } from "./DropDown/DropDown-CtiUrlqk.js";
36
- import "./DropDown/style-LLDVPpPa.js";
37
- import { t as k } from "./Loading/Loading-D1QxBrOq.js";
35
+ import { n as E, t as D } from "./Tabs/Tabs-B9uCGlxM.js";
36
+ import { t as O } from "./DropDown/DropDown-CvG9IFVk.js";
37
+ import "./DropDown/style-DZpkarne.js";
38
+ import { t as k } from "./Loading/Loading-DpbJSRYf.js";
38
39
  import "./NotFoundContent/index.js";
39
- import { t as A } from "./InputTag/InputTag-BcywA_86.js";
40
- import "./Calendar/context-4tCN5X33.js";
41
- import { t as j } from "./Calendar/Calendar-DbQvgTzh.js";
42
- import { t as M } from "./DatePicker/DatePicker-CvOPih1m.js";
43
- import "./DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
44
- import "./DatePicker/pickerLocale-BRnNjLcv.js";
45
- import "./DatePicker/style-UKXn1N_p.js";
46
- import "./Calendar/layout-Dz-grtu9.js";
47
- import "./Calendar/TimeAxis-C9e2BdYs.js";
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
- import "./Calendar/theme-i60ueO92.js";
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-BjLvTorz.js";
55
- import { n as U, t as W } from "./Table/hooks-BceUZQQm.js";
56
- import { t as G } from "./Table/style-C4wp0IOM.js";
40
+ import { t as A } from "./InputTag/InputTag-BfZycXw4.js";
41
+ import "./Calendar/context-CamSpkj3.js";
42
+ import { t as j } from "./Calendar/Calendar-DUD4iffO.js";
43
+ import { t as M } from "./DatePicker/DatePicker-BWMmI6rl.js";
44
+ import "./DatePicker/ensureDayjsPlugins-CSqhjLS7.js";
45
+ import "./DatePicker/pickerLocale-CcPLUbZO.js";
46
+ import "./DatePicker/style-W7f5wyUb.js";
47
+ import "./Calendar/layout-CpOabFQ2.js";
48
+ import "./Calendar/TimeAxis-DUc6EL-j.js";
49
+ import "./Calendar/TimeGrid-BV8x9VnF.js";
50
+ import "./Calendar/CurrentTimeIndicator-BF3_INSL.js";
51
+ import "./Calendar/EventCard-DKEZQRTp.js";
52
+ import "./Calendar/AllDaySection-pO7suGJM.js";
53
+ import "./Calendar/theme-Dc8hjcdo.js";
54
+ 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-B6HMqw0Q.js";
55
+ import { t as H } from "./Table/Table-3LSO0xSH.js";
56
+ import { n as U, t as W } from "./Table/hooks-DSBl2e4O.js";
57
+ import { t as G } from "./Table/style-B8Cw8HJe.js";
57
58
  import "overlayscrollbars/overlayscrollbars.css";
58
59
  export { c as Amap, d as AmapCircle, f as AmapMarker, p as AmapMarkerCluster, s as AmapProvider, j as Calendar, m as Card, S as Checkbox, g as ColorPicker, n as ConfigProvider, M as DatePicker, O as DropDown, e as Icon, A as InputTag, k as Loading, t as LocalTheme, h as Modal, w as NotFoundContent, o as OVERLAY_Z_BASE, a as OVERLAY_Z_STEP, i as OverlayProvider, C as Radio, C as Ratio, T as ScrollBar, _ as Segmented, b as Select, D as TabSelect, H as Table, E as Tabs, y as Tooltip, v as TooltipFloatingContext, x as Tree, N as calculateFixedOffset, R as expandLeafColumns, B as getCellRowspan, P as getColumnsWidth, V as getRowKey, L as processRowspan, G as resolveTableThemeVars, z as shouldRenderCell, F as sortData, I as splitFixedColumns, l as useAmap, W as useColumnResize, u as useCurrentLocation, r as useOverlayZIndex, U as useTableVirtual };