@unicom-cloud/ui 0.8.77 → 0.8.79

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 (346) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/style.css +1 -1
  261. package/switch/index.js +32 -33
  262. package/table/Table.js +5 -5
  263. package/table/index.js +1 -1
  264. package/tabs/Tab.js +4 -4
  265. package/tabs/TabContent.js +3 -3
  266. package/tabs/TabPane.js +11 -11
  267. package/tabs/index.js +2 -2
  268. package/tabs/util.js +1 -1
  269. package/tag/index.js +16 -16
  270. package/time-picker/Picker.js +50 -50
  271. package/time-picker/TimeColumn.js +8 -8
  272. package/time-picker/TimePicker.js +32 -32
  273. package/time-picker/util.js +1 -1
  274. package/timeline/Item.js +15 -15
  275. package/timeline/Timeline.js +24 -24
  276. package/tooltip/index.js +23 -23
  277. package/transfer/Item.js +4 -4
  278. package/transfer/List.js +4 -4
  279. package/transfer/index.js +4 -4
  280. package/tree/Animation.js +3 -3
  281. package/tree/Node.js +3 -3
  282. package/tree/NodeList.js +2 -2
  283. package/tree/Tree.js +4 -4
  284. package/tree/index.js +1 -1
  285. package/tree-select/List.js +2 -2
  286. package/tree-select/Select.js +8 -9
  287. package/tree-select/index.js +2 -2
  288. package/trigger/getPopupStyle.js +18 -19
  289. package/trigger/index.js +32 -33
  290. package/types/button/index.d.ts +2 -2
  291. package/types/color-picker/colors.d.ts +1 -1
  292. package/types/date-picker/util.d.ts +1 -1
  293. package/types/icon/index.d.ts +3 -1
  294. package/types/index.d.ts +1 -1
  295. package/types/menu/context.d.ts +1 -1
  296. package/typography/Base.js +33 -35
  297. package/typography/EditContent.js +16 -16
  298. package/typography/Ellipsis.js +24 -26
  299. package/typography/Operations.js +1 -1
  300. package/typography/Paragraph.js +8 -8
  301. package/typography/Typography.js +7 -7
  302. package/typography/index.js +1 -1
  303. package/upload/TriggerNode.js +8 -8
  304. package/upload/Upload.js +64 -65
  305. package/upload/Uploader.js +12 -12
  306. package/upload/request.js +13 -12
  307. package/upload/request_.js +5 -6
  308. package/utils/PqbCSSTransition.js +1 -1
  309. package/utils/caseName.js +4 -3
  310. package/utils/className.js +4 -3
  311. package/utils/constant.js +3 -3
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/copy.js +5 -4
  314. package/utils/fileToURL.js +4 -3
  315. package/utils/index.js +261 -298
  316. package/utils/is.js +78 -115
  317. package/utils/keyboardCode.js +4 -26
  318. package/utils/math.js +10 -32
  319. package/utils/react19Adapter.js +1 -1
  320. package/utils/reactDOM.js +1 -1
  321. package/utils/saveAs.js +4 -3
  322. package/utils/screenfull.js +4 -3
  323. package/utils/scrollIntoView.js +1 -1
  324. package/utils/setDarkTheme.js +1 -1
  325. package/utils/tree.js +7 -83
  326. package/utils/tween.js +1 -1
  327. package/utils/validate.js +1 -1
  328. package/verification-code/VerificationCode.js +25 -25
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +1 -1
  331. package/watermark/Watermark.js +8 -8
  332. package/chunk/ATwvJ8j2.js +0 -6
  333. package/chunk/BFmckYou.js +0 -25
  334. package/chunk/Bl7BnD1R.js +0 -119
  335. package/chunk/Bmvhjhzq.js +0 -24
  336. package/chunk/BrOW642m.js +0 -130
  337. package/chunk/C0pRaDCf.js +0 -96
  338. package/chunk/CBzE-PUr.js +0 -23
  339. package/chunk/CUFsOxJ2.js +0 -10
  340. package/chunk/Ce1j9KTi.js +0 -6
  341. package/chunk/D0Dlbc2g.js +0 -41
  342. package/chunk/DRTWRsgI.js +0 -34
  343. package/chunk/DeV0v__J.js +0 -20
  344. package/chunk/DohlrJ4S.js +0 -50
  345. package/chunk/XTEsYGuF.js +0 -17
  346. package/chunk/yl4BU7Sd.js +0 -1068
@@ -2,16 +2,15 @@ import { jsxs as K, Fragment as L, jsx as c } from "react/jsx-runtime";
2
2
  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
- import { u as oe } from "../chunk/XTEsYGuF.js";
6
- import { I as ne } from "../chunk/CNcLypMY.js";
7
- import { p as k } from "../chunk/CUFsOxJ2.js";
5
+ import { u as oe } from "../chunk/BYdIoY50.js";
6
+ import { I as ne } from "../chunk/CQvM33Vg.js";
7
+ import k from "@unicom-cloud/utils/class-name";
8
8
  import { f as re } from "../chunk/CftuXmo_.js";
9
- import "../chunk/DAAff-FT.js";
9
+ import "../chunk/ClM74To2.js";
10
10
  import { o as ie } from "../chunk/BKKEev13.js";
11
11
  import { r as ae } from "../chunk/CIRG541s.js";
12
12
  import se from "./useComposition.js";
13
- import "../chunk/C0pRaDCf.js";
14
- import h from "lodash/isPlainObject.js";
13
+ import { isPlainObject as h } from "@unicom-cloud/utils/is";
15
14
  const le = 2, ue = (o) => {
16
15
  if (!o)
17
16
  return {};
@@ -47,12 +46,12 @@ const le = 2, ue = (o) => {
47
46
  value: v,
48
47
  autoFitWidth: n,
49
48
  onClear: x,
50
- readOnly: P,
49
+ readOnly: N,
51
50
  onChange: T,
52
51
  onKeyDown: j,
53
52
  onPressEnter: F,
54
53
  maxLength: m,
55
- clearIcon: N,
54
+ clearIcon: P,
56
55
  ...i
57
56
  } = o, V = ie(i, [
58
57
  "error",
@@ -98,7 +97,7 @@ const le = 2, ue = (o) => {
98
97
  ), w = {
99
98
  "aria-invalid": o.status === "error" || void 0,
100
99
  ...V,
101
- readOnly: P,
100
+ readOnly: N,
102
101
  maxLength: B,
103
102
  disabled: l,
104
103
  placeholder: d,
@@ -167,7 +166,7 @@ const le = 2, ue = (o) => {
167
166
  }, [u.current]), /* @__PURE__ */ K(L, { children: [
168
167
  y ? /* @__PURE__ */ K(L, { children: [
169
168
  /* @__PURE__ */ c("input", { ref: r, ...w }),
170
- !P && !l && y && v ? N !== void 0 ? /* @__PURE__ */ c(
169
+ !N && !l && y && v ? P !== void 0 ? /* @__PURE__ */ c(
171
170
  "span",
172
171
  {
173
172
  tabIndex: 0,
@@ -179,7 +178,7 @@ const le = 2, ue = (o) => {
179
178
  onMouseDown: (e) => {
180
179
  e.preventDefault();
181
180
  },
182
- children: N
181
+ children: P
183
182
  }
184
183
  ) : /* @__PURE__ */ c(
185
184
  ne,
package/input/Password.js CHANGED
@@ -2,10 +2,10 @@ 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/CNcLypMY.js";
6
- import "../chunk/XTEsYGuF.js";
7
- import "../chunk/DeV0v__J.js";
8
- import "../chunk/CUFsOxJ2.js";
5
+ import "../chunk/CQvM33Vg.js";
6
+ import "../chunk/BYdIoY50.js";
7
+ import "../chunk/CXPOj2uy.js";
8
+ import "@unicom-cloud/utils/class-name";
9
9
  import "../chunk/BKKEev13.js";
10
10
  import { InputPassword as u } from "./Input.js";
11
11
  export {
package/input/Search.js CHANGED
@@ -4,9 +4,9 @@ import "@unicom-cloud/icons/IconUiSearch";
4
4
  import "lodash/isPlainObject";
5
5
  import "react";
6
6
  import "../button/index.js";
7
- import "../chunk/CNcLypMY.js";
8
- import "../chunk/DeV0v__J.js";
9
- import "../chunk/CUFsOxJ2.js";
7
+ import "../chunk/CQvM33Vg.js";
8
+ import "../chunk/CXPOj2uy.js";
9
+ import "@unicom-cloud/utils/class-name";
10
10
  import "../chunk/BKKEev13.js";
11
11
  import { InputSearch as h } from "./Input.js";
12
12
  export {
package/input/Textarea.js CHANGED
@@ -1,17 +1,16 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiClose";
3
3
  import "react";
4
- import "../chunk/CNcLypMY.js";
4
+ import "../chunk/CQvM33Vg.js";
5
5
  import "../chunk/B2yFlXke.js";
6
- import "../chunk/DeV0v__J.js";
7
- import "../chunk/CUFsOxJ2.js";
8
- import "../chunk/DAAff-FT.js";
6
+ import "../chunk/CXPOj2uy.js";
7
+ import "@unicom-cloud/utils/class-name";
8
+ import "../chunk/ClM74To2.js";
9
9
  import "../chunk/BKKEev13.js";
10
- import { InputTextArea as A } from "./Input.js";
10
+ import { InputTextArea as s } from "./Input.js";
11
11
  import "./autoSizeTextAreaHeight.js";
12
12
  import "./useComposition.js";
13
- import "../chunk/C0pRaDCf.js";
14
- import "lodash/isPlainObject.js";
13
+ import "@unicom-cloud/utils/is";
15
14
  export {
16
- A as default
15
+ s as default
17
16
  };
@@ -1,5 +1,5 @@
1
1
  import { useRef as d, useState as k } from "react";
2
- import { e as y } from "../chunk/BrOW642m.js";
2
+ import { Enter as y } from "@unicom-cloud/utils/constant/keyboardCode";
3
3
  function S({
4
4
  value: a,
5
5
  maxLength: v,
@@ -7,9 +7,9 @@ function S({
7
7
  onKeyDown: u,
8
8
  onPressEnter: f,
9
9
  beforeTriggerValueChangeCallback: m,
10
- normalizeHandler: p
10
+ normalizeHandler: r
11
11
  }) {
12
- const c = d(!1), [e, r] = k(""), o = (t, i) => {
12
+ const c = d(!1), [e, p] = k(""), o = (t, i) => {
13
13
  m && m(t), // Avoid triggering onChange repeatedly for the same value
14
14
  // Compositionend is earlier than onchange in Firefox, different with chrome
15
15
  t !== a && (v === void 0 || t.length <= v) && (s == null || s(t, i));
@@ -18,17 +18,17 @@ function S({
18
18
  compositionValue: e,
19
19
  triggerValueChangeCallback: o,
20
20
  compositionHandler: (t) => {
21
- c.current = t.type !== "compositionend", c.current || (r(void 0), o(t.target.value, t));
21
+ c.current = t.type !== "compositionend", c.current || (p(void 0), o(t.target.value, t));
22
22
  },
23
23
  valueChangeHandler: (t) => {
24
24
  const i = t.target.value;
25
- c.current ? (c.current = !1, r(i)) : (e && r(void 0), o(i, t));
25
+ c.current ? (c.current = !1, p(i)) : (e && p(void 0), o(i, t));
26
26
  },
27
27
  keyDownHandler: (t) => {
28
28
  const i = t.key;
29
29
  if (!c.current && (u == null || u(t), i === y.key)) {
30
30
  f == null || f(t);
31
- const l = p == null ? void 0 : p("onPressEnter");
31
+ const l = r == null ? void 0 : r("onPressEnter");
32
32
  l && o(l(t.target.value), t);
33
33
  }
34
34
  }
@@ -5,11 +5,11 @@ import "@unicom-cloud/icons/IconUiPlus";
5
5
  import "@unicom-cloud/icons/IconUiUp";
6
6
  import "lodash/isNumber";
7
7
  import "react";
8
- import "../chunk/CNcLypMY.js";
8
+ import "../chunk/CQvM33Vg.js";
9
9
  import "../chunk/BFTV6myl.js";
10
10
  import { InputNumber as I } from "../input/Input.js";
11
- import "../chunk/CUFsOxJ2.js";
12
- import "../chunk/BrOW642m.js";
11
+ import "@unicom-cloud/utils/class-name";
12
+ import "@unicom-cloud/utils/constant/keyboardCode";
13
13
  import "../chunk/BKKEev13.js";
14
14
  import "./decimal.js";
15
15
  import "./useSelectionRange.js";
@@ -1,56 +1,55 @@
1
- import { jsx as c, jsxs as _, Fragment as Be } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as _, Fragment as Ue } from "react/jsx-runtime";
2
2
  import Ge from "@unicom-cloud/icons/IconUiClose";
3
3
  import { b as Ke } from "../chunk/BJ9_azwQ.js";
4
- import $e from "lodash/isArray";
4
+ import Te 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/CNcLypMY.js";
6
+ import { a as Ze, I as et } from "../chunk/CQvM33Vg.js";
7
7
  import tt from "../draggable/index.js";
8
8
  import { u as ot } from "../chunk/BFTV6myl.js";
9
- import { u as ye } from "../chunk/DeV0v__J.js";
9
+ import { u as be } from "../chunk/CXPOj2uy.js";
10
10
  import at from "../input/InputElement.js";
11
11
  import rt from "../overflow-ellipsis/index.js";
12
- import nt from "../popover/index.js";
13
- import st from "../tag/index.js";
14
- import { p as A } from "../chunk/CUFsOxJ2.js";
12
+ import st from "../popover/index.js";
13
+ import nt from "../tag/index.js";
14
+ import A from "@unicom-cloud/utils/class-name";
15
15
  import { f as lt } from "../chunk/CftuXmo_.js";
16
- import { g as it } from "../chunk/Dh7Osrvr.js";
17
- import "../chunk/DAAff-FT.js";
18
- import { t as ct } from "../chunk/BrOW642m.js";
16
+ import { g as ct } from "../chunk/Dh7Osrvr.js";
17
+ import "../chunk/ClM74To2.js";
18
+ import { Backspace as it } from "@unicom-cloud/utils/constant/keyboardCode";
19
19
  import { o as ut } from "../chunk/BKKEev13.js";
20
- import { P as Ie } from "../chunk/BpYX5PN4.js";
21
- import "../chunk/C0pRaDCf.js";
22
- import Pe from "lodash/isPlainObject.js";
23
- const X = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, $ = (s) => s == null, M = (s) => {
24
- s.target.tagName !== "INPUT" && s.preventDefault();
25
- }, Ne = (s) => $e(s) ? s.map((i) => Pe(i) ? {
26
- ...i,
27
- label: "label" in i ? i.label : i.value,
28
- value: i.value,
29
- closable: i.closable
20
+ import { P as ye } from "../chunk/NPajzdOv.js";
21
+ import { isPlainObject as Pe } from "@unicom-cloud/utils/is";
22
+ const X = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, T = (n) => n == null, M = (n) => {
23
+ n.target.tagName !== "INPUT" && n.preventDefault();
24
+ }, Ie = (n) => Te(n) ? n.map((c) => Pe(c) ? {
25
+ ...c,
26
+ label: "label" in c ? c.label : c.value,
27
+ value: c.value,
28
+ closable: c.closable
30
29
  } : {
31
- label: i,
32
- value: i
33
- }) : [], dt = (s) => {
34
- const i = C(0), d = C(s.length);
30
+ label: c,
31
+ value: c
32
+ }) : [], dt = (n) => {
33
+ const c = C(0), d = C(n.length);
35
34
  return Qe(() => {
36
- i.current = s.length === 0 && d.current > 0 ? X : 0, d.current = s.length;
37
- }, [s]), i;
38
- }, Te = ({
39
- prefixCls: s,
40
- children: i,
35
+ c.current = n.length === 0 && d.current > 0 ? X : 0, d.current = n.length;
36
+ }, [n]), c;
37
+ }, $e = ({
38
+ prefixCls: n,
39
+ children: c,
41
40
  animation: d
42
- }) => /* @__PURE__ */ c("div", { className: `${s}-inner`, children: d ? /* @__PURE__ */ c(Ke, { component: null, children: i }) : i }), mt = {
41
+ }) => /* @__PURE__ */ i("div", { className: `${n}-inner`, children: d ? /* @__PURE__ */ i(Ke, { component: null, children: c }) : c }), mt = {
43
42
  animation: !0,
44
- validate: (s, i) => s && i.every((d) => d.value !== s)
43
+ validate: (n, c) => n && c.every((d) => d.value !== n)
45
44
  };
46
- function gt(s, i) {
45
+ function gt(n, c) {
47
46
  const {
48
47
  getPrefixCls: d,
49
48
  size: Ve,
50
49
  componentConfig: E,
51
50
  rtl: Y
52
51
  } = qe(Ze), f = ot(
53
- s,
52
+ n,
54
53
  mt,
55
54
  E == null ? void 0 : E.InputTag
56
55
  ), {
@@ -67,7 +66,7 @@ function gt(s, i) {
67
66
  animation: J,
68
67
  saveOnBlur: ke,
69
68
  dragToSort: xe,
70
- icon: b,
69
+ icon: N,
71
70
  prefix: Q,
72
71
  suffix: Z,
73
72
  addBefore: ee,
@@ -85,40 +84,40 @@ function gt(s, i) {
85
84
  onBlur: H,
86
85
  onPressEnter: W,
87
86
  onRemove: L,
88
- onClear: U,
87
+ onClear: B,
89
88
  onClick: re,
90
89
  ...ze
91
- } = f, o = d("input-tag"), V = "size" in f ? f.size : Ve, y = typeof m == "object" ? m.count : m, I = C(), B = C(null), G = C(), [w, ne] = Xe(!1), [a, Oe] = ye([], {
92
- defaultValue: "defaultValue" in f ? Ne(f.defaultValue) : void 0,
93
- value: "value" in f ? Ne(f.value) : void 0
94
- }), [N, S] = ye("", {
90
+ } = f, o = d("input-tag"), V = "size" in f ? f.size : Ve, b = typeof m == "object" ? m.count : m, y = C(), U = C(null), G = C(), [w, se] = Xe(!1), [a, Oe] = be([], {
91
+ defaultValue: "defaultValue" in f ? Ie(f.defaultValue) : void 0,
92
+ value: "value" in f ? Ie(f.value) : void 0
93
+ }), [I, S] = be("", {
95
94
  value: f.inputValue
96
95
  }), Fe = dt(a), je = !!(xe && !g && !h);
97
- Ye(i, () => {
96
+ Ye(c, () => {
98
97
  var e, t;
99
98
  return {
100
- blur: (e = I.current) == null ? void 0 : e.blur,
101
- focus: (t = I.current) == null ? void 0 : t.focus,
99
+ blur: (e = y.current) == null ? void 0 : e.blur,
100
+ focus: (t = y.current) == null ? void 0 : t.focus,
102
101
  getRootDOMNode: () => G.current
103
102
  };
104
103
  }, []);
105
- const T = (e, t) => {
104
+ const $ = (e, t) => {
106
105
  h || g || ("value" in f || Oe(e), F == null || F(Me ? e : e.map((r) => r == null ? void 0 : r.value), t));
107
- }, se = (e, t, r) => {
108
- L == null || L(e, t, r), T(
106
+ }, ne = (e, t, r) => {
107
+ L == null || L(e, t, r), $(
109
108
  [...a.slice(0, t), ...a.slice(t + 1)],
110
109
  "remove"
111
110
  );
112
- }, He = it(
111
+ }, He = ct(
113
112
  /* @__PURE__ */ new Map([
114
113
  [
115
- ct.key,
114
+ it.key,
116
115
  (e) => {
117
116
  if (!e.target.value && a.length)
118
117
  for (let t = a.length - 1; t >= 0; t--) {
119
118
  const r = a[t];
120
119
  if (r.closable !== !1) {
121
- se(r, t, e);
120
+ ne(r, t, e);
122
121
  return;
123
122
  }
124
123
  }
@@ -127,31 +126,31 @@ function gt(s, i) {
127
126
  ])
128
127
  ), le = async () => {
129
128
  try {
130
- const e = typeof P == "function" ? await P(N, a) : !0;
131
- e && (T(
129
+ const e = typeof P == "function" ? await P(I, a) : !0;
130
+ e && ($(
132
131
  a.concat({
133
- value: e === !0 ? N : e,
134
- label: N
132
+ value: e === !0 ? I : e,
133
+ label: I
135
134
  }),
136
135
  "add"
137
136
  ), S(""));
138
137
  } catch (e) {
139
138
  console.error(e);
140
139
  }
141
- }, ie = (e, t, r = !1) => {
142
- const n = e.value;
140
+ }, ce = (e, t, r = !1) => {
141
+ const s = e.value;
143
142
  let l = e.label, u = !g && !h && e.closable !== !1;
144
- const p = typeof n == "object" ? t : n, v = (Ue) => {
145
- se(e, t, Ue);
143
+ const p = typeof s == "object" ? t : s, v = (Be) => {
144
+ ne(e, t, Be);
146
145
  };
147
- if (!r && typeof y == "number" && t >= y)
148
- return t === a.length - 1 ? (l = ce(a.length - Number(y)), u = !1, { valueKey: p, dom: l }) : { valueKey: p, dom: null };
146
+ if (!r && typeof b == "number" && t >= b)
147
+ return t === a.length - 1 ? (l = ie(a.length - Number(b)), u = !1, { valueKey: p, dom: l }) : { valueKey: p, dom: null };
149
148
  if (oe)
150
149
  return {
151
150
  valueKey: p,
152
151
  dom: oe(
153
152
  {
154
- value: n,
153
+ value: s,
155
154
  label: l,
156
155
  closable: u,
157
156
  onClose: v
@@ -165,7 +164,7 @@ function gt(s, i) {
165
164
  onClose: v,
166
165
  visible: !0,
167
166
  children: lt(l),
168
- closeIcon: b == null ? void 0 : b.removeIcon,
167
+ closeIcon: N == null ? void 0 : N.removeIcon,
169
168
  __closeIconProps: {
170
169
  onMouseDown: M
171
170
  },
@@ -174,20 +173,20 @@ function gt(s, i) {
174
173
  }),
175
174
  title: typeof l == "string" ? l : void 0
176
175
  };
177
- return { valueKey: p, dom: /* @__PURE__ */ c(st, { ...Le }, `${p}-tag`) };
176
+ return { valueKey: p, dom: /* @__PURE__ */ i(nt, { ...Le }, `${p}-tag`) };
178
177
  };
179
- function ce(e) {
178
+ function ie(e) {
180
179
  const t = typeof m == "object" && m.render ? m.render : () => /* @__PURE__ */ _("span", { className: `${o}-tag-ellipsis`, children: [
181
180
  "+",
182
181
  e
183
182
  ] }), r = Pe(m) && m.popoverProps;
184
- return /* @__PURE__ */ c(
185
- nt,
183
+ return /* @__PURE__ */ i(
184
+ st,
186
185
  {
187
- content: /* @__PURE__ */ c(Be, { children: a.map((n, l) => ({ tagValue: n, tagIndex: l })).slice(-e).map(
188
- ({ tagValue: n, tagIndex: l }) => {
186
+ content: /* @__PURE__ */ i(Ue, { children: a.map((s, l) => ({ tagValue: s, tagIndex: l })).slice(-e).map(
187
+ ({ tagValue: s, tagIndex: l }) => {
189
188
  var u;
190
- return (u = ie(n, l, !0)) == null ? void 0 : u.dom;
189
+ return (u = ce(s, l, !0)) == null ? void 0 : u.dom;
191
190
  }
192
191
  ) }),
193
192
  ...r || {},
@@ -196,66 +195,66 @@ function gt(s, i) {
196
195
  );
197
196
  }
198
197
  const ue = async (e) => {
199
- if (B.current = null, $e(k) && k.length) {
198
+ if (U.current = null, Te(k) && k.length) {
200
199
  const t = e.split(
201
200
  new RegExp(`[${k.join("")}]`)
202
201
  );
203
202
  if (t.length > 1) {
204
- B.current = Date.now();
203
+ U.current = Date.now();
205
204
  const r = [];
206
205
  await Promise.all(
207
- t.map(async (n) => {
208
- const l = n ? typeof P == "function" ? await P(n, a) : !0 : !1;
206
+ t.map(async (s) => {
207
+ const l = s ? typeof P == "function" ? await P(s, a) : !0 : !1;
209
208
  l && r.push({
210
- value: l === !0 ? n : l,
211
- label: n
209
+ value: l === !0 ? s : l,
210
+ label: s
212
211
  });
213
212
  })
214
- ), r.length && T(a.concat(r), "add");
213
+ ), r.length && $(a.concat(r), "add");
215
214
  }
216
215
  }
217
- }, pe = _e && !h && !g && a.length ? /* @__PURE__ */ c(
216
+ }, pe = _e && !h && !g && a.length ? /* @__PURE__ */ i(
218
217
  et,
219
218
  {
220
219
  size: V,
221
220
  className: `${o}-clear-icon`,
222
221
  onClick: (e) => {
223
222
  var t;
224
- e.stopPropagation(), T([], "clear"), w || (t = I.current) == null || t.focus(), U == null || U();
223
+ e.stopPropagation(), $([], "clear"), w || (t = y.current) == null || t.focus(), B == null || B();
225
224
  },
226
- children: b && b.clearIcon || /* @__PURE__ */ c(Ge, {})
225
+ children: N && N.clearIcon || /* @__PURE__ */ i(Ge, {})
227
226
  },
228
227
  "clearIcon"
229
228
  ) : null, fe = h || Ee, K = Je(() => {
230
229
  const e = {};
231
- return a.map((r, n) => {
230
+ return a.map((r, s) => {
232
231
  const l = e[r.value] || 0, u = l >= 1;
233
232
  e[r.value] = l + 1;
234
- const { dom: p, valueKey: v } = ie(r, n);
235
- return Ce.isValidElement(p) ? /* @__PURE__ */ c(
236
- Ie,
233
+ const { dom: p, valueKey: v } = ce(r, s);
234
+ return Ce.isValidElement(p) ? /* @__PURE__ */ i(
235
+ ye,
237
236
  {
238
237
  timeout: X,
239
238
  classNames: "zoomIn",
240
239
  children: p
241
240
  },
242
- u ? `${v}-${n}` : v
241
+ u ? `${v}-${s}` : v
243
242
  ) : p;
244
243
  });
245
244
  }, [a]), q = [
246
- /* @__PURE__ */ c(
247
- Ie,
245
+ /* @__PURE__ */ i(
246
+ ye,
248
247
  {
249
248
  timeout: X,
250
249
  classNames: "zoomIn",
251
- children: /* @__PURE__ */ c(
250
+ children: /* @__PURE__ */ i(
252
251
  at,
253
252
  {
254
253
  autoComplete: "off",
255
254
  size: V,
256
255
  disabled: fe,
257
256
  readOnly: g,
258
- ref: I,
257
+ ref: y,
259
258
  autoFocus: Ae,
260
259
  placeholder: a.length ? "" : De,
261
260
  prefixCls: `${o}-input`,
@@ -264,17 +263,17 @@ function gt(s, i) {
264
263
  pure: !0
265
264
  },
266
265
  onPressEnter: async (e) => {
267
- N && e.preventDefault(), W == null || W(e), await le();
266
+ I && e.preventDefault(), W == null || W(e), await le();
268
267
  },
269
268
  onFocus: (e) => {
270
- !fe && !g && (ne(!0), j == null || j(e));
269
+ !fe && !g && (se(!0), j == null || j(e));
271
270
  },
272
271
  onBlur: async (e) => {
273
- ne(!1), H == null || H(e), ke && await le(), S("");
272
+ se(!1), H == null || H(e), ke && await le(), S("");
274
273
  },
275
- value: N,
274
+ value: I,
276
275
  onChange: (e, t) => {
277
- x == null || x(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e), B.current ? S("") : S(e);
276
+ x == null || x(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e), U.current ? S("") : S(e);
278
277
  },
279
278
  onKeyDown: (e) => {
280
279
  He(e), z == null || z(e);
@@ -287,7 +286,7 @@ function gt(s, i) {
287
286
  },
288
287
  ft
289
288
  )
290
- ], We = !$(Q), de = !$(Z) || !$(pe), me = !$(ee), ge = !$(te), D = me || ge, ve = f.status || (Re ? "error" : void 0), he = A(o, {
289
+ ], We = !T(Q), de = !T(Z) || !T(pe), me = !T(ee), ge = !T(te), D = me || ge, ve = f.status || (Re ? "error" : void 0), he = A(o, {
291
290
  [`${o}-size-${V}`]: V,
292
291
  [`${o}-disabled`]: h,
293
292
  [`${o}-${ve}`]: ve,
@@ -296,7 +295,7 @@ function gt(s, i) {
296
295
  [`${o}-has-suffix`]: de,
297
296
  [`${o}-has-placeholder`]: !a.length,
298
297
  [`${o}-rtl`]: Y
299
- }), R = { style: Se, className: we }, be = /* @__PURE__ */ c(
298
+ }), R = { style: Se, className: we }, Ne = /* @__PURE__ */ i(
300
299
  "div",
301
300
  {
302
301
  ...ut(ze, ["status", "size", "defaultValue", "value", "inputValue"]),
@@ -307,26 +306,26 @@ function gt(s, i) {
307
306
  },
308
307
  onClick: (e) => {
309
308
  var t;
310
- !w && ((t = I.current) == null || t.focus()), re && re(e);
309
+ !w && ((t = y.current) == null || t.focus()), re && re(e);
311
310
  },
312
311
  ref: D ? void 0 : G,
313
312
  children: /* @__PURE__ */ _("div", { className: `${o}-view`, children: [
314
- We && /* @__PURE__ */ c("div", { className: `${o}-prefix`, onMouseDown: M, children: Q }),
315
- je ? /* @__PURE__ */ c(
316
- Te,
313
+ We && /* @__PURE__ */ i("div", { className: `${o}-prefix`, onMouseDown: M, children: Q }),
314
+ je ? /* @__PURE__ */ i(
315
+ $e,
317
316
  {
318
317
  prefixCls: o,
319
318
  animation: J,
320
- children: /* @__PURE__ */ c(
319
+ children: /* @__PURE__ */ i(
321
320
  tt,
322
321
  {
323
322
  itemWrapperStyle: { display: "inline-block" },
324
323
  direction: "horizontal",
325
324
  onIndexChange: (e, t) => {
326
- T(function(n, l, u) {
327
- n = n.slice();
328
- const p = l > u, [v] = n.splice(l, 1);
329
- return n.splice(p ? u : u - 1, 0, v), n;
325
+ $(function(s, l, u) {
326
+ s = s.slice();
327
+ const p = l > u, [v] = s.splice(l, 1);
328
+ return s.splice(p ? u : u - 1, 0, v), s;
330
329
  }(a, t, e), "sort");
331
330
  },
332
331
  children: K.concat(q)
@@ -334,21 +333,21 @@ function gt(s, i) {
334
333
  )
335
334
  },
336
335
  "transitionGroupWithDrag"
337
- ) : /* @__PURE__ */ c(
338
- Te,
336
+ ) : /* @__PURE__ */ i(
337
+ $e,
339
338
  {
340
339
  prefixCls: o,
341
340
  animation: J,
342
- children: y === pt ? /* @__PURE__ */ c(
341
+ children: b === pt ? /* @__PURE__ */ i(
343
342
  rt,
344
343
  {
345
344
  items: K,
346
345
  suffixItems: q,
347
- ellipsisNode: ({ ellipsisCount: e }) => ce(e)
346
+ ellipsisNode: ({ ellipsisCount: e }) => ie(e)
348
347
  }
349
348
  ) : K.concat(q)
350
349
  },
351
- `max_tag_group_${y}`
350
+ `max_tag_group_${b}`
352
351
  ),
353
352
  de && /* @__PURE__ */ _("div", { className: `${o}-suffix`, onMouseDown: M, children: [
354
353
  pe,
@@ -370,12 +369,12 @@ function gt(s, i) {
370
369
  ),
371
370
  ref: G,
372
371
  children: [
373
- me && /* @__PURE__ */ c("div", { className: `${o}-addbefore`, children: ee }),
374
- be,
375
- ge && /* @__PURE__ */ c("div", { className: `${o}-addafter`, children: te })
372
+ me && /* @__PURE__ */ i("div", { className: `${o}-addbefore`, children: ee }),
373
+ Ne,
374
+ ge && /* @__PURE__ */ i("div", { className: `${o}-addafter`, children: te })
376
375
  ]
377
376
  }
378
- ) : be;
377
+ ) : Ne;
379
378
  }
380
379
  const vt = Ce.forwardRef(
381
380
  gt
package/layout/Content.js CHANGED
@@ -1,10 +1,10 @@
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/CNcLypMY.js";
4
- import { p } from "../chunk/CUFsOxJ2.js";
3
+ import { a as l } from "../chunk/CQvM33Vg.js";
4
+ import p from "@unicom-cloud/utils/class-name";
5
5
  function C(t, o) {
6
- const { className: n, children: e, ...s } = t, { getPrefixCls: r } = i(l), a = r("layout-content"), m = p(a, n);
7
- return /* @__PURE__ */ c("main", { ref: o, ...s, className: m, children: e });
6
+ const { className: s, children: e, ...n } = t, { getPrefixCls: a } = i(l), r = a("layout-content"), m = p(r, s);
7
+ return /* @__PURE__ */ c("main", { ref: o, ...n, className: m, children: e });
8
8
  }
9
9
  const u = f(C);
10
10
  u.displayName = "LayoutContent";
package/layout/Footer.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as c, useContext as i } from "react";
3
- import { a as l } from "../chunk/CNcLypMY.js";
4
- import { p } from "../chunk/CUFsOxJ2.js";
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as c, useContext as l } from "react";
3
+ import { a as i } from "../chunk/CQvM33Vg.js";
4
+ import p from "@unicom-cloud/utils/class-name";
5
5
  function u(o, t) {
6
- const { className: e, children: r, ...s } = o, { getPrefixCls: a } = i(l), n = a("layout-footer"), f = p(n, e);
7
- return /* @__PURE__ */ m("footer", { ref: t, ...s, className: f, children: r });
6
+ const { className: e, children: s, ...r } = o, { getPrefixCls: a } = l(i), m = a("layout-footer"), n = p(m, e);
7
+ return /* @__PURE__ */ f("footer", { ref: t, ...r, className: n, children: s });
8
8
  }
9
9
  const x = c(u);
10
10
  x.displayName = "LayoutFooter";