@unicom-cloud/ui 0.8.81 → 0.8.82
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 +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +2 -2
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +5 -4
- package/Copy.js +1 -1
- package/DatePicker.js +7 -7
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +5 -5
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +60 -57
- package/alert/index.js +53 -53
- package/anchor/Anchor.js +72 -72
- package/anchor/Link.js +27 -27
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +31 -31
- package/avatar/Group.js +25 -25
- package/back-top/index.js +30 -30
- package/badge/index.js +37 -37
- package/breadcrumb/index.js +26 -26
- package/button/Group.js +7 -7
- package/button/index.js +29 -29
- package/calendar/index.js +2 -2
- package/card/Grid.js +12 -12
- package/card/Meta.js +17 -17
- package/card/index.js +44 -44
- package/carousel/Arrow.js +19 -19
- package/carousel/Indicator.js +25 -25
- package/carousel/index.js +77 -77
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
- package/chunk/CmMehQON.js +1464 -0
- package/chunk/Cplu5dtQ.js +730 -0
- package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
- package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
- package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
- package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
- package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
- package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +36 -36
- package/color-picker/InputAlpha.js +11 -11
- package/color-picker/InputHex.js +24 -24
- package/color-picker/InputRgb.js +23 -23
- package/color-picker/Palette.js +18 -18
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +31 -31
- package/config-provider/ConfigProvider.js +5 -4
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +4 -3
- package/copy/index.js +28 -28
- package/date-picker/Picker.js +276 -276
- package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
- package/date-picker/index.js +26 -27
- package/descriptions/index.js +33 -33
- package/divider/index.js +12 -12
- package/draggable/index.js +23 -23
- package/drawer/Drawer.js +81 -81
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +56 -56
- package/empty/index.js +1 -1
- package/form/Form.js +76 -76
- package/form/FormItem.js +64 -64
- package/grid/Col.js +53 -53
- package/grid/Row.js +34 -34
- package/grid/grid-item.js +29 -29
- package/grid/grid.js +50 -50
- package/icon/index.js +20 -19
- package/icon-hover/index.js +1 -1
- package/image/Image.js +86 -86
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +22 -22
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +410 -408
- package/input/Group.js +8 -8
- package/input/Input.js +322 -322
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +40 -40
- package/layout/Content.js +7 -7
- package/layout/Footer.js +9 -9
- package/layout/Header.js +7 -7
- package/layout/Sider.js +55 -55
- package/layout/index.js +32 -32
- package/link/index.js +35 -35
- package/list/Item.js +29 -29
- package/list/Meta.js +12 -12
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +5 -5
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +12 -12
- package/overflow-ellipsis/index.js +24 -24
- package/package.json +1 -1
- package/page-header/index.js +38 -38
- package/pagination/PageItem.js +16 -16
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +69 -69
- package/picker/InputRange.js +111 -111
- package/popconfirm/index.js +61 -61
- package/popover/index.js +35 -35
- package/progress/index.js +22 -22
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +49 -49
- package/resize-box/ResizeTrigger.js +34 -34
- package/resize-box/Split.js +56 -56
- package/resize-box/SplitGroup.js +55 -55
- package/resize-box/index.js +51 -51
- package/result/index.js +41 -41
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +125 -125
- package/skeleton/index.js +20 -20
- package/slider/Button.js +57 -57
- package/slider/index.js +116 -116
- package/space/index.js +46 -44
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +10 -10
- package/spin/index.js +44 -44
- package/statistic/Countdown.js +34 -34
- package/statistic/index.js +67 -67
- package/steps/index.js +55 -55
- package/style.css +1 -1
- package/switch/index.js +54 -54
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +12 -12
- package/tabs/index.js +2 -2
- package/tag/index.js +45 -45
- package/time-picker/Picker.js +76 -76
- package/time-picker/TimePicker.js +136 -136
- package/time-picker/index.js +8 -8
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +47 -47
- package/timeline/Timeline.js +41 -41
- package/tooltip/index.js +29 -29
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +60 -60
- package/types/config-provider/ConfigProvider.d.ts +2 -2
- package/types/config-provider/context.d.ts +1 -1
- package/types/date-picker/index.d.ts +8 -9
- package/types/date-picker/interface.d.ts +9 -9
- package/types/index.d.ts +1 -1
- package/types/picker/Input.d.ts +2 -2
- package/types/space/index.d.ts +2 -1
- package/types/utils/names.d.ts +1 -1
- package/typography/Base.js +53 -53
- package/typography/Ellipsis.js +9 -8
- package/typography/Operations.js +28 -28
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +47 -47
- package/upload/Upload.js +184 -184
- package/utils/contextHolder.js +3 -3
- package/utils/index.js +13 -13
- package/utils/names.js +1 -1
- package/utils/setPrimaryColor.js +18 -13
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +49 -49
- package/version/index.js +1 -1
- package/watermark/Watermark.js +24 -24
- package/chunk/CQvM33Vg.js +0 -724
- package/chunk/yhU2zeeu.js +0 -1461
- /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/trigger/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as w, jsxs as $e } from "react/jsx-runtime";
|
|
2
2
|
import { c as ut } from "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import ct from "lodash/isArray";
|
|
4
|
-
import
|
|
4
|
+
import S from "lodash/isFunction";
|
|
5
5
|
import { forwardRef as lt, useContext as pt, useRef as R, useState as at, Children as He, useCallback as be, cloneElement as Ie, useImperativeHandle as ft, useLayoutEffect as dt, useEffect as g, Fragment as mt } from "react";
|
|
6
6
|
import { createPortal as gt } from "react-dom";
|
|
7
|
-
import { a as yt } from "../chunk/
|
|
7
|
+
import { a as yt } from "../chunk/Cplu5dtQ.js";
|
|
8
8
|
import te from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { on as oe, off as ne, getScrollElements as Tt, isScrollElement as Ct, contains as Le } from "../utils/dom.js";
|
|
10
10
|
import { s as ht } from "../chunk/ClM74To2.js";
|
|
@@ -19,11 +19,11 @@ import { isPlainObject as ie } from "@unicom-cloud/utils/is";
|
|
|
19
19
|
function St(d, I) {
|
|
20
20
|
if (!d)
|
|
21
21
|
return {};
|
|
22
|
-
const { width: y, height:
|
|
22
|
+
const { width: y, height: T, left: C, right: Y } = Mt(d, I);
|
|
23
23
|
return {
|
|
24
24
|
width: y,
|
|
25
|
-
height:
|
|
26
|
-
left:
|
|
25
|
+
height: T,
|
|
26
|
+
left: C,
|
|
27
27
|
right: Y
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -38,10 +38,10 @@ const jt = [
|
|
|
38
38
|
"onKeyDown"
|
|
39
39
|
];
|
|
40
40
|
function Ot(d, I) {
|
|
41
|
-
const y = {},
|
|
42
|
-
return I.forEach((
|
|
43
|
-
d &&
|
|
44
|
-
}), { picked: y, omitted:
|
|
41
|
+
const y = {}, T = { ...d };
|
|
42
|
+
return I.forEach((C) => {
|
|
43
|
+
d && C in d && (y[C] = d[C], delete T[C]);
|
|
44
|
+
}), { picked: y, omitted: T };
|
|
45
45
|
}
|
|
46
46
|
const vt = {
|
|
47
47
|
blurToHide: !0,
|
|
@@ -66,11 +66,11 @@ const vt = {
|
|
|
66
66
|
};
|
|
67
67
|
function Nt(d, I) {
|
|
68
68
|
var Se, Oe;
|
|
69
|
-
const y = pt(yt), { getPrefixCls:
|
|
69
|
+
const y = pt(yt), { getPrefixCls: T, zIndex: C, rtl: Y } = y, i = l(d), {
|
|
70
70
|
children: se,
|
|
71
71
|
style: A,
|
|
72
72
|
className: ke,
|
|
73
|
-
arrowProps:
|
|
73
|
+
arrowProps: h,
|
|
74
74
|
disabled: O,
|
|
75
75
|
popup: ue,
|
|
76
76
|
classNames: K,
|
|
@@ -79,7 +79,7 @@ function Nt(d, I) {
|
|
|
79
79
|
alignPoint: Ae,
|
|
80
80
|
autoAlignPopupWidth: Fe,
|
|
81
81
|
position: ze,
|
|
82
|
-
childrenPrefix:
|
|
82
|
+
childrenPrefix: E,
|
|
83
83
|
showArrow: _e,
|
|
84
84
|
popupStyle: le,
|
|
85
85
|
__onExit: Q,
|
|
@@ -115,12 +115,12 @@ function Nt(d, I) {
|
|
|
115
115
|
}, 0);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
V() && !O ? (c.onMouseEnter = qe, c.onMouseLeave = Ee, J() && (c.onClick = De), Ae && (c.onMouseMove = Ge), We() || (j.onMouseEnter = Je, j.onMouseLeave = Ze)) : (c.onMouseEnter =
|
|
118
|
+
V() && !O ? (c.onMouseEnter = qe, c.onMouseLeave = Ee, J() && (c.onClick = De), Ae && (c.onMouseMove = Ge), We() || (j.onMouseEnter = Je, j.onMouseLeave = Ze)) : (c.onMouseEnter = x("onMouseEnter"), c.onMouseLeave = x("onMouseLeave")), me() && !O ? (c.onContextMenu = et, c.onClick = De) : c.onContextMenu = x("onContextMenu"), de() && !O ? c.onClick = tt : c.onClick = c.onClick || x("onClick"), G() && !O ? (c.onFocus = ot, ge() && (c.onBlur = nt)) : (c.onFocus = x("onFocus"), c.onBlur = x("onBlur")), O ? c.onKeyDown = x("onKeyDown") : c.onKeyDown = Ue;
|
|
119
119
|
const L = z(), B = He.only(ue());
|
|
120
|
-
L.props.className && (c.className = L.props.className),
|
|
121
|
-
const $ =
|
|
120
|
+
L.props.className && (c.className = L.props.className), E && u && (c.className = c.className ? `${c.className} ${E}-open` : `${E}-open`), G() && (c.tabIndex = O ? -1 : 0);
|
|
121
|
+
const $ = T == null ? void 0 : T("trigger"), Ke = te(
|
|
122
122
|
$,
|
|
123
|
-
|
|
123
|
+
E,
|
|
124
124
|
`${$}-position-${ze}`,
|
|
125
125
|
{ [`${$}-rtl`]: Y },
|
|
126
126
|
ke
|
|
@@ -180,7 +180,7 @@ function Nt(d, I) {
|
|
|
180
180
|
return G() && l(["blurToHide"]).blurToHide;
|
|
181
181
|
}
|
|
182
182
|
function Xe() {
|
|
183
|
-
n.current.updatePositionTimeoutID && (n.current.updatePositionTimeoutID.cancel ? n.current.updatePositionTimeoutID.cancel() : (clearTimeout(n.current.updatePositionTimeoutID), n.current.updatePositionTimeoutID = null)),
|
|
183
|
+
n.current.updatePositionTimeoutID && (n.current.updatePositionTimeoutID.cancel ? n.current.updatePositionTimeoutID.cancel() : (clearTimeout(n.current.updatePositionTimeoutID), n.current.updatePositionTimeoutID = null)), P();
|
|
184
184
|
}
|
|
185
185
|
function ye(e) {
|
|
186
186
|
var k, ve;
|
|
@@ -193,7 +193,7 @@ function Nt(d, I) {
|
|
|
193
193
|
]);
|
|
194
194
|
let s = o && ((k = n.current.arrowStyle) == null ? void 0 : k.top) || 0, p = o && ((ve = n.current.arrowStyle) == null ? void 0 : ve.left) || 0;
|
|
195
195
|
s = s ? `${s}px` : "", p = p ? `${p}px` : "";
|
|
196
|
-
const
|
|
196
|
+
const M = {
|
|
197
197
|
top: `${p || "50%"} 100% 0`,
|
|
198
198
|
tl: `${p || "15px"} 100% 0`,
|
|
199
199
|
tr: `${p || `${t.clientWidth - 15}px`} 100% 0`,
|
|
@@ -209,7 +209,7 @@ function Nt(d, I) {
|
|
|
209
209
|
};
|
|
210
210
|
if (r && r.indexOf("zoom") > -1)
|
|
211
211
|
return {
|
|
212
|
-
transformOrigin:
|
|
212
|
+
transformOrigin: M[e]
|
|
213
213
|
};
|
|
214
214
|
if (r === "slideDynamicOrigin") {
|
|
215
215
|
let Ne = "0% 0%";
|
|
@@ -256,16 +256,16 @@ function Nt(d, I) {
|
|
|
256
256
|
...ye(p)
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function D(e) {
|
|
260
260
|
const t = Z();
|
|
261
261
|
N((o) => {
|
|
262
262
|
const r = { ...o };
|
|
263
263
|
return r.popupStyle = t, r;
|
|
264
|
-
}),
|
|
264
|
+
}), S(e) && setTimeout(() => {
|
|
265
265
|
e();
|
|
266
266
|
}, 0);
|
|
267
267
|
}
|
|
268
|
-
const F = be(Ve(
|
|
268
|
+
const F = be(Ve(D), [
|
|
269
269
|
u
|
|
270
270
|
]);
|
|
271
271
|
function b(e = 0, t) {
|
|
@@ -279,7 +279,7 @@ function Nt(d, I) {
|
|
|
279
279
|
N((r) => {
|
|
280
280
|
const s = { ...r };
|
|
281
281
|
return s.popupStyle = o, s;
|
|
282
|
-
}),
|
|
282
|
+
}), S(t) && setTimeout(() => {
|
|
283
283
|
t();
|
|
284
284
|
}, 0);
|
|
285
285
|
}, e);
|
|
@@ -290,21 +290,21 @@ function Nt(d, I) {
|
|
|
290
290
|
e !== u ? Ce(t, () => {
|
|
291
291
|
var s;
|
|
292
292
|
(s = r.onVisibleChange) == null || s.call(r, e), "popupVisible" in r ? o == null || o() : (N((p) => {
|
|
293
|
-
const
|
|
294
|
-
return
|
|
293
|
+
const M = { ...p };
|
|
294
|
+
return M.popupVisible = !!e, M;
|
|
295
295
|
}), setTimeout(e ? () => {
|
|
296
|
-
|
|
296
|
+
D(o);
|
|
297
297
|
} : () => {
|
|
298
298
|
o == null || o();
|
|
299
299
|
}, 0));
|
|
300
300
|
}) : o == null || o();
|
|
301
301
|
}
|
|
302
302
|
function Ce(e, t) {
|
|
303
|
-
e ? (
|
|
304
|
-
t(),
|
|
303
|
+
e ? (P(), n.current.delayTimeoutID = setTimeout(() => {
|
|
304
|
+
t(), P();
|
|
305
305
|
}, e)) : t();
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function P() {
|
|
308
308
|
n.current.delayTimeoutID && (clearTimeout(n.current.delayTimeoutID), n.current.delayTimeoutID = null);
|
|
309
309
|
}
|
|
310
310
|
function he(e) {
|
|
@@ -323,17 +323,17 @@ function Nt(d, I) {
|
|
|
323
323
|
}
|
|
324
324
|
function qe(e) {
|
|
325
325
|
const { mouseEnterDelay: t } = l(["mouseEnterDelay"]);
|
|
326
|
-
m("onMouseEnter", e),
|
|
326
|
+
m("onMouseEnter", e), P(), f(!0, t || 0);
|
|
327
327
|
}
|
|
328
328
|
function Ge(e) {
|
|
329
329
|
m("onMouseMove", e), ee(e), u && F();
|
|
330
330
|
}
|
|
331
331
|
function Ee(e) {
|
|
332
332
|
const { mouseLeaveDelay: t } = l(["mouseLeaveDelay"]);
|
|
333
|
-
|
|
333
|
+
P(), m("onMouseLeave", e), Qe() && u && f(!1, t || 0);
|
|
334
334
|
}
|
|
335
335
|
function Je() {
|
|
336
|
-
|
|
336
|
+
P();
|
|
337
337
|
}
|
|
338
338
|
function Ze(e) {
|
|
339
339
|
Ee(e);
|
|
@@ -357,7 +357,7 @@ function Nt(d, I) {
|
|
|
357
357
|
const { focusDelay: t } = l(["focusDelay"]), o = () => {
|
|
358
358
|
m("onFocus", e);
|
|
359
359
|
};
|
|
360
|
-
|
|
360
|
+
P(), n.current.mousedownToHide || (u ? o == null || o() : f(!0, t || 0, o)), n.current.mousedownToHide = !1;
|
|
361
361
|
}
|
|
362
362
|
function nt(e) {
|
|
363
363
|
f(!1, 200, () => m("onBlur", e));
|
|
@@ -370,9 +370,9 @@ function Nt(d, I) {
|
|
|
370
370
|
const { children: e } = i, t = e, o = t && typeof t != "string" && t.type;
|
|
371
371
|
let r = e;
|
|
372
372
|
if (["string", "number"].indexOf(typeof e) > -1 || He.count(e) > 1)
|
|
373
|
-
r = /* @__PURE__ */
|
|
373
|
+
r = /* @__PURE__ */ w("span", { children: e });
|
|
374
374
|
else if (t && o && (o.__PQB_BUTTON === !0 || o.__PQB_CHECKBOX === !0 || o.__PQB_SWITCH === !0 || o.__PQB_RADIO === !0 || o === "button") && t.props.disabled) {
|
|
375
|
-
const { picked: p, omitted:
|
|
375
|
+
const { picked: p, omitted: M } = Ot(t.props.style, [
|
|
376
376
|
"position",
|
|
377
377
|
"left",
|
|
378
378
|
"right",
|
|
@@ -382,14 +382,14 @@ function Nt(d, I) {
|
|
|
382
382
|
"display",
|
|
383
383
|
"zIndex"
|
|
384
384
|
]);
|
|
385
|
-
r = /* @__PURE__ */
|
|
385
|
+
r = /* @__PURE__ */ w(
|
|
386
386
|
"span",
|
|
387
387
|
{
|
|
388
388
|
className: (s = t.props) == null ? void 0 : s.className,
|
|
389
389
|
style: { display: "inline-block", ...p, cursor: "not-allowed" },
|
|
390
390
|
children: Ie(t, {
|
|
391
391
|
style: {
|
|
392
|
-
...
|
|
392
|
+
...M,
|
|
393
393
|
pointerEvents: "none"
|
|
394
394
|
},
|
|
395
395
|
className: void 0
|
|
@@ -397,15 +397,15 @@ function Nt(d, I) {
|
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
return r || /* @__PURE__ */
|
|
400
|
+
return r || /* @__PURE__ */ w("span", {});
|
|
401
401
|
}
|
|
402
402
|
function m(e, t) {
|
|
403
403
|
const o = z(), r = o && o.props && o.props[e], s = l([e])[e];
|
|
404
|
-
|
|
404
|
+
S(r) && r(t), S(s) && s(t);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function x(e) {
|
|
407
407
|
const t = z(), o = t && t.props && t.props[e], r = l([e])[e];
|
|
408
|
-
return
|
|
408
|
+
return S(r) && S(o) ? (s) => {
|
|
409
409
|
o(s), r(s);
|
|
410
410
|
} : o || r;
|
|
411
411
|
}
|
|
@@ -438,13 +438,13 @@ function Nt(d, I) {
|
|
|
438
438
|
getTransformTranslate: Te,
|
|
439
439
|
getTransformOrigin: ye,
|
|
440
440
|
updateThrottleByRaf: F,
|
|
441
|
-
update:
|
|
442
|
-
updatePopupStyle:
|
|
441
|
+
update: D,
|
|
442
|
+
updatePopupStyle: D,
|
|
443
443
|
updatePopupPosition: b,
|
|
444
444
|
handleUpdatePosition: q,
|
|
445
445
|
setPopupVisible: f,
|
|
446
446
|
delayToDo: Ce
|
|
447
|
-
})), dt(() => (
|
|
447
|
+
})), dt(() => (D(), () => {
|
|
448
448
|
}), [
|
|
449
449
|
a.current,
|
|
450
450
|
ae.current,
|
|
@@ -513,7 +513,7 @@ function Nt(d, I) {
|
|
|
513
513
|
ref: ht(L) ? (e) => {
|
|
514
514
|
n.current.child = e, wt(L, e);
|
|
515
515
|
} : void 0
|
|
516
|
-
}), st = /* @__PURE__ */
|
|
516
|
+
}), st = /* @__PURE__ */ w(
|
|
517
517
|
ut,
|
|
518
518
|
{
|
|
519
519
|
in: !!u,
|
|
@@ -525,15 +525,15 @@ function Nt(d, I) {
|
|
|
525
525
|
onEnter: () => {
|
|
526
526
|
n.current.triggerDestoried = !1;
|
|
527
527
|
const e = a.current;
|
|
528
|
-
e && (e.style.display = "initial", e.style.pointerEvents = "none", K === "slideDynamicOrigin" && (e.style.transform = Te()),
|
|
528
|
+
e && (e.style.display = "initial", e.style.pointerEvents = "none", K === "slideDynamicOrigin" && (e.style.transform = Te()), D());
|
|
529
529
|
},
|
|
530
530
|
onEntering: () => {
|
|
531
531
|
const e = a.current;
|
|
532
|
-
e && (K === "slideDynamicOrigin" && (e.style.transform = ""),
|
|
532
|
+
e && (K === "slideDynamicOrigin" && (e.style.transform = ""), D());
|
|
533
533
|
},
|
|
534
534
|
onEntered: () => {
|
|
535
535
|
const e = a.current;
|
|
536
|
-
e && (e.style.pointerEvents = "auto",
|
|
536
|
+
e && (e.style.pointerEvents = "auto", D());
|
|
537
537
|
},
|
|
538
538
|
onExit: () => {
|
|
539
539
|
const e = a.current;
|
|
@@ -557,14 +557,14 @@ function Nt(d, I) {
|
|
|
557
557
|
width: Fe && (A == null ? void 0 : A.width) === void 0 ? (Oe = n.current.childrenDomSize) == null ? void 0 : Oe.width : "",
|
|
558
558
|
...X.popupStyle,
|
|
559
559
|
position: "absolute",
|
|
560
|
-
zIndex:
|
|
560
|
+
zIndex: C || "",
|
|
561
561
|
...A
|
|
562
562
|
// display
|
|
563
563
|
},
|
|
564
564
|
...j,
|
|
565
565
|
className: Ke,
|
|
566
566
|
children: [
|
|
567
|
-
ie(le) ? /* @__PURE__ */
|
|
567
|
+
ie(le) ? /* @__PURE__ */ w(
|
|
568
568
|
B.type,
|
|
569
569
|
{
|
|
570
570
|
ref: B.ref,
|
|
@@ -572,26 +572,26 @@ function Nt(d, I) {
|
|
|
572
572
|
style: { ...B.props.style, ...le }
|
|
573
573
|
}
|
|
574
574
|
) : B,
|
|
575
|
-
(_e ||
|
|
575
|
+
(_e || h) && /* @__PURE__ */ w(
|
|
576
576
|
"div",
|
|
577
577
|
{
|
|
578
578
|
ref: ae,
|
|
579
579
|
className: te(`${$}-arrow-container`, {
|
|
580
|
-
[`${
|
|
580
|
+
[`${E}-arrow-container`]: E
|
|
581
581
|
}),
|
|
582
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ w(
|
|
583
583
|
"div",
|
|
584
584
|
{
|
|
585
585
|
ref: fe,
|
|
586
|
-
...
|
|
586
|
+
...h,
|
|
587
587
|
className: te(
|
|
588
588
|
`${$}-arrow`,
|
|
589
589
|
{
|
|
590
|
-
[`${
|
|
590
|
+
[`${E}-arrow`]: E
|
|
591
591
|
},
|
|
592
|
-
|
|
592
|
+
h == null ? void 0 : h.className
|
|
593
593
|
),
|
|
594
|
-
style: { ...n.current.arrowStyle, ...
|
|
594
|
+
style: { ...n.current.arrowStyle, ...h == null ? void 0 : h.style }
|
|
595
595
|
}
|
|
596
596
|
)
|
|
597
597
|
}
|
|
@@ -604,10 +604,10 @@ function Nt(d, I) {
|
|
|
604
604
|
let _, Me = u;
|
|
605
605
|
if (Me || (Me = !!a.current && !n.current.triggerDestoried), Me) {
|
|
606
606
|
const e = i.getPopupContainer || y.getPopupContainer;
|
|
607
|
-
if (
|
|
607
|
+
if (S(e)) {
|
|
608
608
|
const t = e(H());
|
|
609
609
|
t && (_ = gt(
|
|
610
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ w("div", { ref: v, className: `${$}-container`, children: st }),
|
|
611
611
|
t
|
|
612
612
|
// popupVisible ? 1 : 0,
|
|
613
613
|
));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ConfigContext from './context';
|
|
1
|
+
import ConfigContext, { ConfigProviderDefaultProps } from './context';
|
|
2
2
|
import type { ConfigProviderProps } from './interface';
|
|
3
3
|
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
declare namespace ConfigProvider {
|
|
@@ -7,4 +7,4 @@ declare namespace ConfigProvider {
|
|
|
7
7
|
}
|
|
8
8
|
export default ConfigProvider;
|
|
9
9
|
export declare const ConfigConsumer: import("react").Consumer<ConfigProviderProps>;
|
|
10
|
-
export { ConfigContext, type ConfigProviderProps };
|
|
10
|
+
export { ConfigContext, ConfigProviderDefaultProps, type ConfigProviderProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ConfigProviderProps } from './interface';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ConfigProviderDefaultProps: ConfigProviderProps;
|
|
3
3
|
declare const ConfigContext: import("react").Context<ConfigProviderProps>;
|
|
4
4
|
export default ConfigContext;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { DatePickerDecorator, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
1
|
+
import RangePicker from './RangePicker';
|
|
2
|
+
import type { DatePickerDecorator, DatePickerHandle, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
|
|
3
|
+
declare const DatePicker: DatePickerDecorator;
|
|
4
|
+
declare const MonthPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseMonthPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
5
|
+
declare const YearPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseYearPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
6
|
+
declare const WeekPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseWeekPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
7
|
+
declare const QuarterPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseQuarterPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
8
8
|
export { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker };
|
|
9
|
-
|
|
10
|
-
export default _default;
|
|
9
|
+
export default DatePicker;
|
|
11
10
|
export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, };
|
|
@@ -7,7 +7,7 @@ export type CalendarValue = number | string | Date | Dayjs;
|
|
|
7
7
|
export type ShortcutType = {
|
|
8
8
|
text: ReactNode;
|
|
9
9
|
value: () => Dayjs | Dayjs[];
|
|
10
|
-
} & Record<string,
|
|
10
|
+
} & Record<string, unknown>;
|
|
11
11
|
export type IconsType = {
|
|
12
12
|
prev?: ReactNode;
|
|
13
13
|
prevDouble?: ReactNode;
|
|
@@ -65,7 +65,7 @@ export interface PickerProps {
|
|
|
65
65
|
nextDouble?: ReactNode;
|
|
66
66
|
inputSuffix?: ReactNode;
|
|
67
67
|
};
|
|
68
|
-
locale?: Record<string,
|
|
68
|
+
locale?: Record<string, unknown>;
|
|
69
69
|
separator?: ReactNode;
|
|
70
70
|
disabledDate?: (current: Dayjs) => boolean;
|
|
71
71
|
extra?: ReactNode;
|
|
@@ -113,7 +113,7 @@ export interface BaseQuarterPickerProps {
|
|
|
113
113
|
value?: CalendarValue;
|
|
114
114
|
}
|
|
115
115
|
export type QuarterPickerProps = BaseQuarterPickerProps & PickerProps;
|
|
116
|
-
export type
|
|
116
|
+
export type TimeRangePickerProps = Omit<TimePickerProps, 'defaultValue'> & {
|
|
117
117
|
defaultValue?: CalendarValue[];
|
|
118
118
|
};
|
|
119
119
|
export interface BaseRangePickerProps {
|
|
@@ -126,7 +126,7 @@ export interface BaseRangePickerProps {
|
|
|
126
126
|
defaultValue?: CalendarValue[];
|
|
127
127
|
value?: CalendarValue[];
|
|
128
128
|
mode?: 'date' | 'month' | 'week' | 'year' | 'quarter';
|
|
129
|
-
showTime?: boolean |
|
|
129
|
+
showTime?: boolean | TimeRangePickerProps;
|
|
130
130
|
placeholder?: string[];
|
|
131
131
|
timepickerProps?: TimePickerProps;
|
|
132
132
|
onOk?: (dateString: string[], date: Dayjs[]) => void;
|
|
@@ -158,10 +158,10 @@ export type RangePickerHandle = {
|
|
|
158
158
|
focus: (index?: number) => void;
|
|
159
159
|
blur: () => void;
|
|
160
160
|
};
|
|
161
|
-
export interface DatePickerDecorator extends React.
|
|
162
|
-
MonthPicker: React.
|
|
163
|
-
YearPicker: React.
|
|
164
|
-
WeekPicker: React.
|
|
165
|
-
QuarterPicker: React.
|
|
161
|
+
export interface DatePickerDecorator extends React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<DatePickerHandle>> {
|
|
162
|
+
MonthPicker: React.ForwardRefExoticComponent<MonthPickerProps & React.RefAttributes<DatePickerHandle>>;
|
|
163
|
+
YearPicker: React.ForwardRefExoticComponent<YearPickerProps & React.RefAttributes<DatePickerHandle>>;
|
|
164
|
+
WeekPicker: React.ForwardRefExoticComponent<WeekPickerProps & React.RefAttributes<DatePickerHandle>>;
|
|
165
|
+
QuarterPicker: React.ForwardRefExoticComponent<QuarterPickerProps & React.RefAttributes<DatePickerHandle>>;
|
|
166
166
|
RangePicker: React.ForwardRefExoticComponent<RangePickerProps & React.RefAttributes<RangePickerHandle>>;
|
|
167
167
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { default as Cascader } from './cascader';
|
|
|
16
16
|
export { default as Checkbox, CheckboxGroup, CheckboxGroupBlock, } from './checkbox';
|
|
17
17
|
export { default as Collapse } from './collapse';
|
|
18
18
|
export { default as Comment } from './comment';
|
|
19
|
-
export { ConfigConsumer, ConfigContext, default as ConfigProvider, } from './config-provider';
|
|
19
|
+
export { ConfigConsumer, ConfigContext, default as ConfigProvider, ConfigProviderDefaultProps, } from './config-provider';
|
|
20
20
|
export { default as Copy } from './copy';
|
|
21
21
|
export { default as DatePicker, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker, } from './date-picker';
|
|
22
22
|
export { default as Descriptions } from './descriptions';
|
package/types/picker/Input.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export interface DateInputProps {
|
|
|
23
23
|
prefix?: ReactNode;
|
|
24
24
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
25
25
|
}
|
|
26
|
-
type DateInputHandle = {
|
|
27
|
-
focus: () => void;
|
|
26
|
+
export type DateInputHandle = {
|
|
27
|
+
focus: (index?: number) => void;
|
|
28
28
|
blur: () => void;
|
|
29
29
|
};
|
|
30
30
|
declare const _default: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<DateInputHandle>>;
|
package/types/space/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SpaceProps, SpaceSize } from './interface';
|
|
3
3
|
declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
|
|
4
|
-
|
|
4
|
+
declare const SpaceVertical: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
|
|
5
|
+
export { SpaceVertical };
|
|
5
6
|
export default Space;
|
|
6
7
|
export type { SpaceProps, SpaceSize };
|
package/types/utils/names.d.ts
CHANGED