@versini/ui-textarea 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -16
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@ import { jsx as g, jsxs as se } from "react/jsx-runtime";
2
2
  import le, { useRef as f, useEffect as I, useCallback as ie, useMemo as X, useState as k, useId as ue, useReducer as de, useLayoutEffect as N } from "react";
3
3
  import l from "clsx";
4
4
  /*!
5
- @versini/ui-textarea v1.3.0
5
+ @versini/ui-textarea v1.3.1
6
6
  © 2024 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
10
- version: "1.3.0",
11
- buildTime: "12/25/2024 10:51 AM EST",
10
+ version: "1.3.1",
11
+ buildTime: "12/25/2024 12:30 PM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
@@ -196,13 +196,13 @@ function ke({
196
196
  );
197
197
  }
198
198
  /*!
199
- @versini/ui-liveregion v1.0.0
199
+ @versini/ui-liveregion v1.1.0
200
200
  © 2024 gizmette.com
201
201
  */
202
202
  try {
203
203
  window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
204
- version: "1.0.0",
205
- buildTime: "12/25/2024 10:51 AM EST",
204
+ version: "1.1.0",
205
+ buildTime: "12/25/2024 12:30 PM EST",
206
206
  homepage: "https://github.com/aversini/ui-components",
207
207
  license: "MIT"
208
208
  });
@@ -215,7 +215,7 @@ try {
215
215
  try {
216
216
  window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
217
217
  version: "1.0.0",
218
- buildTime: "12/25/2024 10:51 AM EST",
218
+ buildTime: "12/25/2024 12:30 PM EST",
219
219
  homepage: "https://github.com/aversini/ui-components",
220
220
  license: "MIT"
221
221
  });
@@ -386,13 +386,13 @@ const Ee = (e) => {
386
386
  helperText: d = "",
387
387
  helperTextOnFocus: C = !1,
388
388
  rightElement: S,
389
- onChange: H,
390
- onFocus: D,
391
- onBlur: F,
389
+ onChange: P,
390
+ onFocus: H,
391
+ onBlur: D,
392
392
  spacing: q,
393
393
  ...B
394
394
  }, J) => {
395
- 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), v = ge({ id: e, prefix: `${j}-` }), [Y, Z] = k(0), [ee, V] = k(
395
+ 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), v = ge({ id: e, prefix: `${j}-` }), [Y, Z] = k(0), [ee, V] = k(
396
396
  !!(!C && d)
397
397
  ), te = `${n} error, ${d}`, _ = we({
398
398
  className: c,
@@ -409,7 +409,7 @@ const Ee = (e) => {
409
409
  initialControlledDelay: 20,
410
410
  defaultValue: m,
411
411
  onChange: (i) => {
412
- H && H({
412
+ P && P({
413
413
  target: {
414
414
  value: i
415
415
  }
@@ -418,9 +418,9 @@ const Ee = (e) => {
418
418
  }), re = (i) => {
419
419
  ne(i.target.value);
420
420
  }, oe = (i) => {
421
- C && d && V(!0), D && D(i);
421
+ C && d && V(!0), H && H(i);
422
422
  }, ae = (i) => {
423
- C && d && !h && V(!1), F && F(i);
423
+ C && d && !h && V(!1), D && D(i);
424
424
  };
425
425
  return N(() => {
426
426
  E && E.width && Z(E.width + 18 + 10);
@@ -440,10 +440,10 @@ const Ee = (e) => {
440
440
  const { labelOffset: L, helperTextOffset: $, scrollHeight: ce } = Le({
441
441
  scrollHeight: y.current.scrollHeight,
442
442
  currentHeight: O.current,
443
- currentLabelOffset: P.current,
443
+ currentLabelOffset: F.current,
444
444
  currentHelperTextOffset: U.current
445
445
  });
446
- L && (P.current = L, (i = A == null ? void 0 : A.current) == null || i.style.setProperty(
446
+ L && (F.current = L, (i = A == null ? void 0 : A.current) == null || i.style.setProperty(
447
447
  "--av-text-area-label",
448
448
  `${L}px`
449
449
  )), $ && (U.current = $, (w = R == null ? void 0 : R.current) == null || w.style.setProperty(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-textarea",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@tailwindcss/typography": "0.5.15",
42
42
  "@versini/ui-hooks": "4.3.0",
43
- "@versini/ui-liveregion": "1.0.0",
43
+ "@versini/ui-liveregion": "1.1.0",
44
44
  "@versini/ui-spacing": "1.0.0",
45
45
  "@versini/ui-spacing-types": "1.0.0",
46
46
  "clsx": "2.1.1",
@@ -49,5 +49,5 @@
49
49
  "sideEffects": [
50
50
  "**/*.css"
51
51
  ],
52
- "gitHead": "a15d974fcc1a098a9f35a80ff37b1b0901278d96"
52
+ "gitHead": "51f74738512b2962734cd6087ded58d17ef0f8d4"
53
53
  }