pixelize-design-library 1.1.54 → 1.1.55

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.
@@ -210,11 +210,11 @@ function NoteTextArea(_a) {
210
210
  var start = nameWithoutExtension.substring(0, maxLength - extension.length - 3);
211
211
  return "".concat(start, "...").concat(extension, " ");
212
212
  };
213
- return (react_1.default.createElement(Container, { style: { width: width }, isActive: isActive, ref: ref },
213
+ return (react_1.default.createElement(Container, { style: { width: width }, isActive: isActive },
214
214
  react_1.default.createElement(PlaceholderText, { isActive: !isActive, onClick: handleTextArea },
215
215
  react_1.default.createElement("span", null, "Add a note...")),
216
216
  react_1.default.createElement(TextAreaContainer, { isActive: isActive },
217
- titleShow && (react_1.default.createElement(InputTitle, { value: titleValue, onChange: handleTitleChange, placeholder: "Add a title..." })),
217
+ titleShow && (react_1.default.createElement(InputTitle, { value: titleValue, onChange: handleTitleChange, placeholder: "Add a title...", ref: ref })),
218
218
  react_1.default.createElement(NotesTextArea, { ref: noteAreaRef, isActive: isActive, noteValue: noteValue, value: noteValue, onChange: handleNoteChange, placeholder: "Add a note..." })),
219
219
  isActive && (react_1.default.createElement(react_1.default.Fragment, null,
220
220
  react_1.default.createElement("hr", { style: { margin: 0 } }),
@@ -12,5 +12,5 @@ export type NoteTextAreaProps = {
12
12
  maxFilesSizeError?: string;
13
13
  maxNoteWordCount?: number;
14
14
  onChange?: (value: string) => void;
15
- ref?: LegacyRef<HTMLDivElement>;
15
+ ref?: LegacyRef<HTMLInputElement>;
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",