@versini/ui-textinput 3.0.9 → 3.0.11
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,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import z, { useRef as
|
|
1
|
+
import { jsx as f, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import z, { useRef as y, useEffect as R, useCallback as W, useState as $, useMemo as J, useId as K, useReducer as Q, useLayoutEffect as L } from "react";
|
|
3
3
|
import c from "clsx";
|
|
4
|
-
const P = "av-text-input", me = "av-text-input-simple", Y = "av-text-input-wrapper",
|
|
4
|
+
const P = "av-text-input", me = "av-text-input-simple", Y = "av-text-input-wrapper", _ = "av-text-input-helper-text";
|
|
5
5
|
function Z() {
|
|
6
|
-
const e =
|
|
7
|
-
return
|
|
6
|
+
const e = y(!1);
|
|
7
|
+
return R(() => (e.current = !0, () => {
|
|
8
8
|
e.current = !1;
|
|
9
9
|
}), []), W(() => e.current, []);
|
|
10
10
|
}
|
|
@@ -19,28 +19,28 @@ const B = {
|
|
|
19
19
|
right: 0
|
|
20
20
|
};
|
|
21
21
|
function ee(e) {
|
|
22
|
-
const
|
|
22
|
+
const r = Z(), t = y(0), n = y(null), [a, s] = $(B), l = J(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((p) => {
|
|
23
23
|
const i = p[0];
|
|
24
24
|
i && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
25
|
-
|
|
25
|
+
n.current && r() && s(i.contentRect);
|
|
26
26
|
}));
|
|
27
|
-
}), [
|
|
28
|
-
return
|
|
27
|
+
}), [r]);
|
|
28
|
+
return R(() => (n.current && (l == null || l.observe(n.current, e)), () => {
|
|
29
29
|
l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
30
|
-
}), [l, e]), [
|
|
30
|
+
}), [l, e]), [n, a];
|
|
31
31
|
}
|
|
32
32
|
function te(e) {
|
|
33
|
-
const
|
|
33
|
+
const r = K();
|
|
34
34
|
if (!e)
|
|
35
|
-
return
|
|
35
|
+
return r;
|
|
36
36
|
if (typeof e == "number" || typeof e == "string")
|
|
37
|
-
return `${e}${
|
|
37
|
+
return `${e}${r}`;
|
|
38
38
|
if (typeof e == "object") {
|
|
39
|
-
const { id: t, prefix:
|
|
40
|
-
return typeof t == "number" || typeof t == "string" ? `${
|
|
39
|
+
const { id: t, prefix: n = "" } = e;
|
|
40
|
+
return typeof t == "number" || typeof t == "string" ? `${n}${t}` : `${n}${r}`;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const w = "SET_ANNOUNCEMENT", D = "CLEAR_ANNOUNCEMENT",
|
|
43
|
+
const w = "SET_ANNOUNCEMENT", D = "CLEAR_ANNOUNCEMENT", ne = {
|
|
44
44
|
alert: null,
|
|
45
45
|
alertdialog: null,
|
|
46
46
|
log: "polite",
|
|
@@ -48,12 +48,12 @@ const w = "SET_ANNOUNCEMENT", D = "CLEAR_ANNOUNCEMENT", re = {
|
|
|
48
48
|
progressbar: null,
|
|
49
49
|
status: "polite",
|
|
50
50
|
timer: "assertive"
|
|
51
|
-
},
|
|
52
|
-
switch (
|
|
51
|
+
}, re = (e, r) => {
|
|
52
|
+
switch (r == null ? void 0 : r.type) {
|
|
53
53
|
case w:
|
|
54
54
|
return {
|
|
55
55
|
...e,
|
|
56
|
-
announcement:
|
|
56
|
+
announcement: r.payload
|
|
57
57
|
};
|
|
58
58
|
case D:
|
|
59
59
|
return {
|
|
@@ -65,72 +65,72 @@ const w = "SET_ANNOUNCEMENT", D = "CLEAR_ANNOUNCEMENT", re = {
|
|
|
65
65
|
}
|
|
66
66
|
}, ae = ({
|
|
67
67
|
onAnnouncementClear: e,
|
|
68
|
-
dispatch:
|
|
68
|
+
dispatch: r
|
|
69
69
|
}) => {
|
|
70
|
-
|
|
70
|
+
r({
|
|
71
71
|
type: D
|
|
72
72
|
}), typeof e == "function" && e();
|
|
73
73
|
}, S = ({
|
|
74
74
|
children: e,
|
|
75
|
-
clearAnnouncementDelay:
|
|
75
|
+
clearAnnouncementDelay: r,
|
|
76
76
|
clearAnnouncementTimeoutRef: t,
|
|
77
|
-
onAnnouncementClear:
|
|
77
|
+
onAnnouncementClear: n,
|
|
78
78
|
dispatch: a
|
|
79
79
|
}) => {
|
|
80
80
|
clearTimeout(t.current), e !== null && a({
|
|
81
81
|
type: w,
|
|
82
82
|
payload: e
|
|
83
|
-
}),
|
|
83
|
+
}), r && (t.current = setTimeout(
|
|
84
84
|
() => ae({
|
|
85
|
-
onAnnouncementClear:
|
|
85
|
+
onAnnouncementClear: n,
|
|
86
86
|
dispatch: a
|
|
87
87
|
}),
|
|
88
|
-
|
|
88
|
+
r
|
|
89
89
|
));
|
|
90
90
|
}, le = ({
|
|
91
91
|
children: e,
|
|
92
|
-
announcementTimeoutRef:
|
|
92
|
+
announcementTimeoutRef: r,
|
|
93
93
|
announcementDelay: t,
|
|
94
|
-
clearAnnouncementDelay:
|
|
94
|
+
clearAnnouncementDelay: n,
|
|
95
95
|
clearAnnouncementTimeoutRef: a,
|
|
96
|
-
onAnnouncementClear:
|
|
96
|
+
onAnnouncementClear: s,
|
|
97
97
|
dispatch: l
|
|
98
98
|
}) => {
|
|
99
|
-
clearTimeout(
|
|
99
|
+
clearTimeout(r.current), t ? r.current = setTimeout(S, t, {
|
|
100
100
|
children: e,
|
|
101
|
-
clearAnnouncementDelay:
|
|
101
|
+
clearAnnouncementDelay: n,
|
|
102
102
|
clearAnnouncementTimeoutRef: a,
|
|
103
|
-
onAnnouncementClear:
|
|
103
|
+
onAnnouncementClear: s,
|
|
104
104
|
dispatch: l
|
|
105
105
|
}) : S({
|
|
106
106
|
children: e,
|
|
107
|
-
clearAnnouncementDelay:
|
|
107
|
+
clearAnnouncementDelay: n,
|
|
108
108
|
clearAnnouncementTimeoutRef: a,
|
|
109
|
-
onAnnouncementClear:
|
|
109
|
+
onAnnouncementClear: s,
|
|
110
110
|
dispatch: l
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
function ce({
|
|
114
114
|
children: e,
|
|
115
|
-
className:
|
|
115
|
+
className: r,
|
|
116
116
|
politeness: t,
|
|
117
|
-
role:
|
|
117
|
+
role: n = null,
|
|
118
118
|
announcementDelay: a,
|
|
119
|
-
clearAnnouncementDelay:
|
|
119
|
+
clearAnnouncementDelay: s,
|
|
120
120
|
onAnnouncementClear: l,
|
|
121
121
|
visible: p,
|
|
122
122
|
...i
|
|
123
123
|
}) {
|
|
124
|
-
const x =
|
|
124
|
+
const x = y(null), m = y(null), [o, g] = Q(re, {
|
|
125
125
|
announcement: null
|
|
126
126
|
});
|
|
127
127
|
let d = t;
|
|
128
|
-
typeof d > "u" && (d =
|
|
128
|
+
typeof d > "u" && (d = n ? ne[n] : "assertive"), R(() => {
|
|
129
129
|
le({
|
|
130
130
|
announcementTimeoutRef: x,
|
|
131
131
|
announcementDelay: a,
|
|
132
132
|
children: e,
|
|
133
|
-
clearAnnouncementDelay:
|
|
133
|
+
clearAnnouncementDelay: s,
|
|
134
134
|
clearAnnouncementTimeoutRef: m,
|
|
135
135
|
onAnnouncementClear: l,
|
|
136
136
|
dispatch: g
|
|
@@ -138,20 +138,20 @@ function ce({
|
|
|
138
138
|
}, [
|
|
139
139
|
e,
|
|
140
140
|
a,
|
|
141
|
-
|
|
141
|
+
s,
|
|
142
142
|
l
|
|
143
143
|
]);
|
|
144
|
-
const u = c(
|
|
144
|
+
const u = c(r, {
|
|
145
145
|
"sr-only": !p
|
|
146
146
|
});
|
|
147
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ f(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
150
|
"aria-live": d,
|
|
151
|
-
...
|
|
151
|
+
...n && { role: n },
|
|
152
152
|
className: u,
|
|
153
153
|
...i,
|
|
154
|
-
children:
|
|
154
|
+
children: o.announcement
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
}
|
|
@@ -162,20 +162,20 @@ function ce({
|
|
|
162
162
|
try {
|
|
163
163
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
164
164
|
version: "1.3.7",
|
|
165
|
-
buildTime: "01/
|
|
165
|
+
buildTime: "01/25/2025 09:52 AM EST",
|
|
166
166
|
homepage: "https://github.com/aversini/ui-components",
|
|
167
167
|
license: "MIT"
|
|
168
168
|
});
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const se = ({
|
|
172
172
|
mode: e
|
|
173
173
|
}) => c({
|
|
174
174
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
175
175
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
176
176
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
177
177
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
178
|
-
}),
|
|
178
|
+
}), oe = ({
|
|
179
179
|
focusMode: e
|
|
180
180
|
}) => c("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
181
181
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -184,58 +184,58 @@ const oe = ({
|
|
|
184
184
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
185
185
|
}), ue = ({
|
|
186
186
|
noBorder: e,
|
|
187
|
-
error:
|
|
187
|
+
error: r
|
|
188
188
|
}) => c("border-2", {
|
|
189
|
-
"border-border-dark": !e && !
|
|
190
|
-
"focus:border-border-dark": !e &&
|
|
191
|
-
"border-border-error-dark": !e &&
|
|
189
|
+
"border-border-dark": !e && !r,
|
|
190
|
+
"focus:border-border-dark": !e && r,
|
|
191
|
+
"border-border-error-dark": !e && r,
|
|
192
192
|
"border-transparent": e
|
|
193
193
|
}), ie = ({
|
|
194
194
|
disabled: e,
|
|
195
|
-
raw:
|
|
195
|
+
raw: r,
|
|
196
196
|
error: t,
|
|
197
|
-
mode:
|
|
197
|
+
mode: n
|
|
198
198
|
}) => {
|
|
199
|
-
if (
|
|
199
|
+
if (r)
|
|
200
200
|
return "";
|
|
201
201
|
if (e)
|
|
202
202
|
return c("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
203
203
|
if (!t)
|
|
204
204
|
return c("absolute px-2 cursor-text font-medium", {
|
|
205
|
-
"text-copy-lighter":
|
|
206
|
-
"text-copy-dark":
|
|
207
|
-
"text-copy-dark dark:text-copy-lighter":
|
|
208
|
-
"text-copy-lighter dark:text-copy-dark":
|
|
205
|
+
"text-copy-lighter": n === "dark",
|
|
206
|
+
"text-copy-dark": n === "light",
|
|
207
|
+
"text-copy-dark dark:text-copy-lighter": n === "system",
|
|
208
|
+
"text-copy-lighter dark:text-copy-dark": n === "alt-system"
|
|
209
209
|
});
|
|
210
210
|
if (t)
|
|
211
211
|
return c("absolute px-2 cursor-text font-medium", {
|
|
212
|
-
"text-copy-lighter":
|
|
213
|
-
"text-copy-error-dark":
|
|
214
|
-
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker":
|
|
215
|
-
"text-copy-lighter dark:text-copy-error-dark":
|
|
212
|
+
"text-copy-lighter": n === "dark",
|
|
213
|
+
"text-copy-error-dark": n === "light",
|
|
214
|
+
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": n === "system",
|
|
215
|
+
"text-copy-lighter dark:text-copy-error-dark": n === "alt-system"
|
|
216
216
|
});
|
|
217
217
|
}, pe = ({
|
|
218
218
|
error: e,
|
|
219
|
-
raw:
|
|
219
|
+
raw: r,
|
|
220
220
|
mode: t,
|
|
221
|
-
disabled:
|
|
221
|
+
disabled: n
|
|
222
222
|
}) => {
|
|
223
|
-
if (n)
|
|
224
|
-
return "";
|
|
225
223
|
if (r)
|
|
224
|
+
return "";
|
|
225
|
+
if (n)
|
|
226
226
|
return c(
|
|
227
|
-
|
|
227
|
+
_,
|
|
228
228
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
229
229
|
);
|
|
230
230
|
if (!e)
|
|
231
|
-
return c(
|
|
231
|
+
return c(_, "absolute px-2 font-medium", {
|
|
232
232
|
"text-copy-lighter": t === "dark",
|
|
233
233
|
"text-copy-dark": t === "light",
|
|
234
234
|
"text-copy-dark dark:text-copy-lighter": t === "system",
|
|
235
235
|
"text-copy-lighter dark:text-copy-dark": t === "alt-system"
|
|
236
236
|
});
|
|
237
237
|
if (e)
|
|
238
|
-
return c(
|
|
238
|
+
return c(_, "absolute px-2 font-medium", {
|
|
239
239
|
"text-copy-error-light bg-surface-darker": t === "dark",
|
|
240
240
|
"text-copy-error-dark": t === "light",
|
|
241
241
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": t === "system",
|
|
@@ -243,11 +243,11 @@ const oe = ({
|
|
|
243
243
|
});
|
|
244
244
|
}, de = ({
|
|
245
245
|
className: e,
|
|
246
|
-
inputClassName:
|
|
246
|
+
inputClassName: r,
|
|
247
247
|
raw: t,
|
|
248
|
-
disabled:
|
|
248
|
+
disabled: n,
|
|
249
249
|
noBorder: a,
|
|
250
|
-
error:
|
|
250
|
+
error: s,
|
|
251
251
|
mode: l,
|
|
252
252
|
focusMode: p,
|
|
253
253
|
size: i,
|
|
@@ -258,130 +258,130 @@ const oe = ({
|
|
|
258
258
|
Y,
|
|
259
259
|
e
|
|
260
260
|
);
|
|
261
|
-
let
|
|
261
|
+
let o = "";
|
|
262
262
|
switch (i) {
|
|
263
263
|
case "xs":
|
|
264
|
-
|
|
264
|
+
o = "h-8";
|
|
265
265
|
break;
|
|
266
266
|
case "sm":
|
|
267
|
-
|
|
267
|
+
o = "h-10";
|
|
268
268
|
break;
|
|
269
269
|
case "lg":
|
|
270
|
-
|
|
270
|
+
o = "h-14";
|
|
271
271
|
break;
|
|
272
272
|
case "xl":
|
|
273
|
-
|
|
273
|
+
o = "h-16";
|
|
274
274
|
break;
|
|
275
275
|
default:
|
|
276
|
-
|
|
276
|
+
o = "h-12";
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
|
-
const g = t ? c(
|
|
279
|
+
const g = t ? c(r) : c(
|
|
280
280
|
P,
|
|
281
|
-
|
|
281
|
+
o,
|
|
282
282
|
"rounded-md text-base px-4",
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
ue({ noBorder: a, error:
|
|
283
|
+
se({ mode: l }),
|
|
284
|
+
oe({ focusMode: p }),
|
|
285
|
+
ue({ noBorder: a, error: s }),
|
|
286
286
|
{
|
|
287
|
-
"disabled:cursor-not-allowed disabled:opacity-50":
|
|
287
|
+
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
288
288
|
},
|
|
289
|
-
|
|
289
|
+
r
|
|
290
290
|
), d = t ? void 0 : "sr-only", u = ie({
|
|
291
|
-
disabled:
|
|
291
|
+
disabled: n,
|
|
292
292
|
raw: t,
|
|
293
|
-
error:
|
|
293
|
+
error: s,
|
|
294
294
|
mode: l
|
|
295
295
|
}), b = pe({
|
|
296
|
-
error:
|
|
296
|
+
error: s,
|
|
297
297
|
raw: t,
|
|
298
298
|
mode: l,
|
|
299
|
-
disabled:
|
|
300
|
-
}),
|
|
299
|
+
disabled: n
|
|
300
|
+
}), N = t ? void 0 : c("absolute right-3", x);
|
|
301
301
|
return {
|
|
302
302
|
wrapper: m,
|
|
303
303
|
input: g,
|
|
304
304
|
accessibleLabel: d,
|
|
305
305
|
visibleLabel: u,
|
|
306
306
|
helperText: b,
|
|
307
|
-
rightElement:
|
|
307
|
+
rightElement: N
|
|
308
308
|
};
|
|
309
|
-
},
|
|
309
|
+
}, fe = z.forwardRef(
|
|
310
310
|
({
|
|
311
311
|
id: e,
|
|
312
|
-
name:
|
|
312
|
+
name: r,
|
|
313
313
|
label: t,
|
|
314
|
-
error:
|
|
314
|
+
error: n = !1,
|
|
315
315
|
raw: a = !1,
|
|
316
|
-
className:
|
|
316
|
+
className: s,
|
|
317
317
|
inputClassName: l,
|
|
318
318
|
mode: p = "system",
|
|
319
319
|
focusMode: i = "system",
|
|
320
320
|
disabled: x = !1,
|
|
321
321
|
noBorder: m = !1,
|
|
322
|
-
labelId:
|
|
322
|
+
labelId: o,
|
|
323
323
|
labelHidden: g = !1,
|
|
324
324
|
type: d = "text",
|
|
325
325
|
helperText: u = "",
|
|
326
326
|
rightElement: b,
|
|
327
|
-
rightElementClassName:
|
|
328
|
-
size:
|
|
327
|
+
rightElementClassName: N,
|
|
328
|
+
size: I = "md",
|
|
329
329
|
...U
|
|
330
330
|
}, M) => {
|
|
331
|
-
const [F, T] = ee(), [O, X] = $(0), k = te({ id: e, prefix: `${P}-` }), j = `${
|
|
331
|
+
const [F, T] = ee(), [O, X] = $(0), k = te({ id: e, prefix: `${P}-` }), j = `${r} error, ${u}`, A = y(null), E = y(null), V = {
|
|
332
332
|
xs: { label: "-25px", helperText: "30px" },
|
|
333
333
|
sm: { label: "-29px", helperText: "34px" },
|
|
334
334
|
md: { label: "-33px", helperText: "38px" },
|
|
335
335
|
lg: { label: "-15px", helperText: "22px" },
|
|
336
336
|
xl: { label: "-19px", helperText: "25px" }
|
|
337
337
|
}, h = de({
|
|
338
|
-
className:
|
|
338
|
+
className: s,
|
|
339
339
|
inputClassName: l,
|
|
340
|
-
error:
|
|
340
|
+
error: n,
|
|
341
341
|
raw: a,
|
|
342
342
|
focusMode: i,
|
|
343
343
|
disabled: x,
|
|
344
344
|
noBorder: m,
|
|
345
345
|
mode: p,
|
|
346
|
-
size:
|
|
347
|
-
rightElementClassName:
|
|
346
|
+
size: I,
|
|
347
|
+
rightElementClassName: N
|
|
348
348
|
});
|
|
349
349
|
return L(() => {
|
|
350
350
|
T && T.width && X(T.width + 18 + 10);
|
|
351
351
|
}, [T]), L(() => {
|
|
352
|
-
var
|
|
353
|
-
const { label: q, helperText: G } = V[
|
|
354
|
-
(
|
|
352
|
+
var v, C;
|
|
353
|
+
const { label: q, helperText: G } = V[I];
|
|
354
|
+
(v = A == null ? void 0 : A.current) == null || v.style.setProperty("--av-text-input-label", q), (C = E == null ? void 0 : E.current) == null || C.style.setProperty(
|
|
355
355
|
"--av-text-input-helper-text",
|
|
356
356
|
G
|
|
357
357
|
);
|
|
358
|
-
}, [
|
|
359
|
-
/* @__PURE__ */
|
|
358
|
+
}, [I]), /* @__PURE__ */ H("div", { className: h.wrapper, children: [
|
|
359
|
+
/* @__PURE__ */ f(
|
|
360
360
|
"label",
|
|
361
361
|
{
|
|
362
362
|
htmlFor: k,
|
|
363
|
-
id:
|
|
363
|
+
id: o,
|
|
364
364
|
className: h.accessibleLabel,
|
|
365
365
|
children: t
|
|
366
366
|
}
|
|
367
367
|
),
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ f(
|
|
369
369
|
"input",
|
|
370
370
|
{
|
|
371
371
|
ref: M,
|
|
372
372
|
id: k,
|
|
373
|
-
name:
|
|
373
|
+
name: r,
|
|
374
374
|
type: d,
|
|
375
375
|
disabled: x,
|
|
376
376
|
placeholder: a ? void 0 : " ",
|
|
377
377
|
className: h.input,
|
|
378
378
|
...u && { "aria-describedby": `${k}-helper` },
|
|
379
|
-
...
|
|
379
|
+
...n && { "aria-invalid": "true" },
|
|
380
380
|
...b && !a && { style: { paddingRight: O } },
|
|
381
381
|
...U
|
|
382
382
|
}
|
|
383
383
|
),
|
|
384
|
-
!a && !g && /* @__PURE__ */
|
|
384
|
+
!a && !g && /* @__PURE__ */ f(
|
|
385
385
|
"label",
|
|
386
386
|
{
|
|
387
387
|
ref: A,
|
|
@@ -391,7 +391,7 @@ const oe = ({
|
|
|
391
391
|
children: t
|
|
392
392
|
}
|
|
393
393
|
),
|
|
394
|
-
u && /* @__PURE__ */
|
|
394
|
+
u && /* @__PURE__ */ f(
|
|
395
395
|
"div",
|
|
396
396
|
{
|
|
397
397
|
ref: E,
|
|
@@ -400,7 +400,7 @@ const oe = ({
|
|
|
400
400
|
children: u
|
|
401
401
|
}
|
|
402
402
|
),
|
|
403
|
-
b && /* @__PURE__ */
|
|
403
|
+
b && /* @__PURE__ */ f(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
406
|
ref: F,
|
|
@@ -408,16 +408,16 @@ const oe = ({
|
|
|
408
408
|
children: b
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
|
-
|
|
411
|
+
n && u && /* @__PURE__ */ f(ce, { politeness: "polite", clearAnnouncementDelay: 500, children: j })
|
|
412
412
|
] });
|
|
413
413
|
}
|
|
414
414
|
);
|
|
415
|
-
|
|
415
|
+
fe.displayName = "TextInput";
|
|
416
416
|
export {
|
|
417
417
|
P as TEXT_INPUT_CLASSNAME,
|
|
418
|
-
|
|
418
|
+
_ as TEXT_INPUT_HELPER_TEXT_CLASSNAME,
|
|
419
419
|
me as TEXT_INPUT_SIMPLE_CLASSNAME,
|
|
420
420
|
Y as TEXT_INPUT_WRAPPER_CLASSNAME,
|
|
421
|
-
|
|
421
|
+
fe as TextInput,
|
|
422
422
|
ce as x
|
|
423
423
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextInput as F, x as H } from "../../chunks/TextInput.
|
|
1
|
+
import { TextInput as F, x as H } from "../../chunks/TextInput.DwIKpzfE.js";
|
|
2
2
|
import { jsxs as L, Fragment as B, jsx as x } from "react/jsx-runtime";
|
|
3
3
|
import A, { useMemo as j, useState as _, useRef as m, useEffect as b } from "react";
|
|
4
4
|
function $(r) {
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TEXT_INPUT_CLASSNAME as I, TEXT_INPUT_HELPER_TEXT_CLASSNAME as e, TEXT_INPUT_SIMPLE_CLASSNAME as o, TEXT_INPUT_WRAPPER_CLASSNAME as t, TextInput as N } from "./chunks/TextInput.
|
|
1
|
+
import { TEXT_INPUT_CLASSNAME as I, TEXT_INPUT_HELPER_TEXT_CLASSNAME as e, TEXT_INPUT_SIMPLE_CLASSNAME as o, TEXT_INPUT_WRAPPER_CLASSNAME as t, TextInput as N } from "./chunks/TextInput.DwIKpzfE.js";
|
|
2
2
|
import { TextInputMask as i } from "./components/TextInput/TextInputMask.js";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-textinput v3.0.
|
|
4
|
+
@versini/ui-textinput v3.0.11
|
|
5
5
|
© 2025 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
9
|
-
version: "3.0.
|
|
10
|
-
buildTime: "01/
|
|
9
|
+
version: "3.0.11",
|
|
10
|
+
buildTime: "01/25/2025 09:52 AM EST",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.av-text-input-wrapper label[aria-hidden=true]{transform:translate(12px) scale(1);transform-origin:top left;transition:var(--av-text-input-wrapper-transition, all .2s ease-out)}.av-text-input:focus+label[aria-hidden=true],.av-text-input:not(:placeholder-shown)+label[aria-hidden=true]{transform:translate(12px,var(--av-text-input-label, -33px)) scale(.75)}.av-text-input-helper-text{transform:translate(12px,var(--av-text-input-helper-text, 38px)) scale(.75);transform-origin:top left}@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}.right-3{right:.75rem}.mr-2{margin-right:.5rem}.flex{display:flex}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-8{height:2rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.flex-col{flex-direction:column}.justify-center{justify-content:center}.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}.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)))}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.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\: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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.av-text-input-wrapper label[aria-hidden=true]{transform:translate(12px) scale(1);transform-origin:top left;transition:var(--av-text-input-wrapper-transition, all .2s ease-out)}.av-text-input:focus+label[aria-hidden=true],.av-text-input:not(:placeholder-shown)+label[aria-hidden=true]{transform:translate(12px,var(--av-text-input-label, -33px)) scale(.75)}.av-text-input-helper-text{transform:translate(12px,var(--av-text-input-helper-text, 38px)) scale(.75);transform-origin:top left}@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}.right-3{right:.75rem}.mr-2{margin-right:.5rem}.flex{display:flex}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.size-px{width:1px;height:1px}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-8{height:2rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-text{cursor:text}.resize{resize:both}.flex-col{flex-direction:column}.justify-center{justify-content:center}.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}.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)))}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.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\: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-textinput",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
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.
|
|
45
|
+
"@versini/ui-hooks": "4.6.0",
|
|
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": "
|
|
53
|
+
"gitHead": "1199c5a06253a95c103981005f5a1131c841bb00"
|
|
54
54
|
}
|