@unicom-cloud/ui 0.8.78 → 0.8.80

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 (345) 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 +18 -18
  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/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  99. package/chunk/BYdIoY50.js +17 -0
  100. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  101. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  102. package/chunk/BsUZRQDT.js +23 -0
  103. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  104. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  105. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  106. package/chunk/CXPOj2uy.js +19 -0
  107. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  108. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  109. package/chunk/{Cwm8LL5p.js → D73Vr7fa.js} +7197 -7202
  110. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  111. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  112. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  113. package/chunk/DxYoPlum.js +50 -0
  114. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  115. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  116. package/chunk/{BhBEMwvI.js → uKZyjtff.js} +20 -21
  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 +539 -572
  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 +40 -40
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/switch/index.js +32 -33
  261. package/table/Table.js +5 -5
  262. package/table/index.js +1 -1
  263. package/tabs/Tab.js +4 -4
  264. package/tabs/TabContent.js +3 -3
  265. package/tabs/TabPane.js +11 -11
  266. package/tabs/index.js +2 -2
  267. package/tabs/util.js +1 -1
  268. package/tag/index.js +16 -16
  269. package/time-picker/Picker.js +50 -50
  270. package/time-picker/TimeColumn.js +8 -8
  271. package/time-picker/TimePicker.js +32 -32
  272. package/time-picker/util.js +5 -5
  273. package/timeline/Item.js +15 -15
  274. package/timeline/Timeline.js +24 -24
  275. package/tooltip/index.js +23 -23
  276. package/transfer/Item.js +4 -4
  277. package/transfer/List.js +4 -4
  278. package/transfer/index.js +4 -4
  279. package/tree/Animation.js +3 -3
  280. package/tree/Node.js +3 -3
  281. package/tree/NodeList.js +2 -2
  282. package/tree/Tree.js +4 -4
  283. package/tree/index.js +1 -1
  284. package/tree-select/List.js +2 -2
  285. package/tree-select/Select.js +8 -9
  286. package/tree-select/index.js +2 -2
  287. package/trigger/getPopupStyle.js +18 -19
  288. package/trigger/index.js +32 -33
  289. package/types/button/index.d.ts +2 -2
  290. package/types/color-picker/colors.d.ts +1 -1
  291. package/types/date-picker/util.d.ts +1 -1
  292. package/types/icon/index.d.ts +3 -1
  293. package/types/index.d.ts +1 -1
  294. package/types/menu/context.d.ts +1 -1
  295. package/typography/Base.js +33 -35
  296. package/typography/EditContent.js +16 -16
  297. package/typography/Ellipsis.js +25 -26
  298. package/typography/Operations.js +1 -1
  299. package/typography/Paragraph.js +8 -8
  300. package/typography/Typography.js +7 -7
  301. package/typography/index.js +1 -1
  302. package/upload/TriggerNode.js +8 -8
  303. package/upload/Upload.js +64 -65
  304. package/upload/Uploader.js +12 -12
  305. package/upload/request.js +13 -12
  306. package/upload/request_.js +5 -6
  307. package/utils/PqbCSSTransition.js +1 -1
  308. package/utils/caseName.js +4 -3
  309. package/utils/className.js +4 -3
  310. package/utils/constant.js +3 -3
  311. package/utils/contextHolder.js +1 -1
  312. package/utils/copy.js +5 -4
  313. package/utils/fileToURL.js +4 -3
  314. package/utils/index.js +262 -299
  315. package/utils/is.js +78 -115
  316. package/utils/keyboardCode.js +4 -26
  317. package/utils/math.js +10 -32
  318. package/utils/react19Adapter.js +1 -1
  319. package/utils/reactDOM.js +1 -1
  320. package/utils/saveAs.js +4 -3
  321. package/utils/screenfull.js +4 -3
  322. package/utils/scrollIntoView.js +1 -1
  323. package/utils/setDarkTheme.js +1 -1
  324. package/utils/tree.js +7 -83
  325. package/utils/tween.js +1 -1
  326. package/utils/validate.js +1 -1
  327. package/verification-code/VerificationCode.js +25 -25
  328. package/version/index.js +1 -1
  329. package/virtual-list/VirtualList.js +1 -1
  330. package/watermark/Watermark.js +8 -8
  331. package/chunk/ATwvJ8j2.js +0 -6
  332. package/chunk/BFmckYou.js +0 -25
  333. package/chunk/Bl7BnD1R.js +0 -119
  334. package/chunk/Bmvhjhzq.js +0 -24
  335. package/chunk/BrOW642m.js +0 -130
  336. package/chunk/C0pRaDCf.js +0 -96
  337. package/chunk/CBzE-PUr.js +0 -23
  338. package/chunk/CUFsOxJ2.js +0 -10
  339. package/chunk/Ce1j9KTi.js +0 -6
  340. package/chunk/D0Dlbc2g.js +0 -41
  341. package/chunk/DRTWRsgI.js +0 -34
  342. package/chunk/DeV0v__J.js +0 -20
  343. package/chunk/DohlrJ4S.js +0 -50
  344. package/chunk/XTEsYGuF.js +0 -17
  345. package/chunk/yl4BU7Sd.js +0 -1068
@@ -3,30 +3,30 @@ import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
3
  import L from "@unicom-cloud/icons/IconUiCaretRight";
4
4
  import V from "lodash/isFunction";
5
5
  import M, { useContext as K, useRef as A, createContext as B } from "react";
6
- import { a as T, I as S } from "./CNcLypMY.js";
6
+ import { a as T, I as S } from "./CQvM33Vg.js";
7
7
  import { u as q } from "./BFTV6myl.js";
8
- import { u as D } from "./DeV0v__J.js";
9
- import { p } from "./CUFsOxJ2.js";
8
+ import { u as D } from "./CXPOj2uy.js";
9
+ import m from "@unicom-cloud/utils/class-name";
10
10
  import { o as G } from "./BKKEev13.js";
11
11
  import { u as J } from "./BJ9_azwQ.js";
12
- import { u as Q } from "./XTEsYGuF.js";
12
+ import { u as Q } from "./BYdIoY50.js";
13
13
  import { off as W, on as X } from "../utils/dom.js";
14
- function Y(d, m) {
14
+ function Y(d, p) {
15
15
  var C;
16
16
  const { getPrefixCls: g } = K(T), n = K(j), I = Q(), {
17
17
  children: s,
18
18
  name: a,
19
19
  header: $,
20
20
  className: H,
21
- style: E,
22
- contentStyle: b,
21
+ style: N,
22
+ contentStyle: E,
23
23
  extra: x,
24
24
  disabled: c,
25
25
  destroyOnHide: y,
26
26
  expandIcon: v,
27
- showExpandIcon: N = !0,
27
+ showExpandIcon: b = !0,
28
28
  ...P
29
- } = d, i = A(), h = A(), t = g("collapse-item"), l = ((C = n.activeKeys) == null ? void 0 : C.indexOf(a)) > -1, u = N ? "expandIcon" in d ? v : n.expandIcon : null, f = (e, o) => {
29
+ } = d, i = A(), h = A(), t = g("collapse-item"), l = ((C = n.activeKeys) == null ? void 0 : C.indexOf(a)) > -1, u = b ? "expandIcon" in d ? v : n.expandIcon : null, f = (e, o) => {
30
30
  var O;
31
31
  if (c)
32
32
  return;
@@ -37,9 +37,9 @@ function Y(d, m) {
37
37
  return /* @__PURE__ */ w(
38
38
  "div",
39
39
  {
40
- ref: m,
40
+ ref: p,
41
41
  ...P,
42
- className: p(
42
+ className: m(
43
43
  t,
44
44
  {
45
45
  [`${t}-active`]: l,
@@ -48,7 +48,7 @@ function Y(d, m) {
48
48
  },
49
49
  H
50
50
  ),
51
- style: E,
51
+ style: N,
52
52
  children: [
53
53
  /* @__PURE__ */ w(
54
54
  "div",
@@ -58,7 +58,7 @@ function Y(d, m) {
58
58
  "aria-expanded": l,
59
59
  "data-active-region": n.triggerRegion,
60
60
  tabIndex: c ? -1 : 0,
61
- className: p(
61
+ className: m(
62
62
  `${t}-header`,
63
63
  `${t}-header-${n.expandIconPosition}`,
64
64
  {
@@ -77,7 +77,7 @@ function Y(d, m) {
77
77
  {
78
78
  prefix: t,
79
79
  disabled: c,
80
- className: p({
80
+ className: m({
81
81
  [`${t}-icon-hover-right`]: n.expandIconPosition === "right",
82
82
  [`${t}-header-icon-right`]: n.expandIconPosition === "right"
83
83
  }),
@@ -85,7 +85,7 @@ function Y(d, m) {
85
85
  children: /* @__PURE__ */ r(
86
86
  "span",
87
87
  {
88
- className: p(`${t}-header-icon`, {
88
+ className: m(`${t}-header-icon`, {
89
89
  [`${t}-header-icon-down`]: l
90
90
  }),
91
91
  children: u
@@ -153,14 +153,14 @@ function Y(d, m) {
153
153
  {
154
154
  ref: i,
155
155
  role: "region",
156
- className: p(`${t}-content`, {
156
+ className: m(`${t}-content`, {
157
157
  [`${t}-content-expanded`]: l
158
158
  }),
159
159
  children: /* @__PURE__ */ r(
160
160
  "div",
161
161
  {
162
162
  ref: h,
163
- style: b,
163
+ style: E,
164
164
  className: `${t}-content-box`,
165
165
  children: s
166
166
  }
@@ -177,9 +177,9 @@ const z = M.forwardRef(
177
177
  Y
178
178
  );
179
179
  z.displayName = "CollapseItem";
180
- const k = (d, m) => {
180
+ const k = (d, p) => {
181
181
  const g = [].concat(d);
182
- return m ? g.slice(0, 1) : g;
182
+ return p ? g.slice(0, 1) : g;
183
183
  }, Z = {
184
184
  bordered: !0,
185
185
  lazyload: !0,
@@ -191,7 +191,7 @@ const k = (d, m) => {
191
191
  onToggle: () => {
192
192
  }
193
193
  });
194
- function _(d, m) {
194
+ function _(d, p) {
195
195
  const { getPrefixCls: g, componentConfig: n, rtl: I } = K(T), s = q(
196
196
  d,
197
197
  Z,
@@ -201,13 +201,13 @@ function _(d, m) {
201
201
  value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
202
202
  }), {
203
203
  children: H,
204
- className: E,
205
- style: b,
204
+ className: N,
205
+ style: E,
206
206
  bordered: x,
207
207
  lazyload: c,
208
208
  expandIcon: y,
209
209
  expandIconPosition: v,
210
- destroyOnHide: N,
210
+ destroyOnHide: b,
211
211
  accordion: P,
212
212
  triggerRegion: i,
213
213
  onChange: h,
@@ -224,7 +224,7 @@ function _(d, m) {
224
224
  activeKeys: a,
225
225
  triggerRegion: i,
226
226
  lazyload: c,
227
- destroyOnHide: N,
227
+ destroyOnHide: b,
228
228
  expandIconPosition: v,
229
229
  onToggle: u,
230
230
  expandIcon: "expandIcon" in s ? y : v === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
@@ -232,15 +232,15 @@ function _(d, m) {
232
232
  children: /* @__PURE__ */ r(
233
233
  "div",
234
234
  {
235
- ref: m,
235
+ ref: p,
236
236
  ...G(t, ["activeKey", "defaultActiveKey"]),
237
- className: p(
237
+ className: m(
238
238
  l,
239
239
  `${l}-${x ? "border" : "borderless"}`,
240
240
  { [`${l}-rtl`]: I },
241
- E
241
+ N
242
242
  ),
243
- style: b,
243
+ style: E,
244
244
  children: H
245
245
  }
246
246
  )
@@ -1,11 +1,4 @@
1
- import { g as c, y as x, S as w } from "./C0pRaDCf.js";
2
- import b from "lodash/isObject.js";
3
- import p from "lodash/isArray.js";
4
- import M from "lodash/isString.js";
5
- import _ from "lodash/isNumber.js";
6
- import E from "lodash/isEqual.js";
7
- import O from "lodash/isBoolean.js";
8
- import S from "lodash/isFunction.js";
1
+ import { isObject as b, isArray as m, isString as M, isNumber as w, isEmptyValue as c, isEqual as E, isEmptyArray as x, isEmptyObject as O, isBoolean as _, isFunction as S } from "@unicom-cloud/utils/is";
9
2
  const k = {
10
3
  required: "#{field} 是必填项",
11
4
  type: {
@@ -69,7 +62,7 @@ const k = {
69
62
  return i;
70
63
  };
71
64
  var C = Object.defineProperty, N = (r, t, e) => t in r ? C(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, l = (r, t, e) => N(r, typeof t != "symbol" ? t + "" : t, e);
72
- class m {
65
+ class p {
73
66
  constructor(t, e) {
74
67
  l(this, "obj"), l(this, "message"), l(this, "type"), l(this, "error"), l(this, "_not"), l(this, "validateMessages"), l(this, "field"), l(this, "getValidateMsg", (i, s = {}) => {
75
68
  const n = {
@@ -78,18 +71,18 @@ class m {
78
71
  field: this.field,
79
72
  type: this.type
80
73
  }, a = z(this.validateMessages, i);
81
- return S(a) ? a(n) : M(a) ? a.replace(/#\{.+?\}/g, (g) => {
82
- const d = g.slice(2, -1);
83
- if (d in n) {
84
- if (b(n[d]) || p(n[d]))
74
+ return S(a) ? a(n) : M(a) ? a.replace(/#\{.+?\}/g, (d) => {
75
+ const g = d.slice(2, -1);
76
+ if (g in n) {
77
+ if (b(n[g]) || m(n[g]))
85
78
  try {
86
- return JSON.stringify(n[d]);
79
+ return JSON.stringify(n[g]);
87
80
  } catch {
88
- return n[d];
81
+ return n[g];
89
82
  }
90
- return String(n[d]);
83
+ return String(n[g]);
91
84
  }
92
- return g;
85
+ return d;
93
86
  }) : a;
94
87
  }), b(e) && M(t) && e.trim ? this.obj = t.trim() : b(e) && e.ignoreEmptyString && t === "" ? this.obj = void 0 : this.obj = t, this.message = e.message, this.type = e.type, this.error = null, this.field = e.field || e.type, this.validateMessages = V(
95
88
  k,
@@ -128,13 +121,13 @@ class m {
128
121
  t == null || t(this.error);
129
122
  }
130
123
  }
131
- class R extends m {
124
+ class R extends p {
132
125
  constructor(t, e) {
133
126
  super(t, {
134
127
  ...e,
135
128
  type: "array"
136
129
  }), this.validate(
137
- e && e.strict ? p(this.obj) : !0,
130
+ e && e.strict ? m(this.obj) : !0,
138
131
  this.getValidateMsg("type.array", { value: this.obj, type: this.type })
139
132
  );
140
133
  }
@@ -187,13 +180,13 @@ class R extends m {
187
180
  );
188
181
  }
189
182
  }
190
- class K extends m {
183
+ class A extends p {
191
184
  constructor(t, e) {
192
185
  super(t, {
193
186
  ...e,
194
187
  type: "boolean"
195
188
  }), this.validate(
196
- e != null && e.strict ? O(this.obj) : !0,
189
+ e != null && e.strict ? _(this.obj) : !0,
197
190
  this.getValidateMsg("type.boolean")
198
191
  );
199
192
  }
@@ -210,7 +203,7 @@ class K extends m {
210
203
  );
211
204
  }
212
205
  }
213
- class P extends m {
206
+ class K extends p {
214
207
  constructor(t, e) {
215
208
  super(t, {
216
209
  ...e,
@@ -230,13 +223,13 @@ class P extends m {
230
223
  ), [i, this]) : (e == null || e(this.error), this.error);
231
224
  }
232
225
  }
233
- class D extends m {
226
+ class P extends p {
234
227
  constructor(t, e) {
235
228
  super(t, {
236
229
  ...e,
237
230
  type: "number"
238
231
  }), this.validate(
239
- e && e.strict ? _(this.obj) : !0,
232
+ e && e.strict ? w(this.obj) : !0,
240
233
  this.getValidateMsg("type.number")
241
234
  );
242
235
  }
@@ -271,7 +264,7 @@ class D extends m {
271
264
  return c(this.obj) ? this : this.validate(this.obj < 0, this.getValidateMsg("number.negative"));
272
265
  }
273
266
  }
274
- class I extends m {
267
+ class D extends p {
275
268
  constructor(t, e) {
276
269
  super(t, {
277
270
  ...e,
@@ -295,12 +288,12 @@ class I extends m {
295
288
  }
296
289
  get empty() {
297
290
  return this.validate(
298
- w(this.obj),
291
+ O(this.obj),
299
292
  this.getValidateMsg("object.empty")
300
293
  );
301
294
  }
302
295
  }
303
- class T extends m {
296
+ class I extends p {
304
297
  constructor(t, e) {
305
298
  super(t, {
306
299
  ...e,
@@ -348,11 +341,11 @@ class T extends m {
348
341
  ) : this;
349
342
  }
350
343
  }
351
- const Z = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, A = new RegExp(
344
+ const T = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Z = new RegExp(
352
345
  "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
353
346
  "i"
354
- ), U = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
355
- class $ extends m {
347
+ ), B = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
348
+ class U extends p {
356
349
  constructor(t, e) {
357
350
  super(t, {
358
351
  ...e,
@@ -361,32 +354,32 @@ class $ extends m {
361
354
  }
362
355
  get email() {
363
356
  return this.type = "email", this.validate(
364
- this.obj === void 0 || Z.test(this.obj),
357
+ this.obj === void 0 || T.test(this.obj),
365
358
  this.getValidateMsg("type.email")
366
359
  );
367
360
  }
368
361
  get url() {
369
362
  return this.type = "url", this.validate(
370
- this.obj === void 0 || A.test(this.obj),
363
+ this.obj === void 0 || Z.test(this.obj),
371
364
  this.getValidateMsg("type.url")
372
365
  );
373
366
  }
374
367
  get ip() {
375
368
  return this.type = "ip", this.validate(
376
- this.obj === void 0 || U.test(this.obj),
369
+ this.obj === void 0 || B.test(this.obj),
377
370
  this.getValidateMsg("type.ip")
378
371
  );
379
372
  }
380
373
  }
381
- const f = (r, t) => new q(r, { field: "value", ...t });
382
- f.globalConfig = {};
383
- f.setGlobalConfig = (r) => {
384
- f.globalConfig = r || {};
374
+ const j = (r, t) => new q(r, { field: "value", ...t });
375
+ j.globalConfig = {};
376
+ j.setGlobalConfig = (r) => {
377
+ j.globalConfig = r || {};
385
378
  };
386
379
  class q {
387
380
  constructor(t, e) {
388
381
  l(this, "number"), l(this, "string"), l(this, "array"), l(this, "object"), l(this, "boolean"), l(this, "type"), l(this, "custom");
389
- const i = f.globalConfig, s = {
382
+ const i = j.globalConfig, s = {
390
383
  ...i,
391
384
  ...e,
392
385
  validateMessages: V(
@@ -394,10 +387,10 @@ class q {
394
387
  e.validateMessages
395
388
  )
396
389
  };
397
- this.string = new T(t, s), this.number = new D(t, s), this.array = new R(t, s), this.object = new I(t, s), this.boolean = new K(t, s), this.type = new $(t, s), this.custom = new P(t, s);
390
+ this.string = new I(t, s), this.number = new P(t, s), this.array = new R(t, s), this.object = new D(t, s), this.boolean = new A(t, s), this.type = new U(t, s), this.custom = new K(t, s);
398
391
  }
399
392
  }
400
- class X {
393
+ class G {
401
394
  constructor(t, e = {}) {
402
395
  l(this, "schema"), l(this, "options"), this.schema = t, this.options = e;
403
396
  }
@@ -416,27 +409,27 @@ class X {
416
409
  return;
417
410
  const i = [];
418
411
  let s = null;
419
- function n(a, g) {
420
- s || (s = {}), s && (!s[a] || g.requiredError) && (s[a] = g);
412
+ function n(a, d) {
413
+ s || (s = {}), s && (!s[a] || d.requiredError) && (s[a] = d);
421
414
  }
422
415
  this.schema && Object.keys(this.schema).forEach((a) => {
423
- var g;
424
- if (p(this.schema[a]))
425
- for (let d = 0; d < this.schema[a].length; d++) {
426
- const o = this.schema[a][d], v = o.type, L = o.message;
416
+ var d;
417
+ if (m(this.schema[a]))
418
+ for (let g = 0; g < this.schema[a].length; g++) {
419
+ const o = this.schema[a][g], v = o.type, L = o.message;
427
420
  if (!v && !o.validator)
428
421
  throw `You must specify a type to field ${a}!`;
429
- const j = {
422
+ const f = {
430
423
  ...this.options,
431
424
  message: L,
432
425
  field: a
433
426
  };
434
- "ignoreEmptyString" in o && (j.ignoreEmptyString = o.ignoreEmptyString), "strict" in o && (j.strict = o.strict);
435
- const y = new q(t[a], j);
427
+ "ignoreEmptyString" in o && (f.ignoreEmptyString = o.ignoreEmptyString), "strict" in o && (f.strict = o.strict);
428
+ const y = new q(t[a], f);
436
429
  let h = y.type[v] || null;
437
430
  if (!h)
438
431
  if (o.validator) {
439
- h = y.custom.validate_(o.validator), p(h) && (g = h[0]) != null && g.then ? i.push({
432
+ h = y.custom.validate_(o.validator), m(h) && (d = h[0]) != null && d.then ? i.push({
440
433
  function: h[0],
441
434
  _this: h[1],
442
435
  key: a
@@ -459,7 +452,7 @@ class X {
459
452
  }
460
453
  }
461
454
  export {
462
- X as H,
455
+ G as H,
463
456
  k as e,
464
- f as m
457
+ j as m
465
458
  };
@@ -1,27 +1,27 @@
1
1
  import { jsx as s, jsxs as O, Fragment as rn } from "react/jsx-runtime";
2
2
  import ln from "@unicom-cloud/icons/IconUiClose";
3
3
  import Ie from "lodash/isFunction";
4
- import sn, { forwardRef as Oe, useState as $, useImperativeHandle as an, useRef as x, useContext as cn, useCallback as U, useEffect as oe } from "react";
5
- import De from "../button/index.js";
6
- import { b as Le, d as un, a as dn, I as mn } from "./CNcLypMY.js";
4
+ import sn, { forwardRef as Oe, useState as D, useImperativeHandle as an, useRef as x, useContext as cn, useCallback as U, useEffect as oe } from "react";
5
+ import $e from "../button/index.js";
6
+ import { b as Le, d as un, a as dn, I as mn } from "./CQvM33Vg.js";
7
7
  import { u as fn } from "./oopARUrq.js";
8
8
  import { u as pn } from "./BFTV6myl.js";
9
- import { u as Cn } from "./DeV0v__J.js";
9
+ import { u as Cn } from "./CXPOj2uy.js";
10
10
  import { u as hn } from "./DU1RCDfh.js";
11
11
  import bn from "../portal/index.js";
12
- import { P as $e } from "./BpYX5PN4.js";
13
- import { p as Be } from "./CUFsOxJ2.js";
12
+ import { P as De } from "./NPajzdOv.js";
13
+ import Be from "@unicom-cloud/utils/class-name";
14
14
  import { contains as gn, isServerRendering as xn } from "../utils/dom.js";
15
- import { o as kn } from "./BrOW642m.js";
15
+ import { Esc as kn } from "@unicom-cloud/utils/constant/keyboardCode";
16
16
  import { o as vn } from "./BKKEev13.js";
17
- import { f as Mn } from "./Cc_-i0o_.js";
18
- import wn from "@unicom-cloud/icons/IconUiCheckCircleFill";
19
- import En from "@unicom-cloud/icons/IconUiCloseCircleFill";
17
+ import { f as Mn } from "./BZ3igxQN.js";
18
+ import En from "@unicom-cloud/icons/IconUiCheckCircleFill";
19
+ import wn from "@unicom-cloud/icons/IconUiCloseCircleFill";
20
20
  import Re from "@unicom-cloud/icons/IconUiExclamationCircleFill";
21
21
  import Tn from "@unicom-cloud/icons/IconUiInfoCircleFill";
22
22
  import { createRoot as yn } from "react-dom/client";
23
- import { destroyList as D, getConfigProviderProps as Nn, getModalConfig as Pn, setModalConfig as In } from "../modal/config.js";
24
- function Dn(n) {
23
+ import { destroyList as $, getConfigProviderProps as Nn, getModalConfig as Pn, setModalConfig as In } from "../modal/config.js";
24
+ function $n(n) {
25
25
  const { prefixCls: i, simple: u } = Pn();
26
26
  return /* @__PURE__ */ s(T, { prefixCls: i, simple: u, ...n, children: n.content });
27
27
  }
@@ -35,13 +35,13 @@ const V = (n) => {
35
35
  i = /* @__PURE__ */ s(Tn, {});
36
36
  break;
37
37
  case "success":
38
- i = /* @__PURE__ */ s(wn, {});
38
+ i = /* @__PURE__ */ s(En, {});
39
39
  break;
40
40
  case "warning":
41
41
  i = /* @__PURE__ */ s(Re, {});
42
42
  break;
43
43
  case "error":
44
- i = /* @__PURE__ */ s(En, {});
44
+ i = /* @__PURE__ */ s(wn, {});
45
45
  break;
46
46
  }
47
47
  }
@@ -58,7 +58,7 @@ function le(n, i) {
58
58
  const m = Nn();
59
59
  function k(a) {
60
60
  const h = /* @__PURE__ */ s(Le, { ...m, childrenName: "ModalConfirm", children: /* @__PURE__ */ s(
61
- Dn,
61
+ $n,
62
62
  {
63
63
  getPopupContainer: () => t,
64
64
  ...a,
@@ -87,9 +87,9 @@ function le(n, i) {
87
87
  r.onOk = c, r = V(r), r.visible = !0, l(r);
88
88
  function b() {
89
89
  t.remove();
90
- for (let a = 0; a < D.length; a++)
91
- if (D[a] === v) {
92
- D.splice(a, 1);
90
+ for (let a = 0; a < $.length; a++)
91
+ if ($[a] === v) {
92
+ $.splice(a, 1);
93
93
  break;
94
94
  }
95
95
  u && setTimeout(() => {
@@ -114,14 +114,14 @@ function le(n, i) {
114
114
  (a = n.afterClose) == null || a.call(n), b();
115
115
  }, l(r);
116
116
  }
117
- return D.push(v), {
117
+ return $.push(v), {
118
118
  close: v,
119
119
  update: P,
120
120
  destroy: b
121
121
  };
122
122
  }
123
- function $n(n, i) {
124
- const [u, t] = $(!0), [m, k] = $(n);
123
+ function Dn(n, i) {
124
+ const [u, t] = D(!0), [m, k] = D(n);
125
125
  an(i, () => ({
126
126
  update: (c) => {
127
127
  k(c);
@@ -165,7 +165,7 @@ function $n(n, i) {
165
165
  }
166
166
  );
167
167
  }
168
- const Bn = Oe($n);
168
+ const Bn = Oe(Dn);
169
169
  function Rn() {
170
170
  const n = x(), i = /* @__PURE__ */ s(un, { ref: n });
171
171
  let u = 0;
@@ -202,7 +202,7 @@ function Rn() {
202
202
  ...f
203
203
  }, r == null || r.update(V({ ...c }));
204
204
  }
205
- return D.push(v), {
205
+ return $.push(v), {
206
206
  close: v,
207
207
  update: a
208
208
  };
@@ -247,12 +247,12 @@ const Ln = {
247
247
  alignCenter: !0
248
248
  };
249
249
  function Xn(n, i) {
250
- var we;
250
+ var Ee;
251
251
  i || (i = x());
252
252
  const u = cn(dn), t = pn(
253
253
  n,
254
254
  Ln,
255
- (we = u.componentConfig) == null ? void 0 : we.Modal
255
+ (Ee = u.componentConfig) == null ? void 0 : Ee.Modal
256
256
  ), {
257
257
  className: m,
258
258
  style: k,
@@ -285,7 +285,7 @@ function Xn(n, i) {
285
285
  closeIcon: ae,
286
286
  fullscreenable: Yn,
287
287
  ...ce
288
- } = t, B = x(null), ue = x(null), M = x(null), [de, me] = $(), [fe, ze] = $(), Y = x(null), R = x(!1), [qe, pe] = $(""), [Ce, he] = $("");
288
+ } = t, B = x(null), ue = x(null), M = x(null), [de, me] = D(), [fe, ze] = D(), Y = x(null), R = x(!1), [qe, pe] = D(""), [Ce, he] = D("");
289
289
  fn();
290
290
  const A = x(!0);
291
291
  l && A.current && (A.current = !1);
@@ -337,25 +337,25 @@ function Xn(n, i) {
337
337
  isNaN(o) || ze(o + 1);
338
338
  }
339
339
  }, _e = () => {
340
- var g, w, E, I, S, y, N, Ee, Te, ye, Ne, Pe;
340
+ var g, E, w, I, S, y, N, we, Te, ye, Ne, Pe;
341
341
  if (L === null)
342
342
  return;
343
343
  const e = ((g = t.cancelButton) == null ? void 0 : g.visible) !== !1 && /* @__PURE__ */ s(
344
- De,
344
+ $e,
345
345
  {
346
346
  onClick: J,
347
347
  ...h,
348
- ...(w = t.cancelButton) == null ? void 0 : w.props,
349
- children: ((I = (E = t.cancelButton) == null ? void 0 : E.props) == null ? void 0 : I.children) || ((S = t.cancelButton) == null ? void 0 : S.label) || ((y = t.cancelButton) == null ? void 0 : y.text) || P || G.Modal.cancelText
348
+ ...(E = t.cancelButton) == null ? void 0 : E.props,
349
+ children: ((I = (w = t.cancelButton) == null ? void 0 : w.props) == null ? void 0 : I.children) || ((S = t.cancelButton) == null ? void 0 : S.label) || ((y = t.cancelButton) == null ? void 0 : y.text) || P || G.Modal.cancelText
350
350
  }
351
351
  ), o = ((N = t.okButton) == null ? void 0 : N.visible) !== !1 && /* @__PURE__ */ s(
352
- De,
352
+ $e,
353
353
  {
354
354
  loading: We,
355
355
  onClick: Je,
356
356
  type: "primary",
357
357
  ...a,
358
- ...(Ee = t.okButton) == null ? void 0 : Ee.props,
358
+ ...(we = t.okButton) == null ? void 0 : we.props,
359
359
  children: ((ye = (Te = t.okButton) == null ? void 0 : Te.props) == null ? void 0 : ye.children) || ((Ne = t.okButton) == null ? void 0 : Ne.label) || ((Pe = t.okButton) == null ? void 0 : Pe.text) || v || G.Modal.okText
360
360
  }
361
361
  ), p = Ie(L) ? L(e, o) : L || /* @__PURE__ */ O(rn, { children: [
@@ -366,18 +366,18 @@ function Xn(n, i) {
366
366
  }, ee = x(
367
367
  ke()
368
368
  ), en = U((e) => {
369
- var p, g, w, E, I;
369
+ var p, g, E, w, I;
370
370
  if (!M.current) return;
371
371
  e.preventDefault();
372
372
  const o = ee.current;
373
- o.screenX = e.screenX, o.screenY = e.screenY, o.prewTranslateX = o.translateX, o.prewTranslateY = o.translateY, o.boundingClientRect = ((g = (p = M.current) == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : g.call(p)) ?? {}, o.offsetParentBoundingClientRect = ((I = (E = (w = M.current) == null ? void 0 : w.offsetParent) == null ? void 0 : E.getBoundingClientRect) == null ? void 0 : I.call(E)) ?? {}, H(), nn();
373
+ o.screenX = e.screenX, o.screenY = e.screenY, o.prewTranslateX = o.translateX, o.prewTranslateY = o.translateY, o.boundingClientRect = ((g = (p = M.current) == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : g.call(p)) ?? {}, o.offsetParentBoundingClientRect = ((I = (w = (E = M.current) == null ? void 0 : E.offsetParent) == null ? void 0 : w.getBoundingClientRect) == null ? void 0 : I.call(w)) ?? {}, H(), nn();
374
374
  }, []), ge = U((e) => {
375
375
  e.preventDefault();
376
- const o = ee.current, { left: p, right: g, top: w, bottom: E } = o.boundingClientRect ?? {}, { width: I, height: S } = o.offsetParentBoundingClientRect ?? {};
376
+ const o = ee.current, { left: p, right: g, top: E, bottom: w } = o.boundingClientRect ?? {}, { width: I, height: S } = o.offsetParentBoundingClientRect ?? {};
377
377
  let y = Math.max(e.screenX - o.screenX, -p);
378
378
  y = Math.min(y, I - g);
379
- let N = Math.max(e.screenY - o.screenY, -w);
380
- N = Math.min(N, S - E), y += o.prewTranslateX, N += o.prewTranslateY, o.translateX = y, o.translateY = N, pe(`translate(${y}px, ${N}px)`);
379
+ let N = Math.max(e.screenY - o.screenY, -E);
380
+ N = Math.min(N, S - w), y += o.prewTranslateX, N += o.prewTranslateY, o.translateX = y, o.translateY = N, pe(`translate(${y}px, ${N}px)`);
381
381
  }, []), xe = U((e) => {
382
382
  e.preventDefault(), H();
383
383
  }, []);
@@ -497,8 +497,8 @@ function Xn(n, i) {
497
497
  return;
498
498
  let o = "";
499
499
  if (Y.current) {
500
- const p = e.getBoundingClientRect(), { left: g, top: w } = Y.current;
501
- o = `${g - p.left}px ${w - p.top}px`;
500
+ const p = e.getBoundingClientRect(), { left: g, top: E } = Y.current;
501
+ o = `${g - p.left}px ${E - p.top}px`;
502
502
  }
503
503
  he(o);
504
504
  }, Me = A.current ? !q : !!M.current;
@@ -515,7 +515,7 @@ function Xn(n, i) {
515
515
  className: `${d}-container`,
516
516
  children: [
517
517
  X ? /* @__PURE__ */ s(
518
- $e,
518
+ De,
519
519
  {
520
520
  in: l,
521
521
  timeout: 400,
@@ -579,7 +579,7 @@ function Xn(n, i) {
579
579
  },
580
580
  onClick: Ge,
581
581
  children: /* @__PURE__ */ s(
582
- $e,
582
+ De,
583
583
  {
584
584
  in: l,
585
585
  timeout: 400,
@@ -636,8 +636,8 @@ T.useModal = Rn;
636
636
  });
637
637
  });
638
638
  T.destroyAll = () => {
639
- for (; D.length; ) {
640
- const n = D.pop();
639
+ for (; $.length; ) {
640
+ const n = $.pop();
641
641
  n && n();
642
642
  }
643
643
  };