@unicom-cloud/ui 0.8.75 → 0.8.76
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 +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- 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 +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- 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 +1 -1
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.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/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- 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 +2 -2
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +86 -82
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- 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/index.js +1 -1
- package/chunk/ATwvJ8j2.js +6 -0
- package/chunk/{CWlklVfi.js → BGmWsXl0.js} +1 -1
- package/chunk/{WVoGhvMI.js → ByRETFRI.js} +1 -1
- package/chunk/CBzE-PUr.js +23 -0
- package/chunk/{C9XYyypq.js → CQzKdjhX.js} +226 -225
- package/chunk/{BbqvFW5R.js → CqtaeJXT.js} +109 -109
- package/chunk/{DFcz9ZPP.js → CzaoCNQH.js} +2 -2
- package/chunk/D0ZWT7db.js +5 -0
- package/chunk/{BViFMHr-.js → D0qXkqyq.js} +3 -3
- package/chunk/{CPlPBkN7.js → D9JpbqFT.js} +1 -1
- package/chunk/{0mWCmQHr.js → DM_DBvmG.js} +2 -2
- package/chunk/{BxZ39GzB.js → DQrLGkIG.js} +1 -1
- package/chunk/{Dv6USvVF.js → DezXC21w.js} +1 -1
- package/chunk/{DeCsZrXb.js → J07pQqQ7.js} +2 -2
- package/chunk/{EL5Jmjgr.js → OPbfCome.js} +1 -1
- package/chunk/{B8hkFIar.js → lf-xRLXx.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +3 -3
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +2 -2
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +7 -6
- package/config-provider/context.js +3 -2
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +312 -310
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- 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 +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/mentions/index.js +1 -1
- 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 +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +4 -3
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +0 -484
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +2 -2
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +1 -1
- package/trigger/index.js +1 -1
- package/types/utils/constant.d.ts +2 -1
- package/types/utils/setDarkTheme.d.ts +2 -3
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +12 -11
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -9
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +1 -1
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/color.js +1 -1
- package/utils/constant.js +7 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +156 -154
- package/utils/setDarkTheme.js +33 -5
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BsWphzcT.js +0 -20
- package/chunk/CIkPwQlq.js +0 -6
- package/chunk/DskaI8QL.js +0 -25
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import Q, { forwardRef as Z, useContext as D, createContext as
|
|
2
|
-
import { jsx as r, jsxs as G, Fragment as
|
|
1
|
+
import Q, { forwardRef as Z, useContext as D, createContext as De, useRef as M, useImperativeHandle as ee, useEffect as O, useMemo as Se, useState as Ue } from "react";
|
|
2
|
+
import { jsx as r, jsxs as G, Fragment as de } from "react/jsx-runtime";
|
|
3
3
|
import W from "@unicom-cloud/icons/context";
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
4
|
+
import { c as Fe } from "./CqtaeJXT.js";
|
|
5
|
+
import { o as te } from "./ATwvJ8j2.js";
|
|
6
|
+
import Le from "lodash/isPlainObject";
|
|
7
|
+
import { u as oe } from "./BFTV6myl.js";
|
|
8
|
+
import { b as pe } from "./BJ9_azwQ.js";
|
|
9
|
+
import j from "lodash/isNumber";
|
|
9
10
|
import H from "lodash/isUndefined";
|
|
10
|
-
import { createRoot as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
11
|
+
import { createRoot as Ce } from "react-dom/client";
|
|
12
|
+
import ze from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
13
|
+
import me from "@unicom-cloud/icons/IconUiClose";
|
|
14
|
+
import Ae from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
15
|
+
import Ge from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
16
|
+
import Qe from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
17
|
+
import Be from "@unicom-cloud/icons/IconUiLoading";
|
|
18
|
+
import Je from "@unicom-cloud/icons/IconUiEmpty";
|
|
18
19
|
import { p as U } from "./CUFsOxJ2.js";
|
|
19
|
-
import
|
|
20
|
+
import Ke from "../locale/zh-CN.js";
|
|
20
21
|
import "lodash/isEqualWith";
|
|
21
22
|
import "./DAAff-FT.js";
|
|
22
23
|
import "lodash/merge";
|
|
@@ -25,44 +26,44 @@ import "./ZrBrCzQX.js";
|
|
|
25
26
|
import "./Cc_-i0o_.js";
|
|
26
27
|
import "./Ce1j9KTi.js";
|
|
27
28
|
import "lodash/debounce";
|
|
28
|
-
import { createPortal as
|
|
29
|
-
import { P as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { setConfigProviderProps as
|
|
33
|
-
import { o as
|
|
34
|
-
function
|
|
29
|
+
import { createPortal as Ve } from "react-dom";
|
|
30
|
+
import { P as ge } from "./BpYX5PN4.js";
|
|
31
|
+
import he from "../notification/withNotification.js";
|
|
32
|
+
import We from "lodash/isString";
|
|
33
|
+
import { setConfigProviderProps as Xe } from "../modal/config.js";
|
|
34
|
+
import { o as Ye } from "./BKKEev13.js";
|
|
35
|
+
function Ze(e, o) {
|
|
35
36
|
const {
|
|
36
37
|
getPrefixCls: t,
|
|
37
38
|
locale: c,
|
|
38
39
|
componentConfig: a
|
|
39
|
-
} = D(w), n =
|
|
40
|
+
} = D(w), n = oe(
|
|
40
41
|
e,
|
|
41
42
|
{},
|
|
42
43
|
a == null ? void 0 : a.Empty
|
|
43
|
-
), { style: i, className: p, description: s, icon: l, imgSrc: d, ...
|
|
44
|
-
return /* @__PURE__ */ r("div", { ref: o, className: x, style: i, ...
|
|
45
|
-
/* @__PURE__ */ r("div", { className: `${C}-image`, children: d ? /* @__PURE__ */ r("img", { alt: f, src: d }) : l || /* @__PURE__ */ r(
|
|
44
|
+
), { style: i, className: p, description: s, icon: l, imgSrc: d, ...m } = n, C = t("empty"), x = U(C, p), g = c.Empty.noData, f = typeof s == "string" ? s : "empty";
|
|
45
|
+
return /* @__PURE__ */ r("div", { ref: o, className: x, style: i, ...m, children: /* @__PURE__ */ G("div", { className: `${C}-wrapper`, children: [
|
|
46
|
+
/* @__PURE__ */ r("div", { className: `${C}-image`, children: d ? /* @__PURE__ */ r("img", { alt: f, src: d }) : l || /* @__PURE__ */ r(Je, {}) }),
|
|
46
47
|
/* @__PURE__ */ r("div", { className: `${C}-description`, children: s || g })
|
|
47
48
|
] }) });
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
return /* @__PURE__ */ r(
|
|
50
|
+
const xe = Z(Ze);
|
|
51
|
+
xe.displayName = "Empty";
|
|
52
|
+
const et = Q.memo(xe);
|
|
53
|
+
function tt(e) {
|
|
54
|
+
return /* @__PURE__ */ r(et, {});
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
-
locale:
|
|
57
|
-
prefixCls:
|
|
56
|
+
const ve = {
|
|
57
|
+
locale: Ke,
|
|
58
|
+
prefixCls: te,
|
|
58
59
|
getPopupContainer: () => document.body,
|
|
59
60
|
size: "default",
|
|
60
|
-
renderEmpty:
|
|
61
|
-
}, w =
|
|
62
|
-
getPrefixCls: (e, o) => `${o ||
|
|
63
|
-
...
|
|
61
|
+
renderEmpty: tt
|
|
62
|
+
}, w = De({
|
|
63
|
+
getPrefixCls: (e, o) => `${o || te}-${e}`,
|
|
64
|
+
...ve
|
|
64
65
|
});
|
|
65
|
-
function
|
|
66
|
+
function ot(e, o) {
|
|
66
67
|
const {
|
|
67
68
|
children: t,
|
|
68
69
|
className: c,
|
|
@@ -92,211 +93,211 @@ function tt(e, o) {
|
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
95
|
}
|
|
95
|
-
const ue = Q.forwardRef(
|
|
96
|
+
const ue = Q.forwardRef(ot), rt = {
|
|
96
97
|
type: "info",
|
|
97
98
|
showIcon: !0,
|
|
98
99
|
noticeType: "message",
|
|
99
100
|
duration: 3e3
|
|
100
101
|
};
|
|
101
|
-
function
|
|
102
|
+
function nt(e, o) {
|
|
102
103
|
const {
|
|
103
104
|
getPrefixCls: t,
|
|
104
105
|
componentConfig: c,
|
|
105
106
|
rtl: a
|
|
106
|
-
} = D(w), n =
|
|
107
|
+
} = D(w), n = oe(
|
|
107
108
|
e,
|
|
108
|
-
|
|
109
|
+
rt,
|
|
109
110
|
c == null ? void 0 : c.Notice
|
|
110
111
|
), i = D(w), p = t("notice");
|
|
111
112
|
M();
|
|
112
113
|
const s = M(), l = M(), d = M(), {
|
|
113
|
-
title:
|
|
114
|
+
title: m,
|
|
114
115
|
content: C,
|
|
115
116
|
showIcon: x,
|
|
116
117
|
className: g,
|
|
117
118
|
style: f,
|
|
118
|
-
type:
|
|
119
|
+
type: u,
|
|
119
120
|
btn: h,
|
|
120
|
-
icon:
|
|
121
|
-
prefixCls:
|
|
121
|
+
icon: v,
|
|
122
|
+
prefixCls: b,
|
|
122
123
|
closable: y,
|
|
123
124
|
noticeType: R,
|
|
124
|
-
iconPrefix:
|
|
125
|
-
rtl:
|
|
125
|
+
iconPrefix: se,
|
|
126
|
+
rtl: Te = a,
|
|
126
127
|
closeIcon: F,
|
|
127
|
-
classPrefixCls:
|
|
128
|
-
} = n,
|
|
129
|
-
|
|
130
|
-
`${
|
|
128
|
+
classPrefixCls: le
|
|
129
|
+
} = n, _e = U(
|
|
130
|
+
b,
|
|
131
|
+
`${b}-${u}`,
|
|
131
132
|
{
|
|
132
|
-
[`${
|
|
133
|
-
[`${
|
|
133
|
+
[`${b}-closable`]: y,
|
|
134
|
+
[`${b}-rtl`]: Te
|
|
134
135
|
},
|
|
135
136
|
g
|
|
136
137
|
);
|
|
137
138
|
let B = "closable" in n ? y : !0, J = x;
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
function
|
|
139
|
+
u === "normal" && !v && (J = !1);
|
|
140
|
+
const ce = { ...i };
|
|
141
|
+
le && (ce.prefixCls = le);
|
|
142
|
+
function je() {
|
|
142
143
|
return l.current;
|
|
143
144
|
}
|
|
144
145
|
function K() {
|
|
145
|
-
const { duration: N, onClose:
|
|
146
|
+
const { duration: N, onClose: _, id: V } = n;
|
|
146
147
|
N !== 0 && (s.current = window.setTimeout(() => {
|
|
147
|
-
|
|
148
|
+
_ == null || _(V), q();
|
|
148
149
|
}, N));
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function q() {
|
|
151
152
|
s.current && (window.clearTimeout(s.current), s.current = null);
|
|
152
153
|
}
|
|
153
154
|
function L() {
|
|
154
155
|
var N;
|
|
155
156
|
(N = n.onClose) == null || N.call(n, n.id);
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
const { showIcon: N, icon:
|
|
158
|
+
function ae() {
|
|
159
|
+
const { showIcon: N, icon: _, type: V, iconPrefix: fe } = n;
|
|
159
160
|
let P;
|
|
160
|
-
if (
|
|
161
|
-
P =
|
|
161
|
+
if (_)
|
|
162
|
+
P = _;
|
|
162
163
|
else if (N) {
|
|
163
164
|
switch (V) {
|
|
164
165
|
case "info":
|
|
165
|
-
P = /* @__PURE__ */ r(
|
|
166
|
+
P = /* @__PURE__ */ r(Qe, {});
|
|
166
167
|
break;
|
|
167
168
|
case "success":
|
|
168
|
-
P = /* @__PURE__ */ r(
|
|
169
|
+
P = /* @__PURE__ */ r(ze, {});
|
|
169
170
|
break;
|
|
170
171
|
case "error":
|
|
171
|
-
P = /* @__PURE__ */ r(
|
|
172
|
+
P = /* @__PURE__ */ r(Ae, {});
|
|
172
173
|
break;
|
|
173
174
|
case "warning":
|
|
174
|
-
P = /* @__PURE__ */ r(
|
|
175
|
+
P = /* @__PURE__ */ r(Ge, {});
|
|
175
176
|
break;
|
|
176
177
|
case "loading":
|
|
177
|
-
P = /* @__PURE__ */ r(
|
|
178
|
+
P = /* @__PURE__ */ r(Be, {});
|
|
178
179
|
break;
|
|
179
180
|
}
|
|
180
181
|
P = /* @__PURE__ */ r(
|
|
181
182
|
W.Provider,
|
|
182
183
|
{
|
|
183
|
-
value:
|
|
184
|
+
value: fe ? { prefixCls: fe } : {},
|
|
184
185
|
children: P
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
}
|
|
188
|
-
return /* @__PURE__ */ r("span", { className: `${
|
|
189
|
+
return /* @__PURE__ */ r("span", { className: `${b}-icon`, children: P });
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
191
|
+
function qe() {
|
|
192
|
+
q();
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
194
|
+
function He() {
|
|
195
|
+
q(), K();
|
|
195
196
|
}
|
|
196
197
|
ee(o, () => ({
|
|
197
|
-
getRootDOMNode:
|
|
198
|
-
}), []),
|
|
198
|
+
getRootDOMNode: je
|
|
199
|
+
}), []), O(() => {
|
|
199
200
|
const N = d.current;
|
|
200
|
-
return (N && (N == null ? void 0 : N.duration) !== n.duration || n.update) && (
|
|
201
|
+
return (N && (N == null ? void 0 : N.duration) !== n.duration || n.update) && (q(), K()), d.current = n, () => {
|
|
201
202
|
};
|
|
202
|
-
}, [n.duration, n.update]),
|
|
203
|
-
|
|
203
|
+
}, [n.duration, n.update]), O(() => (K(), () => {
|
|
204
|
+
q();
|
|
204
205
|
}), []);
|
|
205
|
-
let
|
|
206
|
-
return R === "message" && (B = y,
|
|
207
|
-
J &&
|
|
208
|
-
/* @__PURE__ */ r("span", { className: `${
|
|
209
|
-
B && (F !== void 0 ? /* @__PURE__ */ r("span", { onClick: L, className: `${
|
|
206
|
+
let T;
|
|
207
|
+
return R === "message" && (B = y, T = /* @__PURE__ */ G(de, { children: [
|
|
208
|
+
J && ae(),
|
|
209
|
+
/* @__PURE__ */ r("span", { className: `${b}-content`, children: C }),
|
|
210
|
+
B && (F !== void 0 ? /* @__PURE__ */ r("span", { onClick: L, className: `${b}-close-btn`, children: F }) : /* @__PURE__ */ r(
|
|
210
211
|
ue,
|
|
211
212
|
{
|
|
212
|
-
prefix:
|
|
213
|
-
className: `${
|
|
213
|
+
prefix: b,
|
|
214
|
+
className: `${b}-close-btn`,
|
|
214
215
|
onClick: L,
|
|
215
|
-
children: /* @__PURE__ */ r(
|
|
216
|
+
children: /* @__PURE__ */ r(me, {})
|
|
216
217
|
}
|
|
217
218
|
))
|
|
218
|
-
] })), R === "notification" && (
|
|
219
|
-
J && /* @__PURE__ */ r("div", { className: `${
|
|
220
|
-
/* @__PURE__ */ G("div", { className: `${
|
|
221
|
-
|
|
222
|
-
/* @__PURE__ */ r("div", { className: `${
|
|
223
|
-
h && /* @__PURE__ */ r("div", { className: `${
|
|
219
|
+
] })), R === "notification" && (T = /* @__PURE__ */ G(de, { children: [
|
|
220
|
+
J && /* @__PURE__ */ r("div", { className: `${b}-left`, children: ae() }),
|
|
221
|
+
/* @__PURE__ */ G("div", { className: `${b}-right`, children: [
|
|
222
|
+
m && /* @__PURE__ */ r("div", { className: `${b}-title`, children: m }),
|
|
223
|
+
/* @__PURE__ */ r("div", { className: `${b}-content`, children: C }),
|
|
224
|
+
h && /* @__PURE__ */ r("div", { className: `${b}-btn-wrapper`, children: h })
|
|
224
225
|
] }),
|
|
225
|
-
B && (F !== void 0 ? /* @__PURE__ */ r("span", { onClick: L, className: `${
|
|
226
|
+
B && (F !== void 0 ? /* @__PURE__ */ r("span", { onClick: L, className: `${b}-close-btn`, children: F }) : /* @__PURE__ */ r(
|
|
226
227
|
ue,
|
|
227
228
|
{
|
|
228
|
-
prefix:
|
|
229
|
-
className: `${
|
|
229
|
+
prefix: b,
|
|
230
|
+
className: `${b}-close-btn`,
|
|
230
231
|
onClick: L,
|
|
231
232
|
children: /* @__PURE__ */ r(
|
|
232
233
|
W.Provider,
|
|
233
234
|
{
|
|
234
|
-
value:
|
|
235
|
-
children: /* @__PURE__ */ r(
|
|
235
|
+
value: se ? { prefixCls: se } : {},
|
|
236
|
+
children: /* @__PURE__ */ r(me, {})
|
|
236
237
|
}
|
|
237
238
|
)
|
|
238
239
|
}
|
|
239
240
|
))
|
|
240
|
-
] })),
|
|
241
|
+
] })), T && (T = /* @__PURE__ */ r(ie, { ...ce, children: /* @__PURE__ */ r(
|
|
241
242
|
"div",
|
|
242
243
|
{
|
|
243
244
|
ref: l,
|
|
244
245
|
className: `${p}-${R}`,
|
|
245
|
-
onMouseEnter:
|
|
246
|
-
onMouseLeave:
|
|
247
|
-
children: /* @__PURE__ */ r("div", { className:
|
|
246
|
+
onMouseEnter: qe,
|
|
247
|
+
onMouseLeave: He,
|
|
248
|
+
children: /* @__PURE__ */ r("div", { className: _e, style: f, role: "alert", children: T })
|
|
248
249
|
}
|
|
249
|
-
) })),
|
|
250
|
+
) })), T;
|
|
250
251
|
}
|
|
251
|
-
const be = Z(
|
|
252
|
-
function
|
|
252
|
+
const be = Z(nt);
|
|
253
|
+
function it(e = {}) {
|
|
253
254
|
const {
|
|
254
255
|
maxCount: o,
|
|
255
256
|
duration: t = 3e3,
|
|
256
257
|
prefixCls: c,
|
|
257
258
|
getContainer: a
|
|
258
|
-
} = e, n = M(), i = /* @__PURE__ */ r(
|
|
259
|
+
} = e, n = M(), i = /* @__PURE__ */ r(Oe, { ref: n }), p = {};
|
|
259
260
|
let s;
|
|
260
|
-
function l(
|
|
261
|
+
function l(m) {
|
|
261
262
|
let C, x;
|
|
262
263
|
if (n.current) {
|
|
263
|
-
const
|
|
264
|
-
x =
|
|
264
|
+
const v = n.current.getContextConfig();
|
|
265
|
+
x = v.rtl, C = v.prefixCls;
|
|
265
266
|
}
|
|
266
|
-
const g = c || C, f =
|
|
267
|
+
const g = c || C, f = ne(m.position, x), u = {
|
|
267
268
|
duration: t,
|
|
268
|
-
...
|
|
269
|
+
...m
|
|
269
270
|
}, h = p[f];
|
|
270
271
|
if (h) {
|
|
271
272
|
if (h.notices.length >= o) {
|
|
272
|
-
const
|
|
273
|
-
|
|
273
|
+
const v = h.notices[0];
|
|
274
|
+
u.id = v.id, h.shift();
|
|
274
275
|
}
|
|
275
|
-
h.add({ ...
|
|
276
|
+
h.add({ ...u });
|
|
276
277
|
} else
|
|
277
278
|
s = /* @__PURE__ */ r(
|
|
278
279
|
$,
|
|
279
280
|
{
|
|
280
|
-
...
|
|
281
|
+
...u,
|
|
281
282
|
prefixCls: g,
|
|
282
283
|
rtl: x,
|
|
283
284
|
getContainer: a,
|
|
284
|
-
ref: (
|
|
285
|
-
p[f] =
|
|
285
|
+
ref: (v) => {
|
|
286
|
+
p[f] = v;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
), n.current.addInstance(s);
|
|
289
290
|
return p[f];
|
|
290
291
|
}
|
|
291
292
|
const d = {};
|
|
292
|
-
return
|
|
293
|
-
d[
|
|
293
|
+
return re.forEach((m) => {
|
|
294
|
+
d[m] = (C) => l({
|
|
294
295
|
...C,
|
|
295
|
-
type:
|
|
296
|
+
type: m
|
|
296
297
|
});
|
|
297
298
|
}), [d, i];
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
+
const re = [
|
|
300
301
|
"info",
|
|
301
302
|
"success",
|
|
302
303
|
"error",
|
|
@@ -304,21 +305,21 @@ const oe = [
|
|
|
304
305
|
"loading",
|
|
305
306
|
"normal"
|
|
306
307
|
];
|
|
307
|
-
let I = {}, z = [],
|
|
308
|
-
function
|
|
308
|
+
let I = {}, z = [], ye, Ne, $e, X, S;
|
|
309
|
+
function ne(e, o) {
|
|
309
310
|
return H(e) && (e = o || S ? "topLeft" : "topRight"), e;
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
-
const { prefixCls: o, rtl: t, getContainer: c, notices: a } = e, n = H(t) ? S : t, i =
|
|
312
|
+
function st(e) {
|
|
313
|
+
const { prefixCls: o, rtl: t, getContainer: c, notices: a } = e, n = H(t) ? S : t, i = ne(e.position, n), p = o || Ne, s = p ? `${p}-notification` : "pqb-notification";
|
|
313
314
|
let l;
|
|
314
315
|
i === "topLeft" || i === "bottomLeft" ? l = "slideNoticeLeft" : l = "slideNoticeRight";
|
|
315
316
|
const d = U(
|
|
316
317
|
`${s}-wrapper`,
|
|
317
318
|
`${s}-wrapper-${i}`,
|
|
318
319
|
{ [`${s}-wrapper-rtl`]: S }
|
|
319
|
-
),
|
|
320
|
+
), m = c == null ? void 0 : c();
|
|
320
321
|
function C(g) {
|
|
321
|
-
const f = a.find((
|
|
322
|
+
const f = a.find((u) => u.id === g);
|
|
322
323
|
f && e.update({
|
|
323
324
|
...f,
|
|
324
325
|
style: { ...f.style, opacity: 0 }
|
|
@@ -326,11 +327,11 @@ function it(e) {
|
|
|
326
327
|
e.remove(g);
|
|
327
328
|
}, 200);
|
|
328
329
|
}
|
|
329
|
-
|
|
330
|
+
O(() => (e.add(e), () => {
|
|
330
331
|
e.clear();
|
|
331
332
|
}), []);
|
|
332
|
-
const x = /* @__PURE__ */ r("div", { className: d, children: /* @__PURE__ */ r(
|
|
333
|
-
|
|
333
|
+
const x = /* @__PURE__ */ r("div", { className: d, children: /* @__PURE__ */ r(pe, { component: null, children: a.map((g) => /* @__PURE__ */ r(
|
|
334
|
+
ge,
|
|
334
335
|
{
|
|
335
336
|
timeout: {
|
|
336
337
|
enter: 400,
|
|
@@ -344,8 +345,8 @@ function it(e) {
|
|
|
344
345
|
f && (f.style.height = 0);
|
|
345
346
|
},
|
|
346
347
|
onExited: (f) => {
|
|
347
|
-
var
|
|
348
|
-
f && (f.style.height = 0, (
|
|
348
|
+
var u;
|
|
349
|
+
f && (f.style.height = 0, (u = g.onClose) == null || u.call(g));
|
|
349
350
|
},
|
|
350
351
|
children: /* @__PURE__ */ r(
|
|
351
352
|
be,
|
|
@@ -362,13 +363,13 @@ function it(e) {
|
|
|
362
363
|
},
|
|
363
364
|
g.id
|
|
364
365
|
)) }) });
|
|
365
|
-
return
|
|
366
|
+
return m ? Ve(x, m) : x;
|
|
366
367
|
}
|
|
367
|
-
const $ =
|
|
368
|
-
$.useNotification =
|
|
368
|
+
const $ = he(st);
|
|
369
|
+
$.useNotification = it;
|
|
369
370
|
$.config = (e = {}) => {
|
|
370
371
|
var o;
|
|
371
|
-
|
|
372
|
+
j(e.maxCount) && (ye = e.maxCount), e.prefixCls && (Ne = e.prefixCls), j(e.duration) && ($e = e.duration), typeof e.rtl == "boolean" && (S = e.rtl), e.getContainer && ((o = e.getContainer) == null ? void 0 : o.call(e)) !== X && (X = e.getContainer(), Object.values(I).forEach(
|
|
372
373
|
(t) => {
|
|
373
374
|
var c;
|
|
374
375
|
return (c = t == null ? void 0 : t.clear) == null ? void 0 : c.call(t);
|
|
@@ -386,8 +387,8 @@ $.remove = (e) => {
|
|
|
386
387
|
});
|
|
387
388
|
};
|
|
388
389
|
$.addInstance = (e) => {
|
|
389
|
-
const o =
|
|
390
|
-
duration:
|
|
390
|
+
const o = ne(e.position, S), t = I[o], c = {
|
|
391
|
+
duration: $e,
|
|
391
392
|
...e
|
|
392
393
|
};
|
|
393
394
|
if (t) {
|
|
@@ -397,11 +398,11 @@ $.addInstance = (e) => {
|
|
|
397
398
|
...c,
|
|
398
399
|
update: a
|
|
399
400
|
};
|
|
400
|
-
t.notices.length >=
|
|
401
|
+
t.notices.length >= ye && (a ? n.id = a.id : t.shift()), t.add({ ...n });
|
|
401
402
|
}
|
|
402
403
|
if (t === null && z.push(e), t === void 0) {
|
|
403
404
|
const a = document.createElement("div");
|
|
404
|
-
(X || document.body).appendChild(a),
|
|
405
|
+
(X || document.body).appendChild(a), Ce(a).render(
|
|
405
406
|
/* @__PURE__ */ r(
|
|
406
407
|
$,
|
|
407
408
|
{
|
|
@@ -419,40 +420,40 @@ $.addInstance = (e) => {
|
|
|
419
420
|
}
|
|
420
421
|
return I[o];
|
|
421
422
|
};
|
|
422
|
-
|
|
423
|
+
re.forEach((e) => {
|
|
423
424
|
$[e] = (o) => $.addInstance({
|
|
424
425
|
...o,
|
|
425
426
|
type: e
|
|
426
427
|
});
|
|
427
428
|
});
|
|
428
|
-
function
|
|
429
|
-
const { maxCount: o, duration: t = 3e3, prefixCls: c } = e, a = M(), n =
|
|
430
|
-
() => /* @__PURE__ */ r(
|
|
429
|
+
function lt(e = {}) {
|
|
430
|
+
const { maxCount: o, duration: t = 3e3, prefixCls: c } = e, a = M(), n = Se(
|
|
431
|
+
() => /* @__PURE__ */ r(Oe, { ref: a }),
|
|
431
432
|
[]
|
|
432
433
|
), i = {};
|
|
433
434
|
let p;
|
|
434
435
|
function s(d) {
|
|
435
|
-
let
|
|
436
|
+
let m, C;
|
|
436
437
|
if (a.current) {
|
|
437
438
|
const y = a.current.getContextConfig();
|
|
438
|
-
C = y.rtl,
|
|
439
|
+
C = y.rtl, m = y.prefixCls;
|
|
439
440
|
}
|
|
440
|
-
const x = c ||
|
|
441
|
+
const x = c || m, g = {
|
|
441
442
|
position: "top",
|
|
442
443
|
duration: t,
|
|
443
444
|
...d
|
|
444
|
-
}, { position: f, transitionClassNames:
|
|
445
|
+
}, { position: f, transitionClassNames: u } = g;
|
|
445
446
|
let h;
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const y =
|
|
449
|
-
y.length >= o ? (h = y[0].id,
|
|
447
|
+
const v = i[f];
|
|
448
|
+
if (v) {
|
|
449
|
+
const y = v.notices;
|
|
450
|
+
y.length >= o ? (h = y[0].id, v.shift(), v.add({ ...g, id: h })) : h = v.add(g);
|
|
450
451
|
} else
|
|
451
452
|
p = /* @__PURE__ */ r(
|
|
452
453
|
E,
|
|
453
454
|
{
|
|
454
455
|
...g,
|
|
455
|
-
transitionClassNames:
|
|
456
|
+
transitionClassNames: u,
|
|
456
457
|
prefixCls: x,
|
|
457
458
|
rtl: C,
|
|
458
459
|
ref: (y) => {
|
|
@@ -466,9 +467,9 @@ function st(e = {}) {
|
|
|
466
467
|
};
|
|
467
468
|
}
|
|
468
469
|
const l = {};
|
|
469
|
-
return
|
|
470
|
-
l[d] = (
|
|
471
|
-
const C =
|
|
470
|
+
return Pe.forEach((d) => {
|
|
471
|
+
l[d] = (m) => {
|
|
472
|
+
const C = We(m) ? { content: m } : m;
|
|
472
473
|
return s({
|
|
473
474
|
...C,
|
|
474
475
|
type: d
|
|
@@ -476,9 +477,9 @@ function st(e = {}) {
|
|
|
476
477
|
};
|
|
477
478
|
}), [l, n];
|
|
478
479
|
}
|
|
479
|
-
const
|
|
480
|
-
let k = {}, A = [],
|
|
481
|
-
function
|
|
480
|
+
const Pe = [...re];
|
|
481
|
+
let k = {}, A = [], Ee, Ie, we, Y, Re, Me;
|
|
482
|
+
function ct(e) {
|
|
482
483
|
const {
|
|
483
484
|
transitionClassNames: o,
|
|
484
485
|
transitionTimeout: t,
|
|
@@ -489,38 +490,38 @@ function lt(e) {
|
|
|
489
490
|
position: p
|
|
490
491
|
} = e;
|
|
491
492
|
function s(f) {
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
...
|
|
495
|
-
style: { ...
|
|
493
|
+
const u = e.notices.find((h) => h.id === f);
|
|
494
|
+
u && e.update({
|
|
495
|
+
...u,
|
|
496
|
+
style: { ...u.style, opacity: 0 }
|
|
496
497
|
}), setTimeout(() => {
|
|
497
498
|
e.remove(f);
|
|
498
499
|
}, 100);
|
|
499
500
|
}
|
|
500
|
-
|
|
501
|
+
O(() => (e.add(e), () => {
|
|
501
502
|
e.clear();
|
|
502
503
|
}), []);
|
|
503
|
-
const l = c ||
|
|
504
|
-
enter:
|
|
505
|
-
exit:
|
|
504
|
+
const l = c || Ie, d = H(a) ? Re : a, m = H(n) ? Me : n, C = l ? `${l}-message` : "pqb-message", x = {
|
|
505
|
+
enter: j(t == null ? void 0 : t.enter) ? t == null ? void 0 : t.enter : 100,
|
|
506
|
+
exit: j(t == null ? void 0 : t.exit) ? t == null ? void 0 : t.exit : 300
|
|
506
507
|
}, g = U(
|
|
507
508
|
`${C}-wrapper`,
|
|
508
509
|
`${C}-wrapper-${p}`
|
|
509
510
|
);
|
|
510
|
-
return /* @__PURE__ */ r("div", { className: g, children: /* @__PURE__ */ r(
|
|
511
|
-
|
|
511
|
+
return /* @__PURE__ */ r("div", { className: g, children: /* @__PURE__ */ r(pe, { component: null, children: i.map((f) => /* @__PURE__ */ r(
|
|
512
|
+
ge,
|
|
512
513
|
{
|
|
513
514
|
timeout: x,
|
|
514
515
|
classNames: o || "fadeMessage",
|
|
515
|
-
onExit: (
|
|
516
|
-
|
|
516
|
+
onExit: (u) => {
|
|
517
|
+
u && (u.style.height = `${u.scrollHeight}px`);
|
|
517
518
|
},
|
|
518
|
-
onExiting: (
|
|
519
|
-
|
|
519
|
+
onExiting: (u) => {
|
|
520
|
+
u && (u.style.height = 0);
|
|
520
521
|
},
|
|
521
|
-
onExited: (
|
|
522
|
+
onExited: (u) => {
|
|
522
523
|
var h;
|
|
523
|
-
|
|
524
|
+
u && (u.style.height = 0, (h = f.onClose) == null || h.call(f));
|
|
524
525
|
},
|
|
525
526
|
children: /* @__PURE__ */ r(
|
|
526
527
|
be,
|
|
@@ -532,17 +533,17 @@ function lt(e) {
|
|
|
532
533
|
onClose: s,
|
|
533
534
|
noticeType: "message",
|
|
534
535
|
rtl: d,
|
|
535
|
-
...H(
|
|
536
|
+
...H(m) ? {} : { closable: m }
|
|
536
537
|
}
|
|
537
538
|
)
|
|
538
539
|
},
|
|
539
540
|
f.id
|
|
540
541
|
)) }) });
|
|
541
542
|
}
|
|
542
|
-
const E =
|
|
543
|
+
const E = he(ct);
|
|
543
544
|
E.config = (e = {}) => {
|
|
544
545
|
var o;
|
|
545
|
-
|
|
546
|
+
j(e.maxCount) && (Ee = e.maxCount), e.prefixCls && (Ie = e.prefixCls), j(e.duration) && (we = e.duration), typeof e.rtl == "boolean" && (Re = e.rtl), typeof e.closable == "boolean" && (Me = e.closable), ((o = e.getContainer) == null ? void 0 : o.call(e)) !== Y && (Y = e.getContainer(), Object.values(k).forEach((t) => t == null ? void 0 : t.clear()), k = {});
|
|
546
547
|
};
|
|
547
548
|
E.clear = () => {
|
|
548
549
|
Object.values(k).forEach((e) => {
|
|
@@ -552,7 +553,7 @@ E.clear = () => {
|
|
|
552
553
|
E.addInstance = (e) => {
|
|
553
554
|
const o = {
|
|
554
555
|
position: "top",
|
|
555
|
-
duration:
|
|
556
|
+
duration: we,
|
|
556
557
|
...e
|
|
557
558
|
}, { position: t, transitionClassNames: c, transitionTimeout: a } = o;
|
|
558
559
|
let n;
|
|
@@ -564,14 +565,14 @@ E.addInstance = (e) => {
|
|
|
564
565
|
...o,
|
|
565
566
|
update: s
|
|
566
567
|
};
|
|
567
|
-
i.notices.length >=
|
|
568
|
+
i.notices.length >= Ee ? s ? i.add({
|
|
568
569
|
...l,
|
|
569
570
|
id: s.id
|
|
570
571
|
}) : (i.shift(), i.add(l)) : n = i.add(l);
|
|
571
572
|
}
|
|
572
573
|
if (i === null && A.push(e), i === void 0) {
|
|
573
574
|
const s = document.createElement("div");
|
|
574
|
-
(Y || document.body).appendChild(s),
|
|
575
|
+
(Y || document.body).appendChild(s), Ce(s).render(
|
|
575
576
|
/* @__PURE__ */ r(
|
|
576
577
|
E,
|
|
577
578
|
{
|
|
@@ -580,8 +581,8 @@ E.addInstance = (e) => {
|
|
|
580
581
|
...o,
|
|
581
582
|
ref: (d) => {
|
|
582
583
|
if (d) {
|
|
583
|
-
for (let
|
|
584
|
-
d.add(A[
|
|
584
|
+
for (let m = 0; m < A.length; m++)
|
|
585
|
+
d.add(A[m]);
|
|
585
586
|
A = [], k[t] = d;
|
|
586
587
|
}
|
|
587
588
|
}
|
|
@@ -594,7 +595,7 @@ E.addInstance = (e) => {
|
|
|
594
595
|
(l = (s = k[t]) == null ? void 0 : s.remove) == null || l.call(s, n);
|
|
595
596
|
};
|
|
596
597
|
};
|
|
597
|
-
|
|
598
|
+
Pe.forEach((e) => {
|
|
598
599
|
E[e] = (o) => {
|
|
599
600
|
const t = typeof o == "string" ? { content: o } : o;
|
|
600
601
|
return E.addInstance({
|
|
@@ -603,8 +604,8 @@ $e.forEach((e) => {
|
|
|
603
604
|
});
|
|
604
605
|
};
|
|
605
606
|
});
|
|
606
|
-
E.useMessage =
|
|
607
|
-
const
|
|
607
|
+
E.useMessage = lt;
|
|
608
|
+
const at = {
|
|
608
609
|
primaryColor: {
|
|
609
610
|
default: "--pqbblue-6",
|
|
610
611
|
hover: "--pqbblue-5",
|
|
@@ -630,12 +631,12 @@ const ct = {
|
|
|
630
631
|
hover: "--red-5",
|
|
631
632
|
active: "--red-7"
|
|
632
633
|
}
|
|
633
|
-
},
|
|
634
|
-
function
|
|
635
|
-
const o =
|
|
634
|
+
}, ft = ve, dt = {};
|
|
635
|
+
function ie(e) {
|
|
636
|
+
const o = oe(
|
|
636
637
|
e,
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
ft,
|
|
639
|
+
dt
|
|
639
640
|
), {
|
|
640
641
|
theme: t,
|
|
641
642
|
prefixCls: c,
|
|
@@ -645,32 +646,32 @@ function ne(e) {
|
|
|
645
646
|
effectGlobalNotice: p = !0,
|
|
646
647
|
effectGlobalModal: s = !0
|
|
647
648
|
} = o, l = {
|
|
648
|
-
...
|
|
649
|
+
...Ye(o, ["children"]),
|
|
649
650
|
getPrefixCls: d
|
|
650
651
|
};
|
|
651
652
|
function d(C, x) {
|
|
652
653
|
return `${x || c}-${C}`;
|
|
653
654
|
}
|
|
654
|
-
|
|
655
|
-
t &&
|
|
656
|
-
const
|
|
657
|
-
if (!
|
|
658
|
-
const h = new
|
|
659
|
-
|
|
655
|
+
O(() => {
|
|
656
|
+
t && Le(t) && Object.entries(at).forEach(([C, x], g, f) => {
|
|
657
|
+
const u = t[C];
|
|
658
|
+
if (!u) return;
|
|
659
|
+
const h = new Fe(u), v = window.document.body;
|
|
660
|
+
v.style.setProperty(x.default, h.lighten(0).toRgbArrayString()), t[`${C}Hover`] || v.style.setProperty(x.hover, h.lighten(10).toRgbArrayString()), t[`${C}Active`] || v.style.setProperty(x.active, h.lighten(-10).toRgbArrayString());
|
|
660
661
|
});
|
|
661
|
-
}, [t]),
|
|
662
|
+
}, [t]), O(() => {
|
|
662
663
|
p && (E.config({ prefixCls: c, rtl: i }), $.config({ prefixCls: c, rtl: i }));
|
|
663
|
-
}, [c, i, p]),
|
|
664
|
-
s &&
|
|
664
|
+
}, [c, i, p]), O(() => {
|
|
665
|
+
s && Xe({ locale: n, prefixCls: c, rtl: i });
|
|
665
666
|
}, [n, c, i, s]);
|
|
666
|
-
let
|
|
667
|
-
return c && c !==
|
|
667
|
+
let m = a;
|
|
668
|
+
return c && c !== te && (m = /* @__PURE__ */ r(W.Provider, { value: { prefixCls: c }, children: a })), /* @__PURE__ */ r(w.Provider, { value: l, children: m });
|
|
668
669
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
function
|
|
673
|
-
const t = D(w), [c, a] =
|
|
670
|
+
ie.ConfigContext = w;
|
|
671
|
+
ie.displayName = "ConfigProvider";
|
|
672
|
+
const Bt = w.Consumer;
|
|
673
|
+
function ke(e, o) {
|
|
674
|
+
const t = D(w), [c, a] = Ue([]);
|
|
674
675
|
function n(s) {
|
|
675
676
|
a((l) => [...l, s]);
|
|
676
677
|
}
|
|
@@ -691,23 +692,23 @@ function Me(e, o) {
|
|
|
691
692
|
(s, l) => Q.cloneElement(s, { key: l })
|
|
692
693
|
);
|
|
693
694
|
}
|
|
694
|
-
|
|
695
|
-
const
|
|
695
|
+
ke.displayName = "ContextHolderElement";
|
|
696
|
+
const Oe = Z(ke);
|
|
696
697
|
export {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
Bt as C,
|
|
699
|
+
ve as D,
|
|
700
|
+
et as E,
|
|
700
701
|
ue as I,
|
|
701
702
|
E as M,
|
|
702
703
|
$ as N,
|
|
703
704
|
w as a,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
705
|
+
ie as b,
|
|
706
|
+
it as c,
|
|
707
|
+
Oe as d,
|
|
708
|
+
at as e,
|
|
708
709
|
be as f,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
ne as g,
|
|
711
|
+
Pe as m,
|
|
712
|
+
re as n,
|
|
713
|
+
lt as u
|
|
713
714
|
};
|