@unicom-cloud/ui 0.8.81 → 0.8.82

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 (262) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  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 +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  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 +2 -2
  31. package/Mentions.js +2 -2
  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 +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +1 -1
  52. package/Spin.js +1 -1
  53. package/Statistic.js +2 -2
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +1 -1
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +1 -1
  60. package/Transfer.js +2 -2
  61. package/Tree.js +1 -1
  62. package/TreeSelect.js +1 -1
  63. package/Trigger.js +1 -1
  64. package/Typography.js +1 -1
  65. package/affix/index.js +60 -57
  66. package/alert/index.js +53 -53
  67. package/anchor/Anchor.js +72 -72
  68. package/anchor/Link.js +27 -27
  69. package/anchor/util.js +1 -1
  70. package/auto-complete/index.js +2 -2
  71. package/avatar/Avatar.js +31 -31
  72. package/avatar/Group.js +25 -25
  73. package/back-top/index.js +30 -30
  74. package/badge/index.js +37 -37
  75. package/breadcrumb/index.js +26 -26
  76. package/button/Group.js +7 -7
  77. package/button/index.js +29 -29
  78. package/calendar/index.js +2 -2
  79. package/card/Grid.js +12 -12
  80. package/card/Meta.js +17 -17
  81. package/card/index.js +44 -44
  82. package/carousel/Arrow.js +19 -19
  83. package/carousel/Indicator.js +25 -25
  84. package/carousel/index.js +77 -77
  85. package/cascader/Cascader.js +2 -2
  86. package/cascader/index.js +1 -1
  87. package/cascader/util.js +1 -1
  88. package/checkbox/Checkbox.js +2 -2
  89. package/checkbox/Group.js +2 -2
  90. package/checkbox/GroupBlock.js +2 -2
  91. package/checkbox/index.js +2 -2
  92. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  93. package/chunk/CmMehQON.js +1464 -0
  94. package/chunk/Cplu5dtQ.js +730 -0
  95. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  96. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  97. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  98. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  99. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  100. package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +36 -36
  105. package/color-picker/InputAlpha.js +11 -11
  106. package/color-picker/InputHex.js +24 -24
  107. package/color-picker/InputRgb.js +23 -23
  108. package/color-picker/Palette.js +18 -18
  109. package/color-picker/Panel.js +2 -2
  110. package/color-picker/index.js +2 -2
  111. package/comment/index.js +31 -31
  112. package/config-provider/ConfigProvider.js +5 -4
  113. package/config-provider/context.js +2 -2
  114. package/config-provider/index.js +4 -3
  115. package/copy/index.js +28 -28
  116. package/date-picker/Picker.js +276 -276
  117. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  118. package/date-picker/index.js +26 -27
  119. package/descriptions/index.js +33 -33
  120. package/divider/index.js +12 -12
  121. package/draggable/index.js +23 -23
  122. package/drawer/Drawer.js +81 -81
  123. package/dropdown/Button.js +1 -1
  124. package/dropdown/index.js +56 -56
  125. package/empty/index.js +1 -1
  126. package/form/Form.js +76 -76
  127. package/form/FormItem.js +64 -64
  128. package/grid/Col.js +53 -53
  129. package/grid/Row.js +34 -34
  130. package/grid/grid-item.js +29 -29
  131. package/grid/grid.js +50 -50
  132. package/icon/index.js +20 -19
  133. package/icon-hover/index.js +1 -1
  134. package/image/Image.js +86 -86
  135. package/image/ImagePreview.js +2 -2
  136. package/image/ImagePreviewArrow.js +22 -22
  137. package/image/ImagePreviewGroup.js +1 -1
  138. package/image/index.js +1 -1
  139. package/index.js +410 -408
  140. package/input/Group.js +8 -8
  141. package/input/Input.js +322 -322
  142. package/input/InputElement.js +1 -1
  143. package/input/Password.js +1 -1
  144. package/input/Search.js +1 -1
  145. package/input/Textarea.js +1 -1
  146. package/input-number/index.js +1 -1
  147. package/input-tag/InputTag.js +40 -40
  148. package/layout/Content.js +7 -7
  149. package/layout/Footer.js +9 -9
  150. package/layout/Header.js +7 -7
  151. package/layout/Sider.js +55 -55
  152. package/layout/index.js +32 -32
  153. package/link/index.js +35 -35
  154. package/list/Item.js +29 -29
  155. package/list/Meta.js +12 -12
  156. package/list/index.js +2 -2
  157. package/mentions/index.js +2 -2
  158. package/menu/Menu.js +2 -2
  159. package/menu/OverflowWrap.js +1 -1
  160. package/menu/index.js +2 -2
  161. package/message/index.js +1 -1
  162. package/message/useMessage.js +1 -1
  163. package/modal/Confirm.js +2 -2
  164. package/modal/Modal.js +2 -2
  165. package/modal/index.js +1 -1
  166. package/notice/index.js +1 -1
  167. package/notification/index.js +5 -5
  168. package/notification/useNotification.js +1 -1
  169. package/overflow-ellipsis/OverflowItem.js +12 -12
  170. package/overflow-ellipsis/index.js +24 -24
  171. package/package.json +1 -1
  172. package/page-header/index.js +38 -38
  173. package/pagination/PageItem.js +16 -16
  174. package/pagination/PageJumper.js +1 -1
  175. package/pagination/PageOption.js +2 -2
  176. package/pagination/Pagination.js +2 -2
  177. package/pagination/index.js +1 -1
  178. package/picker/Input.js +69 -69
  179. package/picker/InputRange.js +111 -111
  180. package/popconfirm/index.js +61 -61
  181. package/popover/index.js +35 -35
  182. package/progress/index.js +22 -22
  183. package/radio/Group.js +2 -2
  184. package/radio/GroupBlock.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +49 -49
  188. package/resize-box/ResizeTrigger.js +34 -34
  189. package/resize-box/Split.js +56 -56
  190. package/resize-box/SplitGroup.js +55 -55
  191. package/resize-box/index.js +51 -51
  192. package/result/index.js +41 -41
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select/index.js +2 -2
  196. package/select/util.js +1 -1
  197. package/select-view/Core.js +125 -125
  198. package/skeleton/index.js +20 -20
  199. package/slider/Button.js +57 -57
  200. package/slider/index.js +116 -116
  201. package/space/index.js +46 -44
  202. package/speech-synthesis/index.js +1 -1
  203. package/spin/DotLoading.js +10 -10
  204. package/spin/index.js +44 -44
  205. package/statistic/Countdown.js +34 -34
  206. package/statistic/index.js +67 -67
  207. package/steps/index.js +55 -55
  208. package/style.css +1 -1
  209. package/switch/index.js +54 -54
  210. package/table/Table.js +3 -3
  211. package/table/index.js +1 -1
  212. package/tabs/Tab.js +2 -2
  213. package/tabs/TabContent.js +2 -2
  214. package/tabs/TabPane.js +12 -12
  215. package/tabs/index.js +2 -2
  216. package/tag/index.js +45 -45
  217. package/time-picker/Picker.js +76 -76
  218. package/time-picker/TimePicker.js +136 -136
  219. package/time-picker/index.js +8 -8
  220. package/time-picker/util.js +5 -5
  221. package/timeline/Item.js +47 -47
  222. package/timeline/Timeline.js +41 -41
  223. package/tooltip/index.js +29 -29
  224. package/transfer/Item.js +2 -2
  225. package/transfer/List.js +2 -2
  226. package/transfer/index.js +2 -2
  227. package/tree/Animation.js +2 -2
  228. package/tree/Node.js +2 -2
  229. package/tree/NodeList.js +1 -1
  230. package/tree/Tree.js +2 -2
  231. package/tree/index.js +1 -1
  232. package/tree-select/List.js +1 -1
  233. package/tree-select/Select.js +2 -2
  234. package/tree-select/index.js +2 -2
  235. package/trigger/index.js +60 -60
  236. package/types/config-provider/ConfigProvider.d.ts +2 -2
  237. package/types/config-provider/context.d.ts +1 -1
  238. package/types/date-picker/index.d.ts +8 -9
  239. package/types/date-picker/interface.d.ts +9 -9
  240. package/types/index.d.ts +1 -1
  241. package/types/picker/Input.d.ts +2 -2
  242. package/types/space/index.d.ts +2 -1
  243. package/types/utils/names.d.ts +1 -1
  244. package/typography/Base.js +53 -53
  245. package/typography/Ellipsis.js +9 -8
  246. package/typography/Operations.js +28 -28
  247. package/typography/Paragraph.js +8 -8
  248. package/typography/Typography.js +7 -7
  249. package/typography/index.js +1 -1
  250. package/upload/TriggerNode.js +47 -47
  251. package/upload/Upload.js +184 -184
  252. package/utils/contextHolder.js +3 -3
  253. package/utils/index.js +13 -13
  254. package/utils/names.js +1 -1
  255. package/utils/setPrimaryColor.js +18 -13
  256. package/utils/tween.js +1 -1
  257. package/verification-code/VerificationCode.js +49 -49
  258. package/version/index.js +1 -1
  259. package/watermark/Watermark.js +24 -24
  260. package/chunk/CQvM33Vg.js +0 -724
  261. package/chunk/yhU2zeeu.js +0 -1461
  262. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -2,49 +2,49 @@ import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
2
  import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
3
  import L from "@unicom-cloud/icons/IconUiCaretRight";
4
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 "./CQvM33Vg.js";
5
+ import M, { useContext as O, useRef as A, createContext as B } from "react";
6
+ import { a as T, I as S } from "./Cplu5dtQ.js";
7
7
  import { u as q } from "./BFTV6myl.js";
8
8
  import { u as D } from "./CXPOj2uy.js";
9
- import m from "@unicom-cloud/utils/class-name";
9
+ import p from "@unicom-cloud/utils/class-name";
10
10
  import { o as G } from "./BKKEev13.js";
11
11
  import { u as J } from "./BJ9_azwQ.js";
12
12
  import { u as Q } from "./BYdIoY50.js";
13
13
  import { off as W, on as X } from "../utils/dom.js";
14
- function Y(d, p) {
15
- var C;
16
- const { getPrefixCls: g } = K(T), n = K(j), I = Q(), {
14
+ function Y(f, g) {
15
+ var I;
16
+ const { getPrefixCls: a } = O(T), n = O(j), C = Q(), {
17
17
  children: s,
18
- name: a,
18
+ name: c,
19
19
  header: $,
20
20
  className: H,
21
21
  style: N,
22
22
  contentStyle: E,
23
23
  extra: x,
24
- disabled: c,
24
+ disabled: l,
25
25
  destroyOnHide: y,
26
26
  expandIcon: v,
27
27
  showExpandIcon: b = !0,
28
- ...P
29
- } = d, i = A(), h = A(), t = g("collapse-item"), l = ((C = n.activeKeys) == null ? void 0 : C.indexOf(a)) > -1, u = b ? "expandIcon" in d ? v : n.expandIcon : null, f = (e, o) => {
30
- var O;
31
- if (c)
28
+ ...R
29
+ } = f, i = A(), m = A(), t = a == null ? void 0 : a("collapse-item"), d = ((I = n.activeKeys) == null ? void 0 : I.indexOf(c)) > -1, u = b ? "expandIcon" in f ? v : n.expandIcon : null, h = (e, o) => {
30
+ var P;
31
+ if (l)
32
32
  return;
33
- const { triggerRegion: R } = n;
34
- (o === (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(o)) && ((O = n.onToggle) == null || O.call(n, a, e));
33
+ const { triggerRegion: K } = n;
34
+ (o === (K === "icon" ? 0 : K === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
35
+ K === "header" && [0, 1].includes(o)) && ((P = n.onToggle) == null || P.call(n, c, e));
36
36
  };
37
37
  return /* @__PURE__ */ w(
38
38
  "div",
39
39
  {
40
- ref: p,
41
- ...P,
42
- className: m(
40
+ ref: g,
41
+ ...R,
42
+ className: p(
43
43
  t,
44
44
  {
45
- [`${t}-active`]: l,
45
+ [`${t}-active`]: d,
46
46
  [`${t}-no-icon`]: !u,
47
- [`${t}-disabled`]: c
47
+ [`${t}-disabled`]: l
48
48
  },
49
49
  H
50
50
  ),
@@ -54,21 +54,21 @@ function Y(d, p) {
54
54
  "div",
55
55
  {
56
56
  role: "button",
57
- "aria-disabled": c,
58
- "aria-expanded": l,
57
+ "aria-disabled": l,
58
+ "aria-expanded": d,
59
59
  "data-active-region": n.triggerRegion,
60
- tabIndex: c ? -1 : 0,
61
- className: m(
60
+ tabIndex: l ? -1 : 0,
61
+ className: p(
62
62
  `${t}-header`,
63
63
  `${t}-header-${n.expandIconPosition}`,
64
64
  {
65
- [`${t}-header-disabled`]: c
65
+ [`${t}-header-disabled`]: l
66
66
  }
67
67
  ),
68
- onClick: (e) => f(e, 2),
69
- ...I({
68
+ onClick: (e) => h(e, 2),
69
+ ...C({
70
70
  onPressEnter: (e) => {
71
- !c && n.onToggle(a, e);
71
+ !l && n.onToggle(c, e);
72
72
  }
73
73
  }),
74
74
  children: [
@@ -76,17 +76,17 @@ function Y(d, p) {
76
76
  S,
77
77
  {
78
78
  prefix: t,
79
- disabled: c,
80
- className: m({
79
+ disabled: l,
80
+ className: p({
81
81
  [`${t}-icon-hover-right`]: n.expandIconPosition === "right",
82
82
  [`${t}-header-icon-right`]: n.expandIconPosition === "right"
83
83
  }),
84
- onClick: (e) => f(e, 0),
84
+ onClick: (e) => h(e, 0),
85
85
  children: /* @__PURE__ */ r(
86
86
  "span",
87
87
  {
88
- className: m(`${t}-header-icon`, {
89
- [`${t}-header-icon-down`]: l
88
+ className: p(`${t}-header-icon`, {
89
+ [`${t}-header-icon-down`]: d
90
90
  }),
91
91
  children: u
92
92
  }
@@ -97,7 +97,7 @@ function Y(d, p) {
97
97
  "div",
98
98
  {
99
99
  className: `${t}-header-title`,
100
- onClick: (e) => f(e, 1),
100
+ onClick: (e) => h(e, 1),
101
101
  children: $
102
102
  }
103
103
  ),
@@ -118,18 +118,18 @@ function Y(d, p) {
118
118
  J,
119
119
  {
120
120
  nodeRef: i,
121
- in: l,
121
+ in: d,
122
122
  addEndListener: (e) => {
123
123
  W(i.current, "transitionend", e), X(i.current, "transitionend", e);
124
124
  },
125
- mountOnEnter: "destroyOnHide" in d ? y : n.destroyOnHide || n.lazyload,
126
- unmountOnExit: "destroyOnHide" in d ? y : n.destroyOnHide,
125
+ mountOnEnter: "destroyOnHide" in f ? y : n.destroyOnHide || n.lazyload,
126
+ unmountOnExit: "destroyOnHide" in f ? y : n.destroyOnHide,
127
127
  onEnter: () => {
128
128
  const e = i.current;
129
129
  e && (e.style.height = "0", e.style.display = "block");
130
130
  },
131
131
  onEntering: () => {
132
- const e = i.current, o = h.current;
132
+ const e = i.current, o = m.current;
133
133
  e && o && (e.style.height = `${Math.max(e.scrollHeight, o.scrollHeight)}px`);
134
134
  },
135
135
  onEntered: () => {
@@ -137,7 +137,7 @@ function Y(d, p) {
137
137
  e && (e.style.height = "auto");
138
138
  },
139
139
  onExit: () => {
140
- const e = i.current, o = h.current;
140
+ const e = i.current, o = m.current;
141
141
  e && o && (e.offsetHeight, o.offsetHeight, e.style.display = "block", e.style.height = `${Math.max(e.offsetHeight, o.offsetHeight)}px`, e.offsetHeight, o.offsetHeight);
142
142
  },
143
143
  onExiting: () => {
@@ -153,13 +153,13 @@ function Y(d, p) {
153
153
  {
154
154
  ref: i,
155
155
  role: "region",
156
- className: m(`${t}-content`, {
157
- [`${t}-content-expanded`]: l
156
+ className: p(`${t}-content`, {
157
+ [`${t}-content-expanded`]: d
158
158
  }),
159
159
  children: /* @__PURE__ */ r(
160
160
  "div",
161
161
  {
162
- ref: h,
162
+ ref: m,
163
163
  style: E,
164
164
  className: `${t}-content-box`,
165
165
  children: s
@@ -177,9 +177,9 @@ const z = M.forwardRef(
177
177
  Y
178
178
  );
179
179
  z.displayName = "CollapseItem";
180
- const k = (d, p) => {
181
- const g = [].concat(d);
182
- return p ? g.slice(0, 1) : g;
180
+ const k = (f, g) => {
181
+ const a = [].concat(f);
182
+ return g ? a.slice(0, 1) : a;
183
183
  }, Z = {
184
184
  bordered: !0,
185
185
  lazyload: !0,
@@ -191,12 +191,12 @@ const k = (d, p) => {
191
191
  onToggle: () => {
192
192
  }
193
193
  });
194
- function _(d, p) {
195
- const { getPrefixCls: g, componentConfig: n, rtl: I } = K(T), s = q(
196
- d,
194
+ function _(f, g) {
195
+ const { getPrefixCls: a, componentConfig: n, rtl: C } = O(T), s = q(
196
+ f,
197
197
  Z,
198
198
  n == null ? void 0 : n.Collapse
199
- ), [a, $] = D([], {
199
+ ), [c, $] = D([], {
200
200
  defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
201
201
  value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
202
202
  }), {
@@ -204,26 +204,26 @@ function _(d, p) {
204
204
  className: N,
205
205
  style: E,
206
206
  bordered: x,
207
- lazyload: c,
207
+ lazyload: l,
208
208
  expandIcon: y,
209
209
  expandIconPosition: v,
210
210
  destroyOnHide: b,
211
- accordion: P,
211
+ accordion: R,
212
212
  triggerRegion: i,
213
- onChange: h,
213
+ onChange: m,
214
214
  ...t
215
- } = s, l = g("collapse"), u = (f, C) => {
216
- let e = [...a || []];
217
- const o = a == null ? void 0 : a.indexOf(f);
218
- o > -1 ? e.splice(o, 1) : P ? e = [f] : e.push(f), "activeKey" in s || $(e), V(h) && h(f, e, C);
215
+ } = s, d = a == null ? void 0 : a("collapse"), u = (h, I) => {
216
+ let e = [...c || []];
217
+ const o = c == null ? void 0 : c.indexOf(h);
218
+ o > -1 ? e.splice(o, 1) : R ? e = [h] : e.push(h), "activeKey" in s || $(e), V(m) && m(h, e, I);
219
219
  };
220
220
  return /* @__PURE__ */ r(
221
221
  j.Provider,
222
222
  {
223
223
  value: {
224
- activeKeys: a,
224
+ activeKeys: c,
225
225
  triggerRegion: i,
226
- lazyload: c,
226
+ lazyload: l,
227
227
  destroyOnHide: b,
228
228
  expandIconPosition: v,
229
229
  onToggle: u,
@@ -232,12 +232,12 @@ function _(d, p) {
232
232
  children: /* @__PURE__ */ r(
233
233
  "div",
234
234
  {
235
- ref: p,
235
+ ref: g,
236
236
  ...G(t, ["activeKey", "defaultActiveKey"]),
237
- className: m(
238
- l,
239
- `${l}-${x ? "border" : "borderless"}`,
240
- { [`${l}-rtl`]: I },
237
+ className: p(
238
+ d,
239
+ `${d}-${x ? "border" : "borderless"}`,
240
+ { [`${d}-rtl`]: C },
241
241
  N
242
242
  ),
243
243
  style: E,