@purpurds/password-field 6.7.1 → 6.8.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-CqBhSgIE.js → main-CDi97ESa.js} +2 -2
- package/dist/{main-CqBhSgIE.js.map → main-CDi97ESa.js.map} +1 -1
- package/dist/{main-B6vgbdqW.mjs → main-DCo7KuqJ.mjs} +2 -2
- package/dist/{main-B6vgbdqW.mjs.map → main-DCo7KuqJ.mjs.map} +1 -1
- package/dist/{password-field-BwuKVABM.mjs → password-field-BVXhX7rx.mjs} +96 -96
- package/dist/{password-field-BwuKVABM.mjs.map → password-field-BVXhX7rx.mjs.map} +1 -1
- package/dist/{password-field-CE2wn3y4.js → password-field-a_f90qT-.js} +11 -11
- package/dist/{password-field-CE2wn3y4.js.map → password-field-a_f90qT-.js.map} +1 -1
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.es.js +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as b, jsx as o, Fragment as at } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as z, useId as ut, 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 ur = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1",
|
|
51
|
+
const ur = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1", q = {
|
|
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 ur = /* @__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
|
+
}, P = "purpur-spinner", vt = {
|
|
64
64
|
SM: "sm"
|
|
65
65
|
}, ht = ({
|
|
66
66
|
["data-testid"]: t,
|
|
@@ -71,15 +71,15 @@ const ur = /* @__PURE__ */ ct(_t), ft = "_rotate_1xozj_1", gt = "_dash_1xozj_1",
|
|
|
71
71
|
}) => /* @__PURE__ */ o(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className: ur([P
|
|
74
|
+
className: ur([q[P], q[`${P}--${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: ur(
|
|
81
|
-
[
|
|
82
|
-
[
|
|
80
|
+
className: ur(q[`${P}__circle`], {
|
|
81
|
+
[q[`${P}__circle--disabled`]]: u,
|
|
82
|
+
[q[`${P}__circle--negative`]]: n
|
|
83
83
|
}),
|
|
84
84
|
cx: "25",
|
|
85
85
|
cy: "25",
|
|
@@ -203,7 +203,7 @@ const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
|
203
203
|
]
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
|
-
}, Fr =
|
|
206
|
+
}, Fr = z(St);
|
|
207
207
|
Fr.displayName = "Button";
|
|
208
208
|
function jt(t) {
|
|
209
209
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -248,7 +248,7 @@ function Nt() {
|
|
|
248
248
|
}(or)), or.exports;
|
|
249
249
|
}
|
|
250
250
|
var Ot = Nt();
|
|
251
|
-
const
|
|
251
|
+
const zt = /* @__PURE__ */ jt(Ot), qt = {
|
|
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 qt = /* @__PURE__ */ jt(Ot), Pt = {
|
|
|
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
|
+
}, Pt = zt.bind(qt), lr = "purpur-icon", At = "md", Mt = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Ct = ({ 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" },
|
|
@@ -264,18 +264,18 @@ const qt = /* @__PURE__ */ jt(Ot), Pt = {
|
|
|
264
264
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
265
265
|
], i = u ? `<title>${u}</title>` : "";
|
|
266
266
|
return `<svg ${Mt(n)}>${i}${t}</svg>`;
|
|
267
|
-
},
|
|
267
|
+
}, kt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), K = ({
|
|
268
268
|
["data-testid"]: t,
|
|
269
269
|
svg: u,
|
|
270
270
|
allyTitle: n,
|
|
271
271
|
className: i,
|
|
272
|
-
size: p =
|
|
272
|
+
size: p = At,
|
|
273
273
|
...r
|
|
274
274
|
}) => {
|
|
275
275
|
const e = Ct({
|
|
276
|
-
content:
|
|
276
|
+
content: kt(u.svg),
|
|
277
277
|
title: n
|
|
278
|
-
}), a =
|
|
278
|
+
}), a = Pt(i, lr, `${lr}--${p}`);
|
|
279
279
|
return /* @__PURE__ */ o(
|
|
280
280
|
"span",
|
|
281
281
|
{
|
|
@@ -288,21 +288,21 @@ const qt = /* @__PURE__ */ jt(Ot), Pt = {
|
|
|
288
288
|
);
|
|
289
289
|
};
|
|
290
290
|
K.displayName = "Icon";
|
|
291
|
-
const
|
|
291
|
+
const Rt = {
|
|
292
292
|
name: "password-invisible",
|
|
293
293
|
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
294
|
keywords: ["password-invisible"],
|
|
295
295
|
category: "action"
|
|
296
|
-
}, Zr = (t) => /* @__PURE__ */ o(K, { ...t, svg:
|
|
296
|
+
}, Zr = (t) => /* @__PURE__ */ o(K, { ...t, svg: Rt });
|
|
297
297
|
Zr.displayName = "IconPasswordInvisible";
|
|
298
|
-
const
|
|
298
|
+
const Et = {
|
|
299
299
|
name: "password-visible",
|
|
300
300
|
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>',
|
|
301
301
|
keywords: ["password-visible"],
|
|
302
302
|
category: "action"
|
|
303
|
-
}, Gr = (t) => /* @__PURE__ */ o(K, { ...t, svg:
|
|
303
|
+
}, Gr = (t) => /* @__PURE__ */ o(K, { ...t, svg: Et });
|
|
304
304
|
Gr.displayName = "IconPasswordVisible";
|
|
305
|
-
const
|
|
305
|
+
const Dt = {
|
|
306
306
|
LG: "lg"
|
|
307
307
|
};
|
|
308
308
|
function Bt(t) {
|
|
@@ -348,7 +348,7 @@ function It() {
|
|
|
348
348
|
}(cr)), cr.exports;
|
|
349
349
|
}
|
|
350
350
|
var Tt = It();
|
|
351
|
-
const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1",
|
|
351
|
+
const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1", A = {
|
|
352
352
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
353
353
|
rotate: Lt,
|
|
354
354
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -371,15 +371,15 @@ const _r = /* @__PURE__ */ Bt(Tt), Lt = "_rotate_1xozj_1", Wt = "_dash_1xozj_1",
|
|
|
371
371
|
}) => /* @__PURE__ */ o(
|
|
372
372
|
"div",
|
|
373
373
|
{
|
|
374
|
-
className: _r([
|
|
374
|
+
className: _r([A[M], A[`${M}--${i}`]]),
|
|
375
375
|
"data-testid": t,
|
|
376
376
|
...p,
|
|
377
377
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
378
378
|
"circle",
|
|
379
379
|
{
|
|
380
|
-
className: _r(
|
|
381
|
-
[
|
|
382
|
-
[
|
|
380
|
+
className: _r(A[`${M}__circle`], {
|
|
381
|
+
[A[`${M}__circle--disabled`]]: u,
|
|
382
|
+
[A[`${M}__circle--negative`]]: n
|
|
383
383
|
}),
|
|
384
384
|
cx: "25",
|
|
385
385
|
cy: "25",
|
|
@@ -497,13 +497,13 @@ const Ut = /* @__PURE__ */ Gt(Ht), Xt = {
|
|
|
497
497
|
onClick: $,
|
|
498
498
|
...v,
|
|
499
499
|
children: [
|
|
500
|
-
e && /* @__PURE__ */ o(Zt, { size: d ===
|
|
500
|
+
e && /* @__PURE__ */ o(Zt, { size: d === Dt.LG ? "xs" : "xxs", negative: a, disabled: S }),
|
|
501
501
|
" ",
|
|
502
502
|
t
|
|
503
503
|
]
|
|
504
504
|
}
|
|
505
505
|
);
|
|
506
|
-
}, Vr =
|
|
506
|
+
}, Vr = z(Yt);
|
|
507
507
|
Vr.displayName = "Button";
|
|
508
508
|
function Jt(t) {
|
|
509
509
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -732,9 +732,9 @@ var Or = { exports: {} };
|
|
|
732
732
|
Licensed under the MIT License (MIT), see
|
|
733
733
|
http://jedwatson.github.io/classnames
|
|
734
734
|
*/
|
|
735
|
-
var
|
|
735
|
+
var zr;
|
|
736
736
|
function ye() {
|
|
737
|
-
return
|
|
737
|
+
return zr || (zr = 1, function(t) {
|
|
738
738
|
(function() {
|
|
739
739
|
var u = {}.hasOwnProperty;
|
|
740
740
|
function n() {
|
|
@@ -774,7 +774,7 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
774
774
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
775
775
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
776
776
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
777
|
-
}, Se = we.bind($e),
|
|
777
|
+
}, Se = we.bind($e), qr = "purpur-icon", je = "md", Ne = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Oe = ({ content: t = "", title: u } = {}) => {
|
|
778
778
|
const n = [
|
|
779
779
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
780
780
|
{ name: "fill", value: "currentColor" },
|
|
@@ -782,7 +782,7 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
782
782
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
783
783
|
], i = u ? `<title>${u}</title>` : "";
|
|
784
784
|
return `<svg ${Ne(n)}>${i}${t}</svg>`;
|
|
785
|
-
},
|
|
785
|
+
}, ze = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Y = ({
|
|
786
786
|
["data-testid"]: t,
|
|
787
787
|
svg: u,
|
|
788
788
|
allyTitle: n,
|
|
@@ -791,9 +791,9 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
791
791
|
...r
|
|
792
792
|
}) => {
|
|
793
793
|
const e = Oe({
|
|
794
|
-
content:
|
|
794
|
+
content: ze(u.svg),
|
|
795
795
|
title: n
|
|
796
|
-
}), a = Se(i,
|
|
796
|
+
}), a = Se(i, qr, `${qr}--${p}`);
|
|
797
797
|
return /* @__PURE__ */ o(
|
|
798
798
|
"span",
|
|
799
799
|
{
|
|
@@ -806,37 +806,37 @@ const we = /* @__PURE__ */ be(xe), $e = {
|
|
|
806
806
|
);
|
|
807
807
|
};
|
|
808
808
|
Y.displayName = "Icon";
|
|
809
|
-
const
|
|
809
|
+
const qe = {
|
|
810
810
|
name: "check-circle-filled",
|
|
811
811
|
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>',
|
|
812
812
|
keywords: ["check-circle-filled"],
|
|
813
813
|
category: "status"
|
|
814
|
-
}, Ur = (t) => /* @__PURE__ */ o(Y, { ...t, svg:
|
|
814
|
+
}, Ur = (t) => /* @__PURE__ */ o(Y, { ...t, svg: qe });
|
|
815
815
|
Ur.displayName = "IconCheckCircleFilled";
|
|
816
|
-
const
|
|
816
|
+
const Pe = {
|
|
817
817
|
name: "close",
|
|
818
818
|
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>',
|
|
819
819
|
keywords: ["close"],
|
|
820
820
|
category: "utility"
|
|
821
|
-
}, Xr = (t) => /* @__PURE__ */ o(Y, { ...t, svg:
|
|
821
|
+
}, Xr = (t) => /* @__PURE__ */ o(Y, { ...t, svg: Pe });
|
|
822
822
|
Xr.displayName = "IconClose";
|
|
823
|
-
function
|
|
823
|
+
function Pr(t, u) {
|
|
824
824
|
if (typeof t == "function")
|
|
825
825
|
return t(u);
|
|
826
826
|
t != null && (t.current = u);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Ae(...t) {
|
|
829
829
|
return (u) => {
|
|
830
830
|
let n = !1;
|
|
831
831
|
const i = t.map((p) => {
|
|
832
|
-
const r =
|
|
832
|
+
const r = Pr(p, u);
|
|
833
833
|
return !n && typeof r == "function" && (n = !0), r;
|
|
834
834
|
});
|
|
835
835
|
if (n)
|
|
836
836
|
return () => {
|
|
837
837
|
for (let p = 0; p < i.length; p++) {
|
|
838
838
|
const r = i[p];
|
|
839
|
-
typeof r == "function" ? r() :
|
|
839
|
+
typeof r == "function" ? r() : Pr(t[p], null);
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
};
|
|
@@ -853,8 +853,8 @@ Kr.displayName = "Slot";
|
|
|
853
853
|
var X = g.forwardRef((t, u) => {
|
|
854
854
|
const { children: n, ...i } = t;
|
|
855
855
|
if (g.isValidElement(n)) {
|
|
856
|
-
const p =
|
|
857
|
-
return n.type !== g.Fragment && (r.ref = u ?
|
|
856
|
+
const p = Re(n), r = ke(i, n.props);
|
|
857
|
+
return n.type !== g.Fragment && (r.ref = u ? Ae(u, p) : p), g.cloneElement(n, r);
|
|
858
858
|
}
|
|
859
859
|
return g.Children.count(n) > 1 ? g.Children.only(null) : null;
|
|
860
860
|
});
|
|
@@ -863,7 +863,7 @@ var Me = ({ children: t }) => /* @__PURE__ */ o(at, { children: t });
|
|
|
863
863
|
function Ce(t) {
|
|
864
864
|
return g.isValidElement(t) && t.type === Me;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function ke(t, u) {
|
|
867
867
|
const n = { ...u };
|
|
868
868
|
for (const i in u) {
|
|
869
869
|
const p = t[i], r = u[i];
|
|
@@ -873,12 +873,12 @@ function Re(t, u) {
|
|
|
873
873
|
}
|
|
874
874
|
return { ...t, ...n };
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Re(t) {
|
|
877
877
|
var u, n;
|
|
878
878
|
let i = (u = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : u.get, p = i && "isReactWarning" in i && i.isReactWarning;
|
|
879
879
|
return p ? t.ref : (i = (n = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : n.get, p = i && "isReactWarning" in i && i.isReactWarning, p ? t.props.ref : t.props.ref || t.ref);
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var Ee = [
|
|
882
882
|
"a",
|
|
883
883
|
"button",
|
|
884
884
|
"div",
|
|
@@ -895,14 +895,14 @@ var De = [
|
|
|
895
895
|
"span",
|
|
896
896
|
"svg",
|
|
897
897
|
"ul"
|
|
898
|
-
],
|
|
898
|
+
], De = Ee.reduce((t, u) => {
|
|
899
899
|
const n = g.forwardRef((i, p) => {
|
|
900
900
|
const { asChild: r, ...e } = i, a = r ? Kr : u;
|
|
901
901
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(a, { ...e, ref: p });
|
|
902
902
|
});
|
|
903
903
|
return n.displayName = `Primitive.${u}`, { ...t, [u]: n };
|
|
904
904
|
}, {}), Be = "Label", Yr = g.forwardRef((t, u) => /* @__PURE__ */ o(
|
|
905
|
-
|
|
905
|
+
De.label,
|
|
906
906
|
{
|
|
907
907
|
...t,
|
|
908
908
|
ref: u,
|
|
@@ -917,7 +917,7 @@ var Ie = Yr;
|
|
|
917
917
|
function Te(t) {
|
|
918
918
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
919
919
|
}
|
|
920
|
-
var
|
|
920
|
+
var Ar = { exports: {} };
|
|
921
921
|
/*!
|
|
922
922
|
Copyright (c) 2018 Jed Watson.
|
|
923
923
|
Licensed under the MIT License (MIT), see
|
|
@@ -954,7 +954,7 @@ function Le() {
|
|
|
954
954
|
}
|
|
955
955
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
956
956
|
})();
|
|
957
|
-
}(
|
|
957
|
+
}(Ar)), Ar.exports;
|
|
958
958
|
}
|
|
959
959
|
var We = Le();
|
|
960
960
|
const Fe = /* @__PURE__ */ Te(We), G = {
|
|
@@ -989,9 +989,9 @@ var Cr = { exports: {} };
|
|
|
989
989
|
Licensed under the MIT License (MIT), see
|
|
990
990
|
http://jedwatson.github.io/classnames
|
|
991
991
|
*/
|
|
992
|
-
var
|
|
992
|
+
var kr;
|
|
993
993
|
function Ve() {
|
|
994
|
-
return
|
|
994
|
+
return kr || (kr = 1, function(t) {
|
|
995
995
|
(function() {
|
|
996
996
|
var u = {}.hasOwnProperty;
|
|
997
997
|
function n() {
|
|
@@ -1023,7 +1023,7 @@ function Ve() {
|
|
|
1023
1023
|
}(Cr)), Cr.exports;
|
|
1024
1024
|
}
|
|
1025
1025
|
var He = Ve();
|
|
1026
|
-
const
|
|
1026
|
+
const Rr = /* @__PURE__ */ Ge(He), Ue = "_rotate_1xozj_1", Xe = "_dash_1xozj_1", C = {
|
|
1027
1027
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
1028
1028
|
rotate: Ue,
|
|
1029
1029
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -1035,7 +1035,7 @@ const Er = /* @__PURE__ */ Ge(He), Ue = "_rotate_1xozj_1", Xe = "_dash_1xozj_1",
|
|
|
1035
1035
|
dash: Xe,
|
|
1036
1036
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
1037
1037
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
1038
|
-
},
|
|
1038
|
+
}, k = "purpur-spinner", Ke = {
|
|
1039
1039
|
SM: "sm"
|
|
1040
1040
|
}, Ye = ({
|
|
1041
1041
|
["data-testid"]: t,
|
|
@@ -1046,15 +1046,15 @@ const Er = /* @__PURE__ */ Ge(He), Ue = "_rotate_1xozj_1", Xe = "_dash_1xozj_1",
|
|
|
1046
1046
|
}) => /* @__PURE__ */ o(
|
|
1047
1047
|
"div",
|
|
1048
1048
|
{
|
|
1049
|
-
className:
|
|
1049
|
+
className: Rr([C[k], C[`${k}--${i}`]]),
|
|
1050
1050
|
"data-testid": t,
|
|
1051
1051
|
...p,
|
|
1052
1052
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
1053
1053
|
"circle",
|
|
1054
1054
|
{
|
|
1055
|
-
className:
|
|
1056
|
-
[C[`${
|
|
1057
|
-
[C[`${
|
|
1055
|
+
className: Rr(C[`${k}__circle`], {
|
|
1056
|
+
[C[`${k}__circle--disabled`]]: u,
|
|
1057
|
+
[C[`${k}__circle--negative`]]: n
|
|
1058
1058
|
}),
|
|
1059
1059
|
cx: "25",
|
|
1060
1060
|
cy: "25",
|
|
@@ -1066,15 +1066,15 @@ const Er = /* @__PURE__ */ Ge(He), Ue = "_rotate_1xozj_1", Xe = "_dash_1xozj_1",
|
|
|
1066
1066
|
function Je(t) {
|
|
1067
1067
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1068
1068
|
}
|
|
1069
|
-
var
|
|
1069
|
+
var Er = { exports: {} };
|
|
1070
1070
|
/*!
|
|
1071
1071
|
Copyright (c) 2018 Jed Watson.
|
|
1072
1072
|
Licensed under the MIT License (MIT), see
|
|
1073
1073
|
http://jedwatson.github.io/classnames
|
|
1074
1074
|
*/
|
|
1075
|
-
var
|
|
1075
|
+
var Dr;
|
|
1076
1076
|
function Qe() {
|
|
1077
|
-
return
|
|
1077
|
+
return Dr || (Dr = 1, function(t) {
|
|
1078
1078
|
(function() {
|
|
1079
1079
|
var u = {}.hasOwnProperty;
|
|
1080
1080
|
function n() {
|
|
@@ -1103,26 +1103,26 @@ function Qe() {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1105
1105
|
})();
|
|
1106
|
-
}(
|
|
1106
|
+
}(Er)), Er.exports;
|
|
1107
1107
|
}
|
|
1108
1108
|
var rn = Qe();
|
|
1109
1109
|
const tn = /* @__PURE__ */ Je(rn), en = {
|
|
1110
|
-
"purpur-text-field": "_purpur-text-
|
|
1111
|
-
"purpur-text-field__label": "_purpur-text-
|
|
1112
|
-
"purpur-text-field__label-text": "_purpur-text-field__label-
|
|
1113
|
-
"purpur-text-field__field-row": "_purpur-text-field__field-
|
|
1114
|
-
"purpur-text-field__frame": "_purpur-text-
|
|
1115
|
-
"purpur-text-field__input-container": "_purpur-text-field__input-
|
|
1116
|
-
"purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--
|
|
1117
|
-
"purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--
|
|
1118
|
-
"purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-
|
|
1119
|
-
"purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-
|
|
1120
|
-
"purpur-text-field__input": "_purpur-text-
|
|
1121
|
-
"purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-
|
|
1122
|
-
"purpur-text-field__input--valid": "_purpur-text-field__input--
|
|
1123
|
-
"purpur-text-field__input--error": "_purpur-text-field__input--
|
|
1124
|
-
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-
|
|
1125
|
-
"purpur-text-field__valid-icon": "_purpur-text-field__valid-
|
|
1110
|
+
"purpur-text-field": "_purpur-text-field_1k23z_1",
|
|
1111
|
+
"purpur-text-field__label": "_purpur-text-field__label_1k23z_7",
|
|
1112
|
+
"purpur-text-field__label-text": "_purpur-text-field__label-text_1k23z_13",
|
|
1113
|
+
"purpur-text-field__field-row": "_purpur-text-field__field-row_1k23z_16",
|
|
1114
|
+
"purpur-text-field__frame": "_purpur-text-field__frame_1k23z_20",
|
|
1115
|
+
"purpur-text-field__input-container": "_purpur-text-field__input-container_1k23z_27",
|
|
1116
|
+
"purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--disabled_1k23z_38",
|
|
1117
|
+
"purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--readonly_1k23z_41",
|
|
1118
|
+
"purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-button_1k23z_44",
|
|
1119
|
+
"purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-adornment_1k23z_47",
|
|
1120
|
+
"purpur-text-field__input": "_purpur-text-field__input_1k23z_27",
|
|
1121
|
+
"purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-adornment_1k23z_53",
|
|
1122
|
+
"purpur-text-field__input--valid": "_purpur-text-field__input--valid_1k23z_95",
|
|
1123
|
+
"purpur-text-field__input--error": "_purpur-text-field__input--error_1k23z_95",
|
|
1124
|
+
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_1k23z_107",
|
|
1125
|
+
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_1k23z_112"
|
|
1126
1126
|
}, nn = (t) => it(t), w = tn.bind(en), f = "purpur-text-field", an = ({
|
|
1127
1127
|
["data-testid"]: t,
|
|
1128
1128
|
className: u,
|
|
@@ -1244,7 +1244,7 @@ const tn = /* @__PURE__ */ Je(rn), en = {
|
|
|
1244
1244
|
W && /* @__PURE__ */ o(me, { "data-testid": x("helper-text"), id: W, children: a }),
|
|
1245
1245
|
e && /* @__PURE__ */ o(_e, { "data-testid": x("error-text"), children: e })
|
|
1246
1246
|
] });
|
|
1247
|
-
}, Jr =
|
|
1247
|
+
}, Jr = z(an);
|
|
1248
1248
|
Jr.displayName = "TextField";
|
|
1249
1249
|
function un(t) {
|
|
1250
1250
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1289,7 +1289,7 @@ function pn() {
|
|
|
1289
1289
|
}(H)), H.exports;
|
|
1290
1290
|
}
|
|
1291
1291
|
var on = pn();
|
|
1292
|
-
const J = /* @__PURE__ */ un(on),
|
|
1292
|
+
const J = /* @__PURE__ */ un(on), R = {
|
|
1293
1293
|
WEAK: "weak",
|
|
1294
1294
|
MEDIUM: "medium",
|
|
1295
1295
|
STRONG: "strong"
|
|
@@ -1342,7 +1342,7 @@ function cn() {
|
|
|
1342
1342
|
}(Ir)), Ir.exports;
|
|
1343
1343
|
}
|
|
1344
1344
|
var dn = cn();
|
|
1345
|
-
const _n = /* @__PURE__ */ ln(dn),
|
|
1345
|
+
const _n = /* @__PURE__ */ ln(dn), E = {
|
|
1346
1346
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
1347
1347
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
1348
1348
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -1359,7 +1359,7 @@ const _n = /* @__PURE__ */ ln(dn), D = {
|
|
|
1359
1359
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1360
1360
|
}, fn = {
|
|
1361
1361
|
PARAGRAPH100: "paragraph-100"
|
|
1362
|
-
},
|
|
1362
|
+
}, D = "purpur-paragraph", Qr = ({
|
|
1363
1363
|
["data-testid"]: t,
|
|
1364
1364
|
children: u,
|
|
1365
1365
|
className: n,
|
|
@@ -1371,12 +1371,12 @@ const _n = /* @__PURE__ */ ln(dn), D = {
|
|
|
1371
1371
|
}) => {
|
|
1372
1372
|
const l = _n([
|
|
1373
1373
|
n,
|
|
1374
|
-
D
|
|
1375
|
-
|
|
1374
|
+
E[D],
|
|
1375
|
+
E[`${D}--${e}`],
|
|
1376
1376
|
{
|
|
1377
|
-
[
|
|
1378
|
-
[
|
|
1379
|
-
[
|
|
1377
|
+
[E[`${D}--hyphens`]]: p,
|
|
1378
|
+
[E[`${D}--disabled`]]: i,
|
|
1379
|
+
[E[`${D}--negative`]]: r
|
|
1380
1380
|
}
|
|
1381
1381
|
]);
|
|
1382
1382
|
return /* @__PURE__ */ o("p", { ...a, className: l, "data-testid": t, children: u });
|
|
@@ -1395,7 +1395,7 @@ const gn = {
|
|
|
1395
1395
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1396
1396
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1397
1397
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1398
|
-
}, hn = J.bind(vn), U = "purpur-password-strength-indicator", L =
|
|
1398
|
+
}, hn = J.bind(vn), U = "purpur-password-strength-indicator", L = z(
|
|
1399
1399
|
({
|
|
1400
1400
|
["data-testid"]: t = "password-strength-indicator",
|
|
1401
1401
|
active: u,
|
|
@@ -1415,11 +1415,11 @@ L.displayName = "PasswordStrengthIndicator";
|
|
|
1415
1415
|
const mn = (t, u, n, i) => {
|
|
1416
1416
|
const [p, r] = T(0), [e, a] = T(), [l, d] = T(void 0), c = pt(
|
|
1417
1417
|
() => ({
|
|
1418
|
-
0: [
|
|
1419
|
-
1: [
|
|
1420
|
-
2: [
|
|
1421
|
-
3: [
|
|
1422
|
-
4: [
|
|
1418
|
+
0: [R.WEAK, u],
|
|
1419
|
+
1: [R.WEAK, u],
|
|
1420
|
+
2: [R.MEDIUM, n],
|
|
1421
|
+
3: [R.STRONG, i],
|
|
1422
|
+
4: [R.STRONG, i]
|
|
1423
1423
|
}),
|
|
1424
1424
|
[u, n, i]
|
|
1425
1425
|
);
|
|
@@ -1428,7 +1428,7 @@ const mn = (t, u, n, i) => {
|
|
|
1428
1428
|
if (!t)
|
|
1429
1429
|
r(0), a(void 0), d(void 0);
|
|
1430
1430
|
else {
|
|
1431
|
-
const { default: _ } = await import("./main-
|
|
1431
|
+
const { default: _ } = await import("./main-DCo7KuqJ.mjs").then(($) => $.m), { score: v } = _(t), [s, h] = c[v];
|
|
1432
1432
|
r(v), a(s), d(h);
|
|
1433
1433
|
}
|
|
1434
1434
|
})();
|
|
@@ -1437,7 +1437,7 @@ const mn = (t, u, n, i) => {
|
|
|
1437
1437
|
passwordStrength: e,
|
|
1438
1438
|
currentPasswordStrengthText: l
|
|
1439
1439
|
};
|
|
1440
|
-
}, I = J.bind(gn), B = "purpur-password-strength", Q =
|
|
1440
|
+
}, I = J.bind(gn), B = "purpur-password-strength", Q = z(
|
|
1441
1441
|
({
|
|
1442
1442
|
["data-testid"]: t = "password-strength",
|
|
1443
1443
|
className: u,
|
|
@@ -1500,7 +1500,7 @@ const mn = (t, u, n, i) => {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
);
|
|
1502
1502
|
Q.displayName = "PasswordStrength";
|
|
1503
|
-
const Lr = J.bind(sn), Wr = "purpur-password-field", rt =
|
|
1503
|
+
const Lr = J.bind(sn), Wr = "purpur-password-field", rt = z(
|
|
1504
1504
|
({
|
|
1505
1505
|
["data-testid"]: t = "password-field",
|
|
1506
1506
|
children: u,
|
|
@@ -1554,4 +1554,4 @@ export {
|
|
|
1554
1554
|
un as g,
|
|
1555
1555
|
wn as i
|
|
1556
1556
|
};
|
|
1557
|
-
//# sourceMappingURL=password-field-
|
|
1557
|
+
//# sourceMappingURL=password-field-BVXhX7rx.mjs.map
|