@purpurds/text-field 7.5.1 → 7.6.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.
- package/dist/LICENSE.txt +6 -6
- package/dist/text-field.cjs.js +10 -10
- package/dist/text-field.cjs.js.map +1 -1
- package/dist/text-field.d.ts +5 -0
- package/dist/text-field.d.ts.map +1 -1
- package/dist/text-field.es.js +239 -238
- package/dist/text-field.es.js.map +1 -1
- package/package.json +8 -8
- package/src/text-field.stories.tsx +1 -0
- package/src/text-field.test.tsx +14 -0
- package/src/text-field.tsx +7 -2
package/dist/text-field.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as p, Fragment as Nr } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as fr, useRef as Or, useId as jr, isValidElement as qr } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const kr = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function Mr(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var F = { exports: {} };
|
|
12
12
|
/*!
|
|
13
13
|
Copyright (c) 2018 Jed Watson.
|
|
14
14
|
Licensed under the MIT License (MIT), see
|
|
15
15
|
http://jedwatson.github.io/classnames
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
var Z;
|
|
18
|
+
function Cr() {
|
|
19
|
+
return Z || (Z = 1, function(t) {
|
|
20
20
|
(function() {
|
|
21
21
|
var u = {}.hasOwnProperty;
|
|
22
22
|
function n() {
|
|
@@ -45,41 +45,41 @@ function Mr() {
|
|
|
45
45
|
}
|
|
46
46
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
47
47
|
})();
|
|
48
|
-
}(
|
|
48
|
+
}(F)), F.exports;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
const
|
|
50
|
+
var Ar = Cr();
|
|
51
|
+
const W = /* @__PURE__ */ Mr(Ar), Rr = "_rotate_12t9p_1", Br = "_dash_12t9p_1", w = {
|
|
52
52
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
53
|
-
rotate:
|
|
53
|
+
rotate: Rr,
|
|
54
54
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
55
55
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
56
56
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
57
57
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
58
58
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
59
59
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
60
|
-
dash:
|
|
60
|
+
dash: Br,
|
|
61
61
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
62
62
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
63
|
-
},
|
|
63
|
+
}, S = "purpur-spinner", Ir = {
|
|
64
64
|
SM: "sm"
|
|
65
|
-
},
|
|
65
|
+
}, Er = ({
|
|
66
66
|
["data-testid"]: t,
|
|
67
67
|
disabled: u = !1,
|
|
68
68
|
negative: n = !1,
|
|
69
|
-
size: a =
|
|
69
|
+
size: a = Ir.SM,
|
|
70
70
|
...l
|
|
71
71
|
}) => /* @__PURE__ */ p(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
74
|
+
className: W([w[S], w[`${S}--${a}`]]),
|
|
75
75
|
"data-testid": t,
|
|
76
76
|
...l,
|
|
77
77
|
children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
|
|
78
78
|
"circle",
|
|
79
79
|
{
|
|
80
|
-
className:
|
|
81
|
-
[
|
|
82
|
-
[
|
|
80
|
+
className: W(w[`${S}__circle`], {
|
|
81
|
+
[w[`${S}__circle--disabled`]]: u,
|
|
82
|
+
[w[`${S}__circle--negative`]]: n
|
|
83
83
|
}),
|
|
84
84
|
cx: "25",
|
|
85
85
|
cy: "25",
|
|
@@ -88,18 +88,18 @@ const Z = /* @__PURE__ */ kr(Cr), Ar = "_rotate_12t9p_1", Rr = "_dash_12t9p_1",
|
|
|
88
88
|
) })
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
|
-
function
|
|
91
|
+
function Pr(t) {
|
|
92
92
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var T = { exports: {} };
|
|
95
95
|
/*!
|
|
96
96
|
Copyright (c) 2018 Jed Watson.
|
|
97
97
|
Licensed under the MIT License (MIT), see
|
|
98
98
|
http://jedwatson.github.io/classnames
|
|
99
99
|
*/
|
|
100
|
-
var
|
|
101
|
-
function
|
|
102
|
-
return
|
|
100
|
+
var G;
|
|
101
|
+
function Vr() {
|
|
102
|
+
return G || (G = 1, function(t) {
|
|
103
103
|
(function() {
|
|
104
104
|
var u = {}.hasOwnProperty;
|
|
105
105
|
function n() {
|
|
@@ -128,10 +128,10 @@ function Pr() {
|
|
|
128
128
|
}
|
|
129
129
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
130
130
|
})();
|
|
131
|
-
}(
|
|
131
|
+
}(T)), T.exports;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
133
|
+
var zr = Vr();
|
|
134
|
+
const Dr = /* @__PURE__ */ Pr(zr), Lr = {
|
|
135
135
|
"purpur-button": "_purpur-button_w455q_1",
|
|
136
136
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
137
137
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -153,7 +153,7 @@ const zr = /* @__PURE__ */ Er(Vr), Dr = {
|
|
|
153
153
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
154
154
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
155
155
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
156
|
-
},
|
|
156
|
+
}, Fr = Dr.bind(Lr), g = "purpur-button", Zr = ({
|
|
157
157
|
children: t,
|
|
158
158
|
className: u,
|
|
159
159
|
["data-testid"]: n,
|
|
@@ -163,60 +163,60 @@ const zr = /* @__PURE__ */ Er(Vr), Dr = {
|
|
|
163
163
|
loading: e = !1,
|
|
164
164
|
negative: i = !1,
|
|
165
165
|
onClick: v,
|
|
166
|
-
size:
|
|
167
|
-
variant:
|
|
168
|
-
type:
|
|
169
|
-
...
|
|
170
|
-
},
|
|
171
|
-
if (r &&
|
|
166
|
+
size: $ = "md",
|
|
167
|
+
variant: y,
|
|
168
|
+
type: b = "button",
|
|
169
|
+
...j
|
|
170
|
+
}, k) => {
|
|
171
|
+
if (r && y === "destructive")
|
|
172
172
|
return null;
|
|
173
|
-
const
|
|
173
|
+
const o = Fr(
|
|
174
174
|
[
|
|
175
|
-
|
|
176
|
-
`${
|
|
177
|
-
`${
|
|
175
|
+
g,
|
|
176
|
+
`${g}--${i ? `${y}-negative` : y}`,
|
|
177
|
+
`${g}--${$}`
|
|
178
178
|
],
|
|
179
179
|
{
|
|
180
|
-
[`${
|
|
181
|
-
[`${
|
|
182
|
-
[`${
|
|
183
|
-
[`${
|
|
180
|
+
[`${g}--icon-only`]: r,
|
|
181
|
+
[`${g}--negative`]: i,
|
|
182
|
+
[`${g}--full-width`]: l,
|
|
183
|
+
[`${g}--disabled`]: a || e
|
|
184
184
|
},
|
|
185
185
|
u
|
|
186
|
-
),
|
|
187
|
-
a || e ?
|
|
188
|
-
},
|
|
189
|
-
return /* @__PURE__ */
|
|
186
|
+
), x = (h) => {
|
|
187
|
+
a || e ? h.preventDefault() : v && v(h);
|
|
188
|
+
}, q = !!j["aria-disabled"] || a || e;
|
|
189
|
+
return /* @__PURE__ */ m(
|
|
190
190
|
"button",
|
|
191
191
|
{
|
|
192
|
-
className:
|
|
192
|
+
className: o,
|
|
193
193
|
"data-testid": n,
|
|
194
|
-
type:
|
|
195
|
-
ref:
|
|
196
|
-
"aria-disabled":
|
|
197
|
-
onClick:
|
|
198
|
-
...
|
|
194
|
+
type: b,
|
|
195
|
+
ref: k,
|
|
196
|
+
"aria-disabled": q,
|
|
197
|
+
onClick: x,
|
|
198
|
+
...j,
|
|
199
199
|
children: [
|
|
200
|
-
e && /* @__PURE__ */ p(
|
|
200
|
+
e && /* @__PURE__ */ p(Er, { size: $ === kr.LG ? "xs" : "xxs", negative: i, disabled: q }),
|
|
201
201
|
" ",
|
|
202
202
|
t
|
|
203
203
|
]
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
function
|
|
206
|
+
}, vr = fr(Zr);
|
|
207
|
+
vr.displayName = "Button";
|
|
208
|
+
function Wr(t) {
|
|
209
209
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var H = { exports: {} };
|
|
212
212
|
/*!
|
|
213
213
|
Copyright (c) 2018 Jed Watson.
|
|
214
214
|
Licensed under the MIT License (MIT), see
|
|
215
215
|
http://jedwatson.github.io/classnames
|
|
216
216
|
*/
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
return
|
|
217
|
+
var U;
|
|
218
|
+
function Tr() {
|
|
219
|
+
return U || (U = 1, function(t) {
|
|
220
220
|
(function() {
|
|
221
221
|
var u = {}.hasOwnProperty;
|
|
222
222
|
function n() {
|
|
@@ -245,10 +245,10 @@ function Wr() {
|
|
|
245
245
|
}
|
|
246
246
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
247
247
|
})();
|
|
248
|
-
}(
|
|
248
|
+
}(H)), H.exports;
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
const
|
|
250
|
+
var Gr = Tr();
|
|
251
|
+
const Hr = /* @__PURE__ */ Wr(Gr), Ur = {
|
|
252
252
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
253
253
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
254
254
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -256,26 +256,26 @@ const Gr = /* @__PURE__ */ Zr(Tr), Hr = {
|
|
|
256
256
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
257
257
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
258
258
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
259
|
-
},
|
|
259
|
+
}, Xr = Hr.bind(Ur), X = "purpur-icon", Yr = "md", Jr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Kr = ({ content: t = "", title: u } = {}) => {
|
|
260
260
|
const n = [
|
|
261
261
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
262
262
|
{ name: "fill", value: "currentColor" },
|
|
263
263
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
264
264
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
265
265
|
], a = u ? `<title>${u}</title>` : "";
|
|
266
|
-
return `<svg ${
|
|
267
|
-
},
|
|
266
|
+
return `<svg ${Jr(n)}>${a}${t}</svg>`;
|
|
267
|
+
}, Qr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), gr = ({
|
|
268
268
|
["data-testid"]: t,
|
|
269
269
|
svg: u,
|
|
270
270
|
allyTitle: n,
|
|
271
271
|
className: a,
|
|
272
|
-
size: l =
|
|
272
|
+
size: l = Yr,
|
|
273
273
|
...r
|
|
274
274
|
}) => {
|
|
275
|
-
const e =
|
|
276
|
-
content:
|
|
275
|
+
const e = Kr({
|
|
276
|
+
content: Qr(u.svg),
|
|
277
277
|
title: n
|
|
278
|
-
}), i =
|
|
278
|
+
}), i = Xr(a, X, `${X}--${l}`);
|
|
279
279
|
return /* @__PURE__ */ p(
|
|
280
280
|
"span",
|
|
281
281
|
{
|
|
@@ -286,25 +286,25 @@ const Gr = /* @__PURE__ */ Zr(Tr), Hr = {
|
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
288
|
};
|
|
289
|
-
|
|
290
|
-
const
|
|
289
|
+
gr.displayName = "Icon";
|
|
290
|
+
const rt = {
|
|
291
291
|
name: "error-filled",
|
|
292
292
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
293
293
|
keywords: ["error-filled"],
|
|
294
294
|
category: "status"
|
|
295
295
|
};
|
|
296
|
-
function
|
|
296
|
+
function tt(t) {
|
|
297
297
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var Y = { exports: {} };
|
|
300
300
|
/*!
|
|
301
301
|
Copyright (c) 2018 Jed Watson.
|
|
302
302
|
Licensed under the MIT License (MIT), see
|
|
303
303
|
http://jedwatson.github.io/classnames
|
|
304
304
|
*/
|
|
305
|
-
var
|
|
306
|
-
function
|
|
307
|
-
return
|
|
305
|
+
var J;
|
|
306
|
+
function et() {
|
|
307
|
+
return J || (J = 1, function(t) {
|
|
308
308
|
(function() {
|
|
309
309
|
var u = {}.hasOwnProperty;
|
|
310
310
|
function n() {
|
|
@@ -333,42 +333,42 @@ function tt() {
|
|
|
333
333
|
}
|
|
334
334
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
335
335
|
})();
|
|
336
|
-
}(
|
|
336
|
+
}(Y)), Y.exports;
|
|
337
337
|
}
|
|
338
|
-
var
|
|
339
|
-
const
|
|
338
|
+
var nt = et();
|
|
339
|
+
const it = /* @__PURE__ */ tt(nt), K = {
|
|
340
340
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
341
341
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
342
|
-
},
|
|
342
|
+
}, Q = "purpur-field-error-text", ut = ({
|
|
343
343
|
children: t,
|
|
344
344
|
className: u,
|
|
345
345
|
["aria-relevant"]: n = "additions text",
|
|
346
346
|
...a
|
|
347
|
-
}) => /* @__PURE__ */
|
|
347
|
+
}) => /* @__PURE__ */ m(
|
|
348
348
|
"div",
|
|
349
349
|
{
|
|
350
|
-
className:
|
|
350
|
+
className: it([u, K[Q]]),
|
|
351
351
|
"aria-live": "assertive",
|
|
352
352
|
"aria-relevant": n,
|
|
353
353
|
...a,
|
|
354
354
|
children: [
|
|
355
|
-
/* @__PURE__ */ p(
|
|
355
|
+
/* @__PURE__ */ p(gr, { svg: rt, size: "xs", className: K[`${Q}__icon`] }),
|
|
356
356
|
t
|
|
357
357
|
]
|
|
358
358
|
}
|
|
359
359
|
);
|
|
360
|
-
function
|
|
360
|
+
function at(t) {
|
|
361
361
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var rr = { exports: {} };
|
|
364
364
|
/*!
|
|
365
365
|
Copyright (c) 2018 Jed Watson.
|
|
366
366
|
Licensed under the MIT License (MIT), see
|
|
367
367
|
http://jedwatson.github.io/classnames
|
|
368
368
|
*/
|
|
369
|
-
var
|
|
370
|
-
function
|
|
371
|
-
return
|
|
369
|
+
var tr;
|
|
370
|
+
function lt() {
|
|
371
|
+
return tr || (tr = 1, function(t) {
|
|
372
372
|
(function() {
|
|
373
373
|
var u = {}.hasOwnProperty;
|
|
374
374
|
function n() {
|
|
@@ -397,40 +397,40 @@ function at() {
|
|
|
397
397
|
}
|
|
398
398
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
399
399
|
})();
|
|
400
|
-
}(
|
|
400
|
+
}(rr)), rr.exports;
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
const
|
|
402
|
+
var pt = lt();
|
|
403
|
+
const ot = /* @__PURE__ */ at(pt), er = {
|
|
404
404
|
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
|
|
405
405
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
|
|
406
|
-
},
|
|
406
|
+
}, nr = "purpur-field-helper-text", st = ({
|
|
407
407
|
children: t,
|
|
408
408
|
className: u,
|
|
409
409
|
disabled: n,
|
|
410
410
|
id: a,
|
|
411
411
|
...l
|
|
412
412
|
}) => {
|
|
413
|
-
const r =
|
|
413
|
+
const r = ot([
|
|
414
414
|
u,
|
|
415
|
-
|
|
415
|
+
er[nr],
|
|
416
416
|
{
|
|
417
|
-
[
|
|
417
|
+
[er[`${nr}--disabled`]]: n
|
|
418
418
|
}
|
|
419
419
|
]);
|
|
420
420
|
return /* @__PURE__ */ p("span", { id: a, className: r, ...l, children: t });
|
|
421
421
|
};
|
|
422
|
-
function
|
|
422
|
+
function ct(t) {
|
|
423
423
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var ir = { exports: {} };
|
|
426
426
|
/*!
|
|
427
427
|
Copyright (c) 2018 Jed Watson.
|
|
428
428
|
Licensed under the MIT License (MIT), see
|
|
429
429
|
http://jedwatson.github.io/classnames
|
|
430
430
|
*/
|
|
431
|
-
var
|
|
432
|
-
function
|
|
433
|
-
return
|
|
431
|
+
var ur;
|
|
432
|
+
function dt() {
|
|
433
|
+
return ur || (ur = 1, function(t) {
|
|
434
434
|
(function() {
|
|
435
435
|
var u = {}.hasOwnProperty;
|
|
436
436
|
function n() {
|
|
@@ -459,10 +459,10 @@ function ct() {
|
|
|
459
459
|
}
|
|
460
460
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
461
461
|
})();
|
|
462
|
-
}(
|
|
462
|
+
}(ir)), ir.exports;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
const
|
|
464
|
+
var _t = dt();
|
|
465
|
+
const ft = /* @__PURE__ */ ct(_t), vt = {
|
|
466
466
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
467
467
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
468
468
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -470,26 +470,26 @@ const _t = /* @__PURE__ */ st(dt), ft = {
|
|
|
470
470
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
471
471
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
472
472
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
473
|
-
},
|
|
473
|
+
}, gt = ft.bind(vt), ar = "purpur-icon", mt = "md", yt = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), bt = ({ content: t = "", title: u } = {}) => {
|
|
474
474
|
const n = [
|
|
475
475
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
476
476
|
{ name: "fill", value: "currentColor" },
|
|
477
477
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
478
478
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
479
479
|
], a = u ? `<title>${u}</title>` : "";
|
|
480
|
-
return `<svg ${
|
|
481
|
-
},
|
|
480
|
+
return `<svg ${yt(n)}>${a}${t}</svg>`;
|
|
481
|
+
}, xt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), P = ({
|
|
482
482
|
["data-testid"]: t,
|
|
483
483
|
svg: u,
|
|
484
484
|
allyTitle: n,
|
|
485
485
|
className: a,
|
|
486
|
-
size: l =
|
|
486
|
+
size: l = mt,
|
|
487
487
|
...r
|
|
488
488
|
}) => {
|
|
489
|
-
const e =
|
|
490
|
-
content:
|
|
489
|
+
const e = bt({
|
|
490
|
+
content: xt(u.svg),
|
|
491
491
|
title: n
|
|
492
|
-
}), i =
|
|
492
|
+
}), i = gt(a, ar, `${ar}--${l}`);
|
|
493
493
|
return /* @__PURE__ */ p(
|
|
494
494
|
"span",
|
|
495
495
|
{
|
|
@@ -500,65 +500,65 @@ const _t = /* @__PURE__ */ st(dt), ft = {
|
|
|
500
500
|
}
|
|
501
501
|
);
|
|
502
502
|
};
|
|
503
|
-
|
|
504
|
-
const
|
|
503
|
+
P.displayName = "Icon";
|
|
504
|
+
const ht = {
|
|
505
505
|
name: "check-circle-filled",
|
|
506
506
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
|
|
507
507
|
keywords: ["check-circle-filled"],
|
|
508
508
|
category: "status"
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
const
|
|
509
|
+
}, mr = (t) => /* @__PURE__ */ p(P, { ...t, svg: ht });
|
|
510
|
+
mr.displayName = "IconCheckCircleFilled";
|
|
511
|
+
const $t = {
|
|
512
512
|
name: "close",
|
|
513
513
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
514
514
|
keywords: ["close"],
|
|
515
515
|
category: "utility"
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
function
|
|
516
|
+
}, yr = (t) => /* @__PURE__ */ p(P, { ...t, svg: $t });
|
|
517
|
+
yr.displayName = "IconClose";
|
|
518
|
+
function lr(t, u) {
|
|
519
519
|
if (typeof t == "function")
|
|
520
520
|
return t(u);
|
|
521
521
|
t != null && (t.current = u);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function wt(...t) {
|
|
524
524
|
return (u) => {
|
|
525
525
|
let n = !1;
|
|
526
526
|
const a = t.map((l) => {
|
|
527
|
-
const r =
|
|
527
|
+
const r = lr(l, u);
|
|
528
528
|
return !n && typeof r == "function" && (n = !0), r;
|
|
529
529
|
});
|
|
530
530
|
if (n)
|
|
531
531
|
return () => {
|
|
532
532
|
for (let l = 0; l < a.length; l++) {
|
|
533
533
|
const r = a[l];
|
|
534
|
-
typeof r == "function" ? r() :
|
|
534
|
+
typeof r == "function" ? r() : lr(t[l], null);
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
const { children: n, ...a } = t, l = c.Children.toArray(n), r = l.find(
|
|
539
|
+
var br = c.forwardRef((t, u) => {
|
|
540
|
+
const { children: n, ...a } = t, l = c.Children.toArray(n), r = l.find(Nt);
|
|
541
541
|
if (r) {
|
|
542
542
|
const e = r.props.children, i = l.map((v) => v === r ? c.Children.count(e) > 1 ? c.Children.only(null) : c.isValidElement(e) ? e.props.children : null : v);
|
|
543
|
-
return /* @__PURE__ */ p(
|
|
543
|
+
return /* @__PURE__ */ p(E, { ...a, ref: u, children: c.isValidElement(e) ? c.cloneElement(e, void 0, i) : null });
|
|
544
544
|
}
|
|
545
|
-
return /* @__PURE__ */ p(
|
|
545
|
+
return /* @__PURE__ */ p(E, { ...a, ref: u, children: n });
|
|
546
546
|
});
|
|
547
|
-
|
|
548
|
-
var
|
|
547
|
+
br.displayName = "Slot";
|
|
548
|
+
var E = c.forwardRef((t, u) => {
|
|
549
549
|
const { children: n, ...a } = t;
|
|
550
550
|
if (c.isValidElement(n)) {
|
|
551
|
-
const l =
|
|
552
|
-
return n.type !== c.Fragment && (r.ref = u ?
|
|
551
|
+
const l = jt(n), r = Ot(a, n.props);
|
|
552
|
+
return n.type !== c.Fragment && (r.ref = u ? wt(u, l) : l), c.cloneElement(n, r);
|
|
553
553
|
}
|
|
554
554
|
return c.Children.count(n) > 1 ? c.Children.only(null) : null;
|
|
555
555
|
});
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
function
|
|
559
|
-
return c.isValidElement(t) && t.type ===
|
|
556
|
+
E.displayName = "SlotClone";
|
|
557
|
+
var St = ({ children: t }) => /* @__PURE__ */ p(Nr, { children: t });
|
|
558
|
+
function Nt(t) {
|
|
559
|
+
return c.isValidElement(t) && t.type === St;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ot(t, u) {
|
|
562
562
|
const n = { ...u };
|
|
563
563
|
for (const a in u) {
|
|
564
564
|
const l = t[a], r = u[a];
|
|
@@ -568,12 +568,12 @@ function Nt(t, u) {
|
|
|
568
568
|
}
|
|
569
569
|
return { ...t, ...n };
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function jt(t) {
|
|
572
572
|
var u, n;
|
|
573
573
|
let a = (u = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : u.get, l = a && "isReactWarning" in a && a.isReactWarning;
|
|
574
574
|
return l ? t.ref : (a = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, l = a && "isReactWarning" in a && a.isReactWarning, l ? t.props.ref : t.props.ref || t.ref);
|
|
575
575
|
}
|
|
576
|
-
var
|
|
576
|
+
var qt = [
|
|
577
577
|
"a",
|
|
578
578
|
"button",
|
|
579
579
|
"div",
|
|
@@ -590,14 +590,14 @@ var jt = [
|
|
|
590
590
|
"span",
|
|
591
591
|
"svg",
|
|
592
592
|
"ul"
|
|
593
|
-
],
|
|
593
|
+
], kt = qt.reduce((t, u) => {
|
|
594
594
|
const n = c.forwardRef((a, l) => {
|
|
595
|
-
const { asChild: r, ...e } = a, i = r ?
|
|
595
|
+
const { asChild: r, ...e } = a, i = r ? br : u;
|
|
596
596
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(i, { ...e, ref: l });
|
|
597
597
|
});
|
|
598
598
|
return n.displayName = `Primitive.${u}`, { ...t, [u]: n };
|
|
599
|
-
}, {}),
|
|
600
|
-
|
|
599
|
+
}, {}), Mt = "Label", xr = c.forwardRef((t, u) => /* @__PURE__ */ p(
|
|
600
|
+
kt.label,
|
|
601
601
|
{
|
|
602
602
|
...t,
|
|
603
603
|
ref: u,
|
|
@@ -607,20 +607,20 @@ var jt = [
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
));
|
|
610
|
-
|
|
611
|
-
var
|
|
612
|
-
function
|
|
610
|
+
xr.displayName = Mt;
|
|
611
|
+
var Ct = xr;
|
|
612
|
+
function At(t) {
|
|
613
613
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
615
|
+
var pr = { exports: {} };
|
|
616
616
|
/*!
|
|
617
617
|
Copyright (c) 2018 Jed Watson.
|
|
618
618
|
Licensed under the MIT License (MIT), see
|
|
619
619
|
http://jedwatson.github.io/classnames
|
|
620
620
|
*/
|
|
621
|
-
var
|
|
622
|
-
function
|
|
623
|
-
return
|
|
621
|
+
var or;
|
|
622
|
+
function Rt() {
|
|
623
|
+
return or || (or = 1, function(t) {
|
|
624
624
|
(function() {
|
|
625
625
|
var u = {}.hasOwnProperty;
|
|
626
626
|
function n() {
|
|
@@ -649,42 +649,42 @@ function At() {
|
|
|
649
649
|
}
|
|
650
650
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
651
651
|
})();
|
|
652
|
-
}(
|
|
652
|
+
}(pr)), pr.exports;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
const
|
|
654
|
+
var Bt = Rt();
|
|
655
|
+
const It = /* @__PURE__ */ At(Bt), R = {
|
|
656
656
|
"purpur-label": "_purpur-label_1jndl_1",
|
|
657
657
|
"purpur-label--negative": "_purpur-label--negative_1jndl_8",
|
|
658
658
|
"purpur-label--disabled": "_purpur-label--disabled_1jndl_11"
|
|
659
|
-
},
|
|
659
|
+
}, B = "purpur-label", Et = ({
|
|
660
660
|
children: t,
|
|
661
661
|
className: u,
|
|
662
662
|
disabled: n,
|
|
663
663
|
negative: a = !1,
|
|
664
664
|
...l
|
|
665
665
|
}) => {
|
|
666
|
-
const r =
|
|
666
|
+
const r = It([
|
|
667
667
|
u,
|
|
668
|
-
|
|
668
|
+
R[B],
|
|
669
669
|
{
|
|
670
|
-
[
|
|
671
|
-
[
|
|
670
|
+
[R[`${B}--disabled`]]: n,
|
|
671
|
+
[R[`${B}--negative`]]: a
|
|
672
672
|
}
|
|
673
673
|
]);
|
|
674
|
-
return /* @__PURE__ */ p(
|
|
674
|
+
return /* @__PURE__ */ p(Ct, { className: r, ...l, children: t });
|
|
675
675
|
};
|
|
676
|
-
function
|
|
676
|
+
function Pt(t) {
|
|
677
677
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
678
678
|
}
|
|
679
|
-
var
|
|
679
|
+
var sr = { exports: {} };
|
|
680
680
|
/*!
|
|
681
681
|
Copyright (c) 2018 Jed Watson.
|
|
682
682
|
Licensed under the MIT License (MIT), see
|
|
683
683
|
http://jedwatson.github.io/classnames
|
|
684
684
|
*/
|
|
685
|
-
var
|
|
686
|
-
function
|
|
687
|
-
return
|
|
685
|
+
var cr;
|
|
686
|
+
function Vt() {
|
|
687
|
+
return cr || (cr = 1, function(t) {
|
|
688
688
|
(function() {
|
|
689
689
|
var u = {}.hasOwnProperty;
|
|
690
690
|
function n() {
|
|
@@ -713,41 +713,41 @@ function Pt() {
|
|
|
713
713
|
}
|
|
714
714
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
715
715
|
})();
|
|
716
|
-
}(
|
|
716
|
+
}(sr)), sr.exports;
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
const
|
|
718
|
+
var zt = Vt();
|
|
719
|
+
const dr = /* @__PURE__ */ Pt(zt), Dt = "_rotate_12t9p_1", Lt = "_dash_12t9p_1", N = {
|
|
720
720
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
721
|
-
rotate:
|
|
721
|
+
rotate: Dt,
|
|
722
722
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
723
723
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
724
724
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
725
725
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
726
726
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
727
727
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
728
|
-
dash:
|
|
728
|
+
dash: Lt,
|
|
729
729
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
730
730
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
731
|
-
},
|
|
731
|
+
}, O = "purpur-spinner", Ft = {
|
|
732
732
|
SM: "sm"
|
|
733
|
-
},
|
|
733
|
+
}, Zt = ({
|
|
734
734
|
["data-testid"]: t,
|
|
735
735
|
disabled: u = !1,
|
|
736
736
|
negative: n = !1,
|
|
737
|
-
size: a =
|
|
737
|
+
size: a = Ft.SM,
|
|
738
738
|
...l
|
|
739
739
|
}) => /* @__PURE__ */ p(
|
|
740
740
|
"div",
|
|
741
741
|
{
|
|
742
|
-
className:
|
|
742
|
+
className: dr([N[O], N[`${O}--${a}`]]),
|
|
743
743
|
"data-testid": t,
|
|
744
744
|
...l,
|
|
745
745
|
children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
|
|
746
746
|
"circle",
|
|
747
747
|
{
|
|
748
|
-
className:
|
|
749
|
-
[
|
|
750
|
-
[
|
|
748
|
+
className: dr(N[`${O}__circle`], {
|
|
749
|
+
[N[`${O}__circle--disabled`]]: u,
|
|
750
|
+
[N[`${O}__circle--negative`]]: n
|
|
751
751
|
}),
|
|
752
752
|
cx: "25",
|
|
753
753
|
cy: "25",
|
|
@@ -756,18 +756,18 @@ const cr = /* @__PURE__ */ Et(Vt), zt = "_rotate_12t9p_1", Dt = "_dash_12t9p_1",
|
|
|
756
756
|
) })
|
|
757
757
|
}
|
|
758
758
|
);
|
|
759
|
-
function
|
|
759
|
+
function Wt(t) {
|
|
760
760
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
761
761
|
}
|
|
762
|
-
var
|
|
762
|
+
var I = { exports: {} };
|
|
763
763
|
/*!
|
|
764
764
|
Copyright (c) 2018 Jed Watson.
|
|
765
765
|
Licensed under the MIT License (MIT), see
|
|
766
766
|
http://jedwatson.github.io/classnames
|
|
767
767
|
*/
|
|
768
|
-
var
|
|
769
|
-
function
|
|
770
|
-
return
|
|
768
|
+
var _r;
|
|
769
|
+
function Tt() {
|
|
770
|
+
return _r || (_r = 1, function(t) {
|
|
771
771
|
(function() {
|
|
772
772
|
var u = {}.hasOwnProperty;
|
|
773
773
|
function n() {
|
|
@@ -796,10 +796,10 @@ function Wt() {
|
|
|
796
796
|
}
|
|
797
797
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
798
798
|
})();
|
|
799
|
-
}(
|
|
799
|
+
}(I)), I.exports;
|
|
800
800
|
}
|
|
801
|
-
var
|
|
802
|
-
const
|
|
801
|
+
var Gt = Tt();
|
|
802
|
+
const Ht = /* @__PURE__ */ Wt(Gt), Ut = {
|
|
803
803
|
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
804
804
|
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
805
805
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
@@ -816,7 +816,7 @@ const Gt = /* @__PURE__ */ Zt(Tt), Ht = {
|
|
|
816
816
|
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
817
817
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
818
818
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
819
|
-
},
|
|
819
|
+
}, Xt = (t) => Or(t), f = Ht.bind(Ut), s = "purpur-text-field", Yt = ({
|
|
820
820
|
["data-testid"]: t,
|
|
821
821
|
className: u,
|
|
822
822
|
clearButtonAriaLabel: n,
|
|
@@ -825,111 +825,112 @@ const Gt = /* @__PURE__ */ Zt(Tt), Ht = {
|
|
|
825
825
|
endAdornment: r,
|
|
826
826
|
errorText: e,
|
|
827
827
|
helperText: i,
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
828
|
+
hideRequiredAsterisk: v = !1,
|
|
829
|
+
label: $,
|
|
830
|
+
loading: y = !1,
|
|
831
|
+
onClear: b,
|
|
831
832
|
startAdornment: j,
|
|
832
|
-
valid:
|
|
833
|
+
valid: k = !1,
|
|
833
834
|
...o
|
|
834
|
-
},
|
|
835
|
-
var
|
|
836
|
-
const q =
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
var
|
|
840
|
-
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
|
|
835
|
+
}, x) => {
|
|
836
|
+
var L;
|
|
837
|
+
const q = jr(), h = o.id ?? q, _ = (d) => t ? `${t}-${d}` : void 0, V = k && !e, M = i ? `${h}-helper-text` : void 0, C = [j].filter((d) => !!d), z = (typeof o.value == "number" ? o.value !== void 0 : (L = o.value) == null ? void 0 : L.length) && !o.disabled && !o.readOnly && !y && b && n, D = Xt(null), $r = (d) => {
|
|
838
|
+
D.current = d, typeof x == "function" ? x(d) : x && (x.current = d);
|
|
839
|
+
}, wr = () => {
|
|
840
|
+
var d;
|
|
841
|
+
b == null || b(), (d = D.current) == null || d.focus();
|
|
842
|
+
}, A = [
|
|
843
|
+
y && /* @__PURE__ */ p(
|
|
844
|
+
Zt,
|
|
844
845
|
{
|
|
845
846
|
disabled: o.disabled,
|
|
846
847
|
size: "xs",
|
|
847
|
-
"data-testid":
|
|
848
|
+
"data-testid": _("spinner")
|
|
848
849
|
},
|
|
849
850
|
"spinner"
|
|
850
851
|
),
|
|
851
|
-
|
|
852
|
-
|
|
852
|
+
z && /* @__PURE__ */ p(
|
|
853
|
+
vr,
|
|
853
854
|
{
|
|
854
855
|
variant: "tertiary-purple",
|
|
855
|
-
onClick:
|
|
856
|
+
onClick: wr,
|
|
856
857
|
iconOnly: !0,
|
|
857
858
|
"aria-label": n ?? "",
|
|
858
|
-
"data-testid":
|
|
859
|
+
"data-testid": _("clear-button"),
|
|
859
860
|
tabIndex: -1,
|
|
860
|
-
children: /* @__PURE__ */ p(
|
|
861
|
+
children: /* @__PURE__ */ p(yr, { size: "xs" })
|
|
861
862
|
},
|
|
862
863
|
"clear-button"
|
|
863
864
|
),
|
|
864
|
-
|
|
865
|
-
|
|
865
|
+
V && /* @__PURE__ */ p(
|
|
866
|
+
mr,
|
|
866
867
|
{
|
|
867
|
-
"data-testid":
|
|
868
|
+
"data-testid": _("valid-icon"),
|
|
868
869
|
className: f(`${s}__valid-icon`)
|
|
869
870
|
},
|
|
870
871
|
"valid-icon"
|
|
871
872
|
)
|
|
872
|
-
].filter((
|
|
873
|
+
].filter((d) => !!d), Sr = f([
|
|
873
874
|
`${s}__input-container`,
|
|
874
875
|
{
|
|
875
|
-
[`${s}__input-container--start-adornment`]:
|
|
876
|
-
[`${s}__input-container--end-adornment`]:
|
|
876
|
+
[`${s}__input-container--start-adornment`]: C.length,
|
|
877
|
+
[`${s}__input-container--end-adornment`]: A.length || r,
|
|
877
878
|
[`${s}__input-container--disabled`]: o.disabled,
|
|
878
|
-
[`${s}__input-container--has-clear-button`]:
|
|
879
|
+
[`${s}__input-container--has-clear-button`]: z,
|
|
879
880
|
[`${s}__input-container--readonly`]: o.readOnly && !o.disabled
|
|
880
881
|
}
|
|
881
882
|
]);
|
|
882
|
-
return /* @__PURE__ */
|
|
883
|
-
|
|
884
|
-
|
|
883
|
+
return /* @__PURE__ */ m("div", { className: f(u, s), children: [
|
|
884
|
+
$ && /* @__PURE__ */ m(
|
|
885
|
+
Et,
|
|
885
886
|
{
|
|
886
|
-
htmlFor:
|
|
887
|
+
htmlFor: h,
|
|
887
888
|
className: f(`${s}__label`),
|
|
888
|
-
"data-testid":
|
|
889
|
+
"data-testid": _("label"),
|
|
889
890
|
disabled: o.disabled,
|
|
890
891
|
children: [
|
|
891
|
-
o.required && /* @__PURE__ */ p("span", { "aria-hidden": !0, children: "*" }),
|
|
892
|
-
|
|
892
|
+
o.required && !v && /* @__PURE__ */ p("span", { "aria-hidden": !0, children: "*" }),
|
|
893
|
+
$
|
|
893
894
|
]
|
|
894
895
|
}
|
|
895
896
|
),
|
|
896
|
-
/* @__PURE__ */
|
|
897
|
+
/* @__PURE__ */ m("div", { className: f(`${s}__field-row`), children: [
|
|
897
898
|
!!a && a,
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
!!
|
|
899
|
+
/* @__PURE__ */ m("div", { className: Sr, children: [
|
|
900
|
+
!!C.length && /* @__PURE__ */ p(
|
|
900
901
|
"div",
|
|
901
902
|
{
|
|
902
|
-
"data-testid":
|
|
903
|
+
"data-testid": _("start-adornments"),
|
|
903
904
|
className: f(`${s}__adornment-container`),
|
|
904
|
-
children:
|
|
905
|
+
children: C
|
|
905
906
|
}
|
|
906
907
|
),
|
|
907
908
|
/* @__PURE__ */ p(
|
|
908
909
|
"input",
|
|
909
910
|
{
|
|
910
911
|
...o,
|
|
911
|
-
id:
|
|
912
|
-
ref:
|
|
913
|
-
"data-testid":
|
|
914
|
-
"aria-describedby": o["aria-describedby"] ||
|
|
912
|
+
id: h,
|
|
913
|
+
ref: $r,
|
|
914
|
+
"data-testid": _("input"),
|
|
915
|
+
"aria-describedby": o["aria-describedby"] || M,
|
|
915
916
|
"aria-invalid": o["aria-invalid"] || !!e,
|
|
916
917
|
className: f([
|
|
917
918
|
`${s}__input`,
|
|
918
919
|
{
|
|
919
|
-
[`${s}__input--valid`]:
|
|
920
|
+
[`${s}__input--valid`]: V,
|
|
920
921
|
[`${s}__input--error`]: !!e
|
|
921
922
|
}
|
|
922
923
|
])
|
|
923
924
|
}
|
|
924
925
|
),
|
|
925
926
|
/* @__PURE__ */ p("div", { className: f(`${s}__frame`) }),
|
|
926
|
-
(!!
|
|
927
|
+
(!!A.length || r) && /* @__PURE__ */ m(
|
|
927
928
|
"div",
|
|
928
929
|
{
|
|
929
|
-
"data-testid":
|
|
930
|
+
"data-testid": _("end-adornments"),
|
|
930
931
|
className: f(`${s}__adornment-container`),
|
|
931
932
|
children: [
|
|
932
|
-
|
|
933
|
+
A,
|
|
933
934
|
r
|
|
934
935
|
]
|
|
935
936
|
}
|
|
@@ -937,14 +938,14 @@ const Gt = /* @__PURE__ */ Zt(Tt), Ht = {
|
|
|
937
938
|
] }),
|
|
938
939
|
!!l && l
|
|
939
940
|
] }),
|
|
940
|
-
|
|
941
|
-
e && /* @__PURE__ */ p(
|
|
941
|
+
M && /* @__PURE__ */ p(st, { "data-testid": _("helper-text"), id: M, children: i }),
|
|
942
|
+
e && /* @__PURE__ */ p(ut, { "data-testid": _("error-text"), children: e })
|
|
942
943
|
] });
|
|
943
|
-
},
|
|
944
|
-
|
|
945
|
-
const
|
|
944
|
+
}, hr = fr(Yt);
|
|
945
|
+
hr.displayName = "TextField";
|
|
946
|
+
const te = (t) => qr(t) && t.type.displayName === hr.displayName;
|
|
946
947
|
export {
|
|
947
|
-
|
|
948
|
-
|
|
948
|
+
hr as TextField,
|
|
949
|
+
te as isTextField
|
|
949
950
|
};
|
|
950
951
|
//# sourceMappingURL=text-field.es.js.map
|