@unicom-cloud/ui 0.8.56 → 0.8.58
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 +15 -15
- package/Alert.js +5 -5
- package/Anchor.js +1 -1
- package/AutoComplete.js +28 -28
- package/Avatar.js +11 -11
- package/BackTop.js +28 -28
- package/Badge.js +10 -10
- package/Breadcrumb.js +6 -6
- package/Button.js +11 -10
- package/Calendar.js +8 -8
- package/Card.js +3 -3
- package/Carousel.js +7 -7
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +582 -11
- package/Comment.js +7 -7
- package/ConfigProvider.js +2 -2
- package/Copy.js +6 -6
- package/DatePicker.js +14 -12
- package/Descriptions.js +3 -3
- package/Divider.js +3 -3
- package/Draggable.js +12 -12
- package/Drawer.js +1 -1
- package/Dropdown.js +5 -5
- package/Empty.js +3 -3
- package/Form.js +1410 -10
- package/Grid.js +14 -14
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/Input.js +2 -2
- package/InputNumber.js +8 -8
- package/InputTag.js +1 -1
- package/Layout.js +8 -8
- package/Link.js +13 -13
- package/List.js +21 -21
- package/Mentions.js +30 -30
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +3 -3
- package/Notification.js +4 -4
- package/OverflowEllipsis.js +9 -9
- package/PageHeader.js +10 -10
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +5 -5
- package/Popover.js +7 -7
- package/Portal.js +1 -1
- package/Progress.js +15 -15
- package/Radio.js +2 -2
- package/Rate.js +10 -10
- package/ResizeBox.js +10 -11
- package/Result.js +11 -11
- package/Select.js +1 -1
- package/SelectView.js +40 -41
- package/Skeleton.js +4 -4
- package/Slider.js +9 -9
- package/Space.js +12 -12
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +11 -11
- package/Statistic.js +43 -43
- package/Steps.js +5 -5
- package/Switch.js +15 -16
- package/Table.js +17 -17
- package/Tabs.js +1 -1
- package/Tag.js +5 -5
- package/TimePicker.js +38 -38
- package/Timeline.js +1 -1
- package/Tooltip.js +9 -9
- package/Transfer.js +26 -26
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +11 -11
- package/Typography.js +1 -1
- package/Upload.js +4 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{m_kOQCiU.js → -LZOUh53.js} +1 -1
- package/chunk/{CXNW5Y2a.js → -jdfq71f.js} +1 -1
- package/chunk/{CkAOsst1.js → 4-gvEY5y.js} +30 -30
- package/chunk/{DQXq1QT0.js → B0GOLsj_.js} +1 -1
- package/chunk/{yvbAFxtk.js → B16KHtX-.js} +16 -16
- package/chunk/{CggcswbO.js → B2vORJQ8.js} +19 -15
- package/chunk/{BCk8e9fj.js → B7Zsp3gO.js} +1 -1
- package/chunk/B8QV6E2b.js +34 -0
- package/chunk/{BeM2hfks.js → BBVjSFnw.js} +27 -23
- package/chunk/{1mEO29GP.js → BDjXkzNj.js} +1 -1
- package/chunk/{BuEC_zcc.js → BEDYCG-I.js} +31 -31
- package/chunk/{B45v5S9k.js → BHn4xgbv.js} +1 -1
- package/chunk/{CF3Telny.js → BJ_7JTqC.js} +3 -3
- package/chunk/{BM6dpkeM.js → BLSiP_gg.js} +1 -1
- package/chunk/{9Gh1afjL.js → BMJfSSLX.js} +1 -1
- package/chunk/{DBJ8d0o0.js → BNHrEI0Y.js} +31 -31
- package/chunk/{BP7xX86Q.js → BPZ-6HKJ.js} +131 -134
- package/chunk/{DxNRWF67.js → BVLwPZis.js} +11 -11
- package/chunk/{BpwDupra.js → BYhtrDV3.js} +9 -9
- package/chunk/{D6mVoX-C.js → B_nfMl0e.js} +1 -1
- package/chunk/{BWx1cVT_.js → BcS17Pzy.js} +1 -1
- package/chunk/Bdh4XVuf.js +1487 -0
- package/chunk/{BkHxm4sv.js → BdiEwtQO.js} +1 -1
- package/chunk/{DDda6s72.js → BjSHZA0m.js} +6 -6
- package/chunk/{C7Okdv4u.js → Bpug_KxP.js} +1 -1
- package/chunk/BzPkh4Zv.js +11 -0
- package/chunk/{CwXmtKib.js → C1D7T29r.js} +35 -35
- package/chunk/{DYZzQ2uT.js → C1u_ckwU.js} +1 -1
- package/chunk/C1xMmQIZ.js +468 -0
- package/chunk/C2lIz2F9.js +60 -0
- package/chunk/{Be7oeWU8.js → C43Hv2Bl.js} +1 -1
- package/chunk/{JnyGFb5j.js → C5AQWbC4.js} +79 -79
- package/chunk/{fqgc8r6C.js → C9vsih_D.js} +1 -1
- package/chunk/CANaGbGR.js +154 -0
- package/chunk/{BA02BFUV.js → CAfR2wLq.js} +1 -1
- package/chunk/{CcX2pBUh.js → CAfecMDF.js} +1 -1
- package/chunk/{BHK9zpXn.js → CKp4rZnD.js} +1 -1
- package/chunk/CTxjmYmx.js +19 -0
- package/chunk/{BqxwlITu.js → CV2Aqv9q.js} +1 -1
- package/chunk/{bsawGxt8.js → CYdarMv9.js} +1 -1
- package/chunk/{DafaH1Qt.js → C_S5Mdvd.js} +43 -44
- package/chunk/{DkIjpuBZ.js → Cbd50gx8.js} +11 -11
- package/chunk/{B2Bp3i5u.js → CbiWdbr_.js} +12 -12
- package/chunk/{cUuQh7L_.js → CmB-TL7C.js} +1 -1
- package/chunk/{BbYzi8M0.js → CuOl4X0X.js} +4 -4
- package/chunk/{BHLTzWzi.js → D-ER56Sf.js} +1 -1
- package/chunk/{BK1FKNAX.js → D-aYnb6u.js} +1 -1
- package/chunk/{DalIRWr7.js → D2HkyI6A.js} +9 -9
- package/chunk/D3NFxdmG.js +518 -0
- package/chunk/{C2fspJbE.js → D3xQFJcO.js} +1 -1
- package/chunk/{Lk60-jkf.js → DApXtulb.js} +4 -0
- package/chunk/{sl8s35SK.js → DJcEys80.js} +1 -1
- package/chunk/{B1S1OEw6.js → DLIm6rRJ.js} +1 -1
- package/chunk/{C95ipQ6b.js → DOWEHtqM.js} +1 -1
- package/chunk/{t51ig1FZ.js → DSGRHf-1.js} +132 -132
- package/chunk/{D9TqtOhq.js → DT37l12z.js} +1 -1
- package/chunk/{B6fn5y_s.js → DW-B7npC.js} +1 -1
- package/chunk/D_-UD4vO.js +119 -0
- package/chunk/{Dtnux4qL.js → D_MTFBb0.js} +1 -1
- package/chunk/{WkB0MERB.js → DhBo0pPJ.js} +27 -27
- package/chunk/DmUhn9ib.js +961 -0
- package/chunk/{Bny52uiG.js → DpfUGhi4.js} +10 -10
- package/chunk/{DhLbnw3R.js → Dx_5J4fO.js} +1 -1
- package/chunk/{B9PsJar0.js → Dy487FZ1.js} +1 -1
- package/chunk/{D6RTBH4C.js → IooeSKJJ.js} +10 -10
- package/chunk/Kbr6FzOG.js +745 -0
- package/chunk/{CwjaGytU.js → RMBPs_Ry.js} +32 -32
- package/chunk/Uz-rNulO.js +98 -0
- package/chunk/V6euPXVB.js +1025 -0
- package/chunk/{Bv8ZRDFt.js → YIlBPVAs.js} +14 -14
- package/chunk/{DPvnQJ-H.js → cDZI_t6o.js} +1 -1
- package/chunk/{C-w9pFY-.js → cZiP8FvM.js} +3 -3
- package/chunk/{DJmWXheU.js → eK7lxdak.js} +8 -8
- package/chunk/{Dg2DmtzA.js → gIbzjQ-X.js} +5 -6
- package/chunk/{CPl52AZh.js → sScV-J56.js} +1 -1
- package/chunk/{BbI3gqVr.js → wI2I1qb0.js} +1 -1
- package/hooks/index.js +32 -32
- package/hooks/use-verification-code.js +23 -22
- package/hooks/use-watermark.js +2 -1
- package/hooks/useComputedState.js +2 -1
- package/hooks/useCreate.js +2 -1
- package/hooks/useForceUpdate.js +2 -1
- package/hooks/useId.js +2 -1
- package/hooks/useInView.js +5 -4
- package/hooks/useIntersectionObserver.js +11 -11
- package/hooks/useIsFirstRender.js +2 -1
- package/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/hooks/useKeyboardEvent.js +3 -2
- package/hooks/useMedia.js +2 -1
- package/hooks/useMergeProps.js +2 -1
- package/hooks/useMergeValue.js +4 -3
- package/hooks/useOverflowHidden.js +2 -1
- package/hooks/useOverrideRef.js +2 -1
- package/hooks/usePersistCallback.js +2 -1
- package/hooks/usePrevious.js +2 -1
- package/hooks/useRefs.js +2 -1
- package/hooks/useResizeObserver.js +2 -1
- package/hooks/useStateCallback.js +2 -1
- package/hooks/useStateWithPromise.js +2 -1
- package/hooks/useUpdateEffect.js +2 -1
- package/hooks/useWatch.js +3 -2
- package/hooks/useWindowSize.js +2 -1
- package/icons.js +35 -35
- package/index.js +484 -376
- package/locale/en-US.js +3 -11
- package/locale/tr-TR.js +3 -11
- package/package.json +1 -1
- package/types/anchor/Anchor.d.ts +1 -1
- package/types/button/index.d.ts +3 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +1 -1
- package/types/color-picker/hooks/useControlBlock.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -0
- package/types/date-picker/PickerRange.d.ts +1 -1
- package/types/hooks/use-verification-code/index.d.ts +2 -1
- package/types/hooks/use-watermark/index.d.ts +2 -1
- package/types/hooks/useComputedState.d.ts +2 -2
- package/types/hooks/useCreate.d.ts +2 -1
- package/types/hooks/useForceUpdate.d.ts +2 -1
- package/types/hooks/useId.d.ts +2 -1
- package/types/hooks/useInView.d.ts +1 -1
- package/types/hooks/useIntersectionObserver.d.ts +1 -1
- package/types/hooks/useIsFirstRender.d.ts +2 -1
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/types/hooks/useKeyboardEvent.d.ts +2 -2
- package/types/hooks/useMedia.d.ts +1 -1
- package/types/hooks/useMergeProps.d.ts +2 -1
- package/types/hooks/useMergeValue.d.ts +2 -1
- package/types/hooks/useOverflowHidden.d.ts +2 -2
- package/types/hooks/useOverrideRef.d.ts +2 -1
- package/types/hooks/usePersistCallback.d.ts +2 -1
- package/types/hooks/usePrevious.d.ts +2 -1
- package/types/hooks/useRefs.d.ts +2 -1
- package/types/hooks/useResizeObserver.d.ts +2 -1
- package/types/hooks/useStateCallback.d.ts +1 -1
- package/types/hooks/useStateWithPromise.d.ts +1 -1
- package/types/hooks/useUpdateEffect.d.ts +2 -1
- package/types/hooks/useWatch.d.ts +2 -1
- package/types/hooks/useWindowSize.d.ts +1 -1
- package/types/image/interface.d.ts +1 -1
- package/types/index.d.ts +13 -22
- package/types/table/interface.d.ts +3 -1
- package/types/upload/Upload.d.ts +2 -1
- package/types/upload/index.d.ts +3 -1
- package/types/upload/request_.d.ts +3 -0
- package/types/utils/caseName.d.ts +2 -0
- package/types/utils/fileToURL.d.ts +2 -0
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/index.d.ts +37 -0
- package/types/utils/is.d.ts +2 -2
- package/types/utils/lodash.d.ts +4 -0
- package/types/utils/scrollIntoView.d.ts +2 -1
- package/types/version/index.d.ts +1 -1
- package/ui.css +1 -0
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +20 -0
- package/utils/className.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/fileToURL.js +4 -0
- package/utils/index.js +219 -0
- package/utils/is.js +95 -93
- package/utils/keyCode.js +10 -46
- package/utils/lodash.js +8 -0
- package/utils/mergedToString.js +11 -10
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/scrollIntoView.js +8 -7
- package/chunk/5pZ3ayqs.js +0 -29
- package/chunk/Bl-ODC57.js +0 -945
- package/chunk/BlKc_pDZ.js +0 -678
- package/chunk/CiEln_Q1.js +0 -517
- package/chunk/CilQ012k.js +0 -1796
- package/chunk/CnY8SvgY.js +0 -126
- package/chunk/DRJO1GfY.js +0 -855
- package/chunk/DUxWiN2U.js +0 -1465
- package/chunk/Do1aMgY3.js +0 -12
- package/chunk/Dw4SJ4o1.js +0 -964
- package/chunk/V_IcWDFx.js +0 -49
- package/style.css +0 -1
- /package/types/utils/{mergeProp.d.ts → mergeProps.d.ts} +0 -0
- /package/utils/{mergeProp.js → mergeProps.js} +0 -0
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import o from "prop-types";
|
|
3
|
-
import c, { Children as
|
|
4
|
-
import
|
|
5
|
-
import { supportRef as
|
|
6
|
-
import { findDOMNode as
|
|
7
|
-
|
|
8
|
-
disabled: !1
|
|
9
|
-
};
|
|
10
|
-
function H(n, e) {
|
|
3
|
+
import c, { Children as F, isValidElement as y, cloneElement as S, useRef as P, useMemo as I } from "react";
|
|
4
|
+
import v from "react-dom";
|
|
5
|
+
import { supportRef as U } from "../utils/is.js";
|
|
6
|
+
import { findDOMNode as _, callbackOriginRef as W } from "../utils/reactDOM.js";
|
|
7
|
+
function X(n, e) {
|
|
11
8
|
return n.classList ? !!e && n.classList.contains(e) : (" " + (n.className.baseVal || n.className) + " ").indexOf(
|
|
12
9
|
" " + e + " "
|
|
13
10
|
) !== -1;
|
|
14
11
|
}
|
|
15
|
-
function
|
|
16
|
-
n.classList ? n.classList.add(e) :
|
|
12
|
+
function G(n, e) {
|
|
13
|
+
n.classList ? n.classList.add(e) : X(n, e) || (typeof n.className == "string" ? n.className = n.className + " " + e : n.setAttribute(
|
|
14
|
+
"class",
|
|
15
|
+
(n.className && n.className.baseVal || "") + " " + e
|
|
16
|
+
));
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function V(n, e) {
|
|
19
19
|
return n.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
20
20
|
}
|
|
21
21
|
function z(n, e) {
|
|
22
|
-
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className =
|
|
22
|
+
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = V(n.className, e) : n.setAttribute(
|
|
23
23
|
"class",
|
|
24
|
-
|
|
24
|
+
V(
|
|
25
25
|
n.className && n.className.baseVal || "",
|
|
26
26
|
e
|
|
27
27
|
)
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
var B = Object.defineProperty, H = (n, e, t) => e in n ? B(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, d = (n, e, t) => H(n, typeof e != "symbol" ? e + "" : e, t);
|
|
31
|
+
const q = {
|
|
32
|
+
disabled: !1
|
|
33
|
+
}, O = c.createContext(null), J = process.env.NODE_ENV !== "production" ? o.oneOfType([
|
|
33
34
|
o.number,
|
|
34
35
|
o.shape({
|
|
35
36
|
enter: o.number,
|
|
36
37
|
exit: o.number,
|
|
37
38
|
appear: o.number
|
|
38
39
|
}).isRequired
|
|
39
|
-
]) : null,
|
|
40
|
+
]) : null, K = process.env.NODE_ENV !== "production" ? o.oneOfType([
|
|
40
41
|
o.string,
|
|
41
42
|
o.shape({
|
|
42
43
|
enter: o.string,
|
|
@@ -51,12 +52,12 @@ const Y = process.env.NODE_ENV !== "production" ? o.oneOfType([
|
|
|
51
52
|
exitDone: o.string,
|
|
52
53
|
exitActive: o.string
|
|
53
54
|
})
|
|
54
|
-
]) : null,
|
|
55
|
-
class
|
|
55
|
+
]) : null, j = (n) => n.scrollTop, N = "unmounted", x = "exited", p = "entering", h = "entered", R = "exiting";
|
|
56
|
+
class u extends c.Component {
|
|
56
57
|
constructor(e, t) {
|
|
57
58
|
super(e, t);
|
|
58
59
|
let s = t, i = s && !s.isMounting ? e.enter : e.appear, r;
|
|
59
|
-
this.appearStatus = null, e.in ? i ? (r = x, this.appearStatus =
|
|
60
|
+
this.appearStatus = null, e.in ? i ? (r = x, this.appearStatus = p) : r = h : e.unmountOnExit || e.mountOnEnter ? r = N : r = x, this.state = { status: r }, this.nextCallback = null;
|
|
60
61
|
}
|
|
61
62
|
static getDerivedStateFromProps({ in: e }, t) {
|
|
62
63
|
return e && t.status === N ? { status: x } : null;
|
|
@@ -84,7 +85,7 @@ class h extends c.Component {
|
|
|
84
85
|
let t = null;
|
|
85
86
|
if (e !== this.props) {
|
|
86
87
|
const { status: s } = this.state;
|
|
87
|
-
this.props.in ? s !==
|
|
88
|
+
this.props.in ? s !== p && s !== h && (t = p) : (s === p || s === h) && (t = R);
|
|
88
89
|
}
|
|
89
90
|
this.updateStatus(!1, t);
|
|
90
91
|
}
|
|
@@ -98,10 +99,10 @@ class h extends c.Component {
|
|
|
98
99
|
}
|
|
99
100
|
updateStatus(e = !1, t) {
|
|
100
101
|
if (t !== null)
|
|
101
|
-
if (this.cancelNextCallback(), t ===
|
|
102
|
+
if (this.cancelNextCallback(), t === p) {
|
|
102
103
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
103
|
-
const s = this.props.nodeRef ? this.props.nodeRef.current :
|
|
104
|
-
s &&
|
|
104
|
+
const s = this.props.nodeRef ? this.props.nodeRef.current : v.findDOMNode(this);
|
|
105
|
+
s && j(s);
|
|
105
106
|
}
|
|
106
107
|
this.performEnter(e);
|
|
107
108
|
} else
|
|
@@ -109,30 +110,30 @@ class h extends c.Component {
|
|
|
109
110
|
else this.props.unmountOnExit && this.state.status === x && this.setState({ status: N });
|
|
110
111
|
}
|
|
111
112
|
performEnter(e) {
|
|
112
|
-
const { enter: t } = this.props, s = this.context ? this.context.isMounting : e, [i, r] = this.props.nodeRef ? [s] : [
|
|
113
|
-
if (!e && !t ||
|
|
114
|
-
this.safeSetState({ status:
|
|
113
|
+
const { enter: t } = this.props, s = this.context ? this.context.isMounting : e, [i, r] = this.props.nodeRef ? [s] : [v.findDOMNode(this), s], a = this.getTimeouts(), l = s ? a.appear : a.enter;
|
|
114
|
+
if (!e && !t || q.disabled) {
|
|
115
|
+
this.safeSetState({ status: h }, () => {
|
|
115
116
|
this.props.onEntered(i);
|
|
116
117
|
});
|
|
117
118
|
return;
|
|
118
119
|
}
|
|
119
|
-
this.props.onEnter(i, r), this.safeSetState({ status:
|
|
120
|
+
this.props.onEnter(i, r), this.safeSetState({ status: p }, () => {
|
|
120
121
|
this.props.onEntering(i, r), this.onTransitionEnd(l, () => {
|
|
121
|
-
this.safeSetState({ status:
|
|
122
|
+
this.safeSetState({ status: h }, () => {
|
|
122
123
|
this.props.onEntered(i, r);
|
|
123
124
|
});
|
|
124
125
|
});
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
performExit() {
|
|
128
|
-
const { exit: e } = this.props, t = this.getTimeouts(), s = this.props.nodeRef ? void 0 :
|
|
129
|
-
if (!e ||
|
|
129
|
+
const { exit: e } = this.props, t = this.getTimeouts(), s = this.props.nodeRef ? void 0 : v.findDOMNode(this);
|
|
130
|
+
if (!e || q.disabled) {
|
|
130
131
|
this.safeSetState({ status: x }, () => {
|
|
131
132
|
this.props.onExited(s);
|
|
132
133
|
});
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
|
-
this.props.onExit(s), this.safeSetState({ status:
|
|
136
|
+
this.props.onExit(s), this.safeSetState({ status: R }, () => {
|
|
136
137
|
this.props.onExiting(s), this.onTransitionEnd(t.exit, () => {
|
|
137
138
|
this.safeSetState({ status: x }, () => {
|
|
138
139
|
this.props.onExited(s);
|
|
@@ -156,7 +157,7 @@ class h extends c.Component {
|
|
|
156
157
|
}
|
|
157
158
|
onTransitionEnd(e, t) {
|
|
158
159
|
this.setNextCallback(t);
|
|
159
|
-
const s = this.props.nodeRef ? this.props.nodeRef.current :
|
|
160
|
+
const s = this.props.nodeRef ? this.props.nodeRef.current : v.findDOMNode(this), i = e == null && !this.props.addEndListener;
|
|
160
161
|
if (!s || i) {
|
|
161
162
|
setTimeout(this.nextCallback, 0);
|
|
162
163
|
return;
|
|
@@ -182,23 +183,23 @@ class h extends c.Component {
|
|
|
182
183
|
exit: E,
|
|
183
184
|
timeout: C,
|
|
184
185
|
addEndListener: T,
|
|
185
|
-
onEnter:
|
|
186
|
-
onEntering:
|
|
187
|
-
onEntered:
|
|
188
|
-
onExit:
|
|
189
|
-
onExiting:
|
|
190
|
-
onExited:
|
|
191
|
-
nodeRef:
|
|
192
|
-
...
|
|
186
|
+
onEnter: ae,
|
|
187
|
+
onEntering: le,
|
|
188
|
+
onEntered: ce,
|
|
189
|
+
onExit: de,
|
|
190
|
+
onExiting: pe,
|
|
191
|
+
onExited: he,
|
|
192
|
+
nodeRef: ue,
|
|
193
|
+
...A
|
|
193
194
|
} = this.props;
|
|
194
195
|
return (
|
|
195
196
|
// allows for nested Transitions
|
|
196
|
-
/* @__PURE__ */ m(
|
|
197
|
+
/* @__PURE__ */ m(O.Provider, { value: null, children: typeof t == "function" ? t(e, A) : c.cloneElement(c.Children.only(t), A) })
|
|
197
198
|
);
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
d(u, "contextType", O);
|
|
202
|
+
u.propTypes = {
|
|
202
203
|
/**
|
|
203
204
|
* A React reference to the DOM element that needs to transition:
|
|
204
205
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -302,7 +303,7 @@ h.propTypes = {
|
|
|
302
303
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
303
304
|
*/
|
|
304
305
|
timeout: (n, ...e) => {
|
|
305
|
-
let t =
|
|
306
|
+
let t = J;
|
|
306
307
|
return n.addEndListener || (t = t.isRequired), t(n, ...e);
|
|
307
308
|
},
|
|
308
309
|
/**
|
|
@@ -374,7 +375,7 @@ h.propTypes = {
|
|
|
374
375
|
};
|
|
375
376
|
function b() {
|
|
376
377
|
}
|
|
377
|
-
|
|
378
|
+
u.defaultProps = {
|
|
378
379
|
in: !1,
|
|
379
380
|
mountOnEnter: !1,
|
|
380
381
|
unmountOnExit: !1,
|
|
@@ -388,38 +389,37 @@ h.defaultProps = {
|
|
|
388
389
|
onExiting: b,
|
|
389
390
|
onExited: b
|
|
390
391
|
};
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
let M = class extends c.Component {
|
|
392
|
+
u.UNMOUNTED = N;
|
|
393
|
+
u.EXITED = x;
|
|
394
|
+
u.ENTERING = p;
|
|
395
|
+
u.ENTERED = h;
|
|
396
|
+
u.EXITING = R;
|
|
397
|
+
const Q = (n, e) => n && e && e.split(" ").forEach((t) => G(n, t)), D = (n, e) => n && e && e.split(" ").forEach((t) => z(n, t));
|
|
398
|
+
class L extends c.Component {
|
|
399
399
|
constructor() {
|
|
400
|
-
super(...arguments),
|
|
400
|
+
super(...arguments), d(this, "appliedClasses", {
|
|
401
401
|
appear: {},
|
|
402
402
|
enter: {},
|
|
403
403
|
exit: {}
|
|
404
|
-
}),
|
|
404
|
+
}), d(this, "onEnter", (e, t) => {
|
|
405
405
|
const [s, i] = this.resolveArguments(e, t);
|
|
406
406
|
this.removeClasses(s, "exit"), this.addClass(s, i ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(e, t);
|
|
407
|
-
}),
|
|
407
|
+
}), d(this, "onEntering", (e, t) => {
|
|
408
408
|
const [s, i] = this.resolveArguments(e, t), r = i ? "appear" : "enter";
|
|
409
409
|
this.addClass(s, r, "active"), this.props.onEntering && this.props.onEntering(e, t);
|
|
410
|
-
}),
|
|
410
|
+
}), d(this, "onEntered", (e, t) => {
|
|
411
411
|
const [s, i] = this.resolveArguments(e, t), r = i ? "appear" : "enter";
|
|
412
412
|
this.removeClasses(s, r), this.addClass(s, r, "done"), this.props.onEntered && this.props.onEntered(e, t);
|
|
413
|
-
}),
|
|
413
|
+
}), d(this, "onExit", (e) => {
|
|
414
414
|
const [t] = this.resolveArguments(e);
|
|
415
415
|
this.removeClasses(t, "appear"), this.removeClasses(t, "enter"), this.addClass(t, "exit", "base"), this.props.onExit && this.props.onExit(e);
|
|
416
|
-
}),
|
|
416
|
+
}), d(this, "onExiting", (e) => {
|
|
417
417
|
const [t] = this.resolveArguments(e);
|
|
418
418
|
this.addClass(t, "exit", "active"), this.props.onExiting && this.props.onExiting(e);
|
|
419
|
-
}),
|
|
419
|
+
}), d(this, "onExited", (e) => {
|
|
420
420
|
const [t] = this.resolveArguments(e);
|
|
421
421
|
this.removeClasses(t, "exit"), this.addClass(t, "exit", "done"), this.props.onExited && this.props.onExited(e);
|
|
422
|
-
}),
|
|
422
|
+
}), d(this, "resolveArguments", (e, t) => this.props.nodeRef ? [this.props.nodeRef.current, e] : [e, t]), d(this, "getClassNames", (e) => {
|
|
423
423
|
const { classNames: t } = this.props, s = typeof t == "string", i = s && t ? `${t}-` : "";
|
|
424
424
|
let r = s ? `${i}${e}` : t[e], a = s ? `${r}-active` : t[`${e}Active`], l = s ? `${r}-done` : t[`${e}Done`];
|
|
425
425
|
return {
|
|
@@ -432,7 +432,7 @@ let M = class extends c.Component {
|
|
|
432
432
|
addClass(e, t, s) {
|
|
433
433
|
let i = this.getClassNames(t)[`${s}ClassName`];
|
|
434
434
|
const { doneClassName: r } = this.getClassNames("enter");
|
|
435
|
-
t === "appear" && s === "done" && r && (i += ` ${r}`), s === "active" && e &&
|
|
435
|
+
t === "appear" && s === "done" && r && (i += ` ${r}`), s === "active" && e && j(e), i && (this.appliedClasses[t][s] = i, Q(e, i));
|
|
436
436
|
}
|
|
437
437
|
removeClasses(e, t) {
|
|
438
438
|
const {
|
|
@@ -445,7 +445,7 @@ let M = class extends c.Component {
|
|
|
445
445
|
render() {
|
|
446
446
|
const { classNames: e, ...t } = this.props;
|
|
447
447
|
return /* @__PURE__ */ m(
|
|
448
|
-
|
|
448
|
+
u,
|
|
449
449
|
{
|
|
450
450
|
...t,
|
|
451
451
|
onEnter: this.onEnter,
|
|
@@ -457,12 +457,12 @@ let M = class extends c.Component {
|
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
|
-
}
|
|
461
|
-
|
|
460
|
+
}
|
|
461
|
+
d(L, "defaultProps", {
|
|
462
462
|
classNames: ""
|
|
463
463
|
});
|
|
464
|
-
|
|
465
|
-
...
|
|
464
|
+
L.propTypes = {
|
|
465
|
+
...u.propTypes,
|
|
466
466
|
/**
|
|
467
467
|
* The animation classNames applied to the component as it appears, enters,
|
|
468
468
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -531,7 +531,7 @@ M.propTypes = {
|
|
|
531
531
|
* exitDone?: string,
|
|
532
532
|
* }}
|
|
533
533
|
*/
|
|
534
|
-
classNames:
|
|
534
|
+
classNames: K,
|
|
535
535
|
/**
|
|
536
536
|
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
537
537
|
* applied.
|
|
@@ -586,13 +586,13 @@ M.propTypes = {
|
|
|
586
586
|
*/
|
|
587
587
|
onExited: o.func
|
|
588
588
|
};
|
|
589
|
-
function
|
|
590
|
-
let t = (i) => e &&
|
|
591
|
-
return n &&
|
|
589
|
+
function M(n, e) {
|
|
590
|
+
let t = (i) => e && y(i) ? e(i) : i, s = /* @__PURE__ */ Object.create(null);
|
|
591
|
+
return n && F.map(n, (i) => i).forEach((i) => {
|
|
592
592
|
s[i.key] = t(i);
|
|
593
593
|
}), s;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Y(n, e) {
|
|
596
596
|
n = n || {}, e = e || {};
|
|
597
597
|
function t(l) {
|
|
598
598
|
return l in e ? e[l] : n[l];
|
|
@@ -616,8 +616,8 @@ function se(n, e) {
|
|
|
616
616
|
function g(n, e, t) {
|
|
617
617
|
return t[e] != null ? t[e] : n.props[e];
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
619
|
+
function Z(n, e) {
|
|
620
|
+
return M(n.children, (t) => S(t, {
|
|
621
621
|
onExited: e.bind(null, t),
|
|
622
622
|
in: !0,
|
|
623
623
|
appear: g(t, "appear", n),
|
|
@@ -625,18 +625,18 @@ function ie(n, e) {
|
|
|
625
625
|
exit: g(t, "exit", n)
|
|
626
626
|
}));
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
let s =
|
|
628
|
+
function ee(n, e, t) {
|
|
629
|
+
let s = M(n.children), i = Y(e, s);
|
|
630
630
|
return Object.keys(i).forEach((r) => {
|
|
631
631
|
let a = i[r];
|
|
632
|
-
if (!
|
|
633
|
-
const l = r in e, E = r in s, C = e[r], T =
|
|
632
|
+
if (!y(a)) return;
|
|
633
|
+
const l = r in e, E = r in s, C = e[r], T = y(C) && !C.props.in;
|
|
634
634
|
E && (!l || T) ? i[r] = S(a, {
|
|
635
635
|
onExited: t.bind(null, a),
|
|
636
636
|
in: !0,
|
|
637
637
|
exit: g(a, "exit", n),
|
|
638
638
|
enter: g(a, "enter", n)
|
|
639
|
-
}) : !E && l && !T ? i[r] = S(a, { in: !1 }) : E && l &&
|
|
639
|
+
}) : !E && l && !T ? i[r] = S(a, { in: !1 }) : E && l && y(C) && (i[r] = S(a, {
|
|
640
640
|
onExited: t.bind(null, a),
|
|
641
641
|
in: C.props.in,
|
|
642
642
|
exit: g(a, "exit", n),
|
|
@@ -644,11 +644,11 @@ function re(n, e, t) {
|
|
|
644
644
|
}));
|
|
645
645
|
}), i;
|
|
646
646
|
}
|
|
647
|
-
const
|
|
647
|
+
const te = Object.values || ((n) => Object.keys(n).map((e) => n[e])), ne = {
|
|
648
648
|
component: "div",
|
|
649
649
|
childFactory: (n) => n
|
|
650
650
|
};
|
|
651
|
-
class
|
|
651
|
+
class $ extends c.Component {
|
|
652
652
|
constructor(e, t) {
|
|
653
653
|
super(e, t);
|
|
654
654
|
const s = this.handleExited.bind(this);
|
|
@@ -668,24 +668,24 @@ class A extends c.Component {
|
|
|
668
668
|
}
|
|
669
669
|
static getDerivedStateFromProps(e, { children: t, handleExited: s, firstRender: i }) {
|
|
670
670
|
return {
|
|
671
|
-
children: i ?
|
|
671
|
+
children: i ? Z(e, s) : ee(e, t, s),
|
|
672
672
|
firstRender: !1
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
// node is `undefined` when user provided `nodeRef` prop
|
|
676
676
|
handleExited(e, t) {
|
|
677
|
-
let s =
|
|
677
|
+
let s = M(this.props.children);
|
|
678
678
|
e.key in s || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((i) => {
|
|
679
679
|
let r = { ...i.children };
|
|
680
680
|
return delete r[e.key], { children: r };
|
|
681
681
|
}));
|
|
682
682
|
}
|
|
683
683
|
render() {
|
|
684
|
-
const { component: e, childFactory: t, ...s } = this.props, { contextValue: i } = this.state, r =
|
|
685
|
-
return delete s.appear, delete s.enter, delete s.exit, e === null ? /* @__PURE__ */ m(
|
|
684
|
+
const { component: e, childFactory: t, ...s } = this.props, { contextValue: i } = this.state, r = te(this.state.children).map(t);
|
|
685
|
+
return delete s.appear, delete s.enter, delete s.exit, e === null ? /* @__PURE__ */ m(O.Provider, { value: i, children: r }) : /* @__PURE__ */ m(O.Provider, { value: i, children: /* @__PURE__ */ m(e, { ...s, children: r }) });
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
$.propTypes = {
|
|
689
689
|
/**
|
|
690
690
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
691
691
|
* behavior by providing a `component` prop.
|
|
@@ -738,22 +738,21 @@ A.propTypes = {
|
|
|
738
738
|
*/
|
|
739
739
|
childFactory: o.func
|
|
740
740
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
class de extends c.Component {
|
|
741
|
+
$.defaultProps = ne;
|
|
742
|
+
class se extends c.Component {
|
|
744
743
|
constructor() {
|
|
745
|
-
super(...arguments),
|
|
744
|
+
super(...arguments), d(this, "handleEnter", (...e) => this.handleLifecycle("onEnter", 0, e)), d(this, "handleEntering", (...e) => this.handleLifecycle("onEntering", 0, e)), d(this, "handleEntered", (...e) => this.handleLifecycle("onEntered", 0, e)), d(this, "handleExit", (...e) => this.handleLifecycle("onExit", 1, e)), d(this, "handleExiting", (...e) => this.handleLifecycle("onExiting", 1, e)), d(this, "handleExited", (...e) => this.handleLifecycle("onExited", 1, e));
|
|
746
745
|
}
|
|
747
746
|
handleLifecycle(e, t, s) {
|
|
748
747
|
const { children: i } = this.props, r = c.Children.toArray(i)[t];
|
|
749
748
|
if (r.props[e] && r.props[e](...s), this.props[e]) {
|
|
750
|
-
const a = r.props.nodeRef ? void 0 :
|
|
749
|
+
const a = r.props.nodeRef ? void 0 : v.findDOMNode(this);
|
|
751
750
|
this.props[e](a);
|
|
752
751
|
}
|
|
753
752
|
}
|
|
754
753
|
render() {
|
|
755
754
|
const { children: e, in: t, ...s } = this.props, [i, r] = c.Children.toArray(e);
|
|
756
|
-
return delete s.onEnter, delete s.onEntering, delete s.onEntered, delete s.onExit, delete s.onExiting, delete s.onExited, /* @__PURE__ */ m(
|
|
755
|
+
return delete s.onEnter, delete s.onEntering, delete s.onEntered, delete s.onExit, delete s.onExiting, delete s.onExited, /* @__PURE__ */ m($, { ...s, children: t ? c.cloneElement(i, {
|
|
757
756
|
key: "first",
|
|
758
757
|
onEnter: this.handleEnter,
|
|
759
758
|
onEntering: this.handleEntering,
|
|
@@ -766,7 +765,7 @@ class de extends c.Component {
|
|
|
766
765
|
}) });
|
|
767
766
|
}
|
|
768
767
|
}
|
|
769
|
-
|
|
768
|
+
se.propTypes = {
|
|
770
769
|
in: o.bool.isRequired,
|
|
771
770
|
children(n, e) {
|
|
772
771
|
return c.Children.count(n[e]) !== 2 ? new Error(
|
|
@@ -774,44 +773,43 @@ de.propTypes = {
|
|
|
774
773
|
) : null;
|
|
775
774
|
}
|
|
776
775
|
};
|
|
777
|
-
|
|
778
|
-
function he(n, e) {
|
|
776
|
+
function ie(n, e) {
|
|
779
777
|
return !(n === e || c.isValidElement(n) && c.isValidElement(e) && n.key != null && n.key === e.key);
|
|
780
778
|
}
|
|
781
779
|
const f = {
|
|
782
780
|
out: "out-in",
|
|
783
781
|
in: "in-out"
|
|
784
|
-
},
|
|
782
|
+
}, k = (n, e, t) => (...s) => {
|
|
785
783
|
var i, r;
|
|
786
784
|
(r = (i = n.props)[e]) == null || r.call(i, ...s), t();
|
|
787
|
-
},
|
|
785
|
+
}, re = {
|
|
788
786
|
[f.out]: ({ current: n, changeState: e }) => c.cloneElement(n, {
|
|
789
787
|
in: !1,
|
|
790
|
-
onExited:
|
|
791
|
-
e(
|
|
788
|
+
onExited: k(n, "onExited", () => {
|
|
789
|
+
e(p, null);
|
|
792
790
|
})
|
|
793
791
|
}),
|
|
794
792
|
[f.in]: ({ current: n, changeState: e, children: t }) => [
|
|
795
793
|
n,
|
|
796
794
|
c.cloneElement(t, {
|
|
797
795
|
in: !0,
|
|
798
|
-
onEntered:
|
|
799
|
-
e(
|
|
796
|
+
onEntered: k(t, "onEntered", () => {
|
|
797
|
+
e(p);
|
|
800
798
|
})
|
|
801
799
|
})
|
|
802
800
|
]
|
|
803
|
-
},
|
|
801
|
+
}, oe = {
|
|
804
802
|
[f.out]: ({ children: n, changeState: e }) => c.cloneElement(n, {
|
|
805
803
|
in: !0,
|
|
806
|
-
onEntered:
|
|
807
|
-
e(
|
|
804
|
+
onEntered: k(n, "onEntered", () => {
|
|
805
|
+
e(h, c.cloneElement(n, { in: !0 }));
|
|
808
806
|
})
|
|
809
807
|
}),
|
|
810
808
|
[f.in]: ({ current: n, children: e, changeState: t }) => [
|
|
811
809
|
c.cloneElement(n, {
|
|
812
810
|
in: !1,
|
|
813
|
-
onExited:
|
|
814
|
-
t(
|
|
811
|
+
onExited: k(n, "onExited", () => {
|
|
812
|
+
t(h, c.cloneElement(e, { in: !0 }));
|
|
815
813
|
})
|
|
816
814
|
}),
|
|
817
815
|
c.cloneElement(e, {
|
|
@@ -819,12 +817,12 @@ const f = {
|
|
|
819
817
|
})
|
|
820
818
|
]
|
|
821
819
|
};
|
|
822
|
-
class
|
|
820
|
+
class w extends c.Component {
|
|
823
821
|
constructor() {
|
|
824
|
-
super(...arguments),
|
|
825
|
-
status:
|
|
822
|
+
super(...arguments), d(this, "state", {
|
|
823
|
+
status: h,
|
|
826
824
|
current: null
|
|
827
|
-
}),
|
|
825
|
+
}), d(this, "appeared", !1), d(this, "changeState", (e, t = this.state.current) => {
|
|
828
826
|
this.setState({
|
|
829
827
|
status: e,
|
|
830
828
|
current: t
|
|
@@ -837,10 +835,10 @@ class U extends c.Component {
|
|
|
837
835
|
static getDerivedStateFromProps(e, t) {
|
|
838
836
|
return e.children == null ? {
|
|
839
837
|
current: null
|
|
840
|
-
} : t.status ===
|
|
841
|
-
status:
|
|
842
|
-
} : t.current &&
|
|
843
|
-
status:
|
|
838
|
+
} : t.status === p && e.mode === f.in ? {
|
|
839
|
+
status: p
|
|
840
|
+
} : t.current && ie(t.current, e.children) ? {
|
|
841
|
+
status: R
|
|
844
842
|
} : {
|
|
845
843
|
current: c.cloneElement(e.children, {
|
|
846
844
|
in: !0
|
|
@@ -854,19 +852,19 @@ class U extends c.Component {
|
|
|
854
852
|
} = this, r = { children: e, current: i, changeState: this.changeState, status: s };
|
|
855
853
|
let a;
|
|
856
854
|
switch (s) {
|
|
857
|
-
case
|
|
858
|
-
a =
|
|
855
|
+
case p:
|
|
856
|
+
a = oe[t](r);
|
|
859
857
|
break;
|
|
860
|
-
case
|
|
861
|
-
a =
|
|
858
|
+
case R:
|
|
859
|
+
a = re[t](r);
|
|
862
860
|
break;
|
|
863
|
-
case
|
|
861
|
+
case h:
|
|
864
862
|
a = i;
|
|
865
863
|
}
|
|
866
|
-
return /* @__PURE__ */ m(
|
|
864
|
+
return /* @__PURE__ */ m(O.Provider, { value: { isMounting: !this.appeared }, children: a });
|
|
867
865
|
}
|
|
868
866
|
}
|
|
869
|
-
|
|
867
|
+
w.propTypes = {
|
|
870
868
|
/**
|
|
871
869
|
* Transition modes.
|
|
872
870
|
* `out-in`: Current element transitions out first, then when complete, the new element transitions in.
|
|
@@ -880,13 +878,13 @@ U.propTypes = {
|
|
|
880
878
|
*/
|
|
881
879
|
children: o.oneOfType([o.element.isRequired])
|
|
882
880
|
};
|
|
883
|
-
|
|
881
|
+
w.defaultProps = {
|
|
884
882
|
mode: f.out
|
|
885
883
|
};
|
|
886
|
-
function
|
|
887
|
-
const { children: e, ...t } = n, s =
|
|
884
|
+
function Ce(n) {
|
|
885
|
+
const { children: e, ...t } = n, s = P(), i = P(), r = I(() => n.nodeRef === void 0 && U(e) && y(e) ? (i.current = !0, S(e, {
|
|
888
886
|
ref: (a) => {
|
|
889
|
-
s.current =
|
|
887
|
+
s.current = _(a), W(e, a);
|
|
890
888
|
}
|
|
891
889
|
})) : (i.current = !1, e), [e, n.nodeRef]);
|
|
892
890
|
return i.current && [
|
|
@@ -900,14 +898,13 @@ function De(n) {
|
|
|
900
898
|
n[a] && (t[a] = (l, ...E) => {
|
|
901
899
|
n[a](s.current, ...E);
|
|
902
900
|
});
|
|
903
|
-
}), /* @__PURE__ */ m(
|
|
901
|
+
}), /* @__PURE__ */ m(L, { ...t, nodeRef: i.current ? s : void 0, children: r });
|
|
904
902
|
}
|
|
905
903
|
export {
|
|
906
|
-
|
|
907
|
-
w as
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
h as u
|
|
904
|
+
L as $,
|
|
905
|
+
w as I,
|
|
906
|
+
se as J,
|
|
907
|
+
Ce as P,
|
|
908
|
+
$ as _,
|
|
909
|
+
u as h
|
|
913
910
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, jsxs as K } from "react/jsx-runtime";
|
|
2
|
-
import { a as j, I as q } from "./
|
|
2
|
+
import { a as j, I as q } from "./DT37l12z.js";
|
|
3
3
|
import X from "lodash/isArray";
|
|
4
4
|
import y from "lodash/isNumber";
|
|
5
5
|
import { createContext as Y, forwardRef as Z, useContext as ee, useState as re, useRef as A, useEffect as F, useMemo as te } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import se from "../hooks/useMergeValue.js";
|
|
6
|
+
import { d as ie } from "./Bdh4XVuf.js";
|
|
7
|
+
import { useMergeValue as se } from "../hooks/useMergeValue.js";
|
|
8
8
|
import oe from "../ResizeBox.js";
|
|
9
|
-
import { y as H } from "./
|
|
9
|
+
import { y as H } from "./BzPkh4Zv.js";
|
|
10
10
|
import L, { responsiveMap as ne } from "../utils/responsiveObserve.js";
|
|
11
11
|
const le = Y({
|
|
12
12
|
siderCollapsed: !1,
|
|
@@ -37,15 +37,15 @@ function ce(i, f) {
|
|
|
37
37
|
} = i, W = ae("pqb-sider-"), { getPrefixCls: P } = ee(ie), s = P("layout-sider"), [e, _] = se(!1, {
|
|
38
38
|
value: "collapsed" in i ? i.collapsed : void 0,
|
|
39
39
|
defaultValue: i.defaultCollapsed
|
|
40
|
-
}),
|
|
41
|
-
e ? Q :
|
|
42
|
-
),
|
|
40
|
+
}), $ = y(m) ? `${m}px` : String(m), Q = y(r) ? `${r}` : String(r), [p, k] = re(
|
|
41
|
+
e ? Q : $
|
|
42
|
+
), b = A(null), M = A(null);
|
|
43
43
|
M.current = {
|
|
44
44
|
breakpoint: R,
|
|
45
45
|
collapsed: e,
|
|
46
46
|
onCollapse: d,
|
|
47
47
|
onBreakpoint: O
|
|
48
|
-
}, F(() => (v == null || v(W), h && R in ne && (
|
|
48
|
+
}, F(() => (v == null || v(W), h && R in ne && (b.current = L.subscribe(
|
|
49
49
|
(o, l) => {
|
|
50
50
|
const { breakpoint: a, collapsed: J, onCollapse: S, onBreakpoint: w } = M.current;
|
|
51
51
|
if (!l || l === a) {
|
|
@@ -54,11 +54,11 @@ function ce(i, f) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
)), () => {
|
|
57
|
-
C == null || C(W),
|
|
57
|
+
C == null || C(W), b.current && L.unsubscribe(b.current);
|
|
58
58
|
}), []), F(() => {
|
|
59
59
|
const o = y(r) ? `${r}px` : String(r);
|
|
60
|
-
k(e ? o :
|
|
61
|
-
}, [e,
|
|
60
|
+
k(e ? o : $);
|
|
61
|
+
}, [e, $, r]);
|
|
62
62
|
const x = c && X(c) || ((T = t.directions) == null ? void 0 : T.length), U = x ? oe : "aside", z = () => {
|
|
63
63
|
const o = g || (e ? I ? /* @__PURE__ */ n(j, {}) : /* @__PURE__ */ n(q, {}) : I ? /* @__PURE__ */ n(q, {}) : /* @__PURE__ */ n(j, {}));
|
|
64
64
|
return h && g !== null ? /* @__PURE__ */ n(
|