@synerise/ds-inline-edit 0.6.105 → 0.7.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 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.7.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-edit@0.6.105...@synerise/ds-inline-edit@0.7.0) (2024-04-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **code-area:** new component ([2a94d6e](https://github.com/Synerise/synerise-design/commit/2a94d6ea3c830f803fbd10b00ae009d5e20575e2))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.6.105](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-edit@0.6.104...@synerise/ds-inline-edit@0.6.105) (2024-04-15)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-inline-edit
package/README.md CHANGED
@@ -73,6 +73,7 @@ InlineEdit UI Component
73
73
  | disabled | Disabled state of component | boolean | `false` | - |
74
74
  | maxLength | Maximum characters inside the input element | number | `false` | - |
75
75
  | name | Native html name attribute | string | - | - |
76
+ | readOnly | Readonly state of the Input component | boolean | - | - |
76
77
  | placeholder | Default text component | string | - | - |
77
78
  | onBlur | Called when input blured | function | - | - |
78
79
  | onEnterPress | Called when user press `Enter` in focused input | function | - | - |
@@ -76,6 +76,7 @@ var InlineEdit = function InlineEdit(_ref) {
76
76
  disabled: disabled,
77
77
  name: input.name,
78
78
  extraWidth: 2,
79
+ readOnly: input.readOnly,
79
80
  value: input.value || '',
80
81
  onChange: handleChange,
81
82
  onBlur: handleBlur,
@@ -9,6 +9,7 @@ export type InputProps = {
9
9
  placeholder?: string;
10
10
  maxLength?: number;
11
11
  autoComplete?: string;
12
+ readOnly?: boolean;
12
13
  };
13
14
  export interface InlineEditProps {
14
15
  size?: 'large' | 'normal' | 'small';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-inline-edit",
3
- "version": "0.6.105",
3
+ "version": "0.7.0",
4
4
  "description": "InlineEdit UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -53,5 +53,5 @@
53
53
  "@testing-library/react": "10.0.1",
54
54
  "@types/react-input-autosize": "2.2.1"
55
55
  },
56
- "gitHead": "fcc57aef73d1309a366e4c6e80ce4defdd9f20f8"
56
+ "gitHead": "2b3ed7503dacc36c207049a5a3e81bfe190de0be"
57
57
  }