@unicom-cloud/ui 0.8.112 → 0.8.113

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 (413) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +3 -47
  17. package/Countdown.js +16 -50
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +14 -50
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +1 -1
  25. package/Empty.js +1 -1
  26. package/Flex.js +15 -51
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +16 -51
  35. package/List.js +1 -1
  36. package/Loading.js +14 -50
  37. package/Marquee.js +23 -46
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +1 -1
  41. package/Modal.js +1 -1
  42. package/Notice.js +13 -49
  43. package/Notification.js +1 -1
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +14 -51
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +1 -1
  53. package/Result.js +1 -1
  54. package/RichText.js +12 -13
  55. package/Segmented.js +15 -50
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +1 -1
  58. package/Space.js +15 -51
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +1 -1
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +17 -53
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +1 -1
  72. package/affix/index.js +1 -1
  73. package/alert/index.js +1 -1
  74. package/anchor/Anchor.js +2 -2
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +1 -1
  81. package/badge/index.js +1 -1
  82. package/breadcrumb/index.js +2 -2
  83. package/button/Group.js +1 -1
  84. package/button/index.js +1 -1
  85. package/calendar/index.js +2 -2
  86. package/card/Grid.js +1 -1
  87. package/card/Meta.js +1 -1
  88. package/card/index.js +1 -1
  89. package/carousel/Arrow.js +1 -1
  90. package/carousel/Indicator.js +1 -1
  91. package/carousel/index.js +1 -1
  92. package/cascader/Cascader.js +3 -3
  93. package/cascader/index.js +1 -1
  94. package/cascader/util.js +1 -1
  95. package/checkbox/Checkbox.js +2 -2
  96. package/checkbox/Group.js +2 -2
  97. package/checkbox/GroupBlock.js +2 -2
  98. package/checkbox/index.js +2 -2
  99. package/chunk/{0BhDjhcd.js → 3t4FwEoB.js} +1 -1
  100. package/chunk/{KPBMJlOB.js → BHAu6wbC.js} +1 -1
  101. package/chunk/{DhAvt6tJ.js → Bcl7dWlJ.js} +2 -2
  102. package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
  103. package/chunk/{BfVlSL8A.js → Bzx5BueA.js} +3 -3
  104. package/chunk/CVMFAeSw.js +39 -0
  105. package/chunk/{C1vY8016.js → CYDaUML7.js} +77 -108
  106. package/chunk/{CYssV-zz.js → CbXCgtzv.js} +65 -99
  107. package/chunk/ClNkxEcR.js +154 -0
  108. package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
  109. package/chunk/Cy26_CKq.js +33 -0
  110. package/chunk/{BiZSULcr.js → D0dVE1v1.js} +317 -350
  111. package/chunk/{CtCFA4ht.js → DA5AMZwY.js} +3 -3
  112. package/chunk/{DfbO4QTS.js → DB0hUIM1.js} +1 -1
  113. package/chunk/{DMv8Hn4u.js → De8RLlOK.js} +1 -1
  114. package/chunk/{C3kH2ES3.js → DrYaod6k.js} +1 -1
  115. package/chunk/{CylbdYce.js → DzlfiVe2.js} +1 -1
  116. package/chunk/gJsdBcpG.js +10 -0
  117. package/chunk/{Cx92e1S8.js → yWKJUe_w.js} +3 -3
  118. package/collapse/Collapse.js +1 -1
  119. package/collapse/Item.js +1 -1
  120. package/color-picker/ControlBar.js +1 -1
  121. package/color-picker/InputAlpha.js +1 -1
  122. package/color-picker/InputHex.js +1 -1
  123. package/color-picker/InputRgb.js +1 -1
  124. package/color-picker/Palette.js +1 -1
  125. package/color-picker/Panel.js +2 -2
  126. package/color-picker/index.js +1 -1
  127. package/comment/index.js +1 -1
  128. package/config-provider/ConfigProvider.js +1 -1
  129. package/config-provider/context.js +1 -1
  130. package/config-provider/index.js +2 -2
  131. package/copy/index.js +22 -66
  132. package/countdown/index.js +41 -75
  133. package/date-picker/Picker.js +1 -1
  134. package/date-picker/RangePicker.js +2 -2
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +1 -1
  137. package/details/index.js +46 -82
  138. package/development/index.js +1 -1
  139. package/divider/index.js +1 -1
  140. package/draggable/index.js +1 -1
  141. package/drawer/Drawer.js +1 -1
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +1 -1
  144. package/empty/index.js +1 -1
  145. package/flex/index.js +37 -71
  146. package/form/Form.js +2 -2
  147. package/form/FormItem.js +1 -1
  148. package/form/index.js +1 -1
  149. package/grid/Grid.js +1 -1
  150. package/grid/Item.js +1 -1
  151. package/hooks/index.js +6 -6
  152. package/hooks/useId.js +1 -1
  153. package/hooks/useResizeObserver.js +7 -50
  154. package/hooks/useStateWithPromise.js +1 -1
  155. package/hooks/useWindowSize.js +1 -1
  156. package/icon/index.js +1 -1
  157. package/icon-hover/index.js +1 -1
  158. package/icons/file.js +1 -1
  159. package/image/Image.js +2 -2
  160. package/image/ImagePreview.js +17 -52
  161. package/image/ImagePreviewArrow.js +1 -1
  162. package/image/ImagePreviewGroup.js +1 -1
  163. package/image/index.js +1 -1
  164. package/index.js +379 -378
  165. package/input/Button.js +1 -1
  166. package/input/Group.js +1 -1
  167. package/input/Input.js +1 -1
  168. package/input/InputElement.js +1 -1
  169. package/input/Password.js +1 -1
  170. package/input/Search.js +1 -1
  171. package/input/Textarea.js +1 -1
  172. package/input-number/index.js +1 -1
  173. package/input-tag/InputTag.js +1 -1
  174. package/layout/Content.js +1 -1
  175. package/layout/Footer.js +1 -1
  176. package/layout/Header.js +1 -1
  177. package/layout/Sider.js +1 -1
  178. package/layout/index.js +1 -1
  179. package/link/index.js +1 -1
  180. package/liquid-fill/index.js +56 -91
  181. package/list/Item.js +1 -1
  182. package/list/Meta.js +1 -1
  183. package/list/index.js +1 -1
  184. package/loading/index.js +26 -62
  185. package/marquee/index.js +70 -93
  186. package/marquee-/index.js +73 -96
  187. package/mentions/index.js +1 -1
  188. package/menu/Menu.js +3 -3
  189. package/menu/OverflowWrap.js +1 -1
  190. package/menu/index.js +2 -2
  191. package/message/index.js +1 -1
  192. package/message/useMessage.js +1 -1
  193. package/modal/Confirm.js +2 -2
  194. package/modal/Modal.js +2 -2
  195. package/modal/index.js +2 -2
  196. package/notice/index.js +13 -49
  197. package/notification/index.js +1 -1
  198. package/notification/useNotification.js +1 -1
  199. package/overflow-ellipsis/OverflowItem.js +1 -1
  200. package/overflow-ellipsis/index.js +1 -1
  201. package/package.json +1 -1
  202. package/page-header/index.js +1 -1
  203. package/pagination/PageItem.js +1 -1
  204. package/pagination/PageJumper.js +1 -1
  205. package/pagination/PageOption.js +1 -1
  206. package/pagination/Pagination.js +1 -1
  207. package/picker/Input.js +1 -1
  208. package/picker/InputRange.js +1 -1
  209. package/popconfirm/index.js +1 -1
  210. package/popover/index.js +1 -1
  211. package/progress/CircleProgress.js +1 -1
  212. package/progress/index.js +1 -1
  213. package/qr-code/index.js +26 -63
  214. package/radio/Group.js +2 -2
  215. package/radio/GroupBlock.js +2 -2
  216. package/radio/Radio.js +2 -2
  217. package/radio/index.js +2 -2
  218. package/rate/index.js +1 -1
  219. package/resize-box/ResizeTrigger.js +1 -1
  220. package/resize-box/Split.js +1 -1
  221. package/resize-box/SplitGroup.js +1 -1
  222. package/resize-box/index.js +1 -1
  223. package/result/index.js +1 -1
  224. package/rich-text/index.js +6332 -77
  225. package/rich-text/lib/diff/index.d.ts +21 -0
  226. package/row-col/Col-.js +1 -1
  227. package/row-col/Col.js +1 -1
  228. package/row-col/Row.js +1 -1
  229. package/segmented/index.js +118 -153
  230. package/select/Option.js +44 -41
  231. package/select/Select.js +10 -12
  232. package/select-view/Core.js +1 -1
  233. package/skeleton/index.js +1 -1
  234. package/slider/Button.js +1 -1
  235. package/slider/index.js +1 -1
  236. package/space/index.js +23 -59
  237. package/spin/DotLoading.js +1 -1
  238. package/spin/index.js +1 -1
  239. package/splitter/Panel.js +1 -1
  240. package/splitter/SplitBar.js +2 -2
  241. package/splitter/Splitter.js +2 -2
  242. package/statistic/index.js +1 -1
  243. package/steps/index.js +1 -1
  244. package/style.css +1 -1
  245. package/switch/index.js +1 -1
  246. package/table/Table.js +14 -53
  247. package/table/index.js +77 -120
  248. package/tabs/Tab.js +3 -3
  249. package/tabs/TabContent.js +2 -2
  250. package/tabs/TabPane.js +1 -1
  251. package/tabs/index.js +2 -2
  252. package/tag/index.js +1 -1
  253. package/time-picker/Picker.js +1 -1
  254. package/time-picker/TimePicker.js +1 -1
  255. package/timeline/Item.js +1 -1
  256. package/timeline/Timeline.js +1 -1
  257. package/tooltip/index.js +1 -1
  258. package/tour/index.js +80 -116
  259. package/transfer/Item.js +2 -2
  260. package/transfer/List.js +2 -2
  261. package/transfer/index.js +1 -1
  262. package/tree/Animation.js +2 -2
  263. package/tree/Node.js +3 -3
  264. package/tree/NodeList.js +1 -1
  265. package/tree/Tree.js +2 -2
  266. package/tree/index.js +1 -1
  267. package/tree-select/Select.js +3 -3
  268. package/tree-select/index.js +1 -1
  269. package/trigger/index.js +1 -1
  270. package/types/common/hooks/src/use-theme/index.d.ts +2 -2
  271. package/types/common/hooks/useStateWithPromise.d.ts +1 -1
  272. package/types/common/utils/dom.d.ts +12 -0
  273. package/types/pc/carousel/interface.d.ts +2 -2
  274. package/types/pc/color-picker/Panel.d.ts +1 -1
  275. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  276. package/types/pc/index.d.ts +1 -1
  277. package/types/pc/list/interface.d.ts +2 -2
  278. package/types/pc/menu/context.d.ts +1 -1
  279. package/types/pc/rich-text/index.d.ts +7 -4
  280. package/types/pc/rich-text/interface.d.ts +3 -2
  281. package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
  282. package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
  283. package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -0
  284. package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
  285. package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
  286. package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
  287. package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
  288. package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
  289. package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
  290. package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
  291. package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
  292. package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
  293. package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
  294. package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
  295. package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
  296. package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
  297. package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
  298. package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
  299. package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
  300. package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
  301. package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
  302. package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
  303. package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
  304. package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
  305. package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
  306. package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
  307. package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
  308. package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
  309. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
  310. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
  311. package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
  312. package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
  313. package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
  314. package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
  315. package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
  316. package/types/pc/utils/date.d.ts +1 -0
  317. package/types/pc/utils/index.d.ts +2 -2
  318. package/typography/Base.js +1 -1
  319. package/typography/Ellipsis.js +70 -114
  320. package/typography/Operations.js +29 -74
  321. package/typography/Paragraph.js +1 -1
  322. package/typography/Typography.js +1 -1
  323. package/upload/TriggerNode.js +1 -1
  324. package/upload/Upload.js +1 -1
  325. package/utils/contextHolder.js +1 -1
  326. package/utils/date.js +1 -0
  327. package/utils/index.js +70 -70
  328. package/verification-code/VerificationCode.js +1 -1
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +218 -217
  331. package/watermark/Watermark.js +1 -1
  332. package/chunk/BCmfDFV4.js +0 -4237
  333. package/chunk/BG6j6Ct7.js +0 -30
  334. package/chunk/C5CbL5ku.js +0 -56
  335. package/chunk/DsuIQH0F.js +0 -200
  336. package/chunk/vP3qfmKM.js +0 -84
  337. package/rich-text/core.js +0 -11
  338. package/rich-text/rich.js +0 -1347
  339. package/types/common/utils/index.d.ts +0 -47
  340. package/types/common/utils/keyboardCode.d.ts +0 -4
  341. package/types/common/utils/math.d.ts +0 -1
  342. package/types/common/utils/reactTransitionGroup.d.ts +0 -1
  343. package/types/common/utils/uuid.d.ts +0 -1
  344. package/types/common/utils/validate.d.ts +0 -1
  345. package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
  346. package/types/pc/rich-text/delta/Op.d.ts +0 -11
  347. package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
  348. package/types/pc/rich-text/delta/index.d.ts +0 -45
  349. package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
  350. package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
  351. package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
  352. package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
  353. package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
  354. package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
  355. package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
  356. package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +0 -0
  357. package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
  358. package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
  359. package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +0 -0
  360. package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
  361. package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
  362. package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
  363. package/types/pc/rich-text/{core → lib/core}/theme.d.ts +0 -0
  364. package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
  365. package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
  366. package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
  367. package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
  368. package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
  369. package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
  370. package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
  371. package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
  372. package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
  373. package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
  374. package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
  375. package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
  376. package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
  377. package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
  378. package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
  379. package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
  380. package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
  381. package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
  382. package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
  383. package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
  384. package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
  385. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
  386. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
  387. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
  388. package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
  389. package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
  390. package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
  391. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
  392. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
  393. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
  394. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
  395. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
  396. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +0 -0
  397. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
  398. package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
  399. package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
  400. package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
  401. package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
  402. package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
  403. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
  404. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
  405. package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
  406. package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
  407. /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
  408. /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
  409. /package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +0 -0
  410. /package/types/pc/rich-text/{themes → lib/themes}/pqb.d.ts +0 -0
  411. /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
  412. /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
  413. /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
@@ -0,0 +1,21 @@
1
+ export type Diff = [-1 | 0 | 1, string];
2
+
3
+ export interface CursorInfo {
4
+ oldRange: { index: number; length: number };
5
+ newRange: { index: number; length: number };
6
+ }
7
+
8
+ export const enum ChangeType {
9
+ DELETE = -1,
10
+ INSERT = 1,
11
+ EQUAL = 0,
12
+ }
13
+
14
+ declare function diff(
15
+ text1: string,
16
+ text2: string,
17
+ cursorPos?: number | CursorInfo,
18
+ cleanup?: boolean,
19
+ ): Diff[];
20
+
21
+ export default diff;
package/row-col/Col-.js CHANGED
@@ -3,7 +3,7 @@ import G from "lodash/isArray";
3
3
  import H from "lodash/isNumber";
4
4
  import T from "lodash/isPlainObject";
5
5
  import { forwardRef as q, useContext as j, useMemo as D } from "react";
6
- import { a as I } from "../chunk/C1vY8016.js";
6
+ import { a as I } from "../chunk/CYDaUML7.js";
7
7
  import { COLS as J } from "../constant/index.js";
8
8
  import { u as K } from "../chunk/FgWHhRFz.js";
9
9
  import Q from "@unicom-cloud/utils/class-name";
package/row-col/Col.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
2
  import { forwardRef as U, useContext as E, useMemo as x, useEffect as W } from "react";
3
- import { a as X } from "../chunk/C1vY8016.js";
3
+ import { a as X } from "../chunk/CYDaUML7.js";
4
4
  import { COLS as b } from "../constant/index.js";
5
5
  import { u as Y } from "../chunk/FgWHhRFz.js";
6
6
  import { useResponsive as Z, isResponsiveValue as ee } from "../hooks/useResponsiveState.js";
package/row-col/Row.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useContext as h, useEffect as v } from "react";
3
- import { a as P } from "../chunk/C1vY8016.js";
3
+ import { a as P } from "../chunk/CYDaUML7.js";
4
4
  import { u as j } from "../chunk/FgWHhRFz.js";
5
5
  import { useResponsiveState as c } from "../hooks/useResponsiveState.js";
6
6
  import z from "@unicom-cloud/utils/class-name";
@@ -1,66 +1,31 @@
1
- import { jsx as h, jsxs as H, Fragment as ho } from "react/jsx-runtime";
2
- import { forwardRef as yo, useContext as zo, useMemo as xo, useState as vo, useRef as L, useEffect as K, useImperativeHandle as wo } from "react";
3
- import { a as So } from "../chunk/C1vY8016.js";
1
+ import { jsx as h, jsxs as H, Fragment as $e } from "react/jsx-runtime";
2
+ import { forwardRef as he, useContext as ye, useMemo as ze, useState as xe, useRef as L, useEffect as K, useImperativeHandle as ve } from "react";
3
+ import { a as we } from "../chunk/CYDaUML7.js";
4
4
  import "../chunk/DsaQZE4X.js";
5
- import "@unicom-cloud/utils/date";
6
- import "@unicom-cloud/utils/case-name";
7
- import M from "@unicom-cloud/utils/class-name";
8
- import "@unicom-cloud/utils/constant/ui";
9
- import "@unicom-cloud/utils/clipboard-copy";
10
- import "../chunk/DS_deHpN.js";
11
- import "../chunk/d1c9z8T1.js";
12
- import "@unicom-cloud/utils/emitter";
13
- import "@unicom-cloud/utils/file/fileToURL";
14
- import "lodash/escapeRegExp";
15
- import "lodash/isArray";
16
- import "lodash/isNumber";
17
- import "lodash/isString";
18
- import "lodash/isFunction";
19
- import "lodash/throttle";
20
- import "lodash/camelCase";
21
- import "lodash/capitalize";
22
- import "lodash/cloneDeep";
23
- import "lodash/debounce";
24
- import "lodash/get";
25
- import "lodash/has";
26
- import "lodash/kebabCase";
27
- import "lodash/merge";
28
- import "lodash/mergeWith";
29
- import "lodash/set";
30
- import "lodash/setWith";
31
- import "lodash/snakeCase";
32
- import "lodash/startCase";
33
- import "lodash/uniq";
34
- import "lodash/upperFirst";
35
- import "@unicom-cloud/utils/math";
36
- import "lodash/isPlainObject";
37
- import "@unicom-cloud/utils/pinyin";
38
- import "../chunk/BJ9_azwQ.js";
39
- import "../chunk/CXrVhA6-.js";
40
- import "@unicom-cloud/utils/file/saveAs";
41
- import "@unicom-cloud/utils/screenfull";
42
- import "@unicom-cloud/utils/constant/ui.js";
43
- import "@unicom-cloud/utils/tinycolor";
44
- import "@unicom-cloud/utils/ui-color";
45
- import "react-is";
46
- import "@unicom-cloud/utils/tree";
47
- import { isString as ko, isNumber as T, isFunction as W } from "@unicom-cloud/utils/is";
48
- import "uuid";
49
- import "../chunk/hc_ufgVf.js";
50
- import "@unicom-cloud/utils/constant/keyboardCode";
51
5
  import "@unicom-cloud/utils/constant/platform";
52
6
  import "../chunk/CdXR6dj7.js";
53
- import { u as Co } from "../chunk/BJeTDXdz.js";
7
+ import { u as Se } from "../chunk/BJeTDXdz.js";
54
8
  import "@unicom-cloud/utils/js-cookie";
55
9
  import "dayjs";
56
- import { u as Io } from "../chunk/DfChiMIE.js";
57
- import "../chunk/DsuIQH0F.js";
10
+ import "lodash/debounce";
11
+ import { u as ke } from "../chunk/DfChiMIE.js";
12
+ import "@unicom-cloud/utils/screenfull";
13
+ import "../chunk/ClNkxEcR.js";
14
+ import "lodash/throttle";
15
+ import "lodash/isPlainObject";
58
16
  import "@unicom-cloud/utils/query-string";
59
17
  import "react-router";
60
18
  import "lodash/isEqualWith";
19
+ import "@unicom-cloud/utils/constant/keyboardCode";
20
+ import "lodash/isNumber";
21
+ import "lodash/merge";
22
+ import "../chunk/d1c9z8T1.js";
61
23
  import "../chunk/RjJoagzL.js";
62
- import { u as No } from "../chunk/FgWHhRFz.js";
24
+ import { u as Ce } from "../chunk/FgWHhRFz.js";
25
+ import "../chunk/CXrVhA6-.js";
63
26
  import "@unicom-cloud/utils/constant";
27
+ import M from "@unicom-cloud/utils/class-name";
28
+ import { isString as Ie, isNumber as T, isFunction as W } from "@unicom-cloud/utils/is";
64
29
  const G = {
65
30
  mini: {
66
31
  root: {
@@ -102,7 +67,7 @@ const G = {
102
67
  padding: "19px"
103
68
  }
104
69
  }
105
- }, Oo = {
70
+ }, Ne = {
106
71
  options: [],
107
72
  size: "medium",
108
73
  mode: "default",
@@ -114,114 +79,114 @@ const G = {
114
79
  keyboardSwitch: !0,
115
80
  animationDuration: 300
116
81
  };
117
- function qo(B, J) {
118
- const { getPrefixCls: Q, componentConfig: X, rtl: k } = zo(So), c = No(
82
+ function Oe(B, J) {
83
+ const { getPrefixCls: Q, componentConfig: X, rtl: k } = ye(we), f = Ce(
119
84
  B,
120
- Oo,
85
+ Ne,
121
86
  X?.Segmented
122
87
  ), {
123
88
  style: Y,
124
89
  className: Z,
125
90
  options: C = [],
126
91
  defaultValue: _,
127
- value: oo,
92
+ value: ee,
128
93
  size: y = "medium",
129
94
  gap: I,
130
95
  mode: z = "default",
131
- disabled: f = !1,
96
+ disabled: m = !1,
132
97
  block: N = !1,
133
- split: eo,
98
+ split: oe,
134
99
  direction: x = "horizontal",
135
100
  showIndicator: O = !0,
136
101
  keyboardSwitch: q = !0,
137
102
  animationDuration: A = 300,
138
103
  name: D,
139
- immediateTrigger: to = !1,
104
+ immediateTrigger: te = !1,
140
105
  onChange: P,
141
- ...io
142
- } = c, R = Co(), e = Q?.("segmented"), ro = x === "vertical", V = z === "pill", U = "value" in c, n = xo(() => C.map((o) => ko(o) || T(o) ? { value: o, label: o } : o), [C]), [no, so] = vo(_), E = L(null), v = L([]), a = U ? oo : no, p = G[y] || G.medium;
143
- function ao() {
144
- let o = I;
145
- return "gap" in c ? o = I : o = p.root.padding, o;
106
+ ...ie
107
+ } = f, R = Se(), o = Q?.("segmented"), ne = x === "vertical", V = z === "pill", U = "value" in f, r = ze(() => C.map((e) => Ie(e) || T(e) ? { value: e, label: e } : e), [C]), [re, se] = xe(_), E = L(null), v = L([]), a = U ? ee : re, d = G[y] || G.medium;
108
+ function ae() {
109
+ let e = I;
110
+ return "gap" in f ? e = I : e = d.root.padding, e;
146
111
  }
147
- const u = ao();
148
- function po() {
149
- const o = {
150
- padding: `0 ${p.option.padding}`,
151
- height: `calc(${p.option.size} - ${p.root.padding} * 2)`
112
+ const u = ae();
113
+ function de() {
114
+ const e = {
115
+ padding: `0 ${d.option.padding}`,
116
+ height: `calc(${d.option.size} - ${d.root.padding} * 2)`
152
117
  };
153
- return V && (o.borderRadius = `calc(${o.height} / 2)`), o;
118
+ return V && (e.borderRadius = `calc(${e.height} / 2)`), e;
154
119
  }
155
- const b = po();
156
- function lo() {
157
- const o = {
120
+ const b = de();
121
+ function pe() {
122
+ const e = {
158
123
  gap: u,
159
- fontSize: p.root.fontSize,
160
- padding: p.root.padding,
124
+ fontSize: d.root.fontSize,
125
+ padding: d.root.padding,
161
126
  ...Y
162
127
  };
163
- if (o["--gap"] = T(u) ? `${u}px` : u, V && (o.borderRadius = `calc(${p.option.size} / 2)`), O) {
164
- b.borderRadius && (o["--before-border-radius"] = b.borderRadius), A && (o["--before-transition-duration"] = `${A}ms`);
165
- const i = n.findIndex((r) => r?.value === a), t = v.current[i];
166
- t && (o["--before-width"] = `${t.offsetWidth}px`, o["--before-height"] = `${t.offsetHeight}px`, ro ? o["--before-top"] = `${t.offsetTop}px` : o["--before-left"] = `${t.offsetLeft}px`);
128
+ if (e["--gap"] = T(u) ? `${u}px` : u, V && (e.borderRadius = `calc(${d.option.size} / 2)`), O) {
129
+ b.borderRadius && (e["--before-border-radius"] = b.borderRadius), A && (e["--before-transition-duration"] = `${A}ms`);
130
+ const i = r.findIndex((n) => n?.value === a), t = v.current[i];
131
+ t && (e["--before-width"] = `${t.offsetWidth}px`, e["--before-height"] = `${t.offsetHeight}px`, ne ? e["--before-top"] = `${t.offsetTop}px` : e["--before-left"] = `${t.offsetLeft}px`);
167
132
  }
168
- return o;
133
+ return e;
169
134
  }
170
- const mo = lo();
171
- function g(o, i, t) {
172
- const r = t || n.find((l) => l.value === o);
173
- U || so(o), W(P) && P(o, r);
135
+ const le = pe();
136
+ function g(e, i, t) {
137
+ const n = t || r.find((l) => l.value === e);
138
+ U || se(e), W(P) && P(e, n);
174
139
  }
175
- function co(o, i, t, r) {
176
- r || f || g(o, i, t);
140
+ function ce(e, i, t, n) {
141
+ n || m || g(e, i, t);
177
142
  }
178
- function fo(o) {
179
- if (o.preventDefault(), !q || f)
143
+ function fe(e) {
144
+ if (e.preventDefault(), !q || m)
180
145
  return;
181
- const i = n.findIndex((d) => d?.value === a);
146
+ const i = r.findIndex((p) => p?.value === a);
182
147
  let t = i;
183
- const r = n.length;
184
- switch (o.key) {
148
+ const n = r.length;
149
+ switch (e.key) {
185
150
  case "ArrowLeft":
186
151
  case "ArrowUp":
187
- t = (i - 1 + r) % r;
152
+ t = (i - 1 + n) % n;
188
153
  break;
189
154
  case "ArrowRight":
190
155
  case "ArrowDown":
191
- t = (i + 1) % r;
156
+ t = (i + 1) % n;
192
157
  break;
193
158
  case "Home":
194
159
  t = 0;
195
160
  break;
196
161
  case "End":
197
- t = r - 1;
162
+ t = n - 1;
198
163
  break;
199
164
  default:
200
165
  return;
201
166
  }
202
- for (; t !== i && n[t]?.disabled; ) {
203
- const d = ["ArrowLeft", "ArrowUp"].includes(o.key) ? -1 : 1;
204
- t = (t + d + r) % r;
167
+ for (; t !== i && r[t]?.disabled; ) {
168
+ const p = ["ArrowLeft", "ArrowUp"].includes(e.key) ? -1 : 1;
169
+ t = (t + p + n) % n;
205
170
  }
206
- const l = n[t], s = l?.value;
171
+ const l = r[t], s = l?.value;
207
172
  s && s !== a && (g(s, t, l), v.current[t]?.focus?.());
208
173
  }
209
- function uo(o, i, t) {
210
- if (!o) return;
174
+ function me(e, i, t) {
175
+ if (!e) return;
211
176
  const {
212
- style: r,
177
+ style: n,
213
178
  className: l,
214
179
  value: s,
215
- label: d,
180
+ label: p,
216
181
  icon: w,
217
- disabled: bo,
182
+ disabled: ue,
218
183
  render: F,
219
- ...go
220
- } = o, m = s === a, $ = bo || f, S = !d && !!w, $o = Object.assign(
184
+ ...be
185
+ } = e, c = s === a, $ = ue || m, S = !p && !!w, ge = Object.assign(
221
186
  {},
222
187
  b,
223
188
  S ? { padding: 0, width: b.height } : {},
224
- r
189
+ n
225
190
  );
226
191
  return /* @__PURE__ */ H(
227
192
  "button",
@@ -229,31 +194,31 @@ function qo(B, J) {
229
194
  ref: (j) => {
230
195
  v.current[i] = j;
231
196
  },
232
- style: $o,
197
+ style: ge,
233
198
  className: M(
234
- `${e}-option`,
235
- `${e}-option-size-${y}`,
236
- `${e}-option-mode-${z}`,
237
- `${e}-option-direction-${x}`,
199
+ `${o}-option`,
200
+ `${o}-option-size-${y}`,
201
+ `${o}-option-mode-${z}`,
202
+ `${o}-option-direction-${x}`,
238
203
  {
239
- [`${e}-option-rtl`]: k,
240
- [`${e}-option-block`]: N,
241
- [`${e}-option-split`]: eo,
242
- [`${e}-option-active`]: m,
243
- [`${e}-option-disabled`]: $
204
+ [`${o}-option-rtl`]: k,
205
+ [`${o}-option-block`]: N,
206
+ [`${o}-option-split`]: oe,
207
+ [`${o}-option-active`]: c,
208
+ [`${o}-option-disabled`]: $
244
209
  },
245
- S ? `${e}-option-icon-only` : `${e}-option-not-icon-only`,
210
+ S ? `${o}-option-icon-only` : `${o}-option-not-icon-only`,
246
211
  l
247
212
  ),
248
213
  disabled: $,
249
214
  role: "radio",
250
- "aria-checked": m,
215
+ "aria-checked": c,
251
216
  "aria-disabled": $,
252
- tabIndex: m ? 0 : -1,
217
+ tabIndex: c ? 0 : -1,
253
218
  onClick: (j) => {
254
- co(s, i, o, $);
219
+ ce(s, i, e, $);
255
220
  },
256
- ...go,
221
+ ...be,
257
222
  children: [
258
223
  !!D && /* @__PURE__ */ h(
259
224
  "input",
@@ -261,63 +226,63 @@ function qo(B, J) {
261
226
  type: "radio",
262
227
  name: D,
263
228
  value: s,
264
- checked: m,
265
- className: `${e}-input`,
229
+ checked: c,
230
+ className: `${o}-input`,
266
231
  tabIndex: -1,
267
232
  "aria-hidden": "true"
268
233
  }
269
234
  ),
270
- W(F) ? F(o, m) : /* @__PURE__ */ H(ho, { children: [
271
- w && /* @__PURE__ */ h("span", { className: `${e}-option-icon`, children: w }),
272
- !S && /* @__PURE__ */ h("span", { className: `${e}-option-label`, children: d })
235
+ W(F) ? F(e, c) : /* @__PURE__ */ H($e, { children: [
236
+ w && /* @__PURE__ */ h("span", { className: `${o}-option-icon`, children: w }),
237
+ !S && /* @__PURE__ */ h("span", { className: `${o}-option-label`, children: p })
273
238
  ] })
274
239
  ]
275
240
  },
276
- `${d}-${s}-${i}`
241
+ `${p}-${s}-${i}`
277
242
  );
278
243
  }
279
- return Io(() => {
280
- a === void 0 || n.some((i) => i.value === a) || g(void 0);
281
- }, [n]), K(() => {
282
- const o = requestAnimationFrame(() => {
244
+ return ke(() => {
245
+ a === void 0 || r.some((i) => i.value === a) || g(void 0);
246
+ }, [r]), K(() => {
247
+ const e = requestAnimationFrame(() => {
283
248
  R();
284
249
  });
285
250
  return () => {
286
- cancelAnimationFrame(o);
251
+ cancelAnimationFrame(e);
287
252
  };
288
- }, [R, c]), K(() => {
289
- to && g(a);
290
- }, []), wo(J, () => ({
253
+ }, [R, f]), K(() => {
254
+ te && g(a);
255
+ }, []), ve(J, () => ({
291
256
  dom: E.current
292
257
  })), /* @__PURE__ */ h(
293
258
  "div",
294
259
  {
295
260
  ref: E,
296
- ...io,
297
- style: mo,
261
+ ...ie,
262
+ style: le,
298
263
  className: M(
299
- e,
264
+ o,
300
265
  {
301
- [`${e}-rtl`]: k,
302
- [`${e}-block`]: N,
303
- [`${e}-disabled`]: f,
304
- [`${e}-indicator`]: O
266
+ [`${o}-rtl`]: k,
267
+ [`${o}-block`]: N,
268
+ [`${o}-disabled`]: m,
269
+ [`${o}-indicator`]: O
305
270
  },
306
- `${e}-mode-${z}`,
307
- `${e}-direction-${x}`,
308
- `${e}-size-${y}`,
271
+ `${o}-mode-${z}`,
272
+ `${o}-direction-${x}`,
273
+ `${o}-size-${y}`,
309
274
  Z
310
275
  ),
311
276
  role: "radiogroup",
312
- onKeyDown: q ? (o) => {
313
- fo(o);
277
+ onKeyDown: q ? (e) => {
278
+ fe(e);
314
279
  } : void 0,
315
- children: n.map(uo)
280
+ children: r.map(me)
316
281
  }
317
282
  );
318
283
  }
319
- const Ao = yo(qo);
320
- Ao.displayName = "Segmented";
284
+ const qe = he(Oe);
285
+ qe.displayName = "Segmented";
321
286
  export {
322
- Ao as default
287
+ qe as default
323
288
  };
package/select/Option.js CHANGED
@@ -1,50 +1,41 @@
1
- import { jsxs as g, jsx as p } from "react/jsx-runtime";
1
+ import { jsxs as w, jsx as p } from "react/jsx-runtime";
2
2
  import E from "react";
3
- import { C as L } from "../chunk/C3kH2ES3.js";
4
- import _ from "@unicom-cloud/utils/class-name";
3
+ import { C as L } from "../chunk/DrYaod6k.js";
4
+ import f from "@unicom-cloud/utils/class-name";
5
5
  import { o as j } from "../chunk/BKKEev13.js";
6
- function y(l, f) {
6
+ function y(c, _) {
7
7
  const {
8
8
  style: h,
9
9
  className: $,
10
- wrapperClassName: v,
11
- disabled: r,
10
+ wrapperClassName: O,
11
+ disabled: t,
12
12
  prefixCls: e,
13
- rtl: O,
13
+ rtl: v,
14
14
  value: d,
15
15
  children: u,
16
16
  _isMultipleMode: m,
17
17
  _isUserCreatedOption: k,
18
18
  _isUserCreatingOption: M,
19
- _valueActive: N,
19
+ _valueActive: b,
20
20
  _valueSelect: C,
21
- _onMouseEnter: b,
21
+ _onMouseEnter: N,
22
22
  _onMouseLeave: x,
23
- _onClick: w,
24
- ...s
25
- } = l, t = "value" in l ? d : `${u}`, o = "children" in l ? u : `${d}`, i = m ? C.indexOf(t) !== -1 : C === t, c = {
23
+ _onClick: g,
24
+ ...i
25
+ } = c, n = "value" in c ? d : `${u}`, o = "children" in c ? u : `${d}`, r = m ? C.indexOf(n) !== -1 : C === n, a = {
26
26
  style: h,
27
- className: _(
27
+ className: f(
28
28
  `${e}-option`,
29
29
  {
30
- [`${e}-option-selected`]: i,
31
- [`${e}-option-disabled`]: r,
32
- [`${e}-option-hover`]: t === N,
30
+ [`${e}-option-selected`]: r,
31
+ [`${e}-option-disabled`]: t,
32
+ [`${e}-option-hover`]: n === b,
33
33
  [`${e}-option-empty`]: !o && o !== 0 || typeof o == "string" && /^\s*$/.test(o),
34
- [`${e}-option-rtl`]: O
34
+ [`${e}-option-rtl`]: v
35
35
  },
36
36
  $
37
37
  ),
38
- onMouseEnter: (n) => {
39
- b?.(t), s.onMouseEnter?.(n);
40
- },
41
- onMouseLeave: (n) => {
42
- x?.(), s.onMouseLeave?.(n);
43
- },
44
- onClick: (n) => {
45
- w?.(t, r), s.onClick?.(n);
46
- },
47
- ...j(s, [
38
+ ...j(i, [
48
39
  "_key",
49
40
  "extra",
50
41
  "isSelectOption",
@@ -52,22 +43,34 @@ function y(l, f) {
52
43
  "onMouseEnter",
53
44
  "onMouseLeave"
54
45
  ])
55
- }, a = {
56
- ref: f,
46
+ };
47
+ t || Object.assign(a, {
48
+ onMouseEnter: (s) => {
49
+ N?.(n), i.onMouseEnter?.(s);
50
+ },
51
+ onMouseLeave: (s) => {
52
+ x?.(), i.onMouseLeave?.(s);
53
+ },
54
+ onClick: (s) => {
55
+ g?.(n, t), i.onClick?.(s);
56
+ }
57
+ });
58
+ const l = {
59
+ ref: _,
57
60
  role: "option",
58
- "aria-selected": i
61
+ "aria-selected": r
59
62
  };
60
- return k && Object.assign(a, { "data-user-created": !0 }), M && Object.assign(a, { "data-user-creating": !0 }), m ? /* @__PURE__ */ g(
63
+ return k && Object.assign(l, { "data-user-created": !0 }), M && Object.assign(l, { "data-user-creating": !0 }), m ? /* @__PURE__ */ w(
61
64
  "li",
62
65
  {
63
- ...a,
64
- className: _(
66
+ ...l,
67
+ className: f(
65
68
  `${e}-option-wrapper`,
66
69
  {
67
- [`${e}-option-wrapper-selected`]: i,
68
- [`${e}-option-wrapper-disabled`]: r
70
+ [`${e}-option-wrapper-selected`]: r,
71
+ [`${e}-option-wrapper-disabled`]: t
69
72
  },
70
- v
73
+ O
71
74
  ),
72
75
  children: [
73
76
  /* @__PURE__ */ p(
@@ -75,15 +78,15 @@ function y(l, f) {
75
78
  {
76
79
  "aria-hidden": "true",
77
80
  className: `${e}-checkbox`,
78
- checked: i,
79
- disabled: r,
80
- onChange: c.onClick
81
+ checked: r,
82
+ disabled: t,
83
+ onChange: a.onClick
81
84
  }
82
85
  ),
83
- /* @__PURE__ */ p("span", { ...c, children: o })
86
+ /* @__PURE__ */ p("span", { ...a, children: o })
84
87
  ]
85
88
  }
86
- ) : /* @__PURE__ */ p("li", { ...a, ...c, children: o });
89
+ ) : /* @__PURE__ */ p("li", { ...l, ...a, children: o });
87
90
  }
88
91
  const P = E.forwardRef(y), R = P;
89
92
  R.__PQB_SELECT_OPTION__ = !0;
package/select/Select.js CHANGED
@@ -2,9 +2,9 @@ import { jsx as E, jsxs as Ot } from "react/jsx-runtime";
2
2
  import m from "lodash/isArray";
3
3
  import vt from "lodash/isFunction";
4
4
  import bt, { useContext as Vt, useState as j, useMemo as Ee, useRef as V, useCallback as oe, useEffect as O, useImperativeHandle as yt } from "react";
5
- import { C as wt } from "../chunk/C3kH2ES3.js";
6
- import { a as kt } from "../chunk/C1vY8016.js";
7
- import { u as xt } from "../chunk/C5CbL5ku.js";
5
+ import { C as wt } from "../chunk/DrYaod6k.js";
6
+ import { a as kt } from "../chunk/CYDaUML7.js";
7
+ import { u as xt } from "../chunk/gJsdBcpG.js";
8
8
  import { u as St } from "../chunk/FgWHhRFz.js";
9
9
  import { u as Me } from "../chunk/2vdCeheu.js";
10
10
  import It from "../select-view/index.js";
@@ -83,9 +83,7 @@ function Wt(Te, De) {
83
83
  }), [g, pt] = Me(!1, {
84
84
  defaultValue: a.defaultPopupVisible,
85
85
  value: it ? a.popupVisible : y && "popupVisible" in y ? y.popupVisible : void 0
86
- }), [A, ct] = j(null), [N, ft] = j([]), [h, M] = j(
87
- m(n) ? n[0] : n
88
- ), {
86
+ }), [A, ct] = j(null), [N, ft] = j([]), [h, M] = j(() => m(n) ? n[0] : n), {
89
87
  childrenList: Q,
90
88
  optionInfoMap: p,
91
89
  optionValueList: w,
@@ -104,9 +102,10 @@ function Wt(Te, De) {
104
102
  ae,
105
103
  fe,
106
104
  de,
105
+ f,
107
106
  d,
108
- A,
109
- N
107
+ N,
108
+ A
110
109
  ]), X = V(null), Ve = V(null), b = V(null), I = V([]), k = V(null), ye = V(d), Y = V(null), U = V(0), Z = V(!1), we = xt(`${f}-popup`), R = ie(n, u), ke = Ee(() => {
111
110
  if (pe) {
112
111
  const e = m(n) ? n[0] : n, t = !R && p.get(e)?._valid, r = p?.get(w[0])?._origin === Le;
@@ -139,10 +138,9 @@ function Wt(Te, De) {
139
138
  O(() => {
140
139
  u ? m(n) || q(n === void 0 ? [] : [n]) : m(n) && q(n.length === 0 ? void 0 : n[0]);
141
140
  }, [u, n]), O(() => {
142
- if (g) {
143
- M(ke);
141
+ if (g && (M(ke), !R)) {
144
142
  const e = m(n) ? n[0] : n;
145
- !R && p.has(e) && setTimeout(() => H(e));
143
+ p.has(e) && setTimeout(() => H(e));
146
144
  }
147
145
  }, [g]), O(() => {
148
146
  (k.current === "up" || k.current === "down") && (H(h), k.current = "none");
@@ -325,7 +323,7 @@ function Wt(Te, De) {
325
323
  k.current === null && M(T);
326
324
  },
327
325
  _onMouseLeave: () => {
328
- k.current === null && M(void 0);
326
+ k.current === null && M(h);
329
327
  }
330
328
  };
331
329
  return l && /* @__PURE__ */ E(l.type, { ...l.props, ...Ct });
@@ -6,7 +6,7 @@ import oo from "@unicom-cloud/icons/IconUiLoading";
6
6
  import no from "@unicom-cloud/icons/IconUiSearch";
7
7
  import to from "lodash/isFunction";
8
8
  import le from "lodash/isUndefined";
9
- import { a as ro, I as so } from "../chunk/C1vY8016.js";
9
+ import { a as ro, I as so } from "../chunk/CYDaUML7.js";
10
10
  import { u as ao } from "../chunk/BJeTDXdz.js";
11
11
  import { u as co } from "../chunk/Ca6eMq_Y.js";
12
12
  import lo from "../input-tag/InputTag.js";
package/skeleton/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as $ } from "react/jsx-runtime";
2
2
  import k from "lodash/isPlainObject";
3
3
  import S, { forwardRef as j, useContext as v } from "react";
4
- import { a as b } from "../chunk/C1vY8016.js";
4
+ import { a as b } from "../chunk/CYDaUML7.js";
5
5
  import { u as y } from "../chunk/FgWHhRFz.js";
6
6
  import R from "@unicom-cloud/utils/class-name";
7
7
  import { a as w } from "../chunk/ClqoGc3r.js";