@versini/ui-textinput 1.1.6 → 1.2.0
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,14 +1,14 @@
|
|
|
1
|
-
import { jsx as f, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function
|
|
1
|
+
import { jsx as f, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import G, { useRef as y, useEffect as R, useCallback as J, useState as L, useMemo as K, useId as Q, useReducer as Y, useLayoutEffect as S } from "react";
|
|
3
|
+
import c from "clsx";
|
|
4
|
+
const D = "av-text-input", be = "av-text-input-simple", Z = "av-text-input-wrapper", C = "av-text-input-helper-text";
|
|
5
|
+
function B() {
|
|
6
6
|
const e = y(!1);
|
|
7
|
-
return
|
|
7
|
+
return R(() => (e.current = !0, () => {
|
|
8
8
|
e.current = !1;
|
|
9
|
-
}), []),
|
|
9
|
+
}), []), J(() => e.current, []);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const ee = {
|
|
12
12
|
x: 0,
|
|
13
13
|
y: 0,
|
|
14
14
|
width: 0,
|
|
@@ -18,19 +18,19 @@ const B = {
|
|
|
18
18
|
bottom: 0,
|
|
19
19
|
right: 0
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
const r =
|
|
21
|
+
function te(e) {
|
|
22
|
+
const r = B(), t = y(0), n = y(null), [l, o] = L(ee), a = K(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((u) => {
|
|
23
23
|
const p = u[0];
|
|
24
24
|
p && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
25
|
-
n.current && r() &&
|
|
25
|
+
n.current && r() && o(p.contentRect);
|
|
26
26
|
}));
|
|
27
27
|
}), [r]);
|
|
28
|
-
return
|
|
28
|
+
return R(() => (n.current && (a == null || a.observe(n.current, e)), () => {
|
|
29
29
|
a == null || a.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
30
30
|
}), [a, e]), [n, l];
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const r =
|
|
32
|
+
function re(e) {
|
|
33
|
+
const r = Q();
|
|
34
34
|
if (!e)
|
|
35
35
|
return r;
|
|
36
36
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -40,7 +40,7 @@ function te(e) {
|
|
|
40
40
|
return typeof t == "number" || typeof t == "string" ? `${n}${t}` : `${n}${r}`;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const w = "SET_ANNOUNCEMENT", M = "CLEAR_ANNOUNCEMENT", ne = {
|
|
44
44
|
alert: null,
|
|
45
45
|
alertdialog: null,
|
|
46
46
|
log: "polite",
|
|
@@ -48,14 +48,14 @@ const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", re = {
|
|
|
48
48
|
progressbar: null,
|
|
49
49
|
status: "polite",
|
|
50
50
|
timer: "assertive"
|
|
51
|
-
},
|
|
51
|
+
}, le = (e, r) => {
|
|
52
52
|
switch (r == null ? void 0 : r.type) {
|
|
53
|
-
case
|
|
53
|
+
case w:
|
|
54
54
|
return {
|
|
55
55
|
...e,
|
|
56
56
|
announcement: r.payload
|
|
57
57
|
};
|
|
58
|
-
case
|
|
58
|
+
case M:
|
|
59
59
|
return {
|
|
60
60
|
...e,
|
|
61
61
|
announcement: null
|
|
@@ -63,12 +63,12 @@ const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", re = {
|
|
|
63
63
|
default:
|
|
64
64
|
return e;
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, ae = ({
|
|
67
67
|
onAnnouncementClear: e,
|
|
68
68
|
dispatch: r
|
|
69
69
|
}) => {
|
|
70
70
|
r({
|
|
71
|
-
type:
|
|
71
|
+
type: M
|
|
72
72
|
}), typeof e == "function" && e();
|
|
73
73
|
}, P = ({
|
|
74
74
|
children: e,
|
|
@@ -78,70 +78,70 @@ const D = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", re = {
|
|
|
78
78
|
dispatch: l
|
|
79
79
|
}) => {
|
|
80
80
|
(t == null ? void 0 : t.current) !== null && clearTimeout(t.current), e !== null && l({
|
|
81
|
-
type:
|
|
81
|
+
type: w,
|
|
82
82
|
payload: e
|
|
83
83
|
}), r && (t.current = setTimeout(
|
|
84
|
-
() =>
|
|
84
|
+
() => ae({
|
|
85
85
|
onAnnouncementClear: n,
|
|
86
86
|
dispatch: l
|
|
87
87
|
}),
|
|
88
88
|
r
|
|
89
89
|
));
|
|
90
|
-
},
|
|
90
|
+
}, ce = ({
|
|
91
91
|
children: e,
|
|
92
92
|
announcementTimeoutRef: r,
|
|
93
93
|
announcementDelay: t,
|
|
94
94
|
clearAnnouncementDelay: n,
|
|
95
95
|
clearAnnouncementTimeoutRef: l,
|
|
96
|
-
onAnnouncementClear:
|
|
96
|
+
onAnnouncementClear: o,
|
|
97
97
|
dispatch: a
|
|
98
98
|
}) => {
|
|
99
99
|
clearTimeout(r.current), t ? r.current = setTimeout(P, t, {
|
|
100
100
|
children: e,
|
|
101
101
|
clearAnnouncementDelay: n,
|
|
102
102
|
clearAnnouncementTimeoutRef: l,
|
|
103
|
-
onAnnouncementClear:
|
|
103
|
+
onAnnouncementClear: o,
|
|
104
104
|
dispatch: a
|
|
105
105
|
}) : P({
|
|
106
106
|
children: e,
|
|
107
107
|
clearAnnouncementDelay: n,
|
|
108
108
|
clearAnnouncementTimeoutRef: l,
|
|
109
|
-
onAnnouncementClear:
|
|
109
|
+
onAnnouncementClear: o,
|
|
110
110
|
dispatch: a
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function oe({
|
|
114
114
|
children: e,
|
|
115
115
|
className: r,
|
|
116
116
|
politeness: t,
|
|
117
117
|
role: n = null,
|
|
118
118
|
announcementDelay: l,
|
|
119
|
-
clearAnnouncementDelay:
|
|
119
|
+
clearAnnouncementDelay: o,
|
|
120
120
|
onAnnouncementClear: a,
|
|
121
121
|
visible: u,
|
|
122
122
|
...p
|
|
123
123
|
}) {
|
|
124
|
-
const m = y(), x = y(), [
|
|
124
|
+
const m = y(), x = y(), [g, s] = Y(le, {
|
|
125
125
|
announcement: null
|
|
126
126
|
});
|
|
127
127
|
let d = t;
|
|
128
|
-
typeof d > "u" && (d = n ?
|
|
129
|
-
|
|
128
|
+
typeof d > "u" && (d = n ? ne[n] : "assertive"), R(() => {
|
|
129
|
+
ce({
|
|
130
130
|
announcementTimeoutRef: m,
|
|
131
131
|
announcementDelay: l,
|
|
132
132
|
children: e,
|
|
133
|
-
clearAnnouncementDelay:
|
|
133
|
+
clearAnnouncementDelay: o,
|
|
134
134
|
clearAnnouncementTimeoutRef: x,
|
|
135
135
|
onAnnouncementClear: a,
|
|
136
|
-
dispatch:
|
|
136
|
+
dispatch: s
|
|
137
137
|
});
|
|
138
138
|
}, [
|
|
139
139
|
e,
|
|
140
140
|
l,
|
|
141
|
-
|
|
141
|
+
o,
|
|
142
142
|
a
|
|
143
143
|
]);
|
|
144
|
-
const i =
|
|
144
|
+
const i = c(r, {
|
|
145
145
|
"sr-only": !u
|
|
146
146
|
});
|
|
147
147
|
return /* @__PURE__ */ f(
|
|
@@ -151,11 +151,11 @@ function ce({
|
|
|
151
151
|
...n && { role: n },
|
|
152
152
|
className: i,
|
|
153
153
|
...p,
|
|
154
|
-
children:
|
|
154
|
+
children: g.announcement
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const se = (e) => {
|
|
159
159
|
let r = "";
|
|
160
160
|
if (typeof e == "number" || typeof e == "string")
|
|
161
161
|
r = "m-" + e;
|
|
@@ -172,35 +172,35 @@ const oe = (e) => {
|
|
|
172
172
|
try {
|
|
173
173
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
174
174
|
version: "1.4.17",
|
|
175
|
-
buildTime: "09/
|
|
175
|
+
buildTime: "09/30/2024 09:27 AM EDT",
|
|
176
176
|
homepage: "https://github.com/aversini/ui-components",
|
|
177
177
|
license: "MIT"
|
|
178
178
|
});
|
|
179
179
|
} catch {
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const ue = ({
|
|
182
182
|
mode: e
|
|
183
|
-
}) =>
|
|
183
|
+
}) => c({
|
|
184
184
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
185
185
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
186
186
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
187
187
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
188
|
-
}),
|
|
188
|
+
}), ie = ({
|
|
189
189
|
focusMode: e
|
|
190
|
-
}) =>
|
|
190
|
+
}) => c("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
191
191
|
"focus:outline-focus-dark": e === "dark",
|
|
192
192
|
"focus:outline-focus-light": e === "light",
|
|
193
193
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
194
194
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
195
|
-
}),
|
|
195
|
+
}), pe = ({
|
|
196
196
|
noBorder: e,
|
|
197
197
|
error: r
|
|
198
|
-
}) =>
|
|
198
|
+
}) => c("border-2", {
|
|
199
199
|
"border-border-dark": !e && !r,
|
|
200
200
|
"focus:border-border-dark": !e && r,
|
|
201
201
|
"border-border-error-dark": !e && r,
|
|
202
202
|
"border-transparent": e
|
|
203
|
-
}),
|
|
203
|
+
}), de = ({
|
|
204
204
|
disabled: e,
|
|
205
205
|
raw: r,
|
|
206
206
|
error: t,
|
|
@@ -209,22 +209,22 @@ const se = ({
|
|
|
209
209
|
if (r)
|
|
210
210
|
return "";
|
|
211
211
|
if (e)
|
|
212
|
-
return
|
|
212
|
+
return c("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
213
213
|
if (!t)
|
|
214
|
-
return
|
|
214
|
+
return c("absolute px-2 cursor-text font-medium", {
|
|
215
215
|
"text-copy-lighter": n === "dark",
|
|
216
216
|
"text-copy-dark": n === "light",
|
|
217
217
|
"text-copy-dark dark:text-copy-lighter": n === "system",
|
|
218
218
|
"text-copy-lighter dark:text-copy-dark": n === "alt-system"
|
|
219
219
|
});
|
|
220
220
|
if (t)
|
|
221
|
-
return
|
|
221
|
+
return c("absolute px-2 cursor-text font-medium", {
|
|
222
222
|
"text-copy-lighter": n === "dark",
|
|
223
223
|
"text-copy-error-dark": n === "light",
|
|
224
224
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": n === "system",
|
|
225
225
|
"text-copy-lighter dark:text-copy-error-dark": n === "alt-system"
|
|
226
226
|
});
|
|
227
|
-
},
|
|
227
|
+
}, fe = ({
|
|
228
228
|
error: e,
|
|
229
229
|
raw: r,
|
|
230
230
|
mode: t,
|
|
@@ -233,41 +233,42 @@ const se = ({
|
|
|
233
233
|
if (r)
|
|
234
234
|
return "";
|
|
235
235
|
if (n)
|
|
236
|
-
return
|
|
237
|
-
|
|
236
|
+
return c(
|
|
237
|
+
C,
|
|
238
238
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
239
239
|
);
|
|
240
240
|
if (!e)
|
|
241
|
-
return
|
|
241
|
+
return c(C, "absolute px-2 font-medium", {
|
|
242
242
|
"text-copy-lighter": t === "dark",
|
|
243
243
|
"text-copy-dark": t === "light",
|
|
244
244
|
"text-copy-dark dark:text-copy-lighter": t === "system",
|
|
245
245
|
"text-copy-lighter dark:text-copy-dark": t === "alt-system"
|
|
246
246
|
});
|
|
247
247
|
if (e)
|
|
248
|
-
return
|
|
248
|
+
return c(C, "absolute px-2 font-medium", {
|
|
249
249
|
"text-copy-error-light bg-surface-darker": t === "dark",
|
|
250
250
|
"text-copy-error-dark": t === "light",
|
|
251
251
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": t === "system",
|
|
252
252
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": t === "alt-system"
|
|
253
253
|
});
|
|
254
|
-
},
|
|
254
|
+
}, ye = ({
|
|
255
255
|
className: e,
|
|
256
256
|
inputClassName: r,
|
|
257
257
|
raw: t,
|
|
258
258
|
disabled: n,
|
|
259
259
|
noBorder: l,
|
|
260
|
-
error:
|
|
260
|
+
error: o,
|
|
261
261
|
spacing: a,
|
|
262
262
|
mode: u,
|
|
263
263
|
focusMode: p,
|
|
264
|
-
size: m
|
|
264
|
+
size: m,
|
|
265
|
+
rightElementClassName: x
|
|
265
266
|
}) => {
|
|
266
|
-
const
|
|
267
|
+
const g = t ? e : c(
|
|
267
268
|
"relative flex w-full flex-col justify-center",
|
|
268
|
-
|
|
269
|
+
Z,
|
|
269
270
|
e,
|
|
270
|
-
|
|
271
|
+
se(a)
|
|
271
272
|
);
|
|
272
273
|
let s = "";
|
|
273
274
|
switch (m) {
|
|
@@ -287,91 +288,93 @@ const se = ({
|
|
|
287
288
|
s = "h-12";
|
|
288
289
|
break;
|
|
289
290
|
}
|
|
290
|
-
const
|
|
291
|
-
|
|
291
|
+
const d = t ? c(r) : c(
|
|
292
|
+
D,
|
|
292
293
|
r,
|
|
293
294
|
s,
|
|
294
295
|
"rounded-md text-base px-4",
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
ue({ mode: u }),
|
|
297
|
+
ie({ focusMode: p }),
|
|
298
|
+
pe({ noBorder: l, error: o }),
|
|
298
299
|
{
|
|
299
300
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
300
301
|
}
|
|
301
|
-
),
|
|
302
|
+
), i = t ? void 0 : "sr-only", b = de({
|
|
302
303
|
disabled: n,
|
|
303
304
|
raw: t,
|
|
304
|
-
error:
|
|
305
|
+
error: o,
|
|
305
306
|
mode: u
|
|
306
|
-
}),
|
|
307
|
-
error:
|
|
307
|
+
}), E = fe({
|
|
308
|
+
error: o,
|
|
308
309
|
raw: t,
|
|
309
310
|
mode: u,
|
|
310
311
|
disabled: n
|
|
311
|
-
});
|
|
312
|
+
}), I = t ? void 0 : c("absolute right-3", x);
|
|
312
313
|
return {
|
|
313
|
-
wrapper:
|
|
314
|
-
input:
|
|
315
|
-
accessibleLabel:
|
|
316
|
-
visibleLabel:
|
|
317
|
-
helperText:
|
|
318
|
-
rightElement:
|
|
314
|
+
wrapper: g,
|
|
315
|
+
input: d,
|
|
316
|
+
accessibleLabel: i,
|
|
317
|
+
visibleLabel: b,
|
|
318
|
+
helperText: E,
|
|
319
|
+
rightElement: I
|
|
319
320
|
};
|
|
320
|
-
},
|
|
321
|
+
}, me = G.forwardRef(
|
|
321
322
|
({
|
|
322
323
|
id: e,
|
|
323
324
|
name: r,
|
|
324
325
|
label: t,
|
|
325
326
|
error: n = !1,
|
|
326
327
|
raw: l = !1,
|
|
327
|
-
className:
|
|
328
|
+
className: o,
|
|
328
329
|
inputClassName: a,
|
|
329
330
|
mode: u = "system",
|
|
330
331
|
focusMode: p = "system",
|
|
331
332
|
disabled: m = !1,
|
|
332
333
|
noBorder: x = !1,
|
|
333
|
-
labelId:
|
|
334
|
-
labelHidden:
|
|
334
|
+
labelId: g,
|
|
335
|
+
labelHidden: s = !1,
|
|
335
336
|
type: d = "text",
|
|
336
337
|
helperText: i = "",
|
|
337
338
|
rightElement: b,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
339
|
+
rightElementClassName: E,
|
|
340
|
+
spacing: I,
|
|
341
|
+
size: _ = "md",
|
|
342
|
+
...U
|
|
343
|
+
}, j) => {
|
|
344
|
+
const [F, T] = te(), [O, X] = L(0), k = re({ id: e, prefix: `${D}-` }), V = `${r} error, ${i}`, A = y(null), v = y(null), q = {
|
|
343
345
|
xs: { label: "-25px", helperText: "30px" },
|
|
344
346
|
sm: { label: "-29px", helperText: "34px" },
|
|
345
347
|
md: { label: "-33px", helperText: "38px" },
|
|
346
348
|
lg: { label: "-15px", helperText: "22px" },
|
|
347
349
|
xl: { label: "-19px", helperText: "25px" }
|
|
348
|
-
}, h =
|
|
349
|
-
className:
|
|
350
|
+
}, h = ye({
|
|
351
|
+
className: o,
|
|
350
352
|
inputClassName: a,
|
|
351
353
|
error: n,
|
|
352
354
|
raw: l,
|
|
353
355
|
focusMode: p,
|
|
354
356
|
disabled: m,
|
|
355
357
|
noBorder: x,
|
|
356
|
-
spacing:
|
|
358
|
+
spacing: I,
|
|
357
359
|
mode: u,
|
|
358
|
-
size:
|
|
360
|
+
size: _,
|
|
361
|
+
rightElementClassName: E
|
|
359
362
|
});
|
|
360
|
-
return
|
|
361
|
-
T && T.width &&
|
|
362
|
-
}, [T]),
|
|
363
|
-
var
|
|
364
|
-
const { label:
|
|
365
|
-
(
|
|
363
|
+
return S(() => {
|
|
364
|
+
T && T.width && X(T.width + 18 + 10);
|
|
365
|
+
}, [T]), S(() => {
|
|
366
|
+
var N, $;
|
|
367
|
+
const { label: H, helperText: z } = q[_];
|
|
368
|
+
(N = A == null ? void 0 : A.current) == null || N.style.setProperty("--av-text-input-label", H), ($ = v == null ? void 0 : v.current) == null || $.style.setProperty(
|
|
366
369
|
"--av-text-input-helper-text",
|
|
367
|
-
|
|
370
|
+
z
|
|
368
371
|
);
|
|
369
|
-
}, [
|
|
372
|
+
}, [_]), /* @__PURE__ */ W("div", { className: h.wrapper, children: [
|
|
370
373
|
/* @__PURE__ */ f(
|
|
371
374
|
"label",
|
|
372
375
|
{
|
|
373
376
|
htmlFor: k,
|
|
374
|
-
id:
|
|
377
|
+
id: g,
|
|
375
378
|
className: h.accessibleLabel,
|
|
376
379
|
children: t
|
|
377
380
|
}
|
|
@@ -379,7 +382,7 @@ const se = ({
|
|
|
379
382
|
/* @__PURE__ */ f(
|
|
380
383
|
"input",
|
|
381
384
|
{
|
|
382
|
-
ref:
|
|
385
|
+
ref: j,
|
|
383
386
|
id: k,
|
|
384
387
|
name: r,
|
|
385
388
|
type: d,
|
|
@@ -388,14 +391,14 @@ const se = ({
|
|
|
388
391
|
className: h.input,
|
|
389
392
|
...i && { "aria-describedby": `${k}-helper` },
|
|
390
393
|
...n && { "aria-invalid": "true" },
|
|
391
|
-
...b && !l && { style: { paddingRight:
|
|
392
|
-
...
|
|
394
|
+
...b && !l && { style: { paddingRight: O } },
|
|
395
|
+
...U
|
|
393
396
|
}
|
|
394
397
|
),
|
|
395
|
-
!l && !
|
|
398
|
+
!l && !s && /* @__PURE__ */ f(
|
|
396
399
|
"label",
|
|
397
400
|
{
|
|
398
|
-
ref:
|
|
401
|
+
ref: A,
|
|
399
402
|
"aria-hidden": !0,
|
|
400
403
|
htmlFor: k,
|
|
401
404
|
className: h.visibleLabel,
|
|
@@ -405,7 +408,7 @@ const se = ({
|
|
|
405
408
|
i && /* @__PURE__ */ f(
|
|
406
409
|
"div",
|
|
407
410
|
{
|
|
408
|
-
ref:
|
|
411
|
+
ref: v,
|
|
409
412
|
id: `${k}-helper`,
|
|
410
413
|
className: h.helperText,
|
|
411
414
|
children: i
|
|
@@ -414,21 +417,21 @@ const se = ({
|
|
|
414
417
|
b && /* @__PURE__ */ f(
|
|
415
418
|
"div",
|
|
416
419
|
{
|
|
417
|
-
ref:
|
|
420
|
+
ref: F,
|
|
418
421
|
className: h.rightElement,
|
|
419
422
|
children: b
|
|
420
423
|
}
|
|
421
424
|
),
|
|
422
|
-
n && i && /* @__PURE__ */ f(
|
|
425
|
+
n && i && /* @__PURE__ */ f(oe, { politeness: "polite", clearAnnouncementDelay: 500, children: V })
|
|
423
426
|
] });
|
|
424
427
|
}
|
|
425
428
|
);
|
|
426
|
-
|
|
429
|
+
me.displayName = "TextInput";
|
|
427
430
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
431
|
+
D as TEXT_INPUT_CLASSNAME,
|
|
432
|
+
C as TEXT_INPUT_HELPER_TEXT_CLASSNAME,
|
|
433
|
+
be as TEXT_INPUT_SIMPLE_CLASSNAME,
|
|
434
|
+
Z as TEXT_INPUT_WRAPPER_CLASSNAME,
|
|
435
|
+
me as TextInput,
|
|
436
|
+
oe as j
|
|
434
437
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextInput as H, j as L } from "../../chunks/TextInput.
|
|
1
|
+
import { TextInput as H, j as L } from "../../chunks/TextInput.ByT_qkyR.js";
|
|
2
2
|
import { jsxs as j, Fragment as B, jsx as w } from "react/jsx-runtime";
|
|
3
3
|
import A, { useMemo as b, useState as _, useRef as m, useEffect as $ } from "react";
|
|
4
4
|
function q(r) {
|
package/dist/index.d.ts
CHANGED
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.
|
|
2
|
-
import { TextInputMask as
|
|
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.ByT_qkyR.js";
|
|
2
|
+
import { TextInputMask as S } from "./components/TextInput/TextInputMask.js";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-textinput v1.
|
|
4
|
+
@versini/ui-textinput v1.2.0
|
|
5
5
|
© 2024 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
9
|
-
version: "1.
|
|
10
|
-
buildTime: "09/
|
|
9
|
+
version: "1.2.0",
|
|
10
|
+
buildTime: "09/30/2024 09:28 AM EDT",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
|
@@ -19,5 +19,5 @@ export {
|
|
|
19
19
|
o as TEXT_INPUT_SIMPLE_CLASSNAME,
|
|
20
20
|
t as TEXT_INPUT_WRAPPER_CLASSNAME,
|
|
21
21
|
N as TextInput,
|
|
22
|
-
|
|
22
|
+
S as TextInputMask
|
|
23
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-textinput",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"sideEffects": [
|
|
48
48
|
"**/*.css"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "9cced954bca31bcfa598b09dabd5e95a10184896"
|
|
51
51
|
}
|