@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.
Files changed (140) hide show
  1. package/Anchor.js +4 -2
  2. package/AutoComplete.js +4 -2
  3. package/Avatar.js +4 -3
  4. package/Badge.js +6 -5
  5. package/Breadcrumb.js +4 -3
  6. package/Calendar.js +7 -5
  7. package/Card.js +6 -4
  8. package/Cascader.js +1 -1
  9. package/Checkbox.js +4 -4
  10. package/Collapse.js +3 -2
  11. package/ColorPicker.js +13 -2
  12. package/DatePicker.js +8 -8
  13. package/Form.js +3 -3
  14. package/Grid.js +10 -8
  15. package/List.js +1 -1
  16. package/Mentions.js +1 -1
  17. package/Pagination.js +1 -1
  18. package/Radio.js +5 -5
  19. package/Select.js +1 -1
  20. package/Table.js +3 -3
  21. package/TimePicker.js +2 -2
  22. package/Transfer.js +2 -2
  23. package/Tree.js +1 -1
  24. package/TreeSelect.js +3 -3
  25. package/Typography.js +1 -1
  26. package/anchor/Anchor.js +30 -29
  27. package/anchor/index.js +2 -0
  28. package/auto-complete/index.js +4 -2
  29. package/avatar/index.js +4 -3
  30. package/badge/index.js +39 -43
  31. package/breadcrumb/index.js +18 -17
  32. package/calendar/Month.js +2 -2
  33. package/calendar/Year.js +2 -2
  34. package/calendar/index.js +7 -5
  35. package/card/index.js +31 -29
  36. package/cascader/Cascader.js +1 -1
  37. package/cascader/index.js +1 -1
  38. package/cascader/util.js +1 -1
  39. package/checkbox/Checkbox.js +6 -6
  40. package/checkbox/Group.js +1 -1
  41. package/checkbox/GroupBlock.js +2 -2
  42. package/checkbox/index.js +4 -4
  43. package/chunk/B3LeSidy.js +192 -0
  44. package/chunk/{CgyNQvYg.js → BbQEqpOn.js} +388 -381
  45. package/chunk/{BP4igg_F.js → BcCuJQY8.js} +41 -40
  46. package/chunk/{Doi4-DdV.js → C8Kcc_9d.js} +99 -92
  47. package/chunk/D-Hw4x_H.js +88 -0
  48. package/chunk/{BC2OXILt.js → Dc-uXGtN.js} +1 -1
  49. package/collapse/Collapse.js +255 -13
  50. package/collapse/Item.js +2 -2
  51. package/collapse/index.js +4 -2
  52. package/color-picker/Panel.js +1 -1
  53. package/color-picker/index.js +13 -2
  54. package/date-picker/Picker.js +142 -138
  55. package/date-picker/RangePicker.js +2 -2
  56. package/date-picker/index.js +22 -22
  57. package/date-picker/util.js +1 -1
  58. package/form/Form.js +1 -1
  59. package/form/index.js +32 -32
  60. package/grid/index.js +13 -12
  61. package/image/Image.js +26 -25
  62. package/index.js +600 -571
  63. package/list/index.js +1 -1
  64. package/mentions/index.js +1 -1
  65. package/package.json +1 -1
  66. package/pagination/PageOption.js +1 -1
  67. package/pagination/Pagination.js +1 -1
  68. package/pagination/index.js +1 -1
  69. package/radio/Group.js +1 -1
  70. package/radio/GroupBlock.js +2 -2
  71. package/radio/Radio.js +4 -4
  72. package/radio/index.js +4 -4
  73. package/select/Option.js +1 -1
  74. package/select/Select.js +1 -1
  75. package/select/index.js +2 -2
  76. package/select/util.js +2 -2
  77. package/space/index.js +56 -54
  78. package/statistic/Countdown.js +1 -1
  79. package/steps/index.js +50 -49
  80. package/style.css +1 -1
  81. package/table/Table.js +2 -2
  82. package/table/index.js +3 -3
  83. package/time-picker/Picker.js +17 -17
  84. package/time-picker/RangePicker.js +7 -7
  85. package/time-picker/TimePicker.js +2 -2
  86. package/time-picker/index.js +2 -2
  87. package/time-picker/util.js +1 -1
  88. package/transfer/Item.js +1 -1
  89. package/transfer/List.js +1 -1
  90. package/transfer/index.js +2 -2
  91. package/tree/Animation.js +1 -1
  92. package/tree/Node.js +1 -1
  93. package/tree/NodeList.js +1 -1
  94. package/tree/Tree.js +3 -3
  95. package/tree/index.js +1 -1
  96. package/tree-select/List.js +1 -1
  97. package/tree-select/Select.js +1 -1
  98. package/tree-select/index.js +2 -2
  99. package/types/common/space/interface.d.ts +4 -0
  100. package/types/common/utils/dayjs.d.ts +2 -2
  101. package/types/pc/anchor/Anchor.d.ts +1 -0
  102. package/types/pc/anchor/index.d.ts +2 -1
  103. package/types/pc/auto-complete/index.d.ts +6 -0
  104. package/types/pc/avatar/index.d.ts +1 -0
  105. package/types/pc/badge/index.d.ts +5 -3
  106. package/types/pc/breadcrumb/index.d.ts +1 -0
  107. package/types/pc/calendar/index.d.ts +3 -0
  108. package/types/pc/card/index.d.ts +1 -0
  109. package/types/pc/cascader/Cascader.d.ts +1 -1
  110. package/types/pc/collapse/Collapse.d.ts +1 -0
  111. package/types/pc/collapse/index.d.ts +2 -1
  112. package/types/pc/color-picker/index.d.ts +7 -0
  113. package/types/pc/date-picker/index.d.ts +1 -1
  114. package/types/pc/date-picker/interface.d.ts +2 -2
  115. package/types/pc/date-picker/panel/Body.d.ts +1 -1
  116. package/types/pc/form/hook/useForm.d.ts +1 -1
  117. package/types/pc/form/index.d.ts +1 -1
  118. package/types/pc/grid/index.d.ts +3 -4
  119. package/types/pc/index.d.ts +15 -14
  120. package/types/pc/menu/Indent.d.ts +1 -1
  121. package/types/pc/space/index.d.ts +2 -2
  122. package/types/pc/steps/index.d.ts +1 -0
  123. package/types/pc/time-picker/index.d.ts +1 -1
  124. package/types/pc/utils/constant.d.ts +2 -2
  125. package/types/pc/utils/index.d.ts +1 -0
  126. package/types/pc/utils/names.d.ts +396 -85
  127. package/typography/Ellipsis.js +5 -4
  128. package/typography/index.js +1 -1
  129. package/utils/constant.js +6 -6
  130. package/utils/dayjs.js +1 -1
  131. package/utils/index.js +202 -200
  132. package/utils/names.js +294 -86
  133. package/version/index.js +1 -1
  134. package/virtual-list/VirtualList.js +117 -116
  135. package/chunk/C7bohPVD.js +0 -185
  136. package/chunk/DYmI9fFY.js +0 -257
  137. /package/grid/{grid.js → Grid.js} +0 -0
  138. /package/grid/{grid-item.js → GridItem.js} +0 -0
  139. /package/types/pc/grid/{grid.d.ts → Grid.d.ts} +0 -0
  140. /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 { _ as n } from "../chunk/CgyNQvYg.js";
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
- n as default
22
+ q as default
23
23
  };
package/table/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/CgyNQvYg.js";
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
- m as useTableColumns,
10
- t as useTableComponent,
9
+ t as useTableColumns,
10
+ m as useTableComponent,
11
11
  b as useTableExpand,
12
12
  T as useTableRowSelection,
13
13
  n as useTableSorter,
@@ -1,8 +1,8 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
- import De from "@unicom-cloud/icons/IconUiClockCircle";
3
- import { isDayjs as Se } from "dayjs";
2
+ import Te from "@unicom-cloud/icons/IconUiClockCircle";
3
+ import { isDayjs as De } from "dayjs";
4
4
  import c from "lodash/isArray";
5
- import Te, { useContext as je, useState as y, useRef as we } from "react";
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 T, j as p, k as _, h as F, b as Re, i as Ue, f as $e } from "../chunk/C7bohPVD.js";
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("timepicker");
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 = T(t.value, s, r, n) : t.defaultValue && (e = T(t.defaultValue, s, r, n)), 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 ? T(ce, s, r, n) : g, H = "popupVisible" in t ? t.popupVisible : q, x = Z(r), k = Z(n);
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 D(e) {
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
- )), Se(e) && $e(f, e) && (u == null || u(
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: Te.cloneElement(se, {
111
+ children: Se.cloneElement(se, {
112
112
  ...t,
113
113
  format: s,
114
114
  inputValue: v,
115
115
  setInputValue: V,
116
- onConfirmValue: D,
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 = T(e, s);
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
- (S) => p(S, r, n)
141
+ (D) => p(D, r, n)
142
142
  );
143
143
  (a = t.onSelect) == null || a.call(
144
144
  t,
145
- Y.map((S) => S && S.format(s)),
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 && D(i) : C(!1) : D(i || f);
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(), D(void 0), u == null || u(void 0, void 0), (o = t.onClear) == null || o.call(t);
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(De, {}), Q = {
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 I } from "react/jsx-runtime";
1
+ import { jsx as g } from "react/jsx-runtime";
2
2
  import { isDayjs as a } from "dayjs";
3
- import P from "lodash/isArray";
3
+ import I from "lodash/isArray";
4
4
  import { useContext as S } from "react";
5
- import { j as w, k as b } from "../chunk/C7bohPVD.js";
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 && P(e) && a(e[0]) && a(e[1]) && u(i);
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 g = j(C, [
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__ */ I(
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
- ...g
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/C7bohPVD.js";
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("timepicker"), { utcOffset: L, timezone: R } = W(vn), f = On(on, O), g = f && f.hour() >= 12 ? "pm" : "am", a = Cn(S), _ = X(
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") {
@@ -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
- "TimeRangePicker",
13
+ "TimePickerRange",
14
14
  "range"
15
15
  );
16
16
  Object.assign(p, { RangePicker: P });
17
17
  export {
18
- P as TimeRangePicker,
18
+ P as TimePickerRange,
19
19
  p as default
20
20
  };
@@ -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/C7bohPVD.js";
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 { $ as d } from "../chunk/CgyNQvYg.js";
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 { a0 as n, a1 as u } from "../chunk/CgyNQvYg.js";
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 { r as x } from "../chunk/CgyNQvYg.js";
12
+ import { v } from "../chunk/BbQEqpOn.js";
13
13
  export {
14
- x as default
14
+ v as default
15
15
  };
package/tree/Animation.js CHANGED
@@ -5,7 +5,7 @@ import "../chunk/B44Hj5ad.js";
5
5
  import "../chunk/NPajzdOv.js";
6
6
  import "../virtual-list/VirtualList.js";
7
7
  import "./Context.js";
8
- import { a2 as d } from "../chunk/CgyNQvYg.js";
8
+ import { a4 as d } from "../chunk/BbQEqpOn.js";
9
9
  export {
10
10
  d as default
11
11
  };
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/CgyNQvYg.js";
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
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../chunk/BsUZRQDT.js";
4
4
  import "../virtual-list/VirtualList.js";
5
- import { a3 as a } from "../chunk/CgyNQvYg.js";
5
+ import { a5 as a } from "../chunk/BbQEqpOn.js";
6
6
  export {
7
7
  a as default
8
8
  };
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 b, s as c } from "../chunk/CgyNQvYg.js";
14
+ import { N as T, w as b } from "../chunk/BbQEqpOn.js";
15
15
  import "./util.js";
16
16
  export {
17
- b as TreeNode,
18
- c as default
17
+ T as TreeNode,
18
+ b as default
19
19
  };
package/tree/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { N as o, s as r } from "../chunk/CgyNQvYg.js";
1
+ import { N as o, w as r } from "../chunk/BbQEqpOn.js";
2
2
  export {
3
3
  o as TreeNode,
4
4
  r as default
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "lodash/isFunction";
3
3
  import "lodash/isString";
4
4
  import "react";
5
- import { a4 as a } from "../chunk/CgyNQvYg.js";
5
+ import { a6 as a } from "../chunk/BbQEqpOn.js";
6
6
  export {
7
7
  a as default
8
8
  };
@@ -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 { v as h, t as j } from "../chunk/CgyNQvYg.js";
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";
@@ -1,5 +1,5 @@
1
- import { t as o } from "../chunk/CgyNQvYg.js";
2
- import { v as a } from "../chunk/CgyNQvYg.js";
1
+ import { x as o } from "../chunk/BbQEqpOn.js";
2
+ import { y as a } from "../chunk/BbQEqpOn.js";
3
3
  export {
4
4
  a as TreeSelectTreeNode,
5
5
  o as default
@@ -6,6 +6,10 @@ export type SpaceGap = 'mini' | 'small' | 'medium' | 'large' | number;
6
6
  export interface SpaceProps {
7
7
  style?: CSSProperties;
8
8
  className?: string | string[];
9
+ /**
10
+ * @zh 布局是否为内联
11
+ */
12
+ inline?: boolean;
9
13
  /**
10
14
  * @zh 间距方向
11
15
  * @en The space direction
@@ -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: any): string;
16
- export declare function getDayjsValue(time: any, format: string | string[], utcOffset?: number, timezone?: string): originDayjs.Dayjs | (originDayjs.Dayjs | undefined)[] | undefined;
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,4 +7,5 @@ declare const ForwardRefAnchor: React.ForwardRefExoticComponent<AnchorProps & {
7
7
  declare const AnchorComponent: typeof ForwardRefAnchor & {
8
8
  Link: typeof Link;
9
9
  };
10
+ export { Link as AnchorLink };
10
11
  export default AnchorComponent;
@@ -1,3 +1,4 @@
1
- import Anchor from './Anchor';
1
+ import Anchor, { AnchorLink } from './Anchor';
2
+ export { AnchorLink };
2
3
  export default Anchor;
3
4
  export type { AnchorProps } from './interface';
@@ -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 };
@@ -5,4 +5,5 @@ type AvatarComponentType = typeof Avatar & {
5
5
  Group: typeof Group;
6
6
  };
7
7
  declare const AvatarComponent: AvatarComponentType;
8
+ export { Group as AvatarGroup };
8
9
  export default AvatarComponent;
@@ -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
- export declare const BADGE_COLORS: string[];
4
- export declare const BADGE_STATUS: string[];
4
+ declare const BADGE_COLORS: string[];
5
+ declare const BADGE_STATUS: string[];
5
6
  export default BadgeComponent;
6
- export { BadgeProps };
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 };
@@ -7,5 +7,6 @@ declare const CardComponent: typeof ForwardRefCard & {
7
7
  Meta: typeof Meta;
8
8
  Grid: typeof Grid;
9
9
  };
10
+ export { Grid as CardGrid, Meta as CardMeta };
10
11
  export default CardComponent;
11
12
  export type { CardProps };
@@ -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 = any>(props: React.PropsWithChildren<CascaderProps<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,3 +1,4 @@
1
- import Collapse from './Collapse';
1
+ import Collapse, { CollapseItem } from './Collapse';
2
+ export { CollapseItem };
2
3
  export default Collapse;
3
4
  export type { CollapseItemProps, CollapseProps } from './interface';
@@ -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
- timepickerProps?: TimePickerProps;
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
- timepickerProps?: TimePickerProps;
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>, SetForm];
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;
@@ -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;
@@ -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';
@@ -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, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker, } from './date-picker';
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, useWatch, } from './form';
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, TimeRangePicker } from './time-picker';
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';