@spaethtech/svelte-ui 0.4.1-dev.17.75f0491 → 0.4.1-dev.19.f8c00be

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.
@@ -148,8 +148,9 @@
148
148
  }
149
149
  });
150
150
 
151
- // Enforce minimum rows and handle maxRows auto-sizing
152
- const effectiveMinRows = $derived(Math.max(minRows, 2));
151
+ // Enforce a sane floor (never 0/negative) and handle maxRows auto-sizing. Floor is 1 so a
152
+ // single-row TextArea is possible (e.g. a chat/compose box that grows from one line).
153
+ const effectiveMinRows = $derived(Math.max(minRows, 1));
153
154
  const effectiveMaxRows = $derived(maxRows ?? Infinity);
154
155
  // disabled overrides readonly + the copy mode. `button` shows the button; `none` also blocks selection.
155
156
  const effectiveReadonly = $derived(disabled ? true : readonly);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaethtech/svelte-ui",
3
- "version": "0.4.1-dev.17.75f0491",
3
+ "version": "0.4.1-dev.19.f8c00be",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/spaethtech/svelte-ui.git"