assui 2.1.25 → 2.1.28

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.
@@ -1,4 +1,5 @@
1
- import NumberFormatInput from 'react-number-format';
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
- import NumberFormatInput from 'react-number-format';
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 React from 'react';
1
2
  import type { ConditionInputProps } from '../condition-input';
2
3
  export declare type TextInputProps = ConditionInputProps;
3
- declare const TextInput: (props: TextInputProps) => JSX.Element;
4
+ declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
4
5
  export default TextInput;
@@ -67,8 +67,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
67
67
  import React from 'react';
68
68
  import isArray from 'lodash/isArray';
69
69
  import ConditionInput from '../condition-input';
70
-
71
- var TextInput = function TextInput(props) {
70
+ var TextInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
72
71
  var regexp = props.regexp,
73
72
  restProps = __rest(props, ["regexp"]);
74
73
 
@@ -80,8 +79,8 @@ var TextInput = function TextInput(props) {
80
79
  }
81
80
 
82
81
  return /*#__PURE__*/React.createElement(ConditionInput, __assign({}, restProps, {
82
+ ref: ref,
83
83
  regexp: resultRegexp
84
84
  }));
85
- };
86
-
85
+ });
87
86
  export default TextInput;
@@ -1,4 +1,5 @@
1
- import NumberFormatInput from 'react-number-format';
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
- exports["default"] = react_number_format_1["default"];
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,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ require("./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 React from 'react';
1
2
  import type { ConditionInputProps } from '../condition-input';
2
3
  export declare type TextInputProps = ConditionInputProps;
3
- declare const TextInput: (props: TextInputProps) => JSX.Element;
4
+ declare const TextInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
4
5
  export default TextInput;
@@ -82,7 +82,7 @@ var isArray_1 = __importDefault(require("lodash/isArray"));
82
82
 
83
83
  var condition_input_1 = __importDefault(require("../condition-input"));
84
84
 
85
- var TextInput = function TextInput(props) {
85
+ var TextInput = react_1["default"].forwardRef(function (props, ref) {
86
86
  var regexp = props.regexp,
87
87
  restProps = __rest(props, ["regexp"]);
88
88
 
@@ -94,8 +94,8 @@ var TextInput = function TextInput(props) {
94
94
  }
95
95
 
96
96
  return react_1["default"].createElement(condition_input_1["default"], __assign({}, restProps, {
97
+ ref: ref,
97
98
  regexp: resultRegexp
98
99
  }));
99
- };
100
-
100
+ });
101
101
  exports["default"] = TextInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.1.25",
3
+ "version": "2.1.28",
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.73",
38
- "aa-utils": "^2.0.28",
37
+ "a-icons": "^1.0.75",
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": "9ec75fb976bfb1158e04bab474aff59cc66f893e"
75
+ "gitHead": "dac7b05bd74b5d29bda80dc0f3ac3cbed08c02d8"
76
76
  }