assui 2.1.26 → 2.1.27
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/number-format-input/index.d.ts +2 -1
- package/es/number-format-input/index.js +42 -1
- package/es/number-format-input/style/index.css +28 -0
- package/es/number-format-input/style/index.d.ts +1 -1
- package/es/number-format-input/style/index.js +1 -0
- package/es/number-format-input/style/index.less +30 -0
- package/lib/number-format-input/index.d.ts +2 -1
- package/lib/number-format-input/index.js +43 -1
- package/lib/number-format-input/style/index.css +28 -0
- package/lib/number-format-input/style/index.d.ts +1 -1
- package/lib/number-format-input/style/index.js +7 -0
- package/lib/number-format-input/style/index.less +30 -0
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
|
|
3
3
|
export declare type NumberFormatInputProps = ReactNumberFormatProps;
|
|
4
|
+
declare const NumberFormatInput: React.FC<NumberFormatInputProps>;
|
|
4
5
|
export default NumberFormatInput;
|
|
@@ -1,2 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
|
|
20
|
+
for (var p in s) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
import React from 'react';
|
|
31
|
+
import ReactNumberFormat from 'react-number-format';
|
|
32
|
+
import classNames from 'classnames';
|
|
33
|
+
|
|
34
|
+
var NumberFormatInput = function NumberFormatInput(_a) {
|
|
35
|
+
var className = _a.className,
|
|
36
|
+
restProps = __rest(_a, ["className"]);
|
|
37
|
+
|
|
38
|
+
return /*#__PURE__*/React.createElement(ReactNumberFormat, __assign({}, restProps, {
|
|
39
|
+
className: classNames('rc-number-format-input', className)
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
|
|
2
43
|
export default NumberFormatInput;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.rc-number-format-input {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 4px 11px;
|
|
9
|
+
color: rgba(0, 0, 0, 0.85);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 1.5715;
|
|
12
|
+
list-style: none;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
background-image: none;
|
|
15
|
+
border: 1px solid #d9d9d9;
|
|
16
|
+
border-radius: 2px;
|
|
17
|
+
transition: all 0.3s;
|
|
18
|
+
}
|
|
19
|
+
.rc-number-format-input:hover {
|
|
20
|
+
border-color: #40a9ff;
|
|
21
|
+
border-right-width: 1px !important;
|
|
22
|
+
}
|
|
23
|
+
.rc-number-format-input:focus {
|
|
24
|
+
border-color: #40a9ff;
|
|
25
|
+
border-right-width: 1px !important;
|
|
26
|
+
outline: 0;
|
|
27
|
+
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
28
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.rc-number-format-input {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 4px 11px;
|
|
9
|
+
color: rgba(0, 0, 0, 0.85);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 1.5715;
|
|
12
|
+
list-style: none;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
background-image: none;
|
|
15
|
+
border: 1px solid #d9d9d9;
|
|
16
|
+
border-radius: 2px;
|
|
17
|
+
transition: all 0.3s;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
border-color: #40a9ff;
|
|
21
|
+
border-right-width: 1px !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
border-color: #40a9ff;
|
|
26
|
+
border-right-width: 1px !important;
|
|
27
|
+
outline: 0;
|
|
28
|
+
box-shadow: 0 0 0 2px rgb(24 144 255 / 20%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
|
|
3
3
|
export declare type NumberFormatInputProps = ReactNumberFormatProps;
|
|
4
|
+
declare const NumberFormatInput: React.FC<NumberFormatInputProps>;
|
|
4
5
|
export default NumberFormatInput;
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = this && this.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
20
|
+
var t = {};
|
|
21
|
+
|
|
22
|
+
for (var p in s) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
27
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
};
|
|
31
|
+
|
|
3
32
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
33
|
return mod && mod.__esModule ? mod : {
|
|
5
34
|
"default": mod
|
|
@@ -10,6 +39,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
39
|
value: true
|
|
11
40
|
});
|
|
12
41
|
|
|
42
|
+
var react_1 = __importDefault(require("react"));
|
|
43
|
+
|
|
13
44
|
var react_number_format_1 = __importDefault(require("react-number-format"));
|
|
14
45
|
|
|
15
|
-
|
|
46
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
47
|
+
|
|
48
|
+
var NumberFormatInput = function NumberFormatInput(_a) {
|
|
49
|
+
var className = _a.className,
|
|
50
|
+
restProps = __rest(_a, ["className"]);
|
|
51
|
+
|
|
52
|
+
return react_1["default"].createElement(react_number_format_1["default"], __assign({}, restProps, {
|
|
53
|
+
className: (0, classnames_1["default"])('rc-number-format-input', className)
|
|
54
|
+
}));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports["default"] = NumberFormatInput;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.rc-number-format-input {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 4px 11px;
|
|
9
|
+
color: rgba(0, 0, 0, 0.85);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 1.5715;
|
|
12
|
+
list-style: none;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
background-image: none;
|
|
15
|
+
border: 1px solid #d9d9d9;
|
|
16
|
+
border-radius: 2px;
|
|
17
|
+
transition: all 0.3s;
|
|
18
|
+
}
|
|
19
|
+
.rc-number-format-input:hover {
|
|
20
|
+
border-color: #40a9ff;
|
|
21
|
+
border-right-width: 1px !important;
|
|
22
|
+
}
|
|
23
|
+
.rc-number-format-input:focus {
|
|
24
|
+
border-color: #40a9ff;
|
|
25
|
+
border-right-width: 1px !important;
|
|
26
|
+
outline: 0;
|
|
27
|
+
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
28
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.rc-number-format-input {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 4px 11px;
|
|
9
|
+
color: rgba(0, 0, 0, 0.85);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 1.5715;
|
|
12
|
+
list-style: none;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
background-image: none;
|
|
15
|
+
border: 1px solid #d9d9d9;
|
|
16
|
+
border-radius: 2px;
|
|
17
|
+
transition: all 0.3s;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
border-color: #40a9ff;
|
|
21
|
+
border-right-width: 1px !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
border-color: #40a9ff;
|
|
26
|
+
border-right-width: 1px !important;
|
|
27
|
+
outline: 0;
|
|
28
|
+
box-shadow: 0 0 0 2px rgb(24 144 255 / 20%);
|
|
29
|
+
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.27",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@tinymce/tinymce-react": "^4.0.0",
|
|
35
35
|
"@types/react-beautiful-dnd": "^13.1.2",
|
|
36
36
|
"@types/react-resizable": "^3.0.0",
|
|
37
|
-
"a-icons": "^1.0.
|
|
38
|
-
"aa-utils": "^2.0.
|
|
37
|
+
"a-icons": "^1.0.74",
|
|
38
|
+
"aa-utils": "^2.0.29",
|
|
39
39
|
"ahooks": "^3.0.8",
|
|
40
40
|
"bignumber.js": "^9.0.1",
|
|
41
41
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"node": ">=10.0.0"
|
|
73
73
|
},
|
|
74
74
|
"license": "MIT",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "9669f437053d3b7387f0e55067b524d2e7dd7b1a"
|
|
76
76
|
}
|