@unicom-cloud/ui 0.8.74 → 0.8.75
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 +1 -1
- 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 +1 -1
- 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/{Bu8A2l60.js → 0mWCmQHr.js} +2 -2
- package/chunk/{DJ8rDYjb.js → B8hkFIar.js} +1 -1
- package/chunk/{D5UfU6-H.js → BViFMHr-.js} +3 -3
- package/chunk/{CWjvjpyc.js → BbqvFW5R.js} +217 -163
- package/chunk/{NmSLBKjp.js → BxZ39GzB.js} +1 -1
- package/chunk/C9XYyypq.js +713 -0
- package/chunk/CIkPwQlq.js +6 -0
- package/chunk/{BoUHPeG7.js → CPlPBkN7.js} +1 -1
- package/chunk/CWlklVfi.js +257 -0
- package/chunk/{Dn7KbmZ7.js → DFcz9ZPP.js} +2 -2
- package/chunk/{DdT3C0ih.js → DeCsZrXb.js} +2 -2
- package/chunk/DskaI8QL.js +25 -0
- package/chunk/{Bd9zhOZS.js → Dv6USvVF.js} +1 -1
- package/chunk/{BDZpJpz-.js → EL5Jmjgr.js} +1 -1
- package/chunk/{_L2dKF58.js → WVoGhvMI.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 +7 -7
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +5 -5
- package/color-picker/Panel.js +3 -3
- package/color-picker/colors.js +7 -23
- 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 +2 -2
- package/config-provider/context.js +1 -1
- 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 +488 -484
- 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 +1 -1
- 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 +375 -710
- 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/config-provider/interface.d.ts +0 -1
- package/types/utils/constant.d.ts +1 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +4 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -9
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +9 -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/color.js +1 -1
- package/utils/constant.js +3 -2
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +202 -198
- package/utils/setDarkTheme.js +7 -0
- package/utils/tinycolor.js +3 -3
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/9we0Q8Kh.js +0 -257
- package/chunk/Crs3isAx.js +0 -724
- package/chunk/D0ZWT7db.js +0 -5
|
@@ -6,7 +6,7 @@ import G from "lodash/isArray";
|
|
|
6
6
|
import Ge from "lodash/isPlainObject";
|
|
7
7
|
import Fn from "lodash/isUndefined";
|
|
8
8
|
import _n, { useContext as ce, useMemo as un, forwardRef as Wn, useRef as Ve, useImperativeHandle as Bn, useState as ie, useEffect as Ke } from "react";
|
|
9
|
-
import { a as Re } from "./
|
|
9
|
+
import { a as Re } from "./C9XYyypq.js";
|
|
10
10
|
import { u as zn } from "./BFTV6myl.js";
|
|
11
11
|
import { u as Xt } from "./VSe_Wq1g.js";
|
|
12
12
|
import { u as Zt } from "./a3hR6zLw.js";
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { jsxs as w, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import U from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
3
|
+
import L from "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
|
+
import V from "lodash/isFunction";
|
|
5
|
+
import M, { useContext as K, useRef as A, createContext as B } from "react";
|
|
6
|
+
import { a as T, I as S } from "./C9XYyypq.js";
|
|
7
|
+
import { u as q } from "./BFTV6myl.js";
|
|
8
|
+
import { u as D } from "./DeV0v__J.js";
|
|
9
|
+
import { p } from "./CUFsOxJ2.js";
|
|
10
|
+
import { o as G } from "./BKKEev13.js";
|
|
11
|
+
import { u as J } from "./BJ9_azwQ.js";
|
|
12
|
+
import { u as Q } from "./XTEsYGuF.js";
|
|
13
|
+
import { off as W, on as X } from "../utils/dom.js";
|
|
14
|
+
function Y(d, m) {
|
|
15
|
+
var C;
|
|
16
|
+
const { getPrefixCls: g } = K(T), n = K(j), I = Q(), {
|
|
17
|
+
children: s,
|
|
18
|
+
name: a,
|
|
19
|
+
header: $,
|
|
20
|
+
className: H,
|
|
21
|
+
style: E,
|
|
22
|
+
contentStyle: b,
|
|
23
|
+
extra: x,
|
|
24
|
+
disabled: c,
|
|
25
|
+
destroyOnHide: y,
|
|
26
|
+
expandIcon: v,
|
|
27
|
+
showExpandIcon: N = !0,
|
|
28
|
+
...P
|
|
29
|
+
} = d, i = A(), h = A(), t = g("collapse-item"), l = ((C = n.activeKeys) == null ? void 0 : C.indexOf(a)) > -1, u = N ? "expandIcon" in d ? v : n.expandIcon : null, f = (e, o) => {
|
|
30
|
+
var O;
|
|
31
|
+
if (c)
|
|
32
|
+
return;
|
|
33
|
+
const { triggerRegion: R } = n;
|
|
34
|
+
(o === (R === "icon" ? 0 : R === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
|
|
35
|
+
R === "header" && [0, 1].includes(o)) && ((O = n.onToggle) == null || O.call(n, a, e));
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ w(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: m,
|
|
41
|
+
...P,
|
|
42
|
+
className: p(
|
|
43
|
+
t,
|
|
44
|
+
{
|
|
45
|
+
[`${t}-active`]: l,
|
|
46
|
+
[`${t}-no-icon`]: !u,
|
|
47
|
+
[`${t}-disabled`]: c
|
|
48
|
+
},
|
|
49
|
+
H
|
|
50
|
+
),
|
|
51
|
+
style: E,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ w(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
role: "button",
|
|
57
|
+
"aria-disabled": c,
|
|
58
|
+
"aria-expanded": l,
|
|
59
|
+
"data-active-region": n.triggerRegion,
|
|
60
|
+
tabIndex: c ? -1 : 0,
|
|
61
|
+
className: p(
|
|
62
|
+
`${t}-header`,
|
|
63
|
+
`${t}-header-${n.expandIconPosition}`,
|
|
64
|
+
{
|
|
65
|
+
[`${t}-header-disabled`]: c
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
onClick: (e) => f(e, 2),
|
|
69
|
+
...I({
|
|
70
|
+
onPressEnter: (e) => {
|
|
71
|
+
!c && n.onToggle(a, e);
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
children: [
|
|
75
|
+
u && /* @__PURE__ */ r(
|
|
76
|
+
S,
|
|
77
|
+
{
|
|
78
|
+
prefix: t,
|
|
79
|
+
disabled: c,
|
|
80
|
+
className: p({
|
|
81
|
+
[`${t}-icon-hover-right`]: n.expandIconPosition === "right",
|
|
82
|
+
[`${t}-header-icon-right`]: n.expandIconPosition === "right"
|
|
83
|
+
}),
|
|
84
|
+
onClick: (e) => f(e, 0),
|
|
85
|
+
children: /* @__PURE__ */ r(
|
|
86
|
+
"span",
|
|
87
|
+
{
|
|
88
|
+
className: p(`${t}-header-icon`, {
|
|
89
|
+
[`${t}-header-icon-down`]: l
|
|
90
|
+
}),
|
|
91
|
+
children: u
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ r(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: `${t}-header-title`,
|
|
100
|
+
onClick: (e) => f(e, 1),
|
|
101
|
+
children: $
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
x && /* @__PURE__ */ r(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: `${t}-header-extra`,
|
|
108
|
+
onClick: (e) => {
|
|
109
|
+
e.stopPropagation();
|
|
110
|
+
},
|
|
111
|
+
children: x
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ r(
|
|
118
|
+
J,
|
|
119
|
+
{
|
|
120
|
+
nodeRef: i,
|
|
121
|
+
in: l,
|
|
122
|
+
addEndListener: (e) => {
|
|
123
|
+
W(i.current, "transitionend", e), X(i.current, "transitionend", e);
|
|
124
|
+
},
|
|
125
|
+
mountOnEnter: "destroyOnHide" in d ? y : n.destroyOnHide || n.lazyload,
|
|
126
|
+
unmountOnExit: "destroyOnHide" in d ? y : n.destroyOnHide,
|
|
127
|
+
onEnter: () => {
|
|
128
|
+
const e = i.current;
|
|
129
|
+
e && (e.style.height = "0", e.style.display = "block");
|
|
130
|
+
},
|
|
131
|
+
onEntering: () => {
|
|
132
|
+
const e = i.current, o = h.current;
|
|
133
|
+
e && o && (e.style.height = `${Math.max(e.scrollHeight, o.scrollHeight)}px`);
|
|
134
|
+
},
|
|
135
|
+
onEntered: () => {
|
|
136
|
+
const e = i.current;
|
|
137
|
+
e && (e.style.height = "auto");
|
|
138
|
+
},
|
|
139
|
+
onExit: () => {
|
|
140
|
+
const e = i.current, o = h.current;
|
|
141
|
+
e && o && (e.offsetHeight, o.offsetHeight, e.style.display = "block", e.style.height = `${Math.max(e.offsetHeight, o.offsetHeight)}px`, e.offsetHeight, o.offsetHeight);
|
|
142
|
+
},
|
|
143
|
+
onExiting: () => {
|
|
144
|
+
const e = i.current;
|
|
145
|
+
e && (e.style.height = "0");
|
|
146
|
+
},
|
|
147
|
+
onExited: () => {
|
|
148
|
+
const e = i.current;
|
|
149
|
+
e && (e.style.display = "none", e.style.height = "auto");
|
|
150
|
+
},
|
|
151
|
+
children: /* @__PURE__ */ r(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
ref: i,
|
|
155
|
+
role: "region",
|
|
156
|
+
className: p(`${t}-content`, {
|
|
157
|
+
[`${t}-content-expanded`]: l
|
|
158
|
+
}),
|
|
159
|
+
children: /* @__PURE__ */ r(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
ref: h,
|
|
163
|
+
style: b,
|
|
164
|
+
className: `${t}-content-box`,
|
|
165
|
+
children: s
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
const z = M.forwardRef(
|
|
177
|
+
Y
|
|
178
|
+
);
|
|
179
|
+
z.displayName = "CollapseItem";
|
|
180
|
+
const k = (d, m) => {
|
|
181
|
+
const g = [].concat(d);
|
|
182
|
+
return m ? g.slice(0, 1) : g;
|
|
183
|
+
}, Z = {
|
|
184
|
+
bordered: !0,
|
|
185
|
+
lazyload: !0,
|
|
186
|
+
expandIconPosition: "left"
|
|
187
|
+
}, j = B({
|
|
188
|
+
expandIconPosition: "left",
|
|
189
|
+
expandIcon: /* @__PURE__ */ r(L, {}),
|
|
190
|
+
activeKeys: [],
|
|
191
|
+
onToggle: () => {
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
function _(d, m) {
|
|
195
|
+
const { getPrefixCls: g, componentConfig: n, rtl: I } = K(T), s = q(
|
|
196
|
+
d,
|
|
197
|
+
Z,
|
|
198
|
+
n == null ? void 0 : n.Collapse
|
|
199
|
+
), [a, $] = D([], {
|
|
200
|
+
defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
|
|
201
|
+
value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
|
|
202
|
+
}), {
|
|
203
|
+
children: H,
|
|
204
|
+
className: E,
|
|
205
|
+
style: b,
|
|
206
|
+
bordered: x,
|
|
207
|
+
lazyload: c,
|
|
208
|
+
expandIcon: y,
|
|
209
|
+
expandIconPosition: v,
|
|
210
|
+
destroyOnHide: N,
|
|
211
|
+
accordion: P,
|
|
212
|
+
triggerRegion: i,
|
|
213
|
+
onChange: h,
|
|
214
|
+
...t
|
|
215
|
+
} = s, l = g("collapse"), u = (f, C) => {
|
|
216
|
+
let e = [...a || []];
|
|
217
|
+
const o = a == null ? void 0 : a.indexOf(f);
|
|
218
|
+
o > -1 ? e.splice(o, 1) : P ? e = [f] : e.push(f), "activeKey" in s || $(e), V(h) && h(f, e, C);
|
|
219
|
+
};
|
|
220
|
+
return /* @__PURE__ */ r(
|
|
221
|
+
j.Provider,
|
|
222
|
+
{
|
|
223
|
+
value: {
|
|
224
|
+
activeKeys: a,
|
|
225
|
+
triggerRegion: i,
|
|
226
|
+
lazyload: c,
|
|
227
|
+
destroyOnHide: N,
|
|
228
|
+
expandIconPosition: v,
|
|
229
|
+
onToggle: u,
|
|
230
|
+
expandIcon: "expandIcon" in s ? y : v === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
|
|
231
|
+
},
|
|
232
|
+
children: /* @__PURE__ */ r(
|
|
233
|
+
"div",
|
|
234
|
+
{
|
|
235
|
+
ref: m,
|
|
236
|
+
...G(t, ["activeKey", "defaultActiveKey"]),
|
|
237
|
+
className: p(
|
|
238
|
+
l,
|
|
239
|
+
`${l}-${x ? "border" : "borderless"}`,
|
|
240
|
+
{ [`${l}-rtl`]: I },
|
|
241
|
+
E
|
|
242
|
+
),
|
|
243
|
+
style: b,
|
|
244
|
+
children: H
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
const ee = M.forwardRef(_), F = ee;
|
|
251
|
+
F.displayName = "Collapse";
|
|
252
|
+
F.Item = z;
|
|
253
|
+
export {
|
|
254
|
+
F as C,
|
|
255
|
+
z as I,
|
|
256
|
+
j as a
|
|
257
|
+
};
|
|
@@ -12,7 +12,7 @@ import W from "lodash/isFunction";
|
|
|
12
12
|
import oe from "lodash/isPlainObject";
|
|
13
13
|
import Y from "lodash/isString";
|
|
14
14
|
import Je, { useRef as z, useState as le, useCallback as se, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
|
|
15
|
-
import { a as Ye } from "./
|
|
15
|
+
import { a as Ye } from "./C9XYyypq.js";
|
|
16
16
|
import { u as ue } from "./CQ_WOOmf.js";
|
|
17
17
|
import { u as Ze } from "./B4YRLi8r.js";
|
|
18
18
|
import { u as et } from "./BFTV6myl.js";
|
|
@@ -26,7 +26,7 @@ import { b as at } from "./BJ9_azwQ.js";
|
|
|
26
26
|
import me from "lodash/isEqualWith";
|
|
27
27
|
import ee from "lodash/get";
|
|
28
28
|
import { p as it } from "./Coz3rCng.js";
|
|
29
|
-
import { C as Oe } from "./
|
|
29
|
+
import { C as Oe } from "./BxZ39GzB.js";
|
|
30
30
|
import { u as ct } from "./oopARUrq.js";
|
|
31
31
|
import { on as Le, off as de } from "../utils/dom.js";
|
|
32
32
|
import "./DAAff-FT.js";
|
|
@@ -5,8 +5,8 @@ import Z from "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import p from "lodash/isFunction";
|
|
7
7
|
import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
|
|
8
|
-
import { C as ae } from "./
|
|
9
|
-
import { a as B, I as re } from "./
|
|
8
|
+
import { C as ae } from "./BxZ39GzB.js";
|
|
9
|
+
import { a as B, I as re } from "./C9XYyypq.js";
|
|
10
10
|
import { p as O } from "./CUFsOxJ2.js";
|
|
11
11
|
import oe from "../utils/throttleByRaf.js";
|
|
12
12
|
import se from "lodash/isNumber";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { T as c } from "./CIkPwQlq.js";
|
|
2
|
+
const t = "dark";
|
|
3
|
+
function d(e, s) {
|
|
4
|
+
e.classList.add(s);
|
|
5
|
+
}
|
|
6
|
+
function a(e, s) {
|
|
7
|
+
e.classList.remove(s);
|
|
8
|
+
}
|
|
9
|
+
function i(e) {
|
|
10
|
+
const {
|
|
11
|
+
element: s = window.document.body,
|
|
12
|
+
className: o = c,
|
|
13
|
+
mode: n = t
|
|
14
|
+
} = e ?? {};
|
|
15
|
+
return n === t ? d(s, o) : a(s, o), () => {
|
|
16
|
+
a(s, o);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function r(e) {
|
|
20
|
+
i({ ...e, mode: "light" });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
r,
|
|
24
|
+
i as s
|
|
25
|
+
};
|
|
@@ -15,7 +15,7 @@ import Pt from "@unicom-cloud/icons/IconUiZoomIn";
|
|
|
15
15
|
import Lt from "@unicom-cloud/icons/IconUiZoomOut";
|
|
16
16
|
import zt from "lodash/isUndefined";
|
|
17
17
|
import { useState as g, forwardRef as Nt, useContext as ke, useRef as x, useMemo as Ce, useImperativeHandle as Mt, useCallback as Tt, useEffect as v } from "react";
|
|
18
|
-
import { a as At, b as Ot } from "./
|
|
18
|
+
import { a as At, b as Ot } from "./C9XYyypq.js";
|
|
19
19
|
import "lodash/isEqualWith";
|
|
20
20
|
import { u as Et } from "./DeV0v__J.js";
|
|
21
21
|
import "./DAAff-FT.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "lodash/isFunction";
|
|
3
3
|
import L from "lodash/isNil";
|
|
4
4
|
import Q, { createContext as S, useContext as G, useRef as T } from "react";
|
|
5
|
-
import { a as j, I as q } from "./
|
|
5
|
+
import { a as j, I as q } from "./C9XYyypq.js";
|
|
6
6
|
import { u as A } from "./BFTV6myl.js";
|
|
7
7
|
import { u as D } from "./DeV0v__J.js";
|
|
8
8
|
import { p as F } from "./CUFsOxJ2.js";
|
|
@@ -3,7 +3,7 @@ import ln from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import Ie from "lodash/isFunction";
|
|
4
4
|
import sn, { forwardRef as Oe, useState as $, useImperativeHandle as an, useRef as x, useContext as cn, useCallback as U, useEffect as oe } from "react";
|
|
5
5
|
import De from "../button/index.js";
|
|
6
|
-
import { b as Le, d as un, a as dn, I as mn } from "./
|
|
6
|
+
import { b as Le, d as un, a as dn, I as mn } from "./C9XYyypq.js";
|
|
7
7
|
import { u as fn } from "./oopARUrq.js";
|
|
8
8
|
import { u as pn } from "./BFTV6myl.js";
|
|
9
9
|
import { u as Cn } from "./DeV0v__J.js";
|
package/collapse/Collapse.js
CHANGED
|
@@ -3,12 +3,12 @@ import "@unicom-cloud/icons/IconUiCaretLeft";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
4
|
import "lodash/isFunction";
|
|
5
5
|
import "react";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/C9XYyypq.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../chunk/DeV0v__J.js";
|
|
9
9
|
import "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
|
-
import { a as x, C as d } from "../chunk/
|
|
11
|
+
import { a as x, C as d } from "../chunk/CWlklVfi.js";
|
|
12
12
|
export {
|
|
13
13
|
x as CollapseContext,
|
|
14
14
|
d as default
|
package/collapse/Item.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/C9XYyypq.js";
|
|
5
5
|
import "../chunk/XTEsYGuF.js";
|
|
6
6
|
import "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import "../utils/dom.js";
|
|
8
|
-
import { I as d } from "../chunk/
|
|
8
|
+
import { I as d } from "../chunk/CWlklVfi.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/collapse/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as b } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/C9XYyypq.js";
|
|
4
4
|
import { p as B } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import { u as R } from "../chunk/k-OUstoD.js";
|
|
6
6
|
const P = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as i } from "react";
|
|
3
|
-
import { a as p } from "../chunk/
|
|
3
|
+
import { a as p } from "../chunk/C9XYyypq.js";
|
|
4
4
|
import { InputNumber as s } from "../input/Input.js";
|
|
5
5
|
const l = ({ value: o, onChange: t }) => {
|
|
6
6
|
const { getPrefixCls: n } = i(p), r = n("color-picker");
|
package/color-picker/InputHex.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as v, jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../chunk/BbqvFW5R.js";
|
|
3
3
|
import { useContext as I, useState as j, useEffect as D } from "react";
|
|
4
|
-
import { a as E } from "../chunk/
|
|
4
|
+
import { a as E } from "../chunk/C9XYyypq.js";
|
|
5
5
|
import f from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as H } from "./InputAlpha.js";
|
|
7
7
|
const N = ({
|
|
@@ -20,8 +20,8 @@ const N = ({
|
|
|
20
20
|
const t = ((p = e.match(/[a-fA-F0-9]*/g)) == null ? void 0 : p.join("")) ?? "";
|
|
21
21
|
t !== o && a(t.toUpperCase());
|
|
22
22
|
}, i = () => {
|
|
23
|
-
let e = new
|
|
24
|
-
e.ok || (e = new
|
|
23
|
+
let e = new m(o);
|
|
24
|
+
e.ok || (e = new m({
|
|
25
25
|
r: 255,
|
|
26
26
|
g: 0,
|
|
27
27
|
b: 0
|
|
@@ -33,7 +33,7 @@ const N = ({
|
|
|
33
33
|
t.startsWith("#") && (t = t.slice(1)), r(t), e.preventDefault();
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ v(f.Group, { className: `${s}-input-group`, compact: !0, children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ c(
|
|
37
37
|
f,
|
|
38
38
|
{
|
|
39
39
|
className: `${s}-input-hex`,
|
|
@@ -47,7 +47,7 @@ const N = ({
|
|
|
47
47
|
onPaste: C
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
!l && /* @__PURE__ */
|
|
50
|
+
!l && /* @__PURE__ */ c(H, { value: u, onChange: h })
|
|
51
51
|
] });
|
|
52
52
|
};
|
|
53
53
|
export {
|
package/color-picker/InputRgb.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as x } from "../chunk/BbqvFW5R.js";
|
|
3
3
|
import { useContext as f } from "react";
|
|
4
|
-
import { a as b } from "../chunk/
|
|
4
|
+
import { a as b } from "../chunk/C9XYyypq.js";
|
|
5
5
|
import I, { InputNumber as m } from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as d } from "./InputAlpha.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
color: s,
|
|
9
9
|
alpha: p,
|
|
10
|
-
onHsvChange:
|
|
11
|
-
onAlphaChange:
|
|
10
|
+
onHsvChange: u,
|
|
11
|
+
onAlphaChange: a,
|
|
12
12
|
disabledAlpha: c
|
|
13
13
|
}) => {
|
|
14
14
|
const { getPrefixCls: g } = f(b), C = g("color-picker"), t = (n) => {
|
|
@@ -17,7 +17,7 @@ const E = ({
|
|
|
17
17
|
g: n.g,
|
|
18
18
|
b: n.b
|
|
19
19
|
}).toHsv_();
|
|
20
|
-
|
|
20
|
+
u(l);
|
|
21
21
|
}, { r, g: e, b: i } = s.rgb;
|
|
22
22
|
return /* @__PURE__ */ h(I.Group, { className: `${C}-input-group`, compact: !0, children: [
|
|
23
23
|
/* @__PURE__ */ o(
|
|
@@ -53,7 +53,7 @@ const E = ({
|
|
|
53
53
|
onChange: (n) => t({ r, g: e, b: n })
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
!c && /* @__PURE__ */ o(d, { value: p, onChange:
|
|
56
|
+
!c && /* @__PURE__ */ o(d, { value: p, onChange: a })
|
|
57
57
|
] });
|
|
58
58
|
};
|
|
59
59
|
export {
|
package/color-picker/Palette.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as C } from "../chunk/BbqvFW5R.js";
|
|
3
3
|
import { useContext as d, useMemo as h } from "react";
|
|
4
|
-
import { a as g } from "../chunk/
|
|
4
|
+
import { a as g } from "../chunk/C9XYyypq.js";
|
|
5
5
|
import { u as x } from "../chunk/k-OUstoD.js";
|
|
6
|
-
const w = ({ color:
|
|
7
|
-
const { getPrefixCls: a } = d(g), e = a("color-picker"), { h: r, s: t, v: n } =
|
|
6
|
+
const w = ({ color: c, onChange: l }) => {
|
|
7
|
+
const { getPrefixCls: a } = d(g), e = a("color-picker"), { h: r, s: t, v: n } = c.hsv, { blockRef: f, handlerRef: i, onMouseDown: m } = x({
|
|
8
8
|
value: [t, 1 - n],
|
|
9
|
-
onChange: (o) =>
|
|
9
|
+
onChange: (o) => l(o[0], 1 - o[1])
|
|
10
10
|
}), p = h(() => new C({ h: r * 360, s: 100, v: 100 }).toRgbString(), [r]), u = () => /* @__PURE__ */ s(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
package/color-picker/Panel.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as d } from "../chunk/BbqvFW5R.js";
|
|
3
3
|
import { useContext as ar, useState as ir, useMemo as sr } from "react";
|
|
4
|
-
import { a as dr } from "../chunk/
|
|
5
|
-
import { R as x } from "../chunk/
|
|
4
|
+
import { a as dr } from "../chunk/C9XYyypq.js";
|
|
5
|
+
import { R as x } from "../chunk/EL5Jmjgr.js";
|
|
6
6
|
import mr from "../select/Select.js";
|
|
7
7
|
import X from "../tooltip/index.js";
|
|
8
8
|
import { p as ur } from "../chunk/CUFsOxJ2.js";
|
package/color-picker/colors.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
new
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
7
|
-
// return uiColor.paletteDark({ color: v });
|
|
8
|
-
// }),
|
|
9
|
-
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
10
|
-
// return uiColor.generate({
|
|
11
|
-
// color: v,
|
|
12
|
-
// });
|
|
13
|
-
// }),
|
|
14
|
-
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
15
|
-
// return uiColor.generateDark({
|
|
16
|
-
// color: v,
|
|
17
|
-
// });
|
|
18
|
-
// }),
|
|
19
|
-
// new Array(13).fill('').map((v, i, a) => {
|
|
20
|
-
// return tinyColor.darken(i * 8).toHexString();
|
|
21
|
-
// }),
|
|
1
|
+
import { c as r, R as o } from "../chunk/BbqvFW5R.js";
|
|
2
|
+
new r("#eee");
|
|
3
|
+
const n = [
|
|
4
|
+
o.colors.map((e, l, a) => o.palette({ color: e.value, level: 4 })),
|
|
5
|
+
o.colors.map((e, l, a) => e.value)
|
|
22
6
|
// '#00B42A',
|
|
23
7
|
// '#3C7EFF',
|
|
24
8
|
// '#FF7D00',
|
|
@@ -43,6 +27,6 @@ const i = [
|
|
|
43
27
|
// '#9FD4FD',
|
|
44
28
|
].flat(1 / 0).filter(Boolean);
|
|
45
29
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
n as colors,
|
|
31
|
+
n as default
|
|
48
32
|
};
|
package/color-picker/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsx as P, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import te from "lodash/isFunction";
|
|
3
3
|
import ne from "lodash/isNil";
|
|
4
4
|
import ie, { useState as k, useRef as L, useMemo as q, useCallback as Q, useEffect as D, useContext as se } from "react";
|
|
5
|
-
import { a as ae } from "../chunk/
|
|
5
|
+
import { a as ae } from "../chunk/C9XYyypq.js";
|
|
6
6
|
import le from "../copy/index.js";
|
|
7
7
|
import { u as ce } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import de from "../trigger/index.js";
|
|
9
9
|
import { p as ue } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import { colors as fe } from "./colors.js";
|
|
11
|
-
import {
|
|
11
|
+
import { c as U } from "../chunk/BbqvFW5R.js";
|
|
12
12
|
import { u as me } from "../chunk/oopARUrq.js";
|
|
13
13
|
import { u as W } from "../chunk/DeV0v__J.js";
|
|
14
14
|
import { ColorPickerMode as w } from "./interface.js";
|
package/color-picker/utils.js
CHANGED
package/comment/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "lodash/isPlainObject";
|
|
3
3
|
import N from "lodash/isString";
|
|
4
4
|
import { forwardRef as u, useContext as v } from "react";
|
|
5
|
-
import { a as C } from "../chunk/
|
|
5
|
+
import { a as C } from "../chunk/C9XYyypq.js";
|
|
6
6
|
import { u as x } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import { p as d } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { a as P } from "../chunk/ClqoGc3r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/context";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/BbqvFW5R.js";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
|
-
import { C as f, a as n, e as g, b as l } from "../chunk/
|
|
7
|
+
import { C as f, a as n, e as g, b as l } from "../chunk/C9XYyypq.js";
|
|
8
8
|
import "../modal/config.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
10
|
export {
|
package/config-provider/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as r } from "../chunk/
|
|
2
|
-
import { C as s, a as f, e as t } from "../chunk/
|
|
1
|
+
import { b as r } from "../chunk/C9XYyypq.js";
|
|
2
|
+
import { C as s, a as f, e as t } from "../chunk/C9XYyypq.js";
|
|
3
3
|
export {
|
|
4
4
|
s as ConfigConsumer,
|
|
5
5
|
f as ConfigContext,
|
package/copy/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
|
2
2
|
import h from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
3
|
import b from "@unicom-cloud/icons/IconUiCopy";
|
|
4
4
|
import { useContext as P, useState as w, useRef as E, useEffect as k } from "react";
|
|
5
|
-
import { a as v } from "../chunk/
|
|
5
|
+
import { a as v } from "../chunk/C9XYyypq.js";
|
|
6
6
|
import { u as I } from "../chunk/XTEsYGuF.js";
|
|
7
7
|
import N from "../tooltip/index.js";
|
|
8
8
|
import { p as $ } from "../chunk/CUFsOxJ2.js";
|
package/date-picker/Picker.js
CHANGED
|
@@ -6,7 +6,7 @@ import Ie from "lodash/isArray";
|
|
|
6
6
|
import bo from "lodash/isPlainObject";
|
|
7
7
|
import ko from "lodash/isUndefined";
|
|
8
8
|
import jo, { forwardRef as To, useContext as Lo, useRef as ie, useImperativeHandle as No, useState as m, useEffect as Ho } from "react";
|
|
9
|
-
import { a as Mo } from "../chunk/
|
|
9
|
+
import { a as Mo } from "../chunk/C9XYyypq.js";
|
|
10
10
|
import { u as Io } from "../chunk/BFTV6myl.js";
|
|
11
11
|
import { u as Ee } from "../chunk/VSe_Wq1g.js";
|
|
12
12
|
import { u as Eo } from "../chunk/a3hR6zLw.js";
|