@synerise/ds-input 0.24.20 → 0.25.0
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/CHANGELOG.md +19 -0
- package/README.md +0 -15
- package/dist/AutosizeInput/AutosizeInput.js +43 -29
- package/dist/AutosizeInput/utils/calculateInputWidth.d.ts +2 -2
- package/dist/AutosizeInput/utils/calculateInputWidth.js +2 -2
- package/dist/Input.d.ts +3 -29
- package/dist/Input.js +196 -203
- package/dist/Input.styles.d.ts +4 -16
- package/dist/Input.styles.js +13 -37
- package/dist/Input.types.d.ts +4 -10
- package/dist/TextArea.d.ts +1 -1
- package/dist/Textarea/Textarea.d.ts +2 -2
- package/dist/Textarea/Textarea.js +1 -6
- package/dist/components/ElementIcons.js +2 -6
- package/dist/components/ExpandableWrapper.d.ts +2 -2
- package/dist/hooks/useElementFocus.d.ts +2 -3
- package/dist/hooks/useInputAddonHeight.d.ts +2 -3
- package/dist/hooks/useInputAddonHeight.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/modules.d.js +1 -0
- package/dist/style/index.css +1 -1
- package/package.json +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.25.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.24.21...@synerise/ds-input@0.25.0) (2025-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.24.21](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.24.20...@synerise/ds-input@0.24.21) (2025-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-input
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.24.20](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.24.19...@synerise/ds-input@0.24.20) (2025-01-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-input
|
package/README.md
CHANGED
|
@@ -13,10 +13,6 @@ Input UI Component
|
|
|
13
13
|
|
|
14
14
|
<iframe src="/storybook-static/iframe.html?id=components-input--textarea"></iframe>
|
|
15
15
|
|
|
16
|
-
## MaskedInput
|
|
17
|
-
|
|
18
|
-
<iframe src="/storybook-static/iframe.html?id=components-input--maskedinput"></iframe>
|
|
19
|
-
|
|
20
16
|
## API
|
|
21
17
|
|
|
22
18
|
### Input
|
|
@@ -72,17 +68,6 @@ $flexItemSurroundingTheInput {
|
|
|
72
68
|
|
|
73
69
|
See https://css-tricks.com/flexbox-truncated-text/ for more details.
|
|
74
70
|
|
|
75
|
-
|
|
76
|
-
### MaskedInput
|
|
77
|
-
|
|
78
|
-
Same as Input api with additional props:
|
|
79
|
-
|
|
80
|
-
| Property | Description | Type | Default |
|
|
81
|
-
| ---------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ------- |
|
|
82
|
-
| mask | The masking pattern to be applied to the input | string (https://github.com/insin/inputmask-core#pattern) | - |
|
|
83
|
-
| placeholderChar | Customized placeholder character used to fill in editable parts of the pattern. | string | '\_' |
|
|
84
|
-
| formatCharacters | Customized format character definitions for use in the pattern. | Object (https://github.com/insin/inputmask-core#formatcharacters) | - |
|
|
85
|
-
|
|
86
71
|
### InputGroup
|
|
87
72
|
|
|
88
73
|
| Property | Description | Type | Default |
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8
2
|
import React, { useState, useEffect, useRef, useLayoutEffect, forwardRef, useImperativeHandle, useCallback } from 'react';
|
|
9
3
|
import { useResizeObserver } from '@synerise/ds-utils';
|
|
10
4
|
import { calculateInputWidth } from './utils';
|
|
@@ -18,7 +12,7 @@ var sizerStyle = {
|
|
|
18
12
|
whiteSpace: 'pre'
|
|
19
13
|
};
|
|
20
14
|
var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
21
|
-
var _ref2,
|
|
15
|
+
var _ref2, _style$display;
|
|
22
16
|
var _ref$extraWidth = _ref.extraWidth,
|
|
23
17
|
extraWidth = _ref$extraWidth === void 0 ? 16 : _ref$extraWidth,
|
|
24
18
|
wrapperClassName = _ref.wrapperClassName,
|
|
@@ -38,7 +32,10 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
38
32
|
transformRef = _ref$transformRef === void 0 ? function (element) {
|
|
39
33
|
return element;
|
|
40
34
|
} : _ref$transformRef,
|
|
41
|
-
|
|
35
|
+
placeholder = _ref.placeholder,
|
|
36
|
+
value = _ref.value,
|
|
37
|
+
defaultValue = _ref.defaultValue,
|
|
38
|
+
style = _ref.style;
|
|
42
39
|
var inputRef = useRef(null);
|
|
43
40
|
var inputWrapperRef = useRef(null);
|
|
44
41
|
var sizerRef = useRef(null);
|
|
@@ -47,11 +44,26 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
47
44
|
var _useState = useState(0),
|
|
48
45
|
inputWidth = _useState[0],
|
|
49
46
|
setInputWidth = _useState[1];
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
var usedValue = (_ref2 = value != null ? value : defaultValue) != null ? _ref2 : '';
|
|
48
|
+
var hasValue = Boolean(usedValue);
|
|
49
|
+
var resizeHandler = useCallback(function (newSizerWidth) {
|
|
50
|
+
var _placeholderSizerRef$, _sizerRef$current;
|
|
51
|
+
var placeholderWidth = (_placeholderSizerRef$ = placeholderSizerRef.current) == null ? void 0 : _placeholderSizerRef$.scrollWidth;
|
|
52
|
+
var calculatedWidth = calculateInputWidth({
|
|
53
|
+
sizerWidth: newSizerWidth.width,
|
|
54
|
+
hasValue: !!((_sizerRef$current = sizerRef.current) != null && _sizerRef$current.textContent),
|
|
55
|
+
placeholderIsMinWidth: placeholderIsMinWidth,
|
|
56
|
+
placeholderWidth: placeholderWidth,
|
|
57
|
+
minWidth: +minWidth,
|
|
58
|
+
placeholder: placeholder
|
|
59
|
+
});
|
|
60
|
+
if (inputWrapperRef.current) {
|
|
61
|
+
inputWrapperRef.current.style.width = calculatedWidth + +extraWidth + "px";
|
|
62
|
+
}
|
|
63
|
+
}, [extraWidth, minWidth, placeholder, placeholderIsMinWidth]);
|
|
64
|
+
useResizeObserver(sizerRef, resizeHandler);
|
|
65
|
+
var _useResizeObserver = useResizeObserver(placeholderSizerRef),
|
|
66
|
+
updatedPlaceholderWidth = _useResizeObserver.width;
|
|
55
67
|
var copyInputStyles = function copyInputStyles() {
|
|
56
68
|
if (inputRef.current) {
|
|
57
69
|
var computedStyle = window.getComputedStyle(inputRef.current);
|
|
@@ -74,23 +86,25 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
74
86
|
}
|
|
75
87
|
};
|
|
76
88
|
var resize = useCallback(function (width) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
89
|
+
if (inputWidth !== width + +extraWidth) {
|
|
90
|
+
preAutosize && preAutosize(width);
|
|
91
|
+
setInputWidth(width + +extraWidth);
|
|
92
|
+
onAutosize && onAutosize(width);
|
|
93
|
+
}
|
|
94
|
+
}, [extraWidth, inputWidth, onAutosize, preAutosize]);
|
|
81
95
|
var updateInputWidth = function updateInputWidth() {
|
|
82
|
-
var _sizerRef$
|
|
83
|
-
var sizerWidth = (_sizerRef$
|
|
84
|
-
var placeholderWidth = (_placeholderSizerRef$ = placeholderSizerRef.current) == null ? void 0 : _placeholderSizerRef
|
|
96
|
+
var _sizerRef$current2, _placeholderSizerRef$2;
|
|
97
|
+
var sizerWidth = (_sizerRef$current2 = sizerRef.current) == null ? void 0 : _sizerRef$current2.scrollWidth;
|
|
98
|
+
var placeholderWidth = (_placeholderSizerRef$2 = placeholderSizerRef.current) == null ? void 0 : _placeholderSizerRef$2.scrollWidth;
|
|
85
99
|
var calculatedWidth = calculateInputWidth({
|
|
86
100
|
sizerWidth: sizerWidth,
|
|
87
|
-
|
|
101
|
+
hasValue: hasValue,
|
|
88
102
|
placeholderIsMinWidth: placeholderIsMinWidth,
|
|
89
103
|
placeholderWidth: placeholderWidth,
|
|
90
104
|
minWidth: +minWidth,
|
|
91
|
-
placeholder:
|
|
105
|
+
placeholder: placeholder
|
|
92
106
|
});
|
|
93
|
-
if (sizerWidth &&
|
|
107
|
+
if (sizerWidth && hasValue && calculatedWidth || placeholder && placeholderWidth || sizerRef.current) {
|
|
94
108
|
resize(calculatedWidth);
|
|
95
109
|
}
|
|
96
110
|
};
|
|
@@ -122,7 +136,7 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
122
136
|
}
|
|
123
137
|
}
|
|
124
138
|
}, [handleInputRef, transformRef, transformWrapperRef]);
|
|
125
|
-
useEffect(updateInputWidth, [
|
|
139
|
+
useEffect(updateInputWidth, [hasValue, placeholder, extraWidth, placeholderIsMinWidth, onAutosize, setInputWidth, minWidth, updatedPlaceholderWidth, preAutosize, resize]);
|
|
126
140
|
useImperativeHandle(forwardedRef, function () {
|
|
127
141
|
return {
|
|
128
142
|
inputRef: inputRef,
|
|
@@ -133,9 +147,9 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
133
147
|
updateInputWidth: updateInputWidth
|
|
134
148
|
};
|
|
135
149
|
});
|
|
136
|
-
var wrapperStyle =
|
|
150
|
+
var wrapperStyle = _extends({}, wrapperStyleProp, {
|
|
137
151
|
position: 'relative',
|
|
138
|
-
display: (
|
|
152
|
+
display: (_style$display = style == null ? void 0 : style.display) != null ? _style$display : 'inline-block'
|
|
139
153
|
});
|
|
140
154
|
return /*#__PURE__*/React.createElement("div", {
|
|
141
155
|
ref: wrapperRef,
|
|
@@ -146,10 +160,10 @@ var AutosizeInput = forwardRef(function (_ref, forwardedRef) {
|
|
|
146
160
|
style: sizerStyle,
|
|
147
161
|
ref: sizerRef,
|
|
148
162
|
"data-testid": "sizer"
|
|
149
|
-
}, usedValue), children,
|
|
163
|
+
}, usedValue), children, placeholder ? /*#__PURE__*/React.createElement("div", {
|
|
150
164
|
ref: placeholderSizerRef,
|
|
151
165
|
style: sizerStyle,
|
|
152
166
|
"data-testid": "placeholder-sizer"
|
|
153
|
-
},
|
|
167
|
+
}, placeholder) : null);
|
|
154
168
|
});
|
|
155
169
|
export default AutosizeInput;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AutosizeInputProps } from '../AutosizeInput.types';
|
|
2
2
|
type CalculateWidthProps = {
|
|
3
3
|
sizerWidth?: number;
|
|
4
|
-
|
|
4
|
+
hasValue?: boolean;
|
|
5
5
|
placeholderIsMinWidth?: AutosizeInputProps['placeholderIsMinWidth'];
|
|
6
6
|
placeholderWidth?: number | null;
|
|
7
7
|
minWidth?: number;
|
|
8
8
|
placeholder?: AutosizeInputProps['placeholder'];
|
|
9
9
|
};
|
|
10
|
-
declare const calculateInputWidth: ({ sizerWidth,
|
|
10
|
+
declare const calculateInputWidth: ({ sizerWidth, hasValue, placeholderIsMinWidth, placeholderWidth, minWidth, placeholder, }: CalculateWidthProps) => number;
|
|
11
11
|
export default calculateInputWidth;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var calculateInputWidth = function calculateInputWidth(_ref) {
|
|
2
2
|
var sizerWidth = _ref.sizerWidth,
|
|
3
|
-
|
|
3
|
+
hasValue = _ref.hasValue,
|
|
4
4
|
placeholderIsMinWidth = _ref.placeholderIsMinWidth,
|
|
5
5
|
placeholderWidth = _ref.placeholderWidth,
|
|
6
6
|
minWidth = _ref.minWidth,
|
|
7
7
|
placeholder = _ref.placeholder;
|
|
8
8
|
var width = 0;
|
|
9
|
-
if (sizerWidth &&
|
|
9
|
+
if (sizerWidth && hasValue) {
|
|
10
10
|
/* If the input field has content, update the sizer to match its width */
|
|
11
11
|
width = sizerWidth;
|
|
12
12
|
if (placeholderIsMinWidth && placeholderWidth && sizerWidth < placeholderWidth) {
|
package/dist/Input.d.ts
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyledComponent } from 'styled-components';
|
|
3
|
-
import { InputProps as AntdInputProps } from 'antd/lib/input';
|
|
4
|
-
import AntdMaskedInput from 'antd-mask-input';
|
|
5
2
|
import '@synerise/ds-core/dist/js/style';
|
|
6
3
|
import './style/index.less';
|
|
7
|
-
import type {
|
|
8
|
-
export declare const Input: React.
|
|
9
|
-
|
|
10
|
-
* @deprecated MaskedInput component will no longer receive any updates
|
|
11
|
-
*/
|
|
12
|
-
export declare const MaskedInput: React.ComponentType<BaseProps<HTMLInputElement> & AntdInputProps & {
|
|
13
|
-
mask: string;
|
|
14
|
-
formatCharacters?: object | undefined;
|
|
15
|
-
placeholderChar?: string | undefined;
|
|
16
|
-
value?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated RawMaskedInput component will no longer receive any updates
|
|
20
|
-
*/
|
|
21
|
-
export declare const RawMaskedInput: StyledComponent<React.ForwardRefExoticComponent<AntdInputProps & {
|
|
22
|
-
mask: string;
|
|
23
|
-
formatCharacters?: object | undefined;
|
|
24
|
-
placeholderChar?: string | undefined;
|
|
25
|
-
value?: string | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
error?: boolean | undefined;
|
|
28
|
-
} & React.RefAttributes<AntdMaskedInput>>, any, {
|
|
29
|
-
error?: boolean | undefined;
|
|
30
|
-
autoResize?: import("./Input.types").AutoResizeProp | undefined;
|
|
31
|
-
}, never>;
|
|
32
|
-
export declare const RawInput: (props: DSInputProps) => React.JSX.Element;
|
|
4
|
+
import type { InputProps } from './Input.types';
|
|
5
|
+
export declare const Input: ({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, expandable, expandableTooltip, renderCustomCounter, ...antdInputProps }: InputProps) => React.JSX.Element;
|
|
6
|
+
export declare const RawInput: (props: InputProps) => React.JSX.Element;
|
|
33
7
|
export { default as InputGroup } from './InputGroup';
|
|
34
8
|
export { default as InputMultivalue } from './InputMultivalue/InputMultivalue';
|
|
35
9
|
export declare const AutoResize: any;
|
package/dist/Input.js
CHANGED
|
@@ -11,212 +11,205 @@ import { ContentAboveElement, ContentBelowElement, ElementIcons, AutosizeWrapper
|
|
|
11
11
|
import { useInputAddonHeight, useElementFocus } from './hooks';
|
|
12
12
|
import { getCharCount } from './utils';
|
|
13
13
|
var VERTICAL_BORDER_OFFSET = 2;
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
14
|
+
export var Input = function Input(_ref) {
|
|
15
|
+
var className = _ref.className,
|
|
16
|
+
errorText = _ref.errorText,
|
|
17
|
+
label = _ref.label,
|
|
18
|
+
description = _ref.description,
|
|
19
|
+
counterLimit = _ref.counterLimit,
|
|
20
|
+
tooltip = _ref.tooltip,
|
|
21
|
+
tooltipConfig = _ref.tooltipConfig,
|
|
22
|
+
icon1 = _ref.icon1,
|
|
23
|
+
icon1Tooltip = _ref.icon1Tooltip,
|
|
24
|
+
autoResize = _ref.autoResize,
|
|
25
|
+
icon2 = _ref.icon2,
|
|
26
|
+
icon2Tooltip = _ref.icon2Tooltip,
|
|
27
|
+
resetMargin = _ref.resetMargin,
|
|
28
|
+
handleInputRef = _ref.handleInputRef,
|
|
29
|
+
prefixel = _ref.prefixel,
|
|
30
|
+
suffixel = _ref.suffixel,
|
|
31
|
+
error = _ref.error,
|
|
32
|
+
expandable = _ref.expandable,
|
|
33
|
+
expandableTooltip = _ref.expandableTooltip,
|
|
34
|
+
renderCustomCounter = _ref.renderCustomCounter,
|
|
35
|
+
antdInputProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
36
|
+
var id = useMemo(function () {
|
|
37
|
+
return uuid();
|
|
38
|
+
}, []);
|
|
39
|
+
var charCount = getCharCount(antdInputProps.value, counterLimit);
|
|
40
|
+
var expandableTextAreaRef = useRef(null);
|
|
41
|
+
var _useState = useState(false),
|
|
42
|
+
expanded = _useState[0],
|
|
43
|
+
setExpanded = _useState[1];
|
|
44
|
+
var _useState2 = useState(false),
|
|
45
|
+
overflown = _useState2[0],
|
|
46
|
+
setOverflown = _useState2[1];
|
|
47
|
+
var scrollLeftRef = useRef(0);
|
|
48
|
+
var hasErrorMessage = Boolean(errorText);
|
|
49
|
+
var paddingDiff = useRef();
|
|
50
|
+
var inputRef = useRef(null);
|
|
51
|
+
var autosizeRef = useRef(null);
|
|
52
|
+
var externalRef = useRef(null);
|
|
53
|
+
var elementRef = useRef(null);
|
|
54
|
+
var handleIconsClick = useElementFocus(inputRef);
|
|
55
|
+
var _useInputAddonHeight = useInputAddonHeight(inputRef),
|
|
56
|
+
inputAddonHeight = _useInputAddonHeight.inputAddonHeight;
|
|
57
|
+
useResizeObserver(elementRef);
|
|
58
|
+
useEffect(function () {
|
|
59
|
+
if (inputRef.current) {
|
|
60
|
+
externalRef.current = inputRef.current.input;
|
|
61
|
+
}
|
|
62
|
+
handleInputRef && handleInputRef(externalRef);
|
|
63
|
+
}, [handleInputRef]);
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
if (autosizeRef.current) {
|
|
66
|
+
externalRef.current = autosizeRef.current.inputRef.current;
|
|
63
67
|
handleInputRef && handleInputRef(externalRef);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
antdInputProps.onChange && antdInputProps.onChange(event);
|
|
90
|
-
};
|
|
91
|
-
var handleExpandableTextareaBlur = function handleExpandableTextareaBlur(event) {
|
|
92
|
-
setExpanded(false);
|
|
93
|
-
if (inputRef.current) {
|
|
94
|
-
inputRef.current.input.value = event.target.value;
|
|
95
|
-
inputRef.current.input.focus();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var handleExpandIconClick = function handleExpandIconClick(event) {
|
|
99
|
-
event.stopPropagation();
|
|
100
|
-
if (inputRef.current && expandableTextAreaRef.current) {
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
expandableTextAreaRef.current.value = inputRef.current.input.value;
|
|
103
|
-
expandableTextAreaRef.current.focus();
|
|
104
|
-
}
|
|
105
|
-
setExpanded(true);
|
|
106
|
-
};
|
|
107
|
-
useEffect(function () {
|
|
108
|
-
if (expanded) {
|
|
109
|
-
expandableTextAreaRef.current && expandableTextAreaRef.current.focus();
|
|
110
|
-
}
|
|
111
|
-
}, [expandableTextAreaRef, expanded]);
|
|
112
|
-
var handleChange = useCallback(function (event) {
|
|
113
|
-
var _event$currentTarget = event.currentTarget,
|
|
114
|
-
newValue = _event$currentTarget.value,
|
|
115
|
-
scrollWidth = _event$currentTarget.scrollWidth,
|
|
116
|
-
clientWidth = _event$currentTarget.clientWidth;
|
|
117
|
-
var isNowOverflown = scrollWidth > clientWidth;
|
|
118
|
-
if (!autoResize && expandable && isNowOverflown !== overflown) {
|
|
119
|
-
setOverflown(isNowOverflown);
|
|
120
|
-
}
|
|
121
|
-
if (counterLimit && newValue.length > counterLimit) return;
|
|
122
|
-
antdInputProps.onChange && antdInputProps.onChange(event);
|
|
123
|
-
}, [antdInputProps, autoResize, counterLimit, expandable, overflown]);
|
|
124
|
-
var stretchToFit = autoResize && autoResize !== true && Boolean(autoResize.stretchToFit);
|
|
125
|
-
var preAutosize = function preAutosize() {
|
|
126
|
-
var _inputRef$current;
|
|
127
|
-
scrollLeftRef.current = ((_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.input.scrollLeft) || 0;
|
|
128
|
-
inputRef.current && inputRef.current.input.style.removeProperty('max-width');
|
|
129
|
-
};
|
|
130
|
-
var onAutosize = function onAutosize(newWidth) {
|
|
131
|
-
var parentRect = elementRef.current && elementRef.current.getBoundingClientRect();
|
|
132
|
-
if (stretchToFit && inputRef.current && parentRect != null && parentRect.width && paddingDiff.current) {
|
|
133
|
-
inputRef.current.input.style.maxWidth = (parentRect == null ? void 0 : parentRect.width) - paddingDiff.current + "px";
|
|
134
|
-
inputRef.current.input.scrollLeft = scrollLeftRef.current;
|
|
135
|
-
}
|
|
136
|
-
if (autoResize && inputRef.current && expandable) {
|
|
137
|
-
var style = window.getComputedStyle(inputRef.current.input);
|
|
138
|
-
var minWidth = parseInt(style.minWidth, 10);
|
|
139
|
-
setOverflown(newWidth > minWidth);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
var autoSizedComponent = /*#__PURE__*/React.createElement(AutosizeWrapper, {
|
|
143
|
-
preAutosize: preAutosize,
|
|
144
|
-
onAutosize: onAutosize,
|
|
145
|
-
value: antdInputProps.value,
|
|
146
|
-
autoResize: !!autoResize
|
|
147
|
-
}, /*#__PURE__*/React.createElement(WrappedComponent, _extends({
|
|
148
|
-
autoResize: autoResize,
|
|
149
|
-
"data-testid": "input-autosize-input"
|
|
150
|
-
}, antdInputProps, {
|
|
151
|
-
className: hasErrorMessage || error ? 'error' : undefined,
|
|
152
|
-
addonBefore: !!prefixel && /*#__PURE__*/React.createElement(S.AddonWrapper, {
|
|
153
|
-
className: "ds-input-prefix",
|
|
154
|
-
height: inputAddonHeight - VERTICAL_BORDER_OFFSET
|
|
155
|
-
}, prefixel),
|
|
156
|
-
addonAfter: !!suffixel && /*#__PURE__*/React.createElement(S.AddonWrapper, {
|
|
157
|
-
className: "ds-input-suffix",
|
|
158
|
-
height: inputAddonHeight - VERTICAL_BORDER_OFFSET
|
|
159
|
-
}, suffixel),
|
|
160
|
-
error: hasErrorMessage || error,
|
|
161
|
-
onChange: handleChange,
|
|
162
|
-
value: antdInputProps.value,
|
|
163
|
-
autoComplete: "off",
|
|
164
|
-
id: id,
|
|
165
|
-
ref: inputRef
|
|
166
|
-
})));
|
|
167
|
-
return /*#__PURE__*/React.createElement(S.OuterWrapper, {
|
|
168
|
-
ref: elementRef,
|
|
169
|
-
autoResize: autoResize,
|
|
170
|
-
className: className,
|
|
171
|
-
resetMargin: resetMargin
|
|
172
|
-
}, /*#__PURE__*/React.createElement(ContentAboveElement, {
|
|
173
|
-
label: label,
|
|
174
|
-
counterLimit: counterLimit,
|
|
175
|
-
id: id,
|
|
176
|
-
tooltip: tooltip,
|
|
177
|
-
tooltipConfig: tooltipConfig,
|
|
178
|
-
charCount: charCount,
|
|
179
|
-
renderCustomCounter: renderCustomCounter
|
|
180
|
-
}), /*#__PURE__*/React.createElement(S.InputWrapper, {
|
|
181
|
-
icon1: Boolean(icon1),
|
|
182
|
-
icon2: Boolean(icon2),
|
|
183
|
-
icon3: !!expandable
|
|
184
|
-
}, /*#__PURE__*/React.createElement(ElementIcons, {
|
|
185
|
-
handleIconsClick: handleIconsClick,
|
|
186
|
-
disabled: antdInputProps.disabled,
|
|
187
|
-
icon1: icon1,
|
|
188
|
-
icon2: icon2,
|
|
189
|
-
icon1Tooltip: icon1Tooltip,
|
|
190
|
-
icon2Tooltip: icon2Tooltip,
|
|
191
|
-
className: className,
|
|
192
|
-
type: "input",
|
|
193
|
-
expandable: expandable,
|
|
194
|
-
overflown: overflown,
|
|
195
|
-
handleExpandIconClick: handleExpandIconClick,
|
|
196
|
-
expandableTooltip: expandableTooltip
|
|
197
|
-
}), expandable ? /*#__PURE__*/React.createElement(ExpandableWrapper, {
|
|
198
|
-
onChange: handleTextareaChange,
|
|
199
|
-
onBlur: handleExpandableTextareaBlur,
|
|
200
|
-
ref: expandableTextAreaRef,
|
|
201
|
-
value: antdInputProps.value,
|
|
202
|
-
expanded: expanded
|
|
203
|
-
}, autoSizedComponent) : autoSizedComponent), /*#__PURE__*/React.createElement(ContentBelowElement, {
|
|
204
|
-
description: description,
|
|
205
|
-
errorText: errorText
|
|
206
|
-
}));
|
|
68
|
+
}
|
|
69
|
+
}, [handleInputRef]);
|
|
70
|
+
useEffect(function () {
|
|
71
|
+
var _inputRef$current;
|
|
72
|
+
if ((_inputRef$current = inputRef.current) != null && _inputRef$current.input) {
|
|
73
|
+
var _getComputedStyle = getComputedStyle(inputRef.current.input),
|
|
74
|
+
paddingLeft = _getComputedStyle.paddingLeft,
|
|
75
|
+
paddingRight = _getComputedStyle.paddingRight;
|
|
76
|
+
paddingDiff.current = parseFloat(paddingLeft) + parseFloat(paddingRight);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
useEffect(function () {
|
|
80
|
+
var _inputRef$current2;
|
|
81
|
+
if (!autoResize && expandable && (_inputRef$current2 = inputRef.current) != null && _inputRef$current2.input) {
|
|
82
|
+
setOverflown(inputRef.current.input.scrollWidth > inputRef.current.input.clientWidth);
|
|
83
|
+
}
|
|
84
|
+
}, [autoResize, expandable, expanded]);
|
|
85
|
+
var handleTextareaChange = function handleTextareaChange(event) {
|
|
86
|
+
var newValue = event.currentTarget.value;
|
|
87
|
+
if (counterLimit && newValue.length > counterLimit) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
antdInputProps.onChange && antdInputProps.onChange(event);
|
|
207
92
|
};
|
|
93
|
+
var handleExpandableTextareaBlur = function handleExpandableTextareaBlur(event) {
|
|
94
|
+
var _inputRef$current3;
|
|
95
|
+
setExpanded(false);
|
|
96
|
+
if ((_inputRef$current3 = inputRef.current) != null && _inputRef$current3.input) {
|
|
97
|
+
inputRef.current.input.value = event.target.value;
|
|
98
|
+
inputRef.current.input.focus();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
var handleExpandIconClick = function handleExpandIconClick(event) {
|
|
102
|
+
event.stopPropagation();
|
|
103
|
+
if (inputRef.current && expandableTextAreaRef.current) {
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
expandableTextAreaRef.current.value = inputRef.current.input.value;
|
|
106
|
+
expandableTextAreaRef.current.focus();
|
|
107
|
+
}
|
|
108
|
+
setExpanded(true);
|
|
109
|
+
};
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
if (expanded) {
|
|
112
|
+
expandableTextAreaRef.current && expandableTextAreaRef.current.focus();
|
|
113
|
+
}
|
|
114
|
+
}, [expandableTextAreaRef, expanded]);
|
|
115
|
+
var handleChange = useCallback(function (event) {
|
|
116
|
+
var _event$currentTarget = event.currentTarget,
|
|
117
|
+
newValue = _event$currentTarget.value,
|
|
118
|
+
scrollWidth = _event$currentTarget.scrollWidth,
|
|
119
|
+
clientWidth = _event$currentTarget.clientWidth;
|
|
120
|
+
var isNowOverflown = scrollWidth > clientWidth;
|
|
121
|
+
if (!autoResize && expandable && isNowOverflown !== overflown) {
|
|
122
|
+
setOverflown(isNowOverflown);
|
|
123
|
+
}
|
|
124
|
+
if (counterLimit && newValue.length > counterLimit) return;
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
antdInputProps.onChange && antdInputProps.onChange(event);
|
|
127
|
+
}, [antdInputProps, autoResize, counterLimit, expandable, overflown]);
|
|
128
|
+
var stretchToFit = autoResize && autoResize !== true && Boolean(autoResize.stretchToFit);
|
|
129
|
+
var preAutosize = function preAutosize() {
|
|
130
|
+
var _inputRef$current4, _inputRef$current5;
|
|
131
|
+
scrollLeftRef.current = ((_inputRef$current4 = inputRef.current) == null || (_inputRef$current4 = _inputRef$current4.input) == null ? void 0 : _inputRef$current4.scrollLeft) || 0;
|
|
132
|
+
((_inputRef$current5 = inputRef.current) == null ? void 0 : _inputRef$current5.input) && inputRef.current.input.style.removeProperty('max-width');
|
|
133
|
+
};
|
|
134
|
+
var onAutosize = function onAutosize(newWidth) {
|
|
135
|
+
var _inputRef$current6, _inputRef$current7;
|
|
136
|
+
var parentRect = elementRef.current && elementRef.current.getBoundingClientRect();
|
|
137
|
+
if (stretchToFit && (_inputRef$current6 = inputRef.current) != null && _inputRef$current6.input && parentRect != null && parentRect.width && paddingDiff.current) {
|
|
138
|
+
inputRef.current.input.style.maxWidth = (parentRect == null ? void 0 : parentRect.width) - paddingDiff.current + "px";
|
|
139
|
+
inputRef.current.input.scrollLeft = scrollLeftRef.current;
|
|
140
|
+
}
|
|
141
|
+
if (autoResize && (_inputRef$current7 = inputRef.current) != null && _inputRef$current7.input && expandable) {
|
|
142
|
+
var style = window.getComputedStyle(inputRef.current.input);
|
|
143
|
+
var minWidth = parseInt(style.minWidth, 10);
|
|
144
|
+
setOverflown(newWidth > minWidth);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
var autoSizedComponent = /*#__PURE__*/React.createElement(AutosizeWrapper, {
|
|
148
|
+
preAutosize: preAutosize,
|
|
149
|
+
onAutosize: onAutosize,
|
|
150
|
+
value: antdInputProps.value,
|
|
151
|
+
autoResize: !!autoResize
|
|
152
|
+
}, /*#__PURE__*/React.createElement(S.AntdInput, _extends({
|
|
153
|
+
autoResize: autoResize,
|
|
154
|
+
"data-testid": "input-autosize-input"
|
|
155
|
+
}, antdInputProps, {
|
|
156
|
+
className: hasErrorMessage || error ? 'error' : undefined,
|
|
157
|
+
addonBefore: !!prefixel && /*#__PURE__*/React.createElement(S.AddonWrapper, {
|
|
158
|
+
className: "ds-input-prefix",
|
|
159
|
+
height: inputAddonHeight - VERTICAL_BORDER_OFFSET
|
|
160
|
+
}, prefixel),
|
|
161
|
+
addonAfter: !!suffixel && /*#__PURE__*/React.createElement(S.AddonWrapper, {
|
|
162
|
+
className: "ds-input-suffix",
|
|
163
|
+
height: inputAddonHeight - VERTICAL_BORDER_OFFSET
|
|
164
|
+
}, suffixel),
|
|
165
|
+
error: hasErrorMessage || error,
|
|
166
|
+
onChange: handleChange,
|
|
167
|
+
value: antdInputProps.value,
|
|
168
|
+
autoComplete: "off",
|
|
169
|
+
id: id,
|
|
170
|
+
ref: inputRef
|
|
171
|
+
})));
|
|
172
|
+
return /*#__PURE__*/React.createElement(S.OuterWrapper, {
|
|
173
|
+
ref: elementRef,
|
|
174
|
+
autoResize: autoResize,
|
|
175
|
+
className: className,
|
|
176
|
+
resetMargin: resetMargin
|
|
177
|
+
}, /*#__PURE__*/React.createElement(ContentAboveElement, {
|
|
178
|
+
label: label,
|
|
179
|
+
counterLimit: counterLimit,
|
|
180
|
+
id: id,
|
|
181
|
+
tooltip: tooltip,
|
|
182
|
+
tooltipConfig: tooltipConfig,
|
|
183
|
+
charCount: charCount,
|
|
184
|
+
renderCustomCounter: renderCustomCounter
|
|
185
|
+
}), /*#__PURE__*/React.createElement(S.InputWrapper, {
|
|
186
|
+
icon1: Boolean(icon1),
|
|
187
|
+
icon2: Boolean(icon2),
|
|
188
|
+
icon3: !!expandable
|
|
189
|
+
}, /*#__PURE__*/React.createElement(ElementIcons, {
|
|
190
|
+
handleIconsClick: handleIconsClick,
|
|
191
|
+
disabled: antdInputProps.disabled,
|
|
192
|
+
icon1: icon1,
|
|
193
|
+
icon2: icon2,
|
|
194
|
+
icon1Tooltip: icon1Tooltip,
|
|
195
|
+
icon2Tooltip: icon2Tooltip,
|
|
196
|
+
className: className,
|
|
197
|
+
type: "input",
|
|
198
|
+
expandable: expandable,
|
|
199
|
+
overflown: overflown,
|
|
200
|
+
handleExpandIconClick: handleExpandIconClick,
|
|
201
|
+
expandableTooltip: expandableTooltip
|
|
202
|
+
}), expandable ? /*#__PURE__*/React.createElement(ExpandableWrapper, {
|
|
203
|
+
onChange: handleTextareaChange,
|
|
204
|
+
onBlur: handleExpandableTextareaBlur,
|
|
205
|
+
ref: expandableTextAreaRef,
|
|
206
|
+
value: antdInputProps.value,
|
|
207
|
+
expanded: expanded
|
|
208
|
+
}, autoSizedComponent) : autoSizedComponent), /*#__PURE__*/React.createElement(ContentBelowElement, {
|
|
209
|
+
description: description,
|
|
210
|
+
errorText: errorText
|
|
211
|
+
}));
|
|
208
212
|
};
|
|
209
|
-
export var Input = createInputComponent(S.AntdInput);
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated MaskedInput component will no longer receive any updates
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
|
-
export var MaskedInput = createInputComponent(S.AntdMaskedInput);
|
|
216
|
-
/**
|
|
217
|
-
* @deprecated RawMaskedInput component will no longer receive any updates
|
|
218
|
-
*/
|
|
219
|
-
export var RawMaskedInput = S.AntdMaskedInput;
|
|
220
213
|
export var RawInput = function RawInput(props) {
|
|
221
214
|
var error = props.error;
|
|
222
215
|
return /*#__PURE__*/React.createElement(S.AntdInput, _extends({
|
package/dist/Input.styles.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import MaskedInput from 'antd-mask-input';
|
|
2
|
+
import { InputProps, InputRef } from 'antd/lib/input';
|
|
3
|
+
import { TextAreaProps, TextAreaRef } from 'antd/lib/input/TextArea';
|
|
5
4
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
6
5
|
import type { AutoResizeProp } from './Input.types';
|
|
7
6
|
export type AutoResizeInputProps = {
|
|
@@ -34,26 +33,15 @@ export declare const IconWrapper: import("styled-components").StyledComponent<"d
|
|
|
34
33
|
export declare const AntdInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<InputProps & {
|
|
35
34
|
error?: boolean | undefined;
|
|
36
35
|
size?: SizeType;
|
|
37
|
-
} & React.RefAttributes<
|
|
36
|
+
} & React.RefAttributes<InputRef>>, any, {
|
|
38
37
|
error?: boolean | undefined;
|
|
39
38
|
readOnly?: boolean | undefined;
|
|
40
39
|
autoResize?: AutoResizeProp | undefined;
|
|
41
40
|
disabled?: boolean | undefined;
|
|
42
41
|
}, never>;
|
|
43
|
-
export declare const AntdMaskedInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<InputProps & {
|
|
44
|
-
mask: string;
|
|
45
|
-
formatCharacters?: object | undefined;
|
|
46
|
-
placeholderChar?: string | undefined;
|
|
47
|
-
value?: string | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
error?: boolean | undefined;
|
|
50
|
-
} & React.RefAttributes<MaskedInput>>, any, {
|
|
51
|
-
error?: boolean | undefined;
|
|
52
|
-
autoResize?: AutoResizeProp | undefined;
|
|
53
|
-
}, never>;
|
|
54
42
|
export declare const AntdTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<TextAreaProps & {
|
|
55
43
|
error?: boolean | undefined;
|
|
56
|
-
} & React.RefAttributes<
|
|
44
|
+
} & React.RefAttributes<TextAreaRef>>, any, {
|
|
57
45
|
error?: boolean | undefined;
|
|
58
46
|
}, never>;
|
|
59
47
|
export declare const ExpandableWrapper: import("styled-components").StyledComponent<"div", any, {
|
package/dist/Input.styles.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
var _excluded = ["error"],
|
|
2
|
-
_excluded2 = ["error"]
|
|
3
|
-
_excluded3 = ["error"];
|
|
2
|
+
_excluded2 = ["error"];
|
|
4
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
5
|
import React, { forwardRef } from 'react';
|
|
7
6
|
import styled, { css } from 'styled-components';
|
|
8
7
|
import BaseAntInput from 'antd/lib/input';
|
|
9
8
|
import TextArea from 'antd/lib/input/TextArea';
|
|
10
|
-
import MaskedInput from 'antd-mask-input';
|
|
11
9
|
import { TextareaWrapper } from './Textarea/Textarea.styles';
|
|
12
10
|
var errorInputStyle = function errorInputStyle(props) {
|
|
13
11
|
return "\n &&&, && .ant-input {\n border-color: " + props.theme.palette['red-600'] + ";\n box-shadow: inset 0 0 0 1px " + props.theme.palette['red-600'] + ";\n background: " + props.theme.palette['red-050'] + ";\n }\n";
|
|
@@ -110,33 +108,11 @@ function (_ref2, ref) {
|
|
|
110
108
|
theme = _ref3.theme;
|
|
111
109
|
return readOnly ? "\n &:hover {\n border-color: " + theme.palette['grey-300'] + ";\n }\n &:focus {\n border-color: " + theme.palette['grey-300'] + ";\n box-shadow: none;\n background: #fff;\n }\n " : '';
|
|
112
110
|
});
|
|
113
|
-
export var
|
|
111
|
+
export var AntdTextArea = styled(forwardRef(
|
|
114
112
|
// eslint-disable-next-line
|
|
115
113
|
function (_ref4, ref) {
|
|
116
114
|
var error = _ref4.error,
|
|
117
115
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded2);
|
|
118
|
-
return /*#__PURE__*/React.createElement(MaskedInput, _extends({
|
|
119
|
-
autoComplete: "off"
|
|
120
|
-
}, props, {
|
|
121
|
-
ref: ref
|
|
122
|
-
}));
|
|
123
|
-
})).withConfig({
|
|
124
|
-
displayName: "Inputstyles__AntdMaskedInput",
|
|
125
|
-
componentId: "dc57an-7"
|
|
126
|
-
})(["", ";&&{min-height:", "px;color:", ";z-index:1;letter-spacing:1.8px;&::placeholder{letter-spacing:1.8px;color:", ";}}"], function (props) {
|
|
127
|
-
return props.error ? errorInputStyle(props) : '';
|
|
128
|
-
}, function (props) {
|
|
129
|
-
return props.autoResize ? '16' : '32';
|
|
130
|
-
}, function (props) {
|
|
131
|
-
return props.theme.palette['grey-700'];
|
|
132
|
-
}, function (props) {
|
|
133
|
-
return props.theme.palette['grey-700'];
|
|
134
|
-
});
|
|
135
|
-
export var AntdTextArea = styled(forwardRef(
|
|
136
|
-
// eslint-disable-next-line
|
|
137
|
-
function (_ref5, ref) {
|
|
138
|
-
var error = _ref5.error,
|
|
139
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3);
|
|
140
116
|
return /*#__PURE__*/React.createElement(TextArea, _extends({
|
|
141
117
|
autoComplete: "off"
|
|
142
118
|
}, props, {
|
|
@@ -144,7 +120,7 @@ function (_ref5, ref) {
|
|
|
144
120
|
}));
|
|
145
121
|
})).withConfig({
|
|
146
122
|
displayName: "Inputstyles__AntdTextArea",
|
|
147
|
-
componentId: "dc57an-
|
|
123
|
+
componentId: "dc57an-7"
|
|
148
124
|
})(["", ";&&{color:", ";}"], function (props) {
|
|
149
125
|
return props.error ? errorInputStyle(props) : '';
|
|
150
126
|
}, function (props) {
|
|
@@ -152,7 +128,7 @@ function (_ref5, ref) {
|
|
|
152
128
|
});
|
|
153
129
|
export var ExpandableWrapper = styled.div.withConfig({
|
|
154
130
|
displayName: "Inputstyles__ExpandableWrapper",
|
|
155
|
-
componentId: "dc57an-
|
|
131
|
+
componentId: "dc57an-8"
|
|
156
132
|
})(["position:relative;overflow:visible;", "{position:absolute;top:0;left:0;right:0;z-index:999;resize:none;max-height:124px;min-width:282px;", "}"], TextareaWrapper, function (props) {
|
|
157
133
|
if (props.expanded) {
|
|
158
134
|
return css(["pointer-events:initial;display:block;"]);
|
|
@@ -161,17 +137,17 @@ export var ExpandableWrapper = styled.div.withConfig({
|
|
|
161
137
|
});
|
|
162
138
|
export var ContentBelow = styled.div.withConfig({
|
|
163
139
|
displayName: "Inputstyles__ContentBelow",
|
|
164
|
-
componentId: "dc57an-
|
|
140
|
+
componentId: "dc57an-9"
|
|
165
141
|
})(["margin-top:8px;"]);
|
|
166
142
|
export var WrapperAutoResize = styled.div.withConfig({
|
|
167
143
|
displayName: "Inputstyles__WrapperAutoResize",
|
|
168
|
-
componentId: "dc57an-
|
|
144
|
+
componentId: "dc57an-10"
|
|
169
145
|
})(["display:inline-grid;align-items:center justify-items:start;", ""], function (props) {
|
|
170
146
|
return autoresizeConfObjToCss(props);
|
|
171
147
|
});
|
|
172
148
|
export var AutoResize = styled.div.withConfig({
|
|
173
149
|
displayName: "Inputstyles__AutoResize",
|
|
174
|
-
componentId: "dc57an-
|
|
150
|
+
componentId: "dc57an-11"
|
|
175
151
|
})(["max-height:32px;grid-area:1 / 1;visibility:hidden;white-space:pre;padding:", ";", ";@media (max-width:1420px){max-width:300px;}@media (max-width:1150px){max-width:200px;}@media (max-width:1100px){max-width:150px;}"], function (props) {
|
|
176
152
|
return getPaddingAutoResize(props);
|
|
177
153
|
}, function (props) {
|
|
@@ -179,35 +155,35 @@ export var AutoResize = styled.div.withConfig({
|
|
|
179
155
|
});
|
|
180
156
|
export var ErrorText = styled.div.withConfig({
|
|
181
157
|
displayName: "Inputstyles__ErrorText",
|
|
182
|
-
componentId: "dc57an-
|
|
158
|
+
componentId: "dc57an-12"
|
|
183
159
|
})(["color:", ";margin-bottom:4px;"], function (props) {
|
|
184
160
|
return props.theme.palette['red-600'];
|
|
185
161
|
});
|
|
186
162
|
export var Label = styled.label.withConfig({
|
|
187
163
|
displayName: "Inputstyles__Label",
|
|
188
|
-
componentId: "dc57an-
|
|
164
|
+
componentId: "dc57an-13"
|
|
189
165
|
})(["color:", ";font-weight:500;display:block;"], function (props) {
|
|
190
166
|
return props.theme.palette['grey-800'];
|
|
191
167
|
});
|
|
192
168
|
export var Counter = styled.div.withConfig({
|
|
193
169
|
displayName: "Inputstyles__Counter",
|
|
194
|
-
componentId: "dc57an-
|
|
170
|
+
componentId: "dc57an-14"
|
|
195
171
|
})(["font-weight:500;color:", ";"], function (props) {
|
|
196
172
|
return props.theme.palette['grey-500'];
|
|
197
173
|
});
|
|
198
174
|
export var Description = styled.div.withConfig({
|
|
199
175
|
displayName: "Inputstyles__Description",
|
|
200
|
-
componentId: "dc57an-
|
|
176
|
+
componentId: "dc57an-15"
|
|
201
177
|
})(["color:", ";"], function (props) {
|
|
202
178
|
return props.theme.palette['grey-600'];
|
|
203
179
|
});
|
|
204
180
|
export var ContentAbove = styled.div.withConfig({
|
|
205
181
|
displayName: "Inputstyles__ContentAbove",
|
|
206
|
-
componentId: "dc57an-
|
|
182
|
+
componentId: "dc57an-16"
|
|
207
183
|
})(["display:flex;justify-content:space-between;margin-bottom:8px;min-height:18px;"]);
|
|
208
184
|
export var AddonWrapper = styled.div.withConfig({
|
|
209
185
|
displayName: "Inputstyles__AddonWrapper",
|
|
210
|
-
componentId: "dc57an-
|
|
186
|
+
componentId: "dc57an-17"
|
|
211
187
|
})(["background:", ";display:flex;align-items:center;height:", ";"], function (props) {
|
|
212
188
|
return props.theme.palette['grey-050'];
|
|
213
189
|
}, function (props) {
|
package/dist/Input.types.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, MutableRefObject } from 'react';
|
|
2
2
|
import { InputProps as AntdInputProps, TextAreaProps as AntdTextAreaProps } from 'antd/lib/input';
|
|
3
|
-
import {
|
|
4
|
-
import { TooltipProps } from 'antd/lib/tooltip';
|
|
5
|
-
import TooltipExtendedProps from '@synerise/ds-tooltip/dist/Tooltip.types';
|
|
3
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
6
4
|
export type AutoResizeProp = boolean | {
|
|
7
5
|
minWidth: string;
|
|
8
6
|
maxWidth?: string;
|
|
@@ -13,7 +11,7 @@ export type BaseProps<RefElementType extends HTMLTextAreaElement | HTMLInputElem
|
|
|
13
11
|
error?: boolean;
|
|
14
12
|
className?: string;
|
|
15
13
|
tooltip?: ReactNode;
|
|
16
|
-
tooltipConfig?:
|
|
14
|
+
tooltipConfig?: TooltipProps;
|
|
17
15
|
errorText?: ReactNode;
|
|
18
16
|
label?: ReactNode;
|
|
19
17
|
description?: ReactNode;
|
|
@@ -32,11 +30,7 @@ export type BaseProps<RefElementType extends HTMLTextAreaElement | HTMLInputElem
|
|
|
32
30
|
expandableTooltip?: ReactNode;
|
|
33
31
|
};
|
|
34
32
|
/**
|
|
35
|
-
* @deprecated use `InputProps`, `TextareaProps`
|
|
33
|
+
* @deprecated use `InputProps`, `TextareaProps` instead
|
|
36
34
|
*/
|
|
37
|
-
export type EnhancedProps = BaseProps<HTMLInputElement | HTMLTextAreaElement> & (AntdInputProps | AntdTextAreaProps
|
|
35
|
+
export type EnhancedProps = BaseProps<HTMLInputElement | HTMLTextAreaElement> & (AntdInputProps | AntdTextAreaProps);
|
|
38
36
|
export type InputProps = BaseProps & AntdInputProps;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated MaskedInput component will no longer receive any updates
|
|
41
|
-
*/
|
|
42
|
-
export type MaskedInputProps = BaseProps & AntdMaskedInputProps;
|
package/dist/TextArea.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { TextareaProps } from './TextArea.types';
|
|
|
5
5
|
export declare const TextArea: ({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, renderCustomCounter, ...antdTextareaProps }: TextareaProps) => React.JSX.Element;
|
|
6
6
|
export declare const RawTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("antd/lib/input").TextAreaProps & {
|
|
7
7
|
error?: boolean | undefined;
|
|
8
|
-
} & React.RefAttributes<import("antd/lib/input/TextArea").
|
|
8
|
+
} & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef>>, any, {
|
|
9
9
|
error?: boolean | undefined;
|
|
10
10
|
}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { TextAreaRef } from 'antd/lib/input/TextArea';
|
|
3
3
|
declare const Textarea: React.ForwardRefExoticComponent<import("antd/lib/input/TextArea").TextAreaProps & {
|
|
4
4
|
error?: boolean | undefined;
|
|
5
5
|
errorText?: React.ReactNode;
|
|
6
6
|
wrapperStyle?: React.CSSProperties | undefined;
|
|
7
7
|
resize?: import("csstype").ResizeProperty | undefined;
|
|
8
|
-
} & React.RefAttributes<
|
|
8
|
+
} & React.RefAttributes<TextAreaRef>>;
|
|
9
9
|
export default Textarea;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
var _excluded = ["disabled", "error", "rows", "wrapperStyle", "onBlur", "onFocus", "resize", "autoSize", "readOnly"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
4
|
import React, { forwardRef, useState } from 'react';
|
|
10
5
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
@@ -32,7 +27,7 @@ var Textarea = forwardRef(function (_ref, ref) {
|
|
|
32
27
|
isReadOnly: readOnly,
|
|
33
28
|
hasError: Boolean(error),
|
|
34
29
|
resize: resize,
|
|
35
|
-
style:
|
|
30
|
+
style: _extends({
|
|
36
31
|
height: autoSize ? 'auto' : rows * 17 + "px"
|
|
37
32
|
}, wrapperStyle)
|
|
38
33
|
}, /*#__PURE__*/React.createElement(Scrollbar, {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
2
|
import React, { cloneElement } from 'react';
|
|
7
3
|
import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
|
|
8
4
|
import Icon, { ResizeArrowM } from '@synerise/ds-icon';
|
|
@@ -39,7 +35,7 @@ export var ElementIcons = function ElementIcons(_ref) {
|
|
|
39
35
|
title: icon1Tooltip
|
|
40
36
|
}, /*#__PURE__*/React.createElement(S.IconWrapper, {
|
|
41
37
|
className: className
|
|
42
|
-
}, icon1 && cloneElement(icon1,
|
|
38
|
+
}, icon1 && cloneElement(icon1, _extends({
|
|
43
39
|
className: 'icon icon1'
|
|
44
40
|
}, icon2 && {
|
|
45
41
|
style: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ChangeEvent, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import type { TextAreaRef } from 'antd/lib/input/TextArea';
|
|
3
3
|
import { InputProps } from '../Input.types';
|
|
4
4
|
export declare const ExpandableWrapper: React.ForwardRefExoticComponent<Pick<InputProps, "value"> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
expanded: boolean;
|
|
7
7
|
onChange: (Event: ChangeEvent<HTMLInputElement> & ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
8
|
onBlur: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
9
|
-
} & React.RefAttributes<
|
|
9
|
+
} & React.RefAttributes<TextAreaRef>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export declare const useElementFocus: (ref: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | AntdMaskedInput | AntdInput | null>) => () => void;
|
|
2
|
+
import type { InputRef } from 'antd/lib/input';
|
|
3
|
+
export declare const useElementFocus: (ref: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | InputRef | null>) => () => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export declare const useInputAddonHeight: (inputRef: MutableRefObject<AntdInput | AntdMaskedInput | null>) => {
|
|
2
|
+
import type { InputRef } from 'antd/lib/input';
|
|
3
|
+
export declare const useInputAddonHeight: (inputRef: MutableRefObject<InputRef | null>) => {
|
|
5
4
|
inputAddonHeight: number;
|
|
6
5
|
};
|
|
@@ -4,8 +4,8 @@ export var useInputAddonHeight = function useInputAddonHeight(inputRef) {
|
|
|
4
4
|
inputAddonHeight = _useState[0],
|
|
5
5
|
setInputAddonHeight = _useState[1];
|
|
6
6
|
useEffect(function () {
|
|
7
|
-
var _inputRef$current$inp;
|
|
8
|
-
inputRef.current &&
|
|
7
|
+
var _inputRef$current$inp, _inputRef$current$inp2;
|
|
8
|
+
inputRef.current && ((_inputRef$current$inp = inputRef.current.input) == null ? void 0 : _inputRef$current$inp.offsetHeight) && setInputAddonHeight((_inputRef$current$inp2 = inputRef.current.input) == null ? void 0 : _inputRef$current$inp2.offsetHeight);
|
|
9
9
|
}, [inputRef]);
|
|
10
10
|
return {
|
|
11
11
|
inputAddonHeight: inputAddonHeight
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { default as Label } from './Label/Label';
|
|
2
|
-
export { Input, RawInput, InputGroup,
|
|
2
|
+
export { Input, RawInput, InputGroup, InputMultivalue, AutoResize, WrapperAutoResize } from './Input';
|
|
3
3
|
export { TextArea, RawTextArea } from './TextArea';
|
|
4
4
|
export type { TextareaProps } from './TextArea.types';
|
|
5
5
|
export * as InputStyles from './Input.styles';
|
|
6
|
-
export type { BaseProps, EnhancedProps, InputProps,
|
|
6
|
+
export type { BaseProps, EnhancedProps, InputProps, AutoResizeProp } from './Input.types';
|
|
7
7
|
export { default as AutosizeInput } from './AutosizeInput/AutosizeInput';
|
|
8
8
|
export type { AutosizeInputProps, AutosizeWrapperProps, AutosizeInputRefType, } from './AutosizeInput/AutosizeInput.types';
|
|
9
9
|
export { AutosizeWrapper } from './components/AutosizeWrapper';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Label } from './Label/Label';
|
|
2
|
-
export { Input, RawInput, InputGroup,
|
|
2
|
+
export { Input, RawInput, InputGroup, InputMultivalue, AutoResize, WrapperAutoResize } from './Input';
|
|
3
3
|
export { TextArea, RawTextArea } from './TextArea';
|
|
4
4
|
import * as _InputStyles from './Input.styles';
|
|
5
5
|
export { _InputStyles as InputStyles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ant-image-preview,.ant-modal{pointer-events:none}.ant-image-preview.zoom-appear,.ant-image-preview.zoom-enter,.ant-modal.zoom-appear,.ant-modal.zoom-enter{transform:none;opacity:0;animation-duration:.3s;user-select:none}.ant-image-preview-mask,.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:991000;height:100%;background-color:rgba(0,0,0,.2);filter:alpha(opacity=50)}.ant-image-preview-mask-hidden,.ant-modal-mask-hidden{display:none}.ant-image-preview-wrap,.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-input-affix-wrapper{position:relative;display:inline-block;width:100%;min-width:0;padding:4px 15px;color:#6a7580;line-height:1.38;background-color:#fff;background-image:none;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s;font-size:13px;line-height:13px;display:inline-flex}.ant-input-affix-wrapper::-moz-placeholder{opacity:1}.ant-input-affix-wrapper::placeholder{color:#b5bdc3}.ant-input-affix-wrapper:placeholder-shown{text-overflow:ellipsis}.ant-input-affix-wrapper:hover{border-color:#b5bdc3;border-right-width:1px!important}.ant-input-rtl .ant-input-affix-wrapper:hover{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-focused,.ant-input-affix-wrapper:focus{border-color:#c2cacf;border-right-width:1px!important;outline:0;box-shadow:0 0 0 0 rgba(181,189,195,.2);box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-affix-wrapper-focused,.ant-input-rtl .ant-input-affix-wrapper:focus{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-disabled{color:#b5bdc3;background-color:#f9fafb;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper-disabled:hover{border-color:#dbe0e3;border-right-width:1px!important}.ant-input-affix-wrapper[disabled]{color:#b5bdc3;background-color:#f9fafb;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper[disabled]:hover{border-color:#dbe0e3;border-right-width:1px!important}.ant-input-affix-wrapper-borderless,.ant-input-affix-wrapper-borderless-disabled,.ant-input-affix-wrapper-borderless-focused,.ant-input-affix-wrapper-borderless:focus,.ant-input-affix-wrapper-borderless:hover,.ant-input-affix-wrapper-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-affix-wrapper{max-width:100%;height:auto;min-height:32px;line-height:1.38;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-affix-wrapper-lg{padding:6px 15px;height:48px;font-size:13px}.ant-input-affix-wrapper-sm{padding:1px 7px}.ant-input-affix-wrapper-rtl{direction:rtl}.ant-input-affix-wrapper-disabled .ant-input[disabled]{background:0 0}.ant-input-affix-wrapper>input.ant-input{padding:0;border:none;outline:0}.ant-input-affix-wrapper>input.ant-input:focus{box-shadow:none}.ant-input-affix-wrapper::before{width:0;visibility:hidden;content:'\a0'}.ant-input-prefix,.ant-input-suffix{display:flex;flex:none;align-items:center}.ant-input-prefix{margin-right:4px}.ant-input-suffix{margin-left:4px}.ant-input-clear-icon{color:#b5bdc3;font-size:11px;cursor:pointer;transition:color .3s;margin:0 4px;vertical-align:-1px}.ant-input-clear-icon:hover{color:#232936}.ant-input-clear-icon:active{color:#6a7580}.ant-input-clear-icon+i{margin-left:6px}.ant-input-clear-icon-hidden{visibility:hidden}.ant-input-clear-icon:last-child{margin-right:0}.ant-input-affix-wrapper-textarea-with-clear-btn{padding:0!important;border:0!important}.ant-input-textarea-clear-icon{color:#b5bdc3;font-size:11px;cursor:pointer;transition:color .3s;position:absolute;top:0;right:0;z-index:1;margin:8px 8px 0 0}.ant-input-textarea-clear-icon:hover{color:#232936}.ant-input-textarea-clear-icon:active{color:#6a7580}.ant-input-textarea-clear-icon+i{margin-left:6px}.ant-input-textarea-clear-icon-hidden{visibility:hidden}.ant-input{box-sizing:border-box;margin:0;padding:0;font-variant:tabular-nums;list-style:none;font-feature-settings:'tnum';position:relative;display:inline-block;width:100%;min-width:0;padding:4px 15px;color:#6a7580;line-height:1.38;background-color:#fff;background-image:none;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s;font-size:13px;line-height:13px}.ant-input::-moz-placeholder{opacity:1}.ant-input::placeholder{color:#b5bdc3}.ant-input:placeholder-shown{text-overflow:ellipsis}.ant-input:hover{border-color:#b5bdc3;border-right-width:1px!important}.ant-input-rtl .ant-input:hover{border-right-width:0;border-left-width:1px!important}.ant-input-focused,.ant-input:focus{border-color:#c2cacf;border-right-width:1px!important;outline:0;box-shadow:0 0 0 0 rgba(181,189,195,.2);box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-focused,.ant-input-rtl .ant-input:focus{border-right-width:0;border-left-width:1px!important}.ant-input-disabled{color:#b5bdc3;background-color:#f9fafb;cursor:not-allowed;opacity:1}.ant-input-disabled:hover{border-color:#dbe0e3;border-right-width:1px!important}.ant-input[disabled]{color:#b5bdc3;background-color:#f9fafb;cursor:not-allowed;opacity:1}.ant-input[disabled]:hover{border-color:#dbe0e3;border-right-width:1px!important}.ant-input-borderless,.ant-input-borderless-disabled,.ant-input-borderless-focused,.ant-input-borderless:focus,.ant-input-borderless:hover,.ant-input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input{max-width:100%;height:auto;min-height:32px;line-height:1.38;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-lg{padding:6px 15px;height:48px;font-size:13px}.ant-input-sm{padding:1px 7px}.ant-input-rtl{direction:rtl}.ant-input-group{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';position:relative;display:table;width:100%;border-collapse:separate;border-spacing:0}.ant-input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.ant-input-group>[class*=col-]{padding-right:8px}.ant-input-group>[class*=col-]:last-child{padding-right:0}.ant-input-group-addon,.ant-input-group-wrap,.ant-input-group>.ant-input{display:table-cell}.ant-input-group-addon:not(:first-child):not(:last-child),.ant-input-group-wrap:not(:first-child):not(:last-child),.ant-input-group>.ant-input:not(:first-child):not(:last-child){border-radius:0}.ant-input-group-addon,.ant-input-group-wrap{width:1px;white-space:nowrap;vertical-align:middle}.ant-input-group-wrap>*{display:block!important}.ant-input-group .ant-input{float:left;width:100%;margin-bottom:0;text-align:inherit}.ant-input-group .ant-input:focus{z-index:1;border-right-width:1px}.ant-input-group .ant-input:hover{z-index:1;border-right-width:1px}.ant-input-group-addon{position:relative;padding:0 15px;color:#6a7580;font-weight:400;font-size:13px;text-align:center;background-color:#e9edee;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s}.ant-input-group-addon .ant-select{margin:-5px -15px}.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:1px solid transparent;box-shadow:none}.ant-input-group-addon .ant-select-focused .ant-select-selector,.ant-input-group-addon .ant-select-open .ant-select-selector{color:#0b68ff}.ant-input-group-addon>i:only-child::after{position:absolute;top:0;right:0;bottom:0;left:0;content:''}.ant-input-group-addon:first-child,.ant-input-group>.ant-input:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group-addon:first-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:first-child .ant-select .ant-select-selector{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:first-child) .ant-input{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:last-child) .ant-input{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group-addon:first-child{border-right:0}.ant-input-group-addon:last-child{border-left:0}.ant-input-group-addon:last-child,.ant-input-group>.ant-input:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-addon:last-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:last-child .ant-select .ant-select-selector{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-lg .ant-input,.ant-input-group-lg>.ant-input-group-addon{padding:6px 15px;height:48px;font-size:13px}.ant-input-group-sm .ant-input,.ant-input-group-sm>.ant-input-group-addon{padding:1px 7px}.ant-input-group-lg .ant-select-single .ant-select-selector{height:48px}.ant-input-group-sm .ant-select-single .ant-select-selector{height:24px}.ant-input-group .ant-input-affix-wrapper:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group.ant-input-group-compact{display:block}.ant-input-group.ant-input-group-compact::before{display:table;content:''}.ant-input-group.ant-input-group-compact::after{display:table;clear:both;content:''}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child){border-right-width:1px}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):hover{z-index:1}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):focus{z-index:1}.ant-input-group.ant-input-group-compact>*{display:inline-block;float:none;vertical-align:top;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-input-affix-wrapper{display:inline-flex}.ant-input-group.ant-input-group-compact>.ant-picker-range{display:inline-flex}.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:-1px;border-right-width:1px}.ant-input-group.ant-input-group-compact .ant-input{float:none}.ant-input-group.ant-input-group-compact>.ant-calendar-picker .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input,.ant-input-group.ant-input-group-compact>.ant-mention-wrapper .ant-mention-editor,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector,.ant-input-group.ant-input-group-compact>.ant-time-picker .ant-time-picker-input{border-right-width:1px;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-calendar-picker .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-mention-wrapper .ant-mention-editor:hover,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:hover,.ant-input-group.ant-input-group-compact>.ant-time-picker .ant-time-picker-input:hover{z-index:1}.ant-input-group.ant-input-group-compact>.ant-calendar-picker .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-mention-wrapper .ant-mention-editor:focus,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:focus,.ant-input-group.ant-input-group-compact>.ant-time-picker .ant-time-picker-input:focus{z-index:1}.ant-input-group.ant-input-group-compact>.ant-select-focused{z-index:1}.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-arrow{z-index:1}.ant-input-group.ant-input-group-compact>.ant-calendar-picker:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-mention-wrapper:first-child .ant-mention-editor,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>.ant-time-picker:first-child .ant-time-picker-input,.ant-input-group.ant-input-group-compact>:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.ant-input-group.ant-input-group-compact>.ant-calendar-picker:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-mention-wrapper:last-child .ant-mention-editor,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>.ant-time-picker:last-child .ant-time-picker-input,.ant-input-group.ant-input-group-compact>:last-child{border-right-width:1px;border-top-right-radius:3px;border-bottom-right-radius:3px}.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input{vertical-align:top}.ant-input-group-rtl .ant-input-group-addon:first-child,.ant-input-group>.ant-input-rtl:first-child{border-radius:0 3px 3px 0}.ant-input-group-rtl .ant-input-group-addon:first-child{border-right:1px solid #dbe0e3;border-left:0}.ant-input-group-rtl .ant-input-group-addon:last-child{border-right:0;border-left:1px solid #dbe0e3}.ant-input-group-rtl.ant-input-group-addon:last-child,.ant-input-group-rtl.ant-input-group>.ant-input:last-child{border-radius:3px 0 0 3px}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child){border-radius:3px 0 0 3px}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-radius:0 3px 3px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:0;margin-left:-1px;border-left-width:1px}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-calendar-picker:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-mention-wrapper:first-child .ant-mention-editor,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-time-picker:first-child .ant-time-picker-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:first-child{border-radius:0 3px 3px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-calendar-picker:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-mention-wrapper:last-child .ant-mention-editor,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-time-picker:last-child .ant-time-picker-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:last-child{border-left-width:1px;border-radius:3px 0 0 3px}.ant-input-group-addon{font-size:13px}.ant-input-group-wrapper{display:inline-block;width:100%;text-align:start;vertical-align:top}.ant-input-password-icon{color:#232936;cursor:pointer;transition:all .3s}.ant-input-password-icon:hover{color:rgba(0,0,0,.85)}.ant-input[type=color]{height:32px}.ant-input[type=color].ant-input-lg{height:48px}.ant-input[type=color].ant-input-sm{height:24px;padding-top:3px;padding-bottom:3px}.ant-input-textarea-show-count::after{display:block;color:#d9d9d9;text-align:right;content:attr(data-count)}.ant-input-search-icon{padding:0 9.5px}.ant-input-search-icon::before{transform:translateX(-10.5px)}.ant-input-search-icon::after{width:32px}.ant-input-affix-wrapper-lg .ant-input-search-icon{padding:0 17.5px}.ant-input-affix-wrapper-lg .ant-input-search-icon::before{transform:translateX(-18.5px)}.ant-input-affix-wrapper-lg .ant-input-search-icon::after{width:48px}.ant-input-affix-wrapper-sm .ant-input-search-icon{padding:0 6.5px}.ant-input-affix-wrapper-sm .ant-input-search-icon::before{transform:translateX(-7.5px)}.ant-input-affix-wrapper-sm .ant-input-search-icon::after{width:24px}.ant-input-search-icon{margin-left:.5em;color:#232936;cursor:pointer;transition:all .3s}.ant-input-search-icon:hover{color:rgba(0,0,0,.85)}.ant-input-search-icon::before{position:absolute;top:0;bottom:0;display:block;border-left:1px solid #dbe0e3;transition:all .3s;content:''}.ant-input-search-icon::after{position:absolute;top:0;right:0;bottom:0;content:''}.ant-input-search:not(.ant-input-search-enter-button){padding-right:0}.ant-input-search-enter-button input{border-right:0}.ant-input-search-enter-button input:focus,.ant-input-search-enter-button input:hover{border-color:#b5bdc3}.ant-input-search-enter-button.ant-input-affix-wrapper{border-right:0}.ant-input-search-enter-button input+.ant-input-group-addon,.ant-input-search-enter-button+.ant-input-group-addon{padding:0;border:0}.ant-input-search-enter-button input+.ant-input-group-addon .ant-input-search-button,.ant-input-search-enter-button+.ant-input-group-addon .ant-input-search-button{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-wrapper-rtl{direction:rtl}.ant-input-group-rtl{direction:rtl}.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl>input.ant-input{border:none;outline:0}.ant-input-affix-wrapper-rtl .ant-input-prefix{margin:0 0 0 4px}.ant-input-affix-wrapper-rtl .ant-input-suffix{margin:0 4px 0 0}.ant-input-affix-wrapper-rtl .ant-input-clear-icon:last-child{margin-right:4px;margin-left:0}.ant-input-affix-wrapper-rtl .ant-input-textarea-clear-icon{right:auto;left:0;margin:8px 0 0 8px}.ant-input-search-rtl{direction:rtl}.ant-input-search-rtl .ant-input-search-icon{margin-right:.5em;margin-left:0}.ant-input-search-rtl .ant-input-search-icon::before{border-left:none}.ant-input-search-rtl .ant-input-search-icon::after{right:auto;left:0;border-right:1px solid #dbe0e3;transition:all .3s}.ant-input-search-rtl.ant-input-search:not(.ant-input-search-enter-button){padding-right:15px;padding-left:0}.ant-input-search-rtl.ant-input-search-enter-button input{border-right:1px solid #dbe0e3;border-left:0}.ant-input-search-rtl.ant-input-search-enter-button input:focus,.ant-input-search-rtl.ant-input-search-enter-button input:hover{border-color:#b5bdc3}.ant-input-search-rtl.ant-input-search-enter-button.ant-input-affix-wrapper{border-right:1px solid #dbe0e3;border-left:0}.ant-input-search-rtl.ant-input-search-enter-button.ant-input-affix-wrapper:focus,.ant-input-search-rtl.ant-input-search-enter-button.ant-input-affix-wrapper:hover{border-color:#b5bdc3}.ant-input-search-rtl.ant-input-search-enter-button input+.ant-input-group-addon,.ant-input-search-rtl.ant-input-search-enter-button+.ant-input-group-addon{padding:0;border:0}.ant-input-search-rtl.ant-input-search-enter-button input+.ant-input-group-addon .ant-input-search-button,.ant-input-search-rtl.ant-input-search-enter-button+.ant-input-group-addon .ant-input-search-button{width:100%;border-radius:3px 0 0 3px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ant-input{height:32px}.ant-input-lg{height:48px}.ant-input-sm{height:24px}.ant-input-affix-wrapper>input.ant-input{height:auto}}.ant-input.ant-input{padding:7px 12px}.ant-select-selection .ant-select-selection__rendered{margin-left:12px}.ant-input-affix-wrapper .ant-input:not(:last-child):focus,.ant-input-number-input:focus{border-color:#c2cacf;border-right-width:1px!important;outline:0;box-shadow:0 0 0 0 rgba(181,189,195,.2);box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-affix-wrapper .ant-input:not(:last-child):focus,.ant-input-rtl .ant-input-number-input:focus{border-right-width:0;border-left-width:1px!important}.ant-input-group .ant-input-affix-wrapper{padding:0 8px 0 12px}.ant-input-group .ant-input-affix-wrapper>input.ant-input:focus{background-color:transparent;box-shadow:none;border:0}textarea.ant-input{padding:8px 12px 8px 12px}textarea.ant-input::-webkit-scrollbar{transition:background-color .3s ease-in-out,border .3s ease-in-out;width:11px;height:11px;cursor:default}textarea.ant-input::-webkit-scrollbar-button{display:none;width:0;height:0}textarea.ant-input::-webkit-scrollbar-track{border-radius:3px;background-color:transparent!important;border:4px solid transparent!important}textarea.ant-input::-webkit-scrollbar-corner{background:0 0;display:none;border:0}textarea.ant-input::-webkit-scrollbar-thumb{background-color:#e1e3e6;border-radius:8px;border:4px solid #fff}textarea.ant-input::-webkit-scrollbar-thumb:active,textarea.ant-input::-webkit-scrollbar-thumb:hover{background-color:#a6acb3}textarea.ant-input:focus::-webkit-scrollbar-track{border-radius:3px;background-color:transparent!important;border:4px solid transparent!important}textarea.ant-input:focus::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:4px solid transparent!important}textarea.ant-input:focus::-webkit-scrollbar-thumb:active,textarea.ant-input:focus::-webkit-scrollbar-thumb:hover{background-color:#a6acb3}textarea.ant-input:disabled::-webkit-scrollbar-track{border-radius:0;background-color:#f9fafb;border:4px solid #f9fafb}textarea.ant-input:disabled::-webkit-scrollbar-thumb{border:4px solid #f9fafb}.ant-input-group-addon{padding:0}.ant-input-group-addon .ant-select{margin:0}.ant-input-group ::placeholder{line-height:1.29}.ant-input-group .ant-select.ant-select-focused,.ant-input-group .ant-select.error{z-index:2!important}.ant-input-group .ant-select.error:hover .ant-select-selector{border-color:#f52922}.ant-input-group .error+.error{border-left-width:0!important}.ant-input-group.ant-input-group-compact>.ds-select-wrapper>.ant-select>.ant-select-selector{border-radius:0}.ant-input-group.ant-input-group-compact{z-index:1}.ant-input-group.ant-input-group-compact>*>:hover{z-index:2}.ant-input-group.ant-input-group-compact>:first-child.ds-select-wrapper>.ant-select>.ant-select-selector{border-top-left-radius:3px;border-bottom-left-radius:3px}.ant-input-group.ant-input-group-compact>.ant-input:focus,.ant-input-group.ant-input-group-compact>div>.ant-input-number.ant-input-number-focused{z-index:2}.ant-input-group.ant-input-group-compact>:first-child.ds-select-wrapper:not(.white)>.ant-select:not(.error)>.ant-select-selector{background:#f9fafb}.ant-input-group.ant-input-group-compact>:last-child.ds-select-wrapper>.ant-select>.ant-select-selector{border-top-right-radius:3px;border-bottom-right-radius:3px}.ant-input-group.ant-input-group-compact>:last-child.ds-select-wrapper:not(.white)>.ant-select>.ant-select-selector{background:#f9fafb}.ant-input-group.ant-input-group-compact.ant-input-group.ant-input-group-compact>.ds-select-wrapper>.ant-select.error>.ant-select-selector{background:#fff6f4}
|
|
1
|
+
.ant-input-affix-wrapper{position:relative;display:inline-block;width:100%;min-width:0;padding:4px 15px;color:#6a7580;line-height:1.38;background-color:#fff;background-image:none;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s;font-size:13px;line-height:13px;display:inline-flex}.ant-input-affix-wrapper::placeholder{color:#b5bdc3;user-select:none}.ant-input-affix-wrapper:placeholder-shown{text-overflow:ellipsis}.ant-input-affix-wrapper:hover{border-color:#b5bdc3;border-right-width:1px}.ant-input-rtl .ant-input-affix-wrapper:hover{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-focused,.ant-input-affix-wrapper:focus{border-color:#38f;box-shadow:0 0 0 0 rgba(11,104,255,.2);border-right-width:1px;outline:0;box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-affix-wrapper-focused,.ant-input-rtl .ant-input-affix-wrapper:focus{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-disabled{color:#b5bdc3;background-color:#f9fafb;border-color:#dbe0e3;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper-disabled:hover{border-color:#dbe0e3;border-right-width:1px}.ant-input-affix-wrapper[disabled]{color:#b5bdc3;background-color:#f9fafb;border-color:#dbe0e3;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper[disabled]:hover{border-color:#dbe0e3;border-right-width:1px}.ant-input-affix-wrapper-borderless,.ant-input-affix-wrapper-borderless-disabled,.ant-input-affix-wrapper-borderless-focused,.ant-input-affix-wrapper-borderless:focus,.ant-input-affix-wrapper-borderless:hover,.ant-input-affix-wrapper-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input-affix-wrapper{max-width:100%;height:auto;min-height:32px;line-height:1.38;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-affix-wrapper-lg{padding:6px 15px;height:48px;font-size:13px}.ant-input-affix-wrapper-sm{padding:1px 7px}.ant-input-affix-wrapper-rtl{direction:rtl}.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{border-color:#b5bdc3;border-right-width:1px;z-index:1}.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{border-right-width:0;border-left-width:1px!important}.ant-input-search-with-button .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{z-index:0}.ant-input-affix-wrapper-focused,.ant-input-affix-wrapper:focus{z-index:1}.ant-input-affix-wrapper-disabled .ant-input[disabled]{background:rgba(255,255,255,0)}.ant-input-affix-wrapper>.ant-input{font-size:inherit;border:none;outline:0}.ant-input-affix-wrapper>.ant-input:focus{box-shadow:none!important}.ant-input-affix-wrapper>.ant-input:not(textarea){padding:0}.ant-input-affix-wrapper::before{display:inline-block;width:0;visibility:hidden;content:'\a0'}.ant-input-prefix,.ant-input-suffix{display:flex;flex:none;align-items:center}.ant-input-prefix>:not(:last-child),.ant-input-suffix>:not(:last-child){margin-right:8px}.ant-input-show-count-suffix{color:#232936}.ant-input-show-count-has-suffix{margin-right:2px}.ant-input-prefix{margin-right:4px}.ant-input-suffix{margin-left:4px}.ant-input-clear-icon,.anticon.ant-input-clear-icon{margin:0;color:#b5bdc3;font-size:11px;vertical-align:-1px;cursor:pointer;transition:color .3s}.ant-input-clear-icon:hover,.anticon.ant-input-clear-icon:hover{color:#232936}.ant-input-clear-icon:active,.anticon.ant-input-clear-icon:active{color:#6a7580}.ant-input-clear-icon-hidden,.anticon.ant-input-clear-icon-hidden{visibility:hidden}.ant-input-clear-icon-has-suffix,.anticon.ant-input-clear-icon-has-suffix{margin:0 4px}.ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn{padding:0}.ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon{position:absolute;top:8px;right:8px;z-index:1}.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background:#fff;border-color:#f52922}.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{border-color:#ff584d;box-shadow:0 0 0 0 rgba(245,41,34,.2);border-right-width:1px;outline:0}.ant-input-status-error .ant-input-prefix{color:#f52922}.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background:#fff;border-color:#fab700}.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{border-color:#ffcd29;box-shadow:0 0 0 0 rgba(250,183,0,.2);border-right-width:1px;outline:0}.ant-input-status-warning .ant-input-prefix{color:#fab700}.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover{background:#fff;border-color:#f52922}.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus{border-color:#ff584d;box-shadow:0 0 0 0 rgba(245,41,34,.2);border-right-width:1px;outline:0}.ant-input-affix-wrapper-status-error .ant-input-prefix{color:#f52922}.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover{background:#fff;border-color:#fab700}.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus{border-color:#ffcd29;box-shadow:0 0 0 0 rgba(250,183,0,.2);border-right-width:1px;outline:0}.ant-input-affix-wrapper-status-warning .ant-input-prefix{color:#fab700}.ant-input-textarea-status-error.ant-input-textarea-has-feedback .ant-input,.ant-input-textarea-status-success.ant-input-textarea-has-feedback .ant-input,.ant-input-textarea-status-validating.ant-input-textarea-has-feedback .ant-input,.ant-input-textarea-status-warning.ant-input-textarea-has-feedback .ant-input{padding-right:24px}.ant-input-group-wrapper-status-error .ant-input-group-addon{color:#f52922;border-color:#f52922}.ant-input-group-wrapper-status-warning .ant-input-group-addon{color:#fab700;border-color:#fab700}.ant-input{box-sizing:border-box;margin:0;padding:0;font-variant:tabular-nums;list-style:none;font-feature-settings:'tnum';position:relative;display:inline-block;width:100%;min-width:0;padding:4px 15px;color:#6a7580;line-height:1.38;background-color:#fff;background-image:none;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s;font-size:13px;line-height:13px}.ant-input::placeholder{color:#b5bdc3;user-select:none}.ant-input:placeholder-shown{text-overflow:ellipsis}.ant-input:hover{border-color:#b5bdc3;border-right-width:1px}.ant-input-rtl .ant-input:hover{border-right-width:0;border-left-width:1px!important}.ant-input-focused,.ant-input:focus{border-color:#38f;box-shadow:0 0 0 0 rgba(11,104,255,.2);border-right-width:1px;outline:0;box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-focused,.ant-input-rtl .ant-input:focus{border-right-width:0;border-left-width:1px!important}.ant-input-disabled{color:#b5bdc3;background-color:#f9fafb;border-color:#dbe0e3;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-disabled:hover{border-color:#dbe0e3;border-right-width:1px}.ant-input[disabled]{color:#b5bdc3;background-color:#f9fafb;border-color:#dbe0e3;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input[disabled]:hover{border-color:#dbe0e3;border-right-width:1px}.ant-input-borderless,.ant-input-borderless-disabled,.ant-input-borderless-focused,.ant-input-borderless:focus,.ant-input-borderless:hover,.ant-input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-input{max-width:100%;height:auto;min-height:32px;line-height:1.38;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-lg{padding:6px 15px;height:48px;font-size:13px}.ant-input-sm{padding:1px 7px}.ant-input-rtl{direction:rtl}.ant-input-group{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';position:relative;display:table;width:100%;border-collapse:separate;border-spacing:0}.ant-input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.ant-input-group>[class*=col-]{padding-right:8px}.ant-input-group>[class*=col-]:last-child{padding-right:0}.ant-input-group-addon,.ant-input-group-wrap,.ant-input-group>.ant-input{display:table-cell}.ant-input-group-addon:not(:first-child):not(:last-child),.ant-input-group-wrap:not(:first-child):not(:last-child),.ant-input-group>.ant-input:not(:first-child):not(:last-child){border-radius:0}.ant-input-group-addon,.ant-input-group-wrap{width:1px;white-space:nowrap;vertical-align:middle}.ant-input-group-wrap>*{display:block!important}.ant-input-group .ant-input{float:left;width:100%;margin-bottom:0;text-align:inherit}.ant-input-group .ant-input:focus{z-index:1;border-right-width:1px}.ant-input-group .ant-input:hover{z-index:1;border-right-width:1px}.ant-input-search-with-button .ant-input-group .ant-input:hover{z-index:0}.ant-input-group-addon{position:relative;padding:0 15px;color:#6a7580;font-weight:400;font-size:13px;text-align:center;background-color:#e9edee;border:1px solid #dbe0e3;border-radius:3px;transition:all .3s}.ant-input-group-addon .ant-select{margin:-5px -15px}.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:1px solid transparent;box-shadow:none}.ant-input-group-addon .ant-select-focused .ant-select-selector,.ant-input-group-addon .ant-select-open .ant-select-selector{color:#0b68ff}.ant-input-group-addon .ant-cascader-picker{margin:-9px -16px;background-color:transparent}.ant-input-group-addon .ant-cascader-picker .ant-cascader-input{text-align:left;border:0;box-shadow:none}.ant-input-group-addon:first-child,.ant-input-group>.ant-input:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group-addon:first-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:first-child .ant-select .ant-select-selector{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:first-child) .ant-input{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:last-child) .ant-input{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group-addon:first-child{border-right:0}.ant-input-group-addon:last-child{border-left:0}.ant-input-group-addon:last-child,.ant-input-group>.ant-input:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-addon:last-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:last-child .ant-select .ant-select-selector{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-lg .ant-input,.ant-input-group-lg>.ant-input-group-addon{padding:6px 15px;height:48px;font-size:13px}.ant-input-group-sm .ant-input,.ant-input-group-sm>.ant-input-group-addon{padding:1px 7px}.ant-input-group-lg .ant-select-single .ant-select-selector{height:48px}.ant-input-group-sm .ant-select-single .ant-select-selector{height:24px}.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-left-radius:3px;border-bottom-left-radius:3px}.ant-input-group .ant-input-affix-wrapper:not(:first-child),.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group.ant-input-group-compact{display:block}.ant-input-group.ant-input-group-compact::before{display:table;content:''}.ant-input-group.ant-input-group-compact::after{display:table;clear:both;content:''}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child){border-right-width:1px}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):hover{z-index:1}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):focus{z-index:1}.ant-input-group.ant-input-group-compact>*{display:inline-block;float:none;vertical-align:top;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-input-affix-wrapper,.ant-input-group.ant-input-group-compact>.ant-input-number-affix-wrapper,.ant-input-group.ant-input-group-compact>.ant-picker-range{display:inline-flex}.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:-1px;border-right-width:1px}.ant-input-group.ant-input-group-compact .ant-input{float:none}.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector{border-right-width:1px;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:hover{z-index:1}.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:focus{z-index:1}.ant-input-group.ant-input-group-compact>.ant-select-focused{z-index:1}.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-arrow{z-index:1}.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>:last-child{border-right-width:1px;border-top-right-radius:3px;border-bottom-right-radius:3px}.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input{vertical-align:top}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper{margin-left:-1px}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper .ant-input-affix-wrapper{border-radius:0}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input-group-addon>.ant-input-search-button{border-radius:0}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:3px 0 0 3px}.ant-input-group-rtl .ant-input-group-addon:first-child,.ant-input-group>.ant-input-rtl:first-child{border-radius:0 3px 3px 0}.ant-input-group-rtl .ant-input-group-addon:first-child{border-right:1px solid #dbe0e3;border-left:0}.ant-input-group-rtl .ant-input-group-addon:last-child{border-right:0;border-left:1px solid #dbe0e3;border-radius:3px 0 0 3px}.ant-input-group-rtl.ant-input-group-addon:last-child,.ant-input-group-rtl.ant-input-group>.ant-input:last-child{border-radius:3px 0 0 3px}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child){border-radius:3px 0 0 3px}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-radius:0 3px 3px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:0;margin-left:-1px;border-left-width:1px}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:first-child{border-radius:0 3px 3px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:last-child{border-left-width:1px;border-radius:3px 0 0 3px}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl+.ant-input-group-wrapper-rtl{margin-right:-1px;margin-left:0}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:0 3px 3px 0}.ant-input-group-addon{font-size:13px}.ant-input-group-wrapper{display:inline-block;width:100%;text-align:start;vertical-align:top}.ant-input-password-icon.anticon{color:#232936;cursor:pointer;transition:all .3s}.ant-input-password-icon.anticon:hover{color:rgba(0,0,0,.85)}.ant-input[type=color]{height:32px}.ant-input[type=color].ant-input-lg{height:48px}.ant-input[type=color].ant-input-sm{height:24px;padding-top:3px;padding-bottom:3px}.ant-input-textarea-show-count>.ant-input{height:100%}.ant-input-textarea-show-count::after{float:right;color:#232936;white-space:nowrap;content:attr(data-count);pointer-events:none}.ant-input-textarea-show-count.ant-input-textarea-in-form-item::after{margin-bottom:-22px}.ant-input-textarea-suffix{position:absolute;top:0;right:15px;bottom:0;z-index:1;display:inline-flex;align-items:center;margin:auto}.ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl){margin-right:-1px}.ant-input-compact-item:not(.ant-input-compact-last-item).ant-input-compact-item-rtl{margin-left:-1px}.ant-input-compact-item:active,.ant-input-compact-item:focus,.ant-input-compact-item:hover{z-index:2}.ant-input-compact-item[disabled]{z-index:0}.ant-input-compact-item:not(.ant-input-compact-first-item):not(.ant-input-compact-last-item).ant-input{border-radius:0}.ant-input-compact-item.ant-input.ant-input-compact-first-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-compact-item.ant-input.ant-input-compact-last-item:not(.ant-input-compact-first-item):not(.ant-input-compact-item-rtl){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-first-item:not(.ant-input-compact-last-item){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-last-item:not(.ant-input-compact-first-item){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-search .ant-input:focus,.ant-input-search .ant-input:hover{border-color:#b5bdc3}.ant-input-search .ant-input:focus+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),.ant-input-search .ant-input:hover+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary){border-left-color:#b5bdc3}.ant-input-search .ant-input-affix-wrapper{border-radius:0}.ant-input-search .ant-input-lg{line-height:1.3798}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child{left:-1px;padding:0;border:0}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button{padding-top:0;padding-bottom:0;border-radius:0 3px 3px 0}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary){color:#232936}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary).ant-btn-loading::before{top:0;right:0;bottom:0;left:0}.ant-input-search-button{height:32px}.ant-input-search-button:focus,.ant-input-search-button:hover{z-index:1}.ant-input-search-large .ant-input-search-button{height:48px}.ant-input-search-small .ant-input-search-button{height:24px}.ant-input-search.ant-input-compact-item:not(.ant-input-compact-item-rtl):not(.ant-input-compact-last-item) .ant-input-group-addon .ant-input-search-button{margin-right:-1px;border-radius:0}.ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input,.ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input-affix-wrapper{border-radius:0}.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:active,.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:focus,.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:hover,.ant-input-search.ant-input-compact-item>.ant-input-group-addon .ant-input-search-button:active,.ant-input-search.ant-input-compact-item>.ant-input-group-addon .ant-input-search-button:focus,.ant-input-search.ant-input-compact-item>.ant-input-group-addon .ant-input-search-button:hover,.ant-input-search.ant-input-compact-item>.ant-input:active,.ant-input-search.ant-input-compact-item>.ant-input:focus,.ant-input-search.ant-input-compact-item>.ant-input:hover{z-index:2}.ant-input-search.ant-input-compact-item>.ant-input-affix-wrapper-focused{z-index:2}.ant-input-search.ant-input-compact-item-rtl:not(.ant-input-compact-last-item) .ant-input-group-addon:last-child .ant-input-search-button{margin-left:-1px;border-radius:0}.ant-input-group-wrapper-rtl{direction:rtl}.ant-input-group-rtl{direction:rtl}.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl>input.ant-input{border:none;outline:0}.ant-input-affix-wrapper-rtl .ant-input-prefix{margin:0 0 0 4px}.ant-input-affix-wrapper-rtl .ant-input-suffix{margin:0 4px 0 0}.ant-input-textarea-rtl{direction:rtl}.ant-input-textarea-rtl.ant-input-textarea-show-count::after{text-align:left}.ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix{margin-right:0;margin-left:4px}.ant-input-affix-wrapper-rtl .ant-input-clear-icon{right:auto;left:8px}.ant-input-search-rtl{direction:rtl}.ant-input-search-rtl .ant-input:focus+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),.ant-input-search-rtl .ant-input:hover+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary){border-left-color:#dbe0e3}.ant-input-search-rtl .ant-input:focus+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover,.ant-input-search-rtl .ant-input:hover+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover{border-left-color:#b5bdc3}.ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper-focused,.ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper:hover{border-right-color:#b5bdc3}.ant-input-search-rtl>.ant-input-group>.ant-input-group-addon:last-child{right:-1px;left:auto}.ant-input-search-rtl>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button{border-radius:3px 0 0 3px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ant-input{height:32px}.ant-input-lg{height:48px}.ant-input-sm{height:24px}.ant-input-affix-wrapper>input.ant-input{height:auto}}.ant-input.ant-input{padding:7px 12px}.ant-select-selection .ant-select-selection__rendered{margin-left:12px}.ant-input-affix-wrapper .ant-input:not(:last-child):focus,.ant-input-number-input:focus{border-color:#38f;box-shadow:0 0 0 0 rgba(11,104,255,.2);border-right-width:1px;outline:0;box-shadow:inset 0 0 0 1px #0b68ff;border-color:#0b68ff;background-color:#f4faff}.ant-input-rtl .ant-input-affix-wrapper .ant-input:not(:last-child):focus,.ant-input-rtl .ant-input-number-input:focus{border-right-width:0;border-left-width:1px!important}.ant-input-group .ant-input-affix-wrapper{padding:0 8px 0 12px}.ant-input-group .ant-input-affix-wrapper>input.ant-input:focus{background-color:transparent;box-shadow:none;border:0}textarea.ant-input{padding:8px 12px 8px 12px}textarea.ant-input::-webkit-scrollbar{transition:background-color .3s ease-in-out,border .3s ease-in-out;width:11px;height:11px;cursor:default}textarea.ant-input::-webkit-scrollbar-button{display:none;width:0;height:0}textarea.ant-input::-webkit-scrollbar-track{border-radius:3px;background-color:transparent!important;border:4px solid transparent!important}textarea.ant-input::-webkit-scrollbar-corner{background:0 0;display:none;border:0}textarea.ant-input::-webkit-scrollbar-thumb{background-color:#e1e3e6;border-radius:8px;border:4px solid #fff}textarea.ant-input::-webkit-scrollbar-thumb:active,textarea.ant-input::-webkit-scrollbar-thumb:hover{background-color:#a6acb3}textarea.ant-input:focus::-webkit-scrollbar-track{border-radius:3px;background-color:transparent!important;border:4px solid transparent!important}textarea.ant-input:focus::-webkit-scrollbar-thumb{background-color:transparent;border-radius:8px;border:4px solid transparent!important}textarea.ant-input:focus::-webkit-scrollbar-thumb:active,textarea.ant-input:focus::-webkit-scrollbar-thumb:hover{background-color:#a6acb3}textarea.ant-input:disabled::-webkit-scrollbar-track{border-radius:0;background-color:#f9fafb;border:4px solid #f9fafb}textarea.ant-input:disabled::-webkit-scrollbar-thumb{border:4px solid #f9fafb}.ant-input-group-addon{padding:0}.ant-input-group-addon .ant-select{margin:0}.ant-input-group ::placeholder{line-height:1.29}.ant-input-group .ant-select.ant-select-focused,.ant-input-group .ant-select.error{z-index:2!important}.ant-input-group .ant-select.error:hover .ant-select-selector{border-color:#f52922}.ant-input-group .error+.error{border-left-width:0!important}.ant-input-group.ant-input-group-compact>.ds-select-wrapper>.ant-select>.ant-select-selector{border-radius:0}.ant-input-group.ant-input-group-compact{z-index:1}.ant-input-group.ant-input-group-compact>*>:hover{z-index:2}.ant-input-group.ant-input-group-compact>:first-child.ds-select-wrapper>.ant-select>.ant-select-selector{border-top-left-radius:3px;border-bottom-left-radius:3px}.ant-input-group.ant-input-group-compact>.ant-input:focus,.ant-input-group.ant-input-group-compact>div>.ant-input-number.ant-input-number-focused{z-index:2}.ant-input-group.ant-input-group-compact>:first-child.ds-select-wrapper:not(.white)>.ant-select:not(.error)>.ant-select-selector{background:#f9fafb}.ant-input-group.ant-input-group-compact>:last-child.ds-select-wrapper>.ant-select>.ant-select-selector{border-top-right-radius:3px;border-bottom-right-radius:3px}.ant-input-group.ant-input-group-compact>:last-child.ds-select-wrapper:not(.white)>.ant-select>.ant-select-selector{background:#f9fafb}.ant-input-group.ant-input-group-compact.ant-input-group.ant-input-group-compact>.ds-select-wrapper>.ant-select.error>.ant-select-selector{background:#fff6f4}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Input UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,20 +34,19 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^0.
|
|
38
|
-
"@synerise/ds-scrollbar": "^0.
|
|
39
|
-
"@synerise/ds-tooltip": "^0.
|
|
40
|
-
"@synerise/ds-typography": "^0.
|
|
41
|
-
"@synerise/ds-utils": "^0.
|
|
42
|
-
"antd-mask-input": "^0.1.13",
|
|
37
|
+
"@synerise/ds-icon": "^0.71.0",
|
|
38
|
+
"@synerise/ds-scrollbar": "^0.12.0",
|
|
39
|
+
"@synerise/ds-tooltip": "^0.15.0",
|
|
40
|
+
"@synerise/ds-typography": "^0.17.0",
|
|
41
|
+
"@synerise/ds-utils": "^0.32.0",
|
|
43
42
|
"csstype": "2.6.9",
|
|
44
43
|
"uuid": "^8.3.2"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
46
|
"@synerise/ds-core": "*",
|
|
48
|
-
"antd": "4.
|
|
49
|
-
"react": ">=16.9.0 <=
|
|
50
|
-
"styled-components": "5.
|
|
47
|
+
"antd": "4.24.16",
|
|
48
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
49
|
+
"styled-components": "^5.3.3"
|
|
51
50
|
},
|
|
52
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
|
|
53
52
|
}
|