@unicom-cloud/ui 0.8.89 → 0.8.90
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/Anchor.js +4 -2
- package/AutoComplete.js +4 -2
- package/Avatar.js +4 -3
- package/Badge.js +6 -5
- package/Breadcrumb.js +4 -3
- package/Calendar.js +7 -5
- package/Card.js +6 -4
- package/Cascader.js +1 -1
- package/Checkbox.js +4 -4
- package/Collapse.js +3 -2
- package/ColorPicker.js +13 -2
- package/DatePicker.js +8 -8
- package/Form.js +3 -3
- package/Grid.js +10 -8
- package/List.js +1 -1
- package/Mentions.js +1 -1
- package/Pagination.js +1 -1
- package/Radio.js +5 -5
- package/Select.js +1 -1
- package/Table.js +3 -3
- package/TimePicker.js +2 -2
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -3
- package/Typography.js +1 -1
- package/anchor/Anchor.js +30 -29
- package/anchor/index.js +2 -0
- package/auto-complete/index.js +4 -2
- package/avatar/index.js +4 -3
- package/badge/index.js +39 -43
- package/breadcrumb/index.js +18 -17
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +2 -2
- package/calendar/index.js +7 -5
- package/card/index.js +31 -29
- package/cascader/Cascader.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +6 -6
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +4 -4
- package/chunk/B3LeSidy.js +192 -0
- package/chunk/{CgyNQvYg.js → BbQEqpOn.js} +388 -381
- package/chunk/{BP4igg_F.js → BcCuJQY8.js} +41 -40
- package/chunk/{Doi4-DdV.js → C8Kcc_9d.js} +99 -92
- package/chunk/D-Hw4x_H.js +88 -0
- package/chunk/{BC2OXILt.js → Dc-uXGtN.js} +1 -1
- package/collapse/Collapse.js +255 -13
- package/collapse/Item.js +2 -2
- package/collapse/index.js +4 -2
- package/color-picker/Panel.js +1 -1
- package/color-picker/index.js +13 -2
- package/date-picker/Picker.js +142 -138
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +22 -22
- package/date-picker/util.js +1 -1
- package/form/Form.js +1 -1
- package/form/index.js +32 -32
- package/grid/index.js +13 -12
- package/image/Image.js +26 -25
- package/index.js +600 -571
- package/list/index.js +1 -1
- package/mentions/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +4 -4
- package/radio/index.js +4 -4
- package/select/Option.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +2 -2
- package/select/util.js +2 -2
- package/space/index.js +56 -54
- package/statistic/Countdown.js +1 -1
- package/steps/index.js +50 -49
- package/style.css +1 -1
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/time-picker/Picker.js +17 -17
- package/time-picker/RangePicker.js +7 -7
- package/time-picker/TimePicker.js +2 -2
- package/time-picker/index.js +2 -2
- package/time-picker/util.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +2 -2
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/index.js +2 -2
- package/types/common/space/interface.d.ts +4 -0
- package/types/common/utils/dayjs.d.ts +2 -2
- package/types/pc/anchor/Anchor.d.ts +1 -0
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/auto-complete/index.d.ts +6 -0
- package/types/pc/avatar/index.d.ts +1 -0
- package/types/pc/badge/index.d.ts +5 -3
- package/types/pc/breadcrumb/index.d.ts +1 -0
- package/types/pc/calendar/index.d.ts +3 -0
- package/types/pc/card/index.d.ts +1 -0
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -0
- package/types/pc/collapse/index.d.ts +2 -1
- package/types/pc/color-picker/index.d.ts +7 -0
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/date-picker/interface.d.ts +2 -2
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -4
- package/types/pc/index.d.ts +15 -14
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/space/index.d.ts +2 -2
- package/types/pc/steps/index.d.ts +1 -0
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/utils/constant.d.ts +2 -2
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +396 -85
- package/typography/Ellipsis.js +5 -4
- package/typography/index.js +1 -1
- package/utils/constant.js +6 -6
- package/utils/dayjs.js +1 -1
- package/utils/index.js +202 -200
- package/utils/names.js +294 -86
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +117 -116
- package/chunk/C7bohPVD.js +0 -185
- package/chunk/DYmI9fFY.js +0 -257
- /package/grid/{grid.js → Grid.js} +0 -0
- /package/grid/{grid-item.js → GridItem.js} +0 -0
- /package/types/pc/grid/{grid.d.ts → Grid.d.ts} +0 -0
- /package/types/pc/grid/{grid-item.d.ts → GridItem.d.ts} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { i as e, b as i, a as s, c as t, d as a, e as r, f as o, g as n, h as l, j as c, k as m, l as d, s as p } from "./ClM74To2.js";
|
|
2
|
+
import { isArguments as R, isArray as u, isArrayBuffer as y, isArrayLike as S, isArrayLikeObject as f, isBlob as b, isBoolean as E, isBuffer as C, isColor as M, isColor2 as g, isDate as A, isElement as O, isEmpty as j, isEmptyArray as N, isEmptyObject as P, isEmptyValue as F, isEqual as x, isEqualWith as h, isError as k, isFile as L, isFinite as B, isFunction as W, isInteger as v, isJSON as w, isLength as D, isMap as T, isMatch as V, isMatchWith as _, isNaN as z, isNative as I, isNil as q, isNull as U, isNumber as J, isObject as $, isObjectLike as G, isPlainObject as H, isPromise as K, isReadableByteStreamControllerSupported as Q, isReadableStream as X, isReadableStreamDefaultControllerSupported as Y, isReadableStreamSupported as Z, isReadableStreamSymbolAsyncIteratorSupported as ee, isRegExp as ie, isSafeInteger as se, isSet as te, isString as ae, isSymbol as re, isTypedArray as oe, isUndefined as ne, isValidColor as le, isWeakMap as ce, isWeakSet as me } from "@unicom-cloud/utils/is";
|
|
3
|
+
import { isAsyncMode as de, isConcurrentMode as pe, isContextConsumer as Re, isContextProvider as ue, isElement as ye, isForwardRef as Se, isFragment as fe, isLazy as be, isMemo as Ee, isPortal as Ce, isProfiler as Me, isStrictMode as ge, isSuspense as Ae, isValidElementType as Oe } from "react-is";
|
|
4
|
+
const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
|
+
__proto__: null,
|
|
6
|
+
isArguments: R,
|
|
7
|
+
isArray: u,
|
|
8
|
+
isArrayBuffer: y,
|
|
9
|
+
isArrayLike: S,
|
|
10
|
+
isArrayLikeObject: f,
|
|
11
|
+
isBlob: b,
|
|
12
|
+
isBoolean: E,
|
|
13
|
+
isBuffer: C,
|
|
14
|
+
isClassComponent: e,
|
|
15
|
+
isColor: M,
|
|
16
|
+
isColor2: g,
|
|
17
|
+
isDOMElement: i,
|
|
18
|
+
isDate: A,
|
|
19
|
+
isDayjs: s,
|
|
20
|
+
isElement: O,
|
|
21
|
+
isEmpty: j,
|
|
22
|
+
isEmptyArray: N,
|
|
23
|
+
isEmptyObject: P,
|
|
24
|
+
isEmptyReactNode: t,
|
|
25
|
+
isEmptyValue: F,
|
|
26
|
+
isEqual: x,
|
|
27
|
+
isEqualWith: h,
|
|
28
|
+
isError: k,
|
|
29
|
+
isExist: a,
|
|
30
|
+
isFile: L,
|
|
31
|
+
isFinite: B,
|
|
32
|
+
isForwardRefReact: r,
|
|
33
|
+
isFunction: W,
|
|
34
|
+
isInteger: v,
|
|
35
|
+
isJSON: w,
|
|
36
|
+
isLength: D,
|
|
37
|
+
isMap: T,
|
|
38
|
+
isMatch: V,
|
|
39
|
+
isMatchWith: _,
|
|
40
|
+
isNaN: z,
|
|
41
|
+
isNative: I,
|
|
42
|
+
isNil: q,
|
|
43
|
+
isNull: U,
|
|
44
|
+
isNullOrUndefined: o,
|
|
45
|
+
isNumber: J,
|
|
46
|
+
isObject: $,
|
|
47
|
+
isObjectLike: G,
|
|
48
|
+
isPlainObject: H,
|
|
49
|
+
isPromise: K,
|
|
50
|
+
isReact18: n,
|
|
51
|
+
isReact19: l,
|
|
52
|
+
isReactAsyncMode: de,
|
|
53
|
+
isReactComponent: c,
|
|
54
|
+
isReactConcurrentMode: pe,
|
|
55
|
+
isReactContextConsumer: Re,
|
|
56
|
+
isReactContextProvider: ue,
|
|
57
|
+
isReactElement: ye,
|
|
58
|
+
isReactForwardRef: Se,
|
|
59
|
+
isReactFragment: fe,
|
|
60
|
+
isReactLazy: be,
|
|
61
|
+
isReactMemo: Ee,
|
|
62
|
+
isReactPortal: Ce,
|
|
63
|
+
isReactProfiler: Me,
|
|
64
|
+
isReactStrictMode: ge,
|
|
65
|
+
isReactSuspense: Ae,
|
|
66
|
+
isReactValidElementType: Oe,
|
|
67
|
+
isReadableByteStreamControllerSupported: Q,
|
|
68
|
+
isReadableStream: X,
|
|
69
|
+
isReadableStreamDefaultControllerSupported: Y,
|
|
70
|
+
isReadableStreamSupported: Z,
|
|
71
|
+
isReadableStreamSymbolAsyncIteratorSupported: ee,
|
|
72
|
+
isRegExp: ie,
|
|
73
|
+
isSafeInteger: se,
|
|
74
|
+
isSet: te,
|
|
75
|
+
isString: ae,
|
|
76
|
+
isSupportRef: m,
|
|
77
|
+
isSymbol: re,
|
|
78
|
+
isTypedArray: oe,
|
|
79
|
+
isUndefined: ne,
|
|
80
|
+
isValidColor: le,
|
|
81
|
+
isWeakMap: ce,
|
|
82
|
+
isWeakSet: me,
|
|
83
|
+
isWindow: d,
|
|
84
|
+
supportRef: p
|
|
85
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
86
|
+
export {
|
|
87
|
+
Fe as i
|
|
88
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as I, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import O from "react";
|
|
3
3
|
import T from "@unicom-cloud/utils/class-name";
|
|
4
4
|
import { newArray as L } from "../utils/constant.js";
|
|
5
|
-
import { a as B, m as E, d as _ } from "./
|
|
5
|
+
import { a as B, m as E, d as _ } from "./B3LeSidy.js";
|
|
6
6
|
import { padStart as q } from "../utils/pad.js";
|
|
7
7
|
import z from "../calendar/WeekList.js";
|
|
8
8
|
import F from "lodash/isArray";
|
package/collapse/Collapse.js
CHANGED
|
@@ -1,15 +1,257 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "@unicom-cloud/icons/IconUiCaretLeft";
|
|
3
|
-
import "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
|
-
import "lodash/isFunction";
|
|
5
|
-
import "react";
|
|
6
|
-
import "../chunk/B44Hj5ad.js";
|
|
7
|
-
import "../chunk/BFTV6myl.js";
|
|
8
|
-
import "../chunk/D5wldVRB.js";
|
|
9
|
-
import "@unicom-cloud/utils/class-name";
|
|
10
|
-
import "../chunk/BKKEev13.js";
|
|
11
|
-
import {
|
|
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 O, useRef as A, createContext as B } from "react";
|
|
6
|
+
import { a as T, I as S } from "../chunk/B44Hj5ad.js";
|
|
7
|
+
import { u as q } from "../chunk/BFTV6myl.js";
|
|
8
|
+
import { u as D } from "../chunk/D5wldVRB.js";
|
|
9
|
+
import p from "@unicom-cloud/utils/class-name";
|
|
10
|
+
import { o as G } from "../chunk/BKKEev13.js";
|
|
11
|
+
import { u as J } from "../chunk/BJ9_azwQ.js";
|
|
12
|
+
import { u as Q } from "../chunk/BYdIoY50.js";
|
|
13
|
+
import { off as W, on as X } from "../utils/dom.js";
|
|
14
|
+
function Y(f, g) {
|
|
15
|
+
var I;
|
|
16
|
+
const { getPrefixCls: a } = O(T), n = O(j), C = Q(), {
|
|
17
|
+
children: s,
|
|
18
|
+
name: c,
|
|
19
|
+
header: $,
|
|
20
|
+
className: H,
|
|
21
|
+
style: N,
|
|
22
|
+
contentStyle: E,
|
|
23
|
+
extra: x,
|
|
24
|
+
disabled: l,
|
|
25
|
+
destroyOnHide: y,
|
|
26
|
+
expandIcon: v,
|
|
27
|
+
showExpandIcon: b = !0,
|
|
28
|
+
...R
|
|
29
|
+
} = f, i = A(), h = A(), t = a == null ? void 0 : a("collapse-item"), d = ((I = n.activeKeys) == null ? void 0 : I.indexOf(c)) > -1, u = b ? "expandIcon" in f ? v : n.expandIcon : null, m = (e, o) => {
|
|
30
|
+
var P;
|
|
31
|
+
if (l)
|
|
32
|
+
return;
|
|
33
|
+
const { triggerRegion: K } = n;
|
|
34
|
+
(o === (K === "icon" ? 0 : K === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
|
|
35
|
+
K === "header" && [0, 1].includes(o)) && ((P = n.onToggle) == null || P.call(n, c, e));
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ w(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: g,
|
|
41
|
+
...R,
|
|
42
|
+
className: p(
|
|
43
|
+
t,
|
|
44
|
+
{
|
|
45
|
+
[`${t}-active`]: d,
|
|
46
|
+
[`${t}-no-icon`]: !u,
|
|
47
|
+
[`${t}-disabled`]: l
|
|
48
|
+
},
|
|
49
|
+
H
|
|
50
|
+
),
|
|
51
|
+
style: N,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ w(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
role: "button",
|
|
57
|
+
"aria-disabled": l,
|
|
58
|
+
"aria-expanded": d,
|
|
59
|
+
"data-active-region": n.triggerRegion,
|
|
60
|
+
tabIndex: l ? -1 : 0,
|
|
61
|
+
className: p(
|
|
62
|
+
`${t}-header`,
|
|
63
|
+
`${t}-header-${n.expandIconPosition}`,
|
|
64
|
+
{
|
|
65
|
+
[`${t}-header-disabled`]: l
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
onClick: (e) => m(e, 2),
|
|
69
|
+
...C({
|
|
70
|
+
onPressEnter: (e) => {
|
|
71
|
+
!l && n.onToggle(c, e);
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
children: [
|
|
75
|
+
u && /* @__PURE__ */ r(
|
|
76
|
+
S,
|
|
77
|
+
{
|
|
78
|
+
prefix: t,
|
|
79
|
+
disabled: l,
|
|
80
|
+
className: p({
|
|
81
|
+
[`${t}-icon-hover-right`]: n.expandIconPosition === "right",
|
|
82
|
+
[`${t}-header-icon-right`]: n.expandIconPosition === "right"
|
|
83
|
+
}),
|
|
84
|
+
onClick: (e) => m(e, 0),
|
|
85
|
+
children: /* @__PURE__ */ r(
|
|
86
|
+
"span",
|
|
87
|
+
{
|
|
88
|
+
className: p(`${t}-header-icon`, {
|
|
89
|
+
[`${t}-header-icon-down`]: d
|
|
90
|
+
}),
|
|
91
|
+
children: u
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ r(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: `${t}-header-title`,
|
|
100
|
+
onClick: (e) => m(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: d,
|
|
122
|
+
addEndListener: (e) => {
|
|
123
|
+
W(i.current, "transitionend", e), X(i.current, "transitionend", e);
|
|
124
|
+
},
|
|
125
|
+
mountOnEnter: "destroyOnHide" in f ? y : n.destroyOnHide || n.lazyload,
|
|
126
|
+
unmountOnExit: "destroyOnHide" in f ? 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`]: d
|
|
158
|
+
}),
|
|
159
|
+
children: /* @__PURE__ */ r(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
ref: h,
|
|
163
|
+
style: E,
|
|
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 = (f, g) => {
|
|
181
|
+
const a = [].concat(f);
|
|
182
|
+
return g ? a.slice(0, 1) : a;
|
|
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 _(f, g) {
|
|
195
|
+
const { getPrefixCls: a, componentConfig: n, rtl: C } = O(T), s = q(
|
|
196
|
+
f,
|
|
197
|
+
Z,
|
|
198
|
+
n == null ? void 0 : n.Collapse
|
|
199
|
+
), [c, $] = 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: N,
|
|
205
|
+
style: E,
|
|
206
|
+
bordered: x,
|
|
207
|
+
lazyload: l,
|
|
208
|
+
expandIcon: y,
|
|
209
|
+
expandIconPosition: v,
|
|
210
|
+
destroyOnHide: b,
|
|
211
|
+
accordion: R,
|
|
212
|
+
triggerRegion: i,
|
|
213
|
+
onChange: h,
|
|
214
|
+
...t
|
|
215
|
+
} = s, d = a == null ? void 0 : a("collapse"), u = (m, I) => {
|
|
216
|
+
let e = [...c || []];
|
|
217
|
+
const o = c == null ? void 0 : c.indexOf(m);
|
|
218
|
+
o > -1 ? e.splice(o, 1) : R ? e = [m] : e.push(m), "activeKey" in s || $(e), V(h) && h(m, e, I);
|
|
219
|
+
};
|
|
220
|
+
return /* @__PURE__ */ r(
|
|
221
|
+
j.Provider,
|
|
222
|
+
{
|
|
223
|
+
value: {
|
|
224
|
+
activeKeys: c,
|
|
225
|
+
triggerRegion: i,
|
|
226
|
+
lazyload: l,
|
|
227
|
+
destroyOnHide: b,
|
|
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: g,
|
|
236
|
+
...G(t, ["activeKey", "defaultActiveKey"]),
|
|
237
|
+
className: p(
|
|
238
|
+
d,
|
|
239
|
+
`${d}-${x ? "border" : "borderless"}`,
|
|
240
|
+
{ [`${d}-rtl`]: C },
|
|
241
|
+
N
|
|
242
|
+
),
|
|
243
|
+
style: E,
|
|
244
|
+
children: H
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
const ee = M.forwardRef(_), F = ee;
|
|
251
|
+
F.displayName = "Collapse";
|
|
252
|
+
F.Item = z;
|
|
12
253
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
254
|
+
j as CollapseContext,
|
|
255
|
+
z as CollapseItem,
|
|
256
|
+
F as default
|
|
15
257
|
};
|
package/collapse/Item.js
CHANGED
|
@@ -5,7 +5,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "../chunk/BYdIoY50.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
7
|
import "../utils/dom.js";
|
|
8
|
-
import {
|
|
8
|
+
import { CollapseItem as f } from "./Collapse.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
f as default
|
|
11
11
|
};
|
package/collapse/index.js
CHANGED
package/color-picker/Panel.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../chunk/9TSjT7x_.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../chunk/B44Hj5ad.js";
|
|
5
|
-
import {
|
|
5
|
+
import { g as b } from "../chunk/BbQEqpOn.js";
|
|
6
6
|
import "../tooltip/index.js";
|
|
7
7
|
import "@unicom-cloud/utils/class-name";
|
|
8
8
|
import "./ControlBar.js";
|
package/color-picker/index.js
CHANGED
|
@@ -8,8 +8,19 @@ import "../chunk/BFTV6myl.js";
|
|
|
8
8
|
import "../trigger/index.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "./colors.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ControlBar as C } from "./ControlBar.js";
|
|
12
|
+
import { g as u, f as c } from "../chunk/BbQEqpOn.js";
|
|
13
|
+
import { InputAlpha as I } from "./InputAlpha.js";
|
|
14
|
+
import { InputHex as b } from "./InputHex.js";
|
|
15
|
+
import { InputRgb as A } from "./InputRgb.js";
|
|
16
|
+
import { Palette as H } from "./Palette.js";
|
|
12
17
|
import "./utils.js";
|
|
13
18
|
export {
|
|
14
|
-
|
|
19
|
+
C as ColorPickerControlBar,
|
|
20
|
+
I as ColorPickerInputAlpha,
|
|
21
|
+
b as ColorPickerInputHex,
|
|
22
|
+
A as ColorPickerInputRgb,
|
|
23
|
+
H as ColorPickerPalette,
|
|
24
|
+
u as ColorPickerPanel,
|
|
25
|
+
c as default
|
|
15
26
|
};
|