@unicom-cloud/ui 0.8.64 → 0.8.66
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 +2 -2
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +37 -31
- package/Breadcrumb.js +3 -3
- package/Button.js +82 -71
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +5 -5
- package/Comment.js +2 -2
- package/ConfigProvider.js +2 -2
- package/Copy.js +3 -3
- package/DatePicker.js +92 -92
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Drawer.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +2 -2
- package/Form.js +4 -4
- package/Grid.js +3 -3
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +3 -3
- package/InputNumber.js +3 -3
- package/InputTag.js +1 -1
- package/Layout.js +3 -3
- package/Link.js +2 -2
- package/List.js +30 -30
- package/Mentions.js +4 -4
- package/Menu.js +2 -2
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +2 -2
- package/Rate.js +2 -2
- package/ResizeBox.js +155 -154
- package/Result.js +2 -2
- package/Select.js +2 -2
- package/SelectView.js +9 -8
- package/Skeleton.js +2 -2
- package/Slider.js +5 -5
- package/Space.js +2 -2
- package/Spin.js +2 -2
- package/Statistic.js +2 -2
- package/Steps.js +2 -2
- package/Switch.js +3 -3
- package/Table.js +771 -768
- package/Tabs.js +4 -4
- package/Tag.js +2 -2
- package/TimePicker.js +4 -4
- package/Timeline.js +2 -2
- package/Tooltip.js +2 -2
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +2 -2
- package/Trigger.js +43 -42
- package/Typography.js +1 -1
- package/Upload.js +4 -5
- package/VerificationCode.js +1 -1
- package/Version.js +5 -3
- package/Watermark.js +1 -1
- package/chunk/{B5GDq8NJ.js → -zpSUpGE.js} +100 -97
- package/chunk/BAWsPQBM.js +11 -0
- package/chunk/{oR9TkA35.js → BFipyA67.js} +2 -2
- package/chunk/{CxpFYX4B.js → BHgJ5Y3T.js} +3 -3
- package/chunk/{BwSpYGK-.js → BIT0j3HT.js} +3 -3
- package/chunk/{pq-36BDW.js → BbLKnaNO.js} +3 -3
- package/chunk/{tW_FgNSv.js → Bc7t9jkb.js} +2 -2
- package/chunk/{BJSjbYSN.js → Bfhv56O2.js} +2 -2
- package/chunk/{CAhODOfT.js → Bh23P4l7.js} +2 -2
- package/chunk/{CTF5o0OX.js → BnSVm1YC.js} +1 -1
- package/chunk/{DPJEIBKZ.js → C6QWSzsM.js} +4 -4
- package/chunk/{BHnRi7Xh.js → CHnFKgbk.js} +4 -4
- package/chunk/{CYQ1EE4h.js → CPvvjMwZ.js} +2 -2
- package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
- package/chunk/{BSBJlVZH.js → CVkHTbic.js} +4 -4
- package/chunk/{BCxoi4Kf.js → CZOP_ZHJ.js} +2 -2
- package/chunk/{D01b7bWX.js → CcV4wQB1.js} +176 -175
- package/chunk/{CA69nxbj.js → CeGEvXby.js} +2 -2
- package/chunk/{CAiaqaWc.js → CssIjN1g.js} +2 -2
- package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
- package/chunk/{CtUTlwlQ.js → DNAigumg.js} +2 -2
- package/chunk/{BtIG250j.js → DPByB1ab.js} +40 -40
- package/chunk/{B68hRpYG.js → DQAot004.js} +3 -3
- package/chunk/{CZfGDXaB.js → DTBtQQ2H.js} +2 -2
- package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
- package/chunk/{-IELMT_x.js → DV1Ab_cG.js} +2 -2
- package/chunk/{CBgwLBAC.js → DnvO8A0Z.js} +104 -103
- package/chunk/{Yvz-hPQB.js → Du-bw6qA.js} +3 -3
- package/chunk/dBnNCOIU.js +778 -0
- package/chunk/{DQ561AmR.js → it8qlDZ3.js} +222 -221
- package/chunk/{BfHNSLva.js → jhQQCFMn.js} +135 -134
- package/chunk/{D-oHJail.js → te_43YrB.js} +178 -175
- package/chunk/{QlYCEvCX.js → znkyQ-HR.js} +2 -2
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +2 -2
- package/index.js +378 -374
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style/variables.less +820 -0
- package/style.css +1 -1
- package/types/badge/index.d.ts +2 -2
- package/types/button/index.d.ts +3 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/index.d.ts +5 -5
- package/types/select/interface.d.ts +1 -1
- package/types/tabs/Tab.d.ts +1 -1
- package/types/upload/Upload.d.ts +1 -1
- package/types/version/index.d.ts +2 -0
- package/utils/className.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/index.js +41 -41
- package/utils/is.js +37 -37
- package/utils/reactDOM.js +3 -3
- package/utils/scrollIntoView.js +1 -1
- package/chunk/BzPkh4Zv.js +0 -11
- package/chunk/_m8hLSsx.js +0 -776
package/Tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { a as t, b
|
|
1
|
+
import { T as o } from "./chunk/BbLKnaNO.js";
|
|
2
|
+
import { b as e, a as t, b as T } from "./chunk/BbLKnaNO.js";
|
|
3
3
|
export {
|
|
4
|
+
e as TabPane,
|
|
4
5
|
t as TabsContext,
|
|
5
|
-
b as TabsItemPane,
|
|
6
6
|
T as TabsTabPane,
|
|
7
|
-
|
|
7
|
+
o as default
|
|
8
8
|
};
|
package/Tag.js
CHANGED
|
@@ -3,11 +3,11 @@ import Q from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import b from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as X, useContext as Y, useState as v } from "react";
|
|
6
|
-
import { d as Z, I as S } from "./chunk
|
|
6
|
+
import { d as Z, I as S } from "./chunk/-zpSUpGE.js";
|
|
7
7
|
import { useKeyboardEvent as ee } from "./hooks/useKeyboardEvent.js";
|
|
8
8
|
import { useMergeProps as oe } from "./hooks/useMergeProps.js";
|
|
9
9
|
import ne from "./Popconfirm.js";
|
|
10
|
-
import { y as ie } from "./chunk/
|
|
10
|
+
import { y as ie } from "./chunk/BAWsPQBM.js";
|
|
11
11
|
import re from "./utils/omit.js";
|
|
12
12
|
const te = [
|
|
13
13
|
"red",
|
package/TimePicker.js
CHANGED
|
@@ -3,16 +3,16 @@ import Re from "@unicom-cloud/icons/IconUiClockCircle";
|
|
|
3
3
|
import { isDayjs as L } from "dayjs";
|
|
4
4
|
import p from "lodash/isArray";
|
|
5
5
|
import He, { useContext as pe, useState as z, useRef as ze } from "react";
|
|
6
|
-
import { d as Ae } from "./chunk
|
|
6
|
+
import { d as Ae } from "./chunk/-zpSUpGE.js";
|
|
7
7
|
import { useMergeProps as Oe } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { usePrevious as ce } from "./hooks/usePrevious.js";
|
|
9
9
|
import { useUpdateEffect as Ee } from "./hooks/useUpdateEffect.js";
|
|
10
|
-
import { a as Fe, I as Ne } from "./chunk/
|
|
10
|
+
import { a as Fe, I as Ne } from "./chunk/CeGEvXby.js";
|
|
11
11
|
import Ue from "./Trigger.js";
|
|
12
|
-
import { y as $e } from "./chunk/
|
|
12
|
+
import { y as $e } from "./chunk/BAWsPQBM.js";
|
|
13
13
|
import { getDayjsValue as B, toLocal as d, toTimezone as X, isValidTimeString as Q, getSortedDayjsArray as Be, isDayjsArrayChange as Le, isDayjsChange as Me } from "./utils/dayjs.js";
|
|
14
14
|
import { pickDataAttributes as We } from "./utils/pick.js";
|
|
15
|
-
import { P as me, g as _e, T as de } from "./chunk/
|
|
15
|
+
import { P as me, g as _e, T as de } from "./chunk/DTBtQQ2H.js";
|
|
16
16
|
import qe from "./utils/omit.js";
|
|
17
17
|
function Ge(h) {
|
|
18
18
|
return h.format || "HH:mm:ss";
|
package/Timeline.js
CHANGED
package/Tooltip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { d as F, f as I } from "./chunk
|
|
2
|
+
import { d as F, f as I } from "./chunk/-zpSUpGE.js";
|
|
3
3
|
import S from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
|
|
5
5
|
import { useMergeProps as G } from "./hooks/useMergeProps.js";
|
|
6
6
|
import J, { EventsByTriggerNeed as K } from "./Trigger.js";
|
|
7
|
-
import { y as P } from "./chunk/
|
|
7
|
+
import { y as P } from "./chunk/BAWsPQBM.js";
|
|
8
8
|
import { isEmptyReactNode as Q } from "./utils/is.js";
|
|
9
9
|
import U, { pickDataAttributes as X } from "./utils/pick.js";
|
|
10
10
|
const Y = {
|
package/Transfer.js
CHANGED
|
@@ -4,16 +4,16 @@ import Ie from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import ne from "lodash/isPlainObject";
|
|
5
5
|
import de, { useRef as le, useState as G, useEffect as oe, useContext as fe, useMemo as ce } from "react";
|
|
6
6
|
import ue from "./Button.js";
|
|
7
|
-
import { I as pe, d as me } from "./chunk
|
|
7
|
+
import { I as pe, d as me } from "./chunk/-zpSUpGE.js";
|
|
8
8
|
import { useMergeProps as Ke } from "./hooks/useMergeProps.js";
|
|
9
9
|
import { useMergeValue as ie } from "./hooks/useMergeValue.js";
|
|
10
|
-
import { y as se } from "./chunk/
|
|
10
|
+
import { y as se } from "./chunk/BAWsPQBM.js";
|
|
11
11
|
import { pickDataAttributes as xe } from "./utils/pick.js";
|
|
12
12
|
import Ce from "@unicom-cloud/icons/IconUiDelete";
|
|
13
13
|
import $e from "@unicom-cloud/icons/IconUiSearch";
|
|
14
|
-
import { C as ae } from "./chunk/
|
|
14
|
+
import { C as ae } from "./chunk/znkyQ-HR.js";
|
|
15
15
|
import { useKeyboardEvent as ge } from "./hooks/useKeyboardEvent.js";
|
|
16
|
-
import { I as ve } from "./chunk/
|
|
16
|
+
import { I as ve } from "./chunk/CcV4wQB1.js";
|
|
17
17
|
import Se from "./List.js";
|
|
18
18
|
import Te from "@unicom-cloud/icons/IconUiClose";
|
|
19
19
|
import Ne from "@unicom-cloud/icons/IconUiDragDotVertical";
|
package/Tree.js
CHANGED
package/TreeSelect.js
CHANGED
package/Trigger.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (h, l, t) =>
|
|
1
|
+
var ot = Object.defineProperty;
|
|
2
|
+
var st = (h, l, t) => l in h ? ot(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t;
|
|
3
|
+
var s = (h, l, t) => st(h, typeof l != "symbol" ? l + "" : l, t);
|
|
4
4
|
import { jsx as N, jsxs as X } from "react/jsx-runtime";
|
|
5
|
-
import { $ as
|
|
6
|
-
import
|
|
5
|
+
import { $ as nt } from "./chunk/CLBavO5c.js";
|
|
6
|
+
import rt from "lodash/isArray";
|
|
7
7
|
import lt from "lodash/isEqual";
|
|
8
8
|
import W from "lodash/isFunction";
|
|
9
|
-
import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as
|
|
10
|
-
import { d as at } from "./chunk
|
|
11
|
-
import { y as _ } from "./chunk/
|
|
12
|
-
import { isServerRendering as
|
|
9
|
+
import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as q } from "react";
|
|
10
|
+
import { d as at } from "./chunk/-zpSUpGE.js";
|
|
11
|
+
import { y as _ } from "./chunk/BAWsPQBM.js";
|
|
12
|
+
import { isServerRendering as et, on as U, off as Y, getScrollElements as ct, isScrollElement as ft, contains as Q } from "./utils/dom.js";
|
|
13
13
|
import { supportRef as dt } from "./utils/is.js";
|
|
14
14
|
import { d as K } from "./chunk/C2lIz2F9.js";
|
|
15
15
|
import gt from "./utils/mergeProps.js";
|
|
@@ -19,11 +19,12 @@ import { findDOMNode as bt, callbackOriginRef as yt } from "./utils/reactDOM.js"
|
|
|
19
19
|
import j from "./utils/throttleByRaf.js";
|
|
20
20
|
import wt from "react-dom";
|
|
21
21
|
import { useIsFirstRender as Tt } from "./hooks/useIsFirstRender.js";
|
|
22
|
-
import "./chunk/
|
|
23
|
-
import
|
|
24
|
-
|
|
22
|
+
import "./chunk/CSC_V_25.js";
|
|
23
|
+
import Ct from "lodash/isArray.js";
|
|
24
|
+
import J from "lodash/isPlainObject.js";
|
|
25
|
+
const Mt = (h) => {
|
|
25
26
|
const { getContainer: l, children: t } = h, e = pt();
|
|
26
|
-
return (Tt() || e.current === null) && !
|
|
27
|
+
return (Tt() || e.current === null) && !et && (e.current = l()), ht(() => () => {
|
|
27
28
|
const n = e.current;
|
|
28
29
|
n && n.parentNode && (n.parentNode.removeChild(n), e.current = null);
|
|
29
30
|
}, []), e.current ? wt.createPortal(t, e.current) : null;
|
|
@@ -39,8 +40,8 @@ const Ct = (h) => {
|
|
|
39
40
|
bottom: m
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
|
-
function
|
|
43
|
-
if (!t || !h ||
|
|
43
|
+
function vt(h, l, t, e) {
|
|
44
|
+
if (!t || !h || et)
|
|
44
45
|
return { left: 0, width: 0, height: 0, top: 0 };
|
|
45
46
|
const i = (m) => document.documentElement[m] || document.body[m], n = t === document.body ? i("scrollTop") : t.scrollTop, r = t === document.body ? i("scrollLeft") : t.scrollLeft, { left: u, top: y, width: o, height: v } = l, g = t === document.body ? 0 : I(t, e).left, a = t === document.body ? 0 : I(t, e).top, c = y + n - a;
|
|
46
47
|
return {
|
|
@@ -52,7 +53,7 @@ function Mt(h, l, t, e) {
|
|
|
52
53
|
}
|
|
53
54
|
const O = function(h, l, t) {
|
|
54
55
|
return t < h ? h : t > l ? l : t;
|
|
55
|
-
},
|
|
56
|
+
}, Et = (h, l) => {
|
|
56
57
|
let t = 0, e = 0, i = {};
|
|
57
58
|
l ? i = {
|
|
58
59
|
left: 12,
|
|
@@ -62,7 +63,7 @@ const O = function(h, l, t) {
|
|
|
62
63
|
...h
|
|
63
64
|
} : i = { ...h };
|
|
64
65
|
for (const n in i)
|
|
65
|
-
if (
|
|
66
|
+
if (Ct(i[n])) {
|
|
66
67
|
let r = 0;
|
|
67
68
|
["top", "bottom"].indexOf(n) > -1 ? (r = 1, t = i[n][0]) : e = i[n][1], i[n] = i[n][r];
|
|
68
69
|
}
|
|
@@ -71,27 +72,27 @@ const O = function(h, l, t) {
|
|
|
71
72
|
horizontalOffset: t,
|
|
72
73
|
verticalOffset: e
|
|
73
74
|
};
|
|
74
|
-
},
|
|
75
|
+
}, Dt = (h, l, { boundaryDistance: t, position: e }) => l ? {
|
|
75
76
|
left: l.clientX,
|
|
76
77
|
top: l.clientY,
|
|
77
78
|
width: 0,
|
|
78
79
|
height: 0,
|
|
79
80
|
right: l.clientX,
|
|
80
81
|
bottom: l.clientY
|
|
81
|
-
} : I(h, { boundaryDistance: t, position: e }),
|
|
82
|
+
} : I(h, { boundaryDistance: t, position: e }), Ot = (h) => {
|
|
82
83
|
const l = h.offsetWidth, t = h.offsetHeight;
|
|
83
84
|
return {
|
|
84
85
|
width: l,
|
|
85
86
|
height: t
|
|
86
87
|
};
|
|
87
|
-
},
|
|
88
|
+
}, xt = (h) => {
|
|
88
89
|
var r, u;
|
|
89
|
-
const l = h
|
|
90
|
+
const l = h, t = "left" in l ? l.left : "right" in l ? l.right : B, e = "top" in l ? l.top : "bottom" in l ? l.bottom : B, i = (((r = document.documentElement) == null ? void 0 : r.clientHeight) || window.innerHeight) - (e || B), n = (((u = document.documentElement) == null ? void 0 : u.clientWidth) || window.innerWidth) - (t || B);
|
|
90
91
|
return {
|
|
91
92
|
windowHeight: i,
|
|
92
93
|
windowWidth: n
|
|
93
94
|
};
|
|
94
|
-
},
|
|
95
|
+
}, Rt = (h, l, t, e, i) => {
|
|
95
96
|
const {
|
|
96
97
|
autoAlignPopupWidth: n,
|
|
97
98
|
autoAlignPopupMinWidth: r,
|
|
@@ -100,10 +101,10 @@ const O = function(h, l, t) {
|
|
|
100
101
|
} = h;
|
|
101
102
|
if (!t || !l || !e)
|
|
102
103
|
return {};
|
|
103
|
-
const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g =
|
|
104
|
+
const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g = Dt(t, u && i, {
|
|
104
105
|
boundaryDistance: v,
|
|
105
106
|
position: h.position
|
|
106
|
-
}), { left: a, top: c, width: f, height: m } =
|
|
107
|
+
}), { left: a, top: c, width: f, height: m } = vt(
|
|
107
108
|
t,
|
|
108
109
|
g,
|
|
109
110
|
e,
|
|
@@ -111,14 +112,14 @@ const O = function(h, l, t) {
|
|
|
111
112
|
boundaryDistance: v,
|
|
112
113
|
position: h.position
|
|
113
114
|
}
|
|
114
|
-
), z =
|
|
115
|
+
), z = Et(h.popupAlign, h.showArrow), V = z.left || 0, H = z.right || 0, k = z.top || 0, F = z.bottom || 0;
|
|
115
116
|
n && (y == null ? void 0 : y.width) === void 0 && (l.style.width = `${t.offsetWidth}px`), r && (l.style.minWidth = `${t.offsetWidth}px`);
|
|
116
|
-
const p =
|
|
117
|
+
const p = Ot(l);
|
|
117
118
|
let M = h.position;
|
|
118
119
|
const T = {}, E = (D) => {
|
|
119
120
|
if (!h.autoFitPosition)
|
|
120
121
|
return;
|
|
121
|
-
const { windowHeight: R, windowWidth: S } =
|
|
122
|
+
const { windowHeight: R, windowWidth: S } = xt(v);
|
|
122
123
|
let L = !1;
|
|
123
124
|
const b = {
|
|
124
125
|
left: a - g.left,
|
|
@@ -157,8 +158,8 @@ const O = function(h, l, t) {
|
|
|
157
158
|
), L = !0) : o.left = b.left + S - p.width), o.left < 0)
|
|
158
159
|
o.left = 0;
|
|
159
160
|
else {
|
|
160
|
-
const
|
|
161
|
-
o.left = Math.min(
|
|
161
|
+
const it = e.scrollWidth - p.width;
|
|
162
|
+
o.left = Math.min(it, o.left);
|
|
162
163
|
}
|
|
163
164
|
return L;
|
|
164
165
|
}, d = z.horizontalOffset || 0, x = z.verticalOffset || 0;
|
|
@@ -222,7 +223,7 @@ function Z(h, l) {
|
|
|
222
223
|
right: n
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
|
-
const
|
|
226
|
+
const te = [
|
|
226
227
|
"onClick",
|
|
227
228
|
"onMouseEnter",
|
|
228
229
|
"onMouseLeave",
|
|
@@ -232,13 +233,13 @@ const Jt = [
|
|
|
232
233
|
"onContextMenu",
|
|
233
234
|
"onKeyDown"
|
|
234
235
|
];
|
|
235
|
-
function
|
|
236
|
+
function St(h, l) {
|
|
236
237
|
const t = {}, e = { ...h };
|
|
237
238
|
return l.forEach((i) => {
|
|
238
239
|
h && i in h && (t[i] = h[i], delete e[i]);
|
|
239
240
|
}), { picked: t, omitted: e };
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
+
const zt = {
|
|
242
243
|
blurToHide: !0,
|
|
243
244
|
// clickToClose: true,
|
|
244
245
|
classNames: "fadeIn",
|
|
@@ -264,7 +265,7 @@ class tt extends ut {
|
|
|
264
265
|
s(this, "context");
|
|
265
266
|
s(this, "popupContainer");
|
|
266
267
|
s(this, "rootElementRef");
|
|
267
|
-
s(this, "triggerRef",
|
|
268
|
+
s(this, "triggerRef", q());
|
|
268
269
|
// 标志 popup 是否被销毁
|
|
269
270
|
s(this, "triggerRefDestoried");
|
|
270
271
|
s(this, "delayTimer", null);
|
|
@@ -340,9 +341,9 @@ class tt extends ut {
|
|
|
340
341
|
const { componentConfig: e } = this.context ?? {};
|
|
341
342
|
return gt(
|
|
342
343
|
t && J(t) ? t : this.props,
|
|
343
|
-
|
|
344
|
+
zt,
|
|
344
345
|
e == null ? void 0 : e.Trigger,
|
|
345
|
-
t &&
|
|
346
|
+
t && rt(t) ? t : void 0
|
|
346
347
|
);
|
|
347
348
|
});
|
|
348
349
|
s(this, "getRootElement", () => {
|
|
@@ -485,7 +486,7 @@ class tt extends ut {
|
|
|
485
486
|
const t = this.popupContainer, e = this.triggerRef.current, i = this.getRootElement();
|
|
486
487
|
if (!i.offsetParent && !i.getClientRects().length)
|
|
487
488
|
return this.state.popupStyle;
|
|
488
|
-
const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } =
|
|
489
|
+
const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } = Rt(
|
|
489
490
|
n,
|
|
490
491
|
e,
|
|
491
492
|
i,
|
|
@@ -574,7 +575,7 @@ class tt extends ut {
|
|
|
574
575
|
"onClickOutside",
|
|
575
576
|
"clickOutsideToClose"
|
|
576
577
|
]), n = this.getPopupElement(), r = this.getRootElement();
|
|
577
|
-
!
|
|
578
|
+
!Q(n, t.target) && !Q(r, t.target) && !this.hasPopupMouseDown && (e == null || e(), i && !this.isBlurToHide() && !this.isHoverTrigger() && this.setPopupVisible(!1));
|
|
578
579
|
});
|
|
579
580
|
s(this, "onKeyDown", (t) => {
|
|
580
581
|
const e = t.key;
|
|
@@ -644,7 +645,7 @@ class tt extends ut {
|
|
|
644
645
|
if (["string", "number"].indexOf(typeof t) > -1 || A.Children.count(t) > 1)
|
|
645
646
|
n = /* @__PURE__ */ N("span", { children: t });
|
|
646
647
|
else if (e && i && (i.__PQB_BUTTON === !0 || i.__PQB_CHECKBOX === !0 || i.__PQB_SWITCH === !0 || i.__PQB_RADIO === !0 || i === "button") && e.props.disabled) {
|
|
647
|
-
const { picked: u, omitted: y } =
|
|
648
|
+
const { picked: u, omitted: y } = St(e.props.style, [
|
|
648
649
|
"position",
|
|
649
650
|
"left",
|
|
650
651
|
"right",
|
|
@@ -703,7 +704,7 @@ class tt extends ut {
|
|
|
703
704
|
} : i || n;
|
|
704
705
|
});
|
|
705
706
|
const i = this.getMergedProps(t), n = "popupVisible" in i ? i.popupVisible : i.defaultPopupVisible;
|
|
706
|
-
this.popupOpen = !!n, this.triggerRef =
|
|
707
|
+
this.popupOpen = !!n, this.triggerRef = q(), this.state = {
|
|
707
708
|
popupVisible: !!n,
|
|
708
709
|
popupStyle: {}
|
|
709
710
|
};
|
|
@@ -788,7 +789,7 @@ class tt extends ut {
|
|
|
788
789
|
this.rootElementRef = P, yt(w, P);
|
|
789
790
|
} : void 0
|
|
790
791
|
}), L = /* @__PURE__ */ N(
|
|
791
|
-
|
|
792
|
+
nt,
|
|
792
793
|
{
|
|
793
794
|
in: !!T,
|
|
794
795
|
timeout: o,
|
|
@@ -869,7 +870,7 @@ class tt extends ut {
|
|
|
869
870
|
}
|
|
870
871
|
)
|
|
871
872
|
}
|
|
872
|
-
), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(
|
|
873
|
+
), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(Mt, { getContainer: this.getContainer, children: L }) : null;
|
|
873
874
|
return k ? /* @__PURE__ */ X(A.Fragment, { children: [
|
|
874
875
|
S,
|
|
875
876
|
b
|
|
@@ -878,6 +879,6 @@ class tt extends ut {
|
|
|
878
879
|
}
|
|
879
880
|
s(tt, "displayName", "Trigger"), s(tt, "contextType", at);
|
|
880
881
|
export {
|
|
881
|
-
|
|
882
|
+
te as EventsByTriggerNeed,
|
|
882
883
|
tt as default
|
|
883
884
|
};
|
package/Typography.js
CHANGED
package/Upload.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chunk/
|
|
2
|
-
import { S
|
|
1
|
+
import { U as o } from "./chunk/it8qlDZ3.js";
|
|
2
|
+
import { S as s, F as t } from "./chunk/it8qlDZ3.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r as UploadSTATUS,
|
|
4
|
+
s as UPLOAD_STATUS,
|
|
5
|
+
t as UploadList,
|
|
7
6
|
o as default
|
|
8
7
|
};
|
package/VerificationCode.js
CHANGED
package/Version.js
CHANGED
package/Watermark.js
CHANGED