assui 2.3.2 → 2.3.4

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 (267) hide show
  1. package/es/button-drawer/index.js +1 -1
  2. package/es/button-modal/index.js +1 -1
  3. package/es/config-provider/index.js +1 -1
  4. package/es/copy-to-clipboard/index.js +1 -1
  5. package/es/highlight-textarea/style/index.css +7 -3
  6. package/es/img-crop/index.js +1 -1
  7. package/es/keep-tab/index.js +25 -26
  8. package/es/keep-tab/style/index.css +29 -6
  9. package/es/messages/en_US.js +1 -1
  10. package/es/messages/zh_TW.js +1 -1
  11. package/es/text-input/style/index.css +7 -3
  12. package/lib/button-drawer/index.js +1 -1
  13. package/lib/button-modal/index.js +1 -1
  14. package/lib/config-provider/index.js +1 -1
  15. package/lib/copy-to-clipboard/index.js +1 -1
  16. package/lib/highlight-textarea/style/index.css +7 -3
  17. package/lib/img-crop/index.js +1 -1
  18. package/lib/keep-tab/index.js +25 -27
  19. package/lib/keep-tab/style/index.css +29 -6
  20. package/lib/messages/en_US.js +1 -1
  21. package/lib/messages/zh_TW.js +1 -1
  22. package/lib/text-input/style/index.css +7 -3
  23. package/package.json +3 -3
  24. package/es/a-select/index.d.ts +0 -11
  25. package/es/a-select/style/index.d.ts +0 -2
  26. package/es/area-text/index.d.ts +0 -7
  27. package/es/area-text/style/index.d.ts +0 -1
  28. package/es/beautiful-dnd/index.d.ts +0 -2
  29. package/es/beautiful-dnd/style/index.d.ts +0 -1
  30. package/es/button-drawer/index.d.ts +0 -14
  31. package/es/button-drawer/style/index.d.ts +0 -1
  32. package/es/button-modal/index.d.ts +0 -14
  33. package/es/button-modal/style/index.d.ts +0 -1
  34. package/es/color-select/index.d.ts +0 -23
  35. package/es/color-select/style/index.d.ts +0 -2
  36. package/es/condition-input/index.d.ts +0 -17
  37. package/es/condition-input/parse2RegexOption.d.ts +0 -13
  38. package/es/condition-input/style/index.d.ts +0 -1
  39. package/es/config-provider/context.d.ts +0 -4
  40. package/es/config-provider/index.d.ts +0 -8
  41. package/es/config-provider/style/index.d.ts +0 -1
  42. package/es/copy-to-clipboard/index.d.ts +0 -22
  43. package/es/copy-to-clipboard/style/index.d.ts +0 -1
  44. package/es/highlight-textarea/HighlighedContents.d.ts +0 -7
  45. package/es/highlight-textarea/extractSpansOfClasses.d.ts +0 -15
  46. package/es/highlight-textarea/getRanges.d.ts +0 -2
  47. package/es/highlight-textarea/getType.d.ts +0 -2
  48. package/es/highlight-textarea/index.d.ts +0 -12
  49. package/es/highlight-textarea/style/index.d.ts +0 -1
  50. package/es/highlight-textarea/types.d.ts +0 -16
  51. package/es/highlight-words/index.d.ts +0 -3
  52. package/es/highlight-words/style/index.d.ts +0 -1
  53. package/es/img-crop/EasyCrop.d.ts +0 -6
  54. package/es/img-crop/getCroppedImg.d.ts +0 -6
  55. package/es/img-crop/index.d.ts +0 -53
  56. package/es/img-crop/style/index.d.ts +0 -3
  57. package/es/index.d.ts +0 -72
  58. package/es/json-editor/index.d.ts +0 -10
  59. package/es/json-editor/style/index.d.ts +0 -2
  60. package/es/keep-tab/index.d.ts +0 -29
  61. package/es/keep-tab/style/index.d.ts +0 -2
  62. package/es/label-auto-complete/index.d.ts +0 -8
  63. package/es/label-auto-complete/style/index.d.ts +0 -2
  64. package/es/label-condition-input/index.d.ts +0 -16
  65. package/es/label-condition-input/style/index.d.ts +0 -1
  66. package/es/label-customize-range-picker/defaultRadioList.d.ts +0 -25
  67. package/es/label-customize-range-picker/index.d.ts +0 -20
  68. package/es/label-customize-range-picker/style/index.d.ts +0 -5
  69. package/es/label-customize-range-picker/utils/index.d.ts +0 -2
  70. package/es/label-date-picker/index.d.ts +0 -7
  71. package/es/label-date-picker/style/index.d.ts +0 -2
  72. package/es/label-input/index.d.ts +0 -29
  73. package/es/label-input/style/index.d.ts +0 -1
  74. package/es/label-number-input/index.d.ts +0 -12
  75. package/es/label-number-input/style/index.d.ts +0 -1
  76. package/es/label-range-picker/index.d.ts +0 -8
  77. package/es/label-range-picker/style/index.d.ts +0 -2
  78. package/es/label-select/index.d.ts +0 -12
  79. package/es/label-select/style/index.d.ts +0 -2
  80. package/es/label-text-area/index.d.ts +0 -21
  81. package/es/label-text-area/style/index.d.ts +0 -1
  82. package/es/label-tree-select/index.d.ts +0 -11
  83. package/es/label-tree-select/style/index.d.ts +0 -2
  84. package/es/messages/ar_EG.d.ts +0 -26
  85. package/es/messages/bg_BG.d.ts +0 -26
  86. package/es/messages/cs_CZ.d.ts +0 -26
  87. package/es/messages/de_DE.d.ts +0 -26
  88. package/es/messages/en_US.d.ts +0 -26
  89. package/es/messages/es_ES.d.ts +0 -26
  90. package/es/messages/fi_FI.d.ts +0 -26
  91. package/es/messages/fr_FR.d.ts +0 -26
  92. package/es/messages/id_ID.d.ts +0 -26
  93. package/es/messages/index.d.ts +0 -27
  94. package/es/messages/it_IT.d.ts +0 -26
  95. package/es/messages/ja_JP.d.ts +0 -26
  96. package/es/messages/ko_KR.d.ts +0 -26
  97. package/es/messages/nb_NO.d.ts +0 -26
  98. package/es/messages/nl_NL.d.ts +0 -26
  99. package/es/messages/pt_PT.d.ts +0 -26
  100. package/es/messages/ro_RO.d.ts +0 -26
  101. package/es/messages/ru_RU.d.ts +0 -26
  102. package/es/messages/sv_SE.d.ts +0 -26
  103. package/es/messages/th_TH.d.ts +0 -26
  104. package/es/messages/vi_VN.d.ts +0 -26
  105. package/es/messages/zh_CN.d.ts +0 -26
  106. package/es/messages/zh_TW.d.ts +0 -26
  107. package/es/number-format-input/index.d.ts +0 -5
  108. package/es/number-format-input/style/index.d.ts +0 -1
  109. package/es/number-input/const/dataTypeEnum.d.ts +0 -3
  110. package/es/number-input/const/numberType.d.ts +0 -2
  111. package/es/number-input/index.d.ts +0 -42
  112. package/es/number-input/style/index.d.ts +0 -1
  113. package/es/number-input/utils.d.ts +0 -10
  114. package/es/rc-echart/core.d.ts +0 -29
  115. package/es/rc-echart/index.d.ts +0 -19
  116. package/es/rc-echart/style/index.d.ts +0 -1
  117. package/es/rc-motion/index.d.ts +0 -4
  118. package/es/rc-motion/style/index.d.ts +0 -1
  119. package/es/rc-qrcode/index.d.ts +0 -21
  120. package/es/rc-qrcode/style/index.d.ts +0 -1
  121. package/es/rc-qrcode/useQrcode.d.ts +0 -4
  122. package/es/rc-transition-group/index.d.ts +0 -2
  123. package/es/rc-transition-group/style/index.d.ts +0 -1
  124. package/es/resizable/index.d.ts +0 -4
  125. package/es/resizable/style/index.d.ts +0 -1
  126. package/es/rich-text-editor/index.d.ts +0 -37
  127. package/es/rich-text-editor/lang/zh_CN.d.ts +0 -407
  128. package/es/rich-text-editor/plugins/code/index.d.ts +0 -2
  129. package/es/rich-text-editor/style/index.d.ts +0 -1
  130. package/es/single-img-upload/index.d.ts +0 -22
  131. package/es/single-img-upload/style/index.d.ts +0 -3
  132. package/es/sortable-hoc/index.d.ts +0 -2
  133. package/es/sortable-hoc/style/index.d.ts +0 -1
  134. package/es/split-pane/index.d.ts +0 -59
  135. package/es/split-pane/style/index.d.ts +0 -1
  136. package/es/step-number-input/const/countType.d.ts +0 -2
  137. package/es/step-number-input/const/numberType.d.ts +0 -2
  138. package/es/step-number-input/index.d.ts +0 -43
  139. package/es/step-number-input/style/index.d.ts +0 -2
  140. package/es/table-col/index.d.ts +0 -8
  141. package/es/table-col/style/index.d.ts +0 -1
  142. package/es/text-area/index.d.ts +0 -12
  143. package/es/text-area/style/index.d.ts +0 -1
  144. package/es/text-input/index.d.ts +0 -5
  145. package/es/text-input/style/index.d.ts +0 -1
  146. package/lib/a-select/index.d.ts +0 -11
  147. package/lib/a-select/style/index.d.ts +0 -2
  148. package/lib/area-text/index.d.ts +0 -7
  149. package/lib/area-text/style/index.d.ts +0 -1
  150. package/lib/beautiful-dnd/index.d.ts +0 -2
  151. package/lib/beautiful-dnd/style/index.d.ts +0 -1
  152. package/lib/button-drawer/index.d.ts +0 -14
  153. package/lib/button-drawer/style/index.d.ts +0 -1
  154. package/lib/button-modal/index.d.ts +0 -14
  155. package/lib/button-modal/style/index.d.ts +0 -1
  156. package/lib/color-select/index.d.ts +0 -23
  157. package/lib/color-select/style/index.d.ts +0 -2
  158. package/lib/condition-input/index.d.ts +0 -17
  159. package/lib/condition-input/parse2RegexOption.d.ts +0 -13
  160. package/lib/condition-input/style/index.d.ts +0 -1
  161. package/lib/config-provider/context.d.ts +0 -4
  162. package/lib/config-provider/index.d.ts +0 -8
  163. package/lib/config-provider/style/index.d.ts +0 -1
  164. package/lib/copy-to-clipboard/index.d.ts +0 -22
  165. package/lib/copy-to-clipboard/style/index.d.ts +0 -1
  166. package/lib/highlight-textarea/HighlighedContents.d.ts +0 -7
  167. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +0 -15
  168. package/lib/highlight-textarea/getRanges.d.ts +0 -2
  169. package/lib/highlight-textarea/getType.d.ts +0 -2
  170. package/lib/highlight-textarea/index.d.ts +0 -12
  171. package/lib/highlight-textarea/style/index.d.ts +0 -1
  172. package/lib/highlight-textarea/types.d.ts +0 -16
  173. package/lib/highlight-words/index.d.ts +0 -3
  174. package/lib/highlight-words/style/index.d.ts +0 -1
  175. package/lib/img-crop/EasyCrop.d.ts +0 -6
  176. package/lib/img-crop/getCroppedImg.d.ts +0 -6
  177. package/lib/img-crop/index.d.ts +0 -53
  178. package/lib/img-crop/style/index.d.ts +0 -3
  179. package/lib/index.d.ts +0 -72
  180. package/lib/json-editor/index.d.ts +0 -10
  181. package/lib/json-editor/style/index.d.ts +0 -2
  182. package/lib/keep-tab/index.d.ts +0 -29
  183. package/lib/keep-tab/style/index.d.ts +0 -2
  184. package/lib/label-auto-complete/index.d.ts +0 -8
  185. package/lib/label-auto-complete/style/index.d.ts +0 -2
  186. package/lib/label-condition-input/index.d.ts +0 -16
  187. package/lib/label-condition-input/style/index.d.ts +0 -1
  188. package/lib/label-customize-range-picker/defaultRadioList.d.ts +0 -25
  189. package/lib/label-customize-range-picker/index.d.ts +0 -20
  190. package/lib/label-customize-range-picker/style/index.d.ts +0 -5
  191. package/lib/label-customize-range-picker/utils/index.d.ts +0 -2
  192. package/lib/label-date-picker/index.d.ts +0 -7
  193. package/lib/label-date-picker/style/index.d.ts +0 -2
  194. package/lib/label-input/index.d.ts +0 -29
  195. package/lib/label-input/style/index.d.ts +0 -1
  196. package/lib/label-number-input/index.d.ts +0 -12
  197. package/lib/label-number-input/style/index.d.ts +0 -1
  198. package/lib/label-range-picker/index.d.ts +0 -8
  199. package/lib/label-range-picker/style/index.d.ts +0 -2
  200. package/lib/label-select/index.d.ts +0 -12
  201. package/lib/label-select/style/index.d.ts +0 -2
  202. package/lib/label-text-area/index.d.ts +0 -21
  203. package/lib/label-text-area/style/index.d.ts +0 -1
  204. package/lib/label-tree-select/index.d.ts +0 -11
  205. package/lib/label-tree-select/style/index.d.ts +0 -2
  206. package/lib/messages/ar_EG.d.ts +0 -26
  207. package/lib/messages/bg_BG.d.ts +0 -26
  208. package/lib/messages/cs_CZ.d.ts +0 -26
  209. package/lib/messages/de_DE.d.ts +0 -26
  210. package/lib/messages/en_US.d.ts +0 -26
  211. package/lib/messages/es_ES.d.ts +0 -26
  212. package/lib/messages/fi_FI.d.ts +0 -26
  213. package/lib/messages/fr_FR.d.ts +0 -26
  214. package/lib/messages/id_ID.d.ts +0 -26
  215. package/lib/messages/index.d.ts +0 -27
  216. package/lib/messages/it_IT.d.ts +0 -26
  217. package/lib/messages/ja_JP.d.ts +0 -26
  218. package/lib/messages/ko_KR.d.ts +0 -26
  219. package/lib/messages/nb_NO.d.ts +0 -26
  220. package/lib/messages/nl_NL.d.ts +0 -26
  221. package/lib/messages/pt_PT.d.ts +0 -26
  222. package/lib/messages/ro_RO.d.ts +0 -26
  223. package/lib/messages/ru_RU.d.ts +0 -26
  224. package/lib/messages/sv_SE.d.ts +0 -26
  225. package/lib/messages/th_TH.d.ts +0 -26
  226. package/lib/messages/vi_VN.d.ts +0 -26
  227. package/lib/messages/zh_CN.d.ts +0 -26
  228. package/lib/messages/zh_TW.d.ts +0 -26
  229. package/lib/number-format-input/index.d.ts +0 -5
  230. package/lib/number-format-input/style/index.d.ts +0 -1
  231. package/lib/number-input/const/dataTypeEnum.d.ts +0 -3
  232. package/lib/number-input/const/numberType.d.ts +0 -2
  233. package/lib/number-input/index.d.ts +0 -42
  234. package/lib/number-input/style/index.d.ts +0 -1
  235. package/lib/number-input/utils.d.ts +0 -10
  236. package/lib/rc-echart/core.d.ts +0 -29
  237. package/lib/rc-echart/index.d.ts +0 -19
  238. package/lib/rc-echart/style/index.d.ts +0 -1
  239. package/lib/rc-motion/index.d.ts +0 -4
  240. package/lib/rc-motion/style/index.d.ts +0 -1
  241. package/lib/rc-qrcode/index.d.ts +0 -21
  242. package/lib/rc-qrcode/style/index.d.ts +0 -1
  243. package/lib/rc-qrcode/useQrcode.d.ts +0 -4
  244. package/lib/rc-transition-group/index.d.ts +0 -2
  245. package/lib/rc-transition-group/style/index.d.ts +0 -1
  246. package/lib/resizable/index.d.ts +0 -4
  247. package/lib/resizable/style/index.d.ts +0 -1
  248. package/lib/rich-text-editor/index.d.ts +0 -37
  249. package/lib/rich-text-editor/lang/zh_CN.d.ts +0 -407
  250. package/lib/rich-text-editor/plugins/code/index.d.ts +0 -2
  251. package/lib/rich-text-editor/style/index.d.ts +0 -1
  252. package/lib/single-img-upload/index.d.ts +0 -22
  253. package/lib/single-img-upload/style/index.d.ts +0 -3
  254. package/lib/sortable-hoc/index.d.ts +0 -2
  255. package/lib/sortable-hoc/style/index.d.ts +0 -1
  256. package/lib/split-pane/index.d.ts +0 -59
  257. package/lib/split-pane/style/index.d.ts +0 -1
  258. package/lib/step-number-input/const/countType.d.ts +0 -2
  259. package/lib/step-number-input/const/numberType.d.ts +0 -2
  260. package/lib/step-number-input/index.d.ts +0 -43
  261. package/lib/step-number-input/style/index.d.ts +0 -2
  262. package/lib/table-col/index.d.ts +0 -8
  263. package/lib/table-col/style/index.d.ts +0 -1
  264. package/lib/text-area/index.d.ts +0 -12
  265. package/lib/text-area/style/index.d.ts +0 -1
  266. package/lib/text-input/index.d.ts +0 -5
  267. package/lib/text-input/style/index.d.ts +0 -1
@@ -1,59 +0,0 @@
1
- import * as React from 'react';
2
- export declare type Size = string | number;
3
- export declare type Split = 'vertical' | 'horizontal';
4
- export declare type SplitPaneProps = {
5
- /**
6
- * 是否允许拖动
7
- * @default true
8
- */
9
- allowResize?: boolean;
10
- /** 自定义组件类名 */
11
- className?: string;
12
- /**
13
- * 设置主体窗口
14
- * @default first
15
- */
16
- primary?: 'first' | 'second';
17
- /**
18
- * 窗口最小大小
19
- * @default 50
20
- */
21
- minSize?: string | number;
22
- /** 窗口最大大小 */
23
- maxSize?: string | number;
24
- /** 默认窗口大小 */
25
- defaultSize?: string | number;
26
- /** 窗口大小 */
27
- size?: string | number;
28
- /**
29
- * 拆分方式
30
- * @default vertical
31
- */
32
- split?: 'vertical' | 'horizontal';
33
- /** 拖拽开始回调 */
34
- onDragStarted?: () => void;
35
- /** 拖拽完成回调 */
36
- onDragFinished?: (newSize: number) => void;
37
- /** 拖拽过程回调 */
38
- onChange?: (newSize: number) => void;
39
- /** 拖拽条单击回调 */
40
- onResizerClick?: (event: MouseEvent) => void;
41
- /** 拖拽条双击回调 */
42
- onResizerDoubleClick?: (event: MouseEvent) => void;
43
- /** 总窗口样式 */
44
- style?: React.CSSProperties;
45
- /** 拖拽条样式 */
46
- resizerStyle?: React.CSSProperties;
47
- /** 每个窗口共同样式 */
48
- paneStyle?: React.CSSProperties;
49
- /** 拆分窗口1样式 */
50
- pane1Style?: React.CSSProperties;
51
- /** 拆分窗口2样式 */
52
- pane2Style?: React.CSSProperties;
53
- /** 拆分窗口2样式 */
54
- resizerClassName?: string;
55
- /** 拖动固定步进值 */
56
- step?: number;
57
- };
58
- declare const _default: (props: SplitPaneProps) => JSX.Element;
59
- export default _default;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,2 +0,0 @@
1
- export declare const PLUS = "+";
2
- export declare const MINUS = "-";
@@ -1,2 +0,0 @@
1
- export declare const INT = "int";
2
- export declare const FLOAT = "float";
@@ -1,43 +0,0 @@
1
- import * as React from 'react';
2
- export interface StepNumberInputProps {
3
- /** 输入框的内容 */
4
- value?: string | number;
5
- /** 输入数据的类型 */
6
- numberType?: 'int' | 'float';
7
- /** 精度,只对float有效 */
8
- precision: number;
9
- /** 内容最大长度 */
10
- maxLength?: number;
11
- /** 指定输入框展示值的格式 */
12
- formatter?: (value: string) => string;
13
- /** 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用 */
14
- parser?: (value: string) => string;
15
- /** 是否允许输入负数 */
16
- enableMinus?: boolean;
17
- /** 步进, 每次点击+/- 多少 */
18
- step: string | number;
19
- /** 变化回调 */
20
- onChange?: (value: string) => void;
21
- /** 失去焦点回调 */
22
- onBlur?: (value: string) => void;
23
- /** 最大值 */
24
- max?: number;
25
- /** 最小值 */
26
- min?: number;
27
- /** 前缀 */
28
- prefix?: React.ReactNode;
29
- /** 后缀 */
30
- suffix?: React.ReactNode;
31
- /** 可以点击清除图标删除内容 */
32
- allowClear?: boolean;
33
- }
34
- declare const StepNumberInput: {
35
- (props: StepNumberInputProps): JSX.Element;
36
- defaultProps: {
37
- numberType: string;
38
- precision: number;
39
- enableMinus: boolean;
40
- step: number;
41
- };
42
- };
43
- export default StepNumberInput;
@@ -1,2 +0,0 @@
1
- import 'antd/lib/input/style';
2
- import './index.less';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface TableColProps {
3
- children: React.ReactNode;
4
- width?: number;
5
- className?: string;
6
- }
7
- declare const TableCol: React.FC<TableColProps>;
8
- export default TableCol;
@@ -1 +0,0 @@
1
-
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { TextAreaProps } from 'antd/lib/input';
3
- export interface TAreaProps extends Omit<TextAreaProps, 'onChange'> {
4
- /** 输入框内容 */
5
- value?: any;
6
- /** 指定输入框展示值的格式 */
7
- formatter?: (value: string) => string;
8
- /** 变化回调 */
9
- onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
10
- }
11
- declare const TextArea: ({ value, onChange, formatter, ...restProps }: TAreaProps) => JSX.Element;
12
- export default TextArea;
@@ -1 +0,0 @@
1
- import 'antd/lib/input/style';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ConditionInputProps } from '../condition-input';
3
- export declare type TextInputProps = ConditionInputProps;
4
- declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
5
- export default TextInput;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { SelectProps } from 'antd/lib/select';
3
- export interface ASelectProps extends SelectProps {
4
- className?: string;
5
- valueRender?: (value: any) => React.ReactNode;
6
- }
7
- declare const ASelect: {
8
- (props: ASelectProps): JSX.Element;
9
- Option: import("rc-select/lib/Option").OptionFC;
10
- };
11
- export default ASelect;
@@ -1,2 +0,0 @@
1
- import 'antd/lib/select/style';
2
- import './index.less';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare type AreaTextProps = {
3
- className?: string;
4
- value?: string;
5
- };
6
- declare const AreaText: React.FC<AreaTextProps>;
7
- export default AreaText;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,2 +0,0 @@
1
- import * as beautifulDnd from 'react-beautiful-dnd';
2
- export default beautifulDnd;
@@ -1 +0,0 @@
1
-
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { DrawerProps } from 'antd/lib/drawer';
3
- export declare type DrawerAction = {
4
- close: () => void;
5
- open: () => void;
6
- };
7
- export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
8
- onClose?: () => void;
9
- onOpen?: () => void;
10
- trigger: React.ReactElement;
11
- children: ((v: DrawerAction) => React.ReactElement) | React.ReactElement;
12
- }
13
- declare const ForwardRefButtonDrawer: React.ForwardRefExoticComponent<ButtonDrawerProps & React.RefAttributes<unknown>>;
14
- export default ForwardRefButtonDrawer;
@@ -1 +0,0 @@
1
- import 'antd/lib/drawer/style';
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import type { ModalProps } from 'antd/lib/modal';
3
- export interface ModalAction {
4
- open: () => void;
5
- close: () => void;
6
- }
7
- export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
8
- onClose?: () => void;
9
- onOpen?: () => void;
10
- trigger?: React.ReactElement;
11
- children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
12
- }
13
- declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
14
- export default ForwardRefButtonModal;
@@ -1 +0,0 @@
1
- import 'antd/lib/modal/style';
@@ -1,23 +0,0 @@
1
- import type { SketchPickerProps } from 'react-color';
2
- import React from 'react';
3
- import type { TriggerProps } from 'rc-trigger';
4
- export declare type ColorSelectProps = {
5
- value?: {
6
- hex?: string;
7
- rgb?: string;
8
- };
9
- /** 自定义总容器 class */
10
- classNameWrap?: string;
11
- /** 自定义其余描述展示 */
12
- renderExtra?: (value: ColorSelectProps['value']) => React.ReactElement;
13
- /** 自定义value class */
14
- className?: string;
15
- /** 组件react-color的props */
16
- reactColorProps?: Omit<SketchPickerProps, 'onChange'>;
17
- /** 组件rc-trigger */
18
- RcTriggerProps?: Omit<TriggerProps, 'popup'>;
19
- /** 自定义value的展示 */
20
- renderValueNode?: (value: ColorSelectProps['value']) => React.ReactElement;
21
- };
22
- declare const ColorSelect: React.FC<ColorSelectProps>;
23
- export default ColorSelect;
@@ -1,2 +0,0 @@
1
- import 'rc-trigger/assets/index.css';
2
- import './index.less';
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import type { InputProps } from 'antd/lib/input';
3
- export interface ConditionInputProps extends Omit<InputProps, 'onChange'> {
4
- /** 过滤的正则条件 */
5
- regexp?: RegExp | (RegExp | string | {
6
- pattern: RegExp;
7
- replacement?: string;
8
- })[];
9
- /** 指定输入框展示值的格式 */
10
- formatter?: (value: string) => string;
11
- /** 变化回调 */
12
- onChange?: (value: string) => void;
13
- /** 输入框内容 */
14
- value?: string;
15
- }
16
- declare const ConditionInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
17
- export default ConditionInput;
@@ -1,13 +0,0 @@
1
- export interface RegexOptionType {
2
- isValid: boolean;
3
- replacement: string;
4
- }
5
- declare type regexParamsType = RegExp | string | {
6
- pattern: RegExp;
7
- replacement?: string;
8
- };
9
- export interface ResultType extends RegexOptionType {
10
- pattern: RegExp;
11
- }
12
- declare const parse2RegexOption: (regex: regexParamsType) => ResultType;
13
- export default parse2RegexOption;
@@ -1 +0,0 @@
1
- import 'antd/lib/input/style';
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { LangType } from '../messages';
3
- declare const LocaleContext: import("react").Context<LangType>;
4
- export default LocaleContext;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare type LocaleType = 'en-US' | 'zh-CN' | 'zh-Hant' | 'bg' | 'cs' | 'de' | 'es' | 'fr' | 'fi' | 'it' | 'id' | 'ja' | 'ko' | 'nl' | 'nb-NO' | 'ru' | 'sv' | 'pt' | 'ar' | 'th' | 'ro' | 'vi';
3
- export interface ConfigProviderProps {
4
- children?: React.ReactNode;
5
- locale: LocaleType;
6
- }
7
- declare const ConfigProvider: React.FC<ConfigProviderProps>;
8
- export default ConfigProvider;
@@ -1 +0,0 @@
1
-
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { TooltipProps } from 'antd/lib/tooltip';
3
- export interface CopyToClipboardProps {
4
- /** 需要复制的字符串 */
5
- text: string;
6
- /** 触发复制事件的元素 */
7
- children: React.ReactElement;
8
- /** 文本被复制时候的回调 */
9
- onCopy?: (text: string, result: boolean) => void;
10
- /** ant design Tooltip props */
11
- tooltipProps?: Omit<TooltipProps, 'title'>;
12
- /** 复制成功的Tooltip提示文案 */
13
- tooltipTitle?: React.ReactNode;
14
- /** 依赖底层组件 https://github.com/sudodoki/copy-to-clipboard 的 options */
15
- options?: {
16
- debug?: boolean;
17
- message?: string;
18
- format?: string;
19
- };
20
- }
21
- declare const _default: React.MemoExoticComponent<(props: CopyToClipboardProps) => JSX.Element>;
22
- export default _default;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,7 +0,0 @@
1
- import type { HighlightType } from './types';
2
- export interface HighlighedContentsProps {
3
- value: string;
4
- highlight: HighlightType;
5
- }
6
- declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
7
- export default HighlighedContents;
@@ -1,15 +0,0 @@
1
- import type { RangesType } from './types';
2
- declare class Span {
3
- beginIndex: number;
4
- endIndex: number;
5
- markClasses: Set<string>;
6
- isMark: boolean;
7
- text: string;
8
- constructor(text: string, beginIndex: number);
9
- setMark(className: string): void;
10
- carve(beginIndex2: number): Span;
11
- get className(): string;
12
- render(): JSX.Element;
13
- }
14
- export default function extractSpansOfClasses(value: string, ranges: RangesType): Span[];
15
- export {};
@@ -1,2 +0,0 @@
1
- import type { HighlightType, RangesType } from './types';
2
- export default function getRanges(input: string, highlight: HighlightType): RangesType;
@@ -1,2 +0,0 @@
1
- import type { HighlightType, TypeList } from './types';
2
- export default function getType(instance: HighlightType): TypeList;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { HighlighedContentsProps } from './HighlighedContents';
3
- import type { HighlightType } from './types';
4
- export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
5
- prefixCls?: string;
6
- className?: string;
7
- textAreaClassName?: string;
8
- onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
9
- highlight: HighlightType;
10
- }
11
- declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
12
- export default HighlightWithinTextarea;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,16 +0,0 @@
1
- export declare type StringType = string;
2
- export declare type NumberArrayType = number[];
3
- export declare type RegExpType = RegExp;
4
- export declare type FuncType = (input: string) => string;
5
- export declare type HighlightInstanceType = StringType | NumberArrayType | RegExpType | FuncType;
6
- export declare type AdmixArrayType = HighlightInstanceType[];
7
- export declare type ObjectType = {
8
- highlight: HighlightInstanceType;
9
- className?: string;
10
- };
11
- export declare type CustomArrayArrayType = ObjectType[];
12
- export declare type RangesType = (number | {
13
- className?: string;
14
- })[][];
15
- export declare type HighlightType = StringType | NumberArrayType | RegExpType | FuncType | HighlightInstanceType | AdmixArrayType | ObjectType | CustomArrayArrayType;
16
- export declare type TypeList = 'falsely' | 'range' | 'array' | 'regexp' | 'custom' | 'other' | 'function' | 'string';
@@ -1,3 +0,0 @@
1
- import HighlightWords, { FindChunks, Chunk, HighlighterProps } from 'react-highlight-words';
2
- export { FindChunks, Chunk, HighlighterProps };
3
- export default HighlightWords;
@@ -1 +0,0 @@
1
-
@@ -1,6 +0,0 @@
1
- import type { CropperProps } from 'react-easy-crop';
2
- export interface EasyCropProps extends Omit<CropperProps, 'onCropChange' | 'mediaProps' | 'crop' | 'zoomSpeed' | 'restrictPosition' | 'style'> {
3
- onComplete: (value: any) => void;
4
- }
5
- declare const EasyCrop: (props: EasyCropProps) => JSX.Element;
6
- export default EasyCrop;
@@ -1,6 +0,0 @@
1
- interface pixelCropType {
2
- width: number;
3
- height: number;
4
- }
5
- declare function getCroppedImg(imageSrc: string, pixelCrop: pixelCropType, name: string, type: string): Promise<unknown>;
6
- export default getCroppedImg;
@@ -1,53 +0,0 @@
1
- import * as React from 'react';
2
- import type { CropperProps } from 'react-easy-crop';
3
- import getCroppedImg from './getCroppedImg';
4
- import './style/index.less';
5
- export interface RcFile extends File {
6
- uid: string;
7
- }
8
- export interface ImgCropProps {
9
- prefix: string;
10
- aspect: number;
11
- shape: 'rect' | 'round';
12
- grid?: boolean;
13
- quality?: number;
14
- zoom?: boolean;
15
- rotate?: boolean;
16
- minZoom: number;
17
- maxZoom: number;
18
- fillColor: string;
19
- modalTitle: string;
20
- modalWidth?: string | number;
21
- modalCancel?: string;
22
- modalOk?: string;
23
- zipImg?: {
24
- width: number;
25
- height: number;
26
- };
27
- beforeCrop?: (file: RcFile, fileList: RcFile[]) => boolean;
28
- cropperProps?: CropperProps;
29
- children?: React.ReactElement;
30
- }
31
- export declare type Area = {
32
- width: number;
33
- height: number;
34
- x: number;
35
- y: number;
36
- };
37
- declare const ImgCrop: {
38
- (props: ImgCropProps): JSX.Element;
39
- defaultProps: {
40
- prefix: string;
41
- aspect: number;
42
- shape: string;
43
- grid: boolean;
44
- quality: number;
45
- zoom: boolean;
46
- rotate: boolean;
47
- minZoom: number;
48
- maxZoom: number;
49
- fillColor: string;
50
- };
51
- getCroppedImg: typeof getCroppedImg;
52
- };
53
- export default ImgCrop;
@@ -1,3 +0,0 @@
1
- import 'antd/lib/slider/style';
2
- import 'antd/lib/modal/style';
3
- import './index.less';
package/lib/index.d.ts DELETED
@@ -1,72 +0,0 @@
1
- export type { ButtonDrawerProps } from './button-drawer';
2
- export { default as ButtonDrawer } from './button-drawer';
3
- export type { ButtonModalProps } from './button-modal';
4
- export { default as ButtonModal } from './button-modal';
5
- export type { ConditionInputProps } from './condition-input';
6
- export { default as ConditionInput } from './condition-input';
7
- export type { ConfigProviderProps } from './config-provider';
8
- export { default as ConfigProvider } from './config-provider';
9
- export { default as NumberFormatInput } from './number-format-input';
10
- export type { NumberFormatInputProps } from './number-format-input';
11
- export type { CopyToClipboardProps } from './copy-to-clipboard';
12
- export { default as CopyToClipboard } from './copy-to-clipboard';
13
- export type { HighlightTextareaProps } from './highlight-textarea';
14
- export { default as HighlightTextarea } from './highlight-textarea';
15
- export type { FindChunks, Chunk, HighlighterProps } from './highlight-words';
16
- export { default as HighlightWords } from './highlight-words';
17
- export type { ImgCropProps } from './img-crop';
18
- export { default as ImgCrop } from './img-crop';
19
- export type { KeepTabProps } from './keep-tab';
20
- export { default as KeepTab } from './keep-tab';
21
- export type { CSSMotionProps, CSSMotionList, CSSMotionListProps, MotionEventHandler, MotionEndEventHandler, } from './rc-motion';
22
- export { default as RcMotion } from './rc-motion';
23
- export type { NumberInputProps } from './number-input';
24
- export { default as NumberInput } from './number-input';
25
- export type { StepNumberInputProps } from './step-number-input';
26
- export { default as StepNumberInput } from './step-number-input';
27
- export type { RcEchartPropsType } from './rc-echart';
28
- export { default as RcEcharts } from './rc-echart';
29
- export type { RcQrcodeProps } from './rc-qrcode';
30
- export { default as RcQRcode } from './rc-qrcode';
31
- export { default as RcTransitionGroup } from './rc-transition-group';
32
- export type { SingleImgUploadProps } from './single-img-upload';
33
- export { default as SingleImgUpload } from './single-img-upload';
34
- export { default as sortableHoc } from './sortable-hoc';
35
- export type { SplitPaneProps } from './split-pane';
36
- export { default as SplitPane } from './split-pane';
37
- export type { TAreaProps } from './text-area';
38
- export { default as TextArea } from './text-area';
39
- export type { TextInputProps } from './text-input';
40
- export { default as TextInput } from './text-input';
41
- export type { LabelInputProps } from './label-input';
42
- export { default as LabelInput } from './label-input';
43
- export type { ColorSelectProps } from './color-select';
44
- export { default as ColorSelect } from './color-select';
45
- export type { LabelSelectProps } from './label-select';
46
- export { default as LabelSelect } from './label-select';
47
- export type { ASelectProps } from './a-select';
48
- export { default as ASelect } from './a-select';
49
- export type { LabelTextAreaProps } from './label-text-area';
50
- export { default as LabelTextArea } from './label-text-area';
51
- export type { AreaTextProps } from './area-text';
52
- export { default as AreaText } from './area-text';
53
- export type { JSONEditorProps } from './json-editor';
54
- export { default as JsonEditor } from './json-editor';
55
- export type { LabelRangePickerProps } from './label-range-picker';
56
- export { default as LabelRangePicker } from './label-range-picker';
57
- export type { LabelDatePickerProps } from './label-date-picker';
58
- export { default as LabelDatePicker } from './label-date-picker';
59
- export type { LabelAutoCompleteProps } from './label-auto-complete';
60
- export { default as LabelAutoComplete } from './label-auto-complete';
61
- export type { LabelNumberInputProps } from './label-number-input';
62
- export { default as LabelNumberInput } from './label-number-input';
63
- export type { LabelConditionInputProps } from './label-condition-input';
64
- export { default as LabelConditionInput } from './label-condition-input';
65
- export type { LabelTreeSelectProps } from './label-tree-select';
66
- export { default as LabelTreeSelect } from './label-tree-select';
67
- export type { LabelCustomizeRangePickerProps } from './label-customize-range-picker';
68
- export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
69
- export type { RichTextEditorProps } from './rich-text-editor';
70
- export { default as RichTextEditor } from './rich-text-editor';
71
- export { default as BeautifulDnd } from './beautiful-dnd';
72
- export { default as Resizable } from './resizable';
@@ -1,10 +0,0 @@
1
- import type { JSONEditorOptions } from 'jsoneditor';
2
- import React from 'react';
3
- export declare type JSONEditorProps = {
4
- className?: string;
5
- options?: JSONEditorOptions;
6
- onChange?: (value: string) => void;
7
- value?: string;
8
- };
9
- declare const ForwardRefJsonEditor: React.ForwardRefExoticComponent<JSONEditorProps & React.RefAttributes<unknown>>;
10
- export default ForwardRefJsonEditor;
@@ -1,2 +0,0 @@
1
- import 'jsoneditor/dist/jsoneditor.min.css';
2
- import './index.less';
@@ -1,29 +0,0 @@
1
- import * as React from 'react';
2
- import type { BadgeProps } from 'antd/lib/badge';
3
- import type { TabPaneProps, TabsProps } from 'antd/lib/tabs';
4
- export interface KeepTabProps extends TabsProps {
5
- /** 由TabPane组成的children */
6
- children: React.ReactNode;
7
- /** 初始化选中面板的 key,如果没有设置 activeKey */
8
- defaultActiveKey?: string;
9
- /** 保存激活 tab 面板的的key名 */
10
- saveActiveKeyName: string;
11
- /** 当前激活 tab 面板的 key */
12
- activeKey?: string;
13
- /** 切换面板的回调 */
14
- onChange?: (activeKey: string) => void;
15
- /** antd Badge组件除count意外的所有props */
16
- badgeProps?: Omit<BadgeProps, 'count'>;
17
- }
18
- export interface SelfTabPaneProps extends TabPaneProps {
19
- count: Pick<BadgeProps, 'count'>;
20
- }
21
- declare const KeepTab: {
22
- (props: KeepTabProps): JSX.Element;
23
- defaultProps: {
24
- saveActiveKeyName: string;
25
- };
26
- displayName: string;
27
- TabPane: typeof import("rc-tabs").TabPane;
28
- };
29
- export default KeepTab;
@@ -1,2 +0,0 @@
1
- import 'antd/lib/tabs/style';
2
- import 'antd/lib/badge/style';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { AutoCompleteProps } from 'antd/lib/auto-complete';
3
- export interface LabelAutoCompleteProps extends AutoCompleteProps {
4
- label?: React.ReactNode;
5
- className?: string;
6
- }
7
- declare const LabelAutoComplete: (props: LabelAutoCompleteProps) => JSX.Element;
8
- export default LabelAutoComplete;
@@ -1,2 +0,0 @@
1
- import 'antd/lib/select/style';
2
- import './index.less';