@unicom-cloud/ui 0.8.81 → 0.8.83

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 (280) 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/Input.js +11 -10
  28. package/InputNumber.js +1 -1
  29. package/Layout.js +1 -1
  30. package/Link.js +1 -1
  31. package/List.js +2 -2
  32. package/Mentions.js +2 -2
  33. package/Menu.js +1 -1
  34. package/Message.js +1 -1
  35. package/Modal.js +1 -1
  36. package/Notice.js +1 -1
  37. package/Notification.js +5 -5
  38. package/OverflowEllipsis.js +1 -1
  39. package/PageHeader.js +1 -1
  40. package/Pagination.js +1 -1
  41. package/Popconfirm.js +1 -1
  42. package/Popover.js +1 -1
  43. package/Progress.js +1 -1
  44. package/Radio.js +1 -1
  45. package/Rate.js +1 -1
  46. package/ResizeBox.js +1 -1
  47. package/Result.js +1 -1
  48. package/Select.js +1 -1
  49. package/Skeleton.js +1 -1
  50. package/Slider.js +1 -1
  51. package/Space.js +1 -1
  52. package/SpeechSynthesis.js +1 -1
  53. package/Spin.js +1 -1
  54. package/Statistic.js +2 -2
  55. package/Steps.js +1 -1
  56. package/Switch.js +1 -1
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +1 -1
  60. package/Tooltip.js +1 -1
  61. package/Transfer.js +2 -2
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +1 -1
  65. package/Typography.js +1 -1
  66. package/affix/index.js +60 -57
  67. package/alert/index.js +53 -53
  68. package/anchor/Anchor.js +72 -72
  69. package/anchor/Link.js +27 -27
  70. package/anchor/util.js +1 -1
  71. package/auto-complete/index.js +2 -2
  72. package/avatar/Avatar.js +31 -31
  73. package/avatar/Group.js +25 -25
  74. package/back-top/index.js +30 -30
  75. package/badge/index.js +37 -37
  76. package/breadcrumb/index.js +26 -26
  77. package/button/Group.js +7 -7
  78. package/button/index.js +29 -29
  79. package/calendar/index.js +2 -2
  80. package/card/Grid.js +12 -12
  81. package/card/Meta.js +17 -17
  82. package/card/index.js +44 -44
  83. package/carousel/Arrow.js +19 -19
  84. package/carousel/Indicator.js +25 -25
  85. package/carousel/index.js +77 -77
  86. package/cascader/Cascader.js +2 -2
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +2 -2
  90. package/checkbox/Group.js +2 -2
  91. package/checkbox/GroupBlock.js +2 -2
  92. package/checkbox/index.js +2 -2
  93. package/chunk/B6r8jPCd.js +6 -0
  94. package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
  95. package/chunk/C9oo3EJI.js +692 -0
  96. package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
  97. package/chunk/DILUZgXW.js +1464 -0
  98. package/chunk/DSRHFFrc.js +53 -0
  99. package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
  100. package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
  101. package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
  102. package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
  103. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  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 +36 -36
  108. package/color-picker/InputAlpha.js +11 -11
  109. package/color-picker/InputHex.js +24 -24
  110. package/color-picker/InputRgb.js +23 -23
  111. package/color-picker/Palette.js +18 -18
  112. package/color-picker/Panel.js +2 -2
  113. package/color-picker/index.js +2 -2
  114. package/comment/index.js +31 -31
  115. package/config-provider/ConfigProvider.js +5 -3
  116. package/config-provider/context.js +2 -2
  117. package/config-provider/index.js +4 -3
  118. package/copy/index.js +28 -28
  119. package/date-picker/Picker.js +276 -276
  120. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  121. package/date-picker/index.js +26 -27
  122. package/descriptions/index.js +33 -33
  123. package/divider/index.js +12 -12
  124. package/draggable/index.js +23 -23
  125. package/drawer/Drawer.js +81 -81
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +56 -56
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +76 -76
  130. package/form/FormItem.js +64 -64
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +53 -53
  133. package/grid/Row.js +34 -34
  134. package/grid/grid-item.js +29 -29
  135. package/grid/grid.js +50 -50
  136. package/icon/index.js +20 -19
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +86 -86
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +22 -22
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +498 -493
  144. package/input/Button.js +11 -0
  145. package/input/Group.js +8 -8
  146. package/input/Input.js +488 -434
  147. package/input/InputElement.js +1 -1
  148. package/input/Password.js +1 -1
  149. package/input/Search.js +1 -1
  150. package/input/Textarea.js +1 -1
  151. package/input/index.js +9 -8
  152. package/input-number/index.js +1 -1
  153. package/input-tag/InputTag.js +40 -40
  154. package/layout/Content.js +7 -7
  155. package/layout/Footer.js +9 -9
  156. package/layout/Header.js +7 -7
  157. package/layout/Sider.js +55 -55
  158. package/layout/index.js +32 -32
  159. package/link/index.js +35 -35
  160. package/list/Item.js +29 -29
  161. package/list/Meta.js +12 -12
  162. package/list/index.js +2 -2
  163. package/mentions/index.js +2 -2
  164. package/menu/Menu.js +2 -2
  165. package/menu/OverflowWrap.js +1 -1
  166. package/menu/index.js +2 -2
  167. package/message/index.js +1 -1
  168. package/message/useMessage.js +1 -1
  169. package/modal/Confirm.js +2 -2
  170. package/modal/Modal.js +2 -2
  171. package/modal/index.js +1 -1
  172. package/notice/index.js +1 -1
  173. package/notification/index.js +5 -5
  174. package/notification/useNotification.js +1 -1
  175. package/overflow-ellipsis/OverflowItem.js +12 -12
  176. package/overflow-ellipsis/index.js +24 -24
  177. package/package.json +1 -1
  178. package/page-header/index.js +38 -38
  179. package/pagination/PageItem.js +16 -16
  180. package/pagination/PageJumper.js +1 -1
  181. package/pagination/PageOption.js +2 -2
  182. package/pagination/Pagination.js +2 -2
  183. package/pagination/index.js +1 -1
  184. package/picker/Input.js +69 -69
  185. package/picker/InputRange.js +111 -111
  186. package/popconfirm/index.js +61 -61
  187. package/popover/index.js +35 -35
  188. package/progress/index.js +22 -22
  189. package/radio/Group.js +2 -2
  190. package/radio/GroupBlock.js +2 -2
  191. package/radio/Radio.js +2 -2
  192. package/radio/index.js +2 -2
  193. package/rate/index.js +49 -49
  194. package/resize-box/ResizeTrigger.js +34 -34
  195. package/resize-box/Split.js +56 -56
  196. package/resize-box/SplitGroup.js +55 -55
  197. package/resize-box/index.js +51 -51
  198. package/result/index.js +41 -41
  199. package/select/Option.js +1 -1
  200. package/select/Select.js +2 -2
  201. package/select/index.js +2 -2
  202. package/select/util.js +1 -1
  203. package/select-view/Core.js +125 -125
  204. package/skeleton/index.js +20 -20
  205. package/slider/Button.js +57 -57
  206. package/slider/index.js +116 -116
  207. package/space/index.js +46 -44
  208. package/speech-synthesis/index.js +1 -1
  209. package/spin/DotLoading.js +10 -10
  210. package/spin/index.js +44 -44
  211. package/statistic/Countdown.js +34 -34
  212. package/statistic/index.js +67 -67
  213. package/steps/index.js +55 -55
  214. package/style.css +1 -1
  215. package/switch/index.js +54 -54
  216. package/table/Table.js +3 -3
  217. package/table/index.js +1 -1
  218. package/tabs/Tab.js +2 -2
  219. package/tabs/TabContent.js +2 -2
  220. package/tabs/TabPane.js +12 -12
  221. package/tabs/index.js +2 -2
  222. package/tag/index.js +45 -45
  223. package/time-picker/Picker.js +76 -76
  224. package/time-picker/TimePicker.js +136 -136
  225. package/time-picker/index.js +8 -8
  226. package/time-picker/util.js +5 -5
  227. package/timeline/Item.js +47 -47
  228. package/timeline/Timeline.js +41 -41
  229. package/tooltip/index.js +29 -29
  230. package/transfer/Item.js +2 -2
  231. package/transfer/List.js +2 -2
  232. package/transfer/index.js +2 -2
  233. package/tree/Animation.js +2 -2
  234. package/tree/Node.js +2 -2
  235. package/tree/NodeList.js +1 -1
  236. package/tree/Tree.js +2 -2
  237. package/tree/index.js +1 -1
  238. package/tree-select/List.js +1 -1
  239. package/tree-select/Select.js +2 -2
  240. package/tree-select/index.js +2 -2
  241. package/trigger/index.js +60 -60
  242. package/types/config-provider/ConfigProvider.d.ts +2 -2
  243. package/types/config-provider/context.d.ts +1 -1
  244. package/types/date-picker/index.d.ts +8 -9
  245. package/types/date-picker/interface.d.ts +9 -9
  246. package/types/index.d.ts +2 -2
  247. package/types/input/Button.d.ts +5 -0
  248. package/types/input/Input.d.ts +4 -1
  249. package/types/input/interface.d.ts +7 -0
  250. package/types/picker/Input.d.ts +2 -2
  251. package/types/space/index.d.ts +2 -1
  252. package/types/utils/index.d.ts +1 -0
  253. package/types/utils/names.d.ts +1 -1
  254. package/types/utils/setTheme.d.ts +2 -0
  255. package/typography/Base.js +53 -53
  256. package/typography/Ellipsis.js +10 -8
  257. package/typography/Operations.js +28 -28
  258. package/typography/Paragraph.js +8 -8
  259. package/typography/Typography.js +7 -7
  260. package/typography/index.js +1 -1
  261. package/upload/TriggerNode.js +47 -47
  262. package/upload/Upload.js +184 -184
  263. package/upload/request.js +1 -1
  264. package/upload/request_.js +1 -1
  265. package/utils/constant.js +1 -1
  266. package/utils/contextHolder.js +3 -3
  267. package/utils/dom.js +1 -1
  268. package/utils/index.js +116 -114
  269. package/utils/names.js +1 -1
  270. package/utils/setDarkTheme.js +23 -22
  271. package/utils/setPrimaryColor.js +22 -16
  272. package/utils/setTheme.js +9 -0
  273. package/utils/tween.js +1 -1
  274. package/verification-code/VerificationCode.js +49 -49
  275. package/version/index.js +1 -1
  276. package/watermark/Watermark.js +24 -24
  277. package/chunk/CQvM33Vg.js +0 -724
  278. package/chunk/D0ZWT7db.js +0 -5
  279. package/chunk/yhU2zeeu.js +0 -1461
  280. /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 "./C9oo3EJI.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,
@@ -1,4 +1,5 @@
1
- import { isFunction as O, isString as M } from "@unicom-cloud/utils/is";
1
+ import O from "lodash/isFunction";
2
+ import M from "lodash/isString";
2
3
  const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(i - 1, t)), r = (t) => (i) => i < 0.5 ? a(t)(i * 2) / 2 : n(t)(i * 2 - 1) / 2 + 0.5, q = (t) => t, y = a(2), b = n(2), g = r(2), F = a(3), P = n(3), k = r(3), w = a(4), S = n(4), T = r(4), v = a(5), A = n(5), D = r(5), U = (t) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2), x = (t) => Math.sin(Math.PI / 2 * t), B = (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, u = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? (t -= 1.5 / 2.75, 7.5625 * t * t + 0.75) : t < 2.5 / 2.75 ? (t -= 2.25 / 2.75, 7.5625 * t * t + 0.9375) : (t -= 2.625 / 2.75, 7.5625 * t * t + 0.984375), l = (t) => 1 - u(1 - t), $ = (t) => t < 0.5 ? l(t * 2) * 0.5 : u(t * 2 - 1) * 0.5 + 0.5, d = {
3
4
  linear: q,
4
5
  quadIn: y,
@@ -20,7 +21,7 @@ const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(
20
21
  bounceIn: l,
21
22
  bounceInOut: $
22
23
  };
23
- class z {
24
+ class C {
24
25
  constructor(i) {
25
26
  const {
26
27
  from: e,
@@ -64,9 +65,9 @@ class z {
64
65
  }
65
66
  }
66
67
  export {
68
+ C as I,
67
69
  T as b,
68
70
  D as f,
69
71
  S as q,
70
- d as x,
71
- z as y
72
+ d as x
72
73
  };
@@ -3,12 +3,12 @@ import "@unicom-cloud/icons/IconUiCaretLeft";
3
3
  import "@unicom-cloud/icons/IconUiCaretRight";
4
4
  import "lodash/isFunction";
5
5
  import "react";
6
- import "../chunk/CQvM33Vg.js";
6
+ import "../chunk/C9oo3EJI.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../chunk/CXPOj2uy.js";
9
9
  import "@unicom-cloud/utils/class-name";
10
10
  import "../chunk/BKKEev13.js";
11
- import { a as x, C as d } from "../chunk/DEiyXzBZ.js";
11
+ import { a as x, C as d } from "../chunk/ev6oHWqY.js";
12
12
  export {
13
13
  x as CollapseContext,
14
14
  d as default
package/collapse/Item.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../chunk/BJ9_azwQ.js";
3
3
  import "react";
4
- import "../chunk/CQvM33Vg.js";
4
+ import "../chunk/C9oo3EJI.js";
5
5
  import "../chunk/BYdIoY50.js";
6
6
  import "@unicom-cloud/utils/class-name";
7
7
  import "../utils/dom.js";
8
- import { I as d } from "../chunk/DEiyXzBZ.js";
8
+ import { I as d } from "../chunk/ev6oHWqY.js";
9
9
  export {
10
10
  d as default
11
11
  };
package/collapse/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as a } from "../chunk/DEiyXzBZ.js";
1
+ import { C as a } from "../chunk/ev6oHWqY.js";
2
2
  export {
3
3
  a as default
4
4
  };
@@ -1,63 +1,63 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useContext as g } from "react";
3
- import { a as b } from "../chunk/CQvM33Vg.js";
4
- import B from "@unicom-cloud/utils/class-name";
5
- import { u as R } from "../chunk/k-OUstoD.js";
6
- const P = ({
7
- className: p,
8
- style: u,
9
- multiple: f = !1,
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { useContext as B } from "react";
3
+ import { a as C } from "../chunk/C9oo3EJI.js";
4
+ import R from "@unicom-cloud/utils/class-name";
5
+ import { u as g } from "../chunk/k-OUstoD.js";
6
+ const q = ({
7
+ className: u,
8
+ style: h,
9
+ multiple: m = !1,
10
10
  value: a,
11
- onActive: h,
12
- onAdd: x,
13
- onChange: N,
14
- renderHandlerStyle: t,
15
- renderHandlerCenterStyle: m
11
+ onActive: N,
12
+ onAdd: k,
13
+ onChange: v,
14
+ renderHandlerStyle: f,
15
+ renderHandlerCenterStyle: t
16
16
  }) => {
17
- const { getPrefixCls: k } = g(b), r = k("color-picker"), { blockRef: l, handlerRef: v, onMouseDown: C } = R({
18
- multiple: f,
19
- value: f ? a.map((o) => ({
17
+ const { getPrefixCls: r } = B(C), n = r == null ? void 0 : r("color-picker"), { blockRef: $, handlerRef: x, onMouseDown: b } = g({
18
+ multiple: m,
19
+ value: m ? a.map((o) => ({
20
20
  value: [o.value / 100, 0],
21
21
  key: o.key
22
22
  })) : [a, 0],
23
- onChange: (o) => N(o[0]),
24
- onAdd: (o) => x(o[0]),
25
- onActive: h
26
- }), $ = () => {
27
- const o = (c, s, n) => /* @__PURE__ */ i(
23
+ onChange: (o) => v(o[0]),
24
+ onAdd: (o) => k(o[0]),
25
+ onActive: N
26
+ }), l = () => {
27
+ const o = (c, s, i) => /* @__PURE__ */ p(
28
28
  "div",
29
29
  {
30
- ref: v,
31
- className: `${r}-handler`,
30
+ ref: x,
31
+ className: `${n}-handler`,
32
32
  style: {
33
33
  left: `${c * 100}%`,
34
- ...t == null ? void 0 : t(s, n)
34
+ ...f == null ? void 0 : f(s, i)
35
35
  },
36
36
  "data-key": s,
37
- children: /* @__PURE__ */ i(
37
+ children: /* @__PURE__ */ p(
38
38
  "div",
39
39
  {
40
- className: `${r}-handler-center`,
41
- style: m == null ? void 0 : m(s, n),
40
+ className: `${n}-handler-center`,
41
+ style: t == null ? void 0 : t(s, i),
42
42
  "data-key": s
43
43
  }
44
44
  )
45
45
  },
46
46
  s
47
47
  );
48
- return f ? a.map((c, s) => o(c.value, c.key, s)) : o(a);
48
+ return m ? a.map((c, s) => o(c.value, c.key, s)) : o(a);
49
49
  };
50
- return /* @__PURE__ */ i(
50
+ return /* @__PURE__ */ p(
51
51
  "div",
52
52
  {
53
- ref: l,
54
- style: u,
55
- className: B(`${r}-control-bar`, p),
56
- onMouseDown: C,
57
- children: $()
53
+ ref: $,
54
+ style: h,
55
+ className: R(`${n}-control-bar`, u),
56
+ onMouseDown: b,
57
+ children: l()
58
58
  }
59
59
  );
60
60
  };
61
61
  export {
62
- P as ControlBar
62
+ q as ControlBar
63
63
  };
@@ -1,22 +1,22 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { useContext as i } from "react";
3
- import { a as p } from "../chunk/CQvM33Vg.js";
4
- import { InputNumber as s } from "../input/Input.js";
5
- const l = ({ value: o, onChange: t }) => {
6
- const { getPrefixCls: n } = i(p), r = n("color-picker");
7
- return /* @__PURE__ */ m(
8
- s,
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { useContext as a } from "react";
3
+ import { a as e } from "../chunk/C9oo3EJI.js";
4
+ import { InputNumber as i } from "../input/Input.js";
5
+ const x = ({ value: n, onChange: t }) => {
6
+ const { getPrefixCls: o } = a(e), r = o == null ? void 0 : o("color-picker");
7
+ return /* @__PURE__ */ p(
8
+ i,
9
9
  {
10
10
  className: `${r}-input-alpha`,
11
11
  size: "mini",
12
12
  min: 0,
13
13
  max: 100,
14
- value: Math.round(o * 100),
14
+ value: Math.round(n * 100),
15
15
  suffix: "%",
16
- onChange: (e) => t(e / 100)
16
+ onChange: (m) => t(m / 100)
17
17
  }
18
18
  );
19
19
  };
20
20
  export {
21
- l as InputAlpha
21
+ x as InputAlpha
22
22
  };
@@ -1,55 +1,55 @@
1
- import { jsxs as v, jsx as c } from "react/jsx-runtime";
2
- import { c as m } from "../chunk/9TSjT7x_.js";
1
+ import { jsxs as v, jsx as m } from "react/jsx-runtime";
2
+ import { c as u } from "../chunk/9TSjT7x_.js";
3
3
  import { useContext as I, useState as j, useEffect as D } from "react";
4
- import { a as E } from "../chunk/CQvM33Vg.js";
4
+ import { a as E } from "../chunk/C9oo3EJI.js";
5
5
  import f from "../input/Input.js";
6
6
  import { InputAlpha as H } from "./InputAlpha.js";
7
- const N = ({
7
+ const $ = ({
8
8
  color: n,
9
- alpha: u,
10
- onHsvChange: x,
11
- onAlphaChange: h,
12
- disabledAlpha: l
9
+ alpha: x,
10
+ onHsvChange: h,
11
+ onAlphaChange: l,
12
+ disabledAlpha: g
13
13
  }) => {
14
- const { getPrefixCls: g } = I(E), s = g("color-picker"), [o, a] = j(n.hex);
14
+ const { getPrefixCls: s } = I(E), a = s == null ? void 0 : s("color-picker"), [o, r] = j(n.hex);
15
15
  D(() => {
16
- n.hex !== o && a(n.hex);
16
+ n.hex !== o && r(n.hex);
17
17
  }, [n]);
18
- const r = (e) => {
19
- var p;
20
- const t = ((p = e.match(/[a-fA-F0-9]*/g)) == null ? void 0 : p.join("")) ?? "";
21
- t !== o && a(t.toUpperCase());
18
+ const p = (e) => {
19
+ var c;
20
+ const t = ((c = e.match(/[a-fA-F0-9]*/g)) == null ? void 0 : c.join("")) ?? "";
21
+ t !== o && r(t.toUpperCase());
22
22
  }, i = () => {
23
- let e = new m(o);
24
- e.ok || (e = new m({
23
+ let e = new u(o);
24
+ e.ok || (e = new u({
25
25
  r: 255,
26
26
  g: 0,
27
27
  b: 0
28
28
  }));
29
29
  const t = e.toHsv_();
30
- x(t);
30
+ h(t);
31
31
  }, C = (e) => {
32
32
  let t = e.clipboardData.getData("Text");
33
- t.startsWith("#") && (t = t.slice(1)), r(t), e.preventDefault();
33
+ t.startsWith("#") && (t = t.slice(1)), p(t), e.preventDefault();
34
34
  };
35
- return /* @__PURE__ */ v(f.Group, { className: `${s}-input-group`, compact: !0, children: [
36
- /* @__PURE__ */ c(
35
+ return /* @__PURE__ */ v(f.Group, { className: `${a}-input-group`, compact: !0, children: [
36
+ /* @__PURE__ */ m(
37
37
  f,
38
38
  {
39
- className: `${s}-input-hex`,
39
+ className: `${a}-input-hex`,
40
40
  prefix: "#",
41
41
  size: "mini",
42
42
  maxLength: 6,
43
43
  value: o,
44
- onChange: r,
44
+ onChange: p,
45
45
  onBlur: i,
46
46
  onPressEnter: i,
47
47
  onPaste: C
48
48
  }
49
49
  ),
50
- !l && /* @__PURE__ */ c(H, { value: u, onChange: h })
50
+ !g && /* @__PURE__ */ m(H, { value: x, onChange: l })
51
51
  ] });
52
52
  };
53
53
  export {
54
- N as InputHex
54
+ $ as InputHex
55
55
  };
@@ -1,59 +1,59 @@
1
- import { jsxs as h, jsx as o } from "react/jsx-runtime";
2
- import { c as x } from "../chunk/9TSjT7x_.js";
3
- import { useContext as f } from "react";
4
- import { a as b } from "../chunk/CQvM33Vg.js";
5
- import I, { InputNumber as m } from "../input/Input.js";
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { c as b } from "../chunk/9TSjT7x_.js";
3
+ import { useContext as x } from "react";
4
+ import { a as f } from "../chunk/C9oo3EJI.js";
5
+ import I, { InputNumber as p } from "../input/Input.js";
6
6
  import { InputAlpha as d } from "./InputAlpha.js";
7
7
  const E = ({
8
8
  color: s,
9
- alpha: p,
10
- onHsvChange: u,
11
- onAlphaChange: a,
12
- disabledAlpha: c
9
+ alpha: u,
10
+ onHsvChange: a,
11
+ onAlphaChange: c,
12
+ disabledAlpha: g
13
13
  }) => {
14
- const { getPrefixCls: g } = f(b), C = g("color-picker"), t = (n) => {
15
- const l = new x({
14
+ const { getPrefixCls: t } = x(f), C = t == null ? void 0 : t("color-picker"), r = (n) => {
15
+ const h = new b({
16
16
  r: n.r,
17
17
  g: n.g,
18
18
  b: n.b
19
19
  }).toHsv_();
20
- u(l);
21
- }, { r, g: e, b: i } = s.rgb;
22
- return /* @__PURE__ */ h(I.Group, { className: `${C}-input-group`, compact: !0, children: [
20
+ a(h);
21
+ }, { r: e, g: m, b: i } = s.rgb;
22
+ return /* @__PURE__ */ l(I.Group, { className: `${C}-input-group`, compact: !0, children: [
23
23
  /* @__PURE__ */ o(
24
- m,
24
+ p,
25
25
  {
26
26
  size: "mini",
27
27
  min: 0,
28
28
  max: 255,
29
29
  hideControl: !0,
30
- value: r,
31
- onChange: (n) => t({ r: n, g: e, b: i })
30
+ value: e,
31
+ onChange: (n) => r({ r: n, g: m, b: i })
32
32
  }
33
33
  ),
34
34
  /* @__PURE__ */ o(
35
- m,
35
+ p,
36
36
  {
37
37
  size: "mini",
38
38
  min: 0,
39
39
  max: 255,
40
40
  hideControl: !0,
41
- value: e,
42
- onChange: (n) => t({ r, g: n, b: i })
41
+ value: m,
42
+ onChange: (n) => r({ r: e, g: n, b: i })
43
43
  }
44
44
  ),
45
45
  /* @__PURE__ */ o(
46
- m,
46
+ p,
47
47
  {
48
48
  size: "mini",
49
49
  min: 0,
50
50
  max: 255,
51
51
  hideControl: !0,
52
52
  value: i,
53
- onChange: (n) => t({ r, g: e, b: n })
53
+ onChange: (n) => r({ r: e, g: m, b: n })
54
54
  }
55
55
  ),
56
- !c && /* @__PURE__ */ o(d, { value: p, onChange: a })
56
+ !g && /* @__PURE__ */ o(d, { value: u, onChange: c })
57
57
  ] });
58
58
  };
59
59
  export {