@unicom-cloud/ui 0.8.93 → 0.8.95

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 (272) hide show
  1. package/Checkbox.js +5 -4
  2. package/Layout.js +8 -7
  3. package/Message.js +1 -1
  4. package/Notification.js +1 -1
  5. package/Switch.js +1 -1
  6. package/Tooltip.js +1 -1
  7. package/Trigger.js +1 -1
  8. package/back-top/index.js +8 -8
  9. package/badge/index.js +11 -11
  10. package/cascader/panel/List.js +1 -1
  11. package/cascader/panel/Option.js +7 -6
  12. package/cascader/panel/Search.js +17 -16
  13. package/checkbox/index.js +7 -6
  14. package/collapse/Item.js +1 -1
  15. package/color-picker/InputHex.js +1 -1
  16. package/color-picker/InputRgb.js +1 -1
  17. package/color-picker/Mode.js +7 -6
  18. package/color-picker/Palette.js +1 -1
  19. package/color-picker/Panel.js +1 -1
  20. package/color-picker/colors.js +1 -1
  21. package/color-picker/hooks/useColorPicker.js +1 -1
  22. package/color-picker/utils.js +1 -1
  23. package/components/common/empty/index.js +33 -13
  24. package/components/common/space/index.js +4 -3
  25. package/components/common/utils/PqbCSSTransition.js +1 -1
  26. package/components/common/utils/setPrimaryColor.js +21 -21
  27. package/components/common/utils/setTheme.js +23 -23
  28. package/dist/react-transition-group/src/CSSTransition.js +1 -1
  29. package/dist/react-transition-group/src/SwitchTransition.js +1 -1
  30. package/dist/tinycolor/chunk/{DGZSWe7E.js → BOzCVdr0.js} +43 -43
  31. package/dist/tinycolor/customize/index.js +1 -1
  32. package/dist/tween/src/tween.js +25 -24
  33. package/index.js +173 -173
  34. package/input-tag/InputTag.js +1 -1
  35. package/layout/index.js +11 -9
  36. package/message/index.js +1 -1
  37. package/notification/index.js +1 -1
  38. package/package.json +1 -1
  39. package/pagination/PageItem.js +52 -53
  40. package/pagination/Pagination.js +2 -1
  41. package/pagination/interface.js +4 -1
  42. package/select/Option.js +12 -11
  43. package/select/Select.js +1 -0
  44. package/statistic/index.js +16 -16
  45. package/style.css +1 -1
  46. package/switch/index.js +1 -1
  47. package/table/Table.js +153 -153
  48. package/table/tbody/Tr.js +3 -2
  49. package/table/thead/Column.js +3 -2
  50. package/table/thead/index.js +3 -2
  51. package/tag/index.js +24 -24
  52. package/time-picker/util.js +4 -4
  53. package/tooltip/index.js +1 -1
  54. package/transfer/Item.js +17 -16
  55. package/transfer/List.js +12 -11
  56. package/tree/Node.js +43 -41
  57. package/tree/Tree.js +215 -211
  58. package/trigger/index.js +1 -1
  59. package/types/pc/affix/index.d.ts +1 -1
  60. package/types/pc/alert/index.d.ts +1 -1
  61. package/types/pc/anchor/Anchor.d.ts +1 -1
  62. package/types/pc/anchor/Link.d.ts +1 -1
  63. package/types/pc/anchor/context.d.ts +1 -1
  64. package/types/pc/auto-complete/index.d.ts +1 -1
  65. package/types/pc/avatar/Avatar.d.ts +1 -1
  66. package/types/pc/avatar/Group.d.ts +1 -1
  67. package/types/pc/avatar/context.d.ts +1 -1
  68. package/types/pc/back-top/index.d.ts +1 -1
  69. package/types/pc/badge/index.d.ts +2 -2
  70. package/types/pc/badge/interface.d.ts +1 -1
  71. package/types/pc/breadcrumb/Item.d.ts +1 -1
  72. package/types/pc/breadcrumb/index.d.ts +1 -1
  73. package/types/pc/button/Group.d.ts +1 -1
  74. package/types/pc/button/index.d.ts +1 -1
  75. package/types/pc/calendar/Month.d.ts +1 -1
  76. package/types/pc/calendar/Year.d.ts +1 -1
  77. package/types/pc/calendar/index.d.ts +1 -1
  78. package/types/pc/card/Grid.d.ts +1 -1
  79. package/types/pc/card/Meta.d.ts +1 -1
  80. package/types/pc/card/index.d.ts +1 -1
  81. package/types/pc/carousel/Arrow.d.ts +1 -1
  82. package/types/pc/carousel/Indicator.d.ts +1 -1
  83. package/types/pc/carousel/index.d.ts +2 -2
  84. package/types/pc/cascader/Cascader.d.ts +1 -1
  85. package/types/pc/cascader/util.d.ts +1 -1
  86. package/types/pc/checkbox/Checkbox.d.ts +1 -1
  87. package/types/pc/checkbox/Group.d.ts +1 -1
  88. package/types/pc/checkbox/GroupBlock.d.ts +1 -1
  89. package/types/pc/checkbox/index.d.ts +1 -1
  90. package/types/pc/collapse/Collapse.d.ts +1 -1
  91. package/types/pc/collapse/Item.d.ts +1 -1
  92. package/types/pc/color-picker/InputHex.d.ts +1 -1
  93. package/types/pc/color-picker/InputRgb.d.ts +1 -1
  94. package/types/pc/color-picker/Mode.d.ts +1 -1
  95. package/types/pc/color-picker/Palette.d.ts +1 -1
  96. package/types/pc/color-picker/index.d.ts +1 -1
  97. package/types/pc/color-picker/utils.d.ts +1 -1
  98. package/types/pc/comment/index.d.ts +1 -1
  99. package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
  100. package/types/pc/config-provider/context.d.ts +1 -1
  101. package/types/pc/config-provider/interface.d.ts +1 -1
  102. package/types/pc/copy/index.d.ts +1 -1
  103. package/types/pc/date-picker/Picker.d.ts +1 -2
  104. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  105. package/types/pc/date-picker/index.d.ts +1 -1
  106. package/types/pc/descriptions/index.d.ts +1 -1
  107. package/types/pc/details/index.d.ts +1 -1
  108. package/types/pc/divider/index.d.ts +1 -1
  109. package/types/pc/draggable/Item.d.ts +1 -1
  110. package/types/pc/draggable/index.d.ts +1 -1
  111. package/types/pc/drawer/Drawer.d.ts +2 -2
  112. package/types/pc/dropdown/Button.d.ts +1 -1
  113. package/types/pc/dropdown/index.d.ts +1 -1
  114. package/types/pc/empty/index.d.ts +1 -1
  115. package/types/pc/form/Control.d.ts +1 -1
  116. package/types/pc/form/Form.d.ts +1 -1
  117. package/types/pc/form/FormLabel.d.ts +1 -1
  118. package/types/pc/form/FormList.d.ts +1 -1
  119. package/types/pc/form/FormProvider.d.ts +1 -1
  120. package/types/pc/form/context.d.ts +1 -1
  121. package/types/pc/form/hook/useForm.d.ts +1 -1
  122. package/types/pc/form/index.d.ts +1 -1
  123. package/types/pc/form/interface.d.ts +2 -2
  124. package/types/pc/form/store.d.ts +3 -4
  125. package/types/pc/form/util.d.ts +3 -3
  126. package/types/pc/grid/Col.d.ts +1 -1
  127. package/types/pc/grid/Grid.d.ts +1 -1
  128. package/types/pc/grid/GridItem.d.ts +1 -1
  129. package/types/pc/grid/Row.d.ts +1 -1
  130. package/types/pc/grid/context.d.ts +1 -1
  131. package/types/pc/grid/util.d.ts +1 -1
  132. package/types/pc/hooks/use-watermark/index.d.ts +1 -1
  133. package/types/pc/icons/file/index.d.ts +1 -1
  134. package/types/pc/image/Image.d.ts +1 -1
  135. package/types/pc/image/ImageFooter.d.ts +1 -1
  136. package/types/pc/image/ImagePreview.d.ts +1 -1
  137. package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
  138. package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
  139. package/types/pc/image/index.d.ts +1 -1
  140. package/types/pc/image/previewGroupContext.d.ts +1 -1
  141. package/types/pc/input/Button.d.ts +1 -1
  142. package/types/pc/input/Group.d.ts +1 -1
  143. package/types/pc/input/Input.d.ts +1 -1
  144. package/types/pc/input/InputElement.d.ts +1 -1
  145. package/types/pc/input/Password.d.ts +1 -1
  146. package/types/pc/input/Search.d.ts +1 -1
  147. package/types/pc/input/Textarea.d.ts +1 -1
  148. package/types/pc/input/index.d.ts +1 -1
  149. package/types/pc/input/useComposition.d.ts +1 -1
  150. package/types/pc/input-number/index.d.ts +1 -1
  151. package/types/pc/input-tag/InputTag.d.ts +2 -2
  152. package/types/pc/input-tag/interface.d.ts +2 -2
  153. package/types/pc/layout/Content.d.ts +1 -1
  154. package/types/pc/layout/Footer.d.ts +1 -1
  155. package/types/pc/layout/Header.d.ts +1 -1
  156. package/types/pc/layout/Sider.d.ts +1 -1
  157. package/types/pc/layout/index.d.ts +2 -2
  158. package/types/pc/link/index.d.ts +1 -1
  159. package/types/pc/list/Item.d.ts +1 -1
  160. package/types/pc/list/Meta.d.ts +1 -1
  161. package/types/pc/list/index.d.ts +2 -2
  162. package/types/pc/mentions/index.d.ts +1 -1
  163. package/types/pc/mentions/util.d.ts +1 -1
  164. package/types/pc/menu/Item.d.ts +1 -1
  165. package/types/pc/menu/ItemGroup.d.ts +1 -1
  166. package/types/pc/menu/Menu.d.ts +1 -1
  167. package/types/pc/menu/OverflowWrap.d.ts +1 -1
  168. package/types/pc/menu/context.d.ts +2 -2
  169. package/types/pc/menu/index.d.ts +1 -1
  170. package/types/pc/menu/interface.d.ts +1 -1
  171. package/types/pc/message/index.d.ts +2 -2
  172. package/types/pc/message/useMessage.d.ts +1 -1
  173. package/types/pc/modal/Modal.d.ts +2 -2
  174. package/types/pc/modal/config.d.ts +1 -1
  175. package/types/pc/notification/index.d.ts +2 -2
  176. package/types/pc/notification/useNotification.d.ts +1 -1
  177. package/types/pc/page-header/index.d.ts +2 -2
  178. package/types/pc/pagination/PageItem.d.ts +2 -47
  179. package/types/pc/pagination/Pagination.d.ts +1 -1
  180. package/types/pc/pagination/interface.d.ts +47 -0
  181. package/types/pc/popconfirm/index.d.ts +1 -1
  182. package/types/pc/popover/index.d.ts +1 -1
  183. package/types/pc/popover/interface.d.ts +1 -1
  184. package/types/pc/progress/CircleProgress.d.ts +1 -1
  185. package/types/pc/progress/index.d.ts +1 -1
  186. package/types/pc/radio/Group.d.ts +1 -1
  187. package/types/pc/radio/GroupBlock.d.ts +1 -1
  188. package/types/pc/radio/Radio.d.ts +1 -1
  189. package/types/pc/radio/index.d.ts +1 -1
  190. package/types/pc/rate/index.d.ts +1 -1
  191. package/types/pc/resize-box/Split.d.ts +1 -1
  192. package/types/pc/resize-box/SplitGroup.d.ts +1 -1
  193. package/types/pc/resize-box/index.d.ts +1 -1
  194. package/types/pc/result/index.d.ts +1 -1
  195. package/types/pc/select/OptGroup.d.ts +1 -1
  196. package/types/pc/select/Option.d.ts +1 -1
  197. package/types/pc/select/Select.d.ts +3 -2
  198. package/types/pc/select/index.d.ts +1 -1
  199. package/types/pc/select/util.d.ts +1 -1
  200. package/types/pc/select-view/Core.d.ts +1 -1
  201. package/types/pc/select-view/index.d.ts +1 -1
  202. package/types/pc/skeleton/Image.d.ts +1 -1
  203. package/types/pc/skeleton/Text.d.ts +1 -1
  204. package/types/pc/skeleton/index.d.ts +1 -1
  205. package/types/pc/slider/Button.d.ts +1 -1
  206. package/types/pc/slider/hook/useInterval.d.ts +1 -1
  207. package/types/pc/slider/index.d.ts +1 -1
  208. package/types/pc/space/index.d.ts +1 -1
  209. package/types/pc/space-/index.d.ts +1 -1
  210. package/types/pc/spin/index.d.ts +1 -1
  211. package/types/pc/statistic/Countdown.d.ts +1 -1
  212. package/types/pc/statistic/index.d.ts +2 -2
  213. package/types/pc/steps/Step.d.ts +1 -1
  214. package/types/pc/steps/index.d.ts +1 -1
  215. package/types/pc/switch/index.d.ts +2 -2
  216. package/types/pc/table/ColGroup.d.ts +1 -1
  217. package/types/pc/table/Table.d.ts +1 -1
  218. package/types/pc/table/constant.d.ts +1 -1
  219. package/types/pc/table/interface.d.ts +1 -1
  220. package/types/pc/table/util.d.ts +1 -1
  221. package/types/pc/tabs/Tab.d.ts +1 -1
  222. package/types/pc/tabs/TabPane.d.ts +1 -1
  223. package/types/pc/tabs/index.d.ts +1 -1
  224. package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
  225. package/types/pc/tabs/tab-header/index.d.ts +1 -1
  226. package/types/pc/tag/index.d.ts +1 -1
  227. package/types/pc/time-picker/Picker.d.ts +1 -1
  228. package/types/pc/time-picker/RangePicker.d.ts +1 -1
  229. package/types/pc/time-picker/TimePicker.d.ts +1 -1
  230. package/types/pc/time-picker/index.d.ts +1 -1
  231. package/types/pc/timeline/Item.d.ts +1 -1
  232. package/types/pc/timeline/Timeline.d.ts +1 -1
  233. package/types/pc/timeline/index.d.ts +1 -1
  234. package/types/pc/tooltip/index.d.ts +2 -2
  235. package/types/pc/transfer/Item.d.ts +1 -1
  236. package/types/pc/transfer/List.d.ts +1 -1
  237. package/types/pc/transfer/index.d.ts +1 -1
  238. package/types/pc/tree/Animation.d.ts +1 -1
  239. package/types/pc/tree/Context.d.ts +1 -1
  240. package/types/pc/tree/Node.d.ts +1 -1
  241. package/types/pc/tree/Tree.d.ts +1 -1
  242. package/types/pc/tree/index.d.ts +2 -2
  243. package/types/pc/tree/interface.d.ts +19 -3
  244. package/types/pc/tree/util.d.ts +1 -1
  245. package/types/pc/tree-select/List.d.ts +1 -1
  246. package/types/pc/trigger/getPopupStyle.d.ts +1 -1
  247. package/types/pc/trigger/index.d.ts +2 -2
  248. package/types/pc/typography/EditContent.d.ts +1 -1
  249. package/types/pc/typography/Ellipsis.d.ts +1 -1
  250. package/types/pc/typography/Operations.d.ts +1 -1
  251. package/types/pc/typography/Paragraph.d.ts +1 -1
  252. package/types/pc/typography/Title.d.ts +1 -1
  253. package/types/pc/typography/Typography.d.ts +1 -1
  254. package/types/pc/typography/useCssEllipsis.d.ts +1 -1
  255. package/types/pc/typography/useEllipsis.d.ts +1 -1
  256. package/types/pc/upload/TriggerNode.d.ts +1 -1
  257. package/types/pc/upload/Upload.d.ts +2 -2
  258. package/types/pc/upload/Uploader.d.ts +1 -1
  259. package/types/pc/upload/request.d.ts +1 -1
  260. package/types/pc/upload/util.d.ts +1 -1
  261. package/types/pc/verification-code/VerificationCode.d.ts +1 -1
  262. package/types/pc/verification-code/index.d.ts +1 -1
  263. package/types/pc/watermark/Watermark.d.ts +1 -1
  264. package/types/pc/watermark/index.d.ts +2 -2
  265. package/typography/Ellipsis.js +7 -5
  266. package/upload/list/index.js +1 -1
  267. package/utils/color.js +1 -1
  268. package/utils/index.js +2 -2
  269. package/utils/reactTransitionGroup.js +1 -1
  270. package/utils/tinycolor.js +1 -1
  271. package/version/index.js +1 -1
  272. /package/dist/react-transition-group/chunk/{CPfP7aNL.js → C6QwjD4L.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import { UI_PC_PREFIX as f } from "@unicom-cloud/utils/constant/ui.js";
2
2
  import p from "lodash/isPlainObject";
3
3
  import { CSS_VARIABLE_ELEMENT as $ } from "./constant.js";
4
- import "../../../dist/tinycolor/chunk/DGZSWe7E.js";
5
- import { TinyColor as a } from "../../../dist/tinycolor/src/index.js";
6
- function P(l) {
7
- if (!p(l)) return;
8
- const { prefix: e = f, ...n } = l, s = {
4
+ import "../../../dist/tinycolor/chunk/BOzCVdr0.js";
5
+ import { TinyColor as n } from "../../../dist/tinycolor/src/index.js";
6
+ function b(s) {
7
+ if (!p(s)) return;
8
+ const { prefix: e = f, ...i } = s, c = {
9
9
  primary: {
10
- default: `--${e}-pqbblue-6`,
11
- hover: `--${e}-pqbblue-5`,
12
- active: `--${e}-pqbblue-7`
10
+ default: `--${e}-primary-6`,
11
+ hover: `--${e}-primary-5`,
12
+ active: `--${e}-primary-7`
13
13
  },
14
14
  success: {
15
15
  default: `--${e}-green-6`,
@@ -17,9 +17,9 @@ function P(l) {
17
17
  active: `--${e}-green-7`
18
18
  },
19
19
  info: {
20
- default: `--${e}-pqbblue-6`,
21
- hover: `--${e}-pqbblue-5`,
22
- active: `--${e}-pqbblue-7`
20
+ default: `--${e}-primary-6`,
21
+ hover: `--${e}-primary-5`,
22
+ active: `--${e}-primary-7`
23
23
  },
24
24
  // warning: {
25
25
  // default: `--${prefix}-orangered-6`,
@@ -37,19 +37,19 @@ function P(l) {
37
37
  active: `--${e}-red-7`
38
38
  }
39
39
  };
40
- Object.entries(s).forEach(([o, r], u, y) => {
41
- s[`${o}Color`] = r;
42
- const c = n[o];
43
- if (!c) return;
44
- const i = new a(c), t = $;
45
- t.style.setProperty(r.default, i.toRgbArrayString());
46
- const g = n[`${o}Hover`];
47
- g ? t.style.setProperty(r.hover, new a(g).toRgbArrayString()) : t.style.setProperty(r.hover, i.lighten(10).toRgbArrayString());
48
- const b = n[`${o}Active`];
49
- b ? t.style.setProperty(r.active, new a(b).toRgbArrayString()) : t.style.setProperty(r.active, i.lighten(-10).toRgbArrayString());
40
+ Object.entries(c).forEach(([o, r], m, h) => {
41
+ c[`${o}Color`] = r;
42
+ const l = i[o];
43
+ if (!l) return;
44
+ const a = new n(l), t = $;
45
+ t.style.setProperty(r.default, a.toRgbArrayString());
46
+ const y = i[`${o}Hover`];
47
+ y ? t.style.setProperty(r.hover, new n(y).toRgbArrayString()) : t.style.setProperty(r.hover, a.lighten(10).toRgbArrayString());
48
+ const g = i[`${o}Active`];
49
+ g ? t.style.setProperty(r.active, new n(g).toRgbArrayString()) : t.style.setProperty(r.active, a.lighten(-10).toRgbArrayString());
50
50
  });
51
51
  }
52
52
  export {
53
- P as default,
54
- P as setTheme
53
+ b as default,
54
+ b as setTheme
55
55
  };
@@ -3,7 +3,7 @@ import E from "../../dom-helpers/addClass.js";
3
3
  import { P as a } from "../chunk/F6QOOr2H.js";
4
4
  import u from "../../dom-helpers/removeClass.js";
5
5
  import x from "react";
6
- import { f as C, T as h, c as g } from "../chunk/CPfP7aNL.js";
6
+ import { f as C, T as h, c as g } from "../chunk/C6QwjD4L.js";
7
7
  var f = Object.defineProperty, v = (i, s, e) => s in i ? f(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, r = (i, s, e) => v(i, typeof s != "symbol" ? s + "" : s, e);
8
8
  const N = (i, s) => i && s && s.split(" ").forEach((e) => E(i, e)), p = (i, s) => i && s && s.split(" ").forEach((e) => u(i, e));
9
9
  class l extends x.Component {
@@ -1,7 +1,7 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { P as c } from "../chunk/F6QOOr2H.js";
3
3
  import r from "react";
4
- import { a as o, b as h, E as u } from "../chunk/CPfP7aNL.js";
4
+ import { a as o, b as h, E as u } from "../chunk/C6QwjD4L.js";
5
5
  import g from "./TransitionGroupContext.js";
6
6
  var S = Object.defineProperty, b = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, d = (t, e, n) => b(t, typeof e != "symbol" ? e + "" : e, n);
7
7
  function x(t, e) {
@@ -2,13 +2,13 @@ import { TinyColor as e } from "../src/index.js";
2
2
  const o = 10, k = {
3
3
  name: { zh: "浪漫红", en: "red" },
4
4
  value: "#F53F3F"
5
- }, b = {
5
+ }, f = {
6
6
  name: { zh: "晚秋红", en: "orangered" },
7
7
  value: "#FF702E"
8
- }, f = {
8
+ }, C = {
9
9
  name: { zh: "活力橙", en: "orange" },
10
10
  value: "#FFA500"
11
- }, C = {
11
+ }, b = {
12
12
  name: { zh: "黄昏", en: "gold" },
13
13
  value: "#FFBD14"
14
14
  }, _ = {
@@ -17,25 +17,25 @@ const o = 10, k = {
17
17
  }, j = {
18
18
  name: { zh: "新生绿", en: "lime" },
19
19
  value: "#A1E619"
20
- }, q = {
20
+ }, P = {
21
21
  name: { zh: "仙野绿", en: "green" },
22
22
  value: "#00B82B"
23
- }, P = {
23
+ }, T = {
24
24
  name: { zh: "碧涛青", en: "cyan" },
25
25
  value: "#0BD0D0"
26
- }, T = {
26
+ }, H = {
27
27
  name: { zh: "海蔚蓝", en: "blue" },
28
28
  value: "#2E8FFF"
29
- }, H = {
30
- name: { zh: "极致蓝", en: "pqbblue" },
31
- value: "#1A5EFF"
32
29
  }, L = {
30
+ name: { zh: "主题色(极致蓝)", en: "primary" },
31
+ value: "#1A5EFF"
32
+ }, M = {
33
33
  name: { zh: "暗夜紫", en: "purple" },
34
34
  value: "#7126D9"
35
- }, M = {
35
+ }, O = {
36
36
  name: { zh: "青春紫", en: "pinkpurple" },
37
37
  value: "#D91AD9"
38
- }, O = {
38
+ }, S = {
39
39
  name: { zh: "品红", en: "magenta" },
40
40
  value: "#FF299F"
41
41
  }, t = {
@@ -43,21 +43,21 @@ const o = 10, k = {
43
43
  value: "#6B6C6D"
44
44
  }, i = [
45
45
  k,
46
- b,
47
46
  f,
48
47
  C,
48
+ b,
49
49
  _,
50
50
  j,
51
- q,
52
51
  P,
53
52
  T,
54
53
  H,
55
54
  L,
56
55
  M,
57
- O
56
+ O,
57
+ S
58
58
  ];
59
59
  var A, B;
60
- const S = {
60
+ const q = {
61
61
  key: ((A = t.name) == null ? void 0 : A.en) ?? ((B = t.name) == null ? void 0 : B.zh) ?? t.name,
62
62
  name: t.name,
63
63
  primary: t.value,
@@ -94,17 +94,17 @@ const S = {
94
94
  light: G({ color: u, length: o }),
95
95
  dark: N({ color: u, length: o })
96
96
  };
97
- }).concat([S]);
97
+ }).concat([q]);
98
98
  function p(n = {}) {
99
99
  const { length: s, color: F, level: r } = n, a = (s ?? o) / 2 + 1, u = r ?? a;
100
100
  let m = new e(F);
101
- const g = m.toHsv(), E = g.h, l = g.s, c = g.v, d = E === 0 && l === 0, y = u < a, h = Math.abs(a - u), I = 1, z = 0.1;
101
+ const g = m.toHsv(), y = g.h, l = g.s, c = g.v, E = y === 0 && l === 0, d = u < a, h = Math.abs(a - u), I = 1, z = 0.1;
102
102
  let v = l;
103
- v > z && (y ? v = l - (l - z) / (a - 1) * h : v = l + (I - l) / (a - 1) * h), d && (v = l);
104
- const J = d ? 0.97 : 1, D = 0.1;
103
+ v > z && (d ? v = l - (l - z) / (a - 1) * h : v = l + (I - l) / (a - 1) * h), E && (v = l);
104
+ const J = E ? 0.97 : 1, D = 0.1;
105
105
  let w = c;
106
- return w > D && (y ? w = c + (J - c) / (a - 1) * h : w = c - (c - D) / (a - 1) * h), m = new e({
107
- h: E,
106
+ return w > D && (d ? w = c + (J - c) / (a - 1) * h : w = c - (c - D) / (a - 1) * h), m = new e({
107
+ h: y,
108
108
  s: v,
109
109
  v: w
110
110
  }), n.dark && (m = m.darken(n.amount ?? 10)), m;
@@ -132,51 +132,51 @@ function N(n = {}) {
132
132
  const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
133
133
  __proto__: null,
134
134
  LENGTH: o,
135
- blue: T,
135
+ blue: H,
136
136
  colorPresets: K,
137
137
  colors: i,
138
- cyan: P,
138
+ cyan: T,
139
139
  default: i,
140
140
  generate: G,
141
141
  generateDark: N,
142
- gold: C,
142
+ gold: b,
143
143
  gray: t,
144
- grayPresets: S,
145
- green: q,
144
+ grayPresets: q,
145
+ green: P,
146
146
  lime: j,
147
- magenta: O,
148
- orange: f,
149
- orangered: b,
147
+ magenta: S,
148
+ orange: C,
149
+ orangered: f,
150
150
  palette: p,
151
151
  paletteDark: x,
152
- pinkpurple: M,
153
- pqbblue: H,
154
- purple: L,
152
+ pinkpurple: O,
153
+ primary: L,
154
+ purple: M,
155
155
  red: k,
156
156
  yellow: _
157
157
  }, Symbol.toStringTag, { value: "Module" }));
158
158
  export {
159
159
  o as L,
160
160
  Q as a,
161
- T as b,
161
+ H as b,
162
162
  i as c,
163
163
  K as d,
164
- P as e,
164
+ T as e,
165
165
  N as f,
166
166
  G as g,
167
- C as h,
167
+ b as h,
168
168
  t as i,
169
- S as j,
170
- q as k,
169
+ q as j,
170
+ P as k,
171
171
  j as l,
172
- O as m,
173
- b as n,
174
- f as o,
172
+ S as m,
173
+ f as n,
174
+ C as o,
175
175
  p,
176
176
  x as q,
177
- M as r,
178
- H as s,
179
- L as t,
177
+ O as r,
178
+ L as s,
179
+ M as t,
180
180
  k as u,
181
181
  _ as y
182
182
  };
@@ -1,4 +1,4 @@
1
- import { c as f, a as h } from "../chunk/DGZSWe7E.js";
1
+ import { c as f, a as h } from "../chunk/BOzCVdr0.js";
2
2
  function p(c = [34797, 15747172]) {
3
3
  return (a = 1) => {
4
4
  const o = c, r = Math.log(256) / Math.log(2), l = o[0] >>> r * 2 & 255, s = o[0] >>> r * 1 & 255, g = o[0] >>> r * 0 & 255, t = o[1] >>> r * 2 & 255, e = o[1] >>> r * 1 & 255, n = o[1] >>> r * 0 & 255, u = t - (t - l) * a, i = e - (e - s) * a, m = n - (n - g) * a;
@@ -1,7 +1,8 @@
1
- import { isFunction as l, isString as m } from "@unicom-cloud/utils/is";
1
+ import l from "lodash/isFunction";
2
+ import m from "lodash/isString";
2
3
  import a from "./easing.js";
3
- import { bounceIn as y, bounceInOut as g, bounceOut as F, cubicIn as b, cubicInOut as k, cubicOut as T, linear as w, quadIn as S, quadInOut as v, quadOut as x, quartIn as A, quartInOut as D, quartOut as U, quintIn as j, quintInOut as z, quintOut as B, sineIn as C, sineInOut as E, sineOut as G } from "./easing.js";
4
- class I {
4
+ import { bounceIn as g, bounceInOut as F, bounceOut as b, cubicIn as k, cubicInOut as T, cubicOut as w, linear as S, quadIn as v, quadInOut as x, quadOut as A, quartIn as D, quartInOut as U, quartOut as j, quintIn as z, quintInOut as B, quintOut as C, sineIn as E, sineInOut as G, sineOut as H } from "./easing.js";
5
+ class O {
5
6
  constructor(s) {
6
7
  const {
7
8
  from: i,
@@ -45,26 +46,26 @@ class I {
45
46
  }
46
47
  }
47
48
  export {
48
- I as Tween,
49
- y as bounceIn,
50
- g as bounceInOut,
51
- F as bounceOut,
52
- b as cubicIn,
53
- k as cubicInOut,
54
- T as cubicOut,
55
- I as default,
49
+ O as Tween,
50
+ g as bounceIn,
51
+ F as bounceInOut,
52
+ b as bounceOut,
53
+ k as cubicIn,
54
+ T as cubicInOut,
55
+ w as cubicOut,
56
+ O as default,
56
57
  a as easing,
57
- w as linear,
58
- S as quadIn,
59
- v as quadInOut,
60
- x as quadOut,
61
- A as quartIn,
62
- D as quartInOut,
63
- U as quartOut,
64
- j as quintIn,
65
- z as quintInOut,
66
- B as quintOut,
67
- C as sineIn,
68
- E as sineInOut,
69
- G as sineOut
58
+ S as linear,
59
+ v as quadIn,
60
+ x as quadInOut,
61
+ A as quadOut,
62
+ D as quartIn,
63
+ U as quartInOut,
64
+ j as quartOut,
65
+ z as quintIn,
66
+ B as quintInOut,
67
+ C as quintOut,
68
+ E as sineIn,
69
+ G as sineInOut,
70
+ H as sineOut
70
71
  };