@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,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { RadioGroupContextProps, RadioGroupProps } from './interface';
2
+ import { RadioGroupContextProps, RadioGroupProps } from './interface';
3
3
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextProps>;
4
4
  export declare const ClearRadioGroupContext: ({ children }: PropsWithChildren<{}>) => import("react/jsx-dev-runtime").JSX.Element;
5
5
  declare function Group(baseProps: PropsWithChildren<RadioGroupProps>): import("react/jsx-dev-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { RadioGroupContextProps, RadioGroupProps } from './interface';
1
+ import { RadioGroupContextProps, RadioGroupProps } from './interface';
2
2
  declare function RadioGroupBlock(baseProps: any): import("react/jsx-dev-runtime").JSX.Element;
3
3
  declare namespace RadioGroupBlock {
4
4
  var displayName: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import RadioGroup, { RadioGroupContext } from './Group';
3
3
  import RadioGroupBlock from './GroupBlock';
4
- import type { RadioProps } from './interface';
4
+ import { RadioProps } from './interface';
5
5
  declare function Radio(baseProps: RadioProps): import("react/jsx-dev-runtime").JSX.Element;
6
6
  declare namespace Radio {
7
7
  var __PQB_RADIO: boolean;
@@ -1,6 +1,6 @@
1
1
  import Radio from './Radio';
2
2
  export { ClearRadioGroupContext } from './Group';
3
3
  export type { RadioGroupProps } from './Group';
4
- export type { RadioProps } from './Radio';
5
4
  export * from './Radio';
5
+ export type { RadioProps } from './Radio';
6
6
  export default Radio;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { RateProps } from './interface';
2
+ import { RateProps } from './interface';
3
3
  declare const RateComponent: React.ForwardRefExoticComponent<RateProps & React.RefAttributes<unknown>>;
4
4
  export default RateComponent;
5
5
  export type { RateProps };
@@ -1,4 +1,4 @@
1
- import type { SplitProps } from './interface';
1
+ import { SplitProps } from './interface';
2
2
  declare const SplitComponent: import("react").ForwardRefExoticComponent<SplitProps & import("react").RefAttributes<unknown>>;
3
3
  export default SplitComponent;
4
4
  export type { SplitProps };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { SplitGroupProps } from './interface';
2
+ import { SplitGroupProps } from './interface';
3
3
  declare const SplitGroupComponent: React.ForwardRefExoticComponent<SplitGroupProps & React.RefAttributes<unknown>>;
4
4
  export default SplitGroupComponent;
@@ -1,6 +1,6 @@
1
1
  import Split from './Split';
2
2
  import SplitGroup from './SplitGroup';
3
- import type { ResizeBoxProps } from './interface';
3
+ import { ResizeBoxProps } from './interface';
4
4
  export type DirectionType = 'left' | 'right' | 'top' | 'bottom';
5
5
  declare const ForwardRefResizeBox: import("react").ForwardRefExoticComponent<ResizeBoxProps & {
6
6
  children?: import("react").ReactNode | undefined;
@@ -1,4 +1,4 @@
1
- import type { ResultProps } from './interface';
1
+ import { ResultProps } from './interface';
2
2
  declare const ResultRef: import("react").ForwardRefExoticComponent<ResultProps & {
3
3
  children?: import("react").ReactNode | undefined;
4
4
  } & import("react").RefAttributes<unknown>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { OptGroupProps } from './interface';
2
+ import { OptGroupProps } from './interface';
3
3
  declare const ForwardRefOptGroup: React.ForwardRefExoticComponent<OptGroupProps & React.RefAttributes<unknown>>;
4
4
  declare const OptGroupComponent: typeof ForwardRefOptGroup & {
5
5
  __PQB_SELECT_OPTGROUP__?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { OptionProps } from './interface';
2
+ import { OptionProps } from './interface';
3
3
  declare const ForwordRefOption: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<unknown>>;
4
4
  declare const OptionComponent: typeof ForwordRefOption & {
5
5
  __PQB_SELECT_OPTION__?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SelectHandle, SelectProps } from './interface';
2
+ import { SelectHandle, SelectProps } from './interface';
3
3
  import OptGroup from './OptGroup';
4
4
  import Option from './Option';
5
5
  declare const ForwardRefSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectHandle>>;
@@ -7,5 +7,6 @@ declare const SelectComponent: typeof ForwardRefSelect & {
7
7
  Option: typeof Option;
8
8
  OptGroup: typeof OptGroup;
9
9
  };
10
- export { SelectHandle, Option as SelectOption, OptGroup as SelectOptionGroup };
10
+ export { Option as SelectOption, OptGroup as SelectOptionGroup };
11
11
  export default SelectComponent;
12
+ export type { SelectHandle };
@@ -1,4 +1,4 @@
1
1
  import Select from './Select';
2
+ export type { OptGroupProps, OptionProps, SelectProps } from './interface';
2
3
  export * from './Select';
3
4
  export default Select;
4
- export type { OptGroupProps, OptionProps, SelectProps } from './interface';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { OptionInfo, OptionProps, SelectInnerStateValue, SelectProps } from './interface';
2
+ import { OptionInfo, OptionProps, SelectInnerStateValue, SelectProps } from './interface';
3
3
  export type OptionInfoMap = Map<OptionProps['value'], OptionInfo>;
4
4
  declare function preventDefaultEvent(e: any): void;
5
5
  declare function isEmpty(value: any, isMultiple: boolean): boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SelectViewProps } from './interface';
2
+ import { SelectViewProps } from './interface';
3
3
  export type SelectViewHandle = {
4
4
  dom: HTMLDivElement;
5
5
  getRootDOMNode: () => HTMLDivElement;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SelectViewProps } from './interface';
2
+ import { SelectViewProps } from './interface';
3
3
  export type { SelectViewCommonProps, SelectViewProps } from './interface';
4
4
  export type SelectViewHandle = {
5
5
  dom: HTMLDivElement;
@@ -1,3 +1,3 @@
1
- import type { SkeletonImageProps } from './interface';
1
+ import { SkeletonImageProps } from './interface';
2
2
  declare function image(props: SkeletonImageProps): import("react/jsx-dev-runtime").JSX.Element;
3
3
  export default image;
@@ -1,3 +1,3 @@
1
- import type { SkeletonTextProps } from './interface';
1
+ import { SkeletonTextProps } from './interface';
2
2
  declare function text(props: SkeletonTextProps): import("react/jsx-dev-runtime").JSX.Element;
3
3
  export default text;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SkeletonProps } from './interface';
2
+ import { SkeletonProps } from './interface';
3
3
  declare const SkeletonComponent: React.ForwardRefExoticComponent<SkeletonProps & {
4
4
  children?: React.ReactNode | undefined;
5
5
  } & React.RefAttributes<unknown>>;
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties, ReactNode } from 'react';
2
- import type { TooltipPosition } from './interface';
2
+ import { TooltipPosition } from './interface';
3
3
  interface SliderButtonProps {
4
4
  style?: CSSProperties;
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import type { SliderProps } from '../../slider/interface';
1
+ import { SliderProps } from '../../slider/interface';
2
2
  export interface IntervalConfig {
3
3
  begin: number;
4
4
  end: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SliderProps } from './interface';
2
+ import { SliderProps } from './interface';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<unknown>>>;
4
4
  export default _default;
5
5
  export type { SliderProps };
@@ -1,5 +1,5 @@
1
1
  import { SpaceVertical as SpaceVerticalCommon } from '../../common/space';
2
- import type { SpaceProps } from './interface';
2
+ import { SpaceProps } from './interface';
3
3
  declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  export { SpaceVerticalCommon as SpaceVertical };
5
5
  export default Space;
@@ -1,4 +1,4 @@
1
- import type { SpaceProps, SpaceSize } from './interface';
1
+ import { SpaceProps, SpaceSize } from './interface';
2
2
  declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
3
3
  declare const SpaceVertical: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
4
4
  export { SpaceVertical };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SpinProps } from './interface';
2
+ import { SpinProps } from './interface';
3
3
  declare const SpinComponent: React.ForwardRefExoticComponent<SpinProps & React.RefAttributes<unknown>>;
4
4
  export default SpinComponent;
5
5
  export type { SpinProps };
@@ -1,4 +1,4 @@
1
- import type { CountdownProps } from './interface';
1
+ import { CountdownProps } from './interface';
2
2
  declare const CountdownComponent: import("react").ForwardRefExoticComponent<CountdownProps & import("react").RefAttributes<unknown>>;
3
3
  export default CountdownComponent;
4
4
  export type { CountdownProps };
@@ -1,9 +1,9 @@
1
1
  import Countdown from './Countdown';
2
- import type { StatisticProps } from './interface';
2
+ import { StatisticProps } from './interface';
3
3
  declare const ForwardRefStatistic: import("react").ForwardRefExoticComponent<StatisticProps & import("react").RefAttributes<unknown>>;
4
4
  declare const StatisticComponent: typeof ForwardRefStatistic & {
5
5
  Countdown: typeof Countdown;
6
6
  };
7
7
  export { Countdown as StatisticCountdown };
8
8
  export default StatisticComponent;
9
- export { StatisticProps };
9
+ export type { StatisticProps };
@@ -1,4 +1,4 @@
1
- import type { StepProps } from './interface';
1
+ import { StepProps } from './interface';
2
2
  declare const StepComponent: import("react").ForwardRefExoticComponent<StepProps & import("react").RefAttributes<unknown>>;
3
3
  export default StepComponent;
4
4
  export type { StepProps };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Step from './Step';
3
- import type { StepsProps } from './interface';
3
+ import { StepsProps } from './interface';
4
4
  declare const ForwardRefSteps: React.ForwardRefExoticComponent<StepsProps & React.RefAttributes<unknown>>;
5
5
  declare const StepsComponent: typeof ForwardRefSteps & {
6
6
  Step: typeof Step;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SwitchProps } from './interface';
2
+ import { SwitchProps } from './interface';
3
3
  export interface SwitchState {
4
4
  checked: boolean;
5
5
  }
@@ -8,4 +8,4 @@ declare const SwitchComponent: typeof ForwardRefSwitch & {
8
8
  __PQB_SWITCH: boolean;
9
9
  };
10
10
  export default SwitchComponent;
11
- export { SwitchProps };
11
+ export type { SwitchProps };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { InternalColumnProps } from './interface';
2
+ import { InternalColumnProps } from './interface';
3
3
  type ColGroupType = {
4
4
  prefixCls?: string;
5
5
  columns?: InternalColumnProps[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TableProps } from './interface';
2
+ import { TableProps } from './interface';
3
3
  export interface TableInstance {
4
4
  getRootDomElement: () => HTMLDivElement;
5
5
  scrollIntoView: (dataIndex: React.Key) => void;
@@ -1,4 +1,4 @@
1
- import type { ComponentProps } from './interface';
1
+ import { ComponentProps } from './interface';
2
2
  export declare const INTERNAL_SELECTION_KEY = "table_internal_selection_key";
3
3
  export declare const INTERNAL_EXPAND_KEY = "table_internal_expand_key";
4
4
  export declare const defaultComponent: ComponentProps;
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties, ReactNode } from 'react';
2
2
  import { PaginationProps } from '../pagination/Pagination';
3
3
  import { SpinProps } from '../spin';
4
- import type { TooltipProps } from '../tooltip';
4
+ import { TooltipProps } from '../tooltip';
5
5
  import { TriggerProps } from '../trigger';
6
6
  import { AvailableVirtualListProps, VirtualListHandle } from '../virtual-list';
7
7
  export type RowCallbackProps = {
@@ -1,4 +1,4 @@
1
- import type { ColumnProps, SorterFn } from './interface';
1
+ import { ColumnProps, SorterFn } from './interface';
2
2
  export declare function px2Number(width: number | string): number | string;
3
3
  export declare function getScrollBarHeight(ele: HTMLElement | null): number;
4
4
  export declare function getScrollBarWidth(ele: HTMLElement | null): number;
@@ -1,6 +1,6 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import TabPane, { TabPaneProps, TabPaneType } from './TabPane';
3
- import type { TabsProps } from './interface';
3
+ import { TabsProps } from './interface';
4
4
  export declare const TabsContext: React.Context<TabsProps & {
5
5
  getIdPrefix?: (suffix?: number | string) => {
6
6
  tab: string;
@@ -1,5 +1,5 @@
1
1
  import { ForwardRefExoticComponent, PropsWithChildren } from 'react';
2
- import type { TabPaneProps } from './interface';
2
+ import { TabPaneProps } from './interface';
3
3
  export type TabPaneType = ForwardRefExoticComponent<PropsWithChildren<TabPaneProps>> & {
4
4
  isTabPane: boolean;
5
5
  };
@@ -1,4 +1,4 @@
1
1
  import Tabs from './Tab';
2
+ export type { TabPaneProps, TabsProps } from './interface';
2
3
  export * from './Tab';
3
4
  export default Tabs;
4
- export type { TabPaneProps, TabsProps } from './interface';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TabsProps } from '../../tabs/interface';
2
+ import { TabsProps } from '../../tabs/interface';
3
3
  import { ReturnType } from '../hook/useDomSize';
4
4
  interface TabNavIconProps {
5
5
  direction: TabsProps['direction'];
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { TabsProps } from '../../tabs/interface';
2
+ import { TabsProps } from '../../tabs/interface';
3
3
  declare const TabHeader: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export default TabHeader;
@@ -1,4 +1,4 @@
1
- import type { TagProps } from './interface';
1
+ import { TagProps } from './interface';
2
2
  declare const TagComponent: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<unknown>>;
3
3
  export default TagComponent;
4
4
  export type { TagProps };
@@ -1,6 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { ReactElement } from 'react';
3
- import type { CalendarValue, PickerProps } from './interface';
3
+ import { CalendarValue, PickerProps } from './interface';
4
4
  interface InnerPickerProps extends PickerProps {
5
5
  defaultValue?: CalendarValue | CalendarValue[];
6
6
  value?: CalendarValue | CalendarValue[];
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import type { RangePickerProps } from './interface';
2
+ import { RangePickerProps } from './interface';
3
3
  interface InnerRangePickerProps extends RangePickerProps {
4
4
  focusedInputIndex?: number;
5
5
  changeFocusedInputIndex?: (index: number) => void;
@@ -1,6 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { ReactNode } from 'react';
3
- import type { CalendarValue, TimePickerProps } from './interface';
3
+ import { CalendarValue, TimePickerProps } from './interface';
4
4
  interface InnerTimePickerProps extends TimePickerProps {
5
5
  confirmBtnDisabled?: boolean;
6
6
  popupVisible?: boolean;
@@ -1,4 +1,4 @@
1
- import type { RangePickerProps, TimePickerDecorator, TimePickerProps } from './interface';
1
+ import { RangePickerProps, TimePickerDecorator, TimePickerProps } from './interface';
2
2
  declare const RangePicker: {
3
3
  (props: RangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
4
4
  displayName: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TimelineItemProps } from './interface';
2
+ import { TimelineItemProps } from './interface';
3
3
  declare const ForwardRefItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLDivElement>>;
4
4
  declare const TimelineItem: typeof ForwardRefItem & {
5
5
  isTimelineItem?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Item from './Item';
3
- import type { TimelineProps } from './interface';
3
+ import { TimelineProps } from './interface';
4
4
  declare const ForwardRefTimeline: React.ForwardRefExoticComponent<TimelineProps & {
5
5
  children?: React.ReactNode | undefined;
6
6
  } & React.RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
1
  import Timeline from './Timeline';
2
+ export type { TimelineItemProps, TimelineProps } from './interface';
2
3
  export * from './Timeline';
3
4
  export default Timeline;
4
- export type { TimelineItemProps, TimelineProps } from './interface';
@@ -1,4 +1,4 @@
1
- import type { TooltipProps } from './interface';
1
+ import { TooltipProps } from './interface';
2
2
  export type TooltipHandle = {
3
3
  updatePopupPosition: () => void;
4
4
  };
@@ -6,4 +6,4 @@ declare const TooltipComponent: import("react").ForwardRefExoticComponent<Toolti
6
6
  children?: import("react").ReactNode | undefined;
7
7
  } & import("react").RefAttributes<TooltipHandle>>;
8
8
  export default TooltipComponent;
9
- export { TooltipProps };
9
+ export type { TooltipProps };
@@ -1,3 +1,3 @@
1
- import type { TransferItemProps } from './interface';
1
+ import { TransferItemProps } from './interface';
2
2
  declare function TransferItem(props: TransferItemProps): import("react/jsx-dev-runtime").JSX.Element;
3
3
  export default TransferItem;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TransferListProps } from './interface';
2
+ import { TransferListProps } from './interface';
3
3
  export declare const TransferList: (props: TransferListProps, ref: any) => import("react/jsx-dev-runtime").JSX.Element;
4
4
  declare const TransferListComponent: React.ForwardRefExoticComponent<TransferListProps & React.RefAttributes<unknown>>;
5
5
  export default TransferListComponent;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TransferProps } from './interface';
2
+ import { TransferProps } from './interface';
3
3
  declare const TransferComponent: React.ForwardRefExoticComponent<TransferProps & React.RefAttributes<unknown>>;
4
4
  export default TransferComponent;
5
5
  export type { TransferProps };
@@ -1,4 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { NodeProps } from './interface';
2
+ import { NodeProps } from './interface';
3
3
  declare const TreeAnimation: (props: PropsWithChildren<NodeProps>) => import("react/jsx-dev-runtime").JSX.Element;
4
4
  export default TreeAnimation;
@@ -1,6 +1,6 @@
1
1
  import { DragEvent } from 'react';
2
2
  import { AvailableVirtualListProps } from '../virtual-list';
3
- import type { NodeProps, TreeDataType, TreeProps, TreeState } from './interface';
3
+ import { NodeProps, TreeDataType, TreeProps, TreeState } from './interface';
4
4
  export declare const TreeContext: import("react").Context<{
5
5
  icons?: NodeProps["icons"];
6
6
  loadMore?: (node: NodeProps) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { NodeProps } from './interface';
2
+ import { NodeProps } from './interface';
3
3
  export interface NodeState {
4
4
  isDragOver?: boolean;
5
5
  dragPosition: 0 | -1 | 1;
@@ -1,6 +1,6 @@
1
1
  import React, { ForwardRefExoticComponent, MemoExoticComponent, ReactNode, RefAttributes } from 'react';
2
2
  import Node from './Node';
3
- import type { NodeProps, TreeDataType, TreeProps } from './interface';
3
+ import { NodeProps, TreeDataType, TreeProps } from './interface';
4
4
  export type key2nodePropsType = {
5
5
  [key: string]: TreeDataType;
6
6
  };
@@ -1,8 +1,8 @@
1
- import type { NodeProps, TreeDataType, TreeProps } from './interface';
1
+ import { NodeProps, TreeDataType, TreeProps } from './interface';
2
2
  export type key2nodePropsType = {
3
3
  [key: string]: TreeDataType;
4
4
  };
5
- export type * from './interface';
5
+ export * from './interface';
6
6
  export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps };
7
7
  export * from './Tree';
8
8
  export { default } from './Tree';
@@ -217,11 +217,18 @@ export interface TreeProps {
217
217
  selectedNodes: NodeInstance[];
218
218
  node: NodeInstance;
219
219
  e: Event;
220
+ data: unknown;
220
221
  }) => void;
221
222
  /**
222
223
  * @zh 点击树节点的回调
223
224
  */
224
- onNodeSelect?: (key: string, data: unknown, extra: unknown) => void;
225
+ onNodeSelect?: (key: string, data: unknown, extra: {
226
+ selected: boolean;
227
+ selectedNodes: NodeInstance[];
228
+ node: NodeInstance;
229
+ e: Event;
230
+ data: unknown;
231
+ }) => void;
225
232
  /**
226
233
  * @zh 点击树节点复选框的回调
227
234
  * @en Callback when checked node
@@ -230,14 +237,23 @@ export interface TreeProps {
230
237
  node: NodeInstance;
231
238
  checkedNodes: NodeInstance[];
232
239
  checked: boolean;
233
- halfCheckedKeys: string[];
240
+ halfCheckedKeys: string[] | undefined;
234
241
  halfCheckedNodes: NodeInstance[];
235
242
  e: Event;
243
+ data: unknown;
236
244
  }) => void;
237
245
  /**
238
246
  * @zh 点击树节点复选框的回调
239
247
  */
240
- onNodeCheck?: (key: string, data: unknown, extra: unknown) => void;
248
+ onNodeCheck?: (key: string, data: unknown, extra: {
249
+ node: NodeInstance;
250
+ checkedNodes: NodeInstance[];
251
+ checked: boolean;
252
+ halfCheckedKeys: string[] | undefined;
253
+ halfCheckedNodes: NodeInstance[];
254
+ e: Event;
255
+ data: unknown;
256
+ }) => void;
241
257
  /**
242
258
  * @zh 点击展开/关闭的回调
243
259
  * @en Callback when expanded or collapsed node
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { key2nodePropsType } from '.';
3
- import type { TreeDataType } from './interface';
3
+ import { TreeDataType } from './interface';
4
4
  export declare const getTreeDataFromTreeChildren: (treeChildren: ReactNode) => any;
5
5
  export declare function getChildNodeKeys(node: TreeDataType, key2nodeProps: key2nodePropsType): Set<string>;
6
6
  export declare function getCheckedKeysByInitKeys(checkedKeys: string[], key2nodeProps: any): {
@@ -1,5 +1,5 @@
1
1
  import { TreeProps } from '../tree/interface';
2
- import type { LabelValue, TreeSelectProps } from './interface';
2
+ import { LabelValue, TreeSelectProps } from './interface';
3
3
  interface TreeListProps extends TreeSelectProps {
4
4
  value: LabelValue[];
5
5
  multiple: boolean;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import type { MouseLocationType, TriggerProps } from './interface';
2
+ import { MouseLocationType, TriggerProps } from './interface';
3
3
  export declare const getBoundingClientRect: (dom: any, options: {
4
4
  boundaryDistance?: TriggerProps["boundaryDistance"];
5
5
  position: TriggerProps["position"];
@@ -1,5 +1,5 @@
1
- import type { TriggerProps } from './interface';
2
- export { TriggerProps };
1
+ import { TriggerProps } from './interface';
2
+ export type { TriggerProps };
3
3
  export interface TriggerState {
4
4
  popupVisible: boolean;
5
5
  popupStyle: object;
@@ -1,3 +1,3 @@
1
- import type { EditContentProps } from './interface';
1
+ import { EditContentProps } from './interface';
2
2
  declare const _default: import("react").ForwardRefExoticComponent<EditContentProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TypographyEllipsisProps } from './interface';
2
+ import { TypographyEllipsisProps } from './interface';
3
3
  declare const Ellipsis: React.ForwardRefExoticComponent<TypographyEllipsisProps & {
4
4
  children?: React.ReactNode | undefined;
5
5
  } & React.RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import type { OperationsProps } from './interface';
2
+ import { OperationsProps } from './interface';
3
3
  declare function Operations(props: PropsWithChildren<OperationsProps>): import("react/jsx-dev-runtime").JSX.Element;
4
4
  export default Operations;
@@ -1,3 +1,3 @@
1
- import type { TypographyParagraphProps } from './interface';
1
+ import { TypographyParagraphProps } from './interface';
2
2
  declare const Paragraph: import("react").ForwardRefExoticComponent<TypographyParagraphProps & import("react").RefAttributes<unknown>>;
3
3
  export default Paragraph;
@@ -1,3 +1,3 @@
1
- import type { TypographyTitleProps } from './interface';
1
+ import { TypographyTitleProps } from './interface';
2
2
  declare const Title: import("react").ForwardRefExoticComponent<TypographyTitleProps & import("react").RefAttributes<unknown>>;
3
3
  export default Title;
@@ -1,3 +1,3 @@
1
- import type { TypographyProps } from './interface';
1
+ import { TypographyProps } from './interface';
2
2
  declare const TypographyComponent: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<unknown>>;
3
3
  export default TypographyComponent;