@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/input/Group.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import f, { useContext as l } from "react";
3
- import { a as u } from "../chunk/C9XYyypq.js";
3
+ import { a as u } from "../chunk/CNcLypMY.js";
4
4
  import { p as x } from "../chunk/CUFsOxJ2.js";
5
5
  const d = f.forwardRef((o, s) => {
6
6
  const { getPrefixCls: r } = l(u), { className: e, style: a, children: p, compact: c, ...m } = o, t = r("input-group"), n = x(
package/input/Input.js CHANGED
@@ -3,7 +3,7 @@ import ie from "lodash/isPlainObject";
3
3
  import He from "lodash/isString";
4
4
  import Be from "lodash/isUndefined";
5
5
  import ue, { useContext as ce, useState as re, useRef as ee, useMemo as le, useImperativeHandle as Ne, useCallback as Fe, useEffect as ye } from "react";
6
- import { a as fe, I as _e } from "../chunk/C9XYyypq.js";
6
+ import { a as fe, I as _e } from "../chunk/CNcLypMY.js";
7
7
  import { u as Ee } from "../chunk/BFTV6myl.js";
8
8
  import { u as he } from "../chunk/DeV0v__J.js";
9
9
  import { p as O } from "../chunk/CUFsOxJ2.js";
@@ -3,7 +3,7 @@ import Y from "@unicom-cloud/icons/IconUiClose";
3
3
  import Z from "lodash/isFunction";
4
4
  import _, { useState as ee, useRef as I, useImperativeHandle as te, useEffect as O } from "react";
5
5
  import { u as oe } from "../chunk/XTEsYGuF.js";
6
- import { I as ne } from "../chunk/C9XYyypq.js";
6
+ import { I as ne } from "../chunk/CNcLypMY.js";
7
7
  import { p as k } from "../chunk/CUFsOxJ2.js";
8
8
  import { f as re } from "../chunk/CftuXmo_.js";
9
9
  import "../chunk/DAAff-FT.js";
package/input/Password.js CHANGED
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiEye";
3
3
  import "@unicom-cloud/icons/IconUiEyeInvisible";
4
4
  import "react";
5
- import "../chunk/C9XYyypq.js";
5
+ import "../chunk/CNcLypMY.js";
6
6
  import "../chunk/XTEsYGuF.js";
7
7
  import "../chunk/DeV0v__J.js";
8
8
  import "../chunk/CUFsOxJ2.js";
package/input/Search.js CHANGED
@@ -4,7 +4,7 @@ import "@unicom-cloud/icons/IconUiSearch";
4
4
  import "lodash/isPlainObject";
5
5
  import "react";
6
6
  import "../button/index.js";
7
- import "../chunk/C9XYyypq.js";
7
+ import "../chunk/CNcLypMY.js";
8
8
  import "../chunk/DeV0v__J.js";
9
9
  import "../chunk/CUFsOxJ2.js";
10
10
  import "../chunk/BKKEev13.js";
package/input/Textarea.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiClose";
3
3
  import "react";
4
- import "../chunk/C9XYyypq.js";
4
+ import "../chunk/CNcLypMY.js";
5
5
  import "../chunk/B2yFlXke.js";
6
6
  import "../chunk/DeV0v__J.js";
7
7
  import "../chunk/CUFsOxJ2.js";
@@ -5,7 +5,7 @@ import "@unicom-cloud/icons/IconUiPlus";
5
5
  import "@unicom-cloud/icons/IconUiUp";
6
6
  import "lodash/isNumber";
7
7
  import "react";
8
- import "../chunk/C9XYyypq.js";
8
+ import "../chunk/CNcLypMY.js";
9
9
  import "../chunk/BFTV6myl.js";
10
10
  import { InputNumber as I } from "../input/Input.js";
11
11
  import "../chunk/CUFsOxJ2.js";
@@ -3,7 +3,7 @@ import Ge from "@unicom-cloud/icons/IconUiClose";
3
3
  import { b as Ke } from "../chunk/BJ9_azwQ.js";
4
4
  import $e from "lodash/isArray";
5
5
  import Ce, { useContext as qe, useRef as C, useState as Xe, useImperativeHandle as Ye, useMemo as Je, useEffect as Qe } from "react";
6
- import { a as Ze, I as et } from "../chunk/C9XYyypq.js";
6
+ import { a as Ze, I as et } from "../chunk/CNcLypMY.js";
7
7
  import tt from "../draggable/index.js";
8
8
  import { u as ot } from "../chunk/BFTV6myl.js";
9
9
  import { u as ye } from "../chunk/DeV0v__J.js";
package/layout/Content.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as f, useContext as i } from "react";
3
- import { a as l } from "../chunk/C9XYyypq.js";
3
+ import { a as l } from "../chunk/CNcLypMY.js";
4
4
  import { p } from "../chunk/CUFsOxJ2.js";
5
5
  function C(t, o) {
6
6
  const { className: n, children: e, ...s } = t, { getPrefixCls: r } = i(l), a = r("layout-content"), m = p(a, n);
package/layout/Footer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as i } from "react";
3
- import { a as l } from "../chunk/C9XYyypq.js";
3
+ import { a as l } from "../chunk/CNcLypMY.js";
4
4
  import { p } from "../chunk/CUFsOxJ2.js";
5
5
  function u(o, t) {
6
6
  const { className: e, children: r, ...s } = o, { getPrefixCls: a } = i(l), n = a("layout-footer"), f = p(n, e);
package/layout/Header.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as i } from "react";
3
- import { a as d } from "../chunk/C9XYyypq.js";
3
+ import { a as d } from "../chunk/CNcLypMY.js";
4
4
  import { p as l } from "../chunk/CUFsOxJ2.js";
5
5
  function p(e, o) {
6
6
  const { getPrefixCls: r } = i(d), { className: t, children: a, ...s } = e, n = r("layout-header"), m = l(n, t);
package/layout/Sider.js CHANGED
@@ -4,7 +4,7 @@ import q from "@unicom-cloud/icons/IconUiRight";
4
4
  import X from "lodash/isArray";
5
5
  import N from "lodash/isNumber";
6
6
  import { createContext as Y, forwardRef as Z, useContext as ee, useState as re, useRef as A, useEffect as F, useMemo as te } from "react";
7
- import { a as ie } from "../chunk/C9XYyypq.js";
7
+ import { a as ie } from "../chunk/CNcLypMY.js";
8
8
  import { u as se } from "../chunk/DeV0v__J.js";
9
9
  import oe from "../resize-box/index.js";
10
10
  import { p as H } from "../chunk/CUFsOxJ2.js";
package/layout/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import i from "lodash/get";
3
3
  import p, { forwardRef as N, useContext as _, useState as F } from "react";
4
- import { a as H } from "../chunk/C9XYyypq.js";
4
+ import { a as H } from "../chunk/CNcLypMY.js";
5
5
  import { u as P } from "../chunk/BFTV6myl.js";
6
6
  import { p as R } from "../chunk/CUFsOxJ2.js";
7
7
  import h from "./Content.js";
package/link/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as $, jsx as c } from "react/jsx-runtime";
2
2
  import y from "@unicom-cloud/icons/IconUiLink";
3
3
  import { forwardRef as g, useContext as L } from "react";
4
- import { a as P } from "../chunk/C9XYyypq.js";
4
+ import { a as P } from "../chunk/CNcLypMY.js";
5
5
  import { u as w } from "../chunk/XTEsYGuF.js";
6
6
  import { u as K } from "../chunk/BFTV6myl.js";
7
7
  import { p as N } from "../chunk/CUFsOxJ2.js";
package/list/Item.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
2
  import p, { useContext as L } from "react";
3
- import { a as M } from "../chunk/C9XYyypq.js";
3
+ import { a as M } from "../chunk/CNcLypMY.js";
4
4
  import { u as P } from "../chunk/BFTV6myl.js";
5
5
  import { p as R } from "../chunk/CUFsOxJ2.js";
6
6
  import f from "./Meta.js";
package/list/Meta.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
2
  import p, { useContext as C } from "react";
3
- import { a as h } from "../chunk/C9XYyypq.js";
3
+ import { a as h } from "../chunk/CNcLypMY.js";
4
4
  import { p as v } from "../chunk/CUFsOxJ2.js";
5
5
  function x(r, n) {
6
6
  const { getPrefixCls: c } = C(h), { className: l, avatar: i, title: e, description: s, ...m } = r, t = `${c("list")}-item-meta`, d = !!i, f = !!(e || s);
package/list/index.js CHANGED
@@ -1,269 +1,19 @@
1
- import { jsx as c, jsxs as P, Fragment as Rt } from "react/jsx-runtime";
2
- import tt, { useContext as jt, useRef as C, useState as x, useImperativeHandle as xt, useCallback as Dt, createElement as Ft } from "react";
3
- import At from "lodash/throttle";
4
- import { a as Mt } from "../chunk/C9XYyypq.js";
5
- import K from "../grid/Col.js";
6
- import Q from "../grid/Row.js";
7
- import { u as Ht } from "../chunk/BFTV6myl.js";
8
- import Tt from "../pagination/Pagination.js";
9
- import Vt from "../spin/index.js";
10
- import { p as D } from "../chunk/CUFsOxJ2.js";
11
- import { o as _t } from "../chunk/BKKEev13.js";
12
- import { a as kt } from "../chunk/ClqoGc3r.js";
13
- import { s as Bt } from "../chunk/Bmvhjhzq.js";
14
- import Gt from "../virtual-list/VirtualList.js";
15
- import Ot from "./Item.js";
16
- const X = 10, Y = 1, Ut = ["small", "default", "large"], Wt = {
17
- split: !0,
18
- bordered: !0,
19
- defaultCurrent: 1,
20
- offsetBottom: 0,
21
- throttleDelay: 500
22
- };
23
- function Zt(rt, F) {
24
- const {
25
- getPrefixCls: ot,
26
- loadingElement: nt,
27
- size: A,
28
- renderEmpty: lt,
29
- componentConfig: y,
30
- rtl: M
31
- } = jt(Mt), p = Ht(
32
- rt,
33
- Wt,
34
- y == null ? void 0 : y.List
35
- ), {
36
- style: st,
37
- wrapperStyle: at,
38
- className: it,
39
- wrapperClassName: ct,
40
- children: N = [],
41
- dataSource: g = [],
42
- size: ut,
43
- footer: H,
44
- header: T,
45
- pagination: t,
46
- bordered: mt,
47
- split: pt,
48
- render: I,
49
- grid: u,
50
- loading: dt,
51
- hoverable: ft,
52
- scrollLoading: S,
53
- paginationInFooter: V,
54
- offsetBottom: gt,
55
- throttleDelay: _,
56
- defaultCurrent: ht,
57
- noDataElement: Ct,
58
- listRef: St,
59
- onReachBottom: h,
60
- onListScroll: $
61
- } = p, $t = ut || (Ut.indexOf(A) > -1 ? A : "default"), e = ot("list"), v = C(null), w = C(null), d = C(null), z = C(null), E = C(!0), [Lt, Pt] = x(
62
- t && typeof t == "object" && (t.pageSize || t.defaultPageSize) || X
63
- ), [yt, Nt] = x(
64
- t && typeof t == "object" && (t.current || t.defaultCurrent) || Y
65
- ), [b, It] = x(ht), k = tt.Children.count(N);
66
- xt(St, () => ({
67
- dom: v.current,
68
- scrollIntoView: (o, l) => {
69
- if (w.current)
70
- w.current.scrollTo({ index: o, options: l });
71
- else if (z.current) {
72
- const n = z.current.children[o];
73
- n && Bt(n, {
74
- boundary: d.current,
75
- ...l
76
- });
77
- }
78
- },
79
- getRootDOMNode: () => v.current
80
- }));
81
- const R = p.virtualListProps ? p.virtualListProps : p.height ? { height: p.height } : void 0, m = {
82
- pageSize: Lt,
83
- current: yt,
84
- total: g.length > 0 ? g.length : k,
85
- ...typeof t == "object" ? t : {},
86
- onPageSizeChange: (o, l) => {
87
- var n;
88
- Pt(o), t && typeof t == "object" && ((n = t.onPageSizeChange) == null || n.call(t, o, l));
89
- },
90
- onChange: (o, l) => {
91
- var n;
92
- Nt(o), t && typeof t == "object" && ((n = t.onChange) == null || n.call(t, o, l));
93
- }
94
- };
95
- m.current = Math.min(
96
- m.current,
97
- Math.ceil(m.total / m.pageSize)
98
- );
99
- const B = !!($ || h), G = Dt(
100
- At(() => {
101
- if ($) {
102
- $(d.current);
103
- return;
104
- }
105
- if (!d.current)
106
- return;
107
- const { scrollTop: o, scrollHeight: l, clientHeight: n } = d.current, a = l - (o + n);
108
- Math.abs(a) < gt + 1 ? E.current && (It(b + 1), h == null || h(b + 1), E.current = !1) : E.current = !0;
109
- }, _),
110
- [_, b, $, h]
111
- ), vt = () => {
112
- const o = (a) => {
113
- const { current: i, pageSize: s } = m, r = (i - 1) * s;
114
- return t && a.length > r ? a.slice(r, r + s) : a;
115
- }, l = (a, i) => {
116
- const s = o(a);
117
- return i ? s.map(i) : s;
118
- }, n = (a, i) => {
119
- const s = o(a);
120
- if (u.column || u.span) {
121
- const r = [], {
122
- gutter: L,
123
- justify: wt,
124
- align: zt,
125
- column: Et,
126
- ...U
127
- } = u, j = Et || Math.floor(24 / u.span), bt = U.span || Math.floor(24 / j);
128
- let f = 0;
129
- for (; f < s.length; ) {
130
- const W = f + j, Z = ~~(f / j);
131
- r.push(
132
- /* @__PURE__ */ c(
133
- Q,
134
- {
135
- className: `${e}-row`,
136
- gutter: L,
137
- justify: wt,
138
- align: zt,
139
- children: s.slice(f, W).map((q, J) => /* @__PURE__ */ c(
140
- K,
141
- {
142
- className: `${e}-row-col`,
143
- ...U,
144
- span: bt,
145
- children: i ? i(q, f + J) : q
146
- },
147
- `${Z}_${J}`
148
- ))
149
- },
150
- Z
151
- )
152
- ), f = W;
153
- }
154
- return r;
155
- }
156
- return /* @__PURE__ */ c(Q, { className: `${e}-row`, gutter: u.gutter, children: s.map((r, L) => /* @__PURE__ */ Ft(
157
- K,
158
- {
159
- className: `${e}-row-col`,
160
- ..._t(u, ["gutter"]),
161
- key: L
162
- },
163
- i ? i(r, L) : r
164
- )) });
165
- };
166
- return g.length > 0 && I ? u ? n(g, I) : l(g, I) : k > 0 ? u ? n(N) : l(N) : S ? null : Ct || lt("List");
167
- }, O = () => {
168
- const o = vt(), l = R && R.threshold !== null && Array.isArray(o), n = t ? /* @__PURE__ */ c(
169
- Tt,
170
- {
171
- ...m,
172
- className: D(
173
- `${e}-pagination`,
174
- m && m.className
175
- )
176
- }
177
- ) : null, a = V ? n : null, i = V ? null : n, s = S != null ? /* @__PURE__ */ c("div", { className: `${e}-item ${e}-scroll-loading`, children: S }) : null;
178
- return /* @__PURE__ */ P(
179
- "div",
180
- {
181
- ref: (r) => {
182
- F = r, v.current = F;
183
- },
184
- style: at,
185
- className: D(
186
- `${e}-wrapper`,
187
- { [`${e}-wrapper-rtl`]: M },
188
- ct
189
- ),
190
- children: [
191
- /* @__PURE__ */ P(
192
- "div",
193
- {
194
- ...kt(p),
195
- style: st,
196
- className: D(
197
- e,
198
- `${e}-${$t}`,
199
- {
200
- [`${e}-no-border`]: !mt,
201
- [`${e}-no-split`]: !pt,
202
- [`${e}-hoverable`]: ft,
203
- [`${e}-rtl`]: M
204
- },
205
- it
206
- ),
207
- ref: (r) => {
208
- l || (d.current = r);
209
- },
210
- onScroll: !l && B ? G : void 0,
211
- children: [
212
- T ? /* @__PURE__ */ c("div", { className: `${e}-header`, children: T }) : null,
213
- l ? /* @__PURE__ */ c(Rt, { children: /* @__PURE__ */ c(
214
- Gt,
215
- {
216
- role: "list",
217
- ref: (r) => {
218
- r && (w.current = r, d.current = r.dom);
219
- },
220
- className: `${e}-content ${e}-virtual`,
221
- data: s ? o.concat(s) : o,
222
- isStaticItemHeight: !1,
223
- onScroll: B ? G : void 0,
224
- ...R,
225
- children: (r) => r
226
- }
227
- ) }) : /* @__PURE__ */ P(
228
- "div",
229
- {
230
- role: "list",
231
- className: `${e}-content`,
232
- ref: z,
233
- children: [
234
- o,
235
- s
236
- ]
237
- }
238
- ),
239
- H || a ? /* @__PURE__ */ P("div", { className: `${e}-footer`, children: [
240
- H,
241
- a
242
- ] }) : null
243
- ]
244
- }
245
- ),
246
- i
247
- ]
248
- }
249
- );
250
- };
251
- return "loading" in p ? /* @__PURE__ */ c(
252
- Vt,
253
- {
254
- style: { display: "block" },
255
- loading: dt,
256
- element: nt,
257
- children: O()
258
- }
259
- ) : O();
260
- }
261
- const et = tt.forwardRef(
262
- Zt
263
- );
264
- et.displayName = "List";
265
- et.Item = Ot;
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "lodash/throttle";
4
+ import "../chunk/CNcLypMY.js";
5
+ import "../grid/Col.js";
6
+ import "../grid/Row.js";
7
+ import "../chunk/BFTV6myl.js";
8
+ import { L as I } from "../chunk/Cwm8LL5p.js";
9
+ import "../spin/index.js";
10
+ import "../chunk/CUFsOxJ2.js";
11
+ import "../chunk/BKKEev13.js";
12
+ import "../chunk/ClqoGc3r.js";
13
+ import "../chunk/Bmvhjhzq.js";
14
+ import "../virtual-list/VirtualList.js";
15
+ import { default as c } from "./Item.js";
266
16
  export {
267
- Ot as ListItem,
268
- et as default
17
+ c as ListItem,
18
+ I as default
269
19
  };
package/mentions/index.js CHANGED
@@ -1,146 +1,13 @@
1
- import { jsxs as P, jsx as k } from "react/jsx-runtime";
2
- import q, { useContext as z, useRef as $, useState as G, useEffect as J } from "react";
3
- import { a as Q } from "../chunk/C9XYyypq.js";
4
- import { u as X } from "../chunk/BFTV6myl.js";
5
- import { u as Y } from "../chunk/DeV0v__J.js";
6
- import Z from "../input/Input.js";
7
- import _ from "../select/Select.js";
8
- import { p as ee } from "../chunk/CUFsOxJ2.js";
9
- import { o as V, e as S, d as v, r as N } from "../chunk/BrOW642m.js";
10
- import { getBeforeSelectionText as te, getLastMeasureIndex as re, isValidSearch as oe } from "./util.js";
11
- const ne = Z.TextArea, se = [V.key, S.key, v.key, N.key], ie = {
12
- prefix: "@",
13
- split: " ",
14
- rows: 1,
15
- position: "bl",
16
- alignTextarea: !0
17
- };
18
- function ae(E, I) {
19
- const { getPrefixCls: W, componentConfig: x, rtl: A } = z(Q), f = X(
20
- E,
21
- ie,
22
- x == null ? void 0 : x.Mentions
23
- ), {
24
- style: b,
25
- className: w,
26
- options: B,
27
- prefix: K,
28
- split: p,
29
- position: O,
30
- alignTextarea: M,
31
- filterOption: R,
32
- triggerProps: j,
33
- getPopupContainer: D,
34
- onChange: l,
35
- onSearch: d,
36
- notFoundContent: F,
37
- ...H
38
- } = f, u = W("mentions"), g = $(null), y = $(null), m = $(null), [c, T] = Y("", {
39
- value: f.value,
40
- defaultValue: f.defaultValue
41
- }), [e, C] = G({
42
- measuring: !1,
43
- location: 0,
44
- text: "",
45
- prefix: ""
46
- });
47
- J(() => {
48
- m.current && y.current && (y.current.scrollTop = m.current.dom.scrollTop);
49
- });
50
- const h = () => {
51
- C({
52
- ...e,
53
- measuring: !1,
54
- location: 0,
55
- text: ""
56
- });
57
- }, L = (r) => {
58
- const n = e.location, s = e.location + e.text.length;
59
- let t = c.slice(0, n), o = c.slice(s + 1);
60
- t += !t || t.endsWith(p) || t.endsWith(`
61
- `) ? "" : p, o = (!o || o.startsWith(p) || o.startsWith(`
62
- `) ? "" : p) + o;
63
- const i = `${e.prefix}${r}`, a = `${t}${i}${o}`;
64
- T(a), h(), l == null || l(a);
65
- }, U = {
66
- onChange: (r) => {
67
- T(r), l == null || l(r);
68
- },
69
- onKeyDown: (r) => {
70
- var s, t;
71
- const n = r.key;
72
- n === V.key && ((t = (s = m.current) == null ? void 0 : s.blur) == null || t.call(s)), g.current && (g.current.hotkeyHandler(r), (n === S.key || n === v.key || n === N.key) && r.preventDefault());
73
- },
74
- onKeyUp: (r) => {
75
- const { key: n, target: s } = r;
76
- if (~se.indexOf(n))
77
- return;
78
- const t = te(s), { location: o, prefix: i } = re(t, K), a = t.slice(
79
- o + i.length
80
- );
81
- o > -1 && oe(a, f) ? ((n === i || e.measuring || a !== e.text || t.includes(i)) && C({
82
- measuring: !0,
83
- text: a,
84
- prefix: i,
85
- location: o
86
- }), d == null || d(a, i)) : e.measuring && h();
87
- },
88
- onBlur: h
89
- };
90
- return /* @__PURE__ */ P(
91
- "div",
92
- {
93
- ref: I,
94
- style: b,
95
- className: ee(
96
- `${u}`,
97
- {
98
- [`${u}-align-textarea`]: M,
99
- [`${u}-rtl`]: A
100
- },
101
- w
102
- ),
103
- children: [
104
- /* @__PURE__ */ k(
105
- ne,
106
- {
107
- ref: m,
108
- className: `${u}-textarea`,
109
- value: c,
110
- ...U,
111
- ...H
112
- }
113
- ),
114
- /* @__PURE__ */ P("div", { ref: y, className: `${u}-measure`, children: [
115
- c.slice(0, e.location),
116
- /* @__PURE__ */ k(
117
- _,
118
- {
119
- ref: g,
120
- options: B,
121
- inputValue: e.text,
122
- notFoundContent: F,
123
- triggerElement: /* @__PURE__ */ k("span", { className: `${u}-measure-trigger`, children: e.prefix }),
124
- triggerProps: {
125
- popupVisible: e.measuring,
126
- autoAlignPopupWidth: M,
127
- position: O,
128
- ...j
129
- },
130
- filterOption: R,
131
- getPopupContainer: D,
132
- value: void 0,
133
- onChange: L
134
- }
135
- ),
136
- c.slice(e.location + e.prefix.length)
137
- ] })
138
- ]
139
- }
140
- );
141
- }
142
- const le = q.forwardRef(ae);
143
- le.displayName = "Mentions";
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 "../input/Input.js";
7
+ import { M as s } from "../chunk/Cwm8LL5p.js";
8
+ import "../chunk/CUFsOxJ2.js";
9
+ import "../chunk/BrOW642m.js";
10
+ import "./util.js";
144
11
  export {
145
- le as default
12
+ s as default
146
13
  };
package/menu/Menu.js CHANGED
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMenuFold";
3
3
  import "@unicom-cloud/icons/IconUiMenuUnfold";
4
4
  import "lodash/isPlainObject";
5
5
  import "react";
6
- import "../chunk/C9XYyypq.js";
6
+ import "../chunk/CNcLypMY.js";
7
7
  import "../chunk/CQ_WOOmf.js";
8
8
  import "../chunk/B4YRLi8r.js";
9
9
  import "../chunk/XTEsYGuF.js";
@@ -15,7 +15,7 @@ import "../chunk/BKKEev13.js";
15
15
  import "./context.js";
16
16
  import { default as I } from "./Item.js";
17
17
  import { default as c } from "./ItemGroup.js";
18
- import { S as h, S as j, M as k } from "../chunk/B8hkFIar.js";
18
+ import { S as h, S as j, M as k } from "../chunk/CBgu99gQ.js";
19
19
  import "./util.js";
20
20
  export {
21
21
  I as MenuItem,
@@ -4,7 +4,7 @@ import "../chunk/CUFsOxJ2.js";
4
4
  import "../chunk/CIRG541s.js";
5
5
  import "../utils/style.js";
6
6
  import "./context.js";
7
- import { O as f } from "../chunk/B8hkFIar.js";
7
+ import { O as f } from "../chunk/CBgu99gQ.js";
8
8
  export {
9
9
  f as default
10
10
  };
package/menu/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as o } from "../chunk/B8hkFIar.js";
2
- import { S as r, S as a } from "../chunk/B8hkFIar.js";
1
+ import { M as o } from "../chunk/CBgu99gQ.js";
2
+ import { S as r, S as a } from "../chunk/CBgu99gQ.js";
3
3
  import { default as n } from "./Item.js";
4
4
  import { default as p } from "./ItemGroup.js";
5
5
  export {
package/message/index.js CHANGED
@@ -4,7 +4,7 @@ import "lodash/isNumber";
4
4
  import "lodash/isUndefined";
5
5
  import "react";
6
6
  import "react-dom/client";
7
- import { M as g, m as M, u as d } from "../chunk/C9XYyypq.js";
7
+ import { M as g, m as M, u as d } from "../chunk/CNcLypMY.js";
8
8
  import "../notification/withNotification.js";
9
9
  import "../chunk/BpYX5PN4.js";
10
10
  import "../chunk/CUFsOxJ2.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "lodash/isString";
3
3
  import "react";
4
- import { u as i } from "../chunk/C9XYyypq.js";
4
+ import { u as i } from "../chunk/CNcLypMY.js";
5
5
  export {
6
6
  i as default
7
7
  };
package/modal/Confirm.js CHANGED
@@ -4,8 +4,8 @@ import "@unicom-cloud/icons/IconUiCloseCircleFill";
4
4
  import "@unicom-cloud/icons/IconUiExclamationCircleFill";
5
5
  import "@unicom-cloud/icons/IconUiInfoCircleFill";
6
6
  import "react-dom/client";
7
- import "../chunk/C9XYyypq.js";
8
- import { c as l, n as s } from "../chunk/WVoGhvMI.js";
7
+ import "../chunk/CNcLypMY.js";
8
+ import { c as l, n as s } from "../chunk/BPQXH_5i.js";
9
9
  import "./config.js";
10
10
  export {
11
11
  l as default,