@baishuyun/ui-base 6.4.2 → 6.5.1

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 (155) hide show
  1. package/dist/Amap/{Amap-DL5dLiUm.js → Amap-Dnvu_pUP.js} +1 -1
  2. package/dist/Amap/AmapCircle/index.js +3 -3
  3. package/dist/Amap/{AmapCircle-mh92P2l6.js → AmapCircle-Wfn43qco.js} +1 -1
  4. package/dist/Amap/AmapMarker/index.js +4 -4
  5. package/dist/Amap/{AmapMarker-DYW0-8Hd.js → AmapMarker-CB66dQIG.js} +2 -2
  6. package/dist/Amap/AmapMarkerCluster/index.js +4 -4
  7. package/dist/Amap/{AmapMarkerCluster-BRVHHMbi.js → AmapMarkerCluster-DvXchCC0.js} +2 -2
  8. package/dist/Amap/AmapProvider/index.js +4 -4
  9. package/dist/Amap/{AmapProvider-CwKdpmCg.js → AmapProvider-XCrqzo9W.js} +2 -2
  10. package/dist/Amap/hooks/index.js +2 -2
  11. package/dist/Amap/{hooks-D1m8KgVM.js → hooks-DwRvpafb.js} +1 -1
  12. package/dist/Amap/index.js +10 -10
  13. package/dist/Calendar/{AllDaySection-CseF1DuB.js → AllDaySection-M-b9tRHh.js} +4 -4
  14. package/dist/Calendar/{Calendar-Yu2HfA5D.js → Calendar-C9PhASp0.js} +13 -13
  15. package/dist/Calendar/{CurrentTimeIndicator-CUeblc9r.js → CurrentTimeIndicator-Dpi36eVJ.js} +1 -1
  16. package/dist/Calendar/{EventCard-L6jaKgEw.js → EventCard-BIfRqCk5.js} +3 -3
  17. package/dist/Calendar/{TimeGrid-B8lvUb1W.js → TimeGrid-Dk3soSo4.js} +2 -2
  18. package/dist/Calendar/context/index.js +1 -1
  19. package/dist/Calendar/index.js +19 -19
  20. package/dist/Calendar/subcomponents/AllDaySection/index.js +7 -7
  21. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
  22. package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
  23. package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
  24. package/dist/Calendar/subcomponents/TimeGrid/index.js +3 -3
  25. package/dist/Calendar/{theme-BzNDRi0U.js → theme-Cgn0zQoC.js} +2 -2
  26. package/dist/Calendar/utils/index.js +3 -3
  27. package/dist/Calendar/utils/layout/index.js +2 -2
  28. package/dist/Calendar/utils/theme/index.js +1 -1
  29. package/dist/Card/{Card-CRrtIjNT.js → Card-BjWdQRjq.js} +1 -1
  30. package/dist/Card/index.js +2 -2
  31. package/dist/CheckBox/{CheckBox-DIunYcfS.js → CheckBox-81R8QKHb.js} +1 -1
  32. package/dist/CheckBox/{CheckBox-CkVe5Boq.js → CheckBox-ejvbDr-a.js} +1 -1
  33. package/dist/CheckBox/index.js +3 -3
  34. package/dist/ColorPicker/{ColorPicker-By-Y8Tyz.js → ColorPicker-aj57lMA5.js} +5 -5
  35. package/dist/ColorPicker/index.js +6 -6
  36. package/dist/ConfigProvider/index.js +2 -2
  37. package/dist/DatePicker/{DatePicker-PCdNachD.js → DatePicker-EIFyC9zF.js} +6 -6
  38. package/dist/DatePicker/{DatePickerPanel-HoxXteK0.js → DatePickerPanel-BjnLfncu.js} +5 -5
  39. package/dist/DatePicker/index.js +7 -7
  40. package/dist/DatePicker/style/index.js +1 -1
  41. package/dist/DatePicker/{style-DZaSSoNs.js → style-BxWyBhZ3.js} +1 -1
  42. package/dist/DropDown/DropDown-B34vfoOs.js +172 -0
  43. package/dist/DropDown/index.js +8 -7
  44. package/dist/DropDown/style/index.js +2 -0
  45. package/dist/DropDown/style-4LK6rNHe.js +9 -0
  46. package/dist/Editor/{Buttons-DmSUkHWl.js → Buttons-Ds6bLmnl.js} +6 -6
  47. package/dist/Editor/ToolbarPlugin/Buttons/index.js +15 -14
  48. package/dist/Editor/index.js +15 -14
  49. package/dist/Gantt/GanttChart/index.js +15 -14
  50. package/dist/Gantt/{GanttChart-BgDJOyW1.js → GanttChart-DbI1fvxe.js} +757 -605
  51. package/dist/Gantt/GanttTable/index.js +9 -9
  52. package/dist/Gantt/{GanttTable-Di_p-0M1.js → GanttTable-C3PLGmKr.js} +20 -19
  53. package/dist/Gantt/GanttToolBar/index.js +11 -10
  54. package/dist/Gantt/GanttToolBar-8jPQ9BAG.js +121 -0
  55. package/dist/Gantt/{collapseKeys-C8139wvy.js → collapseKeys-1N9ci2oJ.js} +2 -2
  56. package/dist/Gantt/index.js +195 -162
  57. package/dist/Gantt/theme-C197Dtjy.js +31 -0
  58. package/dist/Gantt/{timelineViewConfig-BXl2UkN8.js → timelineViewConfig-Dl3AXO45.js} +1 -1
  59. package/dist/Gantt/utils/index.js +5 -5
  60. package/dist/Gantt/utils/theme/index.js +2 -0
  61. package/dist/Icon/index.js +1 -1
  62. package/dist/InputTag/InputTag-CGQ5dXyf.js +143 -0
  63. package/dist/InputTag/index.js +3 -2
  64. package/dist/Loading/index.js +1 -1
  65. package/dist/Modal/{Modal-D3LFqIV4.js → Modal-GGHNlZv3.js} +1 -1
  66. package/dist/Modal/index.js +2 -2
  67. package/dist/NotFoundContent/index.js +1 -1
  68. package/dist/Radio/index.js +1 -1
  69. package/dist/ScrollBar/ScrollBar-CSGBOE3e.js +68 -0
  70. package/dist/ScrollBar/index.js +2 -0
  71. package/dist/Segmented/{Segmented-BTW445jc.js → Segmented-CzVKrL6o.js} +1 -1
  72. package/dist/Segmented/index.js +1 -1
  73. package/dist/Select/{Select-OjCjCogR.js → Select-B0r9VgF6.js} +199 -200
  74. package/dist/Select/{SelectInputSearch-DXPTGSc2.js → SelectInputSearch-BDwg-Noi.js} +2 -2
  75. package/dist/Select/index.js +12 -11
  76. package/dist/Table/Table-BtH9Oa14.js +545 -0
  77. package/dist/Table/hooks/index.js +1 -1
  78. package/dist/Table/{hooks-CJ2CnSep.js → hooks-DK8Pf7iH.js} +1 -1
  79. package/dist/Table/index.js +8 -7
  80. package/dist/Table/{processRowspan-BCzfI5un.js → processRowspan-D4uv6zLk.js} +1 -1
  81. package/dist/Table/style/index.js +2 -0
  82. package/dist/Table/style-BwcnT2ee.js +9 -0
  83. package/dist/Table/utils/index.js +1 -1
  84. package/dist/Tabs/{Tabs-DVQcB3YG.js → Tabs-7wEcxUv6.js} +4 -4
  85. package/dist/Tabs/index.js +4 -4
  86. package/dist/Tooltip/{Tooltip-DW_XP13m.js → Tooltip-B_SZOy6k.js} +41 -44
  87. package/dist/Tooltip/index.js +1 -1
  88. package/dist/Tree/index.js +4 -4
  89. package/dist/components/DropDown/index.d.ts +1 -0
  90. package/dist/components/DropDown/interface.d.ts +45 -0
  91. package/dist/components/DropDown/style/__tests__/resolveDropDownThemeVars.test.d.ts +1 -0
  92. package/dist/components/DropDown/style/index.d.ts +1 -0
  93. package/dist/components/DropDown/style/resolveDropDownThemeVars.d.ts +2 -0
  94. package/dist/components/Gantt/Gantt.d.ts +1 -1
  95. package/dist/components/Gantt/GanttChart/GanttTimelineHeader/HeaderStickyTopLabel.d.ts +9 -0
  96. package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +1 -1
  97. package/dist/components/Gantt/GanttChart/utils/constants.d.ts +1 -1
  98. package/dist/components/Gantt/GanttTable/GanttTable.d.ts +1 -1
  99. package/dist/components/Gantt/GanttThemeContext.d.ts +3 -0
  100. package/dist/components/Gantt/index.d.ts +2 -1
  101. package/dist/components/Gantt/interface.d.ts +39 -0
  102. package/dist/components/Gantt/internal/GanttLayout.d.ts +1 -1
  103. package/dist/components/Gantt/types.internal.d.ts +4 -0
  104. package/dist/components/Gantt/utils/theme/__tests__/resolveGanttTheme.test.d.ts +1 -0
  105. package/dist/components/Gantt/utils/theme/__tests__/resolveGanttThemeVars.test.d.ts +1 -0
  106. package/dist/components/Gantt/utils/theme/__tests__/resolveTableThemeFromGantt.test.d.ts +1 -0
  107. package/dist/components/Gantt/utils/theme/index.d.ts +3 -0
  108. package/dist/components/Gantt/utils/theme/resolveGanttTheme.d.ts +3 -0
  109. package/dist/components/Gantt/utils/theme/resolveGanttThemeVars.d.ts +5 -0
  110. package/dist/components/Gantt/utils/theme/resolveTableThemeFromGantt.d.ts +4 -0
  111. package/dist/components/ScrollBar/ScrollBar.d.ts +3 -0
  112. package/dist/components/ScrollBar/__tests__/ScrollBar.test.d.ts +1 -0
  113. package/dist/components/ScrollBar/index.d.ts +3 -0
  114. package/dist/components/ScrollBar/interface.d.ts +23 -0
  115. package/dist/components/Table/index.d.ts +2 -1
  116. package/dist/components/Table/interface.d.ts +17 -0
  117. package/dist/components/Table/style/__tests__/resolveTableThemeVars.test.d.ts +1 -0
  118. package/dist/components/Table/style/index.d.ts +1 -0
  119. package/dist/components/Table/style/resolveTableThemeVars.d.ts +3 -0
  120. package/dist/components/index.d.ts +5 -2
  121. package/dist/index.js +50 -47
  122. package/dist/style.css +1 -1
  123. package/dist/utils/mergeRefs.d.ts +1 -0
  124. package/dist/vendors/{ConfigProvider-DwmA94S2.js → ConfigProvider-AQTr7T_c.js} +1 -1
  125. package/dist/vendors/{Tree-C7BgkjCQ.js → Tree-DqnOGJtB.js} +3 -3
  126. package/dist/vendors/mergeRefs-TiJ0xjUN.js +9 -0
  127. package/dist/vendors/{useLocale-BTz4slNW.js → useLocale-DZ8XW2VL.js} +1 -1
  128. package/package.json +3 -4
  129. package/dist/DropDown/DropDown-CvQAbsEo.js +0 -168
  130. package/dist/Gantt/GanttToolBar-D5pQdrzv.js +0 -105
  131. package/dist/InputTag/InputTag-zP5QdId7.js +0 -139
  132. package/dist/Table/Table-3-kFIm5v.js +0 -543
  133. /package/dist/Amap/{AmapContext-JaYk1a3H.js → AmapContext-CFmsMycg.js} +0 -0
  134. /package/dist/Amap/{useMarkerInfoWindowController-CRgf2I0Q.js → useMarkerInfoWindowController-G-Bg-NDJ.js} +0 -0
  135. /package/dist/Calendar/{TimeAxis-cK2_3FeM.js → TimeAxis-Chwxo6Yj.js} +0 -0
  136. /package/dist/Calendar/{colorUtils-DcpqM3KR.js → colorUtils-FNbm3zBQ.js} +0 -0
  137. /package/dist/Calendar/{context-DNOJ9LW_.js → context-CzS6P3nk.js} +0 -0
  138. /package/dist/Calendar/{layout-CaPxiRd-.js → layout-Cb39seCc.js} +0 -0
  139. /package/dist/DatePicker/{ensureDayjsPlugins-C3aqki6i.js → ensureDayjsPlugins-DxqbKqon.js} +0 -0
  140. /package/dist/DatePicker/{pickerLocale-VqSP_iIm.js → pickerLocale-CtDOOxxD.js} +0 -0
  141. /package/dist/Gantt/{GanttHighlightContext-AIpN3-af.js → GanttHighlightContext-CtT98ZnK.js} +0 -0
  142. /package/dist/Gantt/{columnResize-By_1E48E.js → columnResize-DFe7F98O.js} +0 -0
  143. /package/dist/Gantt/{constants-D4ur8WRs.js → constants-CrBb5i5p.js} +0 -0
  144. /package/dist/Gantt/{highlightTarget-DmzCIiQb.js → highlightTarget-DtCe7zto.js} +0 -0
  145. /package/dist/Icon/{Icon-BQ3Whub2.js → Icon-SQ5tu-yG.js} +0 -0
  146. /package/dist/Loading/{Loading-WjmzBabh.js → Loading-ho-6d72M.js} +0 -0
  147. /package/dist/NotFoundContent/{NotFoundContent-7xV-zOG2.js → NotFoundContent-CV9fTylQ.js} +0 -0
  148. /package/dist/Radio/{Radio-DkrZHoG1.js → Radio-C2zJzZc3.js} +0 -0
  149. /package/dist/Table/{constants-CKqc9Os_.js → constants-CuBlYZLO.js} +0 -0
  150. /package/dist/vendors/{LocaleContext-BJdHS0sH.js → LocaleContext-CBcJzvUD.js} +0 -0
  151. /package/dist/vendors/{animations-BeI8JZp1.js → animations-Mlw78WYo.js} +0 -0
  152. /package/dist/vendors/{color-BeQo449h.js → color-BQYy0Wgy.js} +0 -0
  153. /package/dist/vendors/{cssVars-C4BlzyxA.js → cssVars-DoQgQ2CM.js} +0 -0
  154. /package/dist/vendors/{useFloatingOverlay-3KB88hpZ.js → useFloatingOverlay-WbbHmuT-.js} +0 -0
  155. /package/dist/vendors/{useFloatingPortal-DsEtsAGW.js → useFloatingPortal-B2SDNV5C.js} +0 -0
@@ -1,13 +1,10 @@
1
- import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { Fragment as r, cloneElement as i, createContext as a, isValidElement as ee, useCallback as te, useEffect as ne, useMemo as o, useRef as re, useState as ie } from "react";
3
- import { useControllableValue as ae } from "ahooks";
4
- import { FloatingArrow as oe, FloatingPortal as s, arrow as c, autoUpdate as l, flip as u, offset as d, safePolygon as f, shift as p, size as m, useClick as h, useDismiss as g, useFloating as _, useHover as v, useInteractions as se, useRole as ce, useTransitionStyles as le } from "@floating-ui/react";
5
- //#region src/utils/mergeRefs.ts
6
- var y = (...e) => (t) => {
7
- e.forEach((e) => {
8
- typeof e == "function" ? e(t) : e != null && (e.current = t);
9
- });
10
- }, b = a(null), x = {
1
+ import { n as e } from "../vendors/mergeRefs-TiJ0xjUN.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { Fragment as i, cloneElement as ee, createContext as a, isValidElement as te, useCallback as ne, useEffect as re, useMemo as o, useRef as ie, useState as s } from "react";
4
+ import { useControllableValue as c } from "ahooks";
5
+ import { FloatingArrow as l, FloatingPortal as u, arrow as d, autoUpdate as f, flip as p, offset as m, safePolygon as h, shift as g, size as _, useClick as v, useDismiss as y, useFloating as ae, useHover as oe, useInteractions as se, useRole as ce, useTransitionStyles as le } from "@floating-ui/react";
6
+ //#region src/components/Tooltip/context/TooltipFloatingContext.ts
7
+ var b = a(null), x = {
11
8
  "bsy-tooltip": "_bsy-tooltip_bqmfs_1",
12
9
  "bsy-tooltip__trigger": "_bsy-tooltip__trigger_bqmfs_4",
13
10
  "bsy-tooltip__content": "_bsy-tooltip__content_bqmfs_8"
@@ -15,12 +12,12 @@ var y = (...e) => (t) => {
15
12
  e(n), t(n);
16
13
  } : e : t, C = (e) => {
17
14
  if (!(e === "auto" || e === void 0)) return typeof e == "number" ? `${e}px` : e;
18
- }, fe = (e) => e.type === r || (e.type?.toString().includes("Fragment") ?? !1), w = ({ children: r, content: a, trigger: w = "hover", style: T, zIndex: E, showArrow: D = !0, placement: O = "bottom", onClose: k, hoverDelay: A = 500, getPopupContainer: j, moveToFloatingKeepOpen: M = !1, widthMode: N = "content", width: P, minWidth: F = 60, maxWidth: I = 340, offset: L = 10, fallbackPlacements: R, virtualReference: z, flipBoundary: B, animated: V = !1, animationConfig: H, ...pe }) => {
19
- let U = re(null), [me, he] = ie(null), [W, G] = ae(pe, {
15
+ }, fe = (e) => e.type === i || (e.type?.toString().includes("Fragment") ?? !1), w = ({ children: i, content: a, trigger: w = "hover", style: T, zIndex: E, showArrow: D = !0, placement: O = "bottom", onClose: k, hoverDelay: A = 500, getPopupContainer: j, moveToFloatingKeepOpen: M = !1, widthMode: N = "content", width: P, minWidth: F = 60, maxWidth: I = 340, offset: L = 10, fallbackPlacements: R, virtualReference: z, flipBoundary: B, animated: V = !1, animationConfig: H, ...pe }) => {
16
+ let U = ie(null), [me, he] = s(null), [W, G] = c(pe, {
20
17
  valuePropName: "visible",
21
18
  trigger: "onVisibleChange",
22
19
  defaultValue: !1
23
- }), ge = te((e) => {
20
+ }), ge = ne((e) => {
24
21
  !e && W && k && k(), G(e);
25
22
  }, [
26
23
  W,
@@ -30,11 +27,11 @@ var y = (...e) => (t) => {
30
27
  let e = R ? { fallbackPlacements: R } : {};
31
28
  B && (e.boundary = B);
32
29
  let t = [
33
- d(L),
34
- u(e),
35
- p({ padding: 8 })
30
+ m(L),
31
+ p(e),
32
+ g({ padding: 8 })
36
33
  ];
37
- return D && t.push(c({ element: U })), N === "reference" && t.push(m({ apply({ rects: e, elements: t }) {
34
+ return D && t.push(d({ element: U })), N === "reference" && t.push(_({ apply({ rects: e, elements: t }) {
38
35
  t.floating.style.width = `${e.reference.width}px`;
39
36
  let n = C(F);
40
37
  n && (t.floating.style.minWidth = n);
@@ -49,10 +46,10 @@ var y = (...e) => (t) => {
49
46
  R,
50
47
  B,
51
48
  D
52
- ]), { refs: K, floatingStyles: q, context: J } = _({
49
+ ]), { refs: K, floatingStyles: q, context: J } = ae({
53
50
  open: W,
54
51
  onOpenChange: ge,
55
- whileElementsMounted: W ? (e, t, n) => l(e, t, n, {
52
+ whileElementsMounted: W ? (e, t, n) => f(e, t, n, {
56
53
  animationFrame: !1,
57
54
  ancestorScroll: !0,
58
55
  ancestorResize: !0,
@@ -88,17 +85,17 @@ var y = (...e) => (t) => {
88
85
  F,
89
86
  I
90
87
  ]);
91
- ne(() => {
88
+ re(() => {
92
89
  z && K.setPositionReference(z);
93
90
  }, [z, K]);
94
91
  let { getReferenceProps: be, getFloatingProps: xe } = se([
95
- v(J, {
92
+ oe(J, {
96
93
  enabled: w === "hover",
97
94
  delay: { open: A },
98
- handleClose: M ? f() : void 0
95
+ handleClose: M ? h() : void 0
99
96
  }),
100
- h(J, { enabled: w === "click" }),
101
- g(J),
97
+ v(J, { enabled: w === "click" }),
98
+ y(J),
102
99
  ce(J, { role: "tooltip" })
103
100
  ]), Z = be(), Q = {
104
101
  ...Z,
@@ -114,9 +111,9 @@ var y = (...e) => (t) => {
114
111
  onMouseMove: (e) => {
115
112
  Z.onMouseMove?.(e);
116
113
  }
117
- }, Se = j?.(), Ce = typeof T?.background == "string" ? T.background : de, we = y(K.setFloating, he), $ = ye ? /* @__PURE__ */ t(s, {
114
+ }, Se = j?.(), Ce = typeof T?.background == "string" ? T.background : de, we = e(K.setFloating, he), $ = ye ? /* @__PURE__ */ n(u, {
118
115
  root: Se ?? void 0,
119
- children: /* @__PURE__ */ n("div", {
116
+ children: /* @__PURE__ */ r("div", {
120
117
  ref: we,
121
118
  style: V ? {
122
119
  ...X,
@@ -125,7 +122,7 @@ var y = (...e) => (t) => {
125
122
  ...xe(),
126
123
  className: x["bsy-tooltip__content"],
127
124
  onClick: (e) => e.stopPropagation(),
128
- children: [D ? /* @__PURE__ */ t(oe, {
125
+ children: [D ? /* @__PURE__ */ n(l, {
129
126
  ref: U,
130
127
  context: J,
131
128
  width: 14,
@@ -133,39 +130,39 @@ var y = (...e) => (t) => {
133
130
  tipRadius: 2,
134
131
  fill: Ce,
135
132
  d: ue
136
- }) : null, /* @__PURE__ */ t(b.Provider, {
133
+ }) : null, /* @__PURE__ */ n(b.Provider, {
137
134
  value: me,
138
135
  children: a
139
136
  })]
140
137
  })
141
138
  }) : null;
142
- if (ee(r) && !fe(r)) {
143
- let t = r.props, a = r.ref;
144
- return /* @__PURE__ */ n(e, { children: [i(r, {
145
- ...t,
139
+ if (te(i) && !fe(i)) {
140
+ let n = i.props, a = i.ref;
141
+ return /* @__PURE__ */ r(t, { children: [ee(i, {
142
+ ...n,
146
143
  ...Q,
147
- ref: a ? y(K.setReference, a) : K.setReference,
148
- style: t.style,
149
- onClick: S(t.onClick, Q.onClick),
150
- onMouseEnter: S(t.onMouseEnter, Q.onMouseEnter),
151
- onMouseLeave: S(t.onMouseLeave, Q.onMouseLeave),
152
- onMouseMove: S(t.onMouseMove, Q.onMouseMove)
144
+ ref: a ? e(K.setReference, a) : K.setReference,
145
+ style: n.style,
146
+ onClick: S(n.onClick, Q.onClick),
147
+ onMouseEnter: S(n.onMouseEnter, Q.onMouseEnter),
148
+ onMouseLeave: S(n.onMouseLeave, Q.onMouseLeave),
149
+ onMouseMove: S(n.onMouseMove, Q.onMouseMove)
153
150
  }), $] });
154
151
  }
155
- return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
152
+ return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
156
153
  className: x["bsy-tooltip"],
157
- children: /* @__PURE__ */ t("div", {
154
+ children: /* @__PURE__ */ n("div", {
158
155
  ref: K.setReference,
159
156
  ...Q,
160
157
  className: x["bsy-tooltip__trigger"],
161
- children: r
158
+ children: i
162
159
  })
163
160
  }), $] });
164
- }, T = ({ content: n, children: r, ...i }) => n ? /* @__PURE__ */ t(w, {
165
- content: n,
161
+ }, T = ({ content: e, children: r, ...i }) => e ? /* @__PURE__ */ n(w, {
162
+ content: e,
166
163
  ...i,
167
164
  children: r
168
- }) : /* @__PURE__ */ t(e, { children: r });
165
+ }) : /* @__PURE__ */ n(t, { children: r });
169
166
  T.displayName = "BsyTooltip";
170
167
  //#endregion
171
168
  export { b as n, T as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./Tooltip-DW_XP13m.js";
1
+ import { n as e, t } from "./Tooltip-B_SZOy6k.js";
2
2
  export { e as TooltipFloatingContext, t as default };
@@ -1,5 +1,5 @@
1
- import "../Icon/Icon-BQ3Whub2.js";
2
- import { t as e } from "../vendors/Tree-C7BgkjCQ.js";
3
- import "../CheckBox/CheckBox-CkVe5Boq.js";
4
- import "../Radio/Radio-DkrZHoG1.js";
1
+ import "../Icon/Icon-SQ5tu-yG.js";
2
+ import { t as e } from "../vendors/Tree-DqnOGJtB.js";
3
+ import "../CheckBox/CheckBox-ejvbDr-a.js";
4
+ import "../Radio/Radio-C2zJzZc3.js";
5
5
  export { e as Tree };
@@ -1 +1,2 @@
1
1
  export { DropDown as default } from './DropDown';
2
+ export type { DropDownProps, DropDownTheme, MenuItemType, OffsetType } from './interface';
@@ -50,6 +50,47 @@ export interface MenuItemType {
50
50
  [key: string]: any;
51
51
  }
52
52
 
53
+ /**
54
+ * 下拉组件级颜色 token
55
+ */
56
+ export interface DropDownTheme {
57
+ /**
58
+ * 浮层背景色
59
+ * @default #fff
60
+ */
61
+ colorBgContainer?: string;
62
+ /**
63
+ * 菜单项默认文字颜色
64
+ * @default #121211
65
+ */
66
+ colorText?: string;
67
+ /**
68
+ * 菜单项图标颜色
69
+ * @default #6f829e
70
+ */
71
+ colorIcon?: string;
72
+ /**
73
+ * 禁用态文字/图标颜色
74
+ * @default #999
75
+ */
76
+ colorTextDisabled?: string;
77
+ /**
78
+ * 菜单项悬停背景色
79
+ * @default #eff0f6
80
+ */
81
+ itemHoverBg?: string;
82
+ /**
83
+ * 高亮项背景色
84
+ * @default #f0f6ff
85
+ */
86
+ itemActiveBg?: string;
87
+ /**
88
+ * 高亮项文字/图标颜色
89
+ * @default #0265ff
90
+ */
91
+ itemActiveColor?: string;
92
+ }
93
+
53
94
  /**
54
95
  * 下拉组件的属性接口
55
96
  */
@@ -122,4 +163,8 @@ export interface DropDownProps {
122
163
  * @description 指定哪些菜单项应该被高亮显示
123
164
  */
124
165
  activeKey?: string[];
166
+ /**
167
+ * 组件级颜色 token
168
+ */
169
+ theme?: DropDownTheme;
125
170
  }
@@ -0,0 +1 @@
1
+ export { resolveDropDownThemeVars } from './resolveDropDownThemeVars';
@@ -0,0 +1,2 @@
1
+ import { DropDownTheme } from '../interface';
2
+ export declare const resolveDropDownThemeVars: (theme?: DropDownTheme) => Record<string, string>;
@@ -1,6 +1,6 @@
1
1
  import { ForwardedRef, Ref } from 'react';
2
2
  import { GanttDataItem, GanttProps } from './interface';
3
- declare function GanttInner<T extends GanttDataItem>({ data, columns, mode, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, tableData, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, }: GanttProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
+ declare function GanttInner<T extends GanttDataItem>({ data, columns, mode, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, tableData, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, theme, }: GanttProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
4
  /**
5
5
  * 保住 GanttProps&lt;T&gt; 泛型推导:React.forwardRef 默认会擦除组件级泛型。
6
6
  * 消费方传入 MyTask[] 时,onRowClick / tooltip / columns.render 的 item 应为 MyTask。
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export type HeaderStickyTopLabelProps = {
3
+ label: string;
4
+ dateLabel?: string;
5
+ /** 当前段是否为左侧阅读锚点(已吸附) */
6
+ isReadingAnchor: boolean;
7
+ };
8
+ declare const _default: React.MemoExoticComponent<({ label, dateLabel, isReadingAnchor }: HeaderStickyTopLabelProps) => import("react/jsx-runtime").JSX.Element>;
9
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { ElementRef } from '../../types.internal';
3
3
  export declare function useEdgeScroll(containerRef: ElementRef<HTMLDivElement>, onScrolledRef?: MutableRefObject<(() => void) | null>): {
4
- startEdgeDetection: (clientX: number, containerRect?: DOMRectReadOnly) => void;
4
+ startEdgeDetection: (clientX: number, containerRect?: DOMRectReadOnly) => number;
5
5
  stopEdgeScroll: () => void;
6
6
  };
@@ -12,7 +12,7 @@ export declare const CLICK_SUPPRESS_WINDOW_MS = 400;
12
12
  export declare const PENDING_TIMEOUT_MS = 30000;
13
13
  export declare const OFFSCREEN_SMOOTH_SCROLL_DISTANCE_RATIO = 1.5;
14
14
  export declare const MIN_DRAG_PX = 5;
15
- export declare const EDGE_SCROLL_ZONE_PX = 60;
15
+ export declare const EDGE_SCROLL_ZONE_PX = 20;
16
16
  export declare const EDGE_SCROLL_MAX_SPEED = 10;
17
17
  export declare const EDGE_SCROLL_MIN_SPEED = 2;
18
18
  export declare const HOVER_SCROLL_IDLE_MS = 150;
@@ -1,7 +1,7 @@
1
1
  import { GanttDataItem } from '../interface';
2
2
  import { GanttTableProps } from '../types.internal';
3
3
  declare const GanttTable: {
4
- <T extends GanttDataItem = GanttDataItem>({ data, columns, onRowClick, rowHeight, }: GanttTableProps<T>): import("react/jsx-runtime").JSX.Element;
4
+ <T extends GanttDataItem = GanttDataItem>({ data, columns, onRowClick, rowHeight, tableTheme, }: GanttTableProps<T>): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default GanttTable;
@@ -0,0 +1,3 @@
1
+ import { GanttTheme } from './interface';
2
+ export declare const GanttThemeProvider: import('react').Provider<GanttTheme | undefined>;
3
+ export declare const useGanttTheme: () => GanttTheme | undefined;
@@ -1,6 +1,7 @@
1
1
  export { default } from './Gantt';
2
- export type { GanttProps, GanttDataItem, GanttTaskItem, GanttSummaryItem, GanttColumn, GanttMode, GanttCalendarMode, GanttSubDayMode, GanttTimeInput, GanttDragPermission, GanttTaskTimeChangePayload, GanttCalendarTaskTimeChangePayload, GanttSubDayTaskTimeChangePayload, GanttChangeType, GanttTableSlotContext, GanttCollapseProps, GanttCollapsedKeys, HighlightTarget, HighlightTargetType, } from './interface';
2
+ export type { GanttProps, GanttDataItem, GanttTaskItem, GanttSummaryItem, GanttColumn, GanttMode, GanttCalendarMode, GanttSubDayMode, GanttTimeInput, GanttDragPermission, GanttTaskTimeChangePayload, GanttCalendarTaskTimeChangePayload, GanttSubDayTaskTimeChangePayload, GanttChangeType, GanttTableSlotContext, GanttCollapseProps, GanttCollapsedKeys, GanttTheme, HighlightTarget, HighlightTargetType, } from './interface';
3
3
  export { ALL_GANTT_MODES, CALENDAR_TIER_MODES, DEFAULT_GANTT_MODE } from './interface';
4
+ export { resolveGanttTheme, resolveGanttThemeVars, resolveTableThemeFromGantt, } from './utils/theme';
4
5
  export { GANTT_DEFAULT_ROW_HEIGHT, GANTT_TABLE_HEADER_ROW_SPAN, DRAG_MODE_MOVE, DRAG_MODE_RESIZE_START, DRAG_MODE_RESIZE_END, EMPTY_GROUP_VALUE, } from './GanttChart/utils/constants';
5
6
  export { isGroupCollapsed } from './utils/collapseKeys';
6
7
  export { isHighlightMatch } from './utils/highlightTarget';
@@ -1,4 +1,39 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode } from 'react';
2
+ import { DropDownTheme } from '../DropDown';
3
+ import { TableTheme } from '../Table';
4
+ /** Gantt 组件 Design Token(命名对齐 Calendar / antd 习惯) */
5
+ export interface GanttTheme {
6
+ /** 主要文字,默认 #121111 */
7
+ colorText?: string;
8
+ /** 次要文字,默认 #666 */
9
+ colorTextSecondary?: string;
10
+ /** 图表内容区列分割线,默认 #e0e0e0 */
11
+ colorSplit?: string;
12
+ /** 表头边框线 / 左表边框,默认 #e0e0e0 */
13
+ colorBorder?: string;
14
+ /** 高亮实色,默认 #0265ff */
15
+ colorPrimary?: string;
16
+ /** 图表区 / 表头 top / 左表等容器背景,默认 #fff;可设 transparent 透出外层背景图 */
17
+ colorBgContainer?: string;
18
+ /** 周末列背景,默认 #fafafa */
19
+ colorBgWeekend?: string;
20
+ /** 行 hover 背景,默认 #f4f6fc */
21
+ colorBgRowHover?: string;
22
+ /** 今日竖线色;未指定时由 colorPrimary × 0.2 推导 */
23
+ todayLineColor?: string;
24
+ /** 「今天」按钮 hover 背景;未指定时由 colorPrimary × 0.1 推导 */
25
+ toolbarTodayHoverBg?: string;
26
+ /** 工具栏模式箭头 / 左右滚动箭头默认色;未传时 SCSS 跟随 colorText */
27
+ toolbarIconColor?: string;
28
+ /** 工具栏模式箭头(hover/展开)与滚动箭头 hover 色;未传时 SCSS 跟随 colorPrimary */
29
+ toolbarIconHoverColor?: string;
30
+ /** 离屏跳转箭头默认背景,默认 #eff0f6 */
31
+ arrowBg?: string;
32
+ /** 头部日期工具栏区域背景;未传时 SCSS 跟随 colorBgContainer */
33
+ toolbarBg?: string;
34
+ /** 模式切换 DropDown 的主题;未指定时由 Gantt token 推导 */
35
+ dropdownTheme?: DropDownTheme;
36
+ }
2
37
  /** 日历档 viewMode(粗)——单一来源 */
3
38
  export declare const CALENDAR_TIER_MODES: readonly ["day", "week", "month", "quarter", "quarterMonth", "year"];
4
39
  /** 亚日档 viewMode(细)——单一来源 */
@@ -99,6 +134,8 @@ export interface GanttTableSlotContext<T extends GanttDataItem = GanttDataItem>
99
134
  rowHeight: number;
100
135
  collapsedKeys?: GanttCollapsedKeys;
101
136
  onToggleCollapse?: (groupKey: string) => void | Promise<void>;
137
+ /** 由 GanttTheme 映射的左表主题;自定义 renderTable 时应透传给 Table */
138
+ tableTheme?: TableTheme;
102
139
  }
103
140
  type GanttPropsBase<T extends GanttDataItem = GanttDataItem> = {
104
141
  data: T[];
@@ -115,6 +152,8 @@ type GanttPropsBase<T extends GanttDataItem = GanttDataItem> = {
115
152
  tableData?: unknown[];
116
153
  renderTable?: (ctx: GanttTableSlotContext<T>) => ReactNode;
117
154
  emptyOverlay?: ReactNode;
155
+ /** 组件级颜色 token */
156
+ theme?: GanttTheme;
118
157
  };
119
158
  /** 受控折叠:必须同时提供 keys 与 toggle,否则点击后无法回写 */
120
159
  type GanttCollapseControlled = {
@@ -1,7 +1,7 @@
1
1
  import { ForwardedRef, Ref } from 'react';
2
2
  import { GanttDataItem } from '../interface';
3
3
  import { GanttLayoutProps } from '../types.internal';
4
- declare function GanttLayoutInner<T extends GanttDataItem>({ data, tableData, columns, mode: modeProp, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, }: GanttLayoutProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ declare function GanttLayoutInner<T extends GanttDataItem>({ data, tableData, columns, mode: modeProp, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, theme, }: GanttLayoutProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
5
  declare const GanttLayout: <T extends GanttDataItem = GanttDataItem>(props: GanttLayoutProps<T> & {
6
6
  ref?: Ref<HTMLDivElement>;
7
7
  }) => ReturnType<typeof GanttLayoutInner>;
@@ -1,6 +1,7 @@
1
1
  import { MouseEvent, MutableRefObject, ReactNode, RefObject } from 'react';
2
2
  import { VirtualItem } from '@tanstack/react-virtual';
3
3
  import { LocaleParams } from '../../locale/formatLocaleMessage';
4
+ import { TableTheme } from '../Table';
4
5
  import { GanttChangeType, GanttCollapsedKeys, GanttColumn, GanttDataItem, GanttLayoutInputProps, GanttMode, GanttProps, HighlightTarget } from './interface';
5
6
  /** 运行时允许 null/undefined;公开受控契约见 GanttCollapsedKeys */
6
7
  export type CollapsedKeys = GanttCollapsedKeys | undefined | null;
@@ -42,6 +43,8 @@ export interface TopSegment {
42
43
  left: number;
43
44
  width: number;
44
45
  label: string;
46
+ /** tenMinute / oneMinute 非 0 点:吸附为阅读锚点时补全的日期前缀;0 点已含日期,不设 */
47
+ dateLabel?: string;
45
48
  }
46
49
  export interface WeekendSegment {
47
50
  id: string;
@@ -280,6 +283,7 @@ export interface GanttTableProps<T extends GanttDataItem = GanttDataItem> {
280
283
  columns?: GanttColumn<T>[];
281
284
  onRowClick?: GanttProps<T>['onRowClick'];
282
285
  rowHeight?: number;
286
+ tableTheme?: TableTheme;
283
287
  }
284
288
  export interface GanttResizeIndicatorProps {
285
289
  tableWidth: number;
@@ -0,0 +1,3 @@
1
+ export { resolveGanttTheme } from './resolveGanttTheme';
2
+ export { mapGanttThemeToCssVars, resolveGanttThemeVars } from './resolveGanttThemeVars';
3
+ export { resolveTableThemeFromGantt } from './resolveTableThemeFromGantt';
@@ -0,0 +1,3 @@
1
+ import { GanttTheme } from '../../interface';
2
+ /** 补全 GanttTheme 中未显式指定的推导 token;theme 为 undefined 时返回 undefined。 */
3
+ export declare const resolveGanttTheme: (theme?: GanttTheme) => GanttTheme | undefined;
@@ -0,0 +1,5 @@
1
+ import { GanttTheme } from '../../interface';
2
+ /** 将已补全的 GanttTheme 映射为 CSS 变量。 */
3
+ export declare const mapGanttThemeToCssVars: (resolved: GanttTheme) => Record<string, string>;
4
+ /** 将 GanttTheme 映射为 CSS 变量(含缺省推导色)。 */
5
+ export declare const resolveGanttThemeVars: (theme?: GanttTheme) => Record<string, string>;
@@ -0,0 +1,4 @@
1
+ import { TableTheme } from '../../../Table';
2
+ import { GanttTheme } from '../../interface';
3
+ /** 将 GanttTheme 中与左表相关的 token 映射为 TableTheme。 */
4
+ export declare const resolveTableThemeFromGantt: (theme?: GanttTheme) => TableTheme | undefined;
@@ -0,0 +1,3 @@
1
+ import { ScrollBarProps } from './interface';
2
+ declare const ScrollBar: React.FC<ScrollBarProps>;
3
+ export default ScrollBar;
@@ -0,0 +1,3 @@
1
+ export { default } from './ScrollBar';
2
+ export { default as ScrollBar } from './ScrollBar';
3
+ export type { ScrollBarProps } from './interface';
@@ -0,0 +1,23 @@
1
+ import { CSSProperties, ReactNode, Ref } from 'react';
2
+ import { EventListeners, PartialOptions } from 'overlayscrollbars';
3
+ export interface ScrollBarProps {
4
+ children?: ReactNode;
5
+ className?: string;
6
+ style?: CSSProperties;
7
+ /** 内容区 class */
8
+ contentClassName?: string;
9
+ /** 绑定 OverlayScrollbars viewport,供无限滚动等场景使用 */
10
+ viewportRef?: Ref<HTMLElement | null>;
11
+ /**
12
+ * viewport 滚动回调(接到 OverlayScrollbars events.scroll)。
13
+ * 勿依赖根节点 React onScroll,真正滚动节点是 viewport。
14
+ */
15
+ onScroll?: (event: Event) => void;
16
+ options?: PartialOptions | false | null;
17
+ events?: EventListeners | false | null;
18
+ /**
19
+ * 是否延迟初始化。默认 true;传入 viewportRef 时默认 false,
20
+ * 避免异步初始化后仅写入 ref、ahooks 无法重绑 scroll 监听。
21
+ */
22
+ defer?: boolean | IdleRequestOptions;
23
+ }
@@ -2,7 +2,8 @@ export { default as Table } from './Table';
2
2
  export { default } from './Table';
3
3
  export { default as TableBody } from './components/TableBody';
4
4
  export type { TableBodyProps } from './components/TableBody';
5
- export type { TableProps, ColumnConfig, HeaderRenderApi, TableRenderBodyContext, } from './interface';
5
+ export type { TableProps, TableTheme, ColumnConfig, HeaderRenderApi, TableRenderBodyContext, } from './interface';
6
+ export { resolveTableThemeVars } from './style';
6
7
  export { processRowspan, shouldRenderCell, getCellRowspan } from './utils/processRowspan';
7
8
  export { getRowKey, calculateFixedOffset, splitFixedColumns, getColumnsWidth, expandLeafColumns, sortData, } from './utils/tableUtils';
8
9
  export { useTableVirtual, useColumnResize } from './hooks';
@@ -37,6 +37,21 @@ export interface OverlayScrollbarOptions {
37
37
  theme?: string;
38
38
  autoHide?: 'never' | 'scroll' | 'move' | 'leave';
39
39
  }
40
+ /** Table 组件级颜色 token(命名对齐 Calendar / antd 习惯) */
41
+ export interface TableTheme {
42
+ /** 整体边框色(单元格分隔线、行底边、固定列遮罩等),默认 #e0e0e0 */
43
+ colorBorder?: string;
44
+ /** 表头单元格背景,默认 #f5f7fa */
45
+ colorBgHeader?: string;
46
+ /** tbody 单元格背景,默认 #fff */
47
+ colorBgContainer?: string;
48
+ /** tbody 文字颜色,默认 #000 */
49
+ colorText?: string;
50
+ /** 表头文字颜色,默认 #000 */
51
+ colorTextHeading?: string;
52
+ /** 行 hover / 左右联动高亮背景,默认 #f4f6fc(与 Gantt 左表一致) */
53
+ colorBgRowHover?: string;
54
+ }
40
55
  /** renderBody 注入上下文:分组等自定义 body 应复用已拆分列,避免二次 splitFixedColumns */
41
56
  export interface TableRenderBodyContext {
42
57
  columns: ColumnConfig[];
@@ -107,6 +122,8 @@ export interface TableProps {
107
122
  onRenderEmpty?: () => ReactNode;
108
123
  overlayScrollbarOptions?: OverlayScrollbarOptions;
109
124
  wrapperStyle?: CSSProperties;
125
+ /** 组件级颜色 token */
126
+ theme?: TableTheme;
110
127
  }
111
128
  export interface TableRef {
112
129
  clearRowHeightCache: (rowIds?: string | number | Array<string | number>) => void;
@@ -0,0 +1 @@
1
+ export { resolveTableThemeVars } from './resolveTableThemeVars';
@@ -0,0 +1,3 @@
1
+ import { TableTheme } from '../interface';
2
+ /** 将 TableTheme 映射为 CSS 变量;不做颜色推导。 */
3
+ export declare const resolveTableThemeVars: (theme?: TableTheme) => Record<string, string>;
@@ -17,7 +17,10 @@ export { default as Checkbox } from './CheckBox';
17
17
  export { default as Ratio } from './Radio';
18
18
  export { default as Tabs } from './Tabs';
19
19
  export { default as DropDown } from './DropDown';
20
+ export type { DropDownProps, DropDownTheme, MenuItemType, OffsetType } from './DropDown';
20
21
  export { default as Loading } from './Loading';
22
+ export { ScrollBar } from './ScrollBar';
23
+ export type { ScrollBarProps } from './ScrollBar';
21
24
  export { NotFoundContent } from './NotFoundContent';
22
25
  export { default as TabSelect } from './Tabs/TabSelect/TabSelect';
23
26
  export { default as InputTag } from './InputTag';
@@ -26,5 +29,5 @@ export type { CalendarProps, CalendarDataItem, CalendarTimeInput, CalendarMode,
26
29
  export { default as DatePicker } from './DatePicker';
27
30
  export type { DatePickerProps, DatePickerTheme, PickerType } from './DatePicker';
28
31
  export { default as Table } from './Table';
29
- export type { TableProps, ColumnConfig, HeaderRenderApi } from './Table';
30
- export { processRowspan, shouldRenderCell, getCellRowspan, getRowKey, calculateFixedOffset, splitFixedColumns, getColumnsWidth, expandLeafColumns, sortData, useTableVirtual, useColumnResize, } from './Table';
32
+ export type { TableProps, TableTheme, ColumnConfig, HeaderRenderApi } from './Table';
33
+ export { processRowspan, shouldRenderCell, getCellRowspan, getRowKey, calculateFixedOffset, splitFixedColumns, getColumnsWidth, expandLeafColumns, sortData, useTableVirtual, useColumnResize, resolveTableThemeVars, } from './Table';