@idealyst/components 1.2.77 → 1.2.79
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.79",
|
|
4
4
|
"description": "Shared component library for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/components#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"publish:npm": "npm publish"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@idealyst/theme": "^1.2.
|
|
59
|
+
"@idealyst/theme": "^1.2.79",
|
|
60
60
|
"@mdi/js": ">=7.0.0",
|
|
61
61
|
"@mdi/react": ">=1.0.0",
|
|
62
62
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@idealyst/blur": "^1.2.40",
|
|
110
|
-
"@idealyst/theme": "^1.2.
|
|
111
|
-
"@idealyst/tooling": "^1.2.
|
|
110
|
+
"@idealyst/theme": "^1.2.79",
|
|
111
|
+
"@idealyst/tooling": "^1.2.79",
|
|
112
112
|
"@mdi/react": "^1.6.1",
|
|
113
113
|
"@types/react": "^19.1.0",
|
|
114
114
|
"react": "^19.1.0",
|
|
@@ -162,7 +162,6 @@ export const textAreaStyles = defineStyle('TextArea', (theme: Theme) => ({
|
|
|
162
162
|
background: 'transparent',
|
|
163
163
|
transition: 'border-color 0.2s ease, box-shadow 0.2s ease',
|
|
164
164
|
boxSizing: 'border-box',
|
|
165
|
-
overflowY: 'hidden',
|
|
166
165
|
resize: 'none',
|
|
167
166
|
},
|
|
168
167
|
}),
|
|
@@ -220,13 +220,23 @@ const TextArea = forwardRef<IdealystElement, TextAreaProps>(({
|
|
|
220
220
|
|
|
221
221
|
const showFooter = (error || helperText) || (showCharacterCount && maxLength);
|
|
222
222
|
|
|
223
|
+
// Determine overflow behavior:
|
|
224
|
+
// - When autoGrow is false: always allow scrolling (overflowY: 'auto')
|
|
225
|
+
// - When autoGrow is true without maxHeight: hide overflow (content expands)
|
|
226
|
+
// - When autoGrow is true with maxHeight: allow scrolling when content exceeds maxHeight
|
|
227
|
+
const overflowStyle = !autoGrow
|
|
228
|
+
? { overflowY: 'auto' as const }
|
|
229
|
+
: maxHeight
|
|
230
|
+
? { overflowY: 'auto' as const }
|
|
231
|
+
: { overflowY: 'hidden' as const };
|
|
232
|
+
|
|
223
233
|
const computedTextareaProps = getWebProps([
|
|
224
234
|
textareaStyleComputed,
|
|
225
235
|
textareaStyle as any,
|
|
226
236
|
{ resize } as any, // Apply resize as inline style since it's CSS-only
|
|
227
237
|
minHeight ? { minHeight: `${minHeight}px` } : null,
|
|
228
238
|
maxHeight ? { maxHeight: `${maxHeight}px` } : null,
|
|
229
|
-
|
|
239
|
+
overflowStyle,
|
|
230
240
|
].filter(Boolean));
|
|
231
241
|
|
|
232
242
|
const mergedRef = useMergeRefs(ref, containerProps.ref);
|