@versini/ui-textarea 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@ import { jsx as g, jsxs as le } from "react/jsx-runtime";
2
2
  import se, { useRef as f, useEffect as N, useCallback as ie, useMemo as X, useState as _, useId as ue, useReducer as de, useLayoutEffect as C } from "react";
3
3
  import s from "clsx";
4
4
  /*!
5
- @versini/ui-textarea v1.0.6
5
+ @versini/ui-textarea v1.0.7
6
6
  © 2024 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
10
- version: "1.0.6",
11
- buildTime: "09/26/2024 10:50 PM EDT",
10
+ version: "1.0.7",
11
+ buildTime: "09/27/2024 11:55 AM EDT",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
@@ -206,13 +206,13 @@ const Ee = (e) => {
206
206
  return n;
207
207
  };
208
208
  /*!
209
- @versini/ui-private v1.4.16
209
+ @versini/ui-private v1.4.17
210
210
  © 2024 gizmette.com
211
211
  */
212
212
  try {
213
213
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
214
- version: "1.4.16",
215
- buildTime: "09/26/2024 10:50 PM EDT",
214
+ version: "1.4.17",
215
+ buildTime: "09/27/2024 11:55 AM EDT",
216
216
  homepage: "https://github.com/aversini/ui-components",
217
217
  license: "MIT"
218
218
  });
@@ -376,11 +376,11 @@ const Re = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
376
376
  rightElement: S,
377
377
  onChange: H,
378
378
  onFocus: M,
379
- onBlur: P,
379
+ onBlur: F,
380
380
  spacing: q,
381
381
  ...B
382
382
  }, J) => {
383
- const y = f(null), K = ye([J, y]), [Q, E] = xe(), O = f(80), F = f(-25), A = f(null), U = f(30), R = f(null), k = ge({ id: e, prefix: `${z}-` }), [Y, Z] = _(0), [ee, V] = _(
383
+ const y = f(null), K = ye([J, y]), [Q, E] = xe(), O = f(80), P = f(-25), A = f(null), U = f(30), R = f(null), k = ge({ id: e, prefix: `${z}-` }), [Y, Z] = _(0), [ee, V] = _(
384
384
  !!(!I && d)
385
385
  ), te = `${n} error, ${d}`, b = $e({
386
386
  className: c,
@@ -408,7 +408,7 @@ const Re = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
408
408
  }, oe = (i) => {
409
409
  I && d && V(!0), M && M(i);
410
410
  }, ae = (i) => {
411
- I && d && !h && V(!1), P && P(i);
411
+ I && d && !h && V(!1), F && F(i);
412
412
  };
413
413
  return C(() => {
414
414
  E && E.width && Z(E.width + 18 + 10);
@@ -428,10 +428,10 @@ const Re = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
428
428
  const { labelOffset: L, helperTextOffset: w, scrollHeight: ce } = Le({
429
429
  scrollHeight: y.current.scrollHeight,
430
430
  currentHeight: O.current,
431
- currentLabelOffset: F.current,
431
+ currentLabelOffset: P.current,
432
432
  currentHelperTextOffset: U.current
433
433
  });
434
- L && (F.current = L, (i = A == null ? void 0 : A.current) == null || i.style.setProperty(
434
+ L && (P.current = L, (i = A == null ? void 0 : A.current) == null || i.style.setProperty(
435
435
  "--av-text-area-label",
436
436
  `${L}px`
437
437
  )), w && (U.current = w, ($ = R == null ? void 0 : R.current) == null || $.style.setProperty(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-textarea",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@tailwindcss/typography": "0.5.15",
45
45
  "@versini/ui-hooks": "4.2.1",
46
- "@versini/ui-private": "1.4.16",
46
+ "@versini/ui-private": "1.4.17",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "3.4.13"
49
49
  },
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "b4cbab083052f7f45b00e98c2992fffa31d05c1f"
53
+ "gitHead": "59a50c5bf72988d53a6b7d23afaf87c38bfb1e8f"
54
54
  }