@douyinfe/semi-ui 2.23.1 → 2.23.3

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.
@@ -54,7 +54,6 @@ export interface InputState {
54
54
  cachedValue: React.ReactText;
55
55
  disabled: boolean;
56
56
  props: Record<string, any>;
57
- paddingLeft: string;
58
57
  isFocus: boolean;
59
58
  isHovering: boolean;
60
59
  eyeClosed: boolean;
@@ -144,7 +143,6 @@ declare class Input extends BaseComponent<InputProps, InputState> {
144
143
  notifyKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
145
144
  notifyEnterPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
146
145
  notifyClear: (e: React.MouseEvent<HTMLDivElement>) => void;
147
- setPaddingLeft: (paddingLeft: string) => void;
148
146
  setMinLength: (minLength: number) => void;
149
147
  isEventTarget: (e: React.MouseEvent) => boolean;
150
148
  getContext(key: string): any;
@@ -106,7 +106,6 @@ class Input extends _baseComponent.default {
106
106
  cachedValue: null,
107
107
  disabled: false,
108
108
  props: {},
109
- paddingLeft: '',
110
109
  isFocus: false,
111
110
  isHovering: false,
112
111
  eyeClosed: props.mode === 'password',
@@ -157,9 +156,6 @@ class Input extends _baseComponent.default {
157
156
  notifyKeyUp: e => this.props.onKeyUp(e),
158
157
  notifyEnterPress: e => this.props.onEnterPress(e),
159
158
  notifyClear: e => this.props.onClear(e),
160
- setPaddingLeft: paddingLeft => this.setState({
161
- paddingLeft
162
- }),
163
159
  setMinLength: minLength => this.setState({
164
160
  minLength
165
161
  }),
@@ -382,7 +378,6 @@ class Input extends _baseComponent.default {
382
378
 
383
379
  const {
384
380
  value,
385
- paddingLeft,
386
381
  isFocus,
387
382
  minLength: stateMinLength
388
383
  } = this.state;
@@ -417,9 +412,7 @@ class Input extends _baseComponent.default {
417
412
  });
418
413
  const inputValue = value === null || value === undefined ? '' : value;
419
414
  const inputProps = Object.assign(Object.assign({}, rest), {
420
- style: Object.assign({
421
- paddingLeft
422
- }, inputStyle),
415
+ style: inputStyle,
423
416
  autoFocus: autofocus,
424
417
  className: inputCls,
425
418
  disabled,
@@ -514,8 +514,8 @@ class TagInput extends _baseComponent.default {
514
514
  ["".concat(prefixCls, "-error")]: validateStatus === 'error',
515
515
  ["".concat(prefixCls, "-warning")]: validateStatus === 'warning'
516
516
  });
517
- const inputCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-input"));
518
- const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"));
517
+ const inputCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-input"), "".concat(prefixCls, "-wrapper-input-").concat(size));
518
+ const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-").concat(size));
519
519
  return (
520
520
  /*#__PURE__*/
521
521
  // eslint-disable-next-line
@@ -54,7 +54,6 @@ export interface InputState {
54
54
  cachedValue: React.ReactText;
55
55
  disabled: boolean;
56
56
  props: Record<string, any>;
57
- paddingLeft: string;
58
57
  isFocus: boolean;
59
58
  isHovering: boolean;
60
59
  eyeClosed: boolean;
@@ -144,7 +143,6 @@ declare class Input extends BaseComponent<InputProps, InputState> {
144
143
  notifyKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
145
144
  notifyEnterPress: (e: React.KeyboardEvent<HTMLInputElement>) => void;
146
145
  notifyClear: (e: React.MouseEvent<HTMLDivElement>) => void;
147
- setPaddingLeft: (paddingLeft: string) => void;
148
146
  setMinLength: (minLength: number) => void;
149
147
  isEventTarget: (e: React.MouseEvent) => boolean;
150
148
  getContext(key: string): any;
@@ -86,7 +86,6 @@ class Input extends BaseComponent {
86
86
  cachedValue: null,
87
87
  disabled: false,
88
88
  props: {},
89
- paddingLeft: '',
90
89
  isFocus: false,
91
90
  isHovering: false,
92
91
  eyeClosed: props.mode === 'password',
@@ -137,9 +136,6 @@ class Input extends BaseComponent {
137
136
  notifyKeyUp: e => this.props.onKeyUp(e),
138
137
  notifyEnterPress: e => this.props.onEnterPress(e),
139
138
  notifyClear: e => this.props.onClear(e),
140
- setPaddingLeft: paddingLeft => this.setState({
141
- paddingLeft
142
- }),
143
139
  setMinLength: minLength => this.setState({
144
140
  minLength
145
141
  }),
@@ -362,7 +358,6 @@ class Input extends BaseComponent {
362
358
 
363
359
  const {
364
360
  value,
365
- paddingLeft,
366
361
  isFocus,
367
362
  minLength: stateMinLength
368
363
  } = this.state;
@@ -397,9 +392,7 @@ class Input extends BaseComponent {
397
392
  });
398
393
  const inputValue = value === null || value === undefined ? '' : value;
399
394
  const inputProps = Object.assign(Object.assign({}, rest), {
400
- style: Object.assign({
401
- paddingLeft
402
- }, inputStyle),
395
+ style: inputStyle,
403
396
  autoFocus: autofocus,
404
397
  className: inputCls,
405
398
  disabled,
@@ -484,8 +484,8 @@ class TagInput extends BaseComponent {
484
484
  ["".concat(prefixCls, "-error")]: validateStatus === 'error',
485
485
  ["".concat(prefixCls, "-warning")]: validateStatus === 'warning'
486
486
  });
487
- const inputCls = cls("".concat(prefixCls, "-wrapper-input"));
488
- const wrapperCls = cls("".concat(prefixCls, "-wrapper"));
487
+ const inputCls = cls("".concat(prefixCls, "-wrapper-input"), "".concat(prefixCls, "-wrapper-input-").concat(size));
488
+ const wrapperCls = cls("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-").concat(size));
489
489
  return (
490
490
  /*#__PURE__*/
491
491
  // eslint-disable-next-line
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.23.1",
3
+ "version": "2.23.3",
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.23.1",
22
- "@douyinfe/semi-foundation": "2.23.1",
23
- "@douyinfe/semi-icons": "2.23.1",
21
+ "@douyinfe/semi-animation-react": "2.23.3",
22
+ "@douyinfe/semi-foundation": "2.23.3",
23
+ "@douyinfe/semi-icons": "2.23.3",
24
24
  "@douyinfe/semi-illustrations": "2.15.0",
25
- "@douyinfe/semi-theme-default": "2.23.1",
25
+ "@douyinfe/semi-theme-default": "2.23.3",
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": "3960e35ea5c7244e5adbc9cb938330e9a6ee43e2",
72
+ "gitHead": "5aadb20452c9705c91bcc32013a4e7dee74e49fd",
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.23.1",
78
+ "@douyinfe/semi-scss-compile": "2.23.3",
79
79
  "@storybook/addon-knobs": "^6.3.1",
80
80
  "@types/lodash": "^4.14.176",
81
81
  "@types/react": ">=16.0.0",