@baishuyun/ui-base 6.21.1 → 6.23.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 (53) hide show
  1. package/dist/Amap/{Amap-CNsoge6e.js → Amap-Cb2VY7wC.js} +1 -1
  2. package/dist/Amap/index.js +3 -3
  3. package/dist/Calendar/{Calendar-BaIHL7cB.js → Calendar-D-fgXT3x.js} +2 -2
  4. package/dist/Calendar/index.js +4 -4
  5. package/dist/Card/{Card-DAz0dvA3.js → Card-B5O3eZW-.js} +9 -9
  6. package/dist/Card/index.js +2 -2
  7. package/dist/CheckBox/index.js +1 -1
  8. package/dist/ColorPicker/index.js +1 -1
  9. package/dist/ConfigProvider/index.js +2 -2
  10. package/dist/DatePicker/{DatePicker-CbfmdBaK.js → DatePicker-CaTAjzqZ.js} +1 -1
  11. package/dist/DatePicker/{DatePickerPanel-BDJYZs1q.js → DatePickerPanel-CHCJvkxg.js} +1 -1
  12. package/dist/DatePicker/index.js +2 -2
  13. package/dist/DropDown/{DropDown-B_szM67V.js → DropDown-DuLxmeZL.js} +9 -9
  14. package/dist/DropDown/index.js +2 -2
  15. package/dist/Editor/index.js +1092 -979
  16. package/dist/Gantt/index.js +5 -5
  17. package/dist/Icon/index.js +1 -1
  18. package/dist/InputTag/{InputTag-C_5nm0eo.js → InputTag-UTPj8g-b.js} +6 -6
  19. package/dist/InputTag/index.js +2 -2
  20. package/dist/Loading/index.js +1 -1
  21. package/dist/Modal/{Modal-eZijJ7CB.js → Modal-BUDRpdzz.js} +3 -3
  22. package/dist/Modal/index.js +2 -2
  23. package/dist/NotFoundContent/index.js +1 -1
  24. package/dist/Overlay/index.js +1 -1
  25. package/dist/Radio/index.js +1 -1
  26. package/dist/ScrollBar/index.js +1 -1
  27. package/dist/Segmented/Segmented-B7QZjjZ_.js +87 -0
  28. package/dist/Segmented/index.js +2 -2
  29. package/dist/Select/{Select-DryXF1Tp.js → Select-ByqucfXU.js} +1 -1
  30. package/dist/Select/index.js +2 -2
  31. package/dist/Table/index.js +1 -1
  32. package/dist/Tabs/{Tabs-Imowx4vq.js → Tabs-CnEBK2Ex.js} +10 -10
  33. package/dist/Tabs/index.js +2 -2
  34. package/dist/Tooltip/index.js +1 -1
  35. package/dist/Tree/index.js +1 -1
  36. package/dist/components/DropDown/interface.d.ts +1 -1
  37. package/dist/components/Editor/context/EditorContainerContext.d.ts +2 -1
  38. package/dist/components/Editor/index.d.ts +1 -1
  39. package/dist/components/Editor/interface.d.ts +17 -2
  40. package/dist/components/Editor/plugins/DefaultTextStylePlugin.d.ts +1 -0
  41. package/dist/components/Editor/plugins/ImePendingFormatPlugin.d.ts +1 -0
  42. package/dist/components/Editor/utils/applyDefaultTextStyle.d.ts +2 -0
  43. package/dist/components/Editor/utils/imePendingFormat.d.ts +8 -0
  44. package/dist/components/Editor/utils/readTextFormats.d.ts +3 -1
  45. package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +1 -0
  46. package/dist/components/Segmented/Segmented.type.d.ts +4 -0
  47. package/dist/components/Select/interface.d.ts +4 -2
  48. package/dist/index.js +12 -12
  49. package/dist/style.css +1 -1
  50. package/dist/vendors/{ConfigProvider-gZYvcwIQ.js → ConfigProvider-Bc5czEhx.js} +5 -5
  51. package/dist/vendors/{version-CyVENVWD.js → version-3aWFwNcK.js} +1 -1
  52. package/package.json +1 -1
  53. package/dist/Segmented/Segmented-BkTy5v9V.js +0 -87
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-DrdQOEJE.js";
4
4
  import "../vendors/LocaleContext-DXQoOKM2.js";
@@ -11,7 +11,7 @@ import "../Select/SelectInputSearch-MApQHnU9.js";
11
11
  import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
12
12
  import "../ScrollBar/ScrollBar-IMTuAOF5.js";
13
13
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
14
- import { t as i } from "../DropDown/DropDown-B_szM67V.js";
14
+ import { t as i } from "../DropDown/DropDown-DuLxmeZL.js";
15
15
  import { t as a } from "../Table/Table-8ac6xLZv.js";
16
16
  import { isFunction as o, isNumber as s, isString as c } from "lodash-es";
17
17
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -2076,7 +2076,7 @@ var _n = k({
2076
2076
  let n = e.trim();
2077
2077
  return V.test(n) ? bn(n, t) : null;
2078
2078
  }, Sn = (e, t = 2.5) => {
2079
- if (!e || !c(e)) return "#121211";
2079
+ if (!e || !c(e)) return "#121111";
2080
2080
  let n, r, i;
2081
2081
  if (e.startsWith("#")) {
2082
2082
  let t = e.replace("#", ""), a = t.length === 3 ? [...t].map((e) => e + e) : [
@@ -2087,13 +2087,13 @@ var _n = k({
2087
2087
  [n, r, i] = a.map((e) => parseInt(e, 16));
2088
2088
  } else {
2089
2089
  let t = (e.match(/\d+/g) || []).map(Number);
2090
- if ([n, r, i] = t.slice(0, 3), n === void 0 || Number.isNaN(n)) return "#121211";
2090
+ if ([n, r, i] = t.slice(0, 3), n === void 0 || Number.isNaN(n)) return "#121111";
2091
2091
  }
2092
2092
  let a = (e) => {
2093
2093
  let t = e / 255;
2094
2094
  return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
2095
2095
  };
2096
- return 1.05 / (.2126 * a(n) + .7152 * a(r) + .0722 * a(i) + .05) >= t ? "#ffffff" : "#121211";
2096
+ return 1.05 / (.2126 * a(n) + .7152 * a(r) + .0722 * a(i) + .05) >= t ? "#ffffff" : "#121111";
2097
2097
  }, Cn, wn = () => {
2098
2098
  if (Cn !== void 0) return Cn;
2099
2099
  try {
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import { t as e } from "./Icon-DrdQOEJE.js";
3
3
  export { e as default };
@@ -8,12 +8,12 @@ import { useControllableValue as d } from "ahooks";
8
8
  import { motion as f } from "motion/react";
9
9
  //#region src/components/InputTag/input-tag.module.scss
10
10
  var p = {
11
- "bsy-inputTag": "_bsy-inputTag_46spj_11",
12
- "bsy-inputTag__container": "_bsy-inputTag__container_46spj_22",
13
- "bsy-inputTag__inputContainer": "_bsy-inputTag__inputContainer_46spj_27",
14
- "bsy-inputTag__inputContainer--zeroMargin": "_bsy-inputTag__inputContainer--zeroMargin_46spj_37",
15
- "bsy-inputTag__input": "_bsy-inputTag__input_46spj_27",
16
- "scale-in": "_scale-in_46spj_1"
11
+ "bsy-inputTag": "_bsy-inputTag_ppyfd_11",
12
+ "bsy-inputTag__container": "_bsy-inputTag__container_ppyfd_22",
13
+ "bsy-inputTag__inputContainer": "_bsy-inputTag__inputContainer_ppyfd_27",
14
+ "bsy-inputTag__inputContainer--zeroMargin": "_bsy-inputTag__inputContainer--zeroMargin_ppyfd_37",
15
+ "bsy-inputTag__input": "_bsy-inputTag__input_ppyfd_27",
16
+ "scale-in": "_scale-in_ppyfd_1"
17
17
  }, m = {
18
18
  GAP: 4,
19
19
  OFFSET: 3,
@@ -1,8 +1,8 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-DrdQOEJE.js";
4
4
  import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../vendors/useLocale-Be4e7Xfn.js";
6
6
  import "../ScrollBar/ScrollBar-IMTuAOF5.js";
7
- import { t as e } from "./InputTag-C_5nm0eo.js";
7
+ import { t as e } from "./InputTag-UTPj8g-b.js";
8
8
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../vendors/LocaleContext-DXQoOKM2.js";
3
3
  import "../vendors/useLocale-Be4e7Xfn.js";
4
4
  import { t as e } from "./Loading-Cherk9Ax.js";
@@ -5,14 +5,14 @@ import { useState as a } from "react";
5
5
  import { Modal as o } from "antd";
6
6
  import { useControllableValue as s } from "ahooks";
7
7
  //#region src/components/Modal/constants.ts
8
- var c = "bsy-modal-motion", l = "bsy-modal-mask-motion", u = "rgba(0, 0, 0, 0.5)", d = "_modal_v21jb_1", f = "_modal__title_v21jb_7", p = "_modal__actions_v21jb_20", m = "_modal__button_groups_v21jb_24", h = "_modal__button_v21jb_24", g = "_modal__icon_v21jb_44", _ = {
8
+ var c = "bsy-modal-motion", l = "bsy-modal-mask-motion", u = "rgba(0, 0, 0, 0.5)", d = "_modal_1lxmi_1", f = "_modal__title_1lxmi_7", p = "_modal__actions_1lxmi_20", m = "_modal__button_groups_1lxmi_24", h = "_modal__button_1lxmi_24", g = "_modal__icon_1lxmi_44", _ = {
9
9
  modal: d,
10
10
  modal__title: f,
11
- "modal__title-text": "_modal__title-text_v21jb_16",
11
+ "modal__title-text": "_modal__title-text_1lxmi_16",
12
12
  modal__actions: p,
13
13
  modal__button_groups: m,
14
14
  modal__button: h,
15
- "modal__button--fullscreen": "_modal__button--fullscreen_v21jb_41",
15
+ "modal__button--fullscreen": "_modal__button--fullscreen_1lxmi_41",
16
16
  modal__icon: g
17
17
  }, v = (d) => {
18
18
  let { fullSwitch: f = !1, afterClose: p } = d, [m, h] = s(d, {
@@ -1,5 +1,5 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
- import { t as e } from "./Modal-eZijJ7CB.js";
4
+ import { t as e } from "./Modal-BUDRpdzz.js";
5
5
  export { e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
3
3
  export { e as NotFoundContent };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import { a as e, i as t, n, t as r } from "./OverlayContext-CVSFoyqN.js";
3
3
  export { r as OVERLAY_Z_BASE, n as OVERLAY_Z_STEP, t as OverlayProvider, e as useOverlayZIndex };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import { t as e } from "./Radio-C0OAW-K-.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-IMTuAOF5.js";
4
4
  export { e as ScrollBar, e as default };
@@ -0,0 +1,87 @@
1
+ import { t as e } from "../vendors/cssVars-UpriQzph.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { useCallback as r, useLayoutEffect as i, useMemo as a, useRef as o, useState as s } from "react";
4
+ import c from "clsx";
5
+ import { useControllableValue as l } from "ahooks";
6
+ import { motion as u } from "motion/react";
7
+ //#region src/components/Segmented/Segmented.module.scss
8
+ var d = {
9
+ "bsy-segmented": "_bsy-segmented_17gb6_1",
10
+ "bsy-segmented--block": "_bsy-segmented--block_17gb6_12",
11
+ "bsy-segmented__item": "_bsy-segmented__item_17gb6_17",
12
+ "bsy-segmented__item--disabled": "_bsy-segmented__item--disabled_17gb6_31",
13
+ "bsy-segmented__item--block": "_bsy-segmented__item--block_17gb6_36",
14
+ "bsy-segmented__item--active": "_bsy-segmented__item--active_17gb6_44",
15
+ "bsy-segmented__item--inactive": "_bsy-segmented__item--inactive_17gb6_48",
16
+ "bsy-segmented__slider": "_bsy-segmented__slider_17gb6_56"
17
+ }, f = {
18
+ duration: .32,
19
+ ease: [
20
+ .34,
21
+ 1.2,
22
+ .64,
23
+ 1
24
+ ]
25
+ }, p = { duration: 0 }, m = (m) => {
26
+ let { options: h, block: g = !1, disabled: _ = !1, enableAnimation: v = !1, theme: y } = m, [b, x] = l(m), [S, C] = s({
27
+ width: 0,
28
+ left: 0
29
+ }), w = o(null), T = o(/* @__PURE__ */ new Map()), E = o(!1), D = b != null && h.some((e) => e.value === b), O = r(() => {
30
+ if (!D) return;
31
+ let e = T.current.get(b), t = w.current;
32
+ if (e && t) {
33
+ let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
34
+ C({
35
+ width: r.width,
36
+ left: r.left - n.left
37
+ });
38
+ }
39
+ }, [b, D]);
40
+ i(() => {
41
+ if (v && E.current) {
42
+ let e = requestAnimationFrame(() => {
43
+ O();
44
+ });
45
+ return () => cancelAnimationFrame(e);
46
+ }
47
+ O();
48
+ }, [
49
+ b,
50
+ v,
51
+ O
52
+ ]), i(() => {
53
+ let e = new ResizeObserver(O);
54
+ return w.current && e.observe(w.current), () => {
55
+ e.disconnect();
56
+ };
57
+ }, [O]);
58
+ let k = a(() => {
59
+ let t = {};
60
+ return e(t, "--bsy-segmented-color", y?.colorText), e(t, "--bsy-segmented-background", y?.trackBg), y?.itemSelectedBg && (t["--bsy-segmented-slider-background"] = y.itemSelectedBg, t["--bsy-segmented-slider-border"] = y.itemSelectedBg), e(t, "--bsy-segmented-active-color", y?.itemSelectedColor), e(t, "--bsy-segmented-hover-background", y?.itemHoverBg), e(t, "--bsy-segmented-hover-border", y?.itemHoverBorder), t;
61
+ }, [y]);
62
+ return /* @__PURE__ */ n("div", {
63
+ ref: w,
64
+ className: c(d["bsy-segmented"], g && d["bsy-segmented--block"]),
65
+ style: {
66
+ ...k,
67
+ ...g ? { gridTemplateColumns: `repeat(${h.length}, 1fr)` } : null
68
+ },
69
+ children: [D ? /* @__PURE__ */ t(u.div, {
70
+ className: d["bsy-segmented__slider"],
71
+ animate: S,
72
+ transition: v && E.current ? f : p
73
+ }) : null, h.map((e) => /* @__PURE__ */ t("button", {
74
+ ref: (t) => {
75
+ t ? T.current.set(e.value, t) : T.current.delete(e.value);
76
+ },
77
+ onClick: () => {
78
+ _ || (v && e.value !== b && (E.current = !0), x(e.value));
79
+ },
80
+ className: c(d["bsy-segmented__item"], g && d["bsy-segmented__item--block"], b === e.value ? d["bsy-segmented__item--active"] : d["bsy-segmented__item--inactive"], { [d["bsy-segmented__item--disabled"]]: _ }),
81
+ children: e.label
82
+ }, e.value))]
83
+ });
84
+ };
85
+ m.displayName = "BsySegmented";
86
+ //#endregion
87
+ export { m as t };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CyVENVWD.js";
2
- import { t as e } from "./Segmented-BkTy5v9V.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
+ import { t as e } from "./Segmented-B7QZjjZ_.js";
3
3
  export { e as default };
@@ -548,7 +548,7 @@ xe.displayName = "BsySelectPanel";
548
548
  var Se = (e) => {
549
549
  if (!e) return {};
550
550
  let t = {}, n = e.colorPrimary;
551
- return s(t, "--bsy-select-color-bg", e.colorBgContainer), s(t, "--bsy-select-color-bg-elevated", e.colorBgElevated ?? e.colorBgContainer), s(t, "--bsy-select-color-text", e.colorText), s(t, "--bsy-select-color-text-placeholder", e.colorTextPlaceholder), s(t, "--bsy-select-color-icon", e.colorIcon), s(t, "--bsy-select-color-icon-hover", e.colorIconHover ?? n), s(t, "--bsy-select-color-border", e.colorBorder), s(t, "--bsy-select-color-border-hover", e.colorBorderHover ?? n), s(t, "--bsy-select-color-bg-disabled", e.colorBgDisabled), s(t, "--bsy-select-color-text-disabled", e.colorTextDisabled), s(t, "--bsy-select-color-border-disabled", e.colorBorderDisabled), s(t, "--bsy-select-item-hover-bg", e.itemHoverBg), s(t, "--bsy-select-item-active-bg", e.itemActiveBg), s(t, "--bsy-select-item-active-color", e.itemActiveColor ?? n), s(t, "--bsy-select-item-color-disabled", e.itemColorDisabled), s(t, "--bsy-select-item-system-color", e.itemSystemColor), s(t, "--bsy-select-color-highlight", e.colorHighlight ?? n), s(t, "--bsy-select-tag-bg", e.tagBg), s(t, "--bsy-select-tag-color", e.tagColor), s(t, "--bsy-select-tag-bg-disabled", e.tagBgDisabled), s(t, "--bsy-select-tag-color-disabled", e.tagColorDisabled), t;
551
+ return s(t, "--bsy-select-color-bg", e.colorBgContainer), s(t, "--bsy-select-color-bg-elevated", e.colorBgElevated ?? e.colorBgContainer), s(t, "--bsy-select-color-text", e.colorText), s(t, "--bsy-select-color-input-value", e.colorInputValue), s(t, "--bsy-select-color-text-placeholder", e.colorTextPlaceholder), s(t, "--bsy-select-color-icon", e.colorIcon), s(t, "--bsy-select-color-icon-hover", e.colorIconHover ?? n), s(t, "--bsy-select-color-border", e.colorBorder), s(t, "--bsy-select-color-border-hover", e.colorBorderHover ?? n), s(t, "--bsy-select-color-bg-disabled", e.colorBgDisabled), s(t, "--bsy-select-color-text-disabled", e.colorTextDisabled), s(t, "--bsy-select-color-border-disabled", e.colorBorderDisabled), s(t, "--bsy-select-item-hover-bg", e.itemHoverBg), s(t, "--bsy-select-item-active-bg", e.itemActiveBg), s(t, "--bsy-select-item-active-color", e.itemActiveColor ?? n), s(t, "--bsy-select-item-color-disabled", e.itemColorDisabled), s(t, "--bsy-select-item-system-color", e.itemSystemColor), s(t, "--bsy-select-color-highlight", e.colorHighlight ?? n), s(t, "--bsy-select-tag-bg", e.tagBg), s(t, "--bsy-select-tag-color", e.tagColor), s(t, "--bsy-select-tag-bg-disabled", e.tagBgDisabled), s(t, "--bsy-select-tag-color-disabled", e.tagColorDisabled), t;
552
552
  }, Ce = T((e, i) => {
553
553
  let { options: s = [], type: c = z.SINGLE, fieldNames: l, clearable: u = !0, disabled: d = !1, placeholder: f, labelRender: p, onOtherInputChange: h, onOpenChange: g, onPopupScroll: _, prefix: v, suffixIcon: y, ghost: b, inputValueStyle: C, tagStyle: w, zIndex: T, zIndexMask: E, otherInputPosition: O = "bottom", getPopupContainer: k, theme: A } = e, P = Number.parseFloat(e.popupMinWidth ?? ""), re = e.popupMatchSelectWidth ?? (Number.isFinite(P) ? P : !0), L = se[c], B = t(T), V = E ?? B - 1, { t: H } = r(), U = ee(), { onChange: W } = e, G = l || ce, [K, fe] = ne(e, {
554
554
  defaultValue: L === R.SINGLE ? void 0 : [],
@@ -1,11 +1,11 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
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-Be4e7Xfn.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
- import { n as e, r as t, t as n } from "./Select-DryXF1Tp.js";
8
+ import { n as e, r as t, t as n } from "./Select-ByqucfXU.js";
9
9
  import "./SelectInputSearch-MApQHnU9.js";
10
10
  import "../vendors/Tree-DWK-JPnJ.js";
11
11
  import "../CheckBox/CheckBox-BErX3YWP.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../vendors/useLocale-Be4e7Xfn.js";
@@ -17,14 +17,14 @@ var T = {
17
17
  CARD: "card",
18
18
  FILLED_CARD: "filled-card",
19
19
  BADGE_CARD: "badge-card"
20
- }, E = u({ type: T.LINE }), D = "_active_nxjon_18", O = "_disabled_nxjon_26", k = "_line_nxjon_44", A = "_card_nxjon_53", j = {
21
- "bsy-tab": "_bsy-tab_nxjon_1",
22
- "badge-card": "_badge-card_nxjon_9",
20
+ }, E = u({ type: T.LINE }), D = "_active_cph8b_18", O = "_disabled_cph8b_26", k = "_line_cph8b_44", A = "_card_cph8b_53", j = {
21
+ "bsy-tab": "_bsy-tab_cph8b_1",
22
+ "badge-card": "_badge-card_cph8b_9",
23
23
  active: D,
24
24
  disabled: O,
25
25
  line: k,
26
26
  card: A,
27
- "filled-card": "_filled-card_nxjon_78"
27
+ "filled-card": "_filled-card_cph8b_78"
28
28
  }, M = (e, t = 24) => e.length <= t ? e : e.slice(0, t) + "...", N = (e) => typeof e == "string" ? M(e) : e, P = ({ label: e, active: t = !1, onClick: n, tabKey: r }) => {
29
29
  let { type: i = T.LINE, disabled: a } = f(E), o = s(e) ? e : "", l = () => {
30
30
  a || n?.(r);
@@ -302,13 +302,13 @@ var z = (e, t) => {
302
302
  B.displayName = "BsyTabs";
303
303
  //#endregion
304
304
  //#region src/components/Tabs/TabSelect/tabSelect.module.scss
305
- var V = "_active_5a1wn_11", H = "_icon_5a1wn_45", U = {
306
- "bsy-tabs-select__trigger": "_bsy-tabs-select__trigger_5a1wn_1",
305
+ var V = "_active_s6wtd_11", H = "_icon_s6wtd_45", U = {
306
+ "bsy-tabs-select__trigger": "_bsy-tabs-select__trigger_s6wtd_1",
307
307
  active: V,
308
- "bsy-tabs-select__trigger-icon": "_bsy-tabs-select__trigger-icon_5a1wn_14",
309
- "bsy-tabs-select__trigger-input": "_bsy-tabs-select__trigger-input_5a1wn_17",
310
- "bsy-tabs-select__panel": "_bsy-tabs-select__panel_5a1wn_21",
311
- "bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_5a1wn_32",
308
+ "bsy-tabs-select__trigger-icon": "_bsy-tabs-select__trigger-icon_s6wtd_14",
309
+ "bsy-tabs-select__trigger-input": "_bsy-tabs-select__trigger-input_s6wtd_17",
310
+ "bsy-tabs-select__panel": "_bsy-tabs-select__panel_s6wtd_21",
311
+ "bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_s6wtd_32",
312
312
  icon: H
313
313
  }, W = (a) => {
314
314
  let { color: s, theme: u } = a, { t: d } = r(), f = t(), [p, { toggle: h, setLeft: g }] = x(!1), { refs: y, floatingStyles: b, getFloatingProps: E, getReferenceProps: D, referenceStyle: O } = o({
@@ -1,8 +1,8 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
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-Be4e7Xfn.js";
6
6
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
7
- import { i as e, n as t, r as n, t as r } from "./Tabs-Imowx4vq.js";
7
+ import { i as e, n as t, r as n, t as r } from "./Tabs-CnEBK2Ex.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-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
4
4
  import { n as e, t } from "./Tooltip-DBrt3t2r.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CyVENVWD.js";
1
+ import "../vendors/version-3aWFwNcK.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import { t as e } from "../vendors/Tree-DWK-JPnJ.js";
4
4
  import "../CheckBox/CheckBox-BErX3YWP.js";
@@ -63,7 +63,7 @@ export interface DropDownTheme {
63
63
  colorBgContainer?: string;
64
64
  /**
65
65
  * 菜单项默认文字颜色
66
- * @default #121211
66
+ * @default #121111
67
67
  */
68
68
  colorText?: string;
69
69
  /**
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, MutableRefObject, RefObject, SetStateAction } from 'react';
2
- import { EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorUpload } from '../interface';
2
+ import { EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorDefaultTextStyle, EditorUpload } from '../interface';
3
3
  export type EditorAiSession = {
4
4
  originalHtml: string;
5
5
  originalText?: string;
@@ -9,6 +9,7 @@ export type EditorAiSession = {
9
9
  interface EditorContainerContextType {
10
10
  containerRef: RefObject<HTMLDivElement | null>;
11
11
  toolbarRef: RefObject<HTMLDivElement>;
12
+ defaultTextStyle: EditorDefaultTextStyle;
12
13
  upload?: EditorUpload;
13
14
  aiOpen: EditorAiMode | null;
14
15
  setAiOpen: Dispatch<SetStateAction<EditorAiMode | null>>;
@@ -1,6 +1,6 @@
1
1
  export { Editor as default } from './Editor';
2
2
  export { EditorHtmlPreview } from './EditorHtmlPreview';
3
- export type { EditorUpload, EditorUploadContext, EditorUploadResult, EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorProps, EditorTheme, EditorContainerTheme, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarSize, EditorToolbarTheme, } from './interface';
3
+ export type { EditorUpload, EditorUploadContext, EditorUploadResult, EditorAi, EditorAiMode, EditorAiPreset, EditorAiStatus, EditorProps, EditorTheme, EditorContainerTheme, EditorDefaultTextStyle, EditorToolbarFloating, EditorToolbarMode, EditorToolbarOffset, EditorToolbarPlacement, EditorToolbarProps, EditorToolbarSize, EditorToolbarTheme, } from './interface';
4
4
  export { registerToolbarButton, unregisterToolbarButton, listRegisteredToolbarButtons, } from './ToolbarPlugin/Buttons';
5
5
  export type { IconToolbarButtonName, TextToolbarButtonName, ToolbarButtonName, RegisteredToolbarButtonProps, } from './ToolbarPlugin/Buttons';
6
6
  export type { ToolbarConfigButton } from './ToolbarPlugin/interface.d';
@@ -23,11 +23,11 @@ export interface EditorToolbarTheme {
23
23
  colorIcon?: string;
24
24
  /** hover 背景 @default #e0e0e0 */
25
25
  itemHoverBg?: string;
26
- /** hover 前景 @default #121211 */
26
+ /** hover 前景 @default #121111 */
27
27
  itemHoverColor?: string;
28
28
  /** active 背景 @default #e0e0e0 */
29
29
  itemActiveBg?: string;
30
- /** active 前景 @default #121211 */
30
+ /** active 前景 @default #121111 */
31
31
  itemActiveColor?: string;
32
32
  /** 「更多」展开等强调色 @default #0265ff */
33
33
  itemHighlightColor?: string;
@@ -49,8 +49,18 @@ export interface EditorContainerTheme {
49
49
  borderWidth?: string | number;
50
50
  /** 根节点圆角 @default 4px */
51
51
  borderRadius?: string | number;
52
+ /** 输入容器背景色;未传保持透明 */
53
+ bgColor?: string;
52
54
  }
53
55
 
56
+ /** 实例级默认字符样式;只影响新输入与工具栏回落,不改写已有 HTML */
57
+ export type EditorDefaultTextStyle = {
58
+ color?: string;
59
+ /** `32` 与 `'32px'` 等价 */
60
+ fontSize?: string | number;
61
+ backgroundColor?: string;
62
+ };
63
+
54
64
  export interface EditorTheme {
55
65
  toolbar?: EditorToolbarTheme;
56
66
  container?: EditorContainerTheme;
@@ -120,6 +130,11 @@ export type EditorProps = {
120
130
 
121
131
  toolbar?: EditorToolbarProps;
122
132
 
133
+ /**
134
+ * 空稿输入与工具栏未着色时的字符样式,不改写已回填 HTML。
135
+ */
136
+ defaultTextStyle?: EditorDefaultTextStyle;
137
+
123
138
  /**
124
139
  * 编辑器受控内容
125
140
  */
@@ -0,0 +1 @@
1
+ export default function DefaultTextStylePlugin(): null;
@@ -0,0 +1 @@
1
+ export default function ImePendingFormatPlugin(): null;
@@ -0,0 +1,2 @@
1
+ import { EditorDefaultTextStyle } from '../interface';
2
+ export declare const $applyDefaultTextStyle: (style: EditorDefaultTextStyle) => void;
@@ -0,0 +1,8 @@
1
+ export type ImePendingFormat = {
2
+ format: number;
3
+ style: string;
4
+ offset: number;
5
+ key: string;
6
+ };
7
+ export declare function $deferPendingFormatForIme(): ImePendingFormat | null;
8
+ export declare function $applyPendingFormatAfterIme(pending: ImePendingFormat): void;
@@ -1,6 +1,8 @@
1
1
  import { LexicalEditor } from 'lexical';
2
2
  import { TextFormatsState } from '../ToolbarPlugin/context/TextFormatsContext';
3
+ import { EditorDefaultTextStyle } from '../interface';
4
+ export declare const createIdleTextFormats: (defaults?: EditorDefaultTextStyle) => TextFormatsState;
3
5
  export declare const IDLE_TEXT_FORMATS: TextFormatsState;
4
- export declare const $readTextFormats: (isFocused: boolean) => TextFormatsState;
6
+ export declare const $readTextFormats: (isFocused: boolean, defaults?: EditorDefaultTextStyle) => TextFormatsState;
5
7
  export declare const applyWithLiveFormats: (editor: LexicalEditor, apply: (formats: TextFormatsState) => void) => void;
6
8
  export declare const ensureEditableLiveFormats: (editor: LexicalEditor) => TextFormatsState;
@@ -1,2 +1,3 @@
1
1
  /** 按声明名精确匹配,font-size 不会误伤 font-size-adjust。 */
2
2
  export declare function stripInlineStyleProperty(style: string, property: string): string;
3
+ export declare function hasInlineStyleProperty(style: string, property: string): boolean;
@@ -16,6 +16,10 @@ export type SegmentedTheme = {
16
16
  * @description 选中项背景色
17
17
  */
18
18
  itemSelectedBg?: string;
19
+ /**
20
+ * @description 选中项文字颜色
21
+ */
22
+ itemSelectedColor?: string;
19
23
  /**
20
24
  * @description 选项悬停背景色
21
25
  */
@@ -34,8 +34,10 @@ export interface SelectTheme {
34
34
  colorBgContainer?: string;
35
35
  /** 浮层面板背景,默认 #fff */
36
36
  colorBgElevated?: string;
37
- /** 输入框 / 面板 / 搜索框默认文字,默认 #121212 */
37
+ /** 面板 / 搜索框默认文字,默认 #121111 */
38
38
  colorText?: string;
39
+ /** 假输入框回填文字,默认 #121111 */
40
+ colorInputValue?: string;
39
41
  /** 占位(输入框、搜索、底部其他),默认 #999 */
40
42
  colorTextPlaceholder?: string;
41
43
  /** 箭头、清除、搜索图标、tag 关闭、省略号,默认 #666 */
@@ -201,7 +203,7 @@ export interface SelectProps<ValueType = any, OptionType extends DefaultOptionTy
201
203
  */
202
204
  optionStyle?: React.CSSProperties;
203
205
  /**
204
- * @deprecated 请使用 `theme.colorText`
206
+ * @deprecated 请使用 `theme.colorInputValue`
205
207
  * @description 自定义输入框的值的样式覆盖
206
208
  */
207
209
  inputValueStyle?: React.CSSProperties;
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import "./vendors/version-CyVENVWD.js";
1
+ import "./vendors/version-3aWFwNcK.js";
2
2
  import "./ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "./Icon/Icon-DrdQOEJE.js";
4
4
  import "./vendors/LocaleContext-DXQoOKM2.js";
5
- import { r as t, t as n } from "./vendors/ConfigProvider-gZYvcwIQ.js";
5
+ import { r as t, t as n } from "./vendors/ConfigProvider-Bc5czEhx.js";
6
6
  import { a as r, i, n as a, t as o } from "./Overlay/OverlayContext-CVSFoyqN.js";
7
- import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./Amap/Amap-CNsoge6e.js";
7
+ import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./Amap/Amap-Cb2VY7wC.js";
8
8
  import "./Overlay/index.js";
9
- import { t as m } from "./Card/Card-DAz0dvA3.js";
10
- import { t as h } from "./Modal/Modal-eZijJ7CB.js";
9
+ import { t as m } from "./Card/Card-B5O3eZW-.js";
10
+ import { t as h } from "./Modal/Modal-BUDRpdzz.js";
11
11
  import { t as g } from "./ColorPicker/ColorPicker-B_wLqurt.js";
12
12
  import "./vendors/useFloatingOverlay-B66lOL8v.js";
13
13
  import "./vendors/useLocale-Be4e7Xfn.js";
14
14
  import "./vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
15
- import { t as _ } from "./Segmented/Segmented-BkTy5v9V.js";
15
+ import { t as _ } from "./Segmented/Segmented-B7QZjjZ_.js";
16
16
  import { n as v, t as y } from "./Tooltip/Tooltip-DBrt3t2r.js";
17
- import { t as b } from "./Select/Select-DryXF1Tp.js";
17
+ import { t as b } from "./Select/Select-ByqucfXU.js";
18
18
  import "./Select/SelectInputSearch-MApQHnU9.js";
19
19
  import { t as x } from "./vendors/Tree-DWK-JPnJ.js";
20
20
  import "./CheckBox/CheckBox-BErX3YWP.js";
@@ -24,13 +24,13 @@ import { t as w } from "./NotFoundContent/NotFoundContent-DJUQ0_2D.js";
24
24
  import { t as T } from "./ScrollBar/ScrollBar-IMTuAOF5.js";
25
25
  import "./vendors/useFloatingPortal-DJ1iKmW-.js";
26
26
  import "./Tree/index.js";
27
- import { n as E, t as D } from "./Tabs/Tabs-Imowx4vq.js";
28
- import { t as O } from "./DropDown/DropDown-B_szM67V.js";
27
+ import { n as E, t as D } from "./Tabs/Tabs-CnEBK2Ex.js";
28
+ import { t as O } from "./DropDown/DropDown-DuLxmeZL.js";
29
29
  import { t as k } from "./Loading/Loading-Cherk9Ax.js";
30
30
  import "./NotFoundContent/index.js";
31
- import { t as A } from "./InputTag/InputTag-C_5nm0eo.js";
32
- import { t as j } from "./Calendar/Calendar-BaIHL7cB.js";
33
- import { t as M } from "./DatePicker/DatePicker-CbfmdBaK.js";
31
+ import { t as A } from "./InputTag/InputTag-UTPj8g-b.js";
32
+ import { t as j } from "./Calendar/Calendar-D-fgXT3x.js";
33
+ import { t as M } from "./DatePicker/DatePicker-CaTAjzqZ.js";
34
34
  import "./DatePicker/pickerLocale-Brf7_Tnd.js";
35
35
  import { c as N, d as P, f as F, i as I, l as L, m as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G } from "./Table/Table-8ac6xLZv.js";
36
36
  import "overlayscrollbars/overlayscrollbars.css";