@marianmeres/stuic 1.98.0 → 1.99.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.
@@ -1,5 +1,5 @@
1
1
  // actual worker
2
- export function increaseHeightToScrollHeight(el, max = 0, min = 16) {
2
+ export function increaseHeightToScrollHeight(el, max = 0, min = 0) {
3
3
  //
4
4
  let h = max ? Math.min(max, el.scrollHeight) : el.scrollHeight;
5
5
  h = Math.max(min, h);
@@ -10,7 +10,7 @@ export function increaseHeightToScrollHeight(el, max = 0, min = 16) {
10
10
  }
11
11
  // action wrap
12
12
  export function autogrow(el, options = null) {
13
- const { max, min, allowed } = { max: 250, min: 64, allowed: true, ...(options || {}) };
13
+ const { max, min, allowed } = { max: 250, min: 0, allowed: true, ...(options || {}) };
14
14
  if (!allowed)
15
15
  return;
16
16
  const _doGrow = () => increaseHeightToScrollHeight(el, max, min);
@@ -142,7 +142,8 @@ $:
142
142
  $:
143
143
  _inputClass = twMerge(
144
144
  "form-input",
145
- _collectClasses("input", type === "textarea" ? "min-h-16" : "")
145
+ type === "textarea" ? "min-h-16" : "",
146
+ _collectClasses("input")
146
147
  );
147
148
  $:
148
149
  _validationMessageClass = twMerge(_collectClasses("validationMessage"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.98.0",
3
+ "version": "1.99.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",