@synerise/ds-input 0.18.39 → 0.18.41

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.18.41](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.18.40...@synerise/ds-input@0.18.41) (2023-05-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **input:** add missing readOnly styles to input ([0316b64](https://github.com/synerise/synerise-design/commit/0316b6460eb568602db3a24110735dad211eecc2))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.18.40](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.18.39...@synerise/ds-input@0.18.40) (2023-05-20)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-input
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.18.39](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.18.38...@synerise/ds-input@0.18.39) (2023-04-26)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-input
@@ -38,6 +38,7 @@ export declare const AntdInput: import("styled-components").StyledComponent<Reac
38
38
  size?: SizeType;
39
39
  } & React.RefAttributes<BaseAntInput>>, any, {
40
40
  error?: boolean | undefined;
41
+ readOnly?: boolean | undefined;
41
42
  }, never>;
42
43
  export declare const AntdMaskedInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
43
44
  error?: boolean | undefined;
@@ -105,7 +105,7 @@ function (_ref2, ref) {
105
105
  })).withConfig({
106
106
  displayName: "Inputstyles__AntdInput",
107
107
  componentId: "dc57an-6"
108
- })(["", ";&&&{min-height:32px;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) {
108
+ })(["", ";&&&{min-height:32px;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) {
109
109
  return props.error ? errorInputStyle(props) : '';
110
110
  }, function (props) {
111
111
  return props.theme.palette['grey-700'];
@@ -113,12 +113,16 @@ function (_ref2, ref) {
113
113
  return props.theme.palette['grey-500'];
114
114
  }, function (props) {
115
115
  return props.size === 'large' ? "2.49" : "1.29";
116
+ }, function (_ref3) {
117
+ var readOnly = _ref3.readOnly,
118
+ theme = _ref3.theme;
119
+ 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 " : '';
116
120
  });
117
121
  export var AntdMaskedInput = styled(React.forwardRef( // eslint-disable-next-line
118
- function (_ref3, ref) {
119
- var error = _ref3.error,
120
- mask = _ref3.mask,
121
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2);
122
+ function (_ref4, ref) {
123
+ var error = _ref4.error,
124
+ mask = _ref4.mask,
125
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2);
122
126
 
123
127
  return (
124
128
  /*#__PURE__*/
@@ -141,9 +145,9 @@ function (_ref3, ref) {
141
145
  return props.theme.palette['grey-700'];
142
146
  });
143
147
  export var AntdTextArea = styled(React.forwardRef( // eslint-disable-next-line
144
- function (_ref4, ref) {
145
- var error = _ref4.error,
146
- props = _objectWithoutPropertiesLoose(_ref4, _excluded3);
148
+ function (_ref5, ref) {
149
+ var error = _ref5.error,
150
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3);
147
151
 
148
152
  return (
149
153
  /*#__PURE__*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "0.18.39",
3
+ "version": "0.18.41",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@synerise/ds-icon": "^0.56.0",
36
36
  "@synerise/ds-scrollbar": "^0.6.2",
37
- "@synerise/ds-tooltip": "^0.13.2",
37
+ "@synerise/ds-tooltip": "^0.13.4",
38
38
  "@synerise/ds-typography": "^0.12.7",
39
39
  "@synerise/ds-utils": "^0.19.0",
40
40
  "antd-mask-input": "^0.1.13",
@@ -45,5 +45,5 @@
45
45
  "antd": "^4",
46
46
  "react": ">=16.9.0 < 17.0.0"
47
47
  },
48
- "gitHead": "41163901b144e78a83329029519cb9eb48bf4787"
48
+ "gitHead": "9a0fe37374409f1830fa642965975a26a72116c8"
49
49
  }