@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
@@ -5,9 +5,9 @@ import { jsx as c, jsxs as k } from "react/jsx-runtime";
5
5
  import S from "@unicom-cloud/icons/context";
6
6
  import he from "@unicom-cloud/utils/tinycolor";
7
7
  import Ce from "lodash/isPlainObject";
8
- import D, { forwardRef as Z, useContext as z, createContext as ge, useRef as G, useImperativeHandle as _, Component as xe, createRef as ve, useState as be, useEffect as L } from "react";
8
+ import D, { forwardRef as Z, useContext as z, createContext as ge, useRef as G, useImperativeHandle as _, Component as xe, createRef as ve, useState as be, useEffect as q } from "react";
9
9
  import ee from "../hooks/useMergeProps.js";
10
- import { j as te, P as re } from "./uUGMUxt_.js";
10
+ import { b as te, P as re } from "./DQ3uFRJD.js";
11
11
  import T from "lodash/isNumber";
12
12
  import I from "lodash/isUndefined";
13
13
  import ye from "@unicom-cloud/icons/IconUiCheckCircleFill";
@@ -24,7 +24,7 @@ import we from "@unicom-cloud/icons/IconUiEmpty";
24
24
  import Re from "../locale/zh-CN.js";
25
25
  import Te from "../utils/omit.js";
26
26
  import Me from "lodash/isString";
27
- function qe(d, m) {
27
+ function Le(d, m) {
28
28
  const {
29
29
  getPrefixCls: e,
30
30
  locale: t,
@@ -39,13 +39,13 @@ function qe(d, m) {
39
39
  /* @__PURE__ */ c("div", { className: `${h}-description`, children: u || C })
40
40
  ] }) });
41
41
  }
42
- const ne = Z(qe);
42
+ const ne = Z(Le);
43
43
  ne.displayName = "Empty";
44
- const Le = D.memo(ne);
44
+ const qe = D.memo(ne);
45
45
  function Oe(d) {
46
46
  switch (d) {
47
47
  default:
48
- return /* @__PURE__ */ c(Le, {});
48
+ return /* @__PURE__ */ c(qe, {});
49
49
  }
50
50
  }
51
51
  const ie = {
@@ -89,7 +89,7 @@ function ke(d, m) {
89
89
  );
90
90
  }
91
91
  const W = D.forwardRef(ke);
92
- class j extends xe {
92
+ class U extends xe {
93
93
  constructor(e) {
94
94
  super(e);
95
95
  f(this, "context");
@@ -188,9 +188,9 @@ class j extends xe {
188
188
  );
189
189
  let y = "closable" in this.props ? a : !0, b = s;
190
190
  o === "normal" && !n && (b = !1);
191
- const q = { ...this.context };
192
- if (x && (q.prefixCls = x), h === "message")
193
- return y = a, /* @__PURE__ */ c(U, { ...q, children: /* @__PURE__ */ c(
191
+ const L = { ...this.context };
192
+ if (x && (L.prefixCls = x), h === "message")
193
+ return y = a, /* @__PURE__ */ c(j, { ...L, children: /* @__PURE__ */ c(
194
194
  "div",
195
195
  {
196
196
  style: { textAlign: "center" },
@@ -220,7 +220,7 @@ class j extends xe {
220
220
  }
221
221
  ) });
222
222
  if (h === "notification")
223
- return /* @__PURE__ */ c(U, { ...q, children: /* @__PURE__ */ c(
223
+ return /* @__PURE__ */ c(j, { ...L, children: /* @__PURE__ */ c(
224
224
  "div",
225
225
  {
226
226
  ref: this.rootDOMRef,
@@ -260,12 +260,12 @@ class j extends xe {
260
260
  ) });
261
261
  }
262
262
  }
263
- f(j, "defaultProps", {
263
+ f(U, "defaultProps", {
264
264
  type: "info",
265
265
  showIcon: !0,
266
266
  noticeType: "message",
267
267
  duration: 3e3
268
- }), f(j, "contextType", R);
268
+ }), f(U, "contextType", R);
269
269
  function le(d, m) {
270
270
  const e = z(R), [t, s] = be([]);
271
271
  function p(u) {
@@ -335,7 +335,7 @@ function De(d = {}) {
335
335
  };
336
336
  }), [n, p];
337
337
  }
338
- const je = [
338
+ const Ue = [
339
339
  "info",
340
340
  "success",
341
341
  "error",
@@ -432,7 +432,7 @@ class $ extends se {
432
432
  x && (x.style.height = 0, (v = i.onClose) == null || v.call(i));
433
433
  },
434
434
  children: /* @__PURE__ */ c(
435
- j,
435
+ U,
436
436
  {
437
437
  ...i,
438
438
  prefixCls: h,
@@ -459,7 +459,7 @@ f($, "useMessage"), f($, "success"), f($, "info"), f($, "warning"), f($, "error"
459
459
  e == null || e.clear();
460
460
  });
461
461
  }), f($, "addInstance", fe);
462
- je.forEach((d) => {
462
+ Ue.forEach((d) => {
463
463
  $[d] = (m) => fe({
464
464
  ...typeof m == "string" ? { content: m } : m,
465
465
  type: d
@@ -467,7 +467,7 @@ je.forEach((d) => {
467
467
  });
468
468
  $.useMessage = De;
469
469
  let me = {};
470
- function Ue(d) {
470
+ function je(d) {
471
471
  me = {
472
472
  ...d
473
473
  };
@@ -483,7 +483,7 @@ const ut = (d) => {
483
483
  ...F,
484
484
  ...d
485
485
  };
486
- }, ht = () => F, Ct = [];
486
+ }, ht = () => F, Ct = [], gt = [];
487
487
  function He(d = {}) {
488
488
  const {
489
489
  maxCount: m,
@@ -577,7 +577,7 @@ const E = class E extends se {
577
577
  i && (i.style.height = 0, (x = C.onClose) == null || x.call(C));
578
578
  },
579
579
  children: /* @__PURE__ */ c(
580
- j,
580
+ U,
581
581
  {
582
582
  ...C,
583
583
  onClose: this.remove,
@@ -677,7 +677,7 @@ const Ae = {
677
677
  active: "--red-7"
678
678
  }
679
679
  }, Fe = ie, ze = {};
680
- function U(d) {
680
+ function j(d) {
681
681
  const m = ee(
682
682
  d,
683
683
  Fe,
@@ -692,7 +692,7 @@ function U(d) {
692
692
  effectGlobalNotice: u = !0,
693
693
  effectGlobalModal: n = !0
694
694
  } = m, r = window.document.body;
695
- L(() => {
695
+ q(() => {
696
696
  Ce(e) && Object.entries(Ae).forEach(([C, i], x, v) => {
697
697
  let y = e == null ? void 0 : e[C];
698
698
  if (y) {
@@ -700,9 +700,9 @@ function U(d) {
700
700
  r.style.setProperty(i.default, b.lighten(0).toRgbArrayString()), e != null && e[`${C}Hover`] || r.style.setProperty(i.hover, b.lighten(10).toRgbArrayString()), e != null && e[`${C}Active`] || r.style.setProperty(i.active, b.lighten(-10).toRgbArrayString());
701
701
  }
702
702
  });
703
- }, [e]), L(() => {
703
+ }, [e]), q(() => {
704
704
  t && (t === "dark" ? r.setAttribute("pqb-theme", "dark") : r.removeAttribute("pqb-theme"));
705
- }, [t]), L(() => {
705
+ }, [t]), q(() => {
706
706
  u && ($.config({ prefixCls: s, rtl: o }), w.config({ prefixCls: s, rtl: o }));
707
707
  }, [s, o, u]);
708
708
  function a(C, i) {
@@ -712,28 +712,29 @@ function U(d) {
712
712
  ...Te(m, ["children"]),
713
713
  getPrefixCls: a
714
714
  };
715
- L(() => {
716
- n && Ue({ locale: l, prefixCls: s, rtl: o });
715
+ q(() => {
716
+ n && je({ locale: l, prefixCls: s, rtl: o });
717
717
  }, [l, s, o, n]);
718
718
  let g = p;
719
719
  return s && s !== "pqb" && (g = /* @__PURE__ */ c(S.Provider, { value: { prefixCls: s }, children: p })), /* @__PURE__ */ c(R.Provider, { value: h, children: g });
720
720
  }
721
- U.ConfigContext = R;
722
- U.displayName = "ConfigProvider";
723
- const gt = R.Consumer;
721
+ j.ConfigContext = R;
722
+ j.displayName = "ConfigProvider";
723
+ const xt = R.Consumer;
724
724
  export {
725
- gt as C,
726
- Le as E,
725
+ xt as C,
726
+ qe as E,
727
727
  W as I,
728
728
  $ as M,
729
729
  w as N,
730
730
  R as a,
731
- U as b,
731
+ j as b,
732
732
  Ae as c,
733
733
  Ct as d,
734
734
  ht as e,
735
735
  ce as f,
736
736
  pt as g,
737
- j as h,
737
+ gt as h,
738
+ U as i,
738
739
  ut as s
739
740
  };