@purpurds/password-field 6.12.4 → 7.0.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 +4 -4
- package/dist/{main-AMvxhw7P.js → main-By1JC5Ro.js} +2 -2
- package/dist/{main-AMvxhw7P.js.map → main-By1JC5Ro.js.map} +1 -1
- package/dist/{main-CBYBwXUt.mjs → main-Cv81pnI9.mjs} +2 -2
- package/dist/{main-CBYBwXUt.mjs.map → main-Cv81pnI9.mjs.map} +1 -1
- package/dist/{password-field-Ce7m1_On.mjs → password-field-BvGcUSFD.mjs} +143 -144
- package/dist/password-field-BvGcUSFD.mjs.map +1 -0
- package/dist/{password-field-Drcfvzfw.js → password-field-C6bVOY8G.js} +13 -13
- package/dist/password-field-C6bVOY8G.js.map +1 -0
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.d.ts +4 -4
- package/dist/password-field.es.js +1 -1
- package/package.json +8 -8
- package/src/password-field.stories.tsx +14 -14
- package/src/password-field.test.tsx +3 -3
- package/src/password-field.tsx +7 -7
- package/dist/password-field-Ce7m1_On.mjs.map +0 -1
- package/dist/password-field-Drcfvzfw.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as h, jsx as o, Fragment as ut } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as q, useId as at, useRef as it, useState as T, useMemo as pt, useEffect as ot, isValidElement as st } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const lt = {
|
|
6
6
|
LG: "lg"
|
|
@@ -48,7 +48,7 @@ function dt() {
|
|
|
48
48
|
}(nr)), nr.exports;
|
|
49
49
|
}
|
|
50
50
|
var _t = dt();
|
|
51
|
-
const ar = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1",
|
|
51
|
+
const ar = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1", P = {
|
|
52
52
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
53
53
|
rotate: ft,
|
|
54
54
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -60,7 +60,7 @@ const ar = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1",
|
|
|
60
60
|
dash: gt,
|
|
61
61
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
62
62
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
63
|
-
},
|
|
63
|
+
}, A = "purpur-spinner", vt = {
|
|
64
64
|
SM: "sm"
|
|
65
65
|
}, ht = ({
|
|
66
66
|
["data-testid"]: t,
|
|
@@ -71,15 +71,15 @@ const ar = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1",
|
|
|
71
71
|
}) => /* @__PURE__ */ o(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className: ar([
|
|
74
|
+
className: ar([P[A], P[`${A}--${i}`]]),
|
|
75
75
|
"data-testid": t,
|
|
76
76
|
...p,
|
|
77
77
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
78
78
|
"circle",
|
|
79
79
|
{
|
|
80
|
-
className: ar(
|
|
81
|
-
[
|
|
82
|
-
[
|
|
80
|
+
className: ar(P[`${A}__circle`], {
|
|
81
|
+
[P[`${A}__circle--disabled`]]: a,
|
|
82
|
+
[P[`${A}__circle--negative`]]: n
|
|
83
83
|
}),
|
|
84
84
|
cx: "25",
|
|
85
85
|
cy: "25",
|
|
@@ -130,8 +130,8 @@ function bt() {
|
|
|
130
130
|
})();
|
|
131
131
|
}(ir)), ir.exports;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
133
|
+
var xt = bt();
|
|
134
|
+
const yt = /* @__PURE__ */ mt(xt), wt = {
|
|
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 xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
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
|
-
}, $t =
|
|
156
|
+
}, $t = yt.bind(wt), j = "purpur-button", St = ({
|
|
157
157
|
children: t,
|
|
158
158
|
className: a,
|
|
159
159
|
["data-testid"]: n,
|
|
@@ -170,7 +170,7 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
170
170
|
}, s) => {
|
|
171
171
|
if (r && c === "destructive")
|
|
172
172
|
return null;
|
|
173
|
-
const
|
|
173
|
+
const m = $t(
|
|
174
174
|
[
|
|
175
175
|
j,
|
|
176
176
|
`${j}--${u ? `${c}-negative` : c}`,
|
|
@@ -183,13 +183,13 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
183
183
|
[`${j}--disabled`]: i || e
|
|
184
184
|
},
|
|
185
185
|
a
|
|
186
|
-
), $ = (
|
|
187
|
-
i || e ?
|
|
186
|
+
), $ = (x) => {
|
|
187
|
+
i || e ? x.preventDefault() : l && l(x);
|
|
188
188
|
}, S = !!v["aria-disabled"] || i || e;
|
|
189
|
-
return /* @__PURE__ */
|
|
189
|
+
return /* @__PURE__ */ h(
|
|
190
190
|
"button",
|
|
191
191
|
{
|
|
192
|
-
className:
|
|
192
|
+
className: m,
|
|
193
193
|
"data-testid": n,
|
|
194
194
|
type: _,
|
|
195
195
|
ref: s,
|
|
@@ -203,8 +203,8 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
203
203
|
]
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
|
-
},
|
|
207
|
-
|
|
206
|
+
}, Zr = q(St);
|
|
207
|
+
Zr.displayName = "Button";
|
|
208
208
|
function jt(t) {
|
|
209
209
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
210
210
|
}
|
|
@@ -248,7 +248,7 @@ function Nt() {
|
|
|
248
248
|
}(or)), or.exports;
|
|
249
249
|
}
|
|
250
250
|
var Ot = Nt();
|
|
251
|
-
const
|
|
251
|
+
const qt = /* @__PURE__ */ jt(Ot), Pt = {
|
|
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,7 +256,7 @@ const zt = /* @__PURE__ */ jt(Ot), qt = {
|
|
|
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
|
+
}, At = qt.bind(Pt), lr = "purpur-icon", zt = "md", Mt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Ct = ({ content: t = "", title: a } = {}) => {
|
|
260
260
|
const n = [
|
|
261
261
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
262
262
|
{ name: "fill", value: "currentColor" },
|
|
@@ -269,17 +269,16 @@ const zt = /* @__PURE__ */ jt(Ot), qt = {
|
|
|
269
269
|
svg: a,
|
|
270
270
|
allyTitle: n,
|
|
271
271
|
className: i,
|
|
272
|
-
size: p =
|
|
272
|
+
size: p = zt,
|
|
273
273
|
...r
|
|
274
274
|
}) => {
|
|
275
275
|
const e = Ct({
|
|
276
276
|
content: kt(a.svg),
|
|
277
277
|
title: n
|
|
278
|
-
}), u =
|
|
278
|
+
}), u = At(i, lr, `${lr}--${p}`);
|
|
279
279
|
return /* @__PURE__ */ o(
|
|
280
280
|
"span",
|
|
281
281
|
{
|
|
282
|
-
"aria-label": n,
|
|
283
282
|
className: u,
|
|
284
283
|
"data-testid": t,
|
|
285
284
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -293,8 +292,8 @@ const Rt = {
|
|
|
293
292
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.364 2.364a.9.9 0 0 1 1.272 0l3.809 3.808a11.61 11.61 0 0 1 2.218-.789A9.944 9.944 0 0 1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.647.969-1.81 2.33-3.349 3.547a.9.9 0 0 1-1.116-1.413A15.273 15.273 0 0 0 20.894 12a15.297 15.297 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-.655 0-1.295.083-1.914.233-.435.105-.86.242-1.274.407l.418.417a4.9 4.9 0 0 1 7.632 4.654.9.9 0 1 1-1.786-.222 3.1 3.1 0 0 0-4.538-3.123l11.098 11.098a.9.9 0 1 1-1.272 1.272l-3.809-3.808c-1.362.642-2.9 1.072-4.555 1.072-2.651 0-5-1.103-6.826-2.42-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.645-.966 1.804-2.322 3.335-3.536a.9.9 0 1 1 1.118 1.411A15.266 15.266 0 0 0 3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c1.114 0 2.185-.24 3.188-.64l-.418-.418A4.9 4.9 0 0 1 7.1 12a8.888 8.888 0 0 1-.007-.225 2.488 2.488 0 0 1 .014-.385.9.9 0 1 1 1.786.222.79.79 0 0 0-.001.11A6.245 6.245 0 0 1 8.9 12a3.1 3.1 0 0 0 4.562 2.734L8.586 9.859a.912.912 0 0 1-.102-.102l-6.12-6.12a.9.9 0 0 1 0-1.273Z" clip-rule="evenodd"/></svg>',
|
|
294
293
|
keywords: ["password-invisible"],
|
|
295
294
|
category: "action"
|
|
296
|
-
},
|
|
297
|
-
|
|
295
|
+
}, Fr = (t) => /* @__PURE__ */ o(K, { ...t, svg: Rt });
|
|
296
|
+
Fr.displayName = "IconPasswordInvisible";
|
|
298
297
|
const Et = {
|
|
299
298
|
name: "password-visible",
|
|
300
299
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c2.149 0 4.134-.897 5.774-2.08a15.295 15.295 0 0 0 3.12-3.02 15.3 15.3 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-2.149 0-4.134.897-5.774 2.08A15.299 15.299 0 0 0 3.106 12Zm2.067-4.48C7 6.203 9.349 5.1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.722 1.083-2.096 2.663-3.923 3.98C17 17.797 14.651 18.9 12 18.9s-5-1.103-6.826-2.42c-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.722-1.083 2.096-2.663 3.923-3.98ZM12 8.9a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2ZM7.1 12a4.9 4.9 0 1 1 9.8 0 4.9 4.9 0 0 1-9.8 0Zm4-1.538a.9.9 0 0 1 .9-.9A2.438 2.438 0 0 1 14.438 12a.9.9 0 0 1-1.8 0 .638.638 0 0 0-.638-.638.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
|
|
@@ -348,7 +347,7 @@ function It() {
|
|
|
348
347
|
}(cr)), cr.exports;
|
|
349
348
|
}
|
|
350
349
|
var Tt = It();
|
|
351
|
-
const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1",
|
|
350
|
+
const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1", z = {
|
|
352
351
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
353
352
|
rotate: Lt,
|
|
354
353
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -360,26 +359,26 @@ const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1",
|
|
|
360
359
|
dash: Wt,
|
|
361
360
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
362
361
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
363
|
-
}, M = "purpur-spinner",
|
|
362
|
+
}, M = "purpur-spinner", Zt = {
|
|
364
363
|
SM: "sm"
|
|
365
|
-
},
|
|
364
|
+
}, Ft = ({
|
|
366
365
|
["data-testid"]: t,
|
|
367
366
|
disabled: a = !1,
|
|
368
367
|
negative: n = !1,
|
|
369
|
-
size: i =
|
|
368
|
+
size: i = Zt.SM,
|
|
370
369
|
...p
|
|
371
370
|
}) => /* @__PURE__ */ o(
|
|
372
371
|
"div",
|
|
373
372
|
{
|
|
374
|
-
className: _r([
|
|
373
|
+
className: _r([z[M], z[`${M}--${i}`]]),
|
|
375
374
|
"data-testid": t,
|
|
376
375
|
...p,
|
|
377
376
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
378
377
|
"circle",
|
|
379
378
|
{
|
|
380
|
-
className: _r(
|
|
381
|
-
[
|
|
382
|
-
[
|
|
379
|
+
className: _r(z[`${M}__circle`], {
|
|
380
|
+
[z[`${M}__circle--disabled`]]: a,
|
|
381
|
+
[z[`${M}__circle--negative`]]: n
|
|
383
382
|
}),
|
|
384
383
|
cx: "25",
|
|
385
384
|
cy: "25",
|
|
@@ -470,7 +469,7 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
470
469
|
}, s) => {
|
|
471
470
|
if (r && c === "destructive")
|
|
472
471
|
return null;
|
|
473
|
-
const
|
|
472
|
+
const m = Kt(
|
|
474
473
|
[
|
|
475
474
|
N,
|
|
476
475
|
`${N}--${u ? `${c}-negative` : c}`,
|
|
@@ -483,13 +482,13 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
483
482
|
[`${N}--disabled`]: i || e
|
|
484
483
|
},
|
|
485
484
|
a
|
|
486
|
-
), $ = (
|
|
487
|
-
i || e ?
|
|
485
|
+
), $ = (x) => {
|
|
486
|
+
i || e ? x.preventDefault() : l && l(x);
|
|
488
487
|
}, S = !!v["aria-disabled"] || i || e;
|
|
489
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ h(
|
|
490
489
|
"button",
|
|
491
490
|
{
|
|
492
|
-
className:
|
|
491
|
+
className: m,
|
|
493
492
|
"data-testid": n,
|
|
494
493
|
type: _,
|
|
495
494
|
ref: s,
|
|
@@ -497,13 +496,13 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
497
496
|
onClick: $,
|
|
498
497
|
...v,
|
|
499
498
|
children: [
|
|
500
|
-
e && /* @__PURE__ */ o(
|
|
499
|
+
e && /* @__PURE__ */ o(Ft, { size: d === Dt.LG ? "xs" : "xxs", negative: u, disabled: S }),
|
|
501
500
|
" ",
|
|
502
501
|
t
|
|
503
502
|
]
|
|
504
503
|
}
|
|
505
504
|
);
|
|
506
|
-
}, Vr =
|
|
505
|
+
}, Vr = q(Yt);
|
|
507
506
|
Vr.displayName = "Button";
|
|
508
507
|
function Jt(t) {
|
|
509
508
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -579,7 +578,6 @@ const te = /* @__PURE__ */ Jt(re), ee = {
|
|
|
579
578
|
return /* @__PURE__ */ o(
|
|
580
579
|
"span",
|
|
581
580
|
{
|
|
582
|
-
"aria-label": n,
|
|
583
581
|
className: u,
|
|
584
582
|
"data-testid": t,
|
|
585
583
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -603,9 +601,9 @@ var br = { exports: {} };
|
|
|
603
601
|
Licensed under the MIT License (MIT), see
|
|
604
602
|
http://jedwatson.github.io/classnames
|
|
605
603
|
*/
|
|
606
|
-
var
|
|
604
|
+
var xr;
|
|
607
605
|
function le() {
|
|
608
|
-
return
|
|
606
|
+
return xr || (xr = 1, function(t) {
|
|
609
607
|
(function() {
|
|
610
608
|
var a = {}.hasOwnProperty;
|
|
611
609
|
function n() {
|
|
@@ -637,23 +635,23 @@ function le() {
|
|
|
637
635
|
}(br)), br.exports;
|
|
638
636
|
}
|
|
639
637
|
var ce = le();
|
|
640
|
-
const de = /* @__PURE__ */ se(ce),
|
|
638
|
+
const de = /* @__PURE__ */ se(ce), yr = {
|
|
641
639
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
642
640
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
643
641
|
}, wr = "purpur-field-error-text", _e = ({
|
|
644
642
|
children: t,
|
|
645
643
|
className: a,
|
|
646
|
-
relevant: n = "additions text",
|
|
644
|
+
["aria-relevant"]: n = "additions text",
|
|
647
645
|
...i
|
|
648
|
-
}) => /* @__PURE__ */
|
|
646
|
+
}) => /* @__PURE__ */ h(
|
|
649
647
|
"div",
|
|
650
648
|
{
|
|
651
|
-
className: de([a,
|
|
649
|
+
className: de([a, yr[wr]]),
|
|
652
650
|
"aria-live": "assertive",
|
|
653
651
|
"aria-relevant": n,
|
|
654
652
|
...i,
|
|
655
653
|
children: [
|
|
656
|
-
/* @__PURE__ */ o(Hr, { svg: oe, size: "xs", className:
|
|
654
|
+
/* @__PURE__ */ o(Hr, { svg: oe, size: "xs", className: yr[`${wr}__icon`] }),
|
|
657
655
|
t
|
|
658
656
|
]
|
|
659
657
|
}
|
|
@@ -729,9 +727,9 @@ var Or = { exports: {} };
|
|
|
729
727
|
Licensed under the MIT License (MIT), see
|
|
730
728
|
http://jedwatson.github.io/classnames
|
|
731
729
|
*/
|
|
732
|
-
var
|
|
733
|
-
function
|
|
734
|
-
return
|
|
730
|
+
var qr;
|
|
731
|
+
function xe() {
|
|
732
|
+
return qr || (qr = 1, function(t) {
|
|
735
733
|
(function() {
|
|
736
734
|
var a = {}.hasOwnProperty;
|
|
737
735
|
function n() {
|
|
@@ -762,8 +760,8 @@ function ye() {
|
|
|
762
760
|
})();
|
|
763
761
|
}(Or)), Or.exports;
|
|
764
762
|
}
|
|
765
|
-
var
|
|
766
|
-
const we = /* @__PURE__ */ be(
|
|
763
|
+
var ye = xe();
|
|
764
|
+
const we = /* @__PURE__ */ be(ye), $e = {
|
|
767
765
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
768
766
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
769
767
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -771,7 +769,7 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
771
769
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
772
770
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
773
771
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
774
|
-
}, Se = we.bind($e),
|
|
772
|
+
}, Se = we.bind($e), Pr = "purpur-icon", je = "md", Ne = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Oe = ({ content: t = "", title: a } = {}) => {
|
|
775
773
|
const n = [
|
|
776
774
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
777
775
|
{ name: "fill", value: "currentColor" },
|
|
@@ -779,7 +777,7 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
779
777
|
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
780
778
|
], i = a ? `<title>${a}</title>` : "";
|
|
781
779
|
return `<svg ${Ne(n)}>${i}${t}</svg>`;
|
|
782
|
-
},
|
|
780
|
+
}, qe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
|
|
783
781
|
["data-testid"]: t,
|
|
784
782
|
svg: a,
|
|
785
783
|
allyTitle: n,
|
|
@@ -788,13 +786,12 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
788
786
|
...r
|
|
789
787
|
}) => {
|
|
790
788
|
const e = Oe({
|
|
791
|
-
content:
|
|
789
|
+
content: qe(a.svg),
|
|
792
790
|
title: n
|
|
793
|
-
}), u = Se(i,
|
|
791
|
+
}), u = Se(i, Pr, `${Pr}--${p}`);
|
|
794
792
|
return /* @__PURE__ */ o(
|
|
795
793
|
"span",
|
|
796
794
|
{
|
|
797
|
-
"aria-label": n,
|
|
798
795
|
className: u,
|
|
799
796
|
"data-testid": t,
|
|
800
797
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -803,37 +800,37 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
803
800
|
);
|
|
804
801
|
};
|
|
805
802
|
Y.displayName = "Icon";
|
|
806
|
-
const
|
|
803
|
+
const Pe = {
|
|
807
804
|
name: "check-circle-filled",
|
|
808
805
|
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>',
|
|
809
806
|
keywords: ["check-circle-filled"],
|
|
810
807
|
category: "status"
|
|
811
|
-
}, Ur = (t) => /* @__PURE__ */ o(Y, { ...t, svg:
|
|
808
|
+
}, Ur = (t) => /* @__PURE__ */ o(Y, { ...t, svg: Pe });
|
|
812
809
|
Ur.displayName = "IconCheckCircleFilled";
|
|
813
|
-
const
|
|
810
|
+
const Ae = {
|
|
814
811
|
name: "close",
|
|
815
812
|
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>',
|
|
816
813
|
keywords: ["close"],
|
|
817
814
|
category: "utility"
|
|
818
|
-
}, Xr = (t) => /* @__PURE__ */ o(Y, { ...t, svg:
|
|
815
|
+
}, Xr = (t) => /* @__PURE__ */ o(Y, { ...t, svg: Ae });
|
|
819
816
|
Xr.displayName = "IconClose";
|
|
820
|
-
function
|
|
817
|
+
function Ar(t, a) {
|
|
821
818
|
if (typeof t == "function")
|
|
822
819
|
return t(a);
|
|
823
820
|
t != null && (t.current = a);
|
|
824
821
|
}
|
|
825
|
-
function
|
|
822
|
+
function ze(...t) {
|
|
826
823
|
return (a) => {
|
|
827
824
|
let n = !1;
|
|
828
825
|
const i = t.map((p) => {
|
|
829
|
-
const r =
|
|
826
|
+
const r = Ar(p, a);
|
|
830
827
|
return !n && typeof r == "function" && (n = !0), r;
|
|
831
828
|
});
|
|
832
829
|
if (n)
|
|
833
830
|
return () => {
|
|
834
831
|
for (let p = 0; p < i.length; p++) {
|
|
835
832
|
const r = i[p];
|
|
836
|
-
typeof r == "function" ? r() :
|
|
833
|
+
typeof r == "function" ? r() : Ar(t[p], null);
|
|
837
834
|
}
|
|
838
835
|
};
|
|
839
836
|
};
|
|
@@ -851,7 +848,7 @@ var X = g.forwardRef((t, a) => {
|
|
|
851
848
|
const { children: n, ...i } = t;
|
|
852
849
|
if (g.isValidElement(n)) {
|
|
853
850
|
const p = Re(n), r = ke(i, n.props);
|
|
854
|
-
return n.type !== g.Fragment && (r.ref = a ?
|
|
851
|
+
return n.type !== g.Fragment && (r.ref = a ? ze(a, p) : p), g.cloneElement(n, r);
|
|
855
852
|
}
|
|
856
853
|
return g.Children.count(n) > 1 ? g.Children.only(null) : null;
|
|
857
854
|
});
|
|
@@ -914,7 +911,7 @@ var Ie = Yr;
|
|
|
914
911
|
function Te(t) {
|
|
915
912
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
916
913
|
}
|
|
917
|
-
var
|
|
914
|
+
var zr = { exports: {} };
|
|
918
915
|
/*!
|
|
919
916
|
Copyright (c) 2018 Jed Watson.
|
|
920
917
|
Licensed under the MIT License (MIT), see
|
|
@@ -951,30 +948,29 @@ function Le() {
|
|
|
951
948
|
}
|
|
952
949
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
953
950
|
})();
|
|
954
|
-
}(
|
|
951
|
+
}(zr)), zr.exports;
|
|
955
952
|
}
|
|
956
953
|
var We = Le();
|
|
957
|
-
const
|
|
954
|
+
const Ze = /* @__PURE__ */ Te(We), G = {
|
|
958
955
|
"purpur-label": "_purpur-label_1jndl_1",
|
|
959
956
|
"purpur-label--negative": "_purpur-label--negative_1jndl_8",
|
|
960
957
|
"purpur-label--disabled": "_purpur-label--disabled_1jndl_11"
|
|
961
|
-
}, V = "purpur-label",
|
|
958
|
+
}, V = "purpur-label", Fe = ({
|
|
962
959
|
children: t,
|
|
963
960
|
className: a,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
...r
|
|
961
|
+
disabled: n,
|
|
962
|
+
negative: i = !1,
|
|
963
|
+
...p
|
|
968
964
|
}) => {
|
|
969
|
-
const
|
|
965
|
+
const r = Ze([
|
|
970
966
|
a,
|
|
971
967
|
G[V],
|
|
972
968
|
{
|
|
973
|
-
[G[`${V}--disabled`]]:
|
|
974
|
-
[G[`${V}--negative`]]:
|
|
969
|
+
[G[`${V}--disabled`]]: n,
|
|
970
|
+
[G[`${V}--negative`]]: i
|
|
975
971
|
}
|
|
976
972
|
]);
|
|
977
|
-
return /* @__PURE__ */ o(Ie, { className:
|
|
973
|
+
return /* @__PURE__ */ o(Ie, { className: r, ...p, children: t });
|
|
978
974
|
};
|
|
979
975
|
function Ge(t) {
|
|
980
976
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1103,26 +1099,26 @@ function Qe() {
|
|
|
1103
1099
|
}
|
|
1104
1100
|
var rn = Qe();
|
|
1105
1101
|
const tn = /* @__PURE__ */ Je(rn), en = {
|
|
1106
|
-
"purpur-text-field": "_purpur-text-
|
|
1107
|
-
"purpur-text-field__label": "_purpur-text-
|
|
1108
|
-
"purpur-text-field__label-text": "_purpur-text-field__label-
|
|
1109
|
-
"purpur-text-field__field-row": "_purpur-text-field__field-
|
|
1110
|
-
"purpur-text-field__frame": "_purpur-text-
|
|
1111
|
-
"purpur-text-field__input-container": "_purpur-text-field__input-
|
|
1112
|
-
"purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--
|
|
1113
|
-
"purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--
|
|
1114
|
-
"purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-
|
|
1115
|
-
"purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-
|
|
1116
|
-
"purpur-text-field__input": "_purpur-text-
|
|
1117
|
-
"purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-
|
|
1118
|
-
"purpur-text-field__input--valid": "_purpur-text-field__input--
|
|
1119
|
-
"purpur-text-field__input--error": "_purpur-text-field__input--
|
|
1120
|
-
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-
|
|
1121
|
-
"purpur-text-field__valid-icon": "_purpur-text-field__valid-
|
|
1102
|
+
"purpur-text-field": "_purpur-text-field_3gl1k_1",
|
|
1103
|
+
"purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
|
|
1104
|
+
"purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
|
|
1105
|
+
"purpur-text-field__field-row": "_purpur-text-field__field-row_3gl1k_15",
|
|
1106
|
+
"purpur-text-field__frame": "_purpur-text-field__frame_3gl1k_19",
|
|
1107
|
+
"purpur-text-field__input-container": "_purpur-text-field__input-container_3gl1k_26",
|
|
1108
|
+
"purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--disabled_3gl1k_37",
|
|
1109
|
+
"purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--readonly_3gl1k_40",
|
|
1110
|
+
"purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-button_3gl1k_43",
|
|
1111
|
+
"purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-adornment_3gl1k_46",
|
|
1112
|
+
"purpur-text-field__input": "_purpur-text-field__input_3gl1k_26",
|
|
1113
|
+
"purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-adornment_3gl1k_52",
|
|
1114
|
+
"purpur-text-field__input--valid": "_purpur-text-field__input--valid_3gl1k_94",
|
|
1115
|
+
"purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
|
|
1116
|
+
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
|
|
1117
|
+
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
|
|
1122
1118
|
}, nn = (t) => it(t), w = tn.bind(en), f = "purpur-text-field", un = ({
|
|
1123
1119
|
["data-testid"]: t,
|
|
1124
1120
|
className: a,
|
|
1125
|
-
|
|
1121
|
+
clearButtonAriaLabel: n,
|
|
1126
1122
|
beforeField: i,
|
|
1127
1123
|
afterField: p,
|
|
1128
1124
|
endAdornment: r,
|
|
@@ -1134,20 +1130,20 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1134
1130
|
startAdornment: _,
|
|
1135
1131
|
valid: v = !1,
|
|
1136
1132
|
...s
|
|
1137
|
-
},
|
|
1133
|
+
}, m) => {
|
|
1138
1134
|
var $;
|
|
1139
|
-
const S = at(),
|
|
1140
|
-
er.current =
|
|
1135
|
+
const S = at(), x = s.id ?? S, y = (b) => t ? `${t}-${b}` : void 0, rr = v && !e, W = u ? `${x}-helper-text` : void 0, Z = [_].filter((b) => !!b), tr = (typeof s.value == "number" ? s.value !== void 0 : ($ = s.value) == null ? void 0 : $.length) && !s.disabled && !s.readOnly && !d && c && n, er = nn(null), tt = (b) => {
|
|
1136
|
+
er.current = b, typeof m == "function" ? m(b) : m && (m.current = b);
|
|
1141
1137
|
}, et = () => {
|
|
1142
|
-
var
|
|
1143
|
-
c == null || c(), (
|
|
1144
|
-
},
|
|
1138
|
+
var b;
|
|
1139
|
+
c == null || c(), (b = er.current) == null || b.focus();
|
|
1140
|
+
}, F = [
|
|
1145
1141
|
d && /* @__PURE__ */ o(
|
|
1146
1142
|
Ye,
|
|
1147
1143
|
{
|
|
1148
1144
|
disabled: s.disabled,
|
|
1149
1145
|
size: "xs",
|
|
1150
|
-
"data-testid":
|
|
1146
|
+
"data-testid": y("spinner")
|
|
1151
1147
|
},
|
|
1152
1148
|
"spinner"
|
|
1153
1149
|
),
|
|
@@ -1158,7 +1154,7 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1158
1154
|
onClick: et,
|
|
1159
1155
|
iconOnly: !0,
|
|
1160
1156
|
"aria-label": n ?? "",
|
|
1161
|
-
"data-testid":
|
|
1157
|
+
"data-testid": y("clear-button"),
|
|
1162
1158
|
tabIndex: -1,
|
|
1163
1159
|
children: /* @__PURE__ */ o(Xr, { size: "xs" })
|
|
1164
1160
|
},
|
|
@@ -1167,50 +1163,53 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1167
1163
|
rr && /* @__PURE__ */ o(
|
|
1168
1164
|
Ur,
|
|
1169
1165
|
{
|
|
1170
|
-
"data-testid":
|
|
1166
|
+
"data-testid": y("valid-icon"),
|
|
1171
1167
|
className: w(`${f}__valid-icon`)
|
|
1172
1168
|
},
|
|
1173
1169
|
"valid-icon"
|
|
1174
1170
|
)
|
|
1175
|
-
].filter((
|
|
1171
|
+
].filter((b) => !!b), nt = w([
|
|
1176
1172
|
`${f}__input-container`,
|
|
1177
1173
|
{
|
|
1178
|
-
[`${f}__input-container--start-adornment`]:
|
|
1179
|
-
[`${f}__input-container--end-adornment`]:
|
|
1174
|
+
[`${f}__input-container--start-adornment`]: Z.length,
|
|
1175
|
+
[`${f}__input-container--end-adornment`]: F.length || r,
|
|
1180
1176
|
[`${f}__input-container--disabled`]: s.disabled,
|
|
1181
1177
|
[`${f}__input-container--has-clear-button`]: tr,
|
|
1182
1178
|
[`${f}__input-container--readonly`]: s.readOnly && !s.disabled
|
|
1183
1179
|
}
|
|
1184
1180
|
]);
|
|
1185
|
-
return /* @__PURE__ */
|
|
1186
|
-
l && /* @__PURE__ */
|
|
1187
|
-
|
|
1181
|
+
return /* @__PURE__ */ h("div", { className: w(a, f), children: [
|
|
1182
|
+
l && /* @__PURE__ */ h(
|
|
1183
|
+
Fe,
|
|
1188
1184
|
{
|
|
1189
|
-
htmlFor:
|
|
1185
|
+
htmlFor: x,
|
|
1190
1186
|
className: w(`${f}__label`),
|
|
1191
|
-
"data-testid":
|
|
1187
|
+
"data-testid": y("label"),
|
|
1192
1188
|
disabled: s.disabled,
|
|
1193
|
-
children:
|
|
1189
|
+
children: [
|
|
1190
|
+
s.required && /* @__PURE__ */ o("span", { "aria-hidden": !0, children: "*" }),
|
|
1191
|
+
l
|
|
1192
|
+
]
|
|
1194
1193
|
}
|
|
1195
1194
|
),
|
|
1196
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ h("div", { className: w(`${f}__field-row`), children: [
|
|
1197
1196
|
!!i && i,
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
!!
|
|
1197
|
+
/* @__PURE__ */ h("div", { className: nt, children: [
|
|
1198
|
+
!!Z.length && /* @__PURE__ */ o(
|
|
1200
1199
|
"div",
|
|
1201
1200
|
{
|
|
1202
|
-
"data-testid":
|
|
1201
|
+
"data-testid": y("start-adornments"),
|
|
1203
1202
|
className: w(`${f}__adornment-container`),
|
|
1204
|
-
children:
|
|
1203
|
+
children: Z
|
|
1205
1204
|
}
|
|
1206
1205
|
),
|
|
1207
1206
|
/* @__PURE__ */ o(
|
|
1208
1207
|
"input",
|
|
1209
1208
|
{
|
|
1210
1209
|
...s,
|
|
1211
|
-
id:
|
|
1210
|
+
id: x,
|
|
1212
1211
|
ref: tt,
|
|
1213
|
-
"data-testid":
|
|
1212
|
+
"data-testid": y("input"),
|
|
1214
1213
|
"aria-describedby": s["aria-describedby"] || W,
|
|
1215
1214
|
"aria-invalid": s["aria-invalid"] || !!e,
|
|
1216
1215
|
className: w([
|
|
@@ -1223,13 +1222,13 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1223
1222
|
}
|
|
1224
1223
|
),
|
|
1225
1224
|
/* @__PURE__ */ o("div", { className: w(`${f}__frame`) }),
|
|
1226
|
-
(!!
|
|
1225
|
+
(!!F.length || r) && /* @__PURE__ */ h(
|
|
1227
1226
|
"div",
|
|
1228
1227
|
{
|
|
1229
|
-
"data-testid":
|
|
1228
|
+
"data-testid": y("end-adornments"),
|
|
1230
1229
|
className: w(`${f}__adornment-container`),
|
|
1231
1230
|
children: [
|
|
1232
|
-
|
|
1231
|
+
F,
|
|
1233
1232
|
r
|
|
1234
1233
|
]
|
|
1235
1234
|
}
|
|
@@ -1237,10 +1236,10 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1237
1236
|
] }),
|
|
1238
1237
|
!!p && p
|
|
1239
1238
|
] }),
|
|
1240
|
-
W && /* @__PURE__ */ o(me, { "data-testid":
|
|
1241
|
-
e && /* @__PURE__ */ o(_e, { "data-testid":
|
|
1239
|
+
W && /* @__PURE__ */ o(me, { "data-testid": y("helper-text"), id: W, children: u }),
|
|
1240
|
+
e && /* @__PURE__ */ o(_e, { "data-testid": y("error-text"), children: e })
|
|
1242
1241
|
] });
|
|
1243
|
-
}, Jr =
|
|
1242
|
+
}, Jr = q(un);
|
|
1244
1243
|
Jr.displayName = "TextField";
|
|
1245
1244
|
function an(t) {
|
|
1246
1245
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1391,7 +1390,7 @@ const gn = {
|
|
|
1391
1390
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1392
1391
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1393
1392
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1394
|
-
}, hn = J.bind(vn), U = "purpur-password-strength-indicator", L =
|
|
1393
|
+
}, hn = J.bind(vn), U = "purpur-password-strength-indicator", L = q(
|
|
1395
1394
|
({
|
|
1396
1395
|
["data-testid"]: t = "password-strength-indicator",
|
|
1397
1396
|
active: a,
|
|
@@ -1425,8 +1424,8 @@ const mn = (t, a, n, i) => {
|
|
|
1425
1424
|
if (!t)
|
|
1426
1425
|
r(0), u(void 0), d(void 0);
|
|
1427
1426
|
else {
|
|
1428
|
-
const { default: _ } = await import("./main-
|
|
1429
|
-
r(v), u(s), d(
|
|
1427
|
+
const { default: _ } = await import("./main-Cv81pnI9.mjs").then(($) => $.m), { score: v } = _(t), [s, m] = c[v];
|
|
1428
|
+
r(v), u(s), d(m);
|
|
1430
1429
|
}
|
|
1431
1430
|
})();
|
|
1432
1431
|
}, [t, c]), {
|
|
@@ -1434,7 +1433,7 @@ const mn = (t, a, n, i) => {
|
|
|
1434
1433
|
passwordStrength: e,
|
|
1435
1434
|
currentPasswordStrengthText: l
|
|
1436
1435
|
};
|
|
1437
|
-
}, I = J.bind(gn), B = "purpur-password-strength", Q =
|
|
1436
|
+
}, I = J.bind(gn), B = "purpur-password-strength", Q = q(
|
|
1438
1437
|
({
|
|
1439
1438
|
["data-testid"]: t = "password-strength",
|
|
1440
1439
|
className: a,
|
|
@@ -1451,8 +1450,8 @@ const mn = (t, a, n, i) => {
|
|
|
1451
1450
|
r,
|
|
1452
1451
|
e
|
|
1453
1452
|
);
|
|
1454
|
-
return /* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ h("div", { "data-testid": t, className: d, ref: l, ...u, children: [
|
|
1454
|
+
/* @__PURE__ */ h("div", { className: I(`${B}__indicator-container`), children: [
|
|
1456
1455
|
/* @__PURE__ */ o(
|
|
1457
1456
|
L,
|
|
1458
1457
|
{
|
|
@@ -1475,7 +1474,7 @@ const mn = (t, a, n, i) => {
|
|
|
1475
1474
|
}
|
|
1476
1475
|
)
|
|
1477
1476
|
] }),
|
|
1478
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ h(
|
|
1479
1478
|
Qr,
|
|
1480
1479
|
{
|
|
1481
1480
|
"aria-live": "polite",
|
|
@@ -1485,7 +1484,7 @@ const mn = (t, a, n, i) => {
|
|
|
1485
1484
|
{ [`${B}__password-strength-text--${_}`]: _ }
|
|
1486
1485
|
]),
|
|
1487
1486
|
children: [
|
|
1488
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ h("span", { className: I(`${B}__password-strength-label`), children: [
|
|
1489
1488
|
i,
|
|
1490
1489
|
v ? ": " : ""
|
|
1491
1490
|
] }),
|
|
@@ -1497,22 +1496,22 @@ const mn = (t, a, n, i) => {
|
|
|
1497
1496
|
}
|
|
1498
1497
|
);
|
|
1499
1498
|
Q.displayName = "PasswordStrength";
|
|
1500
|
-
const Lr = J.bind(sn), Wr = "purpur-password-field", rt =
|
|
1499
|
+
const Lr = J.bind(sn), Wr = "purpur-password-field", rt = q(
|
|
1501
1500
|
({
|
|
1502
1501
|
["data-testid"]: t = "password-field",
|
|
1503
1502
|
children: a,
|
|
1504
1503
|
className: n,
|
|
1505
|
-
|
|
1504
|
+
hidePasswordAriaLabel: i,
|
|
1506
1505
|
onChange: p,
|
|
1507
|
-
|
|
1506
|
+
showPasswordAriaLabel: r,
|
|
1508
1507
|
...e
|
|
1509
1508
|
}, u) => {
|
|
1510
|
-
const l = Lr([n, Wr]), [d, c] = T(O.PASSWORD), _ = async (
|
|
1511
|
-
p == null || p(
|
|
1509
|
+
const l = Lr([n, Wr]), [d, c] = T(O.PASSWORD), _ = async (m) => {
|
|
1510
|
+
p == null || p(m);
|
|
1512
1511
|
}, v = () => {
|
|
1513
1512
|
c(d === O.PASSWORD ? O.TEXT : O.PASSWORD);
|
|
1514
|
-
}, s = d === O.PASSWORD ? Gr :
|
|
1515
|
-
return /* @__PURE__ */
|
|
1513
|
+
}, s = d === O.PASSWORD ? Gr : Fr;
|
|
1514
|
+
return /* @__PURE__ */ h("div", { className: l, children: [
|
|
1516
1515
|
/* @__PURE__ */ o(
|
|
1517
1516
|
Jr,
|
|
1518
1517
|
{
|
|
@@ -1522,7 +1521,7 @@ const Lr = J.bind(sn), Wr = "purpur-password-field", rt = z(
|
|
|
1522
1521
|
ref: u,
|
|
1523
1522
|
type: d,
|
|
1524
1523
|
endAdornment: /* @__PURE__ */ o(
|
|
1525
|
-
|
|
1524
|
+
Zr,
|
|
1526
1525
|
{
|
|
1527
1526
|
"aria-label": d === O.PASSWORD ? r : i,
|
|
1528
1527
|
"data-testid": `${t}-type-toggle-button`,
|
|
@@ -1548,4 +1547,4 @@ export {
|
|
|
1548
1547
|
an as g,
|
|
1549
1548
|
wn as i
|
|
1550
1549
|
};
|
|
1551
|
-
//# sourceMappingURL=password-field-
|
|
1550
|
+
//# sourceMappingURL=password-field-BvGcUSFD.mjs.map
|