@baishuyun/ui-base 6.12.0 → 6.13.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 (153) hide show
  1. package/dist/Amap/AmapCircle/index.js +1 -1
  2. package/dist/Amap/AmapMarker/index.js +1 -1
  3. package/dist/Amap/AmapMarkerCluster/index.js +1 -1
  4. package/dist/Amap/AmapProvider/index.js +4 -4
  5. package/dist/Amap/{AmapProvider-CvRHhN42.js → AmapProvider-BwyzXpEj.js} +1 -1
  6. package/dist/Amap/hooks/index.js +1 -1
  7. package/dist/Amap/index.js +4 -4
  8. package/dist/Calendar/{AllDaySection-CTaXpCmK.js → AllDaySection-D9YHhwIa.js} +1 -1
  9. package/dist/Calendar/{Calendar-BOLbbip1.js → Calendar-DEjopu9G.js} +5 -5
  10. package/dist/Calendar/{TimeGrid-Ci8Dfama.js → TimeGrid-5zMy9Hks.js} +1 -1
  11. package/dist/Calendar/context/index.js +1 -1
  12. package/dist/Calendar/index.js +8 -8
  13. package/dist/Calendar/subcomponents/AllDaySection/index.js +3 -3
  14. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
  15. package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
  16. package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
  17. package/dist/Calendar/subcomponents/TimeGrid/index.js +3 -3
  18. package/dist/Calendar/utils/index.js +1 -1
  19. package/dist/Calendar/utils/layout/index.js +1 -1
  20. package/dist/Calendar/utils/theme/index.js +1 -1
  21. package/dist/Card/{Card-C8A4XaJZ.js → Card-DDbQQsCc.js} +1 -1
  22. package/dist/Card/index.js +3 -3
  23. package/dist/CheckBox/{CheckBox-DBzTOuRy.js → CheckBox-CwfrMEFb.js} +1 -1
  24. package/dist/CheckBox/{CheckBox-Dt4x6IqH.js → CheckBox-DFfNiPGM.js} +1 -1
  25. package/dist/CheckBox/index.js +4 -4
  26. package/dist/ColorPicker/{ColorPicker-Buku806Y.js → ColorPicker-Cm_-e0Hz.js} +34 -31
  27. package/dist/ColorPicker/index.js +5 -5
  28. package/dist/ConfigProvider/index.js +3 -3
  29. package/dist/DatePicker/{DatePicker-Vi3wfsfz.js → DatePicker-BUvDkVjx.js} +9 -9
  30. package/dist/DatePicker/{DatePickerPanel-Cwmb-4UR.js → DatePickerPanel-BHTPcE6R.js} +4 -4
  31. package/dist/DatePicker/index.js +4 -4
  32. package/dist/DatePicker/style/index.js +1 -1
  33. package/dist/DropDown/DropDown-DV1IuuQD.js +290 -0
  34. package/dist/DropDown/index.js +7 -7
  35. package/dist/DropDown/style/index.js +1 -1
  36. package/dist/Editor/Buttons-BUC9qQY1.js +1732 -0
  37. package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -12
  38. package/dist/Editor/constants/index.js +10 -3
  39. package/dist/Editor/index.js +1572 -909
  40. package/dist/Gantt/GanttChart/index.js +9 -9
  41. package/dist/Gantt/{GanttChart-WIrD6Z7O.js → GanttChart-DEGOIgRD.js} +3 -3
  42. package/dist/Gantt/GanttTable/index.js +5 -5
  43. package/dist/Gantt/{GanttTable-CdXhMHF6.js → GanttTable-Dwb00N8Z.js} +1 -1
  44. package/dist/Gantt/GanttToolBar/index.js +8 -8
  45. package/dist/Gantt/{GanttToolBar-C1gAS9v2.js → GanttToolBar-BcJB6sKY.js} +3 -3
  46. package/dist/Gantt/index.js +11 -11
  47. package/dist/Gantt/utils/index.js +1 -1
  48. package/dist/Gantt/utils/theme/index.js +1 -1
  49. package/dist/Icon/{Icon-oQ_uBooE.js → Icon-DDHx0R18.js} +1 -1
  50. package/dist/Icon/index.js +2 -2
  51. package/dist/InputTag/{InputTag-BQpIRPtc.js → InputTag-CBnG1R7g.js} +2 -2
  52. package/dist/InputTag/index.js +5 -5
  53. package/dist/Loading/{Loading-CiRe7i2R.js → Loading-DYayeRbT.js} +1 -1
  54. package/dist/Loading/index.js +4 -4
  55. package/dist/Modal/{Modal-17rLsxN4.js → Modal-BnF6CUrn.js} +20 -17
  56. package/dist/Modal/index.js +3 -3
  57. package/dist/NotFoundContent/index.js +1 -1
  58. package/dist/Overlay/index.js +1 -1
  59. package/dist/Radio/index.js +1 -1
  60. package/dist/ScrollBar/index.js +1 -1
  61. package/dist/Segmented/index.js +1 -1
  62. package/dist/Select/{Select-p_ly7xmz.js → Select-CG5wFTL4.js} +13 -13
  63. package/dist/Select/{SelectInputSearch-BBwVIb8u.js → SelectInputSearch-DiuwwOWz.js} +2 -2
  64. package/dist/Select/index.js +10 -10
  65. package/dist/Table/{Table-CSPdFGYn.js → Table-B7J-IK2_.js} +1 -1
  66. package/dist/Table/hooks/index.js +1 -1
  67. package/dist/Table/index.js +4 -4
  68. package/dist/Table/style/index.js +1 -1
  69. package/dist/Table/utils/index.js +1 -1
  70. package/dist/Tabs/{Tabs-D2A8nJl8.js → Tabs-CObQtF37.js} +7 -7
  71. package/dist/Tabs/index.js +6 -6
  72. package/dist/Tooltip/index.js +1 -1
  73. package/dist/Tree/index.js +4 -4
  74. package/dist/Tree/utils/index.js +1 -1
  75. package/dist/components/ColorPicker/ColorPicker.type.d.ts +2 -0
  76. package/dist/components/ColorPicker/useFloatingColorPicker.d.ts +1 -1
  77. package/dist/components/DropDown/DropDownOpenContext.d.ts +4 -0
  78. package/dist/components/DropDown/MenuItem/MenuItem.d.ts +4 -0
  79. package/dist/components/DropDown/interface.d.ts +5 -1
  80. package/dist/components/Editor/Preview/EditorPreview.d.ts +9 -0
  81. package/dist/components/Editor/Preview/HtmlPreview.d.ts +5 -0
  82. package/dist/components/Editor/Preview/PolishModal.d.ts +14 -0
  83. package/dist/components/Editor/Preview/Thinking.d.ts +23 -0
  84. package/dist/components/Editor/Preview/TypesetModal.d.ts +12 -0
  85. package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +5 -1
  86. package/dist/components/Editor/ToolbarPlugin/Buttons/AiButton.d.ts +3 -0
  87. package/dist/components/Editor/ToolbarPlugin/Buttons/AlignButton.d.ts +2 -1
  88. package/dist/components/Editor/ToolbarPlugin/Buttons/BoldButton.d.ts +2 -1
  89. package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -1
  90. package/dist/components/Editor/ToolbarPlugin/Buttons/ClearFormatButton.d.ts +3 -0
  91. package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -1
  92. package/dist/components/Editor/ToolbarPlugin/Buttons/FillButton.d.ts +2 -1
  93. package/dist/components/Editor/ToolbarPlugin/Buttons/FontColorButton.d.ts +2 -1
  94. package/dist/components/Editor/ToolbarPlugin/Buttons/FontSizeButton.d.ts +2 -1
  95. package/dist/components/Editor/ToolbarPlugin/Buttons/HeadingButton.d.ts +2 -1
  96. package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -1
  97. package/dist/components/Editor/ToolbarPlugin/Buttons/ItalicButton.d.ts +2 -1
  98. package/dist/components/Editor/ToolbarPlugin/Buttons/LinkButton.d.ts +2 -1
  99. package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -1
  100. package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -1
  101. package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/PictureButton.d.ts +2 -1
  102. package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +1 -0
  103. package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -1
  104. package/dist/components/Editor/ToolbarPlugin/Buttons/SourceButton.d.ts +2 -1
  105. package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -1
  106. package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -1
  107. package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -1
  108. package/dist/components/Editor/ToolbarPlugin/Buttons/TableButton.d.ts +2 -1
  109. package/dist/components/Editor/ToolbarPlugin/Buttons/UnLinkButton.d.ts +2 -1
  110. package/dist/components/Editor/ToolbarPlugin/Buttons/UnderLineButton.d.ts +2 -1
  111. package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -1
  112. package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +26 -23
  113. package/dist/components/Editor/ToolbarPlugin/Buttons/registry.d.ts +4 -1
  114. package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +1 -0
  115. package/dist/components/Editor/ToolbarPlugin/interface.d.ts +2 -2
  116. package/dist/components/Editor/constants/ai.d.ts +12 -0
  117. package/dist/components/Editor/constants/index.d.ts +3 -0
  118. package/dist/components/Editor/constants/portableEditorStyles.d.ts +11 -0
  119. package/dist/components/Editor/constants/toolbarSize.d.ts +12 -0
  120. package/dist/components/Editor/context/EditorContainerContext.d.ts +27 -1
  121. package/dist/components/Editor/index.d.ts +2 -2
  122. package/dist/components/Editor/interface.d.ts +60 -13
  123. package/dist/components/Editor/utils/applyAiPolish.d.ts +8 -0
  124. package/dist/components/Editor/utils/applyAiTypeset.d.ts +5 -0
  125. package/dist/components/Editor/utils/clearInlineTextFormat.d.ts +1 -0
  126. package/dist/components/Editor/utils/computeToolbarOverflowSplit.d.ts +12 -0
  127. package/dist/components/Editor/utils/extractCodePlaceholders.d.ts +6 -0
  128. package/dist/components/Editor/utils/formatEditorHtml.d.ts +1 -1
  129. package/dist/components/Editor/utils/htmlText.d.ts +2 -0
  130. package/dist/components/Editor/utils/prepareTypesetProposed.d.ts +2 -0
  131. package/dist/components/Editor/utils/readEditorAiSnapshot.d.ts +9 -0
  132. package/dist/components/Editor/utils/resolveEditorAlign.d.ts +3 -0
  133. package/dist/components/Editor/utils/resolveEditorImageUpload.d.ts +8 -0
  134. package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -5
  135. package/dist/components/Editor/utils/stitchCodePlaceholders.d.ts +6 -0
  136. package/dist/components/Editor/utils/toPortableEditorHtml.d.ts +1 -0
  137. package/dist/components/Editor/utils/unwrapTypesetFence.d.ts +5 -0
  138. package/dist/components/Modal/Modal.type.d.ts +1 -0
  139. package/dist/hooks/useFloatingPortal.d.ts +2 -0
  140. package/dist/index.js +24 -24
  141. package/dist/locale/lang/en-US.json.d.ts +22 -2
  142. package/dist/locale/lang/zh-CN.json.d.ts +22 -2
  143. package/dist/locale/lang/zh-TW.json.d.ts +22 -2
  144. package/dist/style.css +1 -1
  145. package/dist/vendors/{ConfigProvider-4xHyyeop.js → ConfigProvider-BDyxjj6K.js} +45 -5
  146. package/dist/vendors/{LocaleContext-I4PW9j4M.js → LocaleContext-w5ODGcJX.js} +22 -2
  147. package/dist/vendors/{Tree-B8cR9y6U.js → Tree-B7XeC9Mi.js} +2 -2
  148. package/dist/vendors/{useFloatingPortal-CmVJbuRm.js → useFloatingPortal-B3N1viK2.js} +8 -7
  149. package/dist/vendors/{useLocale-FGYsRWSe.js → useLocale-CEDl6cUK.js} +1 -1
  150. package/dist/vendors/{version-CJyzNHuS.js → version-B14EcH7v.js} +1 -1
  151. package/package.json +2 -3
  152. package/dist/DropDown/DropDown-CuL1Qq25.js +0 -178
  153. package/dist/Editor/Buttons-CMkFTv6y.js +0 -1016
@@ -0,0 +1,290 @@
1
+ import { t as e } from "../Icon/Icon-DDHx0R18.js";
2
+ import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
+ import { t as r } from "../vendors/useLocale-CEDl6cUK.js";
4
+ import { n as i } from "../vendors/animations-rwUbyoT0.js";
5
+ import { t as a } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
6
+ import { t as o } from "../Select/SelectInputSearch-DiuwwOWz.js";
7
+ import { t as s } from "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
8
+ import { t as c } from "../ScrollBar/ScrollBar-N2pOLv-8.js";
9
+ import { t as l } from "../vendors/useFloatingPortal-B3N1viK2.js";
10
+ import { t as u } from "./style-LLDVPpPa.js";
11
+ import { isEmpty as d, isNumber as f } from "lodash-es";
12
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
13
+ import { cloneElement as h, createContext as g, forwardRef as _, isValidElement as ee, memo as v, useCallback as y, useContext as b, useMemo as x, useState as S } from "react";
14
+ import { clsx as C } from "clsx";
15
+ import { useControllableValue as te } from "ahooks";
16
+ import { AnimatePresence as w, motion as T } from "motion/react";
17
+ import { FloatingNode as E, FloatingPortal as D, FloatingTree as O, autoUpdate as k, flip as ne, offset as A, safePolygon as j, shift as M, useFloating as N, useFloatingNodeId as P, useHover as F, useInteractions as I } from "@floating-ui/react";
18
+ import L from "fuse.js";
19
+ //#region src/hooks/useDropdownSearch.ts
20
+ function R(e) {
21
+ let t = [], n = (e) => {
22
+ for (let r of e) t.push(r), r.children?.length && n(r.children);
23
+ };
24
+ return n(e), t;
25
+ }
26
+ function z(e, t) {
27
+ let n = [];
28
+ for (let r of e) {
29
+ let e = t.has(r.key), i = r.children?.length ? e ? r.children : z(r.children, t) : void 0;
30
+ (e || i?.length) && n.push(i ? {
31
+ ...r,
32
+ children: i
33
+ } : r);
34
+ }
35
+ return n;
36
+ }
37
+ var B = (e, t) => {
38
+ let n = Array.isArray(t) ? t[0] : t, r = e[n];
39
+ return n === "label" && typeof r != "string" ? "" : String(r || "");
40
+ }, re = ({ menus: e, searchValue: t, enableInternalFilter: n, searchKey: r }) => {
41
+ let i = x(() => R(e), [e]), a = x(() => new L(i, {
42
+ keys: [r],
43
+ ignoreLocation: !0,
44
+ threshold: .3,
45
+ getFn: B
46
+ }), [i, r]), o = x(() => !n || d(t) ? e : z(e, new Set(a.search(t).map((e) => e.item.key))), [
47
+ e,
48
+ t,
49
+ n,
50
+ a
51
+ ]);
52
+ return {
53
+ filteredMenus: o,
54
+ hasNoResults: n && !d(t) && o.length === 0
55
+ };
56
+ }, V = g(!0), H = g({}), U = "_dropdown__trigger_sskds_1", W = "_dropdown__panel_sskds_7", G = "_dropdown__search_sskds_15", K = "_dropdown__menu_sskds_19", q = {
57
+ dropdown__trigger: U,
58
+ "dropdown__trigger--disabled": "_dropdown__trigger--disabled_sskds_4",
59
+ dropdown__panel: W,
60
+ dropdown__search: G,
61
+ dropdown__menu: K,
62
+ "dropdown__menu-item": "_dropdown__menu-item_sskds_22",
63
+ "dropdown__menu-item--disabled": "_dropdown__menu-item--disabled_sskds_34",
64
+ "dropdown__menu-item--active": "_dropdown__menu-item--active_sskds_34",
65
+ "dropdown__menu-item-icon": "_dropdown__menu-item-icon_sskds_41",
66
+ "system-field": "_system-field_sskds_52",
67
+ "dropdown__menu-item-arrow": "_dropdown__menu-item-arrow_sskds_66",
68
+ "dropdown__menu-item-label": "_dropdown__menu-item-label_sskds_77"
69
+ }, J = _(({ item: t, isActive: n, showArrow: r = !1, className: i, ...a }, o) => {
70
+ let s = t.systemField || !1;
71
+ return /* @__PURE__ */ m("div", {
72
+ ref: o,
73
+ className: C(q["dropdown__menu-item"], {
74
+ [q["dropdown__menu-item--disabled"]]: t.disabled,
75
+ [q["dropdown__menu-item--active"]]: n && !t.disabled,
76
+ "text-[#4d609f]": s && !t.disabled && !n
77
+ }, i),
78
+ ...a,
79
+ children: [
80
+ t.icon && /* @__PURE__ */ p("div", {
81
+ className: C(q["dropdown__menu-item-icon"], { [q["system-field"]]: s && !t.disabled && !n }),
82
+ children: t.icon
83
+ }),
84
+ /* @__PURE__ */ p("div", {
85
+ className: C(q["dropdown__menu-item-label"], "truncate"),
86
+ children: t.label
87
+ }),
88
+ r ? /* @__PURE__ */ p(e, {
89
+ name: "arrow-down",
90
+ size: 12,
91
+ className: q["dropdown__menu-item-arrow"]
92
+ }) : null
93
+ ]
94
+ });
95
+ });
96
+ J.displayName = "BsyDropDownMenuItemRow";
97
+ var Y = ({ item: e, onClick: t, isActive: n = !1 }) => /* @__PURE__ */ p(J, {
98
+ item: e,
99
+ isActive: n,
100
+ onClick: () => {
101
+ e.disabled || t(e);
102
+ }
103
+ }), X = ({ item: e, onClick: r, isActive: a = !1, isSubmenuOpen: o = !1, onSubmenuOpen: s, onSubmenuLeave: c, activeKey: l = [] }) => {
104
+ let u = b(V), d = b(H), f = o && !e.disabled && u, h = P(), g = t(), { refs: _, floatingStyles: ee, context: v } = N({
105
+ nodeId: h,
106
+ open: f,
107
+ onOpenChange: (t) => {
108
+ if (!e.disabled) {
109
+ if (t) {
110
+ s?.();
111
+ return;
112
+ }
113
+ c?.();
114
+ }
115
+ },
116
+ placement: "right-start",
117
+ strategy: "fixed",
118
+ transform: !1,
119
+ whileElementsMounted: k,
120
+ middleware: [
121
+ A(4),
122
+ ne({ fallbackPlacements: ["left-start"] }),
123
+ M({ padding: 8 })
124
+ ]
125
+ }), { getReferenceProps: y, getFloatingProps: x } = I([F(v, {
126
+ enabled: !e.disabled && u,
127
+ handleClose: j({ requireIntent: !1 })
128
+ })]);
129
+ return /* @__PURE__ */ m(E, {
130
+ id: h,
131
+ children: [/* @__PURE__ */ p(J, {
132
+ ref: _.setReference,
133
+ item: e,
134
+ isActive: a,
135
+ showArrow: !0,
136
+ ...y({ onClick: () => {
137
+ e.disabled || s?.();
138
+ } })
139
+ }), /* @__PURE__ */ p(D, { children: /* @__PURE__ */ p(n, {
140
+ zIndex: g,
141
+ children: /* @__PURE__ */ p(w, { children: f ? /* @__PURE__ */ p(T.div, {
142
+ ref: _.setFloating,
143
+ style: {
144
+ ...ee,
145
+ zIndex: g
146
+ },
147
+ ...i,
148
+ ...x({ onMouseDown: (e) => e.preventDefault() }),
149
+ children: /* @__PURE__ */ p("div", {
150
+ className: q.dropdown__panel,
151
+ style: d,
152
+ children: /* @__PURE__ */ p(Q, {
153
+ menus: e.children ?? [],
154
+ onClick: r,
155
+ activeKey: l
156
+ })
157
+ })
158
+ }, `bsy-dropdown-submenu-${e.key}`) : null })
159
+ }) })]
160
+ });
161
+ }, Z = v((e) => e.item.children?.length ? /* @__PURE__ */ p(X, { ...e }) : /* @__PURE__ */ p(Y, { ...e }));
162
+ Z.displayName = "BsyDropDownMenuItem";
163
+ //#endregion
164
+ //#region src/components/DropDown/MenuList/MenuList.tsx
165
+ var Q = ({ menus: e, onClick: t, hasNoResults: n, activeKey: i = [] }) => {
166
+ let { t: a } = r(), [o, c] = S(null), l = y((e) => {
167
+ c(e);
168
+ }, []), u = y((e) => {
169
+ c((t) => t === e ? null : t);
170
+ }, []);
171
+ return e.length === 0 ? /* @__PURE__ */ p(s, {
172
+ text: a("noData"),
173
+ className: "px-3 py-6"
174
+ }) : n ? /* @__PURE__ */ p(s, {
175
+ text: a("noDataFound"),
176
+ className: "px-3 py-6"
177
+ }) : /* @__PURE__ */ p("div", {
178
+ className: q.dropdown__menu,
179
+ children: e.map((e) => /* @__PURE__ */ p(Z, {
180
+ item: e,
181
+ onClick: t,
182
+ isActive: i.includes(e.key),
183
+ isSubmenuOpen: o === e.key,
184
+ onSubmenuOpen: () => l(e.key),
185
+ onSubmenuLeave: () => u(e.key),
186
+ activeKey: i
187
+ }, e.key))
188
+ });
189
+ };
190
+ Q.displayName = "BsyDropDownMenuList";
191
+ //#endregion
192
+ //#region src/components/DropDown/DropDown.tsx
193
+ var ie = (e) => {
194
+ let { t: s } = r(), { children: d, menus: g, onClick: _, onSearch: v, searchKey: y = "label", showSearch: b = !0, closeOnSelect: C = !0, searchPlaceholder: O = s("search"), offset: k = {
195
+ x: 0,
196
+ y: 0
197
+ }, zIndex: ne, style: A, activeKey: j = [], getPopupContainer: M, theme: N } = e, F = t(ne), I = P(), [L, R] = te(e, {
198
+ valuePropName: "visible",
199
+ defaultValue: !1,
200
+ trigger: "onOpenChange"
201
+ }), [z, B] = S(""), U = () => {
202
+ R(!L);
203
+ }, W = () => {
204
+ R(!1);
205
+ }, G = (e) => {
206
+ e.disabled || e.children?.length || (_?.(e), C && W());
207
+ }, K = (e) => {
208
+ B(e), v?.(e);
209
+ }, { filteredMenus: J, hasNoResults: Y } = re({
210
+ menus: g,
211
+ searchValue: z,
212
+ enableInternalFilter: !v,
213
+ searchKey: y
214
+ }), { refs: X, floatingStyles: Z, getReferenceProps: ie, getFloatingProps: $ } = l({
215
+ isOpen: L,
216
+ close: W,
217
+ showMask: !1,
218
+ zIndex: F,
219
+ nodeId: I,
220
+ offset: {
221
+ x: f(k.x) ? k.x : 0,
222
+ y: f(k.y) ? k.y : 0
223
+ }
224
+ }), ae = ee(d) ? h(d, {
225
+ ...ie(),
226
+ ref: X.setReference,
227
+ onClick: (e) => {
228
+ U(), d.props.onClick?.(e);
229
+ },
230
+ onMouseDown: (e) => {
231
+ e.preventDefault(), d.props.onMouseDown?.(e);
232
+ }
233
+ }) : d, { portalRoot: oe, portalMountKey: se, handleExitComplete: ce } = a(L, M), le = x(() => u(N), [N]), ue = x(() => ({
234
+ ...le,
235
+ ...A
236
+ }), [le, A]);
237
+ return /* @__PURE__ */ m(E, {
238
+ id: I,
239
+ children: [ae, /* @__PURE__ */ p(D, {
240
+ root: oe,
241
+ children: /* @__PURE__ */ p(H.Provider, {
242
+ value: ue,
243
+ children: /* @__PURE__ */ p(V.Provider, {
244
+ value: L,
245
+ children: /* @__PURE__ */ p(n, {
246
+ zIndex: F,
247
+ children: /* @__PURE__ */ p(w, {
248
+ onExitComplete: ce,
249
+ children: L ? /* @__PURE__ */ p(T.div, {
250
+ ref: X.setFloating,
251
+ ...$(),
252
+ style: {
253
+ ...Z,
254
+ zIndex: F
255
+ },
256
+ ...i,
257
+ children: /* @__PURE__ */ m("div", {
258
+ className: q.dropdown__panel,
259
+ style: ue,
260
+ onMouseDown: (e) => {
261
+ e.target instanceof HTMLElement && e.target.closest("input, textarea") || e.preventDefault();
262
+ },
263
+ children: [b && /* @__PURE__ */ p("div", {
264
+ className: q.dropdown__search,
265
+ children: /* @__PURE__ */ p(o, {
266
+ value: z,
267
+ onChange: K,
268
+ searchPlaceholder: O
269
+ })
270
+ }), /* @__PURE__ */ p(c, {
271
+ style: { maxHeight: 300 },
272
+ children: /* @__PURE__ */ p(Q, {
273
+ menus: J,
274
+ onClick: G,
275
+ hasNoResults: Y,
276
+ activeKey: j
277
+ })
278
+ })]
279
+ })
280
+ }, "bsy-dropdown-panel") : null
281
+ })
282
+ })
283
+ })
284
+ })
285
+ }, se)]
286
+ });
287
+ }, $ = (e) => /* @__PURE__ */ p(O, { children: /* @__PURE__ */ p(ie, { ...e }) });
288
+ $.displayName = "BsyDropDown";
289
+ //#endregion
290
+ export { $ as t };
@@ -1,14 +1,14 @@
1
- import "../vendors/version-CJyzNHuS.js";
1
+ import "../vendors/version-B14EcH7v.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
- import "../Icon/Icon-oQ_uBooE.js";
4
- import "../vendors/LocaleContext-I4PW9j4M.js";
3
+ import "../Icon/Icon-DDHx0R18.js";
4
+ import "../vendors/LocaleContext-w5ODGcJX.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../vendors/useLocale-FGYsRWSe.js";
6
+ import "../vendors/useLocale-CEDl6cUK.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../Select/SelectInputSearch-BBwVIb8u.js";
8
+ import "../Select/SelectInputSearch-DiuwwOWz.js";
9
9
  import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
10
10
  import "../ScrollBar/ScrollBar-N2pOLv-8.js";
11
- import "../vendors/useFloatingPortal-CmVJbuRm.js";
12
- import { t as e } from "./DropDown-CuL1Qq25.js";
11
+ import "../vendors/useFloatingPortal-B3N1viK2.js";
12
+ import { t as e } from "./DropDown-DV1IuuQD.js";
13
13
  import "./style-LLDVPpPa.js";
14
14
  export { e as default };
@@ -1,3 +1,3 @@
1
- import "../../vendors/version-CJyzNHuS.js";
1
+ import "../../vendors/version-B14EcH7v.js";
2
2
  import { t as e } from "../style-LLDVPpPa.js";
3
3
  export { e as resolveDropDownThemeVars };