@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
package/table/Table.js
CHANGED
|
@@ -10,7 +10,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
10
10
|
import "../chunk/B2yFlXke.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
|
-
import {
|
|
13
|
+
import { a0 as q } from "../chunk/BbQEqpOn.js";
|
|
14
14
|
import "../spin/index.js";
|
|
15
15
|
import "@unicom-cloud/utils/class-name";
|
|
16
16
|
import "../utils/dom.js";
|
|
@@ -19,5 +19,5 @@ import "../chunk/CIRG541s.js";
|
|
|
19
19
|
import "./ColGroup.js";
|
|
20
20
|
import "./util.js";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
q as default
|
|
23
23
|
};
|
package/table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as s, l, m as o, T as u, u as t, n as m, o as b, p as T, q as n, r, s as f, t as p } from "../chunk/BbQEqpOn.js";
|
|
2
2
|
import { defaultComponent as C } from "./constant.js";
|
|
3
3
|
export {
|
|
4
4
|
s as TableSummary,
|
|
@@ -6,8 +6,8 @@ export {
|
|
|
6
6
|
o as TableSummaryRow,
|
|
7
7
|
u as default,
|
|
8
8
|
C as tableDefaultComponent,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
t as useTableColumns,
|
|
10
|
+
m as useTableComponent,
|
|
11
11
|
b as useTableExpand,
|
|
12
12
|
T as useTableRowSelection,
|
|
13
13
|
n as useTableSorter,
|
package/time-picker/Picker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { isDayjs as
|
|
2
|
+
import Te from "@unicom-cloud/icons/IconUiClockCircle";
|
|
3
|
+
import { isDayjs as De } from "dayjs";
|
|
4
4
|
import c from "lodash/isArray";
|
|
5
|
-
import
|
|
5
|
+
import Se, { useContext as je, useState as y, useRef as we } from "react";
|
|
6
6
|
import { a as Ae } from "../chunk/B44Hj5ad.js";
|
|
7
7
|
import { u as Ee } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as Z } from "../chunk/VSe_Wq1g.js";
|
|
@@ -11,7 +11,7 @@ import Ne from "../picker/Input.js";
|
|
|
11
11
|
import ze from "../picker/InputRange.js";
|
|
12
12
|
import Oe from "../trigger/index.js";
|
|
13
13
|
import Fe from "@unicom-cloud/utils/class-name";
|
|
14
|
-
import { g as
|
|
14
|
+
import { g as S, j as p, k as _, h as F, b as Re, i as Ue, f as $e } from "../chunk/B3LeSidy.js";
|
|
15
15
|
import { a as Le } from "../chunk/ClqoGc3r.js";
|
|
16
16
|
import Me from "./context.js";
|
|
17
17
|
import { getFormatTime as qe } from "./util.js";
|
|
@@ -57,12 +57,12 @@ const ee = {
|
|
|
57
57
|
order: de,
|
|
58
58
|
utcOffset: r,
|
|
59
59
|
timezone: n
|
|
60
|
-
} = t, s = Be(t), ge = w == null ? void 0 : w("
|
|
60
|
+
} = t, s = Be(t), ge = w == null ? void 0 : w("time-picker");
|
|
61
61
|
function Ve() {
|
|
62
62
|
let e;
|
|
63
|
-
return t.value ? e =
|
|
63
|
+
return t.value ? e = S(t.value, s, r, n) : t.defaultValue && (e = S(t.defaultValue, s, r, n)), e;
|
|
64
64
|
}
|
|
65
|
-
const [q, B] = y(!1), [g, G] = y(Ve()), [i, P] = y(), [v, V] = y(), [b, he] = y(0), f = "value" in t ?
|
|
65
|
+
const [q, B] = y(!1), [g, G] = y(Ve()), [i, P] = y(), [v, V] = y(), [b, he] = y(0), f = "value" in t ? S(ce, s, r, n) : g, H = "popupVisible" in t ? t.popupVisible : q, x = Z(r), k = Z(n);
|
|
66
66
|
He(() => {
|
|
67
67
|
if (g && (x !== r || n !== k)) {
|
|
68
68
|
const e = c(g) ? g.map(
|
|
@@ -87,7 +87,7 @@ const ee = {
|
|
|
87
87
|
function C(e, o) {
|
|
88
88
|
B(e), V(void 0), o == null || o(), e || P(void 0);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function T(e) {
|
|
91
91
|
const o = d && de && c(e) ? Re(e.map((a, I, l) => qe(a))) : e;
|
|
92
92
|
G(o), P(void 0), V(void 0), ve(o), ie || C(!1);
|
|
93
93
|
}
|
|
@@ -95,7 +95,7 @@ const ee = {
|
|
|
95
95
|
c(e) && Ue(f, e) && (u == null || u(
|
|
96
96
|
e.map((o) => p(o, r, n).format(s)),
|
|
97
97
|
e.map((o) => p(o, r, n))
|
|
98
|
-
)),
|
|
98
|
+
)), De(e) && $e(f, e) && (u == null || u(
|
|
99
99
|
p(e, r, n).format(s),
|
|
100
100
|
p(e, r, n)
|
|
101
101
|
));
|
|
@@ -108,12 +108,12 @@ const ee = {
|
|
|
108
108
|
className: Fe(`${ge}-container`, e ? R : ""),
|
|
109
109
|
style: e ? U : {},
|
|
110
110
|
onClick: () => z(),
|
|
111
|
-
children:
|
|
111
|
+
children: Se.cloneElement(se, {
|
|
112
112
|
...t,
|
|
113
113
|
format: s,
|
|
114
114
|
inputValue: v,
|
|
115
115
|
setInputValue: V,
|
|
116
|
-
onConfirmValue:
|
|
116
|
+
onConfirmValue: T,
|
|
117
117
|
setValueShow: P,
|
|
118
118
|
valueShow: o,
|
|
119
119
|
value: f,
|
|
@@ -130,7 +130,7 @@ const ee = {
|
|
|
130
130
|
}
|
|
131
131
|
function Ce(e) {
|
|
132
132
|
var a, I;
|
|
133
|
-
const o =
|
|
133
|
+
const o = S(e, s);
|
|
134
134
|
if (d) {
|
|
135
135
|
const l = [
|
|
136
136
|
...c(i) ? i : g || []
|
|
@@ -138,11 +138,11 @@ const ee = {
|
|
|
138
138
|
if (F(e, s)) {
|
|
139
139
|
l[b] = o;
|
|
140
140
|
const Y = l.map(
|
|
141
|
-
(
|
|
141
|
+
(D) => p(D, r, n)
|
|
142
142
|
);
|
|
143
143
|
(a = t.onSelect) == null || a.call(
|
|
144
144
|
t,
|
|
145
|
-
Y.map((
|
|
145
|
+
Y.map((D) => D && D.format(s)),
|
|
146
146
|
Y
|
|
147
147
|
), P(l), V(void 0);
|
|
148
148
|
}
|
|
@@ -152,13 +152,13 @@ const ee = {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
function Ie() {
|
|
155
|
-
d ? c(i) && i.length ? v && !F(v, s) ? C(!1) : i[0] === void 0 || i[1] === void 0 ? O(b === 0 ? 1 : 0) : i.length === 2 &&
|
|
155
|
+
d ? c(i) && i.length ? v && !F(v, s) ? C(!1) : i[0] === void 0 || i[1] === void 0 ? O(b === 0 ? 1 : 0) : i.length === 2 && T(i) : C(!1) : T(i || f);
|
|
156
156
|
}
|
|
157
157
|
function ye(e) {
|
|
158
158
|
var o;
|
|
159
|
-
e.stopPropagation(),
|
|
159
|
+
e.stopPropagation(), T(void 0), u == null || u(void 0, void 0), (o = t.onClear) == null || o.call(t);
|
|
160
160
|
}
|
|
161
|
-
const be = d && c(E) ? E : (W = m == null ? void 0 : m.TimePicker) == null ? void 0 : W.placeholders, xe = E || ((X = m == null ? void 0 : m.TimePicker) == null ? void 0 : X.placeholder), ke = M && M.inputSuffix || /* @__PURE__ */ h(
|
|
161
|
+
const be = d && c(E) ? E : (W = m == null ? void 0 : m.TimePicker) == null ? void 0 : W.placeholders, xe = E || ((X = m == null ? void 0 : m.TimePicker) == null ? void 0 : X.placeholder), ke = M && M.inputSuffix || /* @__PURE__ */ h(Te, {}), Q = {
|
|
162
162
|
style: U,
|
|
163
163
|
className: R,
|
|
164
164
|
popupVisible: H,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { isDayjs as a } from "dayjs";
|
|
3
|
-
import
|
|
3
|
+
import I from "lodash/isArray";
|
|
4
4
|
import { useContext as S } from "react";
|
|
5
|
-
import { j as w, k as b } from "../chunk/
|
|
5
|
+
import { j as w, k as b } from "../chunk/B3LeSidy.js";
|
|
6
6
|
import { o as j } from "../chunk/BKKEev13.js";
|
|
7
7
|
import z from "./TimePicker.js";
|
|
8
8
|
import T from "./context.js";
|
|
@@ -24,18 +24,18 @@ function _(d) {
|
|
|
24
24
|
i[t] = b(p, c, l), e[t] = p, n == null || n(
|
|
25
25
|
e.map((m) => m.format(s)),
|
|
26
26
|
e
|
|
27
|
-
), v(i), f &&
|
|
27
|
+
), v(i), f && I(e) && a(e[0]) && a(e[1]) && u(i);
|
|
28
28
|
}
|
|
29
29
|
function x() {
|
|
30
30
|
o.length && (o[0] === void 0 || o[1] === void 0) ? h(t === 0 ? 1 : 0) : u(o);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const P = j(C, [
|
|
33
33
|
"defaultValue",
|
|
34
34
|
"placeholder",
|
|
35
35
|
"value",
|
|
36
36
|
"onChange"
|
|
37
37
|
]), r = o[t];
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ g(
|
|
39
39
|
z,
|
|
40
40
|
{
|
|
41
41
|
onSelect: k,
|
|
@@ -47,7 +47,7 @@ function _(d) {
|
|
|
47
47
|
valueShow: r,
|
|
48
48
|
popupVisible: V,
|
|
49
49
|
disableConfirm: f,
|
|
50
|
-
...
|
|
50
|
+
...P
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
}
|
|
@@ -3,7 +3,7 @@ import { useContext as W, useCallback as X } from "react";
|
|
|
3
3
|
import Y from "../button/index.js";
|
|
4
4
|
import { a as xn } from "../chunk/B44Hj5ad.js";
|
|
5
5
|
import $n from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import { g as On, a as Z, d as $, j as V } from "../chunk/
|
|
6
|
+
import { g as On, a as Z, d as $, j as V } from "../chunk/B3LeSidy.js";
|
|
7
7
|
import { padStart as d } from "../utils/pad.js";
|
|
8
8
|
import D from "./TimeColumn.js";
|
|
9
9
|
import vn from "./context.js";
|
|
@@ -32,7 +32,7 @@ function Tn(S) {
|
|
|
32
32
|
hideFooter: tn,
|
|
33
33
|
showNowBtn: K = !0,
|
|
34
34
|
scrollSticky: sn
|
|
35
|
-
} = S, { getPrefixCls: E, locale: H } = W(xn), A = E == null ? void 0 : E("
|
|
35
|
+
} = S, { getPrefixCls: E, locale: H } = W(xn), A = E == null ? void 0 : E("time-picker"), { utcOffset: L, timezone: R } = W(vn), f = On(on, O), g = f && f.hour() >= 12 ? "pm" : "am", a = Cn(S), _ = X(
|
|
36
36
|
(e) => {
|
|
37
37
|
const o = b.hour || 1, n = b.minute || 1, M = b.second || 1, s = [];
|
|
38
38
|
if (e === "hour") {
|
package/time-picker/index.js
CHANGED
|
@@ -10,11 +10,11 @@ function i(n, a, c) {
|
|
|
10
10
|
}
|
|
11
11
|
const p = i(/* @__PURE__ */ e(k, {}), "TimePicker"), P = i(
|
|
12
12
|
/* @__PURE__ */ e(t, {}),
|
|
13
|
-
"
|
|
13
|
+
"TimePickerRange",
|
|
14
14
|
"range"
|
|
15
15
|
);
|
|
16
16
|
Object.assign(p, { RangePicker: P });
|
|
17
17
|
export {
|
|
18
|
-
P as
|
|
18
|
+
P as TimePickerRange,
|
|
19
19
|
p as default
|
|
20
20
|
};
|
package/time-picker/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { y as l, b as i } from "../chunk/BNevupAU.js";
|
|
2
2
|
import { isDayjs as m } from "dayjs";
|
|
3
|
-
import { d as f, m as c } from "../chunk/
|
|
3
|
+
import { d as f, m as c } from "../chunk/B3LeSidy.js";
|
|
4
4
|
function T(o) {
|
|
5
5
|
const s = ["H", "h", "m", "s", "a", "A"], r = [];
|
|
6
6
|
let a = !1;
|
package/transfer/Item.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { a1 as d } from "../chunk/BbQEqpOn.js";
|
|
6
6
|
import "../chunk/BYdIoY50.js";
|
|
7
7
|
import "../chunk/B44Hj5ad.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
package/transfer/List.js
CHANGED
|
@@ -4,7 +4,7 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a2 as n, a3 as u } from "../chunk/BbQEqpOn.js";
|
|
8
8
|
import "../chunk/B44Hj5ad.js";
|
|
9
9
|
import "../chunk/BYdIoY50.js";
|
|
10
10
|
import "../input/Input.js";
|
package/transfer/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../chunk/BFTV6myl.js";
|
|
|
9
9
|
import "../chunk/D5wldVRB.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/ClqoGc3r.js";
|
|
12
|
-
import {
|
|
12
|
+
import { v } from "../chunk/BbQEqpOn.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
v as default
|
|
15
15
|
};
|
package/tree/Animation.js
CHANGED
package/tree/Node.js
CHANGED
|
@@ -5,7 +5,7 @@ import "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import "lodash/isFunction";
|
|
7
7
|
import "react";
|
|
8
|
-
import { N as x } from "../chunk/
|
|
8
|
+
import { N as x } from "../chunk/BbQEqpOn.js";
|
|
9
9
|
import "../chunk/B44Hj5ad.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../utils/throttleByRaf.js";
|
package/tree/NodeList.js
CHANGED
package/tree/Tree.js
CHANGED
|
@@ -11,9 +11,9 @@ import "../chunk/B44Hj5ad.js";
|
|
|
11
11
|
import "@unicom-cloud/utils/class-name";
|
|
12
12
|
import "../chunk/ClqoGc3r.js";
|
|
13
13
|
import "./Context.js";
|
|
14
|
-
import { N as
|
|
14
|
+
import { N as T, w as b } from "../chunk/BbQEqpOn.js";
|
|
15
15
|
import "./util.js";
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
T as TreeNode,
|
|
18
|
+
b as default
|
|
19
19
|
};
|
package/tree/index.js
CHANGED
package/tree-select/List.js
CHANGED
package/tree-select/Select.js
CHANGED
|
@@ -11,7 +11,7 @@ import "../chunk/oopARUrq.js";
|
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/D5wldVRB.js";
|
|
13
13
|
import "../select-view/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { y as h, x as j } from "../chunk/BbQEqpOn.js";
|
|
15
15
|
import "../tree/util.js";
|
|
16
16
|
import "../trigger/index.js";
|
|
17
17
|
import "@unicom-cloud/utils/class-name";
|
package/tree-select/index.js
CHANGED
|
@@ -12,8 +12,8 @@ export declare function timezoneToOffset(inputTs: number, timezone: string): any
|
|
|
12
12
|
export declare function getNow(utcOffset?: number, timezone?: string): originDayjs.Dayjs;
|
|
13
13
|
export declare function toTimezone(time: Dayjs, utcOffset?: number, timezone?: string, local?: boolean): Dayjs;
|
|
14
14
|
export declare function toLocal(time: Dayjs, utcOffset?: number, timezone?: string): Dayjs;
|
|
15
|
-
export declare function getTimeFormat(format:
|
|
16
|
-
export declare function getDayjsValue(time:
|
|
15
|
+
export declare function getTimeFormat(format: string): string;
|
|
16
|
+
export declare function getDayjsValue(time: string | Dayjs, format: string | string[], utcOffset?: number, timezone?: string): originDayjs.Dayjs | (originDayjs.Dayjs | undefined)[] | undefined;
|
|
17
17
|
export declare function getValueWithTime(date: Dayjs, time?: Dayjs): Dayjs;
|
|
18
18
|
export declare function getSortedDayjsArray(values?: Dayjs[]): originDayjs.Dayjs[] | undefined;
|
|
19
19
|
export declare function isDayjsChange(prevValue: Dayjs | undefined, currentValue: Dayjs | undefined): boolean | originDayjs.Dayjs;
|
|
@@ -7,5 +7,11 @@ declare const AutoCompleteComponent: typeof ForwardRefAutoComplete & {
|
|
|
7
7
|
Option: typeof Select.Option;
|
|
8
8
|
OptGroup: typeof Select.OptGroup;
|
|
9
9
|
};
|
|
10
|
+
declare const AutoCompleteOption: React.ForwardRefExoticComponent<import("..").SelectOptionProps & React.RefAttributes<unknown>> & {
|
|
11
|
+
__PQB_SELECT_OPTION__?: boolean;
|
|
12
|
+
}, AutoCompleteOptGroup: React.ForwardRefExoticComponent<import("..").SelectOptionGroupProps & React.RefAttributes<unknown>> & {
|
|
13
|
+
__PQB_SELECT_OPTGROUP__?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export { AutoCompleteOptGroup, AutoCompleteOption };
|
|
10
16
|
export default AutoCompleteComponent;
|
|
11
17
|
export type { AutoCompleteProps };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import Count from './Count';
|
|
1
2
|
import type { BadgeProps } from './interface';
|
|
2
3
|
declare const BadgeComponent: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<unknown>>;
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
declare const BADGE_COLORS: string[];
|
|
5
|
+
declare const BADGE_STATUS: string[];
|
|
5
6
|
export default BadgeComponent;
|
|
6
|
-
export {
|
|
7
|
+
export { BADGE_COLORS, BADGE_STATUS, Count as BadgeCount };
|
|
8
|
+
export type { BadgeProps };
|
|
@@ -5,5 +5,6 @@ declare const ForwardRefBreadcrumb: React.ForwardRefExoticComponent<BreadcrumbPr
|
|
|
5
5
|
declare const BreadcrumbComponent: typeof ForwardRefBreadcrumb & {
|
|
6
6
|
Item: typeof Item;
|
|
7
7
|
};
|
|
8
|
+
export { Item as BreadcrumbItem };
|
|
8
9
|
export default BreadcrumbComponent;
|
|
9
10
|
export type { BreadcrumbProps };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import Month from './Month';
|
|
2
|
+
import Year from './Year';
|
|
1
3
|
import type { CalendarProps } from './interface';
|
|
2
4
|
declare function Calendar(baseProps: CalendarProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
5
|
declare namespace Calendar {
|
|
4
6
|
var displayName: string;
|
|
5
7
|
}
|
|
8
|
+
export { Month as CalendarMonth, Year as CalendarYear };
|
|
6
9
|
export default Calendar;
|
|
7
10
|
export type { CalendarProps };
|
package/types/pc/card/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const DefaultFieldNames: {
|
|
|
9
9
|
disabled: string;
|
|
10
10
|
};
|
|
11
11
|
interface ForwardRefCascaderType extends React.ForwardRefExoticComponent<React.PropsWithoutRef<CascaderProps> & React.RefAttributes<SelectViewHandle>> {
|
|
12
|
-
<T =
|
|
12
|
+
<T = unknown>(props: React.PropsWithChildren<CascaderProps<T>> & {
|
|
13
13
|
ref?: React.Ref<SelectViewHandle>;
|
|
14
14
|
}): React.ReactElement;
|
|
15
15
|
}
|
|
@@ -11,5 +11,6 @@ declare const ForwardRefCollapse: React.ForwardRefExoticComponent<CollapseProps
|
|
|
11
11
|
declare const CollapseComponent: typeof ForwardRefCollapse & {
|
|
12
12
|
Item: typeof CollapseItem;
|
|
13
13
|
};
|
|
14
|
+
export { CollapseItem };
|
|
14
15
|
export default CollapseComponent;
|
|
15
16
|
export type { CollapseProps };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ControlBar } from './ControlBar';
|
|
3
|
+
import { InputAlpha } from './InputAlpha';
|
|
4
|
+
import { InputHex } from './InputHex';
|
|
5
|
+
import { InputRgb } from './InputRgb';
|
|
2
6
|
import type { ColorPickerProps } from './interface';
|
|
7
|
+
import { Palette } from './Palette';
|
|
8
|
+
import { Panel } from './Panel';
|
|
3
9
|
declare const ColorPickerComponent: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<unknown>>;
|
|
10
|
+
export { ControlBar as ColorPickerControlBar, InputAlpha as ColorPickerInputAlpha, InputHex as ColorPickerInputHex, InputRgb as ColorPickerInputRgb, Palette as ColorPickerPalette, Panel as ColorPickerPanel, };
|
|
4
11
|
export default ColorPickerComponent;
|
|
5
12
|
export type { ColorPickerProps };
|
|
@@ -5,6 +5,6 @@ declare const MonthPicker: import("react").ForwardRefExoticComponent<import("./i
|
|
|
5
5
|
declare const YearPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseYearPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
6
6
|
declare const WeekPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseWeekPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
7
7
|
declare const QuarterPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseQuarterPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
8
|
-
export { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker };
|
|
8
|
+
export { MonthPicker as DatePickerMonth, QuarterPicker as DatePickerQuarter, RangePicker as DatePickerRange, WeekPicker as DatePickerWeek, YearPicker as DatePickerYear, };
|
|
9
9
|
export default DatePicker;
|
|
10
10
|
export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, };
|
|
@@ -278,7 +278,7 @@ export interface BaseDatePickerProps {
|
|
|
278
278
|
* @zh 时间显示的参数,参考 [TimePickerProps](#/pc/time-picker),作用同 `showTime`。
|
|
279
279
|
* @en Parameters of TimePicker, refer to [TimePickerProps](#/pc/time-picker), which has the same function as `showTime`.
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
timePickerProps?: TimePickerProps;
|
|
282
282
|
/**
|
|
283
283
|
* @zh 是否显示 `showTime` 时,选择当前时间的按钮。
|
|
284
284
|
* @en When displaying `showTime`, button to select current time.
|
|
@@ -442,7 +442,7 @@ export interface BaseRangePickerProps {
|
|
|
442
442
|
* @zh 时间显示的参数,参考 [TimePickerProps](#/pc/time-picker),作用同 `showTime`。
|
|
443
443
|
* @en Parameters of TimePicker, refer to [TimePickerProps](#/pc/time-picker), which has the same function as `showTime`.
|
|
444
444
|
*/
|
|
445
|
-
|
|
445
|
+
timePickerProps?: TimePickerProps;
|
|
446
446
|
/**
|
|
447
447
|
* @zh 点击确认按钮的回调
|
|
448
448
|
* @en Callback when click confirm button
|
|
@@ -17,7 +17,7 @@ export interface PanelBodyProps {
|
|
|
17
17
|
disabledDate?: (current: Dayjs) => boolean;
|
|
18
18
|
onMouseEnterCell?: (date: Dayjs, disabled: boolean) => void;
|
|
19
19
|
onMouseLeaveCell?: (date: Dayjs, disabled: boolean) => void;
|
|
20
|
-
dateRender?: (date?: Dayjs) => ReactNode;
|
|
20
|
+
dateRender?: (date?: Dayjs, col?: RowType) => ReactNode;
|
|
21
21
|
rows?: RowType[][];
|
|
22
22
|
value?: CalendarValue;
|
|
23
23
|
isSameTime?: (current: Dayjs, target: Dayjs) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormInstance, KeyType } from '../interface';
|
|
2
2
|
export declare function getFormInstance<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(): FormInstance<FormData, FieldValue, FieldKey>;
|
|
3
3
|
type SetForm = () => void;
|
|
4
|
-
declare function useForm<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey
|
|
4
|
+
declare function useForm<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey> | null | undefined, SetForm];
|
|
5
5
|
export default useForm;
|
package/types/pc/form/index.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ export interface FormComponent extends RefForm {
|
|
|
22
22
|
useFormState: typeof useFormState;
|
|
23
23
|
}
|
|
24
24
|
declare const FormComp: FormComponent;
|
|
25
|
-
export { FormControl, FormItem, FormList, FormProvider, getFormInstance, useForm, useFormContext, useFormState, useWatch, };
|
|
25
|
+
export { FormControl, FormItem, FormList, FormProvider, getFormInstance, useForm, useFormContext, useFormState, useWatch as useFormWatch, };
|
|
26
26
|
export default FormComp;
|
package/types/pc/grid/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import Col from './Col';
|
|
2
|
+
import OriginGrid from './Grid';
|
|
3
|
+
import GridItem from './GridItem';
|
|
2
4
|
import Row from './Row';
|
|
3
|
-
import OriginGrid from './grid';
|
|
4
|
-
import GridItem from './grid-item';
|
|
5
5
|
declare const Grid: typeof OriginGrid & {
|
|
6
6
|
Col: typeof Col;
|
|
7
7
|
Row: typeof Row;
|
|
8
8
|
Item: typeof GridItem;
|
|
9
|
-
GridItem: typeof GridItem;
|
|
10
9
|
};
|
|
11
|
-
export { Col, GridItem, Row };
|
|
10
|
+
export { Col, Col as GridCol, GridItem, Row as GridRow, Row };
|
|
12
11
|
export default Grid;
|
|
13
12
|
export type { ColProps, GridProps, ResponsiveValue, RowProps, } from './interface';
|
package/types/pc/index.d.ts
CHANGED
|
@@ -2,31 +2,31 @@ export * from './hooks';
|
|
|
2
2
|
export * from './utils';
|
|
3
3
|
export { default as Affix } from './affix';
|
|
4
4
|
export { default as Alert } from './alert';
|
|
5
|
-
export { default as Anchor } from './anchor';
|
|
6
|
-
export { default as AutoComplete } from './auto-complete';
|
|
7
|
-
export { default as Avatar } from './avatar';
|
|
5
|
+
export { default as Anchor, AnchorLink } from './anchor';
|
|
6
|
+
export { default as AutoComplete, AutoCompleteOptGroup, AutoCompleteOption, } from './auto-complete';
|
|
7
|
+
export { default as Avatar, AvatarGroup } from './avatar';
|
|
8
8
|
export { default as BackTop } from './back-top';
|
|
9
|
-
export { default as Badge, BADGE_COLORS, BADGE_STATUS } from './badge';
|
|
10
|
-
export { default as Breadcrumb } from './breadcrumb';
|
|
9
|
+
export { default as Badge, BADGE_COLORS, BADGE_STATUS, BadgeCount, } from './badge';
|
|
10
|
+
export { default as Breadcrumb, BreadcrumbItem } from './breadcrumb';
|
|
11
11
|
export { default as Button, BUTTON_STATUS, BUTTON_TYPE, ButtonGroup, } from './button';
|
|
12
|
-
export { default as Calendar } from './calendar';
|
|
13
|
-
export { default as Card } from './card';
|
|
12
|
+
export { default as Calendar, CalendarMonth, CalendarYear } from './calendar';
|
|
13
|
+
export { default as Card, CardGrid, CardMeta } from './card';
|
|
14
14
|
export { default as Carousel } from './carousel';
|
|
15
15
|
export { default as Cascader } from './cascader';
|
|
16
|
-
export { default as Checkbox, CheckboxGroup, CheckboxGroupBlock, } from './checkbox';
|
|
17
|
-
export { default as Collapse } from './collapse';
|
|
16
|
+
export { default as Checkbox, CheckboxGroup, CheckboxGroupBlock, useCheckbox, } from './checkbox';
|
|
17
|
+
export { default as Collapse, CollapseItem } from './collapse';
|
|
18
18
|
export { default as Comment } from './comment';
|
|
19
19
|
export { ConfigConsumer, ConfigContext, default as ConfigProvider, ConfigProviderDefaultProps, } from './config-provider';
|
|
20
20
|
export { default as Copy } from './copy';
|
|
21
|
-
export { default as DatePicker,
|
|
21
|
+
export { default as DatePicker, DatePickerMonth, DatePickerQuarter, DatePickerRange, DatePickerWeek, DatePickerYear, } from './date-picker';
|
|
22
22
|
export { default as Descriptions } from './descriptions';
|
|
23
23
|
export { default as Development } from './development';
|
|
24
24
|
export { default as Divider } from './divider';
|
|
25
25
|
export { default as Drawer } from './drawer';
|
|
26
26
|
export { default as Dropdown, DropdownButton } from './dropdown';
|
|
27
27
|
export { default as Empty } from './empty';
|
|
28
|
-
export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState,
|
|
29
|
-
export { Col, default as Grid, GridItem, Row } from './grid';
|
|
28
|
+
export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState, useFormWatch, } from './form';
|
|
29
|
+
export { Col, default as Grid, GridCol, GridItem, GridRow, Row } from './grid';
|
|
30
30
|
export { addFromIconFontCn, default as Icon, IconContext, useIconProps, } from './icon';
|
|
31
31
|
export { default as IconFile } from './icons/file';
|
|
32
32
|
export { default as Image, ImagePreview, ImagePreviewGroup } from './image';
|
|
@@ -62,7 +62,7 @@ export type { CarouselProps } from './carousel/interface';
|
|
|
62
62
|
export type { CascaderProps } from './cascader/interface';
|
|
63
63
|
export type { CheckboxGroupProps, CheckboxProps } from './checkbox/interface';
|
|
64
64
|
export type { CollapseItemProps, CollapseProps } from './collapse/interface';
|
|
65
|
-
export { default as ColorPicker } from './color-picker';
|
|
65
|
+
export { default as ColorPicker, ColorPickerPanel } from './color-picker';
|
|
66
66
|
export type { ColorPickerProps } from './color-picker/interface';
|
|
67
67
|
export type { CommentProps } from './comment/interface';
|
|
68
68
|
export type { ConfigProviderProps } from './config-provider/interface';
|
|
@@ -128,7 +128,7 @@ export { TabPane, default as Tabs, TabsTabPane } from './tabs';
|
|
|
128
128
|
export type { TabsProps } from './tabs/interface';
|
|
129
129
|
export { default as Tag } from './tag';
|
|
130
130
|
export type { TagProps } from './tag/interface';
|
|
131
|
-
export { default as TimePicker,
|
|
131
|
+
export { default as TimePicker, TimePickerRange } from './time-picker';
|
|
132
132
|
export type { TimePickerProps, RangePickerProps as TimeRangePickerProps, } from './time-picker/interface';
|
|
133
133
|
export { default as Timeline, TimelineItem } from './timeline';
|
|
134
134
|
export type { TimelineItemProps, TimelineProps } from './timeline/interface';
|
|
@@ -149,5 +149,6 @@ export type { UploadProps } from './upload/interface';
|
|
|
149
149
|
export { default as VerificationCode } from './verification-code';
|
|
150
150
|
export type { VerificationCodeProps } from './verification-code/interface';
|
|
151
151
|
export { VERSION, VERSION_BUILD_DATE, VERSION_BUILD_TIME } from './version';
|
|
152
|
+
export { default as VirtualList } from './virtual-list';
|
|
152
153
|
export { default as Watermark } from './watermark';
|
|
153
154
|
export type { WatermarkProps } from './watermark/interface';
|