@enonic/ui 0.50.0 → 1.0.0-beta.1
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.
|
@@ -8,9 +8,10 @@ export type TextAreaProps = {
|
|
|
8
8
|
readOnly?: boolean;
|
|
9
9
|
resizable?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Enables automatic content-based sizing
|
|
11
|
+
* Enables automatic content-based sizing.
|
|
12
|
+
* Uses CSS `field-sizing: content` when supported, with a JS fallback for browsers that lack it (e.g. Firefox).
|
|
13
|
+
* In the JS fallback, manual resizing is disabled even if `resizable` is true.
|
|
12
14
|
* @see https://caniuse.com/mdn-css_properties_field-sizing
|
|
13
|
-
* @note Not supported in Firefox as of Feb 2025
|
|
14
15
|
*/
|
|
15
16
|
autoSize?: boolean;
|
|
16
17
|
className?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the browser supports CSS `field-sizing: content` for content-based form control sizing.
|
|
3
|
+
* Evaluated once at module load. `false` in non-browser environments.
|
|
4
|
+
* @see https://caniuse.com/mdn-css_properties_field-sizing
|
|
5
|
+
*/
|
|
6
|
+
export declare const SUPPORTS_FIELD_SIZING: boolean;
|