@unicom-cloud/ui 0.8.66 → 0.8.67
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/Affix.js +79 -79
- package/Alert.js +46 -46
- package/Anchor.js +1 -1
- package/AutoComplete.js +74 -74
- package/Avatar.js +36 -36
- package/BackTop.js +35 -35
- package/Badge.js +55 -55
- package/Breadcrumb.js +42 -42
- package/Button.js +24 -24
- package/Calendar.js +230 -230
- package/Card.js +18 -18
- package/Carousel.js +165 -165
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +26 -26
- package/Comment.js +18 -18
- package/ConfigProvider.js +2 -2
- package/Copy.js +28 -27
- package/DatePicker.js +872 -871
- package/Descriptions.js +34 -34
- package/Divider.js +19 -19
- package/Draggable.js +27 -26
- package/Drawer.js +1 -1
- package/Dropdown.js +110 -110
- package/Empty.js +3 -3
- package/Form.js +984 -945
- package/Grid.js +34 -34
- package/Icon.js +16 -16
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +7 -6
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +24 -24
- package/Link.js +30 -30
- package/List.js +95 -95
- package/Mentions.js +85 -84
- package/Menu.js +2 -2
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +14 -3
- package/Notification.js +9 -7
- package/OverflowEllipsis.js +64 -62
- package/PageHeader.js +73 -73
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +60 -60
- package/Popover.js +31 -31
- package/Portal.js +23 -31
- package/Progress.js +22 -22
- package/Radio.js +2 -2
- package/Rate.js +24 -24
- package/ResizeBox.js +274 -271
- package/Result.js +3 -3
- package/Select.js +4 -4
- package/SelectView.js +257 -238
- package/Skeleton.js +46 -46
- package/Slider.js +286 -283
- package/Space.js +28 -28
- package/SpeechSynthesis.js +62 -55
- package/Spin.js +23 -23
- package/Statistic.js +80 -80
- package/Steps.js +67 -67
- package/Switch.js +47 -47
- package/Table.js +1445 -1380
- package/Tabs.js +5 -5
- package/Tag.js +45 -45
- package/TimePicker.js +154 -154
- package/Timeline.js +2 -2
- package/Tooltip.js +80 -79
- package/Transfer.js +103 -102
- package/Tree.js +3 -2
- package/TreeSelect.js +2 -2
- package/Trigger.js +699 -772
- package/Typography.js +756 -6
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
- package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
- package/chunk/B5gK1Idp.js +19 -0
- package/chunk/B7FlazNB.js +24 -0
- package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
- package/chunk/BCftTxEy.js +626 -0
- package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
- package/chunk/BHF15Dog.js +98 -0
- package/chunk/BJQ5UNa-.js +1585 -0
- package/chunk/BP9sYyk9.js +8 -0
- package/chunk/BUdtVdnv.js +38 -0
- package/chunk/BVQlOzTS.js +11 -0
- package/chunk/B__a_gb_.js +519 -0
- package/chunk/BbEYToV1.js +10 -0
- package/chunk/BbdDQAnm.js +15 -0
- package/chunk/BdUcgWdu.js +11 -0
- package/chunk/BfbXSG70.js +26 -0
- package/chunk/BndfNLK4.js +186 -0
- package/chunk/BoMCZV6K.js +1098 -0
- package/chunk/Br0B6y1T.js +18 -0
- package/chunk/BrOW642m.js +130 -0
- package/chunk/BxUs8_Cr.js +9 -0
- package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
- package/chunk/C4YkFMzC.js +778 -0
- package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
- package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
- package/chunk/CJ_o9tZM.js +5 -0
- package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
- package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
- package/chunk/CLiqJm_T.js +10 -0
- package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
- package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
- package/chunk/CPT-OZH2.js +14 -0
- package/chunk/CVSF8p0O.js +698 -0
- package/chunk/C_agcwLN.js +31 -0
- package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
- package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
- package/chunk/Ce1j9KTi.js +6 -0
- package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
- package/chunk/CkNSv2U7.js +56 -0
- package/chunk/Cp2f70gB.js +9 -0
- package/chunk/CpegYjdC.js +16 -0
- package/chunk/CucI3KZr.js +20 -0
- package/chunk/CwoFBTYz.js +11 -0
- package/chunk/D2KPqPhV.js +17 -0
- package/chunk/D7NyvE5f.js +17 -0
- package/chunk/D8oTPQ2H.js +384 -0
- package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
- package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
- package/chunk/DGTIZ_0O.js +6 -0
- package/chunk/DJfpiZn_.js +25 -0
- package/chunk/DKr2_PYd.js +34 -0
- package/chunk/DNUz6zgo.js +11 -0
- package/chunk/DRtM649q.js +11 -0
- package/chunk/DS_mUWn6.js +41 -0
- package/chunk/DU6bs_19.js +10 -0
- package/chunk/DWdbwz22.js +10 -0
- package/chunk/DcveZuqd.js +6 -0
- package/chunk/DdVFknul.js +24 -0
- package/chunk/DgRfikwe.js +16 -0
- package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
- package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
- package/chunk/DnrZEnQ_.js +27 -0
- package/chunk/DsRSHWtX.js +1025 -0
- package/chunk/Dz5BdmXo.js +270 -0
- package/chunk/EANe01DF.js +1030 -0
- package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
- package/chunk/GoNx5R4F.js +873 -0
- package/chunk/HDUQku8d.js +20 -0
- package/chunk/HrAP__Hi.js +25 -0
- package/chunk/JPPo5nY_.js +9 -0
- package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
- package/chunk/VVKtwaGf.js +278 -0
- package/chunk/WPNpLxSI.js +16 -0
- package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
- package/chunk/fdU3ang6.js +14 -0
- package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
- package/chunk/flvYlqx3.js +22 -0
- package/chunk/kTDayEpF.js +288 -0
- package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
- package/chunk/qFf1w_Jq.js +8 -0
- package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
- package/hooks/index.js +53 -49
- package/hooks/useComputedState.js +2 -10
- package/hooks/useCreate.js +2 -7
- package/hooks/useForceUpdate.js +2 -7
- package/hooks/useId.js +2 -10
- package/hooks/useInView.js +2 -30
- package/hooks/useIntersectionObserver.js +2 -23
- package/hooks/useInterval.js +2 -17
- package/hooks/useIsFirstRender.js +2 -9
- package/hooks/useIsomorphicLayoutEffect.js +2 -5
- package/hooks/useKeyboardEvent.js +2 -16
- package/hooks/useMedia.js +2 -15
- package/hooks/useMergeProps.js +2 -18
- package/hooks/useMergeValue.js +2 -19
- package/hooks/useOnlineStatus.js +4 -0
- package/hooks/useOverflowHidden.js +2 -25
- package/hooks/useOverrideRef.js +2 -13
- package/hooks/usePersistCallback.js +2 -13
- package/hooks/usePrefersColorSchemeDark.js +4 -0
- package/hooks/usePrevious.js +2 -9
- package/hooks/useRefs.js +2 -9
- package/hooks/useResizeObserver.js +2 -15
- package/hooks/useStateCallback.js +2 -15
- package/hooks/useStateWithPromise.js +2 -24
- package/hooks/useUpdateEffect.js +2 -9
- package/hooks/useVerificationCode.js +73 -0
- package/hooks/useWatch.js +2 -10
- package/hooks/{use-watermark.js → useWatermark.js} +27 -26
- package/hooks/useWindowSize.js +2 -20
- package/index.js +571 -584
- package/locale/en-US.js +4 -2
- package/locale/interface.js +1 -4
- package/locale/ja-JP.js +3 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +3 -1
- package/locale/zh-HK.js +3 -1
- package/locale/zh-TW.js +3 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -1
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
- package/types/form/Control-old.d.ts +56 -0
- package/types/form/Control.d.ts +6 -54
- package/types/form/FormItem.d.ts +1 -1
- package/types/form/store.d.ts +0 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useComputedState.d.ts +1 -4
- package/types/hooks/useCreate.d.ts +1 -2
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useId.d.ts +1 -2
- package/types/hooks/useInView.d.ts +1 -11
- package/types/hooks/useIntersectionObserver.d.ts +1 -7
- package/types/hooks/useInterval.d.ts +1 -2
- package/types/hooks/useIsFirstRender.d.ts +1 -2
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/hooks/useKeyboardEvent.d.ts +1 -8
- package/types/hooks/useMedia.d.ts +1 -2
- package/types/hooks/useMergeProps.d.ts +1 -5
- package/types/hooks/useMergeValue.d.ts +1 -6
- package/types/hooks/useOnlineStatus.d.ts +1 -0
- package/types/hooks/useOverflowHidden.d.ts +1 -5
- package/types/hooks/useOverrideRef.d.ts +1 -6
- package/types/hooks/usePersistCallback.d.ts +1 -2
- package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/hooks/usePrevious.d.ts +1 -3
- package/types/hooks/useRefs.d.ts +1 -2
- package/types/hooks/useResizeObserver.d.ts +1 -6
- package/types/hooks/useStateCallback.d.ts +1 -5
- package/types/hooks/useStateWithPromise.d.ts +1 -2
- package/types/hooks/useUpdateEffect.d.ts +1 -3
- package/types/hooks/useWatch.d.ts +1 -3
- package/types/hooks/useWindowSize.d.ts +1 -5
- package/types/image/interface.d.ts +1 -0
- package/types/index.d.ts +157 -86
- package/types/input/Input.d.ts +1 -1
- package/types/input/Textarea.d.ts +2 -2
- package/types/locale/en-US.d.ts +2 -0
- package/types/locale/interface.d.ts +1 -2
- package/types/locale/ja-JP.d.ts +2 -0
- package/types/locale/zh-CN.d.ts +2 -0
- package/types/locale/zh-HK.d.ts +2 -0
- package/types/locale/zh-TW.d.ts +2 -0
- package/types/menu/context.d.ts +1 -1
- package/types/message/index.d.ts +14 -14
- package/types/message/interface.d.ts +2 -0
- package/types/modal/config.d.ts +0 -1
- package/types/modal/interface.d.ts +0 -1
- package/types/notice/index.d.ts +2 -27
- package/types/notification/index.d.ts +15 -16
- package/types/notification/interface.d.ts +2 -0
- package/types/notification/withNotification.d.ts +2 -0
- package/types/select/util.d.ts +1 -2
- package/types/select-view/interface.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +1 -1
- package/types/table/constant.d.ts +2 -0
- package/types/table/hook/useThResizable.d.ts +7 -0
- package/types/table/index.d.ts +10 -1
- package/types/table/style/index.d.ts +1 -0
- package/types/table/th-resizable/index.d.ts +2 -0
- package/types/table/thead/Column.d.ts +1 -2
- package/types/tree/Tree.d.ts +12 -67
- package/types/tree-select/Select.d.ts +2 -2
- package/types/trigger/index.d.ts +2 -120
- package/types/trigger/interface.d.ts +2 -1
- package/types/utils/CSSTransition.d.ts +2 -3
- package/types/utils/caseName.d.ts +1 -1
- package/types/utils/className.d.ts +1 -1
- package/types/utils/constant.d.ts +2 -2
- package/types/utils/copy.d.ts +1 -1
- package/types/utils/dayjs.d.ts +1 -21
- package/types/utils/dom.d.ts +1 -6
- package/types/utils/fileToURL.d.ts +1 -1
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/getHighlightText.d.ts +1 -5
- package/types/utils/getHotkeyHandler.d.ts +1 -8
- package/types/utils/getStringLength.d.ts +1 -1
- package/types/utils/include.d.ts +1 -1
- package/types/utils/index.d.ts +3 -4
- package/types/utils/is.d.ts +1 -16
- package/types/utils/keyboardCode.d.ts +3 -0
- package/types/utils/lodash.d.ts +1 -17
- package/types/utils/mergeProps.d.ts +1 -1
- package/types/utils/mergedToString.d.ts +1 -1
- package/types/utils/omit.d.ts +1 -1
- package/types/utils/pad.d.ts +1 -2
- package/types/utils/pick.d.ts +2 -4
- package/types/utils/reactDOM.d.ts +1 -7
- package/types/utils/resizeObserverEffect.d.ts +2 -0
- package/types/utils/saveAs.d.ts +1 -1
- package/types/utils/screenfull.d.ts +2 -0
- package/types/utils/scrollIntoView.d.ts +1 -2
- package/types/utils/style.d.ts +1 -3
- package/types/utils/throttleByRaf.d.ts +1 -5
- package/types/utils/throttleByRaf2.d.ts +1 -0
- package/types/utils/warning.d.ts +1 -2
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +2 -6
- package/utils/className.js +2 -2
- package/utils/constant.js +8 -9
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/dayjs.js +14 -173
- package/utils/dom.js +33 -29
- package/utils/fillNBSP.js +2 -4
- package/utils/getHighlightText.js +2 -38
- package/utils/getHotkeyHandler.js +2 -25
- package/utils/getStringLength.js +2 -7
- package/utils/include.js +2 -7
- package/utils/index.js +237 -240
- package/utils/is.js +116 -156
- package/utils/keyboardCode.js +27 -0
- package/utils/mergeProps.js +2 -9
- package/utils/mergedToString.js +2 -13
- package/utils/omit.js +2 -9
- package/utils/pad.js +12 -12
- package/utils/pick.js +4 -15
- package/utils/reactDOM.js +3 -54
- package/utils/resizeObserverEffect.js +4 -0
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +4 -0
- package/utils/scrollIntoView.js +2 -21
- package/utils/style.js +12 -11
- package/utils/throttleByRaf.js +13 -12
- package/utils/throttleByRaf2.js +5 -0
- package/utils/warning.js +5 -4
- package/NotificationBase.js +0 -53
- package/chunk/-zpSUpGE.js +0 -1501
- package/chunk/BAWsPQBM.js +0 -11
- package/chunk/BIT0j3HT.js +0 -269
- package/chunk/BbLKnaNO.js +0 -871
- package/chunk/Bfhv56O2.js +0 -638
- package/chunk/C2lIz2F9.js +0 -60
- package/chunk/C6QWSzsM.js +0 -376
- package/chunk/CVkHTbic.js +0 -995
- package/chunk/CeGEvXby.js +0 -278
- package/chunk/D3NFxdmG.js +0 -518
- package/chunk/DApXtulb.js +0 -1102
- package/chunk/DPByB1ab.js +0 -698
- package/chunk/DV1Ab_cG.js +0 -284
- package/chunk/dBnNCOIU.js +0 -778
- package/chunk/it8qlDZ3.js +0 -1032
- package/chunk/l0sNRNKZ.js +0 -1
- package/chunk/te_43YrB.js +0 -776
- package/hooks/use-verification-code.js +0 -73
- package/types/notification-base/index.d.ts +0 -15
- package/types/notification-base/style/index.d.ts +0 -2
- package/types/trigger/Portal.d.ts +0 -7
- package/types/utils/keyCode.d.ts +0 -45
- package/types/utils/raf.d.ts +0 -3
- package/types/utils/throttleByRafV2.d.ts +0 -5
- package/utils/keyCode.js +0 -12
- package/utils/raf.js +0 -19
- package/utils/throttleByRafV2.js +0 -16
package/Descriptions.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import z from "lodash/isArray";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import S, { useContext as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import V from "lodash/isNumber";
|
|
4
|
+
import q from "lodash/isPlainObject";
|
|
5
|
+
import S, { useContext as B, useState as G, useRef as J, useEffect as K } from "react";
|
|
6
|
+
import { a as M } from "./chunk/BJQ5UNa-.js";
|
|
7
|
+
import { c as Q } from "./chunk/B5gK1Idp.js";
|
|
8
|
+
import { m as U } from "./chunk/JPPo5nY_.js";
|
|
9
9
|
import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
|
|
10
10
|
const k = (f) => z(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, W = {
|
|
11
11
|
layout: "horizontal",
|
|
@@ -13,7 +13,7 @@ const k = (f) => z(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, W = {
|
|
|
13
13
|
tableLayout: "auto"
|
|
14
14
|
};
|
|
15
15
|
function X(f) {
|
|
16
|
-
const { getPrefixCls: h, componentConfig: p, rtl: C } =
|
|
16
|
+
const { getPrefixCls: h, componentConfig: p, rtl: C } = B(M), I = Q(
|
|
17
17
|
f,
|
|
18
18
|
W,
|
|
19
19
|
p == null ? void 0 : p.Descriptions
|
|
@@ -30,8 +30,8 @@ function X(f) {
|
|
|
30
30
|
layout: u,
|
|
31
31
|
size: N,
|
|
32
32
|
tableLayout: O
|
|
33
|
-
} = I, n = h("descriptions"), [j, A] =
|
|
34
|
-
|
|
33
|
+
} = I, n = h("descriptions"), [j, A] = G(), g = J(null);
|
|
34
|
+
K(() => (g.current = x.subscribe((s) => {
|
|
35
35
|
for (let t = 0; t < P.length; t++) {
|
|
36
36
|
const e = P[t];
|
|
37
37
|
if (s[e]) {
|
|
@@ -43,24 +43,24 @@ function X(f) {
|
|
|
43
43
|
x.unsubscribe(g.current);
|
|
44
44
|
}), []);
|
|
45
45
|
let l = 3;
|
|
46
|
-
|
|
46
|
+
q(m) && (l = m[j] || 3), V(m) && m > 0 && (l = m);
|
|
47
47
|
const o = [];
|
|
48
48
|
if (z(b) && b.length > 0 && l) {
|
|
49
49
|
b.forEach((e) => {
|
|
50
|
-
const i = o[o.length - 1],
|
|
51
|
-
|
|
50
|
+
const i = o[o.length - 1], a = k(i);
|
|
51
|
+
a === 0 ? o.push([
|
|
52
52
|
{
|
|
53
53
|
...e,
|
|
54
54
|
span: e.span ? e.span > l ? l : e.span : 1
|
|
55
55
|
}
|
|
56
|
-
]) :
|
|
56
|
+
]) : a === l ? o.push([
|
|
57
57
|
{
|
|
58
58
|
...e,
|
|
59
59
|
span: e.span ? e.span > l ? l : e.span : 1
|
|
60
60
|
}
|
|
61
61
|
]) : i.push({
|
|
62
62
|
...e,
|
|
63
|
-
span: e.span ? e.span +
|
|
63
|
+
span: e.span ? e.span + a > l ? l - a : e.span : 1
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
const s = o[o.length - 1], t = k(s);
|
|
@@ -68,13 +68,13 @@ function X(f) {
|
|
|
68
68
|
}
|
|
69
69
|
function E(s, t) {
|
|
70
70
|
return /* @__PURE__ */ c(S.Fragment, { children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
const
|
|
71
|
+
/* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
72
|
+
const a = e.span > 1 ? { colSpan: e.span } : {};
|
|
73
73
|
return /* @__PURE__ */ c(
|
|
74
74
|
"td",
|
|
75
75
|
{
|
|
76
76
|
className: `${n}-item-label`,
|
|
77
|
-
...
|
|
77
|
+
...a,
|
|
78
78
|
style: y,
|
|
79
79
|
children: [
|
|
80
80
|
e.label,
|
|
@@ -84,13 +84,13 @@ function X(f) {
|
|
|
84
84
|
`${e.key || i}_label`
|
|
85
85
|
);
|
|
86
86
|
}) }),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
const
|
|
89
|
-
return /* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
88
|
+
const a = e.span > 1 ? { colSpan: e.span } : {};
|
|
89
|
+
return /* @__PURE__ */ r(
|
|
90
90
|
"td",
|
|
91
91
|
{
|
|
92
92
|
className: `${n}-item-value`,
|
|
93
|
-
...
|
|
93
|
+
...a,
|
|
94
94
|
style: $,
|
|
95
95
|
children: e.value
|
|
96
96
|
},
|
|
@@ -100,18 +100,18 @@ function X(f) {
|
|
|
100
100
|
] }, t);
|
|
101
101
|
}
|
|
102
102
|
function F(s, t) {
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
const
|
|
103
|
+
return /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
104
|
+
const a = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
|
|
105
105
|
return /* @__PURE__ */ c(S.Fragment, { children: [
|
|
106
106
|
/* @__PURE__ */ c("td", { className: `${n}-item-label`, style: y, children: [
|
|
107
107
|
e.label,
|
|
108
108
|
d
|
|
109
109
|
] }),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ r(
|
|
111
111
|
"td",
|
|
112
112
|
{
|
|
113
113
|
className: `${n}-item-value`,
|
|
114
|
-
...
|
|
114
|
+
...a,
|
|
115
115
|
style: $,
|
|
116
116
|
children: e.value
|
|
117
117
|
}
|
|
@@ -120,12 +120,12 @@ function X(f) {
|
|
|
120
120
|
}) }, t);
|
|
121
121
|
}
|
|
122
122
|
function R(s, t) {
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
const
|
|
123
|
+
return /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
|
|
124
|
+
const a = e.span > 1 ? { colSpan: e.span } : {};
|
|
125
125
|
return /* @__PURE__ */ c(
|
|
126
126
|
"td",
|
|
127
127
|
{
|
|
128
|
-
...
|
|
128
|
+
...a,
|
|
129
129
|
className: `${n}-item`,
|
|
130
130
|
children: [
|
|
131
131
|
/* @__PURE__ */ c(
|
|
@@ -139,7 +139,7 @@ function X(f) {
|
|
|
139
139
|
]
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ r(
|
|
143
143
|
"div",
|
|
144
144
|
{
|
|
145
145
|
className: `${n}-item-value-inline`,
|
|
@@ -156,7 +156,7 @@ function X(f) {
|
|
|
156
156
|
function H(s, t) {
|
|
157
157
|
return u === "inline-vertical" || u === "inline-horizontal" ? R(s, t) : u === "vertical" ? E(s, t) : F(s, t);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const T = U(
|
|
160
160
|
n,
|
|
161
161
|
{
|
|
162
162
|
[`${n}-border`]: L,
|
|
@@ -167,9 +167,9 @@ function X(f) {
|
|
|
167
167
|
},
|
|
168
168
|
D
|
|
169
169
|
);
|
|
170
|
-
return /* @__PURE__ */ c("div", { className:
|
|
171
|
-
v && /* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ c("div", { className: T, style: w, children: [
|
|
171
|
+
v && /* @__PURE__ */ r("div", { className: `${n}-title`, children: v }),
|
|
172
|
+
/* @__PURE__ */ r("div", { className: `${n}-body`, children: /* @__PURE__ */ r("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ r("tbody", { children: o.map((s, t) => H(s, t)) }) }) })
|
|
173
173
|
] });
|
|
174
174
|
}
|
|
175
175
|
X.displayName = "Descriptions";
|
package/Divider.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useContext as $ } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
3
|
+
import { a as h } from "./chunk/BJQ5UNa-.js";
|
|
4
|
+
import { c as u } from "./chunk/B5gK1Idp.js";
|
|
5
|
+
import { m as v } from "./chunk/JPPo5nY_.js";
|
|
6
|
+
const C = {
|
|
7
7
|
type: "horizontal",
|
|
8
8
|
orientation: "center"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
const { getPrefixCls: l, componentConfig: r } = $(
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
function N(a, n) {
|
|
11
|
+
const { getPrefixCls: l, componentConfig: r } = $(h), m = u(
|
|
12
|
+
a,
|
|
13
|
+
C,
|
|
14
14
|
r == null ? void 0 : r.Divider
|
|
15
|
-
), { children: e, style:
|
|
15
|
+
), { children: e, style: c, className: p, type: i, orientation: o, ...d } = m, t = l("divider"), f = v(
|
|
16
16
|
t,
|
|
17
|
-
`${t}-${
|
|
17
|
+
`${t}-${i}`,
|
|
18
18
|
{
|
|
19
19
|
[`${t}-with-text`]: e,
|
|
20
20
|
[`${t}-with-text-${o}`]: e && o
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
p
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ s(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
role: "separator",
|
|
28
|
-
ref:
|
|
28
|
+
ref: n,
|
|
29
29
|
className: f,
|
|
30
|
-
style:
|
|
30
|
+
style: c,
|
|
31
31
|
...d,
|
|
32
|
-
children: e &&
|
|
32
|
+
children: e && i === "horizontal" ? /* @__PURE__ */ s("span", { className: `${t}-text ${t}-text-${o}`, children: e }) : null
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const y = x(N);
|
|
37
|
+
y.displayName = "Divider";
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
y as default
|
|
40
40
|
};
|
package/Draggable.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import y, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
|
|
3
|
+
import { a as T } from "./chunk/BJQ5UNa-.js";
|
|
4
|
+
import { m as w } from "./chunk/JPPo5nY_.js";
|
|
5
5
|
function N(m) {
|
|
6
6
|
const {
|
|
7
7
|
prefixCls: e,
|
|
8
|
-
style:
|
|
8
|
+
style: p,
|
|
9
9
|
children: D,
|
|
10
10
|
direction: x,
|
|
11
11
|
disabled: h,
|
|
12
12
|
droppable: r = !0,
|
|
13
|
-
onDrop:
|
|
14
|
-
onDragStart:
|
|
13
|
+
onDrop: g,
|
|
14
|
+
onDragStart: c,
|
|
15
15
|
onDragEnd: s,
|
|
16
|
-
onDragOver:
|
|
16
|
+
onDragOver: f,
|
|
17
17
|
onDragLeave: a
|
|
18
|
-
} = m, v = P(null), i = P(null), [n, o] = u("none"), [
|
|
18
|
+
} = m, v = P(null), i = P(null), [n, o] = u("none"), [S, d] = u(!1), [b, C] = u(null);
|
|
19
19
|
return $(() => () => {
|
|
20
20
|
i.current && clearTimeout(i.current);
|
|
21
21
|
}, []), $(() => {
|
|
@@ -25,64 +25,65 @@ function N(m) {
|
|
|
25
25
|
{
|
|
26
26
|
draggable: !0,
|
|
27
27
|
ref: v,
|
|
28
|
-
style:
|
|
28
|
+
style: p,
|
|
29
29
|
className: w(`${e}-item`, {
|
|
30
30
|
[`${e}-item-${n}`]: n !== "none",
|
|
31
31
|
[`${e}-item-gap-${b}`]: b,
|
|
32
32
|
[`${e}-item-disabled`]: h,
|
|
33
|
-
[`${e}-item-dragover`]:
|
|
33
|
+
[`${e}-item-dragover`]: S
|
|
34
34
|
}),
|
|
35
35
|
onDragStart: (t) => {
|
|
36
36
|
t.stopPropagation(), o("dragging");
|
|
37
37
|
try {
|
|
38
38
|
t.dataTransfer.setData("text/plain", "");
|
|
39
|
-
} catch {
|
|
39
|
+
} catch (l) {
|
|
40
|
+
console.error(l);
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
c == null || c(t);
|
|
42
43
|
},
|
|
43
44
|
onDragEnd: (t) => {
|
|
44
|
-
t.stopPropagation(),
|
|
45
|
+
t.stopPropagation(), d(!1), o("dragged"), s == null || s(t);
|
|
45
46
|
},
|
|
46
47
|
onDragOver: (t) => {
|
|
47
48
|
if (r) {
|
|
48
49
|
t.stopPropagation(), t.preventDefault();
|
|
49
|
-
const
|
|
50
|
+
const l = v.current.getBoundingClientRect();
|
|
50
51
|
C(
|
|
51
|
-
x === "vertical" ? t.pageY > window.pageYOffset +
|
|
52
|
-
),
|
|
52
|
+
x === "vertical" ? t.pageY > window.pageYOffset + l.top + l.height / 2 ? "bottom" : "top" : t.pageX > window.pageXOffset + l.left + l.width / 2 ? "right" : "left"
|
|
53
|
+
), d(!0), f == null || f(t);
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
onDragLeave: (t) => {
|
|
56
|
-
r && (t.stopPropagation(),
|
|
57
|
+
r && (t.stopPropagation(), d(!1), a == null || a(t));
|
|
57
58
|
},
|
|
58
59
|
onDrop: (t) => {
|
|
59
|
-
r && (t.stopPropagation(), t.preventDefault(),
|
|
60
|
+
r && (t.stopPropagation(), t.preventDefault(), d(!1), C(null), o("none"), g == null || g(t, b));
|
|
60
61
|
},
|
|
61
62
|
children: D
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
function j(m) {
|
|
66
|
-
const { getPrefixCls: e } = O(T),
|
|
67
|
+
const { getPrefixCls: e } = O(T), p = e("draggable"), {
|
|
67
68
|
className: D,
|
|
68
69
|
children: x,
|
|
69
70
|
direction: h = "vertical",
|
|
70
71
|
onIndexChange: r,
|
|
71
|
-
itemWrapperStyle:
|
|
72
|
-
} = m, [
|
|
73
|
-
return /* @__PURE__ */ I("div", { className: w(
|
|
72
|
+
itemWrapperStyle: g
|
|
73
|
+
} = m, [c, s] = u(null);
|
|
74
|
+
return /* @__PURE__ */ I("div", { className: w(p, D), children: y.Children.map(x, (f, a) => /* @__PURE__ */ I(
|
|
74
75
|
N,
|
|
75
76
|
{
|
|
76
|
-
style:
|
|
77
|
-
prefixCls:
|
|
77
|
+
style: g,
|
|
78
|
+
prefixCls: p,
|
|
78
79
|
direction: h,
|
|
79
80
|
onDragStart: () => s(a),
|
|
80
81
|
onDragEnd: () => s(null),
|
|
81
82
|
onDrop: (v, i) => {
|
|
82
|
-
const n =
|
|
83
|
+
const n = c, o = i === "left" || i === "top" ? a : a + 1;
|
|
83
84
|
n !== o && (r == null || r(o, n));
|
|
84
85
|
},
|
|
85
|
-
children:
|
|
86
|
+
children: f
|
|
86
87
|
}
|
|
87
88
|
)) });
|
|
88
89
|
}
|
package/Drawer.js
CHANGED
package/Dropdown.js
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import l, { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import v from "lodash/get";
|
|
3
|
+
import l, { forwardRef as W, useContext as z, useRef as j } from "react";
|
|
4
|
+
import { a as F } from "./chunk/BJQ5UNa-.js";
|
|
5
|
+
import { c as G } from "./chunk/B5gK1Idp.js";
|
|
6
|
+
import { R as X } from "./chunk/HDUQku8d.js";
|
|
7
|
+
import Y, { EventsByTriggerNeed as Z } from "./Trigger.js";
|
|
8
|
+
import { m as U } from "./chunk/JPPo5nY_.js";
|
|
9
|
+
import { A as oo } from "./chunk/CkNSv2U7.js";
|
|
10
|
+
import { c as eo } from "./chunk/BdUcgWdu.js";
|
|
11
|
+
import { r as L, f as to } from "./chunk/D7NyvE5f.js";
|
|
12
|
+
import { g as no } from "./chunk/BUdtVdnv.js";
|
|
13
|
+
import Q from "@unicom-cloud/icons/IconUiMore";
|
|
14
|
+
import O from "./Button.js";
|
|
15
|
+
const ro = {
|
|
16
16
|
position: "br",
|
|
17
17
|
trigger: "hover",
|
|
18
18
|
type: "default",
|
|
19
|
-
icon: /* @__PURE__ */ s(
|
|
19
|
+
icon: /* @__PURE__ */ s(Q, {}),
|
|
20
20
|
unmountOnExit: !0
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
const { componentConfig: u } =
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
function io(D, k) {
|
|
23
|
+
const { componentConfig: u } = z(F), d = G(
|
|
24
|
+
D,
|
|
25
|
+
ro,
|
|
26
26
|
u == null ? void 0 : u["Dropdown.Button"]
|
|
27
27
|
), {
|
|
28
|
-
className:
|
|
28
|
+
className: w,
|
|
29
29
|
style: a,
|
|
30
|
-
children:
|
|
30
|
+
children: B,
|
|
31
31
|
disabled: t,
|
|
32
|
-
position:
|
|
32
|
+
position: g = "br",
|
|
33
33
|
type: C = "default",
|
|
34
34
|
size: n,
|
|
35
|
-
icon:
|
|
36
|
-
onClick:
|
|
37
|
-
buttonProps:
|
|
35
|
+
icon: E = /* @__PURE__ */ s(Q, {}),
|
|
36
|
+
onClick: f,
|
|
37
|
+
buttonProps: V,
|
|
38
38
|
rightButtonProps: r,
|
|
39
39
|
// 潘启宝添加
|
|
40
|
-
buttonsRender:
|
|
40
|
+
buttonsRender: b,
|
|
41
41
|
...i
|
|
42
|
-
} =
|
|
42
|
+
} = d;
|
|
43
43
|
let p = /* @__PURE__ */ s(
|
|
44
|
-
|
|
44
|
+
O,
|
|
45
45
|
{
|
|
46
46
|
disabled: t,
|
|
47
47
|
type: C,
|
|
48
48
|
size: n,
|
|
49
|
-
onClick:
|
|
50
|
-
...
|
|
51
|
-
children:
|
|
49
|
+
onClick: f,
|
|
50
|
+
...V,
|
|
51
|
+
children: B
|
|
52
52
|
}
|
|
53
|
-
),
|
|
54
|
-
|
|
53
|
+
), e = /* @__PURE__ */ s(
|
|
54
|
+
O,
|
|
55
55
|
{
|
|
56
56
|
disabled: t,
|
|
57
57
|
type: C,
|
|
58
58
|
size: n,
|
|
59
|
-
icon:
|
|
59
|
+
icon: E,
|
|
60
60
|
...r
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
|
|
63
|
+
b && ([p, e] = b([p, e]));
|
|
64
|
+
const h = t || !e || e.props && e.props.loading;
|
|
65
|
+
return /* @__PURE__ */ S(
|
|
66
|
+
O.Group,
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: w,
|
|
69
69
|
style: a,
|
|
70
|
-
ref:
|
|
71
|
-
...
|
|
70
|
+
ref: k,
|
|
71
|
+
...L(d),
|
|
72
72
|
children: [
|
|
73
73
|
p,
|
|
74
74
|
/* @__PURE__ */ s(
|
|
75
|
-
|
|
75
|
+
R,
|
|
76
76
|
{
|
|
77
77
|
disabled: t,
|
|
78
|
-
position:
|
|
78
|
+
position: g,
|
|
79
79
|
...i,
|
|
80
80
|
triggerProps: {
|
|
81
|
-
disabled:
|
|
81
|
+
disabled: h,
|
|
82
82
|
...i == null ? void 0 : i.triggerProps
|
|
83
83
|
},
|
|
84
|
-
children:
|
|
84
|
+
children: e
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
function
|
|
91
|
+
const q = W(io);
|
|
92
|
+
q.displayName = "DropdownButton";
|
|
93
|
+
function so(D, k) {
|
|
94
94
|
const u = {
|
|
95
95
|
position: "bl",
|
|
96
96
|
trigger: "hover",
|
|
97
97
|
unmountOnExit: !0
|
|
98
|
-
},
|
|
98
|
+
}, d = {
|
|
99
99
|
left: 4,
|
|
100
100
|
right: 4,
|
|
101
101
|
top: 4,
|
|
102
102
|
bottom: 4
|
|
103
|
-
}, { getPrefixCls:
|
|
104
|
-
|
|
103
|
+
}, { getPrefixCls: w, componentConfig: a, rtl: B } = z(F), t = G(
|
|
104
|
+
D,
|
|
105
105
|
u,
|
|
106
106
|
a == null ? void 0 : a.Dropdown
|
|
107
107
|
), {
|
|
108
|
-
trigger:
|
|
108
|
+
trigger: g,
|
|
109
109
|
droplist: C,
|
|
110
110
|
children: n,
|
|
111
|
-
position:
|
|
112
|
-
disabled:
|
|
113
|
-
unmountOnExit:
|
|
111
|
+
position: E,
|
|
112
|
+
disabled: f,
|
|
113
|
+
unmountOnExit: V,
|
|
114
114
|
triggerProps: r,
|
|
115
|
-
getPopupContainer:
|
|
115
|
+
getPopupContainer: b,
|
|
116
116
|
onVisibleChange: i,
|
|
117
117
|
...p
|
|
118
|
-
} = t,
|
|
118
|
+
} = t, e = w("dropdown"), h = j(null), [M, H] = X(!1, {
|
|
119
119
|
defaultValue: t.defaultPopupVisible,
|
|
120
120
|
value: t.popupVisible
|
|
121
|
-
}),
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
let
|
|
130
|
-
for (const y of l.Children.toArray(
|
|
121
|
+
}), _ = () => l.Children.only(C || /* @__PURE__ */ s("span", {})), N = (o) => {
|
|
122
|
+
var c;
|
|
123
|
+
H(o), i == null || i(o), (c = r == null ? void 0 : r.onVisibleChange) == null || c.call(r, o);
|
|
124
|
+
}, J = (o) => {
|
|
125
|
+
o !== M && N(o);
|
|
126
|
+
}, K = () => {
|
|
127
|
+
const o = _();
|
|
128
|
+
if (v(o, "type.__PQB_MENU__") || v(o, "props.isMenu")) {
|
|
129
|
+
let c = !0;
|
|
130
|
+
for (const y of l.Children.toArray(o.props.children))
|
|
131
131
|
if (y != null) {
|
|
132
|
-
|
|
132
|
+
c = !1;
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
|
-
return l.cloneElement(
|
|
136
|
-
prefixCls:
|
|
137
|
-
[`${
|
|
135
|
+
return l.cloneElement(o, {
|
|
136
|
+
prefixCls: U(`${e}-menu`, {
|
|
137
|
+
[`${e}-menu-hidden`]: c
|
|
138
138
|
}),
|
|
139
139
|
inDropdown: !0,
|
|
140
140
|
selectable: !1,
|
|
141
141
|
onClickMenuItem: (...y) => {
|
|
142
|
-
var
|
|
143
|
-
let
|
|
144
|
-
const
|
|
145
|
-
|
|
142
|
+
var x, T, A;
|
|
143
|
+
let P = null;
|
|
144
|
+
const I = _();
|
|
145
|
+
I.props.onClickMenuItem && (P = I.props.onClickMenuItem(
|
|
146
146
|
...y
|
|
147
147
|
));
|
|
148
|
-
const
|
|
149
|
-
(
|
|
150
|
-
() =>
|
|
151
|
-
) :
|
|
148
|
+
const m = (T = (x = h.current) == null ? void 0 : x.getRootElement) == null ? void 0 : T.call(x);
|
|
149
|
+
(A = m == null ? void 0 : m.focus) == null || A.call(m), P instanceof Promise ? P.finally(
|
|
150
|
+
() => N(!1)
|
|
151
|
+
) : P !== !1 && N(!1);
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
return
|
|
156
|
-
},
|
|
155
|
+
return o;
|
|
156
|
+
}, $ = j();
|
|
157
157
|
return /* @__PURE__ */ s(
|
|
158
|
-
|
|
158
|
+
Y,
|
|
159
159
|
{
|
|
160
|
-
ref:
|
|
160
|
+
ref: h,
|
|
161
161
|
classNames: "slideDynamicOrigin",
|
|
162
|
-
childrenPrefix:
|
|
163
|
-
trigger:
|
|
164
|
-
popup:
|
|
162
|
+
childrenPrefix: e,
|
|
163
|
+
trigger: g,
|
|
164
|
+
popup: K,
|
|
165
165
|
mouseEnterDelay: 400,
|
|
166
166
|
mouseLeaveDelay: 400,
|
|
167
|
-
disabled:
|
|
168
|
-
unmountOnExit:
|
|
169
|
-
position:
|
|
170
|
-
popupVisible:
|
|
171
|
-
popupAlign:
|
|
172
|
-
getPopupContainer:
|
|
173
|
-
alignPoint:
|
|
174
|
-
...
|
|
175
|
-
...
|
|
176
|
-
...
|
|
177
|
-
getTargetDOMNode: () =>
|
|
178
|
-
onVisibleChange:
|
|
167
|
+
disabled: f,
|
|
168
|
+
unmountOnExit: V,
|
|
169
|
+
position: E,
|
|
170
|
+
popupVisible: M,
|
|
171
|
+
popupAlign: d,
|
|
172
|
+
getPopupContainer: b,
|
|
173
|
+
alignPoint: g === "contextMenu",
|
|
174
|
+
...to(p, Z),
|
|
175
|
+
...L(p),
|
|
176
|
+
...eo(r, ["onVisibleChange"]),
|
|
177
|
+
getTargetDOMNode: () => no($.current),
|
|
178
|
+
onVisibleChange: J,
|
|
179
179
|
children: l.isValidElement(n) ? l.cloneElement(n, {
|
|
180
|
-
...typeof
|
|
181
|
-
className:
|
|
180
|
+
...typeof f == "boolean" ? { disabled: f } : {},
|
|
181
|
+
className: U(
|
|
182
182
|
{
|
|
183
|
-
[`${
|
|
184
|
-
[`${[
|
|
183
|
+
[`${e}-popup-visible`]: M,
|
|
184
|
+
[`${[e]}-rtl`]: B
|
|
185
185
|
},
|
|
186
186
|
n.props.className
|
|
187
187
|
),
|
|
188
|
-
ref:
|
|
189
|
-
|
|
188
|
+
ref: oo(n) ? (o) => {
|
|
189
|
+
$.current = o;
|
|
190
190
|
} : void 0
|
|
191
191
|
}) : n
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
const po = l.forwardRef(so), R = po;
|
|
196
|
+
R.displayName = "Dropdown";
|
|
197
|
+
R.Button = q;
|
|
198
198
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
q as DropdownButton,
|
|
200
|
+
R as default
|
|
201
201
|
};
|