@baishuyun/ui-base 6.9.1 → 6.10.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 (145) hide show
  1. package/dist/Amap/{Amap-BNnmSPnl.js → Amap-BLSziesG.js} +1 -1
  2. package/dist/Amap/AmapCircle/index.js +4 -4
  3. package/dist/Amap/{AmapCircle-BDW6pnNR.js → AmapCircle-2qupysHe.js} +1 -1
  4. package/dist/Amap/AmapMarker/index.js +5 -5
  5. package/dist/Amap/{AmapMarker-CdoPWdff.js → AmapMarker-xEqoVnFR.js} +2 -2
  6. package/dist/Amap/AmapMarkerCluster/index.js +5 -5
  7. package/dist/Amap/{AmapMarkerCluster-CSIxiVC5.js → AmapMarkerCluster-CvEQa3o9.js} +2 -2
  8. package/dist/Amap/AmapProvider/index.js +6 -5
  9. package/dist/Amap/{AmapProvider-Cwi6WOe0.js → AmapProvider-DqFp3DZ5.js} +2 -2
  10. package/dist/Amap/hooks/index.js +3 -3
  11. package/dist/Amap/{hooks-DAN31s_-.js → hooks-BTcFpdd0.js} +1 -1
  12. package/dist/Amap/index.js +12 -11
  13. package/dist/Calendar/{AllDaySection-a96dIzs3.js → AllDaySection-BqbcPQls.js} +1 -1
  14. package/dist/Calendar/{Calendar-Bcs9mxET.js → Calendar-gEtuBW7Y.js} +9 -10
  15. package/dist/Calendar/{CurrentTimeIndicator-CNKsVEXH.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
  16. package/dist/Calendar/{EventCard-B1LoBxth.js → EventCard-Di5UX4pB.js} +1 -2
  17. package/dist/Calendar/{TimeGrid-DIw8oCqY.js → TimeGrid-CBpDFAM4.js} +1 -1
  18. package/dist/Calendar/context/index.js +1 -1
  19. package/dist/Calendar/index.js +15 -14
  20. package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
  21. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
  22. package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
  23. package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
  24. package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
  25. package/dist/Calendar/{theme-xnrMsnkg.js → theme-i60ueO92.js} +1 -1
  26. package/dist/Calendar/utils/index.js +1 -1
  27. package/dist/Calendar/utils/layout/index.js +1 -1
  28. package/dist/Calendar/utils/theme/index.js +2 -2
  29. package/dist/Card/index.js +2 -2
  30. package/dist/CheckBox/index.js +1 -1
  31. package/dist/ColorPicker/ColorPicker-CYlrnMwM.js +174 -0
  32. package/dist/ColorPicker/index.js +6 -6
  33. package/dist/ConfigProvider/index.js +4 -3
  34. package/dist/DatePicker/DatePicker-CagGt_f0.js +101 -0
  35. package/dist/DatePicker/{DatePickerPanel-C_TDG3HH.js → DatePickerPanel-CaDZzxMD.js} +3 -3
  36. package/dist/DatePicker/index.js +7 -6
  37. package/dist/DatePicker/style/index.js +2 -2
  38. package/dist/DatePicker/{style-CNtPPsZp.js → style-UKXn1N_p.js} +1 -1
  39. package/dist/DropDown/DropDown-CLuQf970.js +178 -0
  40. package/dist/DropDown/index.js +8 -7
  41. package/dist/DropDown/style/index.js +2 -2
  42. package/dist/DropDown/{style-Fdp-U4md.js → style-LLDVPpPa.js} +1 -1
  43. package/dist/Editor/Buttons-ByO5rS19.js +937 -0
  44. package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -12
  45. package/dist/Editor/constants/index.js +3 -3
  46. package/dist/Editor/index.js +667 -298
  47. package/dist/Gantt/GanttChart/index.js +11 -10
  48. package/dist/Gantt/{GanttChart-DjwZsxEj.js → GanttChart-DvCAp8Dk.js} +3 -5
  49. package/dist/Gantt/GanttTable/index.js +6 -6
  50. package/dist/Gantt/{GanttTable-xbXD_PWI.js → GanttTable-DyVJOVo3.js} +1 -1
  51. package/dist/Gantt/GanttToolBar/index.js +9 -8
  52. package/dist/Gantt/{GanttToolBar-BTeTsR6Z.js → GanttToolBar-CxT68kmT.js} +2 -3
  53. package/dist/Gantt/index.js +15 -14
  54. package/dist/Gantt/{theme-DLNvgM9X.js → theme-2LyXJRDe.js} +1 -1
  55. package/dist/Gantt/utils/index.js +1 -1
  56. package/dist/Gantt/utils/theme/index.js +2 -2
  57. package/dist/Icon/index.js +1 -1
  58. package/dist/InputTag/{InputTag-hzCCJQ1z.js → InputTag-yRPO90Ku.js} +2 -2
  59. package/dist/InputTag/index.js +5 -5
  60. package/dist/Loading/{Loading-DiywS7ex.js → Loading-BF_dtuLc.js} +1 -1
  61. package/dist/Loading/index.js +4 -4
  62. package/dist/Modal/Modal-Cb7Msq26.js +96 -0
  63. package/dist/Modal/index.js +3 -2
  64. package/dist/NotFoundContent/index.js +1 -1
  65. package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
  66. package/dist/Overlay/index.js +3 -0
  67. package/dist/Radio/index.js +1 -1
  68. package/dist/ScrollBar/{ScrollBar-QhXVe8zd.js → ScrollBar-N2pOLv-8.js} +1 -1
  69. package/dist/ScrollBar/index.js +2 -2
  70. package/dist/Segmented/{Segmented-BDz1hMDT.js → Segmented-BCQRrc65.js} +1 -1
  71. package/dist/Segmented/index.js +2 -2
  72. package/dist/Select/Select-iwzfNy9d.js +753 -0
  73. package/dist/Select/{SelectInputSearch-COUzreau.js → SelectInputSearch-Bc_aPNbG.js} +1 -1
  74. package/dist/Select/index.js +8 -7
  75. package/dist/Table/{Table-yQXQEk6d.js → Table-Cm8zFl2G.js} +2 -2
  76. package/dist/Table/hooks/index.js +1 -1
  77. package/dist/Table/index.js +5 -5
  78. package/dist/Table/style/index.js +2 -2
  79. package/dist/Table/{style-DgiPEsSp.js → style-C4wp0IOM.js} +1 -1
  80. package/dist/Table/utils/index.js +1 -1
  81. package/dist/Tabs/{Tabs-BiKW70CL.js → Tabs-BPWRIwtD.js} +118 -103
  82. package/dist/Tabs/index.js +5 -5
  83. package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
  84. package/dist/Tooltip/index.js +3 -2
  85. package/dist/Tree/index.js +2 -2
  86. package/dist/Tree/utils/index.js +1 -1
  87. package/dist/components/ColorPicker/ColorPalettes.d.ts +3 -8
  88. package/dist/components/ColorPicker/ColorPicker.type.d.ts +6 -9
  89. package/dist/components/ColorPicker/constants.d.ts +3 -1
  90. package/dist/components/ColorPicker/index.d.ts +1 -1
  91. package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
  92. package/dist/components/DatePicker/interface.d.ts +2 -0
  93. package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
  94. package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
  95. package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
  96. package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
  97. package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
  98. package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
  99. package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +5 -4
  100. package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
  101. package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
  102. package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
  103. package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
  104. package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
  105. package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +10 -0
  106. package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
  107. package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +8 -1
  108. package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
  109. package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
  110. package/dist/components/Editor/constants/index.d.ts +2 -0
  111. package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
  112. package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
  113. package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
  114. package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
  115. package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
  116. package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
  117. package/dist/components/Overlay/OverlayContext.d.ts +16 -0
  118. package/dist/components/Overlay/index.d.ts +2 -0
  119. package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
  120. package/dist/components/index.d.ts +2 -0
  121. package/dist/index.js +45 -44
  122. package/dist/locale/lang/en-US.json.d.ts +14 -2
  123. package/dist/locale/lang/zh-CN.json.d.ts +14 -2
  124. package/dist/locale/lang/zh-TW.json.d.ts +14 -2
  125. package/dist/style.css +1 -1
  126. package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-vPuwReNX.js} +70 -36
  127. package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-CN9doEXT.js} +14 -2
  128. package/dist/vendors/{Tree-DXmVRDn0.js → Tree-B09frqQX.js} +1 -0
  129. package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-sawv8CEL.js} +1 -1
  130. package/dist/vendors/{version-DiV_Cnd8.js → version-DdQLttdL.js} +1 -1
  131. package/package.json +7 -1
  132. package/dist/ColorPicker/ColorPicker-t1uBeATW.js +0 -155
  133. package/dist/DatePicker/DatePicker--kMNwM9Q.js +0 -96
  134. package/dist/DropDown/DropDown-yDH9V_9Y.js +0 -171
  135. package/dist/Editor/Buttons-BhStZyIa.js +0 -620
  136. package/dist/Modal/Modal-LiztSF7x.js +0 -92
  137. package/dist/Select/Select-D6EK7whJ.js +0 -744
  138. package/dist/Tooltip/Tooltip-Ch9lti_7.js +0 -168
  139. package/dist/vendors/color-D6XBXROa.js +0 -12
  140. /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
  141. /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
  142. /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
  143. /package/dist/vendors/{cssVars-BYg1matG.js → cssVars-l4-kP_14.js} +0 -0
  144. /package/dist/vendors/{mergeRefs-Bsywq1Vo.js → mergeRefs-TiJ0xjUN.js} +0 -0
  145. /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Icon/Icon-BBDcb-yw.js";
2
- import { t } from "../vendors/useLocale-BKZX2_zw.js";
2
+ import { t } from "../vendors/useLocale-sawv8CEL.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
5
5
  var i = (i) => {
@@ -1,16 +1,17 @@
1
- import "../vendors/version-DiV_Cnd8.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-BBDcb-yw.js";
4
- import "../vendors/LocaleContext-Dcw6C1LX.js";
5
- import "../vendors/useLocale-BKZX2_zw.js";
4
+ import "../vendors/LocaleContext-CN9doEXT.js";
5
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
6
+ import "../vendors/useLocale-sawv8CEL.js";
6
7
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
7
- import { n as e, r as t, t as n } from "./Select-D6EK7whJ.js";
8
- import "./SelectInputSearch-COUzreau.js";
9
- import "../vendors/Tree-DXmVRDn0.js";
8
+ import { n as e, r as t, t as n } from "./Select-iwzfNy9d.js";
9
+ import "./SelectInputSearch-Bc_aPNbG.js";
10
+ import "../vendors/Tree-B09frqQX.js";
10
11
  import "../CheckBox/CheckBox-ByWSy9Yr.js";
11
12
  import "../CheckBox/CheckBox-nBm0u6zX.js";
12
13
  import "../Radio/Radio-CX9cUqb7.js";
13
14
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
14
- import "../ScrollBar/ScrollBar-QhXVe8zd.js";
15
+ import "../ScrollBar/ScrollBar-N2pOLv-8.js";
15
16
  import "../vendors/useFloatingPortal-CmVJbuRm.js";
16
17
  export { e as Mode, n as Select, t as SelectType };
@@ -1,8 +1,8 @@
1
- import { t as e } from "../vendors/useLocale-BKZX2_zw.js";
1
+ import { t as e } from "../vendors/useLocale-sawv8CEL.js";
2
2
  import { n as t, o as n, t as r } from "./constants-kRpjsoet.js";
3
3
  import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-B0WELhG2.js";
4
4
  import { n as p, t as m } from "./hooks-BceUZQQm.js";
5
- import { t as h } from "./style-DgiPEsSp.js";
5
+ import { t as h } from "./style-C4wp0IOM.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-DiV_Cnd8.js";
1
+ import "../../vendors/version-DdQLttdL.js";
2
2
  import { n as e, t } from "../hooks-BceUZQQm.js";
3
3
  export { t as useColumnResize, e as useTableVirtual };
@@ -1,10 +1,10 @@
1
- import "../vendors/version-DiV_Cnd8.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
- import "../vendors/LocaleContext-Dcw6C1LX.js";
4
- import "../vendors/useLocale-BKZX2_zw.js";
3
+ import "../vendors/LocaleContext-CN9doEXT.js";
4
+ import "../vendors/useLocale-sawv8CEL.js";
5
5
  import { a as e, n as t, t as n } from "./constants-kRpjsoet.js";
6
6
  import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-B0WELhG2.js";
7
- import { n as f, t as p } from "./Table-yQXQEk6d.js";
7
+ import { n as f, t as p } from "./Table-Cm8zFl2G.js";
8
8
  import { n as m, t as h } from "./hooks-BceUZQQm.js";
9
- import { t as g } from "./style-DgiPEsSp.js";
9
+ import { t as g } from "./style-C4wp0IOM.js";
10
10
  export { n as COLUMN_DEFAULTS, t as DEFAULT_CONFIG, e as TABLE_DOM, p as Table, p as default, f as TableBody, r as calculateFixedOffset, c as expandLeafColumns, u as getCellRowspan, i as getColumnsWidth, d as getRowKey, s as processRowspan, g as resolveTableThemeVars, l as shouldRenderCell, a as sortData, o as splitFixedColumns, h as useColumnResize, m as useTableVirtual };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DiV_Cnd8.js";
2
- import { t as e } from "../style-DgiPEsSp.js";
1
+ import "../../vendors/version-DdQLttdL.js";
2
+ import { t as e } from "../style-C4wp0IOM.js";
3
3
  export { e as resolveTableThemeVars };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-BYg1matG.js";
1
+ import { t as e } from "../vendors/cssVars-l4-kP_14.js";
2
2
  //#region src/components/Table/style/resolveTableThemeVars.ts
3
3
  var t = (t) => {
4
4
  if (!t) return {};
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DiV_Cnd8.js";
1
+ import "../../vendors/version-DdQLttdL.js";
2
2
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-B0WELhG2.js";
3
3
  export { e as calculateFixedOffset, s as expandLeafColumns, l as findFlatColumnIndex, i as flattenColumns, u as getCellRowspan, t as getColumnsWidth, a as getFixedStickyStyle, d as getRowKey, o as processRowspan, c as shouldRenderCell, n as sortData, r as splitFixedColumns };
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "../Icon/Icon-BBDcb-yw.js";
2
- import { t } from "../vendors/useLocale-BKZX2_zw.js";
3
- import { n } from "../vendors/color-D6XBXROa.js";
4
- import { n as r } from "../vendors/animations-rwUbyoT0.js";
5
- import { t as i } from "../vendors/useFloatingPortal-CmVJbuRm.js";
6
- import { isString as a } from "lodash-es";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
2
+ import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
+ import { t as r } from "../vendors/useLocale-sawv8CEL.js";
4
+ import { n as i } from "../vendors/animations-rwUbyoT0.js";
5
+ import { t as a } from "../vendors/useFloatingPortal-CmVJbuRm.js";
6
+ import { isString as o } from "lodash-es";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  import { createContext as l, useCallback as u, useContext as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
9
9
  import g from "clsx";
10
10
  import { useControllableValue as _, useEventListener as v, useMutationObserver as y, useToggle as b } from "ahooks";
11
11
  import { AnimatePresence as x, motion as S } from "motion/react";
12
12
  import { FloatingPortal as C } from "@floating-ui/react";
13
+ import "tinycolor2";
13
14
  //#region src/components/Tabs/constants.ts
14
15
  var w = {
15
16
  LINE: "line",
@@ -27,56 +28,67 @@ var w = {
27
28
  line: O,
28
29
  card: k,
29
30
  "filled-card": "_filled-card_1oc43_78"
30
- }, j = (e, t = 24) => e.length <= t ? e : e.slice(0, t) + "...", M = (e) => typeof e == "string" ? j(e) : e, N = ({ label: e, active: t = !1, onClick: r, tabKey: i }) => {
31
- let { type: o = w.LINE, disabled: c, color: l } = d(T), u = a(e) ? e : "", f = () => {
32
- c || r?.(i);
33
- }, p = {
31
+ };
32
+ //#endregion
33
+ //#region src/utils/color.ts
34
+ function j(e, t) {
35
+ if (t < 0 || t > 1) return console.error("Alpha value must be between 0 and 1."), null;
36
+ e = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (e, t, n, r) => t + t + n + n + r + r);
37
+ let n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
38
+ return n ? `rgba(${parseInt(n[1], 16)}, ${parseInt(n[2], 16)}, ${parseInt(n[3], 16)}, ${t})` : (console.error("Invalid HEX color format."), null);
39
+ }
40
+ //#endregion
41
+ //#region src/components/Tabs/Tab/Tab.tsx
42
+ var 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 }) => {
43
+ let { type: i = w.LINE, disabled: a, color: c } = d(T), l = o(e) ? e : "", u = () => {
44
+ a || n?.(r);
45
+ }, f = {
34
46
  "data-tab-item": !0,
35
- "data-tab-key": i,
47
+ "data-tab-key": r,
36
48
  role: "tab",
37
49
  "aria-selected": t,
38
- "aria-controls": `panel-${i}`,
39
- onClick: f
50
+ "aria-controls": `panel-${r}`,
51
+ onClick: u
40
52
  };
41
- return o === w.LINE ? /* @__PURE__ */ s("div", {
42
- ...p,
53
+ return i === w.LINE ? /* @__PURE__ */ s("div", {
54
+ ...f,
43
55
  className: g(A["bsy-tab"], A.line, {
44
- [A.disabled]: c,
56
+ [A.disabled]: a,
45
57
  [A.active]: t
46
58
  }),
47
- title: u,
48
- children: M(e)
49
- }) : o === w.CARD ? /* @__PURE__ */ s("div", {
50
- ...p,
59
+ title: l,
60
+ children: N(e)
61
+ }) : i === w.CARD ? /* @__PURE__ */ s("div", {
62
+ ...f,
51
63
  className: g(A["bsy-tab"], A.card, {
52
64
  [A.active]: t,
53
- [A.disabled]: c
65
+ [A.disabled]: a
54
66
  }),
55
- title: u,
56
- style: { "--theme-bg-color": n(l, .1) },
57
- children: /* @__PURE__ */ s("span", { children: M(e) })
58
- }) : o === w.FILLED_CARD ? /* @__PURE__ */ s("div", {
59
- ...p,
67
+ title: l,
68
+ style: { "--theme-bg-color": j(c, .1) },
69
+ children: /* @__PURE__ */ s("span", { children: N(e) })
70
+ }) : i === w.FILLED_CARD ? /* @__PURE__ */ s("div", {
71
+ ...f,
60
72
  className: g(A["bsy-tab"], A["filled-card"], {
61
73
  [A.active]: t,
62
- [A.disabled]: c
74
+ [A.disabled]: a
63
75
  }),
64
- title: u,
65
- children: M(e)
66
- }) : o === w.BADGE_CARD ? /* @__PURE__ */ s("div", {
67
- ...p,
76
+ title: l,
77
+ children: N(e)
78
+ }) : i === w.BADGE_CARD ? /* @__PURE__ */ s("div", {
79
+ ...f,
68
80
  className: g(A["bsy-tab"], A["badge-card"], {
69
81
  [A.active]: t,
70
- [A.disabled]: c
82
+ [A.disabled]: a
71
83
  }),
72
- title: u,
73
- children: /* @__PURE__ */ s("span", { children: M(e) })
84
+ title: l,
85
+ children: /* @__PURE__ */ s("span", { children: N(e) })
74
86
  }) : null;
75
87
  };
76
- N.displayName = "BsyTab";
88
+ P.displayName = "BsyTab";
77
89
  //#endregion
78
90
  //#region src/components/Tabs/TabList/useTabScroll.ts
79
- var P = ({ disabled: e, children: t }) => {
91
+ var F = ({ disabled: e, children: t }) => {
80
92
  let n = m(null), r = m(null), [i, a] = h(!1), [o, s] = h(!1), [c, l] = h(!1), [d, p] = h(0), g = u(() => {
81
93
  let e = n.current, t = r.current;
82
94
  if (!e || !t) return;
@@ -111,7 +123,7 @@ var P = ({ disabled: e, children: t }) => {
111
123
  p(Math.max(s, d - a));
112
124
  }
113
125
  };
114
- }, F = ({ activeKey: e, type: t, showIndicator: n, wrapperRef: r, items: i }) => {
126
+ }, I = ({ activeKey: e, type: t, showIndicator: n, wrapperRef: r, items: i }) => {
115
127
  let [a, o] = h({
116
128
  width: 0,
117
129
  left: 0,
@@ -149,12 +161,12 @@ var P = ({ disabled: e, children: t }) => {
149
161
  s(e);
150
162
  }
151
163
  };
152
- }, I = ({ children: e, activeKey: n, className: r, style: i, items: a }) => {
153
- let { t: o } = t(), { type: l = w.LINE, color: u, disabled: f } = d(T), p = [w.LINE, w.CARD].includes(l), { listRef: m, wrapperRef: h, showControls: _, canScrollLeft: v, canScrollRight: y, translateX: b, scrollLeft: x, scrollRight: S } = P({
164
+ }, L = ({ children: e, activeKey: t, className: n, style: i, items: a }) => {
165
+ let { t: o } = r(), { type: l = w.LINE, color: u, disabled: f } = d(T), p = [w.LINE, w.CARD].includes(l), { listRef: m, wrapperRef: h, showControls: _, canScrollLeft: v, canScrollRight: y, translateX: b, scrollLeft: x, scrollRight: S } = F({
154
166
  disabled: f,
155
167
  children: e
156
- }), { indicatorStyle: C, handleTabClick: E } = F({
157
- activeKey: n,
168
+ }), { indicatorStyle: C, handleTabClick: E } = I({
169
+ activeKey: t,
158
170
  type: l,
159
171
  showIndicator: p,
160
172
  wrapperRef: h,
@@ -165,7 +177,7 @@ var P = ({ disabled: e, children: t }) => {
165
177
  t && E(t);
166
178
  };
167
179
  return /* @__PURE__ */ c("div", {
168
- className: g("relative max-h-[36px]", r),
180
+ className: g("relative max-h-[36px]", n),
169
181
  style: i,
170
182
  children: [
171
183
  _ && /* @__PURE__ */ s("button", {
@@ -255,10 +267,10 @@ var P = ({ disabled: e, children: t }) => {
255
267
  ]
256
268
  });
257
269
  };
258
- I.displayName = "BsyTabList";
270
+ L.displayName = "BsyTabList";
259
271
  //#endregion
260
272
  //#region src/components/Tabs/TabPanel/TabPanel.tsx
261
- var L = ({ items: e, activeKey: t, className: n }) => {
273
+ var R = ({ items: e, activeKey: t, className: n }) => {
262
274
  let r = e.find((e) => e.key === t);
263
275
  return !r || !r.children ? null : /* @__PURE__ */ s("div", {
264
276
  className: n,
@@ -267,10 +279,10 @@ var L = ({ items: e, activeKey: t, className: n }) => {
267
279
  children: r.children
268
280
  });
269
281
  };
270
- L.displayName = "BsyTabPanel";
282
+ R.displayName = "BsyTabPanel";
271
283
  //#endregion
272
284
  //#region src/components/Tabs/Tabs.tsx
273
- var R = (e) => {
285
+ var z = (e) => {
274
286
  let [t, n] = _(e, {
275
287
  defaultValuePropName: "defaultActiveKey",
276
288
  valuePropName: "activeKey",
@@ -284,16 +296,16 @@ var R = (e) => {
284
296
  },
285
297
  children: /* @__PURE__ */ c("div", {
286
298
  className: "bsy-tabs",
287
- children: [/* @__PURE__ */ s(I, {
299
+ children: [/* @__PURE__ */ s(L, {
288
300
  items: e.items,
289
301
  activeKey: t,
290
- children: e.items?.map((e) => /* @__PURE__ */ s(N, {
302
+ children: e.items?.map((e) => /* @__PURE__ */ s(P, {
291
303
  tabKey: e.key,
292
304
  label: e.label,
293
305
  active: t === e.key,
294
306
  onClick: (e) => n(e)
295
307
  }, e.key))
296
- }), r && e.items && /* @__PURE__ */ s(L, {
308
+ }), r && e.items && /* @__PURE__ */ s(R, {
297
309
  items: e.items,
298
310
  activeKey: t,
299
311
  className: "bsy-tabs__content"
@@ -301,98 +313,101 @@ var R = (e) => {
301
313
  })
302
314
  });
303
315
  };
304
- R.displayName = "BsyTabs";
316
+ z.displayName = "BsyTabs";
305
317
  //#endregion
306
318
  //#region src/components/Tabs/TabSelect/tabSelect.module.scss
307
- var z = "_active_5a1wn_11", B = "_icon_5a1wn_45", V = {
319
+ var B = "_active_5a1wn_11", V = "_icon_5a1wn_45", H = {
308
320
  "bsy-tabs-select__trigger": "_bsy-tabs-select__trigger_5a1wn_1",
309
- active: z,
321
+ active: B,
310
322
  "bsy-tabs-select__trigger-icon": "_bsy-tabs-select__trigger-icon_5a1wn_14",
311
323
  "bsy-tabs-select__trigger-input": "_bsy-tabs-select__trigger-input_5a1wn_17",
312
324
  "bsy-tabs-select__panel": "_bsy-tabs-select__panel_5a1wn_21",
313
325
  "bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_5a1wn_32",
314
- icon: B
315
- }, H = (n) => {
316
- let { color: a = "#0269ff" } = n, { t: l } = t(), [u, { toggle: d, setLeft: f }] = b(!1), { refs: m, floatingStyles: h, getFloatingProps: v, getReferenceProps: y, referenceStyle: T } = i({
317
- isOpen: u,
318
- close: f,
326
+ icon: V
327
+ }, U = (o) => {
328
+ let { color: l = "#0269ff" } = o, { t: u } = r(), d = t(), [f, { toggle: m, setLeft: h }] = b(!1), { refs: v, floatingStyles: y, getFloatingProps: T, getReferenceProps: E, referenceStyle: D } = a({
329
+ isOpen: f,
330
+ close: h,
319
331
  offset: {
320
332
  x: 0,
321
333
  y: 4
322
334
  },
323
- zIndex: 1e3
324
- }), [E, D] = _(n, {
335
+ zIndex: d
336
+ }), [O, k] = _(o, {
325
337
  trigger: "onChange",
326
338
  defaultValuePropName: "defaultValue",
327
339
  valuePropName: "value",
328
340
  defaultValue: w.LINE
329
- }), O = Object.values(w).map((e) => ({
341
+ }), A = Object.values(w).map((e) => ({
330
342
  label: e,
331
343
  value: e
332
- })), k = p(() => [
344
+ })), j = p(() => [
333
345
  {
334
- label: l("tabs.previewTab1"),
346
+ label: u("tabs.previewTab1"),
335
347
  key: "1"
336
348
  },
337
349
  {
338
- label: l("tabs.previewTab2"),
350
+ label: u("tabs.previewTab2"),
339
351
  key: "2"
340
352
  },
341
353
  {
342
- label: l("tabs.previewTab3"),
354
+ label: u("tabs.previewTab3"),
343
355
  key: "3"
344
356
  }
345
- ], [l]);
357
+ ], [u]);
346
358
  return /* @__PURE__ */ c("div", {
347
- className: V["bsy-tabs-select"],
359
+ className: H["bsy-tabs-select"],
348
360
  children: [/* @__PURE__ */ c("div", {
349
- className: g(V["bsy-tabs-select__trigger"], { [V.active]: u }),
350
- ref: m.setReference,
351
- ...y(),
352
- style: T,
353
- onClick: () => d(),
361
+ className: g(H["bsy-tabs-select__trigger"], { [H.active]: f }),
362
+ ref: v.setReference,
363
+ ...E(),
364
+ style: D,
365
+ onClick: () => m(),
354
366
  children: [/* @__PURE__ */ s("div", {
355
- className: g(V["bsy-tabs-select__trigger-input"], { [V.active]: E }),
356
- children: E && /* @__PURE__ */ s(R, {
367
+ className: g(H["bsy-tabs-select__trigger-input"], { [H.active]: O }),
368
+ children: O && /* @__PURE__ */ s(z, {
357
369
  activeKey: "1",
358
- type: E,
359
- color: a,
370
+ type: O,
371
+ color: l,
360
372
  disabled: !0,
361
- items: k
362
- }, E)
373
+ items: j
374
+ }, O)
363
375
  }), /* @__PURE__ */ s("div", {
364
- className: V["bsy-tabs-select__trigger-icon"],
376
+ className: H["bsy-tabs-select__trigger-icon"],
365
377
  children: /* @__PURE__ */ s(e, {
366
378
  name: "arrow-down",
367
- className: g(V.icon, { active: u })
379
+ className: g(H.icon, { active: f })
368
380
  })
369
381
  })]
370
- }), /* @__PURE__ */ s(C, { children: /* @__PURE__ */ s(x, { children: u && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
371
- ref: m.setFloating,
372
- style: h,
373
- ...v(),
374
- children: /* @__PURE__ */ s(S.div, {
375
- ...r,
376
- children: /* @__PURE__ */ s("div", {
377
- className: V["bsy-tabs-select__panel"],
378
- children: O.map((e) => /* @__PURE__ */ s("div", {
379
- className: g(V["bsy-tabs-select__panel-item"], { [V.active]: E === e.value }),
380
- onClick: () => {
381
- D(e.value), f();
382
- },
383
- children: /* @__PURE__ */ s(R, {
384
- activeKey: "1",
385
- type: e.value,
386
- disabled: !0,
387
- color: a,
388
- items: k
389
- }, e.value)
390
- }, e.value))
382
+ }), /* @__PURE__ */ s(C, { children: /* @__PURE__ */ s(x, { children: f && /* @__PURE__ */ s(n, {
383
+ zIndex: d,
384
+ children: /* @__PURE__ */ s("div", {
385
+ ref: v.setFloating,
386
+ style: y,
387
+ ...T(),
388
+ children: /* @__PURE__ */ s(S.div, {
389
+ ...i,
390
+ children: /* @__PURE__ */ s("div", {
391
+ className: H["bsy-tabs-select__panel"],
392
+ children: A.map((e) => /* @__PURE__ */ s("div", {
393
+ className: g(H["bsy-tabs-select__panel-item"], { [H.active]: O === e.value }),
394
+ onClick: () => {
395
+ k(e.value), h();
396
+ },
397
+ children: /* @__PURE__ */ s(z, {
398
+ activeKey: "1",
399
+ type: e.value,
400
+ disabled: !0,
401
+ color: l,
402
+ items: j
403
+ }, e.value)
404
+ }, e.value))
405
+ })
391
406
  })
392
407
  })
393
- }) }) }) })]
408
+ }) }) })]
394
409
  });
395
410
  };
396
- H.displayName = "BsyTabSelect";
411
+ U.displayName = "BsyTabSelect";
397
412
  //#endregion
398
- export { w as i, R as n, L as r, H as t };
413
+ export { w as i, z as n, R as r, U as t };
@@ -1,8 +1,8 @@
1
- import "../vendors/version-DiV_Cnd8.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
2
  import "../Icon/Icon-BBDcb-yw.js";
3
- import "../vendors/LocaleContext-Dcw6C1LX.js";
4
- import "../vendors/useLocale-BKZX2_zw.js";
5
- import "../vendors/color-D6XBXROa.js";
3
+ import "../vendors/LocaleContext-CN9doEXT.js";
4
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
5
+ import "../vendors/useLocale-sawv8CEL.js";
6
6
  import "../vendors/useFloatingPortal-CmVJbuRm.js";
7
- import { i as e, n as t, r as n, t as r } from "./Tabs-BiKW70CL.js";
7
+ import { i as e, n as t, r as n, t as r } from "./Tabs-BPWRIwtD.js";
8
8
  export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
@@ -0,0 +1,172 @@
1
+ import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
2
+ import { n } from "../vendors/mergeRefs-TiJ0xjUN.js";
3
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { Fragment as o, cloneElement as ee, createContext as s, isValidElement as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as te } from "react";
5
+ import { useControllableValue as ne } from "ahooks";
6
+ import { FloatingArrow as re, FloatingPortal as ie, arrow as ae, autoUpdate as p, flip as oe, offset as se, safePolygon as ce, shift as le, size as ue, useClick as m, useDismiss as h, useFloating as g, useHover as _, useInteractions as v, useRole as y, useTransitionStyles as de } from "@floating-ui/react";
7
+ //#region src/components/Tooltip/context/TooltipFloatingContext.ts
8
+ var b = s(null), x = {
9
+ "bsy-tooltip": "_bsy-tooltip_eibqv_1",
10
+ "bsy-tooltip__trigger": "_bsy-tooltip__trigger_eibqv_4",
11
+ "bsy-tooltip__content": "_bsy-tooltip__content_eibqv_8"
12
+ }, fe = "M0 14C0 14 1.44834 13.9879 4.14272 10.7864C5.24990 9.46652 6.28557 8.66663 7.0002 8.66663C7.71415 8.66663 8.73670 9.55158 9.85697 10.8831C12.5664 14.1005 14 14 14 14H0Z", pe = "#525867", S = (e, t) => e ? t ? (n) => {
13
+ e(n), t(n);
14
+ } : e : t, C = (e) => {
15
+ if (!(e === "auto" || e === void 0)) return typeof e == "number" ? `${e}px` : e;
16
+ }, me = (e) => e.type === o || (e.type?.toString().includes("Fragment") ?? !1), w = ({ children: o, content: s, 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, ...he }) => {
17
+ let U = f(null), [ge, _e] = te(null), W = e(E), [G, K] = ne(he, {
18
+ valuePropName: "visible",
19
+ trigger: "onVisibleChange",
20
+ defaultValue: !1
21
+ }), ve = l((e) => {
22
+ !e && G && k && k(), K(e);
23
+ }, [
24
+ G,
25
+ k,
26
+ K
27
+ ]), ye = d(() => {
28
+ let e = R ? { fallbackPlacements: R } : {};
29
+ B && (e.boundary = B);
30
+ let t = [
31
+ se(L),
32
+ oe(e),
33
+ le({ padding: 8 })
34
+ ];
35
+ return D && t.push(ae({ element: U })), N === "reference" && t.push(ue({ apply({ rects: e, elements: t }) {
36
+ t.floating.style.width = `${e.reference.width}px`;
37
+ let n = C(F);
38
+ n && (t.floating.style.minWidth = n);
39
+ let r = C(I);
40
+ r && (t.floating.style.maxWidth = r);
41
+ } })), t;
42
+ }, [
43
+ N,
44
+ F,
45
+ I,
46
+ L,
47
+ R,
48
+ B,
49
+ D
50
+ ]), { refs: q, floatingStyles: J, context: Y } = g({
51
+ open: G,
52
+ onOpenChange: ve,
53
+ whileElementsMounted: G ? (e, t, n) => p(e, t, n, {
54
+ animationFrame: !1,
55
+ ancestorScroll: !0,
56
+ ancestorResize: !0,
57
+ elementResize: !0,
58
+ layoutShift: !1
59
+ }) : void 0,
60
+ placement: O,
61
+ middleware: ye,
62
+ transform: !1
63
+ }), { isMounted: be, styles: xe } = de(Y, V && H ? H : { duration: 0 }), Se = V ? be : G, X = d(() => {
64
+ let e = {
65
+ ...J,
66
+ ...T,
67
+ "--bsy-tooltip-z-index": W
68
+ };
69
+ switch (N) {
70
+ case "content":
71
+ e.width = "auto";
72
+ break;
73
+ case "manual":
74
+ P !== void 0 && (e.width = C(P));
75
+ break;
76
+ case "reference": break;
77
+ default: e.width = "max-content";
78
+ }
79
+ return N !== "reference" && (F !== void 0 && (e.minWidth = C(F)), I !== void 0 && (e.maxWidth = C(I))), e;
80
+ }, [
81
+ J,
82
+ T,
83
+ W,
84
+ N,
85
+ P,
86
+ F,
87
+ I
88
+ ]);
89
+ u(() => {
90
+ z && q.setPositionReference(z);
91
+ }, [z, q]);
92
+ let { getReferenceProps: Ce, getFloatingProps: we } = v([
93
+ _(Y, {
94
+ enabled: w === "hover",
95
+ delay: { open: A },
96
+ handleClose: M ? ce() : void 0
97
+ }),
98
+ m(Y, { enabled: w === "click" }),
99
+ h(Y),
100
+ y(Y, { role: "tooltip" })
101
+ ]), Z = Ce(), Q = {
102
+ ...Z,
103
+ onClick: (e) => {
104
+ w === "click" && e.stopPropagation(), Z.onClick?.(e);
105
+ },
106
+ onMouseEnter: (e) => {
107
+ w === "hover" && e.stopPropagation(), Z.onMouseEnter?.(e);
108
+ },
109
+ onMouseLeave: (e) => {
110
+ w === "hover" && e.stopPropagation(), Z.onMouseLeave?.(e);
111
+ },
112
+ onMouseMove: (e) => {
113
+ Z.onMouseMove?.(e);
114
+ }
115
+ }, Te = j?.(), Ee = typeof T?.background == "string" ? T.background : pe, De = n(q.setFloating, _e), $ = Se ? /* @__PURE__ */ i(ie, {
116
+ root: Te ?? void 0,
117
+ children: /* @__PURE__ */ i(t, {
118
+ zIndex: W,
119
+ children: /* @__PURE__ */ a("div", {
120
+ ref: De,
121
+ style: V ? {
122
+ ...X,
123
+ ...xe
124
+ } : X,
125
+ ...we(),
126
+ className: x["bsy-tooltip__content"],
127
+ onClick: (e) => e.stopPropagation(),
128
+ children: [D ? /* @__PURE__ */ i(re, {
129
+ ref: U,
130
+ context: Y,
131
+ width: 14,
132
+ height: 14,
133
+ tipRadius: 2,
134
+ fill: Ee,
135
+ d: fe
136
+ }) : null, /* @__PURE__ */ i(b.Provider, {
137
+ value: ge,
138
+ children: s
139
+ })]
140
+ })
141
+ })
142
+ }) : null;
143
+ if (c(o) && !me(o)) {
144
+ let e = o.props, t = o.ref;
145
+ return /* @__PURE__ */ a(r, { children: [ee(o, {
146
+ ...e,
147
+ ...Q,
148
+ ref: t ? n(q.setReference, t) : q.setReference,
149
+ style: e.style,
150
+ onClick: S(e.onClick, Q.onClick),
151
+ onMouseEnter: S(e.onMouseEnter, Q.onMouseEnter),
152
+ onMouseLeave: S(e.onMouseLeave, Q.onMouseLeave),
153
+ onMouseMove: S(e.onMouseMove, Q.onMouseMove)
154
+ }), $] });
155
+ }
156
+ return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
157
+ className: x["bsy-tooltip"],
158
+ children: /* @__PURE__ */ i("div", {
159
+ ref: q.setReference,
160
+ ...Q,
161
+ className: x["bsy-tooltip__trigger"],
162
+ children: o
163
+ })
164
+ }), $] });
165
+ }, T = ({ content: e, children: t, ...n }) => e ? /* @__PURE__ */ i(w, {
166
+ content: e,
167
+ ...n,
168
+ children: t
169
+ }) : /* @__PURE__ */ i(r, { children: t });
170
+ T.displayName = "BsyTooltip";
171
+ //#endregion
172
+ export { b as n, T as t };
@@ -1,3 +1,4 @@
1
- import "../vendors/version-DiV_Cnd8.js";
2
- import { n as e, t } from "./Tooltip-Ch9lti_7.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
3
+ import { n as e, t } from "./Tooltip-Bb3Jx-If.js";
3
4
  export { e as TooltipFloatingContext, t as default };
@@ -1,6 +1,6 @@
1
- import "../vendors/version-DiV_Cnd8.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
2
  import "../Icon/Icon-BBDcb-yw.js";
3
- import { t as e } from "../vendors/Tree-DXmVRDn0.js";
3
+ import { t as e } from "../vendors/Tree-B09frqQX.js";
4
4
  import "../CheckBox/CheckBox-ByWSy9Yr.js";
5
5
  import "../Radio/Radio-CX9cUqb7.js";
6
6
  export { e as Tree };
@@ -1,4 +1,4 @@
1
- import "../../vendors/version-DiV_Cnd8.js";
1
+ import "../../vendors/version-DdQLttdL.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 = []) => {