@unicom-cloud/ui 0.8.78 → 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 (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 +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/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 +1 -1
  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 +24 -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 +261 -298
  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
package/select/Select.js CHANGED
@@ -2,26 +2,25 @@ import "react/jsx-runtime";
2
2
  import "lodash/isArray";
3
3
  import "lodash/isFunction";
4
4
  import "react";
5
- import { O as j, S as k } from "../chunk/Cwm8LL5p.js";
6
- import "../chunk/CNcLypMY.js";
5
+ import { O as h, S as j } from "../chunk/B4mZh-RK.js";
6
+ import "../chunk/CQvM33Vg.js";
7
7
  import "../chunk/B4YRLi8r.js";
8
8
  import "../chunk/BFTV6myl.js";
9
- import "../chunk/DeV0v__J.js";
9
+ import "../chunk/CXPOj2uy.js";
10
10
  import "../select-view/index.js";
11
11
  import "../trigger/index.js";
12
- import "../chunk/CUFsOxJ2.js";
12
+ import "@unicom-cloud/utils/class-name";
13
13
  import "../chunk/Dh7Osrvr.js";
14
- import "../chunk/DAAff-FT.js";
15
- import "../chunk/BrOW642m.js";
14
+ import "../chunk/ClM74To2.js";
15
+ import "@unicom-cloud/utils/constant/keyboardCode";
16
16
  import "../chunk/BKKEev13.js";
17
17
  import "../chunk/CIRG541s.js";
18
18
  import "../utils/warning.js";
19
19
  import "../virtual-list/VirtualList.js";
20
- import { default as v } from "./OptGroup.js";
21
- import "../chunk/C0pRaDCf.js";
22
- import "lodash/isPlainObject.js";
20
+ import { default as q } from "./OptGroup.js";
21
+ import "@unicom-cloud/utils/is";
23
22
  export {
24
- j as SelectOption,
25
- v as SelectOptionGroup,
26
- k as default
23
+ h as SelectOption,
24
+ q as SelectOptionGroup,
25
+ j as default
27
26
  };
package/select/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as o } from "../chunk/Cwm8LL5p.js";
2
- import { O as r } from "../chunk/Cwm8LL5p.js";
1
+ import { S as o } from "../chunk/B4mZh-RK.js";
2
+ import { O as r } from "../chunk/B4mZh-RK.js";
3
3
  import { default as f } from "./OptGroup.js";
4
4
  export {
5
5
  r as SelectOption,
package/select/util.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import "../chunk/C0pRaDCf.js";
2
+ import "@unicom-cloud/utils/is";
3
3
  import "lodash/get";
4
4
  import "lodash/isArray";
5
5
  import "lodash/isNil";
@@ -9,12 +9,12 @@ import "lodash/isString";
9
9
  import "react";
10
10
  import "../chunk/CftuXmo_.js";
11
11
  import "../chunk/B7M-FGia.js";
12
- import { B as c, D as d, F as v, H as D, I as E, J as O } from "../chunk/Cwm8LL5p.js";
12
+ import { a5 as c, a6 as d, a7 as v, a8 as E, a9 as O, aa as S } from "../chunk/B4mZh-RK.js";
13
13
  export {
14
14
  c as flatChildren,
15
15
  d as getValidValue,
16
16
  v as isEmpty,
17
- D as isSelectOptGroup,
18
- E as isSelectOption,
19
- O as preventDefaultEvent
17
+ E as isSelectOptGroup,
18
+ O as isSelectOption,
19
+ S as preventDefaultEvent
20
20
  };
@@ -3,42 +3,40 @@ import We, { useRef as ue, useContext as qe, useState as de, useEffect as Xe, us
3
3
  import Ze from "@unicom-cloud/icons/IconUiClose";
4
4
  import eo from "@unicom-cloud/icons/IconUiDown";
5
5
  import oo from "@unicom-cloud/icons/IconUiLoading";
6
- import ro from "@unicom-cloud/icons/IconUiSearch";
7
- import no from "lodash/isFunction";
8
- import pe from "lodash/isUndefined";
9
- import { a as to, I as so } from "../chunk/CNcLypMY.js";
6
+ import no from "@unicom-cloud/icons/IconUiSearch";
7
+ import ro from "lodash/isFunction";
8
+ import fe from "lodash/isUndefined";
9
+ import { a as to, I as so } from "../chunk/CQvM33Vg.js";
10
10
  import { u as ao } from "../chunk/CQ_WOOmf.js";
11
- import { u as lo } from "../chunk/BsY85n3_.js";
12
- import co from "../input-tag/InputTag.js";
11
+ import { u as co } from "../chunk/BsY85n3_.js";
12
+ import lo from "../input-tag/InputTag.js";
13
13
  import io from "../input/InputElement.js";
14
14
  import uo from "../popover/index.js";
15
- import fe from "../tag/index.js";
16
- import { p as k } from "../chunk/CUFsOxJ2.js";
15
+ import pe from "../tag/index.js";
16
+ import k from "@unicom-cloud/utils/class-name";
17
17
  import { f as me } from "../chunk/CftuXmo_.js";
18
- import { i as po } from "../chunk/CYhxqVkn.js";
19
- import "../chunk/DAAff-FT.js";
20
- import { e as fo, t as mo } from "../chunk/BrOW642m.js";
21
- import "../chunk/C0pRaDCf.js";
22
- import C from "lodash/isPlainObject.js";
23
- import he from "lodash/isNumber.js";
24
- const J = "__pqb_value_tag_placeholder", I = {
18
+ import { i as fo } from "../chunk/CYhxqVkn.js";
19
+ import "../chunk/ClM74To2.js";
20
+ import { Enter as po, Backspace as mo } from "@unicom-cloud/utils/constant/keyboardCode";
21
+ import { isPlainObject as C, isNumber as he } from "@unicom-cloud/utils/is";
22
+ const J = "__pqb_value_tag_placeholder", w = {
25
23
  BEFORE: 0,
26
24
  EDITING: 1,
27
25
  NONE: 2
28
- }, Vo = We.forwardRef(function(v, ge) {
26
+ }, _o = We.forwardRef(function(N, ge) {
29
27
  const {
30
28
  id: be,
31
29
  style: xe,
32
30
  className: Ce,
33
- size: ve,
34
- bordered: we,
35
- allowClear: Ie,
36
- allowCreate: Ne,
31
+ size: Ne,
32
+ bordered: ve,
33
+ allowClear: we,
34
+ allowCreate: Ie,
37
35
  status: Te,
38
36
  loading: $e,
39
37
  disabled: h,
40
38
  animation: Se,
41
- prefixCls: r,
39
+ prefixCls: n,
42
40
  suffixIcon: Q,
43
41
  arrowIcon: Y,
44
42
  removeIcon: ye,
@@ -47,9 +45,9 @@ const J = "__pqb_value_tag_placeholder", I = {
47
45
  renderText: ee,
48
46
  value: g,
49
47
  inputValue: F,
50
- popupVisible: f,
51
- maxTagCount: l,
52
- isMultiple: w,
48
+ popupVisible: p,
49
+ maxTagCount: c,
50
+ isMultiple: v,
53
51
  isEmptyValue: O,
54
52
  prefix: R,
55
53
  ariaControls: Pe,
@@ -62,33 +60,33 @@ const J = "__pqb_value_tag_placeholder", I = {
62
60
  onPaste: De,
63
61
  onClear: Fe,
64
62
  onFocus: U,
65
- onBlur: V,
66
- onRemoveCheckedItem: z,
67
- onSort: B,
63
+ onBlur: B,
64
+ onRemoveCheckedItem: V,
65
+ onSort: z,
68
66
  ...Oe
69
- } = v, N = ue(null), m = ue(null), { size: Re, getPrefixCls: re } = qe(to), [Me, ne] = de(I.NONE), [L, te] = de(!1), Ae = ao(), T = "showSearch" in v ? v.showSearch : w, p = T || Ne, S = ve || Re, j = L || f, _e = C(T) && T.retainInputValue, b = !w && g !== void 0 ? ee(g).text : "", H = (e) => {
67
+ } = N, I = ue(null), m = ue(null), { size: Re, getPrefixCls: ne } = qe(to), [Me, re] = de(w.NONE), [L, te] = de(!1), Ae = ao(), T = "showSearch" in N ? N.showSearch : v, f = T || Ie, S = Ne || Re, j = L || p, _e = C(T) && T.retainInputValue, b = !v && g !== void 0 ? ee(g).text : "", H = (e) => {
70
68
  var o;
71
69
  (o = e == null ? void 0 : e.preventDefault) == null || o.call(e);
72
70
  }, G = (e) => {
73
- const o = p ? N.current : m.current;
71
+ const o = f ? I.current : m.current;
74
72
  o && (e === "focus" ? o.focus() : o.blur());
75
73
  }, y = (e, o) => {
76
- p && o.target === m.current || (e === "focus" ? (te(!0), U == null || U(o)) : (te(!1), V == null || V(o)));
74
+ f && o.target === m.current || (e === "focus" ? (te(!0), U == null || U(o)) : (te(!1), B == null || B(o)));
77
75
  }, se = (e) => {
78
- if (p && e.currentTarget === m.current)
76
+ if (f && e.currentTarget === m.current)
79
77
  return;
80
- e.key === fo.key && e.preventDefault(), A == null || A(e);
78
+ e.key === po.key && e.preventDefault(), A == null || A(e);
81
79
  };
82
80
  Xe(() => {
83
- G(f ? "focus" : "blur"), p && ne(f ? I.BEFORE : I.NONE);
84
- }, [f]), Je(ge, () => ({
81
+ G(p ? "focus" : "blur"), f && re(p ? w.BEFORE : w.NONE);
82
+ }, [p]), Je(ge, () => ({
85
83
  dom: m.current,
86
84
  getRootDOMNode: () => m.current,
87
85
  focus: G.bind(null, "focus"),
88
86
  blur: G.bind(null, "blur"),
89
87
  getWidth: () => m.current && m.current.clientWidth
90
88
  }));
91
- const Ue = "arrowIcon" in v ? Y === null ? null : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: Y }) : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Ve = $e ? /* @__PURE__ */ t("span", { className: `${r}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Q ? /* @__PURE__ */ t("span", { className: `${r}-suffix-icon`, children: Q }) : v.showSearch && f ? /* @__PURE__ */ t("div", { className: `${r}-search-icon`, children: /* @__PURE__ */ t(ro, {}) }) : Ue, i = {
89
+ const Ue = "arrowIcon" in N ? Y === null ? null : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: Y }) : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Be = $e ? /* @__PURE__ */ t("span", { className: `${n}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Q ? /* @__PURE__ */ t("span", { className: `${n}-suffix-icon`, children: Q }) : N.showSearch && p ? /* @__PURE__ */ t("div", { className: `${n}-search-icon`, children: /* @__PURE__ */ t(no, {}) }) : Ue, i = {
92
90
  paste: De,
93
91
  keyDown: se,
94
92
  focus: (e) => {
@@ -98,77 +96,77 @@ const J = "__pqb_value_tag_placeholder", I = {
98
96
  e.stopPropagation(), y("blur", e);
99
97
  },
100
98
  change: (e, o) => {
101
- ne(I.EDITING), _ == null || _(e, o);
99
+ re(w.EDITING), _ == null || _(e, o);
102
100
  }
103
- }, ze = () => {
101
+ }, Ve = () => {
104
102
  let e;
105
103
  switch (Me) {
106
- case I.BEFORE:
104
+ case w.BEFORE:
107
105
  e = F || (_e ? b : "");
108
106
  break;
109
- case I.EDITING:
107
+ case w.EDITING:
110
108
  e = F || "";
111
109
  break;
112
110
  default:
113
111
  e = b;
114
112
  break;
115
113
  }
116
- const o = !!(j && p || O), s = {
114
+ const o = !!(j && f || O), s = {
117
115
  style: { width: "100%" },
118
116
  // _inputValue after renderText(value) may be rich text, but the value of <input> cannot be object
119
117
  value: o && typeof e != "object" ? e : "",
120
118
  // Allow placeholder to display the selected value first when searching
121
- placeholder: p && b && typeof b != "object" ? b : Z
119
+ placeholder: f && b && typeof b != "object" ? b : Z
122
120
  };
123
- return p ? (s.onPaste = i.paste, s.onKeyDown = i.keyDown, s.onFocus = i.focus, s.onBlur = i.blur, s.onChange = i.change) : (s.tabIndex = -1, s.style.pointerEvents = "none"), /* @__PURE__ */ E("span", { className: `${r}-view-selector`, children: [
121
+ return f ? (s.onPaste = i.paste, s.onKeyDown = i.keyDown, s.onFocus = i.focus, s.onBlur = i.blur, s.onChange = i.change) : (s.tabIndex = -1, s.style.pointerEvents = "none"), /* @__PURE__ */ E("span", { className: `${n}-view-selector`, children: [
124
122
  /* @__PURE__ */ t(
125
123
  io,
126
124
  {
127
125
  "aria-hidden": !o || void 0,
128
- ref: N,
126
+ ref: I,
129
127
  disabled: h,
130
- className: k(`${r}-view-input`, {
131
- [`${r}-hidden`]: !o
128
+ className: k(`${n}-view-input`, {
129
+ [`${n}-hidden`]: !o
132
130
  }),
133
131
  autoComplete: "off",
134
132
  ...s
135
133
  }
136
134
  ),
137
- o ? /* @__PURE__ */ t("span", { className: `${r}-view-value-mirror`, children: me(s.value ? e : s.placeholder) }) : null,
135
+ o ? /* @__PURE__ */ t("span", { className: `${n}-view-value-mirror`, children: me(s.value ? e : s.placeholder) }) : null,
138
136
  /* @__PURE__ */ t(
139
137
  "span",
140
138
  {
141
139
  style: o ? { display: "none" } : {},
142
- className: `${r}-view-value`,
140
+ className: `${n}-view-value`,
143
141
  children: me(O ? s.placeholder : e)
144
142
  }
145
143
  )
146
144
  ] });
147
- }, K = lo(ee), ae = C(l) ? l.count : l, le = (e) => {
145
+ }, K = co(ee), ae = C(c) ? c.count : c, ce = (e) => {
148
146
  const o = K(e);
149
147
  return { value: e, label: o.text, closable: !o.disabled };
150
148
  }, W = Qe(() => {
151
- if (!w)
149
+ if (!v)
152
150
  return [];
153
- const e = pe(g) ? [] : [].concat(g);
154
- return (he(ae) ? e.slice(0, ae) : e).map((P) => le(P));
155
- }, [g, w, l, K]), Be = () => {
156
- const e = C(l) ? l.count : l, o = C(l) && l.showPopover, s = re("input-tag"), P = (n) => C(l) && no(l.render) ? l.render(n) : e === "responsive" ? /* @__PURE__ */ E(
157
- fe,
151
+ const e = fe(g) ? [] : [].concat(g);
152
+ return (he(ae) ? e.slice(0, ae) : e).map((P) => ce(P));
153
+ }, [g, v, c, K]), ze = () => {
154
+ const e = C(c) ? c.count : c, o = C(c) && c.showPopover, s = ne("input-tag"), P = (r) => C(c) && ro(c.render) ? c.render(r) : e === "responsive" ? /* @__PURE__ */ E(
155
+ pe,
158
156
  {
159
157
  className: `${s}-tag`,
160
158
  children: [
161
159
  "+",
162
- n,
160
+ r,
163
161
  "..."
164
162
  ]
165
163
  },
166
164
  J
167
- ) : `+${n}...`, x = pe(g) ? [] : [].concat(g), He = () => {
168
- for (let n = x.length - 1; n >= 0; n--) {
169
- const c = x[n];
170
- if (!K(c).disabled)
171
- return n;
165
+ ) : `+${r}...`, x = fe(g) ? [] : [].concat(g), He = () => {
166
+ for (let r = x.length - 1; r >= 0; r--) {
167
+ const l = x[r];
168
+ if (!K(l).disabled)
169
+ return r;
172
170
  }
173
171
  return -1;
174
172
  }, q = {
@@ -177,10 +175,10 @@ const J = "__pqb_value_tag_placeholder", I = {
177
175
  onFocus: i.focus,
178
176
  onBlur: i.blur,
179
177
  onInputChange: i.change,
180
- onRemove: (n, c, u) => {
178
+ onRemove: (r, l, u) => {
181
179
  const $ = u.key;
182
180
  let a = -1;
183
- $ === mo.key && (a = He()) !== -1 && (n = x[a], c = a), l && Ae(), z == null || z(n, c, u);
181
+ $ === mo.key && (a = He()) !== -1 && (r = x[a], l = a), c && Ae(), V == null || V(r, l, u);
184
182
  }
185
183
  }, Ge = {
186
184
  suffix: null,
@@ -191,17 +189,17 @@ const J = "__pqb_value_tag_placeholder", I = {
191
189
  labelInValue: !1
192
190
  }, ie = (() => {
193
191
  if (he(e)) {
194
- const n = x.length - e;
195
- if (n > 0) {
196
- const c = {
197
- label: P(n),
192
+ const r = x.length - e;
193
+ if (r > 0) {
194
+ const l = {
195
+ label: P(r),
198
196
  closable: !1,
199
197
  // InputTag needs to extract value as key
200
198
  value: J
201
199
  };
202
200
  if (o) {
203
201
  const u = x.map((a, d) => ({ val: a, index: d })).slice(e).map((a) => {
204
- const d = le(a.val);
202
+ const d = ce(a.val);
205
203
  return M ? M(
206
204
  {
207
205
  ...d,
@@ -210,9 +208,9 @@ const J = "__pqb_value_tag_placeholder", I = {
210
208
  }
211
209
  },
212
210
  a.index,
213
- W.concat(c)
211
+ W.concat(l)
214
212
  ) : /* @__PURE__ */ Ye(
215
- fe,
213
+ pe,
216
214
  {
217
215
  ...d,
218
216
  key: d.value,
@@ -222,7 +220,7 @@ const J = "__pqb_value_tag_placeholder", I = {
222
220
  d.label
223
221
  );
224
222
  }), $ = C(o) ? o : {};
225
- c.label = /* @__PURE__ */ t(
223
+ l.label = /* @__PURE__ */ t(
226
224
  uo,
227
225
  {
228
226
  ...$,
@@ -235,20 +233,20 @@ const J = "__pqb_value_tag_placeholder", I = {
235
233
  children: u
236
234
  }
237
235
  ),
238
- children: c.label
236
+ children: l.label
239
237
  }
240
238
  );
241
239
  }
242
- return c;
240
+ return l;
243
241
  }
244
242
  }
245
243
  })(), Ke = ie ? W.concat(ie) : W;
246
244
  return /* @__PURE__ */ t(
247
- co,
245
+ lo,
248
246
  {
249
247
  ...Ge,
250
- className: j ? `${re("input-tag")}-focus` : "",
251
- ref: N,
248
+ className: j ? `${ne("input-tag")}-focus` : "",
249
+ ref: I,
252
250
  disabled: h,
253
251
  dragToSort: oe,
254
252
  disableInput: !T,
@@ -257,7 +255,7 @@ const J = "__pqb_value_tag_placeholder", I = {
257
255
  value: Ke,
258
256
  inputValue: F,
259
257
  size: S,
260
- tagClassName: `${r}-tag`,
258
+ tagClassName: `${n}-tag`,
261
259
  renderTag: M,
262
260
  icon: { removeIcon: ye },
263
261
  maxTagCount: e === "responsive" ? {
@@ -265,45 +263,45 @@ const J = "__pqb_value_tag_placeholder", I = {
265
263
  render: P,
266
264
  popoverProps: C(o) ? o : o ? {} : { disabled: !0 }
267
265
  } : void 0,
268
- onChange: (n, c) => {
269
- if (B && c === "sort") {
270
- const u = n.indexOf(
266
+ onChange: (r, l) => {
267
+ if (z && l === "sort") {
268
+ const u = r.indexOf(
271
269
  J
272
270
  );
273
271
  if (u > -1) {
274
- const $ = n.slice(0, u), a = n.slice(u + 1), d = x.slice(
275
- n.length - 1 - x.length
272
+ const $ = r.slice(0, u), a = r.slice(u + 1), d = x.slice(
273
+ r.length - 1 - x.length
276
274
  );
277
- B($.concat(d, a));
275
+ z($.concat(d, a));
278
276
  } else
279
- B(n);
277
+ z(r);
280
278
  }
281
279
  },
282
280
  ...q
283
281
  }
284
282
  );
285
- }, ce = Te || (v.error ? "error" : void 0), Le = !h && !O && Ie ? /* @__PURE__ */ t(
283
+ }, le = Te || (N.error ? "error" : void 0), Le = !h && !O && we ? /* @__PURE__ */ t(
286
284
  so,
287
285
  {
288
286
  size: S,
289
- className: `${r}-clear-icon`,
287
+ className: `${n}-clear-icon`,
290
288
  onClick: Fe,
291
289
  onMouseDown: H,
292
290
  children: D ?? /* @__PURE__ */ t(Ze, {})
293
291
  },
294
292
  "clearIcon"
295
293
  ) : null, je = k(
296
- r,
297
- `${r}-${w ? "multiple" : "single"}`,
294
+ n,
295
+ `${n}-${v ? "multiple" : "single"}`,
298
296
  {
299
- [`${r}-show-search`]: T,
300
- [`${r}-open`]: f,
301
- [`${r}-size-${S}`]: S,
302
- [`${r}-focused`]: j,
303
- [`${r}-${ce}`]: ce,
304
- [`${r}-disabled`]: h,
305
- [`${r}-no-border`]: !we,
306
- [`${r}-rtl`]: Ee
297
+ [`${n}-show-search`]: T,
298
+ [`${n}-open`]: p,
299
+ [`${n}-size-${S}`]: S,
300
+ [`${n}-focused`]: j,
301
+ [`${n}-${le}`]: le,
302
+ [`${n}-disabled`]: h,
303
+ [`${n}-no-border`]: !ve,
304
+ [`${n}-rtl`]: Ee
307
305
  },
308
306
  Ce
309
307
  );
@@ -313,10 +311,10 @@ const J = "__pqb_value_tag_placeholder", I = {
313
311
  role: "combobox",
314
312
  "aria-haspopup": "listbox",
315
313
  "aria-autocomplete": "list",
316
- "aria-expanded": f,
314
+ "aria-expanded": p,
317
315
  "aria-disabled": h,
318
316
  "aria-controls": Pe,
319
- ...po(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
317
+ ...fo(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
320
318
  ...ke,
321
319
  ref: m,
322
320
  tabIndex: h ? -1 : 0,
@@ -325,37 +323,37 @@ const J = "__pqb_value_tag_placeholder", I = {
325
323
  className: je,
326
324
  onKeyDown: se,
327
325
  onFocus: (e) => {
328
- !h && !oe && (p ? N.current && N.current.focus() : y("focus", e));
326
+ !h && !oe && (f ? I.current && I.current.focus() : y("focus", e));
329
327
  },
330
328
  onBlur: (e) => y("blur", e),
331
329
  children: /* @__PURE__ */ E(
332
330
  "div",
333
331
  {
334
332
  title: typeof b == "string" ? b : void 0,
335
- className: k(`${r}-view`, {
336
- [`${r}-view-with-prefix`]: R
333
+ className: k(`${n}-view`, {
334
+ [`${n}-view-with-prefix`]: R
337
335
  }),
338
- onClick: (e) => f && p && e.stopPropagation(),
336
+ onClick: (e) => p && f && e.stopPropagation(),
339
337
  children: [
340
338
  R && /* @__PURE__ */ t(
341
339
  "div",
342
340
  {
343
341
  "aria-hidden": "true",
344
- className: k(`${r}-prefix`),
342
+ className: k(`${n}-prefix`),
345
343
  onMouseDown: (e) => L && H(e),
346
344
  children: R
347
345
  }
348
346
  ),
349
- w ? Be() : ze(),
347
+ v ? ze() : Ve(),
350
348
  /* @__PURE__ */ E(
351
349
  "div",
352
350
  {
353
351
  "aria-hidden": "true",
354
- className: `${r}-suffix`,
352
+ className: `${n}-suffix`,
355
353
  onMouseDown: (e) => L && H(e),
356
354
  children: [
357
355
  Le,
358
- Ve
356
+ Be
359
357
  ]
360
358
  }
361
359
  )
@@ -366,5 +364,5 @@ const J = "__pqb_value_tag_placeholder", I = {
366
364
  );
367
365
  });
368
366
  export {
369
- Vo as default
367
+ _o as default
370
368
  };
@@ -1,47 +1,46 @@
1
- import { jsx as p, jsxs as N } from "react/jsx-runtime";
1
+ import { jsx as p, jsxs as v } from "react/jsx-runtime";
2
2
  import y, { useRef as V, useImperativeHandle as W } from "react";
3
- import { p as b } from "../chunk/CUFsOxJ2.js";
4
- import "../chunk/DAAff-FT.js";
3
+ import b from "@unicom-cloud/utils/class-name";
4
+ import "../chunk/ClM74To2.js";
5
5
  import { a as x } from "../chunk/ClqoGc3r.js";
6
6
  import C from "./Core.js";
7
- import "../chunk/C0pRaDCf.js";
8
- import S from "lodash/isPlainObject.js";
9
- const R = (a, f) => {
7
+ import { isPlainObject as S } from "@unicom-cloud/utils/is";
8
+ const R = (i, f) => {
10
9
  const {
11
10
  prefixCls: o,
12
11
  id: u,
13
12
  style: h,
14
13
  className: w,
15
- addBefore: i,
14
+ addBefore: s,
16
15
  rtl: A,
17
- renderView: d,
18
- autoWidth: s,
19
- ...v
20
- } = a, l = s ? {
16
+ renderView: l,
17
+ autoWidth: a,
18
+ ...N
19
+ } = i, d = a ? {
21
20
  minWidth: 0,
22
21
  maxWidth: "100%",
23
- ...S(s) ? s : {}
24
- } : null, n = V(null), c = i != null, e = c || !1, t = {
22
+ ...S(a) ? a : {}
23
+ } : null, c = V(null), n = s != null, e = n || !1, t = {
25
24
  id: u,
26
- style: { ...l, width: l ? "auto" : void 0, ...h },
25
+ style: { ...d, width: d ? "auto" : void 0, ...h },
27
26
  className: w
28
- }, m = x(v);
27
+ }, m = x(N);
29
28
  W(
30
29
  f,
31
- () => n.current
30
+ () => c.current
32
31
  );
33
32
  let r = /* @__PURE__ */ p(
34
33
  C,
35
34
  {
36
- ...a,
37
- ref: n,
35
+ ...i,
36
+ ref: c,
38
37
  id: e ? void 0 : t.id,
39
38
  style: e ? void 0 : t.style,
40
39
  className: e ? void 0 : t.className,
41
40
  htmlDataAttributes: e ? {} : m
42
41
  }
43
42
  );
44
- return typeof d == "function" && (r = d(r)), e ? /* @__PURE__ */ N(
43
+ return typeof l == "function" && (r = l(r)), e ? /* @__PURE__ */ v(
45
44
  "div",
46
45
  {
47
46
  ...m,
@@ -54,15 +53,15 @@ const R = (a, f) => {
54
53
  t.className
55
54
  ),
56
55
  children: [
57
- c && /* @__PURE__ */ p("div", { className: `${o}-addbefore`, children: i }),
56
+ n && /* @__PURE__ */ p("div", { className: `${o}-addbefore`, children: s }),
58
57
  r
59
58
  ]
60
59
  }
61
60
  ) : r;
62
- }, j = y.forwardRef(
61
+ }, $ = y.forwardRef(
63
62
  R
64
63
  );
65
- j.displayName = "SelectView";
64
+ $.displayName = "SelectView";
66
65
  export {
67
- j as default
66
+ $ as default
68
67
  };
package/skeleton/Image.js CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { p } from "../chunk/CUFsOxJ2.js";
3
- function f(m) {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import c from "@unicom-cloud/utils/class-name";
3
+ function n(i) {
4
4
  const {
5
5
  style: t,
6
- shape: s = "square",
7
- size: a,
8
- position: i = "left",
6
+ shape: a = "square",
7
+ size: e,
8
+ position: m = "left",
9
9
  className: o,
10
- prefixCls: e
11
- } = m, r = p(
12
- `${e}-image`,
10
+ prefixCls: s
11
+ } = i, l = c(
12
+ `${s}-image`,
13
13
  {
14
- [`${e}-image-${i}`]: i,
15
- [`${e}-image-${s}`]: s,
16
- [`${e}-image-${a}`]: a
14
+ [`${s}-image-${m}`]: m,
15
+ [`${s}-image-${a}`]: a,
16
+ [`${s}-image-${e}`]: e
17
17
  },
18
18
  o
19
19
  );
20
- return /* @__PURE__ */ l("div", { className: r, style: t });
20
+ return /* @__PURE__ */ r("div", { className: l, style: t });
21
21
  }
22
22
  export {
23
- f as default
23
+ n as default
24
24
  };