@unicom-cloud/ui 0.8.113 → 0.8.115

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 (325) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +3 -3
  5. package/Badge.js +2 -2
  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 +1 -1
  17. package/Countdown.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +4 -4
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +2 -2
  25. package/Empty.js +1 -1
  26. package/Flex.js +4 -4
  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 +4 -4
  35. package/List.js +6 -5
  36. package/Loading.js +4 -4
  37. package/Marquee.js +7 -6
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -4
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +1 -1
  45. package/PageHeader.js +1 -1
  46. package/Pagination.js +4 -2
  47. package/Popconfirm.js +1 -1
  48. package/Popover.js +1 -1
  49. package/Progress.js +1 -1
  50. package/QrCode.js +7 -7
  51. package/Radio.js +1 -1
  52. package/Rate.js +1 -1
  53. package/ResizeBox.js +2 -2
  54. package/Result.js +1 -1
  55. package/RichText.js +1 -1
  56. package/Segmented.js +4 -4
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +2 -2
  59. package/Space.js +4 -4
  60. package/Spin.js +1 -1
  61. package/Statistic.js +1 -1
  62. package/Steps.js +1 -1
  63. package/Switch.js +2 -2
  64. package/Table.js +1 -1
  65. package/Tabs.js +1 -1
  66. package/Tag.js +1 -1
  67. package/Tooltip.js +1 -1
  68. package/Tour.js +4 -4
  69. package/Transfer.js +1 -1
  70. package/Tree.js +1 -1
  71. package/TreeSelect.js +1 -1
  72. package/Trigger.js +3 -3
  73. package/affix/index.js +2 -2
  74. package/alert/index.js +2 -2
  75. package/anchor/Anchor.js +2 -2
  76. package/anchor/Link.js +1 -1
  77. package/app/App.js +2 -2
  78. package/auto-complete/index.js +1 -1
  79. package/avatar/Avatar.js +1 -1
  80. package/avatar/Group.js +1 -1
  81. package/back-top/index.js +3 -3
  82. package/badge/Count.js +1 -1
  83. package/badge/index.js +2 -2
  84. package/breadcrumb/index.js +2 -2
  85. package/button/Group.js +1 -1
  86. package/button/index.js +1 -1
  87. package/calendar/index.js +2 -2
  88. package/card/Grid.js +1 -1
  89. package/card/Meta.js +1 -1
  90. package/card/index.js +1 -1
  91. package/carousel/Arrow.js +1 -1
  92. package/carousel/Indicator.js +1 -1
  93. package/carousel/index.js +1 -1
  94. package/cascader/Cascader.js +2 -2
  95. package/cascader/index.js +1 -1
  96. package/cascader/util.js +1 -1
  97. package/checkbox/Checkbox.js +2 -2
  98. package/checkbox/Group.js +2 -2
  99. package/checkbox/GroupBlock.js +2 -2
  100. package/checkbox/index.js +2 -2
  101. package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
  102. package/chunk/BcdTSJks.js +48 -0
  103. package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
  104. package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
  105. package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
  106. package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
  107. package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
  108. package/chunk/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
  109. package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
  110. package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
  111. package/chunk/CxbF1opI.js +231 -0
  112. package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
  113. package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
  114. package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
  115. package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
  116. package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
  117. package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
  118. package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
  119. package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
  120. package/chunk/exc7v_Hl.js +53 -0
  121. package/collapse/Collapse.js +2 -2
  122. package/collapse/Item.js +2 -2
  123. package/color-picker/ControlBar.js +1 -1
  124. package/color-picker/InputAlpha.js +1 -1
  125. package/color-picker/InputHex.js +1 -1
  126. package/color-picker/InputRgb.js +1 -1
  127. package/color-picker/Palette.js +1 -1
  128. package/color-picker/Panel.js +2 -2
  129. package/color-picker/index.js +1 -1
  130. package/comment/index.js +1 -1
  131. package/config-provider/ConfigProvider.js +1 -1
  132. package/config-provider/context.js +1 -1
  133. package/config-provider/index.js +2 -2
  134. package/copy/index.js +1 -1
  135. package/countdown/index.js +4 -4
  136. package/date-picker/Picker.js +1 -1
  137. package/date-picker/RangePicker.js +2 -2
  138. package/date-picker/index.js +1 -1
  139. package/descriptions/index.js +1 -1
  140. package/details/index.js +4 -4
  141. package/development/index.js +1 -1
  142. package/divider/index.js +1 -1
  143. package/draggable/index.js +1 -1
  144. package/drawer/Drawer.js +89 -93
  145. package/dropdown/Button.js +1 -1
  146. package/dropdown/index.js +2 -2
  147. package/empty/index.js +1 -1
  148. package/flex/index.js +4 -4
  149. package/form/Control.js +115 -103
  150. package/form/Form.js +2 -2
  151. package/form/FormItem.js +2 -2
  152. package/form/index.js +1 -1
  153. package/form/promisify.js +10 -19
  154. package/form/store.js +3 -3
  155. package/form/util.js +62 -52
  156. package/grid/Grid.js +1 -1
  157. package/grid/Item.js +1 -1
  158. package/hooks/index.js +3 -3
  159. package/hooks/useInView.js +1 -1
  160. package/hooks/useIntersectionObserver.js +1 -1
  161. package/hooks/useOverrideRef.js +1 -1
  162. package/hooks/useWatermark.js +1 -1
  163. package/icon/addFromIconFontCn.js +1 -1
  164. package/icon/index.js +2 -2
  165. package/icon-hover/index.js +1 -1
  166. package/icons/file.js +1 -1
  167. package/image/Image.js +3 -3
  168. package/image/ImagePreview.js +6 -6
  169. package/image/ImagePreviewArrow.js +1 -1
  170. package/image/ImagePreviewGroup.js +1 -1
  171. package/image/index.js +1 -1
  172. package/index.js +739 -726
  173. package/input/Button.js +1 -1
  174. package/input/Group.js +1 -1
  175. package/input/Input.js +2 -2
  176. package/input/InputElement.js +1 -1
  177. package/input/Password.js +1 -1
  178. package/input/Search.js +1 -1
  179. package/input/Textarea.js +1 -1
  180. package/input/autoSizeTextAreaHeight.js +29 -20
  181. package/input-number/index.js +1 -1
  182. package/input-tag/InputTag.js +2 -2
  183. package/layout/Content.js +1 -1
  184. package/layout/Footer.js +1 -1
  185. package/layout/Header.js +1 -1
  186. package/layout/Sider.js +1 -1
  187. package/layout/index.js +1 -1
  188. package/link/index.js +1 -1
  189. package/liquid-fill/index.js +4 -4
  190. package/list/Item.js +1 -1
  191. package/list/Meta.js +1 -1
  192. package/list/index.js +2 -1
  193. package/loading/index.js +4 -4
  194. package/locale/en-US.js +5 -3
  195. package/locale/tr-TR.js +5 -3
  196. package/marquee/index.js +7 -6
  197. package/marquee-/index.js +7 -6
  198. package/mentions/index.js +1 -1
  199. package/menu/Menu.js +2 -2
  200. package/menu/OverflowWrap.js +1 -1
  201. package/menu/index.js +2 -2
  202. package/message/index.js +2 -2
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +5 -5
  206. package/modal/index.js +2 -2
  207. package/notice/index.js +4 -4
  208. package/notification/index.js +2 -2
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +1 -1
  211. package/overflow-ellipsis/index.js +1 -1
  212. package/package.json +1 -1
  213. package/page-header/index.js +1 -1
  214. package/pagination/PageItem.js +1 -1
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +103 -31
  217. package/pagination/Pagination.js +38 -35
  218. package/pagination/index.js +2 -0
  219. package/picker/Input.js +1 -1
  220. package/picker/InputRange.js +1 -1
  221. package/popconfirm/index.js +1 -1
  222. package/popover/index.js +1 -1
  223. package/progress/index.js +1 -1
  224. package/qr-code/index.js +1233 -45
  225. package/radio/Group.js +2 -2
  226. package/radio/GroupBlock.js +2 -2
  227. package/radio/Radio.js +2 -2
  228. package/radio/index.js +2 -2
  229. package/rate/index.js +1 -1
  230. package/resize-box/ResizeTrigger.js +1 -1
  231. package/resize-box/Split.js +2 -2
  232. package/resize-box/SplitGroup.js +2 -2
  233. package/resize-box/index.js +2 -2
  234. package/result/index.js +1 -1
  235. package/rich-text/index.js +1 -1
  236. package/row-col/Col-.js +1 -1
  237. package/row-col/Col.js +1 -1
  238. package/row-col/Row.js +1 -1
  239. package/segmented/index.js +21 -21
  240. package/select/Option.js +1 -1
  241. package/select/Select.js +2 -2
  242. package/select-view/Core.js +1 -1
  243. package/skeleton/index.js +1 -1
  244. package/slider/Button.js +2 -2
  245. package/slider/index.js +2 -2
  246. package/space/index.js +4 -4
  247. package/spin/DotLoading.js +1 -1
  248. package/spin/index.js +1 -1
  249. package/splitter/Panel.js +1 -1
  250. package/splitter/SplitBar.js +2 -2
  251. package/splitter/Splitter.js +2 -2
  252. package/statistic/index.js +1 -1
  253. package/steps/index.js +1 -1
  254. package/style.css +1 -1
  255. package/switch/index.js +2 -2
  256. package/table/Table.js +5 -4
  257. package/table/index.js +4 -4
  258. package/tabs/Tab.js +2 -2
  259. package/tabs/TabContent.js +2 -2
  260. package/tabs/TabPane.js +1 -1
  261. package/tabs/index.js +2 -2
  262. package/tag/index.js +1 -1
  263. package/time-picker/Picker.js +1 -1
  264. package/time-picker/TimePicker.js +1 -1
  265. package/timeline/Item.js +1 -1
  266. package/timeline/Timeline.js +1 -1
  267. package/tooltip/index.js +1 -1
  268. package/tour/index.js +4 -4
  269. package/transfer/Item.js +2 -2
  270. package/transfer/List.js +2 -2
  271. package/transfer/index.js +1 -1
  272. package/tree/Animation.js +3 -3
  273. package/tree/Node.js +3 -3
  274. package/tree/NodeList.js +1 -1
  275. package/tree/Tree.js +2 -2
  276. package/tree/index.js +1 -1
  277. package/tree-select/Select.js +2 -2
  278. package/tree-select/index.js +1 -1
  279. package/trigger/getPopupStyle.js +1 -1
  280. package/trigger/index.js +145 -145
  281. package/types/common/hooks/useWindowSize.d.ts +4 -4
  282. package/types/common/utils/dom.d.ts +1 -1
  283. package/types/common/utils/lodash.d.ts +2 -1
  284. package/types/common/utils/reactDOM.d.ts +10 -1
  285. package/types/common/utils/validate.d.ts +2 -0
  286. package/types/pc/form/interface.d.ts +6 -1
  287. package/types/pc/form/promisify.d.ts +5 -0
  288. package/types/pc/form/store.d.ts +1 -1
  289. package/types/pc/form/util.d.ts +1 -1
  290. package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
  291. package/types/pc/pagination/PageOption.d.ts +3 -0
  292. package/types/pc/pagination/index.d.ts +2 -0
  293. package/types/pc/pagination/interface.d.ts +5 -0
  294. package/types/pc/qr-code/examples/demo.d.ts +1 -0
  295. package/types/pc/qr-code/examples/download.d.ts +2 -0
  296. package/types/pc/qr-code/examples/full.d.ts +2 -0
  297. package/types/pc/qr-code/examples/image.d.ts +2 -0
  298. package/types/pc/qr-code/index.d.ts +2 -0
  299. package/types/pc/qr-code/src/index.d.ts +116 -0
  300. package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
  301. package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
  302. package/types/pc/utils/validate.d.ts +1 -1
  303. package/typography/Base.js +1 -1
  304. package/typography/Ellipsis.js +2 -2
  305. package/typography/Paragraph.js +1 -1
  306. package/typography/Typography.js +1 -1
  307. package/upload/TriggerNode.js +1 -1
  308. package/upload/Upload.js +2 -2
  309. package/upload/Uploader.js +1 -1
  310. package/upload/request_.js +1972 -41
  311. package/utils/PqbCSSTransition.js +1 -1
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/dom.js +1 -1
  314. package/utils/index.js +247 -235
  315. package/utils/lodash.js +33 -32
  316. package/utils/react19Adapter.js +1 -1
  317. package/utils/reactDOM.js +1 -1
  318. package/utils/validate.js +15 -5
  319. package/verification-code/VerificationCode.js +1 -1
  320. package/version/index.js +1 -1
  321. package/virtual-list/VirtualList.js +1 -1
  322. package/watermark/Watermark.js +1 -1
  323. package/chunk/CXrVhA6-.js +0 -54
  324. package/chunk/De8RLlOK.js +0 -231
  325. package/chunk/d1c9z8T1.js +0 -49
@@ -1,6 +1,6 @@
1
1
  import { jsx as I, jsxs as N } from "react/jsx-runtime";
2
2
  import R, { forwardRef as b, useContext as w, useRef as F, createElement as j } from "react";
3
- import { a as z } from "../chunk/CYDaUML7.js";
3
+ import { a as z } from "../chunk/DstheLSK.js";
4
4
  import { u as D } from "../chunk/FgWHhRFz.js";
5
5
  import E from "../input/InputElement.js";
6
6
  import p from "@unicom-cloud/utils/class-name";
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-09-09 17:52:58", t = "1757411578762", E = "2.66.5";
1
+ const I = "2025-09-15 15:03:53", t = "1757919833612", E = "2.66.5";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,
@@ -10,7 +10,7 @@ import { u as Yt } from "../chunk/Cy26_CKq.js";
10
10
  import { r as qt } from "../chunk/CHQ8c547.js";
11
11
  import xt from "./Filler.js";
12
12
  import { g as Gt } from "../chunk/DKHXj8Kf.js";
13
- import { f as Wt } from "../chunk/CXrVhA6-.js";
13
+ import { f as Wt } from "../chunk/exc7v_Hl.js";
14
14
  function zt(o, s, r, e) {
15
15
  const l = r - o, i = s - r, I = Math.min(l, i) * 2;
16
16
  if (e <= I) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as l, useContext as p, useRef as u, useCallback as g, useEffect as d } from "react";
3
- import { a as C } from "../chunk/CYDaUML7.js";
3
+ import { a as C } from "../chunk/DstheLSK.js";
4
4
  import { useWatermark as h } from "../hooks/useWatermark.js";
5
5
  import { u as x } from "../chunk/FgWHhRFz.js";
6
6
  import k from "@unicom-cloud/utils/class-name";
package/chunk/CXrVhA6-.js DELETED
@@ -1,54 +0,0 @@
1
- import { Component as s } from "react";
2
- import u, { findDOMNode as f } from "react-dom";
3
- import d from "react-dom/client";
4
- import { g as c, f as l } from "./DsaQZE4X.js";
5
- import m from "../utils/warning.js";
6
- import { isFunction as o } from "@unicom-cloud/utils/is";
7
- const p = u;
8
- let a;
9
- try {
10
- a = p.createRoot || d.createRoot;
11
- } catch (t) {
12
- console.error(t);
13
- }
14
- let i;
15
- function R(t) {
16
- const r = t.constructor;
17
- if (!o(r)) return !1;
18
- i ||= /* @__PURE__ */ new WeakSet();
19
- const e = i.has(r);
20
- return i.add(r), e;
21
- }
22
- function E(t, r) {
23
- if (!t) return null;
24
- const e = t;
25
- if (t instanceof Element)
26
- return t;
27
- if (e.dom instanceof Element)
28
- return e.dom;
29
- if (e.current instanceof Element)
30
- return e.current;
31
- if (c) {
32
- const n = e.props?.ref;
33
- if (n && "current" in n && n.current instanceof Element)
34
- return n.current;
35
- }
36
- return o(e.getRootDOMNode) ? e.getRootDOMNode() : e instanceof s && o(f) ? f(e) : r && (m(
37
- l && !R(r),
38
- "Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
39
- { element: t, instance: r }
40
- ), o(f)) ? f(r) : null;
41
- }
42
- function k(t, r) {
43
- if (!t) return;
44
- let e;
45
- c ? e = t?.props?.ref ?? t?.ref : e = t?.ref, e && (o(e) ? e(r) : "current" in e && (e.current = r));
46
- }
47
- function C(t) {
48
- a = t;
49
- }
50
- export {
51
- k as c,
52
- E as f,
53
- C as s
54
- };
package/chunk/De8RLlOK.js DELETED
@@ -1,231 +0,0 @@
1
- import { jsx as a, jsxs as x, Fragment as H } from "react/jsx-runtime";
2
- import T from "lodash/isFunction";
3
- import L from "lodash/isNil";
4
- import Q, { createContext as S, useContext as y, useRef as q } from "react";
5
- import { a as B, I as J } from "./CYDaUML7.js";
6
- import { u as E } from "./FgWHhRFz.js";
7
- import { u as j } from "./2vdCeheu.js";
8
- import R from "@unicom-cloud/utils/class-name";
9
- import { o as K } from "./BKKEev13.js";
10
- import U from "lodash/isArray";
11
- import W from "lodash/isPlainObject";
12
- import { pickTriggerPropsFromRest as X } from "../utils/constant.js";
13
- import { a as Y } from "./ClqoGc3r.js";
14
- import _ from "../typography/index.js";
15
- const A = {
16
- type: "radio"
17
- }, Z = {
18
- type: "radio",
19
- mode: "outline",
20
- direction: "horizontal"
21
- }, P = S(A), he = ({ children: m }) => /* @__PURE__ */ a(P.Provider, { value: A, children: m });
22
- function D(m) {
23
- const {
24
- getPrefixCls: f,
25
- size: g,
26
- componentConfig: v,
27
- rtl: h
28
- } = y(B), e = E(
29
- m,
30
- Z,
31
- v?.RadioGroup
32
- ), {
33
- style: r,
34
- className: s,
35
- name: o,
36
- children: t,
37
- direction: n,
38
- type: C,
39
- mode: b,
40
- options: $,
41
- disabled: p
42
- } = e, [d, G] = j(void 0, {
43
- defaultValue: e.defaultValue,
44
- value: e.value
45
- }), k = e.size || g, i = f?.("radio"), V = R(
46
- `${i}-group`,
47
- {
48
- [`${i}-group-type-button`]: C !== "radio",
49
- [`${i}-size-${k}`]: !!k,
50
- [`${i}-mode-${b}`]: !!b,
51
- [`${i}-group-disabled`]: p,
52
- [`${i}-group-direction-horizontal`]: n === "horizontal",
53
- // 潘启宝添加
54
- [`${i}-group-direction-vertical`]: n === "vertical",
55
- [`${i}-group-rtl`]: h
56
- },
57
- s
58
- ), z = {
59
- onChangeValue: (c, w) => {
60
- const { onChange: N } = e;
61
- c !== d && ("value" in e || G(c), N?.(c, w));
62
- },
63
- type: C,
64
- value: d,
65
- disabled: p,
66
- group: !0,
67
- name: o
68
- };
69
- return /* @__PURE__ */ a(P.Provider, { value: z, children: /* @__PURE__ */ a(
70
- "div",
71
- {
72
- className: V,
73
- role: "radiogroup",
74
- style: r,
75
- ...X(e),
76
- ...Y(e),
77
- children: $ && U($) ? $.map((c, w) => {
78
- const { value: N, label: I, disabled: M, ...O } = c;
79
- return W(c) ? /* @__PURE__ */ a(
80
- u,
81
- {
82
- ...O,
83
- disabled: p || M,
84
- value: N,
85
- children: I
86
- },
87
- N
88
- ) : /* @__PURE__ */ a(u, { value: c, disabled: p, children: c }, w);
89
- }) : t
90
- }
91
- ) });
92
- }
93
- D.displayName = "RadioGroup";
94
- const ee = {};
95
- function F(m) {
96
- const { getPrefixCls: f, componentConfig: g, rtl: v } = y(B), h = E(
97
- m,
98
- ee,
99
- g?.["Radio.Block"]
100
- ), { className: e, options: r, ...s } = h, o = f?.("radio-group-block");
101
- return /* @__PURE__ */ a(
102
- u.Group,
103
- {
104
- className: R(`${o}`, e),
105
- ...s,
106
- onChange: (t, n) => {
107
- h.onChange?.(t, n);
108
- },
109
- children: r.map((t) => /* @__PURE__ */ a(u, { value: t.value, children: ({ checked: n }) => /* @__PURE__ */ x(
110
- "div",
111
- {
112
- style: { width: t.width },
113
- className: R(
114
- `${o}-card`,
115
- n && `${o}-card-checked`
116
- ),
117
- children: [
118
- /* @__PURE__ */ a("div", { className: `${o}-card-mask`, children: /* @__PURE__ */ a("div", { className: `${o}-card-mask-dot` }) }),
119
- /* @__PURE__ */ x("div", { className: `${o}-card-content`, children: [
120
- /* @__PURE__ */ a(
121
- _.Ellipsis,
122
- {
123
- className: `${o}-card-content-title`,
124
- rows: 1,
125
- showTooltip: !0,
126
- expandable: !1,
127
- onExpand: (C) => {
128
- },
129
- children: t.title
130
- }
131
- ),
132
- /* @__PURE__ */ a(
133
- _.Ellipsis,
134
- {
135
- className: `${o}-card-content-desc`,
136
- rows: 1,
137
- showTooltip: !0,
138
- expandable: !1,
139
- onExpand: (C) => {
140
- },
141
- children: t.desc
142
- }
143
- )
144
- ] })
145
- ]
146
- }
147
- ) }, t.title))
148
- }
149
- );
150
- }
151
- F.displayName = "RadioGroupBlock";
152
- function u(m) {
153
- const f = q(null), { getPrefixCls: g, componentConfig: v, rtl: h } = y(B), e = E(
154
- m,
155
- {},
156
- v?.Radio
157
- ), r = y(P), s = g?.("radio"), o = { ...e };
158
- r.group && (o.checked = r.value === e.value, o.disabled = "disabled" in e ? e.disabled : r.disabled);
159
- const { disabled: t, children: n, value: C, style: b, className: $, ...p } = o, [d, G] = j(!1, {
160
- value: o.checked,
161
- defaultValue: o.defaultChecked
162
- }), k = R(
163
- `${s}${r.type === "button" ? "-button" : ""}`,
164
- {
165
- [`${s}-checked`]: d,
166
- [`${s}-disabled`]: t,
167
- [`${s}-rtl`]: h
168
- },
169
- $
170
- ), i = (l) => {
171
- const { onChange: z, value: c } = o;
172
- t || (r.group ? r.onChangeValue?.(c, l) : !("checked" in e) && !d && G(!0), !d && z?.(!0, l));
173
- }, V = Q.useCallback(
174
- (l) => {
175
- T(e.children) && (l.preventDefault(), f.current && f.current.click()), p.onClick?.(l);
176
- },
177
- [e.children, p.onClick]
178
- );
179
- return /* @__PURE__ */ x(
180
- "label",
181
- {
182
- ...K(p, ["checked", "onChange"]),
183
- onClick: V,
184
- style: b,
185
- className: k,
186
- children: [
187
- /* @__PURE__ */ a(
188
- "input",
189
- {
190
- ref: f,
191
- disabled: t,
192
- value: C || "",
193
- type: "radio",
194
- ...r.name ? { name: r.name } : {},
195
- checked: d,
196
- onChange: (l) => {
197
- l.persist(), i(l);
198
- },
199
- onClick: (l) => {
200
- l.stopPropagation();
201
- }
202
- }
203
- ),
204
- T(n) ? n({ checked: d }) : r.type === "radio" ? /* @__PURE__ */ x(H, { children: [
205
- /* @__PURE__ */ a(
206
- J,
207
- {
208
- prefix: s,
209
- className: `${s}-mask-wrapper`,
210
- disabled: d || t,
211
- children: /* @__PURE__ */ a("div", { className: `${s}-mask` })
212
- }
213
- ),
214
- !L(n) && /* @__PURE__ */ a("span", { className: `${s}-text`, children: n })
215
- ] }) : r.type === "button" && /* @__PURE__ */ a("span", { className: `${s}-button-inner`, children: n })
216
- ]
217
- }
218
- );
219
- }
220
- u.__PQB_RADIO = !0;
221
- u.displayName = "Radio";
222
- u.Group = D;
223
- u.GroupBlock = F;
224
- u.GroupContext = P;
225
- export {
226
- he as C,
227
- D as G,
228
- u as R,
229
- F as a,
230
- P as b
231
- };
package/chunk/d1c9z8T1.js DELETED
@@ -1,49 +0,0 @@
1
- import { N as i } from "./CjNkKiBA.js";
2
- const s = function() {
3
- try {
4
- return !(typeof window < "u" && document !== void 0);
5
- } catch {
6
- return !0;
7
- }
8
- }(), w = /* @__PURE__ */ function() {
9
- return s ? i : function(t, o, n, e) {
10
- t?.addEventListener?.(o, n, e || !1);
11
- };
12
- }(), g = /* @__PURE__ */ function() {
13
- return s ? i : function(t, o, n, e) {
14
- t?.removeEventListener?.(o, n, e || !1);
15
- };
16
- }(), E = function(t, o) {
17
- if (!t)
18
- return !1;
19
- if (t.contains)
20
- return t.contains(o);
21
- let n = o;
22
- for (; n; ) {
23
- if (n === t)
24
- return !0;
25
- n = n.parentNode;
26
- }
27
- return !1;
28
- };
29
- function h(t) {
30
- if (!(t instanceof HTMLElement) || t === document.documentElement || t === window)
31
- return !1;
32
- const o = t === document.documentElement ? t.clientHeight : t.offsetHeight, n = t === document.documentElement ? t.clientWidth : t.offsetWidth, e = t.scrollHeight, l = t.scrollWidth, c = window.getComputedStyle(t), u = c.getPropertyValue("overflow-x"), f = c.getPropertyValue("overflow-y"), r = ["scroll", "auto"], a = e > o && r.includes(f), d = l > n && r.includes(u);
33
- return a || d;
34
- }
35
- const p = (t, o = document.documentElement) => {
36
- const n = [];
37
- let e = t;
38
- for (; e && e !== o; )
39
- h(e) && n.push(e), e = e.parentElement;
40
- return n;
41
- };
42
- export {
43
- s as a,
44
- w as b,
45
- E as c,
46
- p as g,
47
- h as i,
48
- g as o
49
- };