@unicom-cloud/ui 0.8.75 → 0.8.76

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 (258) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  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 +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 +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 +1 -1
  31. package/Mentions.js +1 -1
  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/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 +1 -1
  48. package/Space.js +1 -1
  49. package/SpeechSynthesis.js +4 -3
  50. package/Spin.js +1 -1
  51. package/Statistic.js +1 -1
  52. package/Steps.js +1 -1
  53. package/Switch.js +1 -1
  54. package/Table.js +1 -1
  55. package/Tabs.js +1 -1
  56. package/Tag.js +1 -1
  57. package/Tooltip.js +2 -2
  58. package/Transfer.js +1 -1
  59. package/Tree.js +1 -1
  60. package/Trigger.js +1 -1
  61. package/affix/index.js +86 -82
  62. package/alert/index.js +1 -1
  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 +1 -1
  69. package/badge/index.js +1 -1
  70. package/breadcrumb/index.js +2 -2
  71. package/button/Group.js +1 -1
  72. package/button/index.js +1 -1
  73. package/calendar/index.js +2 -2
  74. package/card/Grid.js +1 -1
  75. package/card/Meta.js +1 -1
  76. package/card/index.js +1 -1
  77. package/carousel/Arrow.js +1 -1
  78. package/carousel/Indicator.js +1 -1
  79. package/carousel/index.js +1 -1
  80. package/cascader/Cascader.js +2 -2
  81. package/cascader/index.js +1 -1
  82. package/cascader/util.js +1 -1
  83. package/checkbox/Checkbox.js +2 -2
  84. package/checkbox/Group.js +2 -2
  85. package/checkbox/index.js +1 -1
  86. package/chunk/ATwvJ8j2.js +6 -0
  87. package/chunk/{CWlklVfi.js → BGmWsXl0.js} +1 -1
  88. package/chunk/{WVoGhvMI.js → ByRETFRI.js} +1 -1
  89. package/chunk/CBzE-PUr.js +23 -0
  90. package/chunk/{C9XYyypq.js → CQzKdjhX.js} +226 -225
  91. package/chunk/{BbqvFW5R.js → CqtaeJXT.js} +109 -109
  92. package/chunk/{DFcz9ZPP.js → CzaoCNQH.js} +2 -2
  93. package/chunk/D0ZWT7db.js +5 -0
  94. package/chunk/{BViFMHr-.js → D0qXkqyq.js} +3 -3
  95. package/chunk/{CPlPBkN7.js → D9JpbqFT.js} +1 -1
  96. package/chunk/{0mWCmQHr.js → DM_DBvmG.js} +2 -2
  97. package/chunk/{BxZ39GzB.js → DQrLGkIG.js} +1 -1
  98. package/chunk/{Dv6USvVF.js → DezXC21w.js} +1 -1
  99. package/chunk/{DeCsZrXb.js → J07pQqQ7.js} +2 -2
  100. package/chunk/{EL5Jmjgr.js → OPbfCome.js} +1 -1
  101. package/chunk/{B8hkFIar.js → lf-xRLXx.js} +1 -1
  102. package/collapse/Collapse.js +2 -2
  103. package/collapse/Item.js +2 -2
  104. package/collapse/index.js +1 -1
  105. package/color-picker/ControlBar.js +1 -1
  106. package/color-picker/InputAlpha.js +1 -1
  107. package/color-picker/InputHex.js +2 -2
  108. package/color-picker/InputRgb.js +2 -2
  109. package/color-picker/Palette.js +2 -2
  110. package/color-picker/Panel.js +3 -3
  111. package/color-picker/colors.js +4 -4
  112. package/color-picker/index.js +2 -2
  113. package/color-picker/utils.js +1 -1
  114. package/comment/index.js +1 -1
  115. package/config-provider/ConfigProvider.js +7 -6
  116. package/config-provider/context.js +3 -2
  117. package/config-provider/index.js +2 -2
  118. package/copy/index.js +1 -1
  119. package/date-picker/Picker.js +1 -1
  120. package/date-picker/PickerRange.js +2 -2
  121. package/date-picker/index.js +1 -1
  122. package/descriptions/index.js +1 -1
  123. package/divider/index.js +1 -1
  124. package/draggable/index.js +1 -1
  125. package/drawer/Drawer.js +1 -1
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +1 -1
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +1 -1
  130. package/form/FormItem.js +1 -1
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +1 -1
  133. package/grid/Row.js +1 -1
  134. package/grid/grid-item.js +1 -1
  135. package/grid/grid.js +1 -1
  136. package/icon/index.js +1 -1
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +2 -2
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +1 -1
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +312 -310
  144. package/input/Group.js +1 -1
  145. package/input/Input.js +1 -1
  146. package/input/InputElement.js +1 -1
  147. package/input/Password.js +1 -1
  148. package/input/Search.js +1 -1
  149. package/input/Textarea.js +1 -1
  150. package/input-number/index.js +1 -1
  151. package/input-tag/InputTag.js +1 -1
  152. package/layout/Content.js +1 -1
  153. package/layout/Footer.js +1 -1
  154. package/layout/Header.js +1 -1
  155. package/layout/Sider.js +1 -1
  156. package/layout/index.js +1 -1
  157. package/link/index.js +1 -1
  158. package/list/Item.js +1 -1
  159. package/list/Meta.js +1 -1
  160. package/list/index.js +1 -1
  161. package/mentions/index.js +1 -1
  162. package/menu/Menu.js +2 -2
  163. package/menu/OverflowWrap.js +1 -1
  164. package/menu/index.js +2 -2
  165. package/message/index.js +1 -1
  166. package/message/useMessage.js +1 -1
  167. package/modal/Confirm.js +2 -2
  168. package/modal/Modal.js +2 -2
  169. package/modal/index.js +1 -1
  170. package/notice/index.js +1 -1
  171. package/notification/index.js +1 -1
  172. package/notification/useNotification.js +1 -1
  173. package/overflow-ellipsis/OverflowItem.js +1 -1
  174. package/overflow-ellipsis/index.js +1 -1
  175. package/package.json +1 -1
  176. package/page-header/index.js +1 -1
  177. package/pagination/PageItem.js +1 -1
  178. package/pagination/PageJumper.js +1 -1
  179. package/pagination/PageOption.js +1 -1
  180. package/pagination/Pagination.js +1 -1
  181. package/picker/Input.js +1 -1
  182. package/picker/InputRange.js +1 -1
  183. package/popconfirm/index.js +1 -1
  184. package/popover/index.js +1 -1
  185. package/progress/index.js +1 -1
  186. package/radio/Group.js +2 -2
  187. package/radio/Radio.js +2 -2
  188. package/radio/index.js +2 -2
  189. package/rate/index.js +1 -1
  190. package/resize-box/ResizeTrigger.js +1 -1
  191. package/resize-box/Split.js +1 -1
  192. package/resize-box/SplitGroup.js +1 -1
  193. package/resize-box/index.js +1 -1
  194. package/result/index.js +1 -1
  195. package/select/Option.js +1 -1
  196. package/select/Select.js +2 -2
  197. package/select-view/Core.js +1 -1
  198. package/skeleton/index.js +1 -1
  199. package/slider/Button.js +1 -1
  200. package/slider/index.js +1 -1
  201. package/space/index.js +1 -1
  202. package/speech-synthesis/index.js +4 -3
  203. package/spin/DotLoading.js +1 -1
  204. package/spin/index.js +1 -1
  205. package/statistic/Countdown.js +1 -1
  206. package/statistic/index.js +1 -1
  207. package/steps/index.js +1 -1
  208. package/style/variables.less +0 -484
  209. package/style.css +1 -1
  210. package/switch/index.js +1 -1
  211. package/table/Table.js +2 -2
  212. package/table/index.js +3 -3
  213. package/tabs/Tab.js +2 -2
  214. package/tabs/TabContent.js +2 -2
  215. package/tabs/TabPane.js +1 -1
  216. package/tabs/index.js +2 -2
  217. package/tag/index.js +1 -1
  218. package/time-picker/Picker.js +1 -1
  219. package/time-picker/TimePicker.js +1 -1
  220. package/timeline/Item.js +1 -1
  221. package/timeline/Timeline.js +1 -1
  222. package/tooltip/index.js +2 -2
  223. package/transfer/Item.js +2 -2
  224. package/transfer/List.js +2 -2
  225. package/transfer/index.js +1 -1
  226. package/tree/Animation.js +2 -2
  227. package/tree/Node.js +3 -3
  228. package/tree/NodeList.js +1 -1
  229. package/tree/Tree.js +2 -2
  230. package/tree/index.js +1 -1
  231. package/tree-select/Select.js +1 -1
  232. package/trigger/index.js +1 -1
  233. package/types/utils/constant.d.ts +2 -1
  234. package/types/utils/setDarkTheme.d.ts +2 -3
  235. package/typography/Base.js +1 -1
  236. package/typography/Ellipsis.js +12 -11
  237. package/typography/Paragraph.js +1 -1
  238. package/typography/Typography.js +1 -1
  239. package/typography/index.js +10 -9
  240. package/upload/TriggerNode.js +1 -1
  241. package/upload/Upload.js +1 -1
  242. package/upload/Uploader.js +1 -1
  243. package/upload/request.js +1 -1
  244. package/upload/request_.js +1 -1
  245. package/utils/caseName.js +1 -1
  246. package/utils/color.js +1 -1
  247. package/utils/constant.js +7 -5
  248. package/utils/contextHolder.js +1 -1
  249. package/utils/dom.js +1 -1
  250. package/utils/index.js +156 -154
  251. package/utils/setDarkTheme.js +33 -5
  252. package/utils/tinycolor.js +1 -1
  253. package/verification-code/VerificationCode.js +1 -1
  254. package/version/index.js +1 -1
  255. package/watermark/Watermark.js +1 -1
  256. package/chunk/BsWphzcT.js +0 -20
  257. package/chunk/CIkPwQlq.js +0 -6
  258. package/chunk/DskaI8QL.js +0 -25
@@ -1,15 +1,15 @@
1
- function l(r, t) {
2
- ue(r) && (r = "100%");
3
- const e = fe(r);
1
+ function u(r, t) {
2
+ fe(r) && (r = "100%");
3
+ const e = le(r);
4
4
  return r = t === 360 ? r : Math.min(t, Math.max(0, parseFloat(r))), e && (r = parseInt(String(r * t), 10) / 100), Math.abs(r - t) < 1e-6 ? 1 : (t === 360 ? r = (r < 0 ? r % t + t : r % t) / parseFloat(String(t)) : r = r % t / parseFloat(String(t)), r);
5
5
  }
6
6
  function A(r) {
7
7
  return Math.min(1, Math.max(0, r));
8
8
  }
9
- function ue(r) {
9
+ function fe(r) {
10
10
  return typeof r == "string" && r.indexOf(".") !== -1 && parseFloat(r) === 1;
11
11
  }
12
- function fe(r) {
12
+ function le(r) {
13
13
  return typeof r == "string" && r.indexOf("%") !== -1;
14
14
  }
15
15
  function L(r) {
@@ -23,74 +23,74 @@ function b(r) {
23
23
  }
24
24
  function ge(r, t, e) {
25
25
  return {
26
- r: l(r, 255) * 255,
27
- g: l(t, 255) * 255,
28
- b: l(e, 255) * 255
26
+ r: u(r, 255) * 255,
27
+ g: u(t, 255) * 255,
28
+ b: u(e, 255) * 255
29
29
  };
30
30
  }
31
31
  function q(r, t, e) {
32
- r = l(r, 255), t = l(t, 255), e = l(e, 255);
32
+ r = u(r, 255), t = u(t, 255), e = u(e, 255);
33
33
  const a = Math.max(r, t, e), n = Math.min(r, t, e);
34
34
  let s = 0, i = 0;
35
- const h = (a + n) / 2;
35
+ const o = (a + n) / 2;
36
36
  if (a === n)
37
37
  i = 0, s = 0;
38
38
  else {
39
- const u = a - n;
40
- switch (i = h > 0.5 ? u / (2 - a - n) : u / (a + n), a) {
39
+ const f = a - n;
40
+ switch (i = o > 0.5 ? f / (2 - a - n) : f / (a + n), a) {
41
41
  case r:
42
- s = (t - e) / u + (t < e ? 6 : 0);
42
+ s = (t - e) / f + (t < e ? 6 : 0);
43
43
  break;
44
44
  case t:
45
- s = (e - r) / u + 2;
45
+ s = (e - r) / f + 2;
46
46
  break;
47
47
  case e:
48
- s = (r - t) / u + 4;
48
+ s = (r - t) / f + 4;
49
49
  break;
50
50
  }
51
51
  s /= 6;
52
52
  }
53
- return { h: s, s: i, l: h };
53
+ return { h: s, s: i, l: o };
54
54
  }
55
55
  function H(r, t, e) {
56
56
  return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? r + (t - r) * (6 * e) : e < 1 / 2 ? t : e < 2 / 3 ? r + (t - r) * (2 / 3 - e) * 6 : r;
57
57
  }
58
58
  function ce(r, t, e) {
59
59
  let a, n, s;
60
- if (r = l(r, 360), t = l(t, 100), e = l(e, 100), t === 0)
60
+ if (r = u(r, 360), t = u(t, 100), e = u(e, 100), t === 0)
61
61
  n = e, s = e, a = e;
62
62
  else {
63
- const i = e < 0.5 ? e * (1 + t) : e + t - e * t, h = 2 * e - i;
64
- a = H(h, i, r + 1 / 3), n = H(h, i, r), s = H(h, i, r - 1 / 3);
63
+ const i = e < 0.5 ? e * (1 + t) : e + t - e * t, o = 2 * e - i;
64
+ a = H(o, i, r + 1 / 3), n = H(o, i, r), s = H(o, i, r - 1 / 3);
65
65
  }
66
66
  return { r: a * 255, g: n * 255, b: s * 255 };
67
67
  }
68
68
  function R(r, t, e) {
69
- r = l(r, 255), t = l(t, 255), e = l(e, 255);
69
+ r = u(r, 255), t = u(t, 255), e = u(e, 255);
70
70
  const a = Math.max(r, t, e), n = Math.min(r, t, e);
71
71
  let s = 0;
72
- const i = a, h = a - n, u = a === 0 ? 0 : h / a;
72
+ const i = a, o = a - n, f = a === 0 ? 0 : o / a;
73
73
  if (a === n)
74
74
  s = 0;
75
75
  else {
76
76
  switch (a) {
77
77
  case r:
78
- s = (t - e) / h + (t < e ? 6 : 0);
78
+ s = (t - e) / o + (t < e ? 6 : 0);
79
79
  break;
80
80
  case t:
81
- s = (e - r) / h + 2;
81
+ s = (e - r) / o + 2;
82
82
  break;
83
83
  case e:
84
- s = (r - t) / h + 4;
84
+ s = (r - t) / o + 4;
85
85
  break;
86
86
  }
87
87
  s /= 6;
88
88
  }
89
- return { h: s, s: u, v: i };
89
+ return { h: s, s: f, v: i };
90
90
  }
91
91
  function de(r, t, e) {
92
- r = l(r, 360) * 6, t = l(t, 100), e = l(e, 100);
93
- const a = Math.floor(r), n = r - a, s = e * (1 - t), i = e * (1 - n * t), h = e * (1 - (1 - n) * t), u = a % 6, d = [e, i, s, s, h, e][u], m = [h, e, e, i, s, s][u], M = [s, s, h, e, e, i][u];
92
+ r = u(r, 360) * 6, t = u(t, 100), e = u(e, 100);
93
+ const a = Math.floor(r), n = r - a, s = e * (1 - t), i = e * (1 - n * t), o = e * (1 - (1 - n) * t), f = a % 6, d = [e, i, s, s, o, e][f], m = [o, e, e, i, s, s][f], M = [s, s, o, e, e, i][f];
94
94
  return { r: d * 255, g: m * 255, b: M * 255 };
95
95
  }
96
96
  function T(r, t, e, a) {
@@ -119,8 +119,8 @@ function Ae(r, t, e, a) {
119
119
  ].join("");
120
120
  }
121
121
  function me(r, t, e, a) {
122
- const n = r / 100, s = t / 100, i = e / 100, h = a / 100, u = 255 * (1 - n) * (1 - h), d = 255 * (1 - s) * (1 - h), m = 255 * (1 - i) * (1 - h);
123
- return { r: u, g: d, b: m };
122
+ const n = r / 100, s = t / 100, i = e / 100, o = a / 100, f = 255 * (1 - n) * (1 - o), d = 255 * (1 - s) * (1 - o), m = 255 * (1 - i) * (1 - o);
123
+ return { r: f, g: d, b: m };
124
124
  }
125
125
  function O(r, t, e) {
126
126
  let a = 1 - r / 255, n = 1 - t / 255, s = 1 - e / 255, i = Math.min(a, n, s);
@@ -298,17 +298,17 @@ const C = {
298
298
  yellowgreen: "#9acd32"
299
299
  };
300
300
  function ye(r) {
301
- let t = { r: 0, g: 0, b: 0 }, e = 1, a = null, n = null, s = null, i = !1, h = !1;
302
- return typeof r == "string" && (r = ve(r)), typeof r == "object" && (f(r.r) && f(r.g) && f(r.b) ? (t = ge(r.r, r.g, r.b), i = !0, h = String(r.r).slice(-1) === "%" ? "prgb" : "rgb") : f(r.h) && f(r.s) && f(r.v) ? (a = S(r.s), n = S(r.v), t = de(r.h, a, n), i = !0, h = "hsv") : f(r.h) && f(r.s) && f(r.l) ? (a = S(r.s), s = S(r.l), t = ce(r.h, a, s), i = !0, h = "hsl") : f(r.c) && f(r.m) && f(r.y) && f(r.k) && (t = me(r.c, r.m, r.y, r.k), i = !0, h = "cmyk"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = L(e), {
301
+ let t = { r: 0, g: 0, b: 0 }, e = 1, a = null, n = null, s = null, i = !1, o = !1;
302
+ return typeof r == "string" && (r = ve(r)), typeof r == "object" && (l(r.r) && l(r.g) && l(r.b) ? (t = ge(r.r, r.g, r.b), i = !0, o = String(r.r).slice(-1) === "%" ? "prgb" : "rgb") : l(r.h) && l(r.s) && l(r.v) ? (a = S(r.s), n = S(r.v), t = de(r.h, a, n), i = !0, o = "hsv") : l(r.h) && l(r.s) && l(r.l) ? (a = S(r.s), s = S(r.l), t = ce(r.h, a, s), i = !0, o = "hsl") : l(r.c) && l(r.m) && l(r.y) && l(r.k) && (t = me(r.c, r.m, r.y, r.k), i = !0, o = "cmyk"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = L(e), {
303
303
  ok: i,
304
- format: r.format || h,
304
+ format: r.format || o,
305
305
  r: Math.min(255, Math.max(t.r, 0)),
306
306
  g: Math.min(255, Math.max(t.g, 0)),
307
307
  b: Math.min(255, Math.max(t.b, 0)),
308
308
  a: e
309
309
  };
310
310
  }
311
- const ke = "[-\\+]?\\d+%?", $e = "[-\\+]?\\d*\\.\\d+%?", y = "(?:" + $e + ")|(?:" + ke + ")", E = "[\\s|\\(]+(" + y + ")[,|\\s]+(" + y + ")[,|\\s]+(" + y + ")\\s*\\)?", F = (
311
+ const we = "[-\\+]?\\d+%?", ke = "[-\\+]?\\d*\\.\\d+%?", y = "(?:" + ke + ")|(?:" + we + ")", E = "[\\s|\\(]+(" + y + ")[,|\\s]+(" + y + ")[,|\\s]+(" + y + ")\\s*\\)?", F = (
312
312
  // eslint-disable-next-line prettier/prettier
313
313
  "[\\s|\\(]+(" + y + ")[,|\\s]+(" + y + ")[,|\\s]+(" + y + ")[,|\\s]+(" + y + ")\\s*\\)?"
314
314
  ), c = {
@@ -363,13 +363,13 @@ function ve(r) {
363
363
  format: t ? "name" : "hex"
364
364
  } : !1))))))))));
365
365
  }
366
- function f(r) {
366
+ function l(r) {
367
367
  return typeof r == "number" ? !Number.isNaN(r) : c.CSS_UNIT.test(r);
368
368
  }
369
- var Me = Object.defineProperty, xe = (r, t, e) => t in r ? Me(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, p = (r, t, e) => xe(r, typeof t != "symbol" ? t + "" : t, e);
370
- class o {
369
+ var Me = Object.defineProperty, $e = (r, t, e) => t in r ? Me(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, p = (r, t, e) => $e(r, typeof t != "symbol" ? t + "" : t, e);
370
+ class h {
371
371
  constructor(t = "", e = {}) {
372
- if (p(this, "r"), p(this, "g"), p(this, "b"), p(this, "a"), p(this, "format"), p(this, "originalInput"), p(this, "isValid"), p(this, "gradientType"), p(this, "roundA"), t instanceof o)
372
+ if (p(this, "r"), p(this, "g"), p(this, "b"), p(this, "a"), p(this, "format"), p(this, "originalInput"), p(this, "isValid"), p(this, "gradientType"), p(this, "roundA"), t instanceof h)
373
373
  return t;
374
374
  typeof t == "number" && (t = pe(t)), this.originalInput = t;
375
375
  const a = ye(t);
@@ -397,8 +397,8 @@ class o {
397
397
  getLuminance() {
398
398
  const t = this.toRgb();
399
399
  let e, a, n;
400
- const s = t.r / 255, i = t.g / 255, h = t.b / 255;
401
- return s <= 0.03928 ? e = s / 12.92 : e = Math.pow((s + 0.055) / 1.055, 2.4), i <= 0.03928 ? a = i / 12.92 : a = Math.pow((i + 0.055) / 1.055, 2.4), h <= 0.03928 ? n = h / 12.92 : n = Math.pow((h + 0.055) / 1.055, 2.4), 0.2126 * e + 0.7152 * a + 0.0722 * n;
400
+ const s = t.r / 255, i = t.g / 255, o = t.b / 255;
401
+ return s <= 0.03928 ? e = s / 12.92 : e = Math.pow((s + 0.055) / 1.055, 2.4), i <= 0.03928 ? a = i / 12.92 : a = Math.pow((i + 0.055) / 1.055, 2.4), o <= 0.03928 ? n = o / 12.92 : n = Math.pow((o + 0.055) / 1.055, 2.4), 0.2126 * e + 0.7152 * a + 0.0722 * n;
402
402
  }
403
403
  /**
404
404
  * Returns the alpha value of a color, from 0-1.
@@ -528,7 +528,7 @@ class o {
528
528
  * Returns the object as a RGBA object.
529
529
  */
530
530
  toPercentageRgb() {
531
- const t = (e) => `${Math.round(l(e, 255) * 100)}%`;
531
+ const t = (e) => `${Math.round(u(e, 255) * 100)}%`;
532
532
  return {
533
533
  r: t(this.r),
534
534
  g: t(this.g),
@@ -540,7 +540,7 @@ class o {
540
540
  * Returns the RGBA relative values interpolated into a string
541
541
  */
542
542
  toPercentageRgbString() {
543
- const t = (e) => Math.round(l(e, 255) * 100);
543
+ const t = (e) => Math.round(u(e, 255) * 100);
544
544
  return this.a === 1 ? `rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)` : `rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`;
545
545
  }
546
546
  toCmyk() {
@@ -577,7 +577,7 @@ class o {
577
577
  return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
578
578
  }
579
579
  clone() {
580
- return new o(this.toString());
580
+ return new h(this.toString());
581
581
  }
582
582
  /**
583
583
  * Lighten the color a given amount. Providing 100 will always return white.
@@ -585,7 +585,7 @@ class o {
585
585
  */
586
586
  lighten(t = 10) {
587
587
  const e = this.toHsl();
588
- return e.l += t / 100, e.l = A(e.l), new o(e);
588
+ return e.l += t / 100, e.l = A(e.l), new h(e);
589
589
  }
590
590
  /**
591
591
  * Brighten the color a given amount, from 0 to 100.
@@ -602,7 +602,7 @@ class o {
602
602
  ), e.b = Math.max(
603
603
  0,
604
604
  Math.min(255, e.b - Math.round(255 * -(t / 100)))
605
- ), new o(e);
605
+ ), new h(e);
606
606
  }
607
607
  /**
608
608
  * Darken the color a given amount, from 0 to 100.
@@ -611,7 +611,7 @@ class o {
611
611
  */
612
612
  darken(t = 10) {
613
613
  const e = this.toHsl();
614
- return e.l -= t / 100, e.l = A(e.l), new o(e);
614
+ return e.l -= t / 100, e.l = A(e.l), new h(e);
615
615
  }
616
616
  /**
617
617
  * Mix the color with pure white, from 0 to 100.
@@ -636,7 +636,7 @@ class o {
636
636
  */
637
637
  desaturate(t = 10) {
638
638
  const e = this.toHsl();
639
- return e.s -= t / 100, e.s = A(e.s), new o(e);
639
+ return e.s -= t / 100, e.s = A(e.s), new h(e);
640
640
  }
641
641
  /**
642
642
  * Saturate the color a given amount, from 0 to 100.
@@ -644,7 +644,7 @@ class o {
644
644
  */
645
645
  saturate(t = 10) {
646
646
  const e = this.toHsl();
647
- return e.s += t / 100, e.s = A(e.s), new o(e);
647
+ return e.s += t / 100, e.s = A(e.s), new h(e);
648
648
  }
649
649
  /**
650
650
  * Completely desaturates a color into greyscale.
@@ -659,25 +659,25 @@ class o {
659
659
  */
660
660
  spin(t) {
661
661
  const e = this.toHsl(), a = (e.h + t) % 360;
662
- return e.h = a < 0 ? 360 + a : a, new o(e);
662
+ return e.h = a < 0 ? 360 + a : a, new h(e);
663
663
  }
664
664
  /**
665
665
  * Mix the current color a given amount with another color, from 0 to 100.
666
666
  * 0 means no mixing (return current color).
667
667
  */
668
668
  mix(t, e = 50) {
669
- const a = this.toRgb(), n = new o(t).toRgb(), s = e / 100, i = {
669
+ const a = this.toRgb(), n = new h(t).toRgb(), s = e / 100, i = {
670
670
  r: (n.r - a.r) * s + a.r,
671
671
  g: (n.g - a.g) * s + a.g,
672
672
  b: (n.b - a.b) * s + a.b,
673
673
  a: (n.a - a.a) * s + a.a
674
674
  };
675
- return new o(i);
675
+ return new h(i);
676
676
  }
677
677
  analogous(t = 6, e = 30) {
678
678
  const a = this.toHsl(), n = 360 / e, s = [this];
679
679
  for (a.h = (a.h - (n * t >> 1) + 720) % 360; --t; )
680
- a.h = (a.h + n) % 360, s.push(new o(a));
680
+ a.h = (a.h + n) % 360, s.push(new h(a));
681
681
  return s;
682
682
  }
683
683
  /**
@@ -685,30 +685,30 @@ class o {
685
685
  */
686
686
  complement() {
687
687
  const t = this.toHsl();
688
- return t.h = (t.h + 180) % 360, new o(t);
688
+ return t.h = (t.h + 180) % 360, new h(t);
689
689
  }
690
690
  monochromatic(t = 6) {
691
691
  const e = this.toHsv(), { h: a } = e, { s: n } = e;
692
692
  let { v: s } = e;
693
- const i = [], h = 1 / t;
693
+ const i = [], o = 1 / t;
694
694
  for (; t--; )
695
- i.push(new o({ h: a, s: n, v: s })), s = (s + h) % 1;
695
+ i.push(new h({ h: a, s: n, v: s })), s = (s + o) % 1;
696
696
  return i;
697
697
  }
698
698
  splitcomplement() {
699
699
  const t = this.toHsl(), { h: e } = t;
700
700
  return [
701
701
  this,
702
- new o({ h: (e + 72) % 360, s: t.s, l: t.l }),
703
- new o({ h: (e + 216) % 360, s: t.s, l: t.l })
702
+ new h({ h: (e + 72) % 360, s: t.s, l: t.l }),
703
+ new h({ h: (e + 216) % 360, s: t.s, l: t.l })
704
704
  ];
705
705
  }
706
706
  /**
707
707
  * Compute how the color would appear on a background
708
708
  */
709
709
  onBackground(t) {
710
- const e = this.toRgb(), a = new o(t).toRgb(), n = e.a + a.a * (1 - e.a);
711
- return new o({
710
+ const e = this.toRgb(), a = new h(t).toRgb(), n = e.a + a.a * (1 - e.a);
711
+ return new h({
712
712
  r: (e.r * e.a + a.r * a.a * (1 - e.a)) / n,
713
713
  g: (e.g * e.a + a.g * a.a * (1 - e.a)) / n,
714
714
  b: (e.b * e.a + a.b * a.a * (1 - e.a)) / n,
@@ -735,7 +735,7 @@ class o {
735
735
  const e = this.toHsl(), { h: a } = e, n = [this], s = 360 / t;
736
736
  for (let i = 1; i < t; i++)
737
737
  n.push(
738
- new o({ h: (a + i * s) % 360, s: e.s, l: e.l })
738
+ new h({ h: (a + i * s) % 360, s: e.s, l: e.l })
739
739
  );
740
740
  return n;
741
741
  }
@@ -743,11 +743,11 @@ class o {
743
743
  * compare color vs current color
744
744
  */
745
745
  equals(t) {
746
- const e = new o(t);
746
+ const e = new h(t);
747
747
  return this.format === "cmyk" || e.format === "cmyk" ? this.toCmykString() === e.toCmykString() : this.toRgbString() === e.toRgbString();
748
748
  }
749
749
  }
750
- const $ = 10, k = {
750
+ const k = 10, w = {
751
751
  name: { zh: "中性灰", en: "gray" },
752
752
  value: "#6B6C6D"
753
753
  }, G = {
@@ -806,96 +806,96 @@ const $ = 10, k = {
806
806
  ];
807
807
  var W, I;
808
808
  const ne = {
809
- key: ((W = k.name) == null ? void 0 : W.en) ?? ((I = k.name) == null ? void 0 : I.zh) ?? k.name,
810
- name: k.name,
811
- primary: k.value,
809
+ key: ((W = w.name) == null ? void 0 : W.en) ?? ((I = w.name) == null ? void 0 : I.zh) ?? w.name,
810
+ name: w.name,
811
+ primary: w.value,
812
812
  light: [
813
- "#F7F8F9",
814
- "#F2F3F4",
815
- "#E5E6E7",
816
- "#C9CACB",
817
- "#A9ABAC",
818
- "#868788",
819
- k.value,
820
- "#4D4E4F",
821
- "#28292A",
822
- "#1E1F20"
813
+ new h("#F7F8F9"),
814
+ new h("#F2F3F4"),
815
+ new h("#E5E6E7"),
816
+ new h("#C9CACB"),
817
+ new h("#A9ABAC"),
818
+ new h("#868788"),
819
+ new h(w.value),
820
+ new h("#4D4E4F"),
821
+ new h("#28292A"),
822
+ new h("#1E1F20")
823
823
  ],
824
824
  dark: [
825
- "#121213",
826
- "#1C1C1D",
827
- "#404142",
828
- "#5E5F60",
829
- "#797A7B",
830
- "#9C9E9F",
831
- "#BCBDBE",
832
- "#D8D9DB",
833
- "#E4E6E8",
834
- "#E8EBEE"
825
+ new h("#121213"),
826
+ new h("#1C1C1D"),
827
+ new h("#404142"),
828
+ new h("#5E5F60"),
829
+ new h("#797A7B"),
830
+ new h("#9C9E9F"),
831
+ new h("#BCBDBE"),
832
+ new h("#D8D9DB"),
833
+ new h("#E4E6E8"),
834
+ new h("#E8EBEE")
835
835
  ]
836
- }, we = z.map((r, t, e) => {
836
+ }, xe = z.map((r, t, e) => {
837
837
  const a = r.name, n = (a == null ? void 0 : a.en) ?? (a == null ? void 0 : a.zh) ?? a, s = r.value;
838
838
  return {
839
839
  key: n,
840
840
  name: a,
841
841
  primary: s,
842
- light: ie({ color: s, length: $ }),
843
- dark: he({ color: s, length: $ })
842
+ light: ie({ color: s, length: k }),
843
+ dark: he({ color: s, length: k })
844
844
  };
845
845
  }).concat([ne]);
846
- function B(r = {}) {
847
- const { length: t, color: e, level: a } = r, n = (t ?? $) / 2 + 1, s = a ?? n;
848
- let i = new o(e);
849
- const h = i.toHsv(), u = h.h, d = h.s, m = h.v, M = u === 0 && d === 0, D = s < n, x = Math.abs(n - s), oe = 1, N = 0.1;
846
+ function D(r = {}) {
847
+ const { length: t, color: e, level: a } = r, n = (t ?? k) / 2 + 1, s = a ?? n;
848
+ let i = new h(e);
849
+ const o = i.toHsv(), f = o.h, d = o.s, m = o.v, M = f === 0 && d === 0, B = s < n, $ = Math.abs(n - s), oe = 1, N = 0.1;
850
850
  let v = d;
851
- v > N && (D ? v = d - (d - N) / (n - 1) * x : v = d + (oe - d) / (n - 1) * x), M && (v = d);
852
- const le = M ? 0.97 : 1, j = 0.1;
853
- let w = m;
854
- return w > j && (D ? w = m + (le - m) / (n - 1) * x : w = m - (m - j) / (n - 1) * x), i = new o({
855
- h: u,
851
+ v > N && (B ? v = d - (d - N) / (n - 1) * $ : v = d + (oe - d) / (n - 1) * $), M && (v = d);
852
+ const ue = M ? 0.97 : 1, j = 0.1;
853
+ let x = m;
854
+ return x > j && (B ? x = m + (ue - m) / (n - 1) * $ : x = m - (m - j) / (n - 1) * $), i = new h({
855
+ h: f,
856
856
  s: v,
857
- v: w
858
- }), r.dark && (i = i.darken(r.amount ?? 10)), i.toHexString();
857
+ v: x
858
+ }), r.dark && (i = i.darken(r.amount ?? 10)), i;
859
859
  }
860
860
  function se(r = {}) {
861
- return B({ ...r, dark: !0 });
861
+ return D({ ...r, dark: !0 });
862
862
  }
863
863
  function ie(r = {}) {
864
864
  const { length: t } = r;
865
- return Array.from(new Array(t ?? $), (e, a) => {
865
+ return Array.from(new Array(t ?? k), (e, a) => {
866
866
  const n = a + 1;
867
- return B({ ...r, level: n });
867
+ return D({ ...r, level: n });
868
868
  });
869
869
  }
870
870
  function he(r = {}) {
871
871
  const { length: t } = r;
872
- return Array.from(new Array(t ?? $), (e, a) => {
872
+ return Array.from(new Array(t ?? k), (e, a) => {
873
873
  const n = a + 1;
874
874
  return se({
875
875
  ...r,
876
- level: $ - n + 1
876
+ level: k - n + 1
877
877
  });
878
878
  });
879
879
  }
880
880
  const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
881
881
  __proto__: null,
882
- LENGTH: $,
882
+ LENGTH: k,
883
883
  blue: _,
884
- colorPresets: we,
884
+ colorPresets: xe,
885
885
  colors: z,
886
886
  cyan: Z,
887
887
  default: z,
888
888
  generate: ie,
889
889
  generateDark: he,
890
890
  gold: K,
891
- gray: k,
891
+ gray: w,
892
892
  grayPresets: ne,
893
893
  green: Y,
894
894
  lime: X,
895
895
  magenta: ae,
896
896
  orange: J,
897
897
  orangered: U,
898
- palette: B,
898
+ palette: D,
899
899
  paletteDark: se,
900
900
  pinkpurple: re,
901
901
  pqbblue: ee,
@@ -914,13 +914,13 @@ export {
914
914
  be as W,
915
915
  pe as a,
916
916
  g as b,
917
- o as c,
917
+ h as c,
918
918
  V as d,
919
919
  C as e,
920
920
  P as j,
921
921
  ce as k,
922
922
  R as l,
923
- f as n,
923
+ l as n,
924
924
  Ae as p,
925
925
  ve as w,
926
926
  me as y
@@ -12,7 +12,7 @@ import W from "lodash/isFunction";
12
12
  import oe from "lodash/isPlainObject";
13
13
  import Y from "lodash/isString";
14
14
  import Je, { useRef as z, useState as le, useCallback as se, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
15
- import { a as Ye } from "./C9XYyypq.js";
15
+ import { a as Ye } from "./CQzKdjhX.js";
16
16
  import { u as ue } from "./CQ_WOOmf.js";
17
17
  import { u as Ze } from "./B4YRLi8r.js";
18
18
  import { u as et } from "./BFTV6myl.js";
@@ -26,7 +26,7 @@ import { b as at } from "./BJ9_azwQ.js";
26
26
  import me from "lodash/isEqualWith";
27
27
  import ee from "lodash/get";
28
28
  import { p as it } from "./Coz3rCng.js";
29
- import { C as Oe } from "./BxZ39GzB.js";
29
+ import { C as Oe } from "./DQrLGkIG.js";
30
30
  import { u as ct } from "./oopARUrq.js";
31
31
  import { on as Le, off as de } from "../utils/dom.js";
32
32
  import "./DAAff-FT.js";
@@ -0,0 +1,5 @@
1
+ const o = () => {
2
+ };
3
+ export {
4
+ o as N
5
+ };
@@ -6,7 +6,7 @@ import Ve from "lodash/isNumber";
6
6
  import te from "lodash/isPlainObject";
7
7
  import Kn from "lodash/throttle";
8
8
  import Ue, { useMemo as ae, useCallback as Xe, useState as ye, useRef as he, useContext as Qe, useEffect as mt, forwardRef as It, createElement as Je, createContext as On, useImperativeHandle as Dn } from "react";
9
- import { a as Ze } from "./C9XYyypq.js";
9
+ import { a as Ze } from "./CQzKdjhX.js";
10
10
  import { u as _n } from "./B2yFlXke.js";
11
11
  import { u as Xt } from "./BFTV6myl.js";
12
12
  import { u as vt } from "./a3hR6zLw.js";
@@ -24,8 +24,8 @@ import Yn from "../virtual-list/VirtualList.js";
24
24
  import qn from "@unicom-cloud/icons/IconUiMinus";
25
25
  import Xn from "@unicom-cloud/icons/IconUiPlus";
26
26
  import Ge from "lodash/isString";
27
- import { C as Pt } from "./BxZ39GzB.js";
28
- import { R as on } from "./EL5Jmjgr.js";
27
+ import { C as Pt } from "./DQrLGkIG.js";
28
+ import { R as on } from "./OPbfCome.js";
29
29
  import Qt from "lodash/get";
30
30
  import yt from "lodash/isFunction";
31
31
  import { u as Gn } from "./CQ_WOOmf.js";
@@ -6,7 +6,7 @@ import G from "lodash/isArray";
6
6
  import Ge from "lodash/isPlainObject";
7
7
  import Fn from "lodash/isUndefined";
8
8
  import _n, { useContext as ce, useMemo as un, forwardRef as Wn, useRef as Ve, useImperativeHandle as Bn, useState as ie, useEffect as Ke } from "react";
9
- import { a as Re } from "./C9XYyypq.js";
9
+ import { a as Re } from "./CQzKdjhX.js";
10
10
  import { u as zn } from "./BFTV6myl.js";
11
11
  import { u as Xt } from "./VSe_Wq1g.js";
12
12
  import { u as Zt } from "./a3hR6zLw.js";
@@ -2,7 +2,7 @@ import { jsx as u, jsxs as ee } from "react/jsx-runtime";
2
2
  import fe from "lodash/isFunction";
3
3
  import ke from "lodash/isPlainObject";
4
4
  import te, { useContext as ie, useRef as V, useState as we, useEffect as L, useMemo as ae, useCallback as at, useImperativeHandle as ct } from "react";
5
- import { a as Oe, I as me } from "./C9XYyypq.js";
5
+ import { a as Oe, I as me } from "./CQzKdjhX.js";
6
6
  import { u as st } from "./B4YRLi8r.js";
7
7
  import { u as lt } from "./BFTV6myl.js";
8
8
  import { u as dt } from "./DeV0v__J.js";
@@ -19,7 +19,7 @@ import { setTransformStyle as pt } from "../utils/style.js";
19
19
  import Ye from "@unicom-cloud/icons/IconUiDown";
20
20
  import je from "lodash/isNull";
21
21
  import bt from "../dropdown/index.js";
22
- import { M as Ae } from "./B8hkFIar.js";
22
+ import { M as Ae } from "./lf-xRLXx.js";
23
23
  import gt from "lodash/isEqualWith";
24
24
  import vt from "../utils/throttleByRaf.js";
25
25
  import Me from "@unicom-cloud/icons/IconUiLeft";
@@ -4,7 +4,7 @@ import W from "@unicom-cloud/icons/IconUiMinus";
4
4
  import E from "lodash/isFunction";
5
5
  import q from "lodash/isNil";
6
6
  import $, { createContext as B, useState as J, useContext as I, useCallback as F, useRef as K, useEffect as Q } from "react";
7
- import { a as M, I as X } from "./C9XYyypq.js";
7
+ import { a as M, I as X } from "./CQzKdjhX.js";
8
8
  import { u as Y } from "./BFTV6myl.js";
9
9
  import { u as S } from "./DeV0v__J.js";
10
10
  import { p as U } from "./CUFsOxJ2.js";
@@ -15,7 +15,7 @@ import Pt from "@unicom-cloud/icons/IconUiZoomIn";
15
15
  import Lt from "@unicom-cloud/icons/IconUiZoomOut";
16
16
  import zt from "lodash/isUndefined";
17
17
  import { useState as g, forwardRef as Nt, useContext as ke, useRef as x, useMemo as Ce, useImperativeHandle as Mt, useCallback as Tt, useEffect as v } from "react";
18
- import { a as At, b as Ot } from "./C9XYyypq.js";
18
+ import { a as At, b as Ot } from "./CQzKdjhX.js";
19
19
  import "lodash/isEqualWith";
20
20
  import { u as Et } from "./DeV0v__J.js";
21
21
  import "./DAAff-FT.js";
@@ -5,8 +5,8 @@ import Z from "@unicom-cloud/icons/IconUiFile";
5
5
  import ee from "@unicom-cloud/icons/IconUiLoading";
6
6
  import p from "lodash/isFunction";
7
7
  import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
8
- import { C as ae } from "./BxZ39GzB.js";
9
- import { a as B, I as re } from "./C9XYyypq.js";
8
+ import { C as ae } from "./DQrLGkIG.js";
9
+ import { a as B, I as re } from "./CQzKdjhX.js";
10
10
  import { p as O } from "./CUFsOxJ2.js";
11
11
  import oe from "../utils/throttleByRaf.js";
12
12
  import se from "lodash/isNumber";
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
2
2
  import _ from "lodash/isFunction";
3
3
  import L from "lodash/isNil";
4
4
  import Q, { createContext as S, useContext as G, useRef as T } from "react";
5
- import { a as j, I as q } from "./C9XYyypq.js";
5
+ import { a as j, I as q } from "./CQzKdjhX.js";
6
6
  import { u as A } from "./BFTV6myl.js";
7
7
  import { u as D } from "./DeV0v__J.js";
8
8
  import { p as F } from "./CUFsOxJ2.js";
@@ -3,7 +3,7 @@ import Ke from "@unicom-cloud/icons/IconUiMenuFold";
3
3
  import _e from "@unicom-cloud/icons/IconUiMenuUnfold";
4
4
  import Re from "lodash/isPlainObject";
5
5
  import F, { useContext as T, useState as fe, forwardRef as he, useEffect as te, useRef as ne, useMemo as Te } from "react";
6
- import { a as ge } from "./C9XYyypq.js";
6
+ import { a as ge } from "./CQzKdjhX.js";
7
7
  import { u as Ae } from "./CQ_WOOmf.js";
8
8
  import { u as oe } from "./B4YRLi8r.js";
9
9
  import { u as Ue } from "./XTEsYGuF.js";
@@ -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/C9XYyypq.js";
6
+ import "../chunk/CQzKdjhX.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../chunk/DeV0v__J.js";
9
9
  import "../chunk/CUFsOxJ2.js";
10
10
  import "../chunk/BKKEev13.js";
11
- import { a as x, C as d } from "../chunk/CWlklVfi.js";
11
+ import { a as x, C as d } from "../chunk/BGmWsXl0.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/C9XYyypq.js";
4
+ import "../chunk/CQzKdjhX.js";
5
5
  import "../chunk/XTEsYGuF.js";
6
6
  import "../chunk/CUFsOxJ2.js";
7
7
  import "../utils/dom.js";
8
- import { I as d } from "../chunk/CWlklVfi.js";
8
+ import { I as d } from "../chunk/BGmWsXl0.js";
9
9
  export {
10
10
  d as default
11
11
  };