@unicom-cloud/ui 0.8.63 → 0.8.65

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 (214) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +27 -26
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +3 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +4 -1
  32. package/Input.js +11 -2
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +25 -21
  36. package/Link.js +2 -2
  37. package/List.js +31 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +7 -2
  40. package/Message.js +4 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +4 -3
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +4 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +140 -137
  54. package/Result.js +2 -2
  55. package/Select.js +4 -1
  56. package/SelectView.js +7 -7
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +54 -50
  60. package/Spin.js +2 -2
  61. package/Statistic.js +29 -28
  62. package/Steps.js +41 -39
  63. package/Switch.js +3 -3
  64. package/Table.js +8 -5
  65. package/Tabs.js +6 -2
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +38 -37
  68. package/Timeline.js +4 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +3 -1
  73. package/Trigger.js +43 -42
  74. package/Typography.js +6 -2
  75. package/Upload.js +3 -3
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
  82. package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
  83. package/chunk/BqGtwxTi.js +777 -0
  84. package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
  85. package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
  86. package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
  87. package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
  88. package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
  89. package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
  90. package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
  91. package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
  94. package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
  95. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  96. package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
  97. package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
  98. package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
  99. package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
  100. package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
  101. package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
  102. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  103. package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
  104. package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
  105. package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
  106. package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
  107. package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
  108. package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
  109. package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
  110. package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
  111. package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +530 -476
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variable.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/calendar/hook/useCellClassName.d.ts +2 -1
  123. package/types/checkbox/IconCheck.d.ts +2 -1
  124. package/types/config-provider/interface.d.ts +1 -1
  125. package/types/date-picker/hook/useCellClassName.d.ts +2 -1
  126. package/types/date-picker/panel/Footer.d.ts +2 -1
  127. package/types/dropdown/index.d.ts +1 -0
  128. package/types/form/IconSymbol.d.ts +2 -1
  129. package/types/form/useForm.d.ts +2 -1
  130. package/types/icon/addFromIconFontCn.d.ts +2 -1
  131. package/types/icon/index.d.ts +2 -0
  132. package/types/image/Image.d.ts +1 -0
  133. package/types/image/index.d.ts +2 -1
  134. package/types/image/util/getFixTranslate.d.ts +2 -1
  135. package/types/image/util/hook/useImageStatus.d.ts +2 -2
  136. package/types/image/util/hook/useShowFooter.d.ts +2 -2
  137. package/types/index.d.ts +26 -26
  138. package/types/input/Input.d.ts +1 -0
  139. package/types/input/index.d.ts +1 -0
  140. package/types/input/useComposition.d.ts +2 -1
  141. package/types/input-number/useSelectionRange.d.ts +2 -1
  142. package/types/layout/index.d.ts +1 -0
  143. package/types/list/index.d.ts +1 -0
  144. package/types/menu/Indent.d.ts +2 -1
  145. package/types/menu/Menu.d.ts +1 -0
  146. package/types/menu/index.d.ts +1 -0
  147. package/types/message/index.d.ts +2 -0
  148. package/types/notification/index.d.ts +2 -0
  149. package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
  150. package/types/overflow-ellipsis/index.d.ts +2 -2
  151. package/types/radio/Radio.d.ts +2 -0
  152. package/types/radio/index.d.ts +2 -1
  153. package/types/resize-box/ResizeTrigger.d.ts +2 -1
  154. package/types/resize-box/index.d.ts +1 -0
  155. package/types/result/403.d.ts +2 -1
  156. package/types/result/404.d.ts +2 -1
  157. package/types/result/500.d.ts +2 -1
  158. package/types/select/Select.d.ts +1 -1
  159. package/types/select/index.d.ts +1 -0
  160. package/types/select/interface.d.ts +1 -1
  161. package/types/skeleton/Image.d.ts +2 -1
  162. package/types/skeleton/Text.d.ts +2 -1
  163. package/types/slider/hook/useLegalValue.d.ts +2 -1
  164. package/types/space/index.d.ts +2 -0
  165. package/types/space/toArray.d.ts +2 -1
  166. package/types/speech-synthesis/index.d.ts +2 -1
  167. package/types/spin/DotLoading.d.ts +2 -1
  168. package/types/statistic/index.d.ts +1 -0
  169. package/types/steps/index.d.ts +1 -0
  170. package/types/table/hook/useComponent.d.ts +2 -1
  171. package/types/table/hook/useExpand.d.ts +2 -1
  172. package/types/table/hook/useRowSelection.d.ts +2 -1
  173. package/types/table/hook/useSorter.d.ts +2 -1
  174. package/types/table/index.d.ts +2 -1
  175. package/types/table/summary/index.d.ts +3 -0
  176. package/types/tabs/Tab.d.ts +1 -0
  177. package/types/tabs/TabContent.d.ts +2 -2
  178. package/types/tabs/hook/useDomSize.d.ts +2 -1
  179. package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
  180. package/types/tabs/index.d.ts +1 -0
  181. package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
  182. package/types/time-picker/TimeColumn.d.ts +2 -2
  183. package/types/time-picker/index.d.ts +5 -0
  184. package/types/timeline/Timeline.d.ts +1 -0
  185. package/types/timeline/index.d.ts +1 -0
  186. package/types/tree-select/Select.d.ts +5 -0
  187. package/types/tree-select/hook/useTreeData.d.ts +2 -1
  188. package/types/tree-select/index.d.ts +2 -1
  189. package/types/typography/Operations.d.ts +2 -1
  190. package/types/typography/index.d.ts +1 -0
  191. package/types/upload/Upload.d.ts +2 -1
  192. package/types/upload/index.d.ts +2 -3
  193. package/types/utils/fillNBSP.d.ts +2 -1
  194. package/types/utils/getHighlightText.d.ts +2 -1
  195. package/types/utils/getHotkeyHandler.d.ts +2 -1
  196. package/types/utils/getStringLength.d.ts +2 -1
  197. package/types/utils/include.d.ts +2 -1
  198. package/types/utils/mergeProps.d.ts +2 -1
  199. package/types/utils/mergedToString.d.ts +2 -1
  200. package/types/utils/omit.d.ts +2 -1
  201. package/types/utils/pick.d.ts +2 -1
  202. package/types/utils/throttleByRaf.d.ts +2 -1
  203. package/types/utils/throttleByRafV2.d.ts +2 -1
  204. package/types/utils/warning.d.ts +2 -1
  205. package/types/version/index.d.ts +2 -0
  206. package/utils/className.js +1 -1
  207. package/utils/contextHolder.js +1 -1
  208. package/utils/copy.js +1 -1
  209. package/utils/index.js +41 -41
  210. package/utils/is.js +37 -37
  211. package/utils/reactDOM.js +3 -3
  212. package/utils/scrollIntoView.js +1 -1
  213. package/chunk/BzPkh4Zv.js +0 -11
  214. package/chunk/Co3idurS.js +0 -774
package/Affix.js CHANGED
@@ -3,10 +3,10 @@ import w from "lodash/isFunction";
3
3
  import q from "lodash/isPlainObject";
4
4
  import v from "lodash/isUndefined";
5
5
  import { forwardRef as G, useContext as J, useState as K, useRef as h, useCallback as Q, useEffect as d, useImperativeHandle as V } from "react";
6
- import { d as X } from "./chunk/C5S_amaH.js";
6
+ import { d as X } from "./chunk/DlLL5JQo.js";
7
7
  import { useIsomorphicLayoutEffect as Y } from "./hooks/useIsomorphicLayoutEffect.js";
8
8
  import { useMergeProps as Z } from "./hooks/useMergeProps.js";
9
- import { y as U } from "./chunk/BzPkh4Zv.js";
9
+ import { y as U } from "./chunk/BAWsPQBM.js";
10
10
  import { on as E, off as C } from "./utils/dom.js";
11
11
  import { isWindow as O } from "./utils/is.js";
12
12
  import tt from "./utils/throttleByRaf.js";
package/Alert.js CHANGED
@@ -5,9 +5,9 @@ import k from "@unicom-cloud/icons/IconUiCloseCircleFill";
5
5
  import R from "@unicom-cloud/icons/IconUiExclamationCircleFill";
6
6
  import T from "@unicom-cloud/icons/IconUiInfoCircleFill";
7
7
  import { forwardRef as q, useRef as z, useContext as H, useState as M } from "react";
8
- import { d as O } from "./chunk/C5S_amaH.js";
8
+ import { d as O } from "./chunk/DlLL5JQo.js";
9
9
  import { useMergeProps as V } from "./hooks/useMergeProps.js";
10
- import { y as _ } from "./chunk/BzPkh4Zv.js";
10
+ import { y as _ } from "./chunk/BAWsPQBM.js";
11
11
  import { P as B } from "./chunk/CLBavO5c.js";
12
12
  const D = {
13
13
  showIcon: !0,
package/Anchor.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as r } from "./chunk/DDDuw0Zi.js";
1
+ import { A as r } from "./chunk/1GQdnTJp.js";
2
2
  export {
3
3
  r as default
4
4
  };
package/AutoComplete.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import le from "@unicom-cloud/icons/IconUiLoading";
3
3
  import p, { useContext as ne, useState as se, useRef as B, isValidElement as ae, useImperativeHandle as ce } from "react";
4
- import { d as ie } from "./chunk/C5S_amaH.js";
4
+ import { d as ie } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as fe } from "./hooks/useMergeProps.js";
6
6
  import { useMergeValue as ue } from "./hooks/useMergeValue.js";
7
- import { I as me } from "./chunk/Bn2-vqTg.js";
8
- import { S as d, i as pe, a as de } from "./chunk/Co3idurS.js";
9
- import { y as ge } from "./chunk/BzPkh4Zv.js";
7
+ import { I as me } from "./chunk/DK4KcodH.js";
8
+ import { S as d, i as pe, a as de } from "./chunk/BqGtwxTi.js";
9
+ import { y as ge } from "./chunk/BAWsPQBM.js";
10
10
  import { E as Ce, d as ye } from "./chunk/C2lIz2F9.js";
11
11
  import Oe from "./utils/omit.js";
12
12
  import { pickDataAttributes as he } from "./utils/pick.js";
package/Avatar.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as T, jsx as a } from "react/jsx-runtime";
2
2
  import w from "lodash/isNumber";
3
3
  import S, { createContext as M, forwardRef as W, useContext as I, useRef as k, useImperativeHandle as q, useEffect as D } from "react";
4
- import { d as j } from "./chunk/C5S_amaH.js";
5
- import { y as E } from "./chunk/BzPkh4Zv.js";
4
+ import { d as j } from "./chunk/DlLL5JQo.js";
5
+ import { y as E } from "./chunk/BAWsPQBM.js";
6
6
  import { useMergeProps as O } from "./hooks/useMergeProps.js";
7
7
  import V from "./Popover.js";
8
8
  const R = M({}), X = {
package/BackTop.js CHANGED
@@ -2,11 +2,11 @@ import { jsx as i } from "react/jsx-runtime";
2
2
  import k from "@unicom-cloud/icons/IconUiToTop";
3
3
  import { P as x, C as y } from "./chunk/4-gvEY5y.js";
4
4
  import P, { forwardRef as B, useRef as E, useContext as N, useState as R, useEffect as S } from "react";
5
- import { d as H } from "./chunk/C5S_amaH.js";
5
+ import { d as H } from "./chunk/DlLL5JQo.js";
6
6
  import { useKeyboardEvent as $ } from "./hooks/useKeyboardEvent.js";
7
7
  import { useMergeProps as D } from "./hooks/useMergeProps.js";
8
8
  import { P as I } from "./chunk/CLBavO5c.js";
9
- import { y as K } from "./chunk/BzPkh4Zv.js";
9
+ import { y as K } from "./chunk/BAWsPQBM.js";
10
10
  import { on as U, off as j } from "./utils/dom.js";
11
11
  import { pickDataAttributes as q } from "./utils/pick.js";
12
12
  import A from "./utils/throttleByRaf.js";
package/Badge.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
- import R from "lodash/isPlainObject";
3
- import { useState as q, forwardRef as z, useContext as D } from "react";
4
- import { d as I } from "./chunk/C5S_amaH.js";
5
- import { useMergeProps as k } from "./hooks/useMergeProps.js";
2
+ import w from "lodash/isPlainObject";
3
+ import { useState as A, forwardRef as R, useContext as q } from "react";
4
+ import { d as z } from "./chunk/DlLL5JQo.js";
5
+ import { useMergeProps as G } from "./hooks/useMergeProps.js";
6
6
  import { P as b } from "./chunk/CLBavO5c.js";
7
- import { y as a } from "./chunk/BzPkh4Zv.js";
8
- import { usePrevious as v } from "./hooks/usePrevious.js";
9
- function A({ prefixCls: d, maxCount: i, count: n, className: c, style: f }) {
10
- const [g, r] = q(!1), p = v(n), l = n !== p;
7
+ import { y as a } from "./chunk/BAWsPQBM.js";
8
+ import { usePrevious as I } from "./hooks/usePrevious.js";
9
+ function _({ prefixCls: d, maxCount: i, count: n, className: c, style: f }) {
10
+ const [g, r] = A(!1), p = I(n), l = n !== p;
11
11
  return /* @__PURE__ */ s(
12
12
  b,
13
13
  {
@@ -45,14 +45,14 @@ const O = [
45
45
  "purple",
46
46
  "magenta",
47
47
  "gray"
48
- ], L = {
48
+ ], k = {
49
49
  count: 0,
50
50
  maxCount: 99
51
51
  };
52
- function M(d, i) {
53
- const { getPrefixCls: n, componentConfig: c, rtl: f } = D(I), g = k(
52
+ function v(d, i) {
53
+ const { getPrefixCls: n, componentConfig: c, rtl: f } = q(z), g = G(
54
54
  d,
55
- L,
55
+ k,
56
56
  c == null ? void 0 : c.Badge
57
57
  ), {
58
58
  count: r,
@@ -61,18 +61,18 @@ function M(d, i) {
61
61
  className: S,
62
62
  dotClassName: m,
63
63
  dot: x,
64
- maxCount: P,
64
+ maxCount: E,
65
65
  color: t,
66
- dotStyle: E,
67
- offset: T,
68
- style: B,
66
+ dotStyle: P,
67
+ offset: B,
68
+ style: T,
69
69
  status: u,
70
70
  children: y,
71
- ...j
72
- } = g, e = n("badge"), o = { ...E || {} }, [N, h] = T || [];
71
+ ...D
72
+ } = g, e = n("badge"), o = { ...P || {} }, [N, h] = B || [];
73
73
  N && (o.marginRight = -N), h && (o.marginTop = h);
74
- const w = () => {
75
- if (R(r))
74
+ const j = () => {
75
+ if (w(r))
76
76
  return /* @__PURE__ */ s(
77
77
  "span",
78
78
  {
@@ -130,12 +130,12 @@ function M(d, i) {
130
130
  )
131
131
  }
132
132
  ) : /* @__PURE__ */ s(
133
- A,
133
+ _,
134
134
  {
135
135
  prefixCls: e,
136
136
  className: a(`${e}-number`, m),
137
137
  style: { ...$, ...o },
138
- maxCount: P,
138
+ maxCount: E,
139
139
  count: r
140
140
  }
141
141
  );
@@ -153,20 +153,26 @@ function M(d, i) {
153
153
  S
154
154
  ),
155
155
  ref: i,
156
- style: B,
157
- ...j,
156
+ style: T,
157
+ ...D,
158
158
  children: [
159
159
  y,
160
- w()
160
+ j()
161
161
  ]
162
162
  }
163
163
  );
164
164
  }
165
- const U = z(M);
166
- U.displayName = "Badge";
167
- const X = O, Y = ["default", "processing", "success", "warning", "error"];
165
+ const L = R(v);
166
+ L.displayName = "Badge";
167
+ const W = O, X = [
168
+ "default",
169
+ "processing",
170
+ "success",
171
+ "warning",
172
+ "error"
173
+ ];
168
174
  export {
169
- X as COLORS,
170
- Y as STATUS,
171
- U as default
175
+ W as BADGE_COLORS,
176
+ X as BADGE_STATUS,
177
+ L as default
172
178
  };
package/Breadcrumb.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as M, jsx as t } from "react/jsx-runtime";
2
2
  import v from "@unicom-cloud/icons/IconUiObliqueLine";
3
3
  import g, { useState as O, forwardRef as U, useContext as _ } from "react";
4
- import { d as q } from "./chunk/C5S_amaH.js";
4
+ import { d as q } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as A } from "./hooks/useMergeProps.js";
6
- import { M as V } from "./chunk/JpKOcIfl.js";
7
- import { y as w } from "./chunk/BzPkh4Zv.js";
6
+ import { M as V } from "./chunk/CWgltRVL.js";
7
+ import { y as w } from "./chunk/BAWsPQBM.js";
8
8
  import { isEmptyReactNode as F } from "./utils/is.js";
9
9
  import E from "./utils/omit.js";
10
10
  import K from "@unicom-cloud/icons/IconUiDown";
package/Button.js CHANGED
@@ -1,30 +1,30 @@
1
- import { jsx as f, jsxs as H, Fragment as J } from "react/jsx-runtime";
2
- import K from "@unicom-cloud/icons/IconUiLoading";
3
- import g, { useContext as _, forwardRef as V, useState as X, useRef as Y, useEffect as Z } from "react";
4
- import { d as z } from "./chunk/C5S_amaH.js";
1
+ import { jsx as u, jsxs as Y, Fragment as H } from "react/jsx-runtime";
2
+ import J from "@unicom-cloud/icons/IconUiLoading";
3
+ import $, { useContext as S, forwardRef as K, useState as V, useRef as X, useEffect as Z } from "react";
4
+ import { d as G } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as v } from "./hooks/useMergeProps.js";
6
- import { y as S } from "./chunk/BzPkh4Zv.js";
6
+ import { y as U } from "./chunk/BAWsPQBM.js";
7
7
  function tt(c, o) {
8
- const { className: i, style: e, children: r, ...s } = c, { getPrefixCls: l } = _(z), d = l("btn-group"), u = S(d, i);
9
- return /* @__PURE__ */ f("div", { ref: o, className: u, style: e, ...s, children: r });
8
+ const { className: a, style: e, children: r, ...s } = c, { getPrefixCls: l } = S(G), d = l("btn-group"), f = U(d, a);
9
+ return /* @__PURE__ */ u("div", { ref: o, className: f, style: e, ...s, children: r });
10
10
  }
11
- const k = g.forwardRef(tt);
12
- k.displayName = "ButtonGroup";
11
+ const z = $.forwardRef(tt);
12
+ z.displayName = "ButtonGroup";
13
13
  const et = /^[\u4e00-\u9fa5]{2}$/;
14
14
  function nt(c) {
15
15
  const o = [];
16
- let i = !1;
17
- return g.Children.forEach(c, (e) => {
16
+ let a = !1;
17
+ return $.Children.forEach(c, (e) => {
18
18
  const r = typeof e == "string" || typeof e == "number";
19
- if (r && i) {
19
+ if (r && a) {
20
20
  const s = o.length - 1, l = o[s];
21
21
  o[s] = `${l}${e}`;
22
22
  } else
23
23
  o.push(e);
24
- i = r;
25
- }), g.Children.map(
24
+ a = r;
25
+ }), $.Children.map(
26
26
  o,
27
- (e) => typeof e == "string" ? /* @__PURE__ */ f("span", { children: e }) : e
27
+ (e) => typeof e == "string" ? /* @__PURE__ */ u("span", { children: e }) : e
28
28
  );
29
29
  }
30
30
  const ot = {
@@ -34,107 +34,118 @@ const ot = {
34
34
  };
35
35
  function st(c, o) {
36
36
  const {
37
- getPrefixCls: i,
37
+ getPrefixCls: a,
38
38
  size: e,
39
39
  autoInsertSpaceInButton: r,
40
40
  componentConfig: s,
41
41
  rtl: l
42
- } = _(z), d = v(
42
+ } = S(G), d = v(
43
43
  c,
44
44
  ot,
45
45
  s == null ? void 0 : s.Button
46
46
  ), {
47
- style: u,
48
- className: F,
47
+ style: f,
48
+ className: O,
49
49
  children: h,
50
- htmlType: j,
51
- type: B,
52
- status: P,
53
- size: D,
54
- shape: E,
50
+ htmlType: k,
51
+ type: T,
52
+ status: B,
53
+ size: E,
54
+ shape: F,
55
55
  href: m,
56
- anchorProps: L,
56
+ anchorProps: j,
57
57
  disabled: p,
58
58
  loading: C,
59
- loadingFixedWidth: O,
60
- icon: U,
59
+ loadingFixedWidth: D,
60
+ icon: L,
61
61
  iconOnly: q,
62
- iconSuffix: M,
63
- iconRight: Q,
64
- onClick: x,
65
- long: W,
66
- ...b
67
- } = d, w = C ? /* @__PURE__ */ f(K, {}) : U, [y, R] = X(!1), A = Y(), a = o || A;
62
+ iconSuffix: A,
63
+ iconRight: M,
64
+ onClick: y,
65
+ long: Q,
66
+ ...P
67
+ } = d, w = C ? /* @__PURE__ */ u(J, {}) : L, [x, b] = V(!1), W = X(), i = o || W;
68
68
  Z(() => {
69
- if (r && a && a.current) {
70
- const n = a.current.textContent;
71
- et.test(n) ? y || R(!0) : y && R(!1);
69
+ if (r && i && i.current) {
70
+ const n = i.current.textContent;
71
+ et.test(n) ? x || b(!0) : x && b(!1);
72
72
  }
73
- }, [a.current, r]);
74
- const t = i("btn"), $ = B === "default" ? "secondary" : B, T = S(
73
+ }, [i.current, r]);
74
+ const t = a("btn"), g = T === "default" ? "secondary" : T, R = U(
75
75
  t,
76
- $ === "text-only" && `${t}-text`,
77
- `${t}-${$}`,
78
- $ !== "text-only" && `${t}-size-${D || e}`,
79
- `${t}-shape-${E}`,
76
+ g === "text-only" && `${t}-text`,
77
+ `${t}-${g}`,
78
+ g !== "text-only" && `${t}-size-${E || e}`,
79
+ `${t}-shape-${F}`,
80
80
  {
81
- [`${t}-long`]: W,
82
- [`${t}-status-${P}`]: P,
83
- [`${t}-loading-fixed-width`]: O,
81
+ [`${t}-long`]: Q,
82
+ [`${t}-status-${B}`]: B,
83
+ [`${t}-loading-fixed-width`]: D,
84
84
  [`${t}-loading`]: C,
85
85
  [`${t}-link`]: m,
86
86
  [`${t}-icon-only`]: q || !h && h !== 0 && w,
87
87
  [`${t}-disabled`]: p,
88
- [`${t}-two-chinese-chars`]: y,
88
+ [`${t}-two-chinese-chars`]: x,
89
89
  [`${t}-rtl`]: l
90
90
  },
91
- F
92
- ), I = (n) => {
91
+ O
92
+ ), _ = (n) => {
93
93
  if (C || p) {
94
94
  typeof (n == null ? void 0 : n.preventDefault) == "function" && n.preventDefault();
95
95
  return;
96
96
  }
97
- x == null || x(n);
98
- }, G = /* @__PURE__ */ H(J, { children: [
97
+ y == null || y(n);
98
+ }, I = /* @__PURE__ */ Y(H, { children: [
99
99
  w,
100
100
  nt(h),
101
- Q,
102
- M
101
+ M,
102
+ A
103
103
  ] });
104
104
  if (m) {
105
- const n = { ...L };
106
- return p ? delete n.href : n.href = m, /* @__PURE__ */ f(
105
+ const n = { ...j };
106
+ return p ? delete n.href : n.href = m, /* @__PURE__ */ u(
107
107
  "a",
108
108
  {
109
- ref: a,
110
- ...b,
109
+ ref: i,
110
+ ...P,
111
111
  ...n,
112
- style: u,
113
- className: T,
114
- onClick: I,
115
- children: G
112
+ style: f,
113
+ className: R,
114
+ onClick: _,
115
+ children: I
116
116
  }
117
117
  );
118
118
  }
119
- return /* @__PURE__ */ f(
119
+ return /* @__PURE__ */ u(
120
120
  "button",
121
121
  {
122
- ref: a,
123
- ...b,
124
- style: u,
125
- className: T,
126
- type: j,
122
+ ref: i,
123
+ ...P,
124
+ style: f,
125
+ className: R,
126
+ type: k,
127
127
  disabled: p,
128
- onClick: I,
129
- children: G
128
+ onClick: _,
129
+ children: I
130
130
  }
131
131
  );
132
132
  }
133
- const rt = V(st), N = rt;
133
+ const rt = K(st), N = rt;
134
134
  N.__PQB_BUTTON = !0;
135
- N.Group = k;
135
+ N.Group = z;
136
136
  N.displayName = "Button";
137
+ const pt = [
138
+ "default",
139
+ "primary",
140
+ "secondary",
141
+ "dashed",
142
+ "text",
143
+ "text-only",
144
+ "outline"
145
+ ], dt = ["warning", "danger", "success", "processing", "default"];
137
146
  export {
138
- k as ButtonGroup,
147
+ dt as BUTTON_STATUS,
148
+ pt as BUTTON_TYPE,
149
+ z as ButtonGroup,
139
150
  N as default
140
151
  };
package/Calendar.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as a, jsxs as L, Fragment as te } from "react/jsx-runtime";
2
2
  import Me from "lodash/merge";
3
3
  import se, { useMemo as ie, useContext as be, useState as J } from "react";
4
- import { d as De } from "./chunk/C5S_amaH.js";
4
+ import { d as De } from "./chunk/DlLL5JQo.js";
5
5
  import { useMergeProps as Re } from "./hooks/useMergeProps.js";
6
- import { y as V } from "./chunk/BzPkh4Zv.js";
6
+ import { y as V } from "./chunk/BAWsPQBM.js";
7
7
  import { getNow as O, methods as E, dayjs as le, getDayjsValue as B } from "./utils/dayjs.js";
8
8
  import { pickDataAttributes as Ae } from "./utils/pick.js";
9
9
  import { newArray as ae } from "./utils/constant.js";
@@ -13,8 +13,8 @@ import ce from "@unicom-cloud/icons/IconUiLeft";
13
13
  import me from "@unicom-cloud/icons/IconUiRight";
14
14
  import xe from "./Button.js";
15
15
  import { useKeyboardEvent as Le } from "./hooks/useKeyboardEvent.js";
16
- import { R as Ee } from "./chunk/BLLKKgZJ.js";
17
- import { S as ne } from "./chunk/Co3idurS.js";
16
+ import { R as Ee } from "./chunk/CsbCHnFk.js";
17
+ import { S as ne } from "./chunk/BqGtwxTi.js";
18
18
  import Pe from "@unicom-cloud/icons/IconUiDoubleLeft";
19
19
  import Ye from "@unicom-cloud/icons/IconUiDoubleRight";
20
20
  function Ve(t) {
package/Card.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import h, { useContext as y } from "react";
3
- import { d as x } from "./chunk/C5S_amaH.js";
3
+ import { d as x } from "./chunk/DlLL5JQo.js";
4
4
  import { useMergeProps as q } from "./hooks/useMergeProps.js";
5
5
  import A from "./Spin.js";
6
- import { y as p } from "./chunk/BzPkh4Zv.js";
6
+ import { y as p } from "./chunk/BAWsPQBM.js";
7
7
  function B(c, m) {
8
8
  const { children: f, style: i, className: r, hoverable: l } = c, { getPrefixCls: n } = y(x), o = n("card-grid");
9
9
  return /* @__PURE__ */ a(
package/Carousel.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as s, jsxs as oe } from "react/jsx-runtime";
2
2
  import W, { useContext as G, useRef as O, useState as S, useEffect as z, useImperativeHandle as $e } from "react";
3
- import { d as J } from "./chunk/C5S_amaH.js";
3
+ import { d as J } from "./chunk/DlLL5JQo.js";
4
4
  import { useInterval as Ie } from "./hooks/useInterval.js";
5
5
  import { useMergeProps as Ne } from "./hooks/useMergeProps.js";
6
- import { y as C } from "./chunk/BzPkh4Zv.js";
6
+ import { y as C } from "./chunk/BAWsPQBM.js";
7
7
  import we from "./utils/omit.js";
8
8
  import Pe from "./utils/warning.js";
9
9
  import be from "@unicom-cloud/icons/IconUiDown";
package/Cascader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o } from "./chunk/rlfmXePI.js";
1
+ import { C as o } from "./chunk/DTjcKyDN.js";
2
2
  export {
3
3
  o as default
4
4
  };
package/Checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e } from "./chunk/B9w_puFP.js";
1
+ import { C as e } from "./chunk/DG-epQqF.js";
2
2
  export {
3
3
  e as default
4
4
  };
package/Collapse.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as a } from "./chunk/BEB_A9eY.js";
1
+ import { C as a } from "./chunk/DLvMA1OW.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/ColorPicker.js CHANGED
@@ -2,17 +2,17 @@ import { jsx as t, jsxs as $ } from "react/jsx-runtime";
2
2
  import K from "lodash/isFunction";
3
3
  import Q from "lodash/isNil";
4
4
  import Z, { useMemo as z, useState as V, useEffect as j, useCallback as ee, useRef as T, useContext as S } from "react";
5
- import { f as k, d as R } from "./chunk/C5S_amaH.js";
5
+ import { f as k, d as R } from "./chunk/DlLL5JQo.js";
6
6
  import ne from "./Copy.js";
7
7
  import { useMergeProps as te } from "./hooks/useMergeProps.js";
8
8
  import re from "./Trigger.js";
9
- import { y as A } from "./chunk/BzPkh4Zv.js";
10
- import { k as G, s as oe } from "./chunk/aqSmxUbY.js";
9
+ import { y as A } from "./chunk/BAWsPQBM.js";
10
+ import { k as G, s as oe } from "./chunk/DjtWv6Wn.js";
11
11
  import { useIsFirstRender as se } from "./hooks/useIsFirstRender.js";
12
12
  import { useMergeValue as _ } from "./hooks/useMergeValue.js";
13
- import { S as ie } from "./chunk/Co3idurS.js";
13
+ import { S as ie } from "./chunk/BqGtwxTi.js";
14
14
  import X from "./Tooltip.js";
15
- import { a as L, I as F } from "./chunk/Bn2-vqTg.js";
15
+ import { a as L, I as F } from "./chunk/DK4KcodH.js";
16
16
  new k("#eee");
17
17
  const ce = [
18
18
  Object.entries(G).map(([n, l], d, f) => oe({ color: l, level: 4 })),
package/Comment.js CHANGED
@@ -2,9 +2,9 @@ import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
2
  import g from "lodash/isPlainObject";
3
3
  import N from "lodash/isString";
4
4
  import { forwardRef as v, useContext as u } from "react";
5
- import { d as C } from "./chunk/C5S_amaH.js";
5
+ import { d as C } from "./chunk/DlLL5JQo.js";
6
6
  import { useMergeProps as x } from "./hooks/useMergeProps.js";
7
- import { y as d } from "./chunk/BzPkh4Zv.js";
7
+ import { y as d } from "./chunk/BAWsPQBM.js";
8
8
  import { pickDataAttributes as y } from "./utils/pick.js";
9
9
  const P = {
10
10
  datetime: "left",
package/ConfigProvider.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as r } from "./chunk/C5S_amaH.js";
2
- import { b as e, d as f, c as t } from "./chunk/C5S_amaH.js";
1
+ import { a as r } from "./chunk/DlLL5JQo.js";
2
+ import { b as e, d as f, c as t } from "./chunk/DlLL5JQo.js";
3
3
  export {
4
4
  e as ConfigConsumer,
5
5
  f as ConfigContext,
package/Copy.js CHANGED
@@ -2,11 +2,11 @@ import { jsx as r, jsxs as T } from "react/jsx-runtime";
2
2
  import h from "@unicom-cloud/icons/IconUiCheckCircleFill";
3
3
  import b from "@unicom-cloud/icons/IconUiCopy";
4
4
  import { useContext as P, useState as w, useRef as E, useEffect as k } from "react";
5
- import { d as v } from "./chunk/C5S_amaH.js";
5
+ import { d as v } from "./chunk/DlLL5JQo.js";
6
6
  import { useKeyboardEvent as I } from "./hooks/useKeyboardEvent.js";
7
7
  import N from "./Tooltip.js";
8
- import { y as j } from "./chunk/BzPkh4Zv.js";
9
- import { s as S } from "./chunk/Cb_oWoGj.js";
8
+ import { y as j } from "./chunk/BAWsPQBM.js";
9
+ import { s as S } from "./chunk/CwhPMMWy.js";
10
10
  import U from "./utils/mergedToString.js";
11
11
  function $(t) {
12
12
  var a, u;