assui 2.1.18 → 2.1.21

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/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export type { ConditionInputProps } from './condition-input';
6
6
  export { default as ConditionInput } from './condition-input';
7
7
  export type { ConfigProviderProps } from './config-provider';
8
8
  export { default as ConfigProvider } from './config-provider';
9
+ export { default as NumberFormat } from './number-format';
10
+ export type { NumberFormatProps } from './number-format';
9
11
  export type { CopyToClipboardProps } from './copy-to-clipboard';
10
12
  export { default as CopyToClipboard } from './copy-to-clipboard';
11
13
  export type { HighlightTextareaProps } from './highlight-textarea';
package/es/index.js CHANGED
@@ -2,6 +2,7 @@ export { default as ButtonDrawer } from './button-drawer';
2
2
  export { default as ButtonModal } from './button-modal';
3
3
  export { default as ConditionInput } from './condition-input';
4
4
  export { default as ConfigProvider } from './config-provider';
5
+ export { default as NumberFormat } from './number-format';
5
6
  export { default as CopyToClipboard } from './copy-to-clipboard';
6
7
  export { default as HighlightTextarea } from './highlight-textarea';
7
8
  export { default as HighlightWords } from './highlight-words';
@@ -90,7 +90,10 @@ var LabelSelect = function LabelSelect(props) {
90
90
  'label-select': true,
91
91
  'label-select-label-scale': open || !isUndefined(value) && !isNull(value)
92
92
  }, className)
93
- }, /*#__PURE__*/React.createElement(Select, __assign({}, omit(props, ['open', 'onChange', 'className', 'label']), {
93
+ }, /*#__PURE__*/React.createElement(Select, __assign({
94
+ maxTagCount: 3,
95
+ showSearch: false
96
+ }, omit(props, ['open', 'onChange', 'className', 'label']), {
94
97
  open: open,
95
98
  ref: selectRef,
96
99
  size: "large",
@@ -1792,6 +1792,39 @@ html {
1792
1792
  width: 100%;
1793
1793
  height: 100%;
1794
1794
  }
1795
+ .label-select .ant-select {
1796
+ width: 100%;
1797
+ }
1798
+ .label-select .ant-select-multiple .ant-select-selector {
1799
+ height: 45px;
1800
+ padding: 6px 11px 7px;
1801
+ border: 1px solid #e5e5e5;
1802
+ border-radius: 8px;
1803
+ outline: none;
1804
+ }
1805
+ .label-select .ant-select-multiple .ant-select-selection-overflow {
1806
+ display: flex;
1807
+ width: 100%;
1808
+ transform: translateY(8px);
1809
+ }
1810
+ .label-select .ant-select-multiple .ant-select-selection-overflow-item {
1811
+ max-width: 25%;
1812
+ }
1813
+ .label-select .ant-select-multiple .ant-select-selection-overflow-item .ant-select-selection-search {
1814
+ padding: 0;
1815
+ }
1816
+ .label-select .ant-select-multiple.ant-select-lg .ant-select-selection-item {
1817
+ width: auto;
1818
+ height: auto;
1819
+ margin: 0 4px 4px 0;
1820
+ padding: 1px 4px;
1821
+ color: #333;
1822
+ font-size: 12px;
1823
+ line-height: 17px;
1824
+ background-color: #fff;
1825
+ border: 1px solid #ccc;
1826
+ border-radius: 4px;
1827
+ }
1795
1828
  .label-select .ant-select-allow-clear .ant-select-clear {
1796
1829
  right: 16px;
1797
1830
  }
@@ -3,13 +3,60 @@
3
3
  @import '../../style/themes/default.less';
4
4
 
5
5
  @color_9aa5b5: #9aa5b5;
6
+ @color_e5e5e5: #e5e5e5;
7
+ @color_7d7d7d: #7d7d7d;
8
+ @color_333: #333;
9
+ @color_ccc: #ccc;
10
+ @white: #fff;
6
11
  @font-size-base: 14px;
12
+ @font-size-sm: @font-size-base - 2px;
7
13
 
8
14
  .label-select {
9
15
  position: relative;
10
16
  width: 100%;
11
17
  height: 100%;
12
18
 
19
+ .@{ant-prefix}-select {
20
+ width: 100%;
21
+ }
22
+
23
+ .@{ant-prefix}-select-multiple {
24
+ .@{ant-prefix}-select-selector {
25
+ height: 45px;
26
+ padding: 6px 11px 7px;
27
+ border: 1px solid @color_e5e5e5;
28
+ border-radius: 8px;
29
+ outline: none;
30
+ }
31
+
32
+ .@{ant-prefix}-select-selection-overflow {
33
+ display: flex;
34
+ width: 100%;
35
+ transform: translateY(8px);
36
+ }
37
+
38
+ .@{ant-prefix}-select-selection-overflow-item {
39
+ max-width: 25%;
40
+ }
41
+
42
+ .@{ant-prefix}-select-selection-overflow-item .@{ant-prefix}-select-selection-search {
43
+ padding: 0;
44
+ }
45
+ }
46
+
47
+ .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
48
+ width: auto;
49
+ height: auto;
50
+ margin: 0 4px 4px 0;
51
+ padding: 1px 4px;
52
+ color: @color_333;
53
+ font-size: @font-size-sm;
54
+ line-height: 17px;
55
+ background-color: @white;
56
+ border: 1px solid @color_ccc;
57
+ border-radius: 4px;
58
+ }
59
+
13
60
  .@{ant-prefix}-select-allow-clear {
14
61
  .@{ant-prefix}-select-clear {
15
62
  right: 16px;
@@ -19,7 +66,7 @@
19
66
  .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
20
67
  .@{ant-prefix}-select-selector {
21
68
  height: 45px;
22
- border: 1px solid #e5e5e5;
69
+ border: 1px solid @color_e5e5e5;
23
70
  border-radius: 8px;
24
71
  outline: none;
25
72
  }
@@ -46,7 +93,7 @@
46
93
  top: 44%;
47
94
  width: 22px;
48
95
  height: 22px;
49
- color: #7d7d7d;
96
+ color: @color_7d7d7d;
50
97
 
51
98
  .spotecicon {
52
99
  width: 22px;
@@ -0,0 +1,4 @@
1
+ import NumberFormat from 'react-number-format';
2
+ import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
3
+ export declare type NumberFormatProps = ReactNumberFormatProps;
4
+ export default NumberFormat;
@@ -0,0 +1,2 @@
1
+ import NumberFormat from 'react-number-format';
2
+ export default NumberFormat;
@@ -0,0 +1 @@
1
+
File without changes
@@ -1845,17 +1845,17 @@ html {
1845
1845
  align-items: center;
1846
1846
  height: 100%;
1847
1847
  }
1848
- .as-img-upload-upload-progress {
1848
+ .as-img-upload .as-img-upload-upload-progress {
1849
1849
  position: absolute;
1850
1850
  top: 50%;
1851
1851
  left: 0;
1852
1852
  z-index: 2;
1853
1853
  transform: translateY(-34%);
1854
1854
  }
1855
- .as-img-upload-upload-progress .ant-progress-outer {
1855
+ .as-img-upload .as-img-upload-upload-progress .ant-progress-outer {
1856
1856
  padding: 0 20px;
1857
1857
  }
1858
- .as-img-upload-upload-progress .ant-progress-text {
1858
+ .as-img-upload .as-img-upload-upload-progress .ant-progress-text {
1859
1859
  display: block;
1860
1860
  width: 100%;
1861
1861
  color: #fff;
@@ -70,7 +70,7 @@
70
70
  height: 100%;
71
71
  }
72
72
 
73
- &-upload-progress {
73
+ & &-upload-progress {
74
74
  position: absolute;
75
75
  top: 50%;
76
76
  left: 0;
package/lib/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export type { ConditionInputProps } from './condition-input';
6
6
  export { default as ConditionInput } from './condition-input';
7
7
  export type { ConfigProviderProps } from './config-provider';
8
8
  export { default as ConfigProvider } from './config-provider';
9
+ export { default as NumberFormat } from './number-format';
10
+ export type { NumberFormatProps } from './number-format';
9
11
  export type { CopyToClipboardProps } from './copy-to-clipboard';
10
12
  export { default as CopyToClipboard } from './copy-to-clipboard';
11
13
  export type { HighlightTextareaProps } from './highlight-textarea';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", {
10
10
  value: true
11
11
  });
12
- exports.beautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.LabelTextArea = exports.LabelSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
12
+ exports.beautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.LabelTextArea = exports.LabelSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormat = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
13
13
 
14
14
  var button_drawer_1 = require("./button-drawer");
15
15
 
@@ -47,6 +47,15 @@ Object.defineProperty(exports, "ConfigProvider", {
47
47
  }
48
48
  });
49
49
 
50
+ var number_format_1 = require("./number-format");
51
+
52
+ Object.defineProperty(exports, "NumberFormat", {
53
+ enumerable: true,
54
+ get: function get() {
55
+ return __importDefault(number_format_1)["default"];
56
+ }
57
+ });
58
+
50
59
  var copy_to_clipboard_1 = require("./copy-to-clipboard");
51
60
 
52
61
  Object.defineProperty(exports, "CopyToClipboard", {
@@ -110,7 +110,10 @@ var LabelSelect = function LabelSelect(props) {
110
110
  'label-select': true,
111
111
  'label-select-label-scale': open || !(0, lodash_1.isUndefined)(value) && !(0, lodash_1.isNull)(value)
112
112
  }, className)
113
- }, react_1["default"].createElement(select_1["default"], __assign({}, (0, omit_1["default"])(props, ['open', 'onChange', 'className', 'label']), {
113
+ }, react_1["default"].createElement(select_1["default"], __assign({
114
+ maxTagCount: 3,
115
+ showSearch: false
116
+ }, (0, omit_1["default"])(props, ['open', 'onChange', 'className', 'label']), {
114
117
  open: open,
115
118
  ref: selectRef,
116
119
  size: "large",
@@ -1792,6 +1792,39 @@ html {
1792
1792
  width: 100%;
1793
1793
  height: 100%;
1794
1794
  }
1795
+ .label-select .ant-select {
1796
+ width: 100%;
1797
+ }
1798
+ .label-select .ant-select-multiple .ant-select-selector {
1799
+ height: 45px;
1800
+ padding: 6px 11px 7px;
1801
+ border: 1px solid #e5e5e5;
1802
+ border-radius: 8px;
1803
+ outline: none;
1804
+ }
1805
+ .label-select .ant-select-multiple .ant-select-selection-overflow {
1806
+ display: flex;
1807
+ width: 100%;
1808
+ transform: translateY(8px);
1809
+ }
1810
+ .label-select .ant-select-multiple .ant-select-selection-overflow-item {
1811
+ max-width: 25%;
1812
+ }
1813
+ .label-select .ant-select-multiple .ant-select-selection-overflow-item .ant-select-selection-search {
1814
+ padding: 0;
1815
+ }
1816
+ .label-select .ant-select-multiple.ant-select-lg .ant-select-selection-item {
1817
+ width: auto;
1818
+ height: auto;
1819
+ margin: 0 4px 4px 0;
1820
+ padding: 1px 4px;
1821
+ color: #333;
1822
+ font-size: 12px;
1823
+ line-height: 17px;
1824
+ background-color: #fff;
1825
+ border: 1px solid #ccc;
1826
+ border-radius: 4px;
1827
+ }
1795
1828
  .label-select .ant-select-allow-clear .ant-select-clear {
1796
1829
  right: 16px;
1797
1830
  }
@@ -3,13 +3,60 @@
3
3
  @import '../../style/themes/default.less';
4
4
 
5
5
  @color_9aa5b5: #9aa5b5;
6
+ @color_e5e5e5: #e5e5e5;
7
+ @color_7d7d7d: #7d7d7d;
8
+ @color_333: #333;
9
+ @color_ccc: #ccc;
10
+ @white: #fff;
6
11
  @font-size-base: 14px;
12
+ @font-size-sm: @font-size-base - 2px;
7
13
 
8
14
  .label-select {
9
15
  position: relative;
10
16
  width: 100%;
11
17
  height: 100%;
12
18
 
19
+ .@{ant-prefix}-select {
20
+ width: 100%;
21
+ }
22
+
23
+ .@{ant-prefix}-select-multiple {
24
+ .@{ant-prefix}-select-selector {
25
+ height: 45px;
26
+ padding: 6px 11px 7px;
27
+ border: 1px solid @color_e5e5e5;
28
+ border-radius: 8px;
29
+ outline: none;
30
+ }
31
+
32
+ .@{ant-prefix}-select-selection-overflow {
33
+ display: flex;
34
+ width: 100%;
35
+ transform: translateY(8px);
36
+ }
37
+
38
+ .@{ant-prefix}-select-selection-overflow-item {
39
+ max-width: 25%;
40
+ }
41
+
42
+ .@{ant-prefix}-select-selection-overflow-item .@{ant-prefix}-select-selection-search {
43
+ padding: 0;
44
+ }
45
+ }
46
+
47
+ .@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
48
+ width: auto;
49
+ height: auto;
50
+ margin: 0 4px 4px 0;
51
+ padding: 1px 4px;
52
+ color: @color_333;
53
+ font-size: @font-size-sm;
54
+ line-height: 17px;
55
+ background-color: @white;
56
+ border: 1px solid @color_ccc;
57
+ border-radius: 4px;
58
+ }
59
+
13
60
  .@{ant-prefix}-select-allow-clear {
14
61
  .@{ant-prefix}-select-clear {
15
62
  right: 16px;
@@ -19,7 +66,7 @@
19
66
  .@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
20
67
  .@{ant-prefix}-select-selector {
21
68
  height: 45px;
22
- border: 1px solid #e5e5e5;
69
+ border: 1px solid @color_e5e5e5;
23
70
  border-radius: 8px;
24
71
  outline: none;
25
72
  }
@@ -46,7 +93,7 @@
46
93
  top: 44%;
47
94
  width: 22px;
48
95
  height: 22px;
49
- color: #7d7d7d;
96
+ color: @color_7d7d7d;
50
97
 
51
98
  .spotecicon {
52
99
  width: 22px;
@@ -0,0 +1,4 @@
1
+ import NumberFormat from 'react-number-format';
2
+ import type { NumberFormatProps as ReactNumberFormatProps } from 'react-number-format';
3
+ export declare type NumberFormatProps = ReactNumberFormatProps;
4
+ export default NumberFormat;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
6
+ };
7
+ };
8
+
9
+ Object.defineProperty(exports, "__esModule", {
10
+ value: true
11
+ });
12
+
13
+ var react_number_format_1 = __importDefault(require("react-number-format"));
14
+
15
+ exports["default"] = react_number_format_1["default"];
@@ -0,0 +1 @@
1
+
File without changes
@@ -1845,17 +1845,17 @@ html {
1845
1845
  align-items: center;
1846
1846
  height: 100%;
1847
1847
  }
1848
- .as-img-upload-upload-progress {
1848
+ .as-img-upload .as-img-upload-upload-progress {
1849
1849
  position: absolute;
1850
1850
  top: 50%;
1851
1851
  left: 0;
1852
1852
  z-index: 2;
1853
1853
  transform: translateY(-34%);
1854
1854
  }
1855
- .as-img-upload-upload-progress .ant-progress-outer {
1855
+ .as-img-upload .as-img-upload-upload-progress .ant-progress-outer {
1856
1856
  padding: 0 20px;
1857
1857
  }
1858
- .as-img-upload-upload-progress .ant-progress-text {
1858
+ .as-img-upload .as-img-upload-upload-progress .ant-progress-text {
1859
1859
  display: block;
1860
1860
  width: 100%;
1861
1861
  color: #fff;
@@ -70,7 +70,7 @@
70
70
  height: 100%;
71
71
  }
72
72
 
73
- &-upload-progress {
73
+ & &-upload-progress {
74
74
  position: absolute;
75
75
  top: 50%;
76
76
  left: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.1.18",
3
+ "version": "2.1.21",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,8 +33,8 @@
33
33
  "@ahooksjs/use-url-state": "^2.5.8",
34
34
  "@tinymce/tinymce-react": "^4.0.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
- "a-icons": "^1.0.70",
37
- "aa-utils": "^2.0.24",
36
+ "a-icons": "^1.0.71",
37
+ "aa-utils": "^2.0.25",
38
38
  "ahooks": "^3.0.8",
39
39
  "bignumber.js": "^9.0.1",
40
40
  "copy-to-clipboard": "^3.3.1",
@@ -70,5 +70,5 @@
70
70
  "node": ">=10.0.0"
71
71
  },
72
72
  "license": "MIT",
73
- "gitHead": "3ca6e40b1f49607b3b236fd86c41b9c79b2ff385"
73
+ "gitHead": "dc14748328f7a1cd7db2b84c8819c163299a8475"
74
74
  }