@synerise/ds-input 0.21.2 → 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 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.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
+
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)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-input
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.21.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.21.1...@synerise/ds-input@0.21.2) (2024-05-10)
7
26
 
8
27
 
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,
@@ -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;
@@ -102,8 +102,10 @@ function (_ref2, ref) {
102
102
  })).withConfig({
103
103
  displayName: "Inputstyles__AntdInput",
104
104
  componentId: "dc57an-6"
105
- })(["", ";&&&{min-height:32px;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) {
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.2",
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",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-icon": "^0.60.9",
37
- "@synerise/ds-scrollbar": "^0.10.4",
38
- "@synerise/ds-tooltip": "^0.14.27",
36
+ "@synerise/ds-icon": "^0.61.0",
37
+ "@synerise/ds-scrollbar": "^0.10.5",
38
+ "@synerise/ds-tooltip": "^0.14.28",
39
39
  "@synerise/ds-typography": "^0.15.0",
40
- "@synerise/ds-utils": "^0.26.5",
40
+ "@synerise/ds-utils": "^0.26.6",
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": "dea3898f262a7c333c6fd8ef806036ed4368bde7"
55
+ "gitHead": "357031f4340eb9a2835f7b0cabffb5b1ad231db8"
56
56
  }