@unicom-cloud/ui 0.8.52 → 0.8.54

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.
Files changed (133) hide show
  1. package/Affix.js +41 -40
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +3 -3
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +2 -2
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +2 -2
  9. package/Button.js +1 -1
  10. package/Calendar.js +3 -3
  11. package/Card.js +1 -1
  12. package/Carousel.js +1 -1
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +3 -3
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +1 -1
  20. package/DatePicker.js +1268 -1233
  21. package/Descriptions.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +1 -1
  26. package/Empty.js +1 -1
  27. package/Form.js +122 -117
  28. package/Grid.js +86 -83
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +2 -2
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +1 -1
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +1 -1
  49. package/Popover.js +1 -1
  50. package/Progress.js +1 -1
  51. package/Radio.js +2 -2
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +33 -32
  54. package/Result.js +1 -1
  55. package/Select.js +1 -1
  56. package/SelectView.js +142 -141
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +1 -1
  60. package/Spin.js +1 -1
  61. package/Statistic.js +1 -1
  62. package/Steps.js +1 -1
  63. package/Switch.js +15 -14
  64. package/Table.js +141 -133
  65. package/Tabs.js +1 -1
  66. package/Tag.js +111 -82
  67. package/TimePicker.js +3 -3
  68. package/Timeline.js +1 -1
  69. package/Tooltip.js +1 -1
  70. package/Transfer.js +3 -3
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +1 -1
  73. package/Trigger.js +31 -30
  74. package/Typography.js +25 -25
  75. package/Upload.js +1 -1
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +1 -1
  78. package/Watermark.js +1 -1
  79. package/chunk/{DUX5Hw8l.js → BC0PujUD.js} +3 -3
  80. package/chunk/{Ct7mcZuW.js → BH5fVprw.js} +1 -1
  81. package/chunk/{I0bfWb5y.js → BUQBof6z.js} +95 -93
  82. package/chunk/{DWGwYNvC.js → BdJcAQ0Q.js} +2 -2
  83. package/chunk/{CQvJK4kb.js → BmtF7P8U.js} +12 -12
  84. package/chunk/{DfvdYCUz.js → BzMYgxgO.js} +1 -1
  85. package/chunk/{n58kSv9T.js → BzqZZHGK.js} +11 -5
  86. package/chunk/{5PpvDpEt.js → C3I_L73_.js} +2 -2
  87. package/chunk/{CkIWpIl6.js → CIc4yo9k.js} +1 -1
  88. package/chunk/{dhljdm11.js → CK0H_Yi4.js} +64 -63
  89. package/chunk/{BXZYc88i.js → CTSIr-Pr.js} +3 -3
  90. package/chunk/{4XXtB4ZV.js → CqcZfQQ4.js} +1 -1
  91. package/chunk/{Cku5-xbe.js → CzTYWtfa.js} +47 -46
  92. package/chunk/DG7VgAhL.js +445 -0
  93. package/chunk/DQ3uFRJD.js +892 -0
  94. package/chunk/{DG5zSZDd.js → DTgc2wl4.js} +2 -2
  95. package/chunk/{9AJ-uN8F.js → DZGcv_9A.js} +1 -1
  96. package/chunk/{CoevJNNj.js → DbtCtriE.js} +1 -1
  97. package/chunk/{tkU8zIK4.js → DdtfPvgk.js} +1 -1
  98. package/chunk/{Cw63stMm.js → Dki1RB5p.js} +18 -18
  99. package/chunk/Niaq_og8.js +970 -0
  100. package/chunk/{DCe3olyi.js → PuuHmqnW.js} +101 -99
  101. package/chunk/{BHWpeAbb.js → RL1SNlng.js} +1 -1
  102. package/chunk/{CfqAfcA3.js → RRWbBHK-.js} +2 -2
  103. package/chunk/{B9nYZhXo.js → ShWkfsJd.js} +2 -2
  104. package/chunk/i1A7W8Qt.js +277 -0
  105. package/chunk/qSJXQ1qu.js +640 -0
  106. package/chunk/{z7sBNzI4.js → xPzFRQJn.js} +33 -32
  107. package/index.js +408 -346
  108. package/package.json +1 -23
  109. package/style.css +1 -1
  110. package/types/color-picker/colors.d.ts +1 -1
  111. package/types/date-picker/Picker.d.ts +4 -3
  112. package/types/date-picker/PickerRange.d.ts +3 -7
  113. package/types/date-picker/interface.d.ts +9 -1
  114. package/types/grid/index.d.ts +2 -1
  115. package/types/index.d.ts +1 -0
  116. package/types/modal/config.d.ts +1 -0
  117. package/types/modal/interface.d.ts +1 -0
  118. package/types/pagination/interface.d.ts +1 -0
  119. package/types/picker/InputRange.d.ts +1 -1
  120. package/types/select/Select.d.ts +1 -1
  121. package/types/tag/interface.d.ts +7 -3
  122. package/types/utils/CSSTransition.d.ts +2 -1
  123. package/types/utils/is.d.ts +4 -17
  124. package/types/version/index.d.ts +1 -1
  125. package/utils/CSSTransition.js +1 -1
  126. package/utils/contextHolder.js +1 -1
  127. package/utils/is.js +102 -104
  128. package/utils/reactDOM.js +19 -19
  129. package/chunk/C61BEbHK.js +0 -263
  130. package/chunk/DMeJAY1S.js +0 -606
  131. package/chunk/DXMtLuTP.js +0 -443
  132. package/chunk/m3_n9fBe.js +0 -961
  133. package/chunk/uUGMUxt_.js +0 -474
package/chunk/C61BEbHK.js DELETED
@@ -1,263 +0,0 @@
1
- import { jsxs as H, jsx as r } from "react/jsx-runtime";
2
- import ce from "@unicom-cloud/icons/IconUiClose";
3
- import b from "lodash/isArray";
4
- import { forwardRef as le, useContext as ae, useRef as F, useImperativeHandle as te } from "react";
5
- import { a as ne, I as oe } from "./z7sBNzI4.js";
6
- import L from "@unicom-cloud/utils/class-name";
7
- import { Enter as ie, Tab as me } from "../utils/keyCode.js";
8
- import se from "../utils/omit.js";
9
- function $e({
10
- style: M,
11
- className: A,
12
- prefixCls: I,
13
- allowClear: U,
14
- status: W,
15
- error: m,
16
- disabled: C,
17
- placeholder: k,
18
- format: v,
19
- size: g,
20
- onClear: q,
21
- editable: B,
22
- value: u,
23
- inputValue: D,
24
- onPressEnter: d,
25
- suffixIcon: z,
26
- prefix: h,
27
- onChange: w,
28
- popupVisible: G,
29
- isPlaceholder: J,
30
- inputProps: l,
31
- ...Q
32
- }, x) {
33
- const {
34
- getPrefixCls: i,
35
- size: K,
36
- locale: V,
37
- rtl: X
38
- } = ae(ne), y = F(null), Y = g || K;
39
- te(x, () => ({
40
- focus() {
41
- var n, f;
42
- (f = (n = y.current) == null ? void 0 : n.focus) == null || f.call(n);
43
- },
44
- blur() {
45
- var n, f;
46
- (f = (n = y.current) == null ? void 0 : n.blur) == null || f.call(n);
47
- },
48
- getRootDOMNode: () => y.current
49
- }));
50
- function Z(n) {
51
- var j;
52
- (j = l == null ? void 0 : l.onKeyDown) == null || j.call(l, n), n.key === ie.key && (d == null || d());
53
- }
54
- function _(n) {
55
- var f;
56
- (f = l == null ? void 0 : l.onChange) == null || f.call(l, n), w == null || w(n);
57
- }
58
- let $ = "";
59
- D !== void 0 ? $ = D : u && !b(u) && ($ = typeof v == "function" ? v(u) : u.locale(V.dayjsLocale).format(v));
60
- const O = B ? {} : { readOnly: !0 }, t = I || i("picker"), N = W || (m ? "error" : void 0), R = L(
61
- t,
62
- `${t}-size-${Y}`,
63
- {
64
- [`${t}-focused`]: !!G,
65
- [`${t}-disabled`]: C,
66
- [`${t}-has-prefix`]: h,
67
- [`${t}-${N}`]: N,
68
- [`${t}-rtl`]: X
69
- },
70
- A
71
- );
72
- return /* @__PURE__ */ H(
73
- "div",
74
- {
75
- style: M,
76
- className: R,
77
- ...se(Q, ["onChange", "onPressEnter"]),
78
- children: [
79
- h && /* @__PURE__ */ r("div", { className: `${t}-prefix`, children: h }),
80
- /* @__PURE__ */ r(
81
- "div",
82
- {
83
- className: L(`${t}-input`, {
84
- [`${t}-input-placeholder`]: J
85
- }),
86
- children: /* @__PURE__ */ r(
87
- "input",
88
- {
89
- ref: y,
90
- ...l,
91
- disabled: C,
92
- placeholder: k,
93
- className: `${t}-start-time`,
94
- value: $,
95
- onKeyDown: Z,
96
- onChange: _,
97
- ...O
98
- }
99
- )
100
- }
101
- ),
102
- /* @__PURE__ */ H("div", { className: `${t}-suffix`, children: [
103
- U && $ && /* @__PURE__ */ r(
104
- oe,
105
- {
106
- prefix: t,
107
- onClick: q,
108
- className: `${t}-clear-icon`,
109
- children: /* @__PURE__ */ r(ce, {})
110
- }
111
- ),
112
- /* @__PURE__ */ r("span", { className: `${t}-suffix-icon`, children: z })
113
- ] })
114
- ]
115
- }
116
- );
117
- }
118
- const De = le($e);
119
- function de({
120
- allowClear: M,
121
- error: A,
122
- status: I,
123
- style: U,
124
- className: W,
125
- disabled: m,
126
- placeholder: C = [],
127
- value: k = [],
128
- popupVisible: v,
129
- format: g,
130
- size: q,
131
- onClear: B,
132
- editable: u,
133
- inputValue: D,
134
- onPressEnter: d,
135
- onPressTab: z,
136
- onChange: h,
137
- separator: w,
138
- suffixIcon: G,
139
- changeFocusedInputIndex: J,
140
- focusedInputIndex: l,
141
- isPlaceholder: Q,
142
- prefix: x,
143
- inputProps: i = [],
144
- onBlur: K,
145
- ...V
146
- }, X) {
147
- const {
148
- getPrefixCls: y,
149
- size: Y,
150
- locale: Z,
151
- rtl: _
152
- } = ae(ne), $ = F(null), O = F(null), t = F(null), N = b(m) ? m[0] : m, R = b(m) ? m[1] : m;
153
- te(X, () => ({
154
- focus(e) {
155
- var a, S;
156
- (l === 0 && !N || l === 1 && !R) && ((S = (a = ((typeof e == "number" ? e : l) === 0 ? $ : O).current) == null ? void 0 : a.focus) == null || S.call(a));
157
- },
158
- blur() {
159
- var e, s, c, a;
160
- l === 0 && ((s = (e = $.current) == null ? void 0 : e.blur) == null || s.call(e)), l === 1 && ((a = (c = O.current) == null ? void 0 : c.blur) == null || a.call(c));
161
- },
162
- getRootDOMNode: () => t.current
163
- }));
164
- function n(e, s) {
165
- var c, a;
166
- (a = (c = i == null ? void 0 : i[s]) == null ? void 0 : c.onClick) == null || a.call(c, e), l !== s && J(s);
167
- }
168
- function f(e, s) {
169
- var a, S;
170
- const c = e.key;
171
- (S = (a = i == null ? void 0 : i[s]) == null ? void 0 : a.onKeyDown) == null || S.call(a, e), c === ie.key && (d == null || d()), c === me.key && (e.preventDefault(), z == null || z(e));
172
- }
173
- function j(e, s) {
174
- var c, a;
175
- e.stopPropagation(), (a = (c = i == null ? void 0 : i[s]) == null ? void 0 : c.onChange) == null || a.call(c, e), h == null || h(e);
176
- }
177
- function T(e, s) {
178
- var c, a;
179
- (a = (c = i == null ? void 0 : i[s]) == null ? void 0 : c.onBlur) == null || a.call(c, e), K == null || K(e);
180
- }
181
- const o = y("picker"), re = q || Y, E = I || (A ? "error" : void 0), fe = L(
182
- o,
183
- `${o}-range`,
184
- `${o}-size-${re}`,
185
- {
186
- [`${o}-focused`]: !!v,
187
- [`${o}-disabled`]: N && R,
188
- [`${o}-${E}`]: E,
189
- [`${o}-rtl`]: _,
190
- [`${o}-has-prefix`]: x
191
- },
192
- W
193
- ), p = (e) => {
194
- const s = k[e] ? k[e].locale(Z.dayjsLocale).format(b(g) ? g[e] : g) : "";
195
- return D && e === l ? D : s;
196
- }, P = u ? {} : { readOnly: !0 };
197
- function ee(e) {
198
- return L(`${o}-input`, {
199
- [`${o}-input-active`]: l === e,
200
- [`${o}-input-placeholder`]: Q && l === e
201
- });
202
- }
203
- return /* @__PURE__ */ H(
204
- "div",
205
- {
206
- style: U,
207
- ref: t,
208
- className: fe,
209
- ...se(V, ["onChange", "onPressEnter"]),
210
- children: [
211
- x && /* @__PURE__ */ r("div", { className: `${o}-prefix`, children: x }),
212
- /* @__PURE__ */ r("div", { className: ee(0), children: /* @__PURE__ */ r(
213
- "input",
214
- {
215
- ref: $,
216
- ...i[0],
217
- disabled: N,
218
- placeholder: C[0],
219
- value: p(0),
220
- onChange: (e) => j(e, 0),
221
- onKeyDown: (e) => f(e, 0),
222
- onClick: (e) => n(e, 0),
223
- onBlur: (e) => T(e, 0),
224
- ...P
225
- }
226
- ) }),
227
- /* @__PURE__ */ r("span", { className: `${o}-separator`, children: w || "-" }),
228
- /* @__PURE__ */ r("div", { className: ee(1), children: /* @__PURE__ */ r(
229
- "input",
230
- {
231
- ref: O,
232
- ...i[1],
233
- disabled: R,
234
- placeholder: C[1],
235
- value: p(1),
236
- onChange: (e) => j(e, 1),
237
- onKeyDown: (e) => f(e, 1),
238
- onClick: (e) => n(e, 1),
239
- onBlur: (e) => T(e, 1),
240
- ...P
241
- }
242
- ) }),
243
- /* @__PURE__ */ H("div", { className: `${o}-suffix`, children: [
244
- M && k.length === 2 && /* @__PURE__ */ r(
245
- oe,
246
- {
247
- prefix: o,
248
- onClick: B,
249
- className: `${o}-clear-icon`,
250
- children: /* @__PURE__ */ r(ce, {})
251
- }
252
- ),
253
- /* @__PURE__ */ r("span", { className: `${o}-suffix-icon`, children: G })
254
- ] })
255
- ]
256
- }
257
- );
258
- }
259
- const ze = le(de);
260
- export {
261
- De as I,
262
- ze as a
263
- };