@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.
- package/dist/Amap/{Amap-BNnmSPnl.js → Amap-BLSziesG.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -4
- package/dist/Amap/{AmapCircle-BDW6pnNR.js → AmapCircle-2qupysHe.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -5
- package/dist/Amap/{AmapMarker-CdoPWdff.js → AmapMarker-xEqoVnFR.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -5
- package/dist/Amap/{AmapMarkerCluster-CSIxiVC5.js → AmapMarkerCluster-CvEQa3o9.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +6 -5
- package/dist/Amap/{AmapProvider-Cwi6WOe0.js → AmapProvider-CvRHhN42.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -3
- package/dist/Amap/{hooks-DAN31s_-.js → hooks-BTcFpdd0.js} +1 -1
- package/dist/Amap/index.js +12 -11
- package/dist/Calendar/{AllDaySection-DNsVyixx.js → AllDaySection-BqbcPQls.js} +3 -3
- package/dist/Calendar/{Calendar-DL2X3z_z.js → Calendar-BS0nzK4h.js} +12 -13
- package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
- package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-Di5UX4pB.js} +3 -4
- package/dist/Calendar/{TimeGrid-D62R57Bo.js → TimeGrid-CBpDFAM4.js} +1 -1
- package/dist/Calendar/context/index.js +2 -2
- package/dist/Calendar/index.js +21 -20
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +6 -5
- package/dist/Calendar/subcomponents/EventCard/index.js +7 -6
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -4
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-BRVmxhqD.js → theme-i60ueO92.js} +2 -2
- package/dist/Calendar/utils/index.js +4 -4
- package/dist/Calendar/utils/layout/index.js +3 -3
- package/dist/Calendar/utils/theme/index.js +2 -2
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-CcM19LnP.js → CheckBox-nBm0u6zX.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/ColorPicker-DVwg07Gs.js +174 -0
- package/dist/ColorPicker/index.js +7 -6
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/DatePicker/DatePicker-DNPnHLT2.js +101 -0
- package/dist/DatePicker/{DatePickerPanel-Bz3uvbYF.js → DatePickerPanel-TS6AxAH-.js} +5 -5
- package/dist/DatePicker/index.js +10 -9
- package/dist/DatePicker/style/index.js +2 -2
- package/dist/DatePicker/{style-BwmM26RP.js → style-UKXn1N_p.js} +1 -1
- package/dist/DropDown/DropDown-DWf5yf4l.js +178 -0
- package/dist/DropDown/index.js +11 -10
- package/dist/DropDown/style/index.js +2 -2
- package/dist/DropDown/{style-BSgosymi.js → style-LLDVPpPa.js} +1 -1
- package/dist/Editor/Buttons-BBioCubp.js +1148 -0
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +17 -16
- package/dist/Editor/constants/index.js +3 -3
- package/dist/Editor/index.js +1015 -257
- package/dist/Gantt/GanttChart/index.js +18 -17
- package/dist/Gantt/{GanttChart-6gpw5vi6.js → GanttChart-BaEW7EDO.js} +8 -10
- package/dist/Gantt/GanttTable/index.js +11 -11
- package/dist/Gantt/{GanttTable-lVu-YUtt.js → GanttTable-CdXhMHF6.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +14 -13
- package/dist/Gantt/{GanttToolBar-CarBWZg-.js → GanttToolBar-COwsYlMG.js} +3 -4
- package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
- package/dist/Gantt/index.js +26 -25
- package/dist/Gantt/{theme-CiMD9Y6i.js → theme-2LyXJRDe.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
- package/dist/Gantt/utils/index.js +6 -6
- package/dist/Gantt/utils/theme/index.js +2 -2
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-DxPO0DwD.js → InputTag-Jpm8H32L.js} +2 -2
- package/dist/InputTag/index.js +5 -5
- package/dist/Loading/{Loading-CVyzO5-s.js → Loading-CiRe7i2R.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/Modal-Cb7Msq26.js +96 -0
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +2 -2
- package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-N2pOLv-8.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BCQRrc65.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/Select-BY5Rpo3f.js +753 -0
- package/dist/Select/{SelectInputSearch-CrGW_eVo.js → SelectInputSearch-i3egm8Wy.js} +1 -1
- package/dist/Select/index.js +14 -13
- package/dist/Table/{Table-CL-KfNY3.js → Table-CSPdFGYn.js} +5 -5
- package/dist/Table/hooks/index.js +2 -2
- package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
- package/dist/Table/index.js +8 -8
- package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
- package/dist/Table/style/index.js +2 -2
- package/dist/Table/{style-x9xfw6te.js → style-C4wp0IOM.js} +1 -1
- package/dist/Table/utils/index.js +2 -2
- package/dist/Tabs/Tabs-C0m3mt-j.js +413 -0
- package/dist/Tabs/index.js +6 -5
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +4 -4
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPalettes.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +1 -7
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
- package/dist/components/DatePicker/interface.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/HeadingButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SourceButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/TableButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +13 -0
- package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
- package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +10 -1
- package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
- package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
- package/dist/components/Editor/constants/index.d.ts +3 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +0 -1
- package/dist/components/Editor/context/SourceModeContext.d.ts +9 -0
- package/dist/components/Editor/htmlConfig.d.ts +2 -0
- package/dist/components/Editor/interface.d.ts +1 -1
- package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/HeadingPlugin.d.ts +3 -0
- package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/SourceModePlugin.d.ts +7 -0
- package/dist/components/Editor/plugins/TabIndentPlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/TablePlugin.d.ts +1 -0
- package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
- package/dist/components/Editor/utils/fillRootFromHtml.d.ts +2 -0
- package/dist/components/Editor/utils/formatEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
- package/dist/components/Editor/utils/isEmptyEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/sanitizeEditorHtml.d.ts +1 -0
- package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
- package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +2 -0
- package/dist/components/Editor/utils/writeHtmlSource.d.ts +1 -0
- package/dist/components/Overlay/OverlayContext.d.ts +16 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +53 -51
- package/dist/locale/lang/en-US.json.d.ts +21 -2
- package/dist/locale/lang/zh-CN.json.d.ts +21 -2
- package/dist/locale/lang/zh-TW.json.d.ts +21 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-4xHyyeop.js} +84 -36
- package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-I4PW9j4M.js} +21 -2
- package/dist/vendors/{Tree-D1s-eADo.js → Tree-B09frqQX.js} +3 -2
- package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-FGYsRWSe.js} +1 -1
- package/dist/vendors/{version-L-kG2La0.js → version-BxI5QM5W.js} +1 -1
- package/package.json +10 -1
- package/dist/ColorPicker/ColorPicker-D3JuQ7a7.js +0 -153
- package/dist/DatePicker/DatePicker-Dah_CjYG.js +0 -96
- package/dist/DropDown/DropDown-Daxr9BYf.js +0 -171
- package/dist/Editor/Buttons-DG_-Sg_C.js +0 -600
- package/dist/Modal/Modal-LiztSF7x.js +0 -92
- package/dist/Select/Select-CBI5PgeQ.js +0 -746
- package/dist/Tabs/Tabs-B1RsYb2W.js +0 -409
- package/dist/Tooltip/Tooltip-DWWWYn1a.js +0 -168
- /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
- /package/dist/Calendar/{TimeAxis-D7bgZDKs.js → TimeAxis-C9e2BdYs.js} +0 -0
- /package/dist/Calendar/{colorUtils-lXNjGoCk.js → colorUtils-CBLTsDX0.js} +0 -0
- /package/dist/Calendar/{context-CBJnz0IH.js → context-4tCN5X33.js} +0 -0
- /package/dist/Calendar/{layout-BglMom3m.js → layout-Dz-grtu9.js} +0 -0
- /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
- /package/dist/CheckBox/{CheckBox-Bb0UuX1Y.js → CheckBox-ByWSy9Yr.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-CVL-fnAl.js → ensureDayjsPlugins-Cn9Bkjkj.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-BeMlfhKu.js → pickerLocale-BRnNjLcv.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-grda5bhd.js → GanttHighlightContext-ChThr8ia.js} +0 -0
- /package/dist/Gantt/{columnResize-DV1tSBx_.js → columnResize-jG0Wy2PC.js} +0 -0
- /package/dist/Gantt/{constants-BObDP0h6.js → constants-LIz5jwed.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DrP0_NrM.js → highlightTarget-BpkYTonb.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
- /package/dist/Radio/{Radio-CBUZ7DB5.js → Radio-CX9cUqb7.js} +0 -0
- /package/dist/Table/{constants-CcwjDbe7.js → constants-kRpjsoet.js} +0 -0
- /package/dist/vendors/{animations-Mlw78WYo.js → animations-rwUbyoT0.js} +0 -0
- /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-l4-kP_14.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-TiJ0xjUN.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-C8V67X0v.js → useFloatingPortal-CmVJbuRm.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-hwf14FJ5.js → useLatchedPopupPortalRoot-4fVhqVT4.js} +0 -0
|
@@ -52,12 +52,31 @@ var n = {
|
|
|
52
52
|
imageUrlInvalid: "请输入有效的图片URL",
|
|
53
53
|
imageUrlNote: "注:输入图片URL即可插入图片",
|
|
54
54
|
inputImageUrl: "输入图片URL",
|
|
55
|
-
uploadImageNote: "
|
|
55
|
+
uploadImageNote: "单个图片大小不能超过 5MB",
|
|
56
56
|
uploadImageText: "点击或拖拽上传图片",
|
|
57
57
|
previewImage: "预览图片",
|
|
58
58
|
underline: "下划线",
|
|
59
|
+
strikethrough: "删除线",
|
|
60
|
+
superscript: "上标",
|
|
61
|
+
subscript: "下标",
|
|
62
|
+
undo: "撤销",
|
|
63
|
+
redo: "重做",
|
|
64
|
+
indent: "增加缩进",
|
|
65
|
+
outdent: "减少缩进",
|
|
66
|
+
bulletList: "无序列表",
|
|
67
|
+
numberList: "有序列表",
|
|
68
|
+
codeBlock: "代码块",
|
|
69
|
+
codeLanguage: "语言",
|
|
70
|
+
table: "表格",
|
|
71
|
+
heading: "标题",
|
|
72
|
+
paragraph: "正文",
|
|
73
|
+
heading1: "H1",
|
|
74
|
+
heading2: "H2",
|
|
75
|
+
heading3: "H3",
|
|
76
|
+
sourceMode: "源码模式",
|
|
59
77
|
imageFormatOnly: "只支持图片格式",
|
|
60
|
-
imageSizeNote: "
|
|
78
|
+
imageSizeNote: "图片大小不能超过 5MB",
|
|
79
|
+
imageCountNote: "最多上传 {{count}} 张图片",
|
|
61
80
|
uploadImageFirst: "请先上传图片",
|
|
62
81
|
imageAddSuccess: "图片添加成功",
|
|
63
82
|
operationFailed: "操作失败",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../CheckBox/CheckBox-
|
|
3
|
-
import { t as n } from "../Radio/Radio-
|
|
2
|
+
import { t } from "../CheckBox/CheckBox-ByWSy9Yr.js";
|
|
3
|
+
import { t as n } from "../Radio/Radio-CX9cUqb7.js";
|
|
4
4
|
import { getMatchingNodesPaths as r, getNodePath as i } from "../Tree/utils/index.js";
|
|
5
5
|
import { noop as a } from "lodash-es";
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -159,6 +159,7 @@ var b = l.memo(y), x = {
|
|
|
159
159
|
1
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
style: { overflow: "hidden" },
|
|
162
163
|
children: /* @__PURE__ */ s("div", {
|
|
163
164
|
className: x["bsy-tree-node__children"],
|
|
164
165
|
children: r[a.children]?.map((e) => /* @__PURE__ */ s(w, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-base",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "百数云低代码平台通用组件库",
|
|
6
6
|
"author": "bsy-fe team",
|
|
@@ -46,21 +46,30 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
48
48
|
"@amap/amap-jsapi-types": "^0.0.15",
|
|
49
|
+
"@lexical/code-core": "0.45.0",
|
|
49
50
|
"@lexical/html": "0.45.0",
|
|
50
51
|
"@lexical/link": "0.45.0",
|
|
52
|
+
"@lexical/list": "0.45.0",
|
|
51
53
|
"@lexical/react": "0.45.0",
|
|
52
54
|
"@lexical/rich-text": "0.45.0",
|
|
53
55
|
"@lexical/selection": "0.45.0",
|
|
56
|
+
"@lexical/table": "0.45.0",
|
|
54
57
|
"@lexical/utils": "0.45.0",
|
|
58
|
+
"@shikijs/core": "^4.0.2",
|
|
59
|
+
"@shikijs/engine-javascript": "^4.0.2",
|
|
60
|
+
"@shikijs/langs": "^4.0.2",
|
|
61
|
+
"@shikijs/themes": "^4.0.2",
|
|
55
62
|
"@tanstack/react-table": "^8.21.3",
|
|
56
63
|
"@tanstack/react-virtual": "^3.14.3",
|
|
57
64
|
"ahooks": "^3.8.5",
|
|
58
65
|
"clsx": "^2.1.1",
|
|
66
|
+
"dompurify": "^3.4.14",
|
|
59
67
|
"fuse.js": "^7.1.0",
|
|
60
68
|
"lexical": "0.45.0",
|
|
61
69
|
"lodash-es": "^4.17.21",
|
|
62
70
|
"overlayscrollbars": "^2.16.0",
|
|
63
71
|
"overlayscrollbars-react": "^0.5.6",
|
|
72
|
+
"prettier": "^3.9.6",
|
|
64
73
|
"tinycolor2": "^1.6.0",
|
|
65
74
|
"use-context-selector": "^2.0.0"
|
|
66
75
|
},
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../vendors/useFloatingOverlay-BApqkHSu.js";
|
|
3
|
-
import { t as n } from "../vendors/useLocale-BKZX2_zw.js";
|
|
4
|
-
import { n as r } from "../vendors/animations-Mlw78WYo.js";
|
|
5
|
-
import { t as i } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
6
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
import { cloneElement as c, isValidElement as l, useRef as u, useState as d } from "react";
|
|
8
|
-
import { ColorPicker as f } from "antd";
|
|
9
|
-
import p from "clsx";
|
|
10
|
-
import { useControllableValue as m } from "ahooks";
|
|
11
|
-
import { AnimatePresence as h, motion as g } from "motion/react";
|
|
12
|
-
import { FloatingPortal as _ } from "@floating-ui/react";
|
|
13
|
-
import v from "tinycolor2";
|
|
14
|
-
//#region src/components/ColorPicker/constants.ts
|
|
15
|
-
var y = {
|
|
16
|
-
vivid: /* @__PURE__ */ "#fee4de.#ffecd7.#ffe8e3.#fff1c0.#efffc0.#d7ffeb.#d8f4ff.#dfe7ff.#ebdefa.#ffdef1.#e8eaef.#ffbaaa.#fbcf9c.#ffd2c9.#ffe692.#d9f38c.#a6f6cf.#9adbf3.#aec3fe.#c9b0e6.#ffb4df.#d8dbe3.#f06648.#ff9921.#ff9c88.#ffc502.#a2ce1e.#4acc8c.#4ac0ec.#3767f1.#9362ce.#f168b6.#6b6e76.#cd3514.#c4771b.#db674f.#c79f1c.#7b9728.#21a664.#00a3e0.#003ce8.#6f25ca.#df2a91.#2d3447".split("."),
|
|
17
|
-
basic: /* @__PURE__ */ "#005eef.#3642e9.#7f43c8.#114bb8.#1379d9.#10a9c4.#119d85.#ffc502.#ff9921.#f06648.#f168b6.#d9e8ff.#dee0ff.#efe2ff.#d5e4ff.#daedff.#ddfaff.#d7fff8.#fff4d0.#ffecd7.#ffe3dd.#ffdef1.#262626.#3c3c3d.#454545.#515152.#5d5c5e.#6c6c6e.#878789.#b0afb1.#d0d0d1.#e6e6e7.#f5f5f6".split(".")
|
|
18
|
-
}, b = [
|
|
19
|
-
"rgba(240, 102, 72, 1)",
|
|
20
|
-
"rgba(255, 197, 2, 1)",
|
|
21
|
-
"rgba(74, 204, 140, 1)",
|
|
22
|
-
"rgba(74, 192, 236, 1)",
|
|
23
|
-
"rgba(255, 153, 33, 1)",
|
|
24
|
-
"rgba(101, 101, 101, 1)",
|
|
25
|
-
"rgba(255, 156, 136, 1)",
|
|
26
|
-
"rgba(98, 98, 206, 1)",
|
|
27
|
-
"rgba(241, 104, 182, 1)",
|
|
28
|
-
"rgba(55, 103, 241, 1)",
|
|
29
|
-
"rgba(162, 206, 30, 1)",
|
|
30
|
-
"rgba(179, 179, 179, 1)",
|
|
31
|
-
"rgba(0, 0, 0, 1)",
|
|
32
|
-
"rgba(102, 102, 102, 1)",
|
|
33
|
-
"rgba(153, 153, 153, 1)",
|
|
34
|
-
"rgba(194, 194, 194, 1)",
|
|
35
|
-
"rgba(224, 224, 224, 1)",
|
|
36
|
-
"rgba(77, 96, 159, 1)"
|
|
37
|
-
], x = (e) => Array.isArray(e) ? e.length > 0 ? e : y.vivid : y[e ?? "vivid"], S = (e = "bottom-start") => t({ placement: e }), C = {
|
|
38
|
-
"bsy-color-picker__floating": "_bsy-color-picker__floating_1ch7k_1",
|
|
39
|
-
"bsy-color-picker__content": "_bsy-color-picker__content_1ch7k_4",
|
|
40
|
-
"bsy-color-picker__grid": "_bsy-color-picker__grid_1ch7k_15",
|
|
41
|
-
"bsy-color-picker__preset-colors-title": "_bsy-color-picker__preset-colors-title_1ch7k_19",
|
|
42
|
-
"bsy-color-picker__custom-color-title": "_bsy-color-picker__custom-color-title_1ch7k_19",
|
|
43
|
-
"bsy-color-picker__preset-colors-grid": "_bsy-color-picker__preset-colors-grid_1ch7k_24",
|
|
44
|
-
"bsy-color-picker__preset-colors-grid--inline": "_bsy-color-picker__preset-colors-grid--inline_1ch7k_29",
|
|
45
|
-
"bsy-color-picker__preset-colors-item": "_bsy-color-picker__preset-colors-item_1ch7k_35",
|
|
46
|
-
"bsy-color-picker__preset-colors-item--selected": "_bsy-color-picker__preset-colors-item--selected_1ch7k_58",
|
|
47
|
-
"bsy-color-picker__preset-colors-swatch": "_bsy-color-picker__preset-colors-swatch_1ch7k_61",
|
|
48
|
-
"bsy-color-picker__custom-color-btn": "_bsy-color-picker__custom-color-btn_1ch7k_67",
|
|
49
|
-
"bsy-color-picker__custom-color-btn--active": "_bsy-color-picker__custom-color-btn--active_1ch7k_83",
|
|
50
|
-
"bsy-color-picker__custom-color-btn--preview": "_bsy-color-picker__custom-color-btn--preview_1ch7k_88",
|
|
51
|
-
"bsy-color-picker__custom-color-content": "_bsy-color-picker__custom-color-content_1ch7k_93"
|
|
52
|
-
}, w = ({ currentColor: e, onColorSelect: t, options: n, className: r }) => {
|
|
53
|
-
let i = e ? v(e).toRgbString() : "";
|
|
54
|
-
return /* @__PURE__ */ o("div", {
|
|
55
|
-
className: p(C["bsy-color-picker__preset-colors-grid"], r),
|
|
56
|
-
style: { "--preset-cols": Math.min(n.length, 11) },
|
|
57
|
-
children: n.map((e) => /* @__PURE__ */ o("div", {
|
|
58
|
-
className: p(C["bsy-color-picker__preset-colors-item"], { [C["bsy-color-picker__preset-colors-item--selected"]]: !!i && v(e).toRgbString() === i }),
|
|
59
|
-
style: { "--swatch-color": e },
|
|
60
|
-
onClick: () => t(e),
|
|
61
|
-
children: /* @__PURE__ */ o("span", { className: C["bsy-color-picker__preset-colors-swatch"] })
|
|
62
|
-
}, e))
|
|
63
|
-
});
|
|
64
|
-
}, T = (e) => {
|
|
65
|
-
let { children: t, placement: d = "bottom-start", disabled: f = !1, presetColors: p, getPopupContainer: v } = e, { t: y } = n(), [b, T] = m(e, { defaultValue: e.value }), { isOpen: D, refs: O, floatingStyles: k, getReferenceProps: A, getFloatingProps: j } = S(d), M = l(t) ? c(t, {
|
|
66
|
-
...A(),
|
|
67
|
-
ref: O.setReference,
|
|
68
|
-
disabled: f
|
|
69
|
-
}) : t, N = x(p), P = u([]), { portalRoot: F, portalMountKey: I, handleExitComplete: L } = i(D, v);
|
|
70
|
-
return /* @__PURE__ */ s(a, { children: [M, /* @__PURE__ */ o(_, {
|
|
71
|
-
root: F,
|
|
72
|
-
children: /* @__PURE__ */ o(h, {
|
|
73
|
-
onExitComplete: L,
|
|
74
|
-
children: D ? /* @__PURE__ */ o(g.div, {
|
|
75
|
-
ref: O.setFloating,
|
|
76
|
-
style: k,
|
|
77
|
-
...j(),
|
|
78
|
-
className: C["bsy-color-picker__floating"],
|
|
79
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
80
|
-
...r,
|
|
81
|
-
children: /* @__PURE__ */ o("div", {
|
|
82
|
-
className: C["bsy-color-picker__content"],
|
|
83
|
-
children: /* @__PURE__ */ s("div", {
|
|
84
|
-
className: C["bsy-color-picker__grid"],
|
|
85
|
-
children: [/* @__PURE__ */ s("div", {
|
|
86
|
-
className: C["bsy-color-picker__preset-colors"],
|
|
87
|
-
children: [/* @__PURE__ */ o("div", {
|
|
88
|
-
className: C["bsy-color-picker__preset-colors-title"],
|
|
89
|
-
children: y("presetColors")
|
|
90
|
-
}), /* @__PURE__ */ o(w, {
|
|
91
|
-
currentColor: b,
|
|
92
|
-
onColorSelect: T,
|
|
93
|
-
options: N
|
|
94
|
-
})]
|
|
95
|
-
}), /* @__PURE__ */ o(E, {
|
|
96
|
-
value: b,
|
|
97
|
-
onChange: T,
|
|
98
|
-
onColorInput: e.onColorInput,
|
|
99
|
-
list: P.current,
|
|
100
|
-
getPopupContainer: v
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
}, "bsy-color-picker-panel") : null
|
|
105
|
-
})
|
|
106
|
-
}, I)] });
|
|
107
|
-
}, E = (t) => {
|
|
108
|
-
let { list: r, getPopupContainer: i } = t, [a, c] = d(), [l, u] = d(!1), { t: m } = n();
|
|
109
|
-
return /* @__PURE__ */ s("div", {
|
|
110
|
-
className: C["bsy-color-picker__custom-color"],
|
|
111
|
-
children: [/* @__PURE__ */ o("div", {
|
|
112
|
-
className: C["bsy-color-picker__custom-color-title"],
|
|
113
|
-
children: m("customColor")
|
|
114
|
-
}), /* @__PURE__ */ s("div", {
|
|
115
|
-
className: C["bsy-color-picker__custom-color-content"],
|
|
116
|
-
children: [/* @__PURE__ */ o(f, {
|
|
117
|
-
getPopupContainer: i,
|
|
118
|
-
value: a,
|
|
119
|
-
onChange: (e) => {
|
|
120
|
-
let n = e.toRgbString();
|
|
121
|
-
c(n), t.onColorInput?.(n);
|
|
122
|
-
},
|
|
123
|
-
open: l,
|
|
124
|
-
onOpenChange: (e) => {
|
|
125
|
-
u(e), !e && a && (r.includes(a) || r.unshift(a), t.onChange(a), c(void 0));
|
|
126
|
-
},
|
|
127
|
-
children: /* @__PURE__ */ o("div", {
|
|
128
|
-
className: p(C["bsy-color-picker__custom-color-btn"], {
|
|
129
|
-
[C["bsy-color-picker__custom-color-btn--active"]]: l && !a,
|
|
130
|
-
[C["bsy-color-picker__custom-color-btn--preview"]]: !!a
|
|
131
|
-
}),
|
|
132
|
-
role: "button",
|
|
133
|
-
style: { backgroundColor: a || void 0 },
|
|
134
|
-
onClick: () => {
|
|
135
|
-
u(!0);
|
|
136
|
-
},
|
|
137
|
-
children: /* @__PURE__ */ o(e, {
|
|
138
|
-
name: "add",
|
|
139
|
-
style: { visibility: a ? "hidden" : "visible" }
|
|
140
|
-
})
|
|
141
|
-
})
|
|
142
|
-
}), /* @__PURE__ */ o(w, {
|
|
143
|
-
currentColor: t.value,
|
|
144
|
-
onColorSelect: t.onChange,
|
|
145
|
-
options: r.slice(0, 5),
|
|
146
|
-
className: C["bsy-color-picker__preset-colors-grid--inline"]
|
|
147
|
-
})]
|
|
148
|
-
})]
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
T.displayName = "BsyColorPicker";
|
|
152
|
-
//#endregion
|
|
153
|
-
export { b as n, T as t };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useFloatingOverlay-BApqkHSu.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-BKZX2_zw.js";
|
|
3
|
-
import { n } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
-
import { t as r } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
5
|
-
import { n as i } from "./pickerLocale-BeMlfhKu.js";
|
|
6
|
-
import { t as a } from "./style-BwmM26RP.js";
|
|
7
|
-
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
import { Suspense as l, cloneElement as u, isValidElement as d, lazy as f, useCallback as p, useMemo as m } from "react";
|
|
9
|
-
import h from "clsx";
|
|
10
|
-
import { useControllableValue as g } from "ahooks";
|
|
11
|
-
import { AnimatePresence as _, motion as v } from "motion/react";
|
|
12
|
-
import { FloatingPortal as y } from "@floating-ui/react";
|
|
13
|
-
import b from "dayjs";
|
|
14
|
-
var x = {
|
|
15
|
-
footer: "_footer_h6lng_1",
|
|
16
|
-
today: "_today_h6lng_11"
|
|
17
|
-
}, S = ({ onClick: e }) => {
|
|
18
|
-
let { t: n } = t();
|
|
19
|
-
return /* @__PURE__ */ s("div", {
|
|
20
|
-
className: x.footer,
|
|
21
|
-
children: /* @__PURE__ */ s("button", {
|
|
22
|
-
type: "button",
|
|
23
|
-
className: x.today,
|
|
24
|
-
onClick: e,
|
|
25
|
-
children: n("datePicker.today")
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}, C = (e, t) => {
|
|
29
|
-
switch (t) {
|
|
30
|
-
case "week": return e.startOf("isoWeek");
|
|
31
|
-
case "month": return e.startOf("month");
|
|
32
|
-
case "year": return e.startOf("year");
|
|
33
|
-
default: return e.startOf("day");
|
|
34
|
-
}
|
|
35
|
-
}, w = {
|
|
36
|
-
"bsy-date-picker": "_bsy-date-picker_legiv_1",
|
|
37
|
-
"bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
|
|
38
|
-
"bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
|
|
39
|
-
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
|
|
40
|
-
}, T = f(() => import("./DatePickerPanel-Bz3uvbYF.js")), E = (f) => {
|
|
41
|
-
let { children: x, picker: E = "date", theme: D, getPopupContainer: O, triggerActiveClassName: k } = f, { locale: A } = t(), [j, M] = g(f, {
|
|
42
|
-
defaultValuePropName: "defaultValue",
|
|
43
|
-
valuePropName: "value",
|
|
44
|
-
trigger: "onChange",
|
|
45
|
-
defaultValue: b().locale(i(A)).startOf("day")
|
|
46
|
-
}), { isOpen: N, setIsOpen: P, refs: F, floatingStyles: I, getReferenceProps: L, getFloatingProps: R } = e(), z = p((e) => {
|
|
47
|
-
e && (M(C(e, E)), P(!1));
|
|
48
|
-
}, [
|
|
49
|
-
E,
|
|
50
|
-
M,
|
|
51
|
-
P
|
|
52
|
-
]), B = p(() => {
|
|
53
|
-
z(b().locale(i(A)));
|
|
54
|
-
}, [z, A]), V = m(() => a(D), [D]), { portalRoot: H, portalMountKey: U, handleExitComplete: W } = r(N, O);
|
|
55
|
-
return d(x), /* @__PURE__ */ c(o, { children: [d(x) ? u(x, {
|
|
56
|
-
...L({ className: h(x.props.className, N && k) }),
|
|
57
|
-
ref: F.setReference
|
|
58
|
-
}) : x, /* @__PURE__ */ s(y, {
|
|
59
|
-
root: H,
|
|
60
|
-
children: /* @__PURE__ */ s(_, {
|
|
61
|
-
onExitComplete: W,
|
|
62
|
-
children: N ? /* @__PURE__ */ s(v.div, {
|
|
63
|
-
ref: F.setFloating,
|
|
64
|
-
style: {
|
|
65
|
-
...I,
|
|
66
|
-
...V
|
|
67
|
-
},
|
|
68
|
-
...R(),
|
|
69
|
-
"data-bsy-date-picker": !0,
|
|
70
|
-
className: w["bsy-date-picker"],
|
|
71
|
-
...n,
|
|
72
|
-
children: /* @__PURE__ */ c("div", {
|
|
73
|
-
className: w["bsy-date-picker__content"],
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ s(l, {
|
|
76
|
-
fallback: /* @__PURE__ */ s("div", {
|
|
77
|
-
className: w["bsy-date-picker__panel-loading"],
|
|
78
|
-
"aria-hidden": !0
|
|
79
|
-
}),
|
|
80
|
-
children: /* @__PURE__ */ s(T, {
|
|
81
|
-
picker: E,
|
|
82
|
-
value: j,
|
|
83
|
-
onChange: z
|
|
84
|
-
})
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ s("div", { className: w["bsy-date-picker__divider"] }),
|
|
87
|
-
/* @__PURE__ */ s(S, { onClick: B })
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
}, "bsy-date-picker-panel") : null
|
|
91
|
-
})
|
|
92
|
-
}, U)] });
|
|
93
|
-
};
|
|
94
|
-
E.displayName = "BsyDatePicker";
|
|
95
|
-
//#endregion
|
|
96
|
-
export { E as t };
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useLocale-BKZX2_zw.js";
|
|
2
|
-
import { n as t } from "../vendors/animations-Mlw78WYo.js";
|
|
3
|
-
import { t as n } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
4
|
-
import { t as r } from "../Select/SelectInputSearch-CrGW_eVo.js";
|
|
5
|
-
import { t as i } from "../NotFoundContent/NotFoundContent-J-TEnljc.js";
|
|
6
|
-
import { t as a } from "../ScrollBar/ScrollBar-CnwYQfXM.js";
|
|
7
|
-
import { t as o } from "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
8
|
-
import { t as s } from "./style-BSgosymi.js";
|
|
9
|
-
import { isEmpty as c, isNumber as l } from "lodash-es";
|
|
10
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
-
import { cloneElement as p, isValidElement as m, memo as h, useMemo as g, useState as _ } from "react";
|
|
12
|
-
import { clsx as v } from "clsx";
|
|
13
|
-
import { useControllableValue as y } from "ahooks";
|
|
14
|
-
import { AnimatePresence as b, motion as x } from "motion/react";
|
|
15
|
-
import { FloatingPortal as S } from "@floating-ui/react";
|
|
16
|
-
import C from "fuse.js";
|
|
17
|
-
//#region src/hooks/useDropdownSearch.ts
|
|
18
|
-
var w = ({ menus: e, searchValue: t, enableInternalFilter: n, searchKey: r }) => {
|
|
19
|
-
let i = g(() => new C(e, {
|
|
20
|
-
keys: [r],
|
|
21
|
-
ignoreLocation: !0,
|
|
22
|
-
threshold: .3,
|
|
23
|
-
getFn: (e, t) => {
|
|
24
|
-
let n = e[t];
|
|
25
|
-
return t === "label" && typeof n != "string" ? "" : String(n || "");
|
|
26
|
-
}
|
|
27
|
-
}), [e, r]), a = g(() => !n || c(t) ? e : i.search(t).map((e) => e.item), [
|
|
28
|
-
e,
|
|
29
|
-
t,
|
|
30
|
-
n,
|
|
31
|
-
i
|
|
32
|
-
]);
|
|
33
|
-
return {
|
|
34
|
-
filteredMenus: a,
|
|
35
|
-
hasNoResults: g(() => n && !c(t) && a.length === 0, [
|
|
36
|
-
n,
|
|
37
|
-
t,
|
|
38
|
-
a.length
|
|
39
|
-
])
|
|
40
|
-
};
|
|
41
|
-
}, T = "_dropdown__trigger_1fafn_1", E = "_dropdown__panel_1fafn_7", D = "_dropdown__search_1fafn_15", O = "_dropdown__menu_1fafn_19", k = {
|
|
42
|
-
dropdown__trigger: T,
|
|
43
|
-
"dropdown__trigger--disabled": "_dropdown__trigger--disabled_1fafn_4",
|
|
44
|
-
dropdown__panel: E,
|
|
45
|
-
dropdown__search: D,
|
|
46
|
-
dropdown__menu: O,
|
|
47
|
-
"dropdown__menu-item": "_dropdown__menu-item_1fafn_22",
|
|
48
|
-
"dropdown__menu-item--disabled": "_dropdown__menu-item--disabled_1fafn_34",
|
|
49
|
-
"dropdown__menu-item--active": "_dropdown__menu-item--active_1fafn_34",
|
|
50
|
-
"dropdown__menu-item-icon": "_dropdown__menu-item-icon_1fafn_41",
|
|
51
|
-
"system-field": "_system-field_1fafn_52",
|
|
52
|
-
"dropdown__menu-item-label": "_dropdown__menu-item-label_1fafn_63"
|
|
53
|
-
}, A = h(({ item: e, onClick: t, isActive: n = !1 }) => {
|
|
54
|
-
let r = () => {
|
|
55
|
-
e.disabled || t(e);
|
|
56
|
-
}, i = e.systemField || !1;
|
|
57
|
-
return /* @__PURE__ */ f("div", {
|
|
58
|
-
className: v(k["dropdown__menu-item"], {
|
|
59
|
-
[k["dropdown__menu-item--disabled"]]: e.disabled,
|
|
60
|
-
[k["dropdown__menu-item--active"]]: n && !e.disabled,
|
|
61
|
-
"text-[#4d609f]": i && !e.disabled && !n
|
|
62
|
-
}),
|
|
63
|
-
onClick: r,
|
|
64
|
-
children: [e.icon && /* @__PURE__ */ d("div", {
|
|
65
|
-
className: v(k["dropdown__menu-item-icon"], { [k["system-field"]]: i && !e.disabled && !n }),
|
|
66
|
-
children: e.icon
|
|
67
|
-
}), /* @__PURE__ */ d("div", {
|
|
68
|
-
className: v(k["dropdown__menu-item-label"], "truncate"),
|
|
69
|
-
children: e.label
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
A.displayName = "BsyDropDownMenuItem";
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/components/DropDown/MenuList/MenuList.tsx
|
|
76
|
-
var j = ({ menus: t, onClick: n, hasNoResults: r, activeKey: a = [] }) => {
|
|
77
|
-
let { t: o } = e();
|
|
78
|
-
return t.length === 0 ? /* @__PURE__ */ d(i, {
|
|
79
|
-
text: o("noData"),
|
|
80
|
-
className: "px-3 py-6"
|
|
81
|
-
}) : r ? /* @__PURE__ */ d(i, {
|
|
82
|
-
text: o("noDataFound"),
|
|
83
|
-
className: "px-3 py-6"
|
|
84
|
-
}) : /* @__PURE__ */ d("div", {
|
|
85
|
-
className: k.dropdown__menu,
|
|
86
|
-
children: t.map((e) => /* @__PURE__ */ d(A, {
|
|
87
|
-
item: e,
|
|
88
|
-
onClick: n,
|
|
89
|
-
isActive: a.includes(e.key)
|
|
90
|
-
}, e.key))
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
j.displayName = "BsyDropDownMenuList";
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/components/DropDown/DropDown.tsx
|
|
96
|
-
var M = (i) => {
|
|
97
|
-
let { t: c } = e(), { children: h, menus: v, onClick: C, onSearch: T, searchKey: E = "label", showSearch: D = !0, closeOnSelect: O = !0, searchPlaceholder: A = c("search"), offset: M = {
|
|
98
|
-
x: 0,
|
|
99
|
-
y: 0
|
|
100
|
-
}, zIndex: N = 1101, style: P, activeKey: F = [], getPopupContainer: I, theme: L } = i, [R, z] = y(i, {
|
|
101
|
-
valuePropName: "visible",
|
|
102
|
-
defaultValue: !1,
|
|
103
|
-
trigger: "onOpenChange"
|
|
104
|
-
}), [B, V] = _(""), H = () => {
|
|
105
|
-
z(!R);
|
|
106
|
-
}, U = () => {
|
|
107
|
-
z(!1);
|
|
108
|
-
}, W = (e) => {
|
|
109
|
-
e.disabled || (C?.(e), O && U());
|
|
110
|
-
}, G = (e) => {
|
|
111
|
-
V(e), T?.(e);
|
|
112
|
-
}, { filteredMenus: K, hasNoResults: q } = w({
|
|
113
|
-
menus: v,
|
|
114
|
-
searchValue: B,
|
|
115
|
-
enableInternalFilter: !T,
|
|
116
|
-
searchKey: E
|
|
117
|
-
}), { refs: J, floatingStyles: Y, getReferenceProps: X, getFloatingProps: Z } = o({
|
|
118
|
-
isOpen: R,
|
|
119
|
-
close: U,
|
|
120
|
-
showMask: !1,
|
|
121
|
-
zIndex: N,
|
|
122
|
-
offset: {
|
|
123
|
-
x: l(M.x) ? M.x : 0,
|
|
124
|
-
y: l(M.y) ? M.y : 0
|
|
125
|
-
}
|
|
126
|
-
}), Q = m(h) ? p(h, {
|
|
127
|
-
...X(),
|
|
128
|
-
ref: J.setReference,
|
|
129
|
-
onClick: (e) => {
|
|
130
|
-
H(), h.props.onClick?.(e);
|
|
131
|
-
}
|
|
132
|
-
}) : h, { portalRoot: $, portalMountKey: ee, handleExitComplete: te } = n(R, I), ne = g(() => s(L), [L]);
|
|
133
|
-
return /* @__PURE__ */ f(u, { children: [Q, /* @__PURE__ */ d(S, {
|
|
134
|
-
root: $,
|
|
135
|
-
children: /* @__PURE__ */ d(b, {
|
|
136
|
-
onExitComplete: te,
|
|
137
|
-
children: R ? /* @__PURE__ */ d(x.div, {
|
|
138
|
-
ref: J.setFloating,
|
|
139
|
-
...Z(),
|
|
140
|
-
style: Y,
|
|
141
|
-
...t,
|
|
142
|
-
children: /* @__PURE__ */ f("div", {
|
|
143
|
-
className: k.dropdown__panel,
|
|
144
|
-
style: {
|
|
145
|
-
...ne,
|
|
146
|
-
...P
|
|
147
|
-
},
|
|
148
|
-
children: [D && /* @__PURE__ */ d("div", {
|
|
149
|
-
className: k.dropdown__search,
|
|
150
|
-
children: /* @__PURE__ */ d(r, {
|
|
151
|
-
value: B,
|
|
152
|
-
onChange: G,
|
|
153
|
-
searchPlaceholder: A
|
|
154
|
-
})
|
|
155
|
-
}), /* @__PURE__ */ d(a, {
|
|
156
|
-
style: { maxHeight: 300 },
|
|
157
|
-
children: /* @__PURE__ */ d(j, {
|
|
158
|
-
menus: K,
|
|
159
|
-
onClick: W,
|
|
160
|
-
hasNoResults: q,
|
|
161
|
-
activeKey: F
|
|
162
|
-
})
|
|
163
|
-
})]
|
|
164
|
-
})
|
|
165
|
-
}, "bsy-dropdown-panel") : null
|
|
166
|
-
})
|
|
167
|
-
}, ee)] });
|
|
168
|
-
};
|
|
169
|
-
M.displayName = "BsyDropDown";
|
|
170
|
-
//#endregion
|
|
171
|
-
export { M as t };
|