@unicom-cloud/ui 0.8.81 → 0.8.83

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 (280) 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/Input.js +11 -10
  28. package/InputNumber.js +1 -1
  29. package/Layout.js +1 -1
  30. package/Link.js +1 -1
  31. package/List.js +2 -2
  32. package/Mentions.js +2 -2
  33. package/Menu.js +1 -1
  34. package/Message.js +1 -1
  35. package/Modal.js +1 -1
  36. package/Notice.js +1 -1
  37. package/Notification.js +5 -5
  38. package/OverflowEllipsis.js +1 -1
  39. package/PageHeader.js +1 -1
  40. package/Pagination.js +1 -1
  41. package/Popconfirm.js +1 -1
  42. package/Popover.js +1 -1
  43. package/Progress.js +1 -1
  44. package/Radio.js +1 -1
  45. package/Rate.js +1 -1
  46. package/ResizeBox.js +1 -1
  47. package/Result.js +1 -1
  48. package/Select.js +1 -1
  49. package/Skeleton.js +1 -1
  50. package/Slider.js +1 -1
  51. package/Space.js +1 -1
  52. package/SpeechSynthesis.js +1 -1
  53. package/Spin.js +1 -1
  54. package/Statistic.js +2 -2
  55. package/Steps.js +1 -1
  56. package/Switch.js +1 -1
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +1 -1
  60. package/Tooltip.js +1 -1
  61. package/Transfer.js +2 -2
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +1 -1
  65. package/Typography.js +1 -1
  66. package/affix/index.js +60 -57
  67. package/alert/index.js +53 -53
  68. package/anchor/Anchor.js +72 -72
  69. package/anchor/Link.js +27 -27
  70. package/anchor/util.js +1 -1
  71. package/auto-complete/index.js +2 -2
  72. package/avatar/Avatar.js +31 -31
  73. package/avatar/Group.js +25 -25
  74. package/back-top/index.js +30 -30
  75. package/badge/index.js +37 -37
  76. package/breadcrumb/index.js +26 -26
  77. package/button/Group.js +7 -7
  78. package/button/index.js +29 -29
  79. package/calendar/index.js +2 -2
  80. package/card/Grid.js +12 -12
  81. package/card/Meta.js +17 -17
  82. package/card/index.js +44 -44
  83. package/carousel/Arrow.js +19 -19
  84. package/carousel/Indicator.js +25 -25
  85. package/carousel/index.js +77 -77
  86. package/cascader/Cascader.js +2 -2
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +2 -2
  90. package/checkbox/Group.js +2 -2
  91. package/checkbox/GroupBlock.js +2 -2
  92. package/checkbox/index.js +2 -2
  93. package/chunk/B6r8jPCd.js +6 -0
  94. package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
  95. package/chunk/C9oo3EJI.js +692 -0
  96. package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
  97. package/chunk/DILUZgXW.js +1464 -0
  98. package/chunk/DSRHFFrc.js +53 -0
  99. package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
  100. package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
  101. package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
  102. package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
  103. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  104. package/collapse/Collapse.js +2 -2
  105. package/collapse/Item.js +2 -2
  106. package/collapse/index.js +1 -1
  107. package/color-picker/ControlBar.js +36 -36
  108. package/color-picker/InputAlpha.js +11 -11
  109. package/color-picker/InputHex.js +24 -24
  110. package/color-picker/InputRgb.js +23 -23
  111. package/color-picker/Palette.js +18 -18
  112. package/color-picker/Panel.js +2 -2
  113. package/color-picker/index.js +2 -2
  114. package/comment/index.js +31 -31
  115. package/config-provider/ConfigProvider.js +5 -3
  116. package/config-provider/context.js +2 -2
  117. package/config-provider/index.js +4 -3
  118. package/copy/index.js +28 -28
  119. package/date-picker/Picker.js +276 -276
  120. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  121. package/date-picker/index.js +26 -27
  122. package/descriptions/index.js +33 -33
  123. package/divider/index.js +12 -12
  124. package/draggable/index.js +23 -23
  125. package/drawer/Drawer.js +81 -81
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +56 -56
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +76 -76
  130. package/form/FormItem.js +64 -64
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +53 -53
  133. package/grid/Row.js +34 -34
  134. package/grid/grid-item.js +29 -29
  135. package/grid/grid.js +50 -50
  136. package/icon/index.js +20 -19
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +86 -86
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +22 -22
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +498 -493
  144. package/input/Button.js +11 -0
  145. package/input/Group.js +8 -8
  146. package/input/Input.js +488 -434
  147. package/input/InputElement.js +1 -1
  148. package/input/Password.js +1 -1
  149. package/input/Search.js +1 -1
  150. package/input/Textarea.js +1 -1
  151. package/input/index.js +9 -8
  152. package/input-number/index.js +1 -1
  153. package/input-tag/InputTag.js +40 -40
  154. package/layout/Content.js +7 -7
  155. package/layout/Footer.js +9 -9
  156. package/layout/Header.js +7 -7
  157. package/layout/Sider.js +55 -55
  158. package/layout/index.js +32 -32
  159. package/link/index.js +35 -35
  160. package/list/Item.js +29 -29
  161. package/list/Meta.js +12 -12
  162. package/list/index.js +2 -2
  163. package/mentions/index.js +2 -2
  164. package/menu/Menu.js +2 -2
  165. package/menu/OverflowWrap.js +1 -1
  166. package/menu/index.js +2 -2
  167. package/message/index.js +1 -1
  168. package/message/useMessage.js +1 -1
  169. package/modal/Confirm.js +2 -2
  170. package/modal/Modal.js +2 -2
  171. package/modal/index.js +1 -1
  172. package/notice/index.js +1 -1
  173. package/notification/index.js +5 -5
  174. package/notification/useNotification.js +1 -1
  175. package/overflow-ellipsis/OverflowItem.js +12 -12
  176. package/overflow-ellipsis/index.js +24 -24
  177. package/package.json +1 -1
  178. package/page-header/index.js +38 -38
  179. package/pagination/PageItem.js +16 -16
  180. package/pagination/PageJumper.js +1 -1
  181. package/pagination/PageOption.js +2 -2
  182. package/pagination/Pagination.js +2 -2
  183. package/pagination/index.js +1 -1
  184. package/picker/Input.js +69 -69
  185. package/picker/InputRange.js +111 -111
  186. package/popconfirm/index.js +61 -61
  187. package/popover/index.js +35 -35
  188. package/progress/index.js +22 -22
  189. package/radio/Group.js +2 -2
  190. package/radio/GroupBlock.js +2 -2
  191. package/radio/Radio.js +2 -2
  192. package/radio/index.js +2 -2
  193. package/rate/index.js +49 -49
  194. package/resize-box/ResizeTrigger.js +34 -34
  195. package/resize-box/Split.js +56 -56
  196. package/resize-box/SplitGroup.js +55 -55
  197. package/resize-box/index.js +51 -51
  198. package/result/index.js +41 -41
  199. package/select/Option.js +1 -1
  200. package/select/Select.js +2 -2
  201. package/select/index.js +2 -2
  202. package/select/util.js +1 -1
  203. package/select-view/Core.js +125 -125
  204. package/skeleton/index.js +20 -20
  205. package/slider/Button.js +57 -57
  206. package/slider/index.js +116 -116
  207. package/space/index.js +46 -44
  208. package/speech-synthesis/index.js +1 -1
  209. package/spin/DotLoading.js +10 -10
  210. package/spin/index.js +44 -44
  211. package/statistic/Countdown.js +34 -34
  212. package/statistic/index.js +67 -67
  213. package/steps/index.js +55 -55
  214. package/style.css +1 -1
  215. package/switch/index.js +54 -54
  216. package/table/Table.js +3 -3
  217. package/table/index.js +1 -1
  218. package/tabs/Tab.js +2 -2
  219. package/tabs/TabContent.js +2 -2
  220. package/tabs/TabPane.js +12 -12
  221. package/tabs/index.js +2 -2
  222. package/tag/index.js +45 -45
  223. package/time-picker/Picker.js +76 -76
  224. package/time-picker/TimePicker.js +136 -136
  225. package/time-picker/index.js +8 -8
  226. package/time-picker/util.js +5 -5
  227. package/timeline/Item.js +47 -47
  228. package/timeline/Timeline.js +41 -41
  229. package/tooltip/index.js +29 -29
  230. package/transfer/Item.js +2 -2
  231. package/transfer/List.js +2 -2
  232. package/transfer/index.js +2 -2
  233. package/tree/Animation.js +2 -2
  234. package/tree/Node.js +2 -2
  235. package/tree/NodeList.js +1 -1
  236. package/tree/Tree.js +2 -2
  237. package/tree/index.js +1 -1
  238. package/tree-select/List.js +1 -1
  239. package/tree-select/Select.js +2 -2
  240. package/tree-select/index.js +2 -2
  241. package/trigger/index.js +60 -60
  242. package/types/config-provider/ConfigProvider.d.ts +2 -2
  243. package/types/config-provider/context.d.ts +1 -1
  244. package/types/date-picker/index.d.ts +8 -9
  245. package/types/date-picker/interface.d.ts +9 -9
  246. package/types/index.d.ts +2 -2
  247. package/types/input/Button.d.ts +5 -0
  248. package/types/input/Input.d.ts +4 -1
  249. package/types/input/interface.d.ts +7 -0
  250. package/types/picker/Input.d.ts +2 -2
  251. package/types/space/index.d.ts +2 -1
  252. package/types/utils/index.d.ts +1 -0
  253. package/types/utils/names.d.ts +1 -1
  254. package/types/utils/setTheme.d.ts +2 -0
  255. package/typography/Base.js +53 -53
  256. package/typography/Ellipsis.js +10 -8
  257. package/typography/Operations.js +28 -28
  258. package/typography/Paragraph.js +8 -8
  259. package/typography/Typography.js +7 -7
  260. package/typography/index.js +1 -1
  261. package/upload/TriggerNode.js +47 -47
  262. package/upload/Upload.js +184 -184
  263. package/upload/request.js +1 -1
  264. package/upload/request_.js +1 -1
  265. package/utils/constant.js +1 -1
  266. package/utils/contextHolder.js +3 -3
  267. package/utils/dom.js +1 -1
  268. package/utils/index.js +116 -114
  269. package/utils/names.js +1 -1
  270. package/utils/setDarkTheme.js +23 -22
  271. package/utils/setPrimaryColor.js +22 -16
  272. package/utils/setTheme.js +9 -0
  273. package/utils/tween.js +1 -1
  274. package/verification-code/VerificationCode.js +49 -49
  275. package/version/index.js +1 -1
  276. package/watermark/Watermark.js +24 -24
  277. package/chunk/CQvM33Vg.js +0 -724
  278. package/chunk/D0ZWT7db.js +0 -5
  279. package/chunk/yhU2zeeu.js +0 -1461
  280. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -1,410 +1,410 @@
1
- import { jsx as p, jsxs as Le, Fragment as He } from "react/jsx-runtime";
2
- import Co from "@unicom-cloud/icons/IconUiCalendar";
3
- import xo from "@unicom-cloud/icons/IconUiCalendarClock";
4
- import { isDayjs as Me } from "dayjs";
5
- import Ie from "lodash/isArray";
6
- import bo from "lodash/isPlainObject";
7
- import ko from "lodash/isUndefined";
8
- import jo, { forwardRef as No, useContext as To, useRef as ie, useImperativeHandle as Lo, useState as m, useEffect as Ho } from "react";
9
- import { a as Mo } from "../chunk/CQvM33Vg.js";
10
- import { u as Io } from "../chunk/BFTV6myl.js";
11
- import { u as Ee } from "../chunk/VSe_Wq1g.js";
12
- import { u as Eo } from "../chunk/a3hR6zLw.js";
13
- import Oo from "../picker/Input.js";
14
- import zo from "../trigger/index.js";
15
- import Fo from "@unicom-cloud/utils/class-name";
16
- import { g as d, a as N, j as T, k as $o, e as le, d as Oe, f as Ao, m as ze } from "../chunk/tamGhTJp.js";
17
- import { o as Ro } from "../chunk/BKKEev13.js";
18
- import { a as Uo } from "../chunk/ClqoGc3r.js";
19
- import Wo from "./context.js";
20
- import { F as Bo, S as _o } from "../chunk/CC---6jO.js";
21
- import { getDefaultWeekStart as qo, getLocaleDayjsValue as S } from "./util.js";
22
- function Qo(L) {
23
- const { format: H, picker: A, showTime: l } = L;
24
- let u;
25
- switch (L.mode || A.props.pickerType) {
1
+ import { jsx as p, jsxs as Te, Fragment as Ie } from "react/jsx-runtime";
2
+ import xt from "@unicom-cloud/icons/IconUiCalendar";
3
+ import Dt from "@unicom-cloud/icons/IconUiCalendarClock";
4
+ import { isDayjs as Le } from "dayjs";
5
+ import ze from "lodash/isArray";
6
+ import kt from "lodash/isPlainObject";
7
+ import jt from "lodash/isUndefined";
8
+ import Ct, { forwardRef as Nt, useContext as Ht, useRef as ie, useImperativeHandle as Mt, useState as m, useEffect as Tt } from "react";
9
+ import { a as It } from "../chunk/C9oo3EJI.js";
10
+ import { u as Lt } from "../chunk/BFTV6myl.js";
11
+ import { u as Fe } from "../chunk/VSe_Wq1g.js";
12
+ import { u as zt } from "../chunk/a3hR6zLw.js";
13
+ import Ft from "../picker/Input.js";
14
+ import $t from "../trigger/index.js";
15
+ import Ut from "@unicom-cloud/utils/class-name";
16
+ import { g as d, a as M, j as T, k as Wt, e as ue, d as $e, f as Bt, m as Ue } from "../chunk/tamGhTJp.js";
17
+ import { o as Ot } from "../chunk/BKKEev13.js";
18
+ import { a as qt } from "../chunk/ClqoGc3r.js";
19
+ import Qt from "./context.js";
20
+ import { F as Rt, S as Et } from "../chunk/CC---6jO.js";
21
+ import { getDefaultWeekStart as Gt, getLocaleDayjsValue as Y } from "./util.js";
22
+ function Jt(I) {
23
+ const { format: L, picker: b, showTime: o } = I;
24
+ let c;
25
+ switch (I.mode || b.props.pickerType) {
26
26
  case "date":
27
- u = l ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
27
+ c = o ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
28
28
  break;
29
29
  case "month":
30
- u = "YYYY-MM";
30
+ c = "YYYY-MM";
31
31
  break;
32
32
  case "year":
33
- u = "YYYY";
33
+ c = "YYYY";
34
34
  break;
35
35
  case "week":
36
- u = "gggg-wo";
36
+ c = "gggg-wo";
37
37
  break;
38
38
  case "quarter":
39
- u = "YYYY-[Q]Q";
39
+ c = "YYYY-[Q]Q";
40
40
  break;
41
41
  default:
42
- u = "YYYY-MM-DD";
42
+ c = "YYYY-MM-DD";
43
43
  }
44
- return H && (u = H), u;
44
+ return L && (c = L), c;
45
45
  }
46
- const Fe = {
46
+ const We = {
47
47
  allowClear: !0,
48
48
  unmountOnExit: !0,
49
49
  position: "bl",
50
50
  editable: !0,
51
51
  showNowBtn: !0
52
- }, Ko = { bottom: 4 }, Go = (L, H) => {
53
- var ke, je;
52
+ }, Xt = { bottom: 4 }, Zt = (I, L) => {
53
+ var je, Ce, Ne;
54
54
  const {
55
- getPrefixCls: A,
56
- locale: l,
57
- size: u,
58
- componentConfig: M,
59
- rtl: ue
60
- } = To(Mo);
61
- ue && (Fe.position = "br");
62
- const n = Io(
63
- L,
64
- Fe,
65
- M == null ? void 0 : M.DatePicker
55
+ getPrefixCls: b,
56
+ locale: o,
57
+ size: c,
58
+ componentConfig: z,
59
+ rtl: ce
60
+ } = Ht(It);
61
+ ce && (We.position = "br");
62
+ const r = Lt(
63
+ I,
64
+ We,
65
+ z == null ? void 0 : z.DatePicker
66
66
  ), {
67
- allowClear: $e,
68
- className: ce,
67
+ allowClear: Be,
68
+ className: le,
69
69
  style: fe,
70
- placeholder: Ae,
71
- getPopupContainer: Re,
70
+ placeholder: Oe,
71
+ getPopupContainer: qe,
72
72
  disabled: pe,
73
- position: Ue,
74
- error: We,
75
- status: Be,
76
- unmountOnExit: _e,
77
- editable: qe,
78
- triggerProps: Qe,
73
+ position: Qe,
74
+ error: Re,
75
+ status: Ee,
76
+ unmountOnExit: Ge,
77
+ editable: Je,
78
+ triggerProps: Xe,
79
79
  picker: me,
80
- shortcuts: I,
80
+ shortcuts: F,
81
81
  onSelect: f,
82
- onVisibleChange: R,
83
- value: Ke,
84
- onChange: U,
85
- icons: E,
82
+ onVisibleChange: q,
83
+ value: Ze,
84
+ onChange: Q,
85
+ icons: $,
86
86
  disabledDate: de,
87
- showTime: c,
87
+ showTime: l,
88
88
  showNowBtn: he,
89
- onSelectShortcut: W,
90
- extra: ge,
91
- shortcutsPlacementLeft: Y,
92
- onOk: B,
93
- defaultPickerValue: Ge,
94
- pickerValue: Je,
95
- onPickerValueChange: _,
96
- triggerElement: ve,
89
+ onSelectShortcut: R,
90
+ extra: ve,
91
+ shortcutsPlacementLeft: x,
92
+ onOk: E,
93
+ defaultPickerValue: _e,
94
+ pickerValue: Ae,
95
+ onPickerValueChange: G,
96
+ triggerElement: ge,
97
97
  utcOffset: a,
98
- timezone: r,
99
- panelRender: Pe,
100
- inputProps: Xe
101
- } = n, V = A("picker"), q = l.DatePicker, Ze = ko(n.dayStartOfWeek) ? qo(l.dayjsLocale) : n.dayStartOfWeek, D = n.mode || me.props.pickerType, Q = ie(null), K = ie(null), G = ie(null);
102
- Lo(
103
- H,
98
+ timezone: s,
99
+ panelRender: Ve,
100
+ inputProps: Ke
101
+ } = r, y = b == null ? void 0 : b("picker"), w = o == null ? void 0 : o.DatePicker, et = jt(r.dayStartOfWeek) ? Gt(o == null ? void 0 : o.dayjsLocale) : r.dayStartOfWeek, D = r.mode || me.props.pickerType, J = ie(null), X = ie(null), Z = ie(null);
102
+ Mt(
103
+ L,
104
104
  () => ({
105
105
  focus() {
106
106
  ne();
107
107
  },
108
108
  blur() {
109
- ae();
109
+ re();
110
110
  }
111
111
  }),
112
112
  []
113
113
  );
114
- const C = ((je = (ke = q.Calendar) == null ? void 0 : ke[D]) == null ? void 0 : je.format) || Qo(n);
115
- let t = C;
116
- typeof t == "function" && (t = c ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
117
- function eo() {
114
+ const k = ((Ce = (je = w == null ? void 0 : w.Calendar) == null ? void 0 : je[D]) == null ? void 0 : Ce.format) || Jt(r);
115
+ let n = k;
116
+ typeof n == "function" && (n = l ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
117
+ function tt() {
118
118
  let e;
119
- return n.value ? e = d(n.value, t, a, r) : e = d(n.defaultValue, t, a, r), e;
119
+ return r.value ? e = d(r.value, n, a, s) : e = d(r.defaultValue, n, a, s), e;
120
120
  }
121
- const [J, x] = m(eo()), [oo, to] = m(n.popupVisible), [X, Ve] = m(!1), [ye, O] = m(), h = "popupVisible" in n ? n.popupVisible : oo, b = "value" in n ? d(Ke, t, a, r) : J, we = b || d(Ge, t) || N(), [no, z] = m(), [Z, k] = m(), [ao, ee] = m(), [ro, y] = m(we), oe = d(Je, t) || ro, g = ao || Z || b, [F, Se] = m(D), so = bo(c) && d(
122
- c.defaultValue,
123
- c.format || "HH:mm:ss"
124
- ) || N(a, r), te = g || so;
121
+ const [_, j] = m(tt()), [ot, nt] = m(r.popupVisible), [A, ye] = m(!1), [we, U] = m(), h = "popupVisible" in r ? r.popupVisible : ot, C = "value" in r ? d(Ze, n, a, s) : _, Pe = C || d(_e, n) || M(), [rt, W] = m(), [K, N] = m(), [at, ee] = m(), [st, P] = m(Pe), te = d(Ae, n) || st, v = at || K || C, [B, Se] = m(D), it = kt(l) && d(
122
+ l.defaultValue,
123
+ l.format || "HH:mm:ss"
124
+ ) || M(a, s), oe = v || it;
125
125
  function ne() {
126
- var e, o;
127
- (o = (e = Q.current) == null ? void 0 : e.focus) == null || o.call(e);
126
+ var e, t;
127
+ (t = (e = J.current) == null ? void 0 : e.focus) == null || t.call(e);
128
128
  }
129
- function ae() {
130
- var e, o;
131
- (o = (e = Q.current) == null ? void 0 : e.blur) == null || o.call(e);
129
+ function re() {
130
+ var e, t;
131
+ (t = (e = J.current) == null ? void 0 : e.blur) == null || t.call(e);
132
132
  }
133
- const re = Ee(a), se = Ee(r);
134
- Eo(() => {
135
- if (J && (re !== a || r !== se)) {
136
- const e = T(J, re, se);
137
- x($o(e, a, r));
133
+ const ae = Fe(a), se = Fe(s);
134
+ zt(() => {
135
+ if (_ && (ae !== a || s !== se)) {
136
+ const e = T(_, ae, se);
137
+ j(Wt(e, a, s));
138
138
  }
139
- }, [a, re, r, se]), Ho(() => {
140
- z(void 0), O(void 0), h ? (y(we), Y && G.current && K.current && (G.current.style.maxHeight = `${K.current.clientHeight}px`)) : (k(void 0), ee(void 0), setTimeout(() => {
141
- Ve(!1), Se(D), ae();
139
+ }, [a, ae, s, se]), Tt(() => {
140
+ W(void 0), U(void 0), h ? (P(Pe), x && Z.current && X.current && (Z.current.style.maxHeight = `${X.current.clientHeight}px`)) : (N(void 0), ee(void 0), setTimeout(() => {
141
+ ye(!1), Se(D), re();
142
142
  }, 100));
143
143
  }, [h]);
144
- function io(e) {
145
- e ? w(e, () => {
144
+ function ut(e) {
145
+ e ? S(e, () => {
146
146
  ne();
147
- }) : w(!1);
147
+ }) : S(!1);
148
148
  }
149
- function j(e) {
150
- _ == null || _(e.format(t), e);
149
+ function H(e) {
150
+ G == null || G(e.format(n), e);
151
151
  }
152
- function w(e, o) {
153
- to(e), R == null || R(e), o == null || o();
152
+ function S(e, t) {
153
+ nt(e), q == null || q(e), t == null || t();
154
154
  }
155
- function lo(e) {
156
- var o;
157
- e.stopPropagation(), x(void 0), k(void 0), $(void 0), (o = n.onClear) == null || o.call(n);
155
+ function ct(e) {
156
+ var t;
157
+ e.stopPropagation(), j(void 0), N(void 0), O(void 0), (t = r.onClear) == null || t.call(r);
158
158
  }
159
- function uo() {
160
- const e = S(g, l.dayjsLocale);
161
- Ye(), B == null || B(e && e.format(t), e);
159
+ function lt() {
160
+ const e = Y(v, o == null ? void 0 : o.dayjsLocale);
161
+ Ye(), E == null || E(e && e.format(n), e);
162
162
  }
163
163
  function Ye() {
164
- x(g), $(g), w(!1);
164
+ j(v), O(v), S(!1);
165
165
  }
166
- function De(e, o, i) {
167
- if (z(void 0), O(void 0), c) {
168
- const s = i ? o : le(o, te);
169
- k(s), y(s);
170
- const P = S(
171
- T(s, a, r),
172
- l.dayjsLocale
166
+ function be(e, t, u) {
167
+ if (W(void 0), U(void 0), l) {
168
+ const i = u ? t : ue(t, oe);
169
+ N(i), P(i);
170
+ const V = Y(
171
+ T(i, a, s),
172
+ o == null ? void 0 : o.dayjsLocale
173
173
  );
174
- f == null || f(P.format(t), P);
174
+ f == null || f(V.format(n), V);
175
175
  } else {
176
- const s = S(
177
- T(o, a, r).locale(l.dayjsLocale),
178
- l.dayjsLocale
176
+ const i = Y(
177
+ T(t, a, s).locale(o == null ? void 0 : o.dayjsLocale),
178
+ o == null ? void 0 : o.dayjsLocale
179
179
  );
180
- f == null || f(s ? s.format(t) : void 0, s), x(o), $(o), w(!1);
180
+ f == null || f(i ? i.format(n) : void 0, i), j(t), O(t), S(!1);
181
181
  }
182
182
  }
183
- function $(e) {
184
- if (Ao(e, b)) {
185
- const o = S(
186
- T(e, a, r),
187
- l.dayjsLocale
183
+ function O(e) {
184
+ if (Bt(e, C)) {
185
+ const t = Y(
186
+ T(e, a, s),
187
+ o == null ? void 0 : o.dayjsLocale
188
188
  );
189
- U == null || U(
190
- o ? o.format(t) : void 0,
191
- o
189
+ Q == null || Q(
190
+ t ? t.format(n) : void 0,
191
+ t
192
192
  );
193
193
  }
194
194
  }
195
- function co(e, o) {
196
- const i = g || N(a, r), s = le(i, o);
197
- k(s);
198
- const P = S(
199
- T(s, a, r),
200
- l.dayjsLocale
195
+ function ft(e, t) {
196
+ const u = v || M(a, s), i = ue(u, t);
197
+ N(i);
198
+ const V = Y(
199
+ T(i, a, s),
200
+ o == null ? void 0 : o.dayjsLocale
201
201
  );
202
- f == null || f(P.format(t), P);
202
+ f == null || f(V.format(n), V);
203
203
  }
204
- function fo(e) {
205
- return typeof e == "string" && Oe(e, t).format(t) === e && (typeof de == "function" ? !de(Oe(e, t)) : !0);
204
+ function pt(e) {
205
+ return typeof e == "string" && $e(e, n).format(n) === e && (typeof de == "function" ? !de($e(e, n)) : !0);
206
206
  }
207
- function po(e) {
208
- const o = e.target.value;
209
- if (z(o), h || w(!0), fo(o)) {
210
- const i = d(o, t);
211
- k(i), y(i), z(void 0);
207
+ function mt(e) {
208
+ const t = e.target.value;
209
+ if (W(t), h || S(!0), pt(t)) {
210
+ const u = d(t, n);
211
+ N(u), P(u), W(void 0);
212
212
  }
213
213
  }
214
- function mo() {
215
- g ? (Ye(), ae()) : h && w(!1);
214
+ function dt() {
215
+ v ? (Ye(), re()) : h && S(!1);
216
216
  }
217
- function v(e, o, i = 1) {
218
- let s;
219
- e === "prev" && (s = ze.subtract(oe, i, o)), e === "next" && (s = ze.add(oe, i, o)), j(s), y(s);
217
+ function g(e, t, u = 1) {
218
+ let i;
219
+ e === "prev" && (i = Ue.subtract(te, u, t)), e === "next" && (i = Ue.add(te, u, t)), H(i), P(i);
220
220
  }
221
- function Ce(e = D) {
221
+ function xe(e = D) {
222
222
  if (e === "date" || e === "week")
223
223
  return {
224
- onPrev: () => v("prev", "month"),
225
- onNext: () => v("next", "month"),
226
- onSuperPrev: () => v("prev", "year"),
227
- onSuperNext: () => v("next", "year")
224
+ onPrev: () => g("prev", "month"),
225
+ onNext: () => g("next", "month"),
226
+ onSuperPrev: () => g("prev", "year"),
227
+ onSuperNext: () => g("next", "year")
228
228
  };
229
229
  if (e === "month" || e === "quarter")
230
230
  return {
231
- onSuperPrev: () => v("prev", "year"),
232
- onSuperNext: () => v("next", "year")
231
+ onSuperPrev: () => g("prev", "year"),
232
+ onSuperNext: () => g("next", "year")
233
233
  };
234
234
  if (e === "year")
235
235
  return {
236
- onSuperPrev: () => v("prev", "year", 10),
237
- onSuperNext: () => v("next", "year", 10)
236
+ onSuperPrev: () => g("prev", "year", 10),
237
+ onSuperNext: () => g("next", "year", 10)
238
238
  };
239
239
  }
240
- function xe() {
241
- const e = S(
242
- N(a, r),
243
- l.dayjsLocale
240
+ function De() {
241
+ const e = Y(
242
+ M(a, s),
243
+ o == null ? void 0 : o.dayjsLocale
244
244
  );
245
- j(e), De(e.format(t), e, !0);
245
+ H(e), be(e.format(n), e, !0);
246
246
  }
247
- function ho(e, o) {
248
- if (!o) {
249
- const i = c ? le(e, te) : e;
250
- O(
251
- typeof C == "function" ? C(e) : i.locale(l.dayjsLocale).format(t)
247
+ function ht(e, t) {
248
+ if (!t) {
249
+ const u = l ? ue(e, oe) : e;
250
+ U(
251
+ typeof k == "function" ? k(e) : u.locale(o == null ? void 0 : o.dayjsLocale).format(n)
252
252
  );
253
253
  }
254
254
  }
255
- function go() {
256
- O(void 0);
255
+ function vt() {
256
+ U(void 0);
257
257
  }
258
- function vo(e) {
259
- if (typeof e.value == "function" && Me(e.value())) {
260
- const o = d(
258
+ function gt(e) {
259
+ if (typeof e.value == "function" && Le(e.value())) {
260
+ const t = d(
261
261
  e.value(),
262
- t,
262
+ n,
263
263
  a,
264
- r
264
+ s
265
265
  );
266
- y(o), j(o), ee(o);
266
+ P(t), H(t), ee(t);
267
267
  }
268
268
  }
269
- function Po() {
270
- const e = Z || b || N(a, r);
271
- ee(void 0), y(e), j(e);
269
+ function Vt() {
270
+ const e = K || C || M(a, s);
271
+ ee(void 0), P(e), H(e);
272
272
  }
273
- function Vo(e) {
274
- if (W == null || W(e), typeof e.value == "function" && Me(e.value())) {
275
- const o = d(
273
+ function yt(e) {
274
+ if (R == null || R(e), typeof e.value == "function" && Le(e.value())) {
275
+ const t = d(
276
276
  e.value(),
277
- t,
277
+ n,
278
278
  a,
279
- r
279
+ s
280
280
  );
281
- x(o), $(o), w(!1);
281
+ j(t), O(t), S(!1);
282
282
  }
283
283
  }
284
- function yo() {
285
- Ve(!X);
284
+ function wt() {
285
+ ye(!A);
286
286
  }
287
- function be(e) {
288
- const o = Fo(
289
- `${V}-container`,
287
+ function ke(e) {
288
+ const t = Ut(
289
+ `${y}-container`,
290
290
  {
291
- [`${V}-panel-only`]: e,
292
- [`${V}-container-shortcuts-placement-left`]: Ie(I) && Y,
293
- [`${V}-container-rtl`]: ue
291
+ [`${y}-panel-only`]: e,
292
+ [`${y}-container-shortcuts-placement-left`]: ze(F) && x,
293
+ [`${y}-container-rtl`]: ce
294
294
  },
295
- e ? ce : ""
296
- ), i = {
297
- prefixCls: V,
298
- showTime: c,
299
- shortcuts: I,
300
- onSelectNow: xe,
295
+ e ? le : ""
296
+ ), u = {
297
+ prefixCls: y,
298
+ showTime: l,
299
+ shortcuts: F,
300
+ onSelectNow: De,
301
301
  showNowBtn: he,
302
- onMouseEnterShortcut: vo,
303
- onMouseLeaveShortcut: Po,
304
- onSelectShortcut: Vo
305
- }, s = c && F === "date" || ge || Ie(I) && I.length && !Y || !c && F === "date" && he, P = /* @__PURE__ */ Le(He, { children: [
306
- jo.cloneElement(me, {
307
- ...Ro(n, ["style"]),
308
- ...Ce(),
309
- getHeaderOperations: Ce,
310
- onSelect: De,
311
- onTimePickerSelect: co,
312
- onSelectNow: xe,
302
+ onMouseEnterShortcut: gt,
303
+ onMouseLeaveShortcut: Vt,
304
+ onSelectShortcut: yt
305
+ }, i = l && B === "date" || ve || ze(F) && F.length && !x || !l && B === "date" && he, V = /* @__PURE__ */ Te(Ie, { children: [
306
+ Ct.cloneElement(me, {
307
+ ...Ot(r, ["style"]),
308
+ ...xe(),
309
+ getHeaderOperations: xe,
310
+ onSelect: be,
311
+ onTimePickerSelect: ft,
312
+ onSelectNow: De,
313
313
  popupVisible: h,
314
- format: t,
315
- value: g,
316
- pageShowDate: oe,
317
- localeName: l.dayjsLocale,
318
- setPageShowDate: (Te) => {
319
- y(Te), j(Te);
314
+ format: n,
315
+ value: v,
316
+ pageShowDate: te,
317
+ localeName: o == null ? void 0 : o.dayjsLocale,
318
+ setPageShowDate: (Me) => {
319
+ P(Me), H(Me);
320
320
  },
321
- timeValue: te,
322
- isTimePanel: X,
323
- panelMode: F,
321
+ timeValue: oe,
322
+ isTimePanel: A,
323
+ panelMode: B,
324
324
  setPanelMode: Se,
325
- onMouseEnterCell: ho,
326
- onMouseLeaveCell: go
325
+ onMouseEnterCell: ht,
326
+ onMouseLeaveCell: vt
327
327
  }),
328
- !!s && /* @__PURE__ */ p(
329
- Bo,
328
+ !!i && /* @__PURE__ */ p(
329
+ Rt,
330
330
  {
331
- ...i,
332
- DATEPICKER_LOCALE: q,
333
- disabled: !g,
334
- onClickConfirmBtn: uo,
335
- extra: ge,
336
- mode: F,
337
- shortcutsPlacementLeft: Y,
338
- onClickSelectTimeBtn: yo,
339
- isTimePanel: X
331
+ ...u,
332
+ DATEPICKER_LOCALE: w,
333
+ disabled: !v,
334
+ onClickConfirmBtn: lt,
335
+ extra: ve,
336
+ mode: B,
337
+ shortcutsPlacementLeft: x,
338
+ onClickSelectTimeBtn: wt,
339
+ isTimePanel: A
340
340
  }
341
341
  )
342
- ] }), Ne = Y ? /* @__PURE__ */ Le(He, { children: [
343
- /* @__PURE__ */ p(_o, { ref: G, ...i }),
344
- /* @__PURE__ */ p("div", { ref: K, className: `${V}-panel-wrapper`, children: P })
345
- ] }) : P, Do = typeof Pe == "function" ? Pe(Ne) : Ne;
342
+ ] }), He = x ? /* @__PURE__ */ Te(Ie, { children: [
343
+ /* @__PURE__ */ p(Et, { ref: Z, ...u }),
344
+ /* @__PURE__ */ p("div", { ref: X, className: `${y}-panel-wrapper`, children: V })
345
+ ] }) : V, bt = typeof Ve == "function" ? Ve(He) : He;
346
346
  return /* @__PURE__ */ p(
347
347
  "div",
348
348
  {
349
- className: o,
349
+ className: t,
350
350
  onClick: () => {
351
351
  ne();
352
352
  },
353
353
  style: e ? fe : {},
354
- children: Do
354
+ children: bt
355
355
  }
356
356
  );
357
357
  }
358
- const wo = n.size || u, So = E && E.inputSuffix === null ? null : E && E.inputSuffix || (c ? /* @__PURE__ */ p(xo, {}) : /* @__PURE__ */ p(Co, {})), Yo = {
358
+ const Pt = r.size || c, St = $ && $.inputSuffix === null ? null : $ && $.inputSuffix || (l ? /* @__PURE__ */ p(Dt, {}) : /* @__PURE__ */ p(xt, {})), Yt = {
359
359
  style: fe,
360
- className: ce,
360
+ className: le,
361
361
  popupVisible: h,
362
- format: C,
362
+ format: k,
363
363
  disabled: pe,
364
- error: We,
365
- status: Be,
366
- size: wo,
367
- onPressEnter: mo,
368
- onClear: lo,
369
- prefix: n.prefix,
370
- suffixIcon: So,
371
- editable: qe && typeof C != "function",
372
- allowClear: $e
364
+ error: Re,
365
+ status: Ee,
366
+ size: Pt,
367
+ onPressEnter: dt,
368
+ onClear: ct,
369
+ prefix: r.prefix,
370
+ suffixIcon: St,
371
+ editable: Je && typeof k != "function",
372
+ allowClear: Be
373
373
  };
374
- return /* @__PURE__ */ p(Wo.Provider, { value: { utcOffset: a, timezone: r, weekStart: Ze }, children: ve === null ? be(!0) : /* @__PURE__ */ p(
375
- zo,
374
+ return /* @__PURE__ */ p(Qt.Provider, { value: { utcOffset: a, timezone: s, weekStart: et }, children: ge === null ? ke(!0) : /* @__PURE__ */ p(
375
+ $t,
376
376
  {
377
- popup: be,
377
+ popup: ke,
378
378
  trigger: "click",
379
379
  clickToClose: !1,
380
- position: Ue,
380
+ position: Qe,
381
381
  disabled: pe,
382
- popupAlign: Ko,
383
- getPopupContainer: Re,
384
- onVisibleChange: io,
382
+ popupAlign: Xt,
383
+ getPopupContainer: qe,
384
+ onVisibleChange: ut,
385
385
  popupVisible: h,
386
386
  classNames: "slideDynamicOrigin",
387
- unmountOnExit: _e,
388
- ...Qe,
389
- children: ve || /* @__PURE__ */ p(
390
- Oo,
387
+ unmountOnExit: Ge,
388
+ ...Xe,
389
+ children: ge || /* @__PURE__ */ p(
390
+ Ft,
391
391
  {
392
- ...Uo(n),
393
- ...Yo,
394
- ref: Q,
395
- placeholder: Ae || q.placeholder[D],
392
+ ...qt(r),
393
+ ...Yt,
394
+ ref: J,
395
+ placeholder: Oe || ((Ne = w == null ? void 0 : w.placeholder) == null ? void 0 : Ne[D]),
396
396
  popupVisible: h,
397
- value: Z || b,
398
- inputValue: ye || no,
399
- prefixCls: V,
400
- onChange: po,
401
- isPlaceholder: !!ye,
402
- inputProps: Xe
397
+ value: K || C,
398
+ inputValue: we || rt,
399
+ prefixCls: y,
400
+ onChange: mt,
401
+ isPlaceholder: !!we,
402
+ inputProps: Ke
403
403
  }
404
404
  )
405
405
  }
406
406
  ) });
407
- }, Pt = No(Go);
407
+ }, yo = Nt(Zt);
408
408
  export {
409
- Pt as default
409
+ yo as default
410
410
  };