assui 2.3.5 → 2.3.7

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 (261) hide show
  1. package/es/a-select/index.d.ts +11 -0
  2. package/es/a-select/style/index.d.ts +2 -0
  3. package/es/area-text/index.d.ts +7 -0
  4. package/es/area-text/style/index.d.ts +1 -0
  5. package/es/beautiful-dnd/index.d.ts +2 -0
  6. package/es/beautiful-dnd/style/index.d.ts +1 -0
  7. package/es/button-drawer/index.d.ts +14 -0
  8. package/es/button-drawer/index.js +1 -1
  9. package/es/button-drawer/style/index.d.ts +1 -0
  10. package/es/button-modal/index.d.ts +14 -0
  11. package/es/button-modal/index.js +1 -1
  12. package/es/button-modal/style/index.d.ts +1 -0
  13. package/es/color-select/index.d.ts +23 -0
  14. package/es/color-select/style/index.d.ts +2 -0
  15. package/es/condition-input/index.d.ts +17 -0
  16. package/es/condition-input/parse2RegexOption.d.ts +13 -0
  17. package/es/condition-input/style/index.d.ts +1 -0
  18. package/es/config-provider/context.d.ts +4 -0
  19. package/es/config-provider/index.d.ts +8 -0
  20. package/es/config-provider/style/index.d.ts +1 -0
  21. package/es/copy-to-clipboard/index.d.ts +22 -0
  22. package/es/copy-to-clipboard/index.js +1 -1
  23. package/es/copy-to-clipboard/style/index.d.ts +1 -0
  24. package/es/highlight-textarea/HighlighedContents.d.ts +7 -0
  25. package/es/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
  26. package/es/highlight-textarea/getRanges.d.ts +2 -0
  27. package/es/highlight-textarea/getType.d.ts +2 -0
  28. package/es/highlight-textarea/index.d.ts +12 -0
  29. package/es/highlight-textarea/style/index.css +3 -7
  30. package/es/highlight-textarea/style/index.d.ts +1 -0
  31. package/es/highlight-textarea/types.d.ts +16 -0
  32. package/es/highlight-words/index.d.ts +3 -0
  33. package/es/highlight-words/style/index.d.ts +1 -0
  34. package/es/img-crop/EasyCrop.d.ts +6 -0
  35. package/es/img-crop/getCroppedImg.d.ts +6 -0
  36. package/es/img-crop/index.d.ts +53 -0
  37. package/es/img-crop/index.js +1 -1
  38. package/es/img-crop/style/index.d.ts +3 -0
  39. package/es/index.d.ts +72 -0
  40. package/es/json-editor/index.d.ts +10 -0
  41. package/es/json-editor/style/index.d.ts +2 -0
  42. package/es/keep-tab/index.d.ts +29 -0
  43. package/es/keep-tab/index.js +26 -25
  44. package/es/keep-tab/style/index.css +6 -29
  45. package/es/keep-tab/style/index.d.ts +2 -0
  46. package/es/label-auto-complete/index.d.ts +8 -0
  47. package/es/label-auto-complete/style/index.d.ts +2 -0
  48. package/es/label-condition-input/index.d.ts +16 -0
  49. package/es/label-condition-input/style/index.d.ts +1 -0
  50. package/es/label-customize-range-picker/defaultRadioList.d.ts +25 -0
  51. package/es/label-customize-range-picker/index.d.ts +20 -0
  52. package/es/label-customize-range-picker/style/index.d.ts +5 -0
  53. package/es/label-customize-range-picker/utils/index.d.ts +2 -0
  54. package/es/label-date-picker/index.d.ts +7 -0
  55. package/es/label-date-picker/style/index.d.ts +2 -0
  56. package/es/label-input/index.d.ts +29 -0
  57. package/es/label-input/style/index.d.ts +1 -0
  58. package/es/label-number-input/index.d.ts +12 -0
  59. package/es/label-number-input/style/index.d.ts +1 -0
  60. package/es/label-range-picker/index.d.ts +8 -0
  61. package/es/label-range-picker/style/index.d.ts +2 -0
  62. package/es/label-select/index.d.ts +12 -0
  63. package/es/label-select/style/index.d.ts +2 -0
  64. package/es/label-text-area/index.d.ts +21 -0
  65. package/es/label-text-area/style/index.d.ts +1 -0
  66. package/es/label-tree-select/index.d.ts +11 -0
  67. package/es/label-tree-select/style/index.d.ts +2 -0
  68. package/es/messages/ar_EG.d.ts +26 -0
  69. package/es/messages/bg_BG.d.ts +26 -0
  70. package/es/messages/cs_CZ.d.ts +26 -0
  71. package/es/messages/de_DE.d.ts +26 -0
  72. package/es/messages/en_US.d.ts +26 -0
  73. package/es/messages/es_ES.d.ts +26 -0
  74. package/es/messages/fi_FI.d.ts +26 -0
  75. package/es/messages/fr_FR.d.ts +26 -0
  76. package/es/messages/id_ID.d.ts +26 -0
  77. package/es/messages/index.d.ts +27 -0
  78. package/es/messages/it_IT.d.ts +26 -0
  79. package/es/messages/ja_JP.d.ts +26 -0
  80. package/es/messages/ko_KR.d.ts +26 -0
  81. package/es/messages/nb_NO.d.ts +26 -0
  82. package/es/messages/nl_NL.d.ts +26 -0
  83. package/es/messages/pt_PT.d.ts +26 -0
  84. package/es/messages/ro_RO.d.ts +26 -0
  85. package/es/messages/ru_RU.d.ts +26 -0
  86. package/es/messages/sv_SE.d.ts +26 -0
  87. package/es/messages/th_TH.d.ts +26 -0
  88. package/es/messages/vi_VN.d.ts +26 -0
  89. package/es/messages/zh_CN.d.ts +26 -0
  90. package/es/messages/zh_TW.d.ts +26 -0
  91. package/es/number-format-input/index.d.ts +5 -0
  92. package/es/number-format-input/style/index.d.ts +1 -0
  93. package/es/number-input/const/dataTypeEnum.d.ts +3 -0
  94. package/es/number-input/const/numberType.d.ts +2 -0
  95. package/es/number-input/index.d.ts +42 -0
  96. package/es/number-input/style/index.d.ts +1 -0
  97. package/es/number-input/utils.d.ts +10 -0
  98. package/es/rc-echart/core.d.ts +29 -0
  99. package/es/rc-echart/index.d.ts +19 -0
  100. package/es/rc-echart/style/index.d.ts +1 -0
  101. package/es/rc-motion/index.d.ts +4 -0
  102. package/es/rc-motion/style/index.d.ts +1 -0
  103. package/es/rc-qrcode/index.d.ts +21 -0
  104. package/es/rc-qrcode/style/index.d.ts +1 -0
  105. package/es/rc-qrcode/useQrcode.d.ts +4 -0
  106. package/es/rc-transition-group/index.d.ts +2 -0
  107. package/es/rc-transition-group/style/index.d.ts +1 -0
  108. package/es/resizable/index.d.ts +4 -0
  109. package/es/resizable/style/index.d.ts +1 -0
  110. package/es/rich-text-editor/index.d.ts +37 -0
  111. package/es/rich-text-editor/lang/zh_CN.d.ts +407 -0
  112. package/es/rich-text-editor/plugins/code/index.d.ts +2 -0
  113. package/es/rich-text-editor/style/index.d.ts +1 -0
  114. package/es/single-img-upload/index.d.ts +22 -0
  115. package/es/single-img-upload/style/index.d.ts +3 -0
  116. package/es/sortable-hoc/index.d.ts +2 -0
  117. package/es/sortable-hoc/style/index.d.ts +1 -0
  118. package/es/split-pane/index.d.ts +59 -0
  119. package/es/split-pane/style/index.d.ts +1 -0
  120. package/es/step-number-input/const/countType.d.ts +2 -0
  121. package/es/step-number-input/const/numberType.d.ts +2 -0
  122. package/es/step-number-input/index.d.ts +43 -0
  123. package/es/step-number-input/style/index.d.ts +2 -0
  124. package/es/table-col/index.d.ts +8 -0
  125. package/es/table-col/style/index.d.ts +1 -0
  126. package/es/text-area/index.d.ts +12 -0
  127. package/es/text-area/style/index.d.ts +1 -0
  128. package/es/text-input/index.d.ts +5 -0
  129. package/es/text-input/style/index.css +3 -7
  130. package/es/text-input/style/index.d.ts +1 -0
  131. package/lib/a-select/index.d.ts +11 -0
  132. package/lib/a-select/style/index.d.ts +2 -0
  133. package/lib/area-text/index.d.ts +7 -0
  134. package/lib/area-text/style/index.d.ts +1 -0
  135. package/lib/beautiful-dnd/index.d.ts +2 -0
  136. package/lib/beautiful-dnd/style/index.d.ts +1 -0
  137. package/lib/button-drawer/index.d.ts +14 -0
  138. package/lib/button-drawer/index.js +1 -1
  139. package/lib/button-drawer/style/index.d.ts +1 -0
  140. package/lib/button-modal/index.d.ts +14 -0
  141. package/lib/button-modal/index.js +1 -1
  142. package/lib/button-modal/style/index.d.ts +1 -0
  143. package/lib/color-select/index.d.ts +23 -0
  144. package/lib/color-select/style/index.d.ts +2 -0
  145. package/lib/condition-input/index.d.ts +17 -0
  146. package/lib/condition-input/parse2RegexOption.d.ts +13 -0
  147. package/lib/condition-input/style/index.d.ts +1 -0
  148. package/lib/config-provider/context.d.ts +4 -0
  149. package/lib/config-provider/index.d.ts +8 -0
  150. package/lib/config-provider/style/index.d.ts +1 -0
  151. package/lib/copy-to-clipboard/index.d.ts +22 -0
  152. package/lib/copy-to-clipboard/index.js +1 -1
  153. package/lib/copy-to-clipboard/style/index.d.ts +1 -0
  154. package/lib/highlight-textarea/HighlighedContents.d.ts +7 -0
  155. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
  156. package/lib/highlight-textarea/getRanges.d.ts +2 -0
  157. package/lib/highlight-textarea/getType.d.ts +2 -0
  158. package/lib/highlight-textarea/index.d.ts +12 -0
  159. package/lib/highlight-textarea/style/index.css +3 -7
  160. package/lib/highlight-textarea/style/index.d.ts +1 -0
  161. package/lib/highlight-textarea/types.d.ts +16 -0
  162. package/lib/highlight-words/index.d.ts +3 -0
  163. package/lib/highlight-words/style/index.d.ts +1 -0
  164. package/lib/img-crop/EasyCrop.d.ts +6 -0
  165. package/lib/img-crop/getCroppedImg.d.ts +6 -0
  166. package/lib/img-crop/index.d.ts +53 -0
  167. package/lib/img-crop/index.js +1 -1
  168. package/lib/img-crop/style/index.d.ts +3 -0
  169. package/lib/index.d.ts +72 -0
  170. package/lib/json-editor/index.d.ts +10 -0
  171. package/lib/json-editor/style/index.d.ts +2 -0
  172. package/lib/keep-tab/index.d.ts +29 -0
  173. package/lib/keep-tab/index.js +27 -25
  174. package/lib/keep-tab/style/index.css +6 -29
  175. package/lib/keep-tab/style/index.d.ts +2 -0
  176. package/lib/label-auto-complete/index.d.ts +8 -0
  177. package/lib/label-auto-complete/style/index.d.ts +2 -0
  178. package/lib/label-condition-input/index.d.ts +16 -0
  179. package/lib/label-condition-input/style/index.d.ts +1 -0
  180. package/lib/label-customize-range-picker/defaultRadioList.d.ts +25 -0
  181. package/lib/label-customize-range-picker/index.d.ts +20 -0
  182. package/lib/label-customize-range-picker/style/index.d.ts +5 -0
  183. package/lib/label-customize-range-picker/utils/index.d.ts +2 -0
  184. package/lib/label-date-picker/index.d.ts +7 -0
  185. package/lib/label-date-picker/style/index.d.ts +2 -0
  186. package/lib/label-input/index.d.ts +29 -0
  187. package/lib/label-input/style/index.d.ts +1 -0
  188. package/lib/label-number-input/index.d.ts +12 -0
  189. package/lib/label-number-input/style/index.d.ts +1 -0
  190. package/lib/label-range-picker/index.d.ts +8 -0
  191. package/lib/label-range-picker/style/index.d.ts +2 -0
  192. package/lib/label-select/index.d.ts +12 -0
  193. package/lib/label-select/style/index.d.ts +2 -0
  194. package/lib/label-text-area/index.d.ts +21 -0
  195. package/lib/label-text-area/style/index.d.ts +1 -0
  196. package/lib/label-tree-select/index.d.ts +11 -0
  197. package/lib/label-tree-select/style/index.d.ts +2 -0
  198. package/lib/messages/ar_EG.d.ts +26 -0
  199. package/lib/messages/bg_BG.d.ts +26 -0
  200. package/lib/messages/cs_CZ.d.ts +26 -0
  201. package/lib/messages/de_DE.d.ts +26 -0
  202. package/lib/messages/en_US.d.ts +26 -0
  203. package/lib/messages/es_ES.d.ts +26 -0
  204. package/lib/messages/fi_FI.d.ts +26 -0
  205. package/lib/messages/fr_FR.d.ts +26 -0
  206. package/lib/messages/id_ID.d.ts +26 -0
  207. package/lib/messages/index.d.ts +27 -0
  208. package/lib/messages/it_IT.d.ts +26 -0
  209. package/lib/messages/ja_JP.d.ts +26 -0
  210. package/lib/messages/ko_KR.d.ts +26 -0
  211. package/lib/messages/nb_NO.d.ts +26 -0
  212. package/lib/messages/nl_NL.d.ts +26 -0
  213. package/lib/messages/pt_PT.d.ts +26 -0
  214. package/lib/messages/ro_RO.d.ts +26 -0
  215. package/lib/messages/ru_RU.d.ts +26 -0
  216. package/lib/messages/sv_SE.d.ts +26 -0
  217. package/lib/messages/th_TH.d.ts +26 -0
  218. package/lib/messages/vi_VN.d.ts +26 -0
  219. package/lib/messages/zh_CN.d.ts +26 -0
  220. package/lib/messages/zh_TW.d.ts +26 -0
  221. package/lib/number-format-input/index.d.ts +5 -0
  222. package/lib/number-format-input/style/index.d.ts +1 -0
  223. package/lib/number-input/const/dataTypeEnum.d.ts +3 -0
  224. package/lib/number-input/const/numberType.d.ts +2 -0
  225. package/lib/number-input/index.d.ts +42 -0
  226. package/lib/number-input/style/index.d.ts +1 -0
  227. package/lib/number-input/utils.d.ts +10 -0
  228. package/lib/rc-echart/core.d.ts +29 -0
  229. package/lib/rc-echart/index.d.ts +19 -0
  230. package/lib/rc-echart/style/index.d.ts +1 -0
  231. package/lib/rc-motion/index.d.ts +4 -0
  232. package/lib/rc-motion/style/index.d.ts +1 -0
  233. package/lib/rc-qrcode/index.d.ts +21 -0
  234. package/lib/rc-qrcode/style/index.d.ts +1 -0
  235. package/lib/rc-qrcode/useQrcode.d.ts +4 -0
  236. package/lib/rc-transition-group/index.d.ts +2 -0
  237. package/lib/rc-transition-group/style/index.d.ts +1 -0
  238. package/lib/resizable/index.d.ts +4 -0
  239. package/lib/resizable/style/index.d.ts +1 -0
  240. package/lib/rich-text-editor/index.d.ts +37 -0
  241. package/lib/rich-text-editor/lang/zh_CN.d.ts +407 -0
  242. package/lib/rich-text-editor/plugins/code/index.d.ts +2 -0
  243. package/lib/rich-text-editor/style/index.d.ts +1 -0
  244. package/lib/single-img-upload/index.d.ts +22 -0
  245. package/lib/single-img-upload/style/index.d.ts +3 -0
  246. package/lib/sortable-hoc/index.d.ts +2 -0
  247. package/lib/sortable-hoc/style/index.d.ts +1 -0
  248. package/lib/split-pane/index.d.ts +59 -0
  249. package/lib/split-pane/style/index.d.ts +1 -0
  250. package/lib/step-number-input/const/countType.d.ts +2 -0
  251. package/lib/step-number-input/const/numberType.d.ts +2 -0
  252. package/lib/step-number-input/index.d.ts +43 -0
  253. package/lib/step-number-input/style/index.d.ts +2 -0
  254. package/lib/table-col/index.d.ts +8 -0
  255. package/lib/table-col/style/index.d.ts +1 -0
  256. package/lib/text-area/index.d.ts +12 -0
  257. package/lib/text-area/style/index.d.ts +1 -0
  258. package/lib/text-input/index.d.ts +5 -0
  259. package/lib/text-input/style/index.css +3 -7
  260. package/lib/text-input/style/index.d.ts +1 -0
  261. package/package.json +4 -4
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,2 @@
1
+ import 'antd/lib/select/style';
2
+ import './index.less';
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import * as beautifulDnd from 'react-beautiful-dnd';
2
+ export default beautifulDnd;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,14 @@
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;
@@ -107,7 +107,7 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
107
107
  className: classNames('button-drawer', className),
108
108
  title: title,
109
109
  onClose: closeDrawer,
110
- open: drawerVisible
110
+ visible: drawerVisible
111
111
  }, restProps), isFunction(children) ? children(actionRef.current) : /*#__PURE__*/React.cloneElement(children, {
112
112
  drawerAction: actionRef.current
113
113
  })));
@@ -0,0 +1 @@
1
+ import 'antd/lib/drawer/style';
@@ -0,0 +1,14 @@
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;
@@ -110,7 +110,7 @@ var ButtonModal = function ButtonModal(props, ref) {
110
110
  onClick: openModal
111
111
  });
112
112
  return /*#__PURE__*/React.createElement(React.Fragment, null, buttonNode, /*#__PURE__*/React.createElement(Modal, __assign({
113
- open: visible,
113
+ visible: visible,
114
114
  onOk: handleModalOk,
115
115
  onCancel: handleModalCancel,
116
116
  centered: true,
@@ -0,0 +1 @@
1
+ import 'antd/lib/modal/style';
@@ -0,0 +1,23 @@
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;
@@ -0,0 +1,2 @@
1
+ import 'rc-trigger/assets/index.css';
2
+ import './index.less';
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1 @@
1
+ import 'antd/lib/input/style';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { LangType } from '../messages';
3
+ declare const LocaleContext: import("react").Context<LangType>;
4
+ export default LocaleContext;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare type LocaleType = 'en-US' | 'zh-CN' | 'zh-TW' | '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;
@@ -0,0 +1,22 @@
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;
@@ -83,7 +83,7 @@ var CopyToClipboard = function CopyToClipboard(props) {
83
83
 
84
84
  return tooltipTitle ? /*#__PURE__*/React.createElement(Tooltip, __assign({
85
85
  placement: "topLeft",
86
- open: tooltipVisible,
86
+ visible: tooltipVisible,
87
87
  title: tooltipTitle
88
88
  }, tooltipProps), /*#__PURE__*/React.cloneElement(children, {
89
89
  onClick: onClick
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,15 @@
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 {};
@@ -0,0 +1,2 @@
1
+ import type { HighlightType, RangesType } from './types';
2
+ export default function getRanges(input: string, highlight: HighlightType): RangesType;
@@ -0,0 +1,2 @@
1
+ import type { HighlightType, TypeList } from './types';
2
+ export default function getType(instance: HighlightType): TypeList;
@@ -0,0 +1,12 @@
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;
@@ -137,7 +137,6 @@ textarea.ant-input-affix-wrapper {
137
137
  }
138
138
  .ant-input-affix-wrapper > input.ant-input {
139
139
  padding: 0;
140
- font-size: inherit;
141
140
  border: none;
142
141
  outline: none;
143
142
  }
@@ -836,21 +835,18 @@ textarea.ant-input {
836
835
  }
837
836
  .ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
838
837
  .ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
838
+ border-right-color: #40a9ff;
839
839
  border-left-color: #d9d9d9;
840
840
  }
841
- .ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover,
842
- .ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover {
843
- border-left-color: #40a9ff;
844
- }
845
841
  .ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,
846
842
  .ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {
847
843
  border-right-color: #40a9ff;
848
844
  }
849
- .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child {
845
+ .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {
850
846
  right: -1px;
851
847
  left: auto;
852
848
  }
853
- .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {
849
+ .ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {
854
850
  border-radius: 2px 0 0 2px;
855
851
  }
856
852
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,16 @@
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';
@@ -0,0 +1,3 @@
1
+ import HighlightWords, { FindChunks, Chunk, HighlighterProps } from 'react-highlight-words';
2
+ export { FindChunks, Chunk, HighlighterProps };
3
+ export default HighlightWords;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,53 @@
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;
@@ -453,7 +453,7 @@ var ImgCrop = function ImgCrop(props) {
453
453
 
454
454
  var renderComponent = function renderComponent(titleOfModal) {
455
455
  return /*#__PURE__*/React.createElement(React.Fragment, null, renderUpload(), src && /*#__PURE__*/React.createElement(Modal, __assign({
456
- open: true,
456
+ visible: true,
457
457
  wrapClassName: "".concat(pkg, "-modal"),
458
458
  title: titleOfModal,
459
459
  onOk: onOk,
@@ -0,0 +1,3 @@
1
+ import 'antd/lib/slider/style';
2
+ import 'antd/lib/modal/style';
3
+ import './index.less';
package/es/index.d.ts ADDED
@@ -0,0 +1,72 @@
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';
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,2 @@
1
+ import 'jsoneditor/dist/jsoneditor.min.css';
2
+ import './index.less';
@@ -0,0 +1,29 @@
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;
@@ -61,45 +61,46 @@ import Badge from "antd/es/badge";
61
61
  import Tabs from "antd/es/tabs";
62
62
  import useUrlState from '@ahooksjs/use-url-state';
63
63
  import useControllableValue from "ahooks/es/useControllableValue";
64
+ import toArray from "rc-util/es/Children/toArray";
64
65
  var TabPane = Tabs.TabPane;
65
66
  var defaultBadgeProps = {};
66
67
 
67
68
  var KeepTab = function KeepTab(props) {
68
69
  var _a;
69
70
 
70
- var _b = props.items,
71
- items = _b === void 0 ? [] : _b,
71
+ var children = props.children,
72
72
  defaultActiveKey = props.defaultActiveKey,
73
73
  saveActiveKeyName = props.saveActiveKeyName,
74
74
  onChange = props.onChange,
75
- _c = props.badgeProps,
76
- badgeProps = _c === void 0 ? defaultBadgeProps : _c,
77
- restProps = __rest(props, ["items", "defaultActiveKey", "saveActiveKeyName", "onChange", "badgeProps"]);
75
+ _b = props.badgeProps,
76
+ badgeProps = _b === void 0 ? defaultBadgeProps : _b,
77
+ restProps = __rest(props, ["children", "defaultActiveKey", "saveActiveKeyName", "onChange", "badgeProps"]);
78
78
 
79
79
  var defaultUrlParams = qsHelp.getQueryObject();
80
80
 
81
- var _d = __read(useUrlState((_a = {}, _a[saveActiveKeyName] = defaultUrlParams[saveActiveKeyName] || defaultActiveKey, _a)), 2),
82
- urlParams = _d[0],
83
- setUrlParams = _d[1];
81
+ var _c = __read(useUrlState((_a = {}, _a[saveActiveKeyName] = defaultUrlParams[saveActiveKeyName] || defaultActiveKey, _a)), 2),
82
+ urlParams = _c[0],
83
+ setUrlParams = _c[1];
84
84
 
85
- var _e = __read(useControllableValue(props, {
85
+ var _d = __read(useControllableValue(props, {
86
86
  valuePropName: 'activeKey',
87
87
  defaultValue: defaultUrlParams[saveActiveKeyName] || defaultActiveKey
88
88
  }), 2),
89
- tabActiveKey = _e[0],
90
- setTabActiveKey = _e[1];
89
+ tabActiveKey = _d[0],
90
+ setTabActiveKey = _d[1];
91
91
 
92
+ var arrayChildren = toArray(children);
92
93
  React.useEffect(function () {
93
94
  var _a;
94
95
 
95
- if (!('activeKey' in props) && items) {
96
- var resultActiveTab = find(items, {
96
+ if (!('activeKey' in props)) {
97
+ var resultActiveTab = find(arrayChildren, {
97
98
  key: urlParams[saveActiveKeyName]
98
99
  });
99
100
 
100
- if (!resultActiveTab || resultActiveTab.disabled) {
101
- setUrlParams((_a = {}, _a[saveActiveKeyName] = items[0].key, _a));
102
- setTabActiveKey(items[0].key);
101
+ if (!resultActiveTab || resultActiveTab.props.disabled) {
102
+ setUrlParams((_a = {}, _a[saveActiveKeyName] = arrayChildren[0].key, _a));
103
+ setTabActiveKey(arrayChildren[0].key);
103
104
  }
104
105
  }
105
106
  }, [tabActiveKey]);
@@ -111,29 +112,29 @@ var KeepTab = function KeepTab(props) {
111
112
  setTabActiveKey(nextActiveKey);
112
113
  };
113
114
 
114
- var resultItems = items.map(function (item) {
115
- var count = item === null || item === void 0 ? void 0 : item.count;
115
+ var resultChildren = arrayChildren.map(function (childItem) {
116
+ var _a;
117
+
118
+ var count = (_a = childItem === null || childItem === void 0 ? void 0 : childItem.props) === null || _a === void 0 ? void 0 : _a.count;
116
119
 
117
120
  if (count) {
118
- return __assign(__assign({}, item), {
119
- label: /*#__PURE__*/React.createElement(Badge, __assign({
121
+ return /*#__PURE__*/React.cloneElement(childItem, {
122
+ tab: /*#__PURE__*/React.createElement(Badge, __assign({
120
123
  className: "tab-badge",
121
124
  count: count,
122
125
  offset: [16, -9]
123
- }, badgeProps), /*#__PURE__*/React.createElement("span", null, item.label))
126
+ }, badgeProps), /*#__PURE__*/React.createElement("span", null, childItem.props.tab))
124
127
  });
125
128
  }
126
129
 
127
- return item;
130
+ return childItem;
128
131
  });
129
132
  return /*#__PURE__*/React.createElement(Tabs, __assign({
130
133
  animated: false,
131
134
  onChange: handleTabChange,
132
135
  destroyInactiveTabPane: true,
133
136
  activeKey: tabActiveKey
134
- }, restProps, {
135
- items: resultItems
136
- }));
137
+ }, restProps), resultChildren);
137
138
  };
138
139
 
139
140
  KeepTab.defaultProps = {