@unicom-cloud/ui 0.8.75 → 0.8.77

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 (286) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +3 -5
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +3 -3
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +6 -2
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -4
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +2 -3
  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 +1 -1
  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 +5 -6
  31. package/Mentions.js +3 -4
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +1 -1
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +2 -2
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +5 -4
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +5 -6
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +4 -3
  52. package/Spin.js +1 -1
  53. package/Statistic.js +1 -1
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +15 -16
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +2 -2
  60. package/Transfer.js +3 -4
  61. package/Tree.js +2 -3
  62. package/TreeSelect.js +3 -3
  63. package/Trigger.js +1 -1
  64. package/Typography.js +3 -3
  65. package/affix/index.js +86 -82
  66. package/alert/index.js +1 -1
  67. package/anchor/Anchor.js +1 -1
  68. package/anchor/Link.js +1 -1
  69. package/auto-complete/index.js +13 -147
  70. package/avatar/Avatar.js +1 -1
  71. package/avatar/Group.js +1 -1
  72. package/back-top/index.js +1 -1
  73. package/badge/index.js +1 -1
  74. package/breadcrumb/index.js +2 -2
  75. package/button/Group.js +1 -1
  76. package/button/index.js +1 -1
  77. package/calendar/index.js +12 -318
  78. package/card/Grid.js +1 -1
  79. package/card/Meta.js +1 -1
  80. package/card/index.js +1 -1
  81. package/carousel/Arrow.js +1 -1
  82. package/carousel/Indicator.js +1 -1
  83. package/carousel/index.js +1 -1
  84. package/cascader/Cascader.js +4 -4
  85. package/cascader/index.js +1 -1
  86. package/cascader/util.js +8 -8
  87. package/checkbox/Checkbox.js +7 -4
  88. package/checkbox/Group.js +5 -5
  89. package/checkbox/GroupBlock.js +8 -0
  90. package/checkbox/index.js +7 -2
  91. package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
  92. package/chunk/ATwvJ8j2.js +6 -0
  93. package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
  94. package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
  95. package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
  96. package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
  97. package/chunk/CBzE-PUr.js +23 -0
  98. package/chunk/CNcLypMY.js +723 -0
  99. package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
  100. package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
  101. package/chunk/Cwm8LL5p.js +7818 -0
  102. package/chunk/D0ZWT7db.js +5 -0
  103. package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
  104. package/collapse/Collapse.js +2 -2
  105. package/collapse/Item.js +2 -2
  106. package/collapse/index.js +1 -1
  107. package/color-picker/ControlBar.js +1 -1
  108. package/color-picker/InputAlpha.js +1 -1
  109. package/color-picker/InputHex.js +2 -2
  110. package/color-picker/InputRgb.js +2 -2
  111. package/color-picker/Palette.js +2 -2
  112. package/color-picker/Panel.js +15 -266
  113. package/color-picker/colors.js +4 -4
  114. package/color-picker/index.js +13 -268
  115. package/color-picker/utils.js +1 -1
  116. package/comment/index.js +1 -1
  117. package/config-provider/ConfigProvider.js +4 -6
  118. package/config-provider/context.js +3 -2
  119. package/config-provider/index.js +4 -5
  120. package/copy/index.js +1 -1
  121. package/date-picker/Picker.js +1 -1
  122. package/date-picker/PickerRange.js +2 -2
  123. package/date-picker/index.js +1 -1
  124. package/descriptions/index.js +1 -1
  125. package/divider/index.js +1 -1
  126. package/draggable/index.js +1 -1
  127. package/drawer/Drawer.js +30 -21
  128. package/dropdown/Button.js +1 -1
  129. package/dropdown/index.js +1 -1
  130. package/empty/index.js +1 -1
  131. package/form/Form.js +10 -10
  132. package/form/FormItem.js +1 -1
  133. package/form/context.js +1 -1
  134. package/grid/Col.js +1 -1
  135. package/grid/Row.js +1 -1
  136. package/grid/grid-item.js +1 -1
  137. package/grid/grid.js +1 -1
  138. package/hooks/index.js +1 -1
  139. package/hooks/useWindowSize.js +1 -1
  140. package/icon/index.js +1 -1
  141. package/icon-hover/index.js +1 -1
  142. package/image/Image.js +2 -2
  143. package/image/ImagePreview.js +2 -2
  144. package/image/ImagePreviewArrow.js +1 -1
  145. package/image/ImagePreviewGroup.js +1 -1
  146. package/image/index.js +1 -1
  147. package/index.js +453 -463
  148. package/input/Group.js +1 -1
  149. package/input/Input.js +1 -1
  150. package/input/InputElement.js +1 -1
  151. package/input/Password.js +1 -1
  152. package/input/Search.js +1 -1
  153. package/input/Textarea.js +1 -1
  154. package/input-number/index.js +1 -1
  155. package/input-tag/InputTag.js +1 -1
  156. package/layout/Content.js +1 -1
  157. package/layout/Footer.js +1 -1
  158. package/layout/Header.js +1 -1
  159. package/layout/Sider.js +1 -1
  160. package/layout/index.js +1 -1
  161. package/link/index.js +1 -1
  162. package/list/Item.js +1 -1
  163. package/list/Meta.js +1 -1
  164. package/list/index.js +17 -267
  165. package/mentions/index.js +11 -144
  166. package/menu/Menu.js +2 -2
  167. package/menu/OverflowWrap.js +1 -1
  168. package/menu/index.js +2 -2
  169. package/message/index.js +1 -1
  170. package/message/useMessage.js +1 -1
  171. package/modal/Confirm.js +2 -2
  172. package/modal/Modal.js +2 -2
  173. package/modal/index.js +1 -1
  174. package/notice/index.js +1 -1
  175. package/notification/index.js +1 -1
  176. package/notification/useNotification.js +1 -1
  177. package/overflow-ellipsis/OverflowItem.js +1 -1
  178. package/overflow-ellipsis/index.js +1 -1
  179. package/package.json +1 -1
  180. package/page-header/index.js +1 -1
  181. package/pagination/PageItem.js +1 -1
  182. package/pagination/PageJumper.js +1 -1
  183. package/pagination/PageOption.js +5 -45
  184. package/pagination/Pagination.js +11 -243
  185. package/pagination/index.js +2 -2
  186. package/picker/Input.js +1 -1
  187. package/picker/InputRange.js +1 -1
  188. package/popconfirm/index.js +1 -1
  189. package/popover/index.js +1 -1
  190. package/progress/index.js +1 -1
  191. package/radio/Group.js +5 -5
  192. package/radio/GroupBlock.js +9 -0
  193. package/radio/Radio.js +6 -5
  194. package/radio/index.js +4 -3
  195. package/rate/index.js +1 -1
  196. package/resize-box/ResizeTrigger.js +1 -1
  197. package/resize-box/Split.js +1 -1
  198. package/resize-box/SplitGroup.js +1 -1
  199. package/resize-box/index.js +1 -1
  200. package/result/index.js +1 -1
  201. package/select/Option.js +6 -93
  202. package/select/Select.js +23 -546
  203. package/select/index.js +3 -3
  204. package/select/util.js +18 -139
  205. package/select-view/Core.js +1 -1
  206. package/skeleton/index.js +1 -1
  207. package/slider/Button.js +1 -1
  208. package/slider/index.js +1 -1
  209. package/space/index.js +1 -1
  210. package/speech-synthesis/index.js +4 -3
  211. package/spin/DotLoading.js +1 -1
  212. package/spin/index.js +1 -1
  213. package/statistic/Countdown.js +1 -1
  214. package/statistic/index.js +1 -1
  215. package/steps/index.js +1 -1
  216. package/style/variables.less +0 -484
  217. package/style.css +1 -1
  218. package/switch/index.js +1 -1
  219. package/table/Table.js +2 -3
  220. package/table/index.js +15 -109
  221. package/tabs/Tab.js +2 -2
  222. package/tabs/TabContent.js +2 -2
  223. package/tabs/TabPane.js +1 -1
  224. package/tabs/index.js +2 -2
  225. package/tag/index.js +1 -1
  226. package/time-picker/Picker.js +1 -1
  227. package/time-picker/TimePicker.js +1 -1
  228. package/timeline/Item.js +1 -1
  229. package/timeline/Timeline.js +1 -1
  230. package/tooltip/index.js +2 -2
  231. package/transfer/Item.js +9 -104
  232. package/transfer/List.js +13 -184
  233. package/transfer/index.js +13 -180
  234. package/tree/Animation.js +2 -2
  235. package/tree/Node.js +3 -4
  236. package/tree/NodeList.js +6 -80
  237. package/tree/Tree.js +17 -578
  238. package/tree/index.js +2 -3
  239. package/tree-select/List.js +6 -122
  240. package/tree-select/Select.js +22 -392
  241. package/tree-select/index.js +3 -3
  242. package/trigger/index.js +1 -1
  243. package/types/checkbox/Checkbox.d.ts +5 -2
  244. package/types/checkbox/GroupBlock.d.ts +7 -0
  245. package/types/checkbox/index.d.ts +2 -1
  246. package/types/config-provider/ConfigProvider.d.ts +0 -27
  247. package/types/config-provider/interface.d.ts +3 -1
  248. package/types/index.d.ts +2 -2
  249. package/types/menu/context.d.ts +1 -1
  250. package/types/radio/GroupBlock.d.ts +7 -0
  251. package/types/radio/Radio.d.ts +5 -3
  252. package/types/utils/constant.d.ts +2 -1
  253. package/types/utils/index.d.ts +1 -0
  254. package/types/utils/setDarkTheme.d.ts +2 -3
  255. package/types/utils/setPrimaryColor.d.ts +2 -0
  256. package/typography/Base.js +1 -1
  257. package/typography/Ellipsis.js +9 -22
  258. package/typography/Paragraph.js +1 -1
  259. package/typography/Typography.js +1 -1
  260. package/typography/index.js +10 -276
  261. package/upload/TriggerNode.js +1 -1
  262. package/upload/Upload.js +1 -1
  263. package/upload/Uploader.js +43 -44
  264. package/upload/request.js +1 -1
  265. package/upload/request_.js +1 -1
  266. package/utils/caseName.js +1 -1
  267. package/utils/color.js +1 -1
  268. package/utils/constant.js +7 -5
  269. package/utils/contextHolder.js +1 -1
  270. package/utils/dom.js +1 -1
  271. package/utils/index.js +199 -195
  272. package/utils/setDarkTheme.js +34 -5
  273. package/utils/setPrimaryColor.js +26 -0
  274. package/utils/tinycolor.js +1 -1
  275. package/verification-code/VerificationCode.js +1 -1
  276. package/version/index.js +1 -1
  277. package/watermark/Watermark.js +1 -1
  278. package/chunk/BViFMHr-.js +0 -1820
  279. package/chunk/BsWphzcT.js +0 -20
  280. package/chunk/BxZ39GzB.js +0 -209
  281. package/chunk/C9XYyypq.js +0 -713
  282. package/chunk/CIkPwQlq.js +0 -6
  283. package/chunk/DFcz9ZPP.js +0 -1020
  284. package/chunk/DeCsZrXb.js +0 -310
  285. package/chunk/DskaI8QL.js +0 -25
  286. package/chunk/EL5Jmjgr.js +0 -170
package/transfer/index.js CHANGED
@@ -1,182 +1,15 @@
1
- import { jsxs as Q, jsx as h } from "react/jsx-runtime";
2
- import X from "@unicom-cloud/icons/IconUiLeft";
3
- import Y from "@unicom-cloud/icons/IconUiRight";
4
- import Z from "lodash/isPlainObject";
5
- import ee, { useContext as te, useMemo as w } from "react";
6
- import se from "../button/index.js";
7
- import { a as re } from "../chunk/C9XYyypq.js";
8
- import { u as ae } from "../chunk/BFTV6myl.js";
9
- import { u as L } from "../chunk/DeV0v__J.js";
10
- import { p as R } from "../chunk/CUFsOxJ2.js";
11
- import { a as oe } from "../chunk/ClqoGc3r.js";
12
- import le from "./List.js";
13
- const ce = {
14
- titleTexts: ["Source", "Target"],
15
- defaultSelectedKeys: [],
16
- defaultTargetKeys: [],
17
- dataSource: [],
18
- filterOption: (m, d) => typeof (d == null ? void 0 : d.value) == "string" && d.value.indexOf(m) !== -1
19
- };
20
- function ne(m, d) {
21
- const { getPrefixCls: j, componentConfig: x, rtl: N } = te(re), $ = ae(
22
- m,
23
- ce,
24
- x == null ? void 0 : x.Transfer
25
- ), {
26
- prefixCls: k,
27
- style: B,
28
- className: E,
29
- children: M,
30
- dataSource: i,
31
- defaultTargetKeys: T,
32
- defaultSelectedKeys: C,
33
- targetKeys: U,
34
- selectedKeys: W,
35
- oneWay: z,
36
- simple: l,
37
- disabled: K,
38
- titleTexts: F,
39
- operationTexts: b,
40
- operationStyle: H,
41
- onSearch: S,
42
- onChange: O,
43
- onSelectChange: f,
44
- ..._
45
- } = $, c = k || j("transfer"), A = !!(l || z), [u, q] = L([], {
46
- value: U,
47
- defaultValue: l ? T.concat(C) : T
48
- }), [v, I] = L([], {
49
- value: W,
50
- defaultValue: l ? [] : C
51
- }), [D, P] = w(
52
- () => [[], []],
53
- [i, u]
54
- ), [n, y] = w(() => {
55
- D.length = 0, P.length = 0;
56
- const e = {
57
- dataSource: D,
58
- selectedKeys: [],
59
- validKeys: [],
60
- selectedValidKeys: [],
61
- selectedDisabledKeys: []
62
- }, a = {
63
- dataSource: P,
64
- selectedKeys: [],
65
- validKeys: [],
66
- selectedValidKeys: [],
67
- selectedDisabledKeys: []
68
- };
69
- return i.forEach((t) => {
70
- const s = u.indexOf(t.key) > -1 ? a : e;
71
- t.disabled || s.validKeys.push(t.key), v.indexOf(t.key) > -1 && (s.selectedKeys.push(t.key), t.disabled ? s.selectedDisabledKeys.push(t.key) : s.selectedValidKeys.push(t.key)), s.dataSource.push(t);
72
- }), Z(l) && l.retainSelectedItems && (Object.entries(e).forEach(([t, s]) => {
73
- Array.isArray(s) && (e[t] = s.concat(a[t]));
74
- }), e.dataSource = i.slice(), e.selectedKeys = u.slice()), [e, a];
75
- }, [i, u, v, l]), g = (e, a = null) => {
76
- if (Array.isArray(a) && a.length === 0)
77
- return;
78
- a = a || (e === "target" ? n.selectedValidKeys : y.selectedValidKeys);
79
- const t = e === "target" ? u.concat(a).sort((s, r) => i.findIndex(({ key: o }) => o === s) - i.findIndex(({ key: o }) => o === r)) : u.filter((s) => a.indexOf(s) === -1);
80
- I(
81
- n.selectedDisabledKeys.concat(y.selectedDisabledKeys)
82
- ), q(t), O == null || O(t, e, a);
83
- }, G = (e, a) => {
84
- if (a === "source")
85
- if (l) {
86
- const t = e.filter(
87
- (r) => n.selectedKeys.indexOf(r) === -1
88
- ), s = n.selectedKeys.filter(
89
- (r) => e.indexOf(r) === -1
90
- );
91
- g("target", t), g("source", s);
92
- } else
93
- I(e.concat(y.selectedKeys)), f == null || f(e, y.selectedKeys);
94
- else
95
- I(n.selectedKeys.concat(e)), f == null || f(n.selectedKeys, e);
96
- }, J = () => {
97
- const e = y.selectedKeys.length > 0, a = n.selectedKeys.length > 0, t = A ? ["target"] : ["target", "source"];
98
- return l ? null : /* @__PURE__ */ h(
99
- "div",
100
- {
101
- style: H,
102
- className: R(`${c}-operations`, {
103
- [`${c}-operations-words`]: b
104
- }),
105
- children: t.map((s, r) => {
106
- let o, p;
107
- return s === "source" ? (o = X, p = K || !e) : (o = Y, p = K || !a), /* @__PURE__ */ h(
108
- se,
109
- {
110
- tabIndex: p ? -1 : void 0,
111
- "aria-label": `move selected ${s === "target" ? "right" : "left"}`,
112
- type: "secondary",
113
- size: "small",
114
- shape: "round",
115
- disabled: p,
116
- onClick: () => g(s),
117
- icon: /* @__PURE__ */ h(o, {}),
118
- children: b && b[r]
119
- },
120
- r
121
- );
122
- })
123
- }
124
- );
125
- }, V = (e) => {
126
- const a = e === "source" ? n : y, t = e === "target", s = { ..._ };
127
- return Object.entries(s).forEach(([r, o]) => {
128
- [
129
- "searchPlaceholder",
130
- "showSearch",
131
- "showFooter",
132
- "pagination",
133
- "listStyle"
134
- ].indexOf(r) > -1 && (s[r] = Array.isArray(o) ? o[e === "source" ? 0 : 1] : o);
135
- }), /* @__PURE__ */ h(
136
- le,
137
- {
138
- ...a,
139
- ...s,
140
- style: s.listStyle,
141
- prefixCls: c,
142
- className: `${c}-view-${e}`,
143
- listType: e,
144
- title: F[t ? 1 : 0],
145
- disabled: K,
146
- allowClear: t && A,
147
- renderList: M,
148
- handleSelect: (r) => G(r, e),
149
- handleRemove: (r) => g(t ? "source" : "target", r),
150
- onSearch: (r) => S == null ? void 0 : S(r, e),
151
- renderHeaderUnit: (r, o) => `${A ? "" : `${r} / `}${o}`
152
- }
153
- );
154
- };
155
- return /* @__PURE__ */ Q(
156
- "div",
157
- {
158
- ...oe($),
159
- ref: d,
160
- className: R(
161
- c,
162
- {
163
- [`${c}-simple`]: l,
164
- [`${c}-disabled`]: K,
165
- [`${c}-rtl`]: N
166
- },
167
- E
168
- ),
169
- style: B,
170
- children: [
171
- V("source"),
172
- J(),
173
- V("target")
174
- ]
175
- }
176
- );
177
- }
178
- const de = ee.forwardRef(ne);
179
- de.displayName = "Transfer";
1
+ import "react/jsx-runtime";
2
+ import "@unicom-cloud/icons/IconUiLeft";
3
+ import "@unicom-cloud/icons/IconUiRight";
4
+ import "lodash/isPlainObject";
5
+ import "react";
6
+ import "../button/index.js";
7
+ import "../chunk/CNcLypMY.js";
8
+ import "../chunk/BFTV6myl.js";
9
+ import "../chunk/DeV0v__J.js";
10
+ import "../chunk/CUFsOxJ2.js";
11
+ import "../chunk/ClqoGc3r.js";
12
+ import { r as x } from "../chunk/Cwm8LL5p.js";
180
13
  export {
181
- de as default
14
+ x as default
182
15
  };
package/tree/Animation.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "lodash/isNumber";
3
3
  import "react";
4
- import "../chunk/C9XYyypq.js";
4
+ import "../chunk/CNcLypMY.js";
5
5
  import "../chunk/BpYX5PN4.js";
6
6
  import "../virtual-list/VirtualList.js";
7
7
  import "./Context.js";
8
- import { T as d } from "../chunk/DeCsZrXb.js";
8
+ import { a8 as d } from "../chunk/Cwm8LL5p.js";
9
9
  export {
10
10
  d as default
11
11
  };
package/tree/Node.js CHANGED
@@ -5,12 +5,11 @@ import "@unicom-cloud/icons/IconUiFile";
5
5
  import "@unicom-cloud/icons/IconUiLoading";
6
6
  import "lodash/isFunction";
7
7
  import "react";
8
- import "../chunk/BxZ39GzB.js";
9
- import "../chunk/C9XYyypq.js";
8
+ import { N as x } from "../chunk/Cwm8LL5p.js";
9
+ import "../chunk/CNcLypMY.js";
10
10
  import "../chunk/CUFsOxJ2.js";
11
11
  import "../utils/throttleByRaf.js";
12
- import { N } from "../chunk/DeCsZrXb.js";
13
12
  import "./Context.js";
14
13
  export {
15
- N as default
14
+ x as default
16
15
  };
package/tree/NodeList.js CHANGED
@@ -1,82 +1,8 @@
1
- import { jsx as L } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as h, useMemo as m, useImperativeHandle as V, createElement as g } from "react";
3
- import { s as b } from "../chunk/Bmvhjhzq.js";
4
- import P from "../virtual-list/VirtualList.js";
5
- import { N as v } from "../chunk/DeCsZrXb.js";
6
- function H(s) {
7
- return s.key || s._key;
8
- }
9
- function j(s, E) {
10
- const {
11
- className: K,
12
- style: p,
13
- filterNode: a,
14
- virtualListProps: c,
15
- expandedKeys: w,
16
- currentExpandKeys: k,
17
- nodeList: i,
18
- getNodeProps: S,
19
- getDataSet: M
20
- } = s, x = (c == null ? void 0 : c.threshold) !== null, l = h(), f = h(), D = h(), I = m(() => new Set(w), [w]), u = m(() => {
21
- const e = /* @__PURE__ */ new Set(), t = new Set(k);
22
- return i.forEach((n) => {
23
- (n.pathParentKeys || []).every(
24
- (r) => !t.has(r) && I.has(r)
25
- ) && e.add(n._key);
26
- }), e;
27
- }, [I, k, i]), N = () => i.filter((e) => !!((!a || (a == null ? void 0 : a(e))) && u.has(e.key))), d = m(() => N(), [i, a, u]);
28
- return V(E, () => ({
29
- // index: 第几个dom元素, 如果传入的是字符串,会作为 node 的 key去查找。
30
- // nodeProps: _index 是 key 时,对应的node
31
- scrollIntoView: (e, t) => {
32
- let n = e;
33
- if (typeof e == "string") {
34
- let r = e;
35
- !u.has(e) && (t != null && t.pathParentKeys) && (r = [...t.pathParentKeys].reverse().find((o) => u.has(o)) || n), n = d.findIndex(({ _key: o }) => o === r);
36
- }
37
- if (!x && f.current) {
38
- const r = f.current, o = r ? r.children[n] : null;
39
- o && b(o, {
40
- boundary: r.parentElement
41
- });
42
- } else l.current && l.current.scrollTo({ index: n });
43
- }
44
- })), x ? /* @__PURE__ */ L(
45
- P,
46
- {
47
- className: K,
48
- style: p,
49
- ref: l,
50
- data: d,
51
- isStaticItemHeight: !1,
52
- itemKey: H,
53
- onMouseDown: s.onMouseDown,
54
- ...s.ariaProps,
55
- ...c,
56
- children: (e, t, { itemIndex: n }) => {
57
- n === 0 && (D.current = M());
58
- const y = S(e, D.current);
59
- return /* @__PURE__ */ g(v, { ...e, key: e.key, ...y });
60
- }
61
- }
62
- ) : /* @__PURE__ */ L(
63
- "div",
64
- {
65
- role: "tree",
66
- tabIndex: 0,
67
- className: K,
68
- style: p,
69
- ref: f,
70
- ...s.ariaProps,
71
- onMouseDown: s.onMouseDown,
72
- children: d.map((e) => {
73
- const t = S(e);
74
- return /* @__PURE__ */ g(v, { ...t, key: e.key });
75
- })
76
- }
77
- );
78
- }
79
- const z = R(j);
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../chunk/Bmvhjhzq.js";
4
+ import "../virtual-list/VirtualList.js";
5
+ import { a9 as a } from "../chunk/Cwm8LL5p.js";
80
6
  export {
81
- z as default
7
+ a as default
82
8
  };