@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.
- package/dist/Amap/AmapCircle/index.js +1 -1
- package/dist/Amap/AmapMarker/index.js +1 -1
- package/dist/Amap/AmapMarkerCluster/index.js +1 -1
- package/dist/Amap/AmapProvider/index.js +4 -4
- package/dist/Amap/{AmapProvider-CvRHhN42.js → AmapProvider-BwyzXpEj.js} +1 -1
- package/dist/Amap/hooks/index.js +1 -1
- package/dist/Amap/index.js +4 -4
- package/dist/Calendar/{AllDaySection-CTaXpCmK.js → AllDaySection-D9YHhwIa.js} +1 -1
- package/dist/Calendar/{Calendar-BOLbbip1.js → Calendar-DEjopu9G.js} +5 -5
- package/dist/Calendar/{TimeGrid-Ci8Dfama.js → TimeGrid-5zMy9Hks.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +8 -8
- package/dist/Calendar/subcomponents/AllDaySection/index.js +3 -3
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +1 -1
- package/dist/Calendar/subcomponents/EventCard/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +3 -3
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/Card/{Card-C8A4XaJZ.js → Card-DDbQQsCc.js} +1 -1
- package/dist/Card/index.js +3 -3
- package/dist/CheckBox/{CheckBox-DBzTOuRy.js → CheckBox-CwfrMEFb.js} +1 -1
- package/dist/CheckBox/{CheckBox-Dt4x6IqH.js → CheckBox-DFfNiPGM.js} +1 -1
- package/dist/CheckBox/index.js +4 -4
- package/dist/ColorPicker/{ColorPicker-Buku806Y.js → ColorPicker-Cm_-e0Hz.js} +34 -31
- package/dist/ColorPicker/index.js +5 -5
- package/dist/ConfigProvider/index.js +3 -3
- package/dist/DatePicker/{DatePicker-Vi3wfsfz.js → DatePicker-BUvDkVjx.js} +9 -9
- package/dist/DatePicker/{DatePickerPanel-Cwmb-4UR.js → DatePickerPanel-BHTPcE6R.js} +4 -4
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/DropDown-DV1IuuQD.js +290 -0
- package/dist/DropDown/index.js +7 -7
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/Buttons-BUC9qQY1.js +1732 -0
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -12
- package/dist/Editor/constants/index.js +10 -3
- package/dist/Editor/index.js +1572 -909
- package/dist/Gantt/GanttChart/index.js +9 -9
- package/dist/Gantt/{GanttChart-WIrD6Z7O.js → GanttChart-DEGOIgRD.js} +3 -3
- package/dist/Gantt/GanttTable/index.js +5 -5
- package/dist/Gantt/{GanttTable-CdXhMHF6.js → GanttTable-Dwb00N8Z.js} +1 -1
- package/dist/Gantt/GanttToolBar/index.js +8 -8
- package/dist/Gantt/{GanttToolBar-C1gAS9v2.js → GanttToolBar-BcJB6sKY.js} +3 -3
- package/dist/Gantt/index.js +11 -11
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/Icon/{Icon-oQ_uBooE.js → Icon-DDHx0R18.js} +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/InputTag/{InputTag-BQpIRPtc.js → InputTag-CBnG1R7g.js} +2 -2
- package/dist/InputTag/index.js +5 -5
- package/dist/Loading/{Loading-CiRe7i2R.js → Loading-DYayeRbT.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/{Modal-17rLsxN4.js → Modal-BnF6CUrn.js} +20 -17
- package/dist/Modal/index.js +3 -3
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-p_ly7xmz.js → Select-CG5wFTL4.js} +13 -13
- package/dist/Select/{SelectInputSearch-BBwVIb8u.js → SelectInputSearch-DiuwwOWz.js} +2 -2
- package/dist/Select/index.js +10 -10
- package/dist/Table/{Table-CSPdFGYn.js → Table-B7J-IK2_.js} +1 -1
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +4 -4
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-D2A8nJl8.js → Tabs-CObQtF37.js} +7 -7
- package/dist/Tabs/index.js +6 -6
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +4 -4
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +2 -0
- package/dist/components/ColorPicker/useFloatingColorPicker.d.ts +1 -1
- package/dist/components/DropDown/DropDownOpenContext.d.ts +4 -0
- package/dist/components/DropDown/MenuItem/MenuItem.d.ts +4 -0
- package/dist/components/DropDown/interface.d.ts +5 -1
- package/dist/components/Editor/Preview/EditorPreview.d.ts +9 -0
- package/dist/components/Editor/Preview/HtmlPreview.d.ts +5 -0
- package/dist/components/Editor/Preview/PolishModal.d.ts +14 -0
- package/dist/components/Editor/Preview/Thinking.d.ts +23 -0
- package/dist/components/Editor/Preview/TypesetModal.d.ts +12 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +5 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/AiButton.d.ts +3 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/AlignButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/BoldButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/ClearFormatButton.d.ts +3 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/FillButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/FontColorButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/FontSizeButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/HeadingButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/ItalicButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/LinkButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/PictureButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +1 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/SourceButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/TableButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/UnLinkButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/UnderLineButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -1
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +26 -23
- package/dist/components/Editor/ToolbarPlugin/Buttons/registry.d.ts +4 -1
- package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +1 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +2 -2
- package/dist/components/Editor/constants/ai.d.ts +12 -0
- package/dist/components/Editor/constants/index.d.ts +3 -0
- package/dist/components/Editor/constants/portableEditorStyles.d.ts +11 -0
- package/dist/components/Editor/constants/toolbarSize.d.ts +12 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +27 -1
- package/dist/components/Editor/index.d.ts +2 -2
- package/dist/components/Editor/interface.d.ts +60 -13
- package/dist/components/Editor/utils/applyAiPolish.d.ts +8 -0
- package/dist/components/Editor/utils/applyAiTypeset.d.ts +5 -0
- package/dist/components/Editor/utils/clearInlineTextFormat.d.ts +1 -0
- package/dist/components/Editor/utils/computeToolbarOverflowSplit.d.ts +12 -0
- package/dist/components/Editor/utils/extractCodePlaceholders.d.ts +6 -0
- package/dist/components/Editor/utils/formatEditorHtml.d.ts +1 -1
- package/dist/components/Editor/utils/htmlText.d.ts +2 -0
- package/dist/components/Editor/utils/prepareTypesetProposed.d.ts +2 -0
- package/dist/components/Editor/utils/readEditorAiSnapshot.d.ts +9 -0
- package/dist/components/Editor/utils/resolveEditorAlign.d.ts +3 -0
- package/dist/components/Editor/utils/resolveEditorImageUpload.d.ts +8 -0
- package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -5
- package/dist/components/Editor/utils/stitchCodePlaceholders.d.ts +6 -0
- package/dist/components/Editor/utils/toPortableEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/unwrapTypesetFence.d.ts +5 -0
- package/dist/components/Modal/Modal.type.d.ts +1 -0
- package/dist/hooks/useFloatingPortal.d.ts +2 -0
- package/dist/index.js +24 -24
- package/dist/locale/lang/en-US.json.d.ts +22 -2
- package/dist/locale/lang/zh-CN.json.d.ts +22 -2
- package/dist/locale/lang/zh-TW.json.d.ts +22 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-4xHyyeop.js → ConfigProvider-BDyxjj6K.js} +45 -5
- package/dist/vendors/{LocaleContext-I4PW9j4M.js → LocaleContext-w5ODGcJX.js} +22 -2
- package/dist/vendors/{Tree-B8cR9y6U.js → Tree-B7XeC9Mi.js} +2 -2
- package/dist/vendors/{useFloatingPortal-CmVJbuRm.js → useFloatingPortal-B3N1viK2.js} +8 -7
- package/dist/vendors/{useLocale-FGYsRWSe.js → useLocale-CEDl6cUK.js} +1 -1
- package/dist/vendors/{version-CJyzNHuS.js → version-B14EcH7v.js} +1 -1
- package/package.json +2 -3
- package/dist/DropDown/DropDown-CuL1Qq25.js +0 -178
- package/dist/Editor/Buttons-CMkFTv6y.js +0 -1016
|
@@ -2,7 +2,8 @@ import { useMemo as e } from "react";
|
|
|
2
2
|
import { autoUpdate as t, flip as n, offset as r, shift as i, size as a, useClick as o, useDismiss as s, useFloating as c, useInteractions as l } from "@floating-ui/react";
|
|
3
3
|
//#region src/hooks/useFloatingPortal.ts
|
|
4
4
|
var u = (u) => {
|
|
5
|
-
let { isOpen: d, close: f, showMask: p, zIndex: m, zIndexMask: h, offset: g, popupMinWidth: _ } = u, { refs:
|
|
5
|
+
let { isOpen: d, close: f, showMask: p, zIndex: m, zIndexMask: h, offset: g, popupMinWidth: _, outsidePress: v = !0, nodeId: y } = u, { refs: b, floatingStyles: x, context: S } = c({
|
|
6
|
+
nodeId: y,
|
|
6
7
|
open: d,
|
|
7
8
|
onOpenChange: (e) => {
|
|
8
9
|
e || f();
|
|
@@ -25,13 +26,13 @@ var u = (u) => {
|
|
|
25
26
|
});
|
|
26
27
|
} })
|
|
27
28
|
]
|
|
28
|
-
}), { getReferenceProps:
|
|
29
|
+
}), { getReferenceProps: C, getFloatingProps: w } = l([o(S), s(S, { outsidePress: v })]);
|
|
29
30
|
return {
|
|
30
|
-
refs:
|
|
31
|
-
floatingStyles:
|
|
32
|
-
context:
|
|
33
|
-
getReferenceProps:
|
|
34
|
-
getFloatingProps:
|
|
31
|
+
refs: b,
|
|
32
|
+
floatingStyles: x,
|
|
33
|
+
context: S,
|
|
34
|
+
getReferenceProps: C,
|
|
35
|
+
getFloatingProps: w,
|
|
35
36
|
referenceStyle: e(() => p && d && h !== void 0 ? {
|
|
36
37
|
zIndex: h + 1,
|
|
37
38
|
position: "relative"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-base",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "百数云低代码平台通用组件库",
|
|
6
6
|
"author": "bsy-fe team",
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"lodash-es": "^4.17.21",
|
|
70
70
|
"overlayscrollbars": "^2.16.0",
|
|
71
71
|
"overlayscrollbars-react": "^0.5.6",
|
|
72
|
-
"prettier": "^3.9.6",
|
|
73
72
|
"tinycolor2": "^1.6.0",
|
|
74
73
|
"use-context-selector": "^2.0.0"
|
|
75
74
|
},
|
|
@@ -99,7 +98,7 @@
|
|
|
99
98
|
},
|
|
100
99
|
"project": {
|
|
101
100
|
"iconfont": {
|
|
102
|
-
"scriptUrl": "https://at.alicdn.com/t/c/
|
|
101
|
+
"scriptUrl": "https://at.alicdn.com/t/c/font_4786625_ymyxnlj0j89.js"
|
|
103
102
|
}
|
|
104
103
|
},
|
|
105
104
|
"scripts": {
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
2
|
-
import { t as n } from "../vendors/useLocale-FGYsRWSe.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-BBwVIb8u.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 };
|