@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
package/Checkbox.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { default as r } from "./checkbox/Checkbox.js";
2
- import { default as t } from "./checkbox/Group.js";
2
+ import { default as x, ClearCheckboxGroupContext as a } from "./checkbox/Group.js";
3
3
  import { default as u } from "./checkbox/GroupBlock.js";
4
- import { default as p } from "./checkbox/useCheckbox.js";
4
+ import { default as l } from "./checkbox/useCheckbox.js";
5
5
  export {
6
- t as CheckboxGroup,
6
+ x as CheckboxGroup,
7
7
  u as CheckboxGroupBlock,
8
+ a as ClearCheckboxGroupContext,
8
9
  r as default,
9
- p as useCheckbox
10
+ l as useCheckbox
10
11
  };
package/Layout.js CHANGED
@@ -4,16 +4,17 @@ import "react";
4
4
  import "./config-provider/ConfigProvider.js";
5
5
  import "./components/common/hooks/useMergeProps.js";
6
6
  import "@unicom-cloud/utils/class-name";
7
- import { default as i } from "./layout/Content.js";
8
- import { default as l } from "./layout/Footer.js";
7
+ import { default as u } from "./layout/Content.js";
8
+ import { default as x } from "./layout/Footer.js";
9
9
  import { default as s } from "./layout/Header.js";
10
- import { default as L } from "./layout/Sider.js";
10
+ import { default as L, SiderContext as n } from "./layout/Sider.js";
11
11
  import "./config-provider/context.js";
12
- import { default as C } from "./layout/index.js";
12
+ import { default as S } from "./layout/index.js";
13
13
  export {
14
- i as LayoutContent,
15
- l as LayoutFooter,
14
+ u as LayoutContent,
15
+ x as LayoutFooter,
16
16
  s as LayoutHeader,
17
17
  L as LayoutSider,
18
- C as default
18
+ n as SiderContext,
19
+ S as default
19
20
  };
package/Message.js CHANGED
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "./dist/react-transition-group/src/CSSTransition.js";
3
3
  import "./dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "./dist/react-transition-group/src/SwitchTransition.js";
5
- import "./dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import "./dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import "./dist/react-transition-group/src/TransitionGroup.js";
7
7
  import "lodash/isNumber";
8
8
  import "lodash/isUndefined";
package/Notification.js CHANGED
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "./dist/react-transition-group/src/CSSTransition.js";
3
3
  import "./dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "./dist/react-transition-group/src/SwitchTransition.js";
5
- import "./dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import "./dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import "./dist/react-transition-group/src/TransitionGroup.js";
7
7
  import "lodash/isNumber";
8
8
  import "lodash/isUndefined";
package/Switch.js CHANGED
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiLoading";
3
3
  import "./dist/react-transition-group/src/CSSTransition.js";
4
4
  import "./dist/react-transition-group/src/ReplaceTransition.js";
5
5
  import "./dist/react-transition-group/src/SwitchTransition.js";
6
- import "./dist/react-transition-group/chunk/CPfP7aNL.js";
6
+ import "./dist/react-transition-group/chunk/C6QwjD4L.js";
7
7
  import "./dist/react-transition-group/src/TransitionGroup.js";
8
8
  import "lodash/isArray";
9
9
  import "react";
package/Tooltip.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import "./dist/tinycolor/chunk/DGZSWe7E.js";
2
+ import "./dist/tinycolor/chunk/BOzCVdr0.js";
3
3
  import "./dist/tinycolor/src/index.js";
4
4
  import "lodash/isFunction";
5
5
  import "react";
package/Trigger.js CHANGED
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "./dist/react-transition-group/src/CSSTransition.js";
3
3
  import "./dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "./dist/react-transition-group/src/SwitchTransition.js";
5
- import "./dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import "./dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import "./dist/react-transition-group/src/TransitionGroup.js";
7
7
  import "lodash/isArray";
8
8
  import "lodash/isFunction";
package/back-top/index.js CHANGED
@@ -5,10 +5,10 @@ import { quartOut as B } from "../dist/tween/src/easing.js";
5
5
  import C, { forwardRef as E, useRef as N, useContext as R, useState as S, useEffect as q } from "react";
6
6
  import "../config-provider/ConfigProvider.js";
7
7
  import H from "../components/common/hooks/useKeyboardEvent.js";
8
- import P from "../components/common/hooks/useMergeProps.js";
9
- import { PqbCSSTransition as $ } from "../components/common/utils/PqbCSSTransition.js";
10
- import D from "@unicom-cloud/utils/class-name";
11
- import { on as I, off as K } from "../components/common/utils/dom.js";
8
+ import I from "../components/common/hooks/useMergeProps.js";
9
+ import { PqbCSSTransition as P } from "../components/common/utils/PqbCSSTransition.js";
10
+ import $ from "@unicom-cloud/utils/class-name";
11
+ import { on as D, off as K } from "../components/common/utils/dom.js";
12
12
  import { pickDataAttributes as O } from "../components/common/utils/pick.js";
13
13
  import { throttleByRaf as U } from "../components/common/utils/throttleByRaf.js";
14
14
  import j from "../config-provider/context.js";
@@ -20,7 +20,7 @@ function A(T, m) {
20
20
  easing: B,
21
21
  duration: 400,
22
22
  target: () => window
23
- }, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t = P(
23
+ }, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t = I(
24
24
  T,
25
25
  g,
26
26
  l == null ? void 0 : l.BackTop
@@ -31,7 +31,7 @@ function A(T, m) {
31
31
  const r = t.visibleHeight, n = f(e).scrollTop;
32
32
  v(n >= r);
33
33
  });
34
- return I(e, "scroll", o), o(), () => {
34
+ return D(e, "scroll", o), o(), () => {
35
35
  var r;
36
36
  (r = o.cancel) == null || r.call(o), K(e, "scroll", o);
37
37
  };
@@ -54,7 +54,7 @@ function A(T, m) {
54
54
  {
55
55
  ...O(t),
56
56
  ref: m,
57
- className: D(
57
+ className: $(
58
58
  `${a}`,
59
59
  { [`${a}-rtl`]: b },
60
60
  t.className
@@ -65,7 +65,7 @@ function A(T, m) {
65
65
  onPressEnter: u
66
66
  }),
67
67
  children: /* @__PURE__ */ i(
68
- $,
68
+ P,
69
69
  {
70
70
  in: h,
71
71
  timeout: 100,
package/badge/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as s } from "react/jsx-runtime";
2
2
  import R from "lodash/isPlainObject";
3
- import { forwardRef as q, useContext as G } from "react";
3
+ import { forwardRef as G, useContext as _ } from "react";
4
4
  import "../config-provider/ConfigProvider.js";
5
- import _ from "../components/common/hooks/useMergeProps.js";
6
- import { PqbCSSTransition as k } from "../components/common/utils/PqbCSSTransition.js";
5
+ import k from "../components/common/hooks/useMergeProps.js";
6
+ import { PqbCSSTransition as q } from "../components/common/utils/PqbCSSTransition.js";
7
7
  import a from "@unicom-cloud/utils/class-name";
8
8
  import y from "./Count.js";
9
9
  import z from "../config-provider/context.js";
@@ -15,7 +15,7 @@ const N = [
15
15
  "lime",
16
16
  "green",
17
17
  "cyan",
18
- "pqbblue",
18
+ "primary",
19
19
  "purple",
20
20
  "magenta",
21
21
  "gray"
@@ -23,9 +23,9 @@ const N = [
23
23
  count: 0,
24
24
  maxCount: 99
25
25
  };
26
- function L(b, h) {
27
- const { getPrefixCls: c, componentConfig: i, rtl: S } = G(z), O = _(
28
- b,
26
+ function L(h, S) {
27
+ const { getPrefixCls: c, componentConfig: i, rtl: b } = _(z), O = k(
28
+ h,
29
29
  I,
30
30
  i == null ? void 0 : i.Badge
31
31
  ), {
@@ -83,7 +83,7 @@ function L(b, h) {
83
83
  ),
84
84
  !!m && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: m })
85
85
  ] }) : (d || e) && typeof o == "number" && o > 0 ? /* @__PURE__ */ s(
86
- k,
86
+ q,
87
87
  {
88
88
  classNames: "badge-zoom",
89
89
  in: d || !!e,
@@ -124,11 +124,11 @@ function L(b, h) {
124
124
  {
125
125
  [`${t}-status`]: l,
126
126
  [`${t}-no-children`]: !f,
127
- [`${t}-rtl`]: S
127
+ [`${t}-rtl`]: b
128
128
  },
129
129
  B
130
130
  ),
131
- ref: h,
131
+ ref: S,
132
132
  style: P,
133
133
  ...j,
134
134
  children: [
@@ -138,7 +138,7 @@ function L(b, h) {
138
138
  }
139
139
  );
140
140
  }
141
- const C = q(L);
141
+ const C = G(L);
142
142
  C.displayName = "Badge";
143
143
  C.Count = y;
144
144
  const W = N, X = ["default", "processing", "success", "warning", "error"];
@@ -2,7 +2,7 @@ import { jsx as d, Fragment as I, jsxs as K } from "react/jsx-runtime";
2
2
  import "../../dist/react-transition-group/src/CSSTransition.js";
3
3
  import "../../dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "../../dist/react-transition-group/src/SwitchTransition.js";
5
- import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import "../../dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import z from "../../dist/react-transition-group/src/TransitionGroup.js";
7
7
  import H from "lodash/isEqualWith";
8
8
  import S from "lodash/isFunction";
@@ -1,10 +1,11 @@
1
- import { jsxs as c, Fragment as s, jsx as b } from "react/jsx-runtime";
2
- import h from "../../checkbox/Checkbox.js";
1
+ import { jsxs as c, Fragment as s, jsx as r } from "react/jsx-runtime";
2
+ import b from "../../checkbox/Checkbox.js";
3
+ import "../../checkbox/Group.js";
3
4
  const C = (i) => {
4
- const { prefixCls: d, multiple: o, option: e, renderOption: l, selected: a, icons: n } = i, t = e.disabled || o && e.disableCheckbox;
5
+ const { prefixCls: d, multiple: n, option: e, renderOption: l, selected: a, icons: o } = i, t = e.disabled || n && e.disableCheckbox;
5
6
  return /* @__PURE__ */ c(s, { children: [
6
- o ? /* @__PURE__ */ b(
7
- h,
7
+ n ? /* @__PURE__ */ r(
8
+ b,
8
9
  {
9
10
  disabled: t,
10
11
  checked: e._checked,
@@ -22,7 +23,7 @@ const C = (i) => {
22
23
  onDoubleClick: t ? void 0 : i.onDoubleClickOption,
23
24
  children: [
24
25
  l ? l() : e.label,
25
- e.isLeaf ? a && n.checked : e.loading ? n.loading : n.next
26
+ e.isLeaf ? a && o.checked : e.loading ? o.loading : o.next
26
27
  ]
27
28
  }
28
29
  )
@@ -1,4 +1,4 @@
1
- import { jsx as h, jsxs as N, Fragment as w } from "react/jsx-runtime";
1
+ import { jsx as m, jsxs as N, Fragment as w } from "react/jsx-runtime";
2
2
  import B from "../../dist/scroll-into-view-if-needed/src/index.js";
3
3
  import D from "lodash/isEqualWith";
4
4
  import O from "lodash/isFunction";
@@ -6,6 +6,7 @@ import L from "lodash/isString";
6
6
  import { useState as P, useRef as E, useEffect as F } from "react";
7
7
  import { getMultipleCheckValue as K } from "../util.js";
8
8
  import q from "../../checkbox/Checkbox.js";
9
+ import "../../checkbox/Group.js";
9
10
  import T from "../../components/common/hooks/useIsFirstRender.js";
10
11
  import M from "../../components/common/hooks/useUpdateEffect.js";
11
12
  import S from "@unicom-cloud/utils/class-name";
@@ -19,29 +20,29 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
19
20
  if (L(r)) {
20
21
  const o = r.toUpperCase().indexOf(t.toUpperCase());
21
22
  if (o > -1) {
22
- const m = r.substring(0, o + 1), g = r.substring(o + t.length);
23
+ const h = r.substring(0, o + 1), g = r.substring(o + t.length);
23
24
  b = /* @__PURE__ */ N(w, { children: [
24
- m,
25
- /* @__PURE__ */ h("span", { className: `${s}-highlight`, children: r.substring(o, t.length + 1) }),
25
+ h,
26
+ /* @__PURE__ */ m("span", { className: `${s}-highlight`, children: r.substring(o, t.length + 1) }),
26
27
  g
27
28
  ] });
28
29
  }
29
30
  }
30
31
  return b;
31
- }, ge = (t) => {
32
+ }, ke = (t) => {
32
33
  const {
33
34
  store: r,
34
35
  prefixCls: s,
35
36
  multiple: b,
36
37
  onChange: o,
37
- inputValue: m,
38
+ inputValue: h,
38
39
  renderEmpty: g,
39
40
  style: U,
40
41
  defaultActiveFirstOption: $,
41
42
  rtl: V,
42
43
  icons: _
43
44
  } = t, x = t.value || [], [c, j] = P(
44
- r.searchNodeByLabel(m) || []
45
+ r.searchNodeByLabel(h) || []
45
46
  ), k = E(), v = E(), I = T(), [p, y] = P(
46
47
  $ ? 0 : -1
47
48
  ), C = (e, n, d) => {
@@ -58,8 +59,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
58
59
  o == null || o([e.pathValue]);
59
60
  };
60
61
  return M(() => {
61
- j(r.searchNodeByLabel(m));
62
- }, [m, r]), M(() => {
62
+ j(r.searchNodeByLabel(h));
63
+ }, [h, r]), M(() => {
63
64
  y((e) => e > c.length - 1 ? $ ? 0 : -1 : e);
64
65
  }, [c]), F(() => {
65
66
  const e = t.getTriggerElement();
@@ -106,7 +107,7 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
106
107
  scrollMode: "if-needed",
107
108
  boundary: (n = e.parentNode) == null ? void 0 : n.parentNode
108
109
  });
109
- }, [p, c]), k.current = null, c.length ? /* @__PURE__ */ h("div", { className: `${s}-list-wrapper`, children: /* @__PURE__ */ h(
110
+ }, [p, c]), k.current = null, c.length ? /* @__PURE__ */ m("div", { className: `${s}-list-wrapper`, children: /* @__PURE__ */ m(
110
111
  X,
111
112
  {
112
113
  needFiller: !1,
@@ -128,8 +129,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
128
129
  const d = e.getPathNodes(), u = d.map((l, R, ee) => /* @__PURE__ */ N("span", { children: [
129
130
  l.label,
130
131
  d.length === R + 1 ? "" : " / "
131
- ] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(m, e._data, f) : Z(m, u, s);
132
- return /* @__PURE__ */ h(
132
+ ] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(h, e._data, f) : Z(h, u, s);
133
+ return /* @__PURE__ */ m(
133
134
  "li",
134
135
  {
135
136
  title: L(i) ? i : L(u) ? u : void 0,
@@ -152,18 +153,18 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
152
153
  onMouseLeave: () => {
153
154
  !v.current && !e.disabled && y($ ? 0 : -1);
154
155
  },
155
- children: /* @__PURE__ */ h("div", { className: `${s}-list-item-label`, children: O(t.renderOption) ? i : b ? /* @__PURE__ */ h(q, { checked: a, disabled: e.disabled, children: i }) : /* @__PURE__ */ N(w, { children: [
156
+ children: /* @__PURE__ */ m("div", { className: `${s}-list-item-label`, children: O(t.renderOption) ? i : b ? /* @__PURE__ */ m(q, { checked: a, disabled: e.disabled, children: i }) : /* @__PURE__ */ N(w, { children: [
156
157
  i,
157
- a && /* @__PURE__ */ h("span", { className: `${s}-check-icon`, children: _.checked })
158
+ a && /* @__PURE__ */ m("span", { className: `${s}-check-icon`, children: _.checked })
158
159
  ] }) })
159
160
  },
160
161
  n
161
162
  );
162
163
  }
163
164
  }
164
- ) }) : /* @__PURE__ */ h(w, { children: g == null ? void 0 : g() });
165
+ ) }) : /* @__PURE__ */ m(w, { children: g == null ? void 0 : g() });
165
166
  };
166
167
  export {
167
- ge as default,
168
+ ke as default,
168
169
  H as getLegalIndex
169
170
  };
package/checkbox/index.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import e from "./Checkbox.js";
2
- import { default as a } from "./Group.js";
3
- import { default as p } from "./GroupBlock.js";
4
- import { default as u } from "./useCheckbox.js";
2
+ import { default as x, ClearCheckboxGroupContext as a } from "./Group.js";
3
+ import { default as f } from "./GroupBlock.js";
4
+ import { default as C } from "./useCheckbox.js";
5
5
  export {
6
- a as CheckboxGroup,
7
- p as CheckboxGroupBlock,
6
+ x as CheckboxGroup,
7
+ f as CheckboxGroupBlock,
8
+ a as ClearCheckboxGroupContext,
8
9
  e as default,
9
- u as useCheckbox
10
+ C as useCheckbox
10
11
  };
package/collapse/Item.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
2
  import "../dist/react-transition-group/src/CSSTransition.js";
3
3
  import "../dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "../dist/react-transition-group/src/SwitchTransition.js";
5
- import { T } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import { T } from "../dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import "../dist/react-transition-group/src/TransitionGroup.js";
7
7
  import j, { useContext as E, useRef as H } from "react";
8
8
  import "../config-provider/ConfigProvider.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as v, jsx as c } from "react/jsx-runtime";
2
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
2
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
3
  import { TinyColor as u } from "../dist/tinycolor/src/index.js";
4
4
  import { useContext as I, useState as j, useEffect as D } from "react";
5
5
  import "../config-provider/ConfigProvider.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
2
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
3
  import { TinyColor as f } from "../dist/tinycolor/src/index.js";
4
4
  import { useContext as x } from "react";
5
5
  import "../config-provider/ConfigProvider.js";
@@ -1,9 +1,10 @@
1
- const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, s = (r) => i(r) === ColorPickerMode.Single, c = (r) => i(r) === ColorPickerMode.Gradient, t = (r) => Array.isArray(i(r)), n = (r) => t(r) ? ColorPickerMode.Gradient : r, M = (r, e, o) => r && Array.isArray(r) ? ColorPickerMode.Gradient : r && typeof r == "string" ? ColorPickerMode.Single : e && Array.isArray(e) ? ColorPickerMode.Gradient : e && typeof e == "string" ? ColorPickerMode.Single : n(o);
1
+ import { ColorPickerMode as t } from "./interface.js";
2
+ const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, g = (r) => i(r) === t.Single, A = (r) => i(r) === t.Gradient, o = (r) => Array.isArray(i(r)), s = (r) => o(r) ? t.Gradient : r, c = (r, n, e) => r && Array.isArray(r) ? t.Gradient : r && typeof r == "string" ? t.Single : n && Array.isArray(n) ? t.Gradient : n && typeof n == "string" ? t.Single : s(e);
2
3
  export {
3
- n as getInitialActiveMode,
4
+ s as getInitialActiveMode,
4
5
  i as getMode,
5
- M as getModeByValue,
6
- c as isGradientMode,
7
- t as isMultiMode,
8
- s as isSingleMode
6
+ c as getModeByValue,
7
+ A as isGradientMode,
8
+ o as isMultiMode,
9
+ g as isSingleMode
9
10
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
2
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
3
  import { TinyColor as d } from "../dist/tinycolor/src/index.js";
4
4
  import { useContext as h, useMemo as C } from "react";
5
5
  import "../config-provider/ConfigProvider.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
2
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
3
  import { TinyColor as m } from "../dist/tinycolor/src/index.js";
4
4
  import { useContext as ar, useState as lr, useMemo as sr } from "react";
5
5
  import "../config-provider/ConfigProvider.js";
@@ -1,4 +1,4 @@
1
- import { a as e } from "../dist/tinycolor/chunk/DGZSWe7E.js";
1
+ import { a as e } from "../dist/tinycolor/chunk/BOzCVdr0.js";
2
2
  import { TinyColor as l } from "../dist/tinycolor/src/index.js";
3
3
  new l("#eee");
4
4
  const i = [
@@ -1,4 +1,4 @@
1
- import "../../dist/tinycolor/chunk/DGZSWe7E.js";
1
+ import "../../dist/tinycolor/chunk/BOzCVdr0.js";
2
2
  import { TinyColor as F } from "../../dist/tinycolor/src/index.js";
3
3
  import { useState as v, useRef as q, useMemo as M, useCallback as E, useEffect as y } from "react";
4
4
  import w from "../../components/common/hooks/useIsFirstRender.js";
@@ -1,4 +1,4 @@
1
- import "../dist/tinycolor/chunk/DGZSWe7E.js";
1
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
2
2
  import { TinyColor as s } from "../dist/tinycolor/src/index.js";
3
3
  const G = (t) => t.sort((r, n) => r.percent - n.percent), H = (t, r, n) => Object.keys(t).reduce(
4
4
  (e, o) => ({
@@ -1,17 +1,37 @@
1
- import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
- import N from "@unicom-cloud/icons/IconUiEmpty";
1
+ import { jsxs as N, jsx as t } from "react/jsx-runtime";
2
+ import $ from "@unicom-cloud/icons/IconUiEmpty";
3
3
  import { UI_COMMON_PREFIX as y } from "@unicom-cloud/utils/constant/ui";
4
- import { memo as x, forwardRef as $ } from "react";
5
- import g from "@unicom-cloud/utils/class-name";
6
- function h(i, t) {
7
- const { style: o, className: a, description: m, icon: c, imgSrc: r, prefixCls: p, ...n } = i, e = p ?? `${y}-empty`, l = g(e, a), d = typeof m == "string" ? m : "empty";
8
- return /* @__PURE__ */ s("div", { ref: t, className: l, style: o, ...n, children: /* @__PURE__ */ f("div", { className: `${e}-wrapper`, children: [
9
- /* @__PURE__ */ s("div", { className: `${e}-image`, children: r ? /* @__PURE__ */ s("img", { alt: d, src: r }) : c || /* @__PURE__ */ s(N, {}) }),
10
- /* @__PURE__ */ s("div", { className: `${e}-description`, children: m || "无数据" })
11
- ] }) });
4
+ import { memo as g, forwardRef as x } from "react";
5
+ import { SpaceVertical as u } from "../space/index.js";
6
+ import s from "@unicom-cloud/utils/class-name";
7
+ function C(c, n) {
8
+ const { style: a, className: p, description: m, icon: o, imgSrc: r, prefixCls: l, ...f } = c, e = `${y}-empty`, i = l ?? e, d = typeof m == "string" ? m : "empty";
9
+ return /* @__PURE__ */ N(
10
+ u,
11
+ {
12
+ ref: n,
13
+ className: s(e, i, p),
14
+ style: a,
15
+ justifyContent: "center",
16
+ alignItems: "center",
17
+ gap: 5,
18
+ ...f,
19
+ children: [
20
+ r ? /* @__PURE__ */ t(
21
+ "img",
22
+ {
23
+ className: s(`${e}-img`, `${i}-img`),
24
+ alt: d,
25
+ src: r
26
+ }
27
+ ) : o ? /* @__PURE__ */ t("div", { className: s(`${e}-icon`, `${i}-icon`), children: o }) : /* @__PURE__ */ t($, { className: s(`${e}-icon`, `${i}-icon`) }),
28
+ /* @__PURE__ */ t("div", { className: s(`${e}-description`, `${i}-description`), children: m || "无数据" })
29
+ ]
30
+ }
31
+ );
12
32
  }
13
- const v = x($(h));
14
- v.displayName = "Empty";
33
+ const E = g(x(C));
34
+ E.displayName = "Empty";
15
35
  export {
16
- v as default
36
+ E as default
17
37
  };
@@ -3,7 +3,7 @@ import { UI_COMMON_PREFIX as C } from "@unicom-cloud/utils/constant/ui";
3
3
  import { forwardRef as c } from "react";
4
4
  import "@unicom-cloud/utils/case-name";
5
5
  import _ from "@unicom-cloud/utils/class-name";
6
- import "../../../dist/tinycolor/chunk/DGZSWe7E.js";
6
+ import "../../../dist/tinycolor/chunk/BOzCVdr0.js";
7
7
  import "@unicom-cloud/utils/clipboard-copy";
8
8
  import "../utils/dayjs.js";
9
9
  import "../utils/dom.js";
@@ -34,16 +34,17 @@ import "lodash/isPlainObject";
34
34
  import "../../../dist/react-transition-group/src/CSSTransition.js";
35
35
  import "../../../dist/react-transition-group/src/ReplaceTransition.js";
36
36
  import "../../../dist/react-transition-group/src/SwitchTransition.js";
37
- import "../../../dist/react-transition-group/chunk/CPfP7aNL.js";
37
+ import "../../../dist/react-transition-group/chunk/C6QwjD4L.js";
38
38
  import "../../../dist/react-transition-group/src/TransitionGroup.js";
39
39
  import "../utils/reactDOM.js";
40
40
  import "@unicom-cloud/utils/file/saveAs";
41
41
  import "@unicom-cloud/utils/screenfull";
42
42
  import "@unicom-cloud/utils/tree";
43
- import { isArray as l, isNumber as I } from "@unicom-cloud/utils/is";
43
+ import "lodash/isFunction";
44
44
  import "uuid";
45
45
  import "../../../dist/validate/src/index.js";
46
46
  import "@unicom-cloud/utils/constant/keyboardCode";
47
+ import { isArray as l, isNumber as I } from "@unicom-cloud/utils/is";
47
48
  function f(t = 8) {
48
49
  if (I(t))
49
50
  return t;
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
2
2
  import u from "../../../dist/react-transition-group/src/CSSTransition.js";
3
3
  import "../../../dist/react-transition-group/src/ReplaceTransition.js";
4
4
  import "../../../dist/react-transition-group/src/SwitchTransition.js";
5
- import "../../../dist/react-transition-group/chunk/CPfP7aNL.js";
5
+ import "../../../dist/react-transition-group/chunk/C6QwjD4L.js";
6
6
  import "../../../dist/react-transition-group/src/TransitionGroup.js";
7
7
  import { useRef as f, useMemo as l, isValidElement as a, cloneElement as s } from "react";
8
8
  import { supportRef as E } from "./is.js";
@@ -1,30 +1,30 @@
1
- import { a as e } from "../../../dist/tinycolor/chunk/DGZSWe7E.js";
2
- import { TinyColor as c } from "../../../dist/tinycolor/src/index.js";
3
- import { UI_PC_PREFIX as u } from "@unicom-cloud/utils/constant/ui";
4
- import { CSS_VARIABLE_ELEMENT as y } from "./constant.js";
5
- function g(m) {
1
+ import { a as o } from "../../../dist/tinycolor/chunk/BOzCVdr0.js";
2
+ import { TinyColor as y } from "../../../dist/tinycolor/src/index.js";
3
+ import { UI_PC_PREFIX as c } from "@unicom-cloud/utils/constant/ui";
4
+ import { CSS_VARIABLE_ELEMENT as E } from "./constant.js";
5
+ function v(l) {
6
6
  const {
7
- color: o,
8
- element: t = y,
7
+ color: e,
8
+ element: a = E,
9
9
  isDark: f = !1,
10
- prefix: a = u
11
- } = m ?? {}, l = {
12
- color: o
13
- }, n = f ? e.generateDark(l) : e.generate(l);
14
- new c(o).equals(e.pqbblue.value) ? s() : n.forEach((i, r, p) => {
15
- t.style.setProperty(
16
- `--${a}-pqbblue-${r + 1}`,
17
- i.toRgbArrayString()
10
+ prefix: t = c
11
+ } = l ?? {}, i = {
12
+ color: e
13
+ }, m = f ? o.generateDark(i) : o.generate(i);
14
+ new y(e).equals(o.primary.value) ? n() : m.forEach((s, r, p) => {
15
+ a.style.setProperty(
16
+ `--${t}-primary-${r + 1}`,
17
+ s.toRgbArrayString()
18
18
  );
19
19
  });
20
- function s() {
21
- n.forEach((i, r, p) => {
22
- t.style.removeProperty(`--${a}-pqbblue-${r + 1}`);
20
+ function n() {
21
+ m.forEach((s, r, p) => {
22
+ a.style.removeProperty(`--${t}-primary-${r + 1}`);
23
23
  });
24
24
  }
25
- return s;
25
+ return n;
26
26
  }
27
27
  export {
28
- g as default,
29
- g as setPrimaryColor
28
+ v as default,
29
+ v as setPrimaryColor
30
30
  };