@douyinfe/semi-ui 2.20.7 → 2.20.8
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/dist/css/semi.css +7 -7
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +3 -3
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/form/interface.d.ts +1 -1
- package/lib/cjs/select/index.d.ts +2 -2
- package/lib/cjs/select/index.js +2 -2
- package/lib/es/form/interface.d.ts +1 -1
- package/lib/es/select/index.d.ts +2 -2
- package/lib/es/select/index.js +2 -2
- package/package.json +7 -7
|
@@ -10,7 +10,7 @@ import { CheckboxProps } from '../checkbox/index';
|
|
|
10
10
|
import { RadioProps } from '../radio/index';
|
|
11
11
|
import { ReactFieldError as FieldError } from './errorMessage';
|
|
12
12
|
import { LabelProps } from './label';
|
|
13
|
-
export { FormState, FormApi, WithFieldOption };
|
|
13
|
+
export { FormState, FormApi, WithFieldOption, RuleItem };
|
|
14
14
|
export declare type CommonFieldProps = {
|
|
15
15
|
/** Field is required (except Form. Checkbox within the Group, Form. Radio) */
|
|
16
16
|
field: string;
|
|
@@ -6,9 +6,9 @@ import BaseComponent, { ValidateStatus } from '../_base/baseComponent';
|
|
|
6
6
|
import { InputProps } from '../input/index';
|
|
7
7
|
import Option, { OptionProps } from './option';
|
|
8
8
|
import OptionGroup from './optionGroup';
|
|
9
|
-
import { Subtract } from 'utility-types';
|
|
10
9
|
import '@douyinfe/semi-foundation/lib/cjs/select/select.css';
|
|
11
|
-
import { Position, TooltipProps } from '../tooltip';
|
|
10
|
+
import type { Position, TooltipProps } from '../tooltip';
|
|
11
|
+
import type { Subtract } from 'utility-types';
|
|
12
12
|
export type { OptionProps } from './option';
|
|
13
13
|
export type { OptionGroupProps } from './optionGroup';
|
|
14
14
|
export type { VirtualRowProps } from './virtualRow';
|
package/lib/cjs/select/index.js
CHANGED
|
@@ -679,7 +679,7 @@ class Select extends _baseComponent.default {
|
|
|
679
679
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
680
680
|
_react.default.createElement("div", {
|
|
681
681
|
id: "".concat(prefixcls, "-").concat(this.selectOptionListID),
|
|
682
|
-
className: dropdownClassName,
|
|
682
|
+
className: (0, _classnames.default)("".concat(prefixcls, "-option-list-wrapper"), dropdownClassName),
|
|
683
683
|
style: style,
|
|
684
684
|
ref: this.setOptionContainerEl,
|
|
685
685
|
onKeyDown: e => this.foundation.handleContainerKeyDown(e)
|
|
@@ -1190,7 +1190,7 @@ Select.defaultProps = {
|
|
|
1190
1190
|
onBlur: _noop2.default,
|
|
1191
1191
|
onClear: _noop2.default,
|
|
1192
1192
|
onListScroll: _noop2.default,
|
|
1193
|
-
maxHeight:
|
|
1193
|
+
maxHeight: _constants.numbers.LIST_HEIGHT,
|
|
1194
1194
|
dropdownMatchSelectWidth: true,
|
|
1195
1195
|
defaultActiveFirstOption: true,
|
|
1196
1196
|
showArrow: true,
|
|
@@ -10,7 +10,7 @@ import { CheckboxProps } from '../checkbox/index';
|
|
|
10
10
|
import { RadioProps } from '../radio/index';
|
|
11
11
|
import { ReactFieldError as FieldError } from './errorMessage';
|
|
12
12
|
import { LabelProps } from './label';
|
|
13
|
-
export { FormState, FormApi, WithFieldOption };
|
|
13
|
+
export { FormState, FormApi, WithFieldOption, RuleItem };
|
|
14
14
|
export declare type CommonFieldProps = {
|
|
15
15
|
/** Field is required (except Form. Checkbox within the Group, Form. Radio) */
|
|
16
16
|
field: string;
|
package/lib/es/select/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import BaseComponent, { ValidateStatus } from '../_base/baseComponent';
|
|
|
6
6
|
import { InputProps } from '../input/index';
|
|
7
7
|
import Option, { OptionProps } from './option';
|
|
8
8
|
import OptionGroup from './optionGroup';
|
|
9
|
-
import { Subtract } from 'utility-types';
|
|
10
9
|
import '@douyinfe/semi-foundation/lib/es/select/select.css';
|
|
11
|
-
import { Position, TooltipProps } from '../tooltip';
|
|
10
|
+
import type { Position, TooltipProps } from '../tooltip';
|
|
11
|
+
import type { Subtract } from 'utility-types';
|
|
12
12
|
export type { OptionProps } from './option';
|
|
13
13
|
export type { OptionGroupProps } from './optionGroup';
|
|
14
14
|
export type { VirtualRowProps } from './virtualRow';
|
package/lib/es/select/index.js
CHANGED
|
@@ -633,7 +633,7 @@ class Select extends BaseComponent {
|
|
|
633
633
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
634
634
|
React.createElement("div", {
|
|
635
635
|
id: "".concat(prefixcls, "-").concat(this.selectOptionListID),
|
|
636
|
-
className: dropdownClassName,
|
|
636
|
+
className: cls("".concat(prefixcls, "-option-list-wrapper"), dropdownClassName),
|
|
637
637
|
style: style,
|
|
638
638
|
ref: this.setOptionContainerEl,
|
|
639
639
|
onKeyDown: e => this.foundation.handleContainerKeyDown(e)
|
|
@@ -1145,7 +1145,7 @@ Select.defaultProps = {
|
|
|
1145
1145
|
onBlur: _noop,
|
|
1146
1146
|
onClear: _noop,
|
|
1147
1147
|
onListScroll: _noop,
|
|
1148
|
-
maxHeight:
|
|
1148
|
+
maxHeight: numbers.LIST_HEIGHT,
|
|
1149
1149
|
dropdownMatchSelectWidth: true,
|
|
1150
1150
|
defaultActiveFirstOption: true,
|
|
1151
1151
|
showArrow: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@douyinfe/semi-animation": "2.12.0",
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.20.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.20.
|
|
23
|
-
"@douyinfe/semi-icons": "2.20.
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.20.8",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.20.8",
|
|
23
|
+
"@douyinfe/semi-icons": "2.20.8",
|
|
24
24
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.20.
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.20.8",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "9e94c35ebc88ffd1ed06cc5057ed90f94132a8f2",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
76
76
|
"@babel/preset-env": "^7.15.8",
|
|
77
77
|
"@babel/preset-react": "^7.14.5",
|
|
78
|
-
"@douyinfe/semi-scss-compile": "2.20.
|
|
78
|
+
"@douyinfe/semi-scss-compile": "2.20.8",
|
|
79
79
|
"@storybook/addon-knobs": "^6.3.1",
|
|
80
80
|
"@types/lodash": "^4.14.176",
|
|
81
81
|
"@types/react": ">=16.0.0",
|