@lettuceai/crisp 1.4.0 → 1.5.0

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.
@@ -0,0 +1,14 @@
1
+ export interface TextareaMeasure {
2
+ /** The content's natural height, padding included. */
3
+ content: number;
4
+ line: number;
5
+ /** Padding and border around the text. */
6
+ pad: number;
7
+ rows: number;
8
+ maxRows: number;
9
+ }
10
+ /** An auto-growing textarea's height: at least `rows` lines, at most `maxRows`, scrolling past that. */
11
+ export declare function textareaHeight({ content, line, pad, rows, maxRows }: TextareaMeasure): {
12
+ height: number;
13
+ scrolls: boolean;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lettuceai/crisp",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "React components, design tokens and motion for LettuceAI.",
5
5
  "keywords": [
6
6
  "react",