@purpurds/password-field 8.19.0 → 8.20.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-RjhaxNG1.js → main-CTpFtb46.js} +2 -2
- package/dist/{main-RjhaxNG1.js.map → main-CTpFtb46.js.map} +1 -1
- package/dist/{main-BR_vazIG.mjs → main-cIXswkZU.mjs} +4 -6
- package/dist/{main-BR_vazIG.mjs.map → main-cIXswkZU.mjs.map} +1 -1
- package/dist/{password-field-rjwA_Jz0.mjs → password-field-BtkPLVY0.mjs} +299 -290
- package/dist/password-field-BtkPLVY0.mjs.map +1 -0
- package/dist/password-field-Dgzz12vc.js +2 -0
- package/dist/password-field-Dgzz12vc.js.map +1 -0
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.es.js +1 -1
- package/package.json +11 -11
- package/dist/password-field-CTbEtb0H.js +0 -2
- package/dist/password-field-CTbEtb0H.js.map +0 -1
- package/dist/password-field-rjwA_Jz0.mjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as O, useId as
|
|
2
|
+
import * as g from "react";
|
|
3
|
+
import { forwardRef as O, useId as ut, useRef as it, useState as E, useMemo as pt, useEffect as at, isValidElement as st } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const ot = {
|
|
6
6
|
LG: "lg"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function lt(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
var rr = { exports: {} }, tr;
|
|
12
|
+
function ct() {
|
|
13
|
+
return tr || (tr = 1, (function(t) {
|
|
14
14
|
(function() {
|
|
15
15
|
var i = {}.hasOwnProperty;
|
|
16
16
|
function n() {
|
|
@@ -39,33 +39,33 @@ function ot() {
|
|
|
39
39
|
}
|
|
40
40
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
42
|
+
})(rr)), rr.exports;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const
|
|
44
|
+
var _t = ct();
|
|
45
|
+
const dt = /* @__PURE__ */ lt(_t), ft = "_rotate_12t9p_1", gt = "_dash_12t9p_1", vt = {
|
|
46
46
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
47
|
-
rotate:
|
|
47
|
+
rotate: ft,
|
|
48
48
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
49
49
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
50
50
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
51
51
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
52
52
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
53
53
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
54
|
-
dash:
|
|
54
|
+
dash: gt,
|
|
55
55
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
56
56
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
57
|
-
},
|
|
57
|
+
}, er = dt.bind(vt), P = "purpur-spinner", ht = {
|
|
58
58
|
SM: "sm"
|
|
59
|
-
},
|
|
59
|
+
}, Br = ({
|
|
60
60
|
disabled: t = !1,
|
|
61
61
|
negative: i = !1,
|
|
62
|
-
size: n =
|
|
62
|
+
size: n = ht.SM,
|
|
63
63
|
className: a,
|
|
64
64
|
...p
|
|
65
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
65
|
+
}) => /* @__PURE__ */ s("div", { className: er(P, `${P}--${n}`, a), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
66
66
|
"circle",
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: er(`${P}__circle`, {
|
|
69
69
|
[`${P}__circle--disabled`]: t,
|
|
70
70
|
[`${P}__circle--negative`]: i
|
|
71
71
|
}),
|
|
@@ -74,13 +74,13 @@ const ct = /* @__PURE__ */ st(lt), _t = "_rotate_12t9p_1", dt = "_dash_12t9p_1",
|
|
|
74
74
|
r: "20"
|
|
75
75
|
}
|
|
76
76
|
) }) });
|
|
77
|
-
|
|
78
|
-
function
|
|
77
|
+
Br.displayName = "Spinner";
|
|
78
|
+
function mt(t) {
|
|
79
79
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
80
80
|
}
|
|
81
|
-
var
|
|
82
|
-
function
|
|
83
|
-
return
|
|
81
|
+
var nr = { exports: {} }, ur;
|
|
82
|
+
function bt() {
|
|
83
|
+
return ur || (ur = 1, (function(t) {
|
|
84
84
|
(function() {
|
|
85
85
|
var i = {}.hasOwnProperty;
|
|
86
86
|
function n() {
|
|
@@ -109,10 +109,10 @@ function ht() {
|
|
|
109
109
|
}
|
|
110
110
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
111
111
|
})();
|
|
112
|
-
})(
|
|
112
|
+
})(nr)), nr.exports;
|
|
113
113
|
}
|
|
114
|
-
var
|
|
115
|
-
const
|
|
114
|
+
var yt = bt();
|
|
115
|
+
const xt = /* @__PURE__ */ mt(yt), wt = {
|
|
116
116
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
117
117
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
118
118
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -135,7 +135,7 @@ const bt = /* @__PURE__ */ vt(mt), yt = {
|
|
|
135
135
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
136
136
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
137
137
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
138
|
-
},
|
|
138
|
+
}, ir = xt.bind(wt), S = "purpur-button", Lr = O(
|
|
139
139
|
({
|
|
140
140
|
children: t,
|
|
141
141
|
className: i,
|
|
@@ -147,12 +147,12 @@ const bt = /* @__PURE__ */ vt(mt), yt = {
|
|
|
147
147
|
onClick: u,
|
|
148
148
|
size: d = "md",
|
|
149
149
|
variant: o,
|
|
150
|
-
type:
|
|
150
|
+
type: v = "button",
|
|
151
151
|
...l
|
|
152
152
|
}, h) => {
|
|
153
153
|
if (p && o === "destructive")
|
|
154
154
|
return null;
|
|
155
|
-
const y =
|
|
155
|
+
const y = ir(
|
|
156
156
|
[
|
|
157
157
|
S,
|
|
158
158
|
`${S}--${e ? `${o}-negative` : o}`,
|
|
@@ -172,19 +172,19 @@ const bt = /* @__PURE__ */ vt(mt), yt = {
|
|
|
172
172
|
"button",
|
|
173
173
|
{
|
|
174
174
|
className: y,
|
|
175
|
-
type:
|
|
175
|
+
type: v,
|
|
176
176
|
ref: h,
|
|
177
177
|
"aria-disabled": c,
|
|
178
178
|
onClick: f,
|
|
179
179
|
...l,
|
|
180
180
|
children: [
|
|
181
181
|
r && /* @__PURE__ */ s(
|
|
182
|
-
|
|
182
|
+
Br,
|
|
183
183
|
{
|
|
184
|
-
size: d ===
|
|
184
|
+
size: d === ot.LG ? "xs" : "xxs",
|
|
185
185
|
negative: e,
|
|
186
186
|
disabled: c,
|
|
187
|
-
className:
|
|
187
|
+
className: ir(`${S}__spinner`)
|
|
188
188
|
}
|
|
189
189
|
),
|
|
190
190
|
" ",
|
|
@@ -194,13 +194,13 @@ const bt = /* @__PURE__ */ vt(mt), yt = {
|
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
);
|
|
197
|
-
|
|
198
|
-
function
|
|
197
|
+
Lr.displayName = "Button";
|
|
198
|
+
function $t(t) {
|
|
199
199
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
return
|
|
201
|
+
var pr = { exports: {} }, ar;
|
|
202
|
+
function St() {
|
|
203
|
+
return ar || (ar = 1, (function(t) {
|
|
204
204
|
(function() {
|
|
205
205
|
var i = {}.hasOwnProperty;
|
|
206
206
|
function n() {
|
|
@@ -229,10 +229,10 @@ function wt() {
|
|
|
229
229
|
}
|
|
230
230
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
231
231
|
})();
|
|
232
|
-
})(
|
|
232
|
+
})(pr)), pr.exports;
|
|
233
233
|
}
|
|
234
|
-
var
|
|
235
|
-
const
|
|
234
|
+
var jt = St();
|
|
235
|
+
const Nt = /* @__PURE__ */ $t(jt), Ot = {
|
|
236
236
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
237
237
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
238
238
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -240,45 +240,45 @@ const St = /* @__PURE__ */ xt($t), jt = {
|
|
|
240
240
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
241
241
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
242
242
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
243
|
-
},
|
|
243
|
+
}, Pt = Nt.bind(Ot), sr = "purpur-icon", At = "md", qt = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Ct = ({ content: t = "", title: i } = {}) => {
|
|
244
244
|
const n = [
|
|
245
245
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
246
246
|
{ name: "fill", value: "currentColor" },
|
|
247
247
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
248
248
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
249
249
|
], a = i ? `<title>${i}</title>` : "";
|
|
250
|
-
return `<svg ${
|
|
251
|
-
},
|
|
252
|
-
const r =
|
|
253
|
-
content:
|
|
250
|
+
return `<svg ${qt(n)}>${a}${t}</svg>`;
|
|
251
|
+
}, Mt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({ svg: t, allyTitle: i, className: n, size: a = At, ...p }) => {
|
|
252
|
+
const r = Ct({
|
|
253
|
+
content: Mt(t.svg),
|
|
254
254
|
title: i
|
|
255
|
-
}), e =
|
|
255
|
+
}), e = Pt(sr, `${sr}--${a}`, n);
|
|
256
256
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
257
257
|
};
|
|
258
|
-
|
|
259
|
-
const
|
|
258
|
+
H.displayName = "Icon";
|
|
259
|
+
const zt = {
|
|
260
260
|
name: "password-invisible",
|
|
261
261
|
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>',
|
|
262
262
|
keywords: ["password-invisible"],
|
|
263
263
|
category: "action"
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
const
|
|
264
|
+
}, Tr = (t) => /* @__PURE__ */ s(H, { ...t, svg: zt });
|
|
265
|
+
Tr.displayName = "IconPasswordInvisible";
|
|
266
|
+
const Rt = {
|
|
267
267
|
name: "password-visible",
|
|
268
268
|
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>',
|
|
269
269
|
keywords: ["password-visible"],
|
|
270
270
|
category: "action"
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
const
|
|
271
|
+
}, Wr = (t) => /* @__PURE__ */ s(H, { ...t, svg: Rt });
|
|
272
|
+
Wr.displayName = "IconPasswordVisible";
|
|
273
|
+
const Et = {
|
|
274
274
|
LG: "lg"
|
|
275
275
|
};
|
|
276
|
-
function
|
|
276
|
+
function It(t) {
|
|
277
277
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
281
|
-
return
|
|
279
|
+
var or = { exports: {} }, lr;
|
|
280
|
+
function kt() {
|
|
281
|
+
return lr || (lr = 1, (function(t) {
|
|
282
282
|
(function() {
|
|
283
283
|
var i = {}.hasOwnProperty;
|
|
284
284
|
function n() {
|
|
@@ -307,33 +307,33 @@ function Et() {
|
|
|
307
307
|
}
|
|
308
308
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
309
309
|
})();
|
|
310
|
-
})(
|
|
310
|
+
})(or)), or.exports;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
const
|
|
312
|
+
var Dt = kt();
|
|
313
|
+
const Bt = /* @__PURE__ */ It(Dt), Lt = "_rotate_12t9p_1", Tt = "_dash_12t9p_1", Wt = {
|
|
314
314
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
315
|
-
rotate:
|
|
315
|
+
rotate: Lt,
|
|
316
316
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
317
317
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
318
318
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
319
319
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
320
320
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
321
321
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
322
|
-
dash:
|
|
322
|
+
dash: Tt,
|
|
323
323
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
324
324
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
325
|
-
},
|
|
325
|
+
}, cr = Bt.bind(Wt), A = "purpur-spinner", Zt = {
|
|
326
326
|
SM: "sm"
|
|
327
|
-
},
|
|
327
|
+
}, Zr = ({
|
|
328
328
|
disabled: t = !1,
|
|
329
329
|
negative: i = !1,
|
|
330
|
-
size: n =
|
|
330
|
+
size: n = Zt.SM,
|
|
331
331
|
className: a,
|
|
332
332
|
...p
|
|
333
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
333
|
+
}) => /* @__PURE__ */ s("div", { className: cr(A, `${A}--${n}`, a), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
334
334
|
"circle",
|
|
335
335
|
{
|
|
336
|
-
className:
|
|
336
|
+
className: cr(`${A}__circle`, {
|
|
337
337
|
[`${A}__circle--disabled`]: t,
|
|
338
338
|
[`${A}__circle--negative`]: i
|
|
339
339
|
}),
|
|
@@ -342,13 +342,13 @@ const kt = /* @__PURE__ */ Rt(It), Dt = "_rotate_12t9p_1", Bt = "_dash_12t9p_1",
|
|
|
342
342
|
r: "20"
|
|
343
343
|
}
|
|
344
344
|
) }) });
|
|
345
|
-
|
|
346
|
-
function
|
|
345
|
+
Zr.displayName = "Spinner";
|
|
346
|
+
function Gt(t) {
|
|
347
347
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
348
348
|
}
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
return
|
|
349
|
+
var _r = { exports: {} }, dr;
|
|
350
|
+
function Ft() {
|
|
351
|
+
return dr || (dr = 1, (function(t) {
|
|
352
352
|
(function() {
|
|
353
353
|
var i = {}.hasOwnProperty;
|
|
354
354
|
function n() {
|
|
@@ -377,10 +377,10 @@ function Zt() {
|
|
|
377
377
|
}
|
|
378
378
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
379
379
|
})();
|
|
380
|
-
})(
|
|
380
|
+
})(_r)), _r.exports;
|
|
381
381
|
}
|
|
382
|
-
var
|
|
383
|
-
const
|
|
382
|
+
var Vt = Ft();
|
|
383
|
+
const Ht = /* @__PURE__ */ Gt(Vt), Kt = {
|
|
384
384
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
385
385
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
386
386
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -403,7 +403,7 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
403
403
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
404
404
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
405
405
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
406
|
-
},
|
|
406
|
+
}, fr = Ht.bind(Kt), j = "purpur-button", Gr = O(
|
|
407
407
|
({
|
|
408
408
|
children: t,
|
|
409
409
|
className: i,
|
|
@@ -415,12 +415,12 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
415
415
|
onClick: u,
|
|
416
416
|
size: d = "md",
|
|
417
417
|
variant: o,
|
|
418
|
-
type:
|
|
418
|
+
type: v = "button",
|
|
419
419
|
...l
|
|
420
420
|
}, h) => {
|
|
421
421
|
if (p && o === "destructive")
|
|
422
422
|
return null;
|
|
423
|
-
const y =
|
|
423
|
+
const y = fr(
|
|
424
424
|
[
|
|
425
425
|
j,
|
|
426
426
|
`${j}--${e ? `${o}-negative` : o}`,
|
|
@@ -440,19 +440,19 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
440
440
|
"button",
|
|
441
441
|
{
|
|
442
442
|
className: y,
|
|
443
|
-
type:
|
|
443
|
+
type: v,
|
|
444
444
|
ref: h,
|
|
445
445
|
"aria-disabled": c,
|
|
446
446
|
onClick: f,
|
|
447
447
|
...l,
|
|
448
448
|
children: [
|
|
449
449
|
r && /* @__PURE__ */ s(
|
|
450
|
-
|
|
450
|
+
Zr,
|
|
451
451
|
{
|
|
452
|
-
size: d ===
|
|
452
|
+
size: d === Et.LG ? "xs" : "xxs",
|
|
453
453
|
negative: e,
|
|
454
454
|
disabled: c,
|
|
455
|
-
className:
|
|
455
|
+
className: fr(`${j}__spinner`)
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
458
|
" ",
|
|
@@ -462,13 +462,13 @@ const Ft = /* @__PURE__ */ Wt(Gt), Vt = {
|
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
);
|
|
465
|
-
|
|
466
|
-
function
|
|
465
|
+
Gr.displayName = "Button";
|
|
466
|
+
function Ut(t) {
|
|
467
467
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
return
|
|
469
|
+
var gr = { exports: {} }, vr;
|
|
470
|
+
function Xt() {
|
|
471
|
+
return vr || (vr = 1, (function(t) {
|
|
472
472
|
(function() {
|
|
473
473
|
var i = {}.hasOwnProperty;
|
|
474
474
|
function n() {
|
|
@@ -497,10 +497,10 @@ function Kt() {
|
|
|
497
497
|
}
|
|
498
498
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
499
499
|
})();
|
|
500
|
-
})(
|
|
500
|
+
})(gr)), gr.exports;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
const
|
|
502
|
+
var Yt = Xt();
|
|
503
|
+
const Jt = /* @__PURE__ */ Ut(Yt), Qt = {
|
|
504
504
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
505
505
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
506
506
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -508,34 +508,34 @@ const Yt = /* @__PURE__ */ Ht(Ut), Xt = {
|
|
|
508
508
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
509
509
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
510
510
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
511
|
-
},
|
|
511
|
+
}, re = Jt.bind(Qt), hr = "purpur-icon", te = "md", ee = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), ne = ({ content: t = "", title: i } = {}) => {
|
|
512
512
|
const n = [
|
|
513
513
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
514
514
|
{ name: "fill", value: "currentColor" },
|
|
515
515
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
516
516
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
517
517
|
], a = i ? `<title>${i}</title>` : "";
|
|
518
|
-
return `<svg ${
|
|
519
|
-
},
|
|
520
|
-
const r =
|
|
521
|
-
content:
|
|
518
|
+
return `<svg ${ee(n)}>${a}${t}</svg>`;
|
|
519
|
+
}, ue = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Fr = ({ svg: t, allyTitle: i, className: n, size: a = te, ...p }) => {
|
|
520
|
+
const r = ne({
|
|
521
|
+
content: ue(t.svg),
|
|
522
522
|
title: i
|
|
523
|
-
}), e =
|
|
523
|
+
}), e = re(hr, `${hr}--${a}`, n);
|
|
524
524
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
525
525
|
};
|
|
526
|
-
|
|
527
|
-
const
|
|
526
|
+
Fr.displayName = "Icon";
|
|
527
|
+
const ie = {
|
|
528
528
|
name: "error-filled",
|
|
529
529
|
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>',
|
|
530
530
|
keywords: ["error-filled"],
|
|
531
531
|
category: "status"
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function pe(t) {
|
|
534
534
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
535
535
|
}
|
|
536
|
-
var
|
|
537
|
-
function
|
|
538
|
-
return
|
|
536
|
+
var mr = { exports: {} }, br;
|
|
537
|
+
function ae() {
|
|
538
|
+
return br || (br = 1, (function(t) {
|
|
539
539
|
(function() {
|
|
540
540
|
var i = {}.hasOwnProperty;
|
|
541
541
|
function n() {
|
|
@@ -564,14 +564,14 @@ function ie() {
|
|
|
564
564
|
}
|
|
565
565
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
566
566
|
})();
|
|
567
|
-
})(
|
|
567
|
+
})(mr)), mr.exports;
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
const
|
|
569
|
+
var se = ae();
|
|
570
|
+
const oe = /* @__PURE__ */ pe(se), le = {
|
|
571
571
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
572
572
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
573
573
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
574
|
-
},
|
|
574
|
+
}, yr = oe.bind(le), W = "purpur-field-error-text", ce = ({
|
|
575
575
|
children: t,
|
|
576
576
|
className: i,
|
|
577
577
|
negative: n = !1,
|
|
@@ -580,24 +580,24 @@ const ae = /* @__PURE__ */ ue(pe), se = {
|
|
|
580
580
|
}) => /* @__PURE__ */ m(
|
|
581
581
|
"div",
|
|
582
582
|
{
|
|
583
|
-
className:
|
|
584
|
-
[`${
|
|
583
|
+
className: yr(i, W, {
|
|
584
|
+
[`${W}--negative`]: n
|
|
585
585
|
}),
|
|
586
586
|
"aria-live": "assertive",
|
|
587
587
|
"aria-relevant": a,
|
|
588
588
|
...p,
|
|
589
589
|
children: [
|
|
590
|
-
/* @__PURE__ */ s(
|
|
590
|
+
/* @__PURE__ */ s(Fr, { svg: ie, size: "xs", className: yr(`${W}__icon`) }),
|
|
591
591
|
t
|
|
592
592
|
]
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
|
-
function
|
|
595
|
+
function _e(t) {
|
|
596
596
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
function
|
|
600
|
-
return
|
|
598
|
+
var xr = { exports: {} }, wr;
|
|
599
|
+
function de() {
|
|
600
|
+
return wr || (wr = 1, (function(t) {
|
|
601
601
|
(function() {
|
|
602
602
|
var i = {}.hasOwnProperty;
|
|
603
603
|
function n() {
|
|
@@ -626,14 +626,14 @@ function ce() {
|
|
|
626
626
|
}
|
|
627
627
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
628
628
|
})();
|
|
629
|
-
})(
|
|
629
|
+
})(xr)), xr.exports;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
const
|
|
631
|
+
var fe = de();
|
|
632
|
+
const ge = /* @__PURE__ */ _e(fe), ve = {
|
|
633
633
|
"purpur-field-helper-text": "_purpur-field-helper-text_1ociq_1",
|
|
634
634
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_1ociq_9",
|
|
635
635
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_1ociq_12"
|
|
636
|
-
},
|
|
636
|
+
}, he = ge.bind(ve), Z = "purpur-field-helper-text", me = ({
|
|
637
637
|
children: t,
|
|
638
638
|
className: i,
|
|
639
639
|
disabled: n,
|
|
@@ -641,18 +641,18 @@ const de = /* @__PURE__ */ le(_e), fe = {
|
|
|
641
641
|
negative: p,
|
|
642
642
|
...r
|
|
643
643
|
}) => {
|
|
644
|
-
const e =
|
|
645
|
-
[`${
|
|
646
|
-
[`${
|
|
644
|
+
const e = he(i, Z, {
|
|
645
|
+
[`${Z}--disabled`]: n,
|
|
646
|
+
[`${Z}--negative`]: p
|
|
647
647
|
});
|
|
648
648
|
return /* @__PURE__ */ s("span", { id: a, className: e, ...r, children: t });
|
|
649
649
|
};
|
|
650
|
-
function
|
|
650
|
+
function be(t) {
|
|
651
651
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
655
|
-
return
|
|
653
|
+
var $r = { exports: {} }, Sr;
|
|
654
|
+
function ye() {
|
|
655
|
+
return Sr || (Sr = 1, (function(t) {
|
|
656
656
|
(function() {
|
|
657
657
|
var i = {}.hasOwnProperty;
|
|
658
658
|
function n() {
|
|
@@ -681,10 +681,10 @@ function me() {
|
|
|
681
681
|
}
|
|
682
682
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
683
683
|
})();
|
|
684
|
-
})(
|
|
684
|
+
})($r)), $r.exports;
|
|
685
685
|
}
|
|
686
|
-
var
|
|
687
|
-
const
|
|
686
|
+
var xe = ye();
|
|
687
|
+
const we = /* @__PURE__ */ be(xe), $e = {
|
|
688
688
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
689
689
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
690
690
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -692,86 +692,95 @@ const ye = /* @__PURE__ */ he(be), xe = {
|
|
|
692
692
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
693
693
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
694
694
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
695
|
-
},
|
|
695
|
+
}, Se = we.bind($e), jr = "purpur-icon", je = "md", Ne = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Oe = ({ content: t = "", title: i } = {}) => {
|
|
696
696
|
const n = [
|
|
697
697
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
698
698
|
{ name: "fill", value: "currentColor" },
|
|
699
699
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
700
700
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
701
701
|
], a = i ? `<title>${i}</title>` : "";
|
|
702
|
-
return `<svg ${
|
|
703
|
-
},
|
|
704
|
-
const r =
|
|
705
|
-
content:
|
|
702
|
+
return `<svg ${Ne(n)}>${a}${t}</svg>`;
|
|
703
|
+
}, Pe = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), K = ({ svg: t, allyTitle: i, className: n, size: a = je, ...p }) => {
|
|
704
|
+
const r = Oe({
|
|
705
|
+
content: Pe(t.svg),
|
|
706
706
|
title: i
|
|
707
|
-
}), e =
|
|
707
|
+
}), e = Se(jr, `${jr}--${a}`, n);
|
|
708
708
|
return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
709
709
|
};
|
|
710
|
-
|
|
711
|
-
const
|
|
710
|
+
K.displayName = "Icon";
|
|
711
|
+
const Ae = {
|
|
712
712
|
name: "check-circle-filled",
|
|
713
713
|
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>',
|
|
714
714
|
keywords: ["check-circle-filled"],
|
|
715
715
|
category: "status"
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
const
|
|
716
|
+
}, Vr = (t) => /* @__PURE__ */ s(K, { ...t, svg: Ae });
|
|
717
|
+
Vr.displayName = "IconCheckCircleFilled";
|
|
718
|
+
const qe = {
|
|
719
719
|
name: "close",
|
|
720
720
|
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>',
|
|
721
721
|
keywords: ["close"],
|
|
722
722
|
category: "utility"
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
function
|
|
723
|
+
}, Hr = (t) => /* @__PURE__ */ s(K, { ...t, svg: qe });
|
|
724
|
+
Hr.displayName = "IconClose";
|
|
725
|
+
function Nr(t, i) {
|
|
726
726
|
if (typeof t == "function")
|
|
727
727
|
return t(i);
|
|
728
728
|
t != null && (t.current = i);
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Ce(...t) {
|
|
731
731
|
return (i) => {
|
|
732
732
|
let n = !1;
|
|
733
733
|
const a = t.map((p) => {
|
|
734
|
-
const r =
|
|
734
|
+
const r = Nr(p, i);
|
|
735
735
|
return !n && typeof r == "function" && (n = !0), r;
|
|
736
736
|
});
|
|
737
737
|
if (n)
|
|
738
738
|
return () => {
|
|
739
739
|
for (let p = 0; p < a.length; p++) {
|
|
740
740
|
const r = a[p];
|
|
741
|
-
typeof r == "function" ? r() :
|
|
741
|
+
typeof r == "function" ? r() : Nr(t[p], null);
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
+
var Me = /* @__PURE__ */ Symbol.for("react.lazy"), k = g[" use ".trim().toString()];
|
|
747
|
+
function ze(t) {
|
|
748
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
749
|
+
}
|
|
750
|
+
function Kr(t) {
|
|
751
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Me && "_payload" in t && ze(t._payload);
|
|
752
|
+
}
|
|
746
753
|
// @__NO_SIDE_EFFECTS__
|
|
747
|
-
function
|
|
748
|
-
const i = /* @__PURE__ */
|
|
749
|
-
|
|
754
|
+
function Re(t) {
|
|
755
|
+
const i = /* @__PURE__ */ Ee(t), n = g.forwardRef((a, p) => {
|
|
756
|
+
let { children: r, ...e } = a;
|
|
757
|
+
Kr(r) && typeof k == "function" && (r = k(r._payload));
|
|
758
|
+
const u = g.Children.toArray(r), d = u.find(ke);
|
|
750
759
|
if (d) {
|
|
751
|
-
const o = d.props.children,
|
|
752
|
-
return /* @__PURE__ */ s(i, { ...e, ref: p, children:
|
|
760
|
+
const o = d.props.children, v = u.map((l) => l === d ? g.Children.count(o) > 1 ? g.Children.only(null) : g.isValidElement(o) ? o.props.children : null : l);
|
|
761
|
+
return /* @__PURE__ */ s(i, { ...e, ref: p, children: g.isValidElement(o) ? g.cloneElement(o, void 0, v) : null });
|
|
753
762
|
}
|
|
754
763
|
return /* @__PURE__ */ s(i, { ...e, ref: p, children: r });
|
|
755
764
|
});
|
|
756
765
|
return n.displayName = `${t}.Slot`, n;
|
|
757
766
|
}
|
|
758
767
|
// @__NO_SIDE_EFFECTS__
|
|
759
|
-
function
|
|
760
|
-
const i =
|
|
761
|
-
|
|
762
|
-
if (
|
|
763
|
-
const e =
|
|
764
|
-
return p.type !==
|
|
768
|
+
function Ee(t) {
|
|
769
|
+
const i = g.forwardRef((n, a) => {
|
|
770
|
+
let { children: p, ...r } = n;
|
|
771
|
+
if (Kr(p) && typeof k == "function" && (p = k(p._payload)), g.isValidElement(p)) {
|
|
772
|
+
const e = Be(p), u = De(r, p.props);
|
|
773
|
+
return p.type !== g.Fragment && (u.ref = a ? Ce(a, e) : e), g.cloneElement(p, u);
|
|
765
774
|
}
|
|
766
|
-
return
|
|
775
|
+
return g.Children.count(p) > 1 ? g.Children.only(null) : null;
|
|
767
776
|
});
|
|
768
777
|
return i.displayName = `${t}.SlotClone`, i;
|
|
769
778
|
}
|
|
770
|
-
var
|
|
771
|
-
function
|
|
772
|
-
return
|
|
779
|
+
var Ie = /* @__PURE__ */ Symbol("radix.slottable");
|
|
780
|
+
function ke(t) {
|
|
781
|
+
return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Ie;
|
|
773
782
|
}
|
|
774
|
-
function
|
|
783
|
+
function De(t, i) {
|
|
775
784
|
const n = { ...i };
|
|
776
785
|
for (const a in i) {
|
|
777
786
|
const p = t[a], r = i[a];
|
|
@@ -782,11 +791,11 @@ function Re(t, i) {
|
|
|
782
791
|
}
|
|
783
792
|
return { ...t, ...n };
|
|
784
793
|
}
|
|
785
|
-
function
|
|
794
|
+
function Be(t) {
|
|
786
795
|
let i = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, n = i && "isReactWarning" in i && i.isReactWarning;
|
|
787
796
|
return n ? t.ref : (i = Object.getOwnPropertyDescriptor(t, "ref")?.get, n = i && "isReactWarning" in i && i.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
788
797
|
}
|
|
789
|
-
var
|
|
798
|
+
var Le = [
|
|
790
799
|
"a",
|
|
791
800
|
"button",
|
|
792
801
|
"div",
|
|
@@ -804,14 +813,14 @@ var Ie = [
|
|
|
804
813
|
"span",
|
|
805
814
|
"svg",
|
|
806
815
|
"ul"
|
|
807
|
-
],
|
|
808
|
-
const n = /* @__PURE__ */
|
|
816
|
+
], Te = Le.reduce((t, i) => {
|
|
817
|
+
const n = /* @__PURE__ */ Re(`Primitive.${i}`), a = g.forwardRef((p, r) => {
|
|
809
818
|
const { asChild: e, ...u } = p, d = e ? n : i;
|
|
810
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(d, { ...u, ref: r });
|
|
819
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(d, { ...u, ref: r });
|
|
811
820
|
});
|
|
812
821
|
return a.displayName = `Primitive.${i}`, { ...t, [i]: a };
|
|
813
|
-
}, {}),
|
|
814
|
-
|
|
822
|
+
}, {}), We = "Label", Ur = g.forwardRef((t, i) => /* @__PURE__ */ s(
|
|
823
|
+
Te.label,
|
|
815
824
|
{
|
|
816
825
|
...t,
|
|
817
826
|
ref: i,
|
|
@@ -820,14 +829,14 @@ var Ie = [
|
|
|
820
829
|
}
|
|
821
830
|
}
|
|
822
831
|
));
|
|
823
|
-
|
|
824
|
-
var
|
|
825
|
-
function
|
|
832
|
+
Ur.displayName = We;
|
|
833
|
+
var Ze = Ur;
|
|
834
|
+
function Ge(t) {
|
|
826
835
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
827
836
|
}
|
|
828
|
-
var
|
|
829
|
-
function
|
|
830
|
-
return
|
|
837
|
+
var Or = { exports: {} }, Pr;
|
|
838
|
+
function Fe() {
|
|
839
|
+
return Pr || (Pr = 1, (function(t) {
|
|
831
840
|
(function() {
|
|
832
841
|
var i = {}.hasOwnProperty;
|
|
833
842
|
function n() {
|
|
@@ -856,32 +865,32 @@ function Te() {
|
|
|
856
865
|
}
|
|
857
866
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
858
867
|
})();
|
|
859
|
-
})(
|
|
868
|
+
})(Or)), Or.exports;
|
|
860
869
|
}
|
|
861
|
-
var
|
|
862
|
-
const
|
|
870
|
+
var Ve = Fe();
|
|
871
|
+
const He = /* @__PURE__ */ Ge(Ve), Ke = {
|
|
863
872
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
864
873
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
865
874
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
866
|
-
},
|
|
875
|
+
}, Ue = He.bind(Ke), G = "purpur-label", Xe = ({
|
|
867
876
|
children: t,
|
|
868
877
|
className: i,
|
|
869
878
|
disabled: n,
|
|
870
879
|
negative: a = !1,
|
|
871
880
|
...p
|
|
872
881
|
}) => {
|
|
873
|
-
const r =
|
|
874
|
-
[`${
|
|
875
|
-
[`${
|
|
882
|
+
const r = Ue(i, G, {
|
|
883
|
+
[`${G}--disabled`]: n,
|
|
884
|
+
[`${G}--negative`]: a
|
|
876
885
|
});
|
|
877
|
-
return /* @__PURE__ */ s(
|
|
886
|
+
return /* @__PURE__ */ s(Ze, { className: r, ...p, children: t });
|
|
878
887
|
};
|
|
879
|
-
function
|
|
888
|
+
function Ye(t) {
|
|
880
889
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
881
890
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
884
|
-
return
|
|
891
|
+
var Ar = { exports: {} }, qr;
|
|
892
|
+
function Je() {
|
|
893
|
+
return qr || (qr = 1, (function(t) {
|
|
885
894
|
(function() {
|
|
886
895
|
var i = {}.hasOwnProperty;
|
|
887
896
|
function n() {
|
|
@@ -910,33 +919,33 @@ function Ke() {
|
|
|
910
919
|
}
|
|
911
920
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
912
921
|
})();
|
|
913
|
-
})(
|
|
922
|
+
})(Ar)), Ar.exports;
|
|
914
923
|
}
|
|
915
|
-
var
|
|
916
|
-
const
|
|
924
|
+
var Qe = Je();
|
|
925
|
+
const rn = /* @__PURE__ */ Ye(Qe), tn = "_rotate_12t9p_1", en = "_dash_12t9p_1", nn = {
|
|
917
926
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
918
|
-
rotate:
|
|
927
|
+
rotate: tn,
|
|
919
928
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
920
929
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
921
930
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
922
931
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
923
932
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
924
933
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
925
|
-
dash:
|
|
934
|
+
dash: en,
|
|
926
935
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
927
936
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
928
|
-
},
|
|
937
|
+
}, Cr = rn.bind(nn), q = "purpur-spinner", un = {
|
|
929
938
|
SM: "sm"
|
|
930
|
-
},
|
|
939
|
+
}, Xr = ({
|
|
931
940
|
disabled: t = !1,
|
|
932
941
|
negative: i = !1,
|
|
933
|
-
size: n =
|
|
942
|
+
size: n = un.SM,
|
|
934
943
|
className: a,
|
|
935
944
|
...p
|
|
936
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
945
|
+
}) => /* @__PURE__ */ s("div", { className: Cr(q, `${q}--${n}`, a), ...p, children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
937
946
|
"circle",
|
|
938
947
|
{
|
|
939
|
-
className:
|
|
948
|
+
className: Cr(`${q}__circle`, {
|
|
940
949
|
[`${q}__circle--disabled`]: t,
|
|
941
950
|
[`${q}__circle--negative`]: i
|
|
942
951
|
}),
|
|
@@ -945,13 +954,13 @@ const Ye = /* @__PURE__ */ He(Ue), Xe = "_rotate_12t9p_1", Je = "_dash_12t9p_1",
|
|
|
945
954
|
r: "20"
|
|
946
955
|
}
|
|
947
956
|
) }) });
|
|
948
|
-
|
|
949
|
-
function
|
|
957
|
+
Xr.displayName = "Spinner";
|
|
958
|
+
function pn(t) {
|
|
950
959
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
951
960
|
}
|
|
952
|
-
var
|
|
953
|
-
function
|
|
954
|
-
return
|
|
961
|
+
var Mr = { exports: {} }, zr;
|
|
962
|
+
function an() {
|
|
963
|
+
return zr || (zr = 1, (function(t) {
|
|
955
964
|
(function() {
|
|
956
965
|
var i = {}.hasOwnProperty;
|
|
957
966
|
function n() {
|
|
@@ -980,10 +989,10 @@ function en() {
|
|
|
980
989
|
}
|
|
981
990
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
982
991
|
})();
|
|
983
|
-
})(
|
|
992
|
+
})(Mr)), Mr.exports;
|
|
984
993
|
}
|
|
985
|
-
var
|
|
986
|
-
const
|
|
994
|
+
var sn = an();
|
|
995
|
+
const on = /* @__PURE__ */ pn(sn), ln = {
|
|
987
996
|
"purpur-text-field": "_purpur-text-field_1n0q1_1",
|
|
988
997
|
"purpur-text-field__label": "_purpur-text-field__label_1n0q1_7",
|
|
989
998
|
"purpur-text-field__label-text": "_purpur-text-field__label-text_1n0q1_12",
|
|
@@ -1004,7 +1013,7 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1004
1013
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_1n0q1_146",
|
|
1005
1014
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_1n0q1_151",
|
|
1006
1015
|
"purpur-text-field__valid-icon--negative": "_purpur-text-field__valid-icon--negative_1n0q1_154"
|
|
1007
|
-
},
|
|
1016
|
+
}, cn = (t) => it(t), $ = on.bind(ln), _ = "purpur-text-field", Yr = O(
|
|
1008
1017
|
({
|
|
1009
1018
|
["data-testid"]: t,
|
|
1010
1019
|
className: i,
|
|
@@ -1016,20 +1025,20 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1016
1025
|
helperText: u,
|
|
1017
1026
|
hideRequiredAsterisk: d = !1,
|
|
1018
1027
|
label: o,
|
|
1019
|
-
loading:
|
|
1028
|
+
loading: v = !1,
|
|
1020
1029
|
onClear: l,
|
|
1021
1030
|
startAdornment: h,
|
|
1022
1031
|
valid: y = !1,
|
|
1023
1032
|
negative: f = !1,
|
|
1024
1033
|
...c
|
|
1025
1034
|
}, b) => {
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1028
|
-
},
|
|
1029
|
-
l?.(),
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1032
|
-
|
|
1035
|
+
const rt = ut(), D = c.id ?? rt, x = (w) => t ? `${t}-${w}` : void 0, Y = y && !e, B = u ? `${D}-helper-text` : void 0, L = [h].filter((w) => !!w), J = (typeof c.value == "number" ? c.value !== void 0 : c.value?.length) && !c.disabled && !c.readOnly && !v && l && n, Q = cn(null), tt = (w) => {
|
|
1036
|
+
Q.current = w, typeof b == "function" ? b(w) : b && (b.current = w);
|
|
1037
|
+
}, et = () => {
|
|
1038
|
+
l?.(), Q.current?.focus();
|
|
1039
|
+
}, T = [
|
|
1040
|
+
v && /* @__PURE__ */ s(
|
|
1041
|
+
Xr,
|
|
1033
1042
|
{
|
|
1034
1043
|
disabled: c.disabled,
|
|
1035
1044
|
size: "xs",
|
|
@@ -1038,22 +1047,22 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1038
1047
|
},
|
|
1039
1048
|
"spinner"
|
|
1040
1049
|
),
|
|
1041
|
-
|
|
1042
|
-
|
|
1050
|
+
J && /* @__PURE__ */ s(
|
|
1051
|
+
Gr,
|
|
1043
1052
|
{
|
|
1044
1053
|
negative: f,
|
|
1045
1054
|
variant: "tertiary-purple",
|
|
1046
|
-
onClick:
|
|
1055
|
+
onClick: et,
|
|
1047
1056
|
iconOnly: !0,
|
|
1048
1057
|
"aria-label": n ?? "",
|
|
1049
1058
|
"data-testid": x("clear-button"),
|
|
1050
1059
|
tabIndex: -1,
|
|
1051
|
-
children: /* @__PURE__ */ s(
|
|
1060
|
+
children: /* @__PURE__ */ s(Hr, { size: "xs" })
|
|
1052
1061
|
},
|
|
1053
1062
|
"clear-button"
|
|
1054
1063
|
),
|
|
1055
1064
|
Y && /* @__PURE__ */ s(
|
|
1056
|
-
|
|
1065
|
+
Vr,
|
|
1057
1066
|
{
|
|
1058
1067
|
"data-testid": x("valid-icon"),
|
|
1059
1068
|
className: $(`${_}__valid-icon`, {
|
|
@@ -1062,19 +1071,19 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1062
1071
|
},
|
|
1063
1072
|
"valid-icon"
|
|
1064
1073
|
)
|
|
1065
|
-
].filter((w) => !!w),
|
|
1066
|
-
[`${_}__input-container--start-adornment`]:
|
|
1067
|
-
[`${_}__input-container--end-adornment`]:
|
|
1074
|
+
].filter((w) => !!w), nt = $(`${_}__input-container`, {
|
|
1075
|
+
[`${_}__input-container--start-adornment`]: L.length,
|
|
1076
|
+
[`${_}__input-container--end-adornment`]: T.length || r,
|
|
1068
1077
|
[`${_}__input-container--disabled`]: c.disabled,
|
|
1069
|
-
[`${_}__input-container--has-clear-button`]:
|
|
1078
|
+
[`${_}__input-container--has-clear-button`]: J,
|
|
1070
1079
|
[`${_}__input-container--readonly`]: c.readOnly && !c.disabled,
|
|
1071
1080
|
[`${_}__input-container--negative`]: f
|
|
1072
1081
|
});
|
|
1073
1082
|
return /* @__PURE__ */ m("div", { className: $(i, _), children: [
|
|
1074
1083
|
o && /* @__PURE__ */ m(
|
|
1075
|
-
|
|
1084
|
+
Xe,
|
|
1076
1085
|
{
|
|
1077
|
-
htmlFor:
|
|
1086
|
+
htmlFor: D,
|
|
1078
1087
|
className: $(`${_}__label`),
|
|
1079
1088
|
"data-testid": x("label"),
|
|
1080
1089
|
disabled: c.disabled,
|
|
@@ -1087,23 +1096,23 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1087
1096
|
),
|
|
1088
1097
|
/* @__PURE__ */ m("div", { className: $(`${_}__field-row`), children: [
|
|
1089
1098
|
!!a && a,
|
|
1090
|
-
/* @__PURE__ */ m("div", { className:
|
|
1091
|
-
!!
|
|
1099
|
+
/* @__PURE__ */ m("div", { className: nt, children: [
|
|
1100
|
+
!!L.length && /* @__PURE__ */ s(
|
|
1092
1101
|
"div",
|
|
1093
1102
|
{
|
|
1094
1103
|
"data-testid": x("start-adornments"),
|
|
1095
1104
|
className: $(`${_}__adornment-container`),
|
|
1096
|
-
children:
|
|
1105
|
+
children: L
|
|
1097
1106
|
}
|
|
1098
1107
|
),
|
|
1099
1108
|
/* @__PURE__ */ s(
|
|
1100
1109
|
"input",
|
|
1101
1110
|
{
|
|
1102
1111
|
...c,
|
|
1103
|
-
id:
|
|
1104
|
-
ref:
|
|
1112
|
+
id: D,
|
|
1113
|
+
ref: tt,
|
|
1105
1114
|
"data-testid": x("input"),
|
|
1106
|
-
"aria-describedby": c["aria-describedby"] ||
|
|
1115
|
+
"aria-describedby": c["aria-describedby"] || B,
|
|
1107
1116
|
"aria-invalid": c["aria-invalid"] || !!e,
|
|
1108
1117
|
className: $([
|
|
1109
1118
|
`${_}__input`,
|
|
@@ -1123,13 +1132,13 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1123
1132
|
})
|
|
1124
1133
|
}
|
|
1125
1134
|
),
|
|
1126
|
-
(!!
|
|
1135
|
+
(!!T.length || r) && /* @__PURE__ */ m(
|
|
1127
1136
|
"div",
|
|
1128
1137
|
{
|
|
1129
1138
|
"data-testid": x("end-adornments"),
|
|
1130
1139
|
className: $(`${_}__adornment-container`),
|
|
1131
1140
|
children: [
|
|
1132
|
-
|
|
1141
|
+
T,
|
|
1133
1142
|
r
|
|
1134
1143
|
]
|
|
1135
1144
|
}
|
|
@@ -1137,28 +1146,28 @@ const un = /* @__PURE__ */ tn(nn), pn = {
|
|
|
1137
1146
|
] }),
|
|
1138
1147
|
!!p && p
|
|
1139
1148
|
] }),
|
|
1140
|
-
|
|
1141
|
-
|
|
1149
|
+
B && /* @__PURE__ */ s(
|
|
1150
|
+
me,
|
|
1142
1151
|
{
|
|
1143
1152
|
"data-testid": x("helper-text"),
|
|
1144
|
-
id:
|
|
1153
|
+
id: B,
|
|
1145
1154
|
negative: f,
|
|
1146
1155
|
disabled: c.disabled,
|
|
1147
1156
|
children: u
|
|
1148
1157
|
}
|
|
1149
1158
|
),
|
|
1150
|
-
e && /* @__PURE__ */ s(
|
|
1159
|
+
e && /* @__PURE__ */ s(ce, { "data-testid": x("error-text"), negative: f, children: e })
|
|
1151
1160
|
] });
|
|
1152
1161
|
}
|
|
1153
1162
|
);
|
|
1154
|
-
|
|
1155
|
-
function
|
|
1163
|
+
Yr.displayName = "TextField";
|
|
1164
|
+
function _n(t) {
|
|
1156
1165
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1157
1166
|
}
|
|
1158
|
-
var
|
|
1159
|
-
var
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
1167
|
+
var F = { exports: {} };
|
|
1168
|
+
var Rr;
|
|
1169
|
+
function dn() {
|
|
1170
|
+
return Rr || (Rr = 1, (function(t) {
|
|
1162
1171
|
(function() {
|
|
1163
1172
|
var i = {}.hasOwnProperty;
|
|
1164
1173
|
function n() {
|
|
@@ -1187,25 +1196,25 @@ function on() {
|
|
|
1187
1196
|
}
|
|
1188
1197
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1189
1198
|
})();
|
|
1190
|
-
})(
|
|
1199
|
+
})(F)), F.exports;
|
|
1191
1200
|
}
|
|
1192
|
-
var
|
|
1193
|
-
const
|
|
1201
|
+
var fn = dn();
|
|
1202
|
+
const U = /* @__PURE__ */ _n(fn), C = {
|
|
1194
1203
|
WEAK: "weak",
|
|
1195
1204
|
MEDIUM: "medium",
|
|
1196
1205
|
STRONG: "strong"
|
|
1197
1206
|
}, N = {
|
|
1198
1207
|
PASSWORD: "password",
|
|
1199
1208
|
TEXT: "text"
|
|
1200
|
-
},
|
|
1209
|
+
}, gn = {
|
|
1201
1210
|
"purpur-password-field": "_purpur-password-field_co7kv_1"
|
|
1202
1211
|
};
|
|
1203
|
-
function
|
|
1212
|
+
function vn(t) {
|
|
1204
1213
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1205
1214
|
}
|
|
1206
|
-
var
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1215
|
+
var Er = { exports: {} }, Ir;
|
|
1216
|
+
function hn() {
|
|
1217
|
+
return Ir || (Ir = 1, (function(t) {
|
|
1209
1218
|
(function() {
|
|
1210
1219
|
var i = {}.hasOwnProperty;
|
|
1211
1220
|
function n() {
|
|
@@ -1234,10 +1243,10 @@ function dn() {
|
|
|
1234
1243
|
}
|
|
1235
1244
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1236
1245
|
})();
|
|
1237
|
-
})(
|
|
1246
|
+
})(Er)), Er.exports;
|
|
1238
1247
|
}
|
|
1239
|
-
var
|
|
1240
|
-
const
|
|
1248
|
+
var mn = hn();
|
|
1249
|
+
const bn = /* @__PURE__ */ vn(mn), yn = {
|
|
1241
1250
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
1242
1251
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
1243
1252
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -1253,39 +1262,39 @@ const gn = /* @__PURE__ */ _n(fn), vn = {
|
|
|
1253
1262
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
1254
1263
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
1255
1264
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
1256
|
-
},
|
|
1265
|
+
}, xn = bn.bind(yn), wn = {
|
|
1257
1266
|
PARAGRAPH100: "paragraph-100"
|
|
1258
|
-
}, M = "purpur-paragraph",
|
|
1267
|
+
}, M = "purpur-paragraph", Jr = ({
|
|
1259
1268
|
children: t,
|
|
1260
1269
|
className: i,
|
|
1261
1270
|
disabled: n,
|
|
1262
1271
|
enableHyphenation: a = !1,
|
|
1263
1272
|
negative: p = !1,
|
|
1264
|
-
variant: r =
|
|
1273
|
+
variant: r = wn.PARAGRAPH100,
|
|
1265
1274
|
...e
|
|
1266
1275
|
}) => {
|
|
1267
|
-
const u =
|
|
1276
|
+
const u = xn(i, M, `${M}--${r}`, {
|
|
1268
1277
|
[`${M}--hyphens`]: a,
|
|
1269
1278
|
[`${M}--disabled`]: n,
|
|
1270
1279
|
[`${M}--negative`]: p
|
|
1271
1280
|
});
|
|
1272
1281
|
return /* @__PURE__ */ s("p", { ...e, className: u, children: t });
|
|
1273
1282
|
};
|
|
1274
|
-
|
|
1275
|
-
const
|
|
1283
|
+
Jr.displayName = "Paragraph";
|
|
1284
|
+
const $n = {
|
|
1276
1285
|
"purpur-password-strength": "_purpur-password-strength_sa1ua_1",
|
|
1277
1286
|
"purpur-password-strength__indicator-container": "_purpur-password-strength__indicator-container_sa1ua_6",
|
|
1278
1287
|
"purpur-password-strength__password-strength-text--weak": "_purpur-password-strength__password-strength-text--weak_sa1ua_10",
|
|
1279
1288
|
"purpur-password-strength__password-strength-text--medium": "_purpur-password-strength__password-strength-text--medium_sa1ua_13",
|
|
1280
1289
|
"purpur-password-strength__password-strength-text--strong": "_purpur-password-strength__password-strength-text--strong_sa1ua_16",
|
|
1281
1290
|
"purpur-password-strength__password-strength-label": "_purpur-password-strength__password-strength-label_sa1ua_19"
|
|
1282
|
-
},
|
|
1291
|
+
}, Sn = {
|
|
1283
1292
|
"purpur-password-strength-indicator": "_purpur-password-strength-indicator_1o6zr_1",
|
|
1284
1293
|
"purpur-password-strength-indicator--active": "_purpur-password-strength-indicator--active_1o6zr_7",
|
|
1285
1294
|
"purpur-password-strength-indicator--weak": "_purpur-password-strength-indicator--weak_1o6zr_7",
|
|
1286
1295
|
"purpur-password-strength-indicator--medium": "_purpur-password-strength-indicator--medium_1o6zr_10",
|
|
1287
1296
|
"purpur-password-strength-indicator--strong": "_purpur-password-strength-indicator--strong_1o6zr_13"
|
|
1288
|
-
},
|
|
1297
|
+
}, jn = U.bind(Sn), V = "purpur-password-strength-indicator", I = O(
|
|
1289
1298
|
({
|
|
1290
1299
|
["data-testid"]: t = "password-strength-indicator",
|
|
1291
1300
|
active: i,
|
|
@@ -1293,18 +1302,18 @@ const bn = {
|
|
|
1293
1302
|
passwordStrength: a,
|
|
1294
1303
|
...p
|
|
1295
1304
|
}, r) => {
|
|
1296
|
-
const e =
|
|
1305
|
+
const e = jn(
|
|
1297
1306
|
n,
|
|
1298
|
-
|
|
1299
|
-
{ [`${
|
|
1300
|
-
{ [`${
|
|
1307
|
+
V,
|
|
1308
|
+
{ [`${V}--${a}`]: a },
|
|
1309
|
+
{ [`${V}--active`]: i }
|
|
1301
1310
|
);
|
|
1302
1311
|
return /* @__PURE__ */ s("div", { ...p, "data-testid": t, className: e, ref: r });
|
|
1303
1312
|
}
|
|
1304
1313
|
);
|
|
1305
1314
|
I.displayName = "PasswordStrengthIndicator";
|
|
1306
|
-
const
|
|
1307
|
-
const [p, r] = E(0), [e, u] = E(), [d, o] = E(void 0),
|
|
1315
|
+
const Nn = (t, i, n, a) => {
|
|
1316
|
+
const [p, r] = E(0), [e, u] = E(), [d, o] = E(void 0), v = pt(
|
|
1308
1317
|
() => ({
|
|
1309
1318
|
0: [C.WEAK, i],
|
|
1310
1319
|
1: [C.WEAK, i],
|
|
@@ -1314,21 +1323,21 @@ const wn = (t, i, n, a) => {
|
|
|
1314
1323
|
}),
|
|
1315
1324
|
[i, n, a]
|
|
1316
1325
|
);
|
|
1317
|
-
return
|
|
1326
|
+
return at(() => {
|
|
1318
1327
|
(async () => {
|
|
1319
1328
|
if (!t)
|
|
1320
1329
|
r(0), u(void 0), o(void 0);
|
|
1321
1330
|
else {
|
|
1322
|
-
const { default: l } = await import("./main-
|
|
1331
|
+
const { default: l } = await import("./main-cIXswkZU.mjs").then((c) => c.m), { score: h } = l(t), [y, f] = v[h];
|
|
1323
1332
|
r(h), u(y), o(f);
|
|
1324
1333
|
}
|
|
1325
1334
|
})();
|
|
1326
|
-
}, [t,
|
|
1335
|
+
}, [t, v]), {
|
|
1327
1336
|
score: p,
|
|
1328
1337
|
passwordStrength: e,
|
|
1329
1338
|
currentPasswordStrengthText: d
|
|
1330
1339
|
};
|
|
1331
|
-
}, R =
|
|
1340
|
+
}, R = U.bind($n), z = "purpur-password-strength", X = O(
|
|
1332
1341
|
({
|
|
1333
1342
|
["data-testid"]: t = "password-strength",
|
|
1334
1343
|
className: i,
|
|
@@ -1339,7 +1348,7 @@ const wn = (t, i, n, a) => {
|
|
|
1339
1348
|
strongText: e,
|
|
1340
1349
|
...u
|
|
1341
1350
|
}, d) => {
|
|
1342
|
-
const o = R(i, z), { score:
|
|
1351
|
+
const o = R(i, z), { score: v, passwordStrength: l, currentPasswordStrengthText: h } = Nn(
|
|
1343
1352
|
n,
|
|
1344
1353
|
p,
|
|
1345
1354
|
r,
|
|
@@ -1357,20 +1366,20 @@ const wn = (t, i, n, a) => {
|
|
|
1357
1366
|
/* @__PURE__ */ s(
|
|
1358
1367
|
I,
|
|
1359
1368
|
{
|
|
1360
|
-
active: !!l &&
|
|
1369
|
+
active: !!l && v > 1,
|
|
1361
1370
|
passwordStrength: l
|
|
1362
1371
|
}
|
|
1363
1372
|
),
|
|
1364
1373
|
/* @__PURE__ */ s(
|
|
1365
1374
|
I,
|
|
1366
1375
|
{
|
|
1367
|
-
active: !!l &&
|
|
1376
|
+
active: !!l && v > 2,
|
|
1368
1377
|
passwordStrength: l
|
|
1369
1378
|
}
|
|
1370
1379
|
)
|
|
1371
1380
|
] }),
|
|
1372
1381
|
/* @__PURE__ */ m(
|
|
1373
|
-
|
|
1382
|
+
Jr,
|
|
1374
1383
|
{
|
|
1375
1384
|
"aria-live": "polite",
|
|
1376
1385
|
"data-testid": `${t}-text`,
|
|
@@ -1389,8 +1398,8 @@ const wn = (t, i, n, a) => {
|
|
|
1389
1398
|
] });
|
|
1390
1399
|
}
|
|
1391
1400
|
);
|
|
1392
|
-
|
|
1393
|
-
const
|
|
1401
|
+
X.displayName = "PasswordStrength";
|
|
1402
|
+
const kr = U.bind(gn), Dr = "purpur-password-field", Qr = O(
|
|
1394
1403
|
({
|
|
1395
1404
|
["data-testid"]: t = "password-field",
|
|
1396
1405
|
children: i,
|
|
@@ -1400,22 +1409,22 @@ const Ir = K.bind(cn), kr = "purpur-password-field", Xr = O(
|
|
|
1400
1409
|
showPasswordAriaLabel: r,
|
|
1401
1410
|
...e
|
|
1402
1411
|
}, u) => {
|
|
1403
|
-
const d =
|
|
1412
|
+
const d = kr(n, Dr), [o, v] = E(N.PASSWORD), l = async (f) => {
|
|
1404
1413
|
p?.(f);
|
|
1405
1414
|
}, h = () => {
|
|
1406
|
-
|
|
1407
|
-
}, y = o === N.PASSWORD ?
|
|
1415
|
+
v(o === N.PASSWORD ? N.TEXT : N.PASSWORD);
|
|
1416
|
+
}, y = o === N.PASSWORD ? Wr : Tr;
|
|
1408
1417
|
return /* @__PURE__ */ m("div", { className: d, children: [
|
|
1409
1418
|
/* @__PURE__ */ s(
|
|
1410
|
-
|
|
1419
|
+
Yr,
|
|
1411
1420
|
{
|
|
1412
|
-
className:
|
|
1421
|
+
className: kr(`${Dr}__text-field`),
|
|
1413
1422
|
"data-testid": t,
|
|
1414
1423
|
onChange: l,
|
|
1415
1424
|
ref: u,
|
|
1416
1425
|
type: o,
|
|
1417
1426
|
endAdornment: /* @__PURE__ */ s(
|
|
1418
|
-
|
|
1427
|
+
Lr,
|
|
1419
1428
|
{
|
|
1420
1429
|
"aria-label": o === N.PASSWORD ? r : a,
|
|
1421
1430
|
"data-testid": `${t}-type-toggle-button`,
|
|
@@ -1433,12 +1442,12 @@ const Ir = K.bind(cn), kr = "purpur-password-field", Xr = O(
|
|
|
1433
1442
|
] });
|
|
1434
1443
|
}
|
|
1435
1444
|
);
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
const
|
|
1445
|
+
Qr.PasswordStrength = X;
|
|
1446
|
+
Qr.displayName = "PasswordField";
|
|
1447
|
+
const qn = (t) => st(t) && t?.type === X;
|
|
1439
1448
|
export {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1449
|
+
Qr as P,
|
|
1450
|
+
_n as g,
|
|
1451
|
+
qn as i
|
|
1443
1452
|
};
|
|
1444
|
-
//# sourceMappingURL=password-field-
|
|
1453
|
+
//# sourceMappingURL=password-field-BtkPLVY0.mjs.map
|