serene-core-client 0.1.9 → 0.1.10

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.
@@ -4,9 +4,10 @@ interface Props {
4
4
  label: string;
5
5
  minRows: number;
6
6
  onChange: any;
7
+ placeholder?: string;
7
8
  required?: boolean;
8
9
  value: string;
9
10
  style?: any;
10
11
  }
11
- export declare function TextAreaField({ disabled, id, label, minRows, onChange, required, value, style }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export declare function TextAreaField({ disabled, id, label, minRows, onChange, placeholder, required, value, style }: Props): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FormControl, InputLabel, TextareaAutosize } from '@mui/material';
3
- export function TextAreaField({ disabled, id, label, minRows = 5, onChange = {}, required = false, value, style = {} }) {
3
+ export function TextAreaField({ disabled, id, label, minRows = 5, onChange = {}, placeholder, required = false, value, style = {} }) {
4
4
  // Render
5
5
  return (_jsx("div", { style: style, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { htmlFor: id, required: required, style: {
6
6
  position: 'absolute',
@@ -12,7 +12,7 @@ export function TextAreaField({ disabled, id, label, minRows = 5, onChange = {},
12
12
  background: value ? '#fff' : 'transparent',
13
13
  padding: '0 4px',
14
14
  pointerEvents: 'none',
15
- }, children: label }), _jsx(TextareaAutosize, { autoComplete: 'off', disabled: disabled, id: id, minRows: minRows, onChange: onChange, style: {
15
+ }, children: label }), _jsx(TextareaAutosize, { autoComplete: 'off', disabled: disabled, id: id, minRows: minRows, onChange: onChange, placeholder: placeholder, style: {
16
16
  width: '100%',
17
17
  padding: '12px',
18
18
  fontSize: '16px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serene-core-client",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",