@apexcura/ui-components 0.0.14-Beta270 → 0.0.14-Beta271

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/dist/index.d.mts CHANGED
@@ -72,6 +72,8 @@ type ElementType = {
72
72
  pagination?: boolean;
73
73
  is_detail?: boolean;
74
74
  dateTime?: string;
75
+ minRows?: number;
76
+ maxRows?: number;
75
77
  };
76
78
 
77
79
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -72,6 +72,8 @@ type ElementType = {
72
72
  pagination?: boolean;
73
73
  is_detail?: boolean;
74
74
  dateTime?: string;
75
+ minRows?: number;
76
+ maxRows?: number;
75
77
  };
76
78
 
77
79
  declare const TextElement: (props: ElementType) => React$1.JSX.Element;
package/dist/index.js CHANGED
@@ -166,6 +166,8 @@ var TextareaElement = (props) => {
166
166
  props.onChange(e.target.value);
167
167
  }
168
168
  };
169
+ const defaultMinRows = 2;
170
+ const defaultMaxRows = 6;
169
171
  return /* @__PURE__ */ import_react4.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react4.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react4.default.createElement(
170
172
  TextArea,
171
173
  {
@@ -174,12 +176,10 @@ var TextareaElement = (props) => {
174
176
  defaultValue: props.defaultValue,
175
177
  disabled: props.disabled,
176
178
  id: props.name,
177
- status: props.status,
179
+ autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
178
180
  className: props.className,
179
- variant: props.variant,
180
181
  name: props.name,
181
182
  showCount: true,
182
- maxLength: props.maxLength,
183
183
  onChange: (e) => {
184
184
  handleChange(e);
185
185
  }
package/dist/index.mjs CHANGED
@@ -99,6 +99,8 @@ var TextareaElement = (props) => {
99
99
  props.onChange(e.target.value);
100
100
  }
101
101
  };
102
+ const defaultMinRows = 2;
103
+ const defaultMaxRows = 6;
102
104
  return /* @__PURE__ */ React4.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React4.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React4.createElement(
103
105
  TextArea,
104
106
  {
@@ -107,12 +109,10 @@ var TextareaElement = (props) => {
107
109
  defaultValue: props.defaultValue,
108
110
  disabled: props.disabled,
109
111
  id: props.name,
110
- status: props.status,
112
+ autoSize: { minRows: props.minRows ? props.minRows : defaultMinRows, maxRows: props.maxRows ? props.maxRows : defaultMaxRows },
111
113
  className: props.className,
112
- variant: props.variant,
113
114
  name: props.name,
114
115
  showCount: true,
115
- maxLength: props.maxLength,
116
116
  onChange: (e) => {
117
117
  handleChange(e);
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta270",
3
+ "version": "0.0.14-Beta271",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",