@synerise/ds-input 0.21.3 → 0.21.5
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/dist/Input.d.ts +2 -1
- package/dist/Input.js +0 -3
- package/dist/Input.styles.d.ts +2 -0
- package/dist/Input.styles.js +6 -2
- package/dist/InputGroup.d.ts +2 -1
- package/dist/Label/Label.d.ts +2 -1
- package/dist/Label/Label.styles.d.ts +1 -1
- package/dist/TextArea.d.ts +1 -1
- package/dist/components/ContentAboveElement.d.ts +2 -1
- package/dist/components/ContentBelowElement.d.ts +2 -1
- package/dist/components/ElementIcons.d.ts +2 -1
- package/package.json +6 -6
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.21.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.21.4...@synerise/ds-input@0.21.5) (2024-05-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.21.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.21.3...@synerise/ds-input@0.21.4) (2024-05-23)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **date-picker:** fixes height when autoResize prop is added ([47a5954](https://github.com/synerise/synerise-design/commit/47a5954c2da3195ef7285016532834d566f5fefb))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.21.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.21.2...@synerise/ds-input@0.21.3) (2024-05-16)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-input
|
package/dist/Input.d.ts
CHANGED
|
@@ -21,8 +21,9 @@ export declare const RawMaskedInput: StyledComponent<React.ForwardRefExoticCompo
|
|
|
21
21
|
error?: boolean | undefined;
|
|
22
22
|
} & React.RefAttributes<AntdMaskedInput>>, any, {
|
|
23
23
|
error?: boolean | undefined;
|
|
24
|
+
autoResize?: import("./Input.types").AutoResizeProp | undefined;
|
|
24
25
|
}, never>;
|
|
25
|
-
export declare const RawInput: (props: DSInputProps) => JSX.Element;
|
|
26
|
+
export declare const RawInput: (props: DSInputProps) => React.JSX.Element;
|
|
26
27
|
export { default as InputGroup } from './InputGroup';
|
|
27
28
|
export { default as InputMultivalue } from './InputMultivalue/InputMultivalue';
|
|
28
29
|
export declare const AutoResize: any;
|
package/dist/Input.js
CHANGED
|
@@ -129,9 +129,6 @@ var createInputComponent = function createInputComponent(WrappedComponent) {
|
|
|
129
129
|
value: antdInputProps.value,
|
|
130
130
|
autoResize: !!autoResize
|
|
131
131
|
}, /*#__PURE__*/React.createElement(WrappedComponent, _extends({
|
|
132
|
-
style: {
|
|
133
|
-
minHeight: '6px'
|
|
134
|
-
},
|
|
135
132
|
autoResize: autoResize
|
|
136
133
|
}, antdInputProps, {
|
|
137
134
|
className: hasErrorMessage || error ? 'error' : undefined,
|
package/dist/Input.styles.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const AntdInput: import("styled-components").StyledComponent<Reac
|
|
|
36
36
|
} & React.RefAttributes<BaseAntInput>>, any, {
|
|
37
37
|
error?: boolean | undefined;
|
|
38
38
|
readOnly?: boolean | undefined;
|
|
39
|
+
autoResize?: AutoResizeProp | undefined;
|
|
39
40
|
}, never>;
|
|
40
41
|
export declare const AntdMaskedInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<InputProps & {
|
|
41
42
|
mask: string;
|
|
@@ -46,6 +47,7 @@ export declare const AntdMaskedInput: import("styled-components").StyledComponen
|
|
|
46
47
|
error?: boolean | undefined;
|
|
47
48
|
} & React.RefAttributes<MaskedInput>>, any, {
|
|
48
49
|
error?: boolean | undefined;
|
|
50
|
+
autoResize?: AutoResizeProp | undefined;
|
|
49
51
|
}, never>;
|
|
50
52
|
export declare const AntdTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
51
53
|
error?: boolean | undefined;
|
package/dist/Input.styles.js
CHANGED
|
@@ -102,8 +102,10 @@ function (_ref2, ref) {
|
|
|
102
102
|
})).withConfig({
|
|
103
103
|
displayName: "Inputstyles__AntdInput",
|
|
104
104
|
componentId: "dc57an-6"
|
|
105
|
-
})(["", ";&&&{min-height:
|
|
105
|
+
})(["", ";&&&{min-height:", "px;transition:all 0.3s,width 0ms,min-width 0ms,max-width 0ms;grid-area:1 / 1;color:", ";z-index:1;&::placeholder{color:", ";}&::-moz-placeholder{line-height:", ";}.ds-input-prefix{border-top-left-radius:3px;border-bottom-left-radius:3px;}.ds-input-suffix{border-top-right-radius:3px;border-bottom-right-radius:3px;}", "}"], function (props) {
|
|
106
106
|
return props.error ? errorInputStyle(props) : '';
|
|
107
|
+
}, function (props) {
|
|
108
|
+
return props.autoResize ? '16' : '32';
|
|
107
109
|
}, function (props) {
|
|
108
110
|
return props.theme.palette['grey-700'];
|
|
109
111
|
}, function (props) {
|
|
@@ -128,8 +130,10 @@ function (_ref4, ref) {
|
|
|
128
130
|
})).withConfig({
|
|
129
131
|
displayName: "Inputstyles__AntdMaskedInput",
|
|
130
132
|
componentId: "dc57an-7"
|
|
131
|
-
})(["", ";&&{color:", ";z-index:1;letter-spacing:1.8px;&::placeholder{letter-spacing:1.8px;color:", ";}}"], function (props) {
|
|
133
|
+
})(["", ";&&{min-height:", "px;color:", ";z-index:1;letter-spacing:1.8px;&::placeholder{letter-spacing:1.8px;color:", ";}}"], function (props) {
|
|
132
134
|
return props.error ? errorInputStyle(props) : '';
|
|
135
|
+
}, function (props) {
|
|
136
|
+
return props.autoResize ? '16' : '32';
|
|
133
137
|
}, function (props) {
|
|
134
138
|
return props.theme.palette['grey-700'];
|
|
135
139
|
}, function (props) {
|
package/dist/InputGroup.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Props } from './InputGroup.types';
|
|
2
|
-
declare const InputGroup: ({ children, label, errors, description, resetMargin, tooltip, ...antdInputGroupProps }: Props) => JSX.Element;
|
|
3
|
+
declare const InputGroup: ({ children, label, errors, description, resetMargin, tooltip, ...antdInputGroupProps }: Props) => React.JSX.Element;
|
|
3
4
|
export default InputGroup;
|
package/dist/Label/Label.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { LabelProps } from './Label.types';
|
|
2
|
-
declare const Label: ({ id, className, label, tooltip, tooltipConfig, style }: LabelProps) => JSX.Element;
|
|
3
|
+
declare const Label: ({ id, className, label, tooltip, tooltipConfig, style }: LabelProps) => React.JSX.Element;
|
|
3
4
|
export default Label;
|
|
@@ -6,4 +6,4 @@ export declare const LabelText: import("styled-components").StyledComponent<({ s
|
|
|
6
6
|
ellipsis?: import("@synerise/ds-typography/dist/Ellipsis").EllipsisProps | undefined;
|
|
7
7
|
children?: import("react").ReactNode;
|
|
8
8
|
className?: string | undefined;
|
|
9
|
-
}) => JSX.Element, any, {}, never>;
|
|
9
|
+
}) => import("react").JSX.Element, any, {}, never>;
|
package/dist/TextArea.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import '@synerise/ds-core/dist/js/style';
|
|
3
3
|
import './style/index.less';
|
|
4
4
|
import { TextareaProps } from './TextArea.types';
|
|
5
|
-
export declare const TextArea: ({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, ...antdTextareaProps }: TextareaProps) => JSX.Element;
|
|
5
|
+
export declare const TextArea: ({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, ...antdTextareaProps }: TextareaProps) => React.JSX.Element;
|
|
6
6
|
export declare const RawTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
7
7
|
error?: boolean | undefined;
|
|
8
8
|
} & React.RefAttributes<import("antd/lib/input/TextArea").default>>, any, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseProps } from '../Input.types';
|
|
2
3
|
type ContentAboveProps = Pick<BaseProps, 'tooltip' | 'tooltipConfig' | 'label'> & {
|
|
3
4
|
counterLimit?: number;
|
|
4
5
|
charCount?: number;
|
|
5
6
|
id: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const ContentAboveElement: ({ label, counterLimit, id, tooltip, tooltipConfig, charCount, }: ContentAboveProps) => JSX.Element;
|
|
8
|
+
export declare const ContentAboveElement: ({ label, counterLimit, id, tooltip, tooltipConfig, charCount, }: ContentAboveProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseProps } from '../Input.types';
|
|
2
3
|
type ContentBelowProps = Pick<BaseProps, 'description' | 'errorText'>;
|
|
3
|
-
export declare const ContentBelowElement: ({ description, errorText }: ContentBelowProps) => JSX.Element | null;
|
|
4
|
+
export declare const ContentBelowElement: ({ description, errorText }: ContentBelowProps) => React.JSX.Element | null;
|
|
4
5
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseProps } from '../Input.types';
|
|
2
3
|
type IconProps = Pick<BaseProps, 'icon1' | 'icon1Tooltip' | 'icon2' | 'icon2Tooltip' | 'className'> & {
|
|
3
4
|
disabled?: boolean;
|
|
4
5
|
handleIconsClick: () => void;
|
|
5
6
|
type: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const ElementIcons: ({ handleIconsClick, disabled, icon1Tooltip, icon1, icon2, icon2Tooltip, className, type, }: IconProps) => JSX.Element | null;
|
|
8
|
+
export declare const ElementIcons: ({ handleIconsClick, disabled, icon1Tooltip, icon1, icon2, icon2Tooltip, className, type, }: IconProps) => React.JSX.Element | null;
|
|
8
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-input",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.5",
|
|
4
4
|
"description": "Input UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-icon": "^0.
|
|
37
|
-
"@synerise/ds-scrollbar": "^0.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
36
|
+
"@synerise/ds-icon": "^0.62.0",
|
|
37
|
+
"@synerise/ds-scrollbar": "^0.11.0",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.14.29",
|
|
39
39
|
"@synerise/ds-typography": "^0.15.0",
|
|
40
|
-
"@synerise/ds-utils": "^0.
|
|
40
|
+
"@synerise/ds-utils": "^0.27.0",
|
|
41
41
|
"antd-mask-input": "^0.1.13",
|
|
42
42
|
"csstype": "2.6.9",
|
|
43
43
|
"uuid": "^8.3.2"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"@testing-library/react": "10.0.1",
|
|
53
53
|
"@testing-library/user-event": "10.3.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "6bd94c78745df68ee3b853120a863ab24fc233ef"
|
|
56
56
|
}
|