@unicom-cloud/ui 0.8.81 → 0.8.82

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 (262) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +1 -1
  52. package/Spin.js +1 -1
  53. package/Statistic.js +2 -2
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +1 -1
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +1 -1
  60. package/Transfer.js +2 -2
  61. package/Tree.js +1 -1
  62. package/TreeSelect.js +1 -1
  63. package/Trigger.js +1 -1
  64. package/Typography.js +1 -1
  65. package/affix/index.js +60 -57
  66. package/alert/index.js +53 -53
  67. package/anchor/Anchor.js +72 -72
  68. package/anchor/Link.js +27 -27
  69. package/anchor/util.js +1 -1
  70. package/auto-complete/index.js +2 -2
  71. package/avatar/Avatar.js +31 -31
  72. package/avatar/Group.js +25 -25
  73. package/back-top/index.js +30 -30
  74. package/badge/index.js +37 -37
  75. package/breadcrumb/index.js +26 -26
  76. package/button/Group.js +7 -7
  77. package/button/index.js +29 -29
  78. package/calendar/index.js +2 -2
  79. package/card/Grid.js +12 -12
  80. package/card/Meta.js +17 -17
  81. package/card/index.js +44 -44
  82. package/carousel/Arrow.js +19 -19
  83. package/carousel/Indicator.js +25 -25
  84. package/carousel/index.js +77 -77
  85. package/cascader/Cascader.js +2 -2
  86. package/cascader/index.js +1 -1
  87. package/cascader/util.js +1 -1
  88. package/checkbox/Checkbox.js +2 -2
  89. package/checkbox/Group.js +2 -2
  90. package/checkbox/GroupBlock.js +2 -2
  91. package/checkbox/index.js +2 -2
  92. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  93. package/chunk/CmMehQON.js +1464 -0
  94. package/chunk/Cplu5dtQ.js +730 -0
  95. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  96. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  97. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  98. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  99. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  100. package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +36 -36
  105. package/color-picker/InputAlpha.js +11 -11
  106. package/color-picker/InputHex.js +24 -24
  107. package/color-picker/InputRgb.js +23 -23
  108. package/color-picker/Palette.js +18 -18
  109. package/color-picker/Panel.js +2 -2
  110. package/color-picker/index.js +2 -2
  111. package/comment/index.js +31 -31
  112. package/config-provider/ConfigProvider.js +5 -4
  113. package/config-provider/context.js +2 -2
  114. package/config-provider/index.js +4 -3
  115. package/copy/index.js +28 -28
  116. package/date-picker/Picker.js +276 -276
  117. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  118. package/date-picker/index.js +26 -27
  119. package/descriptions/index.js +33 -33
  120. package/divider/index.js +12 -12
  121. package/draggable/index.js +23 -23
  122. package/drawer/Drawer.js +81 -81
  123. package/dropdown/Button.js +1 -1
  124. package/dropdown/index.js +56 -56
  125. package/empty/index.js +1 -1
  126. package/form/Form.js +76 -76
  127. package/form/FormItem.js +64 -64
  128. package/grid/Col.js +53 -53
  129. package/grid/Row.js +34 -34
  130. package/grid/grid-item.js +29 -29
  131. package/grid/grid.js +50 -50
  132. package/icon/index.js +20 -19
  133. package/icon-hover/index.js +1 -1
  134. package/image/Image.js +86 -86
  135. package/image/ImagePreview.js +2 -2
  136. package/image/ImagePreviewArrow.js +22 -22
  137. package/image/ImagePreviewGroup.js +1 -1
  138. package/image/index.js +1 -1
  139. package/index.js +410 -408
  140. package/input/Group.js +8 -8
  141. package/input/Input.js +322 -322
  142. package/input/InputElement.js +1 -1
  143. package/input/Password.js +1 -1
  144. package/input/Search.js +1 -1
  145. package/input/Textarea.js +1 -1
  146. package/input-number/index.js +1 -1
  147. package/input-tag/InputTag.js +40 -40
  148. package/layout/Content.js +7 -7
  149. package/layout/Footer.js +9 -9
  150. package/layout/Header.js +7 -7
  151. package/layout/Sider.js +55 -55
  152. package/layout/index.js +32 -32
  153. package/link/index.js +35 -35
  154. package/list/Item.js +29 -29
  155. package/list/Meta.js +12 -12
  156. package/list/index.js +2 -2
  157. package/mentions/index.js +2 -2
  158. package/menu/Menu.js +2 -2
  159. package/menu/OverflowWrap.js +1 -1
  160. package/menu/index.js +2 -2
  161. package/message/index.js +1 -1
  162. package/message/useMessage.js +1 -1
  163. package/modal/Confirm.js +2 -2
  164. package/modal/Modal.js +2 -2
  165. package/modal/index.js +1 -1
  166. package/notice/index.js +1 -1
  167. package/notification/index.js +5 -5
  168. package/notification/useNotification.js +1 -1
  169. package/overflow-ellipsis/OverflowItem.js +12 -12
  170. package/overflow-ellipsis/index.js +24 -24
  171. package/package.json +1 -1
  172. package/page-header/index.js +38 -38
  173. package/pagination/PageItem.js +16 -16
  174. package/pagination/PageJumper.js +1 -1
  175. package/pagination/PageOption.js +2 -2
  176. package/pagination/Pagination.js +2 -2
  177. package/pagination/index.js +1 -1
  178. package/picker/Input.js +69 -69
  179. package/picker/InputRange.js +111 -111
  180. package/popconfirm/index.js +61 -61
  181. package/popover/index.js +35 -35
  182. package/progress/index.js +22 -22
  183. package/radio/Group.js +2 -2
  184. package/radio/GroupBlock.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +49 -49
  188. package/resize-box/ResizeTrigger.js +34 -34
  189. package/resize-box/Split.js +56 -56
  190. package/resize-box/SplitGroup.js +55 -55
  191. package/resize-box/index.js +51 -51
  192. package/result/index.js +41 -41
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select/index.js +2 -2
  196. package/select/util.js +1 -1
  197. package/select-view/Core.js +125 -125
  198. package/skeleton/index.js +20 -20
  199. package/slider/Button.js +57 -57
  200. package/slider/index.js +116 -116
  201. package/space/index.js +46 -44
  202. package/speech-synthesis/index.js +1 -1
  203. package/spin/DotLoading.js +10 -10
  204. package/spin/index.js +44 -44
  205. package/statistic/Countdown.js +34 -34
  206. package/statistic/index.js +67 -67
  207. package/steps/index.js +55 -55
  208. package/style.css +1 -1
  209. package/switch/index.js +54 -54
  210. package/table/Table.js +3 -3
  211. package/table/index.js +1 -1
  212. package/tabs/Tab.js +2 -2
  213. package/tabs/TabContent.js +2 -2
  214. package/tabs/TabPane.js +12 -12
  215. package/tabs/index.js +2 -2
  216. package/tag/index.js +45 -45
  217. package/time-picker/Picker.js +76 -76
  218. package/time-picker/TimePicker.js +136 -136
  219. package/time-picker/index.js +8 -8
  220. package/time-picker/util.js +5 -5
  221. package/timeline/Item.js +47 -47
  222. package/timeline/Timeline.js +41 -41
  223. package/tooltip/index.js +29 -29
  224. package/transfer/Item.js +2 -2
  225. package/transfer/List.js +2 -2
  226. package/transfer/index.js +2 -2
  227. package/tree/Animation.js +2 -2
  228. package/tree/Node.js +2 -2
  229. package/tree/NodeList.js +1 -1
  230. package/tree/Tree.js +2 -2
  231. package/tree/index.js +1 -1
  232. package/tree-select/List.js +1 -1
  233. package/tree-select/Select.js +2 -2
  234. package/tree-select/index.js +2 -2
  235. package/trigger/index.js +60 -60
  236. package/types/config-provider/ConfigProvider.d.ts +2 -2
  237. package/types/config-provider/context.d.ts +1 -1
  238. package/types/date-picker/index.d.ts +8 -9
  239. package/types/date-picker/interface.d.ts +9 -9
  240. package/types/index.d.ts +1 -1
  241. package/types/picker/Input.d.ts +2 -2
  242. package/types/space/index.d.ts +2 -1
  243. package/types/utils/names.d.ts +1 -1
  244. package/typography/Base.js +53 -53
  245. package/typography/Ellipsis.js +9 -8
  246. package/typography/Operations.js +28 -28
  247. package/typography/Paragraph.js +8 -8
  248. package/typography/Typography.js +7 -7
  249. package/typography/index.js +1 -1
  250. package/upload/TriggerNode.js +47 -47
  251. package/upload/Upload.js +184 -184
  252. package/utils/contextHolder.js +3 -3
  253. package/utils/index.js +13 -13
  254. package/utils/names.js +1 -1
  255. package/utils/setPrimaryColor.js +18 -13
  256. package/utils/tween.js +1 -1
  257. package/verification-code/VerificationCode.js +49 -49
  258. package/version/index.js +1 -1
  259. package/watermark/Watermark.js +24 -24
  260. package/chunk/CQvM33Vg.js +0 -724
  261. package/chunk/yhU2zeeu.js +0 -1461
  262. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/trigger/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as D, jsxs as $e } from "react/jsx-runtime";
1
+ import { jsx as w, jsxs as $e } from "react/jsx-runtime";
2
2
  import { c as ut } from "../chunk/BJ9_azwQ.js";
3
3
  import ct from "lodash/isArray";
4
- import M from "lodash/isFunction";
4
+ import S from "lodash/isFunction";
5
5
  import { forwardRef as lt, useContext as pt, useRef as R, useState as at, Children as He, useCallback as be, cloneElement as Ie, useImperativeHandle as ft, useLayoutEffect as dt, useEffect as g, Fragment as mt } from "react";
6
6
  import { createPortal as gt } from "react-dom";
7
- import { a as yt } from "../chunk/CQvM33Vg.js";
7
+ import { a as yt } from "../chunk/Cplu5dtQ.js";
8
8
  import te from "@unicom-cloud/utils/class-name";
9
9
  import { on as oe, off as ne, getScrollElements as Tt, isScrollElement as Ct, contains as Le } from "../utils/dom.js";
10
10
  import { s as ht } from "../chunk/ClM74To2.js";
@@ -19,11 +19,11 @@ import { isPlainObject as ie } from "@unicom-cloud/utils/is";
19
19
  function St(d, I) {
20
20
  if (!d)
21
21
  return {};
22
- const { width: y, height: S, left: T, right: Y } = Mt(d, I);
22
+ const { width: y, height: T, left: C, right: Y } = Mt(d, I);
23
23
  return {
24
24
  width: y,
25
- height: S,
26
- left: T,
25
+ height: T,
26
+ left: C,
27
27
  right: Y
28
28
  };
29
29
  }
@@ -38,10 +38,10 @@ const jt = [
38
38
  "onKeyDown"
39
39
  ];
40
40
  function Ot(d, I) {
41
- const y = {}, S = { ...d };
42
- return I.forEach((T) => {
43
- d && T in d && (y[T] = d[T], delete S[T]);
44
- }), { picked: y, omitted: S };
41
+ const y = {}, T = { ...d };
42
+ return I.forEach((C) => {
43
+ d && C in d && (y[C] = d[C], delete T[C]);
44
+ }), { picked: y, omitted: T };
45
45
  }
46
46
  const vt = {
47
47
  blurToHide: !0,
@@ -66,11 +66,11 @@ const vt = {
66
66
  };
67
67
  function Nt(d, I) {
68
68
  var Se, Oe;
69
- const y = pt(yt), { getPrefixCls: S, zIndex: T, rtl: Y } = y, i = l(d), {
69
+ const y = pt(yt), { getPrefixCls: T, zIndex: C, rtl: Y } = y, i = l(d), {
70
70
  children: se,
71
71
  style: A,
72
72
  className: ke,
73
- arrowProps: C,
73
+ arrowProps: h,
74
74
  disabled: O,
75
75
  popup: ue,
76
76
  classNames: K,
@@ -79,7 +79,7 @@ function Nt(d, I) {
79
79
  alignPoint: Ae,
80
80
  autoAlignPopupWidth: Fe,
81
81
  position: ze,
82
- childrenPrefix: h,
82
+ childrenPrefix: E,
83
83
  showArrow: _e,
84
84
  popupStyle: le,
85
85
  __onExit: Q,
@@ -115,12 +115,12 @@ function Nt(d, I) {
115
115
  }, 0);
116
116
  }
117
117
  };
118
- V() && !O ? (c.onMouseEnter = qe, c.onMouseLeave = Ee, J() && (c.onClick = De), Ae && (c.onMouseMove = Ge), We() || (j.onMouseEnter = Je, j.onMouseLeave = Ze)) : (c.onMouseEnter = P("onMouseEnter"), c.onMouseLeave = P("onMouseLeave")), me() && !O ? (c.onContextMenu = et, c.onClick = De) : c.onContextMenu = P("onContextMenu"), de() && !O ? c.onClick = tt : c.onClick = c.onClick || P("onClick"), G() && !O ? (c.onFocus = ot, ge() && (c.onBlur = nt)) : (c.onFocus = P("onFocus"), c.onBlur = P("onBlur")), O ? c.onKeyDown = P("onKeyDown") : c.onKeyDown = Ue;
118
+ V() && !O ? (c.onMouseEnter = qe, c.onMouseLeave = Ee, J() && (c.onClick = De), Ae && (c.onMouseMove = Ge), We() || (j.onMouseEnter = Je, j.onMouseLeave = Ze)) : (c.onMouseEnter = x("onMouseEnter"), c.onMouseLeave = x("onMouseLeave")), me() && !O ? (c.onContextMenu = et, c.onClick = De) : c.onContextMenu = x("onContextMenu"), de() && !O ? c.onClick = tt : c.onClick = c.onClick || x("onClick"), G() && !O ? (c.onFocus = ot, ge() && (c.onBlur = nt)) : (c.onFocus = x("onFocus"), c.onBlur = x("onBlur")), O ? c.onKeyDown = x("onKeyDown") : c.onKeyDown = Ue;
119
119
  const L = z(), B = He.only(ue());
120
- L.props.className && (c.className = L.props.className), h && u && (c.className = c.className ? `${c.className} ${h}-open` : `${h}-open`), G() && (c.tabIndex = O ? -1 : 0);
121
- const $ = S("trigger"), Ke = te(
120
+ L.props.className && (c.className = L.props.className), E && u && (c.className = c.className ? `${c.className} ${E}-open` : `${E}-open`), G() && (c.tabIndex = O ? -1 : 0);
121
+ const $ = T == null ? void 0 : T("trigger"), Ke = te(
122
122
  $,
123
- h,
123
+ E,
124
124
  `${$}-position-${ze}`,
125
125
  { [`${$}-rtl`]: Y },
126
126
  ke
@@ -180,7 +180,7 @@ function Nt(d, I) {
180
180
  return G() && l(["blurToHide"]).blurToHide;
181
181
  }
182
182
  function Xe() {
183
- n.current.updatePositionTimeoutID && (n.current.updatePositionTimeoutID.cancel ? n.current.updatePositionTimeoutID.cancel() : (clearTimeout(n.current.updatePositionTimeoutID), n.current.updatePositionTimeoutID = null)), w();
183
+ n.current.updatePositionTimeoutID && (n.current.updatePositionTimeoutID.cancel ? n.current.updatePositionTimeoutID.cancel() : (clearTimeout(n.current.updatePositionTimeoutID), n.current.updatePositionTimeoutID = null)), P();
184
184
  }
185
185
  function ye(e) {
186
186
  var k, ve;
@@ -193,7 +193,7 @@ function Nt(d, I) {
193
193
  ]);
194
194
  let s = o && ((k = n.current.arrowStyle) == null ? void 0 : k.top) || 0, p = o && ((ve = n.current.arrowStyle) == null ? void 0 : ve.left) || 0;
195
195
  s = s ? `${s}px` : "", p = p ? `${p}px` : "";
196
- const x = {
196
+ const M = {
197
197
  top: `${p || "50%"} 100% 0`,
198
198
  tl: `${p || "15px"} 100% 0`,
199
199
  tr: `${p || `${t.clientWidth - 15}px`} 100% 0`,
@@ -209,7 +209,7 @@ function Nt(d, I) {
209
209
  };
210
210
  if (r && r.indexOf("zoom") > -1)
211
211
  return {
212
- transformOrigin: x[e]
212
+ transformOrigin: M[e]
213
213
  };
214
214
  if (r === "slideDynamicOrigin") {
215
215
  let Ne = "0% 0%";
@@ -256,16 +256,16 @@ function Nt(d, I) {
256
256
  ...ye(p)
257
257
  };
258
258
  }
259
- function E(e) {
259
+ function D(e) {
260
260
  const t = Z();
261
261
  N((o) => {
262
262
  const r = { ...o };
263
263
  return r.popupStyle = t, r;
264
- }), M(e) && setTimeout(() => {
264
+ }), S(e) && setTimeout(() => {
265
265
  e();
266
266
  }, 0);
267
267
  }
268
- const F = be(Ve(E), [
268
+ const F = be(Ve(D), [
269
269
  u
270
270
  ]);
271
271
  function b(e = 0, t) {
@@ -279,7 +279,7 @@ function Nt(d, I) {
279
279
  N((r) => {
280
280
  const s = { ...r };
281
281
  return s.popupStyle = o, s;
282
- }), M(t) && setTimeout(() => {
282
+ }), S(t) && setTimeout(() => {
283
283
  t();
284
284
  }, 0);
285
285
  }, e);
@@ -290,21 +290,21 @@ function Nt(d, I) {
290
290
  e !== u ? Ce(t, () => {
291
291
  var s;
292
292
  (s = r.onVisibleChange) == null || s.call(r, e), "popupVisible" in r ? o == null || o() : (N((p) => {
293
- const x = { ...p };
294
- return x.popupVisible = !!e, x;
293
+ const M = { ...p };
294
+ return M.popupVisible = !!e, M;
295
295
  }), setTimeout(e ? () => {
296
- E(o);
296
+ D(o);
297
297
  } : () => {
298
298
  o == null || o();
299
299
  }, 0));
300
300
  }) : o == null || o();
301
301
  }
302
302
  function Ce(e, t) {
303
- e ? (w(), n.current.delayTimeoutID = setTimeout(() => {
304
- t(), w();
303
+ e ? (P(), n.current.delayTimeoutID = setTimeout(() => {
304
+ t(), P();
305
305
  }, e)) : t();
306
306
  }
307
- function w() {
307
+ function P() {
308
308
  n.current.delayTimeoutID && (clearTimeout(n.current.delayTimeoutID), n.current.delayTimeoutID = null);
309
309
  }
310
310
  function he(e) {
@@ -323,17 +323,17 @@ function Nt(d, I) {
323
323
  }
324
324
  function qe(e) {
325
325
  const { mouseEnterDelay: t } = l(["mouseEnterDelay"]);
326
- m("onMouseEnter", e), w(), f(!0, t || 0);
326
+ m("onMouseEnter", e), P(), f(!0, t || 0);
327
327
  }
328
328
  function Ge(e) {
329
329
  m("onMouseMove", e), ee(e), u && F();
330
330
  }
331
331
  function Ee(e) {
332
332
  const { mouseLeaveDelay: t } = l(["mouseLeaveDelay"]);
333
- w(), m("onMouseLeave", e), Qe() && u && f(!1, t || 0);
333
+ P(), m("onMouseLeave", e), Qe() && u && f(!1, t || 0);
334
334
  }
335
335
  function Je() {
336
- w();
336
+ P();
337
337
  }
338
338
  function Ze(e) {
339
339
  Ee(e);
@@ -357,7 +357,7 @@ function Nt(d, I) {
357
357
  const { focusDelay: t } = l(["focusDelay"]), o = () => {
358
358
  m("onFocus", e);
359
359
  };
360
- w(), n.current.mousedownToHide || (u ? o == null || o() : f(!0, t || 0, o)), n.current.mousedownToHide = !1;
360
+ P(), n.current.mousedownToHide || (u ? o == null || o() : f(!0, t || 0, o)), n.current.mousedownToHide = !1;
361
361
  }
362
362
  function nt(e) {
363
363
  f(!1, 200, () => m("onBlur", e));
@@ -370,9 +370,9 @@ function Nt(d, I) {
370
370
  const { children: e } = i, t = e, o = t && typeof t != "string" && t.type;
371
371
  let r = e;
372
372
  if (["string", "number"].indexOf(typeof e) > -1 || He.count(e) > 1)
373
- r = /* @__PURE__ */ D("span", { children: e });
373
+ r = /* @__PURE__ */ w("span", { children: e });
374
374
  else if (t && o && (o.__PQB_BUTTON === !0 || o.__PQB_CHECKBOX === !0 || o.__PQB_SWITCH === !0 || o.__PQB_RADIO === !0 || o === "button") && t.props.disabled) {
375
- const { picked: p, omitted: x } = Ot(t.props.style, [
375
+ const { picked: p, omitted: M } = Ot(t.props.style, [
376
376
  "position",
377
377
  "left",
378
378
  "right",
@@ -382,14 +382,14 @@ function Nt(d, I) {
382
382
  "display",
383
383
  "zIndex"
384
384
  ]);
385
- r = /* @__PURE__ */ D(
385
+ r = /* @__PURE__ */ w(
386
386
  "span",
387
387
  {
388
388
  className: (s = t.props) == null ? void 0 : s.className,
389
389
  style: { display: "inline-block", ...p, cursor: "not-allowed" },
390
390
  children: Ie(t, {
391
391
  style: {
392
- ...x,
392
+ ...M,
393
393
  pointerEvents: "none"
394
394
  },
395
395
  className: void 0
@@ -397,15 +397,15 @@ function Nt(d, I) {
397
397
  }
398
398
  );
399
399
  }
400
- return r || /* @__PURE__ */ D("span", {});
400
+ return r || /* @__PURE__ */ w("span", {});
401
401
  }
402
402
  function m(e, t) {
403
403
  const o = z(), r = o && o.props && o.props[e], s = l([e])[e];
404
- M(r) && r(t), M(s) && s(t);
404
+ S(r) && r(t), S(s) && s(t);
405
405
  }
406
- function P(e) {
406
+ function x(e) {
407
407
  const t = z(), o = t && t.props && t.props[e], r = l([e])[e];
408
- return M(r) && M(o) ? (s) => {
408
+ return S(r) && S(o) ? (s) => {
409
409
  o(s), r(s);
410
410
  } : o || r;
411
411
  }
@@ -438,13 +438,13 @@ function Nt(d, I) {
438
438
  getTransformTranslate: Te,
439
439
  getTransformOrigin: ye,
440
440
  updateThrottleByRaf: F,
441
- update: E,
442
- updatePopupStyle: E,
441
+ update: D,
442
+ updatePopupStyle: D,
443
443
  updatePopupPosition: b,
444
444
  handleUpdatePosition: q,
445
445
  setPopupVisible: f,
446
446
  delayToDo: Ce
447
- })), dt(() => (E(), () => {
447
+ })), dt(() => (D(), () => {
448
448
  }), [
449
449
  a.current,
450
450
  ae.current,
@@ -513,7 +513,7 @@ function Nt(d, I) {
513
513
  ref: ht(L) ? (e) => {
514
514
  n.current.child = e, wt(L, e);
515
515
  } : void 0
516
- }), st = /* @__PURE__ */ D(
516
+ }), st = /* @__PURE__ */ w(
517
517
  ut,
518
518
  {
519
519
  in: !!u,
@@ -525,15 +525,15 @@ function Nt(d, I) {
525
525
  onEnter: () => {
526
526
  n.current.triggerDestoried = !1;
527
527
  const e = a.current;
528
- e && (e.style.display = "initial", e.style.pointerEvents = "none", K === "slideDynamicOrigin" && (e.style.transform = Te()), E());
528
+ e && (e.style.display = "initial", e.style.pointerEvents = "none", K === "slideDynamicOrigin" && (e.style.transform = Te()), D());
529
529
  },
530
530
  onEntering: () => {
531
531
  const e = a.current;
532
- e && (K === "slideDynamicOrigin" && (e.style.transform = ""), E());
532
+ e && (K === "slideDynamicOrigin" && (e.style.transform = ""), D());
533
533
  },
534
534
  onEntered: () => {
535
535
  const e = a.current;
536
- e && (e.style.pointerEvents = "auto", E());
536
+ e && (e.style.pointerEvents = "auto", D());
537
537
  },
538
538
  onExit: () => {
539
539
  const e = a.current;
@@ -557,14 +557,14 @@ function Nt(d, I) {
557
557
  width: Fe && (A == null ? void 0 : A.width) === void 0 ? (Oe = n.current.childrenDomSize) == null ? void 0 : Oe.width : "",
558
558
  ...X.popupStyle,
559
559
  position: "absolute",
560
- zIndex: T || "",
560
+ zIndex: C || "",
561
561
  ...A
562
562
  // display
563
563
  },
564
564
  ...j,
565
565
  className: Ke,
566
566
  children: [
567
- ie(le) ? /* @__PURE__ */ D(
567
+ ie(le) ? /* @__PURE__ */ w(
568
568
  B.type,
569
569
  {
570
570
  ref: B.ref,
@@ -572,26 +572,26 @@ function Nt(d, I) {
572
572
  style: { ...B.props.style, ...le }
573
573
  }
574
574
  ) : B,
575
- (_e || C) && /* @__PURE__ */ D(
575
+ (_e || h) && /* @__PURE__ */ w(
576
576
  "div",
577
577
  {
578
578
  ref: ae,
579
579
  className: te(`${$}-arrow-container`, {
580
- [`${h}-arrow-container`]: h
580
+ [`${E}-arrow-container`]: E
581
581
  }),
582
- children: /* @__PURE__ */ D(
582
+ children: /* @__PURE__ */ w(
583
583
  "div",
584
584
  {
585
585
  ref: fe,
586
- ...C,
586
+ ...h,
587
587
  className: te(
588
588
  `${$}-arrow`,
589
589
  {
590
- [`${h}-arrow`]: h
590
+ [`${E}-arrow`]: E
591
591
  },
592
- C == null ? void 0 : C.className
592
+ h == null ? void 0 : h.className
593
593
  ),
594
- style: { ...n.current.arrowStyle, ...C == null ? void 0 : C.style }
594
+ style: { ...n.current.arrowStyle, ...h == null ? void 0 : h.style }
595
595
  }
596
596
  )
597
597
  }
@@ -604,10 +604,10 @@ function Nt(d, I) {
604
604
  let _, Me = u;
605
605
  if (Me || (Me = !!a.current && !n.current.triggerDestoried), Me) {
606
606
  const e = i.getPopupContainer || y.getPopupContainer;
607
- if (M(e)) {
607
+ if (S(e)) {
608
608
  const t = e(H());
609
609
  t && (_ = gt(
610
- /* @__PURE__ */ D("div", { ref: v, className: `${$}-container`, children: st }),
610
+ /* @__PURE__ */ w("div", { ref: v, className: `${$}-container`, children: st }),
611
611
  t
612
612
  // popupVisible ? 1 : 0,
613
613
  ));
@@ -1,4 +1,4 @@
1
- import ConfigContext from './context';
1
+ import ConfigContext, { ConfigProviderDefaultProps } from './context';
2
2
  import type { ConfigProviderProps } from './interface';
3
3
  declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-dev-runtime").JSX.Element;
4
4
  declare namespace ConfigProvider {
@@ -7,4 +7,4 @@ declare namespace ConfigProvider {
7
7
  }
8
8
  export default ConfigProvider;
9
9
  export declare const ConfigConsumer: import("react").Consumer<ConfigProviderProps>;
10
- export { ConfigContext, type ConfigProviderProps };
10
+ export { ConfigContext, ConfigProviderDefaultProps, type ConfigProviderProps };
@@ -1,4 +1,4 @@
1
1
  import { ConfigProviderProps } from './interface';
2
- export declare const DefaultConfigProviderProps: ConfigProviderProps;
2
+ export declare const ConfigProviderDefaultProps: ConfigProviderProps;
3
3
  declare const ConfigContext: import("react").Context<ConfigProviderProps>;
4
4
  export default ConfigContext;
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
- import type { DatePickerDecorator, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
3
- declare const MonthPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
- declare const YearPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
5
- declare const WeekPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
6
- declare const QuarterPicker: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
7
- declare const RangePicker: React.ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("..").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & React.RefAttributes<import("./interface").RangePickerHandle>>;
1
+ import RangePicker from './RangePicker';
2
+ import type { DatePickerDecorator, DatePickerHandle, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
3
+ declare const DatePicker: DatePickerDecorator;
4
+ declare const MonthPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseMonthPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
5
+ declare const YearPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseYearPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
6
+ declare const WeekPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseWeekPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
7
+ declare const QuarterPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseQuarterPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
8
8
  export { MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker };
9
- declare const _default: DatePickerDecorator;
10
- export default _default;
9
+ export default DatePicker;
11
10
  export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, };
@@ -7,7 +7,7 @@ export type CalendarValue = number | string | Date | Dayjs;
7
7
  export type ShortcutType = {
8
8
  text: ReactNode;
9
9
  value: () => Dayjs | Dayjs[];
10
- } & Record<string, any>;
10
+ } & Record<string, unknown>;
11
11
  export type IconsType = {
12
12
  prev?: ReactNode;
13
13
  prevDouble?: ReactNode;
@@ -65,7 +65,7 @@ export interface PickerProps {
65
65
  nextDouble?: ReactNode;
66
66
  inputSuffix?: ReactNode;
67
67
  };
68
- locale?: Record<string, any>;
68
+ locale?: Record<string, unknown>;
69
69
  separator?: ReactNode;
70
70
  disabledDate?: (current: Dayjs) => boolean;
71
71
  extra?: ReactNode;
@@ -113,7 +113,7 @@ export interface BaseQuarterPickerProps {
113
113
  value?: CalendarValue;
114
114
  }
115
115
  export type QuarterPickerProps = BaseQuarterPickerProps & PickerProps;
116
- export type TimePickerRangeProps = Omit<TimePickerProps, 'defaultValue'> & {
116
+ export type TimeRangePickerProps = Omit<TimePickerProps, 'defaultValue'> & {
117
117
  defaultValue?: CalendarValue[];
118
118
  };
119
119
  export interface BaseRangePickerProps {
@@ -126,7 +126,7 @@ export interface BaseRangePickerProps {
126
126
  defaultValue?: CalendarValue[];
127
127
  value?: CalendarValue[];
128
128
  mode?: 'date' | 'month' | 'week' | 'year' | 'quarter';
129
- showTime?: boolean | TimePickerRangeProps;
129
+ showTime?: boolean | TimeRangePickerProps;
130
130
  placeholder?: string[];
131
131
  timepickerProps?: TimePickerProps;
132
132
  onOk?: (dateString: string[], date: Dayjs[]) => void;
@@ -158,10 +158,10 @@ export type RangePickerHandle = {
158
158
  focus: (index?: number) => void;
159
159
  blur: () => void;
160
160
  };
161
- export interface DatePickerDecorator extends React.ComponentClass<DatePickerProps> {
162
- MonthPicker: React.ComponentClass<MonthPickerProps>;
163
- YearPicker: React.ComponentClass<YearPickerProps>;
164
- WeekPicker: React.ComponentClass<WeekPickerProps>;
165
- QuarterPicker: React.ComponentClass<QuarterPickerProps>;
161
+ export interface DatePickerDecorator extends React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<DatePickerHandle>> {
162
+ MonthPicker: React.ForwardRefExoticComponent<MonthPickerProps & React.RefAttributes<DatePickerHandle>>;
163
+ YearPicker: React.ForwardRefExoticComponent<YearPickerProps & React.RefAttributes<DatePickerHandle>>;
164
+ WeekPicker: React.ForwardRefExoticComponent<WeekPickerProps & React.RefAttributes<DatePickerHandle>>;
165
+ QuarterPicker: React.ForwardRefExoticComponent<QuarterPickerProps & React.RefAttributes<DatePickerHandle>>;
166
166
  RangePicker: React.ForwardRefExoticComponent<RangePickerProps & React.RefAttributes<RangePickerHandle>>;
167
167
  }
package/types/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export { default as Cascader } from './cascader';
16
16
  export { default as Checkbox, CheckboxGroup, CheckboxGroupBlock, } from './checkbox';
17
17
  export { default as Collapse } from './collapse';
18
18
  export { default as Comment } from './comment';
19
- export { ConfigConsumer, ConfigContext, default as ConfigProvider, } from './config-provider';
19
+ export { ConfigConsumer, ConfigContext, default as ConfigProvider, ConfigProviderDefaultProps, } from './config-provider';
20
20
  export { default as Copy } from './copy';
21
21
  export { default as DatePicker, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker, } from './date-picker';
22
22
  export { default as Descriptions } from './descriptions';
@@ -23,8 +23,8 @@ export interface DateInputProps {
23
23
  prefix?: ReactNode;
24
24
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
25
25
  }
26
- type DateInputHandle = {
27
- focus: () => void;
26
+ export type DateInputHandle = {
27
+ focus: (index?: number) => void;
28
28
  blur: () => void;
29
29
  };
30
30
  declare const _default: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<DateInputHandle>>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { SpaceProps, SpaceSize } from './interface';
3
3
  declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
4
- export declare function SpaceVertical(props: SpaceProps, ref: any): import("react/jsx-dev-runtime").JSX.Element;
4
+ declare const SpaceVertical: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
5
+ export { SpaceVertical };
5
6
  export default Space;
6
7
  export type { SpaceProps, SpaceSize };
@@ -135,7 +135,7 @@ export namespace COMPONENT_NAMES {
135
135
  let en_22: string;
136
136
  export { en_22 as en };
137
137
  }
138
- export namespace datePickerRangePicker {
138
+ export namespace dateRangePicker {
139
139
  let zh_23: string;
140
140
  export { zh_23 as zh };
141
141
  let en_23: string;