@unicom-cloud/ui 0.8.100 → 0.8.102

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 (301) hide show
  1. package/Badge.js +7 -54
  2. package/Copy.js +5 -4
  3. package/Details.js +13 -2
  4. package/Divider.js +3 -2
  5. package/Flex.js +14 -4
  6. package/LiquidFill.js +5 -4
  7. package/List.js +1 -1
  8. package/Loading.js +16 -3
  9. package/Marquee.js +5 -4
  10. package/QrCode.js +5 -4
  11. package/Space.js +3 -3
  12. package/Splitter.js +4 -3
  13. package/SuspenseFallbackTest.js +2 -4
  14. package/Tooltip.js +3 -4
  15. package/Tour.js +5 -4
  16. package/alert/index.js +60 -62
  17. package/anchor/Anchor.js +12 -12
  18. package/anchor/util.js +10 -10
  19. package/back-top/index.js +33 -34
  20. package/badge/index.js +109 -162
  21. package/calendar/index.js +85 -84
  22. package/card/index.js +63 -43
  23. package/color-picker/InputHex.js +3 -4
  24. package/color-picker/InputRgb.js +7 -8
  25. package/color-picker/Palette.js +3 -4
  26. package/color-picker/Panel.js +3 -4
  27. package/color-picker/colors.js +5 -5
  28. package/color-picker/hooks/useColorPicker.js +3 -4
  29. package/color-picker/utils.js +14 -15
  30. package/components/common/development/index.js +44 -29
  31. package/components/common/empty/index.js +35 -23
  32. package/components/common/flex/index.js +64 -0
  33. package/components/common/flex/interface.js +9 -0
  34. package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
  35. package/components/common/space/index.js +71 -91
  36. package/components/common/suspense-fallback-test/index.js +16 -0
  37. package/components/common/utils/PqbCSSTransition.js +1 -1
  38. package/components/common/utils/constant.js +6 -3
  39. package/components/common/utils/reactDOM.js +6 -4
  40. package/components/common/utils/{scrollIntoView.js → scrollIntoViewIfNeeded.js} +1 -1
  41. package/components/common/utils/setPrimaryColor.js +18 -18
  42. package/components/common/utils/setTheme.js +8 -9
  43. package/components/common/utils/toArray.js +12 -0
  44. package/copy/index.js +3 -2
  45. package/details/index.js +102 -62
  46. package/dist/scroll-into-view-if-needed/compute/index.js +126 -0
  47. package/dist/scroll-into-view-if-needed/smooth/index.js +70 -0
  48. package/dist/scroll-into-view-if-needed/src/index.js +19 -19
  49. package/divider/index.js +27 -21
  50. package/empty/index.js +13 -13
  51. package/flex/index.js +43 -55
  52. package/flex/interface.js +1 -34
  53. package/form/FormItem.js +69 -65
  54. package/form/context.js +6 -7
  55. package/grid/Col-.js +86 -0
  56. package/grid/Col.js +156 -73
  57. package/grid/Grid.js +71 -67
  58. package/grid/Row.js +3 -3
  59. package/grid/index.js +13 -13
  60. package/icon/interface.js +1 -0
  61. package/icon-hover/interface.js +1 -0
  62. package/index.js +641 -663
  63. package/input/Textarea.js +1 -1
  64. package/input/autoSizeTextAreaHeight.js +7 -7
  65. package/liquid-fill/index.js +5 -4
  66. package/list/index.js +1 -1
  67. package/loading/index.js +72 -53
  68. package/loading/interface.js +1 -0
  69. package/marquee/index.js +5 -4
  70. package/menu/Item.js +9 -9
  71. package/modal/Modal.js +73 -74
  72. package/package.json +1 -1
  73. package/portal/interface.js +1 -0
  74. package/qr-code/index.js +5 -4
  75. package/segmented/index.js +47 -47
  76. package/space/index.js +41 -35
  77. package/speech-synthesis/interface.js +1 -0
  78. package/splitter/SplitBar.js +81 -79
  79. package/splitter/Splitter.js +92 -104
  80. package/splitter/hooks/useItems.js +1 -1
  81. package/splitter/hooks/useResizable.js +9 -18
  82. package/splitter/hooks/useResize.js +10 -10
  83. package/splitter/hooks/useSizes.js +28 -28
  84. package/splitter/index.js +5 -4
  85. package/statistic/index.js +10 -10
  86. package/style.css +1 -1
  87. package/suspense-fallback-test/index.js +2 -11
  88. package/suspense-fallback-test/interface.js +1 -0
  89. package/table/Table.js +376 -377
  90. package/table/hook/useThResizable.js +5 -4
  91. package/table/th-resizable/index.js +12 -11
  92. package/time-picker/util.js +8 -8
  93. package/tooltip/index.js +1 -2
  94. package/tour/index.js +5 -4
  95. package/tree/NodeList.js +1 -1
  96. package/trigger/index.js +67 -70
  97. package/types/common/development/index.d.ts +7 -1
  98. package/types/common/development/interface.d.ts +22 -0
  99. package/types/common/empty/index.d.ts +2 -1
  100. package/types/common/flex/index.d.ts +14 -0
  101. package/types/common/flex/interface.d.ts +62 -0
  102. package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
  103. package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
  104. package/types/common/space/index.d.ts +4 -4
  105. package/types/common/space/interface.d.ts +10 -18
  106. package/types/common/suspense-fallback-test/index.d.ts +7 -0
  107. package/types/common/suspense-fallback-test/interface.d.ts +1 -0
  108. package/types/common/utils/PqbCSSTransition.d.ts +1 -1
  109. package/types/common/utils/constant.d.ts +1 -0
  110. package/types/common/utils/scrollIntoViewIfNeeded.d.ts +4 -0
  111. package/types/common/utils/toArray.d.ts +13 -0
  112. package/types/common/utils/tree.d.ts +1 -0
  113. package/types/common/utils/tween.d.ts +1 -0
  114. package/types/pc/alert/index.d.ts +2 -1
  115. package/types/pc/alert/interface.d.ts +7 -1
  116. package/types/pc/anchor/util.d.ts +1 -1
  117. package/types/pc/badge/Count.d.ts +1 -1
  118. package/types/pc/badge/interface.d.ts +2 -0
  119. package/types/pc/breadcrumb/Item.d.ts +1 -1
  120. package/types/pc/calendar/Month.d.ts +1 -1
  121. package/types/pc/calendar/WeekList.d.ts +1 -1
  122. package/types/pc/calendar/Year.d.ts +1 -1
  123. package/types/pc/calendar/header/Panel.d.ts +1 -1
  124. package/types/pc/calendar/header/index.d.ts +1 -1
  125. package/types/pc/calendar/index.d.ts +1 -1
  126. package/types/pc/calendar/interface.d.ts +2 -1
  127. package/types/pc/card/interface.d.ts +8 -0
  128. package/types/pc/cascader/interface.d.ts +1 -1
  129. package/types/pc/cascader/panel/List.d.ts +1 -1
  130. package/types/pc/cascader/panel/Option.d.ts +1 -1
  131. package/types/pc/cascader/panel/Search.d.ts +1 -1
  132. package/types/pc/checkbox/Group.d.ts +2 -2
  133. package/types/pc/checkbox/GroupBlock.d.ts +1 -1
  134. package/types/pc/checkbox/IconCheck.d.ts +1 -1
  135. package/types/pc/color-picker/InputRgb.d.ts +1 -1
  136. package/types/pc/color-picker/Palette.d.ts +1 -1
  137. package/types/pc/color-picker/hooks/useColorPicker.d.ts +7 -2
  138. package/types/pc/color-picker/utils.d.ts +6 -1
  139. package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
  140. package/types/pc/config-provider/interface.d.ts +4 -0
  141. package/types/pc/copy/index.d.ts +1 -1
  142. package/types/pc/date-picker/panel/Body.d.ts +1 -1
  143. package/types/pc/date-picker/panel/Footer.d.ts +1 -1
  144. package/types/pc/date-picker/panel/Header.d.ts +1 -1
  145. package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
  146. package/types/pc/date-picker/panel/date/index.d.ts +1 -1
  147. package/types/pc/date-picker/panel/month/index.d.ts +1 -1
  148. package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
  149. package/types/pc/date-picker/panel/range/index.d.ts +1 -1
  150. package/types/pc/date-picker/panel/week/index.d.ts +1 -1
  151. package/types/pc/date-picker/panel/year/index.d.ts +1 -1
  152. package/types/pc/descriptions/index.d.ts +1 -1
  153. package/types/pc/details/index.d.ts +3 -2
  154. package/types/pc/details/interface.d.ts +16 -0
  155. package/types/pc/development/index.d.ts +2 -1
  156. package/types/pc/development/interface.d.ts +15 -0
  157. package/types/pc/divider/index.d.ts +7 -2
  158. package/types/pc/draggable/Item.d.ts +1 -1
  159. package/types/pc/draggable/index.d.ts +1 -1
  160. package/types/pc/flex/index.d.ts +4 -4
  161. package/types/pc/flex/interface.d.ts +8 -53
  162. package/types/pc/form/Control.d.ts +1 -1
  163. package/types/pc/form/FormItem.d.ts +1 -1
  164. package/types/pc/form/FormList.d.ts +1 -1
  165. package/types/pc/form/IconSymbol.d.ts +1 -1
  166. package/types/pc/grid/Col-.d.ts +4 -0
  167. package/types/pc/grid/Col.d.ts +3 -2
  168. package/types/pc/grid/Grid.d.ts +2 -2
  169. package/types/pc/grid/Item.d.ts +3 -3
  170. package/types/pc/grid/Row.d.ts +2 -2
  171. package/types/pc/grid/hook/useResponsiveState.d.ts +2 -2
  172. package/types/pc/grid/interface.d.ts +13 -7
  173. package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
  174. package/types/pc/icon/index.d.ts +2 -7
  175. package/types/pc/icon/interface.d.ts +13 -0
  176. package/types/pc/icon-hover/index.d.ts +2 -8
  177. package/types/pc/icon-hover/interface.d.ts +8 -0
  178. package/types/pc/image/ImageFooter.d.ts +1 -1
  179. package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
  180. package/types/pc/image/TriggerForToolbar.d.ts +1 -1
  181. package/types/pc/index.d.ts +60 -51
  182. package/types/pc/loading/index.d.ts +4 -3
  183. package/types/pc/loading/interface.d.ts +6 -0
  184. package/types/pc/menu/Indent.d.ts +1 -1
  185. package/types/pc/menu/OverflowWrap.d.ts +1 -1
  186. package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
  187. package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
  188. package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
  189. package/types/pc/overflow-ellipsis/index.d.ts +1 -1
  190. package/types/pc/pagination/PageItem.d.ts +3 -3
  191. package/types/pc/pagination/PageJumper.d.ts +1 -1
  192. package/types/pc/pagination/PageOption.d.ts +1 -1
  193. package/types/pc/portal/Portal.d.ts +2 -6
  194. package/types/pc/portal/index.d.ts +2 -9
  195. package/types/pc/portal/interface.d.ts +14 -0
  196. package/types/pc/progress/CircleProgress.d.ts +1 -1
  197. package/types/pc/progress/LineProgess.d.ts +1 -1
  198. package/types/pc/progress/StepProgress.d.ts +1 -1
  199. package/types/pc/radio/Group.d.ts +2 -2
  200. package/types/pc/radio/GroupBlock.d.ts +1 -1
  201. package/types/pc/radio/Radio.d.ts +1 -1
  202. package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
  203. package/types/pc/result/403.d.ts +1 -1
  204. package/types/pc/result/404.d.ts +1 -1
  205. package/types/pc/result/500.d.ts +1 -1
  206. package/types/pc/segmented/interface.d.ts +6 -6
  207. package/types/pc/skeleton/Image.d.ts +1 -1
  208. package/types/pc/skeleton/Text.d.ts +2 -1
  209. package/types/pc/slider/Button.d.ts +1 -1
  210. package/types/pc/slider/Input.d.ts +1 -1
  211. package/types/pc/slider/Tick.d.ts +1 -1
  212. package/types/pc/space/index.d.ts +6 -5
  213. package/types/pc/speech-synthesis/index.d.ts +3 -1
  214. package/types/pc/speech-synthesis/interface.d.ts +7 -0
  215. package/types/pc/spin/DotLoading.d.ts +1 -1
  216. package/types/pc/splitter/SplitBar.d.ts +0 -1
  217. package/types/pc/splitter/hooks/useResizable.d.ts +0 -1
  218. package/types/pc/splitter/hooks/useResize.d.ts +1 -2
  219. package/types/pc/splitter/index.d.ts +5 -4
  220. package/types/pc/splitter/interface.d.ts +16 -24
  221. package/types/pc/suspense-fallback-test/index.d.ts +2 -3
  222. package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
  223. package/types/pc/table/ColGroup.d.ts +1 -1
  224. package/types/pc/table/summary/Cell.d.ts +1 -1
  225. package/types/pc/table/summary/Row.d.ts +1 -1
  226. package/types/pc/table/tbody/Td.d.ts +1 -1
  227. package/types/pc/table/tbody/index.d.ts +1 -1
  228. package/types/pc/table/tfoot/index.d.ts +1 -1
  229. package/types/pc/table/th-resizable/index.d.ts +1 -1
  230. package/types/pc/table/thead/Column.d.ts +1 -1
  231. package/types/pc/table/thead/index.d.ts +1 -1
  232. package/types/pc/tabs/TabContent.d.ts +1 -1
  233. package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
  234. package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
  235. package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
  236. package/types/pc/time-picker/Picker.d.ts +1 -1
  237. package/types/pc/time-picker/RangePicker.d.ts +1 -1
  238. package/types/pc/time-picker/TimeColumn.d.ts +1 -1
  239. package/types/pc/time-picker/TimePicker.d.ts +1 -1
  240. package/types/pc/time-picker/index.d.ts +1 -1
  241. package/types/pc/tour/index.d.ts +1 -1
  242. package/types/pc/transfer/Item.d.ts +1 -1
  243. package/types/pc/transfer/List.d.ts +1 -1
  244. package/types/pc/tree/Animation.d.ts +1 -1
  245. package/types/pc/typography/Operations.d.ts +1 -1
  246. package/types/pc/upload/interface.d.ts +1 -0
  247. package/types/pc/upload/list/index.d.ts +1 -1
  248. package/types/pc/utils/constant.d.ts +1 -2
  249. package/types/pc/utils/dayjs.d.ts +2 -1
  250. package/types/pc/utils/index.d.ts +2 -5
  251. package/types/pc/utils/scrollIntoViewIfNeeded.d.ts +3 -0
  252. package/types/pc/utils/toArray.d.ts +1 -5
  253. package/types/pc/utils/tree.d.ts +2 -1
  254. package/types/pc/utils/tween.d.ts +1 -1
  255. package/types/pc/verification-code/VerificationCode.d.ts +1 -1
  256. package/types/pc/virtual-list/VirtualList.d.ts +2 -38
  257. package/types/pc/virtual-list/index.d.ts +2 -1
  258. package/types/pc/virtual-list/interface.d.ts +56 -0
  259. package/types/pc/watermark/Watermark.d.ts +1 -1
  260. package/typography/Ellipsis.js +5 -4
  261. package/typography/Operations.js +5 -4
  262. package/upload/request.js +12 -13
  263. package/upload/request_.js +2 -3
  264. package/utils/constant.js +5 -5
  265. package/utils/dayjs.js +13 -12
  266. package/utils/index.js +261 -284
  267. package/utils/scrollIntoViewIfNeeded.js +12 -0
  268. package/utils/toArray.js +3 -10
  269. package/utils/tree.js +11 -9
  270. package/utils/tween.js +5 -5
  271. package/version/index.js +1 -1
  272. package/virtual-list/interface.js +1 -0
  273. package/components/common/space/toArray.js +0 -11
  274. package/components/common/utils/convertToDurationBasedOnTimeUnits.js +0 -6
  275. package/dist/compute-scroll-into-view/src/index.js +0 -126
  276. package/dist/tinycolor/chunk/BOzCVdr0.js +0 -182
  277. package/dist/tinycolor/customize/index.js +0 -12
  278. package/dist/tinycolor/src/conversion.js +0 -143
  279. package/dist/tinycolor/src/css-color-names.js +0 -153
  280. package/dist/tinycolor/src/format-input.js +0 -77
  281. package/dist/tinycolor/src/index.js +0 -388
  282. package/dist/tinycolor/src/util.js +0 -32
  283. package/flex/utils.js +0 -13
  284. package/loading/style/index.module.less.js +0 -4
  285. package/types/common/space/toArray.d.ts +0 -3
  286. package/types/common/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
  287. package/types/common/utils/scrollIntoView.d.ts +0 -4
  288. package/types/common/utils/tinycolor.d.ts +0 -1
  289. package/types/pc/flex/utils.d.ts +0 -9
  290. package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
  291. package/types/pc/utils/color.d.ts +0 -1
  292. package/types/pc/utils/computeScrollIntoView.d.ts +0 -1
  293. package/types/pc/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
  294. package/types/pc/utils/scrollIntoView.d.ts +0 -3
  295. package/types/pc/utils/tinycolor.d.ts +0 -1
  296. package/utils/color.js +0 -4
  297. package/utils/computeScrollIntoView.js +0 -6
  298. package/utils/convertToDurationBasedOnTimeUnits.js +0 -6
  299. package/utils/scrollIntoView.js +0 -6
  300. package/utils/tinycolor.js +0 -29
  301. /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
@@ -1,10 +1,9 @@
1
1
  import { useState as b, useEffect as a } from "react";
2
+ import "@unicom-cloud/utils/date";
2
3
  import "@unicom-cloud/utils/case-name";
3
4
  import "@unicom-cloud/utils/class-name";
4
- import "../../dist/tinycolor/chunk/BOzCVdr0.js";
5
5
  import "@unicom-cloud/utils/constant/ui";
6
6
  import "../../utils/contextHolder.js";
7
- import "@unicom-cloud/utils/dayjs";
8
7
  import "@unicom-cloud/utils/clipboard-copy";
9
8
  import "../../components/common/utils/dayjs.js";
10
9
  import "../../components/common/utils/dom.js";
@@ -42,6 +41,8 @@ import "../../dist/react-transition-group/src/TransitionGroup.js";
42
41
  import "../../components/common/utils/reactDOM.js";
43
42
  import "@unicom-cloud/utils/file/saveAs";
44
43
  import "@unicom-cloud/utils/screenfull";
44
+ import "@unicom-cloud/utils/tinycolor";
45
+ import "@unicom-cloud/utils/ui-color";
45
46
  import "@unicom-cloud/utils/constant/ui.js";
46
47
  import "react-is";
47
48
  import "@unicom-cloud/utils/tree";
@@ -50,7 +51,7 @@ import "uuid";
50
51
  import "../../dist/validate/src/index.js";
51
52
  import "@unicom-cloud/utils/constant/keyboardCode";
52
53
  import z from "../th-resizable/index.js";
53
- function Rt(f = {}, c = []) {
54
+ function Ht(f = {}, c = []) {
54
55
  const { columns: u } = f ?? {}, [d, m] = b(o(u));
55
56
  function h(t, i) {
56
57
  return {
@@ -81,5 +82,5 @@ function Rt(f = {}, c = []) {
81
82
  };
82
83
  }
83
84
  export {
84
- Rt as default
85
+ Ht as default
85
86
  };
@@ -1,12 +1,11 @@
1
1
  import { jsx as h, jsxs as M, Fragment as P } from "react/jsx-runtime";
2
2
  import { useRef as s, useContext as X, useEffect as j } from "react";
3
3
  import "../../config-provider/ConfigProvider.js";
4
+ import "@unicom-cloud/utils/date";
4
5
  import "@unicom-cloud/utils/case-name";
5
6
  import z from "@unicom-cloud/utils/class-name";
6
- import "../../dist/tinycolor/chunk/BOzCVdr0.js";
7
7
  import "@unicom-cloud/utils/constant/ui";
8
8
  import "../../utils/contextHolder.js";
9
- import "@unicom-cloud/utils/dayjs";
10
9
  import "@unicom-cloud/utils/clipboard-copy";
11
10
  import "../../components/common/utils/dayjs.js";
12
11
  import { off as g, on as C } from "../../components/common/utils/dom.js";
@@ -43,6 +42,8 @@ import "../../dist/react-transition-group/src/TransitionGroup.js";
43
42
  import "../../components/common/utils/reactDOM.js";
44
43
  import "@unicom-cloud/utils/file/saveAs";
45
44
  import "@unicom-cloud/utils/screenfull";
45
+ import "@unicom-cloud/utils/tinycolor";
46
+ import "@unicom-cloud/utils/ui-color";
46
47
  import "@unicom-cloud/utils/constant/ui.js";
47
48
  import "react-is";
48
49
  import "@unicom-cloud/utils/tree";
@@ -53,7 +54,7 @@ import "@unicom-cloud/utils/constant/keyboardCode";
53
54
  import { defaultComponent as D } from "../constant.js";
54
55
  /* empty css */
55
56
  import F from "../../config-provider/context.js";
56
- function Bt(b) {
57
+ function Ut(b) {
57
58
  let {
58
59
  className: r,
59
60
  children: u,
@@ -63,27 +64,27 @@ function Bt(b) {
63
64
  } = b;
64
65
  const v = D.header.th, f = s(null), x = s(null), o = s({}), { getPrefixCls: R } = X(F), a = R?.("table-th-resizable");
65
66
  function l(t) {
66
- o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0, n(), N();
67
+ o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0, p(), N();
67
68
  }
68
69
  function e(t) {
69
- n();
70
+ p();
70
71
  }
71
72
  function m(t) {
72
- let p = o.current.boundingClientRect.width + ((t?.pageX ?? 0) - o.current.pageX);
73
- p < 0 || (T(i) && (i.width = p), c?.({
73
+ let n = o.current.boundingClientRect.width + ((t?.pageX ?? 0) - o.current.pageX);
74
+ n < 0 || (T(i) && (i.width = n), c?.({
74
75
  column: i,
75
- width: p,
76
+ width: n,
76
77
  widthOrigin: o.current.boundingClientRect.width
77
78
  }));
78
79
  }
79
80
  function N(t) {
80
81
  C(document, "mousemove", m), C(document, "mouseup", e);
81
82
  }
82
- function n(t) {
83
+ function p(t) {
83
84
  g(document, "mousemove", m), g(document, "mouseup", e);
84
85
  }
85
86
  r = z(r, a), j(() => (l(), m(), e(), () => {
86
- n();
87
+ p();
87
88
  }), []);
88
89
  let d = u;
89
90
  return E(c) && (d = /* @__PURE__ */ M(P, { children: [
@@ -99,5 +100,5 @@ function Bt(b) {
99
100
  ] })), /* @__PURE__ */ h(v, { ref: f, ...w, className: r, children: d });
100
101
  }
101
102
  export {
102
- Bt as default
103
+ Ut as default
103
104
  };
@@ -1,15 +1,15 @@
1
1
  import { Tween as i } from "../dist/tween/src/tween.js";
2
- import { quartInOut as l } from "../dist/tween/src/easing.js";
2
+ import l from "../dist/tween/src/easing.js";
3
3
  import { isDayjs as m } from "dayjs";
4
- import { dayjs as f, methods as e } from "../components/common/utils/dayjs.js";
4
+ import { dayjs as f, methods as a } from "../components/common/utils/dayjs.js";
5
5
  function y(o) {
6
6
  const t = ["H", "h", "m", "s", "a", "A"], s = [];
7
- let a = !1;
7
+ let e = !1;
8
8
  return t.forEach((r) => {
9
- o.indexOf(r) !== -1 && (s.push(r), (r === "a" || r === "A") && (a = !0));
9
+ o.indexOf(r) !== -1 && (s.push(r), (r === "a" || r === "A") && (e = !0));
10
10
  }), {
11
11
  list: s,
12
- use12Hours: a
12
+ use12Hours: e
13
13
  };
14
14
  }
15
15
  const c = /* @__PURE__ */ new Map();
@@ -24,16 +24,16 @@ function h(o, t, s) {
24
24
  onUpdate: (r) => {
25
25
  o.scrollTop = r.scrollTop;
26
26
  },
27
- easing: l
27
+ easing: l.quartInOut
28
28
  }).start();
29
29
  })
30
30
  );
31
31
  }
32
32
  function g(o) {
33
- const t = f(), s = t.year(), a = t.month(), r = t.date();
33
+ const t = f(), s = t.year(), e = t.month(), r = t.date();
34
34
  if (m(o)) {
35
35
  let n = o;
36
- return n = e.set(n, "year", s), n = e.set(n, "month", a), n = e.set(n, "date", r), n;
36
+ return n = a.set(n, "year", s), n = a.set(n, "month", e), n = a.set(n, "date", r), n;
37
37
  }
38
38
  return o;
39
39
  }
package/tooltip/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
- import { TinyColor as F } from "../dist/tinycolor/src/index.js";
2
+ import F from "@unicom-cloud/utils/tinycolor";
4
3
  import I from "lodash/isFunction";
5
4
  import { forwardRef as S, useContext as j, useRef as z, useImperativeHandle as B, useMemo as W } from "react";
6
5
  import "../config-provider/ConfigProvider.js";
package/tour/index.js CHANGED
@@ -17,12 +17,11 @@ import "@unicom-cloud/utils/constant";
17
17
  import "lodash/debounce";
18
18
  import wt from "../icon-hover/index.js";
19
19
  import R from "../space/index.js";
20
+ import "@unicom-cloud/utils/date";
20
21
  import "@unicom-cloud/utils/case-name";
21
22
  import u from "@unicom-cloud/utils/class-name";
22
- import "../dist/tinycolor/chunk/BOzCVdr0.js";
23
23
  import "@unicom-cloud/utils/constant/ui";
24
24
  import "../utils/contextHolder.js";
25
- import "@unicom-cloud/utils/dayjs";
26
25
  import "@unicom-cloud/utils/clipboard-copy";
27
26
  import "../components/common/utils/dayjs.js";
28
27
  import "@unicom-cloud/utils/file/fileToURL";
@@ -55,6 +54,8 @@ import "../dist/react-transition-group/src/TransitionGroup.js";
55
54
  import { resizeObserver as yt } from "../components/common/utils/resizeObserver.js";
56
55
  import "@unicom-cloud/utils/file/saveAs";
57
56
  import "@unicom-cloud/utils/screenfull";
57
+ import "@unicom-cloud/utils/tinycolor";
58
+ import "@unicom-cloud/utils/ui-color";
58
59
  import "@unicom-cloud/utils/constant/ui.js";
59
60
  import "react-is";
60
61
  import "@unicom-cloud/utils/tree";
@@ -74,7 +75,7 @@ const xt = {
74
75
  zIndex: 1e3,
75
76
  current: 0
76
77
  };
77
- function Me(L) {
78
+ function Ee(L) {
78
79
  const { getPrefixCls: X, componentConfig: Y, rtl: kt } = ct($t), K = gt(
79
80
  L,
80
81
  xt,
@@ -306,5 +307,5 @@ function Me(L) {
306
307
  );
307
308
  }
308
309
  export {
309
- Me as default
310
+ Ee as default
310
311
  };
package/tree/NodeList.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import { forwardRef as M, useRef as y, useMemo as p, useImperativeHandle as R, createElement as D } from "react";
3
- import { scrollIntoView as V } from "../components/common/utils/scrollIntoView.js";
3
+ import { scrollIntoView as V } from "../components/common/utils/scrollIntoViewIfNeeded.js";
4
4
  import b from "../virtual-list/VirtualList.js";
5
5
  import I from "./Node.js";
6
6
  function H(n) {
package/trigger/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as P, jsxs as xe } from "react/jsx-runtime";
1
+ import { jsx as P, jsxs as De } from "react/jsx-runtime";
2
2
  import no from "../dist/react-transition-group/src/CSSTransition.js";
3
3
  import "../dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "../dist/react-transition-group/src/SwitchTransition.js";
@@ -6,18 +6,18 @@ import "../dist/react-transition-group/chunk/CPfP7aNL.js";
6
6
  import "../dist/react-transition-group/src/TransitionGroup.js";
7
7
  import ro from "lodash/isArray";
8
8
  import D from "lodash/isFunction";
9
- import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as Me, useCallback as Se, cloneElement as Oe, useImperativeHandle as co, useLayoutEffect as lo, useEffect as g, Fragment as po } from "react";
9
+ import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as xe, useCallback as Me, cloneElement as Se, useImperativeHandle as co, useLayoutEffect as lo, useEffect as g, Fragment as po } from "react";
10
10
  import { createPortal as ao } from "react-dom";
11
11
  import "../config-provider/ConfigProvider.js";
12
12
  import R from "@unicom-cloud/utils/class-name";
13
- import { on as G, off as J, getScrollElements as fo, isScrollElement as mo, contains as ve } from "../components/common/utils/dom.js";
13
+ import { on as G, off as J, getScrollElements as fo, isScrollElement as mo, contains as Oe } from "../components/common/utils/dom.js";
14
14
  import { supportRef as go } from "../components/common/utils/is.js";
15
- import { Esc as be } from "@unicom-cloud/utils/constant/keyboardCode";
15
+ import { Esc as ve } from "@unicom-cloud/utils/constant/keyboardCode";
16
16
  import { mergeProps as yo } from "../components/common/utils/mergeProps.js";
17
17
  import { pickDataAttributes as To } from "../components/common/utils/pick.js";
18
18
  import { callbackOriginRef as Co, findDOMNode_ as Po } from "../components/common/utils/reactDOM.js";
19
19
  import { resizeObserver as Z } from "../components/common/utils/resizeObserver.js";
20
- import { throttleByRaf as Ne } from "../components/common/utils/throttleByRaf.js";
20
+ import { throttleByRaf as be } from "../components/common/utils/throttleByRaf.js";
21
21
  import ho, { getBoundingClientRect as Eo } from "./getPopupStyle.js";
22
22
  import wo from "../config-provider/context.js";
23
23
  import { isPlainObject as ee } from "@unicom-cloud/utils/is";
@@ -73,25 +73,22 @@ function So(d, $) {
73
73
  const y = so(wo), { getPrefixCls: x, zIndex: T, rtl: A } = y, i = u(d), {
74
74
  children: oe,
75
75
  style: te,
76
- className: $e,
76
+ className: Ne,
77
77
  arrowProps: _,
78
78
  disabled: M,
79
- popup: ne,
79
+ popup: $e,
80
80
  classNames: z,
81
81
  duration: ke,
82
- unmountOnExit: re,
82
+ unmountOnExit: ne,
83
83
  alignPoint: He,
84
84
  autoAlignPopupWidth: Ie,
85
85
  position: Le,
86
86
  childrenPrefix: h,
87
87
  showArrow: _e,
88
- popupStyle: ie,
88
+ popupStyle: re,
89
89
  __onExit: Be,
90
90
  __onExited: Ve
91
- } = i;
92
- if (!ne)
93
- return null;
94
- const se = oe || oe === 0, a = L(null), S = L(null), ue = L(null), ce = L(null), t = L({
91
+ } = i, ie = oe || oe === 0, a = L(null), S = L(null), se = L(null), ue = L(null), t = L({
95
92
  rootElement: void 0,
96
93
  triggerDestoried: !1,
97
94
  // 标志 popup 是否被销毁
@@ -119,15 +116,15 @@ function So(d, $) {
119
116
  }, 0);
120
117
  }
121
118
  };
122
- I() && !M ? (l.onMouseEnter = We, l.onMouseLeave = ye, U() && (l.onClick = Te), He && (l.onMouseMove = Xe), ze() || (Q.onMouseEnter = Ue, Q.onMouseLeave = je)) : (l.onMouseEnter = w("onMouseEnter"), l.onMouseLeave = w("onMouseLeave")), pe() && !M ? (l.onContextMenu = qe, l.onClick = Te) : l.onContextMenu = w("onContextMenu"), le() && !M ? l.onClick = Ge : l.onClick = l.onClick || w("onClick"), X() && !M ? (l.onFocus = Je, ae() && (l.onBlur = Ze)) : (l.onFocus = w("onFocus"), l.onBlur = w("onBlur")), M ? l.onKeyDown = w("onKeyDown") : l.onKeyDown = Ke;
123
- const k = V(), H = Me.only(ne());
119
+ I() && !M ? (l.onMouseEnter = We, l.onMouseLeave = ge, U() && (l.onClick = ye), He && (l.onMouseMove = Xe), ze() || (Q.onMouseEnter = Ue, Q.onMouseLeave = je)) : (l.onMouseEnter = w("onMouseEnter"), l.onMouseLeave = w("onMouseLeave")), le() && !M ? (l.onContextMenu = qe, l.onClick = ye) : l.onContextMenu = w("onContextMenu"), ce() && !M ? l.onClick = Ge : l.onClick = l.onClick || w("onClick"), X() && !M ? (l.onFocus = Je, pe() && (l.onBlur = Ze)) : (l.onFocus = w("onFocus"), l.onBlur = w("onBlur")), M ? l.onKeyDown = w("onKeyDown") : l.onKeyDown = Ke;
120
+ const k = V(), H = xe.only($e?.());
124
121
  k.props.className && (l.className = k.props.className), h && s && (l.className = R(l.className, `${h}-open`)), X() && (l.tabIndex = M ? -1 : 0);
125
122
  const v = x?.("trigger"), Re = R(
126
123
  v,
127
124
  h,
128
125
  `${v}-position-${Le}`,
129
126
  { [`${v}-rtl`]: A },
130
- $e
127
+ Ne
131
128
  );
132
129
  function u(e) {
133
130
  const { componentConfig: o } = y ?? {};
@@ -144,13 +141,13 @@ function So(d, $) {
144
141
  );
145
142
  return t.current.rootElement = e, e;
146
143
  }
147
- const W = Se(
148
- Ne(() => {
144
+ const W = Me(
145
+ be(() => {
149
146
  N();
150
147
  }),
151
148
  [s]
152
149
  );
153
- function le() {
150
+ function ce() {
154
151
  const { trigger: e } = u(["trigger"]);
155
152
  return [].concat(e).indexOf("click") > -1;
156
153
  }
@@ -162,7 +159,7 @@ function So(d, $) {
162
159
  const { trigger: e } = u(["trigger"]);
163
160
  return [].concat(e).indexOf("hover") > -1;
164
161
  }
165
- function pe() {
162
+ function le() {
166
163
  const { trigger: e } = u(["trigger"]);
167
164
  return [].concat(e).indexOf("contextMenu") > -1;
168
165
  }
@@ -173,19 +170,19 @@ function So(d, $) {
173
170
  return I() && !u(["popupHoverStay"]).popupHoverStay;
174
171
  }
175
172
  function U() {
176
- if (le() || pe()) {
173
+ if (ce() || le()) {
177
174
  const { clickToClose: e = !0 } = u(["clickToClose"]);
178
175
  return e;
179
176
  }
180
177
  return I() && i.clickToClose;
181
178
  }
182
- function ae() {
179
+ function pe() {
183
180
  return X() && u(["blurToHide"]).blurToHide;
184
181
  }
185
182
  function Ye() {
186
183
  t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), E();
187
184
  }
188
- function fe(e) {
185
+ function ae(e) {
189
186
  const o = a.current;
190
187
  if (!o)
191
188
  return {};
@@ -195,7 +192,7 @@ function So(d, $) {
195
192
  ]);
196
193
  let c = n && t.current.arrowStyle?.top || 0, p = n && t.current.arrowStyle?.left || 0;
197
194
  c = c ? `${c}px` : "", p = p ? `${p}px` : "";
198
- const we = {
195
+ const Ee = {
199
196
  top: `${p || "50%"} 100% 0`,
200
197
  tl: `${p || "15px"} 100% 0`,
201
198
  tr: `${p || `${o.clientWidth - 15}px`} 100% 0`,
@@ -211,17 +208,17 @@ function So(d, $) {
211
208
  };
212
209
  if (r && r.indexOf("zoom") > -1)
213
210
  return {
214
- transformOrigin: we[e]
211
+ transformOrigin: Ee[e]
215
212
  };
216
213
  if (r === "slideDynamicOrigin") {
217
- let De = "0% 0%";
218
- return ["top", "tl", "tr"].indexOf(e) > -1 && (De = "100% 100%"), {
219
- transformOrigin: De
214
+ let we = "0% 0%";
215
+ return ["top", "tl", "tr"].indexOf(e) > -1 && (we = "100% 100%"), {
216
+ transformOrigin: we
220
217
  };
221
218
  }
222
219
  return {};
223
220
  }
224
- function de() {
221
+ function fe() {
225
222
  if (u(["classNames"]).classNames !== "slideDynamicOrigin")
226
223
  return "";
227
224
  switch (t.current.realPosition) {
@@ -254,7 +251,7 @@ function So(d, $) {
254
251
  const p = c || i.position;
255
252
  return t.current.realPosition = p, {
256
253
  ...n,
257
- ...fe(p)
254
+ ...ae(p)
258
255
  };
259
256
  }
260
257
  function C(e) {
@@ -266,7 +263,7 @@ function So(d, $) {
266
263
  e();
267
264
  }, 0);
268
265
  }
269
- const B = Se(Ne(C), [
266
+ const B = Me(be(C), [
270
267
  s
271
268
  ]);
272
269
  function N(e = 0, o) {
@@ -288,7 +285,7 @@ function So(d, $) {
288
285
  }
289
286
  function f(e, o = 0, n) {
290
287
  const r = u(["onVisibleChange", "popupVisible"]);
291
- e !== s ? me(o, () => {
288
+ e !== s ? de(o, () => {
292
289
  r.onVisibleChange?.(e), "popupVisible" in r ? n?.() : (O((c) => {
293
290
  const p = { ...c };
294
291
  return p.popupVisible = !!e, p;
@@ -299,7 +296,7 @@ function So(d, $) {
299
296
  }, 0));
300
297
  }) : n?.();
301
298
  }
302
- function me(e, o) {
299
+ function de(e, o) {
303
300
  e ? (E(), t.current.delayTimeoutID = setTimeout(() => {
304
301
  o(), E();
305
302
  }, e)) : o();
@@ -307,18 +304,18 @@ function So(d, $) {
307
304
  function E() {
308
305
  t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
309
306
  }
310
- function ge(e) {
307
+ function me(e) {
311
308
  const o = u(["onClickOutside", "clickOutsideToClose"]);
312
- let n = ve(a.current, e.target);
313
- n ||= ve(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (ae() || I() || f(!1)));
309
+ let n = Oe(a.current, e.target);
310
+ n ||= Oe(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (pe() || I() || f(!1)));
314
311
  }
315
312
  function Ke(e) {
316
313
  const o = e.key;
317
- m("onKeyDown", e), o === be.key && Qe(e);
314
+ m("onKeyDown", e), o === ve.key && Qe(e);
318
315
  }
319
316
  function Qe(e) {
320
317
  const { escToClose: o } = u(["escToClose"]);
321
- o && e && e.key === be.key && s && f(!1);
318
+ o && e && e.key === ve.key && s && f(!1);
322
319
  }
323
320
  function We(e) {
324
321
  const { mouseEnterDelay: o } = u(["mouseEnterDelay"]);
@@ -327,7 +324,7 @@ function So(d, $) {
327
324
  function Xe(e) {
328
325
  m("onMouseMove", e), q(e), s && B();
329
326
  }
330
- function ye(e) {
327
+ function ge(e) {
331
328
  const { mouseLeaveDelay: o } = u(["mouseLeaveDelay"]);
332
329
  E(), m("onMouseLeave", e), Ae() && s && f(!1, o || 0);
333
330
  }
@@ -335,7 +332,7 @@ function So(d, $) {
335
332
  E();
336
333
  }
337
334
  function je(e) {
338
- ye(e);
335
+ ge(e);
339
336
  }
340
337
  function q(e) {
341
338
  u(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
@@ -346,7 +343,7 @@ function So(d, $) {
346
343
  function qe(e) {
347
344
  e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint && B() : f(!0, 0);
348
345
  }
349
- function Te(e) {
346
+ function ye(e) {
350
347
  s && (t.current.mousedownToHide = !0), m("onClick", e), U() && s && f(!s, 0);
351
348
  }
352
349
  function Ge(e) {
@@ -361,13 +358,13 @@ function So(d, $) {
361
358
  function Ze(e) {
362
359
  f(!1, 200, () => m("onBlur", e));
363
360
  }
364
- function Ce() {
361
+ function Te() {
365
362
  s && u(["autoFixPosition"]).autoFixPosition && N();
366
363
  }
367
364
  function V() {
368
365
  const { children: e } = i, o = e, n = o && typeof o != "string" && o.type;
369
366
  let r = e;
370
- if (["string", "number"].indexOf(typeof e) > -1 || Me.count(e) > 1)
367
+ if (["string", "number"].indexOf(typeof e) > -1 || xe.count(e) > 1)
371
368
  r = /* @__PURE__ */ P("span", { children: e });
372
369
  else if (o && n && (n.__PQB_BUTTON === !0 || n.__PQB_CHECKBOX === !0 || n.__PQB_SWITCH === !0 || n.__PQB_RADIO === !0 || n === "button") && o.props.disabled) {
373
370
  const { picked: c, omitted: p } = xo(o.props.style, [
@@ -385,7 +382,7 @@ function So(d, $) {
385
382
  {
386
383
  className: o.props?.className,
387
384
  style: { display: "inline-block", ...c, cursor: "not-allowed" },
388
- children: Oe(o, {
385
+ children: Se(o, {
389
386
  style: {
390
387
  ...p,
391
388
  pointerEvents: "none"
@@ -407,7 +404,7 @@ function So(d, $) {
407
404
  n(c), r(c);
408
405
  } : n || r;
409
406
  }
410
- function Pe() {
407
+ function Ce() {
411
408
  const e = u(["containerScrollToClose", "updateOnScroll"]);
412
409
  e.containerScrollToClose ? f(!1) : e.updateOnScroll && N();
413
410
  }
@@ -416,12 +413,12 @@ function So(d, $) {
416
413
  b()
417
414
  // refPopupContainer.current.parentNode as HTMLElement,
418
415
  ), Array.isArray(t.current.scrollElements) && (i.containerScrollToClose && S.current?.parentNode === document.body && t.current.scrollElements.indexOf(document.body) === -1 && mo(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((e) => {
419
- G(e, "scroll", Pe);
416
+ G(e, "scroll", Ce);
420
417
  })));
421
418
  }
422
- function he() {
419
+ function Pe() {
423
420
  t.current.scrollElements && (t.current.scrollElements.forEach((e) => {
424
- J(e, "scroll", Pe);
421
+ J(e, "scroll", Ce);
425
422
  }), t.current.scrollElements = null);
426
423
  }
427
424
  co($, () => ({
@@ -432,20 +429,20 @@ function So(d, $) {
432
429
  },
433
430
  getChild: V,
434
431
  getPopupStyle: j,
435
- getTransformTranslate: de,
436
- getTransformOrigin: fe,
432
+ getTransformTranslate: fe,
433
+ getTransformOrigin: ae,
437
434
  updateThrottleByRaf: B,
438
435
  update: C,
439
436
  updatePopupStyle: C,
440
437
  updatePopupPosition: N,
441
438
  handleUpdatePosition: W,
442
439
  setPopupVisible: f,
443
- delayToDo: me
440
+ delayToDo: de
444
441
  })), lo(() => (C(), () => {
445
442
  }), [
446
443
  a.current,
444
+ se.current,
447
445
  ue.current,
448
- ce.current,
449
446
  t.current.rootElement
450
447
  ]), g(() => {
451
448
  const e = S.current?.parentNode, o = Z([e], N);
@@ -453,12 +450,12 @@ function So(d, $) {
453
450
  o();
454
451
  };
455
452
  }, [S.current?.parentNode]), g(() => {
456
- const e = a.current, o = Z([e], Ce);
453
+ const e = a.current, o = Z([e], Te);
457
454
  return () => {
458
455
  o();
459
456
  };
460
457
  }, [a.current]), g(() => {
461
- const e = t.current.rootElement, o = Z([e], Ce);
458
+ const e = t.current.rootElement, o = Z([e], Te);
462
459
  return () => {
463
460
  o();
464
461
  };
@@ -474,8 +471,8 @@ function So(d, $) {
474
471
  i.alignPoint,
475
472
  i.boundaryDistance,
476
473
  i.position
477
- ]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? eo() : (N(), he())), () => {
478
- he();
474
+ ]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? eo() : (N(), Pe())), () => {
475
+ Pe();
479
476
  }), [
480
477
  s,
481
478
  i.updateOnScroll,
@@ -490,8 +487,8 @@ function So(d, $) {
490
487
  // 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
491
488
  capture: ee(e) ? e.capture : !1
492
489
  };
493
- return s && (G(n, "mousedown", ge, r), G(window, "resize", W)), () => {
494
- J(n, "mousedown", ge, r), J(window, "resize", W);
490
+ return s && (G(n, "mousedown", me, r), G(window, "resize", W)), () => {
491
+ J(n, "mousedown", me, r), J(window, "resize", W);
495
492
  };
496
493
  }, [s]), g(() => ("defaultPopupVisible" in i && O((e) => {
497
494
  const o = { ...e };
@@ -504,7 +501,7 @@ function So(d, $) {
504
501
  }), [K]), g(() => () => {
505
502
  Ye();
506
503
  }, []);
507
- const oo = se && Oe(k, {
504
+ const oo = ie && Se(k, {
508
505
  ...l,
509
506
  ref: go(k) ? (e) => {
510
507
  t.current.child = e, Co(k, e);
@@ -515,13 +512,13 @@ function So(d, $) {
515
512
  in: !!s,
516
513
  timeout: ke,
517
514
  classNames: z,
518
- unmountOnExit: re,
515
+ unmountOnExit: ne,
519
516
  appear: !0,
520
517
  mountOnEnter: !0,
521
518
  onEnter: () => {
522
519
  t.current.triggerDestoried = !1;
523
520
  const e = a.current;
524
- e && (e.style.display = "initial", e.style.pointerEvents = "none", z === "slideDynamicOrigin" && (e.style.transform = de()), C());
521
+ e && (e.style.display = "initial", e.style.pointerEvents = "none", z === "slideDynamicOrigin" && (e.style.transform = fe()), C());
525
522
  },
526
523
  onEntering: () => {
527
524
  const e = a.current;
@@ -537,13 +534,13 @@ function So(d, $) {
537
534
  },
538
535
  onExited: () => {
539
536
  const e = a.current;
540
- e && (e.style.display = "none", re && (t.current.triggerDestoried = !0), O((o) => {
537
+ e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), O((o) => {
541
538
  const n = { ...o };
542
539
  return n.popupStyle = {}, n;
543
540
  }), Ve?.(e));
544
541
  },
545
542
  nodeRef: a,
546
- children: /* @__PURE__ */ xe(
543
+ children: /* @__PURE__ */ De(
547
544
  "span",
548
545
  {
549
546
  ref: a,
@@ -560,25 +557,25 @@ function So(d, $) {
560
557
  ...Q,
561
558
  className: Re,
562
559
  children: [
563
- ee(ie) ? /* @__PURE__ */ P(
560
+ ee(re) ? /* @__PURE__ */ P(
564
561
  H.type,
565
562
  {
566
563
  ref: H.ref,
567
564
  ...H.props,
568
- style: { ...H.props.style, ...ie }
565
+ style: { ...H.props.style, ...re }
569
566
  }
570
567
  ) : H,
571
568
  (_e || _) && /* @__PURE__ */ P(
572
569
  "div",
573
570
  {
574
- ref: ue,
571
+ ref: se,
575
572
  className: R(`${v}-arrow-container`, {
576
573
  [`${h}-arrow-container`]: h
577
574
  }),
578
575
  children: /* @__PURE__ */ P(
579
576
  "div",
580
577
  {
581
- ref: ce,
578
+ ref: ue,
582
579
  ..._,
583
580
  className: R(
584
581
  `${v}-arrow`,
@@ -597,8 +594,8 @@ function So(d, $) {
597
594
  )
598
595
  }
599
596
  );
600
- let F, Ee = s;
601
- if (Ee ||= !!a.current && !t.current.triggerDestoried, Ee) {
597
+ let F, he = s;
598
+ if (he ||= !!a.current && !t.current.triggerDestoried, he) {
602
599
  const e = i.getPopupContainer || y.getPopupContainer;
603
600
  if (D(e)) {
604
601
  const o = e(b());
@@ -609,7 +606,7 @@ function So(d, $) {
609
606
  ));
610
607
  }
611
608
  }
612
- return se && (F = /* @__PURE__ */ xe(po, { children: [
609
+ return ie && (F = /* @__PURE__ */ De(po, { children: [
613
610
  oo,
614
611
  F
615
612
  ] })), F;
@@ -1,2 +1,8 @@
1
+ import type { DevelopmentProps } from './interface';
2
+ /**
3
+ * 开发占位组件
4
+ * @description 用于展示未开发完成的功能区块,支持自定义图片/图标和提示文字
5
+ */
6
+ declare const Development: import("react").ForwardRefExoticComponent<DevelopmentProps & import("react").RefAttributes<HTMLDivElement>>;
1
7
  export default Development;
2
- declare const Development: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
8
+ export type { DevelopmentProps };