@unicom-cloud/ui 0.8.76 → 0.8.78

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 (271) 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 +1 -1
  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 +1 -1
  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/{CqtaeJXT.js → 9TSjT7x_.js} +4 -4
  92. package/chunk/{DezXC21w.js → BC5fEyWK.js} +2 -1
  93. package/chunk/{ByRETFRI.js → BPQXH_5i.js} +32 -31
  94. package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
  95. package/chunk/{lf-xRLXx.js → CBgu99gQ.js} +1 -1
  96. package/chunk/CNcLypMY.js +723 -0
  97. package/chunk/{D9JpbqFT.js → C_4I3haT.js} +1 -1
  98. package/chunk/{DM_DBvmG.js → CjqvxJml.js} +2 -2
  99. package/chunk/Cwm8LL5p.js +7818 -0
  100. package/chunk/{BGmWsXl0.js → tpmioyz1.js} +1 -1
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +1 -1
  105. package/color-picker/InputAlpha.js +1 -1
  106. package/color-picker/InputHex.js +2 -2
  107. package/color-picker/InputRgb.js +2 -2
  108. package/color-picker/Palette.js +2 -2
  109. package/color-picker/Panel.js +15 -266
  110. package/color-picker/colors.js +1 -1
  111. package/color-picker/index.js +13 -268
  112. package/color-picker/utils.js +1 -1
  113. package/comment/index.js +1 -1
  114. package/config-provider/ConfigProvider.js +5 -8
  115. package/config-provider/context.js +1 -1
  116. package/config-provider/index.js +4 -5
  117. package/copy/index.js +1 -1
  118. package/date-picker/Picker.js +1 -1
  119. package/date-picker/PickerRange.js +2 -2
  120. package/date-picker/index.js +1 -1
  121. package/descriptions/index.js +1 -1
  122. package/divider/index.js +1 -1
  123. package/draggable/index.js +1 -1
  124. package/drawer/Drawer.js +30 -21
  125. package/dropdown/Button.js +1 -1
  126. package/dropdown/index.js +1 -1
  127. package/empty/index.js +1 -1
  128. package/form/Form.js +10 -10
  129. package/form/FormItem.js +1 -1
  130. package/grid/Col.js +1 -1
  131. package/grid/Row.js +1 -1
  132. package/grid/grid-item.js +1 -1
  133. package/grid/grid.js +1 -1
  134. package/hooks/index.js +1 -1
  135. package/hooks/useWindowSize.js +1 -1
  136. package/icon/index.js +1 -1
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +2 -2
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +1 -1
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +399 -411
  144. package/input/Group.js +1 -1
  145. package/input/Input.js +1 -1
  146. package/input/InputElement.js +1 -1
  147. package/input/Password.js +1 -1
  148. package/input/Search.js +1 -1
  149. package/input/Textarea.js +1 -1
  150. package/input-number/index.js +1 -1
  151. package/input-tag/InputTag.js +1 -1
  152. package/layout/Content.js +1 -1
  153. package/layout/Footer.js +1 -1
  154. package/layout/Header.js +1 -1
  155. package/layout/Sider.js +1 -1
  156. package/layout/index.js +1 -1
  157. package/link/index.js +1 -1
  158. package/list/Item.js +1 -1
  159. package/list/Meta.js +1 -1
  160. package/list/index.js +17 -267
  161. package/mentions/index.js +11 -144
  162. package/menu/Menu.js +2 -2
  163. package/menu/OverflowWrap.js +1 -1
  164. package/menu/index.js +2 -2
  165. package/message/index.js +1 -1
  166. package/message/useMessage.js +1 -1
  167. package/modal/Confirm.js +2 -2
  168. package/modal/Modal.js +2 -2
  169. package/modal/index.js +1 -1
  170. package/notice/index.js +1 -1
  171. package/notification/index.js +1 -1
  172. package/notification/useNotification.js +1 -1
  173. package/overflow-ellipsis/OverflowItem.js +1 -1
  174. package/overflow-ellipsis/index.js +1 -1
  175. package/package.json +1 -1
  176. package/page-header/index.js +1 -1
  177. package/pagination/PageItem.js +1 -1
  178. package/pagination/PageJumper.js +1 -1
  179. package/pagination/PageOption.js +5 -45
  180. package/pagination/Pagination.js +11 -243
  181. package/pagination/index.js +2 -2
  182. package/picker/Input.js +1 -1
  183. package/picker/InputRange.js +1 -1
  184. package/popconfirm/index.js +1 -1
  185. package/popover/index.js +1 -1
  186. package/progress/index.js +1 -1
  187. package/radio/Group.js +5 -5
  188. package/radio/GroupBlock.js +9 -0
  189. package/radio/Radio.js +6 -5
  190. package/radio/index.js +4 -3
  191. package/rate/index.js +1 -1
  192. package/resize-box/ResizeTrigger.js +1 -1
  193. package/resize-box/Split.js +1 -1
  194. package/resize-box/SplitGroup.js +1 -1
  195. package/resize-box/index.js +1 -1
  196. package/result/index.js +1 -1
  197. package/select/Option.js +6 -93
  198. package/select/Select.js +23 -546
  199. package/select/index.js +3 -3
  200. package/select/util.js +18 -139
  201. package/select-view/Core.js +1 -1
  202. package/skeleton/index.js +1 -1
  203. package/slider/Button.js +1 -1
  204. package/slider/index.js +1 -1
  205. package/space/index.js +1 -1
  206. package/speech-synthesis/index.js +1 -1
  207. package/spin/DotLoading.js +1 -1
  208. package/spin/index.js +1 -1
  209. package/statistic/Countdown.js +1 -1
  210. package/statistic/index.js +1 -1
  211. package/steps/index.js +1 -1
  212. package/style.css +1 -1
  213. package/switch/index.js +1 -1
  214. package/table/Table.js +2 -3
  215. package/table/index.js +15 -109
  216. package/tabs/Tab.js +2 -2
  217. package/tabs/TabContent.js +2 -2
  218. package/tabs/TabPane.js +1 -1
  219. package/tabs/index.js +2 -2
  220. package/tag/index.js +1 -1
  221. package/time-picker/Picker.js +1 -1
  222. package/time-picker/TimePicker.js +1 -1
  223. package/timeline/Item.js +1 -1
  224. package/timeline/Timeline.js +1 -1
  225. package/tooltip/index.js +2 -2
  226. package/transfer/Item.js +9 -104
  227. package/transfer/List.js +13 -184
  228. package/transfer/index.js +13 -180
  229. package/tree/Animation.js +2 -2
  230. package/tree/Node.js +3 -4
  231. package/tree/NodeList.js +6 -80
  232. package/tree/Tree.js +17 -578
  233. package/tree/index.js +2 -3
  234. package/tree-select/List.js +6 -122
  235. package/tree-select/Select.js +22 -392
  236. package/tree-select/index.js +3 -3
  237. package/trigger/index.js +1 -1
  238. package/types/checkbox/Checkbox.d.ts +5 -2
  239. package/types/checkbox/GroupBlock.d.ts +7 -0
  240. package/types/checkbox/index.d.ts +2 -1
  241. package/types/config-provider/ConfigProvider.d.ts +0 -27
  242. package/types/config-provider/interface.d.ts +3 -1
  243. package/types/index.d.ts +2 -2
  244. package/types/menu/context.d.ts +1 -1
  245. package/types/radio/GroupBlock.d.ts +7 -0
  246. package/types/radio/Radio.d.ts +5 -3
  247. package/types/utils/index.d.ts +1 -0
  248. package/types/utils/setPrimaryColor.d.ts +2 -0
  249. package/typography/Base.js +1 -1
  250. package/typography/Ellipsis.js +8 -22
  251. package/typography/Paragraph.js +1 -1
  252. package/typography/Typography.js +1 -1
  253. package/typography/index.js +10 -277
  254. package/upload/TriggerNode.js +1 -1
  255. package/upload/Upload.js +1 -1
  256. package/upload/Uploader.js +43 -44
  257. package/utils/color.js +1 -1
  258. package/utils/contextHolder.js +1 -1
  259. package/utils/index.js +155 -153
  260. package/utils/setDarkTheme.js +21 -20
  261. package/utils/setPrimaryColor.js +26 -0
  262. package/utils/tinycolor.js +1 -1
  263. package/verification-code/VerificationCode.js +1 -1
  264. package/version/index.js +1 -1
  265. package/watermark/Watermark.js +1 -1
  266. package/chunk/CQzKdjhX.js +0 -714
  267. package/chunk/CzaoCNQH.js +0 -1020
  268. package/chunk/D0qXkqyq.js +0 -1820
  269. package/chunk/DQrLGkIG.js +0 -209
  270. package/chunk/J07pQqQ7.js +0 -310
  271. package/chunk/OPbfCome.js +0 -170
@@ -0,0 +1,7 @@
1
+ import type { RadioGroupContextProps, RadioGroupProps } from './interface';
2
+ declare function RadioGroupBlock(baseProps: any): import("react/jsx-dev-runtime").JSX.Element;
3
+ declare namespace RadioGroupBlock {
4
+ var displayName: string;
5
+ }
6
+ export default RadioGroupBlock;
7
+ export type { RadioGroupContextProps, RadioGroupProps };
@@ -1,13 +1,15 @@
1
1
  import React from 'react';
2
- import Group, { RadioGroupContext } from './Group';
2
+ import RadioGroup, { RadioGroupContext } from './Group';
3
+ import RadioGroupBlock from './GroupBlock';
3
4
  import type { RadioProps } from './interface';
4
5
  declare function Radio(baseProps: RadioProps): import("react/jsx-dev-runtime").JSX.Element;
5
6
  declare namespace Radio {
6
7
  var __PQB_RADIO: boolean;
7
8
  var displayName: string;
8
- var Group: typeof import("./Group").default;
9
+ var Group: typeof RadioGroup;
10
+ var GroupBlock: typeof RadioGroupBlock;
9
11
  var GroupContext: React.Context<import("./interface").RadioGroupContextProps>;
10
12
  }
11
- export { Group as RadioGroup, RadioGroupContext };
13
+ export { RadioGroup, RadioGroupBlock, RadioGroupContext };
12
14
  export default Radio;
13
15
  export type { RadioProps };
@@ -30,6 +30,7 @@ export * from './saveAs';
30
30
  export * from './screenfull';
31
31
  export * from './scrollIntoView';
32
32
  export * from './setDarkTheme';
33
+ export * from './setPrimaryColor';
33
34
  export * from './style';
34
35
  export * from './throttleByRaf';
35
36
  export * from './tinycolor';
@@ -0,0 +1,2 @@
1
+ export default setPrimaryColor;
2
+ export function setPrimaryColor(params: any): () => void;
@@ -1,7 +1,7 @@
1
1
  import { jsx as c, jsxs as ie, Fragment as re } from "react/jsx-runtime";
2
2
  import le from "lodash/merge";
3
3
  import R, { forwardRef as ce, useContext as ae, useRef as W, useState as q, useEffect as pe, useImperativeHandle as me } from "react";
4
- import { a as de } from "../chunk/CQzKdjhX.js";
4
+ import { a as de } from "../chunk/CNcLypMY.js";
5
5
  import { u as fe } from "../chunk/DeV0v__J.js";
6
6
  import { u as ue } from "../chunk/a3hR6zLw.js";
7
7
  import he from "../popover/index.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CQzKdjhX.js";
3
+ import "../chunk/CNcLypMY.js";
4
4
  import "../chunk/BFTV6myl.js";
5
5
  import "../chunk/DeV0v__J.js";
6
6
  import "lodash/isEqualWith";
@@ -20,7 +20,7 @@ import "lodash/snakeCase.js";
20
20
  import "lodash/startCase.js";
21
21
  import "lodash/upperFirst.js";
22
22
  import "../chunk/CUFsOxJ2.js";
23
- import "../chunk/CqtaeJXT.js";
23
+ import "../chunk/9TSjT7x_.js";
24
24
  import "../chunk/C0pRaDCf.js";
25
25
  import "lodash/isString.js";
26
26
  import "../chunk/tamGhTJp.js";
@@ -51,18 +51,15 @@ import "../chunk/CplLA01W.js";
51
51
  import "../affix/index.js";
52
52
  import "../alert/index.js";
53
53
  import "../anchor/Anchor.js";
54
- import "../auto-complete/index.js";
54
+ import { E as tr } from "../chunk/Cwm8LL5p.js";
55
55
  import "../avatar/index.js";
56
56
  import "../back-top/index.js";
57
57
  import "../badge/index.js";
58
58
  import "../breadcrumb/index.js";
59
59
  import "../button/index.js";
60
- import "../calendar/index.js";
61
60
  import "../card/index.js";
62
61
  import "../carousel/index.js";
63
- import "../chunk/CzaoCNQH.js";
64
- import "../chunk/DQrLGkIG.js";
65
- import "../chunk/BGmWsXl0.js";
62
+ import "../chunk/tpmioyz1.js";
66
63
  import "../comment/index.js";
67
64
  import "../copy/index.js";
68
65
  import "../date-picker/index.js";
@@ -78,23 +75,17 @@ import "../input/Input.js";
78
75
  import "../input-tag/InputTag.js";
79
76
  import "../layout/index.js";
80
77
  import "../link/index.js";
81
- import "../list/index.js";
82
- import "../mentions/index.js";
83
- import "../chunk/lf-xRLXx.js";
84
- import "../chunk/ByRETFRI.js";
78
+ import "../chunk/CBgu99gQ.js";
79
+ import "../chunk/BPQXH_5i.js";
85
80
  import "../page-header/index.js";
86
- import "../pagination/Pagination.js";
87
81
  import "../popconfirm/index.js";
88
82
  import "../popover/index.js";
89
83
  import "../portal/index.js";
90
84
  import "../progress/index.js";
91
- import "../color-picker/index.js";
92
85
  import "../loading/index.js";
93
- import "../chunk/OPbfCome.js";
94
86
  import "../rate/index.js";
95
87
  import "../resize-box/index.js";
96
88
  import "../result/index.js";
97
- import "../select/Select.js";
98
89
  import "../skeleton/index.js";
99
90
  import "../slider/index.js";
100
91
  import "../space/index.js";
@@ -104,22 +95,17 @@ import "../statistic/index.js";
104
95
  import "../steps/index.js";
105
96
  import "../suspense-fallback-test/index.js";
106
97
  import "../switch/index.js";
107
- import "../table/index.js";
108
- import "../chunk/DM_DBvmG.js";
98
+ import "../chunk/CjqvxJml.js";
109
99
  import "../tag/index.js";
110
100
  import "../time-picker/index.js";
111
101
  import "../timeline/Timeline.js";
112
102
  import "../tooltip/index.js";
113
- import "../transfer/index.js";
114
- import "../tree/Tree.js";
115
- import "../tree-select/Select.js";
116
103
  import "../trigger/index.js";
117
- import { TypographyEllipsis as xo } from "./index.js";
118
104
  import "../upload/Upload.js";
119
105
  import "../verification-code/VerificationCode.js";
120
106
  import "../watermark/Watermark.js";
121
107
  import "../chunk/CIRG541s.js";
122
108
  import "lodash/isPlainObject.js";
123
109
  export {
124
- xo as default
110
+ tr as default
125
111
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as m, useContext as c } from "react";
3
- import { a as f } from "../chunk/CQzKdjhX.js";
3
+ import { a as f } from "../chunk/CNcLypMY.js";
4
4
  import { p as i } from "../chunk/CUFsOxJ2.js";
5
5
  import l from "./Base.js";
6
6
  function g(a, r) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as f } from "react";
3
- import { a as i } from "../chunk/CQzKdjhX.js";
3
+ import { a as i } from "../chunk/CNcLypMY.js";
4
4
  import { p as l } from "../chunk/CUFsOxJ2.js";
5
5
  function y(o, t) {
6
6
  const { getPrefixCls: r } = f(i), s = r("typography"), { className: a, style: e, children: p } = o, n = l(s, a);
@@ -1,279 +1,12 @@
1
- import { jsxs as N, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as J, useContext as K, useRef as y, useState as O, useMemo as z, useEffect as E, useCallback as Q } from "react";
3
- import { a as U } from "../chunk/CQzKdjhX.js";
4
- import { u as X } from "../chunk/BFTV6myl.js";
5
- import { u as Y } from "../chunk/DeV0v__J.js";
6
- import "lodash/isEqualWith";
7
- import "../chunk/DAAff-FT.js";
8
- import "lodash/isNumber";
9
- import "lodash/merge";
10
- import { isServerRendering as Z } from "../utils/dom.js";
11
- import "../chunk/ZrBrCzQX.js";
12
- import "../chunk/Cc_-i0o_.js";
13
- import "../chunk/Ce1j9KTi.js";
14
- import "lodash/debounce";
15
- import "lodash/camelCase.js";
16
- import "lodash/capitalize.js";
17
- import "lodash/kebabCase.js";
18
- import "lodash/lowerFirst.js";
19
- import "lodash/snakeCase.js";
20
- import "lodash/startCase.js";
21
- import "lodash/upperFirst.js";
22
- import { p } from "../chunk/CUFsOxJ2.js";
23
- import "../chunk/CqtaeJXT.js";
24
- import "../chunk/C0pRaDCf.js";
25
- import "lodash/isString.js";
26
- import "../chunk/tamGhTJp.js";
27
- import "lodash/escapeRegExp";
28
- import "lodash/isArray";
29
- import "lodash/isString";
30
- import "lodash/camelCase";
31
- import "lodash/capitalize";
32
- import "lodash/cloneDeep";
33
- import "lodash/get";
34
- import "lodash/has";
35
- import "lodash/kebabCase";
36
- import "lodash/mergeWith";
37
- import "lodash/set";
38
- import "lodash/setWith";
39
- import "lodash/snakeCase";
40
- import "lodash/startCase";
41
- import "lodash/throttle";
42
- import "lodash/uniq";
43
- import "lodash/upperFirst";
44
- import "../chunk/yl4BU7Sd.js";
45
- import "lodash/isPlainObject";
46
- import "../chunk/BJ9_azwQ.js";
47
- import "../chunk/Bl7BnD1R.js";
48
- import tt from "../utils/throttleByRaf.js";
49
- import "uuid";
50
- import "../chunk/CplLA01W.js";
51
- import "../affix/index.js";
52
- import "../alert/index.js";
53
- import "../anchor/Anchor.js";
54
- import "../auto-complete/index.js";
55
- import "../avatar/index.js";
56
- import "../back-top/index.js";
57
- import "../badge/index.js";
58
- import "../breadcrumb/index.js";
59
- import "../button/index.js";
60
- import "../calendar/index.js";
61
- import "../card/index.js";
62
- import "../carousel/index.js";
63
- import "../chunk/CzaoCNQH.js";
64
- import "../chunk/DQrLGkIG.js";
65
- import "../chunk/BGmWsXl0.js";
66
- import "../comment/index.js";
67
- import "../copy/index.js";
68
- import "../date-picker/index.js";
69
- import "../descriptions/index.js";
70
- import "../divider/index.js";
71
- import "../drawer/Drawer.js";
72
- import "../dropdown/index.js";
73
- import "../form/index.js";
74
- import "../grid/index.js";
75
- import "../icon/index.js";
76
- import "../image/Image.js";
77
- import "../input/Input.js";
78
- import "../input-tag/InputTag.js";
79
- import "../layout/index.js";
80
- import "../link/index.js";
81
- import "../list/index.js";
82
- import "../mentions/index.js";
83
- import "../chunk/lf-xRLXx.js";
84
- import "../chunk/ByRETFRI.js";
85
- import "../page-header/index.js";
86
- import "../pagination/Pagination.js";
87
- import "../popconfirm/index.js";
88
- import "../popover/index.js";
89
- import "../portal/index.js";
90
- import "../progress/index.js";
91
- import "../color-picker/index.js";
92
- import "../loading/index.js";
93
- import "../chunk/OPbfCome.js";
94
- import "../rate/index.js";
95
- import "../resize-box/index.js";
96
- import "../result/index.js";
97
- import "../select/Select.js";
98
- import "../skeleton/index.js";
99
- import "../slider/index.js";
100
- import "../space/index.js";
101
- import "../speech-synthesis/index.js";
102
- import "../spin/index.js";
103
- import "../statistic/index.js";
104
- import "../steps/index.js";
105
- import "../suspense-fallback-test/index.js";
106
- import "../switch/index.js";
107
- import "../table/index.js";
108
- import "../chunk/DM_DBvmG.js";
109
- import "../tag/index.js";
110
- import "../time-picker/index.js";
111
- import "../timeline/Timeline.js";
112
- import rt from "../tooltip/index.js";
113
- import "../transfer/index.js";
114
- import "../tree/Tree.js";
115
- import "../tree-select/Select.js";
116
- import "../trigger/index.js";
117
- import ot from "./Paragraph.js";
118
- import et from "./Text.js";
119
- import it from "./Title.js";
120
- import pt from "./Typography.js";
121
- import "../upload/Upload.js";
122
- import "../verification-code/VerificationCode.js";
123
- import "../watermark/Watermark.js";
124
- import { r as mt } from "../chunk/CIRG541s.js";
125
- import V from "lodash/isPlainObject.js";
126
- const nt = {
127
- rows: 1,
128
- expandable: !0,
129
- defaultExpanded: !1
130
- }, st = (j, at) => {
131
- var M;
132
- const $ = K(U), T = X(
133
- j,
134
- nt,
135
- (M = $.componentConfig) == null ? void 0 : M["Typography.Ellipsis"]
136
- ), {
137
- className: A,
138
- style: L,
139
- rows: n,
140
- disabled: P,
141
- showTooltip: u,
142
- children: s,
143
- expandable: d,
144
- expandRender: R,
145
- onExpand: l,
146
- onEllipsis: a
147
- } = T, { locale: w } = $, S = Z ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), D = y(null), m = y(null), [C, H] = O(""), [_, b] = O(!1), c = y(null), f = y(null), [r, W] = Y(!1, {
148
- defaultValue: T.defaultExpanded,
149
- value: T.expanded
150
- }), [i, k] = O(!1), x = z(() => V(d) ? !d.single && n === 1 : n === 1, [n, d]), h = z(() => V(u) ? {
151
- tooltip: !0,
152
- tooltipProps: u
153
- } : {
154
- tooltip: !!u,
155
- tooltipProps: u
156
- }, [u]);
157
- E(() => {
158
- if (m.current) {
159
- const e = m.current.textContent;
160
- e && H(e);
161
- }
162
- }, [s, m]);
163
- const t = $.getPrefixCls("ellipsis"), q = () => R ? R(r) : /* @__PURE__ */ o("span", { className: `${t}-action-text`, children: r ? w.Typography.fold : w.Typography.unfold }), g = () => d && i ? /* @__PURE__ */ o(
164
- "div",
165
- {
166
- className: p(`${t}-action`, {
167
- [`${t}-action-collapsed`]: !r
168
- }),
169
- onClick: (e) => {
170
- r ? (W(!1), l == null || l(!1, e)) : (W(!0), b(!1), l == null || l(!0, e));
171
- },
172
- children: q()
173
- }
174
- ) : null, F = Q(
175
- tt(() => {
176
- f.current && c.current && ((x ? f.current.offsetWidth > c.current.offsetWidth : f.current.offsetHeight > c.current.offsetHeight) ? i === !1 && (k(!0), a == null || a(!0)) : i === !0 && (k(!1), a == null || a(!1)));
177
- }),
178
- [i, x]
179
- );
180
- E(() => {
181
- const e = mt(
182
- [c.current, f.current],
183
- F
184
- );
185
- return () => {
186
- e();
187
- };
188
- }, [c.current, f.current]);
189
- const G = () => P ? null : /* @__PURE__ */ o(
190
- "div",
191
- {
192
- className: x ? p(`${t}-content-mirror`, `${t}-single`) : p(
193
- `${t}-content-mirror`,
194
- `${t}-multiple`,
195
- `${t}-collapsed`
196
- ),
197
- style: {
198
- WebkitBoxOrient: "vertical",
199
- MozBoxOrient: "vertical",
200
- WebkitLineClamp: n
201
- },
202
- ref: c,
203
- children: /* @__PURE__ */ o("span", { ref: f, className: `${t}-text`, children: s })
204
- }
205
- ), B = () => x ? /* @__PURE__ */ o("div", { className: p(`${t}-content`, `${t}-single`), children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : S ? /* @__PURE__ */ N(
206
- "div",
207
- {
208
- className: p(`${t}-content`, `${t}-multiple`),
209
- title: !h.tooltip && i && !r ? C : void 0,
210
- children: [
211
- !r && g(),
212
- /* @__PURE__ */ o(
213
- "span",
214
- {
215
- ref: m,
216
- className: p(`${t}-text`, {
217
- [`${t}-collapsed`]: !r
218
- }),
219
- style: {
220
- WebkitBoxOrient: "vertical",
221
- MozBoxOrient: "vertical",
222
- WebkitLineClamp: n
223
- },
224
- children: s
225
- }
226
- ),
227
- r && g()
228
- ]
229
- }
230
- ) : /* @__PURE__ */ N(
231
- "div",
232
- {
233
- className: p(`${t}-content`, `${t}-multiple`, {
234
- [`${t}-collapsed`]: !r
235
- }),
236
- style: {
237
- WebkitBoxOrient: "vertical",
238
- MozBoxOrient: "vertical",
239
- WebkitLineClamp: n
240
- },
241
- title: !h.tooltip && i && !r ? C : void 0,
242
- children: [
243
- !r && g(),
244
- /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }),
245
- r && g()
246
- ]
247
- }
248
- ), I = () => P ? /* @__PURE__ */ o("div", { className: `${t}-content`, children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : h.tooltip ? /* @__PURE__ */ o(
249
- rt,
250
- {
251
- content: C,
252
- popupVisible: _,
253
- disabled: !i || r,
254
- triggerProps: {
255
- mouseEnterDelay: 100
256
- },
257
- onVisibleChange: (e) => {
258
- e ? i && !r && b(!0) : b(!1);
259
- },
260
- ...h.tooltipProps,
261
- children: B()
262
- }
263
- ) : B();
264
- return /* @__PURE__ */ N("div", { ref: D, className: p(t, A), style: L, children: [
265
- G(),
266
- I()
267
- ] });
268
- }, lt = J(st), v = pt;
269
- v.Title = it;
270
- v.Text = et;
271
- v.Paragraph = ot;
272
- v.Ellipsis = lt;
1
+ import { E as o, w as t } from "../chunk/Cwm8LL5p.js";
2
+ import { default as f } from "./Paragraph.js";
3
+ import { default as l } from "./Text.js";
4
+ import { default as T } from "./Title.js";
5
+ import "./Typography.js";
273
6
  export {
274
- lt as TypographyEllipsis,
275
- ot as TypographyParagraph,
276
- et as TypographyText,
277
- it as TypographyTitle,
278
- v as default
7
+ o as TypographyEllipsis,
8
+ f as TypographyParagraph,
9
+ l as TypographyText,
10
+ T as TypographyTitle,
11
+ t as default
279
12
  };
@@ -3,7 +3,7 @@ import y from "@unicom-cloud/icons/IconUiPlus";
3
3
  import A from "@unicom-cloud/icons/IconUiUpload";
4
4
  import C, { forwardRef as G, useContext as K, useState as U, useEffect as L } from "react";
5
5
  import O from "../button/index.js";
6
- import { a as R } from "../chunk/CQzKdjhX.js";
6
+ import { a as R } from "../chunk/CNcLypMY.js";
7
7
  import { u as B } from "../chunk/XTEsYGuF.js";
8
8
  import { p as I } from "../chunk/CUFsOxJ2.js";
9
9
  import { loopDirectory as H, getFiles as S } from "./util.js";
package/upload/Upload.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as C, Fragment as T, jsx as t } from "react/jsx-runtime";
2
2
  import w from "lodash/isFunction";
3
3
  import le from "lodash/isNumber";
4
4
  import { useContext as D, forwardRef as j, useState as F, useEffect as R, isValidElement as re, useRef as K, useImperativeHandle as oe } from "react";
5
- import { a as V, I as ae } from "../chunk/CQzKdjhX.js";
5
+ import { a as V, I as ae } from "../chunk/CNcLypMY.js";
6
6
  import { u as se } from "../chunk/BFTV6myl.js";
7
7
  import { p as z } from "../chunk/CUFsOxJ2.js";
8
8
  import { o as ce } from "../chunk/BKKEev13.js";
@@ -3,19 +3,18 @@ import { j as M } from "../chunk/C0pRaDCf.js";
3
3
  import $ from "lodash/isFunction";
4
4
  import Q from "lodash/isNumber";
5
5
  import W from "lodash/isPlainObject";
6
- import X, { useContext as Y, useRef as Z, useState as _, useImperativeHandle as tt } from "react";
7
- import { a as et } from "../chunk/CQzKdjhX.js";
8
- import { P as it } from "../chunk/BpYX5PN4.js";
9
- import nt from "./TriggerNode.js";
6
+ import X, { useRef as Y, useState as Z, useImperativeHandle as _ } from "react";
7
+ import { P as tt } from "../chunk/BpYX5PN4.js";
8
+ import et from "./TriggerNode.js";
10
9
  import { STATUS as c } from "./interface.js";
11
- import ot from "./request.js";
12
- import { isAcceptFile as st } from "./util.js";
13
- function rt(i, A) {
14
- const { toAuthor: at } = Y(et), R = Z(null), [b, U] = _({ uploadRequests: {} });
15
- function E(t) {
16
- x(t);
17
- }
10
+ import it from "./request.js";
11
+ import { isAcceptFile as nt } from "./util.js";
12
+ function ot(i, E) {
13
+ const R = Y(null), [b, x] = Z({ uploadRequests: {} });
18
14
  function O(t) {
15
+ S(t);
16
+ }
17
+ function A(t) {
19
18
  var n;
20
19
  const e = b.uploadRequests[t.uid];
21
20
  e && ((n = e.abort) == null || n.call(e), l({
@@ -24,7 +23,7 @@ function rt(i, A) {
24
23
  }), p(t.uid));
25
24
  }
26
25
  function z(t) {
27
- x({
26
+ S({
28
27
  ...t,
29
28
  percent: 0,
30
29
  status: c.uploading
@@ -32,14 +31,14 @@ function rt(i, A) {
32
31
  }
33
32
  function p(t) {
34
33
  const e = { ...b.uploadRequests };
35
- delete e[t], U({
34
+ delete e[t], x({
36
35
  uploadRequests: e
37
36
  });
38
37
  }
39
- tt(A, () => ({
38
+ _(E, () => ({
40
39
  // 提供 ref 调用
41
- upload: E,
42
- abort: O,
40
+ upload: O,
41
+ abort: A,
43
42
  reupload: z,
44
43
  // 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
45
44
  delete: p
@@ -55,7 +54,7 @@ function rt(i, A) {
55
54
  const e = "uid" in t ? "uid" : "name";
56
55
  return i.fileList.find((s) => s[e] === t[e]);
57
56
  }
58
- async function x(t) {
57
+ async function S(t) {
59
58
  const {
60
59
  action: e,
61
60
  headers: n,
@@ -85,15 +84,15 @@ function rt(i, A) {
85
84
  withCredentials: h
86
85
  };
87
86
  l(t);
88
- let P;
89
- r ? P = await r(I) : e && (P = ot({ ...I, action: e, method: m })), U({
87
+ let w;
88
+ r ? w = await r(I) : e && (w = it({ ...I, action: e, method: m })), x({
90
89
  uploadRequests: {
91
90
  ...b.uploadRequests,
92
- [t.uid]: P
91
+ [t.uid]: w
93
92
  }
94
93
  });
95
94
  }
96
- function w(t) {
95
+ function T(t) {
97
96
  const { limit: e, fileList: n, onExceedLimit: s, autoUpload: f } = i;
98
97
  if (Q(e) && e < n.length + t.length)
99
98
  return s == null ? void 0 : s(t, n);
@@ -106,14 +105,14 @@ function rt(i, A) {
106
105
  name: r.name
107
106
  };
108
107
  l(u), a.push(u), l(u, a), f && setTimeout(() => {
109
- x({
108
+ S({
110
109
  ...u,
111
110
  status: c.uploading
112
111
  });
113
112
  }, 0);
114
113
  };
115
114
  t.forEach((r, m) => {
116
- st(r, i.accept) && ($(i.beforeUpload) ? Promise.resolve(i.beforeUpload(r, t)).then((a) => {
115
+ nt(r, i.accept) && ($(i.beforeUpload) ? Promise.resolve(i.beforeUpload(r, t)).then((a) => {
117
116
  if (a !== !1) {
118
117
  const u = M(a) ? a : r;
119
118
  h(u, m);
@@ -125,12 +124,12 @@ function rt(i, A) {
125
124
  }
126
125
  const {
127
126
  accept: d,
128
- multiple: T,
129
- children: S,
130
- prefixCls: k,
131
- tip: C,
132
- disabled: L,
133
- drag: v,
127
+ multiple: k,
128
+ children: P,
129
+ prefixCls: L,
130
+ tip: U,
131
+ disabled: v,
132
+ drag: C,
134
133
  listType: D,
135
134
  hide: H,
136
135
  directory: j,
@@ -153,11 +152,11 @@ function rt(i, A) {
153
152
  },
154
153
  type: "file",
155
154
  accept: W(d) ? d == null ? void 0 : d.type : d,
156
- multiple: T,
155
+ multiple: k,
157
156
  ...j ? { webkitdirectory: "true" } : {},
158
157
  onChange: (t) => {
159
158
  const e = t.target.files;
160
- e && (w([].slice.call(e)), R.current.value = "");
159
+ e && (T([].slice.call(e)), R.current.value = "");
161
160
  },
162
161
  onClick: (t) => {
163
162
  t.stopPropagation();
@@ -166,41 +165,41 @@ function rt(i, A) {
166
165
  "trigger-input"
167
166
  ),
168
167
  /* @__PURE__ */ y(
169
- it,
168
+ tt,
170
169
  {
171
170
  in: !H,
172
171
  timeout: 100,
173
172
  unmountOnExit: !0,
174
173
  classNames: "fadeIn",
175
174
  children: /* @__PURE__ */ y(
176
- nt,
175
+ et,
177
176
  {
178
177
  directory: j,
179
- tip: C,
180
- multiple: T,
178
+ tip: U,
179
+ multiple: k,
181
180
  accept: d,
182
- disabled: L,
183
- drag: v,
181
+ disabled: v,
182
+ drag: C,
184
183
  listType: D,
185
184
  onDrop: V,
186
185
  onDragOver: B,
187
186
  onDragLeave: G,
188
- onDragFiles: w,
187
+ onDragFiles: T,
189
188
  onClick: () => {
190
189
  var t, e;
191
- !L && ((e = (t = R.current) == null ? void 0 : t.click) == null || e.call(t));
190
+ !v && ((e = (t = R.current) == null ? void 0 : t.click) == null || e.call(t));
192
191
  },
193
- prefixCls: k,
194
- children: $(S) ? S({ fileList: i.fileList }) : S
192
+ prefixCls: L,
193
+ children: $(P) ? P({ fileList: i.fileList }) : P
195
194
  }
196
195
  )
197
196
  },
198
197
  "trigger-node"
199
198
  ),
200
- C && D !== "picture-card" && !v ? /* @__PURE__ */ y("div", { className: `${k}-trigger-tip`, children: C }, "trigger-tip") : null
199
+ U && D !== "picture-card" && !C ? /* @__PURE__ */ y("div", { className: `${L}-trigger-tip`, children: U }, "trigger-tip") : null
201
200
  ] });
202
201
  }
203
- const qt = X.forwardRef(rt);
202
+ const Ft = X.forwardRef(ot);
204
203
  export {
205
- qt as default
204
+ Ft as default
206
205
  };
package/utils/color.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as a } from "../chunk/CqtaeJXT.js";
1
+ import { R as a } from "../chunk/9TSjT7x_.js";
2
2
  export {
3
3
  a as color
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { d, d as r } from "../chunk/CQzKdjhX.js";
2
+ import { d, d as r } from "../chunk/CNcLypMY.js";
3
3
  export {
4
4
  d as ContextHolderElement,
5
5
  r as default