@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/list/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "../grid/Col.js";
|
|
6
6
|
import "../grid/Row.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
|
-
import { L as I } from "../chunk/
|
|
8
|
+
import { L as I } from "../chunk/BbQEqpOn.js";
|
|
9
9
|
import "../spin/index.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/BKKEev13.js";
|
package/mentions/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
5
|
import "../chunk/D5wldVRB.js";
|
|
6
6
|
import "../input/Input.js";
|
|
7
|
-
import { M as s } from "../chunk/
|
|
7
|
+
import { M as s } from "../chunk/BbQEqpOn.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
10
10
|
import "./util.js";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.90","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/pc/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/pagination/PageOption.js
CHANGED
package/pagination/Pagination.js
CHANGED
package/pagination/index.js
CHANGED
package/radio/Group.js
CHANGED
|
@@ -8,7 +8,7 @@ import "../chunk/D5wldVRB.js";
|
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "../utils/constant.js";
|
|
10
10
|
import "../chunk/ClqoGc3r.js";
|
|
11
|
-
import {
|
|
11
|
+
import { B as C, j as f, h as l } from "../chunk/BbQEqpOn.js";
|
|
12
12
|
export {
|
|
13
13
|
C as ClearRadioGroupContext,
|
|
14
14
|
f as RadioGroupContext,
|
package/radio/GroupBlock.js
CHANGED
|
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../chunk/B44Hj5ad.js";
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as e } from "../chunk/BbQEqpOn.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
e as default
|
|
9
9
|
};
|
package/radio/Radio.js
CHANGED
|
@@ -7,10 +7,10 @@ import "../chunk/BFTV6myl.js";
|
|
|
7
7
|
import "../chunk/D5wldVRB.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import {
|
|
10
|
+
import { h as e, i as G, j as f, R as l } from "../chunk/BbQEqpOn.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
e as RadioGroup,
|
|
13
|
+
G as RadioGroupBlock,
|
|
14
|
+
f as RadioGroupContext,
|
|
15
15
|
l as default
|
|
16
16
|
};
|
package/radio/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as a } from "../chunk/
|
|
2
|
-
import {
|
|
1
|
+
import { R as a } from "../chunk/BbQEqpOn.js";
|
|
2
|
+
import { B as i, h as p, i as d, j as e } from "../chunk/BbQEqpOn.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
i as ClearRadioGroupContext,
|
|
5
5
|
p as RadioGroup,
|
|
6
6
|
d as RadioGroupBlock,
|
|
7
|
-
|
|
7
|
+
e as RadioGroupContext,
|
|
8
8
|
a as default
|
|
9
9
|
};
|
package/select/Option.js
CHANGED
package/select/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isFunction";
|
|
4
4
|
import "react";
|
|
5
|
-
import { O as h, S as j } from "../chunk/
|
|
5
|
+
import { O as h, S as j } from "../chunk/BbQEqpOn.js";
|
|
6
6
|
import "../chunk/B44Hj5ad.js";
|
|
7
7
|
import "../chunk/B4YRLi8r.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
package/select/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as o } from "../chunk/
|
|
2
|
-
import { O as r } from "../chunk/
|
|
1
|
+
import { S as o } from "../chunk/BbQEqpOn.js";
|
|
2
|
+
import { O as r } from "../chunk/BbQEqpOn.js";
|
|
3
3
|
import { default as f } from "./OptGroup.js";
|
|
4
4
|
export {
|
|
5
5
|
r as SelectOption,
|
package/select/util.js
CHANGED
|
@@ -9,9 +9,9 @@ import "lodash/isString";
|
|
|
9
9
|
import "react";
|
|
10
10
|
import "../chunk/CftuXmo_.js";
|
|
11
11
|
import "../chunk/B7M-FGia.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a7 as u, a8 as d, a9 as v, aa as E, ab as O, ac as S } from "../chunk/BbQEqpOn.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
u as flatChildren,
|
|
15
15
|
d as getValidValue,
|
|
16
16
|
v as isEmpty,
|
|
17
17
|
E as isSelectOptGroup,
|
package/space/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { UI_COMMON_PREFIX as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useContext as S } from "react";
|
|
3
|
+
import { UI_COMMON_PREFIX as x } from "@unicom-cloud/utils/constant/ui";
|
|
4
4
|
import "@unicom-cloud/utils/case-name";
|
|
5
|
-
import
|
|
5
|
+
import C from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import "../chunk/9TSjT7x_.js";
|
|
7
7
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/B3LeSidy.js";
|
|
9
9
|
import "../utils/dom.js";
|
|
10
10
|
import "@unicom-cloud/utils/file/fileToURL";
|
|
11
11
|
import "lodash/escapeRegExp";
|
|
@@ -36,20 +36,20 @@ import "../chunk/BZ3igxQN.js";
|
|
|
36
36
|
import "@unicom-cloud/utils/file/saveAs";
|
|
37
37
|
import "@unicom-cloud/utils/screenfull";
|
|
38
38
|
import "@unicom-cloud/utils/tree";
|
|
39
|
-
import { isArray as
|
|
39
|
+
import { isArray as h, isNumber as I } from "@unicom-cloud/utils/is";
|
|
40
40
|
import "uuid";
|
|
41
41
|
import "../chunk/DEuVgCzp.js";
|
|
42
42
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
43
|
-
import { a as
|
|
43
|
+
import { a as _ } from "../chunk/B44Hj5ad.js";
|
|
44
44
|
import "lodash/isEqualWith";
|
|
45
45
|
import "../chunk/B4WG1mhs.js";
|
|
46
|
-
import { u as
|
|
46
|
+
import { u as z } from "../chunk/BFTV6myl.js";
|
|
47
47
|
import "@unicom-cloud/utils/constant";
|
|
48
|
-
function
|
|
49
|
-
if (
|
|
48
|
+
function w(t = 8) {
|
|
49
|
+
if (I(t))
|
|
50
50
|
return t;
|
|
51
|
-
if (
|
|
52
|
-
return t.map((i, r,
|
|
51
|
+
if (h(t))
|
|
52
|
+
return t.map((i, r, o) => w(i));
|
|
53
53
|
switch (t) {
|
|
54
54
|
case "mini":
|
|
55
55
|
return 4;
|
|
@@ -63,32 +63,34 @@ function h(t = 8) {
|
|
|
63
63
|
return 8;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const r = `${
|
|
68
|
-
className:
|
|
69
|
-
style:
|
|
66
|
+
function M(t, i) {
|
|
67
|
+
const r = `${x}-space`, {
|
|
68
|
+
className: o,
|
|
69
|
+
style: y,
|
|
70
70
|
children: f,
|
|
71
|
-
|
|
71
|
+
inline: u,
|
|
72
|
+
gap: n = "small",
|
|
72
73
|
direction: e = "horizontal",
|
|
73
74
|
wrap: s,
|
|
74
|
-
justifyContent:
|
|
75
|
-
alignItems:
|
|
75
|
+
justifyContent: m,
|
|
76
|
+
alignItems: p,
|
|
76
77
|
...a
|
|
77
78
|
} = t;
|
|
78
|
-
let
|
|
79
|
-
e === "horizontal" && (
|
|
80
|
-
const c =
|
|
81
|
-
return
|
|
79
|
+
let $ = p;
|
|
80
|
+
e === "horizontal" && ($ || ($ = "center"));
|
|
81
|
+
const c = w(n), l = { ...y };
|
|
82
|
+
return h(c) ? (l.rowGap = c[0], l.columnGap = c[1]) : l.gap = c, /* @__PURE__ */ d(
|
|
82
83
|
"div",
|
|
83
84
|
{
|
|
84
85
|
ref: i,
|
|
85
|
-
className:
|
|
86
|
+
className: C(
|
|
86
87
|
`${r}`,
|
|
88
|
+
u && `${r}-inline`,
|
|
87
89
|
s && `${r}-wrap`,
|
|
88
90
|
`${r}-${e}`,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
m && `${r}-justify-content-${m}`,
|
|
92
|
+
$ && `${r}-align-items-${$}`,
|
|
93
|
+
o
|
|
92
94
|
),
|
|
93
95
|
style: l,
|
|
94
96
|
...a,
|
|
@@ -96,44 +98,44 @@ function z(t, i) {
|
|
|
96
98
|
}
|
|
97
99
|
);
|
|
98
100
|
}
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
function
|
|
102
|
-
return /* @__PURE__ */
|
|
101
|
+
const g = N(M);
|
|
102
|
+
g.displayName = "Space";
|
|
103
|
+
function j(t, i) {
|
|
104
|
+
return /* @__PURE__ */ d(g, { ref: i, ...t, direction: "vertical", children: t.children });
|
|
103
105
|
}
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
const
|
|
106
|
+
const V = N(j);
|
|
107
|
+
V.displayName = "SpaceVertical";
|
|
108
|
+
const v = {
|
|
107
109
|
gap: "small",
|
|
108
110
|
direction: "horizontal"
|
|
109
111
|
};
|
|
110
|
-
function
|
|
111
|
-
const { getPrefixCls: r, componentConfig:
|
|
112
|
+
function G(t, i) {
|
|
113
|
+
const { getPrefixCls: r, componentConfig: o, rtl: y } = S(_), f = z(
|
|
112
114
|
t,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
), { className: u, direction:
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
|
|
115
|
+
v,
|
|
116
|
+
o == null ? void 0 : o.Space
|
|
117
|
+
), { className: u, direction: n, wrap: e, size: s, align: m, ...p } = f;
|
|
118
|
+
s && (p.gap = s), m && (p.alignItems = m);
|
|
119
|
+
const a = r == null ? void 0 : r("space");
|
|
120
|
+
return /* @__PURE__ */ d(
|
|
121
|
+
g,
|
|
120
122
|
{
|
|
121
123
|
ref: i,
|
|
122
|
-
className:
|
|
123
|
-
`${
|
|
124
|
-
|
|
125
|
-
`${
|
|
124
|
+
className: C(
|
|
125
|
+
`${a}`,
|
|
126
|
+
e && `${a}-wrap`,
|
|
127
|
+
`${a}-${n}`,
|
|
126
128
|
u
|
|
127
129
|
),
|
|
128
|
-
direction:
|
|
129
|
-
wrap:
|
|
130
|
-
...
|
|
130
|
+
direction: n,
|
|
131
|
+
wrap: e,
|
|
132
|
+
...p
|
|
131
133
|
}
|
|
132
134
|
);
|
|
133
135
|
}
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
+
const O = N(G);
|
|
137
|
+
O.displayName = "Space";
|
|
136
138
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
V as SpaceVertical,
|
|
140
|
+
O as default
|
|
139
141
|
};
|
package/statistic/Countdown.js
CHANGED
|
@@ -4,7 +4,7 @@ import _ from "lodash/isFunction";
|
|
|
4
4
|
import { forwardRef as E, useContext as F, useState as v, useRef as O, useEffect as b } from "react";
|
|
5
5
|
import { a as k } from "../chunk/B44Hj5ad.js";
|
|
6
6
|
import q from "@unicom-cloud/utils/class-name";
|
|
7
|
-
import { g as w, a as N } from "../chunk/
|
|
7
|
+
import { g as w, a as N } from "../chunk/B3LeSidy.js";
|
|
8
8
|
import { getDateString as h } from "./util.js";
|
|
9
9
|
function z(a, p) {
|
|
10
10
|
const { getPrefixCls: n } = F(k), {
|
package/steps/index.js
CHANGED
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
2
|
+
import $, { forwardRef as k, useContext as x } from "react";
|
|
3
|
+
import { a as A } from "../chunk/B44Hj5ad.js";
|
|
4
|
+
import { u as E } from "../chunk/BFTV6myl.js";
|
|
5
|
+
import I from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { a as j } from "../chunk/ClqoGc3r.js";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import y from "./Step.js";
|
|
8
|
+
const F = {
|
|
9
9
|
current: 1,
|
|
10
10
|
type: "default",
|
|
11
11
|
size: "default",
|
|
12
12
|
direction: "horizontal",
|
|
13
13
|
labelPlacement: "horizontal"
|
|
14
14
|
};
|
|
15
|
-
function L(
|
|
16
|
-
const { getPrefixCls: s, componentConfig: n, rtl:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
function L(z, h) {
|
|
16
|
+
const { getPrefixCls: s, componentConfig: n, rtl: N } = x(A), c = E(
|
|
17
|
+
z,
|
|
18
|
+
F,
|
|
19
19
|
n == null ? void 0 : n.Steps
|
|
20
20
|
), {
|
|
21
|
-
className:
|
|
22
|
-
style:
|
|
23
|
-
children:
|
|
21
|
+
className: b,
|
|
22
|
+
style: v,
|
|
23
|
+
children: C,
|
|
24
24
|
current: l = 1,
|
|
25
|
-
status:
|
|
26
|
-
onChange:
|
|
25
|
+
status: m,
|
|
26
|
+
onChange: f,
|
|
27
27
|
type: e,
|
|
28
|
-
size:
|
|
29
|
-
direction:
|
|
30
|
-
labelPlacement:
|
|
31
|
-
customDot:
|
|
32
|
-
lineless:
|
|
33
|
-
} =
|
|
34
|
-
let r =
|
|
35
|
-
e === "dot" && (r =
|
|
36
|
-
let i =
|
|
28
|
+
size: P,
|
|
29
|
+
direction: u,
|
|
30
|
+
labelPlacement: g,
|
|
31
|
+
customDot: w,
|
|
32
|
+
lineless: d
|
|
33
|
+
} = c, t = s == null ? void 0 : s("steps");
|
|
34
|
+
let r = g;
|
|
35
|
+
e === "dot" && (r = u === "vertical" ? "horizontal" : "vertical"), e === "navigation" && (r = "horizontal");
|
|
36
|
+
let i = u;
|
|
37
37
|
(e === "navigation" || e === "arrow") && (i = "horizontal");
|
|
38
|
-
const
|
|
38
|
+
const D = I(
|
|
39
39
|
t,
|
|
40
40
|
`${t}-${i}`,
|
|
41
41
|
`${t}-label-${r}`,
|
|
42
|
-
`${t}-size-${
|
|
42
|
+
`${t}-size-${P}`,
|
|
43
43
|
{
|
|
44
|
-
[`${t}-change-onclick`]: typeof
|
|
44
|
+
[`${t}-change-onclick`]: typeof f == "function",
|
|
45
45
|
[`${t}-mode-${e}`]: e !== "default",
|
|
46
|
-
[`${t}-lineless`]:
|
|
47
|
-
[`${t}-rtl`]:
|
|
46
|
+
[`${t}-lineless`]: d,
|
|
47
|
+
[`${t}-rtl`]: N
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
b
|
|
50
50
|
);
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ R(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
|
-
ref:
|
|
55
|
-
style:
|
|
56
|
-
className:
|
|
57
|
-
...j(
|
|
58
|
-
children:
|
|
54
|
+
ref: h,
|
|
55
|
+
style: v,
|
|
56
|
+
className: D,
|
|
57
|
+
...j(c),
|
|
58
|
+
children: $.Children.toArray(C).filter(
|
|
59
59
|
(o) => o && o.type && o.type.displayName === "Step"
|
|
60
60
|
).map((o, a) => {
|
|
61
61
|
if (a += 1, o) {
|
|
62
|
-
const
|
|
62
|
+
const S = {
|
|
63
63
|
prefixCls: t,
|
|
64
64
|
type: e,
|
|
65
65
|
index: a,
|
|
66
66
|
current: l,
|
|
67
|
-
status: l === a ?
|
|
68
|
-
customDot:
|
|
67
|
+
status: l === a ? m : void 0,
|
|
68
|
+
customDot: w,
|
|
69
69
|
labelPlacement: r,
|
|
70
70
|
direction: i,
|
|
71
|
-
onChange:
|
|
72
|
-
lineless:
|
|
71
|
+
onChange: f,
|
|
72
|
+
lineless: d,
|
|
73
73
|
...o.props
|
|
74
74
|
};
|
|
75
|
-
return
|
|
75
|
+
return m === "error" && l === a + 1 && (S.nextStepError = !0), $.cloneElement(o, S);
|
|
76
76
|
}
|
|
77
77
|
return null;
|
|
78
78
|
})
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
|
-
const M =
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
const M = k(L), p = M;
|
|
83
|
+
p.displayName = "Steps";
|
|
84
|
+
p.Step = y;
|
|
85
|
+
p.Item = y;
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
y as StepsItem,
|
|
88
|
+
y as StepsStep,
|
|
89
|
+
p as default
|
|
89
90
|
};
|