@baishuyun/ui-base 6.10.0 → 6.11.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 (181) 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-CvRHhN42.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-DNsVyixx.js → AllDaySection-BqbcPQls.js} +3 -3
  14. package/dist/Calendar/{Calendar-DL2X3z_z.js → Calendar-BS0nzK4h.js} +12 -13
  15. package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
  16. package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-Di5UX4pB.js} +3 -4
  17. package/dist/Calendar/{TimeGrid-D62R57Bo.js → TimeGrid-CBpDFAM4.js} +1 -1
  18. package/dist/Calendar/context/index.js +2 -2
  19. package/dist/Calendar/index.js +21 -20
  20. package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
  21. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +6 -5
  22. package/dist/Calendar/subcomponents/EventCard/index.js +7 -6
  23. package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -4
  24. package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
  25. package/dist/Calendar/{theme-BRVmxhqD.js → theme-i60ueO92.js} +2 -2
  26. package/dist/Calendar/utils/index.js +4 -4
  27. package/dist/Calendar/utils/layout/index.js +3 -3
  28. package/dist/Calendar/utils/theme/index.js +2 -2
  29. package/dist/Card/index.js +2 -2
  30. package/dist/CheckBox/{CheckBox-CcM19LnP.js → CheckBox-nBm0u6zX.js} +1 -1
  31. package/dist/CheckBox/index.js +3 -3
  32. package/dist/ColorPicker/ColorPicker-DVwg07Gs.js +174 -0
  33. package/dist/ColorPicker/index.js +7 -6
  34. package/dist/ConfigProvider/index.js +4 -3
  35. package/dist/DatePicker/DatePicker-DNPnHLT2.js +101 -0
  36. package/dist/DatePicker/{DatePickerPanel-Bz3uvbYF.js → DatePickerPanel-TS6AxAH-.js} +5 -5
  37. package/dist/DatePicker/index.js +10 -9
  38. package/dist/DatePicker/style/index.js +2 -2
  39. package/dist/DatePicker/{style-BwmM26RP.js → style-UKXn1N_p.js} +1 -1
  40. package/dist/DropDown/DropDown-DWf5yf4l.js +178 -0
  41. package/dist/DropDown/index.js +11 -10
  42. package/dist/DropDown/style/index.js +2 -2
  43. package/dist/DropDown/{style-BSgosymi.js → style-LLDVPpPa.js} +1 -1
  44. package/dist/Editor/Buttons-BBioCubp.js +1148 -0
  45. package/dist/Editor/ToolbarPlugin/Buttons/index.js +17 -16
  46. package/dist/Editor/constants/index.js +3 -3
  47. package/dist/Editor/index.js +1015 -257
  48. package/dist/Gantt/GanttChart/index.js +18 -17
  49. package/dist/Gantt/{GanttChart-6gpw5vi6.js → GanttChart-BaEW7EDO.js} +8 -10
  50. package/dist/Gantt/GanttTable/index.js +11 -11
  51. package/dist/Gantt/{GanttTable-lVu-YUtt.js → GanttTable-CdXhMHF6.js} +5 -5
  52. package/dist/Gantt/GanttToolBar/index.js +14 -13
  53. package/dist/Gantt/{GanttToolBar-CarBWZg-.js → GanttToolBar-COwsYlMG.js} +3 -4
  54. package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
  55. package/dist/Gantt/index.js +26 -25
  56. package/dist/Gantt/{theme-CiMD9Y6i.js → theme-2LyXJRDe.js} +1 -1
  57. package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
  58. package/dist/Gantt/utils/index.js +6 -6
  59. package/dist/Gantt/utils/theme/index.js +2 -2
  60. package/dist/Icon/index.js +1 -1
  61. package/dist/InputTag/{InputTag-DxPO0DwD.js → InputTag-Jpm8H32L.js} +2 -2
  62. package/dist/InputTag/index.js +5 -5
  63. package/dist/Loading/{Loading-CVyzO5-s.js → Loading-CiRe7i2R.js} +1 -1
  64. package/dist/Loading/index.js +4 -4
  65. package/dist/Modal/Modal-Cb7Msq26.js +96 -0
  66. package/dist/Modal/index.js +3 -2
  67. package/dist/NotFoundContent/index.js +2 -2
  68. package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
  69. package/dist/Overlay/index.js +3 -0
  70. package/dist/Radio/index.js +2 -2
  71. package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-N2pOLv-8.js} +1 -1
  72. package/dist/ScrollBar/index.js +2 -2
  73. package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BCQRrc65.js} +1 -1
  74. package/dist/Segmented/index.js +2 -2
  75. package/dist/Select/Select-BY5Rpo3f.js +753 -0
  76. package/dist/Select/{SelectInputSearch-CrGW_eVo.js → SelectInputSearch-i3egm8Wy.js} +1 -1
  77. package/dist/Select/index.js +14 -13
  78. package/dist/Table/{Table-CL-KfNY3.js → Table-CSPdFGYn.js} +5 -5
  79. package/dist/Table/hooks/index.js +2 -2
  80. package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
  81. package/dist/Table/index.js +8 -8
  82. package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
  83. package/dist/Table/style/index.js +2 -2
  84. package/dist/Table/{style-x9xfw6te.js → style-C4wp0IOM.js} +1 -1
  85. package/dist/Table/utils/index.js +2 -2
  86. package/dist/Tabs/Tabs-C0m3mt-j.js +413 -0
  87. package/dist/Tabs/index.js +6 -5
  88. package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
  89. package/dist/Tooltip/index.js +3 -2
  90. package/dist/Tree/index.js +4 -4
  91. package/dist/Tree/utils/index.js +1 -1
  92. package/dist/components/ColorPicker/ColorPalettes.d.ts +2 -0
  93. package/dist/components/ColorPicker/ColorPicker.type.d.ts +1 -7
  94. package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
  95. package/dist/components/DatePicker/interface.d.ts +2 -0
  96. package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
  97. package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
  98. package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
  99. package/dist/components/Editor/ToolbarPlugin/Buttons/HeadingButton.d.ts +2 -0
  100. package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
  101. package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
  102. package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
  103. package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
  104. package/dist/components/Editor/ToolbarPlugin/Buttons/SourceButton.d.ts +2 -0
  105. package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
  106. package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
  107. package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
  108. package/dist/components/Editor/ToolbarPlugin/Buttons/TableButton.d.ts +2 -0
  109. package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
  110. package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +13 -0
  111. package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
  112. package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +10 -1
  113. package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
  114. package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
  115. package/dist/components/Editor/constants/index.d.ts +3 -0
  116. package/dist/components/Editor/context/EditorContainerContext.d.ts +0 -1
  117. package/dist/components/Editor/context/SourceModeContext.d.ts +9 -0
  118. package/dist/components/Editor/htmlConfig.d.ts +2 -0
  119. package/dist/components/Editor/interface.d.ts +1 -1
  120. package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
  121. package/dist/components/Editor/plugins/HeadingPlugin.d.ts +3 -0
  122. package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
  123. package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
  124. package/dist/components/Editor/plugins/SourceModePlugin.d.ts +7 -0
  125. package/dist/components/Editor/plugins/TabIndentPlugin.d.ts +1 -0
  126. package/dist/components/Editor/plugins/TablePlugin.d.ts +1 -0
  127. package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
  128. package/dist/components/Editor/utils/fillRootFromHtml.d.ts +2 -0
  129. package/dist/components/Editor/utils/formatEditorHtml.d.ts +1 -0
  130. package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
  131. package/dist/components/Editor/utils/isEmptyEditorHtml.d.ts +1 -0
  132. package/dist/components/Editor/utils/sanitizeEditorHtml.d.ts +1 -0
  133. package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
  134. package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +2 -0
  135. package/dist/components/Editor/utils/writeHtmlSource.d.ts +1 -0
  136. package/dist/components/Overlay/OverlayContext.d.ts +16 -0
  137. package/dist/components/Overlay/index.d.ts +2 -0
  138. package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
  139. package/dist/components/index.d.ts +2 -0
  140. package/dist/index.js +53 -51
  141. package/dist/locale/lang/en-US.json.d.ts +21 -2
  142. package/dist/locale/lang/zh-CN.json.d.ts +21 -2
  143. package/dist/locale/lang/zh-TW.json.d.ts +21 -2
  144. package/dist/style.css +1 -1
  145. package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-4xHyyeop.js} +84 -36
  146. package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-I4PW9j4M.js} +21 -2
  147. package/dist/vendors/{Tree-D1s-eADo.js → Tree-B09frqQX.js} +3 -2
  148. package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-FGYsRWSe.js} +1 -1
  149. package/dist/vendors/{version-L-kG2La0.js → version-BxI5QM5W.js} +1 -1
  150. package/package.json +10 -1
  151. package/dist/ColorPicker/ColorPicker-D3JuQ7a7.js +0 -153
  152. package/dist/DatePicker/DatePicker-Dah_CjYG.js +0 -96
  153. package/dist/DropDown/DropDown-Daxr9BYf.js +0 -171
  154. package/dist/Editor/Buttons-DG_-Sg_C.js +0 -600
  155. package/dist/Modal/Modal-LiztSF7x.js +0 -92
  156. package/dist/Select/Select-CBI5PgeQ.js +0 -746
  157. package/dist/Tabs/Tabs-B1RsYb2W.js +0 -409
  158. package/dist/Tooltip/Tooltip-DWWWYn1a.js +0 -168
  159. /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
  160. /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
  161. /package/dist/Calendar/{TimeAxis-D7bgZDKs.js → TimeAxis-C9e2BdYs.js} +0 -0
  162. /package/dist/Calendar/{colorUtils-lXNjGoCk.js → colorUtils-CBLTsDX0.js} +0 -0
  163. /package/dist/Calendar/{context-CBJnz0IH.js → context-4tCN5X33.js} +0 -0
  164. /package/dist/Calendar/{layout-BglMom3m.js → layout-Dz-grtu9.js} +0 -0
  165. /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
  166. /package/dist/CheckBox/{CheckBox-Bb0UuX1Y.js → CheckBox-ByWSy9Yr.js} +0 -0
  167. /package/dist/DatePicker/{ensureDayjsPlugins-CVL-fnAl.js → ensureDayjsPlugins-Cn9Bkjkj.js} +0 -0
  168. /package/dist/DatePicker/{pickerLocale-BeMlfhKu.js → pickerLocale-BRnNjLcv.js} +0 -0
  169. /package/dist/Gantt/{GanttHighlightContext-grda5bhd.js → GanttHighlightContext-ChThr8ia.js} +0 -0
  170. /package/dist/Gantt/{columnResize-DV1tSBx_.js → columnResize-jG0Wy2PC.js} +0 -0
  171. /package/dist/Gantt/{constants-BObDP0h6.js → constants-LIz5jwed.js} +0 -0
  172. /package/dist/Gantt/{highlightTarget-DrP0_NrM.js → highlightTarget-BpkYTonb.js} +0 -0
  173. /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
  174. /package/dist/Radio/{Radio-CBUZ7DB5.js → Radio-CX9cUqb7.js} +0 -0
  175. /package/dist/Table/{constants-CcwjDbe7.js → constants-kRpjsoet.js} +0 -0
  176. /package/dist/vendors/{animations-Mlw78WYo.js → animations-rwUbyoT0.js} +0 -0
  177. /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-l4-kP_14.js} +0 -0
  178. /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-TiJ0xjUN.js} +0 -0
  179. /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
  180. /package/dist/vendors/{useFloatingPortal-C8V67X0v.js → useFloatingPortal-CmVJbuRm.js} +0 -0
  181. /package/dist/vendors/{useLatchedPopupPortalRoot-hwf14FJ5.js → useLatchedPopupPortalRoot-4fVhqVT4.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-FGYsRWSe.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-L-kG2La0.js";
1
+ import "../vendors/version-BxI5QM5W.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";
6
- import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
7
- import { n as e, r as t, t as n } from "./Select-CBI5PgeQ.js";
8
- import "./SelectInputSearch-CrGW_eVo.js";
9
- import "../vendors/Tree-D1s-eADo.js";
10
- import "../CheckBox/CheckBox-Bb0UuX1Y.js";
11
- import "../CheckBox/CheckBox-CcM19LnP.js";
12
- import "../Radio/Radio-CBUZ7DB5.js";
13
- import "../NotFoundContent/NotFoundContent-J-TEnljc.js";
14
- import "../ScrollBar/ScrollBar-CnwYQfXM.js";
15
- import "../vendors/useFloatingPortal-C8V67X0v.js";
4
+ import "../vendors/LocaleContext-I4PW9j4M.js";
5
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
6
+ import "../vendors/useLocale-FGYsRWSe.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
+ import { n as e, r as t, t as n } from "./Select-BY5Rpo3f.js";
9
+ import "./SelectInputSearch-i3egm8Wy.js";
10
+ import "../vendors/Tree-B09frqQX.js";
11
+ import "../CheckBox/CheckBox-ByWSy9Yr.js";
12
+ import "../CheckBox/CheckBox-nBm0u6zX.js";
13
+ import "../Radio/Radio-CX9cUqb7.js";
14
+ import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
15
+ import "../ScrollBar/ScrollBar-N2pOLv-8.js";
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";
2
- import { n as t, o as n, t as r } from "./constants-CcwjDbe7.js";
3
- import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-nIGqGyHh.js";
4
- import { n as p, t as m } from "./hooks-uCDY9dqx.js";
5
- import { t as h } from "./style-x9xfw6te.js";
1
+ import { t as e } from "../vendors/useLocale-FGYsRWSe.js";
2
+ import { n as t, o as n, t as r } from "./constants-kRpjsoet.js";
3
+ import { c as i, f as a, i as o, l as s, o as c, r as l, s as u, t as d, u as f } from "./processRowspan-B0WELhG2.js";
4
+ import { n as p, t as m } from "./hooks-BceUZQQm.js";
5
+ import { t as h } from "./style-C4wp0IOM.js";
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-L-kG2La0.js";
2
- import { n as e, t } from "../hooks-uCDY9dqx.js";
1
+ import "../../vendors/version-BxI5QM5W.js";
2
+ import { n as e, t } from "../hooks-BceUZQQm.js";
3
3
  export { t as useColumnResize, e as useTableVirtual };
@@ -1,4 +1,4 @@
1
- import { o as e, r as t, t as n } from "./constants-CcwjDbe7.js";
1
+ import { o as e, r as t, t as n } from "./constants-kRpjsoet.js";
2
2
  import { clamp as r } from "lodash-es";
3
3
  import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
4
4
  import { useEventListener as l, useLatest as u, useMemoizedFn as d } from "ahooks";
@@ -1,10 +1,10 @@
1
- import "../vendors/version-L-kG2La0.js";
1
+ import "../vendors/version-BxI5QM5W.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
- import "../vendors/LocaleContext-Dcw6C1LX.js";
4
- import "../vendors/useLocale-BKZX2_zw.js";
5
- import { a as e, n as t, t as n } from "./constants-CcwjDbe7.js";
6
- import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-nIGqGyHh.js";
7
- import { n as f, t as p } from "./Table-CL-KfNY3.js";
8
- import { n as m, t as h } from "./hooks-uCDY9dqx.js";
9
- import { t as g } from "./style-x9xfw6te.js";
3
+ import "../vendors/LocaleContext-I4PW9j4M.js";
4
+ import "../vendors/useLocale-FGYsRWSe.js";
5
+ import { a as e, n as t, t as n } from "./constants-kRpjsoet.js";
6
+ import { a as r, c as i, d as a, f as o, n as s, o as c, r as l, t as u, u as d } from "./processRowspan-B0WELhG2.js";
7
+ import { n as f, t as p } from "./Table-CSPdFGYn.js";
8
+ import { n as m, t as h } from "./hooks-BceUZQQm.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,4 +1,4 @@
1
- import { i as e, t } from "./constants-CcwjDbe7.js";
1
+ import { i as e, t } from "./constants-kRpjsoet.js";
2
2
  import { groupBy as n, sumBy as r } from "lodash-es";
3
3
  //#region src/components/Table/utils/tableUtils.ts
4
4
  var i = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), a = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), o = (e, n, i, a = t.DEFAULT_WIDTH) => r(i === "left" ? n.slice(0, e) : n.slice(e + 1), (e) => e.width || a), s = (e, t, n) => n !== "left" && n !== "right" ? null : {
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-L-kG2La0.js";
2
- import { t as e } from "../style-x9xfw6te.js";
1
+ import "../../vendors/version-BxI5QM5W.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-B8o94Yao.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-L-kG2La0.js";
2
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-nIGqGyHh.js";
1
+ import "../../vendors/version-BxI5QM5W.js";
2
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-B0WELhG2.js";
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 };
@@ -0,0 +1,413 @@
1
+ import { t as e } from "../Icon/Icon-BBDcb-yw.js";
2
+ import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
+ import { t as r } from "../vendors/useLocale-FGYsRWSe.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
+ 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
+ import g from "clsx";
10
+ import { useControllableValue as _, useEventListener as v, useMutationObserver as y, useToggle as b } from "ahooks";
11
+ import { AnimatePresence as x, motion as S } from "motion/react";
12
+ import { FloatingPortal as C } from "@floating-ui/react";
13
+ import "tinycolor2";
14
+ //#region src/components/Tabs/constants.ts
15
+ var w = {
16
+ LINE: "line",
17
+ CARD: "card",
18
+ FILLED_CARD: "filled-card",
19
+ BADGE_CARD: "badge-card"
20
+ }, T = l({
21
+ color: "#0269ff",
22
+ type: w.LINE
23
+ }), E = "_active_1oc43_18", D = "_disabled_1oc43_26", O = "_line_1oc43_44", k = "_card_1oc43_53", A = {
24
+ "bsy-tab": "_bsy-tab_1oc43_1",
25
+ "badge-card": "_badge-card_1oc43_9",
26
+ active: E,
27
+ disabled: D,
28
+ line: O,
29
+ card: k,
30
+ "filled-card": "_filled-card_1oc43_78"
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 = {
46
+ "data-tab-item": !0,
47
+ "data-tab-key": r,
48
+ role: "tab",
49
+ "aria-selected": t,
50
+ "aria-controls": `panel-${r}`,
51
+ onClick: u
52
+ };
53
+ return i === w.LINE ? /* @__PURE__ */ s("div", {
54
+ ...f,
55
+ className: g(A["bsy-tab"], A.line, {
56
+ [A.disabled]: a,
57
+ [A.active]: t
58
+ }),
59
+ title: l,
60
+ children: N(e)
61
+ }) : i === w.CARD ? /* @__PURE__ */ s("div", {
62
+ ...f,
63
+ className: g(A["bsy-tab"], A.card, {
64
+ [A.active]: t,
65
+ [A.disabled]: a
66
+ }),
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,
72
+ className: g(A["bsy-tab"], A["filled-card"], {
73
+ [A.active]: t,
74
+ [A.disabled]: a
75
+ }),
76
+ title: l,
77
+ children: N(e)
78
+ }) : i === w.BADGE_CARD ? /* @__PURE__ */ s("div", {
79
+ ...f,
80
+ className: g(A["bsy-tab"], A["badge-card"], {
81
+ [A.active]: t,
82
+ [A.disabled]: a
83
+ }),
84
+ title: l,
85
+ children: /* @__PURE__ */ s("span", { children: N(e) })
86
+ }) : null;
87
+ };
88
+ P.displayName = "BsyTab";
89
+ //#endregion
90
+ //#region src/components/Tabs/TabList/useTabScroll.ts
91
+ var F = ({ disabled: e, children: t }) => {
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(() => {
93
+ let e = n.current, t = r.current;
94
+ if (!e || !t) return;
95
+ let i = e.clientWidth, o = t.scrollWidth, c = o > i;
96
+ a(c), c ? (s(d < 0), l(d > -(o - i))) : (s(!1), l(!1), p(0));
97
+ }, [d]);
98
+ return v("resize", () => g()), f(() => {
99
+ g();
100
+ }, [
101
+ d,
102
+ t,
103
+ g
104
+ ]), {
105
+ listRef: n,
106
+ wrapperRef: r,
107
+ showControls: i,
108
+ canScrollLeft: o,
109
+ canScrollRight: c,
110
+ translateX: d,
111
+ scrollLeft: () => {
112
+ if (!o || e) return;
113
+ let t = n.current;
114
+ if (!t) return;
115
+ let r = t.clientWidth * .6;
116
+ p(Math.min(0, d + r));
117
+ },
118
+ scrollRight: () => {
119
+ if (!c || e) return;
120
+ let t = n.current, i = r.current;
121
+ if (!t || !i) return;
122
+ let a = t.clientWidth * .6, o = t.clientWidth, s = -(i.scrollWidth - o);
123
+ p(Math.max(s, d - a));
124
+ }
125
+ };
126
+ }, I = ({ activeKey: e, type: t, showIndicator: n, wrapperRef: r, items: i }) => {
127
+ let [a, o] = h({
128
+ width: 0,
129
+ left: 0,
130
+ ready: !1
131
+ }), s = u((e) => {
132
+ if (!n || !r.current) return;
133
+ let t = r.current.getBoundingClientRect(), i = e.getBoundingClientRect(), a = i.left - t.left, s = i.width;
134
+ o({
135
+ width: s,
136
+ left: a,
137
+ ready: !0
138
+ });
139
+ }, [n, r]);
140
+ return f(() => {
141
+ if (!e || !r.current) return;
142
+ let t = r.current.querySelector(`[data-tab-key="${e}"]`);
143
+ t && n && s(t);
144
+ }, [
145
+ e,
146
+ n,
147
+ r,
148
+ s,
149
+ t,
150
+ i
151
+ ]), y(() => {
152
+ if (!n) return;
153
+ let e = r.current?.querySelector("[aria-selected=\"true\"]");
154
+ e && s(e);
155
+ }, r, {
156
+ subtree: !0,
157
+ characterData: !0
158
+ }), {
159
+ indicatorStyle: a,
160
+ handleTabClick: (e) => {
161
+ s(e);
162
+ }
163
+ };
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({
166
+ disabled: f,
167
+ children: e
168
+ }), { indicatorStyle: C, handleTabClick: E } = I({
169
+ activeKey: t,
170
+ type: l,
171
+ showIndicator: p,
172
+ wrapperRef: h,
173
+ items: a
174
+ }), D = C.ready, O = (e) => {
175
+ if (f) return;
176
+ let t = e.target.closest("[data-tab-item]");
177
+ t && E(t);
178
+ };
179
+ return /* @__PURE__ */ c("div", {
180
+ className: g("relative max-h-[36px]", n),
181
+ style: i,
182
+ children: [
183
+ _ && /* @__PURE__ */ s("button", {
184
+ className: g("absolute left-0 top-0 bottom-0 z-10 w-8 flex items-center justify-center", {
185
+ "text-gray-400 cursor-not-allowed": !v || f,
186
+ "text-gray-600": v && !f
187
+ }),
188
+ onClick: x,
189
+ disabled: !v || f,
190
+ "aria-label": o("tabs.scrollPrev"),
191
+ children: /* @__PURE__ */ s("svg", {
192
+ className: "w-4 h-4",
193
+ fill: "none",
194
+ stroke: "currentColor",
195
+ viewBox: "0 0 24 24",
196
+ children: /* @__PURE__ */ s("path", {
197
+ strokeLinecap: "round",
198
+ strokeLinejoin: "round",
199
+ strokeWidth: 2,
200
+ d: "M15 19l-7-7 7-7"
201
+ })
202
+ })
203
+ }),
204
+ /* @__PURE__ */ s("div", {
205
+ className: g({
206
+ "pl-8": _,
207
+ "pr-8": _
208
+ }),
209
+ children: /* @__PURE__ */ s("div", {
210
+ ref: m,
211
+ className: g("overflow-hidden", {
212
+ "border-b border-[#e0e0e0]": l === w.LINE,
213
+ "border-b-2": l === w.FILLED_CARD || l === w.BADGE_CARD,
214
+ "pb-[2px]": l === w.BADGE_CARD
215
+ }),
216
+ style: { borderColor: l === w.LINE ? void 0 : u },
217
+ children: /* @__PURE__ */ c("div", {
218
+ ref: h,
219
+ role: "tablist",
220
+ className: g("relative text-sm flex flex-nowrap", {
221
+ "gap-x-[26px]": l === w.LINE,
222
+ "gap-x-[10px]": l === w.FILLED_CARD || l === w.BADGE_CARD,
223
+ "bg-[#f0f0f0]": l === w.CARD
224
+ }),
225
+ onClick: O,
226
+ style: {
227
+ "--theme-color": u,
228
+ transform: `translateX(${b}px)`,
229
+ transition: "transform 0.3s ease-in-out"
230
+ },
231
+ children: [e, p && C.ready && /* @__PURE__ */ s("div", {
232
+ className: g("absolute h-0.5", {
233
+ "bottom-0": l === w.LINE,
234
+ "top-0": l === w.CARD,
235
+ "transition-all duration-300 ease-in-out": D
236
+ }),
237
+ style: {
238
+ backgroundColor: u,
239
+ width: `${C.width}px`,
240
+ left: `${C.left}px`
241
+ }
242
+ })]
243
+ })
244
+ })
245
+ }),
246
+ _ && /* @__PURE__ */ s("button", {
247
+ className: g("absolute right-0 top-0 bottom-0 z-10 w-8 flex items-center justify-center", {
248
+ "text-gray-400 cursor-not-allowed": !y || f,
249
+ "text-gray-600": y && !f
250
+ }),
251
+ onClick: S,
252
+ disabled: !y || f,
253
+ "aria-label": o("tabs.scrollNext"),
254
+ children: /* @__PURE__ */ s("svg", {
255
+ className: "w-4 h-4",
256
+ fill: "none",
257
+ stroke: "currentColor",
258
+ viewBox: "0 0 24 24",
259
+ children: /* @__PURE__ */ s("path", {
260
+ strokeLinecap: "round",
261
+ strokeLinejoin: "round",
262
+ strokeWidth: 2,
263
+ d: "M9 5l7 7-7 7"
264
+ })
265
+ })
266
+ })
267
+ ]
268
+ });
269
+ };
270
+ L.displayName = "BsyTabList";
271
+ //#endregion
272
+ //#region src/components/Tabs/TabPanel/TabPanel.tsx
273
+ var R = ({ items: e, activeKey: t, className: n }) => {
274
+ let r = e.find((e) => e.key === t);
275
+ return !r || !r.children ? null : /* @__PURE__ */ s("div", {
276
+ className: n,
277
+ role: "tabpanel",
278
+ "aria-labelledby": `tab-${t}`,
279
+ children: r.children
280
+ });
281
+ };
282
+ R.displayName = "BsyTabPanel";
283
+ //#endregion
284
+ //#region src/components/Tabs/Tabs.tsx
285
+ var z = (e) => {
286
+ let [t, n] = _(e, {
287
+ defaultValuePropName: "defaultActiveKey",
288
+ valuePropName: "activeKey",
289
+ trigger: "onChange"
290
+ }), r = e.items?.some((e) => e.children), i = e.color || "#0265ff";
291
+ return /* @__PURE__ */ s(T.Provider, {
292
+ value: {
293
+ color: i,
294
+ type: e.type,
295
+ disabled: e.disabled
296
+ },
297
+ children: /* @__PURE__ */ c("div", {
298
+ className: "bsy-tabs",
299
+ children: [/* @__PURE__ */ s(L, {
300
+ items: e.items,
301
+ activeKey: t,
302
+ children: e.items?.map((e) => /* @__PURE__ */ s(P, {
303
+ tabKey: e.key,
304
+ label: e.label,
305
+ active: t === e.key,
306
+ onClick: (e) => n(e)
307
+ }, e.key))
308
+ }), r && e.items && /* @__PURE__ */ s(R, {
309
+ items: e.items,
310
+ activeKey: t,
311
+ className: "bsy-tabs__content"
312
+ })]
313
+ })
314
+ });
315
+ };
316
+ z.displayName = "BsyTabs";
317
+ //#endregion
318
+ //#region src/components/Tabs/TabSelect/tabSelect.module.scss
319
+ var B = "_active_5a1wn_11", V = "_icon_5a1wn_45", H = {
320
+ "bsy-tabs-select__trigger": "_bsy-tabs-select__trigger_5a1wn_1",
321
+ active: B,
322
+ "bsy-tabs-select__trigger-icon": "_bsy-tabs-select__trigger-icon_5a1wn_14",
323
+ "bsy-tabs-select__trigger-input": "_bsy-tabs-select__trigger-input_5a1wn_17",
324
+ "bsy-tabs-select__panel": "_bsy-tabs-select__panel_5a1wn_21",
325
+ "bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_5a1wn_32",
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,
331
+ offset: {
332
+ x: 0,
333
+ y: 4
334
+ },
335
+ zIndex: d
336
+ }), [O, k] = _(o, {
337
+ trigger: "onChange",
338
+ defaultValuePropName: "defaultValue",
339
+ valuePropName: "value",
340
+ defaultValue: w.LINE
341
+ }), A = Object.values(w).map((e) => ({
342
+ label: e,
343
+ value: e
344
+ })), j = p(() => [
345
+ {
346
+ label: u("tabs.previewTab1"),
347
+ key: "1"
348
+ },
349
+ {
350
+ label: u("tabs.previewTab2"),
351
+ key: "2"
352
+ },
353
+ {
354
+ label: u("tabs.previewTab3"),
355
+ key: "3"
356
+ }
357
+ ], [u]);
358
+ return /* @__PURE__ */ c("div", {
359
+ className: H["bsy-tabs-select"],
360
+ children: [/* @__PURE__ */ c("div", {
361
+ className: g(H["bsy-tabs-select__trigger"], { [H.active]: f }),
362
+ ref: v.setReference,
363
+ ...E(),
364
+ style: D,
365
+ onClick: () => m(),
366
+ children: [/* @__PURE__ */ s("div", {
367
+ className: g(H["bsy-tabs-select__trigger-input"], { [H.active]: O }),
368
+ children: O && /* @__PURE__ */ s(z, {
369
+ activeKey: "1",
370
+ type: O,
371
+ color: l,
372
+ disabled: !0,
373
+ items: j
374
+ }, O)
375
+ }), /* @__PURE__ */ s("div", {
376
+ className: H["bsy-tabs-select__trigger-icon"],
377
+ children: /* @__PURE__ */ s(e, {
378
+ name: "arrow-down",
379
+ className: g(H.icon, { active: f })
380
+ })
381
+ })]
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
+ })
406
+ })
407
+ })
408
+ }) }) })]
409
+ });
410
+ };
411
+ U.displayName = "BsyTabSelect";
412
+ //#endregion
413
+ export { w as i, z as n, R as r, U as t };
@@ -1,7 +1,8 @@
1
- import "../vendors/version-L-kG2La0.js";
1
+ import "../vendors/version-BxI5QM5W.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/useFloatingPortal-C8V67X0v.js";
6
- import { i as e, n as t, r as n, t as r } from "./Tabs-B1RsYb2W.js";
3
+ import "../vendors/LocaleContext-I4PW9j4M.js";
4
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
5
+ import "../vendors/useLocale-FGYsRWSe.js";
6
+ import "../vendors/useFloatingPortal-CmVJbuRm.js";
7
+ import { i as e, n as t, r as n, t as r } from "./Tabs-C0m3mt-j.js";
7
8
  export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };