@versini/ui-textinput 4.0.1 → 4.0.3
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
1
|
import { jsx as f, jsxs as H } from "react/jsx-runtime";
|
|
2
|
-
import z, { useRef as y,
|
|
2
|
+
import z, { useRef as y, useCallback as W, useEffect as _, 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", I = "av-text-input-helper-text";
|
|
5
5
|
function Z() {
|
|
6
6
|
const e = y(!1);
|
|
7
|
-
return
|
|
7
|
+
return _(() => (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 n = Z(), t = y(0), r = y(null), [a, o] = $(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
|
+
r.current && n() && o(i.contentRect);
|
|
26
26
|
}));
|
|
27
|
-
}), [
|
|
28
|
-
return
|
|
27
|
+
}), [n]);
|
|
28
|
+
return _(() => (r.current && (l == null || l.observe(r.current, e)), () => {
|
|
29
29
|
l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
30
|
-
}), [l, e]), [
|
|
30
|
+
}), [l, e]), [r, a];
|
|
31
31
|
}
|
|
32
32
|
function te(e) {
|
|
33
|
-
const
|
|
33
|
+
const n = K();
|
|
34
34
|
if (!e)
|
|
35
|
-
return
|
|
35
|
+
return n;
|
|
36
36
|
if (typeof e == "number" || typeof e == "string")
|
|
37
|
-
return `${e}${
|
|
37
|
+
return `${e}${n}`;
|
|
38
38
|
if (typeof e == "object") {
|
|
39
|
-
const { id: t, prefix:
|
|
40
|
-
return typeof t == "number" || typeof t == "string" ? `${
|
|
39
|
+
const { id: t, prefix: r = "" } = e;
|
|
40
|
+
return typeof t == "number" || typeof t == "string" ? `${r}${t}` : `${r}${n}`;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT",
|
|
43
|
+
const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", re = {
|
|
44
44
|
alert: null,
|
|
45
45
|
alertdialog: null,
|
|
46
46
|
log: "polite",
|
|
@@ -48,12 +48,12 @@ const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", ne = {
|
|
|
48
48
|
progressbar: null,
|
|
49
49
|
status: "polite",
|
|
50
50
|
timer: "assertive"
|
|
51
|
-
},
|
|
52
|
-
switch (
|
|
51
|
+
}, ne = (e, n) => {
|
|
52
|
+
switch (n == null ? void 0 : n.type) {
|
|
53
53
|
case D:
|
|
54
54
|
return {
|
|
55
55
|
...e,
|
|
56
|
-
announcement:
|
|
56
|
+
announcement: n.payload
|
|
57
57
|
};
|
|
58
58
|
case w:
|
|
59
59
|
return {
|
|
@@ -65,72 +65,72 @@ const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", ne = {
|
|
|
65
65
|
}
|
|
66
66
|
}, ae = ({
|
|
67
67
|
onAnnouncementClear: e,
|
|
68
|
-
dispatch:
|
|
68
|
+
dispatch: n
|
|
69
69
|
}) => {
|
|
70
|
-
|
|
70
|
+
n({
|
|
71
71
|
type: w
|
|
72
72
|
}), typeof e == "function" && e();
|
|
73
73
|
}, S = ({
|
|
74
74
|
children: e,
|
|
75
|
-
clearAnnouncementDelay:
|
|
75
|
+
clearAnnouncementDelay: n,
|
|
76
76
|
clearAnnouncementTimeoutRef: t,
|
|
77
|
-
onAnnouncementClear:
|
|
77
|
+
onAnnouncementClear: r,
|
|
78
78
|
dispatch: a
|
|
79
79
|
}) => {
|
|
80
80
|
clearTimeout(t.current), e !== null && a({
|
|
81
81
|
type: D,
|
|
82
82
|
payload: e
|
|
83
|
-
}),
|
|
83
|
+
}), n && (t.current = setTimeout(
|
|
84
84
|
() => ae({
|
|
85
|
-
onAnnouncementClear:
|
|
85
|
+
onAnnouncementClear: r,
|
|
86
86
|
dispatch: a
|
|
87
87
|
}),
|
|
88
|
-
|
|
88
|
+
n
|
|
89
89
|
));
|
|
90
90
|
}, le = ({
|
|
91
91
|
children: e,
|
|
92
|
-
announcementTimeoutRef:
|
|
92
|
+
announcementTimeoutRef: n,
|
|
93
93
|
announcementDelay: t,
|
|
94
|
-
clearAnnouncementDelay:
|
|
94
|
+
clearAnnouncementDelay: r,
|
|
95
95
|
clearAnnouncementTimeoutRef: a,
|
|
96
|
-
onAnnouncementClear:
|
|
96
|
+
onAnnouncementClear: o,
|
|
97
97
|
dispatch: l
|
|
98
98
|
}) => {
|
|
99
|
-
clearTimeout(
|
|
99
|
+
clearTimeout(n.current), t ? n.current = setTimeout(S, t, {
|
|
100
100
|
children: e,
|
|
101
|
-
clearAnnouncementDelay:
|
|
101
|
+
clearAnnouncementDelay: r,
|
|
102
102
|
clearAnnouncementTimeoutRef: a,
|
|
103
|
-
onAnnouncementClear:
|
|
103
|
+
onAnnouncementClear: o,
|
|
104
104
|
dispatch: l
|
|
105
105
|
}) : S({
|
|
106
106
|
children: e,
|
|
107
|
-
clearAnnouncementDelay:
|
|
107
|
+
clearAnnouncementDelay: r,
|
|
108
108
|
clearAnnouncementTimeoutRef: a,
|
|
109
|
-
onAnnouncementClear:
|
|
109
|
+
onAnnouncementClear: o,
|
|
110
110
|
dispatch: l
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
function ce({
|
|
114
114
|
children: e,
|
|
115
|
-
className:
|
|
115
|
+
className: n,
|
|
116
116
|
politeness: t,
|
|
117
|
-
role:
|
|
117
|
+
role: r = null,
|
|
118
118
|
announcementDelay: a,
|
|
119
|
-
clearAnnouncementDelay:
|
|
119
|
+
clearAnnouncementDelay: o,
|
|
120
120
|
onAnnouncementClear: l,
|
|
121
121
|
visible: p,
|
|
122
122
|
...i
|
|
123
123
|
}) {
|
|
124
|
-
const x = y(null), m = y(null), [
|
|
124
|
+
const x = y(null), m = y(null), [s, g] = Q(ne, {
|
|
125
125
|
announcement: null
|
|
126
126
|
});
|
|
127
127
|
let d = t;
|
|
128
|
-
typeof d > "u" && (d =
|
|
128
|
+
typeof d > "u" && (d = r ? re[r] : "assertive"), _(() => {
|
|
129
129
|
le({
|
|
130
130
|
announcementTimeoutRef: x,
|
|
131
131
|
announcementDelay: a,
|
|
132
132
|
children: e,
|
|
133
|
-
clearAnnouncementDelay:
|
|
133
|
+
clearAnnouncementDelay: o,
|
|
134
134
|
clearAnnouncementTimeoutRef: m,
|
|
135
135
|
onAnnouncementClear: l,
|
|
136
136
|
dispatch: g
|
|
@@ -138,44 +138,44 @@ function ce({
|
|
|
138
138
|
}, [
|
|
139
139
|
e,
|
|
140
140
|
a,
|
|
141
|
-
|
|
141
|
+
o,
|
|
142
142
|
l
|
|
143
143
|
]);
|
|
144
|
-
const u = c(
|
|
144
|
+
const u = c(n, {
|
|
145
145
|
"sr-only": !p
|
|
146
146
|
});
|
|
147
147
|
return /* @__PURE__ */ f(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
150
|
"aria-live": d,
|
|
151
|
-
...
|
|
151
|
+
...r && { role: r },
|
|
152
152
|
className: u,
|
|
153
153
|
...i,
|
|
154
|
-
children:
|
|
154
|
+
children: s.announcement
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
158
|
/*!
|
|
159
|
-
@versini/ui-liveregion v2.0.
|
|
159
|
+
@versini/ui-liveregion v2.0.3
|
|
160
160
|
© 2025 gizmette.com
|
|
161
161
|
*/
|
|
162
162
|
try {
|
|
163
163
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
164
|
-
version: "2.0.
|
|
165
|
-
buildTime: "
|
|
164
|
+
version: "2.0.3",
|
|
165
|
+
buildTime: "05/26/2025 03:48 PM EDT",
|
|
166
166
|
homepage: "https://github.com/aversini/ui-components",
|
|
167
167
|
license: "MIT"
|
|
168
168
|
});
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const oe = ({
|
|
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
|
+
}), se = ({
|
|
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 se = ({
|
|
|
184
184
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
185
185
|
}), ue = ({
|
|
186
186
|
noBorder: e,
|
|
187
|
-
error:
|
|
187
|
+
error: n
|
|
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 && !n,
|
|
190
|
+
"focus:border-border-dark": !e && n,
|
|
191
|
+
"border-border-error-dark": !e && n,
|
|
192
192
|
"border-transparent": e
|
|
193
193
|
}), ie = ({
|
|
194
194
|
disabled: e,
|
|
195
|
-
raw:
|
|
195
|
+
raw: n,
|
|
196
196
|
error: t,
|
|
197
|
-
mode:
|
|
197
|
+
mode: r
|
|
198
198
|
}) => {
|
|
199
|
-
if (
|
|
199
|
+
if (n)
|
|
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": r === "dark",
|
|
206
|
+
"text-copy-dark": r === "light",
|
|
207
|
+
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
208
|
+
"text-copy-lighter dark:text-copy-dark": r === "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": r === "dark",
|
|
213
|
+
"text-copy-error-dark": r === "light",
|
|
214
|
+
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
215
|
+
"text-copy-lighter dark:text-copy-error-dark": r === "alt-system"
|
|
216
216
|
});
|
|
217
217
|
}, pe = ({
|
|
218
218
|
error: e,
|
|
219
|
-
raw:
|
|
219
|
+
raw: n,
|
|
220
220
|
mode: t,
|
|
221
|
-
disabled:
|
|
221
|
+
disabled: r
|
|
222
222
|
}) => {
|
|
223
|
-
if (r)
|
|
224
|
-
return "";
|
|
225
223
|
if (n)
|
|
224
|
+
return "";
|
|
225
|
+
if (r)
|
|
226
226
|
return c(
|
|
227
|
-
|
|
227
|
+
I,
|
|
228
228
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
229
229
|
);
|
|
230
230
|
if (!e)
|
|
231
|
-
return c(
|
|
231
|
+
return c(I, "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(I, "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 se = ({
|
|
|
243
243
|
});
|
|
244
244
|
}, de = ({
|
|
245
245
|
className: e,
|
|
246
|
-
inputClassName:
|
|
246
|
+
inputClassName: n,
|
|
247
247
|
raw: t,
|
|
248
|
-
disabled:
|
|
248
|
+
disabled: r,
|
|
249
249
|
noBorder: a,
|
|
250
|
-
error:
|
|
250
|
+
error: o,
|
|
251
251
|
mode: l,
|
|
252
252
|
focusMode: p,
|
|
253
253
|
size: i,
|
|
@@ -258,109 +258,109 @@ const se = ({
|
|
|
258
258
|
Y,
|
|
259
259
|
e
|
|
260
260
|
);
|
|
261
|
-
let
|
|
261
|
+
let s = "";
|
|
262
262
|
switch (i) {
|
|
263
263
|
case "xs":
|
|
264
|
-
|
|
264
|
+
s = "h-8";
|
|
265
265
|
break;
|
|
266
266
|
case "sm":
|
|
267
|
-
|
|
267
|
+
s = "h-10";
|
|
268
268
|
break;
|
|
269
269
|
case "lg":
|
|
270
|
-
|
|
270
|
+
s = "h-14";
|
|
271
271
|
break;
|
|
272
272
|
case "xl":
|
|
273
|
-
|
|
273
|
+
s = "h-16";
|
|
274
274
|
break;
|
|
275
275
|
default:
|
|
276
|
-
|
|
276
|
+
s = "h-12";
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
|
-
const g = t ? c(
|
|
279
|
+
const g = t ? c(n) : c(
|
|
280
280
|
P,
|
|
281
|
-
|
|
281
|
+
s,
|
|
282
282
|
"rounded-md text-base px-4",
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
ue({ noBorder: a, error:
|
|
283
|
+
oe({ mode: l }),
|
|
284
|
+
se({ focusMode: p }),
|
|
285
|
+
ue({ noBorder: a, error: o }),
|
|
286
286
|
{
|
|
287
|
-
"disabled:cursor-not-allowed disabled:opacity-50":
|
|
287
|
+
"disabled:cursor-not-allowed disabled:opacity-50": r
|
|
288
288
|
},
|
|
289
|
-
|
|
289
|
+
n
|
|
290
290
|
), d = t ? void 0 : "sr-only", u = ie({
|
|
291
|
-
disabled:
|
|
291
|
+
disabled: r,
|
|
292
292
|
raw: t,
|
|
293
|
-
error:
|
|
293
|
+
error: o,
|
|
294
294
|
mode: l
|
|
295
295
|
}), b = pe({
|
|
296
|
-
error:
|
|
296
|
+
error: o,
|
|
297
297
|
raw: t,
|
|
298
298
|
mode: l,
|
|
299
|
-
disabled:
|
|
300
|
-
}),
|
|
299
|
+
disabled: r
|
|
300
|
+
}), v = 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: v
|
|
308
308
|
};
|
|
309
309
|
}, fe = z.forwardRef(
|
|
310
310
|
({
|
|
311
311
|
id: e,
|
|
312
|
-
name:
|
|
312
|
+
name: n,
|
|
313
313
|
label: t,
|
|
314
|
-
error:
|
|
314
|
+
error: r = !1,
|
|
315
315
|
raw: a = !1,
|
|
316
|
-
className:
|
|
316
|
+
className: o,
|
|
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: s,
|
|
323
323
|
labelHidden: g = !1,
|
|
324
324
|
type: d = "text",
|
|
325
325
|
helperText: u = "",
|
|
326
326
|
rightElement: b,
|
|
327
|
-
rightElementClassName:
|
|
328
|
-
size:
|
|
327
|
+
rightElementClassName: v,
|
|
328
|
+
size: N = "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 = `${n} 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: o,
|
|
339
339
|
inputClassName: l,
|
|
340
|
-
error:
|
|
340
|
+
error: r,
|
|
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: N,
|
|
347
|
+
rightElementClassName: v
|
|
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 R, C;
|
|
353
|
+
const { label: q, helperText: G } = V[N];
|
|
354
|
+
(R = A == null ? void 0 : A.current) == null || R.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
|
-
}, [
|
|
358
|
+
}, [N]), /* @__PURE__ */ H("div", { className: h.wrapper, children: [
|
|
359
359
|
/* @__PURE__ */ f(
|
|
360
360
|
"label",
|
|
361
361
|
{
|
|
362
362
|
htmlFor: k,
|
|
363
|
-
id:
|
|
363
|
+
id: s,
|
|
364
364
|
className: h.accessibleLabel,
|
|
365
365
|
children: t
|
|
366
366
|
}
|
|
@@ -370,13 +370,13 @@ const se = ({
|
|
|
370
370
|
{
|
|
371
371
|
ref: M,
|
|
372
372
|
id: k,
|
|
373
|
-
name:
|
|
373
|
+
name: n,
|
|
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
|
+
...r && { "aria-invalid": "true" },
|
|
380
380
|
...b && !a && { style: { paddingRight: O } },
|
|
381
381
|
...U
|
|
382
382
|
}
|
|
@@ -408,14 +408,14 @@ const se = ({
|
|
|
408
408
|
children: b
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
|
-
|
|
411
|
+
r && 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
|
+
I 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,
|
|
@@ -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.CBImAF4q.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.CBImAF4q.js";
|
|
2
2
|
import { TextInputMask as P } from "./components/TextInput/TextInputMask.js";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-textinput v4.0.
|
|
4
|
+
@versini/ui-textinput v4.0.3
|
|
5
5
|
© 2025 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
9
|
-
version: "4.0.
|
|
10
|
-
buildTime: "
|
|
9
|
+
version: "4.0.3",
|
|
10
|
+
buildTime: "05/26/2025 03:48 PM EDT",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-textinput",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "5.0.
|
|
42
|
+
"@versini/ui-types": "5.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
46
|
"@versini/ui-hooks": "4.7.3",
|
|
47
|
-
"@versini/ui-liveregion": "2.0.
|
|
47
|
+
"@versini/ui-liveregion": "2.0.3",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
|
-
"tailwindcss": "4.1.
|
|
49
|
+
"tailwindcss": "4.1.7"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": [
|
|
52
52
|
"**/*.css"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "863a399128080a19f2668e458d495110aa0f68f8"
|
|
55
55
|
}
|