@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,9 +1,9 @@
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 { n as e, t } from "./ColorPicker-t1uBeATW.js";
5
- import "../vendors/useFloatingOverlay-BApqkHSu.js";
6
- import "../vendors/useLocale-BKZX2_zw.js";
7
- import "../vendors/color-D6XBXROa.js";
3
+ import "../vendors/LocaleContext-CN9doEXT.js";
4
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
5
+ import { n as e, t } from "./ColorPicker-CYlrnMwM.js";
6
+ import "../vendors/useFloatingOverlay-B3M9k8nj.js";
7
+ import "../vendors/useLocale-sawv8CEL.js";
8
8
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
9
9
  export { e as COLOR_OPTIONS_RGBA, t as default };
@@ -1,4 +1,5 @@
1
- import "../vendors/version-DiV_Cnd8.js";
2
- import "../vendors/LocaleContext-Dcw6C1LX.js";
3
- import { n as e, t } from "../vendors/ConfigProvider-DxrZpdIb.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
+ import "../vendors/LocaleContext-CN9doEXT.js";
3
+ import { n as e, t } from "../vendors/ConfigProvider-vPuwReNX.js";
4
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
4
5
  export { t as ConfigProvider, t as default, e as useConfig };
@@ -0,0 +1,101 @@
1
+ import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
2
+ import { t as n } from "../vendors/useFloatingOverlay-B3M9k8nj.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/useLatchedPopupPortalRoot-4fVhqVT4.js";
6
+ import { n as o } from "./pickerLocale-BRnNjLcv.js";
7
+ import { t as s } from "./style-UKXn1N_p.js";
8
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { Suspense as d, cloneElement as f, isValidElement as p, lazy as m, useCallback as h, useMemo as g } from "react";
10
+ import _ from "clsx";
11
+ import { useControllableValue as v } from "ahooks";
12
+ import { AnimatePresence as y, motion as b } from "motion/react";
13
+ import { FloatingPortal as x } from "@floating-ui/react";
14
+ import S from "dayjs";
15
+ var C = {
16
+ footer: "_footer_h6lng_1",
17
+ today: "_today_h6lng_11"
18
+ }, w = ({ onClick: e }) => {
19
+ let { t } = r();
20
+ return /* @__PURE__ */ l("div", {
21
+ className: C.footer,
22
+ children: /* @__PURE__ */ l("button", {
23
+ type: "button",
24
+ className: C.today,
25
+ onClick: e,
26
+ children: t("datePicker.today")
27
+ })
28
+ });
29
+ }, T = (e, t) => {
30
+ switch (t) {
31
+ case "week": return e.startOf("isoWeek");
32
+ case "month": return e.startOf("month");
33
+ case "year": return e.startOf("year");
34
+ default: return e.startOf("day");
35
+ }
36
+ }, E = {
37
+ "bsy-date-picker": "_bsy-date-picker_1i2le_1",
38
+ "bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
39
+ "bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
40
+ "bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
41
+ }, D = m(() => import("./DatePickerPanel-CaDZzxMD.js")), O = (m) => {
42
+ let { children: C, picker: O = "date", theme: k, getPopupContainer: A, triggerActiveClassName: j, zIndex: M } = m, { locale: N } = r(), P = e(M), [F, I] = v(m, {
43
+ defaultValuePropName: "defaultValue",
44
+ valuePropName: "value",
45
+ trigger: "onChange",
46
+ defaultValue: S().locale(o(N)).startOf("day")
47
+ }), { isOpen: L, setIsOpen: R, refs: z, floatingStyles: B, getReferenceProps: V, getFloatingProps: H } = n(), U = h((e) => {
48
+ e && (I(T(e, O)), R(!1));
49
+ }, [
50
+ O,
51
+ I,
52
+ R
53
+ ]), W = h(() => {
54
+ U(S().locale(o(N)));
55
+ }, [U, N]), G = g(() => s(k), [k]), { portalRoot: K, portalMountKey: q, handleExitComplete: J } = a(L, A);
56
+ return p(C), /* @__PURE__ */ u(c, { children: [p(C) ? f(C, {
57
+ ...V({ className: _(C.props.className, L && j) }),
58
+ ref: z.setReference
59
+ }) : C, /* @__PURE__ */ l(x, {
60
+ root: K,
61
+ children: /* @__PURE__ */ l(y, {
62
+ onExitComplete: J,
63
+ children: L ? /* @__PURE__ */ l(t, {
64
+ zIndex: P,
65
+ children: /* @__PURE__ */ l(b.div, {
66
+ ref: z.setFloating,
67
+ style: {
68
+ ...B,
69
+ ...G,
70
+ "--bsy-date-picker-z-index": P
71
+ },
72
+ ...H(),
73
+ "data-bsy-date-picker": !0,
74
+ className: E["bsy-date-picker"],
75
+ ...i,
76
+ children: /* @__PURE__ */ u("div", {
77
+ className: E["bsy-date-picker__content"],
78
+ children: [
79
+ /* @__PURE__ */ l(d, {
80
+ fallback: /* @__PURE__ */ l("div", {
81
+ className: E["bsy-date-picker__panel-loading"],
82
+ "aria-hidden": !0
83
+ }),
84
+ children: /* @__PURE__ */ l(D, {
85
+ picker: O,
86
+ value: F,
87
+ onChange: U
88
+ })
89
+ }),
90
+ /* @__PURE__ */ l("div", { className: E["bsy-date-picker__divider"] }),
91
+ /* @__PURE__ */ l(w, { onClick: W })
92
+ ]
93
+ })
94
+ }, "bsy-date-picker-panel")
95
+ }) : null
96
+ })
97
+ }, q)] });
98
+ };
99
+ O.displayName = "BsyDatePicker";
100
+ //#endregion
101
+ export { O as t };
@@ -1,7 +1,7 @@
1
- import "../vendors/version-DiV_Cnd8.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
2
  import { t as e } from "../Icon/Icon-BBDcb-yw.js";
3
- import "../vendors/LocaleContext-Dcw6C1LX.js";
4
- import { t } from "../vendors/useLocale-BKZX2_zw.js";
3
+ import "../vendors/LocaleContext-CN9doEXT.js";
4
+ import { t } from "../vendors/useLocale-sawv8CEL.js";
5
5
  import "./ensureDayjsPlugins-Cn9Bkjkj.js";
6
6
  import { t as n } from "./pickerLocale-BRnNjLcv.js";
7
7
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,10 +1,11 @@
1
- import "../vendors/version-DiV_Cnd8.js";
2
- import "../vendors/LocaleContext-Dcw6C1LX.js";
3
- import "../vendors/useFloatingOverlay-BApqkHSu.js";
4
- import "../vendors/useLocale-BKZX2_zw.js";
1
+ import "../vendors/version-DdQLttdL.js";
2
+ import "../vendors/LocaleContext-CN9doEXT.js";
3
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
4
+ import "../vendors/useFloatingOverlay-B3M9k8nj.js";
5
+ import "../vendors/useLocale-sawv8CEL.js";
5
6
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
6
- import { t as e } from "./DatePicker--kMNwM9Q.js";
7
+ import { t as e } from "./DatePicker-CagGt_f0.js";
7
8
  import "./ensureDayjsPlugins-Cn9Bkjkj.js";
8
9
  import "./pickerLocale-BRnNjLcv.js";
9
- import "./style-CNtPPsZp.js";
10
+ import "./style-UKXn1N_p.js";
10
11
  export { e as default };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DiV_Cnd8.js";
2
- import { t as e } from "../style-CNtPPsZp.js";
1
+ import "../../vendors/version-DdQLttdL.js";
2
+ import { t as e } from "../style-UKXn1N_p.js";
3
3
  export { e as resolveDatePickerThemeVars };
@@ -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
  import t from "tinycolor2";
3
3
  //#region src/components/DatePicker/style/resolveDatePickerThemeVars.ts
4
4
  var n = .3, r = "#fff", i = (i) => {
@@ -0,0 +1,178 @@
1
+ import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
2
+ import { t as n } from "../vendors/useLocale-sawv8CEL.js";
3
+ import { n as r } from "../vendors/animations-rwUbyoT0.js";
4
+ import { t as i } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
5
+ import { t as a } from "../Select/SelectInputSearch-Bc_aPNbG.js";
6
+ import { t as o } from "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
7
+ import { t as s } from "../ScrollBar/ScrollBar-N2pOLv-8.js";
8
+ import { t as c } from "../vendors/useFloatingPortal-CmVJbuRm.js";
9
+ import { t as l } from "./style-LLDVPpPa.js";
10
+ import { isEmpty as u, isNumber as d } from "lodash-es";
11
+ import { Fragment as ee, jsx as f, jsxs as p } from "react/jsx-runtime";
12
+ import { cloneElement as m, isValidElement as h, memo as g, useMemo as _, useState as v } from "react";
13
+ import { clsx as y } from "clsx";
14
+ import { useControllableValue as b } from "ahooks";
15
+ import { AnimatePresence as x, motion as S } from "motion/react";
16
+ import { FloatingPortal as C } from "@floating-ui/react";
17
+ import w from "fuse.js";
18
+ //#region src/hooks/useDropdownSearch.ts
19
+ var T = ({ menus: e, searchValue: t, enableInternalFilter: n, searchKey: r }) => {
20
+ let i = _(() => new w(e, {
21
+ keys: [r],
22
+ ignoreLocation: !0,
23
+ threshold: .3,
24
+ getFn: (e, t) => {
25
+ let n = e[t];
26
+ return t === "label" && typeof n != "string" ? "" : String(n || "");
27
+ }
28
+ }), [e, r]), a = _(() => !n || u(t) ? e : i.search(t).map((e) => e.item), [
29
+ e,
30
+ t,
31
+ n,
32
+ i
33
+ ]);
34
+ return {
35
+ filteredMenus: a,
36
+ hasNoResults: _(() => n && !u(t) && a.length === 0, [
37
+ n,
38
+ t,
39
+ a.length
40
+ ])
41
+ };
42
+ }, E = "_dropdown__trigger_1fafn_1", D = "_dropdown__panel_1fafn_7", O = "_dropdown__search_1fafn_15", k = "_dropdown__menu_1fafn_19", A = {
43
+ dropdown__trigger: E,
44
+ "dropdown__trigger--disabled": "_dropdown__trigger--disabled_1fafn_4",
45
+ dropdown__panel: D,
46
+ dropdown__search: O,
47
+ dropdown__menu: k,
48
+ "dropdown__menu-item": "_dropdown__menu-item_1fafn_22",
49
+ "dropdown__menu-item--disabled": "_dropdown__menu-item--disabled_1fafn_34",
50
+ "dropdown__menu-item--active": "_dropdown__menu-item--active_1fafn_34",
51
+ "dropdown__menu-item-icon": "_dropdown__menu-item-icon_1fafn_41",
52
+ "system-field": "_system-field_1fafn_52",
53
+ "dropdown__menu-item-label": "_dropdown__menu-item-label_1fafn_63"
54
+ }, j = g(({ item: e, onClick: t, isActive: n = !1 }) => {
55
+ let r = () => {
56
+ e.disabled || t(e);
57
+ }, i = e.systemField || !1;
58
+ return /* @__PURE__ */ p("div", {
59
+ className: y(A["dropdown__menu-item"], {
60
+ [A["dropdown__menu-item--disabled"]]: e.disabled,
61
+ [A["dropdown__menu-item--active"]]: n && !e.disabled,
62
+ "text-[#4d609f]": i && !e.disabled && !n
63
+ }),
64
+ onClick: r,
65
+ children: [e.icon && /* @__PURE__ */ f("div", {
66
+ className: y(A["dropdown__menu-item-icon"], { [A["system-field"]]: i && !e.disabled && !n }),
67
+ children: e.icon
68
+ }), /* @__PURE__ */ f("div", {
69
+ className: y(A["dropdown__menu-item-label"], "truncate"),
70
+ children: e.label
71
+ })]
72
+ });
73
+ });
74
+ j.displayName = "BsyDropDownMenuItem";
75
+ //#endregion
76
+ //#region src/components/DropDown/MenuList/MenuList.tsx
77
+ var M = ({ menus: e, onClick: t, hasNoResults: r, activeKey: i = [] }) => {
78
+ let { t: a } = n();
79
+ return e.length === 0 ? /* @__PURE__ */ f(o, {
80
+ text: a("noData"),
81
+ className: "px-3 py-6"
82
+ }) : r ? /* @__PURE__ */ f(o, {
83
+ text: a("noDataFound"),
84
+ className: "px-3 py-6"
85
+ }) : /* @__PURE__ */ f("div", {
86
+ className: A.dropdown__menu,
87
+ children: e.map((e) => /* @__PURE__ */ f(j, {
88
+ item: e,
89
+ onClick: t,
90
+ isActive: i.includes(e.key)
91
+ }, e.key))
92
+ });
93
+ };
94
+ M.displayName = "BsyDropDownMenuList";
95
+ //#endregion
96
+ //#region src/components/DropDown/DropDown.tsx
97
+ var N = (o) => {
98
+ let { t: u } = n(), { children: g, menus: y, onClick: w, onSearch: E, searchKey: D = "label", showSearch: O = !0, closeOnSelect: k = !0, searchPlaceholder: j = u("search"), offset: N = {
99
+ x: 0,
100
+ y: 0
101
+ }, zIndex: P, style: F, activeKey: I = [], getPopupContainer: L, theme: R } = o, z = e(P), [B, V] = b(o, {
102
+ valuePropName: "visible",
103
+ defaultValue: !1,
104
+ trigger: "onOpenChange"
105
+ }), [H, U] = v(""), W = () => {
106
+ V(!B);
107
+ }, G = () => {
108
+ V(!1);
109
+ }, K = (e) => {
110
+ e.disabled || (w?.(e), k && G());
111
+ }, q = (e) => {
112
+ U(e), E?.(e);
113
+ }, { filteredMenus: J, hasNoResults: Y } = T({
114
+ menus: y,
115
+ searchValue: H,
116
+ enableInternalFilter: !E,
117
+ searchKey: D
118
+ }), { refs: X, floatingStyles: Z, getReferenceProps: Q, getFloatingProps: te } = c({
119
+ isOpen: B,
120
+ close: G,
121
+ showMask: !1,
122
+ zIndex: z,
123
+ offset: {
124
+ x: d(N.x) ? N.x : 0,
125
+ y: d(N.y) ? N.y : 0
126
+ }
127
+ }), $ = h(g) ? m(g, {
128
+ ...Q(),
129
+ ref: X.setReference,
130
+ onClick: (e) => {
131
+ W(), g.props.onClick?.(e);
132
+ }
133
+ }) : g, { portalRoot: ne, portalMountKey: re, handleExitComplete: ie } = i(B, L), ae = _(() => l(R), [R]);
134
+ return /* @__PURE__ */ p(ee, { children: [$, /* @__PURE__ */ f(C, {
135
+ root: ne,
136
+ children: /* @__PURE__ */ f(x, {
137
+ onExitComplete: ie,
138
+ children: B ? /* @__PURE__ */ f(t, {
139
+ zIndex: z,
140
+ children: /* @__PURE__ */ f(S.div, {
141
+ ref: X.setFloating,
142
+ ...te(),
143
+ style: {
144
+ ...Z,
145
+ zIndex: z
146
+ },
147
+ ...r,
148
+ children: /* @__PURE__ */ p("div", {
149
+ className: A.dropdown__panel,
150
+ style: {
151
+ ...ae,
152
+ ...F
153
+ },
154
+ children: [O && /* @__PURE__ */ f("div", {
155
+ className: A.dropdown__search,
156
+ children: /* @__PURE__ */ f(a, {
157
+ value: H,
158
+ onChange: q,
159
+ searchPlaceholder: j
160
+ })
161
+ }), /* @__PURE__ */ f(s, {
162
+ style: { maxHeight: 300 },
163
+ children: /* @__PURE__ */ f(M, {
164
+ menus: J,
165
+ onClick: K,
166
+ hasNoResults: Y,
167
+ activeKey: I
168
+ })
169
+ })]
170
+ })
171
+ }, "bsy-dropdown-panel")
172
+ }) : null
173
+ })
174
+ }, re)] });
175
+ };
176
+ N.displayName = "BsyDropDown";
177
+ //#endregion
178
+ export { N as t };
@@ -1,13 +1,14 @@
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 "../Select/SelectInputSearch-COUzreau.js";
8
+ import "../Select/SelectInputSearch-Bc_aPNbG.js";
8
9
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
9
- import "../ScrollBar/ScrollBar-QhXVe8zd.js";
10
+ import "../ScrollBar/ScrollBar-N2pOLv-8.js";
10
11
  import "../vendors/useFloatingPortal-CmVJbuRm.js";
11
- import { t as e } from "./DropDown-yDH9V_9Y.js";
12
- import "./style-Fdp-U4md.js";
12
+ import { t as e } from "./DropDown-CLuQf970.js";
13
+ import "./style-LLDVPpPa.js";
13
14
  export { e as default };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-DiV_Cnd8.js";
2
- import { t as e } from "../style-Fdp-U4md.js";
1
+ import "../../vendors/version-DdQLttdL.js";
2
+ import { t as e } from "../style-LLDVPpPa.js";
3
3
  export { e as resolveDropDownThemeVars };
@@ -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/DropDown/style/resolveDropDownThemeVars.ts
3
3
  var t = (t) => {
4
4
  if (!t) return {};