@versini/ui-textarea 3.0.10 → 3.0.12

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.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { jsx as T, jsxs as pe } from "react/jsx-runtime";
2
- import ye, { useRef as f, useEffect as O, useCallback as me, useMemo as J, useState as v, useId as xe, useReducer as he, useLayoutEffect as I } from "react";
2
+ import ye, { useRef as f, useEffect as O, useCallback as me, useMemo as J, useState as E, useId as xe, useReducer as he, useLayoutEffect as I } from "react";
3
3
  import c from "clsx";
4
4
  /*!
5
- @versini/ui-textarea v3.0.10
5
+ @versini/ui-textarea v3.0.12
6
6
  © 2025 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
10
- version: "3.0.10",
11
- buildTime: "01/20/2025 10:07 PM EST",
10
+ version: "3.0.12",
11
+ buildTime: "01/25/2025 11:56 AM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
15
15
  } catch {
16
16
  }
17
- const K = "av-text-area", Ae = "av-text-area-wrapper", M = "av-text-area-helper-text", Te = "av-text-area__control--right", ge = "av-text-area__control--left";
17
+ const K = "av-text-area", Ae = "av-text-area-wrapper", D = "av-text-area-helper-text", Te = "av-text-area__control--right", ge = "av-text-area__control--left";
18
18
  function _e() {
19
19
  const e = f(!1);
20
20
  return O(() => (e.current = !0, () => {
@@ -22,10 +22,10 @@ function _e() {
22
22
  }), []), me(() => e.current, []);
23
23
  }
24
24
  function be(e) {
25
- return J(() => e.every((r) => r == null) ? () => {
26
- } : (r) => {
25
+ return J(() => e.every((n) => n == null) ? () => {
26
+ } : (n) => {
27
27
  e.forEach((t) => {
28
- typeof t == "function" ? t(r) : t != null && (t.current = r);
28
+ typeof t == "function" ? t(n) : t != null && (t.current = n);
29
29
  });
30
30
  }, e);
31
31
  }
@@ -40,47 +40,47 @@ const ke = {
40
40
  right: 0
41
41
  };
42
42
  function W(e) {
43
- const r = _e(), t = f(0), n = f(null), [a, o] = v(ke), s = J(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
44
- const i = l[0];
45
- i && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
46
- n.current && r() && o(i.contentRect);
43
+ const n = _e(), t = f(0), r = f(null), [a, s] = E(ke), o = J(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
44
+ const u = l[0];
45
+ u && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
46
+ r.current && n() && s(u.contentRect);
47
47
  }));
48
- }), [r]);
49
- return O(() => (n.current && (s == null || s.observe(n.current, e)), () => {
50
- s == null || s.disconnect(), t.current && cancelAnimationFrame(t.current);
51
- }), [s, e]), [n, a];
48
+ }), [n]);
49
+ return O(() => (r.current && (o == null || o.observe(r.current, e)), () => {
50
+ o == null || o.disconnect(), t.current && cancelAnimationFrame(t.current);
51
+ }), [o, e]), [r, a];
52
52
  }
53
53
  function Re({
54
54
  value: e,
55
- defaultValue: r,
55
+ defaultValue: n,
56
56
  finalValue: t,
57
- onChange: n = () => {
57
+ onChange: r = () => {
58
58
  },
59
59
  initialControlledDelay: a = 0
60
60
  }) {
61
- const [o, s] = v(!1), [l, i] = v(
62
- r !== void 0 ? r : t
61
+ const [s, o] = E(!1), [l, u] = E(
62
+ n !== void 0 ? n : t
63
63
  ), p = (y) => {
64
- i(y), n == null || n(y);
64
+ u(y), r == null || r(y);
65
65
  };
66
66
  return O(() => {
67
- (async () => e !== void 0 && !o && a > 0 && (await new Promise(
67
+ (async () => e !== void 0 && !s && a > 0 && (await new Promise(
68
68
  (y) => setTimeout(y, a)
69
- ), s(!0)))();
70
- }, [e, a, o]), e !== void 0 ? !o && a > 0 ? ["", n, !0] : [e, n, !0] : [l, p, !1];
69
+ ), o(!0)))();
70
+ }, [e, a, s]), e !== void 0 ? !s && a > 0 ? ["", r, !0] : [e, r, !0] : [l, p, !1];
71
71
  }
72
- function ve(e) {
73
- const r = xe();
72
+ function Ee(e) {
73
+ const n = xe();
74
74
  if (!e)
75
- return r;
75
+ return n;
76
76
  if (typeof e == "number" || typeof e == "string")
77
- return `${e}${r}`;
77
+ return `${e}${n}`;
78
78
  if (typeof e == "object") {
79
- const { id: t, prefix: n = "" } = e;
80
- return typeof t == "number" || typeof t == "string" ? `${n}${t}` : `${n}${r}`;
79
+ const { id: t, prefix: r = "" } = e;
80
+ return typeof t == "number" || typeof t == "string" ? `${r}${t}` : `${r}${n}`;
81
81
  }
82
82
  }
83
- const Q = "SET_ANNOUNCEMENT", Y = "CLEAR_ANNOUNCEMENT", Ee = {
83
+ const Q = "SET_ANNOUNCEMENT", Y = "CLEAR_ANNOUNCEMENT", Ne = {
84
84
  alert: null,
85
85
  alertdialog: null,
86
86
  log: "polite",
@@ -88,12 +88,12 @@ const Q = "SET_ANNOUNCEMENT", Y = "CLEAR_ANNOUNCEMENT", Ee = {
88
88
  progressbar: null,
89
89
  status: "polite",
90
90
  timer: "assertive"
91
- }, Ne = (e, r) => {
92
- switch (r == null ? void 0 : r.type) {
91
+ }, ve = (e, n) => {
92
+ switch (n == null ? void 0 : n.type) {
93
93
  case Q:
94
94
  return {
95
95
  ...e,
96
- announcement: r.payload
96
+ announcement: n.payload
97
97
  };
98
98
  case Y:
99
99
  return {
@@ -105,92 +105,92 @@ const Q = "SET_ANNOUNCEMENT", Y = "CLEAR_ANNOUNCEMENT", Ee = {
105
105
  }
106
106
  }, Ce = ({
107
107
  onAnnouncementClear: e,
108
- dispatch: r
108
+ dispatch: n
109
109
  }) => {
110
- r({
110
+ n({
111
111
  type: Y
112
112
  }), typeof e == "function" && e();
113
113
  }, q = ({
114
114
  children: e,
115
- clearAnnouncementDelay: r,
115
+ clearAnnouncementDelay: n,
116
116
  clearAnnouncementTimeoutRef: t,
117
- onAnnouncementClear: n,
117
+ onAnnouncementClear: r,
118
118
  dispatch: a
119
119
  }) => {
120
120
  clearTimeout(t.current), e !== null && a({
121
121
  type: Q,
122
122
  payload: e
123
- }), r && (t.current = setTimeout(
123
+ }), n && (t.current = setTimeout(
124
124
  () => Ce({
125
- onAnnouncementClear: n,
125
+ onAnnouncementClear: r,
126
126
  dispatch: a
127
127
  }),
128
- r
128
+ n
129
129
  ));
130
130
  }, Ie = ({
131
131
  children: e,
132
- announcementTimeoutRef: r,
132
+ announcementTimeoutRef: n,
133
133
  announcementDelay: t,
134
- clearAnnouncementDelay: n,
134
+ clearAnnouncementDelay: r,
135
135
  clearAnnouncementTimeoutRef: a,
136
- onAnnouncementClear: o,
137
- dispatch: s
136
+ onAnnouncementClear: s,
137
+ dispatch: o
138
138
  }) => {
139
- clearTimeout(r.current), t ? r.current = setTimeout(q, t, {
139
+ clearTimeout(n.current), t ? n.current = setTimeout(q, t, {
140
140
  children: e,
141
- clearAnnouncementDelay: n,
141
+ clearAnnouncementDelay: r,
142
142
  clearAnnouncementTimeoutRef: a,
143
- onAnnouncementClear: o,
144
- dispatch: s
143
+ onAnnouncementClear: s,
144
+ dispatch: o
145
145
  }) : q({
146
146
  children: e,
147
- clearAnnouncementDelay: n,
147
+ clearAnnouncementDelay: r,
148
148
  clearAnnouncementTimeoutRef: a,
149
- onAnnouncementClear: o,
150
- dispatch: s
149
+ onAnnouncementClear: s,
150
+ dispatch: o
151
151
  });
152
152
  };
153
153
  function Le({
154
154
  children: e,
155
- className: r,
155
+ className: n,
156
156
  politeness: t,
157
- role: n = null,
157
+ role: r = null,
158
158
  announcementDelay: a,
159
- clearAnnouncementDelay: o,
160
- onAnnouncementClear: s,
159
+ clearAnnouncementDelay: s,
160
+ onAnnouncementClear: o,
161
161
  visible: l,
162
- ...i
162
+ ...u
163
163
  }) {
164
- const p = f(null), y = f(null), [b, E] = he(Ne, {
164
+ const p = f(null), y = f(null), [b, N] = he(ve, {
165
165
  announcement: null
166
166
  });
167
167
  let g = t;
168
- typeof g > "u" && (g = n ? Ee[n] : "assertive"), O(() => {
168
+ typeof g > "u" && (g = r ? Ne[r] : "assertive"), O(() => {
169
169
  Ie({
170
170
  announcementTimeoutRef: p,
171
171
  announcementDelay: a,
172
172
  children: e,
173
- clearAnnouncementDelay: o,
173
+ clearAnnouncementDelay: s,
174
174
  clearAnnouncementTimeoutRef: y,
175
- onAnnouncementClear: s,
176
- dispatch: E
175
+ onAnnouncementClear: o,
176
+ dispatch: N
177
177
  });
178
178
  }, [
179
179
  e,
180
180
  a,
181
- o,
182
- s
181
+ s,
182
+ o
183
183
  ]);
184
- const d = c(r, {
184
+ const d = c(n, {
185
185
  "sr-only": !l
186
186
  });
187
187
  return /* @__PURE__ */ T(
188
188
  "div",
189
189
  {
190
190
  "aria-live": g,
191
- ...n && { role: n },
191
+ ...r && { role: r },
192
192
  className: d,
193
- ...i,
193
+ ...u,
194
194
  children: b.announcement
195
195
  }
196
196
  );
@@ -202,7 +202,7 @@ function Le({
202
202
  try {
203
203
  window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
204
204
  version: "1.3.7",
205
- buildTime: "01/20/2025 10:07 PM EST",
205
+ buildTime: "01/25/2025 11:56 AM EST",
206
206
  homepage: "https://github.com/aversini/ui-components",
207
207
  license: "MIT"
208
208
  });
@@ -222,181 +222,181 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
222
222
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
223
223
  }), $e = ({
224
224
  noBorder: e,
225
- error: r
225
+ error: n
226
226
  }) => c("border-2", {
227
- "border-border-dark": !e && !r,
228
- "focus:border-border-dark": !e && r,
229
- "border-border-error-dark": !e && r,
227
+ "border-border-dark": !e && !n,
228
+ "focus:border-border-dark": !e && n,
229
+ "border-border-error-dark": !e && n,
230
230
  "border-transparent": e
231
- }), Pe = ({
231
+ }), He = ({
232
232
  disabled: e,
233
- raw: r,
233
+ raw: n,
234
234
  error: t,
235
- mode: n,
235
+ mode: r,
236
236
  leftElement: a,
237
- rightElement: o
237
+ rightElement: s
238
238
  }) => {
239
- if (r)
239
+ if (n)
240
240
  return "";
241
241
  if (e)
242
242
  return c(
243
243
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
244
244
  {
245
- "translate-x-[12px]": o === !0 && !a || !o && !a
245
+ "translate-x-[12px]": s === !0 && !a || !s && !a
246
246
  }
247
247
  );
248
248
  if (!t)
249
249
  return c(
250
250
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
251
251
  {
252
- "translate-x-[12px]": o === !0 && !a || !o && !a,
253
- "text-copy-medium": n === "dark",
254
- "text-copy-dark": n === "light",
255
- "text-copy-dark dark:text-copy-medium": n === "system",
256
- "text-copy-medium dark:text-copy-dark": n === "alt-system"
252
+ "translate-x-[12px]": s === !0 && !a || !s && !a,
253
+ "text-copy-medium": r === "dark",
254
+ "text-copy-dark": r === "light",
255
+ "text-copy-dark dark:text-copy-medium": r === "system",
256
+ "text-copy-medium dark:text-copy-dark": r === "alt-system"
257
257
  }
258
258
  );
259
259
  if (t)
260
260
  return c(
261
261
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
262
262
  {
263
- "translate-x-[12px]": o === !0 && !a || !o && !a,
264
- "text-copy-medium": n === "dark",
265
- "text-copy-error-dark": n === "light",
266
- "text-copy-error-dark dark:text-copy-error-light": n === "system",
267
- "text-copy-medium dark:text-copy-error-dark": n === "alt-system"
263
+ "translate-x-[12px]": s === !0 && !a || !s && !a,
264
+ "text-copy-medium": r === "dark",
265
+ "text-copy-error-dark": r === "light",
266
+ "text-copy-error-dark dark:text-copy-error-light": r === "system",
267
+ "text-copy-medium dark:text-copy-error-dark": r === "alt-system"
268
268
  }
269
269
  );
270
- }, He = ({
270
+ }, Me = ({
271
271
  error: e,
272
- raw: r,
272
+ raw: n,
273
273
  mode: t,
274
- disabled: n
274
+ disabled: r
275
275
  }) => {
276
- if (r)
277
- return "";
278
276
  if (n)
277
+ return "";
278
+ if (r)
279
279
  return c(
280
- M,
280
+ D,
281
281
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
282
282
  );
283
283
  if (!e)
284
- return c(M, "absolute px-2 font-medium", {
284
+ return c(D, "absolute px-2 font-medium", {
285
285
  "text-copy-medium": t === "dark",
286
286
  "text-copy-dark": t === "light",
287
287
  "text-copy-dark dark:text-copy-medium": t === "system",
288
288
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
289
289
  });
290
290
  if (e)
291
- return c(M, "absolute px-2 font-medium", {
291
+ return c(D, "absolute px-2 font-medium", {
292
292
  "text-copy-error-light": t === "dark",
293
293
  "text-copy-error-dark": t === "light",
294
294
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
295
295
  "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
296
296
  });
297
- }, Me = ({
297
+ }, De = ({
298
298
  className: e,
299
- textAreaClassName: r,
299
+ textAreaClassName: n,
300
300
  raw: t,
301
- focusMode: n,
301
+ focusMode: r,
302
302
  disabled: a,
303
- noBorder: o,
304
- error: s,
303
+ noBorder: s,
304
+ error: o,
305
305
  mode: l,
306
- leftElement: i,
306
+ leftElement: u,
307
307
  rightElement: p
308
308
  }) => {
309
309
  const y = t ? e : c(
310
310
  "relative flex w-full flex-col justify-center",
311
311
  Ae,
312
312
  e
313
- ), b = t ? c(r) : c(
313
+ ), b = t ? c(n) : c(
314
314
  K,
315
- r,
315
+ n,
316
316
  Se(),
317
317
  Oe({ mode: l }),
318
- we({ focusMode: n }),
318
+ we({ focusMode: r }),
319
319
  $e({
320
- noBorder: o,
321
- error: s
320
+ noBorder: s,
321
+ error: o
322
322
  }),
323
323
  {
324
324
  "disabled:cursor-not-allowed disabled:opacity-50": a
325
325
  }
326
- ), E = t ? void 0 : "sr-only", g = Pe({
326
+ ), N = t ? void 0 : "sr-only", g = He({
327
327
  disabled: a,
328
328
  raw: t,
329
- error: s,
329
+ error: o,
330
330
  mode: l,
331
331
  rightElement: p,
332
- leftElement: i
333
- }), d = He({
334
- error: s,
332
+ leftElement: u
333
+ }), d = Me({
334
+ error: o,
335
335
  raw: t,
336
336
  mode: l,
337
337
  disabled: a
338
- }), N = t ? void 0 : c(Te, "absolute"), h = t ? void 0 : c(ge, "absolute");
338
+ }), v = t ? void 0 : c(Te, "absolute"), h = t ? void 0 : c(ge, "absolute");
339
339
  return {
340
340
  wrapper: y,
341
341
  textArea: b,
342
- accessibleLabel: E,
342
+ accessibleLabel: N,
343
343
  visibleLabel: g,
344
344
  helperText: d,
345
- rightElement: N,
345
+ rightElement: v,
346
346
  leftElement: h
347
347
  };
348
- }, De = ({
348
+ }, Fe = ({
349
349
  scrollHeight: e,
350
- currentHeight: r,
350
+ currentHeight: n,
351
351
  currentLabelOffset: t = 0,
352
- currentHelperTextOffset: n = 0
352
+ currentHelperTextOffset: r = 0
353
353
  }) => {
354
- let s, l;
355
- if (e > 0 && e !== r) {
356
- const i = e - r, p = Math.abs(i / 24);
357
- s = t + -1 * Math.sign(i) * (12 * p), l = n + Math.sign(i) * (12 * p);
354
+ let o, l;
355
+ if (e > 0 && e !== n) {
356
+ const u = e - n, p = Math.abs(u / 24);
357
+ o = t + -1 * Math.sign(u) * (12 * p), l = r + Math.sign(u) * (12 * p);
358
358
  }
359
359
  return {
360
- labelOffset: s,
360
+ labelOffset: o,
361
361
  helperTextOffset: l,
362
362
  scrollHeight: e
363
363
  };
364
- }, Fe = ye.forwardRef(
364
+ }, Pe = ye.forwardRef(
365
365
  ({
366
366
  id: e,
367
- name: r,
367
+ name: n,
368
368
  label: t,
369
- error: n = !1,
369
+ error: r = !1,
370
370
  raw: a = !1,
371
- className: o,
372
- textAreaClassName: s,
371
+ className: s,
372
+ textAreaClassName: o,
373
373
  mode: l = "system",
374
- focusMode: i = "system",
374
+ focusMode: u = "system",
375
375
  value: p,
376
376
  defaultValue: y,
377
377
  disabled: b = !1,
378
- noBorder: E = !1,
378
+ noBorder: N = !1,
379
379
  labelId: g,
380
380
  helperText: d = "",
381
- helperTextOnFocus: N = !1,
381
+ helperTextOnFocus: v = !1,
382
382
  rightElement: h,
383
383
  leftElement: k,
384
- onChange: D,
385
- onFocus: F,
384
+ onChange: F,
385
+ onFocus: P,
386
386
  onBlur: U,
387
387
  ...Z
388
388
  }, ee) => {
389
389
  var B;
390
- const x = f(null), te = be([ee, x]), [re, L] = W(), [ne, R] = W(), w = f(80), V = f(-25), m = f(null), X = f(30), S = f(null), C = ve({ id: e, prefix: `${K}-` }), [j, ae] = v(0), [G, oe] = v(0), [se, z] = v(
391
- !!(!N && d)
392
- ), ce = `${r} error, ${d}`, _ = Me({
393
- className: o,
394
- textAreaClassName: s,
395
- error: n,
390
+ const x = f(null), te = be([ee, x]), [ne, L] = W(), [re, R] = W(), w = f(80), V = f(-25), m = f(null), X = f(30), S = f(null), C = Ee({ id: e, prefix: `${K}-` }), [j, ae] = E(0), [G, se] = E(0), [oe, z] = E(
391
+ !!(!v && d)
392
+ ), ce = `${n} error, ${d}`, _ = De({
393
+ className: s,
394
+ textAreaClassName: o,
395
+ error: r,
396
396
  raw: a,
397
- focusMode: i,
397
+ focusMode: u,
398
398
  disabled: b,
399
- noBorder: E,
399
+ noBorder: N,
400
400
  mode: l,
401
401
  rightElement: !!h,
402
402
  leftElement: !!k
@@ -404,49 +404,49 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
404
404
  value: p,
405
405
  initialControlledDelay: 20,
406
406
  defaultValue: y,
407
- onChange: (u) => {
408
- D && D({
407
+ onChange: (i) => {
408
+ F && F({
409
409
  target: {
410
- value: u
410
+ value: i
411
411
  }
412
412
  });
413
413
  }
414
- }), ie = (u) => {
415
- le(u.target.value);
416
- }, ue = (u) => {
417
- N && d && z(!0), F && F(u);
418
- }, de = (u) => {
419
- N && d && !A && z(!1), U && U(u);
414
+ }), ue = (i) => {
415
+ le(i.target.value);
416
+ }, ie = (i) => {
417
+ v && d && z(!0), P && P(i);
418
+ }, de = (i) => {
419
+ v && d && !A && z(!1), U && U(i);
420
420
  };
421
421
  return I(() => {
422
422
  L && L.width && ae(L.width + 18 + 10);
423
423
  }, [L]), I(() => {
424
- R && R.width && oe(R.width + 18 + 10);
424
+ R && R.width && se(R.width + 18 + 10);
425
425
  }, [R]), I(() => {
426
426
  a || x && x.current && A !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
427
427
  }, [A, a]), I(() => {
428
428
  a || setTimeout(() => {
429
- var u;
430
- (u = m == null ? void 0 : m.current) == null || u.style.setProperty(
429
+ var i;
430
+ (i = m == null ? void 0 : m.current) == null || i.style.setProperty(
431
431
  "--av-text-area-wrapper-transition",
432
432
  A ? "none" : "all 0.2s ease-out"
433
433
  );
434
434
  }, 0);
435
435
  }, [A, a]), I(() => {
436
- var u, $;
436
+ var i, $;
437
437
  if (!a && x && x.current && A !== void 0) {
438
- const { labelOffset: P, helperTextOffset: H, scrollHeight: fe } = De({
438
+ const { labelOffset: H, helperTextOffset: M, scrollHeight: fe } = Fe({
439
439
  scrollHeight: x.current.scrollHeight,
440
440
  currentHeight: w.current,
441
441
  currentLabelOffset: V.current,
442
442
  currentHelperTextOffset: X.current
443
443
  });
444
- P && (V.current = P, (u = m == null ? void 0 : m.current) == null || u.style.setProperty(
444
+ H && (V.current = H, (i = m == null ? void 0 : m.current) == null || i.style.setProperty(
445
445
  "--av-text-area-label",
446
- `${P}px`
447
- )), H && (X.current = H, ($ = S == null ? void 0 : S.current) == null || $.style.setProperty(
448
- "--av-text-area-helper-text",
449
446
  `${H}px`
447
+ )), M && (X.current = M, ($ = S == null ? void 0 : S.current) == null || $.style.setProperty(
448
+ "--av-text-area-helper-text",
449
+ `${M}px`
450
450
  )), w.current = fe || w.current;
451
451
  }
452
452
  }, [A, a]), R.width > 0 && ((B = m == null ? void 0 : m.current) == null || B.style.setProperty(
@@ -465,7 +465,7 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
465
465
  k && /* @__PURE__ */ T(
466
466
  "div",
467
467
  {
468
- ref: ne,
468
+ ref: re,
469
469
  className: _.leftElement,
470
470
  children: k
471
471
  }
@@ -475,13 +475,13 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
475
475
  {
476
476
  ref: te,
477
477
  id: C,
478
- name: r,
478
+ name: n,
479
479
  disabled: b,
480
480
  placeholder: a ? void 0 : " ",
481
481
  className: _.textArea,
482
482
  rows: 1,
483
483
  ...d && { "aria-describedby": `${C}-helper` },
484
- ...n && { "aria-invalid": "true" },
484
+ ...r && { "aria-invalid": "true" },
485
485
  ...h && !k && !a && { style: { paddingRight: j } },
486
486
  ...k && !h && !a && { style: { paddingLeft: G } },
487
487
  ...h && k && !a && {
@@ -491,8 +491,8 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
491
491
  }
492
492
  },
493
493
  value: A,
494
- onChange: ie,
495
- onFocus: ue,
494
+ onChange: ue,
495
+ onFocus: ie,
496
496
  onBlur: de,
497
497
  ...Z
498
498
  }
@@ -507,7 +507,7 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
507
507
  children: t
508
508
  }
509
509
  ),
510
- se && /* @__PURE__ */ T(
510
+ oe && /* @__PURE__ */ T(
511
511
  "div",
512
512
  {
513
513
  ref: S,
@@ -519,21 +519,21 @@ const Se = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
519
519
  h && /* @__PURE__ */ T(
520
520
  "div",
521
521
  {
522
- ref: re,
522
+ ref: ne,
523
523
  className: _.rightElement,
524
524
  children: h
525
525
  }
526
526
  ),
527
- n && d && /* @__PURE__ */ T(Le, { politeness: "polite", clearAnnouncementDelay: 500, children: ce })
527
+ r && d && /* @__PURE__ */ T(Le, { politeness: "polite", clearAnnouncementDelay: 500, children: ce })
528
528
  ] });
529
529
  }
530
530
  );
531
- Fe.displayName = "TextArea";
531
+ Pe.displayName = "TextArea";
532
532
  export {
533
533
  K as TEXT_AREA_CLASSNAME,
534
534
  ge as TEXT_AREA_CONTROL_LEFT_CLASSNAME,
535
535
  Te as TEXT_AREA_CONTROL_RIGHT_CLASSNAME,
536
- M as TEXT_AREA_HELPER_TEXT_CLASSNAME,
536
+ D as TEXT_AREA_HELPER_TEXT_CLASSNAME,
537
537
  Ae as TEXT_AREA_WRAPPER_CLASSNAME,
538
- Fe as TextArea
538
+ Pe as TextArea
539
539
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.av-text-area-wrapper label[aria-hidden=true]{transform-origin:top left;transition:var(--av-text-area-wrapper-transition, all .2s ease-out)}.av-text-area:focus+label[aria-hidden=true],.av-text-area:not(:placeholder-shown)+label[aria-hidden=true]{transform:translate(12px,var(--av-text-area-label, -25px)) scale(.75)}.av-text-area-helper-text{transform:translate(12px,var(--av-text-area-helper-text, 32px)) scale(.75);transform-origin:top left}.av-text-area__control--right{right:18px}.av-text-area__control--left{left:18px}@keyframes blink{50%{fill:transparent}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mr-2{margin-right:.5rem}.flex{display:flex}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.h-20{height:5rem}.min-h-\[80px\]{min-height:80px}.w-full{width:100%}.translate-x-\[12px\]{--tw-translate-x: 12px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.resize-none{resize:none}.resize{resize:both}.flex-col{flex-direction:column}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-border-dark{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity, 1)))}.border-border-error-dark{--tw-border-opacity: 1;border-color:var(--av-border-error-dark, rgb(185 28 28 / var(--tw-border-opacity, 1)))}.border-transparent{border-color:transparent}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity, 1)))}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.text-copy-error-dark{--tw-text-opacity: 1;color:var(--av-copy-error-dark, rgb(185 28 28 / var(--tw-text-opacity, 1)))}.text-copy-error-light{--tw-text-opacity: 1;color:var(--av-copy-error-light, rgb(239 68 68 / var(--tw-text-opacity, 1)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.text-copy-medium{--tw-text-opacity: 1;color:var(--av-copy-medium, rgb(148 163 184 / var(--tw-text-opacity, 1)))}.caret-copy-dark{caret-color:var(--av-copy-dark, rgb(15 23 42 / 1))}.caret-copy-light{caret-color:var(--av-copy-light, rgb(226 232 240 / 1))}.opacity-50{opacity:.5}.outline-focus-dark{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.outline-focus-light{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.focus\:border-border-dark:focus{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity, 1)))}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-offset-2:focus{outline-offset:2px}.focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\:size-6{width:1.5rem;height:1.5rem}}@media (min-width: 768px){.md\:size-px{width:1px;height:1px}}@media (prefers-color-scheme: dark){.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-error-dark{--tw-text-opacity: 1;color:var(--av-copy-error-dark, rgb(185 28 28 / var(--tw-text-opacity, 1)))}.dark\:text-copy-error-light{--tw-text-opacity: 1;color:var(--av-copy-error-light, rgb(239 68 68 / var(--tw-text-opacity, 1)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.dark\:text-copy-medium{--tw-text-opacity: 1;color:var(--av-copy-medium, rgb(148 163 184 / var(--tw-text-opacity, 1)))}.dark\:caret-copy-dark{caret-color:var(--av-copy-dark, rgb(15 23 42 / 1))}.dark\:caret-copy-light{caret-color:var(--av-copy-light, rgb(226 232 240 / 1))}.dark\:focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.dark\:focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}}
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.av-text-area-wrapper label[aria-hidden=true]{transform-origin:top left;transition:var(--av-text-area-wrapper-transition, all .2s ease-out)}.av-text-area:focus+label[aria-hidden=true],.av-text-area:not(:placeholder-shown)+label[aria-hidden=true]{transform:translate(12px,var(--av-text-area-label, -25px)) scale(.75)}.av-text-area-helper-text{transform:translate(12px,var(--av-text-area-helper-text, 32px)) scale(.75);transform-origin:top left}.av-text-area__control--right{right:18px}.av-text-area__control--left{left:18px}@keyframes blink{50%{fill:transparent}}@keyframes av-tooltip-fade-in{0%{opacity:0}to{opacity:100}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mr-2{margin-right:.5rem}.flex{display:flex}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.h-20{height:5rem}.min-h-\[80px\]{min-height:80px}.w-full{width:100%}.translate-x-\[12px\]{--tw-translate-x: 12px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.resize-none{resize:none}.resize{resize:both}.flex-col{flex-direction:column}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-border-dark{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity, 1)))}.border-border-error-dark{--tw-border-opacity: 1;border-color:var(--av-border-error-dark, rgb(185 28 28 / var(--tw-border-opacity, 1)))}.border-transparent{border-color:transparent}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity, 1)))}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.text-copy-error-dark{--tw-text-opacity: 1;color:var(--av-copy-error-dark, rgb(185 28 28 / var(--tw-text-opacity, 1)))}.text-copy-error-light{--tw-text-opacity: 1;color:var(--av-copy-error-light, rgb(239 68 68 / var(--tw-text-opacity, 1)))}.text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.text-copy-medium{--tw-text-opacity: 1;color:var(--av-copy-medium, rgb(148 163 184 / var(--tw-text-opacity, 1)))}.caret-copy-dark{caret-color:var(--av-copy-dark, rgb(15 23 42 / 1))}.caret-copy-light{caret-color:var(--av-copy-light, rgb(226 232 240 / 1))}.opacity-50{opacity:.5}.outline-focus-dark{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.outline-focus-light{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.focus\:border-border-dark:focus{--tw-border-opacity: 1;border-color:var(--av-border-dark, rgb(15 23 42 / var(--tw-border-opacity, 1)))}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-offset-2:focus{outline-offset:2px}.focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\:size-6{width:1.5rem;height:1.5rem}}@media (min-width: 768px){.md\:size-px{width:1px;height:1px}}@media (prefers-color-scheme: dark){.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity, 1)))}.dark\:bg-surface-lighter{--tw-bg-opacity: 1;background-color:var(--av-surface-lighter, rgb(226 232 240 / var(--tw-bg-opacity, 1)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity, 1)))}.dark\:text-copy-error-dark{--tw-text-opacity: 1;color:var(--av-copy-error-dark, rgb(185 28 28 / var(--tw-text-opacity, 1)))}.dark\:text-copy-error-light{--tw-text-opacity: 1;color:var(--av-copy-error-light, rgb(239 68 68 / var(--tw-text-opacity, 1)))}.dark\:text-copy-lighter{--tw-text-opacity: 1;color:var(--av-copy-lighter, rgb(255 255 255 / var(--tw-text-opacity, 1)))}.dark\:text-copy-medium{--tw-text-opacity: 1;color:var(--av-copy-medium, rgb(148 163 184 / var(--tw-text-opacity, 1)))}.dark\:caret-copy-dark{caret-color:var(--av-copy-dark, rgb(15 23 42 / 1))}.dark\:caret-copy-light{caret-color:var(--av-copy-light, rgb(226 232 240 / 1))}.dark\:focus\:outline-focus-dark:focus{outline-color:var(--av-focus-dark, rgb(21 128 61 / 1))}.dark\:focus\:outline-focus-light:focus{outline-color:var(--av-focus-light, rgb(134 239 172 / 1))}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-textarea",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@tailwindcss/typography": "0.5.16",
45
- "@versini/ui-hooks": "4.5.0",
45
+ "@versini/ui-hooks": "4.6.1",
46
46
  "@versini/ui-liveregion": "1.3.7",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "3.4.17"
@@ -50,5 +50,5 @@
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "9fe85d906eb117bb22c3b576f104b6f0203429d7"
53
+ "gitHead": "b6bd4ab8c8999a80520b12bff719a22a03d2e52b"
54
54
  }