@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/page-header/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { jsxs as c, jsx as r, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as r, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import C from "@unicom-cloud/icons/IconUiLeft";
|
|
3
3
|
import _ from "@unicom-cloud/icons/IconUiRight";
|
|
4
4
|
import T, { useContext as W, useState as j, useRef as z, useImperativeHandle as K, useEffect as U } from "react";
|
|
5
5
|
import D from "../breadcrumb/index.js";
|
|
6
|
-
import { a as F, I as L } from "../chunk/
|
|
6
|
+
import { a as F, I as L } from "../chunk/Cplu5dtQ.js";
|
|
7
7
|
import { u as M } from "../chunk/BYdIoY50.js";
|
|
8
8
|
import { u as O } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import
|
|
9
|
+
import $ from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { o as S } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { r as q } from "../chunk/CIRG541s.js";
|
|
12
|
-
function
|
|
13
|
-
const { getPrefixCls:
|
|
14
|
-
|
|
12
|
+
function b(v, N) {
|
|
13
|
+
const { getPrefixCls: d, componentConfig: m, rtl: p } = W(F), a = O(
|
|
14
|
+
v,
|
|
15
15
|
{},
|
|
16
|
-
|
|
16
|
+
m == null ? void 0 : m.PageHeader
|
|
17
17
|
), {
|
|
18
|
-
header:
|
|
19
|
-
title:
|
|
20
|
-
subTitle:
|
|
18
|
+
header: g,
|
|
19
|
+
title: y,
|
|
20
|
+
subTitle: x,
|
|
21
21
|
extra: k,
|
|
22
|
-
children:
|
|
22
|
+
children: f,
|
|
23
23
|
backIcon: l,
|
|
24
|
-
footer:
|
|
25
|
-
breadcrumb:
|
|
24
|
+
footer: u,
|
|
25
|
+
breadcrumb: h,
|
|
26
26
|
...A
|
|
27
27
|
} = a;
|
|
28
|
-
let s =
|
|
28
|
+
let s = g;
|
|
29
29
|
Array.isArray(s) && !s.length && (s = null);
|
|
30
|
-
let i =
|
|
30
|
+
let i = y;
|
|
31
31
|
Array.isArray(i) && !i.length && (i = null);
|
|
32
|
-
let n =
|
|
32
|
+
let n = x;
|
|
33
33
|
Array.isArray(n) && !n.length && (n = null);
|
|
34
34
|
let o = k;
|
|
35
35
|
Array.isArray(o) && !o.length && (o = null);
|
|
36
|
-
const w = M(), [I,
|
|
37
|
-
K(
|
|
38
|
-
getRootDomElement:
|
|
36
|
+
const w = M(), [I, R] = j(!1), t = z(), e = d == null ? void 0 : d("page-header");
|
|
37
|
+
K(N, () => ({
|
|
38
|
+
getRootDomElement: E
|
|
39
39
|
}), []);
|
|
40
|
-
function
|
|
40
|
+
function E() {
|
|
41
41
|
return t.current;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
t.current &&
|
|
43
|
+
function H() {
|
|
44
|
+
t.current && R(t.current.offsetWidth < 768);
|
|
45
45
|
}
|
|
46
46
|
return U(() => {
|
|
47
|
-
const
|
|
47
|
+
const P = q([t.current], H);
|
|
48
48
|
return () => {
|
|
49
|
-
|
|
49
|
+
P();
|
|
50
50
|
};
|
|
51
51
|
}, [t.current]), /* @__PURE__ */ c(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
...S(A, ["onBack"]),
|
|
55
55
|
ref: t,
|
|
56
|
-
className:
|
|
56
|
+
className: $(
|
|
57
57
|
`${e}`,
|
|
58
58
|
{
|
|
59
|
-
[`${e}-with-breadcrumb`]:
|
|
60
|
-
[`${e}-with-content`]:
|
|
61
|
-
[`${e}-with-footer`]:
|
|
59
|
+
[`${e}-with-breadcrumb`]: h,
|
|
60
|
+
[`${e}-with-content`]: f,
|
|
61
|
+
[`${e}-with-footer`]: u,
|
|
62
62
|
[`${e}-wrap`]: I,
|
|
63
|
-
[`${e}-rtl`]:
|
|
63
|
+
[`${e}-rtl`]: p
|
|
64
64
|
},
|
|
65
65
|
a.className
|
|
66
66
|
),
|
|
@@ -68,12 +68,12 @@ function $(b, g) {
|
|
|
68
68
|
children: [
|
|
69
69
|
!!s && /* @__PURE__ */ r("div", { className: `${e}-header`, children: s }),
|
|
70
70
|
/* @__PURE__ */ c("div", { className: `${e}-head-wrapper`, children: [
|
|
71
|
-
|
|
71
|
+
h && /* @__PURE__ */ r(D, { ...h }),
|
|
72
72
|
/* @__PURE__ */ c("div", { className: `${e}-head`, children: [
|
|
73
73
|
/* @__PURE__ */ c(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
className:
|
|
76
|
+
className: $(`${e}-head-main`, {
|
|
77
77
|
[`${e}-head-main-with-back`]: l
|
|
78
78
|
}),
|
|
79
79
|
children: [
|
|
@@ -88,11 +88,11 @@ function $(b, g) {
|
|
|
88
88
|
...w({
|
|
89
89
|
onPressEnter: a.onBack
|
|
90
90
|
}),
|
|
91
|
-
children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: l === !0 ?
|
|
91
|
+
children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: l === !0 ? p ? /* @__PURE__ */ r(_, {}) : /* @__PURE__ */ r(C, {}) : l })
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
i && /* @__PURE__ */ r("div", { className: `${e}-title`, children: i }),
|
|
95
|
-
n && /* @__PURE__ */ c(
|
|
95
|
+
n && /* @__PURE__ */ c(B, { children: [
|
|
96
96
|
/* @__PURE__ */ r("div", { className: `${e}-divider` }),
|
|
97
97
|
/* @__PURE__ */ r("div", { className: `${e}-sub-title`, children: n })
|
|
98
98
|
] })
|
|
@@ -102,14 +102,14 @@ function $(b, g) {
|
|
|
102
102
|
o && /* @__PURE__ */ r("div", { className: `${e}-head-extra`, children: o })
|
|
103
103
|
] })
|
|
104
104
|
] }),
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
f && /* @__PURE__ */ r("div", { className: `${e}-content`, children: f }),
|
|
106
|
+
u && /* @__PURE__ */ r("div", { className: `${e}-footer`, children: u })
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
const se = T.forwardRef(
|
|
111
|
+
b.displayName = "PageHeader";
|
|
112
|
+
const se = T.forwardRef(b);
|
|
113
113
|
export {
|
|
114
114
|
se as default
|
|
115
115
|
};
|
package/pagination/PageItem.js
CHANGED
|
@@ -3,22 +3,22 @@ import S from "@unicom-cloud/icons/IconUiLeft";
|
|
|
3
3
|
import j from "@unicom-cloud/icons/IconUiMore";
|
|
4
4
|
import K from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import U, { useContext as N } from "react";
|
|
6
|
-
import { a as E } from "../chunk/
|
|
6
|
+
import { a as E } from "../chunk/Cplu5dtQ.js";
|
|
7
7
|
import { u as R } from "../chunk/BYdIoY50.js";
|
|
8
8
|
import k from "@unicom-cloud/utils/class-name";
|
|
9
9
|
var _ = /* @__PURE__ */ ((t) => (t[t.previous = 0] = "previous", t[t.next = 1] = "next", t))(_ || {});
|
|
10
10
|
function L(t) {
|
|
11
|
-
var
|
|
11
|
+
var l, n, s;
|
|
12
12
|
const { locale: e } = N(E), v = R(), {
|
|
13
13
|
pageNum: i,
|
|
14
14
|
current: b,
|
|
15
15
|
rootPrefixCls: a,
|
|
16
16
|
pageItemStyle: d,
|
|
17
|
-
activePageItemStyle:
|
|
17
|
+
activePageItemStyle: m,
|
|
18
18
|
itemRender: f
|
|
19
19
|
} = t, x = `${a}-item`, P = b === i, C = k(x, P ? `${x}-active` : "");
|
|
20
20
|
let o = d;
|
|
21
|
-
P && (o = { ...o, ...
|
|
21
|
+
P && (o = { ...o, ...m });
|
|
22
22
|
const h = P ? { "aria-current": !0 } : {}, p = (r) => {
|
|
23
23
|
const { pageNum: u, onClick: g, disabled: c } = t;
|
|
24
24
|
r.currentTarget.dataset.active !== "true" && (r.stopPropagation(), c || g == null || g(u));
|
|
@@ -30,7 +30,7 @@ function L(t) {
|
|
|
30
30
|
className: C,
|
|
31
31
|
onClick: p,
|
|
32
32
|
tabIndex: t.disabled ? -1 : 0,
|
|
33
|
-
"aria-label": (s = (n = (
|
|
33
|
+
"aria-label": (s = (n = (l = e == null ? void 0 : e.Pagination) == null ? void 0 : l.currentPage) == null ? void 0 : n.replace) == null ? void 0 : s.call(n, "{0}", i),
|
|
34
34
|
...v({ onPressEnter: p }),
|
|
35
35
|
...h,
|
|
36
36
|
children: f ? f(i, "page", i) : i
|
|
@@ -57,13 +57,13 @@ const G = (t) => {
|
|
|
57
57
|
allPages: b,
|
|
58
58
|
jumpPage: a,
|
|
59
59
|
icons: d,
|
|
60
|
-
disabled:
|
|
60
|
+
disabled: m,
|
|
61
61
|
pageItemStyle: f,
|
|
62
62
|
itemRender: x
|
|
63
63
|
} = t, P = b > 0 ? 1 : 0, C = Math.min(b, Math.max(P, i + a)), o = `${v}-item ${v}-item-jumper`, h = k(o), p = () => {
|
|
64
64
|
var M;
|
|
65
|
-
!
|
|
66
|
-
},
|
|
65
|
+
!m && ((M = t.onClick) == null || M.call(t, C));
|
|
66
|
+
}, l = $("more", d), n = a > 0 ? (u = (r = (s = e == null ? void 0 : e.Pagination) == null ? void 0 : s.nextSomePages) == null ? void 0 : r.replace) == null ? void 0 : u.call(r, "{0}", a) : (y = (c = (g = e == null ? void 0 : e.Pagination) == null ? void 0 : g.prevSomePages) == null ? void 0 : c.replace) == null ? void 0 : y.call(c, "{0}", -a);
|
|
67
67
|
return /* @__PURE__ */ I(
|
|
68
68
|
"li",
|
|
69
69
|
{
|
|
@@ -71,7 +71,7 @@ const G = (t) => {
|
|
|
71
71
|
className: h,
|
|
72
72
|
onClick: p,
|
|
73
73
|
"aria-label": n,
|
|
74
|
-
children: x ? x(void 0, "more",
|
|
74
|
+
children: x ? x(void 0, "more", l) : l
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}, H = (t) => {
|
|
@@ -79,18 +79,18 @@ const G = (t) => {
|
|
|
79
79
|
rootPrefixCls: b,
|
|
80
80
|
current: a,
|
|
81
81
|
allPages: d,
|
|
82
|
-
type:
|
|
82
|
+
type: m,
|
|
83
83
|
icons: f,
|
|
84
84
|
disabled: x,
|
|
85
85
|
pageItemStyle: P,
|
|
86
86
|
itemRender: C
|
|
87
|
-
} = t, o = `${b}-item`, [h, p] = v ? ["next", "prev"] : ["prev", "next"],
|
|
87
|
+
} = t, o = `${b}-item`, [h, p] = v ? ["next", "prev"] : ["prev", "next"], l = $(m === 0 ? h : p, f);
|
|
88
88
|
let n = !1;
|
|
89
|
-
d === 0 ? n = !0 :
|
|
89
|
+
d === 0 ? n = !0 : m === 0 ? n = a <= 1 : n = a === d;
|
|
90
90
|
const s = x || n;
|
|
91
|
-
let r = a + (
|
|
91
|
+
let r = a + (m === 0 ? -1 : 1);
|
|
92
92
|
r = Math.max(0, Math.min(d, r));
|
|
93
|
-
const u =
|
|
93
|
+
const u = m === 0 ? "prev" : "next", g = k(o, `${o}-${u}`, {
|
|
94
94
|
[`${o}-disabled`]: s
|
|
95
95
|
}), c = () => {
|
|
96
96
|
var y;
|
|
@@ -103,11 +103,11 @@ const G = (t) => {
|
|
|
103
103
|
className: g,
|
|
104
104
|
onClick: c,
|
|
105
105
|
tabIndex: s ? -1 : 0,
|
|
106
|
-
"aria-label": e.Pagination[u],
|
|
106
|
+
"aria-label": e == null ? void 0 : e.Pagination[u],
|
|
107
107
|
...i({
|
|
108
108
|
onPressEnter: c
|
|
109
109
|
}),
|
|
110
|
-
children: C ? C(void 0, u,
|
|
110
|
+
children: C ? C(void 0, u, l) : l
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
}, O = U.memo(L);
|
package/pagination/PageJumper.js
CHANGED
|
@@ -3,7 +3,7 @@ import I from "lodash/isFunction";
|
|
|
3
3
|
import J from "lodash/isPlainObject";
|
|
4
4
|
import N from "lodash/isUndefined";
|
|
5
5
|
import { useContext as E, useState as R, useRef as T, useEffect as w } from "react";
|
|
6
|
-
import { a as z } from "../chunk/
|
|
6
|
+
import { a as z } from "../chunk/Cplu5dtQ.js";
|
|
7
7
|
import B from "../input/Input.js";
|
|
8
8
|
function A(n) {
|
|
9
9
|
var d, g;
|
package/pagination/PageOption.js
CHANGED
package/pagination/Pagination.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/Cplu5dtQ.js";
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
5
|
import "../chunk/CXPOj2uy.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
7
|
import "../chunk/ClqoGc3r.js";
|
|
8
8
|
import "./PageItem.js";
|
|
9
9
|
import "./PageJumper.js";
|
|
10
|
-
import { P as s } from "../chunk/
|
|
10
|
+
import { P as s } from "../chunk/w221i0nK.js";
|
|
11
11
|
export {
|
|
12
12
|
s as default
|
|
13
13
|
};
|
package/pagination/index.js
CHANGED
package/picker/Input.js
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as v, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import X from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import Y from "lodash/isArray";
|
|
4
|
-
import { forwardRef as Z, useContext as _, useRef as
|
|
5
|
-
import { a as p, I as ee } from "../chunk/
|
|
6
|
-
import
|
|
4
|
+
import { forwardRef as Z, useContext as _, useRef as C, useState as E, useImperativeHandle as P } from "react";
|
|
5
|
+
import { a as p, I as ee } from "../chunk/Cplu5dtQ.js";
|
|
6
|
+
import z from "@unicom-cloud/utils/class-name";
|
|
7
7
|
import { Enter as ce } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
8
|
-
import { o as
|
|
9
|
-
function
|
|
10
|
-
style:
|
|
11
|
-
className:
|
|
12
|
-
prefixCls:
|
|
13
|
-
allowClear:
|
|
14
|
-
status:
|
|
15
|
-
error:
|
|
16
|
-
disabled:
|
|
17
|
-
placeholder:
|
|
8
|
+
import { o as ae } from "../chunk/BKKEev13.js";
|
|
9
|
+
function le({
|
|
10
|
+
style: w,
|
|
11
|
+
className: D,
|
|
12
|
+
prefixCls: F,
|
|
13
|
+
allowClear: R,
|
|
14
|
+
status: j,
|
|
15
|
+
error: O,
|
|
16
|
+
disabled: y,
|
|
17
|
+
placeholder: S,
|
|
18
18
|
format: m,
|
|
19
|
-
size:
|
|
20
|
-
onClear:
|
|
21
|
-
editable:
|
|
19
|
+
size: b,
|
|
20
|
+
onClear: g,
|
|
21
|
+
editable: u,
|
|
22
22
|
value: o,
|
|
23
|
-
inputValue:
|
|
23
|
+
inputValue: N,
|
|
24
24
|
onPressEnter: d,
|
|
25
|
-
suffixIcon:
|
|
25
|
+
suffixIcon: B,
|
|
26
26
|
prefix: t,
|
|
27
27
|
onChange: r,
|
|
28
|
-
popupVisible:
|
|
29
|
-
isPlaceholder:
|
|
28
|
+
popupVisible: H,
|
|
29
|
+
isPlaceholder: K,
|
|
30
30
|
inputProps: e,
|
|
31
|
-
...
|
|
32
|
-
},
|
|
31
|
+
...A
|
|
32
|
+
}, L) {
|
|
33
33
|
const {
|
|
34
|
-
getPrefixCls:
|
|
35
|
-
size:
|
|
36
|
-
locale:
|
|
34
|
+
getPrefixCls: n,
|
|
35
|
+
size: M,
|
|
36
|
+
locale: i,
|
|
37
37
|
rtl: U
|
|
38
|
-
} = _(p),
|
|
39
|
-
P(
|
|
38
|
+
} = _(p), $ = C(null), [W, x] = E(!1), q = b || M, h = C(null);
|
|
39
|
+
P(L, () => ({
|
|
40
40
|
focus() {
|
|
41
|
-
var c,
|
|
42
|
-
(
|
|
41
|
+
var c, l;
|
|
42
|
+
(l = (c = $.current) == null ? void 0 : c.focus) == null || l.call(c);
|
|
43
43
|
},
|
|
44
44
|
blur() {
|
|
45
|
-
var c,
|
|
46
|
-
(
|
|
45
|
+
var c, l;
|
|
46
|
+
(l = (c = $.current) == null ? void 0 : c.blur) == null || l.call(c);
|
|
47
47
|
},
|
|
48
|
-
getRootDOMNode: () =>
|
|
48
|
+
getRootDOMNode: () => h.current
|
|
49
49
|
}));
|
|
50
50
|
function G(c) {
|
|
51
|
-
var
|
|
52
|
-
(
|
|
51
|
+
var k;
|
|
52
|
+
(k = e == null ? void 0 : e.onKeyDown) == null || k.call(e, c), c.key === ce.key && (d == null || d());
|
|
53
53
|
}
|
|
54
54
|
function J(c) {
|
|
55
|
-
var
|
|
56
|
-
(
|
|
55
|
+
var l;
|
|
56
|
+
(l = e == null ? void 0 : e.onChange) == null || l.call(e, c), r == null || r(c);
|
|
57
57
|
}
|
|
58
58
|
let s = "";
|
|
59
|
-
|
|
60
|
-
const Q =
|
|
61
|
-
|
|
62
|
-
`${
|
|
59
|
+
N !== void 0 ? s = N : o && !Y(o) && (s = typeof m == "function" ? m(o) : o.locale(i == null ? void 0 : i.dayjsLocale).format(m));
|
|
60
|
+
const Q = u ? {} : { readOnly: !0 }, a = F || (n == null ? void 0 : n("picker")), I = j || (O ? "error" : void 0), T = W || H, V = z(
|
|
61
|
+
a,
|
|
62
|
+
`${a}-size-${q}`,
|
|
63
63
|
{
|
|
64
|
-
[`${
|
|
65
|
-
[`${
|
|
66
|
-
[`${
|
|
67
|
-
[`${
|
|
68
|
-
[`${
|
|
64
|
+
[`${a}-focused`]: T,
|
|
65
|
+
[`${a}-disabled`]: y,
|
|
66
|
+
[`${a}-has-prefix`]: t,
|
|
67
|
+
[`${a}-${I}`]: I,
|
|
68
|
+
[`${a}-rtl`]: U
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
D
|
|
71
71
|
);
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ v(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style:
|
|
75
|
+
style: w,
|
|
76
76
|
className: V,
|
|
77
|
-
ref:
|
|
78
|
-
...
|
|
77
|
+
ref: h,
|
|
78
|
+
...ae(A, ["onChange", "onPressEnter"]),
|
|
79
79
|
children: [
|
|
80
|
-
t && /* @__PURE__ */ f("div", { className: `${
|
|
80
|
+
t && /* @__PURE__ */ f("div", { className: `${a}-prefix`, children: t }),
|
|
81
81
|
/* @__PURE__ */ f(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
|
-
className:
|
|
85
|
-
[`${
|
|
84
|
+
className: z(`${a}-input`, {
|
|
85
|
+
[`${a}-input-placeholder`]: K
|
|
86
86
|
}),
|
|
87
87
|
children: /* @__PURE__ */ f(
|
|
88
88
|
"input",
|
|
89
89
|
{
|
|
90
|
-
ref:
|
|
90
|
+
ref: $,
|
|
91
91
|
...e,
|
|
92
|
-
disabled:
|
|
93
|
-
placeholder:
|
|
94
|
-
className: `${
|
|
92
|
+
disabled: y,
|
|
93
|
+
placeholder: S,
|
|
94
|
+
className: `${a}-start-time`,
|
|
95
95
|
value: s,
|
|
96
96
|
onKeyDown: G,
|
|
97
97
|
onChange: J,
|
|
98
98
|
...Q,
|
|
99
99
|
onFocus: (c) => {
|
|
100
|
-
var
|
|
101
|
-
x(!0), (
|
|
100
|
+
var l;
|
|
101
|
+
x(!0), (l = e == null ? void 0 : e.onFocus) == null || l.call(e, c);
|
|
102
102
|
},
|
|
103
103
|
onBlur: (c) => {
|
|
104
|
-
var
|
|
105
|
-
x(!1), (
|
|
104
|
+
var l;
|
|
105
|
+
x(!1), (l = e == null ? void 0 : e.onBlur) == null || l.call(e, c);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
)
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
|
|
111
|
+
/* @__PURE__ */ v("div", { className: `${a}-suffix`, children: [
|
|
112
|
+
R && s && /* @__PURE__ */ f(
|
|
113
113
|
ee,
|
|
114
114
|
{
|
|
115
|
-
prefix:
|
|
116
|
-
onClick:
|
|
117
|
-
className: `${
|
|
115
|
+
prefix: a,
|
|
116
|
+
onClick: g,
|
|
117
|
+
className: `${a}-clear-icon`,
|
|
118
118
|
children: /* @__PURE__ */ f(X, {})
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
/* @__PURE__ */ f("span", { className: `${
|
|
121
|
+
/* @__PURE__ */ f("span", { className: `${a}-suffix-icon`, children: B })
|
|
122
122
|
] })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
|
-
const ie = Z(
|
|
127
|
+
const ie = Z(le);
|
|
128
128
|
export {
|
|
129
129
|
ie as default
|
|
130
130
|
};
|