@unicom-cloud/ui 0.8.69 → 0.8.71
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 +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +2 -2
- 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 +2 -2
- package/Space.js +1 -1
- package/SpeechSynthesis.js +3 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +1 -1
- package/alert/index.js +2 -2
- 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 +2 -2
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- 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 +3 -3
- 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/{CKyu68pu.js → 8V534cS3.js} +3 -3
- package/chunk/{CCv-5KFt.js → BHL-PzAD.js} +149 -152
- package/chunk/BL9DMeor.js +9 -0
- package/chunk/{Clo26EcR.js → BPD5iNdA.js} +16 -21
- package/chunk/BlElSWJg.js +257 -0
- package/chunk/{SSK90wgo.js → BzPNDYAX.js} +1 -1
- package/chunk/{CgurXnoy.js → C5X9bDyX.js} +4 -4
- package/chunk/C6AJxF7d.js +1820 -0
- package/chunk/CQTxhsUk.js +170 -0
- package/chunk/{C98ks5S8.js → CUs1AOCZ.js} +2 -2
- package/chunk/CZWGeRVA.js +715 -0
- package/chunk/{C48SmsN-.js → ClaNycDy.js} +27 -18
- package/chunk/{CpGBWmuz.js → D2DSUGNT.js} +2 -2
- package/chunk/{DonYzv30.js → DV7ywe_q.js} +1 -1
- package/chunk/{BjpUSKM3.js → Dm1NCTkX.js} +3 -3
- package/chunk/{BDB0LByj.js → EHx6bIK_.js} +3 -3
- package/chunk/{Bi4UkwOR.js → I1dqAgn_.js} +4 -4
- package/chunk/a3hR6zLw.js +12 -0
- package/chunk/{DzVH9IBy.js → fFjj2KuF.js} +1 -1
- package/chunk/{vmgkWLYf.js → pEI3aB9Z.js} +2 -2
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +3 -3
- 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 +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- 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 +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +80 -75
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +3 -3
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +2 -2
- package/form/util.js +11 -11
- 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/hooks/index.js +36 -34
- package/hooks/useListenResize.js +4 -0
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useWindowSize.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 +5 -5
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +582 -580
- 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 +2 -2
- 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/locale/en-US.js +1 -1
- package/locale/tr-TR.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 +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +4 -4
- package/modal/index.js +1 -1
- package/notice/index.js +2 -2
- package/notification/index.js +2 -2
- package/notification/useNotification.js +1 -1
- package/notification/withNotification.js +43 -35
- 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 +2 -2
- package/space/index.js +20 -20
- package/speech-synthesis/index.js +39 -39
- 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/switch/index.js +2 -2
- package/table/Table.js +3 -3
- package/table/index.js +89 -81
- 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 +2 -2
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- 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 +2 -2
- package/trigger/index.js +3 -3
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useListenResize.d.ts +1 -0
- package/types/locale/en-US.d.ts +12 -12
- package/types/locale/tr-TR.d.ts +12 -12
- package/types/message/interface.d.ts +0 -1
- package/types/notification/interface.d.ts +0 -1
- package/types/space/index.d.ts +3 -4
- package/types/table/hook/useThResizable.d.ts +1 -1
- package/types/table/interface.d.ts +3 -1
- package/types/utils/react19Adapter.d.ts +1 -0
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +11 -11
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +11 -11
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +2 -2
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +4 -4
- package/utils/react19Adapter.js +3 -0
- package/utils/reactDOM.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BSCrLtfQ.js +0 -10
- package/chunk/BSaQv6mx.js +0 -251
- package/chunk/CD3AUpzo.js +0 -166
- package/chunk/CzQObzKd.js +0 -1817
- package/chunk/ll867Bf3.js +0 -730
package/utils/CSSTransition.js
CHANGED
package/utils/contextHolder.js
CHANGED
package/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as r } from "../chunk/
|
|
1
|
+
import { g as r } from "../chunk/EHx6bIK_.js";
|
|
2
2
|
import { s as t, r as o, d as f, l as i, i as m, c as l, u as p, m as d, o as x } from "../chunk/BibHFOCF.js";
|
|
3
3
|
import { w as n, k as g, z as c, A as y, G as S, D as b, s as C, b as h, P as R } from "../chunk/B6X4lnd0.js";
|
|
4
4
|
import { newArray as E, pickTriggerPropsFromRest as N } from "./constant.js";
|
|
@@ -24,14 +24,14 @@ import { default as Le } from "lodash/upperFirst";
|
|
|
24
24
|
import { COMPONENT_NAMES as Ve } from "./names.js";
|
|
25
25
|
import { padEnd as He, padStart as qe } from "./pad.js";
|
|
26
26
|
import { p as Ue, a as _e } from "../chunk/ClqoGc3r.js";
|
|
27
|
-
import { c as Je, f as Ke } from "../chunk/
|
|
27
|
+
import { c as Je, f as Ke } from "../chunk/ClaNycDy.js";
|
|
28
28
|
import { responsiveArray as Xe, responsiveMap as Ye, default as Ze } from "./responsiveObserve.js";
|
|
29
29
|
import { fixedWidth as ea, getStyle as aa, setTransformStyle as ra } from "./style.js";
|
|
30
30
|
import { d as ta } from "../chunk/BsWphzcT.js";
|
|
31
31
|
import { m as fa } from "../chunk/JPPo5nY_.js";
|
|
32
|
-
import { d as ma } from "../chunk/
|
|
32
|
+
import { d as ma } from "../chunk/CZWGeRVA.js";
|
|
33
33
|
import { s as pa, s as da } from "../chunk/Ey4YJCkX.js";
|
|
34
|
-
import { P as ua } from "../chunk/
|
|
34
|
+
import { P as ua } from "../chunk/fFjj2KuF.js";
|
|
35
35
|
import { l as ga } from "../chunk/CTxjmYmx.js";
|
|
36
36
|
import { f as ya } from "../chunk/CftuXmo_.js";
|
|
37
37
|
import { g as ba } from "../chunk/B7M-FGia.js";
|
package/utils/reactDOM.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as R, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import w, { forwardRef as N, useContext as F, useRef as j, createElement as z } from "react";
|
|
3
|
-
import { a as D } from "../chunk/
|
|
3
|
+
import { a as D } from "../chunk/CZWGeRVA.js";
|
|
4
4
|
import { u as E } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import K from "../input/InputElement.js";
|
|
6
6
|
import { m as p } from "../chunk/JPPo5nY_.js";
|
package/version/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { u as Bt } from "../chunk/Duezix3m.js";
|
|
|
10
10
|
import { r as Yt } from "../chunk/CIRG541s.js";
|
|
11
11
|
import xt from "./Filler.js";
|
|
12
12
|
import { g as qt } from "../chunk/DKHXj8Kf.js";
|
|
13
|
-
import { f as Gt } from "../chunk/
|
|
13
|
+
import { f as Gt } from "../chunk/ClaNycDy.js";
|
|
14
14
|
function Wt(r, o, n, e) {
|
|
15
15
|
const l = n - r, i = o - n, p = Math.min(l, i) * 2;
|
|
16
16
|
if (e <= p) {
|
package/watermark/Watermark.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
|
|
3
|
-
import { a as h } from "../chunk/
|
|
3
|
+
import { a as h } from "../chunk/CZWGeRVA.js";
|
|
4
4
|
import { useWatermark as x } from "../hooks/useWatermark.js";
|
|
5
5
|
import { u as k } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { m as w } from "../chunk/JPPo5nY_.js";
|
package/chunk/BSCrLtfQ.js
DELETED
package/chunk/BSaQv6mx.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
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 "./ll867Bf3.js";
|
|
7
|
-
import { u as q } from "./BFTV6myl.js";
|
|
8
|
-
import { u as D } from "./CdaT1b_F.js";
|
|
9
|
-
import { m as g } from "./JPPo5nY_.js";
|
|
10
|
-
import { o as G } from "./BKKEev13.js";
|
|
11
|
-
import { u as J } from "./DzVH9IBy.js";
|
|
12
|
-
import { u as Q } from "./XTEsYGuF.js";
|
|
13
|
-
import { off as W, on as X } from "../utils/dom.js";
|
|
14
|
-
function Y(l, h) {
|
|
15
|
-
var C;
|
|
16
|
-
const { getPrefixCls: u } = K(T), o = K(j), I = Q(), {
|
|
17
|
-
children: i,
|
|
18
|
-
name: s,
|
|
19
|
-
header: $,
|
|
20
|
-
className: H,
|
|
21
|
-
style: E,
|
|
22
|
-
contentStyle: b,
|
|
23
|
-
extra: x,
|
|
24
|
-
disabled: a,
|
|
25
|
-
destroyOnHide: y,
|
|
26
|
-
expandIcon: v,
|
|
27
|
-
showExpandIcon: N = !0,
|
|
28
|
-
...P
|
|
29
|
-
} = l, t = A(null), d = A(null), n = u("collapse-item"), c = ((C = o.activeKeys) == null ? void 0 : C.indexOf(s)) > -1, p = N ? "expandIcon" in l ? v : o.expandIcon : null, f = (e, m) => {
|
|
30
|
-
var O;
|
|
31
|
-
if (a)
|
|
32
|
-
return;
|
|
33
|
-
const { triggerRegion: R } = o;
|
|
34
|
-
(m === (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(m)) && ((O = o.onToggle) == null || O.call(o, s, e));
|
|
36
|
-
};
|
|
37
|
-
return /* @__PURE__ */ w(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
ref: h,
|
|
41
|
-
...P,
|
|
42
|
-
className: g(
|
|
43
|
-
n,
|
|
44
|
-
{
|
|
45
|
-
[`${n}-active`]: c,
|
|
46
|
-
[`${n}-no-icon`]: !p,
|
|
47
|
-
[`${n}-disabled`]: a
|
|
48
|
-
},
|
|
49
|
-
H
|
|
50
|
-
),
|
|
51
|
-
style: E,
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ w(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
role: "button",
|
|
57
|
-
"aria-disabled": a,
|
|
58
|
-
"aria-expanded": c,
|
|
59
|
-
"data-active-region": o.triggerRegion,
|
|
60
|
-
tabIndex: a ? -1 : 0,
|
|
61
|
-
className: g(
|
|
62
|
-
`${n}-header`,
|
|
63
|
-
`${n}-header-${o.expandIconPosition}`,
|
|
64
|
-
{
|
|
65
|
-
[`${n}-header-disabled`]: a
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
onClick: (e) => f(e, 2),
|
|
69
|
-
...I({
|
|
70
|
-
onPressEnter: (e) => {
|
|
71
|
-
!a && o.onToggle(s, e);
|
|
72
|
-
}
|
|
73
|
-
}),
|
|
74
|
-
children: [
|
|
75
|
-
p && /* @__PURE__ */ r(
|
|
76
|
-
S,
|
|
77
|
-
{
|
|
78
|
-
prefix: n,
|
|
79
|
-
disabled: a,
|
|
80
|
-
className: g({
|
|
81
|
-
[`${n}-icon-hover-right`]: o.expandIconPosition === "right",
|
|
82
|
-
[`${n}-header-icon-right`]: o.expandIconPosition === "right"
|
|
83
|
-
}),
|
|
84
|
-
onClick: (e) => f(e, 0),
|
|
85
|
-
children: /* @__PURE__ */ r(
|
|
86
|
-
"span",
|
|
87
|
-
{
|
|
88
|
-
className: g(`${n}-header-icon`, {
|
|
89
|
-
[`${n}-header-icon-down`]: c
|
|
90
|
-
}),
|
|
91
|
-
children: p
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
/* @__PURE__ */ r(
|
|
97
|
-
"div",
|
|
98
|
-
{
|
|
99
|
-
className: `${n}-header-title`,
|
|
100
|
-
onClick: (e) => f(e, 1),
|
|
101
|
-
children: $
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
x && /* @__PURE__ */ r(
|
|
105
|
-
"div",
|
|
106
|
-
{
|
|
107
|
-
className: `${n}-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: t,
|
|
121
|
-
in: c,
|
|
122
|
-
addEndListener: (e) => {
|
|
123
|
-
W(t.current, "transitionend", e), X(t.current, "transitionend", e);
|
|
124
|
-
},
|
|
125
|
-
mountOnEnter: "destroyOnHide" in l ? y : o.destroyOnHide || o.lazyload,
|
|
126
|
-
unmountOnExit: "destroyOnHide" in l ? y : o.destroyOnHide,
|
|
127
|
-
onEnter: (e) => {
|
|
128
|
-
t.current.style.height = 0, t.current.style.display = "block";
|
|
129
|
-
},
|
|
130
|
-
onEntering: (e) => {
|
|
131
|
-
t.current.style.height = `${Math.max(t.current.scrollHeight, d.current.scrollHeight)}px`;
|
|
132
|
-
},
|
|
133
|
-
onEntered: (e) => {
|
|
134
|
-
t.current.style.height = "auto";
|
|
135
|
-
},
|
|
136
|
-
onExit: (e) => {
|
|
137
|
-
d.current.offsetHeight, t.current.offsetHeight, t.current.style.display = "block", t.current.style.height = `${Math.max(t.current.offsetHeight, d.current.offsetHeight)}px`, t.current.offsetHeight, d.current.offsetHeight;
|
|
138
|
-
},
|
|
139
|
-
onExiting: (e) => {
|
|
140
|
-
t.current.style.height = 0;
|
|
141
|
-
},
|
|
142
|
-
onExited: (e) => {
|
|
143
|
-
t.current.style.display = "none", t.current.style.height = "auto";
|
|
144
|
-
},
|
|
145
|
-
children: /* @__PURE__ */ r(
|
|
146
|
-
"div",
|
|
147
|
-
{
|
|
148
|
-
ref: t,
|
|
149
|
-
role: "region",
|
|
150
|
-
className: g(`${n}-content`, {
|
|
151
|
-
[`${n}-content-expanded`]: c
|
|
152
|
-
}),
|
|
153
|
-
children: /* @__PURE__ */ r(
|
|
154
|
-
"div",
|
|
155
|
-
{
|
|
156
|
-
ref: d,
|
|
157
|
-
style: b,
|
|
158
|
-
className: `${n}-content-box`,
|
|
159
|
-
children: i
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
const z = M.forwardRef(
|
|
171
|
-
Y
|
|
172
|
-
);
|
|
173
|
-
z.displayName = "CollapseItem";
|
|
174
|
-
const k = (l, h) => {
|
|
175
|
-
const u = [].concat(l);
|
|
176
|
-
return h ? u.slice(0, 1) : u;
|
|
177
|
-
}, Z = {
|
|
178
|
-
bordered: !0,
|
|
179
|
-
lazyload: !0,
|
|
180
|
-
expandIconPosition: "left"
|
|
181
|
-
}, j = B({
|
|
182
|
-
expandIconPosition: "left",
|
|
183
|
-
expandIcon: /* @__PURE__ */ r(L, {}),
|
|
184
|
-
activeKeys: [],
|
|
185
|
-
onToggle: () => {
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
function _(l, h) {
|
|
189
|
-
const { getPrefixCls: u, componentConfig: o, rtl: I } = K(T), i = q(
|
|
190
|
-
l,
|
|
191
|
-
Z,
|
|
192
|
-
o == null ? void 0 : o.Collapse
|
|
193
|
-
), [s, $] = D([], {
|
|
194
|
-
defaultValue: "defaultActiveKey" in i ? k(i.defaultActiveKey, i.accordion) : void 0,
|
|
195
|
-
value: "activeKey" in i ? k(i.activeKey, i.accordion) : void 0
|
|
196
|
-
}), {
|
|
197
|
-
children: H,
|
|
198
|
-
className: E,
|
|
199
|
-
style: b,
|
|
200
|
-
bordered: x,
|
|
201
|
-
lazyload: a,
|
|
202
|
-
expandIcon: y,
|
|
203
|
-
expandIconPosition: v,
|
|
204
|
-
destroyOnHide: N,
|
|
205
|
-
accordion: P,
|
|
206
|
-
triggerRegion: t,
|
|
207
|
-
onChange: d,
|
|
208
|
-
...n
|
|
209
|
-
} = i, c = u("collapse"), p = (f, C) => {
|
|
210
|
-
let e = [...s || []];
|
|
211
|
-
const m = s == null ? void 0 : s.indexOf(f);
|
|
212
|
-
m > -1 ? e.splice(m, 1) : P ? e = [f] : e.push(f), "activeKey" in i || $(e), V(d) && d(f, e, C);
|
|
213
|
-
};
|
|
214
|
-
return /* @__PURE__ */ r(
|
|
215
|
-
j.Provider,
|
|
216
|
-
{
|
|
217
|
-
value: {
|
|
218
|
-
activeKeys: s,
|
|
219
|
-
triggerRegion: t,
|
|
220
|
-
lazyload: a,
|
|
221
|
-
destroyOnHide: N,
|
|
222
|
-
expandIconPosition: v,
|
|
223
|
-
onToggle: p,
|
|
224
|
-
expandIcon: "expandIcon" in i ? y : v === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
|
|
225
|
-
},
|
|
226
|
-
children: /* @__PURE__ */ r(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
ref: h,
|
|
230
|
-
...G(n, ["activeKey", "defaultActiveKey"]),
|
|
231
|
-
className: g(
|
|
232
|
-
c,
|
|
233
|
-
`${c}-${x ? "border" : "borderless"}`,
|
|
234
|
-
{ [`${c}-rtl`]: I },
|
|
235
|
-
E
|
|
236
|
-
),
|
|
237
|
-
style: b,
|
|
238
|
-
children: H
|
|
239
|
-
}
|
|
240
|
-
)
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
const ee = M.forwardRef(_), F = ee;
|
|
245
|
-
F.displayName = "Collapse";
|
|
246
|
-
F.Item = z;
|
|
247
|
-
export {
|
|
248
|
-
F as C,
|
|
249
|
-
z as I,
|
|
250
|
-
j as a
|
|
251
|
-
};
|
package/chunk/CD3AUpzo.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as z, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import j from "lodash/isFunction";
|
|
3
|
-
import w from "lodash/isNil";
|
|
4
|
-
import B, { createContext as H, useContext as G, useRef as L } from "react";
|
|
5
|
-
import { a as A, I as Q } from "./ll867Bf3.js";
|
|
6
|
-
import { u as D } from "./BFTV6myl.js";
|
|
7
|
-
import { u as F } from "./CdaT1b_F.js";
|
|
8
|
-
import { m as I } from "./JPPo5nY_.js";
|
|
9
|
-
import { o as S } from "./BKKEev13.js";
|
|
10
|
-
import T from "lodash/isArray";
|
|
11
|
-
import q from "lodash/isPlainObject";
|
|
12
|
-
import { pickTriggerPropsFromRest as E } from "../utils/constant.js";
|
|
13
|
-
import { a as J } from "./ClqoGc3r.js";
|
|
14
|
-
const _ = {
|
|
15
|
-
type: "radio"
|
|
16
|
-
}, K = {
|
|
17
|
-
type: "radio",
|
|
18
|
-
mode: "outline",
|
|
19
|
-
direction: "horizontal"
|
|
20
|
-
}, x = H(_), ne = ({ children: C }) => /* @__PURE__ */ i(x.Provider, { value: _, children: C });
|
|
21
|
-
function M(C) {
|
|
22
|
-
const {
|
|
23
|
-
getPrefixCls: b,
|
|
24
|
-
size: y,
|
|
25
|
-
componentConfig: d,
|
|
26
|
-
rtl: N
|
|
27
|
-
} = G(A), e = D(
|
|
28
|
-
C,
|
|
29
|
-
K,
|
|
30
|
-
d == null ? void 0 : d["Radio.Group"]
|
|
31
|
-
), {
|
|
32
|
-
style: a,
|
|
33
|
-
className: o,
|
|
34
|
-
name: c,
|
|
35
|
-
children: m,
|
|
36
|
-
direction: p,
|
|
37
|
-
type: v,
|
|
38
|
-
mode: k,
|
|
39
|
-
options: g,
|
|
40
|
-
disabled: s
|
|
41
|
-
} = e, [l, R] = F(void 0, {
|
|
42
|
-
defaultValue: e.defaultValue,
|
|
43
|
-
value: e.value
|
|
44
|
-
}), $ = e.size || y, n = b("radio"), P = I(
|
|
45
|
-
`${n}-group`,
|
|
46
|
-
{
|
|
47
|
-
[`${n}-group-type-button`]: v !== "radio",
|
|
48
|
-
[`${n}-size-${$}`]: !!$,
|
|
49
|
-
[`${n}-mode-${k}`]: !!k,
|
|
50
|
-
[`${n}-group-disabled`]: s,
|
|
51
|
-
[`${n}-group-direction-vertical`]: p === "vertical",
|
|
52
|
-
[`${n}-group-rtl`]: N
|
|
53
|
-
},
|
|
54
|
-
o
|
|
55
|
-
), u = {
|
|
56
|
-
onChangeValue: (r, f) => {
|
|
57
|
-
const { onChange: V } = e;
|
|
58
|
-
r !== l && ("value" in e || R(r), V == null || V(r, f));
|
|
59
|
-
},
|
|
60
|
-
type: v,
|
|
61
|
-
value: l,
|
|
62
|
-
disabled: s,
|
|
63
|
-
group: !0,
|
|
64
|
-
name: c
|
|
65
|
-
};
|
|
66
|
-
return /* @__PURE__ */ i(x.Provider, { value: u, children: /* @__PURE__ */ i(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: P,
|
|
70
|
-
role: "radiogroup",
|
|
71
|
-
style: a,
|
|
72
|
-
...E(e),
|
|
73
|
-
...J(e),
|
|
74
|
-
children: g && T(g) ? g.map((r, f) => q(r) ? /* @__PURE__ */ i(
|
|
75
|
-
h,
|
|
76
|
-
{
|
|
77
|
-
disabled: s || r.disabled,
|
|
78
|
-
value: r.value,
|
|
79
|
-
children: r.label
|
|
80
|
-
},
|
|
81
|
-
r.value
|
|
82
|
-
) : /* @__PURE__ */ i(h, { value: r, disabled: s, children: r }, f)) : m
|
|
83
|
-
}
|
|
84
|
-
) });
|
|
85
|
-
}
|
|
86
|
-
M.displayName = "RadioGroup";
|
|
87
|
-
function h(C) {
|
|
88
|
-
const b = L(null), { getPrefixCls: y, componentConfig: d, rtl: N } = G(A), e = D(
|
|
89
|
-
C,
|
|
90
|
-
{},
|
|
91
|
-
d == null ? void 0 : d.Radio
|
|
92
|
-
), a = G(x), o = y("radio"), c = { ...e };
|
|
93
|
-
a.group && (c.checked = a.value === e.value, c.disabled = "disabled" in e ? e.disabled : a.disabled);
|
|
94
|
-
const { disabled: m, children: p, value: v, style: k, className: g, ...s } = c, [l, R] = F(!1, {
|
|
95
|
-
value: c.checked,
|
|
96
|
-
defaultValue: c.defaultChecked
|
|
97
|
-
}), $ = I(
|
|
98
|
-
`${o}${a.type === "button" ? "-button" : ""}`,
|
|
99
|
-
{
|
|
100
|
-
[`${o}-checked`]: l,
|
|
101
|
-
[`${o}-disabled`]: m,
|
|
102
|
-
[`${o}-rtl`]: N
|
|
103
|
-
},
|
|
104
|
-
g
|
|
105
|
-
), n = (t) => {
|
|
106
|
-
var f;
|
|
107
|
-
const { onChange: u, value: r } = c;
|
|
108
|
-
m || (a.group ? (f = a.onChangeValue) == null || f.call(a, r, t) : !("checked" in e) && !l && R(!0), !l && (u == null || u(!0, t)));
|
|
109
|
-
}, P = B.useCallback(
|
|
110
|
-
(t) => {
|
|
111
|
-
var u;
|
|
112
|
-
j(e.children) && (t.preventDefault(), b.current && b.current.click()), (u = s.onClick) == null || u.call(s, t);
|
|
113
|
-
},
|
|
114
|
-
[e.children, s.onClick]
|
|
115
|
-
);
|
|
116
|
-
return /* @__PURE__ */ z(
|
|
117
|
-
"label",
|
|
118
|
-
{
|
|
119
|
-
...S(s, ["checked", "onChange"]),
|
|
120
|
-
onClick: P,
|
|
121
|
-
style: k,
|
|
122
|
-
className: $,
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ i(
|
|
125
|
-
"input",
|
|
126
|
-
{
|
|
127
|
-
ref: b,
|
|
128
|
-
disabled: m,
|
|
129
|
-
value: v || "",
|
|
130
|
-
type: "radio",
|
|
131
|
-
...a.name ? { name: a.name } : {},
|
|
132
|
-
checked: l,
|
|
133
|
-
onChange: (t) => {
|
|
134
|
-
t.persist(), n(t);
|
|
135
|
-
},
|
|
136
|
-
onClick: (t) => {
|
|
137
|
-
t.stopPropagation();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
j(p) ? p({ checked: l }) : a.type === "radio" ? /* @__PURE__ */ z(O, { children: [
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
Q,
|
|
144
|
-
{
|
|
145
|
-
prefix: o,
|
|
146
|
-
className: `${o}-mask-wrapper`,
|
|
147
|
-
disabled: l || m,
|
|
148
|
-
children: /* @__PURE__ */ i("div", { className: `${o}-mask` })
|
|
149
|
-
}
|
|
150
|
-
),
|
|
151
|
-
!w(p) && /* @__PURE__ */ i("span", { className: `${o}-text`, children: p })
|
|
152
|
-
] }) : a.type === "button" && /* @__PURE__ */ i("span", { className: `${o}-button-inner`, children: p })
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
h.__PQB_RADIO = !0;
|
|
158
|
-
h.displayName = "Radio";
|
|
159
|
-
h.Group = M;
|
|
160
|
-
h.GroupContext = x;
|
|
161
|
-
export {
|
|
162
|
-
ne as C,
|
|
163
|
-
M as G,
|
|
164
|
-
h as R,
|
|
165
|
-
x as a
|
|
166
|
-
};
|