@unicom-cloud/ui 0.8.75 → 0.8.77

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 (286) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +3 -5
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +3 -3
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +6 -2
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -4
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +2 -3
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  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 +5 -6
  31. package/Mentions.js +3 -4
  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 +1 -1
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +2 -2
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +5 -4
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +5 -6
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +4 -3
  52. package/Spin.js +1 -1
  53. package/Statistic.js +1 -1
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +15 -16
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +2 -2
  60. package/Transfer.js +3 -4
  61. package/Tree.js +2 -3
  62. package/TreeSelect.js +3 -3
  63. package/Trigger.js +1 -1
  64. package/Typography.js +3 -3
  65. package/affix/index.js +86 -82
  66. package/alert/index.js +1 -1
  67. package/anchor/Anchor.js +1 -1
  68. package/anchor/Link.js +1 -1
  69. package/auto-complete/index.js +13 -147
  70. package/avatar/Avatar.js +1 -1
  71. package/avatar/Group.js +1 -1
  72. package/back-top/index.js +1 -1
  73. package/badge/index.js +1 -1
  74. package/breadcrumb/index.js +2 -2
  75. package/button/Group.js +1 -1
  76. package/button/index.js +1 -1
  77. package/calendar/index.js +12 -318
  78. package/card/Grid.js +1 -1
  79. package/card/Meta.js +1 -1
  80. package/card/index.js +1 -1
  81. package/carousel/Arrow.js +1 -1
  82. package/carousel/Indicator.js +1 -1
  83. package/carousel/index.js +1 -1
  84. package/cascader/Cascader.js +4 -4
  85. package/cascader/index.js +1 -1
  86. package/cascader/util.js +8 -8
  87. package/checkbox/Checkbox.js +7 -4
  88. package/checkbox/Group.js +5 -5
  89. package/checkbox/GroupBlock.js +8 -0
  90. package/checkbox/index.js +7 -2
  91. package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
  92. package/chunk/ATwvJ8j2.js +6 -0
  93. package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
  94. package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
  95. package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
  96. package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
  97. package/chunk/CBzE-PUr.js +23 -0
  98. package/chunk/CNcLypMY.js +723 -0
  99. package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
  100. package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
  101. package/chunk/Cwm8LL5p.js +7818 -0
  102. package/chunk/D0ZWT7db.js +5 -0
  103. package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
  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 +1 -1
  108. package/color-picker/InputAlpha.js +1 -1
  109. package/color-picker/InputHex.js +2 -2
  110. package/color-picker/InputRgb.js +2 -2
  111. package/color-picker/Palette.js +2 -2
  112. package/color-picker/Panel.js +15 -266
  113. package/color-picker/colors.js +4 -4
  114. package/color-picker/index.js +13 -268
  115. package/color-picker/utils.js +1 -1
  116. package/comment/index.js +1 -1
  117. package/config-provider/ConfigProvider.js +4 -6
  118. package/config-provider/context.js +3 -2
  119. package/config-provider/index.js +4 -5
  120. package/copy/index.js +1 -1
  121. package/date-picker/Picker.js +1 -1
  122. package/date-picker/PickerRange.js +2 -2
  123. package/date-picker/index.js +1 -1
  124. package/descriptions/index.js +1 -1
  125. package/divider/index.js +1 -1
  126. package/draggable/index.js +1 -1
  127. package/drawer/Drawer.js +30 -21
  128. package/dropdown/Button.js +1 -1
  129. package/dropdown/index.js +1 -1
  130. package/empty/index.js +1 -1
  131. package/form/Form.js +10 -10
  132. package/form/FormItem.js +1 -1
  133. package/form/context.js +1 -1
  134. package/grid/Col.js +1 -1
  135. package/grid/Row.js +1 -1
  136. package/grid/grid-item.js +1 -1
  137. package/grid/grid.js +1 -1
  138. package/hooks/index.js +1 -1
  139. package/hooks/useWindowSize.js +1 -1
  140. package/icon/index.js +1 -1
  141. package/icon-hover/index.js +1 -1
  142. package/image/Image.js +2 -2
  143. package/image/ImagePreview.js +2 -2
  144. package/image/ImagePreviewArrow.js +1 -1
  145. package/image/ImagePreviewGroup.js +1 -1
  146. package/image/index.js +1 -1
  147. package/index.js +453 -463
  148. package/input/Group.js +1 -1
  149. package/input/Input.js +1 -1
  150. package/input/InputElement.js +1 -1
  151. package/input/Password.js +1 -1
  152. package/input/Search.js +1 -1
  153. package/input/Textarea.js +1 -1
  154. package/input-number/index.js +1 -1
  155. package/input-tag/InputTag.js +1 -1
  156. package/layout/Content.js +1 -1
  157. package/layout/Footer.js +1 -1
  158. package/layout/Header.js +1 -1
  159. package/layout/Sider.js +1 -1
  160. package/layout/index.js +1 -1
  161. package/link/index.js +1 -1
  162. package/list/Item.js +1 -1
  163. package/list/Meta.js +1 -1
  164. package/list/index.js +17 -267
  165. package/mentions/index.js +11 -144
  166. package/menu/Menu.js +2 -2
  167. package/menu/OverflowWrap.js +1 -1
  168. package/menu/index.js +2 -2
  169. package/message/index.js +1 -1
  170. package/message/useMessage.js +1 -1
  171. package/modal/Confirm.js +2 -2
  172. package/modal/Modal.js +2 -2
  173. package/modal/index.js +1 -1
  174. package/notice/index.js +1 -1
  175. package/notification/index.js +1 -1
  176. package/notification/useNotification.js +1 -1
  177. package/overflow-ellipsis/OverflowItem.js +1 -1
  178. package/overflow-ellipsis/index.js +1 -1
  179. package/package.json +1 -1
  180. package/page-header/index.js +1 -1
  181. package/pagination/PageItem.js +1 -1
  182. package/pagination/PageJumper.js +1 -1
  183. package/pagination/PageOption.js +5 -45
  184. package/pagination/Pagination.js +11 -243
  185. package/pagination/index.js +2 -2
  186. package/picker/Input.js +1 -1
  187. package/picker/InputRange.js +1 -1
  188. package/popconfirm/index.js +1 -1
  189. package/popover/index.js +1 -1
  190. package/progress/index.js +1 -1
  191. package/radio/Group.js +5 -5
  192. package/radio/GroupBlock.js +9 -0
  193. package/radio/Radio.js +6 -5
  194. package/radio/index.js +4 -3
  195. package/rate/index.js +1 -1
  196. package/resize-box/ResizeTrigger.js +1 -1
  197. package/resize-box/Split.js +1 -1
  198. package/resize-box/SplitGroup.js +1 -1
  199. package/resize-box/index.js +1 -1
  200. package/result/index.js +1 -1
  201. package/select/Option.js +6 -93
  202. package/select/Select.js +23 -546
  203. package/select/index.js +3 -3
  204. package/select/util.js +18 -139
  205. package/select-view/Core.js +1 -1
  206. package/skeleton/index.js +1 -1
  207. package/slider/Button.js +1 -1
  208. package/slider/index.js +1 -1
  209. package/space/index.js +1 -1
  210. package/speech-synthesis/index.js +4 -3
  211. package/spin/DotLoading.js +1 -1
  212. package/spin/index.js +1 -1
  213. package/statistic/Countdown.js +1 -1
  214. package/statistic/index.js +1 -1
  215. package/steps/index.js +1 -1
  216. package/style/variables.less +0 -484
  217. package/style.css +1 -1
  218. package/switch/index.js +1 -1
  219. package/table/Table.js +2 -3
  220. package/table/index.js +15 -109
  221. package/tabs/Tab.js +2 -2
  222. package/tabs/TabContent.js +2 -2
  223. package/tabs/TabPane.js +1 -1
  224. package/tabs/index.js +2 -2
  225. package/tag/index.js +1 -1
  226. package/time-picker/Picker.js +1 -1
  227. package/time-picker/TimePicker.js +1 -1
  228. package/timeline/Item.js +1 -1
  229. package/timeline/Timeline.js +1 -1
  230. package/tooltip/index.js +2 -2
  231. package/transfer/Item.js +9 -104
  232. package/transfer/List.js +13 -184
  233. package/transfer/index.js +13 -180
  234. package/tree/Animation.js +2 -2
  235. package/tree/Node.js +3 -4
  236. package/tree/NodeList.js +6 -80
  237. package/tree/Tree.js +17 -578
  238. package/tree/index.js +2 -3
  239. package/tree-select/List.js +6 -122
  240. package/tree-select/Select.js +22 -392
  241. package/tree-select/index.js +3 -3
  242. package/trigger/index.js +1 -1
  243. package/types/checkbox/Checkbox.d.ts +5 -2
  244. package/types/checkbox/GroupBlock.d.ts +7 -0
  245. package/types/checkbox/index.d.ts +2 -1
  246. package/types/config-provider/ConfigProvider.d.ts +0 -27
  247. package/types/config-provider/interface.d.ts +3 -1
  248. package/types/index.d.ts +2 -2
  249. package/types/menu/context.d.ts +1 -1
  250. package/types/radio/GroupBlock.d.ts +7 -0
  251. package/types/radio/Radio.d.ts +5 -3
  252. package/types/utils/constant.d.ts +2 -1
  253. package/types/utils/index.d.ts +1 -0
  254. package/types/utils/setDarkTheme.d.ts +2 -3
  255. package/types/utils/setPrimaryColor.d.ts +2 -0
  256. package/typography/Base.js +1 -1
  257. package/typography/Ellipsis.js +9 -22
  258. package/typography/Paragraph.js +1 -1
  259. package/typography/Typography.js +1 -1
  260. package/typography/index.js +10 -276
  261. package/upload/TriggerNode.js +1 -1
  262. package/upload/Upload.js +1 -1
  263. package/upload/Uploader.js +43 -44
  264. package/upload/request.js +1 -1
  265. package/upload/request_.js +1 -1
  266. package/utils/caseName.js +1 -1
  267. package/utils/color.js +1 -1
  268. package/utils/constant.js +7 -5
  269. package/utils/contextHolder.js +1 -1
  270. package/utils/dom.js +1 -1
  271. package/utils/index.js +199 -195
  272. package/utils/setDarkTheme.js +34 -5
  273. package/utils/setPrimaryColor.js +26 -0
  274. package/utils/tinycolor.js +1 -1
  275. package/verification-code/VerificationCode.js +1 -1
  276. package/version/index.js +1 -1
  277. package/watermark/Watermark.js +1 -1
  278. package/chunk/BViFMHr-.js +0 -1820
  279. package/chunk/BsWphzcT.js +0 -20
  280. package/chunk/BxZ39GzB.js +0 -209
  281. package/chunk/C9XYyypq.js +0 -713
  282. package/chunk/CIkPwQlq.js +0 -6
  283. package/chunk/DFcz9ZPP.js +0 -1020
  284. package/chunk/DeCsZrXb.js +0 -310
  285. package/chunk/DskaI8QL.js +0 -25
  286. package/chunk/EL5Jmjgr.js +0 -170
package/modal/Modal.js CHANGED
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiClose";
3
3
  import "lodash/isFunction";
4
4
  import "react";
5
5
  import "../button/index.js";
6
- import "../chunk/C9XYyypq.js";
6
+ import "../chunk/CNcLypMY.js";
7
7
  import "../chunk/oopARUrq.js";
8
8
  import "../chunk/BFTV6myl.js";
9
9
  import "../chunk/DeV0v__J.js";
@@ -15,7 +15,7 @@ import "../utils/dom.js";
15
15
  import "../chunk/BrOW642m.js";
16
16
  import "../chunk/BKKEev13.js";
17
17
  import "../chunk/Cc_-i0o_.js";
18
- import { E as k } from "../chunk/WVoGhvMI.js";
18
+ import { E as k } from "../chunk/BPQXH_5i.js";
19
19
  import "./config.js";
20
20
  export {
21
21
  k as default
package/modal/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as t } from "../chunk/WVoGhvMI.js";
1
+ import { E as t } from "../chunk/BPQXH_5i.js";
2
2
  export {
3
3
  t as default
4
4
  };
package/notice/index.js CHANGED
@@ -7,7 +7,7 @@ import "@unicom-cloud/icons/IconUiInfoCircleFill";
7
7
  import "@unicom-cloud/icons/IconUiLoading";
8
8
  import "@unicom-cloud/icons/context";
9
9
  import "react";
10
- import { f as v } from "../chunk/C9XYyypq.js";
10
+ import { e as v } from "../chunk/CNcLypMY.js";
11
11
  import "lodash/isEqualWith";
12
12
  import "../chunk/DAAff-FT.js";
13
13
  import "lodash/isNumber";
@@ -5,7 +5,7 @@ import "lodash/isUndefined";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  import "react-dom/client";
8
- import { N as g, g as u, n as N, c as d } from "../chunk/C9XYyypq.js";
8
+ import { N as g, g as u, n as N, c as d } from "../chunk/CNcLypMY.js";
9
9
  import "../chunk/BpYX5PN4.js";
10
10
  import "../chunk/CUFsOxJ2.js";
11
11
  import "./withNotification.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { c as p } from "../chunk/C9XYyypq.js";
3
+ import { c as p } from "../chunk/CNcLypMY.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import u from "lodash/isFunction";
3
3
  import { useContext as a, useRef as d, useEffect as i } from "react";
4
- import { a as l } from "../chunk/C9XYyypq.js";
4
+ import { a as l } from "../chunk/CNcLypMY.js";
5
5
  import { p as x } from "../chunk/CUFsOxJ2.js";
6
6
  import { r as h } from "../chunk/CIRG541s.js";
7
7
  function E(e) {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as j, jsx as C } from "react/jsx-runtime";
2
2
  import { useContext as k, useState as i, useLayoutEffect as N, useRef as b, useEffect as E } from "react";
3
- import { a as z } from "../chunk/C9XYyypq.js";
3
+ import { a as z } from "../chunk/CNcLypMY.js";
4
4
  import { p as I } from "../chunk/CUFsOxJ2.js";
5
5
  import { r as M } from "../chunk/CIRG541s.js";
6
6
  import v from "./OverflowItem.js";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/ui","version":"0.8.75","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/ui","version":"0.8.77","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
@@ -3,7 +3,7 @@ import B from "@unicom-cloud/icons/IconUiLeft";
3
3
  import _ from "@unicom-cloud/icons/IconUiRight";
4
4
  import T, { useContext as W, useState as j, useRef as z, useImperativeHandle as K, useEffect as U } from "react";
5
5
  import D from "../breadcrumb/index.js";
6
- import { a as F, I as L } from "../chunk/C9XYyypq.js";
6
+ import { a as F, I as L } from "../chunk/CNcLypMY.js";
7
7
  import { u as M } from "../chunk/XTEsYGuF.js";
8
8
  import { u as O } from "../chunk/BFTV6myl.js";
9
9
  import { p } from "../chunk/CUFsOxJ2.js";
@@ -3,7 +3,7 @@ import S from "@unicom-cloud/icons/IconUiLeft";
3
3
  import j from "@unicom-cloud/icons/IconUiMore";
4
4
  import K from "@unicom-cloud/icons/IconUiRight";
5
5
  import U, { useContext as E } from "react";
6
- import { a as N } from "../chunk/C9XYyypq.js";
6
+ import { a as N } from "../chunk/CNcLypMY.js";
7
7
  import { u as R } from "../chunk/XTEsYGuF.js";
8
8
  import { p as k } from "../chunk/CUFsOxJ2.js";
9
9
  var _ = /* @__PURE__ */ ((t) => (t[t.previous = 0] = "previous", t[t.next = 1] = "next", t))(_ || {});
@@ -3,7 +3,7 @@ import I from "lodash/isFunction";
3
3
  import J from "lodash/isPlainObject";
4
4
  import N from "lodash/isUndefined";
5
5
  import { useContext as E, useState as R, useRef as T, useEffect as w } from "react";
6
- import { a as z } from "../chunk/C9XYyypq.js";
6
+ import { a as z } from "../chunk/CNcLypMY.js";
7
7
  import B from "../input/Input.js";
8
8
  function A(n) {
9
9
  var d, g;
@@ -1,47 +1,7 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import P, { useRef as d, useContext as C } from "react";
3
- import { a as O } from "../chunk/C9XYyypq.js";
4
- import p from "../select/Select.js";
5
- const x = () => {
6
- }, z = p.Option, h = [10, 20, 30, 40, 50];
7
- function S(c) {
8
- var a;
9
- const i = d(null), { locale: e } = C(O), {
10
- onPageSizeChange: f = x,
11
- rootPrefixCls: g,
12
- sizeOptions: n = h,
13
- pageSize: r = 10,
14
- size: m,
15
- selectProps: l,
16
- disabled: u
17
- } = c;
18
- return /* @__PURE__ */ t(
19
- "div",
20
- {
21
- ref: i,
22
- className: `${g}-option`,
23
- "aria-label": (a = e == null ? void 0 : e.Pagination) == null ? void 0 : a.pageSize,
24
- children: /* @__PURE__ */ t(
25
- p,
26
- {
27
- value: n.indexOf(r) !== -1 ? r : n[0],
28
- onChange: (o) => {
29
- f(o);
30
- },
31
- size: m,
32
- getPopupContainer: () => i.current,
33
- disabled: u,
34
- ...l,
35
- children: n.map((o) => {
36
- var s;
37
- return /* @__PURE__ */ t(z, { value: o, children: `${o} ${(s = e == null ? void 0 : e.Pagination) == null ? void 0 : s.countPerPage}` }, o);
38
- })
39
- }
40
- )
41
- }
42
- );
43
- }
44
- const j = P.memo(S);
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../chunk/CNcLypMY.js";
4
+ import { a2 as a } from "../chunk/Cwm8LL5p.js";
45
5
  export {
46
- j as default
6
+ a as default
47
7
  };
@@ -1,245 +1,13 @@
1
- import { jsxs as O, jsx as p } from "react/jsx-runtime";
2
- import H, { forwardRef as $e, useContext as be, useEffect as K, createElement as P } from "react";
3
- import { a as Me } from "../chunk/C9XYyypq.js";
4
- import { u as je } from "../chunk/BFTV6myl.js";
5
- import { u as Q } from "../chunk/DeV0v__J.js";
6
- import { p as ke } from "../chunk/CUFsOxJ2.js";
7
- import { a as Je } from "../chunk/ClqoGc3r.js";
8
- import $, { StepPager as b, StepType as m, JumpPager as F } from "./PageItem.js";
9
- import U from "./PageJumper.js";
10
- import Ae from "./PageOption.js";
11
- const Ee = 1, Y = 10;
12
- function I(f = Y, d) {
13
- return Math.ceil(d / f);
14
- }
15
- function Re(f, d) {
16
- const M = Math.floor(d / 2) - 1, C = Math.max(f, 0);
17
- return Math.min(C, M);
18
- }
19
- function X(f) {
20
- return f && f.length ? f[0] : Y;
21
- }
22
- const Oe = {
23
- total: 0,
24
- pageSizeChangeResetCurrent: !0,
25
- bufferSize: 2
26
- };
27
- function Fe(f, d) {
28
- var D, N, W;
29
- const {
30
- getPrefixCls: T,
31
- size: M,
32
- locale: C,
33
- componentConfig: j,
34
- rtl: Z
35
- } = be(Me), s = je(
36
- f,
37
- Oe,
38
- j == null ? void 0 : j.Pagination
39
- ), {
40
- total: ee,
41
- pageSize: te,
42
- current: V,
43
- showMore: ne,
44
- sizeOptions: z,
45
- pageSizeChangeResetCurrent: B,
46
- defaultCurrent: re,
47
- defaultPageSize: ae,
48
- pageOption: oe = {}
49
- // 潘启宝添加
50
- } = s, [e, k] = Q(Ee, {
51
- defaultValue: re,
52
- value: V
53
- }), [g, L] = Q(
54
- X(z),
55
- {
56
- defaultValue: ae,
57
- value: te
58
- }
59
- ), h = ee, se = !!ne;
60
- V && !s.onChange && console.warn(
61
- "Warning: you have provide current prop for pagination but without onChange handler , this will cause no-change when you change page. "
62
- );
63
- function ie(t, a) {
64
- const n = I(t, a);
65
- return e > n ? n : e;
66
- }
67
- K(() => {
68
- if (z && !z.includes(g)) {
69
- const a = X(z);
70
- "pageSize" in s || L(a);
71
- }
72
- }, [z]), K(() => {
73
- const t = ie(g, h);
74
- t !== e && !("current" in s) && k(t);
75
- }, [h, e, g]);
76
- const _ = (t = e, a = g) => {
77
- const { onChange: n } = s;
78
- n == null || n(t, a);
79
- }, le = (t) => {
80
- const { onPageSizeChange: a } = s, n = I(t, h), o = {
81
- pageSize: t
82
- };
83
- B ? o.current = 1 : o.current = e > n ? n : e, "pageSize" in s || L(o.pageSize), !("current" in s) && e !== o.current && k(o.current), a == null || a(t, o.current), _(B ? 1 : o.current, t);
84
- }, J = (t) => {
85
- "current" in s || k(t), _(t);
86
- }, {
87
- className: ue,
88
- style: pe,
89
- pageItemStyle: ce,
90
- activePageItemStyle: fe,
91
- showTotal: S,
92
- sizeCanChange: ge,
93
- sizeOptions: me,
94
- simple: y,
95
- mini: he,
96
- showJumper: A,
97
- selectProps: Pe,
98
- icons: de,
99
- disabled: x,
100
- itemRender: Ce,
101
- hideOnSinglePage: ze
102
- } = s, xe = s.size || M, r = T("pagination"), w = he ? "mini" : xe, Se = ke(
103
- r,
104
- `${r}-size-${w}`,
105
- {
106
- [`${r}-simple`]: y,
107
- [`${r}-disabled`]: x,
108
- [`${r}-rtl`]: Z
109
- },
110
- ue
111
- );
112
- let E;
113
- const i = [], l = I(g, h), c = Re(s.bufferSize, l);
114
- if (ze && l <= 1)
115
- return null;
116
- const u = {
117
- onClick: J,
118
- rootPrefixCls: r,
119
- simple: y,
120
- current: e,
121
- allPages: l,
122
- icons: de,
123
- disabled: x,
124
- pageItemStyle: ce,
125
- activePageItemStyle: fe,
126
- itemRender: Ce
127
- };
128
- if (y) {
129
- const t = `${r}-item-simple`;
130
- E = /* @__PURE__ */ O("ul", { className: `${r}-list`, children: [
131
- /* @__PURE__ */ p(b, { ...u, type: m.previous }, "previous"),
132
- /* @__PURE__ */ p("li", { className: `${t}-pager`, children: /* @__PURE__ */ p(
133
- U,
134
- {
135
- disabled: x,
136
- rootPrefixCls: r,
137
- totalPages: l,
138
- current: e,
139
- onPageChange: J,
140
- simple: {
141
- showJumper: typeof A == "boolean" ? A : !0
142
- },
143
- size: w
144
- }
145
- ) }),
146
- /* @__PURE__ */ p(b, { ...u, type: m.next }, "next")
147
- ] });
148
- } else {
149
- const t = 3 + c, a = l - 2 - c;
150
- if (
151
- // beginPage(1 page) + bufferSize * 2 + endPage(1 page) + ...(2 pages)
152
- l <= 4 + c * 2 || e === t && e === a
153
- )
154
- for (let n = 1; n <= l; n++)
155
- i.push(/* @__PURE__ */ P($, { ...u, key: n, pageNum: n }));
156
- else {
157
- let n = 1, o = l, q = !0, G = !0;
158
- e > t && e < a ? (o = e + c, n = e - c) : e <= t ? (q = !1, n = 1, o = Math.max(t, c + e)) : e >= a && (G = !1, o = l, n = Math.min(a, e - c));
159
- for (let v = n; v <= o; v++)
160
- i.push(/* @__PURE__ */ p($, { pageNum: v, ...u }, v));
161
- const ye = /* @__PURE__ */ P(
162
- F,
163
- {
164
- ...u,
165
- key: n - 1,
166
- type: m.previous,
167
- jumpPage: -(c * 2 + 1)
168
- }
169
- ), we = /* @__PURE__ */ P(
170
- F,
171
- {
172
- ...u,
173
- key: o + 1,
174
- type: m.next,
175
- jumpPage: c * 2 + 1
176
- }
177
- ), Ne = /* @__PURE__ */ p($, { pageNum: 1, ...u }, 1), ve = /* @__PURE__ */ P($, { ...u, key: l, pageNum: l });
178
- q && (i[0] = H.cloneElement(i[0], {
179
- className: `${r}-item-after-pre`
180
- }), i.unshift(ye), i.unshift(Ne)), G && (i[i.length - 1] = H.cloneElement(
181
- i[i.length - 1],
182
- {
183
- className: `${r}-item-before-next`
184
- }
185
- ), i.push(we), i.push(ve));
186
- }
187
- E = /* @__PURE__ */ O("ul", { className: `${r}-list`, children: [
188
- /* @__PURE__ */ P(b, { ...u, key: "previous", type: m.previous }),
189
- i,
190
- se && /* @__PURE__ */ P(
191
- F,
192
- {
193
- ...u,
194
- key: l + 1,
195
- type: m.next,
196
- jumpPage: c * 2 + 1
197
- }
198
- ),
199
- /* @__PURE__ */ p(b, { ...u, type: m.next }, "next")
200
- ] });
201
- }
202
- let R = null;
203
- return typeof S == "boolean" && S && (R = /* @__PURE__ */ p("div", { className: `${r}-total-text`, children: (W = (N = (D = C == null ? void 0 : C.Pagination) == null ? void 0 : D.total) == null ? void 0 : N.replace) == null ? void 0 : W.call(N, "{0}", h) })), typeof S == "function" && (R = /* @__PURE__ */ p("div", { className: `${r}-total-text`, children: S(h, [(e - 1) * g + 1, e * g]) })), /* @__PURE__ */ O(
204
- "div",
205
- {
206
- ...Je(s),
207
- className: Se,
208
- style: pe,
209
- ref: d,
210
- children: [
211
- R,
212
- E,
213
- !!oe && /* @__PURE__ */ p(
214
- Ae,
215
- {
216
- disabled: x,
217
- rootPrefixCls: r,
218
- sizeCanChange: ge,
219
- sizeOptions: me,
220
- onPageSizeChange: le,
221
- pageSize: g,
222
- size: w,
223
- selectProps: Pe
224
- }
225
- ),
226
- !y && A && /* @__PURE__ */ p(
227
- U,
228
- {
229
- disabled: x,
230
- rootPrefixCls: r,
231
- totalPages: l,
232
- current: e,
233
- onPageChange: J,
234
- size: w
235
- }
236
- )
237
- ]
238
- }
239
- );
240
- }
241
- const Ie = $e(Fe);
242
- Ie.displayName = "Pagination";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../chunk/CNcLypMY.js";
4
+ import "../chunk/BFTV6myl.js";
5
+ import "../chunk/DeV0v__J.js";
6
+ import "../chunk/CUFsOxJ2.js";
7
+ import "../chunk/ClqoGc3r.js";
8
+ import "./PageItem.js";
9
+ import "./PageJumper.js";
10
+ import { P as s } from "../chunk/Cwm8LL5p.js";
243
11
  export {
244
- Ie as default
12
+ s as default
245
13
  };
@@ -1,4 +1,4 @@
1
- import t from "./Pagination.js";
1
+ import { P as a } from "../chunk/Cwm8LL5p.js";
2
2
  export {
3
- t as default
3
+ a as default
4
4
  };
package/picker/Input.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as C, jsx as f } from "react/jsx-runtime";
2
2
  import X from "@unicom-cloud/icons/IconUiClose";
3
3
  import Y from "lodash/isArray";
4
4
  import { forwardRef as Z, useContext as _, useRef as I, useState as E, useImperativeHandle as P } from "react";
5
- import { a as p, I as ee } from "../chunk/C9XYyypq.js";
5
+ import { a as p, I as ee } from "../chunk/CNcLypMY.js";
6
6
  import { p as k } from "../chunk/CUFsOxJ2.js";
7
7
  import { e as ce } from "../chunk/BrOW642m.js";
8
8
  import { o as le } from "../chunk/BKKEev13.js";
@@ -2,7 +2,7 @@ import { jsxs as q, jsx as n } from "react/jsx-runtime";
2
2
  import fc from "@unicom-cloud/icons/IconUiClose";
3
3
  import F from "lodash/isArray";
4
4
  import { forwardRef as nc, useContext as sc, useRef as D, useState as ic, useImperativeHandle as mc } from "react";
5
- import { a as uc, I as $c } from "../chunk/C9XYyypq.js";
5
+ import { a as uc, I as $c } from "../chunk/CNcLypMY.js";
6
6
  import { p as B } from "../chunk/CUFsOxJ2.js";
7
7
  import { e as hc, c as yc } from "../chunk/BrOW642m.js";
8
8
  import { o as Cc } from "../chunk/BKKEev13.js";
@@ -4,7 +4,7 @@ import N from "lodash/isFunction";
4
4
  import K from "lodash/isNil";
5
5
  import { forwardRef as Q, useContext as X, useState as Y, useImperativeHandle as Z, useEffect as _ } from "react";
6
6
  import V from "../button/index.js";
7
- import { a as ee } from "../chunk/C9XYyypq.js";
7
+ import { a as ee } from "../chunk/CNcLypMY.js";
8
8
  import { u as oe } from "../chunk/BFTV6myl.js";
9
9
  import { u as ne } from "../chunk/DeV0v__J.js";
10
10
  import te from "../tooltip/index.js";
package/popover/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as j, jsx as e } from "react/jsx-runtime";
2
2
  import m from "lodash/isFunction";
3
3
  import { forwardRef as O, useContext as R } from "react";
4
- import { a as T } from "../chunk/C9XYyypq.js";
4
+ import { a as T } from "../chunk/CNcLypMY.js";
5
5
  import { u as w } from "../chunk/BFTV6myl.js";
6
6
  import F from "../tooltip/index.js";
7
7
  import { p as H } from "../chunk/CUFsOxJ2.js";
package/progress/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as w, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as y, useContext as $ } from "react";
3
- import { a as k } from "../chunk/C9XYyypq.js";
3
+ import { a as k } from "../chunk/CNcLypMY.js";
4
4
  import { u as S } from "../chunk/BFTV6myl.js";
5
5
  import { p as T } from "../chunk/CUFsOxJ2.js";
6
6
  import { o as N } from "../chunk/BKKEev13.js";
package/radio/Group.js CHANGED
@@ -2,15 +2,15 @@ import "react/jsx-runtime";
2
2
  import "lodash/isArray";
3
3
  import "lodash/isPlainObject";
4
4
  import "react";
5
- import "../chunk/C9XYyypq.js";
5
+ import "../chunk/CNcLypMY.js";
6
6
  import "../chunk/BFTV6myl.js";
7
7
  import "../chunk/DeV0v__J.js";
8
8
  import "../chunk/CUFsOxJ2.js";
9
9
  import "../utils/constant.js";
10
10
  import "../chunk/ClqoGc3r.js";
11
- import { C as x, a as G, G as f } from "../chunk/EL5Jmjgr.js";
11
+ import { x as C, g as f, e as l } from "../chunk/Cwm8LL5p.js";
12
12
  export {
13
- x as ClearRadioGroupContext,
14
- G as RadioGroupContext,
15
- f as default
13
+ C as ClearRadioGroupContext,
14
+ f as RadioGroupContext,
15
+ l as default
16
16
  };
@@ -0,0 +1,9 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../chunk/CNcLypMY.js";
4
+ import "../chunk/BFTV6myl.js";
5
+ import { f as a } from "../chunk/Cwm8LL5p.js";
6
+ import "../chunk/CUFsOxJ2.js";
7
+ export {
8
+ a as default
9
+ };
package/radio/Radio.js CHANGED
@@ -2,14 +2,15 @@ import "react/jsx-runtime";
2
2
  import "lodash/isFunction";
3
3
  import "lodash/isNil";
4
4
  import "react";
5
- import "../chunk/C9XYyypq.js";
5
+ import "../chunk/CNcLypMY.js";
6
6
  import "../chunk/BFTV6myl.js";
7
7
  import "../chunk/DeV0v__J.js";
8
8
  import "../chunk/CUFsOxJ2.js";
9
9
  import "../chunk/BKKEev13.js";
10
- import { G, a as R, R as f } from "../chunk/EL5Jmjgr.js";
10
+ import { e as R, f, g as G, R as l } from "../chunk/Cwm8LL5p.js";
11
11
  export {
12
- G as RadioGroup,
13
- R as RadioGroupContext,
14
- f as default
12
+ R as RadioGroup,
13
+ f as RadioGroupBlock,
14
+ G as RadioGroupContext,
15
+ l as default
15
16
  };
package/radio/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { R as a } from "../chunk/EL5Jmjgr.js";
2
- import { C as e, G as p, a as d } from "../chunk/EL5Jmjgr.js";
1
+ import { R as a } from "../chunk/Cwm8LL5p.js";
2
+ import { x as e, e as p, f as d, g as i } from "../chunk/Cwm8LL5p.js";
3
3
  export {
4
4
  e as ClearRadioGroupContext,
5
5
  p as RadioGroup,
6
- d as RadioGroupContext,
6
+ d as RadioGroupBlock,
7
+ i as RadioGroupContext,
7
8
  a as default
8
9
  };
package/rate/index.js CHANGED
@@ -5,7 +5,7 @@ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
5
5
  import tt from "@unicom-cloud/icons/IconUiStarFill";
6
6
  import { times as et, divide as rt } from "../utils/math.js";
7
7
  import g, { useContext as ot, useState as y } from "react";
8
- import { a as at } from "../chunk/C9XYyypq.js";
8
+ import { a as at } from "../chunk/CNcLypMY.js";
9
9
  import { u as st } from "../chunk/BFTV6myl.js";
10
10
  import ct from "../tooltip/index.js";
11
11
  import { p as U } from "../chunk/CUFsOxJ2.js";
@@ -7,7 +7,7 @@ import L from "@unicom-cloud/icons/IconUiDragDot";
7
7
  import M from "@unicom-cloud/icons/IconUiDragDotVertical";
8
8
  import g from "lodash/isFunction";
9
9
  import { useContext as V, useRef as q, useEffect as A } from "react";
10
- import { a as B } from "../chunk/C9XYyypq.js";
10
+ import { a as B } from "../chunk/CNcLypMY.js";
11
11
  import { p as o } from "../chunk/CUFsOxJ2.js";
12
12
  import "../chunk/DAAff-FT.js";
13
13
  import { o as G } from "../chunk/BKKEev13.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as y, jsxs as ie } from "react/jsx-runtime";
2
2
  import { forwardRef as ce, useContext as ae, useState as D, useRef as T, useImperativeHandle as fe, useEffect as ue } from "react";
3
- import { a as le } from "../chunk/C9XYyypq.js";
3
+ import { a as le } from "../chunk/CNcLypMY.js";
4
4
  import { u as me } from "../chunk/B2yFlXke.js";
5
5
  import { p as $ } from "../chunk/CUFsOxJ2.js";
6
6
  import { on as l, off as m } from "../utils/dom.js";
@@ -5,7 +5,7 @@ import S from "lodash/isPlainObject";
5
5
  import Ot from "lodash/isString";
6
6
  import W from "lodash/isUndefined";
7
7
  import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as y, useEffect as L, useImperativeHandle as zt } from "react";
8
- import { a as Pt } from "../chunk/C9XYyypq.js";
8
+ import { a as Pt } from "../chunk/CNcLypMY.js";
9
9
  import { p as Rt } from "../chunk/CUFsOxJ2.js";
10
10
  import { on as P, off as R } from "../utils/dom.js";
11
11
  import { o as Nt } from "../chunk/BKKEev13.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
2
2
  import B from "lodash/isNumber";
3
3
  import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
4
- import { a as at } from "../chunk/C9XYyypq.js";
4
+ import { a as at } from "../chunk/CNcLypMY.js";
5
5
  import { u as ut } from "../chunk/BFTV6myl.js";
6
6
  import { u as W } from "../chunk/DeV0v__J.js";
7
7
  import { p as mt } from "../chunk/CUFsOxJ2.js";
package/result/index.js CHANGED
@@ -4,7 +4,7 @@ import v from "@unicom-cloud/icons/IconUiClose";
4
4
  import C from "@unicom-cloud/icons/IconUiExclamation";
5
5
  import R from "@unicom-cloud/icons/IconUiInfo";
6
6
  import { forwardRef as U, useContext as P } from "react";
7
- import { a as b } from "../chunk/C9XYyypq.js";
7
+ import { a as b } from "../chunk/CNcLypMY.js";
8
8
  import { u as j } from "../chunk/BFTV6myl.js";
9
9
  import { p as m } from "../chunk/CUFsOxJ2.js";
10
10
  import w from "./403.js";