@unicom-cloud/ui 0.8.93 → 0.8.94
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/color-picker/Mode.js +7 -6
- package/index.js +171 -171
- package/layout/index.js +11 -9
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +43 -41
- package/tree/Tree.js +215 -211
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.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/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +3 -2
- package/version/index.js +1 -1
package/Checkbox.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { default as r } from "./checkbox/Checkbox.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as x, ClearCheckboxGroupContext as a } from "./checkbox/Group.js";
|
|
3
3
|
import { default as u } from "./checkbox/GroupBlock.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as l } from "./checkbox/useCheckbox.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
x as CheckboxGroup,
|
|
7
7
|
u as CheckboxGroupBlock,
|
|
8
|
+
a as ClearCheckboxGroupContext,
|
|
8
9
|
r as default,
|
|
9
|
-
|
|
10
|
+
l as useCheckbox
|
|
10
11
|
};
|
package/Layout.js
CHANGED
|
@@ -4,16 +4,17 @@ import "react";
|
|
|
4
4
|
import "./config-provider/ConfigProvider.js";
|
|
5
5
|
import "./components/common/hooks/useMergeProps.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
7
|
+
import { default as u } from "./layout/Content.js";
|
|
8
|
+
import { default as x } from "./layout/Footer.js";
|
|
9
9
|
import { default as s } from "./layout/Header.js";
|
|
10
|
-
import { default as L } from "./layout/Sider.js";
|
|
10
|
+
import { default as L, SiderContext as n } from "./layout/Sider.js";
|
|
11
11
|
import "./config-provider/context.js";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as S } from "./layout/index.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
u as LayoutContent,
|
|
15
|
+
x as LayoutFooter,
|
|
16
16
|
s as LayoutHeader,
|
|
17
17
|
L as LayoutSider,
|
|
18
|
-
|
|
18
|
+
n as SiderContext,
|
|
19
|
+
S as default
|
|
19
20
|
};
|
package/cascader/panel/Option.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as s, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, Fragment as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import b from "../../checkbox/Checkbox.js";
|
|
3
|
+
import "../../checkbox/Group.js";
|
|
3
4
|
const C = (i) => {
|
|
4
|
-
const { prefixCls: d, multiple:
|
|
5
|
+
const { prefixCls: d, multiple: n, option: e, renderOption: l, selected: a, icons: o } = i, t = e.disabled || n && e.disableCheckbox;
|
|
5
6
|
return /* @__PURE__ */ c(s, { children: [
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
n ? /* @__PURE__ */ r(
|
|
8
|
+
b,
|
|
8
9
|
{
|
|
9
10
|
disabled: t,
|
|
10
11
|
checked: e._checked,
|
|
@@ -22,7 +23,7 @@ const C = (i) => {
|
|
|
22
23
|
onDoubleClick: t ? void 0 : i.onDoubleClickOption,
|
|
23
24
|
children: [
|
|
24
25
|
l ? l() : e.label,
|
|
25
|
-
e.isLeaf ? a &&
|
|
26
|
+
e.isLeaf ? a && o.checked : e.loading ? o.loading : o.next
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
)
|
package/cascader/panel/Search.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m, jsxs as N, Fragment as w } from "react/jsx-runtime";
|
|
2
2
|
import B from "../../dist/scroll-into-view-if-needed/src/index.js";
|
|
3
3
|
import D from "lodash/isEqualWith";
|
|
4
4
|
import O from "lodash/isFunction";
|
|
@@ -6,6 +6,7 @@ import L from "lodash/isString";
|
|
|
6
6
|
import { useState as P, useRef as E, useEffect as F } from "react";
|
|
7
7
|
import { getMultipleCheckValue as K } from "../util.js";
|
|
8
8
|
import q from "../../checkbox/Checkbox.js";
|
|
9
|
+
import "../../checkbox/Group.js";
|
|
9
10
|
import T from "../../components/common/hooks/useIsFirstRender.js";
|
|
10
11
|
import M from "../../components/common/hooks/useUpdateEffect.js";
|
|
11
12
|
import S from "@unicom-cloud/utils/class-name";
|
|
@@ -19,29 +20,29 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
19
20
|
if (L(r)) {
|
|
20
21
|
const o = r.toUpperCase().indexOf(t.toUpperCase());
|
|
21
22
|
if (o > -1) {
|
|
22
|
-
const
|
|
23
|
+
const h = r.substring(0, o + 1), g = r.substring(o + t.length);
|
|
23
24
|
b = /* @__PURE__ */ N(w, { children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
h,
|
|
26
|
+
/* @__PURE__ */ m("span", { className: `${s}-highlight`, children: r.substring(o, t.length + 1) }),
|
|
26
27
|
g
|
|
27
28
|
] });
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
return b;
|
|
31
|
-
},
|
|
32
|
+
}, ke = (t) => {
|
|
32
33
|
const {
|
|
33
34
|
store: r,
|
|
34
35
|
prefixCls: s,
|
|
35
36
|
multiple: b,
|
|
36
37
|
onChange: o,
|
|
37
|
-
inputValue:
|
|
38
|
+
inputValue: h,
|
|
38
39
|
renderEmpty: g,
|
|
39
40
|
style: U,
|
|
40
41
|
defaultActiveFirstOption: $,
|
|
41
42
|
rtl: V,
|
|
42
43
|
icons: _
|
|
43
44
|
} = t, x = t.value || [], [c, j] = P(
|
|
44
|
-
r.searchNodeByLabel(
|
|
45
|
+
r.searchNodeByLabel(h) || []
|
|
45
46
|
), k = E(), v = E(), I = T(), [p, y] = P(
|
|
46
47
|
$ ? 0 : -1
|
|
47
48
|
), C = (e, n, d) => {
|
|
@@ -58,8 +59,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
58
59
|
o == null || o([e.pathValue]);
|
|
59
60
|
};
|
|
60
61
|
return M(() => {
|
|
61
|
-
j(r.searchNodeByLabel(
|
|
62
|
-
}, [
|
|
62
|
+
j(r.searchNodeByLabel(h));
|
|
63
|
+
}, [h, r]), M(() => {
|
|
63
64
|
y((e) => e > c.length - 1 ? $ ? 0 : -1 : e);
|
|
64
65
|
}, [c]), F(() => {
|
|
65
66
|
const e = t.getTriggerElement();
|
|
@@ -106,7 +107,7 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
106
107
|
scrollMode: "if-needed",
|
|
107
108
|
boundary: (n = e.parentNode) == null ? void 0 : n.parentNode
|
|
108
109
|
});
|
|
109
|
-
}, [p, c]), k.current = null, c.length ? /* @__PURE__ */
|
|
110
|
+
}, [p, c]), k.current = null, c.length ? /* @__PURE__ */ m("div", { className: `${s}-list-wrapper`, children: /* @__PURE__ */ m(
|
|
110
111
|
X,
|
|
111
112
|
{
|
|
112
113
|
needFiller: !1,
|
|
@@ -128,8 +129,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
128
129
|
const d = e.getPathNodes(), u = d.map((l, R, ee) => /* @__PURE__ */ N("span", { children: [
|
|
129
130
|
l.label,
|
|
130
131
|
d.length === R + 1 ? "" : " / "
|
|
131
|
-
] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(h, e._data, f) : Z(h, u, s);
|
|
133
|
+
return /* @__PURE__ */ m(
|
|
133
134
|
"li",
|
|
134
135
|
{
|
|
135
136
|
title: L(i) ? i : L(u) ? u : void 0,
|
|
@@ -152,18 +153,18 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
152
153
|
onMouseLeave: () => {
|
|
153
154
|
!v.current && !e.disabled && y($ ? 0 : -1);
|
|
154
155
|
},
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ m("div", { className: `${s}-list-item-label`, children: O(t.renderOption) ? i : b ? /* @__PURE__ */ m(q, { checked: a, disabled: e.disabled, children: i }) : /* @__PURE__ */ N(w, { children: [
|
|
156
157
|
i,
|
|
157
|
-
a && /* @__PURE__ */
|
|
158
|
+
a && /* @__PURE__ */ m("span", { className: `${s}-check-icon`, children: _.checked })
|
|
158
159
|
] }) })
|
|
159
160
|
},
|
|
160
161
|
n
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
) }) : /* @__PURE__ */
|
|
165
|
+
) }) : /* @__PURE__ */ m(w, { children: g == null ? void 0 : g() });
|
|
165
166
|
};
|
|
166
167
|
export {
|
|
167
|
-
|
|
168
|
+
ke as default,
|
|
168
169
|
H as getLegalIndex
|
|
169
170
|
};
|
package/checkbox/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import e from "./Checkbox.js";
|
|
2
|
-
import { default as a } from "./Group.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
2
|
+
import { default as x, ClearCheckboxGroupContext as a } from "./Group.js";
|
|
3
|
+
import { default as f } from "./GroupBlock.js";
|
|
4
|
+
import { default as C } from "./useCheckbox.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
x as CheckboxGroup,
|
|
7
|
+
f as CheckboxGroupBlock,
|
|
8
|
+
a as ClearCheckboxGroupContext,
|
|
8
9
|
e as default,
|
|
9
|
-
|
|
10
|
+
C as useCheckbox
|
|
10
11
|
};
|
package/color-picker/Mode.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ColorPickerMode as t } from "./interface.js";
|
|
2
|
+
const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, g = (r) => i(r) === t.Single, A = (r) => i(r) === t.Gradient, o = (r) => Array.isArray(i(r)), s = (r) => o(r) ? t.Gradient : r, c = (r, n, e) => r && Array.isArray(r) ? t.Gradient : r && typeof r == "string" ? t.Single : n && Array.isArray(n) ? t.Gradient : n && typeof n == "string" ? t.Single : s(e);
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
s as getInitialActiveMode,
|
|
4
5
|
i as getMode,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
c as getModeByValue,
|
|
7
|
+
A as isGradientMode,
|
|
8
|
+
o as isMultiMode,
|
|
9
|
+
g as isSingleMode
|
|
9
10
|
};
|
package/index.js
CHANGED
|
@@ -109,86 +109,86 @@ import { default as ia } from "./card/index.js";
|
|
|
109
109
|
import { default as na } from "./carousel/index.js";
|
|
110
110
|
import { default as Ta } from "./cascader/Cascader.js";
|
|
111
111
|
import { default as Ca } from "./checkbox/Checkbox.js";
|
|
112
|
-
import { default as ya } from "./
|
|
113
|
-
import { default as Ra } from "./
|
|
114
|
-
import {
|
|
115
|
-
import { default as Da } from "./
|
|
116
|
-
import { default as Ea
|
|
117
|
-
import { default as La } from "./
|
|
118
|
-
import { default as wa } from "./
|
|
119
|
-
import { default as Ga } from "./
|
|
120
|
-
import { default as Ua } from "./
|
|
121
|
-
import { default as Wa } from "./
|
|
122
|
-
import { default as za } from "./
|
|
123
|
-
import { default as Ya } from "./
|
|
124
|
-
import { default as Ja } from "./
|
|
125
|
-
import { default as Xa } from "./
|
|
126
|
-
import { default as $a } from "./
|
|
127
|
-
import { default as ts } from "./
|
|
128
|
-
import { default as rs } from "./
|
|
129
|
-
import { default as ss } from "./
|
|
130
|
-
import { default as ls } from "./input
|
|
131
|
-
import { default as ms } from "./input-
|
|
132
|
-
import { default as ds } from "./
|
|
133
|
-
import { default as xs } from "./
|
|
134
|
-
import { default as cs } from "./
|
|
135
|
-
import { default as Ss } from "./
|
|
136
|
-
import { default as gs } from "./
|
|
137
|
-
import { default as bs } from "./
|
|
138
|
-
import { default as Is } from "./
|
|
139
|
-
import { default as hs } from "./
|
|
140
|
-
import { default as Ds } from "./
|
|
141
|
-
import { default as Es } from "./
|
|
142
|
-
import { default as Ms } from "./
|
|
143
|
-
import { default as Os } from "./
|
|
144
|
-
import { default as Ls } from "./
|
|
145
|
-
import { default as ws } from "./
|
|
146
|
-
import { default as Gs } from "./
|
|
147
|
-
import { default as Us } from "./
|
|
148
|
-
import { default as Ws } from "./
|
|
149
|
-
import { default as zs } from "./
|
|
150
|
-
import { default as Ys
|
|
151
|
-
import { default as Qs } from "./
|
|
152
|
-
import { default as Zs } from "./
|
|
153
|
-
import { default as ef } from "./
|
|
154
|
-
import { default as of } from "./
|
|
155
|
-
import { default as af } from "./
|
|
156
|
-
import { default as ff } from "./
|
|
157
|
-
import { default as pf } from "./
|
|
158
|
-
import {
|
|
159
|
-
import { default as nf } from "./
|
|
160
|
-
import { default as Tf } from "./
|
|
161
|
-
import { default as Cf } from "./
|
|
162
|
-
import { default as yf } from "./
|
|
163
|
-
import { default as Rf } from "./
|
|
164
|
-
import { default as Pf } from "./
|
|
165
|
-
import { default as kf } from "./
|
|
166
|
-
import { default as Af } from "./
|
|
167
|
-
import { default as vf } from "./
|
|
168
|
-
import { default as Bf
|
|
169
|
-
import { default as Lf } from "./
|
|
170
|
-
import { default as wf } from "./
|
|
171
|
-
import { default as Gf } from "./
|
|
172
|
-
import { default as Uf } from "./
|
|
173
|
-
import { default as Wf
|
|
174
|
-
import { default as qf } from "./
|
|
175
|
-
import { default as Kf } from "./
|
|
176
|
-
import { default as Qf } from "./
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import { default as pl } from "./
|
|
182
|
-
import { default as ul } from "./
|
|
183
|
-
import { default as il } from "./
|
|
184
|
-
import { default as nl } from "./
|
|
185
|
-
import { default as Tl } from "./
|
|
186
|
-
import { default as Cl } from "./
|
|
187
|
-
import { default as yl } from "./
|
|
188
|
-
import { default as Rl } from "./calendar/
|
|
189
|
-
import { default as Pl } from "./
|
|
190
|
-
import { default as kl } from "./card/
|
|
191
|
-
import { default as Al } from "./
|
|
112
|
+
import { default as ya } from "./checkbox/Group.js";
|
|
113
|
+
import { default as Ra } from "./collapse/Collapse.js";
|
|
114
|
+
import { default as Pa } from "./comment/index.js";
|
|
115
|
+
import { ConfigConsumer as ka, default as Da } from "./config-provider/ConfigProvider.js";
|
|
116
|
+
import { default as Ea } from "./copy/index.js";
|
|
117
|
+
import { default as Ma, DatePickerMonth as Ba, DatePickerQuarter as Oa, DatePickerWeek as Na, DatePickerYear as La } from "./date-picker/index.js";
|
|
118
|
+
import { default as wa } from "./descriptions/index.js";
|
|
119
|
+
import { default as Ga } from "./details/index.js";
|
|
120
|
+
import { default as Ua } from "./development/index.js";
|
|
121
|
+
import { default as Wa } from "./divider/index.js";
|
|
122
|
+
import { default as za } from "./drawer/Drawer.js";
|
|
123
|
+
import { default as Ya } from "./dropdown/index.js";
|
|
124
|
+
import { default as Ja } from "./empty/index.js";
|
|
125
|
+
import { default as Xa } from "./form/index.js";
|
|
126
|
+
import { default as $a } from "./grid/index.js";
|
|
127
|
+
import { default as ts } from "./icon/index.js";
|
|
128
|
+
import { default as rs } from "./icons/file.js";
|
|
129
|
+
import { default as ss } from "./image/Image.js";
|
|
130
|
+
import { default as ls } from "./input/Input.js";
|
|
131
|
+
import { default as ms } from "./input-number/index.js";
|
|
132
|
+
import { default as ds } from "./input-tag/InputTag.js";
|
|
133
|
+
import { default as xs } from "./layout/index.js";
|
|
134
|
+
import { default as cs } from "./link/index.js";
|
|
135
|
+
import { default as Ss } from "./list/index.js";
|
|
136
|
+
import { default as gs } from "./mentions/index.js";
|
|
137
|
+
import { default as bs } from "./menu/Menu.js";
|
|
138
|
+
import { default as Is } from "./message/index.js";
|
|
139
|
+
import { default as hs } from "./modal/Modal.js";
|
|
140
|
+
import { default as Ds } from "./notification/index.js";
|
|
141
|
+
import { default as Es } from "./page-header/index.js";
|
|
142
|
+
import { default as Ms } from "./pagination/Pagination.js";
|
|
143
|
+
import { default as Os } from "./popconfirm/index.js";
|
|
144
|
+
import { default as Ls } from "./popover/index.js";
|
|
145
|
+
import { default as ws } from "./portal/index.js";
|
|
146
|
+
import { default as Gs } from "./progress/index.js";
|
|
147
|
+
import { default as Us } from "./color-picker/index.js";
|
|
148
|
+
import { default as Ws } from "./icon-hover/index.js";
|
|
149
|
+
import { default as zs } from "./loading/index.js";
|
|
150
|
+
import { default as Ys } from "./radio/Radio.js";
|
|
151
|
+
import { default as Js, RadioGroupContext as Qs } from "./radio/Group.js";
|
|
152
|
+
import { default as Zs } from "./rate/index.js";
|
|
153
|
+
import { default as ef } from "./resize-box/index.js";
|
|
154
|
+
import { default as of } from "./result/index.js";
|
|
155
|
+
import { default as af } from "./select/Select.js";
|
|
156
|
+
import { default as ff } from "./skeleton/index.js";
|
|
157
|
+
import { default as pf } from "./slider/index.js";
|
|
158
|
+
import { default as uf } from "./space/index.js";
|
|
159
|
+
import { SpaceVertical as xf, default as nf } from "./space-/index.js";
|
|
160
|
+
import { default as Tf } from "./speech-synthesis/index.js";
|
|
161
|
+
import { default as Cf } from "./spin/index.js";
|
|
162
|
+
import { default as yf } from "./statistic/index.js";
|
|
163
|
+
import { default as Rf } from "./steps/index.js";
|
|
164
|
+
import { default as Pf } from "./suspense-fallback-test/index.js";
|
|
165
|
+
import { default as kf } from "./switch/index.js";
|
|
166
|
+
import { default as Af } from "./table/index.js";
|
|
167
|
+
import { default as vf } from "./tabs/Tab.js";
|
|
168
|
+
import { default as Bf } from "./tag/index.js";
|
|
169
|
+
import { default as Nf, TimePickerRange as Lf } from "./time-picker/index.js";
|
|
170
|
+
import { default as wf } from "./timeline/Timeline.js";
|
|
171
|
+
import { default as Gf } from "./tooltip/index.js";
|
|
172
|
+
import { default as Uf } from "./transfer/index.js";
|
|
173
|
+
import { default as Wf } from "./tree/Tree.js";
|
|
174
|
+
import { default as zf, TreeSelectTreeNode as qf } from "./tree-select/Select.js";
|
|
175
|
+
import { default as Kf } from "./trigger/index.js";
|
|
176
|
+
import { default as Qf } from "./typography/index.js";
|
|
177
|
+
import { default as Zf } from "./upload/Upload.js";
|
|
178
|
+
import { STATUS as el } from "./upload/constant.js";
|
|
179
|
+
import { default as ol } from "./verification-code/VerificationCode.js";
|
|
180
|
+
import { VERSION as al, VERSION_BUILD_DATE as sl, VERSION_BUILD_TIME as fl } from "./version/index.js";
|
|
181
|
+
import { default as pl } from "./virtual-list/VirtualList.js";
|
|
182
|
+
import { default as ul } from "./watermark/Watermark.js";
|
|
183
|
+
import { default as il } from "./anchor/Link.js";
|
|
184
|
+
import { default as nl } from "./avatar/Group.js";
|
|
185
|
+
import { default as Tl } from "./badge/Count.js";
|
|
186
|
+
import { default as Cl } from "./breadcrumb/Item.js";
|
|
187
|
+
import { default as yl } from "./button/Group.js";
|
|
188
|
+
import { default as Rl } from "./calendar/Month.js";
|
|
189
|
+
import { default as Pl } from "./calendar/Year.js";
|
|
190
|
+
import { default as kl } from "./card/Grid.js";
|
|
191
|
+
import { default as Al } from "./card/Meta.js";
|
|
192
192
|
import { default as vl } from "./checkbox/GroupBlock.js";
|
|
193
193
|
import { default as Bl } from "./checkbox/useCheckbox.js";
|
|
194
194
|
import { default as Nl } from "./collapse/Item.js";
|
|
@@ -264,183 +264,183 @@ export {
|
|
|
264
264
|
_r as Affix,
|
|
265
265
|
Hr as Alert,
|
|
266
266
|
jr as Anchor,
|
|
267
|
-
|
|
267
|
+
il as AnchorLink,
|
|
268
268
|
qr as AutoComplete,
|
|
269
269
|
Yr as AutoCompleteOptGroup,
|
|
270
270
|
Kr as AutoCompleteOption,
|
|
271
271
|
Qr as Avatar,
|
|
272
|
-
|
|
272
|
+
nl as AvatarGroup,
|
|
273
273
|
ea as BADGE_COLORS,
|
|
274
274
|
ta as BADGE_STATUS,
|
|
275
275
|
fa as BUTTON_STATUS,
|
|
276
276
|
la as BUTTON_TYPE,
|
|
277
277
|
Zr as BackTop,
|
|
278
278
|
oa as Badge,
|
|
279
|
-
|
|
279
|
+
Tl as BadgeCount,
|
|
280
280
|
aa as Breadcrumb,
|
|
281
|
-
|
|
281
|
+
Cl as BreadcrumbItem,
|
|
282
282
|
pa as Button,
|
|
283
|
-
|
|
283
|
+
yl as ButtonGroup,
|
|
284
284
|
Ro as COMPONENT_NAMES,
|
|
285
285
|
wo as CSSTransition,
|
|
286
286
|
ua as Calendar,
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
Rl as CalendarMonth,
|
|
288
|
+
Pl as CalendarYear,
|
|
289
289
|
ia as Card,
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
kl as CardGrid,
|
|
291
|
+
Al as CardMeta,
|
|
292
292
|
na as Carousel,
|
|
293
293
|
Ta as Cascader,
|
|
294
294
|
Ca as Checkbox,
|
|
295
|
-
|
|
295
|
+
ya as CheckboxGroup,
|
|
296
296
|
vl as CheckboxGroupBlock,
|
|
297
297
|
sp as Col,
|
|
298
|
-
|
|
298
|
+
Ra as Collapse,
|
|
299
299
|
Nl as CollapseItem,
|
|
300
|
-
|
|
300
|
+
Us as ColorPicker,
|
|
301
301
|
$m as ColorPickerPanel,
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
Pa as Comment,
|
|
303
|
+
ka as ConfigConsumer,
|
|
304
304
|
Fl as ConfigContext,
|
|
305
|
-
|
|
305
|
+
Da as ConfigProvider,
|
|
306
306
|
wl as ConfigProviderDefaultProps,
|
|
307
307
|
ze as ContextHolderElement,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
Ea as Copy,
|
|
309
|
+
Ma as DatePicker,
|
|
310
|
+
Ba as DatePickerMonth,
|
|
311
|
+
Oa as DatePickerQuarter,
|
|
312
312
|
Gl as DatePickerRange,
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
Na as DatePickerWeek,
|
|
314
|
+
La as DatePickerYear,
|
|
315
315
|
Fr as DefaultValidateMessage,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
wa as Descriptions,
|
|
317
|
+
Ga as Details,
|
|
318
|
+
Ua as Development,
|
|
319
|
+
Wa as Divider,
|
|
320
|
+
za as Drawer,
|
|
321
|
+
Ya as Dropdown,
|
|
322
322
|
Ul as DropdownButton,
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
Ja as Empty,
|
|
324
|
+
Xa as Form,
|
|
325
325
|
Wl as FormControl,
|
|
326
326
|
zl as FormItem,
|
|
327
327
|
Yl as FormList,
|
|
328
328
|
Jl as FormProvider,
|
|
329
|
-
|
|
329
|
+
$a as Grid,
|
|
330
330
|
fp as GridCol,
|
|
331
331
|
pp as GridItem,
|
|
332
332
|
up as GridRow,
|
|
333
|
-
|
|
333
|
+
ts as Icon,
|
|
334
334
|
Jm as IconContext,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
rs as IconFile,
|
|
336
|
+
Ws as IconHover,
|
|
337
|
+
ss as Image,
|
|
338
338
|
cp as ImagePreview,
|
|
339
339
|
Sp as ImagePreviewGroup,
|
|
340
|
-
|
|
340
|
+
ls as Input,
|
|
341
341
|
gp as InputButton,
|
|
342
342
|
bp as InputGroup,
|
|
343
|
-
|
|
343
|
+
ms as InputNumber,
|
|
344
344
|
Ip as InputPassword,
|
|
345
345
|
hp as InputSearch,
|
|
346
|
-
|
|
346
|
+
ds as InputTag,
|
|
347
347
|
Dp as InputTextArea,
|
|
348
|
-
|
|
348
|
+
xs as Layout,
|
|
349
349
|
vp as LayoutContent,
|
|
350
350
|
Bp as LayoutFooter,
|
|
351
351
|
Np as LayoutHeader,
|
|
352
352
|
Fp as LayoutSider,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
cs as Link,
|
|
354
|
+
Ss as List,
|
|
355
355
|
Vp as ListItem,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
356
|
+
zs as Loading,
|
|
357
|
+
gs as Mentions,
|
|
358
|
+
bs as Menu,
|
|
359
359
|
_p as MenuItem,
|
|
360
360
|
Hp as MenuItemGroup,
|
|
361
361
|
jp as MenuSubMenu,
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
Is as Message,
|
|
363
|
+
hs as Modal,
|
|
364
364
|
uu as NOOP,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
Ds as Notification,
|
|
366
|
+
Es as PageHeader,
|
|
367
|
+
Ms as Pagination,
|
|
368
|
+
Os as Popconfirm,
|
|
369
|
+
Ls as Popover,
|
|
370
|
+
ws as Portal,
|
|
371
371
|
Bo as PqbCSSTransition,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
Gs as Progress,
|
|
373
|
+
Ys as Radio,
|
|
374
|
+
Js as RadioGroup,
|
|
375
375
|
Xp as RadioGroupBlock,
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
Qs as RadioGroupContext,
|
|
377
|
+
Zs as Rate,
|
|
378
378
|
Go as ReplaceTransition,
|
|
379
|
-
|
|
379
|
+
ef as ResizeBox,
|
|
380
380
|
$p as ResizeBoxSplit,
|
|
381
381
|
tm as ResizeBoxSplitGroup,
|
|
382
|
-
|
|
382
|
+
of as Result,
|
|
383
383
|
dp as Row,
|
|
384
384
|
Or as Schema,
|
|
385
|
-
|
|
385
|
+
af as Select,
|
|
386
386
|
rm as SelectOption,
|
|
387
387
|
sm as SelectOptionGroup,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
ff as Skeleton,
|
|
389
|
+
pf as Slider,
|
|
390
|
+
uf as Space,
|
|
391
391
|
tu as SpaceVertical,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
392
|
+
xf as SpaceVertical_,
|
|
393
|
+
nf as Space_,
|
|
394
|
+
Tf as SpeechSynthesis,
|
|
395
|
+
Cf as Spin,
|
|
396
|
+
yf as Statistic,
|
|
397
397
|
lm as StatisticCountdown,
|
|
398
|
-
|
|
398
|
+
Rf as Steps,
|
|
399
399
|
mm as StepsItem,
|
|
400
400
|
um as StepsStep,
|
|
401
401
|
zp as SubMenu,
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
Pf as SuspenseFallbackTest,
|
|
403
|
+
kf as Switch,
|
|
404
404
|
Uo as SwitchTransition,
|
|
405
405
|
Nm as TabPane,
|
|
406
|
-
|
|
406
|
+
Af as Table,
|
|
407
407
|
im as TableSummary,
|
|
408
408
|
nm as TableSummaryCell,
|
|
409
409
|
Tm as TableSummaryRow,
|
|
410
|
-
|
|
410
|
+
vf as Tabs,
|
|
411
411
|
Lm as TabsTabPane,
|
|
412
|
-
|
|
412
|
+
Bf as Tag,
|
|
413
413
|
Ap as TextArea,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
Nf as TimePicker,
|
|
415
|
+
Lf as TimePickerRange,
|
|
416
|
+
wf as Timeline,
|
|
417
417
|
wm as TimelineItem,
|
|
418
418
|
Le as TinyColor,
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
Gf as Tooltip,
|
|
420
|
+
Uf as Transfer,
|
|
421
421
|
Wo as Transition,
|
|
422
422
|
zo as TransitionGroup,
|
|
423
|
-
|
|
423
|
+
Wf as Tree,
|
|
424
424
|
su as TreeNode,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
zf as TreeSelect,
|
|
426
|
+
qf as TreeSelectTreeNode,
|
|
427
|
+
Kf as Trigger,
|
|
428
|
+
Qf as Typography,
|
|
429
429
|
Gm as TypographyEllipsis,
|
|
430
430
|
Um as TypographyParagraph,
|
|
431
431
|
Wm as TypographyText,
|
|
432
432
|
zm as TypographyTitle,
|
|
433
433
|
lu as UI_PC_KEY,
|
|
434
434
|
pu as UI_PC_THEME_DARK_CLASS_NAME,
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
el as UPLOAD_STATUS,
|
|
436
|
+
Zf as Upload,
|
|
437
437
|
Ym as UploadList,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
438
|
+
al as VERSION,
|
|
439
|
+
sl as VERSION_BUILD_DATE,
|
|
440
|
+
fl as VERSION_BUILD_TIME,
|
|
441
|
+
ol as VerificationCode,
|
|
442
|
+
pl as VirtualList,
|
|
443
|
+
ul as Watermark,
|
|
444
444
|
lo as add,
|
|
445
445
|
xp as addFromIconFontCn,
|
|
446
446
|
No as callbackOriginRef,
|