@synerise/ds-input 0.21.3 → 0.21.4
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 +11 -0
- package/dist/Input.d.ts +1 -0
- package/dist/Input.js +0 -3
- package/dist/Input.styles.d.ts +2 -0
- package/dist/Input.styles.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.21.3...@synerise/ds-input@0.21.4) (2024-05-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **date-picker:** fixes height when autoResize prop is added ([47a5954](https://github.com/synerise/synerise-design/commit/47a5954c2da3195ef7285016532834d566f5fefb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [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
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-input
|
package/dist/Input.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ 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
26
|
export declare const RawInput: (props: DSInputProps) => JSX.Element;
|
|
26
27
|
export { default as InputGroup } from './InputGroup';
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-input",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "Input UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -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": "357031f4340eb9a2835f7b0cabffb5b1ad231db8"
|
|
56
56
|
}
|