@unicom-cloud/ui 0.8.93 → 0.8.94

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 (228) hide show
  1. package/Checkbox.js +5 -4
  2. package/Layout.js +8 -7
  3. package/cascader/panel/Option.js +7 -6
  4. package/cascader/panel/Search.js +17 -16
  5. package/checkbox/index.js +7 -6
  6. package/color-picker/Mode.js +7 -6
  7. package/index.js +171 -171
  8. package/layout/index.js +11 -9
  9. package/package.json +1 -1
  10. package/pagination/PageItem.js +52 -53
  11. package/pagination/Pagination.js +2 -1
  12. package/pagination/interface.js +4 -1
  13. package/select/Option.js +12 -11
  14. package/select/Select.js +1 -0
  15. package/table/tbody/Tr.js +3 -2
  16. package/table/thead/Column.js +3 -2
  17. package/table/thead/index.js +3 -2
  18. package/transfer/Item.js +17 -16
  19. package/transfer/List.js +12 -11
  20. package/tree/Node.js +43 -41
  21. package/tree/Tree.js +215 -211
  22. package/types/pc/affix/index.d.ts +1 -1
  23. package/types/pc/alert/index.d.ts +1 -1
  24. package/types/pc/anchor/Anchor.d.ts +1 -1
  25. package/types/pc/anchor/Link.d.ts +1 -1
  26. package/types/pc/anchor/context.d.ts +1 -1
  27. package/types/pc/auto-complete/index.d.ts +1 -1
  28. package/types/pc/avatar/Avatar.d.ts +1 -1
  29. package/types/pc/avatar/Group.d.ts +1 -1
  30. package/types/pc/avatar/context.d.ts +1 -1
  31. package/types/pc/back-top/index.d.ts +1 -1
  32. package/types/pc/badge/index.d.ts +2 -2
  33. package/types/pc/breadcrumb/Item.d.ts +1 -1
  34. package/types/pc/breadcrumb/index.d.ts +1 -1
  35. package/types/pc/button/Group.d.ts +1 -1
  36. package/types/pc/button/index.d.ts +1 -1
  37. package/types/pc/calendar/Month.d.ts +1 -1
  38. package/types/pc/calendar/Year.d.ts +1 -1
  39. package/types/pc/calendar/index.d.ts +1 -1
  40. package/types/pc/card/Grid.d.ts +1 -1
  41. package/types/pc/card/Meta.d.ts +1 -1
  42. package/types/pc/card/index.d.ts +1 -1
  43. package/types/pc/carousel/Arrow.d.ts +1 -1
  44. package/types/pc/carousel/Indicator.d.ts +1 -1
  45. package/types/pc/carousel/index.d.ts +2 -2
  46. package/types/pc/cascader/Cascader.d.ts +1 -1
  47. package/types/pc/cascader/util.d.ts +1 -1
  48. package/types/pc/checkbox/Checkbox.d.ts +1 -1
  49. package/types/pc/checkbox/Group.d.ts +1 -1
  50. package/types/pc/checkbox/GroupBlock.d.ts +1 -1
  51. package/types/pc/checkbox/index.d.ts +1 -1
  52. package/types/pc/collapse/Collapse.d.ts +1 -1
  53. package/types/pc/collapse/Item.d.ts +1 -1
  54. package/types/pc/color-picker/InputHex.d.ts +1 -1
  55. package/types/pc/color-picker/InputRgb.d.ts +1 -1
  56. package/types/pc/color-picker/Mode.d.ts +1 -1
  57. package/types/pc/color-picker/Palette.d.ts +1 -1
  58. package/types/pc/color-picker/index.d.ts +1 -1
  59. package/types/pc/color-picker/utils.d.ts +1 -1
  60. package/types/pc/comment/index.d.ts +1 -1
  61. package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
  62. package/types/pc/config-provider/context.d.ts +1 -1
  63. package/types/pc/config-provider/interface.d.ts +1 -1
  64. package/types/pc/copy/index.d.ts +1 -1
  65. package/types/pc/date-picker/Picker.d.ts +1 -2
  66. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  67. package/types/pc/date-picker/index.d.ts +1 -1
  68. package/types/pc/descriptions/index.d.ts +1 -1
  69. package/types/pc/details/index.d.ts +1 -1
  70. package/types/pc/divider/index.d.ts +1 -1
  71. package/types/pc/draggable/Item.d.ts +1 -1
  72. package/types/pc/draggable/index.d.ts +1 -1
  73. package/types/pc/drawer/Drawer.d.ts +2 -2
  74. package/types/pc/dropdown/Button.d.ts +1 -1
  75. package/types/pc/dropdown/index.d.ts +1 -1
  76. package/types/pc/empty/index.d.ts +1 -1
  77. package/types/pc/form/Control.d.ts +1 -1
  78. package/types/pc/form/Form.d.ts +1 -1
  79. package/types/pc/form/FormLabel.d.ts +1 -1
  80. package/types/pc/form/FormList.d.ts +1 -1
  81. package/types/pc/form/FormProvider.d.ts +1 -1
  82. package/types/pc/form/context.d.ts +1 -1
  83. package/types/pc/form/hook/useForm.d.ts +1 -1
  84. package/types/pc/form/index.d.ts +1 -1
  85. package/types/pc/form/interface.d.ts +2 -2
  86. package/types/pc/form/store.d.ts +3 -4
  87. package/types/pc/form/util.d.ts +3 -3
  88. package/types/pc/grid/Col.d.ts +1 -1
  89. package/types/pc/grid/Grid.d.ts +1 -1
  90. package/types/pc/grid/GridItem.d.ts +1 -1
  91. package/types/pc/grid/Row.d.ts +1 -1
  92. package/types/pc/grid/context.d.ts +1 -1
  93. package/types/pc/grid/util.d.ts +1 -1
  94. package/types/pc/hooks/use-watermark/index.d.ts +1 -1
  95. package/types/pc/icons/file/index.d.ts +1 -1
  96. package/types/pc/image/Image.d.ts +1 -1
  97. package/types/pc/image/ImageFooter.d.ts +1 -1
  98. package/types/pc/image/ImagePreview.d.ts +1 -1
  99. package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
  100. package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
  101. package/types/pc/image/index.d.ts +1 -1
  102. package/types/pc/image/previewGroupContext.d.ts +1 -1
  103. package/types/pc/input/Button.d.ts +1 -1
  104. package/types/pc/input/Group.d.ts +1 -1
  105. package/types/pc/input/Input.d.ts +1 -1
  106. package/types/pc/input/InputElement.d.ts +1 -1
  107. package/types/pc/input/Password.d.ts +1 -1
  108. package/types/pc/input/Search.d.ts +1 -1
  109. package/types/pc/input/Textarea.d.ts +1 -1
  110. package/types/pc/input/index.d.ts +1 -1
  111. package/types/pc/input/useComposition.d.ts +1 -1
  112. package/types/pc/input-number/index.d.ts +1 -1
  113. package/types/pc/input-tag/InputTag.d.ts +2 -2
  114. package/types/pc/input-tag/interface.d.ts +2 -2
  115. package/types/pc/layout/Content.d.ts +1 -1
  116. package/types/pc/layout/Footer.d.ts +1 -1
  117. package/types/pc/layout/Header.d.ts +1 -1
  118. package/types/pc/layout/Sider.d.ts +1 -1
  119. package/types/pc/layout/index.d.ts +2 -2
  120. package/types/pc/link/index.d.ts +1 -1
  121. package/types/pc/list/Item.d.ts +1 -1
  122. package/types/pc/list/Meta.d.ts +1 -1
  123. package/types/pc/list/index.d.ts +2 -2
  124. package/types/pc/mentions/index.d.ts +1 -1
  125. package/types/pc/mentions/util.d.ts +1 -1
  126. package/types/pc/menu/Item.d.ts +1 -1
  127. package/types/pc/menu/ItemGroup.d.ts +1 -1
  128. package/types/pc/menu/Menu.d.ts +1 -1
  129. package/types/pc/menu/OverflowWrap.d.ts +1 -1
  130. package/types/pc/menu/context.d.ts +1 -1
  131. package/types/pc/menu/index.d.ts +1 -1
  132. package/types/pc/menu/interface.d.ts +1 -1
  133. package/types/pc/message/index.d.ts +2 -2
  134. package/types/pc/message/useMessage.d.ts +1 -1
  135. package/types/pc/modal/Modal.d.ts +2 -2
  136. package/types/pc/modal/config.d.ts +1 -1
  137. package/types/pc/notification/index.d.ts +2 -2
  138. package/types/pc/notification/useNotification.d.ts +1 -1
  139. package/types/pc/page-header/index.d.ts +2 -2
  140. package/types/pc/pagination/PageItem.d.ts +2 -47
  141. package/types/pc/pagination/Pagination.d.ts +1 -1
  142. package/types/pc/pagination/interface.d.ts +47 -0
  143. package/types/pc/popconfirm/index.d.ts +1 -1
  144. package/types/pc/popover/index.d.ts +1 -1
  145. package/types/pc/popover/interface.d.ts +1 -1
  146. package/types/pc/progress/CircleProgress.d.ts +1 -1
  147. package/types/pc/progress/index.d.ts +1 -1
  148. package/types/pc/radio/Group.d.ts +1 -1
  149. package/types/pc/radio/GroupBlock.d.ts +1 -1
  150. package/types/pc/radio/Radio.d.ts +1 -1
  151. package/types/pc/radio/index.d.ts +1 -1
  152. package/types/pc/rate/index.d.ts +1 -1
  153. package/types/pc/resize-box/Split.d.ts +1 -1
  154. package/types/pc/resize-box/SplitGroup.d.ts +1 -1
  155. package/types/pc/resize-box/index.d.ts +1 -1
  156. package/types/pc/result/index.d.ts +1 -1
  157. package/types/pc/select/OptGroup.d.ts +1 -1
  158. package/types/pc/select/Option.d.ts +1 -1
  159. package/types/pc/select/Select.d.ts +3 -2
  160. package/types/pc/select/index.d.ts +1 -1
  161. package/types/pc/select/util.d.ts +1 -1
  162. package/types/pc/select-view/Core.d.ts +1 -1
  163. package/types/pc/select-view/index.d.ts +1 -1
  164. package/types/pc/skeleton/Image.d.ts +1 -1
  165. package/types/pc/skeleton/Text.d.ts +1 -1
  166. package/types/pc/skeleton/index.d.ts +1 -1
  167. package/types/pc/slider/Button.d.ts +1 -1
  168. package/types/pc/slider/hook/useInterval.d.ts +1 -1
  169. package/types/pc/slider/index.d.ts +1 -1
  170. package/types/pc/space/index.d.ts +1 -1
  171. package/types/pc/space-/index.d.ts +1 -1
  172. package/types/pc/spin/index.d.ts +1 -1
  173. package/types/pc/statistic/Countdown.d.ts +1 -1
  174. package/types/pc/statistic/index.d.ts +2 -2
  175. package/types/pc/steps/Step.d.ts +1 -1
  176. package/types/pc/steps/index.d.ts +1 -1
  177. package/types/pc/switch/index.d.ts +2 -2
  178. package/types/pc/table/ColGroup.d.ts +1 -1
  179. package/types/pc/table/Table.d.ts +1 -1
  180. package/types/pc/table/constant.d.ts +1 -1
  181. package/types/pc/table/interface.d.ts +1 -1
  182. package/types/pc/table/util.d.ts +1 -1
  183. package/types/pc/tabs/Tab.d.ts +1 -1
  184. package/types/pc/tabs/TabPane.d.ts +1 -1
  185. package/types/pc/tabs/index.d.ts +1 -1
  186. package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
  187. package/types/pc/tabs/tab-header/index.d.ts +1 -1
  188. package/types/pc/tag/index.d.ts +1 -1
  189. package/types/pc/time-picker/Picker.d.ts +1 -1
  190. package/types/pc/time-picker/RangePicker.d.ts +1 -1
  191. package/types/pc/time-picker/TimePicker.d.ts +1 -1
  192. package/types/pc/time-picker/index.d.ts +1 -1
  193. package/types/pc/timeline/Item.d.ts +1 -1
  194. package/types/pc/timeline/Timeline.d.ts +1 -1
  195. package/types/pc/timeline/index.d.ts +1 -1
  196. package/types/pc/tooltip/index.d.ts +2 -2
  197. package/types/pc/transfer/Item.d.ts +1 -1
  198. package/types/pc/transfer/List.d.ts +1 -1
  199. package/types/pc/transfer/index.d.ts +1 -1
  200. package/types/pc/tree/Animation.d.ts +1 -1
  201. package/types/pc/tree/Context.d.ts +1 -1
  202. package/types/pc/tree/Node.d.ts +1 -1
  203. package/types/pc/tree/Tree.d.ts +1 -1
  204. package/types/pc/tree/index.d.ts +2 -2
  205. package/types/pc/tree/interface.d.ts +19 -3
  206. package/types/pc/tree/util.d.ts +1 -1
  207. package/types/pc/tree-select/List.d.ts +1 -1
  208. package/types/pc/trigger/getPopupStyle.d.ts +1 -1
  209. package/types/pc/trigger/index.d.ts +2 -2
  210. package/types/pc/typography/EditContent.d.ts +1 -1
  211. package/types/pc/typography/Ellipsis.d.ts +1 -1
  212. package/types/pc/typography/Operations.d.ts +1 -1
  213. package/types/pc/typography/Paragraph.d.ts +1 -1
  214. package/types/pc/typography/Title.d.ts +1 -1
  215. package/types/pc/typography/Typography.d.ts +1 -1
  216. package/types/pc/typography/useCssEllipsis.d.ts +1 -1
  217. package/types/pc/typography/useEllipsis.d.ts +1 -1
  218. package/types/pc/upload/TriggerNode.d.ts +1 -1
  219. package/types/pc/upload/Upload.d.ts +2 -2
  220. package/types/pc/upload/Uploader.d.ts +1 -1
  221. package/types/pc/upload/request.d.ts +1 -1
  222. package/types/pc/upload/util.d.ts +1 -1
  223. package/types/pc/verification-code/VerificationCode.d.ts +1 -1
  224. package/types/pc/verification-code/index.d.ts +1 -1
  225. package/types/pc/watermark/Watermark.d.ts +1 -1
  226. package/types/pc/watermark/index.d.ts +2 -2
  227. package/typography/Ellipsis.js +3 -2
  228. package/version/index.js +1 -1
@@ -1,4 +1,4 @@
1
- import type { RowProps } from './interface';
1
+ import { RowProps } from './interface';
2
2
  declare const RowComponent: import("react").ForwardRefExoticComponent<RowProps & import("react").RefAttributes<unknown>>;
3
3
  export default RowComponent;
4
4
  export type { RowProps };
@@ -1,4 +1,4 @@
1
- import type { GridItemData } from './interface';
1
+ import { GridItemData } from './interface';
2
2
  type RowContextType = {
3
3
  gutter?: [number, number];
4
4
  div?: boolean;
@@ -1,4 +1,4 @@
1
- import type { GridItemData } from './interface';
1
+ import { GridItemData } from './interface';
2
2
  export declare function resolveItemData(cols: number, { span, offset, suffix }: GridItemData): GridItemData;
3
3
  export declare function setItemVisible({ cols, collapsed, collapsedRows, itemDataList, }: {
4
4
  cols: number;
@@ -1,3 +1,3 @@
1
- import type { WatermarkOptions, WatermarkReturnType } from './interface';
1
+ import { WatermarkOptions, WatermarkReturnType } from './interface';
2
2
  export declare function useWatermark(params: WatermarkOptions): WatermarkReturnType;
3
3
  export default useWatermark;
@@ -1,4 +1,4 @@
1
- import type { IconFileProps } from './interface';
1
+ import { IconFileProps } from './interface';
2
2
  declare const IconFile: import("react").ForwardRefExoticComponent<IconFileProps & import("react").RefAttributes<unknown>>;
3
3
  export default IconFile;
4
4
  export type { IconFileProps };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ImagePreview from './ImagePreview';
3
3
  import ImagePreviewGroup from './ImagePreviewGroup';
4
- import type { ImageProps } from './interface';
4
+ import { ImageProps } from './interface';
5
5
  declare const RefImageComponent: React.ForwardRefExoticComponent<ImageProps & {
6
6
  _index?: number;
7
7
  } & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import type { ImageProps } from './interface';
2
+ import { ImageProps } from './interface';
3
3
  interface ImageFooterProps {
4
4
  style?: CSSProperties;
5
5
  className?: string | string[];
@@ -1,4 +1,4 @@
1
- import type { ImagePreviewProps } from './interface';
1
+ import { ImagePreviewProps } from './interface';
2
2
  export type ImagePreviewHandle = {
3
3
  reset: () => void;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ImagePreviewGroupProps } from './interface';
2
+ import { ImagePreviewGroupProps } from './interface';
3
3
  export type { ImagePreviewGroupProps };
4
4
  export interface ImagePreviewGroupHandle {
5
5
  reset: () => void;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import type { ImagePreviewActionProps } from './interface';
2
+ import { ImagePreviewActionProps } from './interface';
3
3
  interface ImagePreviewToolbarProps {
4
4
  style?: CSSProperties;
5
5
  className?: string | string[];
@@ -1,4 +1,4 @@
1
1
  import Image from './Image';
2
- export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './interface';
3
2
  export * from './Image';
3
+ export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './interface';
4
4
  export default Image;
@@ -1,4 +1,4 @@
1
- import type { ImagePreviewProps } from './interface';
1
+ import { ImagePreviewProps } from './interface';
2
2
  export interface PreviewUrl {
3
3
  url: string;
4
4
  preview: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { InputButtonProps, RefInputType } from './interface';
2
+ import { InputButtonProps, RefInputType } from './interface';
3
3
  declare const Button: React.ForwardRefExoticComponent<InputButtonProps & React.RefAttributes<RefInputType>>;
4
4
  export default Button;
5
5
  export type { InputButtonProps };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { InputGroupProps } from './interface';
2
+ import { InputGroupProps } from './interface';
3
3
  declare const Group: React.ForwardRefExoticComponent<InputGroupProps & {
4
4
  children?: React.ReactNode | undefined;
5
5
  } & React.RefAttributes<HTMLDivElement>>;
@@ -7,7 +7,7 @@ import Password from './Password';
7
7
  import Search from './Search';
8
8
  import InputTag from './Tag';
9
9
  import TextArea from './Textarea';
10
- import type { InputProps, RefInputType } from './interface';
10
+ import { InputProps, RefInputType } from './interface';
11
11
  export declare function formatValue(value: any, maxLength: any): any;
12
12
  declare const ForwardRefInput: React.ForwardRefExoticComponent<InputProps & MergePropsOptions & React.RefAttributes<RefInputType>>;
13
13
  declare const Input: typeof ForwardRefInput & {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { InputComponentProps, RefInputType } from './interface';
2
+ import { InputComponentProps, RefInputType } from './interface';
3
3
  declare const InputComponent: React.ForwardRefExoticComponent<InputComponentProps & React.RefAttributes<RefInputType>>;
4
4
  export default InputComponent;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { InputPasswordProps, RefInputType } from './interface';
2
+ import { InputPasswordProps, RefInputType } from './interface';
3
3
  declare const Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<RefInputType>>;
4
4
  export default Password;
5
5
  export type { InputPasswordProps };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { InputSearchProps, RefInputType } from './interface';
2
+ import { InputSearchProps, RefInputType } from './interface';
3
3
  declare const Search: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<RefInputType>>;
4
4
  export default Search;
5
5
  export type { InputSearchProps };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TextAreaProps } from './interface';
2
+ import { TextAreaProps } from './interface';
3
3
  export type RefTextAreaType = {
4
4
  /** 使输入框失去焦点 */
5
5
  blur: () => void;
@@ -1,5 +1,5 @@
1
1
  import Input from './Input';
2
- import type { InputProps, RefInputType, TextAreaProps } from './interface';
2
+ import { InputProps, RefInputType, TextAreaProps } from './interface';
3
3
  import { InputPasswordProps } from './Password';
4
4
  import { InputSearchProps } from './Search';
5
5
  import { RefTextAreaType } from './Textarea';
@@ -1,5 +1,5 @@
1
1
  import { ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler } from 'react';
2
- import type { InputProps, TextAreaProps } from './interface';
2
+ import { InputProps, TextAreaProps } from './interface';
3
3
  declare function useComposition({ value, maxLength, onChange, onKeyDown, onPressEnter, beforeTriggerValueChangeCallback, normalizeHandler, }: {
4
4
  value: string;
5
5
  maxLength: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RefInputType } from '../input/interface';
3
- import type { InputNumberProps } from './interface';
3
+ import { InputNumberProps } from './interface';
4
4
  declare const InputNumberComponent: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<RefInputType>>;
5
5
  export default InputNumberComponent;
6
6
  export type { InputNumberProps };
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { InputTagProps } from './interface';
2
+ import { InputTagProps } from './interface';
3
3
  type InputTagHandle = {
4
4
  focus: () => void;
5
5
  blur: () => void;
6
6
  };
7
7
  declare const InputTagRef: React.ForwardRefExoticComponent<InputTagProps<any> & React.RefAttributes<InputTagHandle>>;
8
8
  export default InputTagRef;
9
- export { InputTagProps };
9
+ export type { InputTagProps };
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { PopoverProps } from '../popover';
3
3
  export type ObjectValueType = {
4
- value?: any;
4
+ value?: unknown;
5
5
  label?: ReactNode;
6
6
  closable?: boolean;
7
7
  };
@@ -9,7 +9,7 @@ export type ValueChangeReason = 'add' | 'remove' | 'clear' | 'sort';
9
9
  /**
10
10
  * @title InputTag
11
11
  */
12
- export interface InputTagProps<T = any> {
12
+ export interface InputTagProps<T = unknown> {
13
13
  className?: string | string[];
14
14
  style?: CSSProperties;
15
15
  /**
@@ -1,3 +1,3 @@
1
- import type { ContentProps } from './interface';
1
+ import { ContentProps } from './interface';
2
2
  declare const contentComponent: import("react").ForwardRefExoticComponent<ContentProps & import("react").RefAttributes<unknown>>;
3
3
  export default contentComponent;
@@ -1,3 +1,3 @@
1
- import type { FooterProps } from './interface';
1
+ import { FooterProps } from './interface';
2
2
  declare const FooterComponent: import("react").ForwardRefExoticComponent<FooterProps & import("react").RefAttributes<unknown>>;
3
3
  export default FooterComponent;
@@ -1,3 +1,3 @@
1
- import type { HeaderProps } from './interface';
1
+ import { HeaderProps } from './interface';
2
2
  declare const HeaderComponent: import("react").ForwardRefExoticComponent<HeaderProps & import("react").RefAttributes<unknown>>;
3
3
  export default HeaderComponent;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { SiderProps } from './interface';
2
+ import { SiderProps } from './interface';
3
3
  export declare const SiderContext: React.Context<{
4
4
  siderCollapsed: boolean;
5
5
  collapsedWidth: string | number;
@@ -3,11 +3,11 @@ import Content from './Content';
3
3
  import Footer from './Footer';
4
4
  import Header from './Header';
5
5
  import Sider, { SiderContext } from './Sider';
6
- import type { LayoutProps } from './interface';
6
+ import { LayoutProps } from './interface';
7
7
  export interface LayoutState {
8
8
  siders: string[];
9
9
  }
10
- export type { SiderContext };
10
+ export { SiderContext };
11
11
  declare const ForwardRefLayout: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<unknown>>;
12
12
  declare const LayoutComponent: typeof ForwardRefLayout & {
13
13
  Sider: typeof Sider;
@@ -1,4 +1,4 @@
1
- import type { LinkProps } from './interface';
1
+ import { LinkProps } from './interface';
2
2
  declare const LinkRef: import("react").ForwardRefExoticComponent<LinkProps & {
3
3
  children?: import("react").ReactNode | undefined;
4
4
  } & import("react").RefAttributes<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Meta from './Meta';
3
- import type { ListItemProps } from './interface';
3
+ import { ListItemProps } from './interface';
4
4
  declare const ForwardRefItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
5
5
  declare const ItemComponent: typeof ForwardRefItem & {
6
6
  Meta: typeof Meta;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { ListItemMetaProps } from './interface';
2
+ import { ListItemMetaProps } from './interface';
3
3
  declare const MetaComponent: React.ForwardRefExoticComponent<ListItemMetaProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export default MetaComponent;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Item from './Item';
3
- import type { ListProps } from './interface';
3
+ import { ListProps } from './interface';
4
4
  interface ForwardRefListType extends React.ForwardRefExoticComponent<React.PropsWithoutRef<ListProps> & React.RefAttributes<HTMLDivElement>> {
5
5
  <T = any>(props: React.PropsWithChildren<ListProps<T>> & {
6
6
  ref?: React.Ref<HTMLDivElement>;
@@ -10,4 +10,4 @@ interface ForwardRefListType extends React.ForwardRefExoticComponent<React.Props
10
10
  declare const ListComponent: ForwardRefListType;
11
11
  export { Item as ListItem };
12
12
  export default ListComponent;
13
- export { ListProps };
13
+ export type { ListProps };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { MentionsProps } from './interface';
2
+ import { MentionsProps } from './interface';
3
3
  declare const MentionsComponent: React.ForwardRefExoticComponent<MentionsProps & React.RefAttributes<unknown>>;
4
4
  export default MentionsComponent;
5
5
  export type { MentionsProps };
@@ -1,4 +1,4 @@
1
- import type { MentionsProps } from './interface';
1
+ import { MentionsProps } from './interface';
2
2
  interface MeasureIndex {
3
3
  location: number;
4
4
  prefix: string | undefined;
@@ -1,4 +1,4 @@
1
- import type { MenuItemProps } from './interface';
1
+ import { MenuItemProps } from './interface';
2
2
  declare const ForwardRefItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<unknown>>;
3
3
  declare const ItemComponent: typeof ForwardRefItem & {
4
4
  menuType: string;
@@ -1,4 +1,4 @@
1
- import type { MenuItemGroupProps } from './interface';
1
+ import { MenuItemGroupProps } from './interface';
2
2
  declare const ForwardRefItemGroup: import("react").ForwardRefExoticComponent<MenuItemGroupProps & import("react").RefAttributes<unknown>>;
3
3
  declare const ItemGroupComponent: typeof ForwardRefItemGroup & {
4
4
  menuType: string;
@@ -1,4 +1,4 @@
1
- import type { MenuProps } from './interface';
1
+ import { MenuProps } from './interface';
2
2
  import Item from './Item';
3
3
  import ItemGroup from './ItemGroup';
4
4
  import SubMenu from './sub-menu';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import type { MenuProps } from './interface';
2
+ import { MenuProps } from './interface';
3
3
  interface OverflowWrapProps {
4
4
  ellipsisText?: ReactNode;
5
5
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import type { MenuProps } from './interface';
1
+ import { MenuProps } from './interface';
2
2
  export type HotkeyInfo = {
3
3
  update: boolean;
4
4
  activeKeyPath: string[];
@@ -1,4 +1,4 @@
1
1
  import Menu from './Menu';
2
+ export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './interface';
2
3
  export * from './Menu';
3
4
  export default Menu;
4
- export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './interface';
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
- import type { TooltipProps } from '../tooltip';
2
+ import { TooltipProps } from '../tooltip';
3
3
  import { TriggerProps } from '../trigger';
4
4
  /**
5
5
  * @title Menu
@@ -1,5 +1,5 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
- import type { MessageHookReturnType, MessageProps } from './interface';
2
+ import { MessageHookReturnType, MessageProps } from './interface';
3
3
  import useMessage from './useMessage';
4
4
  export declare const messageTypes: string[];
5
5
  export type ConfigProps = {
@@ -30,4 +30,4 @@ interface ComponentStaticProps {
30
30
  declare const Message: React.FC<MessageProps> & ComponentStaticProps;
31
31
  export { useMessage };
32
32
  export default Message;
33
- export { MessageProps };
33
+ export type { MessageProps };
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import { ConfigProps } from '.';
3
- import type { MessageHookReturnType } from './interface';
3
+ import { MessageHookReturnType } from './interface';
4
4
  export type messageFuncType = MessageHookReturnType;
5
5
  declare function useMessage(commonConfig?: ConfigProps): [MessageHookReturnType, JSX.Element];
6
6
  export default useMessage;
@@ -1,7 +1,7 @@
1
1
  import { ForwardRefExoticComponent, PropsWithChildren } from 'react';
2
2
  import { ConfirmProps } from './Confirm';
3
3
  import { ModalConfigType } from './config';
4
- import type { ModalProps, ModalReturnProps } from './interface';
4
+ import { ModalProps, ModalReturnProps } from './interface';
5
5
  import useModal from './use-modal';
6
6
  export interface ModalComponent extends ForwardRefExoticComponent<PropsWithChildren<ModalProps>> {
7
7
  show: (props: ConfirmProps) => ModalReturnProps;
@@ -16,4 +16,4 @@ export interface ModalComponent extends ForwardRefExoticComponent<PropsWithChild
16
16
  }
17
17
  declare const ExportedModalComponent: ModalComponent;
18
18
  export default ExportedModalComponent;
19
- export { ModalProps, ModalReturnProps };
19
+ export type { ModalProps, ModalReturnProps };
@@ -1,4 +1,4 @@
1
- import type { ConfigProviderProps } from '../config-provider';
1
+ import { ConfigProviderProps } from '../config-provider';
2
2
  export declare function setConfigProviderProps(configProviderProps: ConfigProviderProps): void;
3
3
  export declare function getConfigProviderProps(): ConfigProviderProps;
4
4
  export type ModalConfigType = {
@@ -1,5 +1,5 @@
1
1
  import { ReactInstance } from 'react';
2
- import type { NotificationHookReturnType, NotificationProps } from './interface';
2
+ import { NotificationHookReturnType, NotificationProps } from './interface';
3
3
  import useNotification from './useNotification';
4
4
  export declare const notificationTypes: string[];
5
5
  export type ConfigProps = {
@@ -26,4 +26,4 @@ interface ComponentStaticProps {
26
26
  declare const Notification: React.FC<NotificationProps> & ComponentStaticProps;
27
27
  export { useNotification };
28
28
  export default Notification;
29
- export { NotificationProps };
29
+ export type { NotificationProps };
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import { ConfigProps } from '.';
3
- import type { NotificationHookReturnType } from './interface';
3
+ import { NotificationHookReturnType } from './interface';
4
4
  export type notificationFuncType = NotificationHookReturnType;
5
5
  declare function useNotification(commonConfig?: ConfigProps): [NotificationHookReturnType, JSX.Element];
6
6
  export default useNotification;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { PageHeaderProps } from './interface';
2
+ import { PageHeaderProps } from './interface';
3
3
  declare const _default: React.ForwardRefExoticComponent<PageHeaderProps & {
4
4
  children?: React.ReactNode | undefined;
5
5
  } & React.RefAttributes<unknown>>;
6
6
  export default _default;
7
- export { PageHeaderProps };
7
+ export type { PageHeaderProps };
@@ -1,50 +1,5 @@
1
- import React, { CSSProperties, ReactNode } from 'react';
2
- type itemRenderType = (page: number, type: 'page' | 'more' | 'prev' | 'next', originElement: ReactNode) => ReactNode;
3
- export interface PagerProps {
4
- pageItemStyle?: CSSProperties;
5
- activePageItemStyle?: CSSProperties;
6
- disabled?: boolean;
7
- rootPrefixCls: string;
8
- pageNum: number;
9
- current: number;
10
- onClick: (value: number) => void;
11
- itemRender?: itemRenderType;
12
- }
13
- export interface JumpPagerProps {
14
- pageItemStyle?: CSSProperties;
15
- disabled?: boolean;
16
- rootPrefixCls: string;
17
- type: StepType;
18
- current: number;
19
- allPages: number;
20
- jumpPage: number;
21
- onClick: (value: number) => void;
22
- icons?: {
23
- prev?: ReactNode;
24
- next?: ReactNode;
25
- more?: ReactNode;
26
- };
27
- itemRender?: itemRenderType;
28
- }
29
- export declare enum StepType {
30
- previous = 0,
31
- next = 1
32
- }
33
- export interface StepPagerProps {
34
- pageItemStyle?: CSSProperties;
35
- disabled?: boolean;
36
- rootPrefixCls: string;
37
- type: StepType;
38
- current: number;
39
- allPages: number;
40
- onClick: (value: number) => void;
41
- icons?: {
42
- prev?: ReactNode;
43
- next?: ReactNode;
44
- more?: ReactNode;
45
- };
46
- itemRender?: itemRenderType;
47
- }
1
+ import React from 'react';
2
+ import { JumpPagerProps, PagerProps, StepPagerProps } from './interface';
48
3
  /**
49
4
  * default pager item
50
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PaginationProps } from './interface';
2
+ import { PaginationProps } from './interface';
3
3
  export interface PaginationState {
4
4
  current: number;
5
5
  pageSize: number;
@@ -132,3 +132,50 @@ export interface PaginationProps {
132
132
  mini?: boolean;
133
133
  pageOption?: boolean | ReactNode;
134
134
  }
135
+ type itemRenderType = (page: number, type: 'page' | 'more' | 'prev' | 'next', originElement: ReactNode) => ReactNode;
136
+ export interface PagerProps {
137
+ pageItemStyle?: CSSProperties;
138
+ activePageItemStyle?: CSSProperties;
139
+ disabled?: boolean;
140
+ rootPrefixCls: string;
141
+ pageNum: number;
142
+ current: number;
143
+ onClick: (value: number) => void;
144
+ itemRender?: itemRenderType;
145
+ }
146
+ export interface JumpPagerProps {
147
+ pageItemStyle?: CSSProperties;
148
+ disabled?: boolean;
149
+ rootPrefixCls: string;
150
+ type: StepType;
151
+ current: number;
152
+ allPages: number;
153
+ jumpPage: number;
154
+ onClick: (value: number) => void;
155
+ icons?: {
156
+ prev?: ReactNode;
157
+ next?: ReactNode;
158
+ more?: ReactNode;
159
+ };
160
+ itemRender?: itemRenderType;
161
+ }
162
+ export declare enum StepType {
163
+ previous = 0,
164
+ next = 1
165
+ }
166
+ export interface StepPagerProps {
167
+ pageItemStyle?: CSSProperties;
168
+ disabled?: boolean;
169
+ rootPrefixCls: string;
170
+ type: StepType;
171
+ current: number;
172
+ allPages: number;
173
+ onClick: (value: number) => void;
174
+ icons?: {
175
+ prev?: ReactNode;
176
+ next?: ReactNode;
177
+ more?: ReactNode;
178
+ };
179
+ itemRender?: itemRenderType;
180
+ }
181
+ export {};
@@ -1,4 +1,4 @@
1
- import type { PopconfirmProps } from './interface';
1
+ import { PopconfirmProps } from './interface';
2
2
  declare const PopconfirmComponent: import("react").ForwardRefExoticComponent<PopconfirmProps & {
3
3
  children?: import("react").ReactNode | undefined;
4
4
  } & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import type { PopoverProps } from './interface';
1
+ import { PopoverProps } from './interface';
2
2
  declare const PopoverComponent: import("react").ForwardRefExoticComponent<PopoverProps & {
3
3
  children?: import("react").ReactNode | undefined;
4
4
  } & import("react").RefAttributes<unknown>>;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import type { TooltipProps } from '../tooltip';
2
+ import { TooltipProps } from '../tooltip';
3
3
  /**
4
4
  * @title Popover
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { ProgressProps } from './interface';
1
+ import { ProgressProps } from './interface';
2
2
  declare const CircleProgress: (props: ProgressProps & {
3
3
  prefixCls?: string;
4
4
  width: number;
@@ -1,4 +1,4 @@
1
- import type { ProgressProps } from './interface';
1
+ import { ProgressProps } from './interface';
2
2
  declare const ProgressRef: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<unknown>>;
3
3
  export default ProgressRef;
4
4
  export type { ProgressProps };
@@ -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;