@unicom-cloud/ui 0.8.69 → 0.8.71

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 (274) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +2 -2
  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/Collapse.js +1 -1
  14. package/ColorPicker.js +1 -1
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +2 -2
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +1 -1
  31. package/Mentions.js +1 -1
  32. package/Menu.js +1 -1
  33. package/Message.js +2 -2
  34. package/Modal.js +1 -1
  35. package/Notice.js +2 -2
  36. package/Notification.js +2 -2
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Popconfirm.js +1 -1
  40. package/Popover.js +1 -1
  41. package/Progress.js +1 -1
  42. package/Radio.js +1 -1
  43. package/Rate.js +1 -1
  44. package/ResizeBox.js +1 -1
  45. package/Result.js +1 -1
  46. package/Skeleton.js +1 -1
  47. package/Slider.js +2 -2
  48. package/Space.js +1 -1
  49. package/SpeechSynthesis.js +3 -3
  50. package/Spin.js +1 -1
  51. package/Statistic.js +1 -1
  52. package/Steps.js +1 -1
  53. package/Switch.js +2 -2
  54. package/Table.js +1 -1
  55. package/Tabs.js +1 -1
  56. package/Tag.js +1 -1
  57. package/Tooltip.js +1 -1
  58. package/Transfer.js +1 -1
  59. package/Tree.js +1 -1
  60. package/Trigger.js +3 -3
  61. package/affix/index.js +1 -1
  62. package/alert/index.js +2 -2
  63. package/anchor/Anchor.js +1 -1
  64. package/anchor/Link.js +1 -1
  65. package/auto-complete/index.js +1 -1
  66. package/avatar/Avatar.js +1 -1
  67. package/avatar/Group.js +1 -1
  68. package/back-top/index.js +2 -2
  69. package/badge/Count.js +1 -1
  70. package/badge/index.js +2 -2
  71. package/breadcrumb/index.js +2 -2
  72. package/button/Group.js +1 -1
  73. package/button/index.js +1 -1
  74. package/calendar/index.js +2 -2
  75. package/card/Grid.js +1 -1
  76. package/card/Meta.js +1 -1
  77. package/card/index.js +1 -1
  78. package/carousel/Arrow.js +1 -1
  79. package/carousel/Indicator.js +1 -1
  80. package/carousel/index.js +1 -1
  81. package/cascader/Cascader.js +3 -3
  82. package/cascader/index.js +1 -1
  83. package/cascader/util.js +1 -1
  84. package/checkbox/Checkbox.js +2 -2
  85. package/checkbox/Group.js +2 -2
  86. package/checkbox/index.js +1 -1
  87. package/chunk/{CKyu68pu.js → 8V534cS3.js} +3 -3
  88. package/chunk/{CCv-5KFt.js → BHL-PzAD.js} +149 -152
  89. package/chunk/BL9DMeor.js +9 -0
  90. package/chunk/{Clo26EcR.js → BPD5iNdA.js} +16 -21
  91. package/chunk/BlElSWJg.js +257 -0
  92. package/chunk/{SSK90wgo.js → BzPNDYAX.js} +1 -1
  93. package/chunk/{CgurXnoy.js → C5X9bDyX.js} +4 -4
  94. package/chunk/C6AJxF7d.js +1820 -0
  95. package/chunk/CQTxhsUk.js +170 -0
  96. package/chunk/{C98ks5S8.js → CUs1AOCZ.js} +2 -2
  97. package/chunk/CZWGeRVA.js +715 -0
  98. package/chunk/{C48SmsN-.js → ClaNycDy.js} +27 -18
  99. package/chunk/{CpGBWmuz.js → D2DSUGNT.js} +2 -2
  100. package/chunk/{DonYzv30.js → DV7ywe_q.js} +1 -1
  101. package/chunk/{BjpUSKM3.js → Dm1NCTkX.js} +3 -3
  102. package/chunk/{BDB0LByj.js → EHx6bIK_.js} +3 -3
  103. package/chunk/{Bi4UkwOR.js → I1dqAgn_.js} +4 -4
  104. package/chunk/a3hR6zLw.js +12 -0
  105. package/chunk/{DzVH9IBy.js → fFjj2KuF.js} +1 -1
  106. package/chunk/{vmgkWLYf.js → pEI3aB9Z.js} +2 -2
  107. package/collapse/Collapse.js +2 -2
  108. package/collapse/Item.js +3 -3
  109. package/collapse/index.js +1 -1
  110. package/color-picker/ControlBar.js +1 -1
  111. package/color-picker/InputAlpha.js +1 -1
  112. package/color-picker/InputHex.js +1 -1
  113. package/color-picker/InputRgb.js +1 -1
  114. package/color-picker/Palette.js +1 -1
  115. package/color-picker/Panel.js +2 -2
  116. package/color-picker/index.js +1 -1
  117. package/comment/index.js +1 -1
  118. package/config-provider/ConfigProvider.js +1 -1
  119. package/config-provider/context.js +1 -1
  120. package/config-provider/index.js +2 -2
  121. package/copy/index.js +1 -1
  122. package/date-picker/Picker.js +2 -2
  123. package/date-picker/PickerRange.js +3 -3
  124. package/date-picker/index.js +1 -1
  125. package/descriptions/index.js +80 -75
  126. package/divider/index.js +1 -1
  127. package/draggable/index.js +1 -1
  128. package/drawer/Drawer.js +3 -3
  129. package/dropdown/Button.js +1 -1
  130. package/dropdown/index.js +2 -2
  131. package/empty/index.js +1 -1
  132. package/form/Form.js +1 -1
  133. package/form/FormItem.js +2 -2
  134. package/form/util.js +11 -11
  135. package/grid/Col.js +1 -1
  136. package/grid/Row.js +1 -1
  137. package/grid/grid-item.js +1 -1
  138. package/grid/grid.js +1 -1
  139. package/hooks/index.js +36 -34
  140. package/hooks/useListenResize.js +4 -0
  141. package/hooks/useOverrideRef.js +1 -1
  142. package/hooks/useUpdateEffect.js +1 -1
  143. package/hooks/useWindowSize.js +1 -1
  144. package/icon/index.js +1 -1
  145. package/icon-hover/index.js +1 -1
  146. package/image/Image.js +2 -2
  147. package/image/ImagePreview.js +5 -5
  148. package/image/ImagePreviewArrow.js +1 -1
  149. package/image/ImagePreviewGroup.js +1 -1
  150. package/image/index.js +1 -1
  151. package/index.js +582 -580
  152. package/input/Group.js +1 -1
  153. package/input/Input.js +1 -1
  154. package/input/InputElement.js +1 -1
  155. package/input/Password.js +1 -1
  156. package/input/Search.js +1 -1
  157. package/input/Textarea.js +1 -1
  158. package/input-number/index.js +1 -1
  159. package/input-tag/InputTag.js +2 -2
  160. package/layout/Content.js +1 -1
  161. package/layout/Footer.js +1 -1
  162. package/layout/Header.js +1 -1
  163. package/layout/Sider.js +1 -1
  164. package/layout/index.js +1 -1
  165. package/link/index.js +1 -1
  166. package/list/Item.js +1 -1
  167. package/list/Meta.js +1 -1
  168. package/list/index.js +1 -1
  169. package/locale/en-US.js +1 -1
  170. package/locale/tr-TR.js +1 -1
  171. package/mentions/index.js +1 -1
  172. package/menu/Menu.js +2 -2
  173. package/menu/OverflowWrap.js +1 -1
  174. package/menu/index.js +2 -2
  175. package/message/index.js +2 -2
  176. package/message/useMessage.js +1 -1
  177. package/modal/Confirm.js +2 -2
  178. package/modal/Modal.js +4 -4
  179. package/modal/index.js +1 -1
  180. package/notice/index.js +2 -2
  181. package/notification/index.js +2 -2
  182. package/notification/useNotification.js +1 -1
  183. package/notification/withNotification.js +43 -35
  184. package/overflow-ellipsis/OverflowItem.js +1 -1
  185. package/overflow-ellipsis/index.js +1 -1
  186. package/package.json +1 -1
  187. package/page-header/index.js +1 -1
  188. package/pagination/PageItem.js +1 -1
  189. package/pagination/PageJumper.js +1 -1
  190. package/pagination/PageOption.js +1 -1
  191. package/pagination/Pagination.js +1 -1
  192. package/picker/Input.js +1 -1
  193. package/picker/InputRange.js +1 -1
  194. package/popconfirm/index.js +1 -1
  195. package/popover/index.js +1 -1
  196. package/progress/index.js +1 -1
  197. package/radio/Group.js +2 -2
  198. package/radio/Radio.js +2 -2
  199. package/radio/index.js +2 -2
  200. package/rate/index.js +1 -1
  201. package/resize-box/ResizeTrigger.js +1 -1
  202. package/resize-box/Split.js +1 -1
  203. package/resize-box/SplitGroup.js +1 -1
  204. package/resize-box/index.js +1 -1
  205. package/result/index.js +1 -1
  206. package/select/Option.js +1 -1
  207. package/select/Select.js +2 -2
  208. package/select-view/Core.js +1 -1
  209. package/skeleton/index.js +1 -1
  210. package/slider/Button.js +1 -1
  211. package/slider/index.js +2 -2
  212. package/space/index.js +20 -20
  213. package/speech-synthesis/index.js +39 -39
  214. package/spin/DotLoading.js +1 -1
  215. package/spin/index.js +1 -1
  216. package/statistic/Countdown.js +1 -1
  217. package/statistic/index.js +1 -1
  218. package/steps/index.js +1 -1
  219. package/switch/index.js +2 -2
  220. package/table/Table.js +3 -3
  221. package/table/index.js +89 -81
  222. package/tabs/Tab.js +2 -2
  223. package/tabs/TabContent.js +2 -2
  224. package/tabs/TabPane.js +1 -1
  225. package/tabs/index.js +2 -2
  226. package/tag/index.js +1 -1
  227. package/time-picker/Picker.js +2 -2
  228. package/time-picker/TimePicker.js +1 -1
  229. package/timeline/Item.js +1 -1
  230. package/timeline/Timeline.js +1 -1
  231. package/tooltip/index.js +1 -1
  232. package/transfer/Item.js +2 -2
  233. package/transfer/List.js +2 -2
  234. package/transfer/index.js +1 -1
  235. package/tree/Animation.js +3 -3
  236. package/tree/Node.js +3 -3
  237. package/tree/NodeList.js +1 -1
  238. package/tree/Tree.js +2 -2
  239. package/tree/index.js +1 -1
  240. package/tree-select/Select.js +2 -2
  241. package/trigger/index.js +3 -3
  242. package/types/hooks/index.d.ts +1 -0
  243. package/types/hooks/useListenResize.d.ts +1 -0
  244. package/types/locale/en-US.d.ts +12 -12
  245. package/types/locale/tr-TR.d.ts +12 -12
  246. package/types/message/interface.d.ts +0 -1
  247. package/types/notification/interface.d.ts +0 -1
  248. package/types/space/index.d.ts +3 -4
  249. package/types/table/hook/useThResizable.d.ts +1 -1
  250. package/types/table/interface.d.ts +3 -1
  251. package/types/utils/react19Adapter.d.ts +1 -0
  252. package/typography/Base.js +2 -2
  253. package/typography/Ellipsis.js +11 -11
  254. package/typography/Paragraph.js +1 -1
  255. package/typography/Typography.js +1 -1
  256. package/typography/index.js +11 -11
  257. package/typography/useEllipsis.js +1 -1
  258. package/upload/TriggerNode.js +1 -1
  259. package/upload/Upload.js +2 -2
  260. package/upload/Uploader.js +2 -2
  261. package/utils/CSSTransition.js +1 -1
  262. package/utils/contextHolder.js +1 -1
  263. package/utils/index.js +4 -4
  264. package/utils/react19Adapter.js +3 -0
  265. package/utils/reactDOM.js +1 -1
  266. package/verification-code/VerificationCode.js +1 -1
  267. package/version/index.js +1 -1
  268. package/virtual-list/VirtualList.js +1 -1
  269. package/watermark/Watermark.js +1 -1
  270. package/chunk/BSCrLtfQ.js +0 -10
  271. package/chunk/BSaQv6mx.js +0 -251
  272. package/chunk/CD3AUpzo.js +0 -166
  273. package/chunk/CzQObzKd.js +0 -1817
  274. package/chunk/ll867Bf3.js +0 -730
@@ -1,4 +1,4 @@
1
- import { P as o } from "../chunk/DzVH9IBy.js";
1
+ import { P as o } from "../chunk/fFjj2KuF.js";
2
2
  export {
3
3
  o as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { d as a } from "../chunk/ll867Bf3.js";
2
+ import { d as a } from "../chunk/CZWGeRVA.js";
3
3
  export {
4
4
  a as default
5
5
  };
package/utils/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { g as r } from "../chunk/BDB0LByj.js";
1
+ import { g as r } from "../chunk/EHx6bIK_.js";
2
2
  import { s as t, r as o, d as f, l as i, i as m, c as l, u as p, m as d, o as x } from "../chunk/BibHFOCF.js";
3
3
  import { w as n, k as g, z as c, A as y, G as S, D as b, s as C, b as h, P as R } from "../chunk/B6X4lnd0.js";
4
4
  import { newArray as E, pickTriggerPropsFromRest as N } from "./constant.js";
@@ -24,14 +24,14 @@ import { default as Le } from "lodash/upperFirst";
24
24
  import { COMPONENT_NAMES as Ve } from "./names.js";
25
25
  import { padEnd as He, padStart as qe } from "./pad.js";
26
26
  import { p as Ue, a as _e } from "../chunk/ClqoGc3r.js";
27
- import { c as Je, f as Ke } from "../chunk/C48SmsN-.js";
27
+ import { c as Je, f as Ke } from "../chunk/ClaNycDy.js";
28
28
  import { responsiveArray as Xe, responsiveMap as Ye, default as Ze } from "./responsiveObserve.js";
29
29
  import { fixedWidth as ea, getStyle as aa, setTransformStyle as ra } from "./style.js";
30
30
  import { d as ta } from "../chunk/BsWphzcT.js";
31
31
  import { m as fa } from "../chunk/JPPo5nY_.js";
32
- import { d as ma } from "../chunk/ll867Bf3.js";
32
+ import { d as ma } from "../chunk/CZWGeRVA.js";
33
33
  import { s as pa, s as da } from "../chunk/Ey4YJCkX.js";
34
- import { P as ua } from "../chunk/DzVH9IBy.js";
34
+ import { P as ua } from "../chunk/fFjj2KuF.js";
35
35
  import { l as ga } from "../chunk/CTxjmYmx.js";
36
36
  import { f as ya } from "../chunk/CftuXmo_.js";
37
37
  import { g as ba } from "../chunk/B7M-FGia.js";
@@ -0,0 +1,3 @@
1
+ import { createRoot as o } from "react-dom/client";
2
+ import { s as t } from "../chunk/ClaNycDy.js";
3
+ t(o);
package/utils/reactDOM.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, f as e } from "../chunk/C48SmsN-.js";
1
+ import { c, f as e } from "../chunk/ClaNycDy.js";
2
2
  export {
3
3
  c as callbackOriginRef,
4
4
  e as findDOMNode_
@@ -1,6 +1,6 @@
1
1
  import { jsx as R, jsxs as b } from "react/jsx-runtime";
2
2
  import w, { forwardRef as N, useContext as F, useRef as j, createElement as z } from "react";
3
- import { a as D } from "../chunk/ll867Bf3.js";
3
+ import { a as D } from "../chunk/CZWGeRVA.js";
4
4
  import { u as E } from "../chunk/BFTV6myl.js";
5
5
  import K from "../input/InputElement.js";
6
6
  import { m as p } from "../chunk/JPPo5nY_.js";
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "2025-03-18 11:08:01", I = "1742267281124", E = "2.66.0-beta.2";
1
+ const t = "2025-04-02 12:41:58", I = "1743568918082", E = "2.66.0-beta.2";
2
2
  export {
3
3
  E as VERSION,
4
4
  t as VERSION_BUILD_DATE,
@@ -10,7 +10,7 @@ import { u as Bt } from "../chunk/Duezix3m.js";
10
10
  import { r as Yt } from "../chunk/CIRG541s.js";
11
11
  import xt from "./Filler.js";
12
12
  import { g as qt } from "../chunk/DKHXj8Kf.js";
13
- import { f as Gt } from "../chunk/C48SmsN-.js";
13
+ import { f as Gt } from "../chunk/ClaNycDy.js";
14
14
  function Wt(r, o, n, e) {
15
15
  const l = n - r, i = o - n, p = Math.min(l, i) * 2;
16
16
  if (e <= p) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
3
- import { a as h } from "../chunk/ll867Bf3.js";
3
+ import { a as h } from "../chunk/CZWGeRVA.js";
4
4
  import { useWatermark as x } from "../hooks/useWatermark.js";
5
5
  import { u as k } from "../chunk/BFTV6myl.js";
6
6
  import { m as w } from "../chunk/JPPo5nY_.js";
package/chunk/BSCrLtfQ.js DELETED
@@ -1,10 +0,0 @@
1
- import { useRef as u, useEffect as r } from "react";
2
- function c(t, f = []) {
3
- const e = u(!1);
4
- r(() => {
5
- e.current ? t() : e.current = !0;
6
- }, f);
7
- }
8
- export {
9
- c as u
10
- };
package/chunk/BSaQv6mx.js DELETED
@@ -1,251 +0,0 @@
1
- import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
- import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
- import L from "@unicom-cloud/icons/IconUiCaretRight";
4
- import V from "lodash/isFunction";
5
- import M, { useContext as K, useRef as A, createContext as B } from "react";
6
- import { a as T, I as S } from "./ll867Bf3.js";
7
- import { u as q } from "./BFTV6myl.js";
8
- import { u as D } from "./CdaT1b_F.js";
9
- import { m as g } from "./JPPo5nY_.js";
10
- import { o as G } from "./BKKEev13.js";
11
- import { u as J } from "./DzVH9IBy.js";
12
- import { u as Q } from "./XTEsYGuF.js";
13
- import { off as W, on as X } from "../utils/dom.js";
14
- function Y(l, h) {
15
- var C;
16
- const { getPrefixCls: u } = K(T), o = K(j), I = Q(), {
17
- children: i,
18
- name: s,
19
- header: $,
20
- className: H,
21
- style: E,
22
- contentStyle: b,
23
- extra: x,
24
- disabled: a,
25
- destroyOnHide: y,
26
- expandIcon: v,
27
- showExpandIcon: N = !0,
28
- ...P
29
- } = l, t = A(null), d = A(null), n = u("collapse-item"), c = ((C = o.activeKeys) == null ? void 0 : C.indexOf(s)) > -1, p = N ? "expandIcon" in l ? v : o.expandIcon : null, f = (e, m) => {
30
- var O;
31
- if (a)
32
- return;
33
- const { triggerRegion: R } = o;
34
- (m === (R === "icon" ? 0 : R === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
35
- R === "header" && [0, 1].includes(m)) && ((O = o.onToggle) == null || O.call(o, s, e));
36
- };
37
- return /* @__PURE__ */ w(
38
- "div",
39
- {
40
- ref: h,
41
- ...P,
42
- className: g(
43
- n,
44
- {
45
- [`${n}-active`]: c,
46
- [`${n}-no-icon`]: !p,
47
- [`${n}-disabled`]: a
48
- },
49
- H
50
- ),
51
- style: E,
52
- children: [
53
- /* @__PURE__ */ w(
54
- "div",
55
- {
56
- role: "button",
57
- "aria-disabled": a,
58
- "aria-expanded": c,
59
- "data-active-region": o.triggerRegion,
60
- tabIndex: a ? -1 : 0,
61
- className: g(
62
- `${n}-header`,
63
- `${n}-header-${o.expandIconPosition}`,
64
- {
65
- [`${n}-header-disabled`]: a
66
- }
67
- ),
68
- onClick: (e) => f(e, 2),
69
- ...I({
70
- onPressEnter: (e) => {
71
- !a && o.onToggle(s, e);
72
- }
73
- }),
74
- children: [
75
- p && /* @__PURE__ */ r(
76
- S,
77
- {
78
- prefix: n,
79
- disabled: a,
80
- className: g({
81
- [`${n}-icon-hover-right`]: o.expandIconPosition === "right",
82
- [`${n}-header-icon-right`]: o.expandIconPosition === "right"
83
- }),
84
- onClick: (e) => f(e, 0),
85
- children: /* @__PURE__ */ r(
86
- "span",
87
- {
88
- className: g(`${n}-header-icon`, {
89
- [`${n}-header-icon-down`]: c
90
- }),
91
- children: p
92
- }
93
- )
94
- }
95
- ),
96
- /* @__PURE__ */ r(
97
- "div",
98
- {
99
- className: `${n}-header-title`,
100
- onClick: (e) => f(e, 1),
101
- children: $
102
- }
103
- ),
104
- x && /* @__PURE__ */ r(
105
- "div",
106
- {
107
- className: `${n}-header-extra`,
108
- onClick: (e) => {
109
- e.stopPropagation();
110
- },
111
- children: x
112
- }
113
- )
114
- ]
115
- }
116
- ),
117
- /* @__PURE__ */ r(
118
- J,
119
- {
120
- nodeRef: t,
121
- in: c,
122
- addEndListener: (e) => {
123
- W(t.current, "transitionend", e), X(t.current, "transitionend", e);
124
- },
125
- mountOnEnter: "destroyOnHide" in l ? y : o.destroyOnHide || o.lazyload,
126
- unmountOnExit: "destroyOnHide" in l ? y : o.destroyOnHide,
127
- onEnter: (e) => {
128
- t.current.style.height = 0, t.current.style.display = "block";
129
- },
130
- onEntering: (e) => {
131
- t.current.style.height = `${Math.max(t.current.scrollHeight, d.current.scrollHeight)}px`;
132
- },
133
- onEntered: (e) => {
134
- t.current.style.height = "auto";
135
- },
136
- onExit: (e) => {
137
- d.current.offsetHeight, t.current.offsetHeight, t.current.style.display = "block", t.current.style.height = `${Math.max(t.current.offsetHeight, d.current.offsetHeight)}px`, t.current.offsetHeight, d.current.offsetHeight;
138
- },
139
- onExiting: (e) => {
140
- t.current.style.height = 0;
141
- },
142
- onExited: (e) => {
143
- t.current.style.display = "none", t.current.style.height = "auto";
144
- },
145
- children: /* @__PURE__ */ r(
146
- "div",
147
- {
148
- ref: t,
149
- role: "region",
150
- className: g(`${n}-content`, {
151
- [`${n}-content-expanded`]: c
152
- }),
153
- children: /* @__PURE__ */ r(
154
- "div",
155
- {
156
- ref: d,
157
- style: b,
158
- className: `${n}-content-box`,
159
- children: i
160
- }
161
- )
162
- }
163
- )
164
- }
165
- )
166
- ]
167
- }
168
- );
169
- }
170
- const z = M.forwardRef(
171
- Y
172
- );
173
- z.displayName = "CollapseItem";
174
- const k = (l, h) => {
175
- const u = [].concat(l);
176
- return h ? u.slice(0, 1) : u;
177
- }, Z = {
178
- bordered: !0,
179
- lazyload: !0,
180
- expandIconPosition: "left"
181
- }, j = B({
182
- expandIconPosition: "left",
183
- expandIcon: /* @__PURE__ */ r(L, {}),
184
- activeKeys: [],
185
- onToggle: () => {
186
- }
187
- });
188
- function _(l, h) {
189
- const { getPrefixCls: u, componentConfig: o, rtl: I } = K(T), i = q(
190
- l,
191
- Z,
192
- o == null ? void 0 : o.Collapse
193
- ), [s, $] = D([], {
194
- defaultValue: "defaultActiveKey" in i ? k(i.defaultActiveKey, i.accordion) : void 0,
195
- value: "activeKey" in i ? k(i.activeKey, i.accordion) : void 0
196
- }), {
197
- children: H,
198
- className: E,
199
- style: b,
200
- bordered: x,
201
- lazyload: a,
202
- expandIcon: y,
203
- expandIconPosition: v,
204
- destroyOnHide: N,
205
- accordion: P,
206
- triggerRegion: t,
207
- onChange: d,
208
- ...n
209
- } = i, c = u("collapse"), p = (f, C) => {
210
- let e = [...s || []];
211
- const m = s == null ? void 0 : s.indexOf(f);
212
- m > -1 ? e.splice(m, 1) : P ? e = [f] : e.push(f), "activeKey" in i || $(e), V(d) && d(f, e, C);
213
- };
214
- return /* @__PURE__ */ r(
215
- j.Provider,
216
- {
217
- value: {
218
- activeKeys: s,
219
- triggerRegion: t,
220
- lazyload: a,
221
- destroyOnHide: N,
222
- expandIconPosition: v,
223
- onToggle: p,
224
- expandIcon: "expandIcon" in i ? y : v === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
225
- },
226
- children: /* @__PURE__ */ r(
227
- "div",
228
- {
229
- ref: h,
230
- ...G(n, ["activeKey", "defaultActiveKey"]),
231
- className: g(
232
- c,
233
- `${c}-${x ? "border" : "borderless"}`,
234
- { [`${c}-rtl`]: I },
235
- E
236
- ),
237
- style: b,
238
- children: H
239
- }
240
- )
241
- }
242
- );
243
- }
244
- const ee = M.forwardRef(_), F = ee;
245
- F.displayName = "Collapse";
246
- F.Item = z;
247
- export {
248
- F as C,
249
- z as I,
250
- j as a
251
- };
package/chunk/CD3AUpzo.js DELETED
@@ -1,166 +0,0 @@
1
- import { jsx as i, jsxs as z, Fragment as O } from "react/jsx-runtime";
2
- import j from "lodash/isFunction";
3
- import w from "lodash/isNil";
4
- import B, { createContext as H, useContext as G, useRef as L } from "react";
5
- import { a as A, I as Q } from "./ll867Bf3.js";
6
- import { u as D } from "./BFTV6myl.js";
7
- import { u as F } from "./CdaT1b_F.js";
8
- import { m as I } from "./JPPo5nY_.js";
9
- import { o as S } from "./BKKEev13.js";
10
- import T from "lodash/isArray";
11
- import q from "lodash/isPlainObject";
12
- import { pickTriggerPropsFromRest as E } from "../utils/constant.js";
13
- import { a as J } from "./ClqoGc3r.js";
14
- const _ = {
15
- type: "radio"
16
- }, K = {
17
- type: "radio",
18
- mode: "outline",
19
- direction: "horizontal"
20
- }, x = H(_), ne = ({ children: C }) => /* @__PURE__ */ i(x.Provider, { value: _, children: C });
21
- function M(C) {
22
- const {
23
- getPrefixCls: b,
24
- size: y,
25
- componentConfig: d,
26
- rtl: N
27
- } = G(A), e = D(
28
- C,
29
- K,
30
- d == null ? void 0 : d["Radio.Group"]
31
- ), {
32
- style: a,
33
- className: o,
34
- name: c,
35
- children: m,
36
- direction: p,
37
- type: v,
38
- mode: k,
39
- options: g,
40
- disabled: s
41
- } = e, [l, R] = F(void 0, {
42
- defaultValue: e.defaultValue,
43
- value: e.value
44
- }), $ = e.size || y, n = b("radio"), P = I(
45
- `${n}-group`,
46
- {
47
- [`${n}-group-type-button`]: v !== "radio",
48
- [`${n}-size-${$}`]: !!$,
49
- [`${n}-mode-${k}`]: !!k,
50
- [`${n}-group-disabled`]: s,
51
- [`${n}-group-direction-vertical`]: p === "vertical",
52
- [`${n}-group-rtl`]: N
53
- },
54
- o
55
- ), u = {
56
- onChangeValue: (r, f) => {
57
- const { onChange: V } = e;
58
- r !== l && ("value" in e || R(r), V == null || V(r, f));
59
- },
60
- type: v,
61
- value: l,
62
- disabled: s,
63
- group: !0,
64
- name: c
65
- };
66
- return /* @__PURE__ */ i(x.Provider, { value: u, children: /* @__PURE__ */ i(
67
- "div",
68
- {
69
- className: P,
70
- role: "radiogroup",
71
- style: a,
72
- ...E(e),
73
- ...J(e),
74
- children: g && T(g) ? g.map((r, f) => q(r) ? /* @__PURE__ */ i(
75
- h,
76
- {
77
- disabled: s || r.disabled,
78
- value: r.value,
79
- children: r.label
80
- },
81
- r.value
82
- ) : /* @__PURE__ */ i(h, { value: r, disabled: s, children: r }, f)) : m
83
- }
84
- ) });
85
- }
86
- M.displayName = "RadioGroup";
87
- function h(C) {
88
- const b = L(null), { getPrefixCls: y, componentConfig: d, rtl: N } = G(A), e = D(
89
- C,
90
- {},
91
- d == null ? void 0 : d.Radio
92
- ), a = G(x), o = y("radio"), c = { ...e };
93
- a.group && (c.checked = a.value === e.value, c.disabled = "disabled" in e ? e.disabled : a.disabled);
94
- const { disabled: m, children: p, value: v, style: k, className: g, ...s } = c, [l, R] = F(!1, {
95
- value: c.checked,
96
- defaultValue: c.defaultChecked
97
- }), $ = I(
98
- `${o}${a.type === "button" ? "-button" : ""}`,
99
- {
100
- [`${o}-checked`]: l,
101
- [`${o}-disabled`]: m,
102
- [`${o}-rtl`]: N
103
- },
104
- g
105
- ), n = (t) => {
106
- var f;
107
- const { onChange: u, value: r } = c;
108
- m || (a.group ? (f = a.onChangeValue) == null || f.call(a, r, t) : !("checked" in e) && !l && R(!0), !l && (u == null || u(!0, t)));
109
- }, P = B.useCallback(
110
- (t) => {
111
- var u;
112
- j(e.children) && (t.preventDefault(), b.current && b.current.click()), (u = s.onClick) == null || u.call(s, t);
113
- },
114
- [e.children, s.onClick]
115
- );
116
- return /* @__PURE__ */ z(
117
- "label",
118
- {
119
- ...S(s, ["checked", "onChange"]),
120
- onClick: P,
121
- style: k,
122
- className: $,
123
- children: [
124
- /* @__PURE__ */ i(
125
- "input",
126
- {
127
- ref: b,
128
- disabled: m,
129
- value: v || "",
130
- type: "radio",
131
- ...a.name ? { name: a.name } : {},
132
- checked: l,
133
- onChange: (t) => {
134
- t.persist(), n(t);
135
- },
136
- onClick: (t) => {
137
- t.stopPropagation();
138
- }
139
- }
140
- ),
141
- j(p) ? p({ checked: l }) : a.type === "radio" ? /* @__PURE__ */ z(O, { children: [
142
- /* @__PURE__ */ i(
143
- Q,
144
- {
145
- prefix: o,
146
- className: `${o}-mask-wrapper`,
147
- disabled: l || m,
148
- children: /* @__PURE__ */ i("div", { className: `${o}-mask` })
149
- }
150
- ),
151
- !w(p) && /* @__PURE__ */ i("span", { className: `${o}-text`, children: p })
152
- ] }) : a.type === "button" && /* @__PURE__ */ i("span", { className: `${o}-button-inner`, children: p })
153
- ]
154
- }
155
- );
156
- }
157
- h.__PQB_RADIO = !0;
158
- h.displayName = "Radio";
159
- h.Group = M;
160
- h.GroupContext = x;
161
- export {
162
- ne as C,
163
- M as G,
164
- h as R,
165
- x as a
166
- };