assui 3.1.72 → 3.1.73
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.
- package/es/highlight-textarea/HighlighedContents.d.ts +1 -1
- package/es/highlight-textarea/HighlighedContents.js +2 -1
- package/es/highlight-textarea/index.d.ts +1 -1
- package/es/img-crop/index.d.ts +6 -6
- package/es/keep-tab/index.d.ts +1 -1
- package/es/rc-qrcode/index.d.ts +1 -1
- package/es/step-number-input/index.d.ts +2 -2
- package/lib/highlight-textarea/HighlighedContents.d.ts +1 -1
- package/lib/highlight-textarea/HighlighedContents.js +2 -1
- package/lib/highlight-textarea/index.d.ts +1 -1
- package/lib/img-crop/index.d.ts +6 -6
- package/lib/keep-tab/index.d.ts +1 -1
- package/lib/rc-qrcode/index.d.ts +1 -1
- package/lib/step-number-input/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HighlightType } from './types';
|
|
2
2
|
export interface HighlighedContentsProps {
|
|
3
3
|
value: string;
|
|
4
|
-
highlight
|
|
4
|
+
highlight?: HighlightType;
|
|
5
5
|
}
|
|
6
6
|
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
7
|
export default HighlighedContents;
|
|
@@ -3,7 +3,8 @@ import getRanges from './getRanges';
|
|
|
3
3
|
import extractSpansOfClasses from './extractSpansOfClasses';
|
|
4
4
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
5
5
|
var value = _a.value,
|
|
6
|
-
|
|
6
|
+
_b = _a.highlight,
|
|
7
|
+
highlight = _b === void 0 ? '' : _b;
|
|
7
8
|
var ranges = getRanges(value, highlight);
|
|
8
9
|
var parts = extractSpansOfClasses(value, ranges);
|
|
9
10
|
return /*#__PURE__*/React.createElement(React.Fragment, null, parts.map(function (part) {
|
|
@@ -6,7 +6,7 @@ export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<Re
|
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
8
8
|
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
highlight
|
|
9
|
+
highlight?: HighlightType;
|
|
10
10
|
}
|
|
11
11
|
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
12
|
export default HighlightWithinTextarea;
|
package/es/img-crop/index.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ export interface RcFile extends File {
|
|
|
6
6
|
uid: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ImgCropProps {
|
|
9
|
-
prefix
|
|
10
|
-
aspect
|
|
11
|
-
shape
|
|
9
|
+
prefix?: string;
|
|
10
|
+
aspect?: number;
|
|
11
|
+
shape?: 'rect' | 'round';
|
|
12
12
|
grid?: boolean;
|
|
13
13
|
quality?: number;
|
|
14
14
|
zoom?: boolean;
|
|
15
15
|
rotate?: boolean;
|
|
16
|
-
minZoom
|
|
17
|
-
maxZoom
|
|
18
|
-
fillColor
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
maxZoom?: number;
|
|
18
|
+
fillColor?: string;
|
|
19
19
|
modalTitle: string;
|
|
20
20
|
modalWidth?: string | number;
|
|
21
21
|
modalCancel?: string;
|
package/es/keep-tab/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface KeepTabProps extends Omit<TabsProps, 'items'> {
|
|
|
9
9
|
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
10
10
|
defaultActiveKey?: string;
|
|
11
11
|
/** 保存激活 tab 面板的的key名 */
|
|
12
|
-
saveActiveKeyName
|
|
12
|
+
saveActiveKeyName?: string;
|
|
13
13
|
/** 当前激活 tab 面板的 key */
|
|
14
14
|
activeKey?: string;
|
|
15
15
|
/** 切换面板的回调 */
|
package/es/rc-qrcode/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import QRCode from 'qrcode';
|
|
|
3
3
|
import useQrcode from './useQrcode';
|
|
4
4
|
export interface RcQrcodeProps {
|
|
5
5
|
/** 生成二维码的值 */
|
|
6
|
-
value
|
|
6
|
+
value?: QRCodeSegment[] | string;
|
|
7
7
|
/** qrcode的QRCodeRenderersOptions */
|
|
8
8
|
options?: QRCodeRenderersOptions;
|
|
9
9
|
/** 获取HTMLCanvasElement */
|
|
@@ -5,7 +5,7 @@ export interface StepNumberInputProps {
|
|
|
5
5
|
/** 输入数据的类型 */
|
|
6
6
|
numberType?: 'int' | 'float';
|
|
7
7
|
/** 精度,只对float有效 */
|
|
8
|
-
precision
|
|
8
|
+
precision?: number;
|
|
9
9
|
/** 内容最大长度 */
|
|
10
10
|
maxLength?: number;
|
|
11
11
|
/** 指定输入框展示值的格式 */
|
|
@@ -15,7 +15,7 @@ export interface StepNumberInputProps {
|
|
|
15
15
|
/** 是否允许输入负数 */
|
|
16
16
|
enableMinus?: boolean;
|
|
17
17
|
/** 步进, 每次点击+/- 多少 */
|
|
18
|
-
step
|
|
18
|
+
step?: string | number;
|
|
19
19
|
/** 变化回调 */
|
|
20
20
|
onChange?: (value: string) => void;
|
|
21
21
|
/** 失去焦点回调 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HighlightType } from './types';
|
|
2
2
|
export interface HighlighedContentsProps {
|
|
3
3
|
value: string;
|
|
4
|
-
highlight
|
|
4
|
+
highlight?: HighlightType;
|
|
5
5
|
}
|
|
6
6
|
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
7
|
export default HighlighedContents;
|
|
@@ -13,7 +13,8 @@ var getRanges_1 = __importDefault(require("./getRanges"));
|
|
|
13
13
|
var extractSpansOfClasses_1 = __importDefault(require("./extractSpansOfClasses"));
|
|
14
14
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
15
15
|
var value = _a.value,
|
|
16
|
-
|
|
16
|
+
_b = _a.highlight,
|
|
17
|
+
highlight = _b === void 0 ? '' : _b;
|
|
17
18
|
var ranges = (0, getRanges_1["default"])(value, highlight);
|
|
18
19
|
var parts = (0, extractSpansOfClasses_1["default"])(value, ranges);
|
|
19
20
|
return react_1["default"].createElement(react_1["default"].Fragment, null, parts.map(function (part) {
|
|
@@ -6,7 +6,7 @@ export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<Re
|
|
|
6
6
|
className?: string;
|
|
7
7
|
textAreaClassName?: string;
|
|
8
8
|
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
highlight
|
|
9
|
+
highlight?: HighlightType;
|
|
10
10
|
}
|
|
11
11
|
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
12
|
export default HighlightWithinTextarea;
|
package/lib/img-crop/index.d.ts
CHANGED
|
@@ -6,16 +6,16 @@ export interface RcFile extends File {
|
|
|
6
6
|
uid: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ImgCropProps {
|
|
9
|
-
prefix
|
|
10
|
-
aspect
|
|
11
|
-
shape
|
|
9
|
+
prefix?: string;
|
|
10
|
+
aspect?: number;
|
|
11
|
+
shape?: 'rect' | 'round';
|
|
12
12
|
grid?: boolean;
|
|
13
13
|
quality?: number;
|
|
14
14
|
zoom?: boolean;
|
|
15
15
|
rotate?: boolean;
|
|
16
|
-
minZoom
|
|
17
|
-
maxZoom
|
|
18
|
-
fillColor
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
maxZoom?: number;
|
|
18
|
+
fillColor?: string;
|
|
19
19
|
modalTitle: string;
|
|
20
20
|
modalWidth?: string | number;
|
|
21
21
|
modalCancel?: string;
|
package/lib/keep-tab/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface KeepTabProps extends Omit<TabsProps, 'items'> {
|
|
|
9
9
|
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
10
10
|
defaultActiveKey?: string;
|
|
11
11
|
/** 保存激活 tab 面板的的key名 */
|
|
12
|
-
saveActiveKeyName
|
|
12
|
+
saveActiveKeyName?: string;
|
|
13
13
|
/** 当前激活 tab 面板的 key */
|
|
14
14
|
activeKey?: string;
|
|
15
15
|
/** 切换面板的回调 */
|
package/lib/rc-qrcode/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import QRCode from 'qrcode';
|
|
|
3
3
|
import useQrcode from './useQrcode';
|
|
4
4
|
export interface RcQrcodeProps {
|
|
5
5
|
/** 生成二维码的值 */
|
|
6
|
-
value
|
|
6
|
+
value?: QRCodeSegment[] | string;
|
|
7
7
|
/** qrcode的QRCodeRenderersOptions */
|
|
8
8
|
options?: QRCodeRenderersOptions;
|
|
9
9
|
/** 获取HTMLCanvasElement */
|
|
@@ -5,7 +5,7 @@ export interface StepNumberInputProps {
|
|
|
5
5
|
/** 输入数据的类型 */
|
|
6
6
|
numberType?: 'int' | 'float';
|
|
7
7
|
/** 精度,只对float有效 */
|
|
8
|
-
precision
|
|
8
|
+
precision?: number;
|
|
9
9
|
/** 内容最大长度 */
|
|
10
10
|
maxLength?: number;
|
|
11
11
|
/** 指定输入框展示值的格式 */
|
|
@@ -15,7 +15,7 @@ export interface StepNumberInputProps {
|
|
|
15
15
|
/** 是否允许输入负数 */
|
|
16
16
|
enableMinus?: boolean;
|
|
17
17
|
/** 步进, 每次点击+/- 多少 */
|
|
18
|
-
step
|
|
18
|
+
step?: string | number;
|
|
19
19
|
/** 变化回调 */
|
|
20
20
|
onChange?: (value: string) => void;
|
|
21
21
|
/** 失去焦点回调 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.73",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "c4c76a74045ef87b12675f1b7f16ac56cbbdd18a"
|
|
84
84
|
}
|